diff --git a/README.md b/README.md index 7f78d7e..bc50ab4 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,8 @@ FusionChartsModule.fcRoot(FusionCharts, Column2d, FusionTheme); }) export class AppModule { } ``` +NOTE : If you are using angular 2, please refer [Rendering chart in Angular 2](#Rendering-chart-in-Angular-2) + Once the library is imported, you can use its components, directives in your Angular application: @@ -103,6 +105,131 @@ export class AppComponent { > ``` +## Listening to events +Fusincharts events can be subscribed from component's output params. +Usage in template : +```xml + + +``` +And in component's code , `$event` will be an object `{ eventObj : {...}, dataObj: {...} }` +For more on this read [here](https://www.fusioncharts.com/dev/api/fusioncharts/fusioncharts-events) +```js +import {Component} from '@angular/core'; + +@Component({ + selector: 'my-app', + templateUrl: './app.component.html' +}) +export class AppComponent { + dataSource: Object; + title: string; + + constructor() { + this.title = "Angular FusionCharts Sample"; + + this.dataSource = { + ...// same data as above + }; + } + + + + plotRollOver($event){ + var dataValue = $event.dataObj.dataValue; + console.log(`Value is ${dataValue}`); + } + +} +``` +Get the list of fusioncharts' [events](https://www.fusioncharts.com/dev/advanced-chart-configurations/events/classifying-events) + + +## Chart API +Using api of charts involves getting the FusionCharts chart instance from the `initialized` event. +It emits chart object which can be operated upon later. + +In template, we add `initialized` event +```xml + + + +``` + +And in component's code , we get `$event` as `{ chart : ChartInstance }` + +So in order to use the chart instance , we need to store the chart instance. + +```typescript +import {Component} from '@angular/core'; + +@Component({ + selector: 'my-app', + templateUrl: './app.component.html' +}) +export class AppComponent { + dataSource: Object; + title: string; + chart: any; + constructor() { + this.title = "Angular FusionCharts Sample"; + + this.dataSource = { + ...// same data as above + }; + } + + initialized($event){ + this.chart = $event.chart; + } + + changeLabel(){ + this.chart.setChartAttribute('caption', 'Changed caption'); + } + +} +``` + +## Rendering chart in Angular 2 +For angular version 2.x.x , we cannot use `'fusioncharts/core'` as it uses dynamic imports , which is not compatible with older version typescripts used by Angular 2. +To render a chart, we need to use the older way, + +```ts +import { BrowserModule } from '@angular/platform-browser'; +import { NgModule } from '@angular/core'; + +import { AppComponent } from './app.component'; + +// Import angular-fusioncharts +import { FusionChartsModule } from 'angular-fusioncharts'; + +// Import FusionCharts library and chart modules +import * as FusionCharts from 'fusioncharts'; // Change fusioncharts/core to fusioncharts and use `* as` syntax +import * as Charts from 'fusioncharts/fusioncharts.charts'; // Contains all the charts under FusionCharts XT , Read below for details + +import * as FusionTheme from 'fusioncharts/themes/fusioncharts.theme.fusion'; + +// Pass the fusioncharts library and chart modules +FusionChartsModule.fcRoot(FusionCharts, Charts, FusionTheme); + +``` +Note: All other code for the component and template remain same as above. + +We have used `fusioncharts/fusioncharts.charts` file to use all the charts which come under FusionCharts XT. +To know more about other charts and widgets, read this [link](https://www.fusioncharts.com/dev/getting-started/plain-javascript/install-using-plain-javascript) + ## Development To generate all `*.js`, `*.js.map` and `*.d.ts` files: diff --git a/dist/README.md b/dist/README.md index 7f78d7e..bc50ab4 100644 --- a/dist/README.md +++ b/dist/README.md @@ -45,6 +45,8 @@ FusionChartsModule.fcRoot(FusionCharts, Column2d, FusionTheme); }) export class AppModule { } ``` +NOTE : If you are using angular 2, please refer [Rendering chart in Angular 2](#Rendering-chart-in-Angular-2) + Once the library is imported, you can use its components, directives in your Angular application: @@ -103,6 +105,131 @@ export class AppComponent { > ``` +## Listening to events +Fusincharts events can be subscribed from component's output params. +Usage in template : +```xml + + +``` +And in component's code , `$event` will be an object `{ eventObj : {...}, dataObj: {...} }` +For more on this read [here](https://www.fusioncharts.com/dev/api/fusioncharts/fusioncharts-events) +```js +import {Component} from '@angular/core'; + +@Component({ + selector: 'my-app', + templateUrl: './app.component.html' +}) +export class AppComponent { + dataSource: Object; + title: string; + + constructor() { + this.title = "Angular FusionCharts Sample"; + + this.dataSource = { + ...// same data as above + }; + } + + + + plotRollOver($event){ + var dataValue = $event.dataObj.dataValue; + console.log(`Value is ${dataValue}`); + } + +} +``` +Get the list of fusioncharts' [events](https://www.fusioncharts.com/dev/advanced-chart-configurations/events/classifying-events) + + +## Chart API +Using api of charts involves getting the FusionCharts chart instance from the `initialized` event. +It emits chart object which can be operated upon later. + +In template, we add `initialized` event +```xml + + + +``` + +And in component's code , we get `$event` as `{ chart : ChartInstance }` + +So in order to use the chart instance , we need to store the chart instance. + +```typescript +import {Component} from '@angular/core'; + +@Component({ + selector: 'my-app', + templateUrl: './app.component.html' +}) +export class AppComponent { + dataSource: Object; + title: string; + chart: any; + constructor() { + this.title = "Angular FusionCharts Sample"; + + this.dataSource = { + ...// same data as above + }; + } + + initialized($event){ + this.chart = $event.chart; + } + + changeLabel(){ + this.chart.setChartAttribute('caption', 'Changed caption'); + } + +} +``` + +## Rendering chart in Angular 2 +For angular version 2.x.x , we cannot use `'fusioncharts/core'` as it uses dynamic imports , which is not compatible with older version typescripts used by Angular 2. +To render a chart, we need to use the older way, + +```ts +import { BrowserModule } from '@angular/platform-browser'; +import { NgModule } from '@angular/core'; + +import { AppComponent } from './app.component'; + +// Import angular-fusioncharts +import { FusionChartsModule } from 'angular-fusioncharts'; + +// Import FusionCharts library and chart modules +import * as FusionCharts from 'fusioncharts'; // Change fusioncharts/core to fusioncharts and use `* as` syntax +import * as Charts from 'fusioncharts/fusioncharts.charts'; // Contains all the charts under FusionCharts XT , Read below for details + +import * as FusionTheme from 'fusioncharts/themes/fusioncharts.theme.fusion'; + +// Pass the fusioncharts library and chart modules +FusionChartsModule.fcRoot(FusionCharts, Charts, FusionTheme); + +``` +Note: All other code for the component and template remain same as above. + +We have used `fusioncharts/fusioncharts.charts` file to use all the charts which come under FusionCharts XT. +To know more about other charts and widgets, read this [link](https://www.fusioncharts.com/dev/getting-started/plain-javascript/install-using-plain-javascript) + ## Development To generate all `*.js`, `*.js.map` and `*.d.ts` files: diff --git a/docs/index.html b/docs/index.html index 827da01..0611d94 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1 +1 @@ -Angular FusionChartsLoading... \ No newline at end of file +Angular FusionChartsLoading... \ No newline at end of file diff --git a/docs/inline.4aaeefe2e707a9f83704.bundle.js b/docs/inline.dc826832abca8165cd8d.bundle.js similarity index 69% rename from docs/inline.4aaeefe2e707a9f83704.bundle.js rename to docs/inline.dc826832abca8165cd8d.bundle.js index cf03196..45cb33c 100644 --- a/docs/inline.4aaeefe2e707a9f83704.bundle.js +++ b/docs/inline.dc826832abca8165cd8d.bundle.js @@ -1 +1 @@ -!function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,c,u){for(var a,i,f,l=0,s=[];l-1?a+t.length:a}var i=t.exec(r?e.slice(r):e);return i?i.index+r+(o?i[0].length:0):-1}var o=Array.prototype.slice.call(arguments,1);return{startState:function(){return{outer:e.startState(t),innerActive:null,inner:null}},copyState:function(r){return{outer:e.copyState(t,r.outer),innerActive:r.innerActive,inner:r.innerActive&&e.copyState(r.innerActive.mode,r.inner)}},token:function(a,i){if(i.innerActive){var n=i.innerActive,s=a.string;if(!n.close&&a.sol())return i.innerActive=i.inner=null,this.token(a,i);var l=n.close?r(s,n.close,a.pos,n.parseDelimiters):-1;if(l==a.pos&&!n.parseDelimiters)return a.match(n.close),i.innerActive=i.inner=null,n.delimStyle&&n.delimStyle+" "+n.delimStyle+"-close";l>-1&&(a.string=s.slice(0,l));var c=n.mode.token(a,i.inner);return l>-1&&(a.string=s),l==a.pos&&n.parseDelimiters&&(i.innerActive=i.inner=null),n.innerStyle&&(c=c?c+" "+n.innerStyle:n.innerStyle),c}for(var h=1/0,s=a.string,d=0;d-1)return t.push(e[r]),t;t.push(e[r])}return t}function k(e){if(e.length>1){return" ("+C(e.slice().reverse()).map(function(e){return n(e.token)}).join(" -> ")+")"}return""}function S(e,t,r,o){var a=[t],i=r(a),n=o?w(i,o):Error(i);return n.addKey=_,n.keys=a,n.injectors=[e],n.constructResolvingMessage=r,n[yi]=o,n}function _(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function L(e,t){return S(e,t,function(e){return"No provider for "+n(e[0].token)+"!"+k(e)})}function A(e,t){return S(e,t,function(e){return"Cannot instantiate cyclic dependency!"+k(e)})}function T(e,t,r,o){return S(e,o,function(e){var r=n(e[0].token);return t.message+": Error during instantiation of "+r+"!"+k(e)+"."},t)}function D(e){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+e)}function P(e,t){for(var r=[],o=0,a=t.length;o-1&&e.splice(r,1)}function be(e,t){var r=Nn.get(e);if(r)throw new Error("Duplicate module registered for "+e+" - "+r.moduleType.name+" vs "+t.moduleType.name);Nn.set(e,t)}function ye(e){var t=Nn.get(e);if(!t)throw new Error("No module with ID "+e+" loaded");return t}function xe(e){return e.reduce(function(e,t){var r=Array.isArray(t)?xe(t):t;return e.concat(r)},[])}function we(e,t,r){if(!e)throw new Error("Cannot find '"+r+"' in '"+t+"'");return e}function Ce(e){return e.map(function(e){return e.nativeElement})}function ke(e,t,r){e.childNodes.forEach(function(e){e instanceof $n&&(t(e)&&r.push(e),ke(e,t,r))})}function Se(e,t,r){e instanceof $n&&e.childNodes.forEach(function(e){t(e)&&r.push(e),e instanceof $n&&Se(e,t,r)})}function _e(e){return Jn.get(e)||null}function Le(e){Jn.set(e.nativeNode,e)}function Ae(e){Jn.delete(e.nativeNode)}function Te(e,t){var r=De(e),o=De(t);if(r&&o)return Pe(e,t,Te);var a=e&&("object"==typeof e||"function"==typeof e),n=t&&("object"==typeof t||"function"==typeof t);return!(r||!a||o||!n)||i(e,t)}function De(e){return!!Ee(e)&&(Array.isArray(e)||!(e instanceof Map)&&o()in e)}function Pe(e,t,r){for(var a=e[o()](),i=t[o()]();;){var n=a.next(),s=i.next();if(n.done&&s.done)return!0;if(n.done||s.done)return!1;if(!r(n.value,s.value))return!1}}function Ie(e,t){if(Array.isArray(e))for(var r=0;r0&&Rt(e,t,0,r)&&(p=!0),u>1&&Rt(e,t,1,o)&&(p=!0),u>2&&Rt(e,t,2,a)&&(p=!0),u>3&&Rt(e,t,3,i)&&(p=!0),u>4&&Rt(e,t,4,n)&&(p=!0),u>5&&Rt(e,t,5,s)&&(p=!0),u>6&&Rt(e,t,6,l)&&(p=!0),u>7&&Rt(e,t,7,c)&&(p=!0),u>8&&Rt(e,t,8,h)&&(p=!0),u>9&&Rt(e,t,9,d)&&(p=!0),p}function Mt(e,t,r){for(var o=!1,a=0;a0?a[r-1]:null,o)}function Kt(e,t){var r=nt(t);if(r&&r!==e&&!(16&t.state)){t.state|=16;var o=r.template._projectedViews;o||(o=r.template._projectedViews=[]),o.push(t),$t(t.parent.def,t.parentNodeDef)}}function $t(e,t){if(!(4&t.flags)){e.nodeFlags|=4,t.flags|=4;for(var r=t.parent;r;)r.childFlags|=4,r=r.parent}}function Jt(e,t){var r=e.viewContainer._embeddedViews;if((null==t||t>=r.length)&&(t=r.length-1),t<0)return null;var o=r[t];return o.viewContainerParent=null,or(r,t),Ls.dirtyParentQueries(o),tr(o),o}function Zt(e){if(16&e.state){var t=nt(e);if(t){var r=t.template._projectedViews;r&&(or(r,r.indexOf(e)),Ls.dirtyParentQueries(e))}}}function Qt(e,t,r){var o=e.viewContainer._embeddedViews,a=o[t];return or(o,t),null==r&&(r=o.length),rr(o,r,a),Ls.dirtyParentQueries(a),tr(a),er(e,r>0?o[r-1]:null,a),a}function er(e,t,r){var o=t?lt(t,t.def.lastRenderRootNode):e.renderElement;bt(r,2,r.renderer.parentNode(o),r.renderer.nextSibling(o),void 0)}function tr(e){bt(e,3,null,null,void 0)}function rr(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function or(e,t){t>=e.length-1?e.pop():e.splice(t,1)}function ar(e,t,r,o,a,i){return new js(e,t,r,o,a,i)}function ir(e){return e.viewDefFactory}function nr(e,t,r){return new Ws(e,t,r)}function sr(e){return new Gs(e)}function lr(e,t){return new zs(e,t)}function cr(e,t){return new Us(e,t)}function hr(e,t){var r=e.def.nodes[t];if(1&r.flags){var o=je(e,r.nodeIndex);return r.element.template?o.template:o.renderElement}if(2&r.flags)return Be(e,r.nodeIndex).renderText;if(20240&r.flags)return He(e,r.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function dr(e){return new Xs(e.renderer)}function ur(e,t,r,o){return new Ys(e,t,r,o)}function pr(e,t,r,o,a,i,n,s){var l=[];if(n)for(var c in n){var h=n[c],d=h[0],u=h[1];l[d]={flags:8,name:c,nonMinifiedName:u,ns:null,securityContext:null,suffix:null}}var p=[];if(s)for(var g in s)p.push({type:1,propName:g,target:null,eventName:s[g]});return t|=16384,mr(e,t,r,o,a,a,i,l,p)}function gr(e,t,r){return e|=16,mr(-1,e,null,0,t,t,r)}function fr(e,t,r,o,a){return mr(-1,e,t,0,r,o,a)}function mr(e,t,r,o,a,i,n,s,l){var c=pt(r),h=c.matchedQueries,d=c.references,u=c.matchedQueryIds;l||(l=[]),s||(s=[]);var p=gt(n);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:u,references:d,ngContentIndex:-1,childCount:o,bindings:s,bindingFlags:St(s),outputs:l,element:null,provider:{token:a,value:i,deps:p},text:null,query:null,ngContent:null}}function vr(e,t){return kr(e,t)}function br(e,t){for(var r=e;r.parent&&!ht(r);)r=r.parent;return Sr(r.parent,st(r),!0,t.provider.value,t.provider.deps)}function yr(e,t){var r=(32768&t.flags)>0,o=Sr(e,t.parent,r,t.provider.value,t.provider.deps);if(t.outputs.length)for(var a=0;a0&&et(e,t,0,r)&&(g=!0,f=Tr(e,u,t,0,r,f)),m>1&&et(e,t,1,o)&&(g=!0,f=Tr(e,u,t,1,o,f)),m>2&&et(e,t,2,a)&&(g=!0,f=Tr(e,u,t,2,a,f)),m>3&&et(e,t,3,i)&&(g=!0,f=Tr(e,u,t,3,i,f)),m>4&&et(e,t,4,n)&&(g=!0,f=Tr(e,u,t,4,n,f)),m>5&&et(e,t,5,s)&&(g=!0,f=Tr(e,u,t,5,s,f)),m>6&&et(e,t,6,l)&&(g=!0,f=Tr(e,u,t,6,l,f)),m>7&&et(e,t,7,c)&&(g=!0,f=Tr(e,u,t,7,c,f)),m>8&&et(e,t,8,h)&&(g=!0,f=Tr(e,u,t,8,h,f)),m>9&&et(e,t,9,d)&&(g=!0,f=Tr(e,u,t,9,d,f)),f&&p.ngOnChanges(f),2&e.state&&65536&t.flags&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),g}function Cr(e,t,r){for(var o=He(e,t.nodeIndex),a=o.instance,i=!1,n=void 0,s=0;s0,o=t.provider;switch(201347067&t.flags){case 512:return Sr(e,t.parent,r,o.value,o.deps);case 1024:return _r(e,t.parent,r,o.value,o.deps);case 2048:return Lr(e,t.parent,r,o.deps[0]);case 256:return o.value}}function Sr(e,t,r,o,a){var i=a.length;switch(i){case 0:return new o;case 1:return new o(Lr(e,t,r,a[0]));case 2:return new o(Lr(e,t,r,a[0]),Lr(e,t,r,a[1]));case 3:return new o(Lr(e,t,r,a[0]),Lr(e,t,r,a[1]),Lr(e,t,r,a[2]));default:for(var n=new Array(i),s=0;s0&&tt(e,t,0,r)&&(p=!0),g>1&&tt(e,t,1,o)&&(p=!0),g>2&&tt(e,t,2,a)&&(p=!0),g>3&&tt(e,t,3,i)&&(p=!0),g>4&&tt(e,t,4,n)&&(p=!0),g>5&&tt(e,t,5,s)&&(p=!0),g>6&&tt(e,t,6,l)&&(p=!0),g>7&&tt(e,t,7,c)&&(p=!0),g>8&&tt(e,t,8,h)&&(p=!0),g>9&&tt(e,t,9,d)&&(p=!0),p){var f=We(e,t.nodeIndex),m=void 0;switch(201347067&t.flags){case 32:m=new Array(u.length),g>0&&(m[0]=r),g>1&&(m[1]=o),g>2&&(m[2]=a),g>3&&(m[3]=i),g>4&&(m[4]=n),g>5&&(m[5]=s),g>6&&(m[6]=l),g>7&&(m[7]=c),g>8&&(m[8]=h),g>9&&(m[9]=d);break;case 64:m={},g>0&&(m[u[0].name]=r),g>1&&(m[u[1].name]=o),g>2&&(m[u[2].name]=a),g>3&&(m[u[3].name]=i),g>4&&(m[u[4].name]=n),g>5&&(m[u[5].name]=s),g>6&&(m[u[6].name]=l),g>7&&(m[u[7].name]=c),g>8&&(m[u[8].name]=h),g>9&&(m[u[9].name]=d);break;case 128:var v=r;switch(g){case 1:m=v.transform(r);break;case 2:m=v.transform(o);break;case 3:m=v.transform(o,a);break;case 4:m=v.transform(o,a,i);break;case 5:m=v.transform(o,a,i,n);break;case 6:m=v.transform(o,a,i,n,s);break;case 7:m=v.transform(o,a,i,n,s,l);break;case 8:m=v.transform(o,a,i,n,s,l,c);break;case 9:m=v.transform(o,a,i,n,s,l,c,h);break;case 10:m=v.transform(o,a,i,n,s,l,c,h,d)}}f.value=m}return p}function Xr(e,t,r){for(var o=t.bindings,a=!1,i=0;i0&&tt(e,t,0,r)&&(u=!0),g>1&&tt(e,t,1,o)&&(u=!0),g>2&&tt(e,t,2,a)&&(u=!0),g>3&&tt(e,t,3,i)&&(u=!0),g>4&&tt(e,t,4,n)&&(u=!0),g>5&&tt(e,t,5,s)&&(u=!0),g>6&&tt(e,t,6,l)&&(u=!0),g>7&&tt(e,t,7,c)&&(u=!0),g>8&&tt(e,t,8,h)&&(u=!0),g>9&&tt(e,t,9,d)&&(u=!0),u){var f=t.text.prefix;g>0&&(f+=Jr(r,p[0])),g>1&&(f+=Jr(o,p[1])),g>2&&(f+=Jr(a,p[2])),g>3&&(f+=Jr(i,p[3])),g>4&&(f+=Jr(n,p[4])),g>5&&(f+=Jr(s,p[5])),g>6&&(f+=Jr(l,p[6])),g>7&&(f+=Jr(c,p[7])),g>8&&(f+=Jr(h,p[8])),g>9&&(f+=Jr(d,p[9]));var m=Be(e,t.nodeIndex).renderText;e.renderer.setValue(m,f)}return u}function $r(e,t,r){for(var o=t.bindings,a=!1,i=0;i0)c=f,Qr(f)||(h=f);else for(;c&&g===c.nodeIndex+c.childCount;){var y=c.parent;y&&(y.childFlags|=c.childFlags,y.childMatchedQueries|=c.childMatchedQueries),c=y,h=c&&Qr(c)?c.renderParent:c}}var x=function(e,r,o,a){return t[r].element.handleEvent(e,o,a)};return{factory:null,nodeFlags:n,rootNodeFlags:s,nodeMatchedQueries:l,flags:e,nodes:t,updateDirectives:r||As,updateRenderer:o||As,handleEvent:x,bindingCount:a,outputCount:i,lastRenderRootNode:p}}function Qr(e){return 0!=(1&e.flags)&&null===e.element.name}function eo(e,t,r){var o=t.element&&t.element.template;if(o){if(!o.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(o.lastRenderRootNode&&16777216&o.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags){if(0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!")}if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var a=e?e.nodeIndex+e.childCount:r-1;if(t.nodeIndex<=a&&t.nodeIndex+t.childCount>a)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function to(e,t,r,o){var a=ao(e.root,e.renderer,e,t,r);return io(a,e.component,o),no(a),a}function ro(e,t,r){var o=ao(e,e.renderer,null,null,t);return io(o,r,r),no(o),o}function oo(e,t,r,o){var a,i=t.element.componentRendererType;return a=i?e.root.rendererFactory.createRenderer(o,i):e.root.renderer,ao(e.root,a,e,t.element.componentProvider,r)}function ao(e,t,r,o,a){var i=new Array(a.nodes.length),n=a.outputCount?new Array(a.outputCount):null;return{def:a,parent:r,viewContainerParent:null,parentNodeDef:o,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(a.bindingCount),disposables:n}}function io(e,t,r){e.component=t,e.context=r}function no(e){var t;if(ht(e)){var r=e.parentNodeDef;t=je(e.parent,r.parent.nodeIndex).renderElement}for(var o=e.def,a=e.nodes,i=0;i0&&rt(e,t,0,r),u>1&&rt(e,t,1,o),u>2&&rt(e,t,2,a),u>3&&rt(e,t,3,i),u>4&&rt(e,t,4,n),u>5&&rt(e,t,5,s),u>6&&rt(e,t,6,l),u>7&&rt(e,t,7,c),u>8&&rt(e,t,8,h),u>9&&rt(e,t,9,d)}function mo(e,t,r){for(var o=0;o=this._providers.length)throw I(e);return this._providers[e]},e.prototype._new=function(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw A(this,e.key);return this._instantiateProvider(e)},e.prototype._getMaxNumberOfObjects=function(){return this.objs.length},e.prototype._instantiateProvider=function(e){if(e.multiProvider){for(var t=new Array(e.resolvedFactories.length),r=0;r0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+n(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},t}(_n);Ln.decorators=[{type:ci}],Ln.ctorParameters=function(){return[{type:mi}]};var An=function(){function e(){}return e.prototype.bootstrap=function(e,t){},e.prototype.tick=function(){},e.prototype.componentTypes=function(){},e.prototype.components=function(){},e.prototype.attachView=function(e){},e.prototype.detachView=function(e){},e.prototype.viewCount=function(){},e.prototype.isStable=function(){},e}(),Tn=function(e){function t(t,o,i,n,s,l){var c=e.call(this)||this;c._zone=t,c._console=o,c._injector=i,c._exceptionHandler=n,c._componentFactoryResolver=s,c._initStatus=l,c._bootstrapListeners=[],c._rootComponents=[],c._rootComponentTypes=[],c._views=[],c._runningTick=!1,c._enforceNoNewChanges=!1,c._stable=!0,c._enforceNoNewChanges=he(),c._zone.onMicrotaskEmpty.subscribe({next:function(){c._zone.run(function(){c.tick()})}});var h=new _a.Observable(function(e){c._stable=c._zone.isStable&&!c._zone.hasPendingMacrotasks&&!c._zone.hasPendingMicrotasks,c._zone.runOutsideAngular(function(){e.next(c._stable),e.complete()})}),d=new _a.Observable(function(e){var t;c._zone.runOutsideAngular(function(){t=c._zone.onStable.subscribe(function(){fn.assertNotInAngularZone(),a(function(){c._stable||c._zone.hasPendingMacrotasks||c._zone.hasPendingMicrotasks||(c._stable=!0,e.next(!0))})})});var r=c._zone.onUnstable.subscribe(function(){fn.assertInAngularZone(),c._stable&&(c._stable=!1,c._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),r.unsubscribe()}});return c._isStable=r.i(La.merge)(h,Aa.share.call(d)),c}return Sa.a(t,e),t.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},t.prototype.detachView=function(e){var t=e;ve(this._views,t),t.detachFromAppRef()},t.prototype.bootstrap=function(e,t){var r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var o;o=e instanceof Zi?e:this._componentFactoryResolver.resolveComponentFactory(e),this._rootComponentTypes.push(o.componentType);var a=o instanceof nn?null:this._injector.get(sn),i=t||o.selector,n=o.create(mi.NULL,[],i,a);n.onDestroy(function(){r._unloadComponent(n)});var s=n.injector.get(mn,null);return s&&n.injector.get(vn).registerApplication(n.location.nativeElement,s),this._loadComponent(n),he()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),n},t.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this._rootComponents.push(e),this._injector.get(zi,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},t.prototype._unloadComponent=function(e){this.detachView(e.hostView),ve(this._rootComponents,e)},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var r=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,dn(r)}},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),t}(An);Tn._tickScope=hn("ApplicationRef#tick()"),Tn.decorators=[{type:ci}],Tn.ctorParameters=function(){return[{type:fn},{type:Xi},{type:mi},{type:wi},{type:tn},{type:Bi}]};var Dn=function(){function e(e,t,r,o,a,i){this.id=e,this.templateUrl=t,this.slotCount=r,this.encapsulation=o,this.styles=a,this.animations=i}return e}(),Pn=function(){function e(){}return e.prototype.injector=function(){},e.prototype.component=function(){},e.prototype.providerTokens=function(){},e.prototype.references=function(){},e.prototype.context=function(){},e.prototype.source=function(){},e}(),In=function(){function e(){}return e.prototype.selectRootElement=function(e,t){},e.prototype.createElement=function(e,t,r){},e.prototype.createViewRoot=function(e){},e.prototype.createTemplateAnchor=function(e,t){},e.prototype.createText=function(e,t,r){},e.prototype.projectNodes=function(e,t){},e.prototype.attachViewAfter=function(e,t){},e.prototype.detachView=function(e){},e.prototype.destroyView=function(e,t){},e.prototype.listen=function(e,t,r){},e.prototype.listenGlobal=function(e,t,r){},e.prototype.setElementProperty=function(e,t,r){},e.prototype.setElementAttribute=function(e,t,r){},e.prototype.setBindingDebugInfo=function(e,t,r){},e.prototype.setElementClass=function(e,t,r){},e.prototype.setElementStyle=function(e,t,r){},e.prototype.invokeElementMethod=function(e,t,r){},e.prototype.setText=function(e,t){},e.prototype.animate=function(e,t,r,o,a,i,n){},e}(),En=(new Pa("Renderer2Interceptor"),function(){function e(){}return e.prototype.renderComponent=function(e){},e}()),On=function(){function e(){}return e.prototype.createRenderer=function(e,t){},e.prototype.begin=function(){},e.prototype.end=function(){},e.prototype.whenRenderingDone=function(){},e}(),Mn={};Mn.Important=1,Mn.DashCase=2,Mn[Mn.Important]="Important",Mn[Mn.DashCase]="DashCase";var Rn=function(){function e(){}return e.prototype.data=function(){},e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){},e.prototype.createComment=function(e){},e.prototype.createText=function(e){},e.prototype.appendChild=function(e,t){},e.prototype.insertBefore=function(e,t,r){},e.prototype.removeChild=function(e,t){},e.prototype.selectRootElement=function(e){},e.prototype.parentNode=function(e){},e.prototype.nextSibling=function(e){},e.prototype.setAttribute=function(e,t,r,o){},e.prototype.removeAttribute=function(e,t,r){},e.prototype.addClass=function(e,t){},e.prototype.removeClass=function(e,t){},e.prototype.setStyle=function(e,t,r,o){},e.prototype.removeStyle=function(e,t,r){},e.prototype.setProperty=function(e,t,r){},e.prototype.setValue=function(e,t){},e.prototype.listen=function(e,t,r){},e}(),Fn=function(){function e(e){this.nativeElement=e}return e}(),Vn=function(){function e(){}return e.prototype.load=function(e){},e}(),Nn=new Map,Bn=function(){function e(){this._dirty=!0,this._results=[],this._emitter=new gn}return Object.defineProperty(e.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[o()]=function(){return this._results[o()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=xe(e),this._dirty=!1},e.prototype.notifyOnChanges=function(){this._emitter.emit(this)},e.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(e.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._emitter.complete(),this._emitter.unsubscribe()},e}(),jn=function(){function e(){}return e}(),Hn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Wn=function(){function e(e,t){this._compiler=e,this._config=t||Hn}return e.prototype.load=function(e){return this._compiler instanceof qi?this.loadFactory(e):this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,o=e.split("#"),a=o[0],i=o[1];return void 0===i&&(i="default"),r("qtrl")(a).then(function(e){return e[i]}).then(function(e){return we(e,a,i)}).then(function(e){return t._compiler.compileModuleAsync(e)})},e.prototype.loadFactory=function(e){var t=e.split("#"),o=t[0],a=t[1],i="NgFactory";return void 0===a&&(a="default",i=""),r("qtrl")(this._config.factoryPathPrefix+o+this._config.factoryPathSuffix).then(function(e){return e[a+i]}).then(function(e){return we(e,o,a)})},e}();Wn.decorators=[{type:ci}],Wn.ctorParameters=function(){return[{type:qi},{type:jn,decorators:[{type:li}]}]};var Gn=function(){function e(){}return e.prototype.elementRef=function(){},e.prototype.createEmbeddedView=function(e){},e}(),zn=function(){function e(){}return e.prototype.element=function(){},e.prototype.injector=function(){},e.prototype.parentInjector=function(){},e.prototype.clear=function(){},e.prototype.get=function(e){},e.prototype.length=function(){},e.prototype.createEmbeddedView=function(e,t,r){},e.prototype.createComponent=function(e,t,r,o,a){},e.prototype.insert=function(e,t){},e.prototype.move=function(e,t){},e.prototype.indexOf=function(e){},e.prototype.remove=function(e){},e.prototype.detach=function(e){},e}(),Un=function(){function e(){}return e.prototype.markForCheck=function(){},e.prototype.detach=function(){},e.prototype.detectChanges=function(){},e.prototype.checkNoChanges=function(){},e.prototype.reattach=function(){},e}(),Xn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Sa.a(t,e),t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t.prototype.onDestroy=function(e){},t}(Un),Yn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Sa.a(t,e),t.prototype.context=function(){},t.prototype.rootNodes=function(){},t}(Xn),qn=function(){function e(e,t){this.name=e,this.callback=t}return e}(),Kn=function(){function e(e,t,r){this._debugContext=r,this.nativeNode=e,t&&t instanceof $n?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"source",{get:function(){return"Deprecated since v4"},enumerable:!0,configurable:!0}),e}(),$n=function(e){function t(t,r,o){var a=e.call(this,t,r,o)||this;return a.properties={},a.attributes={},a.classes={},a.styles={},a.childNodes=[],a.nativeElement=t,a}return Sa.a(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var r=this,o=this.childNodes.indexOf(e);-1!==o&&((a=this.childNodes).splice.apply(a,[o+1,0].concat(t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=r}));var a},t.prototype.insertBefore=function(e,t){var r=this.childNodes.indexOf(e);-1===r?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(r,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return ke(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return Se(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(r){r.name==e&&r.callback(t)})},t}(Kn),Jn=new Map,Zn=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e}(),Qn=function(){function e(){this.hasWrappedValue=!1}return e.prototype.unwrap=function(e){return e instanceof Zn?(this.hasWrappedValue=!0,e.wrapped):e},e.prototype.reset=function(){this.hasWrappedValue=!1},e}(),es=function(){function e(e,t,r){this.previousValue=e,this.currentValue=t,this.firstChange=r}return e.prototype.isFirstChange=function(){return this.firstChange},e}(),ts=function(){function e(){}return e.prototype.supports=function(e){return De(e)},e.prototype.create=function(e,t){return new os(t||e)},e}(),rs=function(e,t){return t},os=function(){function e(e){this._length=0,this._collection=null,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||rs}return Object.defineProperty(e.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,r=this._removalsHead,o=0,a=null;t||r;){var i=!r||t&&t.currentIndex"+n(this.currentIndex)+"]"},e}(),is=function(){function e(){this._head=null,this._tail=null}return e.prototype.add=function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)},e.prototype.get=function(e,t){var r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&i(r.trackById,e))return r;return null},e.prototype.remove=function(e){var t=e._prevDup,r=e._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head},e}(),ns=function(){function e(){this.map=new Map}return e.prototype.put=function(e){var t=e.trackById,r=this.map.get(t);r||(r=new is,this.map.set(t,r)),r.add(e)},e.prototype.get=function(e,t){var r=e,o=this.map.get(r);return o?o.get(e,t):null},e.prototype.remove=function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e.prototype.toString=function(){return"_DuplicateMap("+n(this.map)+")"},e}(),ss=function(){function e(){}return e.prototype.supports=function(e){return e instanceof Map||Ee(e)},e.prototype.create=function(e){return new ls},e}(),ls=function(){function e(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),e.prototype.forEachItem=function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachChangedItem=function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.diff=function(e){if(e){if(!(e instanceof Map||Ee(e)))throw new Error("Error trying to diff '"+n(e)+"'. Only maps and objects are allowed")}else e=new Map;return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var r=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,o){if(r&&r.key===o)t._maybeAddToChanges(r,e),t._appendAfter=r,r=r._next;else{var a=t._getOrCreateRecordForKey(o,e);r=t._insertBeforeOrAppend(r,a)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(var o=r;null!==o;o=o._nextRemoved)o===this._mapHead&&(this._mapHead=null),this._records.delete(o.key),o._nextRemoved=o._next,o.previousValue=o.currentValue,o.currentValue=null,o._prev=null,o._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},e.prototype._insertBeforeOrAppend=function(e,t){if(e){var r=e._prev;return t._next=e,t._prev=r,e._prev=t,r&&(r._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null},e.prototype._getOrCreateRecordForKey=function(e,t){if(this._records.has(e)){var r=this._records.get(e);this._maybeAddToChanges(r,t);var o=r._prev,a=r._next;return o&&(o._next=a),a&&(a._prev=o),r._next=null,r._prev=null,r}var i=new cs(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i},e.prototype._reset=function(){if(this.isDirty){var e=void 0;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},e.prototype._maybeAddToChanges=function(e,t){i(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))},e.prototype._addToAdditions=function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)},e.prototype._addToChanges=function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)},e.prototype._forEach=function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(r){return t(e[r],r)})},e}(),cs=function(){function e(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}return e}(),hs=function(){function e(e){this.factories=e}return e.create=function(t,r){if(null!=r){var o=r.factories.slice();return t=t.concat(o),new e(t)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(r){if(!r)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,r)},deps:[[e,new di,new li]]}},e.prototype.find=function(e){var t=this.factories.find(function(t){return t.supports(e)});if(null!=t)return t;throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+Me(e)+"'")},e}(),ds=function(){function e(e){this.factories=e}return e.create=function(t,r){if(r){var o=r.factories.slice();t=t.concat(o)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(r){if(!r)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,r)},deps:[[e,new di,new li]]}},e.prototype.find=function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '"+e+"'")},e}(),us=[new ss],ps=[new ts],gs=new hs(ps),fs=new ds(us),ms=[{provide:Gi,useValue:"unknown"},Ln,{provide:_n,useExisting:Ln},{provide:Ti,useFactory:Re,deps:[]},vn,Xi],vs=ue(null,"core",ms),bs=new Pa("LocaleId"),ys=new Pa("Translations"),xs=new Pa("TranslationsFormat"),ws={};ws.Error=0,ws.Warning=1,ws.Ignore=2,ws[ws.Error]="Error",ws[ws.Warning]="Warning",ws[ws.Ignore]="Ignore";var Cs=function(){function e(e){}return e}();Cs.decorators=[{type:ri,args:[{providers:[Tn,{provide:An,useExisting:Tn},Bi,qi,Hi,{provide:hs,useFactory:Fe},{provide:ds,useFactory:Ve},{provide:bs,useFactory:Ne,deps:[[new si(bs),new li,new di]]}]}]}],Cs.ctorParameters=function(){return[{type:An}]};var ks={};ks.NONE=0,ks.HTML=1,ks.STYLE=2,ks.SCRIPT=3,ks.URL=4,ks.RESOURCE_URL=5,ks[ks.NONE]="NONE",ks[ks.HTML]="HTML",ks[ks.STYLE]="STYLE",ks[ks.SCRIPT]="SCRIPT",ks[ks.URL]="URL",ks[ks.RESOURCE_URL]="RESOURCE_URL";var Ss=function(){function e(){}return e.prototype.sanitize=function(e,t){},e}(),_s=function(){function e(){}return e.prototype.view=function(){},e.prototype.nodeIndex=function(){},e.prototype.injector=function(){},e.prototype.component=function(){},e.prototype.providerTokens=function(){},e.prototype.references=function(){},e.prototype.context=function(){},e.prototype.componentRenderElement=function(){},e.prototype.renderNode=function(){},e.prototype.logError=function(e){for(var t=[],r=1;r=0;t--){var r=Jt(this._data,t);Ls.destroyView(r)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var r=new Gs(t);return r.attachToViewContainerRef(this),r}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,r){var o=e.createEmbeddedView(t||{});return this.insert(o,r),o},e.prototype.createComponent=function(e,t,r,o,a){var i=r||this.parentInjector;a||e instanceof nn||(a=i.get(sn));var n=e.create(i,o,void 0,a);return this.insert(n.hostView,t),n},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var r=e,o=r._view;return qt(this._view,this._data,t,o),r.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var r=this._embeddedViews.indexOf(e._view);return Qt(this._data,r,t),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=Jt(this._data,e);t&&Ls.destroyView(t)},e.prototype.detach=function(e){var t=Jt(this._data,e);return t?new Gs(t):null},e}(),Gs=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return vt(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){ot(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin(),Ls.checkAndUpdateView(this._view),e.end&&e.end()},e.prototype.checkNoChanges=function(){Ls.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Ls.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,tr(this._view),Ls.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}(),zs=function(e){function t(t,r){var o=e.call(this)||this;return o._parentView=t,o._def=r,o}return Sa.a(t,e),t.prototype.createEmbeddedView=function(e){return new Gs(Ls.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new Fn(je(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(Gn),Us=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){void 0===t&&(t=mi.THROW_IF_NOT_FOUND);var r=!!this.elDef&&0!=(33554432&this.elDef.flags);return Ls.resolveDep(this.view,this.elDef,r,{flags:0,token:e,tokenKey:$e(e)},t)},e}(),Xs=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var r=kt(t),o=r[0],a=r[1],i=this.delegate.createElement(a,o);return e&&this.delegate.appendChild(e,i),i},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var r=this.delegate.createText(t);return e&&this.delegate.appendChild(e,r),r},e.prototype.projectNodes=function(e,t){for(var r=0;r")):null:e.match("--")?r(l("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),r(c(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=l("meta","?>"),"meta"):(L=e.eat("/")?"closeTag":"openTag",t.tokenize=n,"tag bracket");if("&"==o){var a;return a=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),a?"atom":"error"}return e.eatWhile(/[^&<]/),null}function n(e,t){var r=e.next();if(">"==r||"/"==r&&e.eat(">"))return t.tokenize=i,L=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return L="equals",null;if("<"==r){t.tokenize=i,t.state=p,t.tagName=t.tagStart=null;var o=t.tokenize(e,t);return o?o+" tag error":"tag error"}return/[\'\"]/.test(r)?(t.tokenize=s(r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function s(e){var t=function(t,r){for(;!t.eol();)if(t.next()==e){r.tokenize=n;break}return"string"};return t.isInAttribute=!0,t}function l(e,t){return function(r,o){for(;!r.eol();){if(r.match(t)){o.tokenize=i;break}r.next()}return e}}function c(e){return function(t,r){for(var o;null!=(o=t.next());){if("<"==o)return r.tokenize=c(e+1),r.tokenize(t,r);if(">"==o){if(1==e){r.tokenize=i;break}return r.tokenize=c(e-1),r.tokenize(t,r)}}return"meta"}}function h(e,t,r){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=r,(k.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function d(e){e.context&&(e.context=e.context.prev)}function u(e,t){for(var r;;){if(!e.context)return;if(r=e.context.tagName,!k.contextGrabbers.hasOwnProperty(r)||!k.contextGrabbers[r].hasOwnProperty(t))return;d(e)}}function p(e,t,r){return"openTag"==e?(r.tagStart=t.column(),g):"closeTag"==e?f:p}function g(e,t,r){return"word"==e?(r.tagName=t.current(),A="tag",b):k.allowMissingTagName&&"endTag"==e?(A="tag bracket",b(e,t,r)):(A="error",g)}function f(e,t,r){if("word"==e){var o=t.current();return r.context&&r.context.tagName!=o&&k.implicitlyClosed.hasOwnProperty(r.context.tagName)&&d(r),r.context&&r.context.tagName==o||!1===k.matchClosing?(A="tag",m):(A="tag error",v)}return k.allowMissingTagName&&"endTag"==e?(A="tag bracket",m(e,t,r)):(A="error",v)}function m(e,t,r){return"endTag"!=e?(A="error",m):(d(r),p)}function v(e,t,r){return A="error",m(e,t,r)}function b(e,t,r){if("word"==e)return A="attribute",y;if("endTag"==e||"selfcloseTag"==e){var o=r.tagName,a=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==e||k.autoSelfClosers.hasOwnProperty(o)?u(r,o):(u(r,o),r.context=new h(r,o,a==r.indented)),p}return A="error",b}function y(e,t,r){return"equals"==e?x:(k.allowMissing||(A="error"),b(e,t,r))}function x(e,t,r){return"string"==e?w:"word"==e&&k.allowUnquoted?(A="string",b):(A="error",b(e,t,r))}function w(e,t,r){return"string"==e?w:b(e,t,r)}var C=o.indentUnit,k={},S=a.htmlMode?t:r;for(var _ in S)k[_]=S[_];for(var _ in a)k[_]=a[_];var L,A;return i.isInText=!0,{startState:function(e){var t={tokenize:i,state:p,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;L=null;var r=t.tokenize(e,t);return(r||L)&&"comment"!=r&&(A=null,t.state=t.state(L||r,e,t),A&&(r="error"==A?r+" error":A)),r},indent:function(t,r,o){var a=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+C;if(a&&a.noIndent)return e.Pass;if(t.tokenize!=n&&t.tokenize!=i)return o?o.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==k.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+C*(k.multilineTagIndentFactor||1);if(k.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:k.htmlMode?"html":"xml",helperType:k.htmlMode?"html":"xml",skipAttribute:function(e){e.state==x&&(e.state=b)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"5ear":function(e,t){!function(t){"object"==typeof e&&void 0!==e.exports?e.exports=t:t(FusionCharts)}(function(e){e.register("theme",{name:"fint",theme:{base:{chart:{paletteColors:"#0075c2,#1aaf5d,#f2c500,#f45b00,#8e0000,#0e948c,#8cbb2c,#f3de00,#c02d00,#5b0101",labelDisplay:"auto",baseFontColor:"#333333",baseFont:"Helvetica Neue,Arial",captionFontSize:"14",subcaptionFontSize:"14",subcaptionFontBold:"0",showBorder:"0",bgColor:"#ffffff",showShadow:"0",canvasBgColor:"#ffffff",showCanvasBorder:"0",useplotgradientcolor:"0",useRoundEdges:"0",showPlotBorder:"0",showAlternateHGridColor:"0",showAlternateVGridColor:"0",toolTipColor:"#ffffff",toolTipBorderThickness:"0",toolTipBgColor:"#000000",toolTipBgAlpha:"80",toolTipBorderRadius:"2",toolTipPadding:"5",legendBgAlpha:"0",legendBorderAlpha:"0",legendShadow:"0",legendItemFontSize:"10",legendItemFontColor:"#666666",legendCaptionFontSize:"9",divlineAlpha:"100",divlineColor:"#999999",divlineThickness:"1",divLineIsDashed:"1",divLineDashLen:"1",divLineGapLen:"1",scrollheight:"10",flatScrollBars:"1",scrollShowButtons:"0",scrollColor:"#cccccc",showHoverEffect:"1",valueFontSize:"10",showXAxisLine:"1",xAxisLineThickness:"1",xAxisLineColor:"#999999"},dataset:[{}],trendlines:[{}]},geo:{chart:{showLabels:"0",fillColor:"#0075c2",showBorder:"1",borderColor:"#eeeeee",borderThickness:"1",borderAlpha:"50",entityFillhoverColor:"#0075c2",entityFillhoverAlpha:"80",connectorColor:"#cccccc",connectorThickness:"1.5",markerFillHoverAlpha:"90"}},pie2d:{chart:{placeValuesInside:"0",use3dlighting:"0",valueFontColor:"#333333",captionPadding:"15"},data:function(e,t,r){return t=window.Math,{alpha:100-(50h-a-i&&(u=!0,o=t.canvasHeight-l,r=a+i,a=t.canvasMarginTop=o*a/r,i=t.canvasMarginBottom=o*i/r),c>d-n-s&&(g=!0,o=t.canvasWidth-c,r=n+s,n=t.canvasMarginLeft=o*n/r,s=t.canvasMarginRight=o*s/r),a=a>t.canvasTop?a-t.canvasTop:0,i=i>h-t.canvasBottom?i+t.canvasBottom-h:0,n=n>t.canvasLeft?n-t.canvasLeft:0,s=s>d-t.canvasRight?s+t.canvasRight-d:0,this._allocateSpace({top:a,bottom:i,left:n,right:s}),u&&(r=f+m,u=t.canvasHeight,u>l&&(o=u-l,a=o*f/r,i=o*m/r),this._allocateSpace({top:a,bottom:i})),g&&(r=v+b,l=t.canvasWidth,l>c&&(o=l-c,n=o*v/r,s=o*b/r),this._allocateSpace({left:n,right:s})),void 0!==t.origCanvasLeftMargin&&(t.canvasWidth=p(t.canvasWidth+t.canvasLeft-t.origCanvasLeftMargin,.2*t.availableWidth),t.canvasLeft=t.origCanvasLeftMargin)},_manageCaptionSpacing:function(e){var t,i,n=this.config,s=this.components,l=s.caption,c=s.subCaption,h=l.config,d=c.config,l=l.components,c=c.components,f=this.jsonData.chart,v=this.linkedItems.smartLabel,b=m(f.caption),y=m(f.subcaption),f=h.captionPadding=a(f.captionpadding,2),x=s.chartMenuBar,x=x&&x.getLogicalSpace(),w=n.height-(x&&x.height||0),C=0,x=0,k=p(s.canvas.config.canvasBorderThickness,0),S=0,s={};return 3<.7*w&&(fb&&!ee&&(n=E.plotfillAngle,re=ne?180-re:360-re),y.colorArr=b=t.graphics.getColumnColor(j+","+E.plotgradientcolor,c,d=E.plotfillratio,re,ee,E.plotbordercolor,g,ne?1:0,!!se),y.label=h(H(V.getLabel(a(D-R,T)).label)),0!==te&&(x=o(v.hovercolor,O.hovercolor,F.plotfillhovercolor,F.columnhovercolor,j),w=o(v.hoveralpha,O.hoveralpha,F.plotfillhoveralpha,F.columnhoveralpha,c),C=o(v.hovergradientcolor,O.hovergradientcolor,F.plothovergradientcolor,E.plotgradientcolor),!C&&(C=""),d=o(v.hoverratio,O.hoverratio,F.plothoverratio,d),k=a(360-v.hoverangle,360-O.hoverangle,360-F.plothoverangle,re),_=o(v.borderhovercolor,O.borderhovercolor,F.plotborderhovercolor,E.plotbordercolor),g=o(v.borderhoveralpha,O.borderhoveralpha,F.plotborderhoveralpha,g,c),c=a(v.borderhoverthickness,O.borderhoverthickness,F.plotborderhoverthickness,Q),L=a(v.borderhoverdashed,O.borderhoverdashed,F.plotborderhoverdashed),A=a(v.borderhoverdashgap,O.borderhoverdashgap,F.plotborderhoverdashgap,void 0),v=a(v.borderhoverdashlen,O.borderhoverdashlen,F.plotborderhoverdashlen,l),v=L?ae(v,A,c):m,1==te&&x===j&&(x=s(x,70)),l=t.graphics.getColumnColor(x+","+C,w,d,k,ee,_,g.toString(),ne?1:0,!!se),y.setRolloutAttr={fill:se?[f(b[0]),!I.use3dlighting]:f(b[0]),stroke:B&&f(b[1]),"stroke-width":Q,"stroke-dasharray":m},y.setRolloverAttr={fill:se?[f(l[0]),!I.use3dlighting]:f(l[0]),stroke:B&&f(l[1]),"stroke-width":c,"stroke-dasharray":v}),n&&(re=n),D++}E.maxValue=1,E.minValue=-1,1==a(F.showvalue,1)&&(P.config.sparkValues={closeValue:{}},P.config.sparkValues.closeValue.label=$+"-"+J+(0$titleVal$',body:"$msgVal$"},g.link={title:g.info.title,body:'$msgVal$'},g.error={title:'$titleVal$',body:'$msgVal$'},t=function(e,t){var r=this.config={},o=(e.msgType||"").toLowerCase(),a=e.msgTitle,i=e.msgText,n=u(e.msgLink,i);r.totalHTML="",this.graphics={},this.linkedItems={msgLogger:t},o=g[o]||g.literal,a&&(r.titleHTML=o.title.replace("$titleVal$",a),r.totalHTML+=r.titleHTML),i&&(r.msgHTML=o.body.replace("$msgVal$",i),r.msgHTML=r.msgHTML.replace("$msgLinkVal$",n),r.totalHTML+=r.msgHTML)},t.prototype={draw:function(){var e,t=this.config,r=this.graphics,i=r.element,n=this.linkedItems.msgLogger,s=n.graphics,l=s&&s.log&&s.log.element,s=s.logWrapper&&s.logWrapper.element,n=n.config;if(!i){i=r.element=o.createElement("span");for(e in f)i.style[e]=f[e];l.appendChild&&l.appendChild(i)}r.element.innerHTML=t.totalHTML,c&&a&&(t=l.innerHTML,l.innerHTML=t),n.scrollToBottom&&(n.dynamicScrolling=!0,l=s.scrollHeight,s.scrollTop=l)},dispose:function(){var e=this.graphics,t=this.linkedItems.msgLogger;t&&t.graphics&&t.graphics.log&&t.graphics.log.element&&t.graphics.log.element.removeChild&&t.graphics.log.element.removeChild(e.element),delete e.element,s.call(this)}},t.prototype.constractor=t,e.register("component",["logger","message",{pIndex:1,customConfigFn:null,init:function(e){var t=this.linkedItems||(this.linkedItems={});this.components=this.components||{},this.components.messages=this.components.messages||[],this.graphics=this.graphics||{},t.chart=e},configure:function(){var e=this.config||(this.config={}),t=this.linkedItems.chart,r=t.get&&t.get("jsonData","chart")||{},o=e.usemessagelog=t.get("config","usemessagelog");e.messageLogWPercent=p(l(r.messagelogwpercent,80),100),e.messageLogHPercent=p(l(r.messageloghpercent,70),100),e.messageLogShowTitle=l(r.messagelogshowtitle,1),e.messageLogTitle=u(r.messagelogtitle,"Message Log"),e.messageLogColor=u(r.messagelogcolor,"#fbfbfb").replace(/^#?([a-f0-9]+)/gi,"$1"),e.messageLogColorRgb=h(e.messageLogColor),e.messageGoesToJS=l(r.messagegoestojs,0),e.messageGoesToLog=l(r.messagegoestolog,1),e.messageJSHandler=u(r.messagejshandler,""),e.messagePassAllToJS=l(r.messagepassalltojs,0),e.messagePassAsObject=l(r.messagepassasobject,0),e.messageLogIsCancelable=l(r.messagelogiscancelable,1),e.alwaysShowMessageLogMenu=l(r.alwaysshowmessagelogmenu,o),t.config.useShowLogMenu=o&&e.messageGoesToLog,e.dynamicScrolling=!1,e.scrollToBottom=!0},_createMessage:function(e){return e=new t(e,this),this.graphics.container&&e.draw(),e},addLog:function(e){var t=this.config,o=this.components.messages,a=l(e.msgGoesToLog,t.messageGoesToLog),i=l(e.msgGoesToJS,t.messageGoesToJS),n=r[t.messageJSHandler],s=u(e.msgId,""),c=u(e.msgTitle,""),h=u(e.msgText,""),d=u(e.msgType,"literal");t.usemessagelog&&(i&&n&&"function"==typeof n&&(t.messagePassAllToJS?t.messagePassAsObject?n(e):n(s,c,h,d):n(h)),"1"===e.clearLog&&this.clearLog(),a&&(e.msgTitle||e.msgText)&&(e=this._createMessage(e),o.push(e),1!==o.length||t.visible||this.show()))},show:function(){var e=this.graphics,t=this.config;t.visible||(t.visible=!0,e.container||this.draw(),e.container&&e.container.show())},hide:function(){var e=this.graphics;this.config.visible=!1,e.container&&e.container.hide()},clearLog:function(){var e,t=this.components.messages,r=t.length;for(e=0;e=e){if("1"!==o.occuronce||!o.hasOccurred){switch(o.hasOccurred=!0,o.state="1",i){case"calljs":setTimeout(r.pseudoEval(o.param));break;case"showannotation":n.showAnnotation&&n.showAnnotation(o.param)}t.raiseEvent("AlertComplete",{alertValue:e,alertMaxValue:o.maxvalue,alertMinValue:o.minvalue},n.chartInstance)}}else"showannotation"===i&&"1"===o.state&&n.hideAnnotation&&n.hideAnnotation(o.param),o.state="2"}}])}]),e.register("module",["private","modules.renderer.js-realtime",function(){var e,t=this,r=t.window,o=Math.random,a=t.hcLib.pluckNumber,i=function(e,t,r){return clearTimeout(r),setTimeout(e,t)};e=function(e){var n,s,l,c,h,d,u,p,g,f,m=e.sender,v=m.__state;v.dataSetDuringConstruction&&!v.rtStateChanged&&void 0===v.rtPreInit&&(m.dataReady()?(v.rtStateChanged=!0,v.rtPreInit=!0):v.rtPreInit=!1),v.rtStateChanged&&(v.rtStateChanged=!1,l=(s=m.jsVars)&&s.instanceAPI)&&(c=l.config||{},n=l.jsonData&&l.jsonData.chart,l=c&&c.chart||{},h=1e3*a(c.updateInterval,c.refreshInterval),d=1e3*a(c.clearInterval,0),u=c.dataStreamURL,c=!!(c&&c.realtimeEnabled&&0=h?(v._toRealtime=clearTimeout(v._toRealtime),p&&p.abort()):10>h&&(h=10),v._toClearChart=clearTimeout(v._toClearChart),0d?d=10:v._toClearChart=setTimeout(g,d)),v._rtStaticRefreshMS=h,c&&(void 0===v._rtPaused&&(v._rtPaused=!1),v._rtDataUrl=u,v.lastSetValues=null,p=v._rtAjaxObj||(v._rtAjaxObj=new t.ajax),p.onSuccess=function(t,o,a,i){if(!m.disposed){o=s.instanceAPI,a=o.feedData;var n={},l=o.config;if(v._rtAjaxLatencyStart&&(v._rtAjaxLatency=new Date-v._rtAjaxLatencyStart),a&&l.realtimeEnabled&&u){o._getPrevData(),o.feedData(t,!0,i,v._rtAjaxLatency||0),t=(n.realtimeDrawingLatency||0)+(v._rtAjaxLatency||0);try{r.FC_ChartUpdated&&r.FC_ChartUpdated(e.sender.id)}catch(e){setTimeout(function(){throw e},1)}v._rtPaused||(t>=v._rtStaticRefreshMS&&(t=v._rtStaticRefreshMS-1),v._toRealtime=setTimeout(f,v._rtStaticRefreshMS-t))}else v._toRealtime=clearTimeout(v._toRealtime)}},p.onError=function(r,o,a,i){v._rtAjaxLatencyStart&&(v._rtAjaxLatency=new Date-v._rtAjaxLatencyStart),t.raiseEvent("realtimeUpdateError",{source:"XmlHttpRequest",url:i,xmlHttpRequestObject:o.xhr,error:r,httpStatus:o.xhr&&o.xhr.status?o.xhr.status:-1,networkLatency:v._rtAjaxLatency},e.sender),v._toRealtime=m.isActive()?setTimeout(f,h):clearTimeout(v._toRealtime)},v._rtPaused||(v._toRealtime=i(f,0,v._toRealtime))))},t.addEventListener(["beforeDataUpdate","beforeRender"],function(e){e=e.sender;var t=e.__state;e.jsVars&&(e.jsVars._rtLastUpdatedData=null),t._toRealtime&&(t._toRealtime=clearTimeout(t._toRealtime)),t._toClearChart&&(t._toClearChart=clearTimeout(t._toClearChart)),t._rtAjaxLatencyStart=null,t._rtAjaxLatency=null}),t.addEventListener(["renderComplete","dataUpdated"],function(t){var r=t.sender.__state;r&&(void 0===r.rtPreInit&&(r.rtPreInit=!1),r._rtPaused&&delete r._rtPaused,r.rtStateChanged||(r.rtStateChanged=!0,e.apply(this,arguments)))}),t.core.addEventListener("beforeDispose",function(e){e=e.sender.__state,e._toRealtime&&(e._toRealtime=clearTimeout(e._toRealtime)),e._toClearChart&&(e._toClearChart=clearTimeout(e._toClearChart))}),t.core.addEventListener("drawComplete",e)}]),e.register("module",["private","modules.renderer.js-widgets",function(){function e(){}var t=this.hcLib,r=t.extend2,o=t.toPrecision;defaultGaugePaletteOptions=r({},t.defaultGaugePaletteOptions),Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var r,o,a,i,n;if(null==this)throw new TypeError(" this is null or not defined");if(a=Object(this),i=a.length>>>0,"function"!=typeof e)throw new TypeError(e+" is not a function");for(1e?0:e},toRadians:function(e){return e/180*Math.PI},toDegrees:function(e){return e/Math.PI*180},flashToStandardAngle:function(e){return-1*e},standardToFlashAngle:function(e){return-1*e},flash180ToStandardAngle:function(e){var t=360-(0>(e%=360)?e+360:e);return 360==t?0:t},getAngularPoint:function(e,t,r,o){return o*=Math.PI/180,{x:e+r*Math.cos(o),y:t-r*Math.sin(o)}},remainderOf:function(e,t){return roundUp(e%t)},boundAngle:function(t){return 0<=t?e.prototype.remainderOf(t,360):360-e.prototype.remainderOf(Math.abs(t),360)},toNearestTwip:function(e){var t=0>e?-1:1;e=mathRound(100*Math.abs(e));var r=Math.floor(e/5);return(2t;t++)r[t]+=parseInt(255*e,10),0>r[t]&&(r[t]=0),2552*e.slicingDistance?0:e.slicingHeight}],[i,"blankSpace",a,3],["labeldistance","labelDistance",a,50],["issliced","isSliced",a,0],["is2d","is2d",a,0],[i,"blankSpace",a,3],["showlabelsatcenter","showLabelsAtCenter",a,0],["smartlinethickness","connectorWidth",a,1],["smartlinealpha","connectorAlpha",a,100],["smartlinecolor","rawSmartLineColorCode",o,function(){return t.getColor("baseFontColor")}],["labelalpha","labelAlpha",a,100],["basefont","baseFont",o,"Verdana,sans"],["basefontsize","baseFontSize",a,10],["basefontcolor","baseFontColor",o,b],["labelfontcolor","labelFontColor",o,"$baseFontColor"],["showtooltip","showTooltip",a,1],["percentofprevious","percentOfPrevious",a,0],["animationduration","animationDuration",a,1,function(e){e.animationDuration*=1e3}]]),d.connectorColor=l(d.rawSmartLineColorCode,d.connectorAlpha),f(c),c.nLineHeight=c.lineHeight.match(/^\d+/)[0],p(c,d,[[i,"lineHeight",a,d.baseFontSize]]),delete c.nLineHeight,g(m),d.datalabelDisabled=!d.showLabels&&!d.showValues,h.data=this.getNormalizeDataSet(u),g(v)},_checkValidData:function(e){var t=this.chart;return!(!e||!e.length)||(t.setChartMessage(),!1)},addLegend:function(){var e,t=this.chart,r=t.jsonData.chart,o=this.JSONData.data,i=t.components.legend;for(i.emptyItems(),t=0;te&&(r=e),S=void 0===l.offsetVal?0:"function"==typeof l.offsetVal?l.offsetVal():l.offsetVal,!u)for(I=this.LABEL_PLACEMENT_ITERATOR_INDEX_START,h=g.length;If?"crisp":i}).show()),n=0===t&&p?c+(n[1].plot.dy||0):f+(l.dy||0),s!==i?l.dataLabel.transform("t"+h+u+n).show():l.dataLabel&&l.dataLabel.hide()),l.dataLabel.attr({"text-bound":[d.backgroundColor,d.borderColor,d.borderThickness,d.borderPadding,d.borderRadius,d.borderDash]})},drawAllLabels:function(){var e,t,r,o,a=this.chart,n=a.graphics,s=this.graphics.plotItems,l=this.labelDrawingConfig,c=n.datalabelsGroup,h=["fontFamily","fontSize","fontWeight","fontStyle"],d={},a=a.components.paper,u=this.conf;for(o=0,t=h.length;oo&&(this.point=t,this.sLabel=r)):(this.point=t,this.sLabel=r)},B.setAll=function(e,t,r){var o=this.point,a=this.sLabel;this.flag=e,o&&a?(e=o.labelX+a.oriTextWidth,o=t.labelX+r.oriTextWidth,et}])}(),H.set=function(){return V.set.apply(H,[function(e,t){return e.labelX+t.oriTextWidth},function(e,t){return ea.labelX?(_=a.labelX+n.width,_=L.getSmartText(a.displayValue,_,Number.POSITIVE_INFINITY,!0),a.labelX=2,a.isLabelTruncated=!0,a.displayValue=_.text,a.virtualWidth=_.maxWidth,N.setAll(!0,a,_)):!D&&a.labelX+n.width>R&&(_=L.getSmartText(a.displayValue,R-a.labelX,Number.POSITIVE_INFINITY,!0),a.isLabelTruncated=!0,a.displayValue=_.text,a.virtualWidth=_.maxWidth,B.setAll(!0,a,_))),a.pWidth=a.virtualWidth=a.virtualWidth||n.width,f+=i,_=s):(a.oriText=a.displayValue,s=1==l.useSameSlantAngle?c?v*a.y/c:v:c?v*k(a.y/c):v,a.labelWidth>2*s&&!r?(a.labelAline=P,a.labelX=0):(a.labelAline=I,a.labelX=d),i=2*b,a.displayValue=L.getSmartText(a.displayValue,2*s+i,Number.POSITIVE_INFINITY,!0).text,a.labelY=(h?f:f-C*_)-w-S),a.plotX=d,a.plotY=f);this.findBestPosition.call(this,e,{lTrimmedInfo:N,rTrimmedInfo:B,lLargestLabel:j,rLargestLabel:H})},findBestPosition:function(e,t){var r=this.conf,o=this.chart,a=o.config,i=0,n=t.lTrimmedInfo,s=t.rTrimmedInfo,l=t.lLargestLabel,c=t.rLargestLabel,h=o.linkedItems.smartLabel,d=0,u=r.streamLinedData,p=r.blankSpace,r=a.width-r.blankSpace;if(!n.flag||!s.flag){if(s.flag){if(!l.point)return;i=s.sLabel,i=i.oriTextWidth-i.width,l=l.point.labelX-p,i=-Math.ceil(Math.min(i,l))}else if(n.flag){if(!c.point)return;i=n.sLabel,i=i.oriTextWidth-i.width,l=r-(c.point.labelX+c.sLabel.width),i=Math.ceil(Math.min(i,l))}if(i)for(l=0,c=e.length;li?h.getSmartText(a.oriText,a.pWidth,Number.POSITIVE_INFINITY,!0):h.getSmartText(a.oriText,a.pWidth+i,Number.POSITIVE_INFINITY,!0),a.isLabelTruncated&&(d=o.width-a.pWidth)):o=0g?u=f:fg&&(u=o),o=k((C(u-g,2)-C(s,2))/C(t,2)),r=-o,f={x:b(C(t,2)*o/(u-g)*100)/100,y:b(100*(C(s,2)/(u-g)+g))/100},o={x:b(C(h,2)*o/(u-a)*100)/100,y:b(100*(C(i,2)/(u-a)+a))/100},c={x:b(C(t,2)*r/(u-g)*100)/100,y:b(100*(C(s,2)/(u-g)+g))/100},u={x:b(C(h,2)*r/(u-a)*100)/100,y:b(100*(C(i,2)/(u-a)+a))/100},f={topLeft:c,bottomLeft:u,topRight:f,bottomRight:o};for(d in f)(isNaN(f[d].x)||isNaN(f[d].y))&&(f[d].x="topLeft"===d||"bottomLeft"===d?-t:t,f[d].y="bottomRight"===d||"bottomLeft"===d?a:g);a=f.topLeft,r=f.bottomLeft,d=p+a.x,u=p+f.topRight.x,g=p+r.x,p+=f.bottomRight.x,a=a.y,r=r.y,f=["A",t,s,0,0,0,u,a],o=["A",t,s,0,1,1,u,a],c=["A",h,i,0,0,1,g,r],h=["A",h,i,0,1,0,g,r],h={front:["M",d,a].concat(f,["L",p,r],c,["Z"]),back:["M",d,a].concat(o,["L",p,r],h,["Z"]),silhuette:["M",d,a].concat(o,["L",p,r],c,["Z"])},e||(h.top=["M",d,a].concat(f,["L",u,a],["A",t,s,0,1,0,d,a],["Z"])),d=h}else d=r*i,u=o*i,a=w(5,r),r=w(2,2*d),o=w(2,r),i=o/i,d={top:["M",s,t,"L",e,t+d,h,t,e,t-d,"Z"],front:["M",s,t,"L",e,t+d,h,t,g,f,e,f+u,p,f,"Z"],topLight:["M",s,t+.5,"L",e,t+d+.5,e,t+d-r,s+i,t,"Z"],topLight1:["M",h,t+.5,"L",e,t+d+.5,e,t+d-o,h-i,t,"Z"],silhuette:["M",s,t,"L",e,t-d,h,t,g,f,e,f+u,p,f,"Z"],centerLight:["M",e,t+d,"L",e,f+u,e-5,f+u,e-a,t+d,"Z"],centerLight1:["M",e,t+d,"L",e,f+u,e+5,f+u,e+a,t+d,"Z"]};return d},r=function(r,o){var i,n,s,c,h,p=this,g=!1,f=!1,m=this._3dAttr;if("string"==typeof r&&void 0!==o&&null!==o&&(i=r,r={},r[i]=o),"string"==typeof r)p=e[r]?this._3dAttr[r]:this._attr(r);else{for(i in r)n=r[i],e[i]?(m[i]=n,"fill"===i?(n&&n.linearGradient&&n.stops&&n.stops[0]&&(n=n.stops[0][1]),N.test(n)?(c=new B(n),s=c.get("hex"),c=100*c.get("a")):n&&n.FCcolor?(s=n.FCcolor.color.split(u)[0],c=n.FCcolor.opacity.split(u)[0]):E.test(n)&&(s=n.replace(M,R),c=a(m.opacity,100)),m.color=s,m.opacity=c,f=!0):"color"===i||"opacity"===i?(m.fill=F(l(m.color,a(m.opacity,100))),f=!0):"stroke"===i||"strokeColor"===i||"strokeAlpha"===i?m.is2D&&("stroke"===i?(n&&n.linearGradient&&n.stops&&n.stops[0]&&(n=n.stops[0][1]),N.test(n)?(c=new B(n),s=c.get("hex"),c=100*c.get("a")):n&&n.FCcolor?(s=n.FCcolor.color.split(u)[0],c=n.FCcolor.opacity.split(u)[0]):E.test(n)&&(s=n.replace(M,R),c=a(m.opacity,100)),m.strokeColor=s,m.strokeAlpha=c):m.stroke=l(m.strokeColor,a(m.strokeAlpha,100)),m.isFunnel?this.funnel2D.attr("stroke",m.stroke):this.borderElement.attr("stroke",m.stroke)):"stroke-width"===i?m.is2D&&(m.isFunnel?this.funnel2D.attr(i,n):this.borderElement.attr(i,n)):g=!0):this._attr(i,n);m.is2D?(g&&(s=t(m.x,m.y,m.R1,m.R2,m.h,m.r3dFactor,m.is2D),p.shadowElement.attr({path:s.silhuette}),m.isFunnel?p.funnel2D.attr({path:s.silhuette}):(p.lighterHalf.attr({path:s.lighterHalf}),p.darkerHalf.attr({path:s.darkerHalf}),p.borderElement.attr({path:s.silhuette}))),f&&(m.isFunnel?p.funnel2D.attr("fill",F(l(m.color,a(m.opacity,100)))):(!1===m.use3DLighting?s=c=m.color:(s=L(m.color,80),c=d(m.color,80)),p.lighterHalf.attr("fill",F(l(c,a(m.opacity,100)))),p.darkerHalf.attr("fill",F(l(s,a(m.opacity,100))))))):(g&&(s=t(m.x,m.y,m.R1,m.R2,m.h,m.r3dFactor,m.is2D),p.shadowElement.attr("path",s.silhuette),m.isFunnel?(p.front.attr("path",s.front),p.back.attr("path",s.back),p.toptop&&s.top&&p.toptop.attr("path",s.top)):(p.front.attr("path",s.front),p.toptop.attr("path",s.top),p.topLight.attr("path",s.topLight),p.topLight1.attr("path",s.topLight1),p.centerLight.attr("path",s.centerLight),p.centerLight1.attr("path",s.centerLight1))),f&&(s=m.color,c=m.opacity,m.isFunnel?(f=d(s,60),g=L(s,60),p.back.attr("fill",F({FCcolor:{color:g+u+f+u+s,alpha:c+u+c+u+c,ratio:"0,60,40",angle:0}})),p.front.attr("fill",F({FCcolor:{color:s+u+f+u+g,alpha:c+u+c+u+c,ratio:"0,40,60",angle:0}})),p.toptop&&p.toptop.attr("fill",F({FCcolor:{color:f+u+g,alpha:c+u+c,ratio:"0,100",angle:-65}}))):(f=d(s,80),i=d(s,70),g=L(s,80),n="0,"+c,h=s+u+i,m=5/(m.R1*m.r3dFactor)*100,p.centerLight.attr("fill",F({FCcolor:{color:h,alpha:n,ratio:"0,100",angle:0}})),p.centerLight1.attr("fill",F({FCcolor:{color:h,alpha:n,ratio:"0,100",angle:180}})),p.topLight.attr("fill",F({FCcolor:{color:i+u+i+u+s+u+s,alpha:c+u+c+u+0+u+0,ratio:"0,50,"+m+u+(50-m),angle:-45}})),p.topLight1.attr("fill",F({FCcolor:{color:i+u+s+u+g,alpha:c+u+c+u+c,ratio:"0,50,50",angle:0}})),p.front.attr("fill",F({FCcolor:{color:s+u+s+u+g+u+g,alpha:c+u+c+u+c+u+c,ratio:"0,50,0,50",angle:0}})),p.toptop.attr("fill",F({FCcolor:{color:f+u+s+u+g+u+g,alpha:c+u+c+u+c+u+c,ratio:"0,25,30,45",angle:-45}})))))}return p},o=function(){var e=this.shadowElement;o&&e.shadow.apply(e,arguments)},i=function(e,t,r){var o=e.chart.get(T,D),a=o.duration,i=o.dummyObj,n=o.animObj,s=o.animType;return function(o,l,c){return(o=r[o])?o.animateWith(i,n,{path:l},a,s,e.postPlotCallback):(c=c||_,e.postPlotCallback(),t.path(l,r).attr(c))}};return function(e,n,s,l,c,h,d,u,p,g,f,m){var v,b=this.chart.graphics.datasetGroup;if("object"==typeof e&&(n=e.y,s=e.R1,l=e.R2,c=e.h,h=e.r3dFactor,d=e.gStr,u=e.is2D,m=e.use3DLighting,p=e.renderer,f=e.isHollow,g=e.isFunnel,v=e.graphics,e=e.x),h=a(h,.15),e={x:e,y:n,R1:s,R2:l,h:c,r3dFactor:h,is2D:u,use3DLighting:m,isHollow:f,isFunnel:g,renderer:p},n=t(e),s="silhuette lighterHalf darkerHalf centerLight centerLight1 front toptop topLight topLight1 shadowElement funnel2D back".split(" "),v){if(l=v._3dAttr,l.isFunnel!==e.isFunnel||l.is2D!==e.is2D||l.isHollow!==e.isHollow)for(c=0,f=s.length;cthis.distributionLength&&!r){f.exhaustion=!0;for(a in this.nonDistributedMatrix)for(c=this.nonDistributedMatrix[a],s=0,r=c.length;sparseInt(a,10)?l.distributionFactor=o.getEffectiveLength()-1-a:l.distributionFactor=0),o.set(m++,l),h=!h;this.distributedMatrix=d.mergeWith(p),this.altDistributedMatrix=u.mergeWith(g)}else{for(n in this.nonDistributedMatrix)for(c=this.nonDistributedMatrix[n],s=0,r=c.length;sparseInt(n,10)?l.distributionFactor=o.getEffectiveLength()-1-n:l.distributionFactor=0),o.set(m++,l);this.distributedMatrix=d.mergeWith(p)}},r.prototype.getDistributedResult=function(){var t=e,r=t.chart,o=t.conf.alignmentType,t=[],a=r.isLegendRight;return r.components.legend.config.width||(a=0),r.isLegendRight=a,this.distribute(a),a?(r=o.default,t.push(this.distributedMatrix)):(r=this.flags.exhaustion?o.alternate:o.default,this.flags.exhaustion?[].push.call(t,this.distributedMatrix,this.altDistributedMatrix):t.push(this.distributedMatrix)),{forceMatrix:this.forcePushObj,suggestion:r,matrix:t}},{DistributionMatrix:r,setContext:function(t){e=t},invokeHookFns:function(){var t,r=[],o=e;switch(arguments.length){case 3:o=arguments[2];case 2:r=arguments[1];case 1:t=arguments[0];break;default:return}t&&"function"==typeof t&&t.apply(o,r)},copyProperties:function(t,r,o){var a,i,n,s,l,c,h,d=function(){};for(a=0,i=o.length;a=t?t/200:.2}],["usesameslantangle","useSameSlantAngle",r,function(e){return e.streamLinedData?0:1}],["ishollow","isHollow",r,void 0,function(e){void 0===e.isHollow&&(e.isHollow=e.streamLinedData?1:0)}]]),e.config.PLOT_COLOR_INDEX_START=t.streamLinedData?-1:0},preDrawingHook:function(){var e=this.components.data,t=this.conf;t.streamLinedData||e.splice(0,0,{displayValue:o,y:t.sumValue})},prePointProcessingHookFn:function(e){var t,r,o=this.chart,i=o.config,n=this.conf,s=i.canvasWidth,l=o.linkedItems.smartLabel,c=!n.streamLinedData;(t=e[0])&&(t.pseudoPoint=!0),t&&t.displayValue&&(l.useEllipsesOnOverflow(o.config.useEllipsesWhenOverflow),l.setStyle(t.style),a(t.style),o=parseFloat(t.style.lineHeight.match(/^\d+/)[0]||n.lineHeight,10),r=l.getOriSize(t.displayValue).height,s=l.getSmartText(t.displayValue,s,r),t.displayValue=s.text,s.tooltext&&(t.originalText=s.tooltext),t.labelWidth=l.getOriSize(s.text).width,i.marginTop+=o+4),n.totalValue=c?e[0].y-e[1].y:0,n.offsetVal=function(r){return c?-(e[r+1]&&e[r+1].y||0):t.y}},getPointInContext:function(){function e(e){this.displayValue=e.displayValue,this.displayValueArgs=e.displayValueArgs,this.style=e.style,this.appliedStyle=e.appliedStyle,this.categoryLabel=e.categoryLabel,this.toolText=e.toolText,this.legendCosmetics=e.legendCosmetics,this.showInLegend=e.showInLegend,this.y=e.y,this.shadow=e.shadow,this.smartTextObj=e.smartTextObj,this.color=e.color,this.legendItemId=e.legendItemId,this.name=e.name,this.alpha=e.alpha,this.rawColor=e.rawColor,this.rawAlpha=e.rawAlpha,this.legendColor=e.legendColor,this.borderColor=e.borderColor,this.borderWidth=e.borderWidth,this.link=e.link,this.isSliced=e.isSliced,this.doNotSlice=e.doNotSlice,this.hoverEffects=e.hoverEffects,this.rolloverProperties=e.rolloverProperties}var t=this;return e.upperRadiusFactor=1,e.prototype.getModifiedCurrentValue=function(){},e.prototype.getRatioK=function(e,r,o,a){e=t.conf;var i=e.useSameSlantAngle;return e.streamLinedData?this.y?i?this.y/a:Math.sqrt(this.y/a):1:.2+r*o},e.prototype.getLowestRadiusFactor=function(e){var r=t.conf,o=r.useSameSlantAngle;return r.streamLinedData?this.y?o?this.y/e:Math.sqrt(this.y/e):1:.2},e},datasetCalculations:function(e){var t,r,o,a=this.conf,i=this.chart.components.numberFormatter,n={},s=a.streamLinedData,l=a.percentOfPrevious;for(n.highestValue=Number.NEGATIVE_INFINITY,n.refreshedData=[],a=n.sumValue=n.countPoint=0,t=e.length;ae))){for(w?(o=a/(k-o),k=(f=f(p,"value"))?a/f:a):k=o=k?a/k:a,u.unitHeight=o,u.lastRadius=r,u.globalMinXShift=0,f=u.alignmentType={},f.default=1,f.alternate=2,o=new m(T(a/A)),m=0;m=t?t/200:.2}],["use3dlighting","use3DLighting",a,1]]),e.config.PLOT_COLOR_INDEX_START=0},preDrawingHook:function(){},draw:function(){this._configure();var e,t,o,a,i,n,s,l=this,c=l.chart,h=c.getJobList(),g=c.config,f=l.conf,m=l.utils(l).DistributionMatrix,v=l.trackerArgs=[],b=l.calculatePositionCoordinate,y=g.marginTop,x=g.marginBottom,w=l.components.data,C=c.graphics.datalabelsGroup,k=2,S=w.length,_=i=0,L=f.lineHeight,A=Math.floor,T=Math.min,D=l.graphics.plotItems,P=[];if(f.sumValue){for(l.labelDrawingConfig=l.labelDrawingConfig||[],l.labelDrawingConfig.length=0,l.preDrawingSpaceManagement(),l.hide(l.graphics.plotItems),l.rolloverResponseSetter=function(e,t){return function(r){e.graphic.attr(t),u.call(this,c,r,"DataPlotRollOver")}},l.rolloutResponseSetter=function(e,t){return function(r){e.graphic.attr(t),u.call(this,c,r,"DataPlotRollOut")}},l.legendClickHandler=function(e){return function(){l.legendClick(e,!0,!1)}},l.animateFunction=function(e){return function(){c._animCallBack(),e.attr({opacity:1})}},l.postPlotCallback=function(){},g.canvasTop+=g.marginTop-y,g.effCanvasHeight=e=g.canvasHeight-(g.marginTop+g.marginBottom)+(y+x),g.effCanvasWidth=y=g.width-(g.marginLeft+g.marginRight),a=f.drawingRadius=y/k,f.x=a+g.canvasLeft,k=f.slicingDistance,x=k/2,a=Math.atan(y/2/e),f.unitHeight=o=e/f.sumValue,f.lastRadius=0,f.globalMinXShift=Math.floor(L/Math.cos(a)),a=f.alignmentType={},a.default=1,a.alternate=2,n=new m(A(e/L)),m=0,e=S;mo&&(this.point=t,this.sLabel=r)):(this.point=t,this.sLabel=r)},E.setAll=function(e,t,r){var o=this.point,a=this.sLabel;this.flag=e,o&&a?(e=o.labelX+a.oriTextWidth,o=t.labelX+r.oriTextWidth,et}])}(),M.set=function(){return P.set.apply(M,[function(e,t){return e.labelX+t.oriTextWidth},function(e,t){return ea.labelX?(k=a.labelX+n.width,k=S.getSmartText(a.displayValue,k,Number.POSITIVE_INFINITY,!0),a.labelX=2,a.isLabelTruncated=!0,a.displayValue=k.text,a.virtualWidth=k.maxWidth,I.setAll(!0,a,k)):!L&&a.labelX+n.width>R&&(k=S.getSmartText(a.displayValue,R-a.labelX,Number.POSITIVE_INFINITY,!0),a.isLabelTruncated=!0,a.displayValue=k.text,a.virtualWidth=k.maxWidth,E.setAll(!0,a,k)),a.pWidth=a.virtualWidth||n.width,A=a.distributionFactor*T,a.labelY=m+x+i/2+A),m+=i,a.plotX=u,a.plotY=m-i/2,k=s,a.virtualWidth=a.virtualWidth||n.width);this.findBestPosition.call(this,e,{lTrimmedInfo:I,rTrimmedInfo:E,lLargestLabel:O,rLargestLabel:M})},getPointInContext:function(){function e(e){this.displayValue=e.displayValue,this.displayValueArgs=e.displayValueArgs,this.style=e.style,this.appliedStyle=e.appliedStyle,this.categoryLabel=e.categoryLabel,this.toolText=e.toolText,this.legendCosmetics=e.legendCosmetics,this.showInLegend=e.showInLegend,this.y=e.y,this.legendColor=e.legendColor,this.shadow=e.shadow,this.smartTextObj=e.smartTextObj,this.color=e.color,this.alpha=e.alpha,this.name=e.name,this.legendItemId=e.legendItemId,this.rawColor=e.rawColor,this.rawAlpha=e.rawAlpha,this.borderColor=e.borderColor,this.borderWidth=e.borderWidth,this.link=e.link,this.isSliced=e.isSliced,this.doNotSlice=e.doNotSlice,this.hoverEffects=e.hoverEffects,this.rolloverProperties=e.rolloverProperties}var t=this;return e.upperRadiusFactor=0,e.prototype.getModifiedCurrentValue=function(e){return e+this.y/2},e.prototype.getRatioK=function(e){var r=t.conf;return e?e/r.sumValue:1},e.prototype.getLowestRadiusFactor=function(){return 1},e},drawIndividualPlot:function(e,t){var r,a=this.conf,i=this.graphics.plotItems,l=e.y,c=e.displayValue,h=a.isSliced,d=this.chart,u=this.components.data,p=d.graphics.trackerGroup,f=d.components.paper,m=!!e.link,v=a.distanceAvailed;r=e.labelAline;var b=e.appliedStyle,y=e.style,x=d.components.legend,d=d.get(n,s).duration,w=this.labelDrawingConfig,y=b&&b.color||y&&y.color||this._chartLevelAttr.color,h=h?1:e.isSliced,y={text:c,ishot:!0,direction:o,cursor:m?"pointer":o,x:0,y:0,fill:y,"text-anchor":g[r]};if(null!==l&&void 0!==l&&e.shapeArgs)return(r=i[t])?(e.plot=r,e.shapeArgs.graphics=r.graphic,e.shapeArgs.animationDuration=d,r.graphic=this.pyramidFunnelShape(e.shapeArgs).attr({fill:e.color,"stroke-width":e.borderWidth,stroke:e.borderColor}),r.graphic.show()):(e.shapeArgs.graphics=r,e.shapeArgs.animationDuration=d,e.plot=r=i[t]={graphic:this.pyramidFunnelShape(e.shapeArgs).attr({fill:e.color,"stroke-width":e.borderWidth,stroke:e.borderColor}),trackerObj:f.path(p)}),w[t]=i={args:y,css:b,point:e},a.showTooltip?r.trackerObj.tooltip(e.toolText):r.trackerObj.tooltip(!1),r.value=l,r.displayValue=c,r.sliced=!!h,r.cursor=m?"pointer":o,r.x=e.x,r.index=t,x.configureItems(u[t].legendItemId,{legendClickFN:this.legendClickHandler({datasetStore:this,plotItem:r})}),l=c={},e.hoverEffects&&(l={color:e.rawColor,opacity:e.rawAlpha,"stroke-width":e.borderWidth,stroke:e.borderColor},c=e.rolloverProperties,c={color:c.color,opacity:c.alpha,"stroke-width":c.borderWidth,stroke:c.borderColor}),u={datasetStore:this,plotItem:r},r.trackerObj.unclick(this.slice),!e.doNotSlice&&r.trackerObj.click(this.slice,u),r.trackerObj.mouseup(this.plotMouseUp,r),r.trackerObj.hover(this.rolloverResponseSetter(r,c),this.rolloutResponseSetter(r,l)),i.context=u,i.actions={click:this.slice,hover:[this.rolloverResponseSetter(r,c),this.rolloutResponseSetter(r,l)]},r.dy=0,a.noOfGap&&(v&&(r._startTranslateY=l="t0,"+v,r.dy=r.distanceAvailed=v,r.graphic.attr({transform:l}),i.transform=l),a.slicingGapPosition[e.x]&&(a.distanceAvailed-=a.perGapDistance)),r.point=e,r;w[t]={args:y,css:b,point:e}},getTooltipMacroStub:function(e){var t,r=this.conf,o=this.chart.components.numberFormatter,a=this.__base__;return t=r.percentOfPrevious?e.pValue:o.percentValue(e.dataValue/e.prevValue*100),a=a.getTooltipMacroStub(e),a.percentValue=r.percentOfPrevious?o.percentValue(e.dataValue/e.highestValue*100):e.pValue,a.percentOfPrevValue=t,a}},"FunnelPyramidBase"])}]),e.register("module",["private","modules.renderer.js-dataset-hlineargauge",function(){var t=this,r=t.hcLib,o=r.pluckNumber,a=r.pluck,i=r.COMMASTRING,n=r.extend2,s=r.BLANKSTRING,l=r.getValidValue,c=r.parseUnsafeString,h=r.parseTooltext,d=r.graphics.convertColor,u=r.POSITION_MIDDLE,p=r.preDefStr,g=p.configStr,f=p.animationObjStr,m=p.POSITION_TOP,v=p.POSITION_BOTTOM,b=p.POSITION_MIDDLE,y=p.POSITION_START,p=p.POSITION_END,x=r.plotEventHandler,w=t.window,C=void 0!==w.document.documentElement.ontouchstart,r=Math,k=r.max,S=r.min,_={right:p,left:y,middle:b,start:y,end:p,center:b,undefined:s,BLANK:s};e.register("component",["dataset","hlineargauge",{pIndex:2,customConfigFn:"_createDatasets",init:function(e){this.pointerArr=e,this.idMap={},this.configure()},configure:function(){var e,t,r,n,u,p,g,f,b,y,x,w,C,k,S,_,L,A,T,D,P,I,E,O,M,R=this.chart,F=R.jsonData,V=F.chart,N=R.components,B=N.numberFormatter,N=N.colorManager,j=this.config||(this.config={}),H=this.components||(this.components={}),W=(F=F.pointers&&F.pointers.pointer)&&F.length||1,R=R.config.style;for(j.valuePadding=o(V.valuepadding,2),j.tooltipSepChar=a(V.tooltipsepchar,i),y=o(V.ticksbelowgauge,V.ticksbelowgraph,1),j.axisPosition=y?3:1,j.pointerOnOpp=n=Number(!o(V.pointerontop,y,1)),j.valueabovepointer=y=o(V.valueabovepointer,!n,1),j.valueInsideGauge=y===n?1:0,j.showPointerShadow=o(V.showpointershadow,V.showshadow,1),j.showTooltip=o(V.showtooltip,1),j.textDirection="1"===V.hasrtltext?"rtl":s,j.showGaugeLabels=o(V.showgaugelabels,1),j.colorRangeStyle={fontFamily:R.inCanfontFamily,fontSize:R.inCanfontSize,lineHeight:R.inCanLineHeight,color:R.inCancolor.replace(/^#?/,"#")},j.showValue=o(V.showvalue,1),j.editMode=o(V.editmode,0),j.pointerSides=R=o(V.pointersides,3),j.pointerBorderThickness=M=o(V.pointerborderthickness),j.showHoverEffect=y=o(V.showhovereffect,V.plothovereffect),j.upperLimit=o(V.upperlimit),j.lowerLimit=o(V.lowerlimit),j.startAngle=90*{top:1,right:0,left:2,bottom:3}[n?m:v],f=H.data||(H.data=[]),n=0;ng&&(t.sides=3),t.radius=g=o(e.radius,V.pointerradius,10),void 0!==u?(t.toolText=h(u,[1,2],{formattedValue:p},e,V),t.isTooltextString=!0):t.toolText=null!==p&&p,t.tempToolText=t.toolText,t.bgAlpha=b=o(e.alpha,e.bgalpha,V.pointerbgalpha,100),t.bgColor=x=a(e.color,e.bgcolor,V.pointerbgcolor,V.pointercolor,N.getColor("pointerBgColor")),t.fillColor=O=d(x,b),t.showBorder=o(e.showborder,V.showplotborder,1),t.borderAlpha=p=o(e.borderalpha,V.pointerborderalpha,100),t.borderColor=u=a(e.bordercolor,V.pointerbordercolor,N.getColor("pointerBorderColor")),t.pointerBorderColor=w=d(u,p),t.dataLink=l(e.link),t.editMode=o(e.editmode,j.editMode),0!==r&&(r||e.bghovercolor||V.pointerbghovercolor||V.plotfillhovercolor||e.bghoveralpha||V.pointerbghoveralpha||V.plotfillhoveralpha||0===e.bghoveralpha||0===V.pointerbghoveralpha||e.showborderonhover||V.showborderonhover||0===e.showborderonhover||0===V.showborderonhover||e.borderhoverthickness||V.pointerborderhoverthickness||0===e.borderhoverthickness||0===V.pointerborderhoverthickness||e.borderhovercolor||V.pointerborderhovercolor||e.borderhoveralpha||V.pointerborderhoveralpha||0===e.borderhoveralpha||0===V.pointerborderhoveralpha||e.hoverradius||V.pointerhoverradius||0===e.hoverradius||0===V.pointerhoverradius)&&(r=!0,S=a(e.bghovercolor,V.pointerbghovercolor,V.plotfillhovercolor,"{dark-10}"),k=o(e.bghoveralpha,V.pointerbghoveralpha,V.plotfillhoveralpha),D=o(e.showborderonhover,V.showborderonhover),void 0===D&&(D=e.borderhoverthickness||0===e.borderhoverthickness||e.borderhovercolor||e.borderhoveralpha||0===e.borderhoveralpha?1:C),_=a(e.borderhovercolor,V.pointerborderhovercolor,"{dark-10}"),C=o(e.borderhoveralpha,V.pointerborderhoveralpha),L=D?o(e.borderhoverthickness,V.pointerborderhoverthickness,T||1):0,A=o(e.hoverradius,V.pointerhoverradius,g+2),e=!!o(e.showhoveranimation,V.showhoveranimation,1),t.hoverAttr=D={},t.outAttr=P={},T!==L&&(D["stroke-width"]=L,P["stroke-width"]=T),P.fill=O,S=(T=/\{/.test(S))?N.parseColorMix(x,S)[0]:S,D.fill=d(S,o(k,b)),L&&(P.stroke=w,T=/\{/.test(_),D.stroke=d(T?N.parseColorMix(u,_)[0]:_,o(C,p))),A&&(e?(I={r:A},E={r:g}):(D.r=A,P.r=g))),t.rolloverProperties={enabled:r,hoverAttr:D,hoverAnimAttr:I,outAttr:P,outAnimAttr:E}},_manageSpace:function(e){var t,r,a=this.chart,i=this.components,n=a.config,l=this.config,c=a.linkedItems.smartLabel,h=n.canvasWidth,d=n.dataLabelStyle,p=n.style.trendStyle,g=a.jsonData,f=g.trendpoints&&g.trendpoints.point,m=o(parseInt(d.lineHeight,10),12),g=l.valuePadding,v=l.valueInsideGauge,b=r=0,y=0,x=0,w=0,C=0,k=0,S=a.components.scale.config.spaceTaken,_=0,L=this.pointerArr&&this.pointerArr.pointer&&this.pointerArr.pointer.length,A=l.pointerOnOpp,i=i.data;for(f&&a._configueTrendPoints(),c.useEllipsesOnOverflow(n.useEllipsesWhenOverflow),c.setStyle(d);_=a.sides?.5:a.sides%2?1.1-1/a.sides:1),x=Math.max(x,r),a.showValue&&a.displayValue!==s&&(a.isLabelString?(t=c.getSmartText(a.displayValue,h,e-x),a.displayValue=t.text,t.tooltext&&(a.originalText=t.tooltext)):t=c.getOriSize(a.displayValue),a.displayValue===s&&(t={height:m})),r=t&&0e&&(r=e),A?(3===l.axisPosition&&(C=Math.max(S.bottom,C),r=Math.max(S.bottom,r)),b=Math.max(b,r)):(1===l.axisPosition&&(k=Math.max(S.top,k),r=Math.max(S.top,r)),y=Math.max(r,y)),l.align=u;if(l.currentValuePadding=x,c.setStyle(p),f){for(n=n.trendPointConfig,_=0,L=n.length;_e&&(r=e),h.showOnTop?(1===l.axisPosition&&(k=Math.max(S.top,k),r=Math.max(S.top,r)),y=Math.max(y,r)):(3===l.axisPosition&&(C=Math.max(S.bottom,C),r=Math.max(S.bottom,r)),b=Math.max(r,b)));l.currentTrendPadding=w}return{top:y-k,bottom:b-C}},draw:function(e,r){var a,i,n,l,c=this,h=c.idMap,d=c.chart,u=d.components,p=d.config,m=d.graphics,v=m.datalabelsGroup,b=m.tempGroup,y=u.paper,k=u.scale,S=c.pointerArr&&c.pointerArr.pointer,u=p.canvasWidth,p=p.canvasHeight,_=c.config,p=_.pointerOnOpp?p:0,L=_.showPointerShadow,A=_.showTooltip,T=k.config.axisRange.min,D=k.config.axisRange.max,P=(D-T)/u,S=S&&S.length||1;a=k.config.prevAxisMinMax||(k.config.prevAxisMinMax={});var I,E,O,M,R,F,V=c.components.data,N=d.get(g,f),B=N.animObj,j=N.dummyObj,H=N.animType,N=(e||N).duration,W={pageX:0,pageY:0},G=function(e,t){var r=t[0];!1!==this.editMode&&(i=d._getDataJSON(),this.dragStartX=r)},z=function(){var e,r=this.config,o=d.chartInstance;if(!1!==this.config.editMode){(e=o&&o.jsVars)&&(e._rtLastUpdatedData=d._getDataJSON()),t.raiseEvent("RealTimeUpdateComplete",{data:"&value="+r.updatedValStr,updateObject:{values:[r.updatedValStr]},prevData:i.values,source:"editMode",url:null},o);try{w.FC_ChartUpdated&&w.FC_ChartUpdated(o.id)}catch(e){setTimeout(function(){throw e},1)}_.showTooltip?I.tooltip(r.toolText):I.tooltip(s)}},U=function(e,t){var r=t[2],a=C&&(C&&e.sourceEvent&&e.sourceEvent.touches&&e.sourceEvent.touches[0]||e)||W,i=k.getLimit(),n=i.min,i=i.max,l=o(this.itemValue,n),h=l-(this.dragStartX-r)*P,d=0,u=[],p=[];if(!1!==this.editMode){for(this.drag=!0,hi&&(h=i);dk+L&&(U=k-a+L),{x:U,y:t,align:b}},I=function(e,t){return{x:(e-p+(t-e)/2)*k/(m-p),y:S/2,width:(t-e)*k/(m-p),height:S}},K&&K.length)for(i=K.length;i--;)if(q=$[i].config,0!==x&&q.displayValue!==s&&(G=r.getOriSize(q.displayValue),q.setWidth&&(G=r.getSmartText(q.displayValue,q.setWidth,G.height,!0)),E=this.getPointerLabelXY(q.itemValue,t,A,G.height/2,G.width/2),q.isLabelString)){for(M=!1,R=1;!M&&(O=K[i+R]);)O.isLabelString?M=!0:R+=1;O&&(M=r.getOriSize(O.displayValue),T=P(O.y,t,A,M.height/2),R=T.x-M.width/2-(E.x+G.width/2),T=T.x-E.x,0>R&&(D=G.width+R,D>T&&(q.setWidth=D=T),D>z?(E=q.setWidth&&q.setWidth<=D?r.getSmartText(q.displayValue,q.setWidth,G.height,!0):r.getSmartText(q.displayValue,D,G.height,!0),q.displayValue=E.text,E.tooltext&&(q.originalText=E.tooltext)):(E=r.getSmartText(q.displayValue,z,G.height,!0),q.displayValue=E.text,E.tooltext&&(q.originalText=E.tooltext),R=2*R+z-4),q.setWidth=null,D=M.width+R-4,O.setWidth=D>T?T:D>z?D:z)),q.setWidth&&(E=r.getSmartText(q.displayValue,q.setWidth,G.height,!0),q.displayValue=E.text,E.tooltext&&(q.originalText=E.tooltext),q.setWidth=null)}if(this.drawPointerValues(e),r.setStyle(n),y&&F)for(i=0,e=y.length;iz&&E.height-4>X?r.getSmartText(A,E.width-4,E.height-4):r.getSmartText(A,E.width,E.height),A={"text-anchor":b,"vertical-align":b,x:E.x,y:E.y,direction:c,fill:n.color,text:G.text},(t=x.value)?(t.show(),t.animateWith(j,B,A,W,H).css(n).tooltip(G.tooltext)):t=x.value=h.text(A,n,u);else i=0;for(;x=J&&J[i++];)x.graphics.value.hide();if(w)for(i=0,e=C.length;i(R=T.x-M.width/2-(E.x+G.width/2))&&(T=T.x-E.x,D=G.width+R,D>T&&(y.setWidth=D=T),D>z?(G=y.setWidth&&y.setWidth<=D?r.getSmartText(y.displayValue,y.setWidth,G.height,!0):r.getSmartText(y.displayValue,G.width+R-4,G.height,!0),y.displayValue=G.text,G.tooltext&&(y.originalText=G.tooltext)):(G=r.getSmartText(y.displayValue,z,G.height,!0),y.displayValue=G.text,G.tooltext&&(y.originalText=G.tooltext),R=2*R+z-4),y.setWidth=null,D=M.width+R-4,O.setWidth=D>T?T:D>z?D:z)),y.setWidth&&(G=r.getSmartText(y.displayValue,y.setWidth,G.height,!0),y.displayValue=G.text,G.tooltext&&(y.originalText=G.tooltext),y.setWidth=null),j=y.showOnTop?-(v+G.height/2):S+N,B=y.isTrendZone?I(y.startValue,y.endValue).x:E.x,x.value||(x.value=h.text(u)),x.value.attr({x:B,y:j,text:y.displayValue,"text-anchor":_[E.align],fill:d(y.textColor||n.color),"font-weight":"normal",direction:c,title:y.originalText||s}),x.value.show()}else i=0;for(;y=Z&&Z[i++];)y.graphics.value.hide()},drawPointerValues:function(e){var t,r,o=this.chart,a=o.graphics.datalabelsGroup,i=o.components.paper,n=this.components.data,l=this.config,c=l.pointerOnOpp,h=l.valueInsideGauge,l=l.textDirection,d=o.linkedItems.smartLabel,u=this.pointerArr&&this.pointerArr.pointer,p=o.config.dataLabelStyle,u=u&&u.length,m=o.get(g,f),v=m.animObj,b=m.dummyObj,y=m.animType;e=(e||m).duration;var x,w,C,k=o.config,o=k.marginLeft,m={fontFamily:p.fontFamily,fontSize:p.fontSize,lineHeight:p.lineHeight,fontWeight:p.fontWeight,fontStyle:p.fontStyle},S=this.pool;for(d.useEllipsesOnOverflow(k.useEllipsesWhenOverflow);u--;)C=!1,k=n[u].graphics,r=n[u].config,x=r.displayValue,t=r.showValue,0!==t&&x!==s?(w=d.getOriSize(x),t=w.width/2,w=this.getPointerLabelXY(r.itemValue,h,c,w.height/2,t),x={"text-anchor":_[w.align],title:r.originalText||s,text:x,fill:p.color,direction:l,"text-bound":[p.backgroundColor,p.borderColor,p.borderThickness,p.borderPadding,p.borderRadius,p.borderDash]},(r=k.pointerValue)||(S&&S.pointerValue[0]?(r=k.pointerValue=S.pointerValue[0],S.pointerValue.splice(0,1)):(x.x=0,x.y=w.y,C=!0,r=k.pointerValue=i.text(x,m,a))),C||(r.attr(x).css(m),r.show()),t>o+w.x&&(w.x=t-o),r.animateWith(b,v,{x:w.x,y:w.y},e,y)):k.pointerValue&&k.pointerValue.hide()},getDataLimits:function(){var e,t,r,o,a,i=this.config,n=this.chart.jsonData,l=this.components.data||this.pointerArr&&this.pointerArr.pointer||n.dials&&n.dials.dial,n=(n=n.colorrange)&&n.color,c=l&&l.length,h=i.upperLimit,d=i.lowerLimit,u=0;a=0;var p=void 0===i.gaugeMax?-1/0:i.gaugeMax,g=void 0===i.gaugeMin?1/0:i.gaugeMin;for(e=0;eh&&(a=h),d&&ll&&g,g=S(g,l);return i.gaugeMax=p,i.gaugeMin=g,!1!==u&&(i.gaugeMax=u),!1!==a&&(i.gaugeMin=a),{forceMin:t!==g,forceMax:r!==p,max:p,min:g}},updateData:function(e,t,r){if(e===this.lastUpdatedObj)return!1;var o,a,i,d,u,p,m=this.chart,v=m.components.numberFormatter,b=this.components.data,y=this.components.data,y=y&&y.length||0,x=null,w=[];if(e=e.data,u=t||m.get(g,f),y){for(;y--;)a={},p={},i=b[y].config,(o=e[y])&&(d=o.value,m=o.tooltext,t=o.label,o=o.showlabel,void 0!==d&&d!==s?(a.value=p.value=d,x=p.displayvalue=p.tooltext=v.dataLabels(p.value),p.hasNewData=!0):p.value=i.formatedVal,t&&(p.displayvalue=t,p.hasNewData=!0),"0"==o&&(p.displayvalue=s,p.hasNewData=!0),m&&(m=l(c(m)),p.hasNewData=!0),p.hasNewData&&(w[y]=p,n(i,{itemValue:p.value,displayValue:"0"!==o?p.displayvalue||s:s,toolText:void 0!==m?h(m,[1,2],{formattedValue:x},a):i.setToolText?i.tempToolText:x})));return w.length&&(this.lastUpdatedObj=e,r&&this.draw(u,!0)),!!w.length}}}])}]),e.register("module",["private","modules.renderer.js-dataset-bullet",function(){var t=this.hcLib,r=t.preDefStr,o=t.BLANKSTRING,a=t.pluck,i=t.getValidValue,n=t.COMMASTRING,s=t.plotEventHandler,l=r.showHoverEffectStr,c=r.configStr,h=r.animationObjStr,d=t.getColorCodeString,u=r.ROUND,p=r.miterStr,g=t.HUNDREDSTRING,f=Math,m=f.max,v=f.min,b=f.abs,y=r.colors.FFFFFF,x=t.graphics.convertColor,w=t.toRaphaelColor,C=t.COMMASPACE,k=t.getFirstValue,S=t.graphics.getDarkColor,_=this.window,f=void 0!==_.document.documentElement.ontouchstart,L=t.CLICK_THRESHOLD_PIXELS,A="rgba(192,192,192,"+(/msie/i.test(_.navigator.userAgent)&&!_.opera?.002:1e-6)+")",T={true:void 0,false:"crisp"},D=r.POSITION_START,P=r.POSITION_TOP,I=r.POSITION_MIDDLE,E=r.PLOTFILLCOLOR_STR,r=t.TOUCH_THRESHOLD_PIXELS,O=f?r:L,M=t.pluckNumber,R=t.schedular;e.register("component",["dataset","bullet",{init:function(e){var t=this.chart,r=t.components;if(!e)return!1;this.JSONData=e,this.yAxis=r.scale,this.chartGraphics=t.chartGraphics,this.components={},this.graphics={},this.visible=1===M(this.JSONData.visible,!Number(this.JSONData.initiallyhidden),1),this.configure(),!1!==t.hasLegend&&this._addLegend()},configure:function(){var e,r=this.chart,o=this.config,i=this.JSONData,n=r.jsonData.chart,s=r.components.colorManager,l=o.plotColor=s.getColor(E),c=M(i.dashed,n.plotborderdashed);M(n.useplotgradientcolor,1);var h,d,p,f=t.getDashStyle,v=this.components.data,b=r.isBar,w=r.is3D,C=r.isStacked;o.targetCapStyle=h=a(n.targetcapstyle,u).toLowerCase(),"butt"!==h&&h!==u&&"square"!==h&&"inherit"!==h&&(o.targetCapStyle=u),o.upperLimit=M(n.upperlimit),o.lowerLimit=M(n.lowerlimit),o.initAnimation=!0,e=o.showplotborder=M(n.showplotborder,0),o.plotDashLen=h=M(n.plotborderdashlen,5),o.plotDashGap=d=M(n.plotborderdashgap,4),o.plotfillAngle=M(360-n.plotfillangle,b?180:90),o.plotFillAlpha=p=a(i.alpha,n.plotfillalpha,g),o.plotColor=a(n.plotfillcolor,l),o.isRoundEdges=l=M(n.useroundedges,0),o.plotRadius=M(n.useRoundEdges,o.isRoundEdges?1:0),o.plotFillRatio=a(i.ratio,n.plotfillratio),o.plotgradientcolor=t.getDefinedColor(n.plotgradientcolor,s.getColor("plotGradientColor")),o.showPlotBorderOnHover=M(n.showplotborderonhover,0),o.plotBorderAlpha=a(n.plotborderalpha,p,g),o.plotBorderColor=a(n.plotbordercolor,w?y:s.getColor("plotBorderColor")),o.plotBorderThickness=e=e?M(n.plotborderthickness,0):0,o.plotBorderDashStyle=c?f(h,d,e):"none",o.showValue=M(i.showvalue,n.showvalue,1),o.valuePadding=M(n.valuepadding,2),o.showShadow=l||w?M(n.showshadow,1):M(n.showshadow,s.getColor("showShadow")),o.showHoverEffect=M(n.plothovereffect,n.showhovereffect,0),o.showTooltip=M(n.showtooltip,1),o.stack100Percent=r=M(r.stack100percent,n.stack100percent,0),o.definedGroupPadding=m(M(n.plotspacepercent),0),o.plotSpacePercent=m(M(n.plotspacepercent,20)%100,0),o.maxColWidth=M(b?n.maxbarheight:n.maxcolwidth,50),o.showPercentValues=M(n.showpercentvalues,C&&r?1:0),o.showPercentInToolTip=M(n.showpercentintooltip,C&&r?1:0),o.plotPaddingPercent=M(n.plotpaddingpercent),o.rotateValues=M(n.rotatevalues)?270:0,o.placeValuesInside=M(n.placevaluesinside,0),o.use3DLighting=M(n.use3dlighting,1),v||(this.components.data=[]),o.plotAsDot=v=M(n.plotasdot,0),o.plotFillPercent=M(n.plotfillpercent,v?25:40),o.targetFillPercent=M(n.targetfillpercent,60),o.targetThickness=M(n.targetthickness,3),v=o.targetalpha=M(n.targetalpha,100),o.targetColor=x(a(n.targetcolor,s.getColor(E)),v),this._setConfigure()},_setConfigure:function(e){var r,n,s,l,c,h,d,u,p,g,f,b,y,_,L,A,T,D,P,I,E=this.chart,O=this.config,R=this.JSONData,F=e||R.data,V=F&&F.length,N=E.config.categories,N=N&&N.length,V=e&&e.data.length||v(N,V),B=E.jsonData.chart,N=E.components.colorManager,j=O.showplotborder,H=O.showPlotBorderOnHover,W=O.plotColor,G=t.parseUnsafeString,z=G(a(B.tooltipsepchar,C)),U=M(B.seriesnameintooltip,1),X=t.parseTooltext,Y=O.plotBorderThickness,q=O.isRoundEdges,K=O.showHoverEffect,$=O.plotFillAngle,J=O.plotBorderAlpha,Z=O.plotBorderDashStyle,Q=t.getDashStyle,ee=this.components.data,te=E.isBar,re=E.is3D,oe=-1/0,ae=1/0,ie=E.components.numberFormatter,ne=function(e){return O.showTooltip?null===r?e=!1:void 0!==e?(l=[1,2,3,4,5,6,7,26,27],n={formattedValue:r,targetValue:f.target,targetDataValue:f.toolTipValueTarget},e=X(e,l,n,p,B,R)):(U&&(s=k(R&&R.seriesname)),e=s?s+z:o,e+=f.label?f.label+z:o):e=!1,e};for(ee||(ee=this.components.data=[]),E=0;Eg&&!q&&(c=$,$=te?180-$:360-$),f.colorArr=g=t.graphics.getColumnColor(W,d,void 0,$,q,O.plotBorderColor,J.toString(),te?1:0,!!re),0!==K&&(b=a(p.hovercolor,R.hovercolor,B.plotfillhovercolor,B.columnhovercolor,W),y=a(p.hoveralpha,R.hoveralpha,B.plotfillhoveralpha,B.columnhoveralpha,d),_=a(p.hovergradientcolor,R.hovergradientcolor,B.plothovergradientcolor,O.plotgradientcolor),!_&&(_=o),_=a(p.hoverratio,R.hoverratio,B.plothoverratio,void 0),L=M(360-p.hoverangle,360-R.hoverangle,360-B.plothoverangle,$),A=a(p.borderhovercolor,R.borderhovercolor,B.plotborderhovercolor,B.plotfillhovercolor,O.plotBorderColor),T=a(p.borderhoveralpha,R.borderhoveralpha,B.plotborderhoveralpha,J,d),d=M(p.borderhoverthickness,R.borderhoverthickness,B.plotborderhoverthickness,Y),D=M(p.borderhoverdashed,R.borderhoverdashed,B.plotborderhoverdashed),P=M(p.borderhoverdashgap,R.borderhoverdashgap,B.plotborderhoverdashgap,void 0),I=M(p.borderhoverdashlen,R.borderhoverdashlen,B.plotborderhoverdashlen,h),D=D?Q(I,P,d):u,1==K&&b===W&&(b=S(b,90)),b=t.graphics.getColumnColor(b,y,_,L,q,A,T.toString(),te?1:0,!1),f.setPlotRolloutAttr={fill:re?[w(g[0]),!O.use3DLighting]:w(g[0]),stroke:j&&w(g[1]),"stroke-width":Y,"stroke-dasharray":u},f.setPlotRolloverAttr={fill:re?[w(b[0]),!O.use3DLighting]:w(b[0]),stroke:w(b[1]),"stroke-width":H?d||1:d,"stroke-dasharray":D}),0!==K&&(K||B.targethovercolor||B.targethoveralpha||0===B.targethoveralpha||B.targethoverthickness||0===B.targethoverthickness)&&(K=!0,u={},g={},_=M(B.targethoverthickness,O.targetThickness+2),O.targetThickness!==_&&(u["stroke-width"]=_,g["stroke-width"]=O.targetThickness),b=a(B.targethovercolor,"{dark-10}"),y=M(B.targethoveralpha,O.targetalpha),_&&(g.stroke=O.targetColor,_=/\{/.test(b),u.stroke=x(_?N.parseColorMix(a(B.targetcolor,W),b)[0]:b,y)),f.tagetHoverAttr=u,f.targetOutAttr=g),r=f.toolTipValue,W=i(G(a(p.tooltext,R.plottooltext,B.plottooltext))),f.toolText=ne(W),f.setTooltext=f.toolText,c&&($=c),W=i(G(a(p.tooltexttarget,R.targettooltext,B.targettooltext))),f.toolTextTarget=ne(W);O.maxValue=oe,O.minValue=ae},_manageSpace:function(e){var t=this.config,r=this.components.data,a=this.chart,i=a.components.caption.config,n=a.config,a=a.linkedItems.smartLabel,s=n.dataLabelStyle,l=M(parseInt(s.lineHeight,10),12),c=t.valuePadding,h=0,d=0,r=(r=r[d])&&r.config;for(a.useEllipsesOnOverflow(n.useEllipsesWhenOverflow),a.setStyle(s);1>d;d+=1)t.showValue&&(n=a.getOriSize(r.toolTipValue),r.toolTipValue===o&&(n={height:l}),0e&&(h=e));return i.widgetValueHeight=h,t.heightUsed=h,{top:0,bottom:h}},_manageSpaceHorizontal:function(e){var t=this.config,r=this.components.data,a=this.chart,i=a.config,a=a.linkedItems.smartLabel,n=i.dataLabelStyle,s=M(parseInt(n.lineHeight,10),12),l=t.valuePadding,c=0,h=0,r=(r=r[h])&&r.config;for(a.useEllipsesOnOverflow(i.useEllipsesWhenOverflow),a.setStyle(n);1>h;h+=1)r&&r.displayValue!==o&&void 0!==r.displayValue&&t.showValue&&(i=a.getOriSize(r.displayValue),r.displayValue===o&&(i={height:s}),0e&&(c=e));return t.widthUsed=c,{top:0,right:c}},updateData:function(e,t,r){var o=this.config,a=o.maxValue,i=o.prevMin,n=this.chart,s=this.groupManager||this,l=n.components.scale;this._setConfigure(e,t),this.setMaxMin(),o.maxValue===a&&o.minValue===i||(this.maxminFlag=!0),r&&(n._setAxisLimits(),l.draw(),s.draw())},setMaxMin:function(){var e,t,r=this.components.data,o=this.config,a=r.length,i=-1/0,n=1/0;for(e=0;eA;--L)_.colorRangeElems[L-1].hide(),_.colorRangeElems[L-1].shadow({opacity:0});else L.canvasElement=_={},_.colorRangeElems=[];for(L=0;L=ie&&0>ne?ie:0M;M++)e=E[M],x=(F=ae[M])&&F.config,we=F.trackerConfig={},m=x.setValue,0>m&&(xe=!0),y=x.setLink,ve=x.colorArr,me=!1,F.graphics||(ae[M].graphics={}),q=x.displayValue,J($(a(e.tooltext,k.plottooltext,S.plottooltext))),V.isHorizontal?(g=_.plotFillPercent/100*z,n=b(W+G)/2-g/2,_.plotAsDot?(i=Y.getAxisPosition(m)-g/2,d=g):(f=ke&&ke<=m&&0<=Y.config.axisRange.min?ke:0,i=xe?Y.getAxisPosition(m):Y.getAxisPosition(f),d=xe?Y.getAxisPosition(0)-Y.getAxisPosition(m):Y.getAxisPosition(m)-Y.getAxisPosition(f)),d=Z.crispBound(i,n,d,g,ce),i=d.x,n=d.y,u=d.width,g=d.height,f=x.toolText===o?x.toolTipValue:x.toolText,be=x.plotBorderDashStyle,we.eventArgs={link:y,value:m,displayValue:q,toolText:f||""},ee||(se=u),r={x:i,y:n,width:se||1,height:g,r:he,ishot:!0,fill:w(ve[0]),stroke:w(ve[1]),"stroke-width":ce,"stroke-dasharray":be,"stroke-linejoin":p,visibility:L},null!==m?(F.graphics.element?(F.graphics.element.show(),r={x:i,y:n,width:u,height:g||1,r:he},m=F.graphics.element,m.animateWith(oe,re,r,ee,te,ye&&Te),m.attr({ishot:!0,fill:w(ve[0]),stroke:w(ve[1]),"stroke-width":ce,"stroke-dasharray":be,"stroke-linejoin":p,visibility:L}),x.elemCreated=!1):(m=F.graphics.element=X.rect(r,de),m.animateWith(oe,re,{width:u||1},ee,te),ee&&(ye=!1),x.elemCreated=!0),m.shadow({opacity:le},fe).data("BBox",d),(y||Q)&&(gq.x+B.marginLeft&&(q=q.width-B.marginLeft,B.widthCe?B.height-B.marginBottom-Ce+me/2:B.height-B.marginBottom-me/2,n-=B.borderWidth,n-=(V._manageActionBarSpace&&V._manageActionBarSpace(.225*x.availableHeight)||{}).bottom,q!==o&&void 0!==q&&_.showValue?(r={text:q,"text-anchor":I,x:U/2+j,y:n,"vertical-align":I,fill:K.color,direction:x.textDirection,"text-bound":[K.backgroundColor,K.borderColor,K.borderThickness,K.borderPadding,K.borderRadius,K.borderDash]},F.graphics.label?(F.graphics.label.show(),F.graphics.label.animateWith(oe,re,{x:U/2+j,y:n},ee,te),F.graphics.label.attr({text:q,"text-anchor":I,"vertical-align":I,fill:K.color,direction:x.textDirection,"text-bound":[K.backgroundColor,K.borderColor,K.borderThickness,K.borderPadding,K.borderRadius,K.borderDash]})):F.graphics.label=X.text(r,ge),q=F.graphics.label.getBBox(),0>q.x+B.marginLeft&&(q=q.width-B.marginLeft,B.widthi&&(e=i),n&&t=h[L].minvalue&&Ce<=h[L].maxvalue){U=h[L].code||xe.getPlotColor(L),ke=L;break}for(h&&0ke?we:we=_.code||xe.getPlotColor(L),P=c(n(o(_.bordercolor,D),fe),a(_.borderalpha,f)),I=xe.parseColorMix(_.code,e),E=xe.parseAlphaList(_.alpha,I.length),I=a(_.borderAlpha,f),O=E.split(m),O=y.apply(Math,O),O=y(S&&I||0,O),I={x:T.x,y:T.y,width:0>T.width?0:T.width,height:0>T.height?0:T.height,r:0,"stroke-width":0,stroke:P,fill:C({FCcolor:{color:D,ratio:r,alpha:E,angle:180}})},ne.colorRangeElems[L]?(ne.colorRangeElems[L].show(),ne.colorRangeElems[L].animateWith(ae,oe,{x:T.x,y:T.y,width:0>T.width?0:T.width,height:0>T.height?0:T.height,r:0},re,Q),ne.colorRangeElems[L].attr({"stroke-width":0,stroke:P,fill:C({FCcolor:{color:D,ratio:r,alpha:E,angle:180}})})):ne.colorRangeElems[L]=Z.rect(I,J).toBack(),ne.colorRangeElems[L].shadow({apply:q,opacity:O/100}),Te.push({"stroke-width":0,fill:C({FCcolor:{color:s(o(D,d),80)+m+l(o(D,d),80),alpha:a(_.alpha,100),angle:ye?90:0}})}),De.push({"stroke-width":0,fill:C({FCcolor:{color:o(D,d),alpha:a(_.alpha,100)}})});if(h&&0===h.length)for(L=0,A=ne.colorRangeElems.length;LA?s.height-s.marginBottom-A+h/2:s.height-s.marginBottom-h/2,h-=s.borderWidth,h-=(n._manageActionBarSpace&&n._manageActionBarSpace(.225*T.availableHeight)||{}).bottom,A=i.graphics,T.displayValue!==r&&void 0!==T.displayValue&&o.showValue?(w={text:T.displayValue,"text-anchor":f,x:g/2+l,y:h,"vertical-align":f,fill:I.color,direction:T.textDirection,"text-bound":[I.backgroundColor,I.borderColor,I.borderThickness,I.borderPadding,I.borderRadius,I.borderDash]},A.label?(A.label.animateWith(L,_,{x:g/2+l,y:h},k,S),A.label.attr({text:T.displayValue,"text-anchor":f,"vertical-align":f,fill:I.color,direction:T.textDirection,"text-bound":[I.backgroundColor,I.borderColor,I.borderThickness,I.borderPadding,I.borderRadius,I.borderDash]})):A.label=m.text(w,D),o=A.label.getBBox(),0>o.x+s.marginLeft&&(o=o.width-s.marginLeft,s.widtho&&(i=o-t),x+=o-i-t,c&&(p*=e),d?(f*=e,c?m+=p-f-s:p=s+f):c||(f=Math.max(a-1.766*g,3*g),p=s+f),{top:m,bottom:v+(s+a-p),left:b+i,right:x}},draw:function(){var e,t=this.config,o=this.chart,i=o.graphics.datalabelsGroup,n=o.get("graphics","trackerGroup"),s=this.graphics||(this.graphics={}),c=o.get("components","scale"),u=o.get("graphics","datasetGroup"),v=o.get(p),b=o.get("components","paper"),C=v.canvasLeft,k=v.canvasTop,S=v.canvasHeight,_=v.effectiveR||10,L=.643*_,A=v.use3DLighting,T=C+L,D=k-L,P=D+L,I=P+S,E=I+.766*_,O=r(t.value,c.getLimit().min),M=c.getPixel(O),c=.33*L,O=D+c,R=.9*L,F=L-c,V=_+R-L,N=T-L,B=T+L,j=T-F,F=T+F,H=T-R,W=T+R,G=parseInt(T-.6*L,10),L=T+L/2,z=E-Math.abs(Math.sqrt(V*V-R*R)),U=s.container,X=s.fluid,Y=s.topLightGlow,q=s.topLight,K=s.label,$=s.dataLabelContainer,K=s.canvasBorderElement,R=s.bulbBorderLight,J=s.bulbTopLight,Z=s.bulbCenterLight,Q=s.trackerContainer,ee=s.cylLeftLight,te=s.cylRightLight,re=s.cylLeftLight1,oe=s.cylRightLight1,Q=s.hotElement,ae=h(t.gaugeFillColor,A?70:80),ie=t.gaugeFillAlpha,ne=t.gaugeContainerColor,se=h(ne,80),ne=d(ne,80),le=t.gaugeBorderThickness,ce=t.gaugeBorderColor,he=t.showHoverEffect,de=t.plotFillHoverAlpha,ue=t.plotFillHoverColor,pe=o.get(p,g),ge=pe.animType,fe=pe.animObj,me=pe.dummyObj,ve=pe.duration,be=pe&&pe.duration,ye=v.canvasRight,xe=v.canvasBottom,we=v.canvasWidth,Ce=o.config.dataLabelStyle,pe=function(){o._animCallBack&&o._animCallBack()},ke=function(e,t,r,o){return"attr"===t?e.attr(r):e.animateWith(me,fe,r,ve,ge,o),e},Se=t.fluidAttr;Se||(Se=t.fluidAttr={}),he&&(Se.hover={fill:l(h(ue,A?70:80),de)}),Se.out={fill:l(ae,ie)},ie=["M",j,D,"A",c,c,0,0,0,N,O,"L",N,I,"A",_,_,0,1,0,B,I,"L",B,O,"A",c,c,0,0,0,F,D,"Z"],v.gaugeStartX=C,v.gaugeEndX=ye,v.gaugeStartY=k,v.gaugeEndY=xe,v.gaugeCenterX=C+.5*we,v.gaugeCenterY=k+.5*S,v.gaugeRadius=.5*we,v={value:t.value,displayValue:t.displayValue,toolText:t.toolText},U?be?(i=n="animate",e=pe):i=n="attr":(U=s.container=b.group("thermometer",u),K=s.canvasBorderElement=b.path(U),X=s.fluid=b.path(U).attr({"stroke-width":0}),q=s.topLight=b.path(U).attr({"stroke-width":1}),Y=s.topLightGlow=b.path(U).attr({"stroke-width":0}),R=s.bulbBorderLight=b.path(U).attr({"stroke-width":0,stroke:"#00FF00"}),J=s.bulbTopLight=b.path(U).attr({"stroke-width":0}),Z=s.bulbCenterLight=b.path(U).attr({"stroke-width":0}),ee=s.cylLeftLight=b.path(U).attr({"stroke-width":0}),te=s.cylRightLight=b.path(U).attr({"stroke-width":0}),re=s.cylLeftLight1=b.path(U).attr({"stroke-width":0}),oe=s.cylRightLight1=b.path(U).attr({"stroke-width":0}),Q=s.trackerContainer=b.group("col-hot",n),Q=s.hotElement=b.path({stroke:w,fill:w,ishot:!0},Q).click(function(e){y.call(this,o,e)}).hover(function(e){t.showHoverEffect&&s.fluid&&s.fluid.attr(Se.hover),y.call(this,o,e,"DataPlotRollOver")},function(e){t.showHoverEffect&&s.fluid&&s.fluid.attr(Se.out),y.call(this,o,e,"DataPlotRollOut")}),$=s.dataLabelContainer=b.group("datalabel",i),be?(n="animate",e=pe,X.attr({path:["M",H,z,"A",V,V,0,1,0,W,z,"L",W,z,H,z,"Z"]})):n="attr",i="attr"),ke(X,n,{path:["M",H,z,"A",V,V,0,1,0,W,z,"L",W,M,H,M,"Z"]},e).attr(Se.out),ke(K,i,{path:ie}).attr({"stroke-width":le,stroke:ce}),ke(q,i,{path:["M",H,P,"L",W,P]}).attr({stroke:l(ae,40)}),ke(Q,i,{path:ie}).tooltip(t.toolText),Q.data("eventArgs",v),t.showValue?(K=s.label)?ke(K.show(),i,{x:T,y:E+_+(t.valuePadding||0),fill:Ce.color,"text-bound":[Ce.backgroundColor,Ce.borderColor,Ce.borderThickness,Ce.borderPadding,Ce.borderRadius,Ce.borderDash]}).attr({text:t.displayValue}):(K=s.label=b.text({text:t.displayValue,x:T,y:E+_+(t.valuePadding||0),"text-anchor":m,"vertical-align":f,fill:Ce.color,"text-bound":[Ce.backgroundColor,Ce.borderColor,Ce.borderThickness,Ce.borderPadding,Ce.borderRadius,Ce.borderDash]},$),K.show()):(K=s.label)&&K.hide(),A?(ke(Y.show(),i,{path:["M",H,P,"L",W,P,W,O,H,O,"Z"]}).attr({fill:x({FCcolor:{color:ae+a+ae,alpha:"40,0",ratio:"0,80",radialGradient:!0,cx:.5,cy:1,r:"70%"}})}),b=["M",N,I,"A",_,_,0,0,1,B,I,"A",_,_,0,0,0,N,I,"A",_,_,0,1,0,B,I,"Z"],ke(R.show(),i,{path:b}).attr({fill:x({FCcolor:{cx:.5,cy:.5,r:"50%",color:se+a+ne,alpha:"0,50",ratio:"78,30",radialGradient:!0}})}),ke(J.show(),i,{path:b}).attr({fill:x({FCcolor:{cx:.3,cy:.1,r:"100%",color:ne+a+se,alpha:"60,0",ratio:"0,30",radialGradient:!0}})}),ke(Z.show(),i,{path:b}).attr({fill:x({FCcolor:{cx:.25,cy:.7,r:"100%",color:ne+a+se,alpha:"80,0",ratio:"0,70",radialGradient:!0}})}),ke(ee.show(),i,{path:["M",T,D,"L",j,D,"A",c,c,0,0,0,N,O,"L",N,I,T,I,"Z"]}).attr({fill:x({FCcolor:{color:ne+a+se,alpha:"50,0",ratio:"0,80",angle:0}})}),ke(te.show(),i,{path:["M",N,D,"L",F,D,"A",c,c,0,0,1,B,O,"L",B,I,N,I,"Z"]}).attr({fill:x({FCcolor:{color:ne+a+se+a+se,alpha:"50,0,0",ratio:"0,40,60",angle:180}})}),ke(re.show(),i,{path:["M",G,O,"L",N,O,N,I,G,I,"Z"]}).attr({fill:x({FCcolor:{color:ne+a+se,alpha:"60,0",ratio:"0,100",angle:180}})}),ke(oe.show(),i,{path:["M",G-.01,O,"L",L,O,L,I,G-.01,I,"Z"]}).attr({fill:x({FCcolor:{color:ne+a+se,alpha:"60,0",ratio:"0,100",angle:0}})})):(Y.hide(),R.hide(),J.hide(),Z.hide(),ee.hide(),te.hide(),re.hide(),oe.hide()),e||pe()},getDataLimits:function(){var e,t,r=this.config;return t=e=r.value,r.maxValue=t,r.minValue=e,{forceMin:!0,forceMax:!0,max:t,min:e}},updateData:function(e,t,r){t=this.config;var o=t.maxValue,a=t.prevMin,i=t.value,n=this.chart,s=this.groupManager||this,l=n.components.scale;this.setValue(e.data[0]),t.maxValue=i,t.minValue=i,t.maxValue===o&&t.minValue===a||(this.maxminFlag=!0),r&&(n._setAxisLimits(),l.draw(),s.draw())},addData:function(){},removeData:function(){}}])}]),e.register("module",["private","modules.renderer.js-dataset-cylinder",function(){var t=this.hcLib,r=t.preDefStr,o=t.COMMASTRING,a=t.plotEventHandler,i=r.configStr,n=r.animationObjStr,s=Math,l=s.max,c=s.min,h=t.graphics.convertColor,d=t.toRaphaelColor,u=t.graphics.getDarkColor,s=this.window,p="rgba(192,192,192,"+(/msie/i.test(s.navigator.userAgent)&&!s.opera?.002:1e-6)+")",g=r.POSITION_TOP,f=r.POSITION_MIDDLE,m=t.pluckNumber,v=t.graphics.getLightColor;e.register("component",["dataset","cylinder",{_manageSpace:function(){var e,t=this.chart.config,r=t.canvasWidth,o=t.canvasHeight,a=t.canvasLeft,i=t.canvasTop,n=t.canvasRight,s=t.xDefined,h=t.yDefined,d=t.rDefined,u=t.hDefined,p=t.gaugeOriginX,g=t.gaugeOriginY,f=t.gaugeRadius,v=t.gaugeHeight,b=t.gaugeYScale;e=t.origW;var y=t.origH,x=t.width,w=t.height,y=m(y,w);e=m(e,x),e=y&&e?e/x==y/w?x/e:Math.min(x/e,w/y):1;var C,k=w=x=y=0;return C=this._getLabelSpace(),o-=C,x+=C,f=d?f*e:l(c(r,1.2*o)/2,5),t.effectiveR=f,t=2*f,b*=f,y+=b,i+=b,o-=2*b,s?a=p*e-f-a:(a=(n-a)/2-f)+t>r&&(a=r-t),k+=r-a-t,h&&(g*=e),u?(v*=e,h?y+=g-v-i:g=i+v):h||(g=i+o),x=x+b+(i+o-g),{top:y,bottom:x+8,left:w+a,right:k}},draw:function(){var e,t=this.config,r=this.chart,s=this.graphics||(this.graphics={}),c=r.graphics,b=c.datalabelsGroup,y=c.trackerGroup,x=c.datasetGroup,c=s.fluidTop,w=s.fluid,C=s.cylinterTop,k=s.frontLight1,S=s.frontLight,_=s.front,L=s.back,A=s.btnBorderLight,T=s.btnBorder1,D=s.btnBorder,P=s.label,I=s.dataLabelContainer,P=s.trackerContainer,P=s.hotElement,E=r.components,O=E.scale,M=r.config,E=E.paper,R=M.canvasLeft,F=M.canvasTop,V=M.canvasHeight,N=M.effectiveR||40,B=m(t.value,O.getLimit().min),j=O.getPixel(B),O=R+N,B=r.config.dataLabelStyle,H=t.gaugeFillColor,W=u(H,70),G=v(H,70),z=u(W,90),U=M.gaugeFillAlpha,X=t.gaugeContainerColor,H=u(X,80),Y=u(X,90),q=v(X,80),K=s.container,X=N*M.gaugeYScale,$=N-1.5,J=F+V,Z=O-N,Q=O+N,ee=Z+1.5,te=Q-1.5,re=Z-2,oe=Q+2,ae=N+2,ie=X+2,ne=J+4,se=ne+.001,le=.85*N,ce=O-le,he=O+le,le=Math.sqrt((1-le*le/(N*N))*X*X),de=F+le,ue=J+le,le=F-1,pe=M.use3DLighting,ge=t.showHoverEffect,fe=t.plotFillHoverAlpha,me=t.plotFillHoverColor,ve=r.get(i,n),be=ve.animType,ye=ve.animObj,xe=ve.dummyObj,we=ve.duration,Ce=ve&&ve.duration,ve=function(){r._animCallBack&&r._animCallBack()},ke=function(e,t,r,o){return"attr"===t?e.attr(r):e.animateWith(xe,ye,r,we,be,o),e},Se=t.fluidAttr,_e=M.canvasRight,Le=M.canvasBottom,Ae=M.canvasWidth,Te=h(H,50);M.gaugeStartX=R,M.gaugeEndX=_e,M.gaugeStartY=F,M.gaugeEndY=Le,M.gaugeCenterX=R+.5*Ae,M.gaugeCenterY=F+.5*V,M.gaugeRadius=.5*Ae,Se||(Se=t.fluidAttr={}),M={value:t.value,displayValue:t.displayValue,toolText:t.toolText},K?Ce?(b=y="animate",e=ve):b=y="attr":(K=s.container=E.group("thermometer",x),D=s.btnBorder=E.path(K).attr({"stroke-width":4}),T=s.btnBorder1=E.path(K).attr({"stroke-width":4}),A=s.btnBorderLight=E.path(K).attr({"stroke-width":0}),L=s.back=E.path(K).attr({"stroke-width":1}),w=s.fluid=E.path(K).attr({"stroke-width":0}),c=s.fluidTop=E.path(K).attr({"stroke-width":2}),_=s.front=E.path(K).attr({"stroke-width":1}),S=s.frontLight=E.path(K).attr({"stroke-width":0}),k=s.frontLight1=E.path(K).attr({"stroke-width":0}),C=s.cylinterTop=E.path(K).attr({"stroke-width":2}),P=s.trackerContainer=E.group("col-hot",y),P=s.hotElement=E.path({stroke:p,fill:p,ishot:!0},P).click(function(e){a.call(this,r,e)}).hover(function(e){t.showHoverEffect&&(s.fluid&&s.fluid.attr(Se.bodyHover),s.fluidTop&&s.fluidTop.attr(Se.topHover)),a.call(this,r,e,"DataPlotRollOver")},function(e){t.showHoverEffect&&(s.fluid&&s.fluid.attr(Se.bodyOut),s.fluidTop&&s.fluidTop.attr(Se.topOut)),a.call(this,r,e,"DataPlotRollOut")}),I=s.dataLabelContainer=E.group("datalabel",b),Ce?(y="animate",e=ve,w.attr({path:["M",Z,J,"A",N,l(X,1),0,0,0,Q,J,"L",Q,J,"A",N,l(X,1),0,0,1,Z,J,"Z"]}),c.attr({path:["M",ee,J,"A",$,X,0,0,0,te,J,"L",te,J,"A",$,X,0,0,0,ee,J,"Z"]})):y="attr",b="attr"),pe?(x=q+o+H+o+q+o+H+o+Y+o+Y+o+H+o+q,R=d({FCcolor:{cx:.5,cy:0,r:"100%",color:G+o+W,alpha:U+o+U,ratio:"0,100",radialGradient:!0}}),Y=d({FCcolor:{cx:.5,cy:.7,r:"100%",color:G+o+W,alpha:U+o+U,ratio:"0,100",radialGradient:!0}}),z=h(G,U),G=q+o+H+o+q+o+q+o+H+o+q+o+H+o+q,S.show().attr({fill:d({FCcolor:{color:G,alpha:"40,0",ratio:"0,100",angle:0}})}),ke(S,b,{path:["M",Z,J,"A",N,X,1,0,0,ce,ue,"L",ce,de,"A",N,X,0,0,1,Z,F,"Z"]}),k.show().attr({fill:d({FCcolor:{color:G,alpha:"40,0",ratio:"0,100",angle:180}})}),ke(k,b,{path:["M",he,ue,"A",N,X,0,0,0,Q,J,"L",Q,F,"A",N,X,1,0,0,he,de,"Z"]})):(x=q+o+H+o+H+o+H+o+H+o+H+o+H+o+q,Y=R=h(W,U),z=h(z),G=H+o+H+o+H+o+H+o+H+o+H+o+H+o+H,S.hide(),k.hide()),Se.bodyOut={fill:R},Se.topOut={stroke:z,fill:Y},ge&&(k=u(me,70),S=v(me,70),ce=u(k,90),pe?(Se.bodyHover={fill:d({FCcolor:{cx:.5,cy:0,r:"100%",color:S+o+k,alpha:fe+o+fe,ratio:"0,100",radialGradient:!0}})},Se.topHover={stroke:h(S,fe),fill:d({FCcolor:{cx:.5,cy:.7,r:"100%",color:S+o+k,alpha:fe+o+fe,ratio:"0,100",radialGradient:!0}})}):(Se.bodyHover={fill:h(k,fe)},Se.topHover={stroke:h(ce),fill:h(k,fe)})),w.attr(Se.bodyOut),c.attr(Se.topOut),ke(w,y,{path:["M",Z,J,"A",N,l(X,1),0,0,0,Q,J,"L",Q,j,"A",N,l(X,1),0,0,1,Z,j,"Z"]},e),ke(c,y,{path:["M",ee,j,"A",$,X,0,0,0,te,j,"L",te,j,"A",$,X,0,0,0,ee,j,"Z"]}),D.attr({stroke:h(H,80)}),ke(D,b,{path:["M",re,ne,"A",ae,ie,0,0,0,oe,ne,"L",oe,se,"A",ae,ie,0,0,0,re,se,"Z"]}),T.attr({stroke:Te}),ke(T,b,{path:["M",Z,ne,"A",N,X,0,0,0,Q,ne,"L",Q,se,"A",N,X,0,0,0,Z,se,"Z"]}),A.attr({fill:d({FCcolor:{color:q+o+H+o+q+o+q+o+H+o+W+o+H+o+q,alpha:"50,50,50,50,50,70,50,50",ratio:"0,15,0,12,0,15,43,15",angle:0}})}),ke(A,b,{path:["M",Z,J,"A",N,X,0,0,0,Q,J,"A",N,X,0,0,0,Z,J,"Z"]}),L.attr({stroke:Te,fill:d({FCcolor:{color:x,alpha:"30,30,30,30,30,30,30,30",ratio:"0,15,43,15,0,12,0,15",angle:0}})}),ke(L,b,{path:["M",Z,J,"A",N,X,0,0,0,Q,J,"L",Q,F,"A",N,X,0,0,0,Z,F,"Z"]}),_.attr({stroke:Te,fill:d({FCcolor:{color:G,alpha:"30,30,30,30,30,30,30,30",ratio:"0,15,0,12,0,15,43,15",angle:0}})}),ke(_,b,{path:["M",Z,J,"A",N,X,0,0,0,Q,J,"L",Q,F,"A",N,X,0,0,1,Z,F,"Z"]}),C.attr({stroke:h(H,40)}),ke(C,b,{path:["M",Z,le,"A",N,X,0,0,0,Q,le,"L",Q,le,"A",N,X,0,0,0,Z,le,"Z"]}),ke(P,b,{path:["M",Z,J,Z,ne+4,"A",N,X,0,0,0,Q,ne+4,"L",Q,J,Q,F,"A",N,X,0,0,0,Z,F,"Z"]}).tooltip(t.toolText),P.data("eventArgs",M),t.showValue?(P=s.label)?(P.show().attr({text:t.displayValue}),ke(P,b,{x:O,y:J+X+(t.valuePadding||0)+8,fill:B.color,"text-bound":[B.backgroundColor,B.borderColor,B.borderThickness,B.borderPadding,B.borderRadius,B.borderDash]})):(P=s.label=E.text({text:t.displayValue,x:O,y:J+X+(t.valuePadding||0)+8,"text-anchor":f,"vertical-align":g,fill:B.color,"text-bound":[B.backgroundColor,B.borderColor,B.borderThickness,B.borderPadding,B.borderRadius,B.borderDash]},I),P.show()):(P=s.label)&&P.hide(),e||ve()}},"thermometer"])}]),e.register("module",["private","modules.renderer.js-dataset-angulargauge",function(){var t=this,r=t.hcLib,o=r.Raphael,a=r.BLANKSTRING,i=r.pluck,n=r.toPrecision,s=r.getValidValue,l=r.pluckNumber,c=r.hasSVG,h=r.getFirstValue,d=r.graphics.convertColor,u=r.preDefStr,p=u.configStr,g=u.animationObjStr,f=r.getDashStyle,m=r.parseTooltext,v=r.COMMASTRING,b=r.ZEROSTRING,y=r.parseUnsafeString,x=t.window,u=Math,w=u.abs,C=u.atan2,u=u.PI,k=2*u,S=u/180,_=r.toRaphaelColor,L=void 0!==x.document.documentElement.ontouchstart,A=r.getPosition,T=r.plotEventHandler,D=function(e){return void 0!==e&&null!==e},P=r.setLineHeight,I=r.HUNDREDSTRING,E=function(){return function(e,t,r){var a,i,n=this,s=this._Attr,l=o.vml?-1.5:0,c=o.vml?-1.5:0;if(s||(s=n._Attr={}),"string"==typeof e&&D(t)&&(a=e,e={},e[a]=t),"string"==typeof e||void 0===e)n="angle"==e?n._Attr[e]:n._attr(e);else for(a in e)t=e[a],"angle"===a?(s[a]=t,i=t*S,s.tooltipPos[0]=s.cx+s.toolTipRadius*Math.cos(i),s.tooltipPos[1]=s.cy+s.toolTipRadius*Math.sin(i),s.prevValue=t,r&&r.duration?n.animate({transform:"R"+t+v+l+v+c},r.duration,"easeIn"):n.attr({transform:"R"+t+v+l+v+c})):n._attr(a,t);return n}};e.register("component",["dataset","angulargauge",{type:"angulargauge",pIndex:2,customConfigFn:"_createDatasets",init:function(){this.components=this.components||{},this.idMap={},this.configure()},configure:function(){var e,t,o,n,u=this.chart,p=u.config,g=u.jsonData,m=g.chart,y=g.pointers||g.dials,x=y.pointer||y.dial,w=this.components.data||(this.components.data=[]),g=u.components,C=g.scale,g=g.colorManager,k=this.config||(this.config={}),_=l(m.gaugescaleangle,180),L=l(m.gaugestartangle),A=l(m.gaugeendangle),T=D(L),E=c?.001:.01,O=D(A);for(o=p.displayValueCount=0,n=x.length;o_)&&(_=0<_?360:-360),(360A)&&(A%=360),(360L)&&(L%=360),T&&O?(360<(_=L-A)||-360>_)&&(_%=360,A=L-_):T?(360<(A=L-_)||-360>A)&&(A%=360,L+=0L)&&(L%=360,A+=0r?k+r:r-k,r=n.config.dragStartY-r*Ze,o=n.config.dragStartY-o*Ze,(rYe)&&o>=Xe&&o<=Ye&&(r=o),rYe&&(r=w(r-Ye)=Xe&&Z<=Ye&&($=(Z-Xe)/$e*Je,R=(He+$)/S,F.attr({angle:R},null,e),ze&&xe!==a?(F.tooltip(xe),F.trackTooltip(!0)):F.trackTooltip(!1)),pt+=1,D(ee)&&ee!==a&&(Ce=je+(nt?it/2+be+2:-it/2-be-2),ke=re,Se=l(ye,Be),D(ke)||(ke=nt?Ce+it*ut:Ce-it*ut),Oe.dataLabel[tt]?(Oe.dataLabel[tt].attr({text:ee,title:u.originalText||a,fill:rt.color,"text-bound":[rt.backgroundColor,rt.borderColor,rt.borderThickness,rt.borderPadding,rt.borderRadius,rt.borderDash]}).css(ot).tooltip(u.originalText),Oe.dataLabel[tt].animateWith(ct,ht,{x:Se,y:ke},lt,dt)):Oe.dataLabel[tt]=Fe.text(Ke).attr({x:Se,y:ke,text:ee,direction:De.textDirection,fill:rt.color,"text-bound":[rt.backgroundColor,rt.borderColor,rt.borderThickness,rt.borderPadding,rt.borderRadius,rt.borderDash]}).css(ot).tooltip(u.originalText),ut+=1);for(tt=pt,mt=Oe.pointersPath.length;tte&&(h=e)),t.heightUsed=h,{top:0,bottom:h}},configure:function(){var e=s({},this.JSONData),t=this.chart,a=this.config,i=t.config,n=t.jsonData.chart;r(n.is3d,1),r(n.showtooltip,1),this.__setDefaultConfig(),f(e,a,t.config,{data:!0}),r(n.is3d,1),a.origW=r(n.origw,i.autoscale?t.origRenderWidth:i.width||t.origRenderWidth),a.origH=r(n.origh,i.autoscale?t.origRenderHeight:i.height||t.origRenderHeight),r(n.showtooltip,1),a.setToolText=h(m(o(n.plottooltext,void 0))),a.useColorNameAsValue=r(n.usecolornameasvalue,0),a.enableAnimation=e=r(n.animation,n.defaultanimation,1),a.animation=!!e&&{duration:1e3*r(n.animationduration,1)},a.showValue=r(n.showvalue,1),this._setConfigure()},_setConfigure:function(e){var n=this.chart,s=this.config,c=n.config,g=this.JSONData,f=e||g.data,m=f&&f.length,m=e&&e.data.length||m,v=n.jsonData.chart,b=n.components.colorManager,y=r(v.showtooltip,1),x=t.parseUnsafeString;x(o(v.tooltipsepchar,i));var w,C,k,S,_,L,A,T,D,P,I,E,O,M,R,F,V,N,B,j,H,W,G=t.parseTooltext,z=c.showhovereffect,U=this.components.data,X=r(v.is3d,1),Y=n.components.numberFormatter,q=function(e,t,r){return r?{FCcolor:{cx:.4,cy:.4,r:"80%",color:p(e,65)+a+p(e,75)+a+u(e,65),alpha:t+a+t+a+t,ratio:"0,30,70",radialGradient:!0}}:d(e,t)};for(U||(U=this.components.data=[]),L=0;Lh&&!Q&&(p=te,te=ie?180-te:360-te),R.colorArr=c=t.graphics.getColumnColor(z,b,x,te,Q,F.plotBorderColor,k,ie?1:0,!!ne),h=a(X(o(g.tooltext,g.label))),0!==ee&&(S=o(g.hovercolor,V.hovercolor,j.plotfillhovercolor,j.columnhovercolor,z),_=o(g.hoveralpha,V.hoveralpha,j.plotfillhoveralpha,j.columnhoveralpha,b),L=o(g.hovergradientcolor,V.hovergradientcolor,j.plothovergradientcolor,F.plotgradientcolor),!L&&(L=r),A=o(g.hoverratio,V.hoverratio,j.plothoverratio,x),T=i(360-g.hoverangle,360-V.hoverangle,360-j.plothoverangle,te),D=o(g.borderhovercolor,V.borderhovercolor,j.plotborderhovercolor,F.plotBorderColor),k=o(g.borderhoveralpha,V.borderhoveralpha,j.plotborderhoveralpha,k,b),b=i(g.borderhoverthickness,V.borderhoverthickness,j.plotborderhoverthickness,Z),P=i(g.borderhoverdashed,V.borderhoverdashed,j.plotborderhoverdashed),I=i(g.borderhoverdashgap,V.borderhoverdashgap,j.plotborderhoverdashgap,void 0),E=i(g.borderhoverdashlen,V.borderhoverdashlen,j.plotborderhoverdashlen,v),P=P?oe(E,I,b):u,1==ee&&S===z&&(S=s(S,70)),z=t.graphics.getColumnColor(S+C+L,_,A,T,Q,D,k.toString(),ie?1:0,!!ne),R.setRolloutAttr={fill:ne?[y(c[0]),!F.use3DLighting]:y(c[0]),stroke:G&&y(c[1]),"stroke-width":Z,"stroke-dasharray":u},R.setRolloverAttr={fill:ne?[y(z[0]),!F.use3DLighting]:y(z[0]),stroke:G&&y(z[1]),"stroke-width":b,"stroke-dasharray":P}),c=R.toolTipValue,z=a(X(o(g.tooltext,V.plottooltext,j.plottooltext))),U?null===c?g=!1:void 0!==z?(u=[1,2,3,4,5,6,7],h={yaxisName:Y,xaxisName:q,formattedValue:c,label:h},g=J(z,u,h,g,j,V)):($&&(d=n(V&&V.seriesname)),g=d?d+K:r,g+=h?h+K:r):g=!1,R.toolText=g,R.setTooltext=g,p&&(te=p),M++;F.maxValue=se,F.minValue=le},init:function(e){var t=this.chart;if(!e)return!1;this.JSONData=e,this.chartGraphics=t.chartGraphics,this.components={},this.graphics={},this.visible=1===i(this.JSONData.visible,!Number(this.JSONData.initiallyhidden),1),this.configure(),this.config.showLegend&&this._addLegend()},_addLegend:function(){var e,t,r,o,a=this.chart,n=a.jsonData.chart,l=this.JSONData.data,c=this.components.data;for(t=0;te&&(h.duration=e),l&&this._setRTmenu()},_setRealTimeCategories:function(){var e=this.components.xAxis[0],t=[],r=this.config.realTimeConfig,o=r&&r.clear?void 0:this.jsonData.categories&&this.jsonData.categories[0]&&this.jsonData.categories[0].category,a=e.getCategoryLen(),r=r.numDisplaySets,a=e.getCategoryLen();ar&&(o.splice(r,a-r),e.setCategory(o))},_realTimeValuePositioning:function(e){var r,o=this.components,a=this.linkedItems.smartLabel;r=this.config;var i=r.realTimeConfig||(r.realTimeConfig={}),n=i.realTimeValuePadding,o=o.xAxis[0].config,s=o.trend.trendStyle,o=i.style={color:l(p(i.realtimeValueFontColor,s.color),p(o.trendlineAlpha,99)),fontFamily:p(i.realtimeValueFont,s.fontFamily),fontSize:p(i.realtimeValueFontSize,s.fontSize),fontWeight:p(i.fontWeight,s.fontWeight),lineHeight:g(s.lineHeight)};return a.useEllipsesOnOverflow(r.useEllipsesWhenOverflow),a.setStyle(o),i.height=a=a.getOriSize(t.TESTSTR).height,i.canvasBottom=r.canvasBottom,r=a+n,r>e&&(r=e),{bottom:r}},_drawRealTimeValue:function(){var e,t=this.components,r=this.config,a=t.dataset,i=t.paper,n=this.linkedItems.smartLabel,s=r.realTimeConfig,l=s.realtimeValueSeparator,c=a.length,p=o,g=this.get(u,h),f=g.animObj,m=g.dummyObj,g=g.duration,v=s.canvasBottom,b=s.height,y=r.canvasLeft,x=r.canvasRight,w=s.style||{},t=t.realTimeValue||(t.realTimeValue={}),C=t.graphics,k=this.graphics,S=k.parentGroup,_=k.realTimeValueGroup;if(s.clear&&t.graphics&&t.graphics.attr({text:o}),_){for(s=0;ss&&a[0].removeData(s-1,o-s,!1),a[0].JSONData=i,a[0].configure()):(o=new r,a.push(o),o.chart=this,s&&s.addDataSet(o,0,0),o.init(i)))},_createAxes:function(){var t=this.components,r=e.register("component",["axis","gauge"]);t.scale=t=new r,t.chart=this,t.init()}},t.axisgaugebase)}]),e.register("module",["private","modules.renderer.js-vbullet",function(){var t=this.hcLib,r=t.pluck,o=t.pluckNumber,a=t.chartAPI,i=t.pluckFontSize;a("vbullet",{friendlyName:"Vertical Bullet Gauge",creditLabel:!t.CREDIT_REGEX.test(this.window.location.hostname),defaultSeriesType:"bullet",gaugeType:4,ticksOnRight:0,standaloneInit:!0,hasCanvas:!0,singleseries:!0,isHorizontal:!1,isAxisOpposite:!1,isAxisReverse:!1,defaultDatasetType:"bullet",applicableDSList:{bullet:!0},defaultPaletteOptions:{paletteColors:[["A6A6A6","CCCCCC","E1E1E1","F0F0F0"],["A7AA95","C4C6B7","DEDFD7","F2F2EE"],["04C2E3","66E7FD","9CEFFE","CEF8FF"],["FA9101","FEB654","FED7A0","FFEDD5"],["FF2B60","FF6C92","FFB9CB","FFE8EE"]],bgColor:["FFFFFF","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["100","60,50","40,20","20,10","30,30"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["333333","60634E","025B6A","A15E01","68001B"],tickColor:["333333","60634E","025B6A","A15E01","68001B"],trendColor:["545454","60634E","415D6F","845001","68001B"],plotFillColor:["545454","60634E","415D6F","845001","68001B"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50]},_createAxes:function(){var t=this.components,r=e.register("component",["axis","gauge"]);t.scale=t=new r,t.chart=this,t.init()},_feedAxesRawData:function(){var e=this.components,a=e.colorManager,n=this.jsonData.chart,s=t.chartPaletteStr.chart2D,l=o(n.ticksbelowgraph,1),l=o(n.ticksonright,n.axisontop,void 0!==n.axisonleft?!o(n.axisonleft):void 0,!l,this.isAxisOpposite),a={outCanfontFamily:r(n.outcnvbasefont,n.basefont,"Verdana,sans"),outCanfontSize:i(n.outcnvbasefontsize,n.basefontsize,10),outCancolor:r(n.outcnvbasefontcolor,n.basefontcolor,a.getColor(s.baseFontColor)).replace(/^#?([a-f0-9]+)/gi,"#$1"),useEllipsesWhenOverflow:n.useellipseswhenoverflow,divLineColor:r(n.vdivlinecolor,a.getColor(s.divLineColor)),divLineAlpha:r(n.vdivlinealpha,a.getColor("divLineAlpha")),divLineThickness:o(n.vdivlinethickness,1),divLineIsDashed:!!o(n.vdivlinedashed,n.vdivlineisdashed,0),divLineDashLen:o(n.vdivlinedashlen,4),divLineDashGap:o(n.vdivlinedashgap,2),showAlternateGridColor:o(n.showalternatevgridcolor,0),alternateGridColor:r(n.alternatevgridcolor,a.getColor("altVGridColor")),alternateGridAlpha:r(n.alternatevgridalpha,a.getColor("altVGridAlpha")),numDivLines:n.numvdivlines,labelFont:n.labelfont,labelFontSize:n.labelfontsize,labelFontColor:n.labelfontcolor,labelFontAlpha:n.labelalpha,labelFontBold:n.labelfontbold,labelFontItalic:n.labelfontitalic,axisName:n.xaxisname,axisMinValue:n.lowerlimit,axisMaxValue:n.upperlimit,setAdaptiveMin:n.setadaptivexmin,adjustDiv:n.adjustvdiv,labelDisplay:n.labeldisplay,showLabels:n.showlabels,rotateLabels:n.rotatelabels,slantLabel:o(n.slantlabels,n.slantlabel),labelStep:o(n.labelstep,n.xaxisvaluesstep),showAxisValues:o(n.showxaxisvalues,n.showxaxisvalue),showDivLineValues:o(n.showvdivlinevalues,n.showvdivlinevalues),showZeroPlane:n.showvzeroplane,zeroPlaneColor:n.vzeroplanecolor,zeroPlaneThickness:n.vzeroplanethickness,zeroPlaneAlpha:n.vzeroplanealpha,showZeroPlaneValue:n.showvzeroplanevalue,trendlineColor:n.trendlinecolor,trendlineToolText:n.trendlinetooltext,trendlineThickness:n.trendlinethickness,trendlineAlpha:n.trendlinealpha,showTrendlinesOnTop:n.showtrendlinesontop,showAxisLine:o(n.showxaxisline,n.showaxislines,n.drawAxisLines,0),axisLineThickness:o(n.xaxislinethickness,n.axislinethickness,1),axisLineAlpha:o(n.xaxislinealpha,n.axislinealpha,100),axisLineColor:r(n.xaxislinecolor,n.axislinecolor,"#000000"),majorTMNumber:n.majortmnumber,majorTMColor:n.majortmcolor,majorTMAlpha:n.majortmalpha,majorTMHeight:n.majortmheight,tickValueStep:n.tickvaluestep,showTickMarks:n.showtickmarks,connectTickMarks:n.connecttickmarks,showTickValues:n.showtickvalues,majorTMThickness:n.majortmthickness,upperlimit:e.numberFormatter.getCleanValue(n.upperlimit),lowerlimit:e.numberFormatter.getCleanValue(n.lowerlimit),reverseScale:n.reversescale,showLimits:o(n.showlimits,n.showtickmarks),adjustTM:n.adjusttm,minorTMNumber:o(n.minortmnumber,0),minorTMColor:n.minortmcolor,minorTMAlpha:n.minortmalpha,minorTMHeight:o(n.minortmheight,n.minortmwidth),minorTMThickness:n.minortmthickness,tickMarkDistance:o(n.tickmarkdistance,n.tickmarkgap),tickValueDistance:o(n.tickvaluedistance,n.displayvaluedistance),placeTicksInside:n.placeticksinside,placeValuesInside:n.placevaluesinside,upperLimitDisplay:n.upperlimitdisplay,lowerLimitDisplay:n.lowerlimitdisplay},e=e.scale;e.chart=this,e.setCommonConfigArr(a,!this.isHorizontal,!1,l),e.configure()},_drawCanvas:function(){}},a.vled)}]),e.register("module",["private","modules.renderer.js-hled",function(){var e=this.hcLib,t=!e.CREDIT_REGEX.test(this.window.location.hostname),e=e.chartAPI;e("hled",{friendlyName:"Vertical LED Gauge",defaultSeriesType:"led",defaultPlotShadow:1,standaloneInit:!0,realtimeEnabled:!0,chartleftmargin:15,chartrightmargin:15,charttopmargin:10,chartbottommargin:10,showTooltip:0,connectTickMarks:0,isHorizontal:!0,isAxisOpposite:!1,creditLabel:t},e.vled)}]),e.register("module",["private","modules.renderer.js-hlineargauge",function(){var t=this.hcLib,r=t.pluck,o=t.getValidValue,a=t.BLANKSTRING,i=t.getDashStyle,n=t.getFirstValue,s=t.parseUnsafeString,l=t.preDefStr,c=l.animationObjStr,h=l.configStr,d=t.pluckNumber,u=t.getFirstDefinedValue,p=t.graphics.convertColor,g=t.getColorCodeString,f=t.COMMASTRING,m=Math.max,v=t.toRaphaelColor,b=t.priorityList,y=t.schedular,x=l.POSITION_TOP,w=l.POSITION_BOTTOM,l=!t.CREDIT_REGEX.test(this.window.location.hostname),C=t.chartAPI;C("hlineargauge",{showRTvalue:!1,canvasPadding:!1,friendlyName:"Horizontal Linear Gauge",creditLabel:l,defaultDatasetType:"hlineargauge",standaloneInit:!0,isHorizontal:!0,isAxisOpposite:!1,hasLegend:!1,drawPlotlines:!1,drawPlotBands:!1,isAxisReverse:!1,minorTMNumber:4,isRealTime:!0,colorRange:!0,applicableDSList:{hlineargauge:!0},rtParserModify:!0,_drawCanvas:function(){var e,t,o,a,i,n,s,l=this.components,b=this.config,y=this.graphics.datasetGroup,C=b.canvasWidth,k=b.canvasHeight,S=b.canvasTop,_=b.canvasLeft,L=l.scale,A=L.config.axisRange.min,T=L.config.axisRange.max,D=this.jsonData,L=D.chart,P=D.trendpoints&&D.trendpoints.point,D=d(L.showgaugeborder,1),I=u(L.colorrangefillmix,L.gaugefillmix,"{light-10},{dark-20},{light-50},{light-85}"),E=u(L.colorrangefillratio,L.gaugefillratio,L.gaugefillratio,"0,8,84,8"),O=r(L.colorrangebordercolor,L.gaugebordercolor,"{dark-20}"),M=d(L.colorrangeborderalpha,L.gaugeborderalpha,100),R=D?d(L.colorrangeborderthickness,L.gaugeborderthickness,1):0,F=l.colorRange&&l.colorRange.getColorRangeArr(A,T),V=d(L.showshadow,1),N=l.paper,B=l.colorManager,L=this.get(h,c),j=L.duration,H=L.dummyObj,W=L.animObj,G=L.animType,z={top:1,bottom:3},U=L=0,D=0,l=l.canvas.graphics;for(b.gaugeStartX=b.canvasLeft,b.gaugeEndX=b.canvasLeft+C,b.gaugeStartY=b.canvasTop,b.gaugeEndY=b.canvasTop+k,b.gaugeCenterX=b.canvasLeft+C/2,b.gaugeCenterY=b.canvasTop+k/2,y.transform(["T",_,S]),(S=l.linear)||(l.linear=S=N.group("colorrange",y),S.trackTooltip(!0),l.outerRect=N.rect(y)),l.outerRect.attr({x:0,y:0,width:C,height:k,stroke:"none",r:0}),e=function(e,t){return{x:e*C/(T-A),y:0,width:(t-e)*C/(T-A),height:k}},l.colorRangeElems||(l.colorRangeElems=[]),y=0,_=F&&F.length;y<_;y+=1)o=F[y],a=e(o.minvalue-A,o.maxvalue-A),o.x=a.x,o.y=a.y,o.width=a.width,o.height=a.height,t=o.code,t=p(g(r(o.bordercolor,t),O),d(o.borderalpha,M)),i=B.parseColorMix(o.code,I),n=B.parseAlphaList(o.alpha,i.length),s=d(o.borderAlpha,M),o=n.split(f),o=m.apply(Math,o),o=m(R&&s||0,o),s={x:a.x,y:a.y,width:a.width,height:a.height,r:0,"stroke-width":R},(a=l.colorRangeElems[y])||(a=l.colorRangeElems[y]=N.rect(S),a.attr(s)),a.attr({stroke:t,fill:v({FCcolor:{color:i.toString(),ratio:E,alpha:n,angle:270}})}),a.animateWith(H,W,s,j,G),a.shadow({apply:V,opacity:o/100}),a.show();for(;l.colorRangeElems[y];)l.colorRangeElems[y].shadow(!1),l.colorRangeElems[y].hide(),y++;if(P)for(b=b.trendPointConfig,l.trendObjElems||(l.trendObjElems=[]),l.trendZoneElems||(l.trendZoneElems=[]),l.marker||(l.marker=[]),y=0,_=b.length;y<_;y+=1)P=b[y],a=e(P.startValue-A,P.endValue-A),P.isTrendZone?((I=l.trendZoneElems[L])||(I=l.trendZoneElems[L]=N.rect({height:0=w&&c<=x&&c>=w&&k.push({startValue:l,endValue:c,tooltext:o(s(f.markertooltext)),displayValue:o(s(f.displayvalue),h?a:v.numberFormatter.scale(l)),showOnTop:d(f.showontop,u.ticksbelowgauge,1),color:r(f.color,C.getColor("trendLightColor")),textColor:f.color,alpha:d(f.alpha,99),thickness:d(f.thickness,1),dashStyle:Number(f.dashed)?i(f.dashlen||2,f.dashgap||2,f.thickness||1):a,useMarker:d(f.usemarker,0),markerColor:p(r(f.markercolor,f.color,C.getColor("trendLightColor")),100),markerBorderColor:p(r(f.markerbordercolor,f.bordercolor,C.getColor("trendDarkColor")),100),markerRadius:d(d(f.markerradius)*b,5),markerToolText:n(f.markertooltext),trendValueDistance:d(d(f.trendvaluedistance)*b,y.tickInterval),isTrendZone:h});t.stableSort&&t.stableSort(g.trendPointConfig,function(e,t){return e.startValue-t.startValue})},_createDatasets:function(){var t,r=this.components,o=this.jsonData.pointers;t=this.defaultDatasetType;var a,r=r.dataset||(r.dataset=[]);t&&(t=e.get("component",["dataset",t]))&&(r[0]?(t=r[0].pointerArr&&r[0].pointerArr.pointer&&r[0].pointerArr.pointer.length,a=o&&o.pointer&&o.pointer.length||0,t>a&&r[0].removeData(t-a),r[0].pointerArr=o,r[0].configure()):(t=new t,r.push(t),t.chart=this,t.init(o)))},_getData:function(e,t){var r,o,a=this.components.dataset,i=this.getJobList(),n=function(){return(o=a[0].components.data)&&o[--e]?(r=o[e].config,d(r.setValue,r.itemValue)):null};if(a){if("function"!=typeof t)return n();i.eiMethods.push(y.addJob(function(){t(n())},b.postRender))}},_setData:function(e,t){var r,o="value=";if(void 0!==e&&void 0!==t){for(r=1;re.gaugeYScale)&&(e.gaugeYScale=30),e.gaugeYScale/=100,e.showGaugeBorder=o(a.showgaugeborder,1),l=e.showGaugeBorder?o(a.gaugeborderalpha,40):0,e.gaugeBorderColor=n(r(a.gaugebordercolor,s.getColor(d)),l),e.gaugeBorderThickness=o(a.gaugeborderthickness,1),e.gaugeContainerColor=r(a.cylglasscolor,i(e.gaugeFillColor,30))}},s.thermometer)}]),e.register("module",["private","modules.renderer.js-angulargauge",function(){var t=this.hcLib,r=t.pluck,o=t.getValidValue,a=t.BLANKSTRING,i=t.preDefStr,n=i.animationObjStr,s=i.configStr,l=t.pluckNumber,c=t.graphics.convertColor,h=t.COMMASTRING,i=Math,d=i.max,u=i.min,p=i.PI/180,g=t.toRaphaelColor,i=!t.CREDIT_REGEX.test(this.window.location.hostname),f=t.chartAPI,m=t.extend2,v=t.pluckFontSize;f("angulargauge",{friendlyName:"Angular Gauge",creditLabel:i,defaultDatasetType:"angulargauge",standaloneInit:!0,isHorizontal:!0,isAxisOpposite:!1,isRealTime:!0,hasLegend:!1,drawPlotlines:!1,drawPlotBands:!1,isAxisReverse:!1,colorRange:!0,defaultPaletteOptions:function(e,t){var r;e||(e={});for(r in t)e[r]=t[r];return e}(m({},t.defaultGaugePaletteOptions),{dialColor:["999999,ffffff,999999","ADB68F,F3F5DD,ADB68F","A2C4C8,EDFBFE,A2C4C8","FDB548,FFF5E8,FDB548","FF7CA0,FFD1DD,FF7CA0"],dialBorderColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"],pivotColor:["999999,ffffff,999999","ADB68F,F3F5DD,ADB68F","A2C4C8,EDFBFE,A2C4C8","FDB548,FFF5E8,FDB548","FF7CA0,FFD1DD,FF7CA0"],pivotBorderColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"]}),rtParserModify:!0,applicableDSList:{angulargauge:!0},_spaceManager:function(){var e,t,r=this.config,i=this.components,n=i.scale.config,s=i.dataset[0];e=s.components.data[0];var c,i=i.scale,h=s.chart.jsonData.chart,s=s.config,d=s.scaleFactor,g=0,f=0,m=g=0,v=0,v=s.pivotRadius,b=r.dataLabels.style.fontSize,g=r.dataLabels.style.lineHeight,m=r.displayValueCount,y=r.borderWidth,x=r.minChartWidth,w=r.minChartHeight,v=0;r.canvasWidth-2*y=g-e.left&&v-e.top>=g-e.left?e.left:e.top:m-e.left>=g-e.top&&v-e.top>=g-e.top?e.top:e.left,v+=2*i.config.polarPadding,s.gaugeOuterRadius||(s.gaugeOuterRadius=n.radius,s.gaugeOuterRadius-=v),void 0===s.gaugeInnerRadius&&(s.gaugeInnerRadius=s.gaugeOuterRadius*c),i.setAxisConfig({centerX:s.gaugeOriginX,centerY:s.gaugeOriginY,radius:n.radius||s.gaugeOuterRadius,gaugeOuterRadius:s.gaugeOuterRadius,gaugeInnerRadius:s.gaugeInnerRadius,scaleFactor:d}),n=i.getLimit(),i.getPixel(n.min),i.getPixel(n.max),r.gaugeStartX=r.canvasLeft,r.gaugeStartY=r.canvasTop,r.gaugeEndX=r.canvasRight,r.gaugeEndY=r.canvasBottom,r.gaugeCenterX=s.gaugeOriginX,r.gaugeCenterY=s.gaugeOriginY,r.gaugeStartAngle=s.gaugeStartAngle/p,r.gaugeEndAngle=s.gaugeEndAngle/p},_createAxes:function(){var t=this.components,r=e.register("component",["axis","polarGauge"]);t.scale=t=new r,t.chart=this,t.init()},_feedAxesRawData:function(){var e=this.components,o=e.colorManager,a=this.jsonData,i=a.chart,n=t.chartPaletteStr.chart2D,s=l(i.axisontop,i.axisonleft,void 0!==i.ticksbelowgauge?!i.ticksbelowgauge:void 0,this.isAxisOpposite),c=l(i.reverseaxis,this.isAxisReverse),o={outCanfontFamily:r(i.outcnvbasefont,i.basefont,"Verdana,sans"),outCanfontSize:v(i.outcnvbasefontsize,i.basefontsize,10),outCancolor:r(i.outcnvbasefontcolor,i.basefontcolor,o.getColor(n.baseFontColor)).replace(/^#?([a-f0-9]+)/gi,"#$1"),useEllipsesWhenOverflow:i.useellipseswhenoverflow,divLineColor:r(i.vdivlinecolor,o.getColor(n.divLineColor)),divLineAlpha:r(i.vdivlinealpha,o.getColor("divLineAlpha")),divLineThickness:l(i.vdivlinethickness,1),divLineIsDashed:!!l(i.vdivlinedashed,i.vdivlineisdashed,0),divLineDashLen:l(i.vdivlinedashlen,4),divLineDashGap:l(i.vdivlinedashgap,2),showAlternateGridColor:l(i.showalternatevgridcolor,0),alternateGridColor:r(i.alternatevgridcolor,o.getColor("altVGridColor")),alternateGridAlpha:r(i.alternatevgridalpha,o.getColor("altVGridAlpha")),numDivLines:i.numvdivlines,labelFont:i.labelfont,labelFontSize:i.labelfontsize,labelFontColor:i.labelfontcolor,labelFontAlpha:i.labelalpha,labelFontBold:i.labelfontbold,labelFontItalic:i.labelfontitalic,axisName:i.xaxisname,axisMinValue:i.lowerlimit,axisMaxValue:i.upperlimit,setAdaptiveMin:i.setadaptivemin,adjustDiv:i.adjustvdiv,labelDisplay:i.labeldisplay,showLabels:i.showlabels,rotateLabels:i.rotatelabels,slantLabel:l(i.slantlabels,i.slantlabel),labelStep:l(i.labelstep,i.xaxisvaluesstep),showAxisValues:l(i.showxaxisvalues,i.showxaxisvalue),showDivLineValues:l(i.showvdivlinevalues,i.showvdivlinevalues),showZeroPlane:i.showvzeroplane,zeroPlaneColor:i.vzeroplanecolor,zeroPlaneThickness:i.vzeroplanethickness,zeroPlaneAlpha:i.vzeroplanealpha,showZeroPlaneValue:i.showvzeroplanevalue,trendlineColor:i.trendlinecolor,trendlineToolText:i.trendlinetooltext,trendlineThickness:i.trendlinethickness,trendlineAlpha:i.trendlinealpha,showTrendlinesOnTop:i.showtrendlinesontop,showAxisLine:l(i.showxaxisline,i.showaxislines,i.drawAxisLines,0),axisLineThickness:l(i.xaxislinethickness,i.axislinethickness,1),axisLineAlpha:l(i.xaxislinealpha,i.axislinealpha,100),axisLineColor:r(i.xaxislinecolor,i.axislinecolor,"#000000"),majorTMNumber:i.majortmnumber,majorTMColor:i.majortmcolor,majorTMAlpha:i.majortmalpha,majorTMHeight:i.majortmheight,tickValueStep:i.tickvaluestep,showTickMarks:i.showtickmarks,connectTickMarks:i.connecttickmarks,showTickValues:i.showtickvalues,majorTMThickness:i.majortmthickness,upperlimit:e.numberFormatter.getCleanValue(i.upperlimit),lowerlimit:e.numberFormatter.getCleanValue(i.lowerlimit),reverseScale:i.reversescale,showLimits:i.showlimits,adjustTM:i.adjusttm,minorTMNumber:i.minortmnumber,minorTMColor:i.minortmcolor,minorTMAlpha:i.minortmalpha,minorTMHeight:l(i.minortmheight,i.minortmwidth),minorTMThickness:i.minortmthickness,tickMarkDistance:l(i.tickmarkdistance,i.tickmarkgap),tickValueDistance:l(i.tickvaluedistance,i.displayvaluedistance),placeTicksInside:i.placeticksinside,placeValuesInside:i.placevaluesinside,upperLimitDisplay:i.upperlimitdisplay,lowerLimitDisplay:i.lowerlimitdisplay,ticksBelowGauge:i.ticksbelowgauge,ticksBelowGraph:i.ticksbelowgraph,trendValueDistance:i.trendvaluedistance};o.trendPoints=a.trendpoints,e=e.scale,e.setCommonConfigArr(o,!this.isHorizontal,c,s),e.configure()},_drawCanvas:function(){var e,t,o,a,i,u,p=this.components,f=p.dataset[0],m=f.config,f=f.graphics||(f.graphics={}),v=p.scale,b=p.colorManager,y=v.config.axisRange,x=p.colorRange,w=this.graphics.datasetGroup,C=this.graphics.datalabelsGroup,p=p.paper,k=m.gaugeOuterRadius,S=m.gaugeInnerRadius,_=m.gaugeFillRatio,L=m.gaugeBorderColor,A=m.gaugeBorderThickness,T=m.gaugeBorderAlpha,D=m.gaugeFillMix,P=m.gaugeOriginX,I=m.gaugeOriginY,E=m.gaugeStartAngle,O=m.showShadow,M=y.min,y=y.max,R=x?x.getColorRangeArr(M,y):[],F=this.get(s,n),x=F.duration,M=F.dummyObj,V=F.animObj,F=F.animType,N=0,B=R.length,j=0;for(f.band=f.band||[],f.bandGroup||(f.bandGroup=p.group("bandGroup",w)),f.pointGroup?f.pointGroup.animateWith(M,V,{transform:"t"+P+h+I},x,F):f.pointGroup=p.group("pointers",C).translate(P,I);Nw&&(E+=w,w=E-w,E-=w),f.band[N]?f.band[N].animateWith(M,V,{ringpath:[P,I,k,S,E,w]},x,F):f.band[N]=p.ringpath(P,I,k,S,E,w,f.bandGroup),f.band[N].attr({fill:g({FCcolor:{cx:P,cy:I,r:k,gradientUnits:"userSpaceOnUse",color:o.join(),alpha:a,ratio:i,radialGradient:!0}}),"stroke-width":A,stroke:u}).shadow({apply:O,opacity:e/100}),E=t,j+=1;for(N=j,B=f.band.length;Na&&r[0].removeData(t-a),r[0].configure()):(t=new t,r.push(t),t.chart=this,t.init(a)))},_setCategories:function(){},_angularGaugeSpaceManager:function(e,t,r,o,a,i,n,s,l,c){var h,d=void 0!==a&&null!==a,u=void 0!==i&&null!==i,p=void 0!==n&&null!==n,g=2*Math.PI,f=Math.PI,m=Math.PI/2,v=f+m;a={radius:a,centerX:i,centerY:n};var b,y,x,w,C,k=!1,S=e%g;return 0>S&&(S+=g),(s=s||0)&&so/2&&(l=o/2),c>o/2&&(c=o/2),y=Math.cos(e),w=Math.sin(e),x=Math.cos(t),C=Math.sin(t),b=Math.min(y,x,0),x=Math.max(y,x,0),y=Math.min(w,C,0),w=Math.max(w,C,0),d&&u&&p||(t-=e,e=S+t,(e>g||0>e)&&(x=1),0m||e>g+m)&&(w=1),(Sf||e>g+f)&&(b=-1),(Sv||e>g+v)&&(y=-1)):((S>m&&ef&&ev&&e=a.maxRadius&&(a.maxRadius=Math.min(r/2,o/2))),a},_getScaleFactor:function(e,t,r,o){return t=l(t,o),e=l(e,r),t&&e?e/r==t/o?r/e:Math.min(r/e,o/t):1},_setData:f.hlineargauge,_getData:f.hlineargauge,_getDataForId:f.hlineargauge,_setDataForId:f.hlineargauge},f.axisgaugebase)}]),e.register("module",["private","modules.renderer.js-bulb",function(){var t=this.hcLib,r=!t.CREDIT_REGEX.test(this.window.location.hostname),o=t.chartAPI,a=t.pluckNumber;o("bulb",{showRTvalue:!1,canvasPadding:!1,friendlyName:"Bulb Gauge",defaultSeriesType:"bulb",defaultPlotShadow:1,standaloneInit:!0,drawAnnotations:!0,charttopmargin:10,chartrightmargin:10,chartbottommargin:10,chartleftmargin:10,realtimeEnabled:!0,isRealTime:!0,defaultDatasetType:"bulb",applicableDSList:{bulb:!0},creditLabel:r,_createDatasets:function(){var t,r=this.components;t=this.defaultDatasetType;var o,a=[];a.push({value:this.jsonData.value}),o={data:a},this.config.categories=a,r=r.dataset||(r.dataset=[]),t&&(t=e.get("component",["dataset",t]))&&(r[0]?(t=r[0].JSONData,t=t.data.length,a=o.data.length,t>a&&r[0].removeData(a-1,t-a,!1),r[0].JSONData=o,r[0].configure()):(t=new t,r.push(t),t.chart=this,t.init(o)))},_drawCanvas:function(){},_spaceManager:function(){var e,t=this.hasLegend;e=this.config;var r,o,i=this.components,n=i.legend,i=i.dataset[0],s=i.config,l=this.jsonData.chart,c=a(l.showborder,this.is3D?0:1),h=e.minChartWidth,d=e.minChartHeight,l=e.borderWidth=c?a(l.borderthickness,1):0;s.scaleFactor=e.autoscale?this._getScaleFactor(s.origW,s.origH,e.width,e.height):1,e.canvasWidth-2*lr){if(a)for(l=r;le.length)return null;if("full"===r.pathMatch&&(t.hasChildren()||o.length0?e[e.length-1]:null}function g(e,t){for(var r in e)e.hasOwnProperty(r)&&t(e[r],r)}function f(e,t){if(0===Object.keys(e).length)return r.i(gt.of)({});var o=[],a=[],i={};g(e,function(e,r){var n=yt.map.call(t(r,e),function(e){return i[r]=e});r===Ht?o.push(n):a.push(n)});var n=St.concatAll.call(gt.of.apply(void 0,o.concat(a))),s=bt.last.call(n);return yt.map.call(s,function(){return i})}function m(e){var t=At.mergeAll.call(e);return mt.every.call(t,function(e){return!0===e})}function v(e){return r.i(ht["ɵisObservable"])(e)?e:r.i(ht["ɵisPromise"])(e)?r.i(Lt.fromPromise)(Promise.resolve(e)):r.i(gt.of)(e)}function b(){return new Ut(new Xt([],{}),{},null)}function y(e,t,r){return r?x(e.queryParams,t.queryParams)&&w(e.root,t.root):C(e.queryParams,t.queryParams)&&k(e.root,t.root)}function x(e,t){return d(e,t)}function w(e,t){if(!L(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var r in t.children){if(!e.children[r])return!1;if(!w(e.children[r],t.children[r]))return!1}return!0}function C(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(r){return t[r]===e[r]})}function k(e,t){return S(e,t,t.segments)}function S(e,t,r){if(e.segments.length>r.length){var o=e.segments.slice(0,r.length);return!!L(o,r)&&!t.hasChildren()}if(e.segments.length===r.length){if(!L(e.segments,r))return!1;for(var a in t.children){if(!e.children[a])return!1;if(!k(e.children[a],t.children[a]))return!1}return!0}var o=r.slice(0,e.segments.length),i=r.slice(e.segments.length);return!!L(e.segments,o)&&(!!e.children[Ht]&&S(e.children[Ht],t,i))}function _(e,t){return L(e,t)&&e.every(function(e,r){return d(e.parameters,t[r].parameters)})}function L(e,t){return e.length===t.length&&e.every(function(e,r){return e.path===t[r].path})}function A(e,t){var r=[];return g(e.children,function(e,o){o===Ht&&(r=r.concat(t(e,o)))}),g(e.children,function(e,o){o!==Ht&&(r=r.concat(t(e,o)))}),r}function T(e){return e.segments.map(function(e){return E(e)}).join("/")}function D(e,t){if(!e.hasChildren())return T(e);if(t){var r=e.children[Ht]?D(e.children[Ht],!1):"",o=[];return g(e.children,function(e,t){t!==Ht&&o.push(t+":"+D(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var a=A(e,function(t,r){return r===Ht?[D(e.children[Ht],!1)]:[r+":"+D(t,!1)]});return T(e)+"/("+a.join("//")+")"}function P(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}function I(e){return decodeURIComponent(e)}function E(e){return""+P(e.path)+O(e.parameters)}function O(e){return Object.keys(e).map(function(t){return";"+P(t)+"="+P(e[t])}).join("")}function M(e){var t=Object.keys(e).map(function(t){var r=e[t];return Array.isArray(r)?r.map(function(e){return P(t)+"="+P(e)}).join("&"):P(t)+"="+P(r)});return t.length?"?"+t.join("&"):""}function R(e){var t=e.match(Jt);return t?t[0]:""}function F(e){var t=e.match(Zt);return t?t[0]:""}function V(e){var t=e.match(Qt);return t?t[0]:""}function N(e){return new Ct.Observable(function(t){return t.error(new tr(e))})}function B(e){return new Ct.Observable(function(t){return t.error(new rr(e))})}function j(e){return new Ct.Observable(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+e+"'"))})}function H(e){return new Ct.Observable(function(t){return t.error(a("Cannot load children because the guard of the route \"path: '"+e.path+"'\" returned false"))})}function W(e,t,r,o,a){return new or(e,t,r,o,a).apply()}function G(e,t){var o=t.canLoad;return o&&0!==o.length?m(yt.map.call(r.i(pt.from)(o),function(r){var o=e.get(r);return v(o.canLoad?o.canLoad(t):o(t))})):r.i(gt.of)(!0)}function z(e,t,r){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||r.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var o=t.matcher||n,a=o(r,e,t);return a?{matched:!0,consumedSegments:a.consumed,lastChild:a.consumed.length,positionalParamSegments:a.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function U(e,t,r,o){if(r.length>0&&K(e,r,o)){var a=new Xt(t,q(o,new Xt(r,e.children)));return{segmentGroup:X(a),slicedSegments:[]}}if(0===r.length&&$(e,r,o)){var a=new Xt(e.segments,Y(e,r,o,e.children));return{segmentGroup:X(a),slicedSegments:r}}return{segmentGroup:e,slicedSegments:r}}function X(e){if(1===e.numberOfChildren&&e.children[Ht]){var t=e.children[Ht];return new Xt(e.segments.concat(t.segments),t.children)}return e}function Y(e,t,r,o){for(var a={},i=0,n=r;i0)||"full"!==r.pathMatch)&&(""===r.path&&void 0!==r.redirectTo)}function Z(e){return e.outlet||Ht}function Q(e,t){if(e===t.value)return t;for(var r=0,o=t.children;r=1;){var o=t[r],a=t[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(a.component)break;r--}}return t.slice(r).reduce(function(e,t){return{params:Object.assign({},e.params,t.params),data:Object.assign({},e.data,t.data),resolve:Object.assign({},e.resolve,t._resolvedData)}},{params:{},data:{},resolve:{}})}function ae(e,t){t.value._routerState=e,t.children.forEach(function(t){return ae(e,t)})}function ie(e){var t=e.children.length>0?" { "+e.children.map(ie).join(", ")+" } ":"";return""+e.value+t}function ne(e){if(e.snapshot){var t=e.snapshot,r=e._futureSnapshot;e.snapshot=r,d(t.queryParams,r.queryParams)||e.queryParams.next(r.queryParams),t.fragment!==r.fragment&&e.fragment.next(r.fragment),d(t.params,r.params)||e.params.next(r.params),h(t.url,r.url)||e.url.next(r.url),d(t.data,r.data)||e.data.next(r.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function se(e,t){var r=d(e.params,t.params)&&_(e.url,t.url),o=!e.parent!=!t.parent;return r&&!o&&(!e.parent||se(e.parent,t.parent))}function le(e,t,r){var o=ce(e,t._root,r?r._root:void 0);return new nr(o,t)}function ce(e,t,r){if(r&&e.shouldReuseRoute(t.value,r.value.snapshot)){var o=r.value;o._futureSnapshot=t.value;var a=de(e,t,r);return new ir(o,a)}if(e.retrieve(t.value)){var i=e.retrieve(t.value).route;return he(t,i),i}var o=ue(t.value),a=t.children.map(function(t){return ce(e,t)});return new ir(o,a)}function he(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(var r=0;ra;){if(i-=a,!(o=o.parent))throw new Error("Invalid number of '../'");a=o.segments.length}return new dr(o,!1,a-i)}function xe(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[Ht]:""+e}function we(e){return"object"!=typeof e[0]?(t={},t[Ht]=e,t):void 0===e[0].outlets?(r={},r[Ht]=e,r):e[0].outlets;var t,r}function Ce(e,t,r){if(e||(e=new Xt([],{})),0===e.segments.length&&e.hasChildren())return ke(e,t,r);var o=Se(e,t,r),a=r.slice(o.commandIndex);if(o.match&&o.pathIndex=r.length)return i;var n=e.segments[a],s=xe(r[o]),l=o0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!Te(s,l,n))return i;o+=2}else{if(!Te(s,{},n))return i;o++}a++}return{match:!0,pathIndex:a,commandIndex:o}}function _e(e,t,r){for(var o=e.segments.slice(0,t),a=0;a0))throw new ur;return{consumedSegments:[],lastChild:0,parameters:{}}}var o=t.matcher||n,a=o(r,e,t);if(!a)throw new ur;var i={};g(a.posParams,function(e,t){i[t]=e.path});var s=a.consumed.length>0?Object.assign({},i,a.consumed[a.consumed.length-1].parameters):i;return{consumedSegments:a.consumed,lastChild:a.consumed.length,parameters:s}}function Oe(e){var t={};e.forEach(function(e){var r=t[e.value.outlet];if(r){var o=r.url.map(function(e){return e.toString()}).join("/"),a=e.value.url.map(function(e){return e.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+o+"' and '"+a+"'.")}t[e.value.outlet]=e.value})}function Me(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Re(e){for(var t=e,r=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)t=t._sourceSegment,r+=t._segmentIndexShift?t._segmentIndexShift:0;return r-1}function Fe(e,t,r,o){if(r.length>0&&Be(e,r,o)){var a=new Xt(t,Ne(e,t,o,new Xt(r,e.children)));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===r.length&&je(e,r,o)){var i=new Xt(e.segments,Ve(e,r,o,e.children));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:r}}var n=new Xt(e.segments,e.children);return n._sourceSegment=e,n._segmentIndexShift=t.length,{segmentGroup:n,slicedSegments:r}}function Ve(e,t,r,o){for(var a={},i=0,n=r;i0)||"full"!==r.pathMatch)&&(""===r.path&&void 0===r.redirectTo)}function We(e){return e.outlet||Ht}function Ge(e){return e.data||{}}function ze(e){return e.resolve||{}}function Ue(e){throw e}function Xe(e){return r.i(gt.of)(null)}function Ye(e){ne(e.value),e.children.forEach(Ye)}function qe(e){for(var t=e.parent;t;t=t.parent){var r=t._routeConfig;if(r&&r._loadedConfig)return r._loadedConfig;if(r&&r.component)return null}return null}function Ke(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var r=t._routeConfig;if(r&&r._loadedConfig)return r._loadedConfig}return null}function $e(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}function Je(e){for(var t=0;t0},Object.defineProperty(e.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return T(this)},e}(),Yt=function(){function e(e,t){this.path=e,this.parameters=t}return Object.defineProperty(e.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=o(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return E(this)},e}(),qt=function(){function e(){}return e.prototype.parse=function(e){},e.prototype.serialize=function(e){},e}(),Kt=function(){function e(){}return e.prototype.parse=function(e){var t=new er(e);return new Ut(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())},e.prototype.serialize=function(e){return"/"+D(e.root,!0)+M(e.queryParams)+("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"")},e}(),$t=new Kt,Jt=/^[^\/()?;=&#]+/,Zt=/^[^=?&#]+/,Qt=/^[^?&#]+/,er=function(){function e(e){this.url=e,this.remaining=e}return e.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Xt([],{}):new Xt([],this.parseChildren())},e.prototype.parseQueryParams=function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e},e.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURI(this.remaining):null},e.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(r[Ht]=new Xt(e,t)),r},e.prototype.parseSegment=function(){var e=R(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(e),new Yt(I(e),this.parseMatrixParams())},e.prototype.parseMatrixParams=function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e},e.prototype.parseParam=function(e){var t=R(this.remaining);if(t){this.capture(t);var r="";if(this.consumeOptional("=")){var o=R(this.remaining);o&&(r=o,this.capture(r))}e[I(t)]=I(r)}},e.prototype.parseQueryParam=function(e){var t=F(this.remaining);if(t){this.capture(t);var r="";if(this.consumeOptional("=")){var o=V(this.remaining);o&&(r=o,this.capture(r))}var a=I(t),i=I(r);if(e.hasOwnProperty(a)){var n=e[a];Array.isArray(n)||(n=[n],e[a]=n),n.push(i)}else e[a]=i}},e.prototype.parseParens=function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var r=R(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new Error("Cannot parse url '"+this.url+"'");var a=void 0;r.indexOf(":")>-1?(a=r.substr(0,r.indexOf(":")),this.capture(a),this.capture(":")):e&&(a=Ht);var i=this.parseChildren();t[a]=1===Object.keys(i).length?i[Ht]:new Xt([],i),this.consumeOptional("//")}return t},e.prototype.peekStartsWith=function(e){return this.remaining.startsWith(e)},e.prototype.consumeOptional=function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)},e.prototype.capture=function(e){if(!this.consumeOptional(e))throw new Error('Expected "'+e+'".')},e}(),tr=function(){function e(e){this.segmentGroup=e||null}return e}(),rr=function(){function e(e){this.urlTree=e}return e}(),or=function(){function e(e,t,r,o,a){this.configLoader=t,this.urlSerializer=r,this.urlTree=o,this.config=a,this.allowRedirects=!0,this.ngModule=e.get(ht.NgModuleRef)}return e.prototype.apply=function(){var e=this,t=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Ht),r=yt.map.call(t,function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)});return kt._catch.call(r,function(t){if(t instanceof rr)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof tr)throw e.noMatchError(t);throw t})},e.prototype.match=function(e){var t=this,r=this.expandSegmentGroup(this.ngModule,this.config,e.root,Ht),o=yt.map.call(r,function(r){return t.createUrlTree(r,e.queryParams,e.fragment)});return kt._catch.call(o,function(e){if(e instanceof tr)throw t.noMatchError(e);throw e})},e.prototype.noMatchError=function(e){return new Error("Cannot match any routes. URL Segment: '"+e.segmentGroup+"'")},e.prototype.createUrlTree=function(e,t,r){var o=e.segments.length>0?new Xt([],(a={},a[Ht]=e,a)):e;return new Ut(o,t,r);var a},e.prototype.expandSegmentGroup=function(e,t,r,o){return 0===r.segments.length&&r.hasChildren()?yt.map.call(this.expandChildren(e,t,r),function(e){return new Xt([],e)}):this.expandSegment(e,r,t,r.segments,o,!0)},e.prototype.expandChildren=function(e,t,r){var o=this;return f(r.children,function(r,a){return o.expandSegmentGroup(e,t,a,r)})},e.prototype.expandSegment=function(e,t,o,a,i,n){var s=this,l=gt.of.apply(void 0,o),c=yt.map.call(l,function(l){var c=s.expandSegmentAgainstRoute(e,t,o,l,a,i,n);return kt._catch.call(c,function(e){if(e instanceof tr)return r.i(gt.of)(null);throw e})}),h=St.concatAll.call(c),d=vt.first.call(h,function(e){return!!e});return kt._catch.call(d,function(e,o){if(e instanceof _t.EmptyError){if(s.noLeftoversInUrl(t,a,i))return r.i(gt.of)(new Xt([],{}));throw new tr(t)}throw e})},e.prototype.noLeftoversInUrl=function(e,t,r){return 0===t.length&&!e.children[r]},e.prototype.expandSegmentAgainstRoute=function(e,t,r,o,a,i,n){return Z(o)!==i?N(t):void 0===o.redirectTo?this.matchSegmentAgainstRoute(e,t,o,a):n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,r,o,a,i):N(t)},e.prototype.expandSegmentAgainstRouteUsingRedirect=function(e,t,r,o,a,i){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,r,o,i):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,r,o,a,i)},e.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(e,t,r,o){var a=this,i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?B(i):xt.mergeMap.call(this.lineralizeSegments(r,i),function(r){var i=new Xt(r,{});return a.expandSegment(e,i,t,r,o,!1)})},e.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,r,o,a,i){var n=this,s=z(t,o,a),l=s.matched,c=s.consumedSegments,h=s.lastChild,d=s.positionalParamSegments;if(!l)return N(t);var u=this.applyRedirectCommands(c,o.redirectTo,d);return o.redirectTo.startsWith("/")?B(u):xt.mergeMap.call(this.lineralizeSegments(o,u),function(o){return n.expandSegment(e,t,r,o.concat(a.slice(h)),i,!1)})},e.prototype.matchSegmentAgainstRoute=function(e,t,o,a){var i=this;if("**"===o.path)return o.loadChildren?yt.map.call(this.configLoader.load(e.injector,o),function(e){return o._loadedConfig=e,new Xt(a,{})}):r.i(gt.of)(new Xt(a,{}));var n=z(t,o,a),s=n.matched,l=n.consumedSegments,c=n.lastChild;if(!s)return N(t);var h=a.slice(c),d=this.getChildConfig(e,o);return xt.mergeMap.call(d,function(e){var o=e.module,a=e.routes,n=U(t,l,h,a),s=n.segmentGroup,c=n.slicedSegments;if(0===c.length&&s.hasChildren()){var d=i.expandChildren(o,a,s);return yt.map.call(d,function(e){return new Xt(l,e)})}if(0===a.length&&0===c.length)return r.i(gt.of)(new Xt(l,{}));var u=i.expandSegment(o,s,a,c,Ht,!0);return yt.map.call(u,function(e){return new Xt(l.concat(e.segments),e.children)})})},e.prototype.getChildConfig=function(e,t){var o=this;return t.children?r.i(gt.of)(new zt(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?r.i(gt.of)(t._loadedConfig):xt.mergeMap.call(G(e.injector,t),function(r){return r?yt.map.call(o.configLoader.load(e.injector,t),function(e){return t._loadedConfig=e,e}):H(t)}):r.i(gt.of)(new zt([],e))},e.prototype.lineralizeSegments=function(e,t){for(var o=[],a=t.root;;){if(o=o.concat(a.segments),0===a.numberOfChildren)return r.i(gt.of)(o);if(a.numberOfChildren>1||!a.children[Ht])return j(e.redirectTo);a=a.children[Ht]}},e.prototype.applyRedirectCommands=function(e,t,r){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,r)},e.prototype.applyRedirectCreatreUrlTree=function(e,t,r,o){var a=this.createSegmentGroup(e,t.root,r,o);return new Ut(a,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)},e.prototype.createQueryParams=function(e,t){var r={};return g(e,function(e,o){if("string"==typeof e&&e.startsWith(":")){var a=e.substring(1);r[o]=t[a]}else r[o]=e}),r},e.prototype.createSegmentGroup=function(e,t,r,o){var a=this,i=this.createSegments(e,t.segments,r,o),n={};return g(t.children,function(t,i){n[i]=a.createSegmentGroup(e,t,r,o)}),new Xt(i,n)},e.prototype.createSegments=function(e,t,r,o){var a=this;return t.map(function(t){return t.path.startsWith(":")?a.findPosParam(e,t,o):a.findOrReturn(t,r)})},e.prototype.findPosParam=function(e,t,r){var o=r[t.path.substring(1)];if(!o)throw new Error("Cannot redirect to '"+e+"'. Cannot find '"+t.path+"'.");return o},e.prototype.findOrReturn=function(e,t){for(var r=0,o=0,a=t;o1?t[t.length-2]:null},e.prototype.children=function(e){var t=Q(e,this._root);return t?t.children.map(function(e){return e.value}):[]},e.prototype.firstChild=function(e){var t=Q(e,this._root);return t&&t.children.length>0?t.children[0].value:null},e.prototype.siblings=function(e){var t=ee(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})},e.prototype.pathFromRoot=function(e){return ee(e,this._root).map(function(e){return e.value})},e}(),ir=function(){function e(e,t){this.value=e,this.children=t}return e.prototype.toString=function(){return"TreeNode("+this.value+")"},e}(),nr=function(e){function t(t,r){var o=e.call(this,t)||this;return o.snapshot=r,ae(o,t),o}return lt.a(t,e),t.prototype.toString=function(){return this.snapshot.toString()},t}(ar),sr=function(){function e(e,t,r,o,a,i,n,s){this.url=e,this.params=t,this.queryParams=r,this.fragment=o,this.data=a,this.outlet=i,this.component=n,this._futureSnapshot=s}return Object.defineProperty(e.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=yt.map.call(this.params,function(e){return o(e)})),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=yt.map.call(this.queryParams,function(e){return o(e)})),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},e}(),lr=function(){function e(e,t,r,o,a,i,n,s,l,c,h){this.url=e,this.params=t,this.queryParams=r,this.fragment=o,this.data=a,this.outlet=i,this.component=n,this._routeConfig=s,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return Object.defineProperty(e.prototype,"routeConfig",{get:function(){return this._routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=o(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=o(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"Route(url:'"+this.url.map(function(e){return e.toString()}).join("/")+"', path:'"+(this._routeConfig?this._routeConfig.path:"")+"')"},e}(),cr=function(e){function t(t,r){var o=e.call(this,r)||this;return o.url=t,ae(o,r),o}return lt.a(t,e),t.prototype.toString=function(){return ie(this._root)},t}(ar),hr=function(){function e(e,t,r){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=r,e&&r.length>0&&ge(r[0]))throw new Error("Root segment cannot have matrix parameters");var o=r.find(function(e){return"object"==typeof e&&null!=e&&e.outlets});if(o&&o!==p(r))throw new Error("{outlets:{}} has to be the last command")}return e.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},e}(),dr=function(){function e(e,t,r){this.segmentGroup=e,this.processChildren=t,this.index=r}return e}(),ur=function(){function e(){}return e}(),pr=function(){function e(e,t,r,o){this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=o}return e.prototype.recognize=function(){try{var e=Fe(this.urlTree.root,[],[],this.config).segmentGroup,t=this.processSegmentGroup(this.config,e,Ht),o=new lr([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},Ht,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new ir(o,t),i=new cr(this.url,a);return this.inheritParamsAndData(i._root),r.i(gt.of)(i)}catch(e){return new Ct.Observable(function(t){return t.error(e)})}},e.prototype.inheritParamsAndData=function(e){var t=this,r=e.value,o=oe(r);r.params=Object.freeze(o.params),r.data=Object.freeze(o.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})},e.prototype.processSegmentGroup=function(e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,r)},e.prototype.processChildren=function(e,t){var r=this,o=A(t,function(t,o){return r.processSegmentGroup(e,t,o)});return Oe(o),Pe(o),o},e.prototype.processSegment=function(e,t,r,o){for(var a=0,i=e;a0?p(r).parameters:{},i=new lr(r,a,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,Ge(e),o,e.component,e,Me(t),Re(t)+r.length,ze(e));return[new ir(i,[])]}var n=Ee(t,e,r),s=n.consumedSegments,l=n.parameters,c=n.lastChild,h=r.slice(c),d=Ie(e),u=Fe(t,s,h,d),g=u.segmentGroup,f=u.slicedSegments,m=new lr(s,l,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,Ge(e),o,e.component,e,Me(t),Re(t)+s.length,ze(e));if(0===f.length&&g.hasChildren()){var v=this.processChildren(d,g);return[new ir(m,v)]}if(0===d.length&&0===f.length)return[new ir(m,[])];var b=this.processSegment(d,g,f,Ht);return[new ir(m,b)]},e}(),gr=function(){function e(){}return e.prototype.shouldDetach=function(e){},e.prototype.store=function(e,t){},e.prototype.shouldAttach=function(e){},e.prototype.retrieve=function(e){},e.prototype.shouldReuseRoute=function(e,t){},e}(),fr=function(){function e(){}return e.prototype.shouldDetach=function(e){return!1},e.prototype.store=function(e,t){},e.prototype.shouldAttach=function(e){return!1},e.prototype.retrieve=function(e){return null},e.prototype.shouldReuseRoute=function(e,t){return e.routeConfig===t.routeConfig},e}(),mr=new ht.InjectionToken("ROUTES"),vr=function(){function e(e,t,r,o){this.loader=e,this.compiler=t,this.onLoadStartListener=r,this.onLoadEndListener=o}return e.prototype.load=function(e,t){var r=this;this.onLoadStartListener&&this.onLoadStartListener(t);var o=this.loadModuleFactory(t.loadChildren);return yt.map.call(o,function(o){r.onLoadEndListener&&r.onLoadEndListener(t);var a=o.create(e);return new zt(u(a.injector.get(mr)),a)})},e.prototype.loadModuleFactory=function(e){var t=this;return"string"==typeof e?r.i(Lt.fromPromise)(this.loader.load(e)):xt.mergeMap.call(v(e()),function(e){return e instanceof ht.NgModuleFactory?r.i(gt.of)(e):r.i(Lt.fromPromise)(t.compiler.compileModuleAsync(e))})},e}(),br=function(){function e(){}return e.prototype.shouldProcessUrl=function(e){},e.prototype.extract=function(e){},e.prototype.merge=function(e,t){},e}(),yr=function(){function e(){}return e.prototype.shouldProcessUrl=function(e){return!0},e.prototype.extract=function(e){return e},e.prototype.merge=function(e,t){return e},e}(),xr=function(){function e(e,t,r,o,a,i,n,s){var l=this;this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=o,this.config=s,this.navigations=new dt.BehaviorSubject(null),this.routerEvents=new ut.Subject,this.navigationId=0,this.errorHandler=Ue,this.navigated=!1,this.hooks={beforePreactivation:Xe,afterPreactivation:Xe},this.urlHandlingStrategy=new yr,this.routeReuseStrategy=new fr;var c=function(e){return l.triggerEvent(new Rt(e))},h=function(e){return l.triggerEvent(new Ft(e))};this.ngModule=a.get(ht.NgModuleRef),this.resetConfig(s),this.currentUrlTree=b(),this.rawUrlTree=this.currentUrlTree,this.configLoader=new vr(i,n,c,h),this.currentRouterState=te(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return e.prototype.resetRootComponentType=function(e){this.rootComponentType=e,this.currentRouterState.root.component=this.rootComponentType},e.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},e.prototype.setUpLocationChangeListener=function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(Zone.current.wrap(function(t){var r=e.urlSerializer.parse(t.url),o="popstate"===t.type?"popstate":"hashchange";setTimeout(function(){e.scheduleNavigation(r,o,{replaceUrl:!0})},0)})))},Object.defineProperty(e.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),e.prototype.triggerEvent=function(e){this.routerEvents.next(e)},e.prototype.resetConfig=function(e){s(e),this.config=e,this.navigated=!1},e.prototype.ngOnDestroy=function(){this.dispose()},e.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},e.prototype.createUrlTree=function(e,t){void 0===t&&(t={});var o=t.relativeTo,a=t.queryParams,i=t.fragment,n=t.preserveQueryParams,s=t.queryParamsHandling,l=t.preserveFragment;r.i(ht.isDevMode)()&&n&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=o||this.routerState.root,h=l?this.currentUrlTree.fragment:i,d=null;if(s)switch(s){case"merge":d=Object.assign({},this.currentUrlTree.queryParams,a);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=a||null}else d=n?this.currentUrlTree.queryParams:a||null;return pe(c,this.currentUrlTree,e,d,h)},e.prototype.navigateByUrl=function(e,t){void 0===t&&(t={skipLocationChange:!1});var r=e instanceof Ut?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",t)},e.prototype.navigate=function(e,t){return void 0===t&&(t={skipLocationChange:!1}),Je(e),"object"==typeof t.queryParams&&null!==t.queryParams&&(t.queryParams=this.removeEmptyProps(t.queryParams)),this.navigateByUrl(this.createUrlTree(e,t),t)},e.prototype.serializeUrl=function(e){return this.urlSerializer.serialize(e)},e.prototype.parseUrl=function(e){return this.urlSerializer.parse(e)},e.prototype.isActive=function(e,t){if(e instanceof Ut)return y(this.currentUrlTree,e,t);var r=this.urlSerializer.parse(e);return y(this.currentUrlTree,r,t)},e.prototype.removeEmptyProps=function(e){return Object.keys(e).reduce(function(t,r){var o=e[r];return null!==o&&void 0!==o&&(t[r]=o),t},{})},e.prototype.processNavigations=function(){var e=this;ft.concatMap.call(this.navigations,function(t){return t?(e.executeScheduledNavigation(t),t.promise.catch(function(){})):r.i(gt.of)(null)}).subscribe(function(){})},e.prototype.scheduleNavigation=function(e,t,r){var o=this.navigations.value;if(o&&"imperative"!==t&&"imperative"===o.source&&o.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(o&&"hashchange"==t&&"popstate"===o.source&&o.rawUrl.toString()===e.toString())return Promise.resolve(!0);var a=null,i=null,n=new Promise(function(e,t){a=e,i=t}),s=++this.navigationId;return this.navigations.next({id:s,source:t,rawUrl:e,extras:r,resolve:a,reject:i,promise:n}),n.catch(function(e){return Promise.reject(e)})},e.prototype.executeScheduledNavigation=function(e){var t=this,r=e.id,o=e.rawUrl,a=e.extras,i=e.resolve,n=e.reject,s=this.urlHandlingStrategy.extract(o),l=!this.navigated||s.toString()!==this.currentUrlTree.toString();l&&this.urlHandlingStrategy.shouldProcessUrl(o)?(this.routerEvents.next(new Pt(r,this.serializeUrl(s))),Promise.resolve().then(function(e){return t.runNavigate(s,o,!!a.skipLocationChange,!!a.replaceUrl,r,null)}).then(i,n)):l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.routerEvents.next(new Pt(r,this.serializeUrl(s))),Promise.resolve().then(function(e){return t.runNavigate(s,o,!1,!1,r,te(s,t.rootComponentType).snapshot)}).then(i,n)):(this.rawUrlTree=o,i(null))},e.prototype.runNavigate=function(e,t,o,a,n,s){var l=this;return n!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new Et(n,this.serializeUrl(e),"Navigation ID "+n+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(c,h){var d;if(s)d=r.i(gt.of)({appliedUrl:e,snapshot:s});else{var u=l.ngModule.injector,p=W(u,l.configLoader,l.urlSerializer,e,l.config);d=xt.mergeMap.call(p,function(t){return yt.map.call(De(l.rootComponentType,l.config,t,l.serializeUrl(t)),function(r){return l.routerEvents.next(new Mt(n,l.serializeUrl(e),l.serializeUrl(t),r)),{appliedUrl:t,snapshot:r}})})}var g,f,m=xt.mergeMap.call(d,function(e){return yt.map.call(l.hooks.beforePreactivation(e.snapshot),function(){return e})}),v=yt.map.call(m,function(e){var t=e.appliedUrl,r=e.snapshot,o=l.ngModule.injector;return g=new kr(r,l.currentRouterState.snapshot,o),g.traverse(l.rootContexts),{appliedUrl:t,snapshot:r}}),b=xt.mergeMap.call(v,function(t){var o=t.appliedUrl,a=t.snapshot;return l.navigationId!==n?r.i(gt.of)(!1):(l.triggerEvent(new Vt(n,l.serializeUrl(e),o,a)),yt.map.call(g.checkGuards(),function(t){return l.triggerEvent(new Nt(n,l.serializeUrl(e),o,a,t)),{appliedUrl:o,snapshot:a,shouldActivate:t}}))}),y=xt.mergeMap.call(b,function(t){return l.navigationId!==n?r.i(gt.of)(!1):t.shouldActivate&&g.isActivating()?(l.triggerEvent(new Bt(n,l.serializeUrl(e),t.appliedUrl,t.snapshot)),yt.map.call(g.resolveData(),function(){return l.triggerEvent(new jt(n,l.serializeUrl(e),t.appliedUrl,t.snapshot)),t})):r.i(gt.of)(t)}),x=xt.mergeMap.call(y,function(e){return yt.map.call(l.hooks.afterPreactivation(e.snapshot),function(){return e})}),w=yt.map.call(x,function(e){var t=e.appliedUrl,r=e.snapshot,o=e.shouldActivate;if(o){return{appliedUrl:t,state:le(l.routeReuseStrategy,r,l.currentRouterState),shouldActivate:o}}return{appliedUrl:t,state:null,shouldActivate:o}}),C=l.currentRouterState,k=l.currentUrlTree;w.forEach(function(e){var r=e.appliedUrl,i=e.state;if(!e.shouldActivate||n!==l.navigationId)return void(f=!1);if(l.currentUrlTree=r,l.rawUrlTree=l.urlHandlingStrategy.merge(l.currentUrlTree,t),l.currentRouterState=i,!o){var s=l.urlSerializer.serialize(l.rawUrlTree);l.location.isCurrentPathEqualTo(s)||a?l.location.replaceState(s):l.location.go(s)}new Sr(l.routeReuseStrategy,i,C).activate(l.rootContexts),f=!0}).then(function(){f?(l.navigated=!0,l.routerEvents.next(new It(n,l.serializeUrl(e),l.serializeUrl(l.currentUrlTree))),c(!0)):(l.resetUrlToCurrentUrlTree(),l.routerEvents.next(new Et(n,l.serializeUrl(e),"")),c(!1))},function(r){if(i(r))l.resetUrlToCurrentUrlTree(),l.navigated=!0,l.routerEvents.next(new Et(n,l.serializeUrl(e),r.message)),c(!1);else{l.routerEvents.next(new Ot(n,l.serializeUrl(e),r));try{c(l.errorHandler(r))}catch(e){h(e)}}l.currentRouterState=C,l.currentUrlTree=k,l.rawUrlTree=l.urlHandlingStrategy.merge(l.currentUrlTree,t),l.location.replaceState(l.serializeUrl(l.rawUrlTree))})})},e.prototype.resetUrlToCurrentUrlTree=function(){var e=this.urlSerializer.serialize(this.rawUrlTree);this.location.replaceState(e)},e}(),wr=function(){function e(e){this.path=e}return Object.defineProperty(e.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),e}(),Cr=function(){function e(e,t){this.component=e,this.route=t}return e}(),kr=function(){function e(e,t,r){this.future=e,this.curr=t,this.moduleInjector=r,this.canActivateChecks=[],this.canDeactivateChecks=[]}return e.prototype.traverse=function(e){var t=this.future._root,r=this.curr?this.curr._root:null;this.traverseChildRoutes(t,r,e,[t.value])},e.prototype.checkGuards=function(){var e=this;if(!this.isDeactivating()&&!this.isActivating())return r.i(gt.of)(!0);var t=this.runCanDeactivateChecks();return xt.mergeMap.call(t,function(t){return t?e.runCanActivateChecks():r.i(gt.of)(!1)})},e.prototype.resolveData=function(){var e=this;if(!this.isActivating())return r.i(gt.of)(null);var t=r.i(pt.from)(this.canActivateChecks),o=ft.concatMap.call(t,function(t){return e.runResolve(t.route)});return wt.reduce.call(o,function(e,t){return e})},e.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},e.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},e.prototype.traverseChildRoutes=function(e,t,r,o){var a=this,i=$e(t);e.children.forEach(function(e){a.traverseRoutes(e,i[e.value.outlet],r,o.concat([e.value])),delete i[e.value.outlet]}),g(i,function(e,t){return a.deactivateRouteAndItsChildren(e,r.getContext(t))})},e.prototype.traverseRoutes=function(e,t,r,o){var a=e.value,i=t?t.value:null,n=r?r.getContext(e.value.outlet):null;if(i&&a._routeConfig===i._routeConfig){var s=this.shouldRunGuardsAndResolvers(i,a,a._routeConfig.runGuardsAndResolvers);if(s?this.canActivateChecks.push(new wr(o)):(a.data=i.data,a._resolvedData=i._resolvedData),a.component?this.traverseChildRoutes(e,t,n?n.children:null,o):this.traverseChildRoutes(e,t,r,o),s){var l=n.outlet;this.canDeactivateChecks.push(new Cr(l.component,i))}}else i&&this.deactivateRouteAndItsChildren(t,n),this.canActivateChecks.push(new wr(o)),a.component?this.traverseChildRoutes(e,null,n?n.children:null,o):this.traverseChildRoutes(e,null,r,o)},e.prototype.shouldRunGuardsAndResolvers=function(e,t,r){switch(r){case"always":return!0;case"paramsOrQueryParamsChange":return!se(e,t)||!d(e.queryParams,t.queryParams);case"paramsChange":default:return!se(e,t)}},e.prototype.deactivateRouteAndItsChildren=function(e,t){var r=this,o=$e(e),a=e.value;g(o,function(e,o){a.component?t?r.deactivateRouteAndItsChildren(e,t.children.getContext(o)):r.deactivateRouteAndItsChildren(e,null):r.deactivateRouteAndItsChildren(e,t)}),a.component&&t&&t.outlet&&t.outlet.isActivated?this.canDeactivateChecks.push(new Cr(t.outlet.component,a)):this.canDeactivateChecks.push(new Cr(null,a))},e.prototype.runCanDeactivateChecks=function(){var e=this,t=r.i(pt.from)(this.canDeactivateChecks),o=xt.mergeMap.call(t,function(t){return e.runCanDeactivate(t.component,t.route)});return mt.every.call(o,function(e){return!0===e})},e.prototype.runCanActivateChecks=function(){var e=this,t=r.i(pt.from)(this.canActivateChecks),o=ft.concatMap.call(t,function(t){return m(r.i(pt.from)([e.runCanActivateChild(t.path),e.runCanActivate(t.route)]))});return mt.every.call(o,function(e){return!0===e})},e.prototype.runCanActivate=function(e){var t=this,o=e._routeConfig?e._routeConfig.canActivate:null;return o&&0!==o.length?m(yt.map.call(r.i(pt.from)(o),function(r){var o,a=t.getToken(r,e);return o=v(a.canActivate?a.canActivate(e,t.future):a(e,t.future)),vt.first.call(o)})):r.i(gt.of)(!0)},e.prototype.runCanActivateChild=function(e){var t=this,o=e[e.length-1],a=e.slice(0,e.length-1).reverse().map(function(e){return t.extractCanActivateChild(e)}).filter(function(e){return null!==e});return m(yt.map.call(r.i(pt.from)(a),function(e){return m(yt.map.call(r.i(pt.from)(e.guards),function(r){var a,i=t.getToken(r,e.node);return a=v(i.canActivateChild?i.canActivateChild(o,t.future):i(o,t.future)),vt.first.call(a)}))}))},e.prototype.extractCanActivateChild=function(e){var t=e._routeConfig?e._routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null},e.prototype.runCanDeactivate=function(e,t){var o=this,a=t&&t._routeConfig?t._routeConfig.canDeactivate:null;if(!a||0===a.length)return r.i(gt.of)(!0);var i=xt.mergeMap.call(r.i(pt.from)(a),function(r){var a,i=o.getToken(r,t);return a=v(i.canDeactivate?i.canDeactivate(e,t,o.curr,o.future):i(e,t,o.curr,o.future)),vt.first.call(a)});return mt.every.call(i,function(e){return!0===e})},e.prototype.runResolve=function(e){var t=e._resolve;return yt.map.call(this.resolveNode(t,e),function(t){return e._resolvedData=t,e.data=Object.assign({},e.data,oe(e).resolve),null})},e.prototype.resolveNode=function(e,t){var o=this,a=Object.keys(e);if(0===a.length)return r.i(gt.of)({});if(1===a.length){var i=a[0];return yt.map.call(this.getResolver(e[i],t),function(e){return t={},t[i]=e,t;var t})}var n={},s=xt.mergeMap.call(r.i(pt.from)(a),function(r){return yt.map.call(o.getResolver(e[r],t),function(e){return n[r]=e,e})});return yt.map.call(bt.last.call(s),function(){return n})},e.prototype.getResolver=function(e,t){var r=this.getToken(e,t);return v(r.resolve?r.resolve(t,this.future):r(t,this.future))},e.prototype.getToken=function(e,t){var r=Ke(t);return(r?r.module.injector:this.moduleInjector).get(e)},e}(),Sr=function(){function e(e,t,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=r}return e.prototype.activate=function(e){var t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,e),ne(this.futureState.root),this.activateChildRoutes(t,r,e)},e.prototype.deactivateChildRoutes=function(e,t,r){var o=this,a=$e(t);e.children.forEach(function(e){var t=e.value.outlet;o.deactivateRoutes(e,a[t],r),delete a[t]}),g(a,function(e,t){o.deactivateRouteAndItsChildren(e,r)})},e.prototype.deactivateRoutes=function(e,t,r){var o=e.value,a=t?t.value:null;if(o===a)if(o.component){var i=r.getContext(o.outlet);i&&this.deactivateChildRoutes(e,t,i.children)}else this.deactivateChildRoutes(e,t,r);else a&&this.deactivateRouteAndItsChildren(t,r)},e.prototype.deactivateRouteAndItsChildren=function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)},e.prototype.detachAndStoreRouteSubtree=function(e,t){var r=t.getContext(e.value.outlet);if(r&&r.outlet){var o=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}},e.prototype.deactivateRouteAndOutlet=function(e,t){var r=this,o=t.getContext(e.value.outlet);if(o){var a=$e(e),i=e.value.component?o.children:t;g(a,function(e,t){return r.deactivateRouteAndItsChildren(e,i)}),o.outlet&&(o.outlet.deactivate(),o.children.onOutletDeactivated())}},e.prototype.activateChildRoutes=function(e,t,r){var o=this,a=$e(t);e.children.forEach(function(e){o.activateRoutes(e,a[e.value.outlet],r)})},e.prototype.activateRoutes=function(e,t,r){var o=e.value,a=t?t.value:null;if(ne(o),o===a)if(o.component){var i=r.getOrCreateContext(o.outlet);this.activateChildRoutes(e,t,i.children)}else this.activateChildRoutes(e,t,r);else if(o.component){var i=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){var n=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),i.children.onOutletReAttached(n.contexts),i.attachRef=n.componentRef,i.route=n.route.value,i.outlet&&i.outlet.attach(n.componentRef,n.route.value),Ye(n.route)}else{var s=qe(o.snapshot),l=s?s.module.componentFactoryResolver:null;i.route=o,i.resolver=l,i.outlet&&i.outlet.activateWith(o,l),this.activateChildRoutes(e,null,i.children)}}else this.activateChildRoutes(e,null,r)},e}(),_r=function(){function e(e,t,r,o,a){this.router=e,this.route=t,this.commands=[],null==r&&o.setAttribute(a.nativeElement,"tabindex","0")}return Object.defineProperty(e.prototype,"routerLink",{set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preserveQueryParams",{set:function(e){r.i(ht.isDevMode)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=e},enumerable:!0,configurable:!0}),e.prototype.onClick=function(){var e={skipLocationChange:Ze(this.skipLocationChange),replaceUrl:Ze(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,e),!0},Object.defineProperty(e.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Ze(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Ze(this.preserveFragment)})},enumerable:!0,configurable:!0}),e}();_r.decorators=[{type:ht.Directive,args:[{selector:":not(a)[routerLink]"}]}],_r.ctorParameters=function(){return[{type:xr},{type:sr},{type:void 0,decorators:[{type:ht.Attribute,args:["tabindex"]}]},{type:ht.Renderer2},{type:ht.ElementRef}]},_r.propDecorators={queryParams:[{type:ht.Input}],fragment:[{type:ht.Input}],queryParamsHandling:[{type:ht.Input}],preserveFragment:[{type:ht.Input}],skipLocationChange:[{type:ht.Input}],replaceUrl:[{type:ht.Input}],routerLink:[{type:ht.Input}],preserveQueryParams:[{type:ht.Input}],onClick:[{type:ht.HostListener,args:["click"]}]};var Lr=function(){function e(e,t,r){var o=this;this.router=e,this.route=t,this.locationStrategy=r,this.commands=[],this.subscription=e.events.subscribe(function(e){e instanceof It&&o.updateTargetUrlAndHref()})}return Object.defineProperty(e.prototype,"routerLink",{set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preserveQueryParams",{set:function(e){r.i(ht.isDevMode)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.updateTargetUrlAndHref()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.onClick=function(e,t,r,o){if(0!==e||t||r||o)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var a={skipLocationChange:Ze(this.skipLocationChange),replaceUrl:Ze(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,a),!1},e.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(e.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Ze(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Ze(this.preserveFragment)})},enumerable:!0,configurable:!0}),e}();Lr.decorators=[{type:ht.Directive,args:[{selector:"a[routerLink]"}]}],Lr.ctorParameters=function(){return[{type:xr},{type:sr},{type:ct.LocationStrategy}]},Lr.propDecorators={target:[{type:ht.HostBinding,args:["attr.target"]},{type:ht.Input}],queryParams:[{type:ht.Input}],fragment:[{type:ht.Input}],queryParamsHandling:[{type:ht.Input}],preserveFragment:[{type:ht.Input}],skipLocationChange:[{type:ht.Input}],replaceUrl:[{type:ht.Input}],href:[{type:ht.HostBinding}],routerLink:[{type:ht.Input}],preserveQueryParams:[{type:ht.Input}],onClick:[{type:ht.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey","$event.shiftKey"]]}]};var Ar=function(){function e(e,t,r,o){var a=this;this.router=e,this.element=t,this.renderer=r,this.cdr=o,this.classes=[],this.active=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=e.events.subscribe(function(e){e instanceof It&&a.update()})}return Object.defineProperty(e.prototype,"isActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this.links.changes.subscribe(function(t){return e.update()}),this.linksWithHrefs.changes.subscribe(function(t){return e.update()}),this.update()},Object.defineProperty(e.prototype,"routerLinkActive",{set:function(e){var t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(function(e){return!!e})},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.update()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.update=function(){var e=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(function(){var t=e.hasActiveLinks();e.active!==t&&(e.active=t,e.classes.forEach(function(r){t?e.renderer.addClass(e.element.nativeElement,r):e.renderer.removeClass(e.element.nativeElement,r)}))})},e.prototype.isLinkActive=function(e){var t=this;return function(r){return e.isActive(r.urlTree,t.routerLinkActiveOptions.exact)}},e.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},e}();Ar.decorators=[{type:ht.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],Ar.ctorParameters=function(){return[{type:xr},{type:ht.ElementRef},{type:ht.Renderer2},{type:ht.ChangeDetectorRef}]},Ar.propDecorators={links:[{type:ht.ContentChildren,args:[_r,{descendants:!0}]}],linksWithHrefs:[{type:ht.ContentChildren,args:[Lr,{descendants:!0}]}],routerLinkActiveOptions:[{type:ht.Input}],routerLinkActive:[{type:ht.Input}]};var Tr=function(){function e(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Dr,this.attachRef=null}return e}(),Dr=function(){function e(){this.contexts=new Map}return e.prototype.onChildOutletCreated=function(e,t){var r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)},e.prototype.onChildOutletDestroyed=function(e){var t=this.getContext(e);t&&(t.outlet=null)},e.prototype.onOutletDeactivated=function(){var e=this.contexts;return this.contexts=new Map,e},e.prototype.onOutletReAttached=function(e){this.contexts=e},e.prototype.getOrCreateContext=function(e){var t=this.getContext(e);return t||(t=new Tr,this.contexts.set(e,t)),t},e.prototype.getContext=function(e){return this.contexts.get(e)||null},e}(),Pr=function(){function e(e,t,r,o,a){this.parentContexts=e,this.location=t,this.resolver=r,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new ht.EventEmitter,this.deactivateEvents=new ht.EventEmitter,this.name=o||Ht,e.onChildOutletCreated(this.name,this)}return e.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},e.prototype.ngOnInit=function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}},Object.defineProperty(e.prototype,"locationInjector",{get:function(){return this.location.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locationFactoryResolver",{get:function(){return this.resolver},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),e.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e},e.prototype.attach=function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)},e.prototype.deactivate=function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}},e.prototype.activateWith=function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var r=e._futureSnapshot,o=r._routeConfig.component;t=t||this.resolver;var a=t.resolveComponentFactory(o),i=this.parentContexts.getOrCreateContext(this.name).children,n=new Ir(e,i,this.location.injector);this.activated=this.location.createComponent(a,this.location.length,n),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},e}();Pr.decorators=[{type:ht.Directive,args:[{selector:"router-outlet",exportAs:"outlet"}]}],Pr.ctorParameters=function(){return[{type:Dr},{type:ht.ViewContainerRef},{type:ht.ComponentFactoryResolver},{type:void 0,decorators:[{type:ht.Attribute,args:["name"]}]},{type:ht.ChangeDetectorRef}]},Pr.propDecorators={activateEvents:[{type:ht.Output,args:["activate"]}],deactivateEvents:[{type:ht.Output,args:["deactivate"]}]};var Ir=function(){function e(e,t,r){this.route=e,this.childContexts=t,this.parent=r}return e.prototype.get=function(e,t){return e===sr?this.route:e===Dr?this.childContexts:this.parent.get(e,t)},e}(),Er=function(){function e(){}return e.prototype.preload=function(e,t){},e}(),Or=function(){function e(){}return e.prototype.preload=function(e,t){return kt._catch.call(t(),function(){return r.i(gt.of)(null)})},e}(),Mr=function(){function e(){}return e.prototype.preload=function(e,t){return r.i(gt.of)(null)},e}(),Rr=function(){function e(e,t,r,o,a){this.router=e,this.injector=o,this.preloadingStrategy=a;var i=function(t){return e.triggerEvent(new Rt(t))},n=function(t){return e.triggerEvent(new Ft(t))};this.loader=new vr(t,r,i,n)}return e.prototype.setUpPreloading=function(){var e=this,t=Dt.filter.call(this.router.events,function(e){return e instanceof It});this.subscription=ft.concatMap.call(t,function(){return e.preload()}).subscribe(function(){})},e.prototype.preload=function(){var e=this.injector.get(ht.NgModuleRef);return this.processRoutes(e,this.router.config)},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.processRoutes=function(e,t){for(var o=[],a=0,i=t;a0){e.split("&").forEach(function(e){var r=e.indexOf("="),o=-1==r?[e,""]:[e.slice(0,r),e.slice(r+1)],a=o[0],i=o[1],n=t.get(a)||[];n.push(i),t.set(a,n)})}return t}function s(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function l(){var e="object"==typeof window?window:{};return null===V&&(V=e[F]={}),V}function c(e){var t=new E;return Object.keys(e).forEach(function(r){var o=e[r];o&&Array.isArray(o)?o.forEach(function(e){return t.append(r,e.toString())}):t.append(r,o.toString())}),t}function h(e,t){return e.createConnection(t).response}function d(e,t,r,o){var a=e;return t?a.merge(new K({method:t.method||r,url:t.url||o,search:t.search,params:t.params,headers:t.headers,body:t.body,withCredentials:t.withCredentials,responseType:t.responseType})):a.merge(new K({method:r,url:o}))}function u(){return new Y}function p(e,t){return new oe(e,t)}function g(e,t){return new ae(e,t)}var f=r("6Xbx"),m=r("/oeL"),v=r("bKpL"),b=(r.n(v),r("fc+i"));r.d(t,"a",function(){return y}),r.d(t,"f",function(){return q}),r.d(t,"h",function(){return $}),r.d(t,"g",function(){return K}),r.d(t,"c",function(){return A}),r.d(t,"b",function(){return L}),r.d(t,"i",function(){return oe}),r.d(t,"k",function(){return ie}),r.d(t,"d",function(){return D}),r.d(t,"e",function(){return u}),r.d(t,"j",function(){return p});var y=function(){function e(){}return e.prototype.build=function(){return new XMLHttpRequest},e}();y.decorators=[{type:m.Injectable}],y.ctorParameters=function(){return[]};var x={};x.Get=0,x.Post=1,x.Put=2,x.Delete=3,x.Options=4,x.Head=5,x.Patch=6,x[x.Get]="Get",x[x.Post]="Post",x[x.Put]="Put",x[x.Delete]="Delete",x[x.Options]="Options",x[x.Head]="Head",x[x.Patch]="Patch";var w={};w.Unsent=0,w.Open=1,w.HeadersReceived=2,w.Loading=3,w.Done=4,w.Cancelled=5,w[w.Unsent]="Unsent",w[w.Open]="Open",w[w.HeadersReceived]="HeadersReceived",w[w.Loading]="Loading",w[w.Done]="Done",w[w.Cancelled]="Cancelled";var C={};C.Basic=0,C.Cors=1,C.Default=2,C.Error=3,C.Opaque=4,C[C.Basic]="Basic",C[C.Cors]="Cors",C[C.Default]="Default",C[C.Error]="Error",C[C.Opaque]="Opaque";var k={};k.NONE=0,k.JSON=1,k.FORM=2,k.FORM_DATA=3,k.TEXT=4,k.BLOB=5,k.ARRAY_BUFFER=6,k[k.NONE]="NONE",k[k.JSON]="JSON",k[k.FORM]="FORM",k[k.FORM_DATA]="FORM_DATA",k[k.TEXT]="TEXT",k[k.BLOB]="BLOB",k[k.ARRAY_BUFFER]="ARRAY_BUFFER";var S={};S.Text=0,S.Json=1,S.ArrayBuffer=2,S.Blob=3,S[S.Text]="Text",S[S.Json]="Json",S[S.ArrayBuffer]="ArrayBuffer",S[S.Blob]="Blob";var _=function(){function e(t){var r=this;if(this._headers=new Map,this._normalizedNames=new Map,t)return t instanceof e?void t.forEach(function(e,t){e.forEach(function(e){return r.append(t,e)})}):void Object.keys(t).forEach(function(e){var o=Array.isArray(t[e])?t[e]:[t[e]];r.delete(e),o.forEach(function(t){return r.append(e,t)})})}return e.fromResponseHeaderString=function(t){var r=new e;return t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var o=e.slice(0,t),a=e.slice(t+1).trim();r.set(o,a)}}),r},e.prototype.append=function(e,t){var r=this.getAll(e);null===r?this.set(e,t):r.push(t)},e.prototype.delete=function(e){var t=e.toLowerCase();this._normalizedNames.delete(t),this._headers.delete(t)},e.prototype.forEach=function(e){var t=this;this._headers.forEach(function(r,o){return e(r,t._normalizedNames.get(o),t._headers)})},e.prototype.get=function(e){var t=this.getAll(e);return null===t?null:t.length>0?t[0]:null},e.prototype.has=function(e){return this._headers.has(e.toLowerCase())},e.prototype.keys=function(){return Array.from(this._normalizedNames.values())},e.prototype.set=function(e,t){Array.isArray(t)?t.length&&this._headers.set(e.toLowerCase(),[t.join(",")]):this._headers.set(e.toLowerCase(),[t]),this.mayBeSetNormalizedName(e)},e.prototype.values=function(){return Array.from(this._headers.values())},e.prototype.toJSON=function(){var e=this,t={};return this._headers.forEach(function(r,o){var a=[];r.forEach(function(e){return a.push.apply(a,e.split(","))}),t[e._normalizedNames.get(o)]=a}),t},e.prototype.getAll=function(e){return this.has(e)?this._headers.get(e.toLowerCase())||null:null},e.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},e.prototype.mayBeSetNormalizedName=function(e){var t=e.toLowerCase();this._normalizedNames.has(t)||this._normalizedNames.set(t,e)},e}(),L=function(){function e(e){void 0===e&&(e={});var t=e.body,r=e.status,o=e.headers,a=e.statusText,i=e.type,n=e.url;this.body=null!=t?t:null,this.status=null!=r?r:null,this.headers=null!=o?o:null,this.statusText=null!=a?a:null,this.type=null!=i?i:null,this.url=null!=n?n:null}return e.prototype.merge=function(t){return new e({body:t&&null!=t.body?t.body:this.body,status:t&&null!=t.status?t.status:this.status,headers:t&&null!=t.headers?t.headers:this.headers,statusText:t&&null!=t.statusText?t.statusText:this.statusText,type:t&&null!=t.type?t.type:this.type,url:t&&null!=t.url?t.url:this.url})},e}(),A=function(e){function t(){return e.call(this,{status:200,statusText:"Ok",type:C.Default,headers:new _})||this}return f.a(t,e),t}(L);A.decorators=[{type:m.Injectable}],A.ctorParameters=function(){return[]};var T=function(){function e(){}return e.prototype.createConnection=function(e){},e}(),D=(function(){function e(){}}(),function(){function e(){}return e.prototype.configureRequest=function(e){},e}()),P=function(e){return e>=200&&e<300},I=function(){function e(){}return e.prototype.encodeKey=function(e){return s(e)},e.prototype.encodeValue=function(e){return s(e)},e}(),E=function(){function e(e,t){void 0===e&&(e=""),void 0===t&&(t=new I),this.rawParams=e,this.queryEncoder=t,this.paramsMap=n(e)}return e.prototype.clone=function(){var t=new e("",this.queryEncoder);return t.appendAll(this),t},e.prototype.has=function(e){return this.paramsMap.has(e)},e.prototype.get=function(e){var t=this.paramsMap.get(e);return Array.isArray(t)?t[0]:null},e.prototype.getAll=function(e){return this.paramsMap.get(e)||[]},e.prototype.set=function(e,t){if(void 0===t||null===t)return void this.delete(e);var r=this.paramsMap.get(e)||[];r.length=0,r.push(t),this.paramsMap.set(e,r)},e.prototype.setAll=function(e){var t=this;e.paramsMap.forEach(function(e,r){var o=t.paramsMap.get(r)||[];o.length=0,o.push(e[0]),t.paramsMap.set(r,o)})},e.prototype.append=function(e,t){if(void 0!==t&&null!==t){var r=this.paramsMap.get(e)||[];r.push(t),this.paramsMap.set(e,r)}},e.prototype.appendAll=function(e){var t=this;e.paramsMap.forEach(function(e,r){for(var o=t.paramsMap.get(r)||[],a=0;a=200&&r.status<=299,r.statusText=t.statusText,r.headers=t.headers,r.type=t.type,r.url=t.url,r}return f.a(t,e),t.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},t}(O),R=0,F="__ng_jsonp__",V=null,N=function(){function e(){}return e.prototype.build=function(e){var t=document.createElement("script");return t.src=e,t},e.prototype.nextRequestID=function(){return"__req"+R++},e.prototype.requestCallback=function(e){return F+"."+e+".finished"},e.prototype.exposeConnection=function(e,t){l()[e]=t},e.prototype.removeConnection=function(e){l()[e]=null},e.prototype.send=function(e){document.body.appendChild(e)},e.prototype.cleanup=function(e){e.parentNode&&e.parentNode.removeChild(e)},e}();N.decorators=[{type:m.Injectable}],N.ctorParameters=function(){return[]};var B="JSONP injected script did not invoke callback.",j="JSONP requests must use GET request method.",H=function(){function e(){}return e.prototype.finished=function(e){},e}(),W=function(e){function t(t,r,o){var a=e.call(this)||this;if(a._dom=r,a.baseResponseOptions=o,a._finished=!1,t.method!==x.Get)throw new TypeError(j);return a.request=t,a.response=new v.Observable(function(e){a.readyState=w.Loading;var i=a._id=r.nextRequestID();r.exposeConnection(i,a);var n=r.requestCallback(a._id),s=t.url;s.indexOf("=JSONP_CALLBACK&")>-1?s=s.replace("=JSONP_CALLBACK&","="+n+"&"):s.lastIndexOf("=JSONP_CALLBACK")===s.length-"=JSONP_CALLBACK".length&&(s=s.substring(0,s.length-"=JSONP_CALLBACK".length)+"="+n);var l=a._script=r.build(s),c=function(t){if(a.readyState!==w.Cancelled){if(a.readyState=w.Done,r.cleanup(l),!a._finished){var i=new L({body:B,type:C.Error,url:s});return o&&(i=o.merge(i)),void e.error(new M(i))}var n=new L({body:a._responseData,url:s});a.baseResponseOptions&&(n=a.baseResponseOptions.merge(n)),e.next(new M(n)),e.complete()}},h=function(t){if(a.readyState!==w.Cancelled){a.readyState=w.Done,r.cleanup(l);var i=new L({body:t.message,type:C.Error});o&&(i=o.merge(i)),e.error(new M(i))}};return l.addEventListener("load",c),l.addEventListener("error",h),r.send(l),function(){a.readyState=w.Cancelled,l.removeEventListener("load",c),l.removeEventListener("error",h),a._dom.cleanup(l)}}),a}return f.a(t,e),t.prototype.finished=function(e){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==w.Cancelled&&(this._responseData=e)},t}(H),G=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f.a(t,e),t}(T),z=function(e){function t(t,r){var o=e.call(this)||this;return o._browserJSONP=t,o._baseResponseOptions=r,o}return f.a(t,e),t.prototype.createConnection=function(e){return new W(e,this._browserJSONP,this._baseResponseOptions)},t}(G);z.decorators=[{type:m.Injectable}],z.ctorParameters=function(){return[{type:N},{type:L}]};var U=/^\)\]\}',?\n/,X=function(){function e(e,t,r){var o=this;this.request=e,this.response=new v.Observable(function(i){var n=t.build();n.open(x[e.method].toUpperCase(),e.url),null!=e.withCredentials&&(n.withCredentials=e.withCredentials);var s=function(){var t=1223===n.status?204:n.status,o=null;204!==t&&"string"==typeof(o=void 0===n.response?n.responseText:n.response)&&(o=o.replace(U,"")),0===t&&(t=o?200:0);var s=_.fromResponseHeaderString(n.getAllResponseHeaders()),l=a(n)||e.url,c=n.statusText||"OK",h=new L({body:o,status:t,headers:s,statusText:c,url:l});null!=r&&(h=r.merge(h));var d=new M(h);if(d.ok=P(t),d.ok)return i.next(d),void i.complete();i.error(d)},l=function(e){var t=new L({body:e,type:C.Error,status:n.status,statusText:n.statusText});null!=r&&(t=r.merge(t)),i.error(new M(t))};if(o.setDetectedContentType(e,n),null==e.headers&&(e.headers=new _),e.headers.has("Accept")||e.headers.append("Accept","application/json, text/plain, */*"),e.headers.forEach(function(e,t){return n.setRequestHeader(t,e.join(","))}),null!=e.responseType&&null!=n.responseType)switch(e.responseType){case S.ArrayBuffer:n.responseType="arraybuffer";break;case S.Json:n.responseType="json";break;case S.Text:n.responseType="text";break;case S.Blob:n.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return n.addEventListener("load",s),n.addEventListener("error",l),n.send(o.request.getBody()),function(){n.removeEventListener("load",s),n.removeEventListener("error",l),n.abort()}})}return e.prototype.setDetectedContentType=function(e,t){if(null==e.headers||null==e.headers.get("Content-Type"))switch(e.contentType){case k.NONE:break;case k.JSON:t.setRequestHeader("content-type","application/json");break;case k.FORM:t.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case k.TEXT:t.setRequestHeader("content-type","text/plain");break;case k.BLOB:var r=e.blob();r.type&&t.setRequestHeader("content-type",r.type)}},e}(),Y=function(){function e(e,t){void 0===e&&(e="XSRF-TOKEN"),void 0===t&&(t="X-XSRF-TOKEN"),this._cookieName=e,this._headerName=t}return e.prototype.configureRequest=function(e){var t=r.i(b.t)().getCookie(this._cookieName);t&&e.headers.set(this._headerName,t)},e}(),q=function(){function e(e,t,r){this._browserXHR=e,this._baseResponseOptions=t,this._xsrfStrategy=r}return e.prototype.createConnection=function(e){return this._xsrfStrategy.configureRequest(e),new X(e,this._browserXHR,this._baseResponseOptions)},e}();q.decorators=[{type:m.Injectable}],q.ctorParameters=function(){return[{type:y},{type:L},{type:D}]};var K=function(){function e(e){void 0===e&&(e={});var t=e.method,r=e.headers,a=e.body,i=e.url,n=e.search,s=e.params,l=e.withCredentials,c=e.responseType;this.method=null!=t?o(t):null,this.headers=null!=r?r:null,this.body=null!=a?a:null,this.url=null!=i?i:null,this.params=this._mergeSearchParams(s||n),this.withCredentials=null!=l?l:null,this.responseType=null!=c?c:null}return Object.defineProperty(e.prototype,"search",{get:function(){return this.params},set:function(e){this.params=e},enumerable:!0,configurable:!0}),e.prototype.merge=function(t){return new e({method:t&&null!=t.method?t.method:this.method,headers:t&&null!=t.headers?t.headers:new _(this.headers),body:t&&null!=t.body?t.body:this.body,url:t&&null!=t.url?t.url:this.url,params:t&&this._mergeSearchParams(t.params||t.search),withCredentials:t&&null!=t.withCredentials?t.withCredentials:this.withCredentials,responseType:t&&null!=t.responseType?t.responseType:this.responseType})},e.prototype._mergeSearchParams=function(e){return e?e instanceof E?e.clone():"string"==typeof e?new E(e):this._parseParams(e):this.params},e.prototype._parseParams=function(e){var t=this;void 0===e&&(e={});var r=new E;return Object.keys(e).forEach(function(o){var a=e[o];Array.isArray(a)?a.forEach(function(e){return t._appendParam(o,e,r)}):t._appendParam(o,a,r)}),r},e.prototype._appendParam=function(e,t,r){"string"!=typeof t&&(t=JSON.stringify(t)),r.append(e,t)},e}(),$=function(e){function t(){return e.call(this,{method:x.Get,headers:new _})||this}return f.a(t,e),t}(K);$.decorators=[{type:m.Injectable}],$.ctorParameters=function(){return[]};var J=function(e){function t(t){var r=e.call(this)||this,a=t.url;r.url=t.url;var i=t.params||t.search;if(i){var n=void 0;if(n="object"!=typeof i||i instanceof E?i.toString():c(i).toString(),n.length>0){var s="?";-1!=r.url.indexOf("?")&&(s="&"==r.url[r.url.length-1]?"":"&"),r.url=a+s+n}}return r._body=t.body,r.method=o(t.method),r.headers=new _(t.headers),r.contentType=r.detectContentType(),r.withCredentials=t.withCredentials,r.responseType=t.responseType,r}return f.a(t,e),t.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return k.JSON;case"application/x-www-form-urlencoded":return k.FORM;case"multipart/form-data":return k.FORM_DATA;case"text/plain":case"text/html":return k.TEXT;case"application/octet-stream":return this._body instanceof re?k.ARRAY_BUFFER:k.BLOB;default:return this.detectContentTypeFromBody()}},t.prototype.detectContentTypeFromBody=function(){return null==this._body?k.NONE:this._body instanceof E?k.FORM:this._body instanceof ee?k.FORM_DATA:this._body instanceof te?k.BLOB:this._body instanceof re?k.ARRAY_BUFFER:this._body&&"object"==typeof this._body?k.JSON:k.TEXT},t.prototype.getBody=function(){switch(this.contentType){case k.JSON:case k.FORM:return this.text();case k.FORM_DATA:return this._body;case k.TEXT:return this.text();case k.BLOB:return this.blob();case k.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},t}(O),Z=function(){},Q="object"==typeof window?window:Z,ee=Q.FormData||Z,te=Q.Blob||Z,re=Q.ArrayBuffer||Z,oe=function(){function e(e,t){this._backend=e,this._defaultOptions=t}return e.prototype.request=function(e,t){var r;if("string"==typeof e)r=h(this._backend,new J(d(this._defaultOptions,t,x.Get,e)));else{if(!(e instanceof J))throw new Error("First argument must be a url string or Request instance.");r=h(this._backend,e)}return r},e.prototype.get=function(e,t){return this.request(new J(d(this._defaultOptions,t,x.Get,e)))},e.prototype.post=function(e,t,r){return this.request(new J(d(this._defaultOptions.merge(new K({body:t})),r,x.Post,e)))},e.prototype.put=function(e,t,r){return this.request(new J(d(this._defaultOptions.merge(new K({body:t})),r,x.Put,e)))},e.prototype.delete=function(e,t){return this.request(new J(d(this._defaultOptions,t,x.Delete,e)))},e.prototype.patch=function(e,t,r){return this.request(new J(d(this._defaultOptions.merge(new K({body:t})),r,x.Patch,e)))},e.prototype.head=function(e,t){return this.request(new J(d(this._defaultOptions,t,x.Head,e)))},e.prototype.options=function(e,t){return this.request(new J(d(this._defaultOptions,t,x.Options,e)))},e}();oe.decorators=[{type:m.Injectable}],oe.ctorParameters=function(){return[{type:T},{type:K}]};var ae=function(e){function t(t,r){return e.call(this,t,r)||this}return f.a(t,e),t.prototype.request=function(e,t){if("string"==typeof e&&(e=new J(d(this._defaultOptions,t,x.Get,e))),!(e instanceof J))throw new Error("First argument must be a url string or Request instance.");if(e.method!==x.Get)throw new Error("JSONP requests must use GET request method.");return h(this._backend,e)},t}(oe);ae.decorators=[{type:m.Injectable}],ae.ctorParameters=function(){return[{type:T},{type:K}]};var ie=function(){function e(){}return e}();ie.decorators=[{type:m.NgModule,args:[{providers:[{provide:oe,useFactory:p,deps:[q,K]},y,{provide:K,useClass:$},{provide:L,useClass:A},q,{provide:D,useFactory:u}]}]}],ie.ctorParameters=function(){return[]};var ne=function(){function e(){}return e}();ne.decorators=[{type:m.NgModule,args:[{providers:[{provide:ae,useFactory:g,deps:[G,K]},N,{provide:K,useClass:$},{provide:L,useClass:A},{provide:G,useClass:z}]}]}],ne.ctorParameters=function(){return[]};new m.Version("4.4.7")},CTng:function(e,t){!function(t){"object"==typeof e&&void 0!==e.exports?e.exports=t:t(FusionCharts)}(function(e){e.register("module",["private","modules.renderer.js-gradientlegend",function(){function t(e,t){return function e(t,r){var o,a;for(a in t)N.call(t,a)&&(o=t[a],void 0===r[a]?r[a]=o:"object"==typeof o&&e(o,r[a]))}(e,t),t}function r(e){return R(e||V)||V}function o(e){var t=e.fontSize+"";return t?(t=t.replace(/(\d+)(px)*/,"$1px"),e.fontSize=t,e):e}function a(e){return void 0===e||void 0===e||null===e||e!==e}function i(e,t){this.carpet=e,this._componentPool=t}function n(e){this.conf=e,this._id="GL_CARPET",this.compositionsByCategory={},this._lSpace=this.group=this.node=void 0,this.autoRecalculate=!1,this.groupName="fc-gradient-legend",this.moveInstructions={}}function s(){n.apply(this,arguments)}function l(e,t){this.rawText=e,this.conf=t,this._id="GL_CAPTION",this._lSpace=this.bound=this.node=void 0}function c(e,t,r){this.colorRange=e,this.conf=t,this.childTextConf=r,this._id="GL_BODY",this.bound=void 0,this.compositionsByCategory={},this._lSpace=void 0}function h(){c.apply(this,arguments)}function d(e){this.conf=e,this._id="GL_LABELS"}function u(){d.apply(this,arguments)}function p(){d.apply(this,arguments),this._id="GL_VALUES"}function g(){p.apply(this,arguments),this._id="GL_VALUES"}function f(e){this.conf=e,this._id="FL_AXIS",this.markerLine=this.shadow=this.node=void 0,this.compositionsByCategory={}}function m(){f.apply(this,arguments)}function v(e){var t={};this._id="GL_SG1",this.conf=e,t.conf=e,this.extremes=[],this.sliders={},t.sliderGroup=this,this.valueRange=[],this.callbacks=[],this.sliders[!1]=new b(!1,t,this._id+"_0"),this.sliders[!0]=new b(!0,t,this._id+"_1")}function b(e,t,r){this.conf=t.conf,this.sliderIndex=e,this.rangeGroup=t.sliderGroup,this._id=r,this.tracker=this.node=void 0,this.currPos=0,this.swing=[]}function y(e,t,r){r=r.components.numberFormatter;var o,i,n,s,l,c;for(this.data=e,this.options=t||{},c=this.mapByPercent=!!e.mapByPercent,this.appender="",i=this.mapByPercent?0:t.min,t=this.mapByPercent?100:t.max,2===e.colorRange.length&&(o=e.colorRange[0],n=e.colorRange[1],s=o.value=a(o.value)?i:o.value,l=n.value=a(n.value)?t:n.value,s===l&&(s=o.value=i,l=n.value=t),o.displayValue=c?s+"%":r.legendValue(s),n.displayValue=c?l+"%":r.legendValue(l)),a(i)&&a(o.value)||a(t)&&a(o.value)||!e.gradient?this._preparationGoneWrong=!0:this._preparationGoneWrong=!1,r=this.colorRange=e.colorRange.sort(function(e,t){return e.value-t.value}),this.valueRatio=void 0,this.values=[],e=0,o=r.length;e2*d.width&&(y=r.getSmartText(l,c,s.height),y.x=a[g]*s.width/100,p=c,b.push(y.height)),h[x[n].oriIndex]=y;return b=Math.max.apply(Math,b),s.height=b,e.height=b+2*v.v,f.node.logicArea=s,f.bound=e},d.prototype.draw=function(){var e,t,r=this.conf;t=r.bound&&r.bound.style||{stroke:"none"};var o,a,i,n,s,l,c,h;for(2<=arguments.length?(a=arguments[0],n=arguments[1]):1<=arguments.length&&(n=arguments[0]),e=n.parentLayer,n.colorRange.getCumulativeValueRatio(),o=n.componentPool,s=o.getKeys(),this.getLogicalSpace(a,n),i=this._lSpace,a=i.node.logicArea,n=i.node.smartTexts,h=o.getComponent(this._id,s.KEY_GROUP),e=h("legend-labels",e),h=o.getComponent(this._id,s.KEY_RECT),this.bound=t=h(e).attr(i.bound).css(t),h=o.getComponent(this._id,s.KEY_TEXT,!0),s=0,i=n.length;s2*d.width&&(y=r.getSmartText(l,c,s.width),y.y=a[g]*s.height/100,p=c,b.push(y.height)),h[x[n].oriIndex]=y;return b=Math.max.apply(Math,b),s.width=b,e.width=b+2*v.v,f.node.logicArea=s,f.bound=e},u.prototype.draw=function(){var e,t,r=this.conf;t=r.bound&&r.bound.style||{stroke:"none"};var o,a,i,n,s,l,c,h;for(2<=arguments.length?(a=arguments[0],n=arguments[1]):1<=arguments.length&&(n=arguments[0]),e=n.parentLayer,n.colorRange.getCumulativeValueRatio(),o=n.componentPool,s=o.getKeys(),this.getLogicalSpace(a,n),i=this._lSpace,a=i.node.logicArea,n=i.node.smartTexts,h=o.getComponent(this._id,s.KEY_GROUP),e=h("legend-labels",e),h=o.getComponent(this._id,s.KEY_RECT),this.bound=t=h(e).attr(i.bound).css(t),h=o.getComponent(this._id,s.KEY_TEXT,!0),s=0,i=n.length;s1.5*b.width&&(i=r.getSmartText(p,2*l,u.height),i.x=s[n]*u.width/100,d=l,y.push(i.height)),g[n]=i;return y=Math.max.apply(Math,y),u.height=y,e.height=y+2*v.v,f.node.logicArea=u,f.bound=e},p.prototype.draw=function(){var e,t,r,o,a,i,n,s,l,c=this.conf,h=c.bound&&c.bound.style||{stroke:"none"};for(2<=arguments.length?(a=arguments[0],n=arguments[1]):1<=arguments.length&&(n=arguments[0]),o=n.parentLayer,t=n.colorRange.getCumulativeValueRatio(),r=n.componentPool,e=r.getKeys(),this.getLogicalSpace(a,n),i=this._lSpace,a=i.node.logicArea,n=i.node.smartTexts,l=r.getComponent(this._id,e.KEY_GROUP),o=l("legend-values",o),l=r.getComponent(this._id,e.KEY_RECT),this.bound=h=l(o).attr(i.bound).css(h),l=r.getComponent(this._id,e.KEY_TEXT,!0),e=0,i=t.length;e2*p.height&&(m=r.getSmartText(u,c.width,2*s),m.y=n[i]*c.height/100,d=s,y.push(m.width)),g[i]=m;return y=Math.max.apply(Math,y),c.width=y,e.width=y+2*v.h,f.node.logicArea=c,f.bound=e},g.prototype.draw=function(){var e,t,r=this.conf;t=r.bound&&r.bound.style||{stroke:"none"};var o,a,i,n,s,l,c,h;for(2<=arguments.length?(o=arguments[0],i=arguments[1]):1<=arguments.length&&(i=arguments[0]),e=i.parentLayer,n=i.colorRange.getCumulativeValueRatio(),s=i.componentPool,l=s.getKeys(),this.getLogicalSpace(o,i),a=this._lSpace,o=a.node.logicArea,i=a.node.smartTexts,h=s.getComponent(this._id,l.KEY_GROUP),e=h("legend-values",e),h=s.getComponent(this._id,l.KEY_RECT),this.bound=t=h(e).attr(a.bound).css(t),h=s.getComponent(this._id,l.KEY_TEXT,!0),s=0,l=n.length;sp&&(g-=f-p),n.attr({transform:e?"t0,"+(i.currPos+g):"t"+(i.currPos+g)+",0"}),r=g,o&&clearTimeout(o),o=setTimeout(function(){l.updateWhenInRest(i,i.currPos+g)},100),i.tracker.tooltip(l.updateWhenInMove(i,i.currPos+g),null,null,!0),a=!0},dragStart:function(r){r.stopPropagation(),r.preventDefault(),n.attr({transform:e?"t0,"+i.currPos:"t"+i.currPos+",0"}),t=t||i.swing,a=!1,l.dragStarted(i)},dragEnd:function(){var e;l.dragCompleted(i,a,i.currPos+r),a&&(o&&clearTimeout(o),o=setTimeout(function(){l.updateWhenInRest(i,i.currPos)},100),i.currPos+=r,e=t[+s]+i.currPos,l.updateRange(i,e))}}},y.prototype.constructor=y,y.prototype.getValueRatio=function(){var e,t,r=this.colorRange,o=r.length,a=this.valueRatio,i=r[0].value,n=r[o-1].value-i,s=0;if(a)return a;for(a=this.valueRatio=[],t=0;ti[r]){o=!0;break}if(e>i[r]&&eIe&&(L.toleranceBottom=v(L.toleranceBottom||0,I-Ie)),$=T.getLabel(r),I=L.showtooltip?H.toolText+(R?f:H.toolTipValue):f,H.finalTooltext=I,R=H.eventArgs||(H.eventArgs={}),R.index=r,R.link=O,R.value=M,R.displayValue=F,R.categoryLabel=$,R.toolText=I,R.id=S.userID,R.datasetIndex=_,R.datasetName=d.seriesname,R.visible=_e,ne.imageUrl?(H.anchorImageLoaded=!1,V._xPos=o,V._yPos=a,B=new s,B.onload=this._onAnchorImageLoad(i,r,R,o,a),B.onerror=this._onErrorSetter(i,r),B.src=ne.imageUrl,De++):(K&&K.hide(),M=[j[1]||2,o,a,ne.radius,ne.startAngle,ne.dip],O={fill:h({color:ne.bgColor,alpha:ne.bgAlpha}),stroke:h({color:ne.borderColor,alpha:ne.borderAlpha}),"stroke-width":ne.borderThickness,visibility:ne.radius?_e:m},E||(he.element&&he.element.length?E=V.graphics.element=he.element.shift():(E=V.graphics.element=A.polypath(re.anchorGroup),E.attr({polypath:M}))),E.show().animateWith(se,le,{polypath:M},ce,Te,pe&&de),E.attr(O).shadow(B,re.anchorShadowGroup).data("hoverEnabled",N.enabled).data("eventArgs",R),pe=!1),B=V.graphics.connector,N.enabled&&(M={polypath:[N.anchorSides||2,o,a,N.anchorRadius,N.startAngle,N.dip],fill:h({color:N.anchorColor,alpha:N.anchorBgAlpha}),stroke:h({color:N.anchorBorderColor,alpha:N.anchorBorderAlpha}),"stroke-width":N.anchorBorderThickness},O={polypath:[ne.sides,o,a,ne.radius,ne.startAngle,0],fill:h({color:ne.bgColor,alpha:ne.bgAlpha}),stroke:h({color:ne.borderColor,alpha:ne.borderAlpha}),"stroke-width":ne.borderThickness},E&&E.data("anchorRadius",ne.radius).data("anchorHoverRadius",N.anchorRadius).data("hoverEnabled",N.enabled).data("setRolloverAttr",M).data("setRolloutAttr",O).data("eventArgs",R)),H.trackerConfig||(H.trackerConfig={}),H.trackerConfig.trackerRadius=v(ne.radius,N&&N.anchorRadius||0,x)+(ne.borderThickness||0)/2,U=U!==[h(X||ve),W||me].join(":"),null!==we?(Ce.length&&(be=be.concat(Ce),Ce.length=0),be.join(f)||be.push("M",Y,we),Ae?(be.push("H",o-b),Le?be.push("V",a):be.push("M",o-b,a),b&&be.push("H",o)):(Le?be.push("V",a):be.push("M",Y,a),be.push("H",o)),U&&(ye?xe=xe.concat(be):(B||(B=V.graphics.connector=A.path(be,re.lineGroup),ke=!0),B.animateWith(se,le,{path:be},ce,Te,pe&&de),B.attr({"stroke-dasharray":z,"stroke-width":te,stroke:G,"stroke-linecap":w,"stroke-linejoin":2a&&(a=-a,o=-o,e+=o-a/2,t+=o-a/2),o=3;0a;++a)for(i=0;it&&(t=c);o.max=t,o.min=n}},e.sscartesian,{minimizetendency:0,zeroplanethickness:1,zeroplanealpha:40,showzeroplaneontop:0,enablemousetracking:!0},e.areabase)}]),e.register("module",["private","modules.renderer.js-splinearea",function(){var e=this.hcLib,t=e.HUNDREDSTRING,r=!e.CREDIT_REGEX.test(this.window.location.hostname),e=e.chartAPI;e("splinearea",{friendlyName:"Spline Area Chart",standaloneInit:!0,hasLegend:!1,singleseries:!0,creditLabel:r,defaultDatasetType:"mssplinearea",defaultPlotShadow:0},e.spline,{anchoralpha:t,minimizetendency:0,enablemousetracking:!0},e.areabase)}]),e.register("module",["private","modules.renderer.js-msspline",function(){var e=this.hcLib,t=!e.CREDIT_REGEX.test(this.window.location.hostname),e=e.chartAPI;e("msspline",{standaloneInit:!0,friendlyName:"Multi-series Spline Chart",creditLabel:t,defaultDatasetType:"msspline",applicableDSList:{msspline:!0},defaultPlotShadow:1,getSplineExtremities:e.spline.getSplineExtremities,evalSplineExtremities:e.spline.evalSplineExtremities,getSegmentExtremities:e.spline.getSegmentExtremities},e.mscartesian,{minimizetendency:0,zeroplanethickness:1,zeroplanealpha:40,showzeroplaneontop:0,enablemousetracking:!0},e.areabase)}]),e.register("module",["private","modules.renderer.js-mssplinearea",function(){var e=this.hcLib,t=!e.CREDIT_REGEX.test(this.window.location.hostname),e=e.chartAPI;e("mssplinearea",{friendlyName:"Multi-series Spline Area Chart",standaloneInit:!0,creditLabel:t,defaultDatasetType:"mssplinearea",defaultPlotShadow:0},e.msspline,{minimizetendency:0,enablemousetracking:!0},e.areabase)}]),e.register("module",["private","modules.renderer.js-mssplinedy",function(){var e=this.hcLib,t=!e.CREDIT_REGEX.test(this.window.location.hostname),e=e.chartAPI;e("mssplinedy",{friendlyName:"Multi-series Dual Y-Axis Spline Chart",standaloneInit:!0,creditLabel:t,isDual:!0,defaultDatasetType:"msspline",applicableDSList:{msspline:!0},getSplineExtremities:e.spline.getSplineExtremities,evalSplineExtremities:e.spline.evalSplineExtremities,getSegmentExtremities:e.spline.getSegmentExtremities},e.msdybasecartesian,{minimizetendency:0,zeroplanethickness:1,zeroplanealpha:40,showzeroplaneontop:0},e.msspline)}]),e.register("module",["private","modules.renderer.js-multiaxisline",function(){var t=this.hcLib,r=this.window,o=t.pluck,a=t.pluckNumber,i=t.preDefStr,n=i.sStr,s=t.BLANKSTRING,l=t.parseUnsafeString,c=i.defaultFontStr,h=t.pluckFontSize,d=i.divLineAlphaStr,u=i.divLineAlpha3DStr,p=t.componentDispose,g=t.chartPaletteStr={chart2D:{bgColor:"bgColor",bgAlpha:"bgAlpha",bgAngle:"bgAngle",bgRatio:"bgRatio",canvasBgColor:"canvasBgColor",canvasBaseColor:"canvasBaseColor",divLineColor:"divLineColor",legendBgColor:"legendBgColor",legendBorderColor:"legendBorderColor",toolTipbgColor:"toolTipbgColor",toolTipBorderColor:"toolTipBorderColor",baseFontColor:"baseFontColor",anchorBgColor:"anchorBgColor"},chart3D:{bgColor:"bgColor3D",bgAlpha:"bgAlpha3D",bgAngle:"bgAngle3D",bgRatio:"bgRatio3D",canvasBgColor:"canvasBgColor3D",canvasBaseColor:"canvasBaseColor3D",divLineColor:"divLineColor3D",divLineAlpha:u,legendBgColor:"legendBgColor3D",legendBorderColor:"legendBorderColor3D",toolTipbgColor:"toolTipbgColor3D",toolTipBorderColor:"toolTipBorderColor3D",baseFontColor:"baseFontColor3D",anchorBgColor:"anchorBgColor3D"}},r=!t.CREDIT_REGEX.test(r.location.hostname),f=t.graphics.convertColor,m=t.extend2,v=i.altVGridColorStr,b=i.configStr,y=i.animationObjStr,x="rgba(192,192,192,"+(t.isIE?.002:1e-6)+")",w=t.toRaphaelColor,C=t.hasTouch,k=Math,S=k.max,_=k.min,L=i.POSITION_BOTTOM,A=i.colors.c000000,T=i.altVGridAlphaStr,t=t.chartAPI;t("multiaxisline",{friendlyName:"Multi-axis Line Chart",standaloneInit:!0,creditLabel:r,defaultDatasetType:"multiaxisline",defaultPlotShadow:1,axisPaddingLeft:0,axisPaddingRight:0,applicableDSList:{LINE:!0},_createDatasets:function(){var t,r,a,i,c,h,d,u,g,f,m,v,b=this.components,y=this.config,x=this.jsonData,w=x.axis,C=0,k=this.defaultDatasetType,S=this.applicableDSList,_=b.legend.components.items||[],L=this.config.isstacked,A={},T=0;if(w){for(t=w.length,this.config.categories=x.categories&&x.categories[0].category,x=b.dataset||(b.dataset=[]),i=x.length,v=y.axisDataSetMap=[],r=0;ru&&c.removeData(u-1,d-u,!1),c.JSONData=f,c.index=r,c.axisIndex=r,c.configure(),v[r].push(T),T+=1):(c=new c,x.push(c),c.chart=this,c.index=r,c.axisIndex=r,v[r].push(T),T+=1,d&&(L?d.addDataSet(c,0,A[u]):d.addDataSet(c,A[u],0)),c.init(f)));if(i>C){for(b=i-C,y=C;yg+f&&this._allocateSpace({left:f,right:g}),r=.6*o.canvasHeight,s[0]&&this._allocateSpace(s[0].placeAxis(r)),r=.325*o.canvasHeight,this._getDSspace&&this._allocateSpace(this._getDSspace(r)),c&&this._allocateSpace({bottom:c}),this._allocateSpace({top:n,bottom:n,left:n,right:n}),s=y>o.canvasTop?y-o.canvasTop:0,c=x>C-o.canvasBottom?x+o.canvasBottom-C:0,g=w>o.canvasLeft?w-o.canvasLeft:0,f=v>b-o.canvasRight?v+o.canvasRight-b:0,this._allocateSpace({top:s,bottom:c,left:g,right:f}),o.actualCanvasMarginTop=s,o.actualCanvasMarginLeft=g,o.actualCanvasMarginRight=f,o.actualCanvasMarginBottom=c},_postSpaceManagement:function(){var e=this.config,t=this.components,r=t.xAxis&&t.xAxis[0],o=t.legend,a=e.xDepth,i=t.canvas.config,t=i.canvasBorderWidth,n=i.canvasPadding,s=i.canvasPaddingLeft,i=i.canvasPaddingRight;r&&r.setAxisDimention({x:e.canvasLeft+(a||0)+S(s,n),y:e.canvasBottom+(e.shift||0)+t,opposite:e.canvasTop-t,axisLength:e.canvasWidth-(a||0)-S(s,n)-S(i,n)}),r&&r.shiftLabels(-a,0),o.postSpaceManager()},_resuffelAxis:function(){var e,t,r,o,a,i=this.data("axisDetails"),n=i.iapi,s=n.config.axesArr;if(e=s.leftAxes,t=s.rightAxes,"l"===i.position){for(o=e.length-1;o>i.index;o--)if(e[o].showAxis){r=o,a=i.index;break}if(void 0!==r&&(i=m({},e[a]),e[a]=m({},e[r]),e[r]=m({},i)),s.leftSideSelected&&void 0===r)return;s.leftSideSelected=!0}else{for(o=0;on&&e!==i?o=!0:e=n>i?n:i,o){for(r.setAxisConfig({axisMaxValue:e,axisMinValue:a,showUpperLimit:!0}),r.setDataLimit(e,a),this._manageSpace(),this._postSpaceManagement(),this._drawCanvas(),this.chartMenuBar&&this._drawChartMenuBar(),this._manageCaptionPosition(),this._drawCanvas(),t.caption&&t.caption.draw(),this.drawLegend(),this.drawActionBar&&this.drawActionBar(),t=0;t ',s=n.removeChild(n.firstChild),o.document.body.appendChild(s),s.submit&&s.submit(),s.parentNode.removeChild(s),n=s=null)},function(){e.raiseEvent("dataSubmitCancelled",{data:a},f)})},getJSONData:function(){var e,t,r=this.defaultDatasetType&&this.defaultDatasetType.toLowerCase(),o=this.components,a=o["datasetGroup_"+r],r=o.dataset,i=this.jsonData.dataset,n=this.jsonData,s=r.length,o=[];if(a&&a.getJSONData)o=a.getJSONData();else for(a=0;al-s&&gd-s&&fd&&C.removeData(d-1,h-d),C.JSONData=a,C.configure(),o.shift()):(a=f[t],o=new i,o.chart=this,S[p].push(o),r.push(o),o.chart=this,o.index=t,o.init(a),g.addDataset(o,t)),c++;for(t=0;td&&C.removeData(d-1,h-d),C.JSONData=b,C.configure(),o.shift()):(o=new n,o.chart=this,o.index=t,S[p].push(o),r.push(o),o.init(b),g.addConnectors(o,t)),c++;p="labels",o=k[p],C=o[0],void 0===_[p]?_[p]=0:_[p]++,C?(h=C.JSONData,h=h.length,d=x,S[p].push(C),r.push(C),h>d&&C.removeData(d-1,h-d),C.JSONData=v,C.configure(),o.shift()):(c=new s,c.chart=this,S[p].push(c),r.push(c),c.init(v),g.addLabels(c,0)),this.config._datasetUpdated=!0;for(f in k)if(o=k[f],v=o.length,c=_[f]||-1,v)for(m=0;mm&&(m=e));n[0].setDataLimit(m,f)}}},u.dragbase)}]),e.register("module",["private","modules.renderer.js-dragarea",function(){var e=this.hcLib,t=e.HUNDREDSTRING,r=!e.CREDIT_REGEX.test(this.window.location.hostname),e=e.chartAPI;e("dragarea",{friendlyName:"Dragable Area Chart",standaloneInit:!0,creditLabel:r,defaultDatasetType:"dragarea",decimals:2,applicableDSList:{dragarea:!0}},e.dragbase,{anchoralpha:t,enablemousetracking:!0,isDrag:!0},e.areabase)}]),e.register("module",["private","modules.renderer.js-dragline",function(){var e=this.hcLib,t=e.chartAPI,e=!e.CREDIT_REGEX.test(this.window.location.hostname);t("dragline",{friendlyName:"Dragable Line Chart",standaloneInit:!0,creditLabel:e,decimals:2,defaultDatasetType:"dragline",applicableDSList:{dragline:!0},defaultPlotShadow:1},t.dragbase,{zeroplanethickness:1,zeroplanealpha:40,showzeroplaneontop:0,enablemousetracking:!0,isDrag:!0},t.areabase)}]),e.register("module",["private","modules.renderer.js-dragcolumn2d",function(){var e=this.hcLib,t=e.chartAPI,e=!e.CREDIT_REGEX.test(this.window.location.hostname);t("dragcolumn2d",{friendlyName:"Dragable Column Chart",standaloneInit:!0,creditLabel:e,decimals:2,defaultDatasetType:"DragColumn",applicableDSList:{dragcolumn:!0}},t.dragbase,{enablemousetracking:!0,isDrag:!0})}]),e.register("module",["private","modules.renderer.js-selectscatter",function(){var e=this,t=e.hcLib,r=e.window,o=!t.CREDIT_REGEX.test(r.location.hostname),a=t.getValidValue,i=t.extend2,n=t.toRaphaelColor,s=t.preDefStr,l=t.hasSVG,c=t.BLANKSTRING,h=s.ROUND,d=Math,u=d.min,p=d.max,g=d.abs,f=e.xssEncode,m=s.hiddenStr,d=s.visibleStr,v=8===r.document.documentMode?d:c,b=s.configStr,y="rgba(192,192,192,"+(t.isIE?.002:1e-6)+")",x=t.chartAPI;x("selectscatter",{isXY:!0,hasLegend:!0,applicableDSList:{selectScatter:!0},friendlyName:"Dragable Scatter Chart",standaloneInit:!0,creditLabel:o,defaultDatasetType:"selectScatter",defaultZeroPlaneHighlighted:!1,configure:x.dragbase.configure,_createToolBox:x.dragbase._createToolBox,_manageActionBarSpace:x.dragbase._manageActionBarSpace,drawActionBar:x.dragbase.drawActionBar,getData:function(t){var r,o=this.getCollatedData(),i=[],n=o.dataset,s=n&&n.length||0,l=0,c=0;if(t)i=/^json$/gi.test(t)?o:/^csv$/gi.test(t)?this.getCSVString():e.core.transcodeData(o,"json",t);else for(;ls&&th&&(m[a].data[n]=!0);for(a=f.length;a--;)for(n=(o=f[a].data)&&o.length;n--;)m[a]&&m[a].data[n]||o.splice(n,1);return this.updatedDataObj=g},createSelectionBox:function(e){var t=e.chart,r=t.components,o=r.paper,a=t.config,i=r.yAxis&&r.yAxis[0],r=r.xAxis&&r.xAxis[0],s=e.selectionLeft,c=e.selectionTop,d=e.selectionWidth;e=e.selectionHeight;var u=s+d,p=c+e,g=15t.width||15>t.height?(a.cornerInnerSymbol.hide(),a.cornerOuterSymbol.show()):(a.cornerInnerSymbol.show(),a.cornerOuterSymbol.hide()),a.isVisible=!0,h.show(),d.show(),u.show(),p.show(),g.show(),o.data("dragStarted")&&(r={selectionLeft:t.x,selectionTop:t.y,selectionWidth:t.width,selectionHeight:t.height,startXValue:n.xAxis[0].getValue(t.x-s.canvasLeft),startYValue:n.yAxis[0].getValue(t.y-s.canvasTop),endXValue:n.xAxis[0].getValue(t.x+t.width-s.canvasLeft),endYValue:n.yAxis[0].getValue(t.y+t.height-s.canvasTop),data:i.getCollatedData(),id:a.id},e.raiseEvent("SelectionUpdated",r,i.chartInstance),o.data("dragStarted",0))},100)},restoreData:function(){var e,r=this.components.dataset;for(this._deleteAllSelection(),e=0;e ',s=n.removeChild(n.firstChild),r.document.body.appendChild(s),s.submit&&s.submit(),s.parentNode.removeChild(s),n=s=null)},function(){e.raiseEvent("dataSubmitCancelled",{data:a},l)})},_postSpaceManagement:function(){x("mscartesian")._postSpaceManagement.call(this),this._deleteAllSelection()},eiMethods:{getData:function(e){var t=this.apiInstance;return t&&t.getData(e)},restoreData:function(){var e=this.apiInstance;return e&&e.restoreData()},submitData:function(){var e=this.apiInstance;return e&&e.submitData()}}},x.scatterBase,{enablemousetracking:!0,allowreversexaxis:!0})}]),e.register("module",["private","modules.renderer.js-candlestick",function(){var t=this.hcLib,r=!t.CREDIT_REGEX.test(this.window.location.hostname),o=t.chartAPI,a=t.pluck,i=t.graphics.convertColor,n=t.preDefStr,s=n.altHGridColorStr,l=n.altHGridAlphaStr,c=t.parseUnsafeString,h=n.column,d=t.componentDispose,u=n.volume,p=t.POSITION_RIGHT,g=Math,f=g.max,m=g.round,v=n.POSITION_BOTTOM,b=n.configStr,y=n.animationObjStr,x=n.ROUND,w=n.miterStr,C=t.toRaphaelColor,k=n.divLineAlpha3DStr,S=n.defaultFontStr,_=t.pluckFontSize,L=n.divLineAlphaStr,A=n.altVGridColorStr,T=n.altVGridAlphaStr,D=g.min,P=n.colors.c000000,I=t.BLANKSTRING,E=t.chartPaletteStr={chart2D:{bgColor:"bgColor",bgAlpha:"bgAlpha",bgAngle:"bgAngle",bgRatio:"bgRatio",canvasBgColor:"canvasBgColor",canvasBaseColor:"canvasBaseColor",divLineColor:"divLineColor",legendBgColor:"legendBgColor",legendBorderColor:"legendBorderColor",toolTipbgColor:"toolTipbgColor",toolTipBorderColor:"toolTipBorderColor",baseFontColor:"baseFontColor",anchorBgColor:"anchorBgColor"},chart3D:{bgColor:"bgColor3D",bgAlpha:"bgAlpha3D",bgAngle:"bgAngle3D",bgRatio:"bgRatio3D",canvasBgColor:"canvasBgColor3D",canvasBaseColor:"canvasBaseColor3D",divLineColor:"divLineColor3D",divLineAlpha:k,legendBgColor:"legendBgColor3D",legendBorderColor:"legendBorderColor3D",toolTipbgColor:"toolTipbgColor3D",toolTipBorderColor:"toolTipBorderColor3D",baseFontColor:"baseFontColor3D",anchorBgColor:"anchorBgColor3D"}},O=t.extend2,M=t.pluckNumber;o("candlestick",{friendlyName:"Candlestick Chart",standaloneInit:!0,creditLabel:r,usesXYinCategory:!0,paletteIndex:3,defaultDatasetType:"candlestick",hasLegend:!0,applicableDSList:{candlestick:!0},canvasborderthickness:1,hasInteractiveLegend:!1,init:function(e,t,r,a){var i;this.jsonData=t,i=this.components=this.components||(this.components={}),i.canvasVolume=i.canvasVolume||(i.canvasVolume={graphics:{},config:{}}),o.mscartesian.init.call(this,e,t,r,a)},configure:function(){var e,t,r,o=this.components.colorManager,n=this.jsonData.chart,c=this.components;this.base.configure.call(this),e=this.config,r=c.canvas.config,e.showVolumeChart=M(n.showvolumechart,1),t=M(n.volumeheightpercent,40),e.volumeHeightPercent=20>t?20:80l&&r.removeData(l-1,s-l,!1),r.JSONData=n),r.configure(),L[o].push(r),t.push(r),p.shift()):(r=new i,t.push(r),L[o].push(r),r.chart=this,r.index=k,r.init(n))),k++,p=f.yAxis&&f.yAxis[1],y&&this.config.drawVolume?(p&&p.show(),i&&(void 0===_[o]?_[o]=0:_[o]++,p=S[o],(r=p[0])?(s=(s=r.JSONData)&&s.data&&s.data.length,l=n.data&&n.data.length,s>l&&r.removeData(l-1,s-l,!1),r.JSONData=n,r.configure(),t.push(r),L[o].push(r),p.shift()):(r=new i,r.chart=this,t.push(r),L[o].push(r),r.init(n,u))),k++):p&&p.hide(),y=this.config.drawVolume&&y?this.config.showVolumeChart=1:this.config.showVolumeChart=0;for(m=0,x=b.length;ml&&r.removeData(l-1,s-l,!1),r.JSONData=n,r.configure(),p.shift()):(i=e.get("component",["dataset",o]),f=new i,t.push(f),L[o].push(f),f.chart=this,f.index=k,f.init(n)),k++;for(v in S)if(p=S[v],x=p.length)for(b=0;bx-_-L&&(S=!0,c=o.canvasWidth-r,C=_+L,_=o.canvasMarginLeft=c*_/C,L=o.canvasMarginRight=c*L/C),_=_>o.canvasLeft?_-o.canvasLeft:0,x=L>x-o.canvasRight?L+o.canvasRight-x:0,this._allocateSpace({left:_,right:x}),S&&(C=I+E,S=o.canvasWidth,S>r&&(c=S-r,_=c*I/C,x=c*E/C),this._allocateSpace({left:_,right:x})),r=i===v?.6*o.canvasHeight:.6*o.canvasWidth,this._manageChartMenuBar(r),this._allocateSpace({top:o.canvasMarginTop,bottom:o.canvasMarginBottom}),r=.3*o.canvasHeight,i=n.placeAxis(r),n&&this._allocateSpace(i),i.bottom+=6,b.intermediarySpace=i.bottom,u&&(n=s.placeAxis(r),this._allocateSpace(n)),this._allocateSpace({top:a,bottom:2*a,left:a,right:a}),h>w-A-T&&(k=!0,c=o.canvasHeight-h,C=A+T,A=o.canvasMarginTop=c*A/C,T=o.canvasMarginBottom=c*T/C),n=A>o.canvasTop?A-o.canvasTop:0,w=T>w-o.canvasBottom?T+o.canvasBottom-w:0,this._allocateSpace({top:n,bottom:w}),k&&(C=D+P,k=o.canvasHeight,k>h&&(c=k-h,n=c*D/C,w=c*P/C),this._allocateSpace({top:n,bottom:w})),h=o.canvasHeight,b.canvasHeight=m((100-g)/100*h),y.canvasHeight=g/100*h,b.canvasTop=o.canvasTop,b.canvasLeft=o.canvasLeft,b.canvasBottom=b.canvasTop+b.canvasHeight,b.canvasWidth=o.canvasWidth,b.canvasRight=o.canvasRight,y.canvasTop=b.canvasBottom+i.bottom+2*a,y.canvasLeft=o.canvasLeft,y.canvasBottom=y.canvasTop+y.canvasHeight+2*a,y.canvasRight=o.canvasRight,y.canvasWidth=o.canvasWidth,g=o.canvasTop+b.canvasHeight+a,o=o.canvasTop+b.canvasHeight+i.bottom+2*a,b.canvasY=g,y.canvasY=o},_postSpaceManagement:function(){var e=this.components,t=this.config.showVolumeChart,r=e.xAxis&&e.xAxis[0],o=e.yAxis&&e.yAxis[0],a=e.xAxis&&e.xAxis[1],i=e.yAxis&&e.yAxis[1],n=e.canvas.config,s=e.legend,e=e.canvasVolume.config,l=n.canvasBorderWidth;r&&r.setAxisDimention({x:n.canvasLeft,y:n.canvasY,opposite:n.canvasTop-l,axisLength:n.canvasWidth}),o&&o.setAxisDimention({x:n.canvasLeft-l,y:n.canvasTop,opposite:n.canvasRight+l,axisLength:n.canvasHeight}),t&&(a&&a.setAxisDimention({x:n.canvasLeft,y:e.canvasBottom,opposite:e.canvasTop-l,axisLength:n.canvasWidth}),i&&i.setAxisDimention({x:n.canvasLeft-l,y:e.canvasY,opposite:e.canvasRight+l,axisLength:e.canvasHeight}),a&&a.setCanvas(e),i&&i.setCanvas(e)),r.setCanvas(n),o.setCanvas(n),s.postSpaceManager()},_drawCanvas:function(){var e,t=this.components,r=this.graphics,o=t.paper,a=t.canvas,i=t.canvas.config,n=i.clip||(i.clip=[]),s=t.canvasVolume.config,l=a.graphics,t=t.canvasVolume.graphics,c=a.config,h=l.topCanvas,d=l.topCanvasBorderElement,a=t.volumeCanvas,u=i.canvasLeft,p=i.canvasTop,g=i.canvasWidth,i=i.canvasHeight,m=s.canvasTop,s=s.canvasHeight,r=r.canvasGroup,v=c.canvasBorderRadius,k=c.canvasBorderWidth,S=.5*k,_=c.canvasBorderColor,L=this.get(b,y),A=L.dummyObj,T=L.animObj,D=L.animType,L=L.transposeAnimDuration,P=this.config.showVolumeChart,I=c.shadow,E=c.shadowOnCanvasFill,c=c.canBGColor;e={x:u-S,y:p-S,width:g+k,height:i+k,r:v,"stroke-width":k,stroke:_,"stroke-linejoin":2=d?10:d)*f/100),a(u-1,1),g=a(g,1)),this._adjustCanvasPadding(),r&&r.setAxisDimention({x:this.config.canvasLeft+c+m/2,axisLength:m*(g-p),y:e.canvasBottom+(e.shift||0)+l,opposite:e.canvasTop-l})},_setPosition:function(){var e,t,r,o,a,n,l;e=this.components,o=this.jsonData;var c=e.dataset[0],h=o.data||c&&c[0]&&c[0].data,d=(c=c.components.data)&&c.length,u=e.yAxis[0],p=0,g=p,f=[];for(e=0;eC||(w=C,b=y),0p){for(w=r-p,v&&k&&v.removeDataSet(0,t,w),c=t,p=w+t;cn&&!d&&(s=p,p=ue?180-p:360-p),D.colorArr=P=t.graphics.getColumnColor(ee+","+x,g,f,p,d,T,A.toString(),ue?1:0,!!pe),D.label=o=C(oe(w($[me].tooltext,$[me].label))),0!==u&&(I=w(l.hovercolor,q.hovercolor,Z.plotfillhovercolor,Z.columnhovercolor,ee),R=w(l.hoveralpha,q.hoveralpha,Z.plotfillhoveralpha,Z.columnhoveralpha,g),F=w(l.hovergradientcolor,q.hovergradientcolor,Z.plothovergradientcolor,x),!F&&(F=y),V=w(l.hoverratio,q.hoverratio,Z.plothoverratio,f),N=k(360-l.hoverangle,360-q.hoverangle,360-Z.plothoverangle,p),j=w(l.borderhovercolor,q.borderhovercolor,Z.plotborderhovercolor,T),W=w(l.borderhoveralpha,q.borderhoveralpha,Z.plotborderhoveralpha,Z.plotfillhoveralpha,A,g),g=k(l.borderhoverthickness,q.borderhoverthickness,Z.plotborderhoverthickness,re),G=k(l.borderhoverdashed,q.borderhoverdashed,Z.plotborderhoverdashed),z=k(l.borderhoverdashgap,q.borderhoverdashgap,Z.plotborderhoverdashgap,c),U=k(l.borderhoverdashlen,q.borderhoverdashlen,Z.plotborderhoverdashlen,h),G=G?ce(U,z,g):r,1==u&&I===ee&&(I=B(I,70)),ee=t.graphics.getColumnColor(I+","+F,R,V,N,d,j,W.toString(),ue?1:0,!!pe),D.setRolloutAttr={fill:pe?[_(P[0]),!Y.use3DLighting]:_(P[0]),stroke:e&&_(P[1]),"stroke-width":re,"stroke-dasharray":r},D.setRolloverAttr={fill:pe?[_(ee[0]),!Y.use3DLighting]:_(ee[0]),stroke:e&&_(ee[1]),"stroke-width":g,"stroke-dasharray":G}),r=D.toolTipValue,ee=C(oe(w(l.tooltext,q.plottooltext,Z.plottooltext))),D.setErrorValue=P=de.getCleanValue(l.errorvalue),D.errorInPercent=k(l.errorinpercent,fe,0),D.errorInPercent&&(D.setErrorValue=P=k((P/100*n).toFixed(2))),D.cumulativeValueOnErrorBar=k(l.cumulativevalueonerrorbar,Y.cumulativeValueOnErrorBar,1),D.positiveErrorValue=de.getCleanValue(k(l.positiveerrorvalue,l.errorvalue)),D.errorInPercent&&D.positiveErrorValue&&(D.positiveErrorValue=k((D.positiveErrorValue/100*n).toFixed(2))),D.positiveCumulativeErrorValue=n+k(D.positiveErrorValue,D.setErrorValue),D.negativeErrorValue=de.getCleanValue(k(l.negativeerrorvalue,l.errorvalue)),D.errorInPercent&&D.negativeErrorValue&&(D.negativeErrorValue=k((D.negativeErrorValue/100*n).toFixed(2))),D.negativeCumulativeErrorValue=n-k(D.negativeErrorValue,D.setErrorValue),D.errorToolTipValue=I=de.dataLabels(P,ge),D.negativeErrorToolTipValue=de.dataLabels(D.negativeErrorValue,ge),D.negativeCumulativeErrorTooltipValue=de.dataLabels(D.negativeCumulativeErrorValue,ge),D.positiveErrorToolTipValue=de.dataLabels(D.positiveErrorValue,ge),D.positiveCumulativeErrorTooltipValue=de.dataLabels(D.positiveCumulativeErrorValue,ge),D.errorPercentValue=R=E(P/n*H*H)/H+m,Q?null===r?l=!1:void 0!==ee?(n=[1,2,3,4,5,6,7,99,100,101,102,120,121],o={yaxisName:ae,xaxisName:ie,formattedValue:r,errorValue:P,errorDataValue:I,errorPercentValue:R,errorPercentDataValue:R,positiveErrorValue:D.positiveErrorToolTipValue,negativeErrorValue:D.negativeErrorToolTipValue,label:o},l=le(ee,n,o,l,Z,q)):(se&&(i=S(q&&q.seriesname)),l=i?i+ne:y,l+=o?o+ne:y):l=!1,D.toolText=l,D.setTooltext=l,s&&(p=s);Y=this.config.includeInLegend,!1!==X.hasLegend&&Y&&this._addLegend(),this.ErrorValueConfigure()},ErrorValueConfigure:function(){var e,r,o,a,n,s,l,c,h,d,u,p,g,f,m,v,b,_,A=this.chart,T=this.config,D=this.JSONData,P=D.data,I=A.config.categories,I=O(I&&I.length,P&&P.length),E=A.jsonData.chart,A=t.parseUnsafeString,R=this.components.data,F=A(E.yaxisname),B=A(E.xaxisname),H=k(E.seriesnameintooltip,1),W=A(w(E.tooltipsepchar,L)),G=-1/0,z=1/0,U=function(t){return T.showTooltip?null===u?t=!1:void 0!==t?(s=[1,2,3,4,5,6,7,99,100,101,102,120,121],l={yaxisName:F,xaxisName:B,formattedValue:o.toolTipValue,errorValue:d,errorDataValue:o.errorToolTipValue,errorPercentValue:o.errorPercentValue,errorPercentDataValue:o.errorPercentValue,positiveErrorValue:o.positiveErrorToolTipValue,negativeErrorValue:o.negativeErrorToolTipValue,label:o.label},t=x(t,s,l,e,E,D)):(H&&(n=S(D&&D.seriesname)),t=n?n+W:y,t+=o.label?o.label+W:y):t=!1,t};for(T.showValues=k(D.showvalues,E.showvalues,0),T.errorBarShadow=r=k(E.errorbarshadow,E.showshadow,1),T.ignoreEmptyDatasets=k(D.ignoreemptydatasets,0),f=k(E.halferrorbar,1),T.notHalfErrorBar=!k(E.halferrorbar,1),h=N(w(D.errorbaralpha,E.errorbaralpha,T.plotFillAlpha)),T.errorBarWidthPercent=k(D.errorbarwidthpercent,E.errorbarwidthpercent,70),T.errorBarColor=j(V(w(D.errorbarcolor,E.errorbarcolor,i)),h),T.errorBarThickness=k(D.errorbarthickness,E.errorbarthickness,1),T.shadowOpacity=r?h/250:0,h=0;hm&&0>g?0:null!=m?m:d,G=M(G,p,g),z=O(z,p,g),o.errorValueArr=[],null===o.positiveErrorValue&&(o.positiveErrorValue=void 0),p=-o.positiveErrorValue,o.errorValueArr.push({errorValue:p,tooltext:r?v:c||a,errorEdgeBar:!0}),o.errorValueArr.push({errorValue:p,tooltext:c||a}),o.notHalfErrorBar&&(p=o.negativeErrorValue,o.errorValueArr.push({errorValue:p,tooltext:r?b:_||a,errorEdgeBar:!0}),o.errorValueArr.push({errorValue:p,tooltext:_||a})));T.maxValue=G,T.minValue=z},init:function(e){var t=this.chart,r=t.components,r=t.isDual?r.yAxis[this.yAxis||0]:r.yAxis[0];if(!e)return!1;this.JSONData=e,this.yAxis=r,this.chartGraphics=t.chartGraphics,this.components={},this.graphics={},this.visible=1===k(this.JSONData.visible,!Number(this.JSONData.initiallyhidden),1),this.configure()},draw:function(){var e,r,o,a,i=this,h=i.JSONData,d=i.chart.jsonData.chart,p=i.config,g=i.groupManager,f=i.index,m=i.chart.config.categories,v=h.data,b=i.visible,x=i.chart,C=x.components.paper,S=x.components.xAxis[0],L=x.components.yAxis[0];e=x.graphics.columnGroup;var I,E,M,V,N,B,j,H,W,G,z,U,X=t.parseUnsafeString,Y=t.getValidValue,q=t.Raphael,K=p.showTooltip,$=S.getAxisPosition(0),J=S.getAxisPosition(1),Z=p.groupMaxWidth=J-$,Q=p.definedGroupPadding,ee=p.plotSpacePercent/200,te=g.getDataSetPosition(i),$=g.manageClip,re=p.maxColWidth,oe=x.get(n,s),J=oe.animType,ae=oe.animObj,ie=oe.dummyObj,oe=oe.duration,Z=(1-.01*Q)*Z||O(Z*(1-2*ee),1*re),Z=k(te.columnWidth,Z/1),Q=te.xPosOffset||0,te=te.height,ee=i.components.data,re=L.getLimit(),ne=re.min,re=0ne,ne=L.getAxisBase(),se=L.yBasePos=L.getAxisPosition(ne),le=0,ce=p.showShadow,he=p.plotBorderThickness,p=p.plotRadius,de=i.graphics.container,ue=i.graphics.dataLabelContainer,pe=i.graphics.shadowContainer,ge=i.graphics.errorGroupContainer,fe=i.graphics.errorShadowContainer,me=!0,ve=!1,be=!1,ye=(i.components.removeDataArr||[]).length,xe=i.components.pool||[],we=x.config.plothovereffect,Ce=function(){!1!==i.visible||!1!==i._conatinerHidden&&void 0!==i._conatinerHidden||(de.hide(),pe.hide(),ue&&ue.hide(),ge&&ge.hide(),fe&&fe.hide(),i._conatinerHidden=!0)},ke=function(){i.drawLabel(),i.drawErrorValue()};for(de||(de=i.graphics.container=C.group(l,e).trackTooltip(!0),b?de.show():de.hide()),pe||(pe=i.graphics.shadowContainer=C.group(c,e).toBack(),b||pe.hide()),e=S.getCategoryLen(),a=0;au,c=D._oriXPos,S=D._oriYPos,_=D._oriWidth,L=D._oriHeight,u=k?S+L:S,c+=_/2,D.errorBar||(D.errorBar=[]);x--;)T.errorTrackerArr[x]={},e=v[x],T.errorTrackerArr[x].tooltext=e.tooltext,b=u,m=e.errorValue,null===m||isNaN(m)?D.graphics.error&&D.graphics.error[x]&&(D.graphics.error[x].hide(),D.graphics.error[x].shadow({opacity:0})):(w=U/100*_,w/=2,p=0===B?0:1,m=S+(V.getAxisPosition(0)-V.getAxisPosition(1))*m*p,k&&(m+=L),p=E(m)+z%2/2,g=E(c)+z%2/2,D.errorBar[x]||(D.errorBar[x]=[]),e.errorEdgeBar?(m=["M",g-w,p,"H",g+w],D.errorBar[x][1]={_xPos:g-w-$,_yPos:p-$,_height:2*$,_width:2*(w+$),_toolText:e.tooltext}):(m=["M",g,b,"V",p],D.errorBar[x][0]={_xPos:g-$,_yPos:pr;r++)D.graphics.error&&D.graphics.error[r]&&D.graphics.error[r].hide()&&D.graphics.error[r].shadow({opacity:0})}}},_rolloverResponseSetter:function(e,t,r){var o=t.graphics;t=t.errorBarHovered;var a=(o=o&&o.element)&&o.getData();!t&&o&&0!==a.showHoverEffect&&o.attr(o.getData().setRolloverAttr),o&&W.call(o,e,r,"DataPlotRollOver")},_rolloutResponseSetter:function(e,t,r){var o=t.graphics;t=t.errorBarHovered;var a=(o=o&&o.element)&&o.getData();!t&&o&&0!==a.showHoverEffect&&o.attr(o.getData().setRolloutAttr),o&&W.call(o,e,r,"DataPlotRollOut")},_firePlotEvent:function(e,r,o,a){var i=this.chart,n=this.components.data[r],s=n.graphics.element,l=n.errorBarHovered,c=t.toolTip,h=o.originalEvent,d=i.components.paper.canvas.style,u=n.config.setLink;if(s)switch(e){case"mouseover":this._decideTooltipType(r,a,o),this._rolloverResponseSetter(i,n,h),u&&(d.cursor="pointer");break;case"mouseout":c.hide(i.chartInstance.id),this._rolloutResponseSetter(i,n,h),u&&(d.cursor="default");break;case"click":W.call(s,i,h);break;case"mousemove":this._decideTooltipType(r,a,o),l&&!n._isRollover?(0!==s.showHoverEffect&&s.attr(s.getData().setRolloutAttr),n._isRollover=!0,n._isRollout=!1):l||n._isRollout||(0!==s.showHoverEffect&&s.attr(s.getData().setRolloverAttr),n._isRollover=!1,n._isRollout=!0)}},_checkPointerOverErrorBar:function(e,t,r){var o,a,i,n,s,l,c,h,d=this.components.data,u=d[e];if(u&&(u=u.errorBar))for(i=u&&u.length;i--;)for(n=(a=u[i])&&a.length;n--;)if(a[n]&&a[n]._xPos&&(o=a[n]._xPos,l=a[n]._yPos,c=a[n]._height,h=a[n]._width,s=a[n]._toolText,o=t>=o&&t<=o+h&&r>=l&&r<=l+c))return{pointIndex:e,hovered:o,pointObj:d[e],toolText:s}},_checkPointerOverPlot:function(e,t,r){var o,a=this.components.data[e],i=a&&a.config;if(a)return(o=this._checkPointerOverErrorBar(e,t,r))?(a.errorBarHovered=!0,i.finalTooltext=o.toolText):(o=this._checkPointerOverColumn(e,t,r),a.errorBarHovered=!1,o&&(i.finalTooltext=!1!==i.toolText&&i.toolText+i.toolTipValue)),o},_getHoveredPlot:function(e,t){var r=this.chart,o=r.components.canvas.config,r=r.components.xAxis[0].getValue(e-r.config.canvasLeft-Math.max(o.canvasPaddingLeft,o.canvasPadding)),o=Math.round(r);return 0o;o++)t.error&&t.error[o]&&t.error[o].hide()&&t.error[o].shadow({opacity:0});t.hotElement&&t.hotElement.hide()&&t.hotElement.attr({width:0}),e.graphics.element&&(n.element=n.element.concat(e.graphics.element)),e.graphics.hotElement&&(n.hotElement=n.hotElement.concat(e.graphics.hotElement)),e.graphics.label&&(n.label=n.label.concat(e.graphics.label))}a.pool=n,l&&this.setMaxMin()}},"Column"])}]),e.register("module",["private","modules.renderer.js-dataset-errorline",function(){var t=this.hcLib,r=t.preDefStr,o=r.colors.AAAAAA,a=r.configStr,i=r.animationObjStr,n=r.errorBarStr,s=r.errorShadowStr,l=r.ROUND,c=r.PERCENTAGESTRING,r=r.line,h=t.BLANKSTRING,d=t.parseTooltext,u=t.pluck,p=t.getValidValue,g=t.pluckNumber,f=t.getFirstValue,m=t.COMMASPACE,v="rgba(192,192,192,"+(t.isIE?.002:1e-6)+")",b=t.TOUCH_THRESHOLD_PIXELS,y=t.CLICK_THRESHOLD_PIXELS,x=Math,w=x.round,C=x.min,k=x.max,S=x.abs,_=t.hasTouch?b:y,L=t.getFirstColor,A=t.getFirstAlpha,T=t.graphics.convertColor,D=t.HUNDREDSTRING;e.register("component",["dataset","ErrorLine",{type:r,ErrorValueConfigure:function(){var e,r,a,i,n,s,l,v,b,y,x,S=this.chart,_=this.config,P=S.config,I=_.parentYAxis,E=this.JSONData,O=E.data,M=S.jsonData.chart,R=S.components.xAxis[0].getCategoryLen(),F=t.parseUnsafeString,V=this.components.data,S=S.components.numberFormatter;x=_.linethickness;var N,B,j,H,W,G,z=-1/0,U=1/0,X=F(M.yaxisname),Y=F(M.xaxisname),q=u(M.tooltipsepchar,m),K=g(M.seriesnameintooltip,1),$=function(t){return P.showtooltip?null===l?t=!1:void 0!==t?(j=[1,2,3,4,5,6,7,99,100,101,102],H={yaxisName:X,xaxisName:Y,formattedValue:a.toolTipValue,errorValue:s,errorDataValue:a.errorToolTipValue,errorPercentValue:a.errorPercentValue,errorPercentDataValue:a.errorPercentValue,label:a.label},t=d(t,j,H,e,M,E)):(K&&(W=f(E&&E.seriesname)),t=W?W+q:h,t+=a.label?a.label+q:h):t=!1,t};for(_.errorBarShadow=r=g(M.errorbarshadow,M.showshadow,1),_.ignoreEmptyDatasets=g(E.ignoreemptydatasets,0),g(M.halferrorbar,1),_.notHalfErrorBar=!g(M.halferrorbar,1),i=A(u(E.errorbaralpha,M.errorbaralpha,_.alpha)),_.errorBarWidth=g(E.errorbarwidth,M.errorbarwidth,5),_.errorBarColor=T(L(u(E.errorbarcolor,M.errorbarcolor,o)),i),n=g(E.errorbarthickness,M.errorbarthickness,1),_.errorBarThickness=n>x?x:n,_.shadowOpacity=r?i/250:0,_.errorInPercent=i=g(E.errorinpercent,M.errorinpercent),_.cumulativeValueOnErrorBar=g(E.cumulativevalueonerrorbar,M.cumulativevalueonerrorbar,1),n=0;na.negativeErrorValue&&0>N?0:null!=a.negativeErrorValue?a.negativeErrorValue:s,z=k(z,v,N),U=C(U,v,N),null==s&&(s=void 0),a.errorValueArr=[],null===a.positiveErrorValue&&(a.positiveErrorValue=void 0),v=-a.positiveErrorValue,a.errorValueArr.push({errorValue:v,tooltext:B?b:r||G,errorEdgeBar:!0}),a.errorValueArr.push({errorValue:v,tooltext:r||G}),a.notHalfErrorBar&&(v=a.negativeErrorValue,a.errorValueArr.push({errorValue:v,tooltext:B?y:x||G,errorEdgeBar:!0}),a.errorValueArr.push({errorValue:v,tooltext:x||G})),a.toolText=$(a.setTooltext));_.maxValue=z,_.minValue=U},init:function(e){var t=this.chart,r=t.components,o=t.isDual;this.chart=t,this.yAxis=o?r.yAxis[this.yAxis||0]:r.yAxis[0],this.components={},this.graphics={},this.JSONData=e,this.visible=1===g(this.JSONData.visible,!Number(this.JSONData.initiallyhidden),1),this.configure()},show:function(){var e=this.chart,t=this.yAxis,r=this.graphics&&this.graphics.container,o=this.graphics&&this.graphics.dataLabelContainer,a=this.graphics&&this.graphics.errorGroupContainer,i=this.graphics&&this.graphics.errorShadowContainer;e._chartAnimation(),r.lineGroup.show(),r.anchorGroup.show(),r.anchorShadowGroup.show(),r.lineShadowGroup.show(),o.show(),this.visible=!0,a&&a.show(),i&&i.show(),this._conatinerHidden=!1,e._setAxisLimits(),t.draw(),e._drawDataset()},hide:function(){var e=this.chart,t=this.yAxis;e._chartAnimation(),this.visible=!1,e._setAxisLimits(),t.draw(),e._drawDataset()},drawErrorValue:function(){var e,t,r,o,c,d,u,p,g,f,m,b,y,x,C=this.config,k=this.chart,L=k.graphics.datasetGroup,A=k.components,T=A.xAxis[0].getCategoryLen(),D=this.visible,A=A.paper,P=this.yAxis,I=this.components.data,E=k.get(a,i),O=E.animType,M=E.animObj,R=E.dummyObj,E=E.duration,F=C.errorBarThickness,V=C.errorBarWidth,N=C.errorBarColor,k=k.config.showtooltip,C=C.shadowOpacity,B=this.graphics.container.lineGroup,j=this.graphics.errorGroupContainer,H=this.graphics.errorShadowContainer,W=5t;t++)B.graphics.error&&B.graphics.error[t]&&B.graphics.error[t].hide()&&B.graphics.error[t].shadow({opacity:0})}},_rolloverResponseSetter:e.get("component",["dataset","ErrorBar2D"]).prototype._rolloverResponseSetter,_rolloutResponseSetter:e.get("component",["dataset","ErrorBar2D"]).prototype._rolloutResponseSetter,_firePlotEvent:e.get("component",["dataset","ErrorBar2D"]).prototype._firePlotEvent,_checkPointerOverErrorBar:e.get("component",["dataset","ErrorBar2D"]).prototype._checkPointerOverErrorBar,_checkPointerOverPlot:function(e,t,r){var o,a=this.components.data[e],i=a&&a.config;if(a)return(o=this.isWithinShape(a,e,t,r))?(a.errorBarHovered=!1,i.finalTooltext=!1!==i.toolText&&i.toolText+i.toolTipValue):(o=this._checkPointerOverErrorBar(e,t,r))&&(a.errorBarHovered=!0,i.finalTooltext=o.toolText),o},_getHoveredPlot:e.get("component",["dataset","ErrorBar2D"]).prototype._getHoveredPlot,manageSpace:function(){var e,t,r=.5*this.config.errorBarWidth,o=this.chart,a=o.config.dataLabelStyle,i=(this.components||{}).data||[],n=i[0],i=i[i.length-1];e={};var s,l,c,h=o.linkedItems.smartLabel,d={paddingLeft:0,paddingRight:0};return n&&(n=n.config,c=n.showValue,t=n&&n.anchorProps||{},c&&(e=n.displayValue,h.useEllipsesOnOverflow(o.config.useEllipsesWhenOverflow),h.setStyle(a),e=h.getOriSize(e)),n.setValue&&(s=k(g(t.radius,0),r)+g(t.borderThickness,0),l=(e.width||0)/2),d.paddingLeft=k(s,l)),i&&(n=i.config,c=n.showValue,t=n&&n.anchorProps||{},c&&(e=n.displayValue,h.setStyle(a),e=h.getOriSize(e)),n.setValue&&(s=k(g(t.radius,0),r)+g(t.borderThickness,0),l=(e.width||0)/2),d.paddingRight=k(s,l)),d},_removeDataVisuals:function(e){var t,r;if(e){for(t=e.graphics,t.element&&t.element.hide()&&t.element.shadow({opacity:0}),r=0;4>r;r++)e.graphics.error&&e.graphics.error[r]&&e.graphics.error[r].hide()&&e.graphics.error[r].shadow({opacity:0});t.hotElement&&t.hotElement.hide()&&t.hotElement.attr({width:0})}}},r])}]),e.register("module",["private","modules.renderer.js-dataset-errorscatter",function(){var t=this.hcLib,r=t.preDefStr,o=r.colors.AAAAAA,a=r.configStr,i=r.animationObjStr,n=r.errorBarStr,s=r.errorShadowStr,l=r.ROUND,c=r.PERCENTAGESTRING,h=t.BLANKSTRING,d=t.BLANKSTRING,u=t.parseTooltext,p=t.pluck,g=t.getValidValue,f=t.pluckNumber,m=t.COMMASPACE,v="rgba(192,192,192,"+(t.isIE?.002:1e-6)+")",r=t.TOUCH_THRESHOLD_PIXELS,b=t.CLICK_THRESHOLD_PIXELS,y=Math,x=y.round,w=y.min,C=y.max,k=y.abs,S=t.hasTouch?r:b,_=t.getFirstColor,L=t.getFirstAlpha,A=t.graphics.convertColor,T=t.HUNDREDSTRING;e.register("component",["dataset","ErrorScatter",{ErrorValueConfigure:function(){var e,r,a,i,n,s,l,d,v,b,y,k,S,D,P,I,E,O,M,R,F,V,N,B,j,H,W,G,z,U,X,Y,q,K,$,J,Z,Q,ee,te,re,oe,ae,ie=this.chart,ne=ie.components,se=this.config,le=this.JSONData,ce=ie.config.categories,he=ie.jsonData.chart,de=le.data,ue=ne.xAxis[0].getCategoryLen(),ue=de&&de.length||ue,pe=t.parseUnsafeString,ge=this.components.data,fe=ne.numberFormatter,me=p(he.tooltipsepchar,m),ve=pe(he.yaxisname),be=pe(he.xaxisname),ye=se.parentYAxis,xe=-1/0,we=1/0,Ce=1/0,ke=-1/0,Se=function(r,o){var i;return se.showTooltip?null===P?i=!1:void 0!==r?(O=[1,2,3,4,5,6,7,8,9,10,11,99,100,101,102,103,104,105,106,107,109],M={yaxisName:ve,xaxisName:be,yDataValue:P,xDataValue:a.label,formattedValue:a.toolTipValue,horizontalErrorValue:k,horizontalErrorDataValue:void 0,verticalErrorValue:S,verticalErrorDataValue:void 0,horizontalErrorPercent:I,verticalErrorPercent:E,label:a.label,errorValue:o,errorDataValue:o,errorPercentValue:a.errorPercentValue,errorPercentDataValue:a.errorPercentValue},i=u(r,O,M,e,he,le)):null===P?i=!1:(se.seriesNameInTooltip&&(R=t.getFirstValue(le&&le.seriesname)),i=R?R+me:h,i+=D.x?fe.xAxis(D.x)+me:h,i+=a.toolTipValue):i=!1,i};for(se.errorBarShadow=ne=f(he.errorbarshadow,he.showshadow,0),se.ignoreEmptyDatasets=f(le.ignoreemptydatasets,0),se.notHalfErrorBar=!f(he.halferrorbar,1),se.errorBarAlpha=L(p(le.errorbaralpha,he.errorbaralpha)),se.errorBarWidth=n=f(le.errorbarwidth,he.errorbarwidth,5),se.errorBarColor=s=A(_(p(le.errorbarcolor,he.errorbarcolor,o)),void 0),se.errorBarThickness=i=f(le.errorbarthickness,he.errorbarthickness,1),se.shadowOpacity=ne?NaN:0,se.halfHorizontalErrorBar=l=f(he.halfhorizontalerrorbar,1),se.halfVerticalErrorBar=d=f(he.halfverticalerrorbar,1),void 0===se.initAnimation&&(se.initAnimation=ie.initAnimation),ie=p(le.horizontalerrorbaralpha,le.errorbaralpha,he.horizontalerrorbaralpha,void 0),v=f(le.verticalerrorbaralpha,le.errorbaralpha,he.verticalerrorbaralpha,void 0),b=A(p(le.horizontalerrorbarcolor,le.errorbarcolor,he.horizontalerrorbarcolor,s),ie),s=A(p(le.verticalerrorbarcolor,le.errorbarcolor,he.verticalerrorbarcolor,s),v),y=f(le.horizontalerrorbarthickness,le.errorbarthickness,he.horizontalerrorbarthickness,i),i=f(le.verticalerrorbarthickness,le.errorbarthickness,he.verticalerrorbarthickness,i),se.horizontalErrorBarWidth=f(le.horizontalerrorbarwidth,he.horizontalerrorbarwidth,n),se.verticalErrorBarWidth=f(le.verticalerrorbarwidth,he.verticalerrorbarwidth,n),se.cumulativeValueOnErrorBar=f(le.cumulativevalueonerrorbar,he.cumulativevalueonerrorbar,1),n=0;no;o++)X.graphics.error&&X.graphics.error[o]&&(X.graphics.error[o].hide(),X.graphics.error[o].shadow({opacity:0}));if(null===b.hErrorValue&&null===b.hPositiveErrorValue&&null===b.vPositiveErrorValue)for(o=4;8>o;o++)X.graphics.error&&X.graphics.error[o]&&(X.graphics.error[o].hide(),X.graphics.error[o].shadow({opacity:0}));if(!(null===b.hErrorValue&&null===b.vErrorValue&&b.hPositiveErrorValue&&b.hNegativeErrorValue&&b.vPositiveErrorValue&&b.vNegativeErrorValue))for(u=b.setLink,A=X._xPos,g=T=X._yPos,p=A,P=0;Pw?w:p,L=c;Ly?y:_,L=c;L<=D;L+=2*c)K.push({x:w,y:_+L,r:c,index:M,data:X,toolText:e.tooltext,barType:"v"});X.graphics.error[P]?(c=X.graphics.error[P],e={path:r,"stroke-width":V?o:0},c.animateWith(U,z,e,G,E),c.attr({stroke:h,ishot:!H,cursor:u?"pointer":d,"stroke-linecap":l})):(c=X.graphics.error[P]=N.path(r,Y).attr({stroke:h,ishot:!H,"stroke-width":o,cursor:u?"pointer":d,"stroke-linecap":l}),R.initAnimation&&c.attr({opacity:0}).animateWith(U,z,{opacity:1},G,E)),c.show(),c.shadow({opacity:W},q),I.errorTrackerArr[P].attr={path:r,stroke:v,"stroke-width":V?oo;o++)t.error&&t.error[o]&&t.error[o].hide()&&t.error[o].shadow({opacity:0});e.graphics.element&&(n.element=n.element.concat(e.graphics.element)),e.graphics.label&&(n.label=n.label.concat(e.graphics.label))}a.pool=n,l&&this.setMaxMin()}},"Scatter"])}]),e.register("module",["private","modules.renderer.js-dataset-multiaxisline",function(){var t=this.hcLib,r=t.pluckNumber,o=t.preDefStr.line,a=t.pluck,i=t.HUNDREDSTRING;e.register("component",["dataset","multiaxisline",{type:"multiaxisline",pIndex:2,customConfigFn:"_createDatasets",configure:function(){var n=this.chart,s=this.JSONData,l=this.config,c=n.config,h=n.components,d=n.jsonData,u=d.chart,p=d.axis[this.axisIndex],g=n.singleseries,d=e.get("component",["dataset",o]).prototype;d.configure.call(this),this.yAxis=h.yAxis[this.axisIndex],c.axesPadding=5,c.allowAxisShift=r(u.allowaxisshift,1),c.allowSelection=r(u.allowselection,1),c.checkBoxColor=a(u.checkboxcolor,"#2196f3"),c.axisConfigured=!0,l.linethickness=r(s.linethickness,p.linethickness,u.linethickness,g?4:2),l.lineDashLen=r(s.linedashlen,p.linedashlen,u.linedashlen,5),l.lineDashGap=r(s.linedashgap,p.linedashgap,u.linedashgap,4),l.alpha=r(s.alpha,p.linealpha,u.linealpha,i),l.linecolor=a(s.color,p.linecolor,p.color,u.linecolor,l.plotColor),l.legendSymbolColor=this.type===o?l.lineColor:l.plotFillColor,h=r(s.dashed,p.linedashed,u.linedashed),c=t.getDashStyle(l.lineDashLen,l.lineDashGap,l.linethickness),l.anchorBorderColor=a(s.anchorbordercolor,u.anchorbordercolor,l.lineColor,l.plotColor),l.lineDashStyle=h?c:"none",d._setConfigure.call(this),!1!==n.hasLegend&&this._addLegend()},init:function(e){this.chart=this.chart,this.components={},this.conf={},this.graphics={},this.JSONData=e,this.visible=1===r(this.JSONData.visible,!Number(this.JSONData.initiallyhidden),1),this.configure()},legendInteractivity:function(e,t){var r,o=e.chart,a=o.components.dataset,i=this.config,n=e.visible,s=t.config,l=t.graphics,c=i.itemHiddenStyle.color,i=i.itemStyle.color,h=s.fillColor,s=s.strokeColor,d=e.axisIndex,u=!0,o=o.config.axesArr.checkBox;if(n?e.hide():e.show(),n){for(r in a)a.hasOwnProperty(r)&&a[r].visible&&a[r].axisIndex===d&&(u=!1);u&&o[d]&&o[d].checkbox.uncheck()}else o[d]&&o[d].checkbox.check();n?(l.legendItemSymbol&&l.legendItemSymbol.attr({fill:c,stroke:c}),l.legendItemText&&l.legendItemText.attr({fill:c}),l.legendIconLine&&l.legendIconLine.attr({stroke:c})):(l.legendItemSymbol&&l.legendItemSymbol.attr({fill:h,stroke:s}),l.legendItemText&&l.legendItemText.attr({fill:i}),l.legendIconLine&&l.legendIconLine.attr({stroke:h}))}},o])}]),e.register("module",["private","modules.renderer.js-dataset-multilevelpie",function(){var t=this.hcLib,r=t.graphics.convertColor,o=t.plotEventHandler,a=t.preDefStr,i=a.colors,n=i.FFFFFF,s=i.c000000,l=a.configStr,c=a.animationObjStr,h=t.ZEROSTRING,d=t.BLANKSTRING,u=t.BLANKSTRING,p=t.parseTooltext,g=t.pluck,f=t.getValidValue,m=t.pluckNumber,v=t.getFirstValue,b=t.parseUnsafeString,y=t.getDashStyle,x=t.toRaphaelColor,w=t.COMMASPACE,C=t.schedular,a=Math,k=a.sin,S=a.cos,_=a.PI,L=a.round,A=a.min,T=a.max;e.register("component",["dataset","multiLevelPie",{init:function(e){!this.components&&(this.components={data:[]}),this.conf={},this.graphics={},this.JSONData=e,this.configure()},configure:function(){var e,t,o=this,a=o.chart,i=a.config,s=o.conf||(o.conf={}),l=s.dataLabelOptions||(s.dataLabelOptions={}),c=s.piePlotOptions,u=a.config.style,p=o.JSONData,a=a.jsonData.chart;e=s.enableAnimation=m(a.animation,a.defaultanimation,1);var f=m(-a.centerangle,180),b=m(a.totalangle,360);s.animation=!!e&&{duration:1e3*m(a.animationduration,a.moveduration,1)},s.showShadow=m(a.showshadow,0),e=s.useHoverColor=!!m(a.usehovercolor,1),s.hoverFillColor=r(g(a.hoverfillcolor,"FF5904"),m(a.hoverfillalpha,100)),s.pierad=parseInt(a.pieradius,10),t=(t=v(a.valuebordercolor,d))?r(t,m(a.valueborderalpha,a.valuebgalpha,a.valuealpha,100)):d,!l.style&&(l.style={fontFamily:g(a.valuefont,u.fontFamily),fontSize:m(a.valuefontsize,parseInt(u.fontSize,10))+"px",color:r(g(a.valuefontcolor,u.color),m(a.valuefontalpha,a.valuealpha,100)),fontWeight:m(a.valuefontbold)?"bold":"normal",fontStyle:m(a.valuefontitalic)?"italic":"normal",backgroundColor:a.valuebgcolor?r(a.valuebgcolor,m(a.valuebgalpha,a.valuealpha,100)):d,border:t||a.valuebgcolor?m(a.valueborderthickness,1)+"px solid":d,borderPadding:m(a.valueborderpadding,2),borderThickness:m(a.valueborderthickness,u.borderThickness,1),borderRadius:m(a.valueborderradius,u.borderRadius,0),borderColor:t,borderDash:m(a.valueborderdashed,0)?y(m(a.valueborderdashlen,4),m(a.valueborderdashgap,2),m(a.valueborderthickness,1)):"none"}),!c&&(c=s.piePlotOptions={}),c.allowPointSelect=!1,s.borderColor=r(g(a.plotbordercolor,a.piebordercolor,n),a.showplotborder!=h?g(a.plotborderalpha,a.pieborderalpha,100):0),s.showTooltip=m(a.showtooltip,1),s.borderWidth=m(a.pieborderthickness,a.plotborderthickness,1),c.startingAngle=0,c.size="100%",s.showLabels=m(a.showlabels,1),s.showValues=m(a.showvalues,0),s.showValuesInTooltip=m(a.showvaluesintooltip,a.showvalues,0),s.showPercentValues=m(a.showpercentvalues,a.showpercentagevalues,0),s.showPercentInTooltip=m(a.showpercentintooltip,0),s.toolTipSepChar=g(a.tooltipsepchar,a.hovercapsepchar,w),s.labelSepChar=g(a.labelsepchar,s.toolTipSepChar),s.tooltext=a.plottooltext,s.alpha=g(a.plotfillalpha,a.piefillalpha,100),s.startAngle=_/180*(f-b/2),s.endtAngle=_/180*(f+b/2),s.initialAngle=s.endtAngle,s.originX=m(a.originx),s.originY=m(a.originy),e&&(s.events={mouseOver:function(){for(var e=this.data("plotItem").selfRef,t=o.conf;e.graphics.element;)e.graphics.element.attr({fill:t.hoverFillColor}),e=e.linkedItems.parent},mouseOut:function(){for(var e=this.data("plotItem"),t=e.selfRef;t.graphics.element;)t.graphics.element.attr({fill:(t.config||e).color}),t=t.linkedItems.parent}}),i.plotBorderWidth=0,i.plotBorderWidth=0,s.maxLevel=o.addMSPieCat(p,1,o,s.startAngle,s.endtAngle),s.pieRadius=parseInt(a.pieradius,10),l.distance=0,l.placeLabelsInside=!0},removalFn:function(e,t,r){var o,a,i=this.pool||(this.pool={});o=this.chart.get(l,c);var n=o.duration,s=o.dummyObj,h=o.animObj,d=o.animType,u=function(e){(e||this).hide()};!i[r]&&(i[r]=[]),"element"===r?(a=e.attr("ringpath"),o=(a[4]+a[5])/2,t?e.animateWith(s,h,{ringpath:[a[0],a[1],a[2],a[3],o,o]},n,d,u):i[r].push(e)):t?u(e):i[r].push(e)},removeGraphics:function(e,t){var r,o,a,i=e.components&&e.components.data,n=e.graphics;if(i)for(a=i.length,r=0;r(l=i.category.length)&&N(n.components.data.splice(s-1,l))):(s=n.components.data.length)&&N(n.components.data.splice(0,s));return V>B&&N(A.splice(B,V-1)),F},draw:function(e){var r,a,i,n=this,h=n.conf||{},d=n.chart,p=d.getJobList(),g=d.config,f=d.graphics,v=n.components,b=v.data.length,y=g.dataLabelStyle;r=h.showShadow;var w=d.components.paper,_=g.textDirection,L=g.tooltip||{};a=L&&!1!==L.enabled;var T,D,P,I,E,O,M,R,F,b=g.canvasWidth,V=g.canvasHeight,L=m(h.originX,g.canvasLeft+.5*b),g=m(h.originY,g.canvasTop+.5*V),N=f.datasetGroup.trackTooltip(!0),B=d.get(l,c),j=B.duration||0,H=B.dummyObj,W=B.animObj,B=B.animType,G=f.datalabels||(f.datalabels=w.group("datalabels").insertAfter(N)),z=h.events||{},U=function(e){var t=z.mouseOver;o.call(this,d,e,"DataPlotRollOver"),t&&t.call(this)},X=function(e){var t=z.mouseOut;o.call(this,d,e,"DataPlotRollOut"),t&&t.call(this)},Y=function(e){o.call(this,d,e)},f=function(){h._drawn||(h._drawn=!0,G.show(),p.labelDrawID.push(C.addJob(function(){n.drawLabel()},t.priorityList.label)),d._animCallBack())},q=n.pool||(n.pool={}),v=(v=v.removeDataArr)&&v.length;for(T=m(2*h.pieRadius,A(b,V))/(2*h.maxLevel),v&&n.remove(),j&&G.hide(),e||(e=n,G.css(y)),b=e.components.data.length,v=0;vd&&s.splice(d,h-d),this.visible=1===f(c.visible,!Number(c.initiallyhidden),1),u.yMin=u.yMax=u.xMax=u.xMin=0,this._refreshData=!0,c=0;cb&&(x=b),B>v&&(B=v),m){case"middle":V=T-x/2;break;case l:V=b>x?T+b/2-x:T-x/2;break;default:V=b>x?T-.5*b:T-x/2}D.imageX=A-B/2,D.imageY=V,D.imageWidth=B,D.imageHeight=x,P="image",oe||(Z.image&&Z.image[P]&&Z.image[P].length?(oe=I.image=Z.image[P].shift(),oe.toFront()):(oe=I.image=L.image(G),oe.tooltip(D.toolText),oe.hover(U(k,z&&z.enabled),X(k,z&&z.enabled)),oe.drag(q,K,Y))),oe.show().attr({src:g,x:D.imageX,y:V,width:B,height:x}),oe.attr({cursor:J}),oe.tooltip(D.toolText),oe.data("drag-options",{dataObj:k,dataset:this,datasetIndex:this.index,pointIndex:k.config.index,cursor:J,chart:w,link:k.link}),oe.data("groupId",C),oe.data("eventArgs",S),oe.data("hoverAttr",z&&z.rollOverAttrs),oe.data("unHoverAttr",j),re&&(re.transform(d),re.attr({src:g,x:D.imageX,y:V,width:B,height:x}))}D.pointAttr=j,this.drawn&&this.drawLabel(e),_[n]=k,u.attr({cursor:J}),u.tooltip(D.toolText),u.data("drag-options",{dataObj:k,dataset:this,datasetIndex:this.index,pointIndex:k.config.index,cursor:J,chart:w,link:k.link}),u.data("groupId",C),u.data("eventArgs",S),u.data("hoverAttr",z&&z.rollOverAttrs),u.data("unHoverAttr",j)}},drawLabel:function(e){var t,r,o,a,i,n,c,u,g,f,m,v=this.chart,b=this.index,y=v.components.paper,x=this.components.data,w=x.length,C=this.graphics.group,k=v.config.dataLabelStyle,S=v.get("config","animationObj"),_=S.dummyObj,L=S.animObj,A=S.duration,T=this.components.pool||{},D=v.config,S=S.animType,P=this.rolloverResponseSetter,I=this.rolloutResponseSetter,E=this.dragUp,O=this.dragMove,M=this.dragStart,R=v.linkedItems.smartLabel;for(void 0!==e?w=e+1:e=0;e'+e+r+"",disabled:!0},datasetIndex:l.index},!0)},1e3)),x&&x.show(),k&&k.show(),L&&L.show()},_dragMove:function(e,t,r,o,a){var i=this.data("drag-options"),n=i.dataObj,s=n.graphics.element;r=n.graphics.cloneGraphic,o=n.graphics.cloneImage;var l=n.graphics.cloneText,n=n.config,c=n.dragStart,h=c.bBox.x+e,d=c.bBox.x2+e,u=c.bBox.y+t,p=c.bBox.y2+t,g=i.dataset.groupManager.graphics,f=a.config.canvasLeft,m=a.config.canvasRight,v=a.config.canvasTop;a=a.config.canvasBottom,hm&&(e-=d-m),ua&&(t-=p-a),(e||t)&&(g.waitElement&&g.waitElement.hide(),s.data("fire_click_event",0),V.call(s)),n.allowDrag&&(c.draged=!0,c.lastDx=e,c.lastDy=t,a=i._transformObj={transform:"t"+(c.origX+e)+","+(c.origY+t)},r&&r.attr(a),o&&o.attr(a),l&&l.attr({x:n._xPos+e,y:n._yPos+t}))},removeData:function(e,t){var r=this.components,o=this.groupManager,a=r.data,i=r.removeDataArr||(r.removeDataArr=[]);e=e||0,0>e&&(e=0),r.removeDataArr=i.concat(a.splice(e,t||1)),o._clearConnectors()},_dragUp:function(e){var r,o,a,i,n,s=this.data("drag-options"),l=s.dataset,c=l.chart,h=l.components.data,d=s.dataObj,u=d.graphics.element,p=s.dataset.groupManager,g=u.data("fire_click_event"),s=d.config,f=c.config.canvasTop,m=c.config.canvasLeft,v=d.config.dragStart||{},y=l.yAxis,x=d.graphics.cloneText,w=l.groupManager.graphics,C=c.components.xAxis[0],k={},S=d.graphics.cloneGraphic,_=d.graphics.cloneImage,L=function(e){var t;if(e)for(t in e)(n=e[t])&&(a=n.config.datasetIndex,r=n.config.fromPointObj,o=n.config.toPointObj,(i=p.connectorSet[a])&&i&&i.connectors.drawConnector(n,r,o))};if(w.waitElement&&w.waitElement.hide(),V.call(this),u.data("mousedown",0),g&&R.call(u,c,e),v.draged){for(v.origX+=v.lastDx,v.origY+=v.lastDy,d.config._xPos=v.xPos+v.lastDx,d.config._yPos=v.yPos+v.lastDy,k.x=C.getValue(d.config._xPos-m),k.y=y.getValue(d.config._yPos-f),k.update=!0,g=0,m=h.length;gc&&o.splice(c,e-c),r._refreshData=!0,o=0;o"+s.from+"",disabled:!0},toid:{val:s.to,innerHTML:"",disabled:!0},datasetIndex:o.index,index:t.index,arratstart:{val:!!l(s.arrowatstart,1)},arratend:{val:!!l(s.arrowatend,1)},dashed:{val:l(s.dashed)},dashgap:{val:s.dashgap},dashlen:{val:s.dashlen},label:{val:s.label},tooltext:{val:s.tooltext},id:{val:n.id,disabled:!0},strength:{val:s.conStrength},alpha:{val:s.alpha},color:{val:s.color.FCcolor.color}},!0)},1e3)},mousemove:function(){this.data("fire_click_event",0),w.call(this)},mouseup:function(e){var t=this.data("dataset").chart;w.call(this),y.call(this,t,e,"ConnectorClick")},hoverIn:function(e){var t=this.data("dataset").chart;y.call(this,t,e,"ConnectorRollover")},hoverOut:function(e){var t=this.data("dataset").chart;y.call(this,t,e,"ConnectorRollout")},drawConnector:function(e,t,o){if(!e.removed){var s,l,c,h,u=this.chart,p=u.components.paper,g=u.components.numberFormatter,f=e.graphics,m=u.get("config","animationObj"),u=this.graphics.connectorGroup,v=m.animObj,b=m.dummyObj,y=m.animType,m=m.duration,x=e.config;l=x.toolText;var w,C,k=x.eventArgs||(x.eventArgs={}),S=this.config,_=this.components.pool||{};x.fromPointObj=t,x.toPointObj=o,w=t.config,C=o.config,x.fromX=s=w._xPos,x.fromY=c=w._yPos,x.toX=l=C._xPos,x.toY=h=C._yPos,x._labelX=(s+l)/2,x._labelY=(c+h)/2,x.strokeWidth=s=x.conStrength*x.stdThickness,c=x.color,x.textBgColor=c&&c.FCcolor&&c.FCcolor.color,k.label=x.label,k.arrowAtStart=x.arrowAtStart,k.arrowAtEnd=x.arrowAtEnd,k.link=x.link,k.id=x.id,k.fromNodeId=w.id,k.toNodeId=C.id,l=x.toolText=i(x.toolText,[3,83,84,85,86,87,88,89,90,91,92],{label:x.label,fromXValue:g.dataLabels(t.config.x),fromYValue:g.dataLabels(t.config.y),fromXDataValue:t.config.x,fromYDataValue:t.config.y,fromLabel:n(t.config.displayValue,t.config.id),toXValue:g.dataLabels(o.config.x),toYValue:g.dataLabels(o.config.y),toXDataValue:o.config.x,toYDataValue:o.config.y,toLabel:n(o.config.displayValue,o.config.id)}),w=t.config,C=o.config,t=w.startConnectors,o=C.endConnectors,g=e.config.id+"-"+w.id+"-"+C.id,t[g]=e,o[g]=e,t=this._getlinePath(e),o=f.graphic,f.graphic||(_.graphic&&_.graphic.path&&_.graphic.path.length?o=f.graphic=_.graphic.path.shift():(o=f.graphic=p.path(u).mousedown(this.mouseDown).mousemove(this.mousemove).mouseup(this.mouseup).hover(this.hoverIn,this.hoverOut),o.attr({path:t}))),o.show().animateWith(b,v,{path:t},m,y),o.attr({"stroke-width":s,ishot:!0,"stroke-dasharray":x.dashStyle,cursor:x.link?"pointer":a,stroke:d(c)}).data("eventArgs",k).data("viewMode",S.viewMode).data(r,x).data("dataset",this).tooltip(l),this.drawn&&this.drawLabel(e)}},drawLabel:function(e){var t,o,i,s,l,c,h,d,u,p,g=this,f=g.config,m=g.chart,v=m.components.paper,b=m.get("config","animationObj"),y=g.graphics.connectorGroup,x=b.animObj,w=b.dummyObj,C=b.animType,k=b.duration,S=m.config.dataLabelStyle,m=g.components.data,_=g.components.pool||{},b=m.length,L=function(e){t=e.config,i=t.toolText,c=e.graphics,o=t.label,d=t._labelX,u=t._labelY,p=t.textBgColor,o?(l=c.text=c.text||_.element&&_.element.text&&_.element.text.shift(),s={text:o,fill:S.color,ishot:!0,direction:a,cursor:t.link?"pointer":a,"text-bound":[n(S.backgroundColor,p),n(S.borderColor,p),1,"2"]},c.text?(l.show().animateWith(w,x,{x:d,y:u},k,C),l.attr(s)):(s.x=d,s.y=u,c.text=l=v.text(s,y).mousedown(g.mouseDown).mousemove(g.mousemove).mouseup(g.mouseup).hover(g.hoverIn,g.hoverOut)),l.data("eventArgs",t.eventArgs).data("viewMode",f.viewMode).data(r,t).data("dataset",g).tooltip(i)):c.text&&c.text.hide()};if(e)L(e);else for(h=0;hn&&(n=2*p.PI+n),o>t?(r>=e&&n>p.PI||rp.PI)&&(n-=p.PI):(r>=e&&nm(i)&&(a=t+(i=te&&(e=0),r.removeDataArr=o.splice(e,t)}},"Dragnode"])}]),e.register("module",["private","modules.renderer.js-dataset-dragablelabels",function(){var t=this.hcLib,r=t.preDefStr,o=r.configStr,a=r.animationObjStr,i=r.visibleStr,n=t.BLANKSTRING,s=t.pluck,l=t.pluckNumber,c=t.parseUnsafeString,h=t.extend2,d=t.getDashStyle,u=t.regex.dropHash,p=t.HASHSTRING,g=t.hashify,f=t.schedular,m="rgba(192,192,192,"+(t.isIE?.002:1e-6)+")",v=t.setLineHeight,b=t.getMouseCoordinate,y=t.plotEventHandler;e.register("component",["dataset","DragableLabels",{configure:function(){var e,t=(this.JSONData||[]).length,r=this.components.data;for(this.config.viewMode=l(this.chart.jsonData.chart.viewmode,0),r||(r=this.components.data=[]),e=r.length,e>t&&r.splice(t,e-t),e=0;ei&&(p-=f-i),mn&&(t-=v-n),d.draged=!0,this.attr({x:u.x+p,y:u.y+t}),i=s.ox+p,n=s.oy+t,h.attr({x:s.ox+p,y:s.oy+t}),l.config.x=x.getValue(i-a),l.config.y=b.getValue(n-o),this.data("fire_dragend")||(y.call(this,r,e,"LabelDragStart"),this.data("fire_dragend",1)),this.data("fire_click_event")&&(this.data("fire_click_event",0),c.clearLongPress.call(this))},_labelDragUp:function(e){var r=this.data("drag-options"),o=r.dataset,a=o.chart,i=o.groupManager,n=o.components.data[r.index].dragStart,r=this.data("eventArgs"),o=o.yAxis;r.x=a.components.xAxis[0].getValue(this.attr("x")),r.y=o.getValue(this.attr("y")),n.draged=!1,this.data("fire_dragend")&&(o=b(a.linkedItems.container,e),o.sourceEvent="labeldragend",t.raiseEvent("chartupdated",h(o,r),a.chartInstance),y.call(this,a,e,"labeldragend")),i.clearLongPress.call(this)}},"Dragnode"])}]),e.register("module",["private","modules.renderer.js-dataset-dragcolumn",function(){var t=this,r=t.hcLib,o=r.pluck,a=r.pluckNumber,i=r.parseUnsafeString,n=r.getValidValue,s=r.toRaphaelColor,l=r.hasSVG,c=Math,h=c.round,d=c.abs,u=r.plotEventHandler;e.register("component",["dataset","DragColumn",{configure:function(){var e,t,r,o=this.chart.jsonData.chart;r=this.JSONData;var i,n,s=this.JSONData.data||[];for(this.__base__.configure.call(this),e=this.config,t=this.components.data,e.allowDrag=a(r.allowdrag,1),e.allowNegDrag=a(r.allownegativedrag,1),e.allowAxisChange=a(o.allowaxischange,1),e.snapToDivOnly=a(o.snaptodivonly,0),e.snapToDiv=e.snapToDivOnly?1:a(o.snaptodiv,1),e.doNotSnap=a(o.donotsnap,0),e.snapToDivRelaxation=a(o.snaptodivrelaxation,10),e.doNotSnap&&(e.snapToDiv=e.snapToDivOnly=0),i=t.length,o=0;o=x?O+M:O,L)switch(p=n(i(o(_.origToolText,p.plottooltext,g.plottooltext))),e){case"mouseover":m.mouseIn=!0,A&&T.setStyle(w),c<=W-v&&c>=H+v&&(T.setPosition(D),T.draw(A,w)),!_._rollOverResponseSetterFire&&c<=W&&c>=H&&(this._rolloverResponseSetter(f,L,D),_._rollOverResponseSetterFire=!0);break;case"mouseout":m.mouseIn=!1,C.cursor="default",_._rollOverResponseSetterFire&&this._rolloutResponseSetter(f,L,D),_._rollOverResponseSetterFire=!1,T.hide();break;case"click":u.call(L,f,D);break;case"touchmove":case"mousemove":_.dragStart?(I.preventDefault?I.preventDefault():I.returnValue=!1,_._rollOverResponseSetterFire=!1,C.cursor=P,_._pointerDy++,c+=_._dragBuffer,cj&&(c=j),O=x=x?O+M:O)-F)),C=k.dataLabels(C),_.toolTipValue=C,_.displayValue=o(_.setDisplayValue,C),b&&!y&&(_.colorArr[0].FCcolor.angle=O=x?O+M:O,B&&c>=E-v&&c<=E+v?(C.cursor=P,T.hide()):(C.cursor="default",_._rollOverResponseSetterFire&&(T.setPosition(D),T.draw(A,w))),!_._rollOverResponseSetterFire&&c<=W&&c>=H?(this._rolloverResponseSetter(f,L,D),_._rollOverResponseSetterFire=!0):!_._rollOverResponseSetterFire||c<=W&&c>=H||(T.hide(),_._rollOverResponseSetterFire=!1,this._rolloutResponseSetter(f,L,D)));break;case"touchend":case"mouseup":m.mousedown=!1,_.dragStart&&(this.setMaxMin(),f._setDataLimits(),S={dataIndex:a,datasetIndex:S.datasetIndex,startValue:S.startValue,endValue:_.setValue,datasetName:S.name},a=[f.chartInstance.id,S.dataIndex,S.datasetIndex,S.datasetName,S.startValue,S.endValue],_._pointerDy&&(t.raiseEvent("dataplotDragEnd",S,f.chartInstance),r.raiseEvent("chartupdated",S,f.chartInstance,a)),b&&!y&&(b=O>=x?90:270,(V=L.data("setRolloverAttr"))&&V.fill&&(f=V.fill,f=f.split("-"),f[0]=b,V.fill=f.join("-")),(N=L.data("setRolloutAttr"))&&N.fill&&(f=N.fill,f=f.split("-"),f[0]=b,N.fill=f.join("-")))),_._dragBuffer=0,_._pointerDy=0,_.dragStart=!1,_.dragStart=!1,_.finalTooltext=!1!==_.toolText?_.toolText+(p?"":_.toolTipValue):"",c>=E-v&&c<=E+v||(C.cursor="default");break;case"touchstart":case"mousedown":m.mouseIn&&(m.mousedown=!0,E=O>=x?O+M:O,B&&c>=E-v&&c<=E+v?(_.dragStart=!0,_._pointerDy=0,_._dragStartY=c,_._dragBuffer=E-c,S.startValue=_.setValue,S.name=m.seriesname,S.datasetIndex=this.positionIndex,S.dragged=!0):_.dragStart=!1)}},_rolloverResponseSetter:function(e,t,r){var o=t.getData();0!==o.showHoverEffect&&!0!==o.draged&&(t.attr(t.getData().setRolloverAttr),u.call(t,e,r,"DataPlotRollOver"))},_rolloutResponseSetter:function(e,t,r){var o=t.getData();0!==o.showHoverEffect&&!0!==o.draged&&(t.attr(t.getData().setRolloutAttr),u.call(t,e,r,"DataPlotRollOut"))},getJSONData:function(){var e,t,r,o,a,i=this.JSONData.data,n=this.components.data,s=[],l={};for(a=0,o=i.length;aH&&(v=H),S._yPos=v,w=N.setValue=u(U.getValue(d-X)),w=C.dataLabels(w),N.toolTipValue=w,N.displayValue=w,this.drawLabel(s,s+1),S.graphics.element=O,o&&G?z=O:(K&&(E=O.data("setRolloverAttr"))&&(E.polypath[2]=S._yPos),K&&(I=O.data("setRolloutAttr"))&&(I.polypath[2]=S._yPos),O&&O.attr(I||{polypath:[W.symbol[1]||2,p,S._yPos,W.radius,q,0]})),z&&L.prototype.updateImage.call(this,S),k=k.data,this.getLinePath(k,{}),$)for(L=0;L<_;L++)(E=k[L].graphics&&k[L].graphics.connector)&&(w=k[L],I=w.config.connStartIndex,w=w.config.connEndIndex,I=this.getLinePath(k,{},{begin:I,end:w+1}),E.attr({path:I.getPathArr()}));b&&(I=N.pathStartIndex,w=N.pathEndIndex,I=this.getLinePath(k,{},{begin:I,end:w}),b.attr({path:I.getPathArr()})),1==N._pointerDy&&(V={dataIndex:s,datasetIndex:T,startValue:S.startValue,endValue:N.setValue,datasetName:S.name},t.raiseEvent("dataplotDragStart",V,m.chartInstance))}!N.dragStart&&F&&v>=d-D&&v<=d+D&&P<=p+D&&P>=p-D?(x.setPosition(c),x.draw(F,y)):x.hide();break;case"click":O&&f.call(O,m,c,"dataplotclick",V);break;case"touchend":case"mouseup":A.mousedown=!1,N.dragStart&&(this.setMaxMin(),m._setDataLimits(),V={dataIndex:s,datasetIndex:T,startValue:S.startValue,endValue:N.setValue,datasetName:S.name},s=[m.chartInstance.id,V.dataIndex,V.datasetIndex,V.datasetName,V.startValue,V.endValue],N._pointerDy&&(M&&this._hoverPlotAnchor(S,"DataPlotRollOut"),t.raiseEvent("dataplotDragEnd",V,m.chartInstance),r.raiseEvent("chartupdated",V,m.chartInstance,s))),F=N.finalTooltext=!1!==N.toolText?N.toolText+(R?"":N.toolTipValue):"",v>=d-D&&v<=d+D&&P<=p+D&&P>=p-D||(w.cursor="default"),A.mouseIn&&!N.dragStart&&(x.setPosition(c),x.draw(F,y)),N._dragBuffer=0,N._pointerDy=0,N.dragStart=!1;break;case"touchstart":case"mousedown":A.mouseIn&&(A.mousedown=!0,j&&v>=d-D&&v<=d+D&&P<=p+D&&P>=p-D?(N.dragStart=!0,N._pointerDy=0,N._dragStartY=v,N._dragBuffer=d-v,S.dragged=!0,S.startValue=N.setValue,S.name=A.seriesname,S.datasetIndex=this.positionIndex):N.dragStart=!1)}},getJSONData:function(){var e,t,r,o,a,i=this.JSONData.data,n=this.components.data,s=[],l={};for(a=0,o=i.length;ax-k&&T.errorValue.push({errorValue:x-k,errorStartValue:k,errorBarColor:r,errorBarThickness:K,opacity:1});break;default:T.y=m,T.previousY=b,T.link=M(L.link)}T.setValue=T.y,null!==v&&(!ne&&0!==ne&&(ne=v),!se&&0!==se&&(se=v),ne=N(ne,v),se=V(se,v)),null!==C&&(!ne&&0!==ne&&(ne=C),!se&&0!==se&&(se=C),ne=N(ne,C),se=V(se,C)),null!==w&&(le=N(le,w),ce=V(ce,w)),v=this._parseToolText(d),T.toolText=v,T.toolTipValue=n,w=w||d+1,T.x=w,T.displayValue=p(M(L.displayvalue,L.valuetext,n)),T.high=N(m,b,y,x),T.low=V(m,b,y,x),T.shadow=h}D.yMax=ne,D.yMin=se,D.xMax=le,D.xMin=ce}},_parseToolText:function(e){var t=this.config,r=this.chart,a=r.jsonData.chart,i=t.plotType===o?1:0,l=this.JSONData.data[e],c=this.components.data[e].config,r=r.components.xAxis[0].getLabel(c.x).label;e=c.open;var h=c.close,d=this.yAxis,u=c.high,g=c.low,c=c.volume,f=void 0!==c?l.volumetooltext:void 0;return t.showTooltip?(t=s(p(M(f,l.tooltext,t.volumeToolText,t.toolText))),void 0!==t?t=T(t,[3,5,6,10,54,55,56,57,58,59,60,61,81,82],{label:r,yaxisName:p(a.yaxisname),xaxisName:p(a.xaxisname),openValue:l.open,openDataValue:d.dataLabels(e),closeValue:l.close,closeDataValue:d.dataLabels(h),highValue:l.high,highDataValue:d.dataLabels(u),lowValue:l.low,lowDataValue:d.dataLabels(g),volumeValue:l.volume,volumeDataValue:d.dataLabels(c)},l,a):(t=null===e||i?n:"Open: "+d.dataLabels(e)+"
",t+=null!==h?"Close: "+d.dataLabels(h)+"
":n,t+=null===u||i?n:"High: "+d.dataLabels(u)+"
",t+=null===g||i?n:"Low: "+d.dataLabels(g)+"
",t+=null!==c?"Volume: "+d.dataLabels(c):n)):t=n,t},init:function(e,t){var r=this.chart;this.yAxis=t===a?r.components.yAxis[1]:r.components.yAxis[0],this.components={},this.graphics={},this.JSONData=e,this.visible=1,this.plotType=t,this.configure()},_configureVolume:function(){var e,r,o,a,i,h,d,u=this.config,m=this.chart,v=this.JSONData,b=v.data||[],y=m.jsonData.chart,x=b.length,w=m.components.colorManager,C=u.bearBorderColor=c(M(y.bearbordercolor,E)),k=u.bearFillColor=c(M(y.bearfillcolor,E)),w=u.bullBorderColor=c(M(y.bullbordercolor,w.getColor("canvasBorderColor"))),S=u.bullFillColor=c(M(y.bullfillcolor,O)),_=R(y.showvplotborder,1)?R(y.vplotborderthickness,1):0,L=u.plotLineDashLen=R(y.plotlinedashlen,5),A=u.plotLineDashGap=R(y.plotlinedashgap,4),T=this.yAxis,D=-1/0,I=1/0,F=-1/0,j=1/0;for(i=m.components.vNumberFormatter,u.plotType=g,u.parentYAxis=1,u.volumeToolText=s(p(M(v.volumetooltext,y.volumetooltext,y.plottooltext))),u.name=s(v.seriesname),u.showTooltip=M(y.showtooltip,1),u.enableAnimation=v=R(y.animation,y.defaultanimation,1),u.animation=!!v&&{duration:1e3*R(y.animationduration,1)},v=M(y.maxcolwidth),u.maxColWidth=B(R(v,50))||1,v=N(R(y.plotspacepercent,20)%100,0),u.plotSpacePercent=u.groupPadding=v/200,u.plotBorderThickness=_,v=this.components.data=this.components.data||(this.components.data=[]),y=P(P({},y),{forcedecimals:l(y.forcevdecimals,y.forcedecimals),forceyaxisvaluedecimals:l(y.forcevyaxisvaluedecimals,y.forceyaxisvaluedecimals),yaxisvaluedecimals:l(y.vyaxisvaluedecimals,y.yaxisvaluedecimals),formatnumber:l(y.vformatnumber,y.formatnumber),formatnumberscale:l(y.vformatnumberscale,y.formatnumberscale),defaultnumberscale:l(y.vdefaultnumberscale,y.defaultnumberscale),numberscaleunit:l(y.vnumberscaleunit,y.numberscaleunit),vnumberscalevalue:l(y.vnumberscalevalue,y.numberscalevalue),scalerecursively:l(y.vscalerecursively,y.scalerecursively),maxscalerecursion:l(y.vmaxscalerecursion,y.maxscalerecursion),scaleseparator:l(y.vscaleseparator,y.scaleseparator),numberprefix:l(y.vnumberprefix,y.numberprefix),numbersuffix:l(y.vnumbersuffix,y.numbersuffix),decimals:l(y.vdecimals,y.decimals)}),i?i.configure(y):i=m.components.vNumberFormatter=new t.NumberFormatter(m,y),T.setNumberFormatter(i),m=0;m=r&&t.x<=o&&a.push(t);return a},_checkPointerOverErrorBar:function(e,t,r){var o,a,i,n,s,l,c,h=this.components.data,d=h[e];if(d&&(d=d.errorBar))for(i=d&&d.length;i--;)for(n=(a=d[i])&&a.length;n--;)if(a[n]&&a[n]._xPos&&(o=a[n]._xPos,s=a[n]._yPos,l=a[n]._height,c=a[n]._width,o=t>=o&&t<=o+c&&r>=s&&r<=s+l))return{pointIndex:e,hovered:o,pointObj:h[e]}},_checkPointerOverColumn:function(e,t,r){var o=this.chart.config,a=o.plotborderthickness,i=o.showplotborder,n=this.components.data,s=n[e],l=o.viewPortConfig,c=l.x,h=l.scaleX,l=o.dragTolerance||0;if(s&&(o=s.config.setValue,a=i?a:0,i=a/2,i=0==i%2?i+1:Math.round(i),null!==o&&(t=t-(s._xPos-c*h)+i,r=r-s._yPos+i+(0c,s=A._xPos,l=A._yPos,v=A._width,R=A._height,l+=R,s+=v/2,o=A.graphics.error,(a=o.length)>P)for(f=P;fD&&!g&&(s=m,m=360-m),N.colorArr=t.graphics.getColumnColor(Qe+","+y,v,b,m,g,w,x.toString(),0,!1),N.label=H=S(rt(k(Xe[pe].tooltext,Xe[pe].label))),0!==f&&(W=k(A.upperboxhovercolor,ze.upperboxhovercolor,$e.upperboxhovercolor,Le),G=k(A.upperboxhoveralpha,ze.upperboxhoveralpha,$e.upperboxhoveralpha,Ae),z=k(A.upperboxborderhovercolor,ze.upperboxborderhovercolor,$e.upperboxborderhovercolor,A.upperboxbordercolor,ze.upperboxbordercolor,$e.upperboxbordercolor,$e.plotbordercolor,Je.getColor("plotBorderColor")),U=k(A.upperboxborderhoveralpha,ze.upperboxborderhoveralpha,$e.upperboxborderhoveralpha,A.upperboxborderalpha,ze.upperboxborderalpha,$e.upperboxborderalpha,$e.plotborderalpha,100),X=g?0:k(A.upperboxborderhoverthickness,ze.upperboxborderhoverthickness,$e.upperboxborderhoverthickness,N.upperBoxBorder.borderWidth),Y=k(A.lowerboxhovercolor,ze.lowerboxhovercolor,$e.lowerboxhovercolor,Te),q=k(A.lowerboxhoveralpha,ze.lowerboxhoveralpha,$e.lowerboxhoveralpha,De),K=k(A.lowerboxborderhovercolor,ze.lowerboxborderhovercolor,$e.lowerboxborderhovercolor,A.lowerboxbordercolor,ze.lowerboxbordercolor,$e.lowerboxbordercolor,$e.plotbordercolor,Je.getColor("plotBorderColor")),$=k(A.lowerboxborderhoveralpha,ze.lowerboxborderhoveralpha,$e.lowerboxborderhoveralpha,A.lowerboxborderalpha,ze.lowerboxborderalpha,$e.lowerboxborderalpha,$e.plotborderalpha,100),J=g?0:k(A.lowerboxborderhoverthickness,ze.lowerboxborderhoverthickness,$e.lowerboxborderhoverthickness,N.lowerBoxBorder.borderWidth),Z=k(A.upperquartilehovercolor,ze.upperquartilehovercolor,$e.upperquartilehovercolor,A.upperquartilecolor,ze.upperquartilecolor,$e.upperquartilecolor,$e.plotbordercolor,Je.getColor("plotBorderColor")),Q=k(A.upperquartilehoveralpha,ze.upperquartilehoveralpha,$e.upperquartilehoveralpha,A.upperquartilealpha,ze.upperquartilealpha,$e.upperquartilealpha,$e.plotborderalpha,100),ee=k(A.upperquartilehoverthickness,ze.upperquartilehoverthickness,$e.upperquartilehoverthickness,N.upperQuartile.borderWidth),te=k(A.lowerquartilehovercolor,ze.lowerquartilehovercolor,$e.lowerquartilehovercolor,A.lowerquartilecolor,ze.lowerquartilecolor,$e.lowerquartilecolor,$e.plotbordercolor,Je.getColor("plotBorderColor")),re=k(A.lowerquartilehoveralpha,ze.lowerquartilehoveralpha,$e.lowerquartilehoveralpha,A.lowerquartilealpha,ze.lowerquartilealpha,$e.lowerquartilealpha,$e.plotborderalpha,100),oe=k(A.lowerquartilehoverthickness,ze.lowerquartilehoverthickness,$e.lowerquartilehoverthickness,N.lowerQuartile.borderWidth),ae=k(A.medianhovercolor,ze.medianhovercolor,$e.medianhovercolor,A.mediancolor,ze.mediancolor,$e.mediancolor,$e.plotbordercolor,Je.getColor("plotBorderColor")),ie=k(A.medianhoveralpha,ze.medianhoveralpha,$e.medianhoveralpha,A.medianalpha,ze.medianalpha,$e.medianalpha,$e.plotborderalpha,100),ne=k(A.medianhoverthickness,ze.medianhoverthickness,$e.medianhoverthickness,N.median.borderWidth),1==f&&(Le===W&&(W=F(W,70)),Te===Y&&(Y=F(Y,70))),N.upperBoxHoverColorArr=t.graphics.getColumnColor(W,G,void 0,void 0,g,w,x.toString(),0,!1),N.lowerBoxHoverColorArr=t.graphics.getColumnColor(Y,q,void 0,void 0,g,w,x.toString(),0,!1),N.setUpperBoxRolloutAttr={fill:T(N.upperColorArr[0])},N.setUpperBoxRolloverAttr={fill:T(N.upperBoxHoverColorArr[0])},N.setLowerBoxRolloutAttr={fill:T(N.lowerColorArr[0])},N.setLowerBoxRolloverAttr={fill:T(N.lowerBoxHoverColorArr[0])},N.setUpperBoxBorderRolloverAttr={stroke:V(z,U),"stroke-width":X},N.setUpperBoxBorderRolloutAttr={stroke:N.upperBoxBorder.color,"stroke-width":N.upperBoxBorder.borderWidth},N.setLowerBoxBorderRolloverAttr={stroke:V(K,$),"stroke-width":J},N.setLowerBoxBorderRolloutAttr={stroke:N.lowerBoxBorder.color,"stroke-width":N.lowerBoxBorder.borderWidth},N.setUpperQuartileRolloverAttr={stroke:V(Z,Q),"stroke-width":ee},N.setUpperQuartileRolloutAttr={stroke:N.upperQuartile.color,"stroke-width":N.upperQuartile.borderWidth},N.setLowerQuartileRolloverAttr={stroke:V(te,re),"stroke-width":oe},N.setLowerQuartileRolloutAttr={stroke:N.lowerQuartile.color,"stroke-width":N.lowerQuartile.borderWidth},N.setMedianRolloverAttr={stroke:V(ae,ie),"stroke-width":ne},N.setMedianRolloutAttr={stroke:N.median.color,"stroke-width":N.median.borderWidth}),o=N.toolTipValue,i=S(rt(k(A.tooltext,ze.plottooltext,$e.plottooltext))),r?null===o?l=!1:void 0!==i?(n=[1,2,3,4,5,6,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80],a={maxValue:xe,maxDataValue:ct.dataLabels(xe),minValue:ye,minDataValue:ct.dataLabels(ye),Q1:ct.dataLabels(me),unformattedQ1:me,Q3:ct.dataLabels(ve),unformattedQ3:ve,median:ct.dataLabels(we),unformattedMedian:we,SD:ct.dataLabels(Se),unformattedsd:Se,QD:ct.dataLabels(_e),unformattedQD:_e,MD:ct.dataLabels(ke),unformattedMD:ke,mean:ct.dataLabels(Ce),unformattedMean:Ce,label:H,yaxisName:ot,xaxisName:at,formattedValue:o,value:H},l=nt(i,n,a,A,$e,ze)):l="Maximum"+it+""+ct.dataLabels(xe)+"
Q3"+it+""+ct.dataLabels(ve)+"
Median"+it+""+ct.dataLabels(we)+"
Q1"+it+""+ct.dataLabels(me)+"
Minimum"+it+""+ct.dataLabels(ye):l=!1,N.toolText=l,N.setTooltext=l,s&&(m=s)}for(Ge.maxNumberOfOutliers=pt,Ge.maxValue=ht,Ge.minValue=dt,Ee||(Oe=ht-dt,Ge.maxValue+=Ge.outliersupperrangeratio*Oe,Ge.minValue-=Ge.outlierslowerrangeratio*Oe),!1!==We.hasLegend&&this._addLegend(),this.subDS=0,this.components.mean=this._createSubDS(0,"Mean"),Ge.showMeanLegend&&this._addLegendSubDS(this.components.mean),Ge.showMeanLegend&&(this.subDS+=1),this.components.sd=this._createSubDS(1,"SD"),Ge.showSDLegend&&this._addLegendSubDS(this.components.sd),Ge.showSDLegend&&(this.subDS+=1),this.components.md=this._createSubDS(2,"MD"),Ge.showMDLegend&&this._addLegendSubDS(this.components.md),Ge.showMDLegend&&(this.subDS+=1),this.components.qd=this._createSubDS(3,"QD"),Ge.showQDLegend&&this._addLegendSubDS(this.components.qd),Ge.showQDLegend&&(this.subDS+=1),!this.components.outliers&&(this.components.outliers=[]),je=this.config.maxNumberOfOutliers||this.components.outliers.length,pe=0;peMean"+D+"",f.toolText=r,f.setTooltext=r,v?v.graphics||(s[y].graphics={}):s[y]={graphics:{}},f.hoverEffects={enabled:!1};h.maxValue=A,h.minValue=T},configureSD:function(e){var r,a,i,n,s=e.chart,l=s.components,c=t.parseUnsafeString,h=e.config,d=e.JSONData,g=s.jsonData.chart,f=l.colorManager,m=e.index||e.stackIndex,v=e.type,y=!s.singleseries||S(g.palettecolors)?f.getPlotColor(m):f.getColor(b).split(/\s*\,\s*/)[0],m=d.data,w=s.config.categories,w=E(w&&w.length,m&&m.length),C=l.numberFormatter,L=s.use3dlineshift,A=-1/0,T=1/0,D=k(g.tooltipsepchar,": "),P=_(d.dashed,g.linedashed);for(n=s.isStacked,r=s.hasLineSet,l=l.xAxis[0],e.visible=1===_(e.JSONData.visible,!Number(e.JSONData.initiallyhidden),1),h.use3dlineshift=void 0!==L?_(g.use3dlineshift,L):1,h.plotColor=y,h.legendSymbolColor=h.plotColor,s=_(s.defaultPlotShadow,f.getColor("showShadow")),h.drawFullAreaBorder=_(g.drawfullareaborder,1),h.parentYAxis=i=r?1:k(d.parentyaxis&&d.parentyaxis.toLowerCase(),u)===p?1:0,h.connectNullData=_(g.connectnulldata,0),h.enableAnimation=f=_(g.animation,g.defaultanimation,1),h.animation=!!f&&{duration:1e3*_(g.animationduration,1)},h.transposeanimation=_(g.transposeanimation,f),h.transposeanimduration=1e3*_(g.transposeanimduration,.2),h.showValues=0,h.valuePadding=_(g.valuepadding,2),h.valuePosition=k(d.valueposition,g.valueposition,"auto"),h.stack100Percent=f=_(g.stack100percent,0),h.showPercentValues=_(g.showpercentvalues,n&&f?1:0),h.showPercentInToolTip=_(g.showpercentintooltip,n&&f?1:0),h.showTooltip=_(g.showtooltip,1),h.seriesNameInTooltip=_(g.seriesnameintooltip,1),h.showHoverEffect=_(g.plothovereffect,g.anchorhovereffect,g.showhovereffect,void 0),h.rotateValues=_(g.rotatevalues)?270:0,h.linethickness=_(d.linethickness,g.linethickness,1),h.lineDashLen=_(d.linedashlen,g.linedashlen,5),h.lineDashGap=_(d.linedashgap,g.linedashgap,4),h.drawLine=h.alpha=_(g.drawsdconnector,d.drawsdconnector,0)&&100,n=t.getDashStyle(h.lineDashLen,h.lineDashGap,h.linethickness),h.lineDashStyle=P?n:"none",h.shadow={opacity:_(g.showshadow,s)?v===x?h.alpha/100:h.plotBorderAlpha/100:0},h.drawAnchors=_(d.drawanchors,d.showanchors,g.drawanchors,g.showanchors),h.anchorBgColor=k(d.sdiconcolor,g.sdiconcolor,o),h.anchorBorderColor=o,h.anchorRadius=_(d.sdiconradius,g.sdiconradius,5),h.anchorAlpha=k(d.alpha,d.sdiconalpha,g.sdiconalpha),h.anchorBgAlpha=k(d.sdiconalpha,g.sdiconalpha,100),h.anchorBorderThickness=k(d.anchorborderthickness,g.anchorborderthickness,1),h.anchorSides=k(d.sdiconsides,g.sdiconsides,3),h.linecolor=h.anchorBgColor,h.minimizeTendency=_(g.minimizetendency,g.minimisetendency,0),h.anchorImageUrl=k(d.anchorimageurl,g.anchorimageurl),h.anchorImageAlpha=_(d.anchorimagealpha,g.anchorimagealpha,100),h.anchorImageScale=_(d.anchorimagescale,g.anchorimagescale,100),h.anchorImagePadding=_(d.anchorimagepadding,g.anchorimagepadding,1),h.anchorStartAngle=_(d.anchorstartangle,g.anchorstartangle,90),h.anchorShadow=_(d.anchorshadow,g.anchorshadow,0),!e.components.data&&(e.components.data=[]),s=e.components.data,y=0;ySD"+D+""),f.toolText=r,f.setTooltext=r,v?v.graphics||(s[y].graphics={}):s[y]={graphics:{}},f.hoverEffects={enabled:!1};h.maxValue=A,h.minValue=T},configureMD:function(e){var r,a,i,n,s=e.chart,l=s.components,c=t.parseUnsafeString,h=e.config,d=e.JSONData,g=s.jsonData.chart,f=l.colorManager,m=e.index||e.stackIndex,v=e.type,y=!s.singleseries||S(g.palettecolors)?f.getPlotColor(m):f.getColor(b).split(/\s*\,\s*/)[0],m=d.data,w=s.config.categories,w=E(w&&w.length,m&&m.length),C=l.numberFormatter,L=s.use3dlineshift,A=-1/0,T=1/0,D=k(g.tooltipsepchar,": "),P=_(d.dashed,g.linedashed);for(n=s.isStacked,r=s.hasLineSet,l=l.xAxis[0],e.visible=1===_(e.JSONData.visible,!Number(e.JSONData.initiallyhidden),1),h.use3dlineshift=void 0!==L?_(g.use3dlineshift,L):1,h.plotColor=y,h.legendSymbolColor=h.plotColor,s=_(s.defaultPlotShadow,f.getColor("showShadow")),h.drawFullAreaBorder=_(g.drawfullareaborder,1),h.parentYAxis=i=r?1:k(d.parentyaxis&&d.parentyaxis.toLowerCase(),u)===p?1:0,h.connectNullData=_(g.connectnulldata,0),h.enableAnimation=f=_(g.animation,g.defaultanimation,1),h.animation=!!f&&{duration:1e3*_(g.animationduration,1)},h.transposeanimation=_(g.transposeanimation,f),h.transposeanimduration=1e3*_(g.transposeanimduration,.2),h.showValues=0,h.valuePadding=_(g.valuepadding,2),h.valuePosition=k(d.valueposition,g.valueposition,"auto"),h.stack100Percent=f=_(g.stack100percent,0),h.showPercentValues=_(g.showpercentvalues,n&&f?1:0),h.showPercentInToolTip=_(g.showpercentintooltip,n&&f?1:0),h.showTooltip=_(g.showtooltip,1),h.seriesNameInTooltip=_(g.seriesnameintooltip,1),h.showHoverEffect=_(g.plothovereffect,g.anchorhovereffect,g.showhovereffect,void 0),h.rotateValues=_(g.rotatevalues)?270:0,h.linethickness=_(d.linethickness,g.linethickness,1),h.lineDashLen=_(d.linedashlen,g.linedashlen,5),h.lineDashGap=_(d.linedashgap,g.linedashgap,4),h.drawLine=h.alpha=_(g.drawmdconnector,d.drawmdconnector,0)&&100,n=t.getDashStyle(h.lineDashLen,h.lineDashGap,h.linethickness),h.lineDashStyle=P?n:"none",h.shadow={opacity:_(g.showshadow,s)?v===x?h.alpha/100:h.plotBorderAlpha/100:0},h.drawAnchors=_(d.drawanchors,d.showanchors,g.drawanchors,g.showanchors),h.anchorBgColor=k(d.mdiconcolor,g.mdiconcolor,o),h.anchorBorderColor=o,h.anchorRadius=_(d.mdiconradius,g.mdiconradius,5),h.anchorAlpha=k(d.alpha,d.mdiconalpha,g.mdiconalpha),h.anchorBgAlpha=k(d.mdiconalpha,g.mdiconalpha,100),h.anchorBorderThickness=k(d.anchorborderthickness,g.anchorborderthickness,1),h.anchorSides=k(d.mdiconsides,g.mdiconsides,3),h.linecolor=h.anchorBgColor,h.minimizeTendency=_(g.minimizetendency,g.minimisetendency,0),h.anchorImageUrl=k(d.anchorimageurl,g.anchorimageurl),h.anchorImageAlpha=_(d.anchorimagealpha,g.anchorimagealpha,100),h.anchorImageScale=_(d.anchorimagescale,g.anchorimagescale,100),h.anchorImagePadding=_(d.anchorimagepadding,g.anchorimagepadding,1),h.anchorStartAngle=_(d.anchorstartangle,g.anchorstartangle,90),h.anchorShadow=_(d.anchorshadow,g.anchorshadow,0),!e.components.data&&(e.components.data=[]),s=e.components.data,y=0;yMD"+D+"",f.toolText=r,f.setTooltext=r,v?v.graphics||(s[y].graphics={}):s[y]={graphics:{}},f.hoverEffects={enabled:!1};h.maxValue=A,h.minValue=T},configureQD:function(e){var r,a,i,n,s=e.chart,l=s.components,c=t.parseUnsafeString,h=e.config,d=e.JSONData,g=s.jsonData.chart,f=l.colorManager,m=e.index||e.stackIndex,v=e.type,y=!s.singleseries||S(g.palettecolors)?f.getPlotColor(m):f.getColor(b).split(/\s*\,\s*/)[0],m=d.data,w=s.config.categories,w=E(w&&w.length,m&&m.length),C=l.numberFormatter,L=s.use3dlineshift,A=-1/0,T=1/0,D=k(g.tooltipsepchar,": "),P=_(d.dashed,g.linedashed);for(n=s.isStacked,r=s.hasLineSet,l=l.xAxis[0],e.visible=1===_(e.JSONData.visible,!Number(e.JSONData.initiallyhidden),1),h.use3dlineshift=void 0!==L?_(g.use3dlineshift,L):1,h.plotColor=y,h.legendSymbolColor=h.plotColor,s=_(s.defaultPlotShadow,f.getColor("showShadow")),h.drawFullAreaBorder=_(g.drawfullareaborder,1),h.parentYAxis=i=r?1:k(d.parentyaxis&&d.parentyaxis.toLowerCase(),u)===p?1:0,h.connectNullData=_(g.connectnulldata,0),h.enableAnimation=f=_(g.animation,g.defaultanimation,1),h.animation=!!f&&{duration:1e3*_(g.animationduration,1)},h.transposeanimation=_(g.transposeanimation,f),h.transposeanimduration=1e3*_(g.transposeanimduration,.2),h.showValues=0,h.valuePadding=_(g.valuepadding,2),h.valuePosition=k(d.valueposition,g.valueposition,"auto"),h.stack100Percent=f=_(g.stack100percent,0),h.showPercentValues=_(g.showpercentvalues,n&&f?1:0),h.showPercentInToolTip=_(g.showpercentintooltip,n&&f?1:0),h.showTooltip=_(g.showtooltip,1),h.seriesNameInTooltip=_(g.seriesnameintooltip,1),h.showHoverEffect=_(g.plothovereffect,g.anchorhovereffect,g.showhovereffect,void 0),h.rotateValues=_(g.rotatevalues)?270:0,h.linethickness=_(d.linethickness,g.linethickness,1),h.lineDashLen=_(d.linedashlen,g.linedashlen,5),h.lineDashGap=_(d.linedashgap,g.linedashgap,4),h.drawLine=h.alpha=_(g.drawqdconnector,d.drawqdconnector,0)&&100,n=t.getDashStyle(h.lineDashLen,h.lineDashGap,h.linethickness),h.lineDashStyle=P?n:"none",h.shadow={opacity:_(g.showshadow,s)?v===x?h.alpha/100:h.plotBorderAlpha/100:0},h.drawAnchors=_(d.drawanchors,d.showanchors,g.drawanchors,g.showanchors),h.anchorBgColor=k(d.qdiconcolor,g.qdiconcolor,o),h.anchorBorderColor=o,h.anchorRadius=_(d.qdiconradius,g.qdiconradius,5),h.anchorAlpha=k(d.alpha,d.qdiconalpha,g.qdiconalpha),h.anchorBgAlpha=k(d.qdiconalpha,g.qdiconalpha,100),h.anchorBorderThickness=k(d.anchorborderthickness,g.anchorborderthickness,1),h.anchorSides=k(d.qdiconsides,g.qdiconsides,3),h.linecolor=h.anchorBgColor,h.minimizeTendency=_(g.minimizetendency,g.minimisetendency,0),h.anchorImageUrl=k(d.anchorimageurl,g.anchorimageurl),h.anchorImageAlpha=_(d.anchorimagealpha,g.anchorimagealpha,100),h.anchorImageScale=_(d.anchorimagescale,g.anchorimagescale,100),h.anchorImagePadding=_(d.anchorimagepadding,g.anchorimagepadding,1),h.anchorStartAngle=_(d.anchorstartangle,g.anchorstartangle,90),h.anchorShadow=_(d.anchorshadow,g.anchorshadow,0),!e.components.data&&(e.components.data=[]),s=e.components.data,y=0;yQD"+D+""),f.toolText=r,f.setTooltext=r,v?v.graphics||(s[y].graphics={}):s[y]={graphics:{}},f.hoverEffects={enabled:!1};h.maxValue=A,h.minValue=T},configureOutliers:function(e,r){var a,i,n,s,l=e.chart,c=l.components,h=t.parseUnsafeString,d=e.config,g=e.JSONData,f=l.jsonData.chart,m=c.colorManager,v=e.index||e.stackIndex,y=e.type,w=!l.singleseries||S(f.palettecolors)?m.getPlotColor(v):m.getColor(b).split(/\s*\,\s*/)[0],v=g.data,C=l.config.categories,C=E(C&&C.length,v&&v.length),L=c.numberFormatter,A=l.use3dlineshift,T=-1/0,D=1/0,P=k(f.tooltipsepchar,": "),I=_(g.dashed,f.linedashed);for(s=l.isStacked,a=l.hasLineSet,c=c.xAxis[0],e.visible=1===_(e.JSONData.visible,!Number(e.JSONData.initiallyhidden),1),d.use3dlineshift=void 0!==A?_(f.use3dlineshift,A):1,d.plotColor=w,d.legendSymbolColor=d.plotColor,l=_(l.defaultPlotShadow,m.getColor("showShadow")),d.drawFullAreaBorder=_(f.drawfullareaborder,1),d.parentYAxis=n=a?1:k(g.parentyaxis&&g.parentyaxis.toLowerCase(),u)===p?1:0,d.connectNullData=_(f.connectnulldata,0),d.enableAnimation=m=_(f.animation,f.defaultanimation,1),d.animation=!!m&&{duration:1e3*_(f.animationduration,1)},d.transposeanimation=_(f.transposeanimation,m),d.transposeanimduration=1e3*_(f.transposeanimduration,.2),d.showValues=0,d.valuePadding=_(f.valuepadding,2),d.valuePosition=k(g.valueposition,f.valueposition,"auto"),d.stack100Percent=m=_(f.stack100percent,0),d.showPercentValues=_(f.showpercentvalues,s&&m?1:0),d.showPercentInToolTip=_(f.showpercentintooltip,s&&m?1:0),d.showTooltip=_(f.showtooltip,1),d.seriesNameInTooltip=_(f.seriesnameintooltip,1),d.showHoverEffect=_(f.plothovereffect,f.anchorhovereffect,f.showhovereffect,void 0),d.rotateValues=_(f.rotatevalues)?270:0,d.linethickness=_(g.linethickness,f.linethickness,1),d.lineDashLen=_(g.linedashlen,f.linedashlen,5),d.lineDashGap=_(g.linedashgap,f.linedashgap,4),d.alpha=0,s=t.getDashStyle(d.lineDashLen,d.lineDashGap,d.linethickness),d.lineDashStyle=I?s:"none",d.shadow={opacity:_(f.showshadow,l)?y===x?d.alpha/100:d.plotBorderAlpha/100:0},d.drawAnchors=_(g.drawanchors,g.showanchors,f.drawanchors,f.showanchors),d.anchorBgColor=k(g.outliericoncolor,f.outliericoncolor,o),d.anchorBorderColor=o,d.anchorRadius=_(g.outliericonradius,f.outliericonradius,5),d.anchorAlpha=k(g.alpha,g.outliericonalpha,f.outliericonalpha),d.anchorBgAlpha=k(g.outliericonalpha,f.outliericonalpha,100),d.anchorBorderThickness=k(g.anchorborderthickness,f.anchorborderthickness,1),d.anchorSides=k(g.outliericonsides,f.outliericonsides,3),d.linecolor=d.anchorBgColor,d.minimizeTendency=_(f.minimizetendency,f.minimisetendency,0),d.anchorImageUrl=k(g.anchorimageurl,f.anchorimageurl),d.anchorImageAlpha=_(g.anchorimagealpha,f.anchorimagealpha,100),d.anchorImageScale=_(g.anchorimagescale,f.anchorimagescale,100),d.anchorImagePadding=_(g.anchorimagepadding,f.anchorimagepadding,1),d.anchorStartAngle=_(g.anchorstartangle,f.anchorstartangle,90),d.anchorShadow=_(g.anchorshadow,f.anchorshadow,0),!e.components.data&&(e.components.data=[]),l=e.components.data,w=0;w=i.min&&A<=i.max&&(m.setValue=a.value=null),m.setLink=k(a.link),m.anchorProps=this._parseAnchorProperties(w,e,"outlier"),i=c.getLabel(w),m.label=t.getValidValue(h(k(i.tooltext,i.label,i.name))),m.showValue=0,m.dashed=_(a.dashed,I),m.color=k(a.color,d.lineColor),m.alpha=k(a.alpha,a.alpha,d.alpha),T=O(T,A),D=E(D,A),m.dashStyle=m.dashed?s:"none",m.toolTipValue=A=L.dataLabels(A,n),m.setDisplayValue=i=h(a.displayvalue),m.displayValue=k(i,A),m.formatedVal=A=m.toolTipValue,m.setTooltext=t.getValidValue(h(k(a.tooltext,g.plottooltext,f.plottooltext))),a=k(a.outliericonshape,g.outliericonshape,f.outliericonshape,"polygon"),d.dip=m.dip="polygon"===a?0:"spoke"===a?1:0,a=!!d.showTooltip&&(null!==A&&"Outlier"+P+""),m.toolText=a,m.setTooltext=a,y?y.graphics||(l[w].graphics={}):l[w]={graphics:{}},m.hoverEffects={enabled:!1};d.maxValue=T,d.minValue=D},initSubDataset:function(e,t){var r=t.chart,o=r.components,a=r.hasLineSet,a=e.parentyaxis&&e.parentyaxis.toLowerCase()===p||a?1:0;t.chart=r,t.yAxis=o.yAxis[a],t.components={},t.graphics={},t.JSONData=e},_parseAnchorProperties:function(e,r,o){var a=r.config,i="area"===r.type?0:1,n=r.JSONData,s=r.chart.jsonData.chart;e=n.data[e],r={};var l=t.graphics.mapSymbolName,n=void 0!==k(e.anchorstartangle,n.anchorstartangle,s.anchorstartangle,e.anchorimagealpha,n.anchorimagealpha,s.anchorimagealpha,e.anchorimagescale,n.anchorimagescale,s.anchorimagescale,e.anchorimagepadding,n.anchorimagepadding,s.anchorimagepadding,e.anchorimageurl,n.anchorimageurl,s.anchorimageurl,e.meaniconradius,n.meaniconradius,s.meaniconradius,e.meaniconcolor,n.meaniconcolor,s.meaniconcolor,e.anchorbordercolor,n.anchorbordercolor,s.anchorbordercolor,e.anchoralpha,n.anchoralpha,s.anchoralpha,e.meaniconsides,n.meaniconsides,s.meaniconsides,e.anchorborderthickness,n.anchorborderthickness,s.anchorborderthickness,void 0),s=_(e.drawanchors,a.drawAnchors);return r.enabled=n?_(s,n):_(s,i),r.startAngle=_(e.anchorstartangle,a.anchorStartAngle),r.imageAlpha=_(e.anchorimagealpha,a.anchorImageAlpha),r.imageScale=_(e.anchorimagescale,a.anchorImageScale),r.imagePadding=_(e.anchorimagepadding,a.anchorImagePadding),0>r.imagePadding&&(r.imagePadding=0),r.imageUrl=k(e.anchorimageurl,a.anchorImageUrl),r.radius=_(e[o+"iconradius"],a.anchorRadius),r.isAnchorRadius=r.radius,r.bgColor=k(e[o+"iconcolor"],a.anchorBgColor),i=r.enabled?R(k(e.anchoralpha,a.anchorAlpha,r.enabled?j:d)):0,r.bgAlpha=R(k(e[o+"iconalpha"],a.meaniconalpha,i)),r.borderColor=k(e.anchorbordercolor,a.anchorBorderColor),r.borderAlpha=i,r.anchorAlpha=i,r.sides=k(e[o+"iconsides"],a.anchorSides),r.borderThickness=k(e.anchorborderthickness,a.anchorBorderThickness),r.symbol=l(r.sides).split(y),r.shadow=!!(_(e.anchorshadow,a.anchorShadow)&&1<=r.radius)&&{opacity:i/100},a.attachEvents=!0,r},init:function(e){var t=this.chart,r=t.components,o=e.parentyaxis&&e.parentyaxis.toLowerCase()===p?1:0,r=r.yAxis[o];if(!e)return!1;this.JSONData=e,this.yAxis=r,this.chartGraphics=t.chartGraphics,this.components={},this.graphics={},this.configure()},draw:function(){var e,t,r,o,d,u,p,b,x,k,S,L,A,P,M,R,F,V,B,j,W,G,z,U,X,Y,q,K,$,J,Z,Q,ee,te,re,oe,ae,ie,ne,se,le,ce,he,de,ue,pe,ge,fe,me,ve,be,ye,xe,we,Ce,ke,Se,_e,Le,Ae,Te,De,Pe,Ie,Ee,Oe,Me,Re,Fe,Ve,Ne,Be,je,He,We,Ge,ze,Ue,Xe,Ye=this,qe=Ye.JSONData,Ke=Ye.config,$e=Ye.groupManager,Je=Ye.index,Ze=Ye.chart.config.categories,Qe=qe.data,et=Ze&&Ze.length,tt=Qe&&Qe.length,rt=Ye.visible,ot=Ye.chart,at=ot.config,it=ot.components.paper,nt=ot.components.xAxis[0],st=Ye.yAxis,lt=ot.graphics.columnGroup,ct=ot.graphics,ht=Ke.showtooltip,dt=ot.get(a,i),ut=dt.animType,pt=dt.animObj,gt=dt.dummyObj,ft=dt.duration,mt=nt.getAxisPosition(0),vt=nt.getAxisPosition(1)-mt,bt=Ke.definedGroupPadding,yt=Ke.plotSpacePercent/200,xt=$e.getDataSetPosition(Ye),wt=Ke.maxcolwidth,Ct=(1-.01*bt)*vt||E(vt*(1-2*yt),1*wt),kt=_(xt.columnWidth,Ct/1),St=xt.xPosOffset||0,_t=xt.height,Lt=Ye.components.data,At=st.getAxisBase(),Tt=Ke.showShadow,Dt=Ye.graphics.upperBoxContainer,Pt=Ye.graphics.lowerBoxContainer,It=Ye.graphics.medianContainer,Et=Ye.graphics.upperWhiskerContainer,Ot=Ye.graphics.lowerWhiskerContainer,Mt=Ye.graphics.dataLabelContainer,Rt=Ye.graphics.shadowContainer,Ft=ot.config.dataLabelStyle,Vt=ct.datalabelsGroup,Nt=Ke.rotatevalues,Bt=Ke.valuepadding,jt=ot.components.numberFormatter,Ht=Nt?N:"middle",Wt=ot.linkedItems.smartLabel,Gt=1/0,zt=!0,Ut=(Ye.components.removeDataArr||[]).length,Xt=Ke.showHoverEffect,Yt=function(e){H.call(this,ot,e)},qt=function(e){return function(t){var r;if(0!==this.data(n))for(r in e)"label"!==r&&(e[r].attr(this.data("setRolloverAttr")[r]),H.call(this,ot,t,"DataPlotRollOver"))}},Kt=function(e){return function(t){var r;if(0!==this.data(n))for(r in e)"label"!==r&&(e[r].attr(this.data("setRolloutAttr")[r]),H.call(this,ot,t,"DataPlotRollOut"))}},$t=function(){!1!==Ye.visible||!1!==Ye._conatinerHidden&&void 0!==Ye._conatinerHidden||(Dt.hide(),Pt.hide(),Et.hide(),Ot.hide(),It.hide(),Rt.hide(),Mt&&Mt.hide(),Ye._conatinerHidden=!0)};for(Mt||(Mt=Ye.graphics.dataLabelContainer=it.group(l,Vt),rt||Mt.hide()),Dt||(Dt=Ye.graphics.upperBoxContainer=it.group("upperBox",lt).trackTooltip(!0).toBack(),rt||Dt.hide()),Et||(Et=Ye.graphics.upperWhiskerContainer=it.group("upperWhisker",lt).trackTooltip(!0),rt||Et.hide()),Pt||(Pt=Ye.graphics.lowerBoxContainer=it.group("lowerBox",lt).trackTooltip(!0).toBack(),rt||Pt.hide()),Ot||(Ot=Ye.graphics.lowerWhiskerContainer=it.group("lowerWhisker",lt).trackTooltip(!0),rt||Ot.hide()),It||(It=Ye.graphics.medianContainer=it.group("median",lt).trackTooltip(!0),rt||It.hide()),Rt||(Rt=Ye.graphics.shadowContainer=it.group(s,lt).toBack(),rt||Rt.hide()),rt&&(Dt.show(),Pt.show(),Et.show(),Ot.show(),It.show(),Rt.show(),Mt&&Mt.show(),Ye._conatinerHidden=!1,Ye.components.mean.visible&&Ye.components.mean.show(),Ye.components.sd.visible&&Ye.components.sd.show(),Ye.components.qd.visible&&Ye.components.qd.show(),Ye.components.md.visible&&Ye.components.md.show()),b=E(et,tt),k=0;kat.canvasBottom&&(Le=at.canvasBottom-_e),x={text:jt.dataLabels(B.min),x:ye,title:z.originalText||C,y:Le,"text-anchor":Nt?m:Ht,"vertical-align":Nt?"middle":f,visibility:c,direction:Ke.textDirection,fill:Ft.color,transform:it.getSuggestiveRotation(Nt,ye,Le),"text-bound":[Ft.backgroundColor,Ft.borderColor,Ft.borderThickness,Ft.borderPadding,Ft.borderRadius,Ft.borderDash]},B.showMinValues?(pe.label[4]?(pe.label[4].show(),He=ye,We=Te||Le,pe.label[4].animateWith(gt,pt,{x:He,y:We,transform:it.getSuggestiveRotation(Nt,He,We)},ft,ut,zt&&$t),pe.label[4].attr({text:jt.dataLabels(B.min),title:z.originalText||C,"text-anchor":Nt?m:Ht,"vertical-align":Nt?"middle":f,visibility:c,direction:Ke.textDirection,fill:Ft.color,"text-bound":[Ft.backgroundColor,Ft.borderColor,Ft.borderThickness,Ft.borderPadding,Ft.borderRadius,Ft.borderDash]})):pe.label[4]=it.text(x,Mt),pe.label[4].data("groupId",ge)):pe.label[4]&&pe.label[4].hide()&&pe.label[4].attr({"text-bound":[]}),x={path:Ce,ishot:!ht,"stroke-width":B.lowerWhiskerThickness,cursor:R?"pointer":C,"stroke-linecap":h},ke?ke.animateWith(gt,pt,x,ft,ut,zt&&$t):(ke=M.graphics.lowerWhiskerEle=it.path(x,Ot),Ne=!0),ke.attr({stroke:B.lowerWhiskerColor}),ke.shadow({opacity:B.lowerWhiskerShadowOpacity},Rt),ue=I(Z)+$.borderWidth%2*.5,x={path:["M",he,Te||ue,"H",he+A]},(ce=M.graphics.midLineElem)?ce.animateWith(gt,pt,x,ft,ut,zt&&$t):(ce=M.graphics.midLineElem=it.path(x,It),Fe=!0),ce.attr(p),Be={upperBoxElem:B.setUpperBoxRolloverAttr,lowerBoxElem:B.setLowerBoxRolloverAttr,upperBoxBorderEle:B.setUpperBoxBorderRolloverAttr,lowerBoxBorderEle:B.setLowerBoxBorderRolloverAttr,upperQuartileEle:B.setUpperQuartileRolloverAttr,lowerQuartileEle:B.setLowerQuartileRolloverAttr,midLineElem:B.setMedianRolloverAttr},je={upperBoxElem:B.setUpperBoxRolloutAttr,lowerBoxElem:B.setLowerBoxRolloutAttr,upperBoxBorderEle:B.setUpperBoxBorderRolloutAttr,lowerBoxBorderEle:B.setLowerBoxBorderRolloutAttr,upperQuartileEle:B.setUpperQuartileRolloutAttr,lowerQuartileEle:B.setLowerQuartileRolloutAttr,midLineElem:B.setMedianRolloutAttr},oe.data("groupId",ge).data("eventArgs",V).data(n,Xt).data("setRolloverAttr",Be).data("setRolloutAttr",je),Pe&&oe.click(Yt).hover(qt(M.graphics),Kt(M.graphics)),ne.data("groupId",ge).data("eventArgs",V).data(n,Xt).data("setRolloverAttr",Be).data("setRolloutAttr",je),Ie&&ne.click(Yt).hover(qt(M.graphics),Kt(M.graphics)),ae.data("groupId",ge).data("eventArgs",V).data(n,Xt).data("setRolloverAttr",Be).data("setRolloutAttr",je),Ee&&ae.click(Yt).hover(qt(M.graphics),Kt(M.graphics)),se.data("groupId",ge).data("eventArgs",V).data(n,Xt).data("setRolloverAttr",Be).data("setRolloutAttr",je),Oe&&se.click(Yt).hover(qt(M.graphics),Kt(M.graphics)),ie.data("groupId",ge).data("eventArgs",V).data(n,Xt).data("setRolloverAttr",Be).data("setRolloutAttr",je),Me&&ie.click(Yt).hover(qt(M.graphics),Kt(M.graphics)),le.data("groupId",ge).data("eventArgs",V).data(n,Xt).data("setRolloverAttr",Be).data("setRolloutAttr",je),Re&&le.click(Yt).hover(qt(M.graphics),Kt(M.graphics)),ce.data("groupId",ge).data("eventArgs",V).data(n,Xt).data("setRolloverAttr",Be).data("setRolloutAttr",je),Fe&&ce.click(Yt).hover(qt(M.graphics),Kt(M.graphics)),we.data("groupId",ge).data("eventArgs",V).data(n,Xt).data("setRolloverAttr",Be).data("setRolloutAttr",je),Ve&&we.click(Yt).hover(qt(M.graphics),Kt(M.graphics)),ke.data("groupId",ge).data("eventArgs",V).data(n,Xt).data("setRolloverAttr",Be).data("setRolloutAttr",je),Ne&&ke.click(Yt).hover(qt(M.graphics),Kt(M.graphics)),Ht=Nt?N:"middle",x={text:z.displayValue,x:S+A/2,title:z.originalText||C,y:X-Bt,"text-anchor":Nt?g:Ht,"vertical-align":Nt?"middle":v,visibility:c,direction:Ke.textDirection,fill:Ft.color,transform:it.getSuggestiveRotation(Nt,S+A/2,X-Bt),"text-bound":[Ft.backgroundColor,Ft.borderColor,Ft.borderThickness,Ft.borderPadding,Ft.borderRadius,Ft.borderDash]},D(z.displayValue)&&z.displayValue!==w&&B.showQ3Values?(pe.label[0]?(pe.label[0].show(),He=S+A/2,We=Te||X-Bt,pe.label[0].animateWith(gt,pt,{x:He,y:We,transform:it.getSuggestiveRotation(Nt,He,We)},ft,ut,zt&&$t),pe.label[0].attr({text:z.displayValue,title:z.originalText||C,"text-anchor":Nt?g:Ht,"vertical-align":Nt?"middle":v,visibility:c,direction:Ke.textDirection,fill:Ft.color,"text-bound":[Ft.backgroundColor,Ft.borderColor,Ft.borderThickness,Ft.borderPadding,Ft.borderRadius,Ft.borderDash]})):pe.label[0]=it.text(x,Mt),pe.label[0].data("groupId",ge)):pe.label[0]&&pe.label[0].hide()&&pe.label[0].attr({"text-bound":[]}),x={text:$.displayValue,x:he+A/2,y:Z-Bt,title:$.originalText||C,"text-anchor":Nt?g:Ht,"vertical-align":Nt?"middle":v,visibility:c,direction:Ke.textDirection,fill:Ft.color,transform:it.getSuggestiveRotation(Nt,he+A/2,Z-Bt),"text-bound":[Ft.backgroundColor,Ft.borderColor,Ft.borderThickness,Ft.borderPadding,Ft.borderRadius,Ft.borderDash]},D($.displayValue)&&$.displayValue!==w&&B.showMedianValues?(pe.label[1]?(pe.label[1].show(),He=he+A/2,We=Te||Z-Bt,pe.label[1].animateWith(gt,pt,{x:He,y:We,transform:it.getSuggestiveRotation(Nt,He,We)},ft,ut,zt&&$t),pe.label[1].attr({text:$.displayValue,title:$.originalText||C,"text-anchor":Nt?g:Ht,"vertical-align":Nt?"middle":v,visibility:c,direction:Ke.textDirection,fill:Ft.color,"text-bound":[Ft.backgroundColor,Ft.borderColor,Ft.borderThickness,Ft.borderPadding,Ft.borderRadius,Ft.borderDash]})):pe.label[1]=it.text(x,Mt),pe.label[1].data("groupId",ge)):pe.label[1]&&pe.label[1].hide()&&pe.label[1].attr({"text-bound":[]}),x={text:Y.displayValue,x:S+A/2,y:K+Bt,title:Y.originalText||C,"text-anchor":Nt?g:Ht,"vertical-align":Nt?"middle":f,visibility:c,direction:Ke.textDirection,fill:Ft.color,transform:it.getSuggestiveRotation(Nt,S+A/2,K+Bt),"text-bound":[Ft.backgroundColor,Ft.borderColor,Ft.borderThickness,Ft.borderPadding,Ft.borderRadius,Ft.borderDash]},D(Y.displayValue)&&Y.displayValue!==w&&B.showQ1Values?(pe.label[2]?(pe.label[2].show(),He=S+A/2,We=Te||K+Bt,pe.label[2].animateWith(gt,pt,{x:He,y:We,transform:it.getSuggestiveRotation(Nt,He,We)},ft,ut,zt&&$t),pe.label[2].attr({text:Y.displayValue,title:Y.originalText||C,"text-anchor":Nt?g:Ht,"vertical-align":Nt?"middle":f,visibility:c,direction:Ke.textDirection,fill:Ft.color,"text-bound":[Ft.backgroundColor,Ft.borderColor,Ft.borderThickness,Ft.borderPadding,Ft.borderRadius,Ft.borderDash]})):pe.label[2]=it.text(x,Mt),pe.label[2].data("groupId",ge)):pe.label[2]&&pe.label[2].hide()&&pe.label[2].attr({"text-bound":[]}),zt&&$t(),ht?(oe.tooltip(P),ne.tooltip(P),ae.tooltip(P),se.tooltip(P),ie.tooltip(P),le.tooltip(P),ce.tooltip(P),we.tooltip(P),ke.tooltip(P)):(oe.tooltip(!1),ne.tooltip(!1),ae.tooltip(!1),se.tooltip(!1),ie.tooltip(!1),le.tooltip(!1),ce.tooltip(!1),we.tooltip(!1),ke.tooltip(!1)),S+=A/2,Ye.components.mean.components.data[k].config.xPos=S,Ye.components.sd.components.data[k].config.xPos=S,Ye.components.qd.components.data[k].config.xPos=S,Ye.components.md.components.data[k].config.xPos=S,De=0;DeE&&!u&&(s=m,m=nt?180-m:360-m),V.colorArr=t.graphics.getColumnColor(Be+","+Ie.plotgradientcolor,v,b=Ie.plotFillRatio,m,u,Ie.plotBorderColor,A.toString(),nt?1:0,!!st),r=V.toolTipValue,s&&(m=s);if(Ie.maxValue=lt,Ie.minValue=ct,pe=lt-ct,et&&!Ze)Te({min:ct,max:lt}),this.components.colorRange=qe=De.colorRange;else{for(this.components.colorRange=qe=new tt({colorRange:Ee.colorrange,dataMin:ct,dataMax:lt,sortLegend:0,mapByCategory:Ze,defaultColor:"cccccc",numberFormatter:it}),Ie.colorMap=[],he=0;he"+ht+Xe+""),dt!==w&&(ft=""+dt+Xe+""),ut!==w&&(mt=""+ut+Xe+""),pt!==w&&(vt=""+pt+Xe+""),W=Ke.getCategoryFromId(Me[he].columnid.toLowerCase()),G=$e.getCategoryFromId(Me[he].rowid.toLowerCase()),We?(null===r?l=!1:void 0!==i?(n=[1,2,5,6,7,14,93,94,95,96,97,98,112,113,114,115,116,117],a={formattedValue:r,value:I.value,yaxisName:ze,xaxisName:Ue,displayValue:ae,percentValue:Je?ye:w,tlLabel:fe,trLabel:me,blLabel:ve,brLabel:be,rowLabel:G.catObj&&G.catObj.label,columnLabel:W.catObj&&W.catObj.label,percentDataValue:Je?ye:w,trtype:dt,tltype:ht,brType:pt,blType:ut,colorRangeLabel:V.colorRangeLabel},l=Ye(i,n,a,I,Ve,a)):l=(Je?"Value"+Xe+""+r+"
Percentage"+Xe+""+ye:xe)+(fe!==w?"
"+(gt+fe):w)+(me!==w?"
"+ft+me:w)+(ve!==w?"
"+mt+ve:w)+(be!==w?"
"+vt+be:w),V.toolText=l,V.setTooltext=l):V.toolText=!1);!1===Le.hasLegend||et&&!Ze||this._addLegend()},init:function(e){var t=this.chart,r=t.components,o=e.parentyaxis&&e.parentyaxis.toLowerCase()===f?1:0,r=r.yAxis[o];if(!e)return!1;this.JSONData=e,this.yAxis=r,this.chartGraphics=t.chartGraphics,this.components={},this.graphics={},this.visible=1===_(this.JSONData.visible,!Number(this.JSONData.initiallyhidden),1),this.configure()},_addLegend:function(){var e,t,r,o,a,i,n=this.components.data,s=this.chart,l=s.jsonData.chart,c=this.config.colorMap,h=this.components.colorRange;for(o=s.components.legend,l=_(l.us3dlighting,l.useplotgradientcolor,1),o.emptyItems(),o=0,a=c.length;ot?r.visible&&(g[n].graphics.element&&g[n].graphics.element.animateWith(p,u,{"fill-opacity":0,"stroke-width":0},h,d),g[n].graphics.hotElement&&g[n].graphics.hotElement.hide(),g[n].graphics.valEle&&g[n].graphics.valEle.hide(),g[n].graphics.tlLabel&&g[n].graphics.tlLabel.hide(),g[n].graphics.trLabel&&g[n].graphics.trLabel.hide(),g[n].graphics.blLabel&&g[n].graphics.blLabel.hide(),g[n].graphics.brLabel&&g[n].graphics.brLabel.hide(),r.visible=!1,g[n].visible=!1):r.visible||(g[n].graphics.element&&g[n].graphics.element.animateWith(p,u,{"fill-opacity":o,"stroke-width":c.plotBorderThickness},h,d),g[n].graphics.hotElement&&g[n].graphics.hotElement.show(),g[n].graphics.valEle&&g[n].graphics.valEle.show(),g[n].graphics.tlLabel&&g[n].graphics.tlLabel.show(),g[n].graphics.trLabel&&g[n].graphics.trLabel.show(),g[n].graphics.blLabel&&g[n].graphics.blLabel.show(),g[n].graphics.brLabel&&g[n].graphics.brLabel.show(),r.visible=!0,g[n].visible=!0)},_checkPointObj:function(e,t,r,o){var a=this.components.plotGrid,i=this.chart.config,n=i.viewPortConfig,s=n.x,l=n.scaleX,n=i.plotborderthickness,i=i.showplotborder;if(e=a[t]&&a[t][e],n=i?n:0,t=n/2,t=0==t%2?t+1:Math.round(t),e&&e.config&&e.config.visible&&(r=r-(e._xPos-s*l)+t,o=o-e._yPos+t,o=0<=r&&r<=e._width+n&&0<=o&&o<=e._height+n))return{pointIndex:e._index,hovered:o,pointObj:e}},_getHoveredPlot:function(e,t){var r=this.chart,o=r.config,a=r.components.xAxis[0],i=r.components.canvas.config,i=Math.max(i.canvasPaddingLeft,i.canvasPadding),n=o.canvasLeft,r=r.components.yAxis[0].getValue(t+r.config.canvasHeight/r.jsonData.rows.row.length/2-o.canvasTop-i),o=Math.floor(r),a=a.getValue(e-n-i),i=Math.round(a);return 0=i&&(o[a].config.isDefined=!1),a+=1;o[0].config.vAlign=t?h:c,o[0].config.align="center"},s=i.length,u=f=0;uA&&!S&&(S=!0):(v>M&&C>d?(S=!0,L=M,A=null,e=T=!0,n(f,S)):vd?(S=!1,L=null,A=M,T=!1,e=!0,n(f,S)):(T=S=null,e=!1),void 0!==x&&null!==x&&(x.isRally=S),null!=S&&(o[0].config.isRally=S)),r.isRally=S,(T&&vM)&&(m=M),D=m||v,C=k(D-w),w=null==T?null:T?D>w&&C>=d:D=d,x&&x.isShift)for(T?(L=M,R=h):T||(A=M,R=c),x=f;1M||!T&&vt)break;r.push(n)}return e},manageSpace:function(){},_getHoveredPlot:function(e,t){for(var r,o=this.chart,a=o.components.xAxis[0],i=this.config,n=i.trackIndex,s=this.components.data,l=o.components.canvas.config,l=e-o.config.canvasLeft-Math.max(l.canvasPaddingLeft,l.canvasPadding),o=Math.floor(Math.max(a.getValue(l-i.maxRadius))),a=Math.ceil(Math.min(a.getValue(l+i.maxRadius)));a>=o;a--)for(l=(i=n[a])&&i.length;0<=l;l--)if(r=i[l],r=this.isWithinShape(s[r],r,e,t))return r},draw:function(){var e,o,c,h=this,u=h.graphics,p=h.JSONData;e=h.chart;var g,b,y,k,_,L,A,T,D,P,I,E,O,M,R,F,V,N,B,j,H,W=e.getJobList(),G=e.components,z=e.config,U=h.config,X=U.trackIndex={},Y=h.components,q=Y.data,K=(Y=Y.removeDataArr)&&Y.length,$=q&&q.length,Y=q&&q.length,J=G.paper,Z=G.xAxis[0],G=e.graphics,Q=G.datalabelsGroup,ee=h.components.data,te=u.container,re=G.datasetGroup,G=U.shadow,oe=u.dataLabelContainer,ae={},ie=function(){te.lineGroup.attr({"clip-rect":null}),te.lineShadowGroup.show(),te.anchorShadowGroup.show(),te.anchorGroup.show(),oe&&oe.show()},ne=!0,se=Z.getAxisPosition(0),le=Z.getAxisPosition(1)-se,ce={"clip-rect":[C(0,z.canvasLeft),C(0,z.canvasTop),C(1,z.canvasWidth),C(1,z.canvasHeight)]},he={"clip-rect":[C(0,z.canvasLeft),C(0,z.canvasTop),1,C(1,z.canvasHeight)]},z=U.rallyThickness,de=U.declineThickness,ue={stroke:f({color:U.rallyColor,alpha:U.rallyAlpha}),"stroke-linecap":l,"stroke-linejoin":l,"stroke-width":z,"stroke-dasharray":U.rallyDashed},pe={stroke:f({color:U.declineColor,alpha:U.declineAlpha}),"stroke-linecap":l,"stroke-linejoin":l,"stroke-width":de,"stroke-dasharray":U.declineDashed},ge={true:z,false:de},fe=[],me=[],ve=u.rallyElem,be=u.declineElem,ye=h.visible,xe=Z.getAxisPosition(0),we=q[0]&&!!q[0].isRally,se=se-le/2,Ce=u.lineElement,ke=h.pool||(h.pool={});e=e.get(a,i);var Se,_e=e.duration||0,Le=e.dummyObj,Ae=e.animObj,Te=0,De=e.animType;if(U.imagesLoaded=0,K&&h.remove(),q.length){if(ve&&ve.show(),be&&be.show(),te||(te=h.graphics.container={lineShadowGroup:J.group("connector-shadow",re).attr(he),anchorShadowGroup:J.group("anchor-shadow",re).attr(he),lineGroup:J.group(d,re).attr(he),anchorGroup:J.group("anchors",re).attr(he)},ye||(te.lineShadowGroup.hide(),te.anchorShadowGroup.hide(),te.lineGroup.hide(),te.anchorGroup.hide())),ee||(ee=h.components.data=[]),oe||(oe=h.graphics.dataLabelContainer=h.graphics.dataLabelContainer||J.group(n,Q),ye||oe.hide()),w($,Y),q[0].config.setValue)B=q[0].config.plotY;else for(e=1;e'+(e.name!==l&&void 0!==e.name&&e.name+w+" "||l)+e.id+"");this.showNodeUpdateUI(o,{dataset:{innerHTML:i}})},showConnectorAddUI:function(){var e,t,r=this.chart,o=this.nodes,a=c;for(t in o)e=o[t],e=e.config,e=e.id,a+='";this.showConnectorUpdateUI(r,{fromid:{innerHTML:a},toid:{innerHTML:a}})},draw:function(){var e,t,r,o=this.datasets,a=this.connectorSet,i=this.labelSet;for(this.updateUIvisuals(),e=0,r=o.length;e',x:145,y:63},{key:"color",text:"Color",x:10,y:90,inputWidth:60},{key:"colorOut",innerHTML:" ",x:85,y:90,inputWidth:15,inputType:"span"},{key:"alpha",text:"Alpha",x:170,y:90,inputWidth:20},{key:"draggable",text:"Allow Drag",value:!0,inputWidth:20,x:250,y:90,labelWidth:58,inputPaddingTop:3,type:"checkbox"},{key:"shape",text:"Shape",inputType:"select",inputWidth:97,innerHTML:'',x:10,y:115},{key:"rectHeight",text:"Height",x:170,y:115,inputWidth:20},{key:"rectWidth",text:"Width",x:255,y:115,inputWidth:20},{key:"circPolyRadius",text:"Radius",x:170,y:115,inputWidth:20},{key:"polySides",text:"Sides",x:255,y:115,inputWidth:20},{key:"link",text:"Link",x:10,y:140,inputWidth:92},{key:"image",text:"Image",type:"checkbox",inputPaddingTop:4,inputWidth:20,x:10,y:170},{key:"imgUrl",text:"URL",inputWidth:105,x:170,y:170},{key:"imgWidth",text:"Width",inputWidth:20,x:10,y:195},{key:"imgHeight",text:"Height",inputWidth:20,x:82,y:195},{key:"imgAlign",text:"Align",inputType:"select",inputWidth:75,innerHTML:'',x:170,y:195}],showNodeUpdateUI:function(){var e=function(){for(var e,t=this.graphics.cacheUpdateUI,r=t.fields.shape,o=["rectWidth","rectHeight","circPolyRadius","polySides"],a=o.length;a--;)e=o[a],/rect|poly|circ/gi.test(e)&&(t.labels[e].hide(),t.fields[e].hide()),new RegExp(h(r.val(),"rect"),"ig").test(e)&&(t.labels[e].show(),t.fields[e].show())},r=function(){var e=this.graphics.cacheUpdateUI.fields,t=k(e.color.val());t&&e.colorOut.css({background:C(t)})},o=function(e,r){var o,a,i,n=this.graphics.cacheUpdateUI,s=e.config.height,l=n.fields.image.val(),c=r?300:0,h=["imgWidth","imgHeight","imgAlign","imgUrl"];for(o=l?250:215,n.ok.hide(),n.cancel.hide(),n.remove.hide(),n.error.hide(),a=h.length;!l&&a--;)i=h[a],n.labels[i].hide(),n.fields[i].hide();t.danimate.animate(n.dialog.element,{top:(s-o)/2,height:o},c,"linear",function(){for(a=h.length;a--&&l;)i=h[a],n.labels[i].show(),n.fields[i].show();n.ok.attr({y:o-23-5}).show(),n.cancel.attr({y:o-23-5}).show(),n.remove.attr({y:o-23-5}),n.error.attr({y:o-23-5+4}).show(),n.edit?n.remove.show():n.remove.hide()})};return function(t,a,i){var n,s=this,h=s.graphics,u=h.cacheUpdateUI,p=s.nodes,g=t.config,m=g.animation,b=t.components.paper,y={width:"80px",border:"1px solid #cccccc",fontSize:"10px",lineHeight:"15px",padding:"2px",fontFamily:(g.style.inCanvasStyle||{}).fontFamily},x={textAlign:"right"},w=u&&u.fields,C=u&&u.labels,g=function(){var e,t,r,o=u&&u.fields,a=u.edit,i=s.chart,n=i.components;if(e=n.xAxis[0].config.axisRange.min,n=n.yAxis[0].config.axisRange.min,o){switch(o.shape.val()){case"circ":r="circle";break;case"poly":r="polygon";break;default:r="rectangle"}if(e={x:d(o.x.val(),e),y:d(o.y.val(),n),id:o.id.val(),datasetId:o.dataset.val(),name:o.label.val(),tooltext:o.tooltip.val(),color:o.color.val(),alpha:o.alpha.val(),labelalign:o.labelalign.val(),allowdrag:o.draggable.val(),shape:r,width:o.rectWidth.val(),height:o.rectHeight.val(),radius:o.circPolyRadius.val(),numsides:o.polySides.val(),imagenode:o.image.val(),imagewidth:o.imgWidth.val(),imageheight:o.imgHeight.val(),imagealign:o.imgAlign.val(),imageurl:o.imgUrl.val(),link:o.link.val()},p[e.id]&&(t=!0),!t||void 0!==a)return void(((o=e.datasetId)!==c||a)&&(a?i.updateNode(e):i.addNode(e),u.hide(),u.visible=!1));u.error.attr({text:"ID already exist."}),o.label.focus()}u.enableFields()},k=function(){u.hide(),u.visible=!1,u.enableFields(),u.error.attr({text:l}),u.visible=!1},S=function(){t.deleteNode(u.fields.id.val()),u.hide(),u.visible=!1};u||(u=h.cacheUpdateUI=this.createHtmlDialog(t,350,215,g,k,S),n=u.dialog,C=u.labels={},w=u.fields={}),u.config=a,u.edit=i,u.error||(u.error=b.html("span",{color:"ff0000",x:30,y:228},void 0,n)),u.enableFields||(u.enableFields=function(){for(var e in a)a[e]&&a[e].disabled&&w[e]&&w[e].element.removeAttribute("disabled")}),u.clearFields||(u.clearFields=function(){var e,t=u.fields;for(e in t)t[e].element.disabled||(t[e].element.value=c)}),f(this.nodeUpdateUIDefinition,function(i){var h,p,g,f=i.key,m={},k=a[f]||{};!C[f]&&(C[f]=b.html("label",{x:i.x,y:i.y,width:i.labelWidth||45,text:i.text},x,n)),i.noInput||(h=w[f],h||(y.border="checkbox"==i.type?l:"1px solid #cccccc",h=w[f]=b.html(i.inputType||"input",{x:i.labelWidth&&i.labelWidth+5||50,y:-2+(i.inputPaddingTop||0),width:i.inputWidth||50,name:f||c},y),"select"!==i.inputType&&h.attr({type:i.type||"text"}).on("keyup",u.handleKeyPress),h.add(C[f])),v(p=d(k.innerHTML,i.innerHTML))&&(m.innerHTML=p),k.disabled?m.disabled="disabled":h.element&&(h.element.disabled=!1),h.attr(m),v(g=d(k.value,i.value))&&h.val(g),"shape"==f&&h.on("change",function(){e.call(s,t)}),"image"==f&&h.on("click",function(){o.call(s,t,!0)}),"color"==f&&h.on("keyup",function(){r.call(s,t)}))}),r.call(this,t),o.call(this,t),e.call(this,t),m?u.fadeIn("fast"):u.show(),u.visible=!0,u.fields[i?"label":"id"].focus()}}(),getDataLimits:function(){var e,t,r=this.datasets,o=1/0,a=-1/0,i=-1/0,n=1/0;for(e=0;e=s+1;l--)d=e[l].config,h=c&&c[l]||d.setValue,y&&delete e[l].dragged,e[l].dragged||(d.labelSkip=!0,d.isSkipped=!0),0<=h?(m||(m=h,0===p&&delete d.labelSkip,g=l,delete d.isSkipped),mh&&(v=h,f=l,delete d.isSkipped));0===p&&(e[g]&&delete e[g].config.labelSkip,e[f]&&delete e[f].config.labelSkip)}a&&delete this.lastPlot}},t.preDefStr.column])}]),e.register("module",["private","modules.renderer.js-dataset-group-dragarea",function(){var t=this.hcLib.extend2,r=Math.ceil;e.register("component",["datasetGroup","DragArea",{getJSONData:function(){var e,r,o,a=this.chart,i=a.components.dataset,a=a.jsonData&&a.jsonData.dataset,n=[],s=i.length;for(o=0;o=i+1;n--)l=e[n].config,s=l.setValue,m&&delete e[n].dragged,e[n].dragged||(l.labelSkip=!0,l.isSkipped=!0),d?ds&&(h=n,u=s):(h=n,u=s);delete e[h].config.isSkipped,delete e[c].config.isSkipped,0===g&&(delete e[h].config.labelSkip,delete e[c].config.labelSkip)}}},"area"])}]),e.register("module",["private","modules.renderer.js-dataset-group-dragline",function(){e.register("component",["datasetGroup","DragLine",{_decidePlotableData:e.get("component",["datasetGroup","DragArea"]).prototype._decidePlotableData},"line"])}]),e.register("module",["private","modules.renderer.js-dataset-group-boxandwhisker2d",function(){var t=this.hcLib,r=t.extend2,t=t.preDefStr,o=t.configStr,a=t.animationObjStr;e.register("component",["datasetGroup","boxandwhisker2d",{draw:function(){var e,t,i,n,s=this.positionStackArr,l=s.length;e=this.chart,t=e.graphics.datasetGroup;var c=e.graphics;i=e.components.canvas.config.clip["clip-canvas"].slice(0),n=r([],e.components.canvas.config.clip["clip-canvas-init"]);var c=c.datalabelsGroup,h=e.get(o,a),d=h.animType,u=h.animObj,p=h.dummyObj,h=h.duration;for(e.fireInitialAnimation&&(t.attr({"clip-rect":n}),c.attr({"clip-rect":n})),e.fireInitialAnimation=!1,t.animateWith(p,u,{"clip-rect":i},h,d),c.animateWith(p,u,{"clip-rect":i},h,d),this.preDrawCalculate(),this.drawSumValueFlag=!0,e=0;e1)return void(this.connection=null);var r=this.connection,o=e._connection;this.connection=null,!o||r&&o!==r||o.unsubscribe()},t}(i.Subscriber)},Fhmd:function(e,t,r){"use strict";var o=r("jUlM");t.forkJoin=o.ForkJoinObservable.create},FzFg:function(e,t,r){!function(t,r){"object"==typeof e&&e.exports?e.exports=t.document?r(t):function(e){if(!e.document)throw Error("Window with document not present");return r(e,!0)}:t.FusionCharts=r(t,!0)}("undefined"!=typeof window?window:this,function(t,r){void 0===t&&"object"==typeof window&&(t=window);var o=function(e){if(e.FusionCharts&&e.FusionCharts.version)return e.FusionCharts;var t=e.document,r=e.navigator,o={window:e},a=o.modules={},i=o.interpreters={},n=Object.prototype.toString,s=/msie/i.test(r.userAgent)&&!e.opera,l=/loaded|complete/,c=!1,h=function(){var e=o.ready;o.ready=!0,o.raiseEvent&&(o.readyNotified=!0,o.raiseEvent("ready",{version:o.core.version,now:!e},o.core)),o.readyNow=!e},d=function(e,t){var r,o;if(t instanceof Array)for(r=0;r<\/script>'):t.write('