text: /*
   FusionCharts JavaScript Library
   Copyright FusionCharts Technologies LLP
   License Information at <http://www.fusioncharts.com/license>
   FusionCharts JavaScript Library
   Copyright FusionCharts Technologies LLP
   License Information at <http://www.fusioncharts.com/license>
  
   @version 3.7.0
  
   @attributions (infers respective third-party copyrights)
   Raphael 2.1.0 (modified as 'Red Raphael') <http://raphaeljs.com/license.html>
   JSON v2 <http://www.JSON.org/js.html>
   Firebug Lite 1.3.0 <http://getfirebug.com/firebuglite>
  */
  (function(){if(!window.FusionCharts||!window.FusionCharts.version){var d=window,m=d.document,z=d.navigator,q={window:d},E=q.modules={},b=q.interpreters={},K=Object.prototype.toString,I=/msie/i.test(z.userAgent)&&!d.opera,c=/loaded|complete/,s=!1,a=function(){var a=q.ready;q.ready=!0;q.raiseEvent&&(q.readyNotified=!0,q.raiseEvent("ready",{version:q.core.version,now:!a},q.core));q.readyNow=!a},v=function(a,b){var c,f;if(b instanceof Array)for(c=0;c<b.length;c+=1)"object"!==typeof b[c]?a[c]=b[c]:("object"!==
  typeof a[c]&&(a[c]=b[c]instanceof Array?[]:{}),v(a[c],b[c]));else for(c in b)"object"===typeof b[c]?(f=K.call(b[c]),"[object Object]"===f?("object"!==typeof a[c]&&(a[c]={}),v(a[c],b[c])):"[object Array]"===f?(a[c]instanceof Array||(a[c]=[]),v(a[c],b[c])):a[c]=b[c]):a[c]=b[c];return a};q.extend=function(a,b,c,f){var n;c&&a.prototype&&(a=a.prototype);if(!0===f)v(a,b);else for(n in b)a[n]=b[n];return a};q.uniqueId=function(){return"chartobject-"+(q.uniqueId.lastId+=1)};q.uniqueId.lastId=0;q.policies=
  {options:{chartTypeSourcePath:["typeSourcePath",""],product:["product","v3"],insertMode:["insertMode","replace"],safeMode:["safeMode",!0],overlayButton:["overlayButton",void 0],containerBackgroundColor:["containerBackgroundColor","#ffffff"],containerBackgroundOpacity:["containerBackgroundOpacity",1],containerClassName:["containerClassName","fusioncharts-container"],chartType:["type",void 0],baseChartMessageFont:["baseChartMessageFont","Verdana,sans"],baseChartMessageFontSize:["baseChartMessageFontSize",
  "10"],baseChartMessageColor:["baseChartMessageColor","#666666"],baseChartMessageImageHAlign:["baseChartMessageImageHAlign","middle"],baseChartMessageImageVAlign:["baseChartMessageImageVAlign","middle"],baseChartMessageImageAlpha:["baseChartMessageImageAlpha",100],baseChartMessageImageScale:["baseChartMessageImageScale",100],dataLoadStartMessage:["dataLoadStartMessage","Retrieving data. Please wait."],dataLoadErrorMessage:["dataLoadErrorMessage","Error in loading data."],dataInvalidMessage:["dataInvalidMessage",
  "Invalid data."],dataEmptyMessage:["dataEmptyMessage","No data to display."],typeNotSupportedMessage:["typeNotSupportedMessage","Chart type not supported."],loadMessage:["loadMessage","Loading chart. Please wait."],renderErrorMessage:["renderErrorMessage","Unable to render chart."]},attributes:{lang:["lang","EN"],id:["id",void 0]},width:["width","400"],height:["height","300"],src:["swfUrl",""]};b.stat="swfUrl id width height debugMode registerWithJS backgroundColor scaleMode lang detectFlashVersion autoInstallRedirect".split(" ");
  q.parsePolicies=function(a,b,c){var f,n,p;for(n in b)if(q.policies[n]instanceof Array)p=c[b[n][0]],a[n]=void 0===p?b[n][1]:p;else for(f in"object"!==typeof a[n]&&(a[n]={}),b[n])p=c[b[n][f][0]],a[n][f]=void 0===p?b[n][f][1]:p};q.parseCommands=function(a,c,g){var f,n;"string"===typeof c&&(c=b[c]||[]);f=0;for(n=c.length;f<n;f++)a[c[f]]=g[f];return a};q.registrars={module:function(){return q.core.apply(q.core,arguments)}};q.core=function(a){if(!(this instanceof q.core)){if(1===arguments.length&&a instanceof
  Array&&"private"===a[0]){if(E[a[1]])return;E[a[1]]={};a[3]instanceof Array&&(q.core.version[a[1]]=a[3]);return"function"===typeof a[2]?a[2].call(q,E[a[1]]):q}if(1===arguments.length&&"string"===typeof a)return q.core.items[a];q.raiseError&&q.raiseError(this,"25081840","run","",new SyntaxError('Use the "new" keyword while creating a new FusionCharts object'))}var c={};this.__state={};1===arguments.length&&"object"===typeof arguments[0]?c=arguments[0]:q.parseCommands(c,b.stat,arguments);1<arguments.length&&
  "object"===typeof arguments[arguments.length-1]&&(delete c[b.stat[arguments.length-1]],q.extend(c,arguments[arguments.length-1]));this.id="undefined"===typeof c.id?this.id=q.uniqueId():c.id;this.args=c;q.core.items[this.id]instanceof q.core&&q.raiseWarning(this,"06091847","param","",Error('A FusionChart oject with the specified id "'+this.id+'" already exists. Renaming it to '+(this.id=q.uniqueId())));q.parsePolicies(this,q.policies,c);this.attributes.id=this.id;this.resizeTo&&this.resizeTo(c.width,
  c.height,!0);this.chartType&&this.chartType(c.type||c.swfUrl,!0);q.raiseEvent("beforeInitialize",c,this);q.core.items[this.id]=this;q.core.defaultOptions=q.core.options;q.raiseEvent("initialized",c,this);return this};q.core.prototype={};q.core.prototype.constructor=q.core;q.extend(q.core,{id:"FusionCharts",version:["3","7","0"],items:{},options:{},getObjectReference:function(a){return q.core.items[a].ref},register:function(a){return q.registrars[a=a&&a.toString&&a.toString().toLowerCase()]&&q.registrars[a].apply(q.core,
  Array.prototype.slice.call(arguments,1))}});d.FusionCharts=q.core;d.FusionMaps&&d.FusionMaps.legacy&&(q.core(["private","modules.core.geo",d.FusionMaps.legacy,d.FusionMaps.version]),s=!0);c.test(m.readyState)||m.loaded?(q.ready=!0,setTimeout(a,1)):function(){function b(){arguments.callee.done||(arguments.callee.done=!0,g&&clearTimeout(g),s||(d.FusionMaps&&d.FusionMaps.legacy&&q.core(["private","modules.core.geo",d.FusionMaps.legacy,d.FusionMaps.version]),d.FusionMaps=q.core),setTimeout(a,1))}function B(){c.test(m.readyState)?
  b():g=setTimeout(B,10)}var g,f;m.addEventListener?m.addEventListener("DOMContentLoaded",b,!1):m.attachEvent&&d.attachEvent("onLoad",b);if(I)try{"https:"===d.location.protocol?m.write('<script id="__ie_onload_fusioncharts" defer="defer" src="//:">\x3c/script>'):m.write('<script id="__ie_onload_fusioncharts" defer="defer" src="javascript:void(0)">\x3c/script>'),f=m.getElementById("__ie_onload_fusioncharts"),f.onreadystatechange=function(){"complete"==this.readyState&&b()}}catch(n){}/WebKit/i.test(z.userAgent)&&
  (g=setTimeout(B,10));d.onload=function(a){return function(){b();a&&a.call&&a.call(d)}}(d.onload)}();d.FusionMaps=q.core}})();
  FusionCharts.register("module",["private","modules.mantle.errormanager",function(){var d=this,m=d.window,z={type:"TypeException",range:"ValueRangeException",impl:"NotImplementedException",param:"ParameterException",run:"RuntimeException",comp:"DesignTimeError",undefined:"UnspecifiedException"},q=function(b,q,I,c,s,a){var v="#"+q+" "+(b?b.id:"unknown-source")+c+" "+a+" >> ";s instanceof Error?(s.name=z[I],s.module="FusionCharts"+c,s.level=a,s.message=v+s.message,v=s.message,m.setTimeout(function(){throw s;
  },0)):v+=s;q={id:q,nature:z[I],source:"FusionCharts"+c,message:v};d.raiseEvent(a,q,b);if("function"===typeof m["FC_"+a])m["FC_"+a](q)},E;d.raiseError=function(b,d,m,c,s){q(b,d,m,c,s,"Error")};d.raiseWarning=function(b,d,m,c,s){q(b,d,m,c,s,"Warning")};E={outputHelpers:{text:function(b,d){E.outputTo("#"+b.eventId+" ["+(b.sender.id||b.sender).toString()+'] fired "'+b.eventType+'" event. '+("error"===b.eventType||"warning"===b.eventType?d.message:""))},event:function(b,d){this.outputTo(b,d)},verbose:function(b,
  d){E.outputTo(b.eventId,b.sender.id,b.eventType,d)}},outputHandler:function(b,m){"function"!==typeof E.outputTo?d.core["debugger"].outputFailed=!0:(d.core["debugger"].outputFailed=!1,E.currentOutputHelper(b,m))},currentOutputHelper:void 0,outputTo:void 0,enabled:!1};E.currentOutputHelper=E.outputHelpers.text;d.extend(d.core,{"debugger":{syncStateWithCharts:!0,outputFormat:function(b){return b&&"function"===typeof b.toLowerCase&&"function"===typeof E.outputHelpers[b=b.toLowerCase()]?(E.currentOutputHelper=
  E.outputHelpers[b],!0):!1},outputTo:function(b){"function"===typeof b?E.outputTo=b:null===b&&(d.core["debugger"].enable(!1),delete E.outputTo)},enable:function(b,m,q){var c;"object"===typeof b&&1===arguments.length&&(c=b,b=c.state,m=c.outputTo,q=c.outputFormat);"function"===typeof b&&("string"!==typeof m||2!==arguments.length&&!c||(q=m),m=b,b=!0);if("boolean"===typeof b&&b!==E.enabled)d.core[(E.enabled=b)?"addEventListener":"removeEventListener"]("*",E.outputHandler);"function"===typeof m&&(E.outputTo=
  m);d.core["debugger"].outputFormat(q);return E.enabled},enableFirebugLite:function(){var b;m.console&&m.console.firebug?d.core["debugger"].enable(m.console.log,"verbose"):((b=m.document.getElementsByTagName("html"))&&b[0].setAttribute("debug","true"),d.loadScript("https://getfirebug.com/firebug-lite.js#overrideConsole=false,startOpened=true",function(){d.core["debugger"].enable(m.console.log,"verbose")},"{ startOpened: true }",!0,!0))}},debugMode:{enabled:function(){m.setTimeout(function(){throw Error("Deprecated! Please use FusionCharts.debugger.enable instead.");
  },0);return d.core["debugger"].enable.apply(d.core["debugger"],arguments)}}},!1)}]);
  FusionCharts.register("module",["private","modules.mantle.eventmanager",function(){var d=this,m=d.window,z=d.core,q=m.Object.prototype.toString,E=q.call([]),b=function(a,b,c,g){try{a[0].call(b,c,g||{})}catch(f){setTimeout(function(){throw f;},0)}},K=function(a,c,B){if(a instanceof Array)for(var g=0,f;g<a.length;g+=1){if(a[g][1]===c.sender||void 0===a[g][1])f=a[g][1]===c.sender?c.sender:d.core,b(a[g],f,c,B),!0===c.detached&&(a.splice(g,1),--g,c.detached=!1);if(!0===c.cancelled)break}},I={unpropagator:function(){return!1===
  (this.cancelled=!0)},detacher:function(){return!1===(this.detached=!0)},undefaulter:function(){return!1===(this.prevented=!0)},listeners:{},lastEventId:0,addListener:function(a,b,c){var g,f;if(q.call(a)===E){g=[];for(f=0;f<a.length;f+=1)g.push(I.addListener(a[f],b,c));return g}if("string"!==typeof a)d.raiseError(c||d.core,"03091549","param","::EventTarget.addListener",Error("Unspecified Event Type"));else if("function"!==typeof b)d.raiseError(c||d.core,"03091550","param","::EventTarget.addListener",
  Error("Invalid Event Listener"));else return a=a.toLowerCase(),I.listeners[a]instanceof Array||(I.listeners[a]=[]),I.listeners[a].push([b,c]),b},removeListener:function(a,b,c){var g;if("function"!==typeof b)d.raiseError(c||d.core,"03091560","param","::EventTarget.removeListener",Error("Invalid Event Listener"));else if(a instanceof Array)for(g=0;g<a.length;g+=1)I.removeListener(a[g],b,c);else if("string"!==typeof a)d.raiseError(c||d.core,"03091559","param","::EventTarget.removeListener",Error("Unspecified Event Type"));
  else if(a=a.toLowerCase(),a=I.listeners[a],a instanceof Array)for(g=0;g<a.length;g+=1)a[g][0]===b&&a[g][1]===c&&(a.splice(g,1),--g)},triggerEvent:function(a,b,c,g,f,n){if("string"!==typeof a)d.raiseError(b,"03091602","param","::EventTarget.dispatchEvent",Error("Invalid Event Type"));else{a=a.toLowerCase();var p={eventType:a,eventId:I.lastEventId+=1,sender:b||Error("Orphan Event"),cancelled:!1,stopPropagation:this.unpropagator,prevented:!1,preventDefault:this.undefaulter,detached:!1,detachHandler:this.detacher};
  K(I.listeners[a],p,c);K(I.listeners["*"],p,c);switch(p.prevented){case !0:if("function"===typeof n)try{n.call(g||b||m,p,c||{})}catch(F){setTimeout(function(){throw F;},0)}break;default:if("function"===typeof f)try{f.call(g||b||m,p,c||{})}catch(s){setTimeout(function(){throw s;},0)}}return!0}}},c=d.raiseEvent=function(a,b,c,g,f,n){return I.triggerEvent(a,c,b,g,f,n)},s=d.legacyEventList={},a={};d.disposeEvents=function(a){var b,c;for(b in I.listeners)for(c=0;c<I.listeners[b].length;c+=1)I.listeners[b][c][1]===
  a&&I.listeners[b].splice(c,1)};d.raiseEventWithLegacy=function(a,b,d,g,f,n,p){var F=s[a];c(a,b,d,f,n,p);F&&"function"===typeof m[F]&&setTimeout(function(){m[F].apply(f||m,g)},0)};d.raiseEventGroup=function(b,d,B,g,f,n,p){var F=g.id,s=b+F;a[s]?(clearTimeout(a[s]),delete a[s]):F&&s?a[s]=setTimeout(function(){c(d,B,g,f,n,p);delete a[s]},0):c(d,B,g,f,n,p)};d.addEventListener=function(a,b){return I.addListener(a,b)};d.removeEventListener=function(a,b){return I.removeListener(a,b)};d.extend(z,{addEventListener:function(a,
  b){return I.addListener(a,b)},removeEventListener:function(a,b){return I.removeListener(a,b)},ready:function(a,b,c){d.ready?(z.ready=function(a,f){"function"===typeof a&&setTimeout(function(){a.call(f||z,b||z)},0)},z.ready(a,c)):"function"===typeof a&&z.addEventListener("ready",function(){z.ready(a,b,c)});return this}});z.on=z.addEventListener;d.extend(z.prototype,{addEventListener:function(a,b){return I.addListener(a,b,this)},removeEventListener:function(a,b){return I.removeListener(a,b,this)}});
  z.prototype.on=z.prototype.addEventListener;d.policies.options.events=["events",{}];d.addEventListener("beforeInitialize",function(a){a=a.sender;var b=a.options.events,c;if(b)for(c in b)"function"===typeof b[c]&&a.addEventListener(c,b[c])});d.ready&&!d.readyNotified&&(d.readyNotified=!0,d.raiseEvent("ready",{version:d.core.version,now:d.readyNow},d.core))}]);
  FusionCharts.register("module",["private","modules.mantle.ajax",function(){var d=this,m=d.window,z=parseFloat(m.navigator.appVersion.split("MSIE")[1]),q=5.5<=z&&7>=z?!0:!1,E="file:"===m.location.protocol,b=m.ActiveXObject,K=(!b||!E)&&m.XMLHttpRequest,I={objects:0,xhr:0,requests:0,success:0,failure:0,idle:0},c=function(){var d;if(K)return c=function(){I.xhr++;return new K},c();try{d=new b("Msxml2.XMLHTTP"),c=function(){I.xhr++;return new b("Msxml2.XMLHTTP")}}catch(a){try{d=new b("Microsoft.XMLHTTP"),
  c=function(){I.xhr++;return new b("Microsoft.XMLHTTP")}}catch(v){d=!1}}return d};d.core.ajax={stats:function(b){return b?I[b]:d.extend({},I)},headers:{"If-Modified-Since":"Sat, 29 Oct 1994 19:43:31 GMT","X-Requested-With":"XMLHttpRequest","X-Requested-By":"FusionCharts",Accept:"text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}};z=d.ajax=function(b,a){this.onSuccess=b;this.onError=a;this.open=!1;I.objects++;I.idle++};d.extend(z.prototype,{headers:d.core.ajax.headers,
  transact:function(b,a,v,O){var B=this,g=B.xmlhttp,f=B.headers,n=B.onError,p=B.onSuccess;b="POST"===b;var F,Q;if(!g||q)g=c(),B.xmlhttp=g;g.onreadystatechange=function(){try{4===g.readyState&&(!g.status&&E||200<=g.status&&300>g.status||304===g.status||1223===g.status||0===g.status?(p&&p(g.responseText,B,O,a),I.success++):n&&(n(Error("XmlHttprequest Error"),B,O,a),I.failure++),I.idle--,B.open=!1)}catch(b){n&&n(b,B,O,a),m.FC_DEV_ENVIRONMENT&&setTimeout(function(){throw b;},0),I.failure++}};try{g.open(b?
  "POST":"GET",a,!0);g.overrideMimeType&&g.overrideMimeType("text/plain");if(b)if("string"===typeof v)F=v;else{F=[];for(Q in v)F.push(Q+"="+(v[Q]+"").replace(/\=/g,"%3D").replace(/\&/g,"%26"));F=F.join("&")}else F=null;for(Q in f)g.setRequestHeader(Q,f[Q]);g.send(F);I.requests++;I.idle++;B.open=!0}catch(l){d.raiseError(d.core,"1110111515A","run","XmlHttprequest Error",l.message)}return g},get:function(b,a){return this.transact("GET",b,void 0,a)},post:function(b,a,c){return this.transact("POST",b,a,
  c)},abort:function(){var b=this.xmlhttp;this.open=!1;return b&&"function"===typeof b.abort&&b.readyState&&0!==b.readyState&&b.abort()},dispose:function(){this.open&&this.abort();delete this.onError;delete this.onSuccess;delete this.xmlhttp;delete this.open;I.objects--;return null}})}]);
  FusionCharts.register("module",["private","modules.mantle.runtime;1.1",function(){var d=this,m=d.window,z=/(^|[\/\\])(fusioncharts\.js)([\?#].*)?$/ig,q=/[\\\"<>;&]/,E=/^[^\S]*?(sf|f|ht)(tp|tps):\/\//i,b={},K={},I={},c={},s=d.purgeDOM=function(a){var b=a.attributes,c,f;if(b)for(c=b.length-1;0<=c;--c)f=b[c].name,"function"===typeof a[f]&&(a[f]=null);if(b=a.childNodes)for(b=b.length,c=0;c<b;c+=1)s(a.childNodes[c])},a=function(a,b,c){var f,n;for(f in a)if(a[f]instanceof Array)b[a[f][0]]=c[f];else for(n in a[f])b[a[f][n][0]]=
  c[f][n]},v=/^(FusionCharts|FusionWidgets|FusionMaps)/;d.getScriptBaseUri=function(a){var b=m.document.getElementsByTagName("script"),c=b.length,f,n;for(n=0;n<c;n+=1)if(f=b[n].getAttribute("src"),void 0!==f&&null!==f&&null!==f.match(a))return f.replace(a,"$1")};d.core.options.scriptBaseUri=function(){var a=d.getScriptBaseUri(z);return void 0===a?(d.raiseError(FusionCharts,"1603111624","run",">GenericRuntime~scriptBaseUri","Unable to locate FusionCharts script source location (URL)."),""):a}();d.isXSSSafe=
  function(a,b){return b&&null!==E.exec(a)?!1:null===q.exec(a)};d.xssEncode=function(a){return null===a||void 0===a||"function"!==typeof a.toString?"":a=a.toString().replace(/&/g,"&amp;").replace(/\'/g,"&#39;").replace(/\"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};d.loadScript=function(a,B,g,f,n){if(!a)return!1;var p=B&&B.success||B,F=B&&B.failure,s,l={type:"script",success:!1},C=function(){c[s]=clearTimeout(c[s]);l.success?p&&p(a,s):F&&F(a,s);d.raiseEvent("externalresourceload",l,d.core)};
  n=n?"":d.core.options.scriptBaseUri;s=n+a;d.isXSSSafe(s,!1)||(s="function"===typeof m.encodeURIComponent?m.encodeURIComponent(s):m.escape(s));l.path=n;l.src=s;l.file=a;if(!0===I[s]&&f)return l.success=!0,l.notReloaded=!0,"function"===typeof B&&(B(),d.raiseEvent("externalresourceload",l,d.core)),!0;if(b[s]&&f)return!1;b[s]=!0;K[s]&&K[s].parentNode&&K[s].parentNode.removeChild(K[s]);B=K[s]=m.document.createElement("script");B.type="text/javascript";B.src=s;g&&(B["\v"==="v"?"text":"innerHTML"]=g);"function"===
  typeof p&&(I[s]=!1,c[s]=clearTimeout(c[s]),B.onload=function(){I[s]=!0;l.success=!0;C()},B.onerror=function(){I[s]=!1;b[s]=!1;C()},B.onreadystatechange=function(){if("complete"===this.readyState||"loaded"===this.readyState)I[s]=!0,l.success=!0,C()});m.document.getElementsByTagName("head")[0].appendChild(B);"function"===typeof F&&(c[s]=setTimeout(function(){I[s]||C()},d.core.options.html5ResourceLoadTimeout||15E3));return!0};d.capitalizeString=function(a,b){return a?a.replace(b?/(^|\s)([a-z])/g:/(^|\s)([a-z])/,
  function(a,b,c){return b+c.toUpperCase()}):a};d.extend(d.core,{clone:function(b,c){var g=typeof b,f,n=d.extend({},this.args,!1,!1);a(d.policies,n,this);a(d.renderer.getRendererPolicy(this.options.renderer),n,this);delete n.id;delete n.animate;delete n.stallLoad;f=n.link;n=d.extend({},n,!1,!1);n.link=f;switch(g){case "object":d.extend(n,b);break;case "boolean":c=b}return c?n:new d.core(n)},isActive:function(){if(!this.ref||m.document.getElementById(this.id)!==this.ref)return!1;try{return v.test(this.ref.signature())}catch(a){return!1}},
  chartType:function(a,b){var c=this.src,f=!0===b,n=this.options,p;"string"===typeof a&&(b="object"===typeof b?b:{},c=a.replace(/[\?\#][\s\S]*$/g,""),p=null!==c.match(/\.swf\s*?$/ig),c=c.replace(/\.swf\s*?$/ig,""),n.chartType=c.replace(/^[\s\S]*\//ig,"").replace(/^fcmap_/i,""),n.chartTypeSourcePath=-1===c.indexOf("/")?b.chartTypeSourcePath||this.options.chartTypeSourcePath||d.core.options.chartTypeSourcePath||"":c.replace(/[^\/]*?$/ig,""),this.src=((d.core.options.scriptBaseUri||"")+(n.chartTypeSourcePath||
  d.core.options.chartTypeSourcePath||"")).replace(/\/\s*$/g,"")+"/"+n.chartType.replace(/\.swf\s*?$/ig,"")+".swf",p&&(d.raiseWarning(this,"08101320181","comp","FusionCharts#chartType",'Chart type has ".swf" in alias and as such has been deprecated. Please use chart type alias.'),n.chartTypeSourcePath=d.core.options.chartTypeSourcePath||""),void 0!==b.dataSource&&null!==b.dataSource?this.setChartData(b.dataSource,b.dataFormat,b.dataConfiguration):this.isActive()&&!f&&this.render());return(n.chartType||
  "").toLowerCase()}},!0);m.getChartFromId=function(a){d.raiseWarning(this,"11133001041","comp","GenericRuntime~getObjectFromId()",'Use of deprecated getChartFromId() or getMapFromId(). Replace with "FusionCharts()" or FusionCharts.items[].');return d.core.items[a]instanceof d.core?d.core.items[a].ref:m.swfobject&&m.swfobject.getObjectById(a)};m.getMapFromId=m.getChartFromId}]);
  FusionCharts.register("module",["private","api.printmanager",function(){var d=this;d.extend(d.core,{printManager:{configure:function(){d.raiseWarning(d.core,"28141714","impl",".printManager.configure","PrintManager is deprecated")},isReady:function(){d.raiseWarning(d.core,"28141714","impl",".printManager.isReady","PrintManager is deprecated");return!1},enabled:function(){d.raiseWarning(d.core,"28141714","impl",".printManager.enabled","PrintManager is deprecated");return!1},managedPrint:function(){d.raiseWarning(d.core,
  "28141714","impl",".printManager.managedPrint","PrintManager is deprecated")}}},!1)}]);
  FusionCharts.register("module",["private","modules.interface.renderer",function(){var d=this,m=d.window,z=m.document,q=function(){d.raiseError(this,"25081845","run","::RendererManager",Error("No active renderer"))},E=d.FusionChartsDOMInsertModes={REPLACE:"replace",APPEND:"append",PREPEND:"prepend"},b={undefined:{render:q,remove:q,update:q,resize:q,config:q,policies:{}}},K={},I=function(a){return function(){var b=this.ref;if(void 0===b||null===b||"function"!==typeof b[a])d.raiseError(this,"25081617",
  "run","#"+a+"()","ExternalInterface call failed. Check whether chart has been rendered.");else return b[a].apply(b,arguments)}},c=function(a,b){return"function"===typeof a[b]?function(){return a[b].apply(a,arguments)}:a[b]},s=function(a,b){var c=z.getElementById(a),f=b.id||b.getAttribute("id"),n,p;if(null===c)return!1;if(a===f)return!0;f=b.getElementsByTagName("*");n=0;for(p=f.length;n<p;n++)if(f[n]===c)return!1;return!0},a=/[^\%\d]*$/ig,v;d.policies.options.containerElementId=["renderAt",void 0];
  d.policies.options.renderer=["renderer",void 0];d.policies.options.containerElementType=["containerElementType",void 0];d.normalizeCSSDimension=function(a,b,c){a=void 0===a?c.offsetWidth||parseFloat(c.style.width):a;b=void 0===b?c.offsetHeight||parseFloat(c.style.height):b;var f={},n=c.style,p;n.width=a=a.toString?a.toString():"0";n.height=b=b.toString?b.toString():"0";if((f.widthIsRelative=a.match(/^\s*\d*\.?\d*\%\s*$/)&&!a.match(/^\s*0\%\s*$/))&&0===c.offsetWidth)for(p=c;p=p.offsetParent;)if(0<
  p.offsetWidth){a=(p.offsetWidth*parseFloat(a.match(/\d*/)[0])/100).toString();break}if((f.heightIsRelative=b.match(/^\s*\d*\.?\d*\%\s*$/)&&!b.match(/^\s*0\%\s*$/))&&20>=c.offsetHeight)for(p=c;p=p.offsetParent;)if(0<p.offsetHeight){b=(p.offsetHeight*parseFloat(b.match(/\d*/)[0])/100).toString();break}f.width=a.replace?a.replace(/^\s*(\d*\.?\d*)\s*$/ig,"$1px"):a;f.height=b.replace?b.replace(/^\s*(\d*\.?\d*)\s*$/ig,"$1px"):b;n.width=f.width;n.height=f.height;f.pixelWidth=f.widthIsRelative?c.offsetWidth:
  parseInt(f.width,10)||0;f.pixelHeight=f.heightIsRelative?c.offsetHeight:parseInt(f.height,10)||0;return f};v=d.renderer={register:function(a,c){if(!a||"function"!==typeof a.toString)throw Error("#03091436 ~renderer.register() Invalid value for renderer name.");a=a.toString().toLowerCase();if(void 0!==b[a])return d.raiseError(d.core,"03091438","param","::RendererManager>register",'Duplicate renderer name specified in "name"'),!1;b[a]=c;return!0},userSetDefault:!1,setDefault:function(a){if(!a||"function"!==
  typeof a.toString)return d.raiseError(d.core,"25081731","param","::RendererManager>setDefault",'Invalid renderer name specified in "name"'),!1;if(void 0===b[a=a.toString().toLowerCase()])return d.raiseError(d.core,"25081733","range","::RendererManager>setDefault","The specified renderer does not exist."),!1;this.userSetDefault=!1;d.policies.options.renderer=["renderer",a];return!0},notifyRender:function(a){var b=d.core.items[a&&a.id];b&&(!1!==a.success||a.silent)||d.raiseError(d.core.items[a.id],
  "25081850","run","::RendererManager",Error("There was an error rendering the chart. Enable FusionCharts JS debugger for more information."));if(b.ref=a.ref)a.ref.FusionCharts=d.core.items[a.id];d.raiseEvent("internal.DOMElementCreated",{},b)},protectedMethods:{options:!0,attributes:!0,src:!0,ref:!0,constructor:!0,signature:!0,link:!0,addEventListener:!0,removeEventListener:!0},getRenderer:function(a){return b[a]},getRendererPolicy:function(a){a=b[a].policies;return"object"===typeof a?a:{}},currentRendererName:function(){return d.policies.options.renderer[1]},
  update:function(a){K[a.id].update.apply(a,Array.prototype.slice.call(arguments,1))},render:function(a){K[a.id].render.apply(a,Array.prototype.slice.call(arguments,1))},remove:function(a){K[a.id].remove.apply(a,Array.prototype.slice.call(arguments,1))},resize:function(a){K[a.id].resize.apply(a,Array.prototype.slice.call(arguments,1))},config:function(a){K[a.id].config.apply(a,Array.prototype.slice.call(arguments,1))},dispose:function(a){K[a.id].dispose.apply(a,Array.prototype.slice.call(arguments,
  1))}};d.addEventListener("beforeInitialize",function(a){a=a.sender;var c=a.options.renderer.toLowerCase(),g;"string"===typeof a.options.renderer&&void 0===b[c]&&(a.options.renderer=d.policies.options.renderer[1]);a.options.renderer=c;K[a.id]=b[a.options.renderer];!0!==K[a.id].initialized&&"function"===typeof K[a.id].init&&(K[a.id].init(),K[a.id].initialized=!0);d.parsePolicies(a,K[a.id].policies||{},a.args);for(g in K[a.id].prototype)a[g]=K[a.id].prototype[g];for(g in K[a.id].events)a.addEventListener(g,
  K[a.id].events[g])});d.addEventListener(["rendered","dataloaderror","nodatatodisplay","rendercancelled"],function(a,b){var c=a.sender;c instanceof d.core&&c.__state.rendering&&(d.raiseEvent("internal.rendered",b,c),delete c.__state.rendering)});d.addEventListener("loaded",function(a){var b=a.sender;a=a.sender.ref;var g,f;if(void 0!==a&&null!==a&&"function"===typeof a.getExternalInterfaceMethods){try{g=a.getExternalInterfaceMethods(),g="string"===typeof g?g.split(","):[]}catch(n){g=[],d.raiseError(b,
  "13111126041","run","RendererManager^Loaded",Error("Error while retrieving data from the chart-object."+(n.message&&0<=n.message.indexOf("NPObject")?" Possible cross-domain security restriction.":"")))}for(a=0;a<g.length;a+=1)f=g[a],void 0===b[f]&&(b[f]=I(f));if(b.ref)for(f in g=v.protectedMethods,a=v.getRenderer(b.options.renderer).protectedMethods,b)if(a&&!g[f]&&!a[f]&&void 0===b.ref[f])try{b.ref[f]=c(b,f)}catch(p){}}});d.legacyEventList.resized="FC_Resized";d.extend(d.core.prototype,{render:function(a,
  b,c){var f=this,n,p,F;if((F=m[this.id])&&F.FusionCharts&&F.FusionCharts===this||(F=this.ref)&&F.FusionCharts&&F.FusionCharts===this)d.renderer.dispose(this),F===m[this.id]&&(m[this.id]=void 0);void 0!==m[this.id]&&d.raiseError(this,"25081843","comp",".render",Error("#25081843:IECompatibility() Chart Id is same as a JavaScript variable name. Variable naming error. Please use unique name forchart JS variable, chart-id and container id."));c?"function"!==typeof c&&(c=void 0):"function"===typeof b?(c=
  b,b=void 0):b||"function"!==typeof a||(c=a,a=void 0);b=(b||this.options.insertMode).toLowerCase()||E.REPLACE;void 0===a&&(a=this.options.containerElementId);"string"===typeof a&&(a=z.getElementById(a));if(void 0===a||null===a)return d.raiseError(this,"03091456","run",".render()",Error("Unable to find the container DOM element.")),this;if(s(this.id,a))return d.raiseError(this,"05102109","run",".render()",Error("A duplicate object already exists with the specific Id: "+this.id)),this;n=z.createElement(this.options.containerElementType||
  "span");n.setAttribute("id",this.id);if("append"!==b&&"prepend"!==b)for(;a.hasChildNodes();)a.removeChild(a.firstChild);"prepend"===b&&a.firstChild?a.insertBefore(n,a.firstChild):a.appendChild(n);this.options.containerElement=a;this.options.containerElementId=a.id;if(b=n.style)b.position="relative",b.textAlign="left",b.lineHeight="normal",b.display="inline-block",b.zoom="1",b.fontWeight="normal",b.fontVariant="normal",b.fontStyle="normal",b.textDecoration="none",b["*DISPLAY"]="inline",b.padding="0",
  b.margin="0",b.border="none",b.direction="ltr";this.options.containerClassName&&(n.className=this.options.containerClassName);b=d.normalizeCSSDimension(this.width,this.height,n);this.__state.renderedWidth=b.pixelWidth;this.__state.renderedHeight=b.pixelHeight;this.__state.rendering=!0;d.raiseEvent("beforeRender",p={container:a,width:this.width,height:this.height,renderer:this.options.renderer},this,void 0,function(a,b){d.renderer.render(f,n,function(){d.renderer.notifyRender.apply(this,arguments);
  if(c)try{c.call(a.sender,b.container)}catch(f){setTimeout(function(){throw f;})}})},function(){d.raiseEvent("renderCancelled",p,f)});return this},remove:function(){d.renderer.remove(this);return this},resizeTo:function(b,c,g){var f=this,n=f.width,p=f.height,s=f.__state;"object"===typeof b&&(g=c,c=b.h,b=b.w);b=null===b||void 0===b?n:b.toString().replace(a,"");c=null===c||void 0===c?p:c.toString().replace(a,"");!0!==g?d.raiseEvent("beforeresize",{currentWidth:n,currentHeight:p,newWidth:b,newHeight:c},
  f,void 0,function(){f.width=b;f.height=c;d.renderer.resize(f,{width:b,height:c});d.raiseEventWithLegacy("resized",{width:f.width,height:f.height,prevWidth:n,prevHeight:p,pixelWidth:f.ref&&f.ref.offsetWidth||0,pixelHeight:f.ref&&f.ref.offsetHeight||0,originalWidth:s.renderedWidth,originalHeight:s.renderedHeight},f,[f.id,f.width,f.height])},function(){d.raiseEvent("resizecancelled",{currentWidth:n,currentHeight:p,cancelledTargetWidth:b,cancelledTargetHeight:c},f)}):(f.width=b,f.height=c);return this},
  dispose:function(){var a=this,b={};d.raiseEvent("beforeDispose",b,a,void 0,function(){d.renderer.dispose(a);d.raiseEvent("disposed",b,a);d.disposeEvents(a);delete d.core.items[a.id];for(var c in a)a.hasOwnProperty(c)&&delete a[c];a.disposed=!0},function(){d.raiseEvent("disposeCancelled",b,a)})},configure:function(a,b){var c;a&&("string"===typeof a?(c={},c[a]=b):c=a,d.renderer.config(this,c))}});d.extend(d.core,{setCurrentRenderer:function(){var a=v.setDefault.apply(v,arguments);v.userSetDefault=!0;
  return a},getCurrentRenderer:function(){return v.currentRendererName.apply(v,arguments)},render:function(a,b){return a instanceof d.core?(a.render(b),a):(new d.core(a)).render(b)}},!1)}]);
  FusionCharts.register("module",["private","modules.interface.transcoder",function(){var d=this,m=d.window,z=d.transcoders={},q={},E={},b=/url$/i,K=d._interactiveCharts={selectscatter:[!0,!1],dragcolumn2d:[!0,!0],dragarea:[!0,!0],dragline:[!0,!0],dragnode:[!0,!0]},I=function(b,c,p,g){var v=p.obj;p=p.args;p.dataSource=b;p.xmlHttpRequestObject=c;p.source="XmlHttpRequest";p.url=g;d.raiseEvent("dataLoadRequestCompleted",p,v,void 0,s,a)},c=function(a,b,c){var g=c.obj;c=c.args;c.error=a;c.httpStatus=b.xhr&&
  b.xhr.status?b.xhr.status:-1;c.xmlHttpRequestObject=b;d.raiseEvent("dataLoadError",c,g);"function"===typeof m.FC_DataLoadError&&m.FC_DataLoadError(g.id,c)},s=function(a,b){a.sender.setChartData(b.dataSource,b.dataFormat,b.config,b.successcallback,b.silent)},a=function(a,b){d.raiseEvent("dataLoadCancelled",b,a.sender);b.xmlHttpRequestObject.abort()},v=function(a,b){var p=a.sender,g=p.__state,s=b.url;p.options.dataSource=b.url;g.dhmXhrObj||(g.dhmXhrObj=new d.ajax(I,c));g.dhmXhrObj.get("function"===
  typeof m.decodeURIComponent?m.decodeURIComponent(s):m.unescape(s),{obj:p,args:b})},O=function(a,b){var c=a.sender,g=c.__state;d.raiseEvent("dataLoadRequestCancelled",b,c);g&&g.dhmXhrObj&&g.dhmXhrObj.abort()},B=function(a,b){var c=a.sender,g=c.__state,s=c.id;q[s]=b;E[s]&&delete E[s];E[s]={};g.dataReady=void 0;g.dataAvailable=!0;!0!==b.silent&&(!0!==c.options.safeMode||!0!==g.rendering||c.isActive()?(delete g.args,d.renderer.update(c,b)):(g.updatePending=b,d.raiseWarning(c,"23091255","run","::DataHandler~update",
  "Renderer update was postponed due to async loading.")));d.raiseEvent("dataUpdated",b,c,void 0,b.successcallback)},g=function(a,b){d.raiseEvent("dataUpdateCancelled",b,a.sender,void 0,b.failurecallback)};d.dataFormats={};d.policies.options.dataSource=["dataSource",void 0];d.policies.options.dataFormat=["dataFormat",void 0];d.policies.options.dataConfiguration=["dataConfiguration",void 0];d.policies.options.showDataLoadingMessage=["showDataLoadingMessage",!1];d.addDataHandler=function(a,b){if("string"!==
  typeof a||void 0!==z[a.toLowerCase()])d.raiseError(d.core,"03091606","param","::DataManager.addDataHandler",Error("Invalid Data Handler Name"));else{var c={},g=a.toLowerCase();z[g]=b;b.name=a;c["set"+a+"Data"]=function(b,c,n){return this.setChartData(b,a,c,n)};b.transportable&&(c["set"+a+"Url"]=function(b,c,n){return this.setChartDataUrl(b,a,c,n)},d.dataFormats[a+"URL"]=g+"Url");c["get"+a+"Data"]=function(){return this.getChartData(a)};d.dataFormats[a]=g;d.extend(d.core,c,!0)}};d.extend(d.core.prototype,
  {setChartDataUrl:function(a,c,g,s,B){if(void 0===c||null===c||"function"!==typeof c.toString)c=this.options.dataFormat,d.raiseWarning(this,"03091609","param","FusionCharts#setChartDataUrl","Invalid Data Format. Reverting to current data format - "+c);c=c.toString().toLowerCase();c=b.test(c)?c.slice(0,-3):c;d.raiseEvent("dataLoadRequested",{source:"XmlHttpRequest",url:a,dataFormat:c,silent:!!B,config:g,successcallback:s},this,void 0,v,O)},setChartData:function(a,c,p,s,v){var l=this.options,C,A;if(void 0===
  c||null===c||"function"!==typeof c.toString)c=l.dataFormat,d.raiseWarning(this,"03091610","param","FusionCharts#setChartData","Invalid Data Format. Reverting to current data format - "+c);c=c.toString().toLowerCase();b.test(c)?this.setChartDataUrl(a,c,p,s,v):(l.dataSource=a,C=c,l.dataFormat=c,A=z[C],"undefined"===typeof A?d.raiseError(d.core,"03091611","param","FusionCharts#setChartData",Error("Data Format not recognized")):(c=(c=d.renderer&&d.renderer.getRenderer(l.renderer||d.renderer.currentRendererName()))&&
  c.dataFormat,p=c===C?A.passthrough?A.passthrough(a,p):{data:a}:A.encode(a,this,p||l.dataConfiguration)||{},p["native"]=c===C,p.format=p["native"]?c:"xml",p.dataFormat=C,p.dataSource=a,p.silent=!!v,"function"===typeof s&&(p.successcallback=s),d.raiseEvent("beforeDataUpdate",p,this,void 0,B,g)))},getChartData:function(a,b){var c=this.options,g=this.id,s;if(void 0===a||"function"!==typeof a.toString||void 0===(s=z[a=a.toString().toLowerCase()]))d.raiseError(this,"25081543","param","::transcoder~getChartData()",
  Error('Unrecognized data-format specified in "format"'));else return E[g][a]?c=E[g][a]:q[g]?(a===q[g].format?E[g][a]=q[g]:(E[g].xml||(E[g].xml="xml"===q[g].format?q[g]:z[q[g].format].encode(q[g].data,this,c.dataConfiguration)),E[g][a]||(E[g][a]=s.decode(E[g].xml.data,this,c.dataConfiguration))),c=E[g][a]):c={error:Error("Data not defined")},!0===Boolean(b)?c:c.data},dataReady:function(a){return a?this.__state.dataAvailable:this.__state.dataReady}});d.extend(d.core,{transcodeData:function(a,b,c,g,
  s){if(b&&"function"===typeof b.toString&&c&&"function"===typeof c.toString&&void 0!==z[c=c.toString().toLowerCase()]&&void 0!==z[b=b.toString().toLowerCase()])return a=z[b].encode(a,this,s),c=z[c].decode(a.data,this,s),c.error instanceof Error||(c.error=a.error),g?c:c.data;d.raiseError(this,"14090217","param",".transcodeData()",Error("Unrecognized data-format specified during transcoding."))}},!1);d.getRenderer&&!d.getRenderer("flash")||d.addEventListener("DataLoadRequested",function(a){var b=a.sender;
  b.options&&"flash"===b.options.renderer&&b.options.useLegacyXMLTransport&&a.preventDefault()});d.addEventListener("beforeInitialize",function(a){a=a.sender;var c=a.options,g=c.dataSource,s=d.renderer&&d.renderer.getRenderer(c.renderer);delete q[a.id];E[a.id]={};if(void 0!==g&&null!==g){a.__state.dataSetDuringConstruction=!0;if("string"!==typeof c.dataFormat)switch(typeof g){case "function":g=c.dataSource=g.call(a,c.dataConfiguration);c.dataFormat="JSON";break;case "string":c.dataFormat=/^\s*?\{[\s\S]*\}\s*?$/g.test(a.options.dataFormat)?
  "JSON":"XML";break;case "object":c.dataFormat="JSON"}c.dataFormat&&c.dataFormat.toString&&(a.__state.dataFetchDuringConstruction=b.test(c.dataFormat.toString()));a.setChartData(g,c.dataFormat,void 0,void 0,!0)}else s&&(a.__state.dataSetDuringConstruction=!1,d.raiseWarning(a,"1810131922A","param",":dataHandler~event:beforeInitialize","Data source was not defined during construction, hence set to blank renderer default - "+s.dataFormat),a.setChartData("",s.dataFormat,void 0,void 0,!0),a.__state.dataAvailable=
  !1)});d.addEventListener("beforeDispose",function(a){var b=a.sender;delete q[a.sender.id];delete E[a.sender.id];b&&b.__state&&b.__state.dhmXhrObj&&b.__state.dhmXhrObj.abort()});d.addEventListener("disposed",function(a){delete E[a.sender.id]});d.addEventListener("loaded",function(a){a=a.sender;var b=a.__state.updatePending;a instanceof d.core&&void 0!==b&&(delete a.__state.updatePending,d.renderer.update(a,b))});d.addEventListener("dataUpdated",function(a,b){var c=a.sender,g=c.__state;g.rendering&&
  (g.dataFetchDuringConstruction||g.updatePending)&&(delete g.dataFetchDuringConstruction,delete g.updatePending,d.renderer.update(c,b))});d.addEventListener(["dataLoadError","dataInvalid"],function(a){a.sender.__state.dataAvailable=!1});d.addEventListener("loaded",function(a){a=a.sender;var b=a.__state,c,g,s;s=function(a,b){return function(c){return!1===c?b.apply(this):this.ref.getUpdatedXMLData?d.core.transcodeData(this.ref.getUpdatedXMLData(),"xml",a):this.getData?this.getData(a):b.apply(this)}};
  if(a.chartType&&K[a.chartType()]&&K[a.chartType()][0]){for(c in d.transcoders)g=d.transcoders[c].name,g="get"+g+"Data",a[g]=s(c,a.constructor.prototype[g]),a[g]._dynamicdatarouter=!0;b.dynamicDataRoutingEnabled=!0}else if(b.dynamicDataRoutingEnabled){for(c in d.transcoders)g=d.transcoders[c].name,g="get"+g+"Data",a.hasOwnProperty(g)&&a[g]._dynamicdatarouter&&delete a[g];b.dynamicDataRoutingEnabled=!1}})}]);"object"!==typeof JSON&&(JSON={});
  (function(){function d(b){return 10>b?"0"+b:b}function m(b){E.lastIndex=0;return E.test(b)?'"'+b.replace(E,function(a){var b=I[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+b+'"'}function z(d,a){var v,q,B,g,f=b,n,p=a[d];p&&"object"===typeof p&&"function"===typeof p.toJSON&&(p=p.toJSON(d));"function"===typeof c&&(p=c.call(a,d,p));switch(typeof p){case "string":return m(p);case "number":return isFinite(p)?String(p):"null";case "boolean":case "null":return String(p);
  case "object":if(!p)return"null";b+=K;n=[];if("[object Array]"===Object.prototype.toString.apply(p)){g=p.length;for(v=0;v<g;v+=1)n[v]=z(v,p)||"null";B=0===n.length?"[]":b?"[\n"+b+n.join(",\n"+b)+"\n"+f+"]":"["+n.join(",")+"]";b=f;return B}if(c&&"object"===typeof c)for(g=c.length,v=0;v<g;v+=1)"string"===typeof c[v]&&(q=c[v],(B=z(q,p))&&n.push(m(q)+(b?": ":":")+B));else for(q in p)Object.prototype.hasOwnProperty.call(p,q)&&(B=z(q,p))&&n.push(m(q)+(b?": ":":")+B);B=0===n.length?"{}":b?"{\n"+b+n.join(",\n"+
  b)+"\n"+f+"}":"{"+n.join(",")+"}";b=f;return B}}"function"!==typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+d(this.getUTCMonth()+1)+"-"+d(this.getUTCDate())+"T"+d(this.getUTCHours())+":"+d(this.getUTCMinutes())+":"+d(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var q=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
  E=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,b,K,I={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},c;"function"!==typeof JSON.stringify&&(JSON.stringify=function(d,a,v){var m;K=b="";if("number"===typeof v)for(m=0;m<v;m+=1)K+=" ";else"string"===typeof v&&(K=v);if((c=a)&&"function"!==typeof a&&("object"!==typeof a||"number"!==typeof a.length))throw Error("JSON.stringify");return z("",{"":d})});
  "function"!==typeof JSON.parse&&(JSON.parse=function(b,a){function c(b,g){var f,n,d=b[g];if(d&&"object"===typeof d)for(f in d)Object.prototype.hasOwnProperty.call(d,f)&&(n=c(d,f),void 0!==n?d[f]=n:delete d[f]);return a.call(b,g,d)}var d;b=String(b);q.lastIndex=0;q.test(b)&&(b=b.replace(q,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(b.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
  "]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return d=eval("("+b+")"),"function"===typeof a?c({"":d},""):d;throw new SyntaxError("JSON.parse");})})();
  FusionCharts.register("module",["private","modules.data.json",function(){var d=this,m=d.window,z=m.document,q=d.xssEncode,E,b;void 0===m.JSON&&d.raiseError(this,"1113062012","run","JSONDataHandler",Error("Could not find library support for JSON parsing."));d.policies.options.allowIESafeXMLParsing=["_allowIESafeXMLParsing",!0];E=function(){var b={set:!0,trendlines:!0,vtrendlines:!0,line:{trendlines:!0,vtrendlines:!0},data:!0,dataset:!0,lineset:!0,categories:!0,category:!0,linkeddata:!0,application:!0,
  definition:!0,axis:!0,connectors:!0,connector:{connectors:!0},trendset:!0,row:{rows:!0},column:{columns:!0},label:{labels:!0},color:{colorrange:!0},dial:{dials:!0},pointer:{pointers:!0},point:{trendpoints:!0},process:{processes:!0},task:{tasks:!0},milestone:{milestones:!0},datacolumn:{datatable:!0},text:{datacolumn:!0},item:{legend:!0},alert:{alerts:!0},groups:{annotations:!0},items:{groups:!0,data:!0},shapes:!0,shape:{shapes:!0},entitydef:!0,entity:{entitydef:!0}},q={chart:"linkedchart",map:"linkedmap",
  set:"data",vline:{chart:"data",graph:"data",dataset:"data",categories:"category",linkedchart:"data"},apply:{application:"application"},style:{definition:"definition"},marker:{application:"application",definition:"definition",data:"items"},entity:{entitydef:"entitydef",data:"data"},shape:{shapes:"shapes"},connector:{connectors:{chart:"connector",linkedchart:"connector",map:"connectors",linkedmap:"connectors"}},annotationgroup:{annotations:"groups"},annotation:{groups:"items"}},c={vline:{vline:"true"}},
  s={chart:!0,map:!0,graph:!0},a={dataset:"data",categories:"category"},v={target:"target",value:"value"},E={styles:{definition:!0,application:!0},chart:{value:!0,target:!0},graph:{value:!0,target:!0},linkedchart:{value:!0,target:!0},markers:{definition:!0,application:!0,shapes:!0,connectors:!0,data:!0},map:{entitydef:!0,data:!0},linkedmap:{entitydef:!0,data:!0}},B,g;B={append:function(a,c,g,d){!b[g]||!0!==b[g]&&!0!==b[g][d]?c[g]=a:(c[g]instanceof Array||(c[g]=[]),c[g].push(a))},child:function(b,g,
  p,F){var m,l,C,A,W,r;for(m=0;m<g.length;m+=1)switch(C=g[m],l=C.nodeName.toLowerCase(),C.nodeType){case 1:A=B.attr(C.attributes);r=s[l];!0===r&&(W=A,A={},A[l]=W);r=c[l];"object"===typeof r&&d.extend(A,r);if(r=q[l])if("object"===typeof r&&"object"===typeof r[p])for(W in W=void 0,r[p]){if(F[W]){l=r[p][W];break}}else"object"===typeof r&&"string"===typeof r[p]?l=r[p]:"string"===typeof r&&(l=r);C.childNodes.length&&((r=E[p])&&r[l]?B.child(b,C.childNodes,l,F):B.child(A,C.childNodes,l,F));(r=E[p])&&r[l]||
  B.append(A,b,l,p);break;case 3:if(r=v[p])l=r,A=C.data,B.append(A,b,l,p);r=a[p];"string"===typeof r&&F.chart&&parseInt(F.chart.compactdatamode,10)&&(l=r,A=C.data,b[l]=b[l]?b[l]+A:A)}},attr:function(a){var b,c={};if(!a||!a.length)return c;for(b=0;b<a.length;b+=1)c[a[b].nodeName.toLowerCase()]=a[b].value||a[b].nodeValue;return c}};g=function(a){var b={},c,s,v,l,C,A,W,r,q;if("object"!==typeof a&&a&&"function"!==typeof a.toString)return g.errorObject=new TypeError("xml2json.parse()"),b;a=a.toString().replace(/<\!--[\s\S]*?--\x3e/g,
  "").replace(/<\?xml[\s\S]*?\?>/ig,"").replace(/&(?!([^;\n\r]+?;))/g,"&amp;$1");a=a.replace(/^\s\s*/,"");for(var I=/\s/,E=a.length;I.test(a.charAt(--E)););a=a.slice(0,E+1);if(!a)return b;try{m.DOMParser?c=(new m.DOMParser).parseFromString(a,"text/xml"):z.body&&d.core.options.allowIESafeXMLParsing?(s=z.createElement("xml"),s.innerHTML=a,z.body.appendChild(s),c=s.XMLDocument,z.body.removeChild(s)):(c=new m.ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(a));if(!(c&&c.childNodes&&1===c.childNodes.length&&
  (v=c.childNodes[0])&&v.nodeName&&(l=v.nodeName.toLowerCase()))||"chart"!==l&&"map"!==l&&"graph"!==l)return g.errorObject=new TypeError("xml2json.parse()"),b;if("graph"===l){C=c.createElement("chart");for(q=(W=v.attributes)&&W.length||0;q--;)C.setAttribute(W[q].name,W[q].value),W.removeNamedItem(W[q].name);if(q=(r=v.childNodes)&&r.length||0)--q,A=v.removeChild(r[q]),C.appendChild(A);for(;q--;)A=v.removeChild(r[q]),C.insertBefore(A,C.firstChild);c.replaceChild(C,v);v=C}}catch(V){g.errorObject=V}v?(v.attributes&&
  (b[l]=B.attr(v.attributes)),v.childNodes&&B.child(b,v.childNodes,l,b),delete g.errorObject):g.errorObject=new TypeError("xml2json.parse()");return b};return function(a){delete g.errorObject;return{data:g(a),error:g.errorObject}}}();b=function(){var b,d;b={items:{explode:{data:"set",groups:{annotations:"annotationgroup"},items:{groups:"annotation"}},text:{chart:{target:"target",value:"value"},graph:{target:"target",value:"value"}},dsv:{dataset:{data:"dataset"},categories:{category:"categories"}},attr:{chart:{chart:"chart"},
  graph:{graph:"graph"},map:{map:"map"},linkedmap:{map:"map"},linkedchart:{chart:"chart"}},group:{styles:{definition:"style",application:"apply"},map:{data:"entity",entitydef:"entity"},markers:{definition:"marker",application:"marker",shapes:"shape",connectors:"connector",items:"marker"}},tag:{markers:{items:"data"}}},qualify:function(b,d,a){return"object"===typeof this.items[b][a]?this.items[b][a][d]:this.items[b][a]}};d=function(c,s,a,v){var m="",B="",g="",f="",n,p,F;s&&"function"===typeof s.toLowerCase&&
  (s=s.toLowerCase());if(void 0===a&&c[s])for(n in c[s])p=n.toLowerCase(),"compactdatamode"===p&&(v.applyDSV=1==c[s][n]);if(c instanceof Array)for(n=0;n<c.length;n+=1)g="string"===typeof c[n]?g+q(c[n]):g+d(c[n],s,a,v);else{for(n in c)p=n.toLowerCase(),c[n]instanceof Array&&(F=b.qualify("group",p,s))?(g=b.qualify("tag",p,s)||p,B+="<"+g+">"+d(c[n],F,s,v)+"</"+g+">"):"object"===typeof c[n]?(F=b.qualify("attr",p,s))?(f=d(c[n],F,s,v).replace(/\s*\/\>/ig,""),s=p):B+=d(c[n],p,s,v):v.applyDSV&&(F=b.qualify("dsv",
  p,s))?B+=c[n]:(F=b.qualify("text",p,s))?(g=b.qualify("tag",p,s)||F,B+="<"+g+">"+c[n]+"</"+g+">"):"vline"===p&&Boolean(c[n])?s="vline":m+=" "+p+'="'+q(c[n]).toString().replace(/\"/ig,"&quot;")+'"';if(F=b.qualify("explode",a,s))s=F;g=s;g=(""!==f?f:"<"+g)+m+(""!==B?">"+B+"</"+g+">":" />")}return g};return function(b){delete d.errorObject;if(b&&"string"===typeof b)try{b=JSON.parse(b)}catch(s){d.errorObject=s}return{data:d(b,b&&b.graph?"graph":b&&b.map?"map":"chart",void 0,{}),error:d.errorObject}}}();
  d.addDataHandler("JSON",{encode:b,decode:E,passthrough:function(b){var d={data:{}};if(!b)return d;if("string"!==typeof b)try{b=JSON.stringify(b)}catch(c){return d.error=c,d}try{d.data=JSON.parse(b.replace(/"([^"]+)":/g,function(a,b){return'"'+b.toLowerCase()+'":'}))}catch(s){d.error=s}return d},transportable:!0})}]);FusionCharts.register("module",["private","modules.data.xml",function(){var d=function(d){return{data:d,error:void 0}};this.addDataHandler("XML",{encode:d,decode:d,transportable:!0})}]);
  FusionCharts.register("module",["private","modules.data.csv",function(){var d=this,m=d.window,z=d.core,q=m.parseInt,E=m.parseFloat,b=function(b){return b},K;K=function(b){this.data=[];this.columnCount=this.rowCount=0;this.configure(b)};K.decodeLiterals=function(b,c){return void 0!==b&&null!==b&&b.toString?b.replace("{tab}","\t").replace("{quot}",'"').replace("{apos}","'"):c};K.prototype.set=function(b,c,d){var a;if(this.rowCount<=b){for(a=this.rowCount;a<=b;a+=1)this.data[a]=[];this.rowCount=b+1}this.columnCount<=
  c&&(this.columnCount=c+1);this.data[b][c]=d};K.prototype.setRow=function(b,c){var d;if(this.rowCount<=b){for(d=this.rowCount;d<=b;d+=1)this.data[d]=[];this.rowCount=b+1}this.columnCount<c.length&&(this.columnCount=c.length);this.data[b]=c};K.prototype.get=function(b,c){var d=this.data;return d[b]&&d[b][c]};K.prototype.configure=function(b){var c=K.decodeLiterals;this.delimiter=c(b.delimiter,",");this.qualifier=c(b.qualifier,'"');this.eolCharacter=c(b.eolCharacter,"\r\n");this.numberFormatted=!!q(b.numberFormatted,
  0)};K.prototype.clear=function(){this.data=[];this.columnCount=this.rowCount=0};K.prototype.toString=function(){var b,c,d="";for(b=0;b<this.rowCount;b+=1)c=this.qualifier+this.data[b].join(this.qualifier+this.delimiter+this.qualifier)+this.qualifier,d+='""'===c?this.eolCharacter:c+this.eolCharacter;0<this.rowCount&&(d=d.slice(0,d.length-2));return d};d.addDataHandler("CSV",{encode:function(b,c){d.raiseError(c,"0604111215","run","::CSVDataHandler.encode()","FusionCharts CSV data-handler only supports encoding of data.");
  throw Error("FeatureNotSupportedException()");},decode:function(d,c){var s=z.transcodeData(d,"xml","json")||{},a=c.jsVars,v,m,B,g,f,n,p,F=s.chart||s.map||s.graph||{};p=Boolean(F.exporterrorcolumns||0);var q=s.categories&&s.categories[0]&&s.categories[0].category||[],l=s.map&&!s.chart||a&&a.instanceAPI&&"geo"===a.instanceAPI.defaultSeriesType,C=!1,A=!1,W=!1,r=!1;m=!1;var oa=b,ga={},ba,V,ta,za,Aa,Z,U,na,H,T,fa;f=0;v=new K({separator:F.exportdataseparator,qualifier:F.exportdataqualifier,numberFormatted:F.exportdataformattedval});
  z.formatNumber&&v.numberFormatted&&(oa=function(a){return z.formatNumber(a,F)});if(l)for(T in ga.geo=!0,q=a.hcObj&&a.hcObj.entities&&a.hcObj.entities.items||[],v.setRow(0,["Id"," Short Name","Long Name","Value","Formatted Value"]),a=0,q)A=q[T],fa=A.eJSON,m=A.value,v.setRow(++a,[T,fa.shortLabel,fa.label,void 0===m?"":m,A.formattedValue]);else if(void 0!==(ba=s.dials&&s.dials.dial||s.pointers&&s.pointers.pointer||s.value))if(ga.gauge=!0,"string"===typeof ba)v.set(0,0,oa(ba)),ga.singlevalue=!0,"string"===
  typeof s.target&&(v.set(0,1,oa(s.target)),ga.bullet=!0);else for(v.setRow(0,["Id","Value"]),ga.multivalue=!0,a=0,n=1,f=ba.length;a<f;a+=1,n+=1)v.setRow(n,[n,oa(ba[a].value)]);else if(ba=s.dataset||!(s.data instanceof Array)&&[]){ga.multiseries=!0;B=1;if(V=s.lineset)ba=ba.concat(V),ga.lineset=!0;if(ta=s.axis)ba=ba.concat(ta),ga.multiaxis=!0;Z=ba.length;Aa=q.length;if(!(Z=ba.length)){for(a=0;a<Aa;a+=1)U=q[a],v.set(a+1,0,U.label||U.name);ga.multilevel=!0}for(a=0;a<Z;a+=1)for(na=ba,na[a].dataset?(na=
  na[a].dataset,g=0,za=na.length):(na=ba,g=a,za=g+1);g<za&&!C&&!W;g+=1,B+=1){l=na[g];v.set(0,B,l.seriesname);"string"===typeof l.data&&(ga.compactdata=!0,l.data=l.data.split(F.dataseparator||"|"));n=f=0;for(H=l.data&&l.data.length||0;f<H||f<Aa;f+=1){U=q[f];m=n+1;T=l.data&&l.data[n]||{};if(void 0!==T.x&&void 0!==T.y){C=ga.xy=!0;break}if(void 0!==T.open||void 0!==T.high||void 0!==T.close||void 0!==T.low){r=ga.ohlc=!0;break}if(void 0!==T.rowid&&void 0!==T.columnid){W=ga.heatmap=!0;break}if(f<Aa&&!U.vline){v.set(m,
  0,U.label||U.name);U=E(T?T.value:"");U=isNaN(U)?"":oa(U);v.set(m,B,U);if(A||p||T.errorvalue)A||v.set(0,B+1,"Error"),fa=1,v.set(m,B+1,oa(T.errorvalue));n+=1}}fa&&(B+=fa,fa=0)}V&&(ba=ba.slice(0,-V.length));ta&&(ba=ba.slice(0,-ta.length))}else if(ba=s.data){v.set(0,1,F.yaxisname||"Value");ga.singleseries=!0;m="1"==F.showsumatend;a=0;for(Aa=ba.length;a<Aa;a+=1)T=ba[a],T.vline||(U=E(T.value?T.value:""),v.setRow(a+1,[T.label||T.name,isNaN(U)?"":(f+=U,oa(U))]));m&&(ga.summation=!0,v.setRow(a+1,[F.sumlabel||
  "Total",oa(f)]))}if(r)for(v.clear(),v.setRow(0,["Open","Close","High","Low"]),a=0,m=1,ba=s.dataset,za=ba.length;a<za;a+=1)for(f=0,l=ba[a]&&ba[a].data||[],Z=l.length;f<Z;f+=1,m+=1)T=l[f]||{},v.setRow(f+1,[oa(T.open),oa(T.close),oa(T.high),oa(T.low)]);else if(C)for(v.clear(),A=!1,fa=0,v.setRow(0,["Series","x","y"]),a=0,m=1,ba=s.dataset,za=ba.length;a<za;a+=1)for(f=0,l=ba[a]&&ba[a].data||[],Z=l.length;f<Z;f+=1,m+=1){T=l[f]||{};U=[ba[a].seriesname,oa(T.x),oa(T.y)];void 0!==T.z&&(U.push(oa(T.z)),fa||(v.set(0,
  3,"z"),fa=1));if(A||p||void 0!==T.errorvalue||void 0!==T.horizontalerrorvalue||void 0!==T.verticalerrorvalue)s=oa(T.errorvalue),U.push(T.errorvalue,void 0===T.horizontalerrorvalue?s:oa(T.horizontalerrorvalue),void 0===T.verticalerrorvalue?s:oa(T.verticalerrorvalue)),A||(v.set(0,fa+3,"Error"),v.set(0,fa+4,"Horizontal Error"),v.set(0,fa+5,"Vertical Error")),A=ga.error=!0;v.setRow(m,U)}else if(W){v.clear();C={};W={};a=0;f=1;q=s.rows&&s.rows.row||[];for(p=q.length;a<p;a+=1,f+=1)U=q[a],U.id&&(C[U.id.toLowerCase()]=
  f,v.set(f,0,U.label||U.id));a=0;f=1;q=s.columns&&s.columns.column||[];for(p=q.length;a<p;a+=1,f+=1)U=q[a],U.id&&(W[U.id.toLowerCase()]=f,v.set(0,f,U.label||U.id));l=s.dataset&&s.dataset[0]&&s.dataset[0].data||[];a=0;for(p=l.length;a<p;a+=1)T=l[a],m=T.rowid.toLowerCase(),B=T.columnid.toLowerCase(),C[m]||(C[m]=v.rowCount,v.set(v.rowCount,0,T.rowid)),W[B]||(W[B]=v.columnCount,v.set(0,v.columnCount,T.columnid)),v.set(C[m],W[B],oa(T.value))}ba=q=V=ta=null;0<v.rowCount&&void 0===v.get(0,0)&&v.set(0,0,F.xaxisname||
  "Label");return{data:v.toString(),error:void 0,predictedFormat:ga}},transportable:!1});z.addEventListener("Loaded",function(b){b=b.sender;"javascript"!==b.options.renderer||b.getDataAsCSV||(b.getDataAsCSV=b.ref.getDataAsCSV=b.getCSVData)})}]);
  FusionCharts.register("module",["private","modules.renderer.js",function(){var d=this,m=d.window,z=m.document,q=d.core.options,E=/msie/i.test(m.navigator.userAgent)&&!m.opera,b=Boolean(m.SVGAngle||z.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")),K=function(){},I=d.hcLib={cmdQueue:[]},c=I.moduleCmdQueue={base:[],charts:[],powercharts:[],widgets:[],maps:[]},s=I.moduleDependencies={},a=I.moduleMeta={base:"fusioncharts.js",charts:"fusioncharts.charts.js",powercharts:"fusioncharts.powercharts.js",
  widgets:"fusioncharts.widgets.js",maps:"fusioncharts.maps.js"},v={},O=I.getMetaSentence=function(){var a={};return function(b){b=b&&b.replace(/(^\s*)|(\s*$)/g,"")||"";return a[b]||(a[b]={key:b,subject:b.replace(/[^\/]*?$/ig,""),predicate:b.replace(/^.*\//ig,"")})}}(),B=I.getDependentModuleName=function(a){var b=[],c,f;a=O(a).predicate;for(c in s)void 0!==(f=s[c][a])&&(b[f]=c);return b},g=I.hasModule=function(a){var b,c;if(a instanceof Array){b=0;for(c=a.length;b<c;b+=1)if(!Boolean(d.modules["modules.renderer.js-"+
  O(a[b]).predicate]))return!1;return!0}return Boolean(d.modules["modules.renderer.js-"+O(a).predicate])},f=I.loadModule=function(b,c,f,n){b instanceof Array||(b=[b]);var p=b.length,s=0,m;m=function(){if(s>=p)c&&c();else{var F=b[s],B=F&&F.match(/[^\/]*$/i)[0],ta=a[F];s+=1;if(F){if(g(B)){m();return}if(v[B]){d.raiseError(n||d.core,"1112201445A","run","JavaScriptRenderer~loadModule() ","required resources are absent or blocked from loading.");f&&f(B);return}}else f&&f(B);F=d.core.options["html5"+d.capitalizeString(B)+
  "Src"];d.loadScript(void 0===F?ta:F,{success:function(){g(B)?m():f&&f(B)},failure:f&&function(){f(B)}},void 0,!0)}};m()},n=I.executeWaitingCommands=function(a){for(var b;b=a.shift();)"object"===typeof b&&K[b.cmd].apply(b.obj,b.args)},p=function(a){delete a.sender.jsVars._reflowData;a.sender.jsVars._reflowData={};delete a.sender.jsVars._reflowClean},F=function(){var a=function(){};a.prototype={LoadDataErrorText:"Error in loading data.",XMLLoadingText:"Retrieving data. Please wait",InvalidXMLText:"Invalid data.",
  ChartNoDataText:"No data to display.",ReadingDataText:"Reading data. Please wait",ChartNotSupported:"Chart type not supported.",PBarLoadingText:"",LoadingText:"Loading chart. Please wait",RenderChartErrorText:"Unable to render chart."};return a.prototype.constructor=a}(),Q=I.getContainerBackgroundColor=function(a){var c=a.options.containerBackgroundColor,f=a.options.containerBackgroundOpacity,g=a.jsVars.transparent;void 0!==g&&null!==g?f=a.jsVars.transparent?0:1:(f=parseFloat(f),0>f?f=0:1<f&&(f=1));
  c||(c="#ffffff");if(E&&!b)return f?c:"transparent";c=c.replace(/^#?([a-f0-9]+)/ig,"$1");c=I.graphics.HEXtoRGB(c);c[3]=f.toString();return"rgba("+c.join(",")+")"};I.injectModuleDependency=function(a,b,f){var g=!1,d=O(a).subject;a=O(a).predicate;b=void 0===b?a:O(b).predicate;s[a]||(s[a]={},c[a]||(c[a]=[],I.moduleMeta[a]=d+q.html5ScriptNamePrefix+(b&&b.replace&&b.replace(/^[\s\S]*\//ig,"").replace(/\?/g,"%3F").replace(/\#/g,"%23").replace(/\:/g,"%3A")||"")+q.html5ScriptNameSuffix),g=!0);s[a][b]=f||0;
  return g};I.needsModule=function(a,b){a=O(a).predicate;b=O(b).predicate;return void 0!==(I.moduleDependencies[a]&&I.moduleDependencies[a][b])};I.cleanupWaitingCommands=function(a){for(var b=a.chartType(),b=B(b),f,g=[],d;f=b.shift();){for(f=c[f]||[];d=f.shift();)"object"===typeof d&&d.obj!==a&&g.push(d);f.concat(g);g=[]}};d.extend(d.core.options,{html5ScriptNameSuffix:".js",html5ScriptNamePrefix:"fusioncharts."});d.extend(K,{dataFormat:"json",ready:!1,policies:{jsVars:{},options:{showChartLoadingMessage:["showChartLoadingMessage",
  !0]}},init:function(){g("base")?K.ready=!0:f("base",function(){K.ready=!0;n(I.cmdQueue)},void 0,d.core)},render:function(a){var b=a,c=this.jsVars.msgStore;b&&this.options.showChartLoadingMessage&&(b.innerHTML='<small style="display: inline-block; *zoom:1; *display:inline; width: 100%; font-family: Verdana,sans; font-size: 10px; color: #666666; text-align: center; padding-top: '+(parseInt(b.style.height,10)/2-5)+'px">'+(c.PBarLoadingText||c.LoadingText)+"</small>",b.style.backgroundColor=Q(this));
  I.cmdQueue.push({cmd:"render",obj:this,args:arguments})},update:function(){I.cmdQueue.push({cmd:"update",obj:this,args:arguments})},resize:function(){I.cmdQueue.push({cmd:"resize",obj:this,args:arguments})},dispose:function(){var a=I.cmdQueue,b,c;b=0;for(c=a.length;b<c;b+=1)a[b].obj===this&&(a.splice(b,1),--c,--b)},load:function(){I.cmdQueue.push({cmd:"load",obj:this,args:arguments})},config:function(a,b){var c,f=this.jsVars,g=f.msgStore,f=f.cfgStore,d=this.options,n;n={LoadingText:"loadMessage",
  ChartNotSupported:"typeNotSupportedMessage",RenderChartErrorText:"renderErrorMessage",XMLLoadingText:"dataLoadStartMessage",ChartNoDataText:"dataEmptyMessage",LoadDataErrorText:"dataLoadErrorMessage",InvalidXMLText:"dataInvalidMessage"};"string"===typeof a&&1<arguments.length&&(c=a,a={},a[c]=b);for(c in a)void 0!==g[c]?g[c]=a[c]:f[c.toLowerCase()]=a[c],n[c]&&(d[n[c]]=a[c])},protectedMethods:{},events:{beforeInitialize:function(a){var b=a.sender;a=b.jsVars;var c;a.fcObj=b;a.msgStore=a.msgStore||new F;
  a.cfgStore=a.cfgStore||{};a.previousDrawCount=-1;a.drawCount=0;a._reflowData={};b.addEventListener("beforeRender",function(a){a.sender.jsVars.smartLabel=new I.SmartLabelManager(b.id,z.body||z.getElementsByTagName("body")[0]);a.detachHandler()});a.userModules instanceof Array||(c=a.userModules,a.userModules=[],"string"===typeof c&&(a.userModules=a.userModules.concat(c.split(","))));I.chartAPI&&I.chartAPI[void 0]||(a.needsLoaderCall=!0)},initialized:function(a){a=a.sender;var b=a.jsVars;b.needsLoaderCall&&
  (delete b.needsLoaderCall,K.load.call(a))},beforeDataUpdate:p,beforeDispose:function(a){var b=a.sender.jsVars;b.smartLabel&&!b.smartLabel.disposed&&b.smartLabel.dispose();p.apply(this,arguments)},beforeRender:function(a){var b=a.sender.jsVars;delete b.drLoadAttempted;delete b.waitingModule;delete b.waitingModuleError;p.apply(this,arguments)},dataLoadRequested:function(a){a=a.sender;var b=a.jsVars;delete b.loadError;a.ref&&a.options.showDataLoadingMessage?b.hcObj&&!b.hasNativeMessage&&b.hcObj.showLoading?
  b.hcObj.showMessage(b.msgStore.XMLLoadingText):a.ref.showChartMessage?a.ref.showChartMessage("XMLLoadingText"):b.stallLoad=!0:b.stallLoad=!0},dataLoadRequestCompleted:function(a){delete a.sender.jsVars.stallLoad},dataLoadError:function(a){var b=a.sender,c=b.jsVars;delete c.stallLoad;c.loadError=!0;b.ref&&"function"===typeof b.ref.showChartMessage&&b.ref.showChartMessage("LoadDataErrorText");b.__state.dataFetchDuringConstruction&&delete b.__state.dataFetchDuringConstruction;p.apply(this,arguments)}},
  _call:function(a,b,c){a.apply(c||m,b||[])}});d.extend(K.prototype,{getSWFHTML:function(){d.raiseWarning(this,"11090611381","run","JavaScriptRenderer~getSWFHTML()","getSWFHTML() is not supported for JavaScript charts.")},addVariable:function(){d.raiseWarning(this,"11090611381","run","JavaScriptRenderer~addVariable()",'Use of deprecated "addVariable()". Replace with "configure()".');d.core.prototype.configure.apply(this,arguments)},getXML:function(){d.raiseWarning(this,"11171116291","run","JavaScriptRenderer~getXML()",
  'Use of deprecated "getXML()". Replace with "getXMLData()".');return this.getXMLData.apply(this,arguments)},setDataXML:function(){d.raiseWarning(this,"11171116292","run","JavaScriptRenderer~setDataXML()",'Use of deprecated "setDataXML()". Replace with "setXMLData()".');return this.setXMLData.apply(this,arguments)},setDataURL:function(){d.raiseWarning(this,"11171116293","run","JavaScriptRenderer~setDataURL()",'Use of deprecated "SetDataURL()". Replace with "setXMLUrl()".');return this.setXMLUrl.apply(this,
  arguments)},hasRendered:function(){return!(!this.jsVars.hcObj||!this.jsVars.hcObj.hasRendered)},setTransparent:function(a){var b;if(b=this.jsVars)"boolean"!==typeof a&&null!==a&&(a=!0),b.transparent=null===a?!1:!0===a?!0:!1}});d.extend(d.core,{_fallbackJSChartWhenNoFlash:function(){m.swfobject.hasFlashPlayerVersion(d.core.options.requiredFlashPlayerVersion)||d.renderer.setDefault("javascript")},_enableJSChartsForSelectedBrowsers:function(a){void 0!==a&&null!==a&&d.renderer.setDefault((new RegExp(a)).test(m.navigator.userAgent)?
  "javascript":"flash")},_doNotLoadExternalScript:function(b){var c,f;for(c in b)f=c.toLowerCase(),a[f]&&(v[f]=Boolean(b[c]))},_preloadJSChartModule:function(){throw"NotImplemented()";}});d.renderer.register("javascript",K);b||E?d.renderer.setDefault("javascript"):m.swfobject&&m.swfobject.hasFlashPlayerVersion&&!m.swfobject.hasFlashPlayerVersion(d.core.options.requiredFlashPlayerVersion)&&(d.raiseWarning(d.core,"1204111846","run","JSRenderer","Switched to JavaScript as default rendering due to absence of required Flash Player."),
  d.renderer.setDefault("javascript"))}]);
  FusionCharts.register("module",["private","modules.renderer.js-lib",function(){var d=this,m=d.window,z=m.document,q=m.navigator,E=Boolean(m.SVGAngle||z.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")),b=/msie/i.test(q.userAgent)&&!m.opera,K=m.parseFloat,I=/\s+/g,c=/^#?/,s=/^rgba/i,a=/[#\s]/ig,v=/\{br\}/ig,O=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,B=Math.abs,g=Math.pow,f=Math.round,n=g(2,-24),p=Object.prototype.toString,F="ontouchstart"in z,q=F&&!(q.maxTouchPoints||
  q.msMaxTouchPoints),Q="http://www.fusioncharts.com?BS=FCHSEvalMark&utm_source=FCS_trial&pver="+m.escape(d.core.version),l=!/fusioncharts\.com$/i.test(m.location.hostname),C=Math,A=C.max,W=C.min,r={pageX:0,pageY:0},oa=d.hcLib||(d.hcLib={}),ga=function(a){var b=a.data,c=b.chart,h=c.paper,f=a.state,k=T(H(a.originalEvent)),g=k.target||k.originalTarget||k.srcElement||k.relatedTarget||k.fromElement,d=c.elements.resizeBox,n=b.layerX=k.pageX-b.chartPosLeft,L=b.layerY=k.pageY-b.chartPosTop,l=n-b.ox,G=L-b.oy,
  p=b.bBox,s=b.ox,r=b.oy,$=b.zoomX,aa=b.zoomY,p=b.canvasY,m=b.canvasX,v=b.canvasW,C=b.canvasH,F=b.canvasX2,ta=b.canvasY2,q=b.strokeWidth,l=b.attr;switch(f){case "start":a=V(this);b.chartPosLeft=a.left;b.chartPosTop=a.top;n=k.pageX-b.chartPosLeft;L=k.pageY-b.chartPosTop;b.oy=L;b.ox=n;b.allowMove=!1;d||(d=c.elements.resizeBox=h.rect(c.layers.tracker).attr(l));n>m&&n<F&&L>p&&L<ta&&(b.allowMove=!0);g&&g.ishot&&(b.allowMove=!1);d.attr({x:0,y:0,width:0,height:0}).show();break;case "end":p=d.getBBox();c={chart:c,
  selectionLeft:p.x,selectionTop:p.y,selectionHeight:p.height,selectionWidth:p.width,originalEvent:a.originalEvent};b.isDragged&&(b.selectionEnd&&b.selectionEnd(c),b.isDragged=0);d.hide();delete b.oy;delete b.ox;break;default:if(!b.allowMove)break;l=n-b.ox;G=L-b.oy;s=b.ox;r=b.oy;b.isDragged||(c={chart:c,selectionLeft:($?W(s,s+l):m)+.5*q,selectionTop:(aa?W(r,r+G):p)+.5*q,selectionHeight:0,selectionWidth:0,originalEvent:a.originalEvent},b.selectionStart&&b.selectionStart(c),b.isDragged=1);l=-(s-W(s-(s-
  A(s+l,m)),F));G=-(r-W(r-(r-A(r+G,p)),ta));d.attr({x:($?W(s,s+l):m)+.5*q,y:(aa?W(r,r+G):p)+.5*q,width:$?B(l):v,height:aa?B(G):C})}},ba=function(a){var b=a.data;a=a.originalEvent;var c=a.target||a.originalTarget||a.srcElement||a.relatedTarget||a.fromElement,h=a.type,f=a.layerX,k=a.layerY;void 0===f&&(f=a.pageX-b.chartPosLeft,k=a.pageY-b.chartPosTop);"mousedown"===h&&(c.ishot=f>b.canvasX&&f<b.canvasX2&&k>b.canvasY&&k<b.canvasY2);"mouseup"===h&&setTimeout(function(){c.ishot=!1},1)},C=function(){var a=
  "innerWidth",b="innerHeight",c=z.documentElement||z.body,h=c;"innerWidth"in m?h=m:(a="clientWidth",b="clientHeight");return function(){return{width:h[a],height:h[b],scrollTop:c.scrollTop,scrollLeft:c.scrollLeft}}}(),V=function(a,b){var c={left:a.offsetLeft||0,top:a.offsetTop||0};for(a=a.offsetParent;a;)c.left+=a.offsetLeft||0,c.top+=a.offsetTop||0,a===z.body||a===z.documentElement||b||(c.left-=a.scrollLeft,c.top-=a.scrollTop),a=a.offsetParent;return c},ta=function(a){return a&&a.replace(/\$/g,"$$$$")},
  za=function(a,b){return a||!1===a||0===a?a:b},Aa=function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!1===a||0===a)return a;return""},Z=function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!1===a||0===a)return a},U=function(a,b,c,h){return oa.dem.listen(a,b,c,h)},na=function(a,b,c){return oa.dem.unlisten(a,b,c)},H=function(a){a=a.sourceEvent||a.originalEvent||a;return F&&a&&a.touches&&a.touches[0]||a||r},T=function(){var a;return function(b){void 0===
  b.pageX&&(b.pageX=b.clientX+(a||(a=m.document.body||m.document.documentElement)).scrollLeft,b.pageY=b.clientY+a.scrollTop);return b}}(),fa=function(a,b){b=T(H(b));var c=b.pageX,h=b.pageY,f=V(a);return{chartX:c-f.left,chartY:h-f.top,pageX:c,pageY:h}},k=function(a){return a&&a.replace(/^#?([a-f0-9]+)/ig,"#$1")||"none"},L=function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if(((a=arguments[b])||!1===a||0===a)&&!isNaN(a=Number(a)))return a},$=function(a,b){a=a||!1===a||0===a?Number(a):NaN;return isNaN(a)?
  null:b?B(a):a},aa=function(a){return"string"===typeof a?a.replace(v,"<br />"):""},sa=function(a,b){for(var c=b.length,h=-1;c--;)if(a===b[c]){h=c;break}return h},Y=function(){if(Array.isArray)return Array.isArray;var a=Object.prototype.toString,b=a.call([]);return function(c){return a.call(c)===b}}(),Ea=function(a,b,c,h,f){var k,g,d,n;f?(h.push(a),f.push(b)):(h=[a],f=[b]);if(b instanceof Array)for(k=0;k<b.length;k+=1){try{g=a[k],d=b[k]}catch(L){continue}if("object"!==typeof d)c&&void 0===d||(a[k]=
  d);else{if(null===g||"object"!==typeof g)g=a[k]=d instanceof Array?[]:{};n=sa(d,f);-1!==n?g=a[k]=h[n]:Ea(g,d,c,h,f)}}else for(k in b){try{g=a[k],d=b[k]}catch(l){continue}if(null!==d&&"object"===typeof d)if(n=p.call(d),"[object Object]"===n){if(null===g||"object"!==typeof g)g=a[k]={};n=sa(d,f);-1!==n?g=a[k]=h[n]:Ea(g,d,c,h,f)}else"[object Array]"===n?(null!==g&&g instanceof Array||(g=a[k]=[]),n=sa(d,f),-1!==n?g=a[k]=h[n]:Ea(g,d,c,h,f)):a[k]=d;else a[k]=d}return a},la=function(a,b,c){if("object"!==
  typeof a&&"object"!==typeof b)return null;if("object"!==typeof b||null===b)return a;"object"!==typeof a&&(a=b instanceof Array?[]:{});Ea(a,b,c);return a},ya=function(a,b){var c;if(b instanceof Array)for(c=b.length-1;0<=c;--c)"object"!==typeof b[c]?!0===b[c]&&a&&a.splice&&a.splice(c,1):p.call(b[c])===p.call(a[c])&&ya(a[c],b[c]);else for(c in b)"object"!==typeof b[c]?!0===b[c]&&a&&a.splice&&a.splice(c,1):p.call(b[c])===p.call(a[c])&&ya(a[c],b[c]);return a},Ia=function(){var a=/^@window_/g;return function(b,
  c){var h=b.replace(/\[[\'\"]/g,".").replace(/[\'\"]\]/g,"").replace(/\[/g,".@window_").replace(/\]/g,"").split("."),f=m,k,g;g="";var d,n,L;n=h.length;for(L=0;L<n;L+=1){d=h[L];k=f;if(d.match(a))g=m[d.replace(a,"")],f=f[g];else{if(void 0===f||null===f)throw(g||d).replace(a,"")+" is not defined";f=f[d]}g=d}!f||"function"!==typeof f.call&&f!==m.alert?setTimeout(function(){throw d.replace(a,"")+"() is not a function";},0):f===m.alert?f(c):f.call(k,c)}}(),ma=function(){var a="FusionChartslinkEval"+parseInt(+new Date,
  10);return function(b){try{m[a]=new Function(b),eval('window["'+a+'"]();')}catch(c){setTimeout(function(){throw c;},0)}E?delete m[a]:m[a]=null}}(),Ma=function(a,b){a=Number(a);a=isNaN(a)?100:a;void 0!==b&&(a=a*b/100);return a%101},pa=function(a,b,c){a=a.split(",");var h;void 0!==c&&(c=L(c.split(",")[0]));a[0]=Ma(a[0],c);for(h=1;h<b;h+=1)a[h]=a[0]*Ma(a[h],c)/100;return a.join(",")},qa=function(b,c,h){var f=0,k=0,g=0;h&&h.match(s)&&(h=h.split(","),f=h[0].slice(h[0].indexOf("(")+1),k=h[1],g=h[2],c||
  0===c||(c=parseInt(100*h[3].slice(0,h[3].indexOf(")")),10)));if(b)if(b.match(s))h=b.split(","),f=h[0].slice(h[0].indexOf("(")+1),k=h[1],g=h[2];else{b=b.replace(a,"").split(",")[0];switch(b.length){case 3:b=b.charAt(0)+b.charAt(0)+b.charAt(1)+b.charAt(1)+b.charAt(2)+b.charAt(2);break;case 6:break;default:b=(b+"FFFFFF").slice(0,6)}f=parseInt(b.slice(0,2),16);k=parseInt(b.slice(2,4),16);g=parseInt(b.slice(4,6),16)}c||0===c||(c=100);"string"===typeof c&&(c=c.split(",")[0]);c=parseInt(c,10)/100;return"rgba("+
  f+","+k+","+g+","+c+")"},La=function(){var a={};return function(b){var c=(b=b||this)&&b.FCcolor||b,h=c.color,f=c.ratio,k=c.angle,g=c.alpha,d=c.r,n=c.cx,L=c.cy,l=c.fx,G=c.fy,p=c.gradientUnits,s=c.x1,A=c.y1,r=c.x2,H=c.y2,$=1,aa,m,v,C;if("string"===typeof b)return a[C="~"+b]||(a[C]=b.replace(/^#?([a-f0-9]{3,6})/ig,"#$1"));h=h||"";if(!h)return aa;C=[h,g,f,k,d,n,L,p,l,G,s,r,A,H].join("_").replace(/[\(\)\s,\xb0#]/g,"_");if(a[C])return a[C];f=f&&(f+"").split(",")||[];g=(g||0===g)&&(g+"").split(",")||[];
  if(h=h.split(","))if(aa="",1===h.length)v=h[0].replace(/^#?([a-f0-9]{3,6})/ig,"$1"),aa=g.length?"rgba("+Na(v).join(",")+","+.01*K(g[0])+")":v.replace(/^#?([a-f0-9]{3,6})/ig,"#$1");else{b=0;for(m=h.length;b<m;b++)v=h[b].replace(/^#?([a-f0-9]{3,6})/ig,"$1"),isNaN(f[b])||(f[b]=K(f[b]),v+=":"+f[b],isNaN(f[b+1])||(f[b+1]=K(f[b+1])+f[b])),isNaN(g[b])||""===g[b]||($=.01*g[b]),h[b]="rgba("+Na(v).join(",")+","+$+")",isNaN(f[b])||(h[b]=h[b]+":"+f[b]);aa+=h.join("-");if(void 0!==d||void 0!==l||void 0!==n||c.radialGradient)aa=
  "xr("+[l,G,d,n,L,p].join()+")"+aa;else{aa="-"+aa;if(void 0!==s||void 0!==A||void 0!==r||void 0!==H)aa="("+[s,A,r,H,p].join()+")"+aa;void 0===k&&(k=0);aa=360-K(k)%360+aa}}return a[C]=aa}}(),Ya=function(){return function(){return""}}(),ib=function(b){return b.replace(a,"").replace(c,"#")},Ja=function(b,c){c=(0>c||100<c?100:c)/100;b=b.replace(a,"");var h=parseInt(b,16),f=Math.floor(h/65536),k=Math.floor((h-65536*f)/256);return("000000"+(f*c<<16|k*c<<8|(h-65536*f-256*k)*c).toString(16)).slice(-6)},Ta=
  function(b,c){c=(0>c||100<c?100:c)/100;b=b.replace(a,"");var h=parseInt(b,16),f=Math.floor(h/65536),k=Math.floor((h-65536*f)/256);return("000000"+(256-(256-f)*c<<16|256-(256-k)*c<<8|256-(256-(h-65536*f-256*k))*c).toString(16)).slice(-6)},Na=function(a){a=parseInt(a,16);var b=Math.floor(a/65536),c=Math.floor((a-65536*b)/256);return[b,c,Math.floor(a-65536*b-256*c)]},sb=function(a,b){if("object"!==typeof a)return"";if(a.fontSize||a["font-size"])!a.fontSize&&a["font-size"]&&(a.fontSize=a["font-size"],
  delete a["font-size"]),a.lineHeight=(parseFloat(a.fontSize)||b||10)*oa.lineHeightFactor+"px",delete a["line-height"];!a.lineHeight&&a["line-height"]&&(a.lineHeight=a["line-height"],delete a["line-height"]);return a.lineHeight},Wa=function(a,b,c,h,f){var k=Aa(a.labelbordercolor,b.bordercolor,c.labelbordercolor,""),g=Z(a.labelbgcolor,b.bgcolor,c.labelbgcolor),d=L(a.labelborderthickness,b.borderthickness,c.labelborderthickness,1);f=L(c.usedataplotcolorforlabels,0)?f||h.color:h.color;k=k?qa(k,L(a.labelborderalpha,
  b.borderalpha,c.labelborderalpha,a.labelalpha,b.alpha,c.labelalpha,100)):"";a={fontFamily:Z(a.labelfont,b.font,c.labelfont,h.fontFamily),fontSize:Z(a.labelfontsize,b.fontsize,c.labelfontsize,parseInt(h.fontSize,10))+"px",color:qa(Z(a.labelfontcolor,b.fontcolor,c.labelfontcolor,f),L(a.labelfontalpha,b.fontalpha,c.labelfontalpha,a.labelalpha,b.alpha,c.labelalpha,100)),fontWeight:L(a.labelfontbold,b.fontbold,c.labelfontbold)?"bold":"normal",fontStyle:L(a.labelfontitalic,b.fontitalic,c.labelfontitalic)?
  "italic":"normal",border:k||g?d+"px solid":"",borderColor:k,borderThickness:d,borderPadding:L(a.labelborderpadding,b.borderpadding,c.labelborderpadding,2),borderRadius:L(a.labelborderradius,b.borderradius,c.labelborderradius,0),backgroundColor:g?qa(g,L(a.labelbgalpha,b.bgalpha,c.labelbgalpha,a.labelalpha,b.alpha,c.labelalpha,100)):"",borderDash:L(a.labelborderdashed,b.borderdashed,c.labelborderdashed,0)?yb(L(a.labelborderdashlen,b.borderdashlen,c.labelborderdashlen,4),L(a.labelborderdashgap,b.borderdashgap,
  c.labelborderdashgap,2),d):void 0};a.lineHeight=sb(a);return a},Ga=function(){var a={top:{align:"center",verticalAlign:"top",textAlign:"center"},right:{align:"right",verticalAlign:"middle",textAlign:"left"},bottom:{align:"center",verticalAlign:"bottom",textAlign:"center"},left:{align:"left",verticalAlign:"middle",textAlign:"right"}},b=/([^\,^\s]+)\)$/g,c=function(a,b){var c;/^(bar|bar3d)$/.test(a)&&(this.isBar=!0,this.yPos="bottom",this.yOppPos="top",this.xPos="left",this.xOppPos="right");c=parseInt(b.labelstep,
  10);this.labelStep=1<c?c:1;this.showLabel=L(b.showlabels,b.shownames,1);this.is3D=/3d$/.test(a)};c.prototype={isBar:!1,yPos:"left",yOppPos:"right",xPos:"bottom",xOppPos:"top",addAxisGridLine:function(c,h,f,k,g,d,n,L){var N=""===f?!1:!0,l=0<k||0<d.match(b)[1]?!0:!1,G;if(N||l)l||(d="rgba(0,0,0,0)",k=.1),G={isGrid:!0,width:k,dashStyle:g,color:d,value:h,zIndex:void 0===n?2:n},N&&(h=c.opposite?L?this.xOppPos:this.yOppPos:L?this.xPos:this.yPos,h=a[h],G.label={text:f,style:c.labels.style,textAlign:h.textAlign,
  align:h.align,verticalAlign:h.verticalAlign,rotation:0,x:0,y:0}),c.plotLines.push(G);return G},addAxisAltGrid:function(a,b){if(!this.is3D){var c=L(a._lastValue,a.min),u=Z(a._altGrid,!1);u&&a.plotBands.push({isGrid:!0,color:a.alternateGridColor,to:b,from:c,zIndex:1});a._lastValue=b;a._altGrid=!u}},addXaxisCat:function(b,c,h,f,k,g,d,D){var n=a[b.opposite?this.xOppPos:this.xPos];c={isGrid:!0,isDataLabel:!0,width:.1,color:"rgba(0,0,0,0)",value:c,label:{text:f,link:Z(k.labellink,g.link,d.labellink),style:Wa(k,
  g,d,b.labels.style,D),textAlign:n.textAlign,align:n.align,verticalAlign:n.verticalAlign,rotation:0,x:0,y:0}};0!==h%this.labelStep&&(c.stepped=!0,c.label.style=b.steppedLabels.style);b.plotLines.push(c)},addVline:function(a,b,c,u){u=u._FCconf;var h=u.isBar,f=u.divlineStyle,k=aa(b.label),g=Boolean(L(b.showlabelborder,u.showVLineLabelBorder,1)),d=Boolean(L(b.showlabelbackground,1)),D=Z(b.labelhalign,h?"left":"center"),n=Z(b.labelvalign,h?"middle":"bottom").toLowerCase(),N=L(b.labelposition,0),l=L(b.lineposition,
  .5),G=L(b.showvlines,u.showVLines,1),p=L(b.alpha,u.vLineAlpha,80),s=Z(b.color,u.vLineColor).replace(/^#?/,"#"),A=d?Z(b.labelbgcolor,u.vLineLabelBgColor,"333333").replace(/^#?/,"#"):"",r=Z(b.labelcolor,u.vLineLabelColor,b.color,u.vLineColor).replace(/^#?/,"#"),H=L(b.thickness,u.vLineThickness,1),$=.5*H,m=Boolean(Number(Z(b.dashed,0))),v=L(b.dashlen,5),C=L(b.dashgap,2),F=u.smartLabel,T=parseInt(f.fontSize,10)+2,ta=0,B=L(b.rotatelabel,u.rotateVLineLabels)?270:0,l=0>l||1<l?.5:l,N=0>N||1<N?0:N;F.setStyle(f);
  F=F.getOriSize(k);s=qa(s,G?p:"0");if(h){switch(n){case "top":T-=F.height+$+2;break;case "middle":T-=.5*F.height+1;break;default:T+=$}b.labelhalign||(ta-=F.width*N)}else{switch(n){case "top":T=.5*-F.height+1;break;case "middle":T=0;break;default:T=.5*F.height}switch(D){case "left":ta+=H;break;case "right":ta-=H+1}}a.plotLines.push({isVline:!0,color:s,width:H,value:c-1+l,zIndex:L(b.showontop,u.showVLinesOnTop)?5:3,dashStyle:m?yb(v,C,H):void 0,label:{text:k,align:h?"left":"center",offsetScale:N,rotation:B,
  y:T,x:ta,textAlign:D,backgroundColor:A,borderWidth:G&&g?1:0,borderType:G&&g?"solid":"",borderColor:G&&g?r:"",backgroundOpacity:G&&d?Z(b.labelbgalpha,u.vLineLabelBgAlpha)/100:0,style:{color:G?r:s,fontSize:f.fontSize,fontFamily:f.fontFamily,lineHeight:f.lineHeight,backgroundColor:A}}})}};return c.prototype.constructor=c}(),Sb=function(){var a=function(a,c,u,h,f){a=Math.abs(c-a);c=a/(u+1);b(a,u,h)||(f&&Number(c)/Number(h)<(1<h?2:.5)&&(h/=10),c=(Math.floor(c/h)+1)*h,a=c*(u+1));return a},b=function(a,
  b,u){return c(a/(b+1))>c(u)?!1:!0},c=function(a){a=Math.abs(a);a=String(a);var b=0,c=a.indexOf(".");-1!=c&&(b=a.length-c-1);return b};return function(c,h,f,k,g,d,N,L){var l,G,p,s,A,r,H,aa=0;c=!0===isNaN(c)||void 0===c?.1:c;h=!0===isNaN(h)||void 0===h?0:h;c===h&&0===c&&(c=.1);g=void 0===typeof g?!0:g;d=void 0===typeof d?!0:d;l=Math.floor(Math.log(Math.abs(c))/Math.LN10);G=Math.floor(Math.log(Math.abs(h))/Math.LN10);G=Math.max(G,l);l=Math.pow(10,G);2>Math.abs(c)/l&&2>Math.abs(h)/l&&(G--,l=Math.pow(10,
  G));G=Math.floor(Math.log(c-h)/Math.LN10);p=Math.pow(10,G);0<c-h&&10<=l/p&&(l=p);G=(Math.floor(c/l)+1)*l;0>h?p=-1*(Math.floor(Math.abs(h/l))+1)*l:d?p=0:(p=Math.floor(Math.abs(h/l)-1)*l,p=0>p?0:p);g&&0>=c&&(G=0);g=f||0===f?!0:!1;d=k||0===k?!0:!1;c=!1===g||!0===g&&Number(f)<c&&c-Number(f)>n?G:Number(f);h=!1===d||!0===d&&Number(k)>h&&Number(k)-h>n?p:Number(k);k=Math.abs(c-h);if(!1===d&&!1===g&&L)if(0<c&&0>h)for(f=!1,g=10<l?l/10:l,L=a(h,c,N,g,!1),d=L-(N+1)*g;!1===f;){if(d+=(N+1)*g,b(d,N,g))if(L=d-k,G=
  d/(N+1),s=Math.min(Math.abs(h),c),p=s==Math.abs(h)?-1:1,0===N)f=!0;else for(r=1;r<=Math.floor((N+1)/2);r++)A=G*r,!(A-s>L)&&A>s&&(H=d-A,H/G==Math.floor(H/G)&&A/G==Math.floor(A/G)&&(k=d,c=-1==p?H:A,h=-1==p?-A:-H,f=!0))}else f=a(h,c,N,l,!0),L=f-k,k=f,0<c?c+=L:h-=L;else L&&(f=function(a,c,u){for(var h=0,f=1,k;;){k=a+h*f;k=0===k?1:k;if(b(c,k,u))break;h=-1==f||h>a?++h:h;if(25<h){k=0;break}f=h<=a?-1*f:1}return k},0<N&&(L=f(N,k,l),0===L&&(L=f(N,k+1,l),aa=1),N=L));return{Max:c,Min:h,Range:k,interval:l,divGap:(c-
  h+aa)/(N+1)}}}(),Rb=function(){var a=function(a,b,c){var u=c.jsVars&&c.jsVars.smartLabel,h=a.offsetWidth,f=a.offsetHeight,k=this.chart;a=this.title;var g=c._chartMessageImageStyle,d=!1,n;void 0!==b&&(b=b.replace(/^\s+/,"").replace(/\s+$/,""),/^i\s*[\-]\s*/i.test(b)?(d=!0,n=b.replace(/^i\s*[\-]\s*/i,"")):n=b.replace(/^\\/,""));a.y=f/2;a.x=h/2;k.bgSWF=a.text=void 0;b=n;d?(k.bgSWF=b,k.bgImageHAlign=g.imageHAlign,k.bgImageVAlign=g.imageVAlign,k.bgImageScale=g.imageScale,k.bgSWFAlpha=g.imageAlpha):void 0!==
  b&&(u?(sb(a.style),u.setStyle(a.style),u=u.getSmartText(aa(b),h,f),a.text=u.text):a.text=aa(b),a.verticalAlign="middle");a.style=c._chartMessageStyle;delete c._chartMessageImageStyle;delete c._chartMessageStyle};a.prototype={chart:{events:{},margin:[0,0,0,0],backgroundColor:{FCcolor:{alpha:0}}},credits:{href:Q,text:"FusionCharts XT Trial",enabled:l},legend:{enabled:!1},title:{text:"",style:{fontFamily:"Verdana,sans",fontSize:"10px",color:"#666666"}},plotOptions:{series:{}},series:[{}],exporting:{enabled:!1},
  nativeMessage:!0};return a.prototype.constructor=a}(),Fb={"true":{"true":{"true":"center","false":"center"},"false":{"true":"center","false":"center"}},"false":{"true":{"true":"right","false":"left"},"false":{"true":"left","false":"right"}}},jb=function(){return function(a,b,h,f,k,g,d){var n,l=h.trendStyle,p,s,A,r,H,$,m,v,C,F,T,ta,B,q=g?"xAxis":"dataLabels";if(g?h.showVLines:h.showTrendlines)for(n=0,s=a.length;n<s;n+=1)if((B=a[n])&&B.line)for(p=0,A=B.line.length;p<A;p+=1)r=B.line[p],F=h.numberFormatter.getCleanValue(Z(r.startvalue,
  r.value,0)),T=h.numberFormatter.getCleanValue(Z(r.endvalue,Z(r.startvalue,r.value,0))),g?v=b:f&&r.parentyaxis&&/^s$/i.test(r.parentyaxis)?(v=b[1],ta=1):v=b[0],$=v.max,m=v.min,H=!1,$>=F&&$>=T&&m<=F&&m<=T&&(f&&r.parentyaxis&&/^s$/i.test(r.parentyaxis)?H="1"!==Z(r.valueonleft,h.trendlineValuesOnOpp):f||(H="1"===Z(r.valueonright,h.trendlineValuesOnOpp)),$=Boolean(L(r.istrendzone,g?1:0)),(m=(g?h.showVLineLabels:h.showTrendlineLabels)?aa(Z(r.displayvalue,h.numberFormatter[q](H?T:F,ta))):"")?(C=F<T,H={text:m,
  textAlign:k?"center":H?"left":"right",align:k?Fb[$][!d][C]:H?"right":"left",verticalAlign:k?"bottom":"middle",rotation:0,x:0,y:0,style:l},m=Z(r.color,h.trendlineColor),r.alwaysVisible=$,m&&(H.style=la({},l),H.style.color=m.replace(c,"#"))):H=void 0,m=za(aa(Z(r.tooltext,B.tooltext,h.trendLineToolText))),m=G(m,[7,15,16,17,18,19],{startValue:F,startDataValue:h.numberFormatter[q](F,ta),endValue:T,endDataValue:h.numberFormatter[q](T,ta),axisName:v.title&&v.title.text},r),C=L(r.thickness,h.trendlineThickness,
  1),$?v.plotBands.push({isTrend:!0,color:qa(Z(r.color,h.trendlineColor),Z(r.alpha,h.trendlineAlpha,40)),from:F,to:T,label:H,zIndex:h.is3d||"1"!==Z(r.showontop,h.showTrendlinesOnTop)?3:5,tooltext:m,alwaysVisible:r.alwaysVisible}):v.plotLines.push({isTrend:!0,color:qa(Z(r.color,h.trendlineColor,h.trendlineColor),Z(r.alpha,h.trendlineAlpha,99)),value:F,to:T,width:C,dashStyle:"1"==Z(r.dashed,h.trendlinesAreDashed)?yb(L(r.dashlen,h.trendlinesDashLen),L(r.dashgap,h.trendlinesDashGap),C):void 0,label:H,zIndex:h.is3d||
  "1"!==Z(r.showontop,h.showTrendlinesOnTop)?3:5,tooltext:m}))}}(),yb=function(a,b,c,h){return h||void 0===h?[a,b]:""},kb=function(){},h=function(a,b,c){var f,k=h[a];k||(k=function(){},k.prototype=c instanceof kb?c:new kb,k.prototype.constructor=k,k=h[a]=new k);c&&(k.base=c);k.name=a;for(f in b)switch(typeof b[f]){case "object":if(b[f]instanceof kb){k[f]=b[f][f];break}default:k[f]=b[f];break;case "undefined":delete k[f]}return this instanceof h?(a=function(){},a.prototype=k,a.prototype.constructor=
  a,new a):k},G=function(){var a=[{regex:/((^|[^\\])((\\)\\)*\$cleanvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cleanvalue))/ig,argIndex:2,argKey:"cleanvalue"},{regex:/((^|[^\\])((\\)\\)*\$datavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$datavalue))/ig,argIndex:2,argKey:"formattedValue"},{regex:/((^|[^\\])((\\)\\)*\$value)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$value))/ig,argIndex:3,argKey:"value"},{regex:/((^|[^\\])((\\)\\)*\$label)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$label))/ig,argIndex:2,
  argKey:"label"},{regex:/((^|[^\\])((\\)\\)*\$seriesname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$seriesname))/ig,argIndex:5,argKey:"seriesname"},{regex:/((^|[^\\])((\\)\\)*\$yaxisname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$yaxisname))/ig,argIndex:2,argKey:"yaxisName"},{regex:/((^|[^\\])((\\)\\)*\$xaxisname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xaxisname))/ig,argIndex:2,argKey:"xaxisName"},{regex:/((^|[^\\])((\\)\\)*\$displayvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$displayvalue))/ig,argIndex:3,
  argKey:"displayvalue"},{regex:/((^|[^\\])((\\)\\)*\$xdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xdatavalue))/ig,argIndex:2,argKey:"xDataValue"},{regex:/((^|[^\\])((\\)\\)*\$ydatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$ydatavalue))/ig,argIndex:2,argKey:"yDataValue"},{regex:/((^|[^\\])((\\)\\)*\$xvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xvalue))/ig,argIndex:3,argKey:"x"},{regex:/((^|[^\\])((\\)\\)*\$yvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$yvalue))/ig,argIndex:3,argKey:"y"},
  {regex:/((^|[^\\])((\\)\\)*\$zvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$zvalue))/ig,argIndex:3,argKey:"z"},{regex:/((^|[^\\])((\\)\\)*\$name)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$name))/ig,argIndex:3,argKey:"name"},{regex:/((^|[^\\])((\\)\\)*\$percentValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentValue))/ig,argIndex:2,argKey:"percentValue"},{regex:/((^|[^\\])((\\)\\)*\$startValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$startValue))/ig,argIndex:2,argKey:"startValue"},{regex:/((^|[^\\])((\\)\\)*\$startDataValue)/ig,
  escapeRegex:/((^|[^\\])((\\)\\)*\\(\$startDataValue))/ig,argIndex:2,argKey:"startDataValue"},{regex:/((^|[^\\])((\\)\\)*\$endValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$endValue))/ig,argIndex:2,argKey:"endValue"},{regex:/((^|[^\\])((\\)\\)*\$endDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$endDataValue))/ig,argIndex:2,argKey:"endDataValue"},{regex:/((^|[^\\])((\\)\\)*\$axisName)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$axisName))/ig,argIndex:2,argKey:"axisName"},{regex:/((^|[^\\])((\\)\\)*\$cumulativevalue)/ig,
  escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativevalue))/ig,argIndex:2,argKey:"cumulativeValue"},{regex:/((^|[^\\])((\\)\\)*\$cumulativedatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativedatavalue))/ig,argIndex:2,argKey:"cumulativeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$cumulativePercentValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativePercentValue))/ig,argIndex:2,argKey:"cumulativePercentValue"},{regex:/((^|[^\\])((\\)\\)*\$cumulativepercentdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativepercentdatavalue))/ig,
  argIndex:2,argKey:"cumulativePercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$sum)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$sum))/ig,argIndex:2,argKey:"sum"},{regex:/((^|[^\\])((\\)\\)*\$unformattedsum)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedsum))/ig,argIndex:2,argKey:"unformattedSum"},{regex:/((^|[^\\])((\\)\\)*\$targetvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$targetvalue))/ig,argIndex:2,argKey:"targetValue"},{regex:/((^|[^\\])((\\)\\)*\$targetdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$targetdatavalue))/ig,
  argIndex:2,argKey:"targetDataValue"},{regex:/((^|[^\\])((\\)\\)*\$processname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$processname))/ig,argIndex:2,argKey:"processName"},{regex:/((^|[^\\])((\\)\\)*\$start)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$start))/ig,argIndex:2,argKey:"start"},{regex:/((^|[^\\])((\\)\\)*\$end)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$end))/ig,argIndex:2,argKey:"end"},{regex:/((^|[^\\])((\\)\\)*\$percentcomplete)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentcomplete))/ig,argIndex:2,
  argKey:"percentComplete"},{regex:/((^|[^\\])((\\)\\)*\$taskpercentcomplete)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$taskpercentcomplete))/ig,argIndex:2,argKey:"taskPercentComplete"},{regex:/((^|[^\\])((\\)\\)*\$taskstartdate)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$taskstartdate))/ig,argIndex:2,argKey:"taskStartDate"},{regex:/((^|[^\\])((\\)\\)*\$taskenddate)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$taskenddate))/ig,argIndex:2,argKey:"taskEndDate"},{regex:/((^|[^\\])((\\)\\)*\$tasklabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tasklabel))/ig,
  argIndex:2,argKey:"taskLabel"},{regex:/((^|[^\\])((\\)\\)*\$date)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$date))/ig,argIndex:2,argKey:"date"},{regex:/((^|[^\\])((\\)\\)*\$percentofprevvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentofprevvalue))/ig,argIndex:2,argKey:"percentOfPrevValue"},{regex:/((^|[^\\])((\\)\\)*\$sname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$sname))/ig,argIndex:2,argKey:"sName"},{regex:/((^|[^\\])((\\)\\)*\$lname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$lname))/ig,argIndex:2,
  argKey:"lName"},{regex:/((^|[^\\])((\\)\\)*\$fromid)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromid))/ig,argIndex:2,argKey:"fromId"},{regex:/((^|[^\\])((\\)\\)*\$fromlabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromlabel))/ig,argIndex:2,argKey:"fromLabel"},{regex:/((^|[^\\])((\\)\\)*\$toid)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toid))/ig,argIndex:2,argKey:"toId"},{regex:/((^|[^\\])((\\)\\)*\$tolabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tolabel))/ig,argIndex:2,argKey:"toLabel"},{regex:/((^|[^\\])((\\)\\)*\$fromxvalue)/ig,
  escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromxvalue))/ig,argIndex:2,argKey:"fromXValue"},{regex:/((^|[^\\])((\\)\\)*\$fromyvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromyvalue))/ig,argIndex:2,argKey:"fromYValue"},{regex:/((^|[^\\])((\\)\\)*\$fromxdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromxdatavalue))/ig,argIndex:2,argKey:"fromXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromydatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromydatavalue))/ig,argIndex:2,argKey:"fromYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromlabel)/ig,
  escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromlabel))/ig,argIndex:2,argKey:"fromLabel"},{regex:/((^|[^\\])((\\)\\)*\$toxvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toxvalue))/ig,argIndex:2,argKey:"toXValue"},{regex:/((^|[^\\])((\\)\\)*\$toyvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toyvalue))/ig,argIndex:2,argKey:"toYValue"},{regex:/((^|[^\\])((\\)\\)*\$toxdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toxdatavalue))/ig,argIndex:2,argKey:"toXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$toydatavalue)/ig,
  escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toydatavalue))/ig,argIndex:2,argKey:"toYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$tolabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tolabel))/ig,argIndex:2,argKey:"toLabel"},{regex:/((^|[^\\])((\\)\\)*\$openvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$openvalue))/ig,argIndex:2,argKey:"openValue"},{regex:/((^|[^\\])((\\)\\)*\$closevalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$closevalue))/ig,argIndex:2,argKey:"closeValue"},{regex:/((^|[^\\])((\\)\\)*\$highvalue)/ig,
  escapeRegex:/((^|[^\\])((\\)\\)*\\(\$highvalue))/ig,argIndex:2,argKey:"highValue"},{regex:/((^|[^\\])((\\)\\)*\$lowvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$lowvalue))/ig,argIndex:2,argKey:"lowValue"},{regex:/((^|[^\\])((\\)\\)*\$opendatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$opendatavalue))/ig,argIndex:2,argKey:"openDataValue"},{regex:/((^|[^\\])((\\)\\)*\$closedatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$closedatavalue))/ig,argIndex:2,argKey:"closeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$highdatavalue)/ig,
  escapeRegex:/((^|[^\\])((\\)\\)*\\(\$highdatavalue))/ig,argIndex:2,argKey:"highDataValue"},{regex:/((^|[^\\])((\\)\\)*\$lowdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$lowdatavalue))/ig,argIndex:2,argKey:"lowDataValue"},{regex:/((^|[^\\])((\\)\\)*\$maxvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$maxvalue))/ig,argIndex:2,argKey:"maxValue"},{regex:/((^|[^\\])((\\)\\)*\$maxdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$maxdatavalue))/ig,argIndex:2,argKey:"maxDataValue"},{regex:/((^|[^\\])((\\)\\)*\$minvalue)/ig,
  escapeRegex:/((^|[^\\])((\\)\\)*\\(\$minvalue))/ig,argIndex:2,argKey:"minValue"},{regex:/((^|[^\\])((\\)\\)*\$mindatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$mindatavalue))/ig,argIndex:2,argKey:"minDataValue"},{regex:/((^|[^\\])((\\)\\)*\$q1)/ig,argIndex:2,argKey:"Q1"},{regex:/((^|[^\\])((\\)\\)*\$unformattedQ1)/ig,argIndex:2,argKey:"unformattedQ1"},{regex:/((^|[^\\])((\\)\\)*\$q3)/ig,argIndex:2,argKey:"Q3"},{regex:/((^|[^\\])((\\)\\)*\$unformattedQ3)/ig,argIndex:2,argKey:"unformattedQ3"},{regex:/((^|[^\\])((\\)\\)*\$median)/ig,
  escapeRegex:/((^|[^\\])((\\)\\)*\\(\$median))/ig,argIndex:2,argKey:"median"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMedian)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMedian))/ig,argIndex:2,argKey:"unformattedMedian"},{regex:/((^|[^\\])((\\)\\)*\$SD)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$SD))/ig,argIndex:2,argKey:"SD"},{regex:/((^|[^\\])((\\)\\)*\$unformattedsd)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedsd))/ig,argIndex:2,argKey:"unformattedsd"},{regex:/((^|[^\\])((\\)\\)*\$QD)/ig,
  escapeRegex:/((^|[^\\])((\\)\\)*\\(\$QD))/ig,argIndex:2,argKey:"QD"},{regex:/((^|[^\\])((\\)\\)*\$unformattedQD)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedQD))/ig,argIndex:2,argKey:"unformattedQD"},{regex:/((^|[^\\])((\\)\\)*\$MD)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$MD))/ig,argIndex:2,argKey:"MD"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMD)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMD))/ig,argIndex:2,argKey:"unformattedMD"},{regex:/((^|[^\\])((\\)\\)*\$mean)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$mean))/ig,
  argIndex:2,argKey:"mean"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMean)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMean))/ig,argIndex:2,argKey:"unformattedMean"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMean)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMean))/ig,argIndex:2,argKey:"unformattedMean"},{regex:/((^|[^\\])((\\)\\)*\$volumeValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$volumeValue))/ig,argIndex:2,argKey:"volumeValue"},{regex:/((^|[^\\])((\\)\\)*\$volumeDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$volumeDataValue))/ig,
  argIndex:2,argKey:"volumeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromXValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromXValue))/ig,argIndex:2,argKey:"fromXValue"},{regex:/((^|[^\\])((\\)\\)*\$fromYValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromYValue))/ig,argIndex:2,argKey:"fromYValue"},{regex:/((^|[^\\])((\\)\\)*\$fromXDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromXDataValue))/ig,argIndex:2,argKey:"fromXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromYDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromYDataValue))/ig,
  argIndex:2,argKey:"fromYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromLabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromLabel))/ig,argIndex:2,argKey:"fromLabel"},{regex:/((^|[^\\])((\\)\\)*\$toXValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toXValue))/ig,argIndex:2,argKey:"toXValue"},{regex:/((^|[^\\])((\\)\\)*\$toYValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toYValue))/ig,argIndex:2,argKey:"toYValue"},{regex:/((^|[^\\])((\\)\\)*\$toXDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toXDataValue))/ig,
  argIndex:2,argKey:"toXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$toYDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toYDataValue))/ig,argIndex:2,argKey:"toYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$tolabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tolabel))/ig,argIndex:2,argKey:"toLabel"},{regex:/((^|[^\\])((\\)\\)*\$tlLabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tlLabel))/ig,argIndex:5,argKey:"tlLabel"},{regex:/((^|[^\\])((\\)\\)*\$trlabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$trlabel))/ig,argIndex:5,
  argKey:"trLabel"},{regex:/((^|[^\\])((\\)\\)*\$bllabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$bllabel))/ig,argIndex:5,argKey:"blLabel"},{regex:/((^|[^\\])((\\)\\)*\$brlabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$brlabel))/ig,argIndex:5,argKey:"brLabel"},{regex:/((^|[^\\])((\\)\\)*\$rowlabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$rowlabel))/ig,argIndex:5,argKey:"rowLabel"},{regex:/((^|[^\\])((\\)\\)*\$columnlabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$columnlabel))/ig,argIndex:5,argKey:"columnLabel"},
  {regex:/((^|[^\\])((\\)\\)*\$errorvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errorvalue))/ig,argIndex:2,argKey:"errorValue"},{regex:/((^|[^\\])((\\)\\)*\$errordatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errordatavalue))/ig,argIndex:2,argKey:"errorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$errorpercentvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errorpercentvalue))/ig,argIndex:2,argKey:"errorPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$errorpercentdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errorpercentdatavalue))/ig,
  argIndex:2,argKey:"errorPercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorValue))/ig,argIndex:2,argKey:"horizontalErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorDataValue))/ig,argIndex:2,argKey:"horizontalErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalErrorValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorValue))/ig,argIndex:2,argKey:"verticalErrorValue"},
  {regex:/((^|[^\\])((\\)\\)*\$verticalErrorDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorDataValue))/ig,argIndex:2,argKey:"verticalErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorPercent)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorPercentValue))/ig,argIndex:2,argKey:"horizontalErrorPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorPercentDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorPercentDataValue))/ig,argIndex:2,argKey:"horizontalErrorPercentDataValue"},
  {regex:/((^|[^\\])((\\)\\)*\$verticalErrorPercent)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorPercentValue))/ig,argIndex:2,argKey:"verticalErrorPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalErrorPercentDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorPercentDataValue))/ig,argIndex:2,argKey:"verticalErrorPercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$xaxispercentvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xaxispercentvalue))/ig,argIndex:2,argKey:"xAxisPercentValue"},
  {regex:/((^|[^\\])((\\)\\)*\$percentdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentdatavalue))/ig,argIndex:2,argKey:"percentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$trType)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$trType))/ig,argIndex:4,argKey:"trtype"},{regex:/((^|[^\\])((\\)\\)*\$tlType)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tlType))/ig,argIndex:4,argKey:"tltype"},{regex:/((^|[^\\])((\\)\\)*\$brType)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$brType))/ig,argIndex:4,argKey:"brtype"},{regex:/((^|[^\\])((\\)\\)*\$blType)/ig,
  escapeRegex:/((^|[^\\])((\\)\\)*\\(\$blType))/ig,argIndex:4,argKey:"bltype"},{regex:/((^|[^\\])((\\)\\)*\$colorRangeLabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$colorRangeLabel))/ig,argIndex:5,argKey:"colorRangeLabel"},{regex:/((^|[^\\])((\\)\\)*\$zdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$zdatavalue))/ig,argIndex:2,argKey:"zDataValue"}],b=[],c,h=a.length;for(c=0;c<h;c+=1)b.push(c);return function(){var c=arguments[0],h=arguments[1],f,k,g,d,n;Y(h)||(h=b);if(c)for(n=h.length,d=0;d<n;d+=
  1)if(g=a[h[d]])f=ta(za((k=arguments[g.argIndex])&&k[g.argKey],"")+""),c=c.replace(g.regex,"$2$4"+(g.parsingMethod?g.parsingMethod(f):f)),c=c.replace(g.escapeRegex,"$2$4$5");return c}}();d.core._setLineHeightFactor=function(a){!(a=K(a))||0>a||(oa.lineHeightFactor=a)};d.extend(oa,{BLANKSTRINGPLACEHOLDER:"#BLANK#",BLANKSTRING:"",COLOR_BLACK:"000000",COLOR_GLASS:"rgba(255, 255, 255, 0.3)",COLOR_WHITE:"FFFFFF",COLOR_TRANSPARENT:"rgba(0,0,0,0)",HASHSTRING:"#",BREAKSTRING:"<br />",STRINGSTRING:"string",
  OBJECTSTRING:"object",COMMASTRING:",",ZEROSTRING:"0",SAMPLESTRING:"Ay0",TESTSTR:"Ag",ONESTRING:"1",DECIMALSTRING:".",STRINGUNDEFINED:"undefined",POSITION_TOP:"top",POSITION_RIGHT:"right",POSITION_BOTTOM:"bottom",POSITION_LEFT:"left",POSITION_CENTER:"center",POSITION_MIDDLE:"middle",POSITION_START:"start",POSITION_END:"end",FC_CONFIG_STRING:"_FCconf",SHAPE_RECT:"rect",HUNDREDSTRING:"100",PXSTRING:"px",COMMASPACE:", ",TEXTANCHOR:"text-anchor",TOUCH_THRESHOLD_PIXELS:15,CLICK_THRESHOLD_PIXELS:5,regex:{stripWhitespace:I,
  dropHash:c,startsRGBA:s,cleanColorCode:a,breakPlaceholder:v,hexcode:/^#?[0-9a-f]{6}/i},fireEvent:function(a,b,c,h){oa.dem.fire(a,b,c,h)},plotEventHandler:function(a,c,h){c=c||{};var f=c.type,k=fa(a.container,c),k=la(k,this.data("eventArgs")),g=a.logic.fireGroupEvent,n=this.data("groupId"),l=function(a,h){c.FusionChartsPreventEvent=!0;b&&h.toolText&&oa.toolTip&&oa.toolTip.preventTooltip()};"index"in k&&!("dataIndex"in k)&&(k.dataIndex=k.index);"value"in k&&!("dataValue"in k)&&(k.dataValue=k.value);
  h=Z(h,"dataplotclick").toLowerCase();"dataplotrollover"===h?(c.FusionChartsPreventEvent=!1,g?d.raiseEventGroup(n,h,k,a.fusionCharts,void 0,void 0,l):d.raiseEvent(h,k,a.logic.chartInstance,void 0,void 0,l)):g&&"dataplotclick"!==h?d.raiseEventGroup(n,h,k,a.fusionCharts):d.raiseEvent(h,k,a.logic.chartInstance);"click"!==f&&"mouseup"!==f&&"touchend"!==f||!/click/i.test(h)||a.linkClickFN.call({link:k.link},a)},getEventCoordinate:T,getMouseCoordinate:fa,addEvent:U,removeEvent:na,getTouchEvent:H,extend2:la,
  deltend:function(a,b){if("object"!==typeof a||"object"!==typeof b)return null;ya(a,b);return a},imprint:function(a,b,c){var h;if("object"!==typeof a||null===a)return b;if("object"!==typeof b||null===b)return a;for(h in b)if(void 0===a[h]||!c&&null===a[h])a[h]=b[h];return a},pluck:Z,pluckNumber:L,getFirstDefinedValue:function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!1===a||0===a||""==a)return a},createElement:function(a,b,c){a=z.createElement(a);for(var h in b)a.setAttribute(h,
  b[h]);c&&c.appendChild&&c.appendChild(a);return a},hashify:k,pluckFontSize:function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if(((a=arguments[b])||!1===a||0===a)&&!isNaN(a=Number(a)))return 1>a?1:a;return 1},getValidValue:za,getPosition:V,getViewPortDimension:C,bindSelectionEvent:function(a,b){b=b||{};var c=a.options.chart,h=a.container,f=c.zoomType,k=la({},b.attr||{}),g=k["stroke-width"]=L(k.strokeWidth,k["stroke-width"],1),d=V(h),n=a.eventListeners||(a.eventListeners=[]);b=la({chart:a,zoomX:/x/.test(f),
  zoomY:/y/.test(f),canvasY:a.canvasTop,canvasX:a.canvasLeft,canvasW:a.canvasWidth,canvasH:a.canvasHeight,canvasX2:a.canvasLeft+a.canvasWidth,canvasY2:a.canvasTop+a.canvasHeight,strokeWidth:g,chartPosLeft:d.left,chartPosTop:d.top,attr:k},b);k.stroke=Aa(k.stroke,"rgba(51,153,255,0.8)");k.fill=Aa(k.fill,"rgba(185,213,241,0.3)");k.ishot=!0;h&&(na(h,"pointerdrag",ga),n.push(U(h,"pointerdrag",ga,b)));c.link&&(na(a.container,"mouseup mousedown",ba),n.push(U(a.container,"mouseup mousedown",ba,b)))},createContextMenu:function(a){var c=
  a.chart,h=c.smartLabel,f=c.logic.hcJSON&&c.logic.hcJSON.chart.useRoundEdges,g=oa.Raphael,d=function(a){var b=a.menufillcolor&&k(a.menufillcolor),c=a.menulabelcolor&&k(a.menulabelcolor),h=a.menufillhovercolor&&k(a.menufillhovercolor);a=a.menulabelhovercolor&&k(a.menulabelhovercolor);return{attrs:{backgroundColor:b,color:c},hover:{backgroundColor:h,color:a}}}(c.definition.chart),n=function(a,b,c){b=b||{};a=(a=(a=a&&g.tintshade(a.color,.7))&&g.getRGB(a))&&"rgb("+[a.r,a.g,a.b].join()+")";return{backgroundColor:b.backgroundHoverColor||
  c.backgroundColor||a||"rgb(64, 64, 64)",color:b.hoverColor||c.color||"#FFFFFF"}}(a.basicStyle,a.hover,d.hover),l=function(a,b,c){b=la({},b||{});b=la(b,a);return{fontFamily:b.fontFamily||"Verdana,sans",fontSize:b.fontSize||"10px",color:b.color||c.color||"#000000",backgroundColor:b.backgroundColor||c.backgroundColor||"rgb(255, 255, 255)"}}(a.basicStyle,a.attrs,d.attrs),L={textAlign:"left",align:"left",paddingLeft:"5px",paddingRight:"5px",paddingTop:"5px",cursor:"pointer",borderWidth:"0px"},G=a.items,
  p=a.position,r=a.verticalPadding||3,s=a.horizontalPadding||6,H={},aa,m,$,v,C,F,T,ta,B,q,Y,fa,sa;if(c)aa=V(c.container);else return!1;v=function(){var a=H.items,c=a.length,k=0,u=0,g=0,d,t;H.menuItems||(H.menuItems=[]);for(h.setStyle(l);c--;)d=a[c],d=h.getOriSize(d.text),g||(g=d.height+2*r),k+=g,u=A(u,d.width+2*s);H.height=k;H.width=u;H.itemH=g;this.style.width=u+"px";H.menuRect||(k=H.menuRect=z.createElement("div"),k.style.border="1px solid rgb(100, 100, 100)",f&&(k.style.mozBorderRadius="4px",k.style.webkitBorderRadius=
  "4px",k.style.borderRadius="4px",k.style.overflow="hidden"),b&&!E?k.style.filter="progid:DXImageTransform.Microsoft.Shadow(Color=#999999,direction=135,strength=3)":(k.style.mozBoxShadow="3px 3px 3px #999",k.style.webkitBoxShadow="3px 3px 3px #999",k.style.boxShadow="3px 3px 3px #999"),this.appendChild(k));u=a.length;for(c=0;c<u;c+=1)if(d=a[c],H.menuItems[c])H.menuItems[c].label.innerHTML=d.text;else{H.menuItems[c]={};k=H.menuItems[c].box=z.createElement("div");k.style.height=g+"px";k.style.lineHeight=
  g+"px";for(t in L)k.style[t]=L[t];for(t in l)k.style[t]=l[t];H.menuRect.appendChild(k);k.innerHTML=d.text;oa.dem.listen(k,"click",sa);oa.dem.listen(k,"pointerhover",q);H.menuItems[c].box._itemIdx=c}for(;H.menuItems[c];)H.menuItems[c].box.parentNode.removeChild(H.menuItems[c].box),H.menuItems.splice(c,1)};C=function(){$||($=z.createElement("div"),$.style.position="absolute",$.style.zIndex="50",$.style.display="none",c.container.appendChild&&c.container.appendChild($));return $};F=function(){m=setTimeout(H.hide,
  800)};T=function(){m&&clearTimeout(m)};ta=function(a){var b=a.x;a=a.y;var h={x:b,y:a},k=H.width,f=H.height,u=c.chartHeight,t=c.chartWidth;b+k>t&&0<b-k?h.x-=k:b+k>t&&(h.x=0);a+f>u&&0<a-f&&(h.y-=f);return h};B=function(){H.hide()};q=function(a){a.target&&a.target.parentNode&&("start"===a.state?Y:fa).call(a.target)};Y=function(){var a=H.menuItems[this._itemIdx],b;T();for(b in n)a.box.style[b]=n[b]};fa=function(){var a=H.menuItems[this._itemIdx],b;for(b in l)a.box.style[b]=l[b];F()};sa=function(a){var b=
  H.items[this._itemIdx];b.onclick&&b.onclick.call(b,a);a.originalEvent.stopPropagation?a.originalEvent.stopPropagation():a.originalEvent.cancelBubble=!0;H.hide()};H.showItem=function(a){a=this.menuItems[a];var b=this.height,c=this.itemH;a&&a._isHidden&&(a.box.style.display="",this.height=b+c,a._isHidden=!1,a=ta(p),this.left=a.x,this.top=a.y)};H.hideItem=function(a){a=this.menuItems[a];var b=this.height,c=this.itemH;a&&!a._isHidden&&(a.box.style.display="none",this.height=b-c,a._isHidden=!0,a=ta(p),
  this.left=a.x,this.top=a.y)};H.redraw=function(){var a=this.menuContainer;this.items=G;a?v.call(this.menuContainer):p&&void 0!==p.x&&void 0!==p.y?(this.menuContainer=C(),v.call(this.menuContainer),a=ta(p),this.left=a.x,this.top=a.y,this.menuContainer.style.left=this.left+"px",this.menuContainer.style.top=this.top+"px"):(this.menuContainer=C(),v.call(this.menuContainer))};H.show=function(a){var b=this;a&&void 0!==a.x&&void 0!==a.y?(a=ta(a),b.menuContainer.style.left=a.x+"px",b.menuContainer.style.top=
  a.y+"px"):(b.menuContainer.style.left=b.left+"px",b.menuContainer.style.top=b.top+"px");b.menuContainer.style.display="";setTimeout(function(){b.visible=!0;g.click(B)},400)};H.hide=function(){this.visible&&(this.visible=!1,H.menuContainer.style.display="none",H.menuContainer.style.left=-H.width+"px",H.menuContainer.style.top=-H.height+"px",g.unclick(B))};H.update=function(a){a&&a.length&&(this.items=a,this.redraw())};H.updatePosition=function(a){var b=aa.left,h=aa.top;aa=V(c.container);a?(p=a,a=ta(a),
  this.left=a.x,this.top=a.y):(this.left-=b-aa.left,this.top-=h-aa.top)};H.add=function(a){var b=this.menuItems,c=b.length,k;h.setStyle(l);this.width=A(this.width,h.getOriSize(a.text).width);b[c]={};b=b[c].box=z.createElement("div");b.style.height=this.itemH+"px";b.style.lineHeight=this.itemH+"px";for(k in L)b.style[k]=L[k];for(k in l)b.style[k]=l[k];H.menuRect.appendChild(b);b.innerHTML=a.text;oa.dem.listen(b,"click",sa);oa.dem.listen(b,"pointerhover",q);H.menuItems[c].box._itemIdx=c;this.height+=
  this.itemH};H.removeItems=function(){for(var a=this.menuItems,b=a&&a.length,c;b--;)c=a[b],oa.dem.unlisten(c.box,"click",sa),oa.dem.unlisten(c.box,"pointerhover",q),c.box&&c.box.parentNode&&c.box.parentNode.removeChild(c.box);delete this.menuItems;delete this.items};H.setPosition=function(a){void 0!==a.x&&void 0!==a.y&&(this.menuContainer.style.x=a.x,this.menuContainer.style.y=a.y)};H.destroy=function(){this.removeItems();this.menuContainer.parentNode.removeChild(this.menuContainer)};G&&G.length&&
  (H.redraw(),H.hide());return H},getDefinedColor:function(a,b){return a||0===a||""===a?a:b},getFirstValue:Aa,getFirstColor:function(a){a=a.split(",")[0];a=a.replace(I,"");""==a&&(a="000000");return a.replace(c,"#")},getColorCodeString:function(a,b){var c="",h,k,f=0,g=b.split(",");for(k=g.length;f<k;f+=1)h=g[f].split("-"),c=2===h.length?"-1"!==h[0].indexOf("dark")?c+(Ta(a,100-parseInt(h[1],10))+","):c+(Ja(a,100-parseInt(h[1],10))+","):c+(g[f]+",");return c.substring(0,c.length-1)},pluckColor:function(a){if(za(a))return a=
  a.split(",")[0],a=a.replace(I,""),""==a&&(a="000000"),a.replace(c,"#")},toRaphaelColor:La,gradientify:Ya,trimString:function(a){a=a.replace(/^\s\s*/,"");for(var b=/\s/,c=a.length;b.test(a.charAt(--c)););return a.slice(0,c+1)},getFirstAlpha:function(a){a=parseInt(a,10);if(isNaN(a)||100<a||0>a)a=100;return a},parsePointValue:$,parseUnsafeString:aa,parseTooltext:G,toPrecision:function(a,b){var c=g(10,b);return f(a*c)/c},hasTouch:q,CREDIT_HREF:Q,CREDIT_STRING:"FusionCharts XT Trial",getSentenceCase:function(a){a=
  a||"";return a.charAt(0).toUpperCase()+a.substr(1)},getCrispValues:function(a,b,c){var h=c%2/2;c=f(a+h)-h;a=f(a+b+h)-h-c;return{position:c,distance:a}},regescape:function(a){return a&&a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},regReplaceEscape:ta,isArray:Y,stubFN:function(){},falseFN:function(){return!1},stableSort:function(a,b){var c=a.length,h;for(h=0;h<c;h++)a[h].ssI=h;a.sort(function(a,c){var h=b(a,c);return 0===h?a.ssI-c.ssI:h});for(h=0;h<c;h++)delete a[h].ssI},hasSVG:E,isIE:b,lineHeightFactor:1.2,
  getLinkAction:function(a,b){var c=function(a){return a};return function(h){h=h||this.series&&this.series.chart;var k=a.chart||a.map||{},f=L(k.unescapelinks,1),k=L(k.clickurloverridesplotlinks,0),g=Aa(this.link,"");h=h&&h.options&&h.options.chart&&h.options.chart.link||"";var n=this.options&&this.options.chart&&this.options.chart.link||"",l=k?Z(h,n,g):Z(g,n,h),G=l,p,H,r,s,A,aa,$,v,C,F;void 0!==l&&(f&&(l=m.decodeURIComponent?m.decodeURIComponent(l):m.unescape(l)),l=l.replace(/^\s+/,"").replace(/\s+$/,
  ""),-1!==l.search(/^[a-z]*\s*[\-\:]\s*/i)&&(A=l.split(/\s*[\-\:]\s*/)[0].toLowerCase(),F=A.length),setTimeout(function(){switch(A){case "j":l=l.replace(/^j\s*\-/i,"j-");p=l.indexOf("-",2);-1===p?Ia(l.slice(2)):Ia(l.substr(2,p-2).replace(/\s/g,""),l.slice(p+1));break;case "javascript":ma(l.replace(/^javascript\s*\:/i,""));break;case "n":l.replace(/^n\s*\-/i,"n-");m.open(c(l.slice(2),f));break;case "f":l=l.replace(/^f\s*\-/i,"f-");p=l.indexOf("-",2);-1!==p?(H=l.substr(2,p-2))&&m.frames[H]?m.frames[H].location=
  c(l.slice(p+1),f):m.open(c(l.slice(p+1),f),H):m.open(c(l.slice(2),f));break;case "p":l=l.replace(/p\s*\-/i,"p-");p=l.indexOf("-",2);r=l.indexOf(",",2);-1===p&&(p=1);s=c(l.slice(p+1),f);m.open(s,l.substr(2,r-2),l.substr(r+1,p-r-1)).focus();break;case "newchart":case "newmap":":"===l.charAt(F)&&(p=l.indexOf("-",F+1),C=l.substring(F+1,p),F=p);p=l.indexOf("-",F+1);aa=l.substring(F+1,p).toLowerCase();switch(aa){case "xmlurl":case "jsonurl":v=l.substring(p+1,l.length);break;case "xml":case "json":var h=
  $=l.substring(p+1,l.length),k={chart:{}},g,h=h.toLowerCase();if(a.linkeddata)for(g=0;g<a.linkeddata.length;g+=1)a.linkeddata[g].id.toLowerCase()===h&&(k=a.linkeddata[g].linkedchart||a.linkeddata[g].linkedmap);v=k;aa="json"}d.raiseEvent("linkedChartInvoked",{alias:C,linkType:aa.toUpperCase(),data:v},b);break;default:m.location.href=l}d.raiseEvent("linkClicked",{linkProvided:G,linkInvoked:l,linkAction:A&&A.toLowerCase()},b)},0))}},graphics:{parseAlpha:pa,convertColor:qa,getDarkColor:Ja,getLightColor:Ta,
  mapSymbolName:function(a,b){var c="circle";a=$(a);3<=a&&(c=(b?"spoke_":"poly_")+a);return c},getColumnColor:function(a,b,c,h,k,f,g,d,l){var n,L;n=a.split(",");L=b.split(",");f=f.split(",");g=g.split(",");a=a.replace(/\s/g,"").replace(/\,$/,"");l?d={FCcolor:{color:n[0],alpha:L[0]}}:k?(a=n[0],L=L[0],d={FCcolor:{color:Ja(a,75)+","+Ta(a,10)+","+Ja(a,90)+","+Ta(a,55)+","+Ja(a,80),alpha:L+","+L+","+L+","+L+","+L,ratio:"0,11,14,57,18",angle:d?"90":"0"}},f=[Ja(a,70)]):(b=pa(b,n.length),d={FCcolor:{color:a,
  alpha:b,ratio:c,angle:d?-h:h}});return[d,{FCcolor:{color:f[0],alpha:g[0]}}]},getAngle:function(a,b,c){a=180*Math.atan(b/a)/Math.PI;2==c?a=180-a:3==c?a+=180:4==c&&(a=360-a);return a},parseColor:ib,getValidColor:function(a){return O.test(ib(a))&&a},HSBtoRGB:function(a){var b=a[0],c=0,h=0,k=0,g=[],g=a[1]/100;a=a[2]/100;var d=b/60-Math.floor(b/60),l=a*(1-g),n=a*(1-d*g),g=a*(1-(1-d)*g);switch(Math.floor(b/60)%6){case 0:c=a;h=g;k=l;break;case 1:c=n;h=a;k=l;break;case 2:c=l;h=a;k=g;break;case 3:c=l;h=n;
  k=a;break;case 4:c=g;h=l;k=a;break;case 5:c=a,h=l,k=n}return g=[f(255*c),f(255*h),f(255*k)]},RGBtoHSB:function(a){var b=a[0],c=a[1];a=a[2];var h=Math.max(Math.max(b,c),a),k=Math.min(Math.min(b,c),a),g=0,d=0;h==k?g=0:h==b?g=(60*(c-a)/(h-k)+360)%360:h==c?g=60*(a-b)/(h-k)+120:h==a&&(g=60*(b-c)/(h-k)+240);d=0===h?0:(h-k)/h;return[f(g),f(100*d),f(h/255*100)]},RGBtoHex:function(a){return("000000"+(a[0]<<16|a[1]<<8|a[2]).toString(16)).slice(-6)},HEXtoRGB:Na},setImageDisplayMode:function(a,b,c,h,k,f,g,d){var l=
  h/100*d.width;h=h/100*d.height;d={};var n,L=f-2*k;n=g-2*k;var p=function(a,b,c,h,f,g){var d={};switch(a){case "top":d.y=k;break;case "bottom":d.y=g-h-k;break;case "middle":d.y=(g-h)/2}switch(b){case "left":d.x=k;break;case "right":d.x=f-c-k;break;case "middle":d.x=(f-c)/2}return d};switch(a){case "center":d.width=l;d.height=h;d.y=g/2-h/2;d.x=f/2-l/2;break;case "stretch":d.width=f-2*k;d.height=g-2*k;d.y=k;d.x=k;break;case "tile":d.width=l;d.height=h;d.tileInfo={};d.tileInfo.xCount=a=Math.ceil(L/l);
  d.tileInfo.yCount=n=Math.ceil(n/h);b=p(b,c,l*a,h*n,f,g);d.y=b.y;d.x=b.x;break;case "fit":a=l/h>L/n?L/l:n/h;d.width=l*a;d.height=h*a;b=p(b,c,d.width,d.height,f,g);d.y=b.y;d.x=b.x;break;case "fill":a=l/h>L/n?n/h:L/l;d.width=l*a;d.height=h*a;b=p(b,c,d.width,d.height,f,g);d.y=b.y;d.x=b.x;break;default:b=p(b,c,l,h,f,g),d.width=l,d.height=h,d.y=b.y,d.x=b.x}return d},setLineHeight:sb,parsexAxisStyles:Wa,supportedStyle:{font:"font",fontFamily:"font-family","font-family":"font-family",fontWeight:"font-weight",
  "font-weight":"font-weight",fontSize:"font-size","font-size":"font-size",lineHeight:"line-height","line-height":"line-height",textDecoration:"text-decoration","text-decoration":"text-decoration",color:"color",whiteSpace:"white-space","white-space":"white-space",padding:"padding",margin:"margin",background:"background",backgroundColor:"background-color","background-color":"background-color",backgroundImage:"background-image","background-image":"background-image",backgroundPosition:"background-position",
  "background-position":"background-position",backgroundPositionLeft:"background-position-left","background-position-left":"background-position-left",backgroundPositionTop:"background-position-top","background-position-top":"background-position-top",backgroundRepeat:"background-repeat","background-repeat":"background-repeat",border:"border",borderColor:"border-color","border-color":"border-color",borderStyle:"border-style","border-style":"border-style",borderThickness:"border-thickness","border-thickness":"border-thickness",
  borderTop:"border-top","border-top":"border-top",borderTopColor:"border-top-color","border-top-color":"border-top-color",borderTopStyle:"border-top-style","border-top-style":"border-top-style",borderTopThickness:"border-top-thickness","border-top-thickness":"border-top-thickness",borderRight:"border-right","border-right":"border-right",borderRightColor:"border-right-color","border-right-color":"border-right-color",borderRightStyle:"border-right-style","border-right-style":"border-right-style",borderRightThickness:"border-right-thickness",
  "border-right-thickness":"border-right-thickness",borderBottom:"border-bottom","border-bottom":"border-bottom",borderBottomColor:"border-bottom-color","border-bottom-color":"border-bottom-color",borderBottomStyle:"border-bottom-style","border-bottom-style":"border-bottom-style",borderBottomThickness:"border-bottom-thickness","border-bottom-thickness":"border-bottom-thickness",borderLeft:"border-left","border-left":"border-left",borderLeftColor:"border-left-color","border-left-color":"border-left-color",
  borderLeftStyle:"border-left-style","border-left-Style":"border-left-style",borderLeftThickness:"border-left-thickness","border-left-thickness":"border-left-thickness"},getAxisLimits:Sb,createTrendLine:jb,getDashStyle:yb,axisLabelAdder:Ga,chartAPI:h,createDialog:Rb,isCanvasElemSupported:function(){var a=z.createElement("canvas");return!(!a.getContext||!a.getContext("2d"))}})}]);
  window.FusionCharts&&window.FusionCharts.register("module",["private","vendor.redraphael",function(){var d=this.hcLib,m=window.Raphael,z;(function(){(function(d,m){var b=/[\.\/]/,z=function(){},I=function(a,b){return a-b},c,s,a={n:{}},v=function(a,b){a=String(a);var g=s,f=Array.prototype.slice.call(arguments,2),d=v.listeners(a),p=0,m,q=[],l={},C=[],A=c;c=a;for(var W=s=0,r=d.length;W<r;W++)"zIndex"in d[W]&&(q.push(d[W].zIndex),0>d[W].zIndex&&(l[d[W].zIndex]=d[W]));for(q.sort(I);0>q[p];)if(m=l[q[p++]],
  C.push(m.apply(b,f)),s)return s=g,C;for(W=0;W<r;W++)if(m=d[W],"zIndex"in m)if(m.zIndex==q[p]){C.push(m.apply(b,f));if(s)break;do if(p++,(m=l[q[p]])&&C.push(m.apply(b,f)),s)break;while(m)}else l[m.zIndex]=m;else if(C.push(m.apply(b,f)),s)break;s=g;c=A;return C.length?C:null};v._events=a;v.listeners=function(c){c=c.split(b);var d=a,g,f,n,p,s,m,l,v=[d],A=[];n=0;for(p=c.length;n<p;n++){l=[];s=0;for(m=v.length;s<m;s++)for(d=v[s].n,g=[d[c[n]],d["*"]],f=2;f--;)if(d=g[f])l.push(d),A=A.concat(d.f||[]);v=l}return A};
  v.on=function(c,d){c=String(c);if("function"!=typeof d)return function(){};for(var g=c.split(b),f=a,n=0,p=g.length;n<p;n++)f=f.n,f=f.hasOwnProperty(g[n])&&f[g[n]]||(f[g[n]]={n:{}});f.f=f.f||[];n=0;for(p=f.f.length;n<p;n++)if(f.f[n]==d)return z;f.f.push(d);return function(a){+a==+a&&(d.zIndex=+a)}};v.f=function(a){var b=[].slice.call(arguments,1);return function(){v.apply(null,[a,null].concat(b).concat([].slice.call(arguments,0)))}};v.stop=function(){s=1};v.nt=function(a){return a?(new RegExp("(?:\\.|\\/|^)"+
  a+"(?:\\.|\\/|$)")).test(c):c};v.nts=function(){return c.split(b)};v.off=v.unbind=function(c,d){if(c){var g=c.split(b),f,n,p,s,m,l,C=[a];s=0;for(m=g.length;s<m;s++)for(l=0;l<C.length;l+=p.length-2){p=[l,1];f=C[l].n;if("*"!=g[s])f[g[s]]&&p.push(f[g[s]]);else for(n in f)f.hasOwnProperty(n)&&p.push(f[n]);C.splice.apply(C,p)}s=0;for(m=C.length;s<m;s++)for(f=C[s];f.n;){if(d){if(f.f){l=0;for(g=f.f.length;l<g;l++)if(f.f[l]==d){f.f.splice(l,1);break}!f.f.length&&delete f.f}for(n in f.n)if(f.n.hasOwnProperty(n)&&
  f.n[n].f){p=f.n[n].f;l=0;for(g=p.length;l<g;l++)if(p[l]==d){p.splice(l,1);break}!p.length&&delete f.n[n].f}}else for(n in delete f.f,f.n)f.n.hasOwnProperty(n)&&f.n[n].f&&delete f.n[n].f;f=f.n}}else v._events=a={n:{}}};v.once=function(a,b){var c=function(){v.unbind(a,c);return b.apply(this,arguments)};return v.on(a,c)};v.version="0.4.2";v.toString=function(){return"You are running Eve 0.4.2"};"undefined"!=typeof module&&module.exports?module.exports=v:m||"undefined"==typeof define?d.eve=v:define("eve",
  [],function(){return v})})(this,!0);(function(d,m,b){!b&&"function"===typeof define&&define.amd?define(["eve"],function(b){return m(d,b)}):m(d,d.eve)})(this,function(d,m){function b(a){var c,e;void 0===b._url&&(b._url="");if(b.is(a,"function"))return p?a():m.on("raphael.DOMload",a);if(b.is(a,l))return b._engine.create[F](b,a.splice(0,3+b.is(a[0],Q))).add(a);c=Array.prototype.slice.call(arguments,0);return b.is(c[c.length-1],"function")?(e=c.pop(),p?e.call(b._engine.create[F](b,c)):m.on("raphael.DOMload",
  function(){e.call(b._engine.create[F](b,c))})):b._engine.create[F](b,arguments)}function K(){return this.hex}function I(a,b){for(var c=[],e=0,t=a.length;t-2*!b>e;e+=2){var h=[{x:+a[e-2],y:+a[e-1]},{x:+a[e],y:+a[e+1]},{x:+a[e+2],y:+a[e+3]},{x:+a[e+4],y:+a[e+5]}];b?e?t-4==e?h[3]={x:+a[0],y:+a[1]}:t-2==e&&(h[2]={x:+a[0],y:+a[1]},h[3]={x:+a[2],y:+a[3]}):h[0]={x:+a[t-2],y:+a[t-1]}:t-4==e?h[3]=h[2]:e||(h[0]={x:+a[e],y:+a[e+1]});c.push(["C",(-h[0].x+6*h[1].x+h[2].x)/6,(-h[0].y+6*h[1].y+h[2].y)/6,(h[1].x+
  6*h[2].x-h[3].x)/6,(h[1].y+6*h[2].y-h[3].y)/6,h[2].x,h[2].y])}return c}function c(a,b,c,e,t,h,w,J,k){null==k&&(k=1);k=(1<k?1:0>k?0:k)/2;for(var M=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,g=0;12>g;g++)var S=k*M[g]+k,l=S*(S*(-3*a+9*c-9*t+3*w)+6*a-12*c+6*t)-3*a+3*c,S=S*(S*(-3*b+9*e-9*h+3*J)+6*b-12*e+6*h)-3*b+3*e,d=d+f[g]*ma(l*l+S*S);return k*d}function s(a,b,e,t,h,w,J,k,M){if(!(0>M||
  c(a,b,e,t,h,w,J,k)<M)){var f=.5,d=1-f,g;for(g=c(a,b,e,t,h,w,J,k,d);.01<Ea(g-M);)f/=2,d+=(g<M?1:-1)*f,g=c(a,b,e,t,h,w,J,k,d);return d}}function a(a,e,t){a=b._path2curve(a);e=b._path2curve(e);for(var h,w,J,k,M,f,d,g,S,l,R=t?0:[],u=0,n=a.length;u<n;u++)if(S=a[u],"M"==S[0])h=M=S[1],w=f=S[2];else{"C"==S[0]?(S=[h,w].concat(S.slice(1)),h=S[6],w=S[7]):(S=[h,w,h,w,M,f,M,f],h=M,w=f);for(var L=0,ca=e.length;L<ca;L++)if(l=e[L],"M"==l[0])J=d=l[1],k=g=l[2];else{"C"==l[0]?(l=[J,k].concat(l.slice(1)),J=l[6],k=l[7]):
  (l=[J,k,J,k,d,g,d,g],J=d,k=g);var p;var G=S,X=l;p=t;var H=b.bezierBBox(G),s=b.bezierBBox(X);if(b.isBBoxIntersect(H,s)){for(var H=c.apply(0,G),s=c.apply(0,X),H=sa(~~(H/5),1),s=sa(~~(s/5),1),D=[],r=[],m={},A=p?0:[],ka=0;ka<H+1;ka++){var ic=b.findDotsAtSegment.apply(b,G.concat(ka/H));D.push({x:ic.x,y:ic.y,t:ka/H})}for(ka=0;ka<s+1;ka++)ic=b.findDotsAtSegment.apply(b,X.concat(ka/s)),r.push({x:ic.x,y:ic.y,t:ka/s});for(ka=0;ka<H;ka++)for(G=0;G<s;G++){var rb=D[ka],Fa=D[ka+1],X=r[G],ic=r[G+1],N=.001>Ea(Fa.x-
  rb.x)?"y":"x",aa=.001>Ea(ic.x-X.x)?"y":"x",$;$=rb.x;var v=rb.y,Yb=Fa.x,C=Fa.y,T=X.x,ta=X.y,da=ic.x,F=ic.y;if(sa($,Yb)<Y(T,da)||Y($,Yb)>sa(T,da)||sa(v,C)<Y(ta,F)||Y(v,C)>sa(ta,F))$=void 0;else{var jc=($*C-v*Yb)*(T-da)-($-Yb)*(T*F-ta*da),q=($*C-v*Yb)*(ta-F)-(v-C)*(T*F-ta*da),B=($-Yb)*(ta-F)-(v-C)*(T-da);if(B){var jc=jc/B,q=q/B,B=+jc.toFixed(2),ha=+q.toFixed(2);$=B<+Y($,Yb).toFixed(2)||B>+sa($,Yb).toFixed(2)||B<+Y(T,da).toFixed(2)||B>+sa(T,da).toFixed(2)||ha<+Y(v,C).toFixed(2)||ha>+sa(v,C).toFixed(2)||
  ha<+Y(ta,F).toFixed(2)||ha>+sa(ta,F).toFixed(2)?void 0:{x:jc,y:q}}else $=void 0}$&&m[$.x.toFixed(4)]!=$.y.toFixed(4)&&(m[$.x.toFixed(4)]=$.y.toFixed(4),rb=rb.t+Ea(($[N]-rb[N])/(Fa[N]-rb[N]))*(Fa.t-rb.t),X=X.t+Ea(($[aa]-X[aa])/(ic[aa]-X[aa]))*(ic.t-X.t),0<=rb&&1.001>=rb&&0<=X&&1.001>=X&&(p?A++:A.push({x:$.x,y:$.y,t1:Y(rb,1),t2:Y(X,1)})))}p=A}else p=p?0:[];if(t)R+=p;else{H=0;for(s=p.length;H<s;H++)p[H].segment1=u,p[H].segment2=L,p[H].bez1=S,p[H].bez2=l;R=R.concat(p)}}}return R}function v(a,b,c,e,t,
  h){null!=a?(this.a=+a,this.b=+b,this.c=+c,this.d=+e,this.e=+t,this.f=+h):(this.a=1,this.c=this.b=0,this.d=1,this.f=this.e=0)}function O(){return this.x+" "+this.y+" "+this.width+" × "+this.height}function B(a,b,c,e,t,h){function w(a,b){var c,e,cb,t;cb=a;for(e=0;8>e;e++){t=((M*cb+k)*cb+J)*cb-a;if(Ea(t)<b)return cb;c=(3*M*cb+2*k)*cb+J;if(1E-6>Ea(c))break;cb-=t/c}c=0;e=1;cb=a;if(cb<c)return c;if(cb>e)return e;for(;c<e;){t=((M*cb+k)*cb+J)*cb;if(Ea(t-a)<b)break;a>t?c=cb:e=cb;cb=(e-c)/2+c}return cb}var J=
  3*b,k=3*(e-b)-J,M=1-J-k,f=3*c,d=3*(t-c)-f,g=1-f-d;return function(a,b){var c=w(a,b);return((g*c+d)*c+f)*c}(a,1/(200*h))}function g(a,b){var c=[],e={};this.ms=b;this.times=1;if(a){for(var t in a)a.hasOwnProperty(t)&&(e[L(t)]=a[t],c.push(L(t)));c.sort(D)}this.anim=e;this.top=c[c.length-1];this.percents=c}function f(a,c,t,w,M,f){t=L(t);var d,g,S,l,R,u,n=a.ms,ca={},p={},X={};if(w)for(u=0,s=Oa.length;u<s;u++){var H=Oa[u];if(H.el.id==c.id&&H.anim==a){H.percent!=t?(Oa.splice(u,1),S=1):g=H;c.attr(H.totalOrigin);
  break}}else w=+p;u=0;for(var s=a.percents.length;u<s;u++)if(a.percents[u]==t||a.percents[u]>w*a.top){t=a.percents[u];R=a.percents[u-1]||0;n=n/a.top*(t-R);l=a.percents[u+1];d=a.anim[t];break}else w&&c.attr(a.anim[a.percents[u]]);if(d){if(g)g.initstatus=w,g.start=new Date-g.ms*w;else{for(var D in d)if(d.hasOwnProperty(D)&&(G.hasOwnProperty(D)||c.ca[D]))switch(ca[D]=c.attr(D),null==ca[D]&&(ca[D]=h[D]),p[D]=d[D],G[D]){case Q:X[D]=(p[D]-ca[D])/n;break;case "colour":ca[D]=b.getRGB(ca[D]);u=b.getRGB(p[D]);
  X[D]={r:(u.r-ca[D].r)/n,g:(u.g-ca[D].g)/n,b:(u.b-ca[D].b)/n};break;case "path":u=Ab(ca[D],p[D]);H=u[1];ca[D]=u[0];X[D]=[];u=0;for(s=ca[D].length;u<s;u++){X[D][u]=[0];for(var ka=1,r=ca[D][u].length;ka<r;ka++)X[D][u][ka]=(H[u][ka]-ca[D][u][ka])/n}break;case "transform":u=c._;if(s=e(u[D],p[D]))for(ca[D]=s.from,p[D]=s.to,X[D]=[],X[D].real=!0,u=0,s=ca[D].length;u<s;u++)for(X[D][u]=[ca[D][u][0]],ka=1,r=ca[D][u].length;ka<r;ka++)X[D][u][ka]=(p[D][u][ka]-ca[D][u][ka])/n;else s=c.matrix||new v,u={_:{transform:u.transform},
  getBBox:function(){return c.getBBox(1)}},ca[D]=[s.a,s.b,s.c,s.d,s.e,s.f],J(u,p[D]),p[D]=u._.transform,X[D]=[(u.matrix.a-s.a)/n,(u.matrix.b-s.b)/n,(u.matrix.c-s.c)/n,(u.matrix.d-s.d)/n,(u.matrix.e-s.e)/n,(u.matrix.f-s.f)/n];break;case "csv":s=k(d[D]).split(Ta);H=k(ca[D]).split(Ta);if("clip-rect"==D)for(ca[D]=H,X[D]=[],u=H.length;u--;)X[D][u]=(s[u]-ca[D][u])/n;p[D]=s;break;default:for(s=[].concat(d[D]),H=[].concat(ca[D]),X[D]=[],u=c.ca[D].length;u--;)X[D][u]=((s[u]||0)-(H[u]||0))/n}u=d.easing;D=b.easing_formulas[u];
  if(!D)if((D=k(u).match(Wa))&&5==D.length){var A=D;D=function(a){return B(a,+A[1],+A[2],+A[3],+A[4],n)}}else D=da;u=d.start||a.start||+new Date;H={anim:a,percent:t,timestamp:u,start:u+(a.del||0),status:0,initstatus:w||0,stop:!1,ms:n,easing:D,from:ca,diff:X,to:p,el:c,callback:d.callback,prev:R,next:l,repeat:f||a.times,origin:c.attr(),totalOrigin:M};Oa.push(H);if(w&&!g&&!S&&(H.stop=!0,H.start=new Date-n*w,1==Oa.length))return ab();S&&(H.start=new Date-H.ms*w);1==Oa.length&&pd(ab)}m("raphael.anim.start."+
  c.id,c,a)}}function n(a){for(var b=0;b<Oa.length;b++)Oa[b].el.paper==a&&Oa.splice(b--,1)}b.upgrade="1.0.0";b.version="2.1.0";b.eve=m;z=b;var p,F="apply",Q="number",l="array",C=Array.prototype.slice,A=Array.prototype.splice,W=function(){return function(){}.hasOwnProperty("prototype")}(),r={doc:document,win:d},oa=Object.prototype.hasOwnProperty.call(r.win,"Raphael"),ga=r.win.Raphael,ba=r.doc,V=r.win,ta=b.supportsTouch="createTouch"in ba,za=b.supportsOnlyTouch=ta&&!(V.navigator.maxTouchPoints||V.navigator.msMaxTouchPoints),
  Aa=function(){};b.ca=b.customAttributes=Aa.prototype;var Z=function(){this.ca=this.customAttributes=new Aa;this._CustomAttributes=function(){};this._CustomAttributes.prototype=this.ca;this._elementsById={};this.id=b._oid++;m("raphael.new",this)},U=b.fn=Z.prototype=b.prototype,na={circle:1,rect:1,path:1,ellipse:1,text:1,image:1,group:1},H="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel dragstart dragmove dragend".split(" "),T=b._touchMap={mousedown:"touchstart",
  mousemove:"touchmove",mouseup:"touchend"},fa=b._dragEventMap={dragstart:"mousedown",dragmove:"mousemove",dragend:"mouseup"},k=V.String,L=V.parseFloat,$=V.parseInt,aa=V.Math,sa=aa.max,Y=aa.min,Ea=aa.abs,la=aa.pow,ya=aa.cos,Ia=aa.sin,ma=aa.sqrt,Ma=aa.round,pa=aa.PI,qa=pa/180,La=180/pa,Ya=k.prototype.toLowerCase,ib=k.prototype.toUpperCase,Ja=V.Object.prototype.toString,Ta=/[, ]+/,Na=/\{(\d+)\}/g;b._ISURL=/^url\(['"]?([^\)]+?)['"]?\)$/i;var sb=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i,
  Wa=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,Ga=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,Sb=/,?([achlmqrstvxz]),?/gi,Rb=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/ig,
  Fb=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/ig,jb=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/ig;
  b._radial_gradient=/^x?r(?:\(([^\)]*?)\))?/;var yb={NaN:1,Infinity:1,"-Infinity":1},kb={hs:1,rg:1},h=b._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9","clip-path":"",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"about:blank","letter-spacing":0,"line-height":12,"vertical-align":"middle",opacity:1,path:"M0,0",r:0,rx:0,ry:0,
  src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",visibility:"",title:"",transform:"",rotation:0,width:0,x:0,y:0},G=b._availableAnimAttrs={blur:Q,"clip-rect":"csv","clip-path":"path",cx:Q,cy:Q,fill:"colour","fill-opacity":Q,"font-size":Q,height:Q,opacity:Q,path:"path",r:Q,rx:Q,ry:Q,stroke:"colour","stroke-opacity":Q,"stroke-width":Q,transform:"transform",width:Q,
  x:Q,y:Q},u={},D=function(a,b){return L(a)-L(b)},N=function(){},da=function(a){return a},ha=b._rectPath=function(a,b,c,e,t){return t?[["M",a+t,b],["l",c-2*t,0],["a",t,t,0,0,1,t,t],["l",0,e-2*t],["a",t,t,0,0,1,-t,t],["l",2*t-c,0],["a",t,t,0,0,1,-t,-t],["l",0,2*t-e],["a",t,t,0,0,1,t,-t],["z"]]:[["M",a,b],["l",c,0],["l",0,e],["l",-c,0],["z"]]},ra=function(a,b,c,e){null==e&&(e=c);return[["M",a,b],["m",0,-e],["a",c,e,0,1,1,0,2*e],["a",c,e,0,1,1,0,-2*e],["z"]]},ua=b._getPath={group:function(){return!1},
  path:function(a){return a.attr("path")},circle:function(a){a=a.attrs;return ra(a.cx,a.cy,a.r)},ellipse:function(a){a=a.attrs;return ra(a.cx,a.cy,a.rx,a.ry)},rect:function(a){a=a.attrs;return ha(a.x,a.y,a.width,a.height,a.r)},image:function(a){a=a.attrs;return ha(a.x,a.y,a.width,a.height)},text:function(a){a=a._getBBox();return ha(a.x,a.y,a.width,a.height)}},ja=b.mapPath=function(a,b){if(!b)return a;var c,e,t,h,w,J,k;a=Ab(a);t=0;for(w=a.length;t<w;t++)for(k=a[t],h=1,J=k.length;h<J;h+=2)c=b.x(k[h],
  k[h+1]),e=b.y(k[h],k[h+1]),k[h]=c,k[h+1]=e;return a};b.pick=function(){for(var a,b=0,c=arguments.length;b<c;b+=1)if((a=arguments[b])||!1===a||0===a)return a};var Ha=b._lastArgIfGroup=function(a,c){var e=a.length-1,t=a[e];if(t&&t.constructor===b.el.constructor&&"group"===t.type)return c&&(a[e]=void 0,delete a[e],A.call(a,e,1)),t},Ba=b._serializeArgs=function(a){var c=a[0],e,t;if(b.is(c,"object")&&!b.is(c,"array")&&"group"!==c.type)for(e=c,c.path&&(c=c.path)&&!b.is(c,"string")&&b.is(c[0],l),c=1,t=arguments.length;c<
  t;c+=2)e[arguments[c]]||(e[arguments[c]]=arguments[c+1]);else for(e={},c=1,t=arguments.length;c<t;c+=2)e[arguments[c]]=a[(c-1)/2]||arguments[c+1];return e},xa=b.merge=function(a,b,c,e,t){var h,w,J,k;t?(e.push(a),t.push(b)):(e=[a],t=[b]);if(b instanceof Array)for(h=0;h<b.length;h+=1){try{w=a[h],J=b[h]}catch(M){continue}if("object"!==typeof J)c&&void 0===J||(a[h]=J);else{if(null===w||"object"!==typeof w)w=a[h]=J instanceof Array?[]:{};k=checkCyclicRef(J,t);-1!==k?w=a[h]=e[k]:xa(w,J,c,e,t)}}else for(h in b){try{w=
  a[h],J=b[h]}catch(f){continue}if(null!==J&&"object"===typeof J)if(k=Ja.call(J),"[object Object]"===k){if(null===w||"object"!==typeof w)w=a[h]={};k=checkCyclicRef(J,t);-1!==k?w=a[h]=e[k]:xa(w,J,c,e,t)}else"[object Array]"===k?(null!==w&&w instanceof Array||(w=a[h]=[]),k=checkCyclicRef(J,t),-1!==k?w=a[h]=e[k]:xa(w,J,c,e,t)):a[h]=J;else a[h]=J}return a};b.extend=function(a,b,c){if("object"!==typeof a&&"object"!==typeof b)return null;if("object"!==typeof b||null===b)return a;"object"!==typeof a&&(a=b instanceof
  Array?[]:{});xa(a,b,c);return a};var Ka=b.is=function(a,b){b=Ya.call(b);return"finite"==b?!yb.hasOwnProperty(+a):b==l?a instanceof Array:"object"!==b||void 0!==a&&null!==a?"null"==b&&null===a||b==typeof a&&null!==a||"object"==b&&a===Object(a)||"array"==b&&Array.isArray&&Array.isArray(a)||Ja.call(a).slice(8,-1).toLowerCase()==b:!1};b.createUUID=function(a,b){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(a,b).toUpperCase()}}(/[xy]/g,function(a){var b=16*aa.random()|0;return("x"==
  a?b:b&3|8).toString(16)});var eb=b.clone=W?function(a){if(Object(a)!==a)return a;var b=new a.constructor,c;for(c in a)"prototype"!==c&&a.hasOwnProperty(c)&&(b[c]=eb(a[c]));return b}:function(a){if(Object(a)!==a)return a;var b=new a.constructor,c;for(c in a)a.hasOwnProperty(c)&&(b[c]=eb(a[c]));return b};b._g=r;b.type=V.ENABLE_RED_CANVAS&&(V.CanvasRenderingContext2D||ba.createElement("canvas").getContext)?"CANVAS":V.SVGAngle||ba.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure",
  "1.1")?"SVG":"VML";if("VML"==b.type){var ia=ba.createElement("div"),Da;ia.innerHTML='<v:shape adj="1"/>';Da=ia.firstChild;Da.style.behavior="url(#default#VML)";if(!Da||"object"!=typeof Da.adj)return b.type="";ia=null}b.svg=!((b.vml="VML"==b.type)||(b.canvas="CANVAS"==b.type));b._Paper=Z;b._id=0;b._oid=0;b.angle=function(a,c,e,t,h,w){return null==h?(a-=e,c-=t,a||c?(aa.atan2(-c,-a)*La+540)%360:0):b.angle(a,c,h,w)-b.angle(e,t,h,w)};b.rad=function(a){return a%360*qa};b.deg=function(a){return a*La%360};
  b.snapTo=function(a,b,c){var e;Ka(c,"finite")||(c=10);if(Ka(a,l))for(e=a.length;e--;){if(Ea(a[e]-b)<=c)return a[e]}else{a=+a;e=b%a;if(e<c)return b-e;if(e>a-c)return b-e+a}return b};b.setWindow=function(a){m("raphael.setWindow",b,r.win,a);V=r.win=a;ba=r.doc=r.win.document;b._engine.initWin&&b._engine.initWin(r.win)};var fb=function(a){if(b.vml){var c=/^\s+|\s+$/g,e;try{var t=new ActiveXObject("htmlfile");t.write("<body>");t.close();e=t.body}catch(h){e=createPopup().document.body}var w=e.createTextRange();
  fb=ea(function(a){try{e.style.color=k(a).replace(c,"");var b=w.queryCommandValue("ForeColor");return"#"+("000000"+((b&255)<<16|b&65280|(b&16711680)>>>16).toString(16)).slice(-6)}catch(t){return"none"}})}else{var J=r.doc.createElement("i");J.title="Raphaël Colour Picker";J.style.display="none";r.doc.body.appendChild(J);fb=ea(function(a){J.style.color=a;return r.doc.defaultView.getComputedStyle(J,"").getPropertyValue("color")})}return fb(a)},Pa=function(){return"hsb("+[this.h,this.s,this.b]+")"},Oc=
  function(){return"hsl("+[this.h,this.s,this.l]+")"},nb=function(){return this.hex},Nb=function(a,c,e){null==c&&Ka(a,"object")&&"r"in a&&"g"in a&&"b"in a&&(e=a.b,c=a.g,a=a.r);null==c&&Ka(a,"string")&&(e=b.getRGB(a),a=e.r,c=e.g,e=e.b);if(1<a||1<c||1<e)a/=255,c/=255,e/=255;return[a,c,e]},bb=function(a,c,e,t){var h={r:a*=255,g:c*=255,b:e*=255,hex:b.rgb(a,c,e),toString:nb};Ka(t,"finite")&&(h.opacity=t);return h};b.color=function(a){var c;b.is(a,"object")&&"h"in a&&"s"in a&&"b"in a?(c=b.hsb2rgb(a),a.r=
  c.r,a.g=c.g,a.b=c.b,a.hex=c.hex):b.is(a,"object")&&"h"in a&&"s"in a&&"l"in a?(c=b.hsl2rgb(a),a.r=c.r,a.g=c.g,a.b=c.b,a.hex=c.hex):(b.is(a,"string")&&(a=b.getRGB(a)),b.is(a,"object")&&"r"in a&&"g"in a&&"b"in a?(c=b.rgb2hsl(a),a.h=c.h,a.s=c.s,a.l=c.l,c=b.rgb2hsb(a),a.v=c.b):(a={hex:"none"},a.r=a.g=a.b=a.h=a.s=a.v=a.l=-1));a.toString=nb;return a};b.hsb2rgb=function(a,b,c,e){this.is(a,"object")&&"h"in a&&"s"in a&&"b"in a&&(c=a.b,b=a.s,a=a.h,e=a.o);var t,h,w;a=360*a%360/60;w=c*b;b=w*(1-Ea(a%2-1));c=t=
  h=c-w;a=~~a;c+=[w,b,0,0,b,w][a];t+=[b,w,w,b,0,0][a];h+=[0,0,b,w,w,b][a];return bb(c,t,h,e)};b.hsl2rgb=function(a,b,c,e){this.is(a,"object")&&"h"in a&&"s"in a&&"l"in a&&(c=a.l,b=a.s,a=a.h);if(1<a||1<b||1<c)a/=360,b/=100,c/=100;var t,h,w;a=360*a%360/60;w=2*b*(.5>c?c:1-c);b=w*(1-Ea(a%2-1));c=t=h=c-w/2;a=~~a;c+=[w,b,0,0,b,w][a];t+=[b,w,w,b,0,0][a];h+=[0,0,b,w,w,b][a];return bb(c,t,h,e)};b.rgb2hsb=function(a,b,c){c=Nb(a,b,c);a=c[0];b=c[1];c=c[2];var e,t;e=sa(a,b,c);t=e-Y(a,b,c);a=((0==t?null:e==a?(b-c)/
  t:e==b?(c-a)/t+2:(a-b)/t+4)+360)%6*60/360;return{h:a,s:0==t?0:t/e,b:e,toString:Pa}};b.rgb2hsl=function(a,b,c){c=Nb(a,b,c);a=c[0];b=c[1];c=c[2];var e,t,h;e=sa(a,b,c);t=Y(a,b,c);h=e-t;a=((0==h?null:e==a?(b-c)/h:e==b?(c-a)/h+2:(a-b)/h+4)+360)%6*60/360;e=(e+t)/2;return{h:a,s:0==h?0:.5>e?h/(2*e):h/(2-2*e),l:e,toString:Oc}};b._path2string=function(){return this.join(",").replace(Sb,"$1")};var ea=b._cacher=function(a,b,c){function e(){var t=C.call(arguments,0),h=t.join("␀"),w=e.cache=e.cache||{},J=e.count=
  e.count||[];if(w.hasOwnProperty(h)){a:for(var t=J,J=h,k=0,M=t.length;k<M;k++)if(t[k]===J){t.push(t.splice(k,1)[0]);break a}return c?c(w[h]):w[h]}1E3<=J.length&&delete w[J.shift()];J.push(h);w[h]=a[F](b,t);return c?c(w[h]):w[h]}return e};b._preload=function(a,b){var c=ba.createElement("img");c.style.cssText="position:absolute;left:-9999em;top:-9999em";c.onload=function(){b.call(this);this.onload=null;ba.body.removeChild(this)};c.onerror=function(){ba.body.removeChild(this)};ba.body.appendChild(c);
  c.src=a};b.getRGB=ea(function(a){var c,e,t,h,w;a&&Ka(a,"object")&&"opacity"in a&&(c=a.opacity);if(!a||(a=k(a)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:K};if("none"==a)return{r:-1,g:-1,b:-1,hex:"none",toString:K};!kb.hasOwnProperty(a.toLowerCase().substring(0,2))&&"#"!==a.charAt()&&(a=fb(a));if(a=a.match(sb)){a[2]&&(h=$(a[2].substring(5),16),t=$(a[2].substring(3,5),16),e=$(a[2].substring(1,3),16));a[3]&&(h=$((w=a[3].charAt(3))+w,16),t=$((w=a[3].charAt(2))+w,16),e=$((w=a[3].charAt(1))+
  w,16));a[4]&&(w=a[4].split(Ga),e=L(w[0]),"%"==w[0].slice(-1)&&(e*=2.55),t=L(w[1]),"%"==w[1].slice(-1)&&(t*=2.55),h=L(w[2]),"%"==w[2].slice(-1)&&(h*=2.55),"rgba"==a[1].toLowerCase().slice(0,4)&&(c=L(w[3])),w[3]&&"%"==w[3].slice(-1)&&(c/=100));if(a[5])return w=a[5].split(Ga),e=L(w[0]),"%"==w[0].slice(-1)&&(e*=2.55),t=L(w[1]),"%"==w[1].slice(-1)&&(t*=2.55),h=L(w[2]),"%"==w[2].slice(-1)&&(h*=2.55),"deg"!=w[0].slice(-3)&&"°"!=w[0].slice(-1)||(e/=360),"hsba"==a[1].toLowerCase().slice(0,4)&&(c=L(w[3])),
  w[3]&&"%"==w[3].slice(-1)&&(c/=100),b.hsb2rgb(e,t,h,c);if(a[6])return w=a[6].split(Ga),e=L(w[0]),"%"==w[0].slice(-1)&&(e*=2.55),t=L(w[1]),"%"==w[1].slice(-1)&&(t*=2.55),h=L(w[2]),"%"==w[2].slice(-1)&&(h*=2.55),"deg"!=w[0].slice(-3)&&"°"!=w[0].slice(-1)||(e/=360),"hsla"==a[1].toLowerCase().slice(0,4)&&(c=L(w[3])),w[3]&&"%"==w[3].slice(-1)&&(c/=100),b.hsl2rgb(e,t,h,c);a={r:e,g:t,b:h,toString:K};a.hex="#"+(16777216|h|t<<8|e<<16).toString(16).slice(1);b.is(c,"finite")&&(a.opacity=c);return a}return{r:-1,
  g:-1,b:-1,hex:"none",error:1,toString:K}},b);b.tintshade=ea(function(a,c){var e=b.getRGB(a),t;t=255;0>c&&(c*=-1,t=0);1<c&&(c=1);t=0===c?e:{r:t-(t-e.r)*c,g:t-(t-e.g)*c,b:t-(t-e.b)*c,toString:K};t.hex=b.rgb(t.r,t.g,t.b);e.error&&(t.error=e.error);"opacity"in e?(t.rgba="rgba("+[t.r,t.g,t.b,e.opacity].join()+")",t.opacity=e.opacity):t.rgba="rgb("+[t.r,t.g,t.b].join()+")";return t},b);b.hsb=ea(function(a,c,e){return b.hsb2rgb(a,c,e).hex});b.hsl=ea(function(a,c,e){return b.hsl2rgb(a,c,e).hex});b.rgb=ea(function(a,
  b,c){return"#"+(16777216|c|b<<8|a<<16).toString(16).slice(1)});b.getColor=function(a){a=this.getColor.start=this.getColor.start||{h:0,s:1,b:a||.75};var b=this.hsb2rgb(a.h,a.s,a.b);a.h+=.075;1<a.h&&(a.h=0,a.s-=.2,0>=a.s&&(this.getColor.start={h:0,s:1,b:a.b}));return b.hex};b.getColor.reset=function(){delete this.start};b.parsePathString=function(a){if(!a)return null;var c=xb(a);if(c.arr)return P(c.arr);var e={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},t=[];b.is(a,l)&&b.is(a[0],l)&&(t=P(a));t.length||
  k(a).replace(Rb,function(a,b,c){var h=[];a=b.toLowerCase();c.replace(jb,function(a,b){b&&h.push(+b)});"m"==a&&2<h.length&&(t.push([b].concat(h.splice(0,2))),a="l",b="m"==b?"l":"L");if("r"==a)t.push([b].concat(h));else for(;h.length>=e[a]&&(t.push([b].concat(h.splice(0,e[a]))),e[a]););});t.toString=b._path2string;c.arr=P(t);return t};b.parseTransformString=ea(function(a){if(!a)return null;var c=[];b.is(a,l)&&b.is(a[0],l)&&(c=P(a));c.length||k(a).replace(Fb,function(a,b,e){var t=[];Ya.call(b);e.replace(jb,
  function(a,b){b&&t.push(+b)});c.push([b].concat(t))});c.toString=b._path2string;return c});var xb=function(a){var b=xb.ps=xb.ps||{};b[a]?b[a].sleep=100:b[a]={sleep:100};setTimeout(function(){for(var c in b)b.hasOwnProperty(c)&&c!=a&&(b[c].sleep--,!b[c].sleep&&delete b[c])});return b[a]};b.findDotsAtSegment=function(a,b,c,e,t,h,w,J,k){var M=1-k,f=la(M,3),d=la(M,2),g=k*k,u=g*k,S=f*a+3*d*k*c+3*M*k*k*t+u*w,f=f*b+3*d*k*e+3*M*k*k*h+u*J,d=a+2*k*(c-a)+g*(t-2*c+a),u=b+2*k*(e-b)+g*(h-2*e+b),l=c+2*k*(t-c)+g*
  (w-2*t+c),g=e+2*k*(h-e)+g*(J-2*h+e);a=M*a+k*c;b=M*b+k*e;t=M*t+k*w;h=M*h+k*J;J=90-180*aa.atan2(d-l,u-g)/pa;(d>l||u<g)&&(J+=180);return{x:S,y:f,m:{x:d,y:u},n:{x:l,y:g},start:{x:a,y:b},end:{x:t,y:h},alpha:J}};b.bezierBBox=function(a,c,e,t,h,w,J,k){b.is(a,"array")||(a=[a,c,e,t,h,w,J,k]);a=wa.apply(null,a);return{x:a.min.x,y:a.min.y,x2:a.max.x,y2:a.max.y,width:a.max.x-a.min.x,height:a.max.y-a.min.y}};b.isPointInsideBBox=function(a,b,c){return b>=a.x&&b<=a.x2&&c>=a.y&&c<=a.y2};b.isBBoxIntersect=function(a,
  c){var e=b.isPointInsideBBox;return e(c,a.x,a.y)||e(c,a.x2,a.y)||e(c,a.x,a.y2)||e(c,a.x2,a.y2)||e(a,c.x,c.y)||e(a,c.x2,c.y)||e(a,c.x,c.y2)||e(a,c.x2,c.y2)||(a.x<c.x2&&a.x>c.x||c.x<a.x2&&c.x>a.x)&&(a.y<c.y2&&a.y>c.y||c.y<a.y2&&c.y>a.y)};b.pathIntersection=function(b,c){return a(b,c)};b.pathIntersectionNumber=function(b,c){return a(b,c,1)};b.isPointInsidePath=function(c,e,t){var h=b.pathBBox(c);return b.isPointInsideBBox(h,e,t)&&(1==a(c,[["M",e,t],["H",h.x2+10]],1)%2||1==a(c,[["M",e,t],["V",h.y2+10]],
  1)%2)};b._removedFactory=function(a){return function(){m("raphael.log",null,"Raphaël: you are calling to method “"+a+"” of removed object",a)}};var Zb=b.pathBBox=function(a){var b=xb(a);if(b.bbox)return b.bbox;if(!a)return{x:0,y:0,width:0,height:0,x2:0,y2:0};a=Ab(a);for(var c=0,e=0,t=[],h=[],w,J=0,k=a.length;J<k;J++)w=a[J],"M"==w[0]?(c=w[1],e=w[2],t.push(c),h.push(e)):(c=wa(c,e,w[1],w[2],w[3],w[4],w[5],w[6]),t=t.concat(c.min.x,c.max.x),h=h.concat(c.min.y,c.max.y),c=w[5],e=w[6]);a=Y[F](0,t);w=Y[F](0,
  h);t=sa[F](0,t);h=sa[F](0,h);h={x:a,y:w,x2:t,y2:h,width:t-a,height:h-w};b.bbox=eb(h);return h},P=function(a){a=eb(a);a.toString=b._path2string;return a},Hb=b._pathToRelative=function(a){var c=xb(a);if(c.rel)return P(c.rel);b.is(a,l)&&b.is(a&&a[0],l)||(a=b.parsePathString(a));var e=[],t=0,h=0,w=0,J=0,k=0;"M"==a[0][0]&&(t=a[0][1],h=a[0][2],w=t,J=h,k++,e.push(["M",t,h]));for(var M=a.length;k<M;k++){var f=e[k]=[],d=a[k];if(d[0]!=Ya.call(d[0]))switch(f[0]=Ya.call(d[0]),f[0]){case "a":f[1]=d[1];f[2]=d[2];
  f[3]=d[3];f[4]=d[4];f[5]=d[5];f[6]=+(d[6]-t).toFixed(3);f[7]=+(d[7]-h).toFixed(3);break;case "v":f[1]=+(d[1]-h).toFixed(3);break;case "m":w=d[1],J=d[2];default:for(var g=1,u=d.length;g<u;g++)f[g]=+(d[g]-(g%2?t:h)).toFixed(3)}else for(e[k]=[],"m"==d[0]&&(w=d[1]+t,J=d[2]+h),f=0,g=d.length;f<g;f++)e[k][f]=d[f];d=e[k].length;switch(e[k][0]){case "z":t=w;h=J;break;case "h":t+=+e[k][d-1];break;case "v":h+=+e[k][d-1];break;default:t+=+e[k][d-2],h+=+e[k][d-1]}}e.toString=b._path2string;c.rel=P(e);return e},
  Kb=b._pathToAbsolute=function(a){var c=xb(a),e;if(c.abs)return P(c.abs);b.is(a,l)&&b.is(a&&a[0],l)||(a=b.parsePathString(a));if(!a||!a.length)return e=["M",0,0],e.toString=b._path2string,e;var t=0,h=0,w=0,k=0,J=0;e=[];"M"==a[0][0]&&(t=+a[0][1],h=+a[0][2],w=t,k=h,J++,e[0]=["M",t,h]);for(var M=3==a.length&&"M"==a[0][0]&&"R"==a[1][0].toUpperCase()&&"Z"==a[2][0].toUpperCase(),f,d=J,g=a.length;d<g;d++){e.push(J=[]);f=a[d];if(f[0]!=ib.call(f[0]))switch(J[0]=ib.call(f[0]),J[0]){case "A":J[1]=f[1];J[2]=f[2];
  J[3]=f[3];J[4]=f[4];J[5]=f[5];J[6]=+(f[6]+t);J[7]=+(f[7]+h);break;case "V":J[1]=+f[1]+h;break;case "H":J[1]=+f[1]+t;break;case "R":for(var u=[t,h].concat(f.slice(1)),S=2,R=u.length;S<R;S++)u[S]=+u[S]+t,u[++S]=+u[S]+h;e.pop();e=e.concat(I(u,M));break;case "M":w=+f[1]+t,k=+f[2]+h;default:for(S=1,R=f.length;S<R;S++)J[S]=+f[S]+(S%2?t:h)}else if("R"==f[0])u=[t,h].concat(f.slice(1)),e.pop(),e=e.concat(I(u,M)),J=["R"].concat(f.slice(-2));else for(u=0,S=f.length;u<S;u++)J[u]=f[u];switch(J[0]){case "Z":t=
  w;h=k;break;case "H":t=J[1];break;case "V":h=J[1];break;case "M":w=J[J.length-2],k=J[J.length-1];default:t=J[J.length-2],h=J[J.length-1]}}e.toString=b._path2string;c.abs=P(e);return e},$a=function(a,b,c,e){return[a,b,c,e,c,e]},ub=function(a,b,c,e,t,h){var w=1/3,J=2/3;return[w*a+J*c,w*b+J*e,w*t+J*c,w*h+J*e,t,h]},Ra=function(a,b,c,e,t,h,w,J,k,f){var M=120*pa/180,d=qa*(+t||0),g=[],u,S=ea(function(a,b,c){var e=a*ya(c)-b*Ia(c);a=a*Ia(c)+b*ya(c);return{x:e,y:a}});if(f)n=f[0],u=f[1],h=f[2],l=f[3];else{u=
  S(a,b,-d);a=u.x;b=u.y;u=S(J,k,-d);J=u.x;k=u.y;ya(qa*t);Ia(qa*t);u=(a-J)/2;n=(b-k)/2;l=u*u/(c*c)+n*n/(e*e);1<l&&(l=ma(l),c*=l,e*=l);var l=c*c,R=e*e,l=(h==w?-1:1)*ma(Ea((l*R-l*n*n-R*u*u)/(l*n*n+R*u*u)));h=l*c*n/e+(a+J)/2;var l=l*-e*u/c+(b+k)/2,n=aa.asin(((b-l)/e).toFixed(9));u=aa.asin(((k-l)/e).toFixed(9));n=a<h?pa-n:n;u=J<h?pa-u:u;0>n&&(n=2*pa+n);0>u&&(u=2*pa+u);w&&n>u&&(n-=2*pa);!w&&u>n&&(u-=2*pa)}if(Ea(u-n)>M){var g=u,R=J,ca=k;u=n+M*(w&&u>n?1:-1);J=h+c*ya(u);k=l+e*Ia(u);g=Ra(J,k,c,e,t,0,w,R,ca,[u,
  g,h,l])}h=u-n;t=ya(n);M=Ia(n);w=ya(u);u=Ia(u);h=aa.tan(h/4);c=4/3*c*h;h*=4/3*e;e=[a,b];a=[a+c*M,b-h*t];b=[J+c*u,k-h*w];J=[J,k];a[0]=2*e[0]-a[0];a[1]=2*e[1]-a[1];if(f)return[a,b,J].concat(g);g=[a,b,J].concat(g).join().split(",");f=[];J=0;for(k=g.length;J<k;J++)f[J]=J%2?S(g[J-1],g[J],d).y:S(g[J],g[J+1],d).x;return f},Tb=function(a,b,c,e,t,h,w,J,k){var f=1-k;return{x:la(f,3)*a+3*la(f,2)*k*c+3*f*k*k*t+la(k,3)*w,y:la(f,3)*b+3*la(f,2)*k*e+3*f*k*k*h+la(k,3)*J}},wa=ea(function(a,b,c,e,t,h,w,J){var k=t-2*
  c+a-(w-2*t+c),f=2*(c-a)-2*(t-c),M=a-c,d=(-f+ma(f*f-4*k*M))/2/k,k=(-f-ma(f*f-4*k*M))/2/k,g=[b,J],u=[a,w];"1e12"<Ea(d)&&(d=.5);"1e12"<Ea(k)&&(k=.5);0<d&&1>d&&(d=Tb(a,b,c,e,t,h,w,J,d),u.push(d.x),g.push(d.y));0<k&&1>k&&(d=Tb(a,b,c,e,t,h,w,J,k),u.push(d.x),g.push(d.y));k=h-2*e+b-(J-2*h+e);f=2*(e-b)-2*(h-e);M=b-e;d=(-f+ma(f*f-4*k*M))/2/k;k=(-f-ma(f*f-4*k*M))/2/k;"1e12"<Ea(d)&&(d=.5);"1e12"<Ea(k)&&(k=.5);0<d&&1>d&&(d=Tb(a,b,c,e,t,h,w,J,d),u.push(d.x),g.push(d.y));0<k&&1>k&&(d=Tb(a,b,c,e,t,h,w,J,k),u.push(d.x),
  g.push(d.y));return{min:{x:Y[F](0,u),y:Y[F](0,g)},max:{x:sa[F](0,u),y:sa[F](0,g)}}}),Ab=b._path2curve=ea(function(a,b){var c=!b&&xb(a);if(!b&&c.curve)return P(c.curve);var e=Kb(a),t=b&&Kb(b),h={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},w={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},J=function(a,b){var c,e;if(!a)return["C",b.x,b.y,b.x,b.y,b.x,b.y];a[0]in{T:1,Q:1}||(b.qx=b.qy=null);switch(a[0]){case "M":b.X=a[1];b.Y=a[2];break;case "A":a=["C"].concat(Ra[F](0,[b.x,b.y].concat(a.slice(1))));break;case "S":c=
  b.x+(b.x-(b.bx||b.x));e=b.y+(b.y-(b.by||b.y));a=["C",c,e].concat(a.slice(1));break;case "T":b.qx=b.x+(b.x-(b.qx||b.x));b.qy=b.y+(b.y-(b.qy||b.y));a=["C"].concat(ub(b.x,b.y,b.qx,b.qy,a[1],a[2]));break;case "Q":b.qx=a[1];b.qy=a[2];a=["C"].concat(ub(b.x,b.y,a[1],a[2],a[3],a[4]));break;case "L":a=["C"].concat($a(b.x,b.y,a[1],a[2]));break;case "H":a=["C"].concat($a(b.x,b.y,a[1],b.y));break;case "V":a=["C"].concat($a(b.x,b.y,b.x,a[1]));break;case "Z":a=["C"].concat($a(b.x,b.y,b.X,b.Y))}return a},k=function(a,
  b){if(7<a[b].length){a[b].shift();for(var c=a[b];c.length;)a.splice(b++,0,["C"].concat(c.splice(0,6)));a.splice(b,1);d=sa(e.length,t&&t.length||0)}},f=function(a,b,c,h,w){a&&b&&"M"==a[w][0]&&"M"!=b[w][0]&&(b.splice(w,0,["M",h.x,h.y]),c.bx=0,c.by=0,c.x=a[w][1],c.y=a[w][2],d=sa(e.length,t&&t.length||0))},M=0,d=sa(e.length,t&&t.length||0);for(;M<d;M++){e[M]=J(e[M],h);k(e,M);t&&(t[M]=J(t[M],w));t&&k(t,M);f(e,t,h,w,M);f(t,e,w,h,M);var g=e[M],u=t&&t[M],S=g.length,l=t&&u.length;h.x=g[S-2];h.y=g[S-1];h.bx=
  L(g[S-4])||h.x;h.by=L(g[S-3])||h.y;w.bx=t&&(L(u[l-4])||w.x);w.by=t&&(L(u[l-3])||w.y);w.x=t&&u[l-2];w.y=t&&u[l-1]}t||(c.curve=P(e));return t?[e,t]:e},null,P);b._parseDots=ea(function(a){for(var c=[],e=0,t=a.length;e<t;e++){var h={},w=a[e].match(/^([^:]*):?([\d\.]*)/);h.color=b.getRGB(w[1]);if(h.color.error)return null;h.opacity=h.color.opacity;h.color=h.color.hex;w[2]&&(h.offset=w[2]+"%");c.push(h)}e=1;for(t=c.length-1;e<t;e++)if(!c[e].offset){a=L(c[e-1].offset||0);w=0;for(h=e+1;h<t;h++)if(c[h].offset){w=
  c[h].offset;break}w||(w=100,h=t);w=L(w);for(w=(w-a)/(h-e+1);e<h;e++)a+=w,c[e].offset=a+"%"}return c});var t=b._tear=function(a,b){a==b.top&&(b.top=a.prev);a==b.bottom&&(b.bottom=a.next);a.next&&(a.next.prev=a.prev);a.prev&&(a.prev.next=a.next)};b._tofront=function(a,b){if(b.top===a)return!1;t(a,b);a.next=null;a.prev=b.top;b.top.next=a;b.top=a;return!0};b._toback=function(a,b){if(b.bottom===a)return!1;t(a,b);a.next=b.bottom;a.prev=null;b.bottom.prev=a;b.bottom=a;return!0};b._insertafter=function(a,
  b,c,e){t(a,c);a.parent=e;b===e.top&&(e.top=a);b.next&&(b.next.prev=a);a.next=b.next;a.prev=b;b.next=a};b._insertbefore=function(a,b,c,e){t(a,c);a.parent=e;b===e.bottom&&(e.bottom=a);b.prev&&(b.prev.next=a);a.prev=b.prev;b.prev=a;a.next=b};var w=b.toMatrix=function(a,b){var c=Zb(a),e={_:{transform:""},getBBox:function(){return c}};J(e,b);return e.matrix};b.transformPath=function(a,b){return ja(a,w(a,b))};var J=b._extractTransform=function(a,c){if(null==c)return a._.transform;c=k(c).replace(/\.{3}|\u2026/g,
  a._.transform||"");var e=b.parseTransformString(c),t=0,h=0,w=0,J=1,f=1,M=a._,w=new v;M.transform=e||[];if(e)for(var h=0,d=e.length;h<d;h++){var g=e[h],u=g.length,S=k(g[0]).toLowerCase(),l=g[0]!=S,R=l?w.invert():0,n;"t"==S&&3==u?l?(u=R.x(0,0),S=R.y(0,0),l=R.x(g[1],g[2]),R=R.y(g[1],g[2]),w.translate(l-u,R-S)):w.translate(g[1],g[2]):"r"==S?2==u?(n=n||a.getBBox(1),w.rotate(g[1],n.x+n.width/2,n.y+n.height/2),t+=g[1]):4==u&&(l?(l=R.x(g[2],g[3]),R=R.y(g[2],g[3]),w.rotate(g[1],l,R)):w.rotate(g[1],g[2],g[3]),
  t+=g[1]):"s"==S?2==u||3==u?(n=n||a.getBBox(1),w.scale(g[1],g[u-1],n.x+n.width/2,n.y+n.height/2),J*=g[1],f*=g[u-1]):5==u&&(l?(l=R.x(g[3],g[4]),R=R.y(g[3],g[4]),w.scale(g[1],g[2],l,R)):w.scale(g[1],g[2],g[3],g[4]),J*=g[1],f*=g[2]):"m"==S&&7==u&&w.add(g[1],g[2],g[3],g[4],g[5],g[6]);M.dirtyT=1;a.matrix=w}a.matrix=w;M.sx=J;M.sy=f;M.deg=t;M.dx=h=w.e;M.dy=w=w.f;1==J&&1==f&&!t&&M.bbox?(M.bbox.x+=+h,M.bbox.y+=+w):M.dirtyT=1},M=function(a){var b=a[0];switch(b.toLowerCase()){case "t":return[b,0,0];case "m":return[b,
  1,0,0,1,0,0];case "r":return 4==a.length?[b,0,a[2],a[3]]:[b,0];case "s":return 5==a.length?[b,1,1,a[3],a[4]]:3==a.length?[b,1,1]:[b,1]}},e=b._equaliseTransform=function(a,c){c=k(c).replace(/\.{3}|\u2026/g,a);a=b.parseTransformString(a)||[];c=b.parseTransformString(c)||[];for(var e=sa(a.length,c.length),t=[],h=[],w=0,J,f,d,g;w<e;w++){d=a[w]||M(c[w]);g=c[w]||M(d);if(d[0]!=g[0]||"r"==d[0].toLowerCase()&&(d[2]!=g[2]||d[3]!=g[3])||"s"==d[0].toLowerCase()&&(d[3]!=g[3]||d[4]!=g[4]))return;t[w]=[];h[w]=[];
  J=0;for(f=sa(d.length,g.length);J<f;J++)J in d&&(t[w][J]=d[J]),J in g&&(h[w][J]=g[J])}return{from:t,to:h}};b._getContainer=function(a,c,e,t){var h;h=null!=t||b.is(a,"object")?a:r.doc.getElementById(a);if(null!=h)return h.tagName?null==c?{container:h,width:h.style.pixelWidth||h.offsetWidth,height:h.style.pixelHeight||h.offsetHeight}:{container:h,width:c,height:e}:{container:1,x:a,y:c,width:e,height:t}};b.pathToRelative=Hb;b._engine={};b.path2curve=Ab;b.matrix=function(a,b,c,e,t,h){return new v(a,b,
  c,e,t,h)};(function(a){function c(a){return a[0]*a[0]+a[1]*a[1]}function e(a){var b=ma(c(a));a[0]&&(a[0]/=b);a[1]&&(a[1]/=b)}a.add=function(a,b,c,e,t,h){var w=[[],[],[]],J=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]];b=[[a,c,t],[b,e,h],[0,0,1]];a&&a instanceof v&&(b=[[a.a,a.c,a.e],[a.b,a.d,a.f],[0,0,1]]);for(a=0;3>a;a++)for(c=0;3>c;c++){for(e=t=0;3>e;e++)t+=J[a][e]*b[e][c];w[a][c]=t}this.a=w[0][0];this.b=w[1][0];this.c=w[0][1];this.d=w[1][1];this.e=w[0][2];this.f=w[1][2]};a.invert=function(){var a=
  this.a*this.d-this.b*this.c;return new v(this.d/a,-this.b/a,-this.c/a,this.a/a,(this.c*this.f-this.d*this.e)/a,(this.b*this.e-this.a*this.f)/a)};a.clone=function(){return new v(this.a,this.b,this.c,this.d,this.e,this.f)};a.translate=function(a,b){this.add(1,0,0,1,a,b)};a.scale=function(a,b,c,e){null==b&&(b=a);(c||e)&&this.add(1,0,0,1,c,e);this.add(a,0,0,b,0,0);(c||e)&&this.add(1,0,0,1,-c,-e)};a.rotate=function(a,c,e){a=b.rad(a);c=c||0;e=e||0;var t=+ya(a).toFixed(9);a=+Ia(a).toFixed(9);this.add(t,
  a,-a,t,c,e);this.add(1,0,0,1,-c,-e)};a.x=function(a,b){return a*this.a+b*this.c+this.e};a.y=function(a,b){return a*this.b+b*this.d+this.f};a.get=function(a){return+this[k.fromCharCode(97+a)].toFixed(4)};a.toString=function(){return b.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()};a.toMatrixString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+
  ")"};a.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"};a.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]};a.split=function(){var a={};a.dx=this.e;a.dy=this.f;var t=[[this.a,this.c],[this.b,this.d]];a.scalex=ma(c(t[0]));e(t[0]);a.shear=t[0][0]*t[1][0]+t[0][1]*t[1][1];t[1]=[t[1][0]-t[0][0]*a.shear,t[1][1]-t[0][1]*
  a.shear];a.scaley=ma(c(t[1]));e(t[1]);a.shear/=a.scaley;var h=-t[0][1],t=t[1][1];0>t?(a.rotate=b.deg(aa.acos(t)),0>h&&(a.rotate=360-a.rotate)):a.rotate=b.deg(aa.asin(h));a.isSimple=!+a.shear.toFixed(9)&&(a.scalex.toFixed(9)==a.scaley.toFixed(9)||!a.rotate);a.isSuperSimple=!+a.shear.toFixed(9)&&a.scalex.toFixed(9)==a.scaley.toFixed(9)&&!a.rotate;a.noRotation=!+a.shear.toFixed(9)&&!a.rotate;return a};a.toTransformString=function(a){a=a||this.split();return a.isSimple?(a.scalex=+a.scalex.toFixed(4),
  a.scaley=+a.scaley.toFixed(4),a.rotate=+a.rotate.toFixed(4),(a.dx||a.dy?"t"+[a.dx,a.dy]:"")+(1!=a.scalex||1!=a.scaley?"s"+[a.scalex,a.scaley,0,0]:"")+(a.rotate?"r"+[a.rotate,0,0]:"")):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}})(v.prototype);var ca=navigator.userAgent.match(/Version\/(.*?)\s/)||navigator.userAgent.match(/Chrome\/(\d+)/);"Apple Computer, Inc."==navigator.vendor&&(ca&&4>ca[1]||"iP"==navigator.platform.slice(0,2))||"Google Inc."==navigator.vendor&&
  ca&&8>ca[1]?U.safari=function(){var a=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});setTimeout(function(){a.remove()});return!0}:U.safari=N;for(var R=function(){this.returnValue=!1},S=function(){return this.originalEvent.preventDefault()},ka=function(){this.cancelBubble=!0},ic=function(){return this.originalEvent.stopPropagation()},Yb=b.addEvent=function(){if(r.doc.addEventListener)return function(a,b,c,e){var t=za&&T[b]||b,h;T[fa[b]]&&(t=T[fa[b]]);h=function(t){var h=r.doc.documentElement.scrollTop||
  r.doc.body.scrollTop,w=r.doc.documentElement.scrollLeft||r.doc.body.scrollLeft,J;if(ta&&T.hasOwnProperty(za?b:fa[b]))for(var k=0,f=t.targetTouches&&t.targetTouches.length;k<f;k++)if(J=t.targetTouches[k].target,J==a||"tspan"==J.nodeName&&J.parentNode==a){J=t;t=t.targetTouches[k];t.originalEvent=J;t.preventDefault=S;t.stopPropagation=ic;break}return c.call(e,t,t.clientX+w,t.clientY+h)};a.addEventListener(t,h,!1);return function(){a.removeEventListener(t,h,!1);return!0}};if(r.doc.attachEvent)return function(a,
  b,c,e){var t=function(a){a=a||r.win.event;var b=a.clientX+(r.doc.documentElement.scrollLeft||r.doc.body.scrollLeft),t=a.clientY+(r.doc.documentElement.scrollTop||r.doc.body.scrollTop);a.preventDefault=a.preventDefault||R;a.stopPropagation=a.stopPropagation||ka;return c.call(e,a,b,t)};a.attachEvent("on"+b,t);return function(){a.detachEvent("on"+b,t);return!0}}}(),jc=[],Wc=function(a){for(var c=a.clientX,e=a.clientY,t=r.doc.documentElement.scrollTop||r.doc.body.scrollTop,h=r.doc.documentElement.scrollLeft||
  r.doc.body.scrollLeft,w,J=jc.length;J--;){w=jc[J];if(ta&&"touchmove"===a.type)for(var k=a.touches.length,f;k--;){if(f=a.touches[k],f.identifier==w.el._drag.id){c=f.clientX;e=f.clientY;(a.originalEvent?a.originalEvent:a).preventDefault();break}}else a.preventDefault();if(!w.el.removed){var k=b._engine.getNode(w.el),M=k.nextSibling,d=k.parentNode,g=k.style.display;r.win.opera&&d.removeChild(k);k.style.display="none";f=w.el.paper.getElementByPoint(c,e);k.style.display=g;r.win.opera&&(M?d.insertBefore(k,
  M):d.appendChild(k));f&&m("raphael.drag.over."+w.el.id,w.el,f);c+=h;e+=t;m("raphael.drag.move."+w.el.id,w.move_scope||w.el,c-w.el._drag.x,e-w.el._drag.y,c,e,a)}}},X=function(a){b.unmousemove(Wc).unmouseup(X);for(var c=jc.length,e;c--;)e=jc[c],e.el._drag={},m("raphael.drag.end."+e.el.id,e.end_scope||e.start_scope||e.move_scope||e.el,a);jc=[]},Fa=b.el={},qd=H.length;qd--;)(function(a){b[a]=Fa[a]=function(c,e){b.is(c,"function")&&(this.events=this.events||[],this.events.push({name:a,f:c,unbind:Yb(this.shape||
  this.node||r.doc,a,c,e||this)}));return this};b["un"+a]=Fa["un"+a]=function(b){for(var c=this.events||[],e=c.length;e--;)if(c[e].name==a&&c[e].f==b){c[e].unbind();c.splice(e,1);!c.length&&delete this.events;break}return this}})(H[qd]);Fa.data=function(a,c){var e=u[this.id]=u[this.id]||{};if(1==arguments.length){if(b.is(a,"object")){for(var t in a)a.hasOwnProperty(t)&&this.data(t,a[t]);return this}m("raphael.data.get."+this.id,this,e[a],a);return e[a]}e[a]=c;m("raphael.data.set."+this.id,this,c,a);
  return this};Fa.removeData=function(a){null==a?delete u[this.id]:u[this.id]&&delete u[this.id][a];return this};Fa.getData=function(){return eb(u[this.id]||{})};var Jc=[],wd=function(){this.untrack=Yb(r.doc,"mouseup",vd,this)},vd=function(){this.untrack();this.untrack=null;return this.fn&&this.fn.apply(this.scope||this.el,arguments)};Fa.mouseup=function(a,c,e){if(!e)return b.mouseup.apply(this,arguments);Jc.push(e={el:this,fn:a,scope:c});e.unbind=Yb(this.shape||this.node||r.doc,"mousedown",wd,e);return this};
  Fa.unmouseup=function(a){for(var c=Jc.length,e;c--;)Jc[c].el===this&&Jc[c].fn===a&&(e=Jc[c],e.unbind(),e.untrack&&e.untrack(),Jc.splice(c,1));return e?this:b.unmouseup.apply(this,arguments)};Fa.hover=function(a,b,c,e){return this.mouseover(a,c).mouseout(b,e||c)};Fa.unhover=function(a,b){return this.unmouseover(a).unmouseout(b)};var Kc=[];Fa.drag=function(a,c,e,t,h,w){function J(k){(k.originalEvent||k).preventDefault();var f=r.doc.documentElement.scrollTop||r.doc.body.scrollTop,M=r.doc.documentElement.scrollLeft||
  r.doc.body.scrollLeft;this._drag.x=k.clientX+M;this._drag.y=k.clientY+f;this._drag.id=k.identifier;!jc.length&&b.mousemove(Wc).mouseup(X);ta&&!za&&!jc.length&&b.dragmove(Wc).dragend(X);jc.push({el:this,move_scope:t,start_scope:h,end_scope:w});c&&m.on("raphael.drag.start."+this.id,c);a&&m.on("raphael.drag.move."+this.id,a);e&&m.on("raphael.drag.end."+this.id,e);m("raphael.drag.start."+this.id,h||t||this,k.clientX+M,k.clientY+f,k)}this._drag={};Kc.push({el:this,start:J});this.mousedown(J);ta&&!za&&
  this.dragstart(J);return this};Fa.onDragOver=function(a){a?m.on("raphael.drag.over."+this.id,a):m.unbind("raphael.drag.over."+this.id)};Fa.undrag=function(){for(var a=Kc.length;a--;)Kc[a].el==this&&(this.unmousedown(Kc[a].start),Kc.splice(a,1),m.unbind("raphael.drag.*."+this.id));!Kc.length&&b.unmousemove(Wc).unmouseup(X);delete this._drag};Fa.follow=function(a,c,e){if(a.removed||a.constructor!==b.el.constructor)return this;a.followers.push({el:this,stalk:e={before:"insertBefore",after:"insertAfter"}[e],
  cb:c});e&&this[e](a);return this};Fa.unfollow=function(a){if(a.removed||a.constructor!==b.el.constructor)return this;for(var c=0,e=a.followers.length;c<e;c++)if(a.followers[c].el===this){a.followers.splice(c,1);break}return this};U.hide=function(){this.canvas.style.visibility="hidden";return this};U.show=function(){this.canvas.style.visibility="";return this};U.group=function(){var a=arguments,c=Ha(a,!0),a=b._engine.group(this,a[0],c);return this.__set__&&this.__set__.push(a),this._elementsById[a.id]=
  a};U.circle=function(){var a=arguments,c=Ha(a,!0),a=Ba(a,"cx",0,"cy",0,"r",0,"fill","none","stroke","#000"),c=b._engine.circle(this,a,c);return this.__set__&&this.__set__.push(c),this._elementsById[c.id]=c};U.rect=function(){var a=arguments,c=Ha(a,!0),a=Ba(a,"x",0,"y",0,"width",0,"height",0,"r",0,"fill","none","stroke","#000"),c=b._engine.rect(this,a,c);return this.__set__&&this.__set__.push(c),this._elementsById[c.id]=c};U.ellipse=function(){var a=arguments,c=Ha(a,!0),a=Ba(a,"x",0,"y",0,"rx",0,"ry",
  0,"fill","none","stroke","#000"),c=b._engine.ellipse(this,a,c);return this.__set__&&this.__set__.push(c),this._elementsById[c.id]=c};U.path=function(){var a=arguments,c=Ha(a,!0),a=Ba(a,"path","","fill","none","stroke","#000"),c=b._engine.path(this,a,c);return this.__set__&&this.__set__.push(c),this._elementsById[c.id]=c};U.image=function(){var a=arguments,c=Ha(a,!0),a=Ba(a,"src","about:blank","x",0,"y",0,"width",0,"height",0);out=b._engine.image(this,a,c);return this.__set__&&this.__set__.push(out),
  this._elementsById[out.id]=out};U.text=function(){var a=arguments,c=Ha(a,!0),a=Ba(a,"x",0,"y",0,"text","","stroke","none","fill","#000","text-anchor","middle","vertical-align","middle"),c=b._engine.text(this,a,c);return this.__set__&&this.__set__.push(c),this._elementsById[c.id]=c};U.set=function(a){!b.is(a,"array")&&(a=A.call(arguments,0,arguments.length));var c=new Lc(a);this.__set__&&this.__set__.push(c);return c};U.setStart=function(a){this.__set__=a||this.set()};U.setFinish=function(a){a=this.__set__;
  delete this.__set__;return a};U.setSize=function(a,c){return b._engine.setSize.call(this,a,c)};U.setViewBox=function(a,c,e,t,h){return b._engine.setViewBox.call(this,a,c,e,t,h)};U.top=U.bottom=null;U.raphael=b;U.getElementByPoint=function(a,b){var c,e,t=this.canvas,h=r.doc.elementFromPoint(a,b);if(r.win.opera&&"svg"==h.tagName){e=t.getBoundingClientRect();c=t.ownerDocument;var w=c.body,J=c.documentElement;c=e.top+(r.win.pageYOffset||J.scrollTop||w.scrollTop)-(J.clientTop||w.clientTop||0);e=e.left+
  (r.win.pageXOffset||J.scrollLeft||w.scrollLeft)-(J.clientLeft||w.clientLeft||0);w=t.createSVGRect();w.x=a-e;w.y=b-c;w.width=w.height=1;c=t.getIntersectionList(w,null);c.length&&(h=c[c.length-1])}if(!h)return null;for(;h.parentNode&&h!=t.parentNode&&!h.raphael;)h=h.parentNode;h==this.canvas.parentNode&&(h=t);return h=h&&h.raphael?this.getById(h.raphaelid):null};U.getElementsByBBox=function(a){var c=this.set();this.forEach(function(e){b.isBBoxIntersect(e.getBBox(),a)&&c.push(e)});return c};U.getById=
  function(a){return this._elementsById[a]||null};U.forEach=function(a,b){for(var c=this.bottom;c&&!1!==a.call(b,c);)c=c.next;return this};U.getElementsByPoint=function(a,b){var c=this.set();this.forEach(function(e){e.isPointInside(a,b)&&c.push(e)});return c};Fa.isPointInside=function(a,c){var e=this.realPath=this.realPath||ua[this.type](this),t;return b.isPointInsidePath((t=this.attr("transform"))&&t.length&&b.transformPath(e,t)||e,a,c)};Fa.getBBox=function(a){if(this.removed)return{};var b=this._;
  if(a){if(b.dirty||!b.bboxwt)this.realPath=ua[this.type](this),b.bboxwt=Zb(this.realPath),b.bboxwt.toString=O,b.dirty=0;return b.bboxwt}if(b.dirty||b.dirtyT||!b.bbox){if(b.dirty||!this.realPath)b.bboxwt=0,this.realPath=ua[this.type](this);b.bbox=Zb(ja(this.realPath,this.matrix));b.bbox.toString=O;b.dirty=b.dirtyT=0}return b.bbox};Fa.clone=function(){if(this.removed)return null;var a=this.paper[this.type]().attr(this.attr());this.__set__&&this.__set__.push(a);return a};Fa.glow=function(a){if("text"==
  this.type)return null;a=a||{};var b=(a.width||10)+(+this.attr("stroke-width")||1),c=a.fill||!1,e=a.opacity||.5,t=a.offsetx||0,h=a.offsety||0;a=a.color||"#000";for(var w=b/2,J=this.paper,k=J.set(),f=this.realPath||ua[this.type](this),f=this.matrix?ja(f,this.matrix):f,M=1;M<w+1;M++)k.push(J.path(f).attr({stroke:a,fill:c?a:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(b/w*M).toFixed(3),opacity:+(e/w).toFixed(3)}));return k.insertBefore(this).translate(t,h)};var ed=function(a,
  e,t,h,w,J,k,f,M){return null==M?c(a,e,t,h,w,J,k,f):b.findDotsAtSegment(a,e,t,h,w,J,k,f,s(a,e,t,h,w,J,k,f,M))},fd=function(a,c){return function(e,t,h){e=Ab(e);for(var w,J,k,f,M="",d={},g=0,u=0,S=e.length;u<S;u++){k=e[u];if("M"==k[0])w=+k[1],J=+k[2];else{f=ed(w,J,k[1],k[2],k[3],k[4],k[5],k[6]);if(g+f>t){if(c&&!d.start){w=ed(w,J,k[1],k[2],k[3],k[4],k[5],k[6],t-g);M+=["C"+w.start.x,w.start.y,w.m.x,w.m.y,w.x,w.y];if(h)return M;d.start=M;M=["M"+w.x,w.y+"C"+w.n.x,w.n.y,w.end.x,w.end.y,k[5],k[6]].join();
  g+=f;w=+k[5];J=+k[6];continue}if(!a&&!c)return w=ed(w,J,k[1],k[2],k[3],k[4],k[5],k[6],t-g),{x:w.x,y:w.y,alpha:w.alpha}}g+=f;w=+k[5];J=+k[6]}M+=k.shift()+k}d.end=M;w=a?g:c?d:b.findDotsAtSegment(w,J,k[0],k[1],k[2],k[3],k[4],k[5],1);w.alpha&&(w={x:w.x,y:w.y,alpha:w.alpha});return w}},Dc=fd(1),rd=fd(),ob=fd(0,1);b.getTotalLength=Dc;b.getPointAtLength=rd;b.getSubpath=function(a,b,c){if(1E-6>this.getTotalLength(a)-c)return ob(a,b).end;a=ob(a,c,1);return b?ob(a,b).end:a};Fa.getTotalLength=function(){if("path"==
  this.type)return this.node.getTotalLength?this.node.getTotalLength():Dc(this.attrs.path)};Fa.getPointAtLength=function(a){if("path"==this.type)return rd(this.attrs.path,a)};Fa.getSubpath=function(a,c){if("path"==this.type)return b.getSubpath(this.attrs.path,a,c)};var Va=b.easing_formulas={linear:function(a){return a},"<":function(a){return la(a,1.7)},">":function(a){return la(a,.48)},"<>":function(a){var b=.48-a/1.04,c=ma(.1734+b*b);a=c-b;a=la(Ea(a),1/3)*(0>a?-1:1);b=-c-b;b=la(Ea(b),1/3)*(0>b?-1:
  1);a=a+b+.5;return 3*(1-a)*a*a+a*a*a},backIn:function(a){return a*a*(2.70158*a-1.70158)},backOut:function(a){--a;return a*a*(2.70158*a+1.70158)+1},elastic:function(a){return a==!!a?a:la(2,-10*a)*Ia(2*(a-.075)*pa/.3)+1},bounce:function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+.9375):(a-=2.625/2.75,a=7.5625*a*a+.984375);return a}};Va.easeIn=Va["ease-in"]=Va["<"];Va.easeOut=Va["ease-out"]=Va[">"];Va.easeInOut=Va["ease-in-out"]=Va["<>"];Va["back-in"]=
  Va.backIn;Va["back-out"]=Va.backOut;var Oa=[],pd=d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame||d.oRequestAnimationFrame||d.msRequestAnimationFrame||function(a){setTimeout(a,16)},ab=function(){for(var a=+new Date,c=0;c<Oa.length;c++){var e=Oa[c];if(!e.el.removed&&!e.paused){var t=a-e.start,h=e.ms,w=e.easing,k=e.from,J=e.diff,M=e.to,d=e.el,g={},u,S={},l;e.initstatus?(t=(e.initstatus*e.anim.top-e.prev)/(e.percent-e.prev)*h,e.status=e.initstatus,delete e.initstatus,
  e.stop&&Oa.splice(c--,1)):e.status=(e.prev+t/h*(e.percent-e.prev))/e.anim.top;if(!(0>t))if(t<h){var R=w(t/h),n;for(n in k)if(k.hasOwnProperty(n)){switch(G[n]){case Q:u=+k[n]+R*h*J[n];break;case "colour":u="rgb("+[gd(Ma(k[n].r+R*h*J[n].r)),gd(Ma(k[n].g+R*h*J[n].g)),gd(Ma(k[n].b+R*h*J[n].b))].join()+")";break;case "path":u=[];t=0;for(w=k[n].length;t<w;t++){u[t]=[k[n][t][0]];M=1;for(S=k[n][t].length;M<S;M++)u[t][M]=(+k[n][t][M]+R*h*J[n][t][M]).toFixed(4);u[t]=u[t].join(" ")}u=u.join(" ");break;case "transform":if(J[n].real)for(u=
  [],t=0,w=k[n].length;t<w;t++)for(u[t]=[k[n][t][0]],M=1,S=k[n][t].length;M<S;M++)u[t][M]=k[n][t][M]+R*h*J[n][t][M];else u=function(a){return+k[n][a]+R*h*J[n][a]},u=[["m",u(0),u(1),u(2),u(3),u(4),u(5)]];break;case "csv":if("clip-rect"==n)for(u=[],t=4;t--;)u[t]=+k[n][t]+R*h*J[n][t];break;default:for(w=[].concat(k[n]),u=[],t=d.ca[n].length;t--;)u[t]=+w[t]+R*h*J[n][t]}g[n]=u}d.attr(g);(function(a,b,c){setTimeout(function(){m("raphael.anim.frame."+a,b,c)})})(d.id,d,e.anim)}else{(function(a,c,e){setTimeout(function(){m("raphael.anim.frame."+
  c.id,c,e);m("raphael.anim.finish."+c.id,c,e);b.is(a,"function")&&a.call(c)})})(e.callback,d,e.anim);d.attr(M);Oa.splice(c--,1);if(1<e.repeat&&!e.next){for(l in M)M.hasOwnProperty(l)&&(S[l]=e.totalOrigin[l]);e.el.attr(S);f(e.anim,e.el,e.anim.percents[0],null,e.totalOrigin,e.repeat-1)}e.next&&!e.stop&&f(e.anim,e.el,e.next,null,e.totalOrigin,e.repeat)}}}b.svg&&d&&d.paper&&d.paper.safari();Oa.length&&pd(ab)},gd=function(a){return 255<a?255:0>a?0:a};Fa.animateWith=function(a,c,e,t,h,w){if(this.removed)return w&&
  w.call(this),this;e=e instanceof g?e:b.animation(e,t,h,w);f(e,this,e.percents[0],null,this.attr());e=0;for(t=Oa.length;e<t;e++)if(Oa[e].anim==c&&Oa[e].el==a){Oa[t-1].start=Oa[e].start;break}return this};Fa.onAnimation=function(a){a?m.on("raphael.anim.frame."+this.id,a):m.unbind("raphael.anim.frame."+this.id);return this};g.prototype.delay=function(a){var b=new g(this.anim,this.ms);b.times=this.times;b.del=+a||0;return b};g.prototype.repeat=function(a){var b=new g(this.anim,this.ms);b.del=this.del;
  b.times=aa.floor(sa(a,0))||1;return b};b.animation=function(a,c,e,t){if(a instanceof g)return a;if(b.is(e,"function")||!e)t=t||e||null,e=null;a=Object(a);c=+c||0;var h={},w,k;for(k in a)a.hasOwnProperty(k)&&L(k)!=k&&L(k)+"%"!=k&&(w=!0,h[k]=a[k]);return w?(e&&(h.easing=e),t&&(h.callback=t),new g({100:h},c)):new g(a,c)};Fa.animate=function(a,c,e,t){if(this.removed)return t&&t.call(this),this;a=a instanceof g?a:b.animation(a,c,e,t);f(a,this,a.percents[0],null,this.attr());return this};Fa.setTime=function(a,
  b){a&&null!=b&&this.status(a,Y(b,a.ms)/a.ms);return this};Fa.status=function(a,b){var c=[],e=0,t,h;if(null!=b)return f(a,this,-1,Y(b,1)),this;for(t=Oa.length;e<t;e++)if(h=Oa[e],h.el.id==this.id&&(!a||h.anim==a)){if(a)return h.status;c.push({anim:h.anim,status:h.status})}return a?0:c};Fa.pause=function(a){for(var b=0;b<Oa.length;b++)Oa[b].el.id!=this.id||a&&Oa[b].anim!=a||!1===m("raphael.anim.pause."+this.id,this,Oa[b].anim)||(Oa[b].paused=!0);return this};Fa.resume=function(a){for(var b=0;b<Oa.length;b++)if(Oa[b].el.id==
  this.id&&(!a||Oa[b].anim==a)){var c=Oa[b];!1!==m("raphael.anim.resume."+this.id,this,c.anim)&&(delete c.paused,this.status(c.anim,c.status))}return this};Fa.stop=function(a){for(var b=0;b<Oa.length;b++)Oa[b].el.id!=this.id||a&&Oa[b].anim!=a||!1!==m("raphael.anim.stop."+this.id,this,Oa[b].anim)&&Oa.splice(b--,1);return this};m.on("raphael.remove",n);m.on("raphael.clear",n);Fa.toString=function(){return"Raphaël’s object"};Fa.toFront=function(){if(this.removed)return this;var a=b._engine.getNode(this),
  c=this.parent,e=this.followers,t;b._tofront(this,c)&&c.canvas.appendChild(a);a=0;for(c=e.length;a<c;a++)(t=e[a]).stalk&&t.el[t.stalk](this);return this};Fa.toBack=function(){if(this.removed)return this;var a=b._engine.getNode(this),c=this.parent,e=this.followers,t;b._toback(this,c)&&c.canvas.insertBefore(a,c.canvas.firstChild);a=0;for(c=e.length;a<c;a++)(t=e[a]).stalk&&t.el[t.stalk](this);return this};Fa.insertAfter=function(a){if(this.removed)return this;var c=b._engine.getNode(this),e=b._engine.getLastNode(a),
  t=a.parent.canvas,h=this.followers,w;e.nextSibling?t.insertBefore(c,e.nextSibling):t.appendChild(c);b._insertafter(this,a,this.parent,a.parent);c=0;for(e=h.length;c<e;c++)(w=h[c]).stalk&&w.el[w.stalk](a);return this};Fa.insertBefore=function(a){if(this.removed)return this;var c=b._engine.getNode(this),e=b._engine.getNode(a),t=this.followers,h;a.parent.canvas.insertBefore(c,e);b._insertbefore(this,a,this.parent,a.parent);this.parent=a.parent;c=0;for(e=t.length;c<e;c++)(h=t[c]).stalk&&h.el[h.stalk](a);
  return this};Fa.appendChild=function(a){if(this.removed||"group"!==this.type)return this;var c=this.followers,e,t,h;if(a.parent===this)return a.toFront(),this;t=b._engine.getNode(a);b._tear(a,a.parent);this.canvas.appendChild(t);a.parent=this;!this.bottom&&(this.bottom=a);a.prev=this.top;a.next=null;this.top&&(this.top.next=a);this.top=a;t=0;for(h=c.length;t<h;t++)(e=c[t]).stalk&&e.el[e.stalk](a);return this};Fa.removeChild=function(a){if(this.removed||"group"!==this.type||a.parent!==this)return this;
  var c=b._engine.getNode(a),e=this.paper;b._tear(a,this);e.canvas.appendChild(c);this.parent=e;!e.bottom&&(e.bottom=this);(this.prev=e.top)&&(e.top.next=this);e.top=this;this.next=null;return this};var Lc=function(a){this.items=[];this.length=0;this.type="set";if(a)for(var b=0,c=a.length;b<c;b++)!a[b]||a[b].constructor!=Fa.constructor&&a[b].constructor!=Lc||(this[this.items.length]=this.items[this.items.length]=a[b],this.length++)},mb=Lc.prototype;mb.push=function(){for(var a,b,c=0,e=arguments.length;c<
  e;c++)!(a=arguments[c])||a.constructor!=Fa.constructor&&a.constructor!=Lc||(b=this.items.length,this[b]=this.items[b]=a,this.length++);return this};mb.pop=function(){this.length&&delete this[this.length--];return this.items.pop()};mb.forEach=function(a,b){for(var c=0,e=this.items.length;c<e&&!1!==a.call(b,this.items[c],c);c++);return this};for(var hb in Fa)Fa.hasOwnProperty(hb)&&(mb[hb]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a][F](c,b)})}}(hb));mb.attr=function(a,
  c){if(a&&b.is(a,l)&&b.is(a[0],"object"))for(var e=0,t=a.length;e<t;e++)this.items[e].attr(a[e]);else for(e=0,t=this.items.length;e<t;e++)this.items[e].attr(a,c);return this};mb.clear=function(){for(;this.length;)this.pop()};mb.splice=function(a,b,c){a=0>a?sa(this.length+a,0):a;b=sa(0,Y(this.length-a,isNaN(b)&&this.length||b));var e=[],t=[],h=[],w;for(w=2;w<arguments.length;w++)h.push(arguments[w]);for(w=0;w<b;w++)t.push(this[a+w]);for(;w<this.length-a;w++)e.push(this[a+w]);var k=h.length;for(w=0;w<
  k+e.length;w++)this.items[a+w]=this[a+w]=w<k?h[w]:e[w-k];for(w=this.items.length=this.length-=b-k;this[w];)delete this[w++];return new Lc(t)};mb.exclude=function(a){for(var b=0,c=this.length;b<c;b++)if(this[b]==a)return this.splice(b,1),!0};mb.animate=function(a,c,e,t){!b.is(e,"function")&&e||(t=e||null);var h=this.items.length,w=h,k=this,J;if(!h)return this;t&&(J=function(){!--h&&t.call(k)});e=b.is(e,"string")?e:J;c=b.animation(a,c,e,J);for(a=this.items[--w].animate(c);w--;)this.items[w]&&!this.items[w].removed&&
  this.items[w].animateWith(a,c,c);return this};mb.insertAfter=function(a){for(var b=this.items.length;b--;)this.items[b].insertAfter(a);return this};mb.getBBox=function(){for(var a=[],b=[],c=[],e=[],t=this.items.length;t--;)if(!this.items[t].removed){var h=this.items[t].getBBox();a.push(h.x);b.push(h.y);c.push(h.x+h.width);e.push(h.y+h.height)}a=Y[F](0,a);b=Y[F](0,b);c=sa[F](0,c);e=sa[F](0,e);return{x:a,y:b,x2:c,y2:e,width:c-a,height:e-b}};mb.clone=function(a){a=new Lc;for(var b=0,c=this.items.length;b<
  c;b++)a.push(this.items[b].clone());return a};mb.toString=function(){return"Raphaël‘s set"};mb.glow=function(a){var b=this.paper.set();this.forEach(function(c,e){var t=c.glow(a);null!=t&&t.forEach(function(a,c){b.push(a)})});return b};b.registerFont=function(a){if(!a.face)return a;this.fonts=this.fonts||{};var b={w:a.w,face:{},glyphs:{}},c=a.face["font-family"],e;for(e in a.face)a.face.hasOwnProperty(e)&&(b.face[e]=a.face[e]);this.fonts[c]?this.fonts[c].push(b):this.fonts[c]=[b];if(!a.svg){b.face["units-per-em"]=
  $(a.face["units-per-em"],10);for(var t in a.glyphs)if(a.glyphs.hasOwnProperty(t)&&(c=a.glyphs[t],b.glyphs[t]={w:c.w,k:{},d:c.d&&"M"+c.d.replace(/[mlcxtrv]/g,function(a){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[a]||"M"})+"z"},c.k))for(var h in c.k)c.hasOwnProperty(h)&&(b.glyphs[t].k[h]=c.k[h])}return a};U.getFont=function(a,c,e,t){t=t||"normal";e=e||"normal";c=+c||{normal:400,bold:700,lighter:300,bolder:800}[c]||400;if(b.fonts){var h=b.fonts[a];if(!h){a=new RegExp("(^|\\s)"+a.replace(/[^\w\d\s+!~.:_-]/g,
  "")+"(\\s|$)","i");for(var w in b.fonts)if(b.fonts.hasOwnProperty(w)&&a.test(w)){h=b.fonts[w];break}}var k;if(h)for(w=0,a=h.length;w<a&&(k=h[w],k.face["font-weight"]!=c||k.face["font-style"]!=e&&k.face["font-style"]||k.face["font-stretch"]!=t);w++);return k}};U.print=function(a,c,e,t,h,w,J){w=w||"middle";J=sa(Y(J||0,1),-1);var M=k(e).split(""),f=0,d=0,g="";b.is(t,e)&&(t=this.getFont(t));if(t){e=(h||16)/t.face["units-per-em"];var u=t.face.bbox.split(Ta);h=+u[0];var S=u[3]-u[1],l=0;w=+u[1]+("baseline"==
  w?S+ +t.face.descent:S/2);for(var u=0,n=M.length;u<n;u++){if("\n"==M[u])d=ca=f=0,l+=S;else var R=d&&t.glyphs[M[u-1]]||{},ca=t.glyphs[M[u]],f=f+(d?(R.w||t.w)+(R.k&&R.k[M[u]]||0)+t.w*J:0),d=1;ca&&ca.d&&(g+=b.transformPath(ca.d,["t",f*e,l*e,"s",e,e,h,w,"t",(a-h)/e,(c-w)/e]))}}return this.path(g).attr({fill:"#000",stroke:"none"})};U.add=function(a){if(b.is(a,"array"))for(var c=this.set(),e=0,t=a.length,h;e<t;e++)h=a[e]||{},na.hasOwnProperty(h.type)&&c.push(this[h.type]().attr(h));return c};b.format=function(a,
  c){var e=b.is(c,l)?[0].concat(c):arguments;a&&b.is(a,"string")&&e.length-1&&(a=a.replace(Na,function(a,b){return null==e[++b]?"":e[b]}));return a||""};b.fullfill=function(){var a=/\{([^\}]+)\}/g,b=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,c=function(a,c,e){var t=e;c.replace(b,function(a,b,c,e,h){b=b||e;t&&(b in t&&(t=t[b]),"function"==typeof t&&h&&(t=t()))});return t=(null==t||t==e?a:t)+""};return function(b,e){return String(b).replace(a,function(a,b){return c(a,b,e)})}}();b.ninja=
  function(){oa?r.win.Raphael=ga:delete Raphael;return b};var Za=b.vml&&.5||0;b.crispBound=ea(function(a,b,c,e,t){var h={},w;a=a||0;b=b||0;c=c||0;e=e||0;t=t||0;w=t%2/2+Za;h.x=Ma(a+w)-w;h.y=Ma(b+w)-w;h.width=Ma(a+c+w)-w-h.x;h.height=Ma(b+e+w)-w-h.y;h["stroke-width"]=t;0===h.width&&0!==c&&(h.width=1);0===h.height&&0!==e&&(h.height=1);return h},b);Fa.crisp=function(){var a=this.attrs,c,e=this.attr(["x","y","width","height","stroke-width"]),e=b.crispBound(e.x,e.y,e.width,e.height,e["stroke-width"]);for(c in e)a[c]===
  e[c]&&delete e[c];return this.attr(e)};b.st=mb;b.define=function(a,c,e,t,h,w){var k;if(b.is(a,l))for(w=0,k=a.length;w<k;w++)b.define(a[w]);else if(b.is(a,"object"))b.define(a.name,a[a.name],a.ca,a.fn,a.e,a.data);else if(a&&!b.fn[a])return b.fn[a]=function(){var w=arguments,k=c.apply(this,w),J;if(t&&b.is(t,"object"))for(J in t)k[J]=t[J];if(h&&b.is(h,"object"))for(J in h)k[J]&&k[J](h[J]);if(e){if(b.is(e,"function"))k.ca[a]=e;else for(J in e)k.ca[J]=e[J];k.ca[a]&&(b._lastArgIfGroup(w,!0),k.attr(a,C.call(w)))}return k},
  e&&(b.fn[a].ca=e),t&&(b.fn[a].fn=t),h&&(b.fn[a].e=h),w&&(b.fn[a].data=w),b.fn[a]};(function(a,c,e){function t(){/in/.test(a.readyState)?setTimeout(t,9):b.eve("raphael.DOMload")}null==a.readyState&&a.addEventListener&&(a.addEventListener(c,e=function(){a.removeEventListener(c,e,!1);a.readyState="complete"},!1),a.readyState="loading");t()})(document,"DOMContentLoaded");m.on("raphael.DOMload",function(){p=!0});(function(){if(b.svg){var a=String,c=parseFloat,e=parseInt,t=Math,h=t.max,w=t.abs,k=t.pow,
  J=t.sqrt,M=/[, ]+/,f=!(!/AppleWebKit/.test(b._g.win.navigator.userAgent)||/Chrome/.test(b._g.win.navigator.userAgent)&&!(29>b._g.win.navigator.appVersion.match(/Chrome\/(\d+)\./)[1])),d=b.eve,g={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},u={};b.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};b._url="";var S=function(a,b){var c=
  a.gradient;if(c){if(c===b)return;c.refCount--;c.refCount||c.parentNode.removeChild(c);delete a.gradient}b&&(a.gradient=b,b.refCount++)},l=b._createNode=function(c,e){if(e){"string"==typeof c&&(c=l(c));for(var t in e)e.hasOwnProperty(t)&&("xlink:"==t.substring(0,6)?c.setAttributeNS("http://www.w3.org/1999/xlink",t.substring(6),a(e[t])):c.setAttribute(t,a(e[t])))}else c=b._g.doc.createElementNS("http://www.w3.org/2000/svg",c);return c},n={userSpaceOnUse:"userSpaceOnUse",objectBoundingBox:"objectBoundingBox"},
  R={pad:"pad",redlect:"reflect",repeat:"repeat"},ca=function(e,M){if(!e.paper||!e.paper.defs)return 0;var f="linear",d=e.paper,g=(d.id+"-"+M).replace(/[\(\)\s%:,\xb0#]/g,"_"),u=.5,ca=.5,L,p,D,G,X,s=e.node,H=s.style,ka=b._g.doc.getElementById(g);if(!ka){M=a(M).replace(b._radial_gradient,function(a,b){f="radial";b=b&&b.split(",")||[];G=b[5];X=b[6];var e=b[0],t=b[1],h=b[2],w=b[3],M=b[4],d=e&&t,g;h&&(L=/\%/.test(h)?h:c(h));if(G===n.userSpaceOnUse)return d&&(u=e,ca=t),w&&M&&(p=w,D=M,d||(u=p,ca=D)),"";d&&
  (u=c(e),ca=c(t),e=2*(.5<ca)-1,.25<(g=k(u-.5,2))+k(ca-.5,2)&&.25>g&&(ca=J(.25-g)*e+.5)&&.5!==ca&&(ca=ca.toFixed(5)-1E-5*e));w&&M&&(p=c(w),D=c(M),e=2*(.5<D)-1,.25<(g=k(p-.5,2))+k(D-.5,2)&&.25>g&&(D=J(.25-g)*e+.5)&&.5!==D&&(D=D.toFixed(5)-1E-5*e),d||(u=p,ca=D));return""});M=M.split(/\s*\-\s*/);if("linear"==f){var ka=M.shift(),r=ka.match(/\((.*)\)/),A,r=r&&r[1]&&r[1].split(/\s*\,\s*/),ka=-c(ka);if(isNaN(ka))return null;r&&r.length?(r[0]in n?(G=r.shift(),r[0]in R&&(X=r.shift())):(r[4]&&(G=r[4]),r[5]&&
  (X=r[5])),A=[r[0]||"0%",r[1]||"0%",r[2]||"100%",r[3]||"0%"]):(A=[0,0,t.cos(b.rad(ka)),t.sin(b.rad(ka))],ka=1/(h(w(A[2]),w(A[3]))||1),A[2]*=ka,A[3]*=ka,0>A[2]&&(A[0]=-A[2],A[2]=0),0>A[3]&&(A[1]=-A[3],A[3]=0))}r=b._parseDots(M);if(!r)return null;ka=l(f+"Gradient",{id:g});ka.refCount=0;G in n&&ka.setAttribute("gradientUnits",a(G));X in R&&ka.setAttribute("spreadMethod",a(X));"radial"===f?(void 0!==L&&ka.setAttribute("r",a(L)),void 0!==p&&void 0!==D&&(ka.setAttribute("cx",a(p)),ka.setAttribute("cy",a(D))),
  ka.setAttribute("fx",a(u)),ka.setAttribute("fy",a(ca))):l(ka,{x1:A[0],y1:A[1],x2:A[2],y2:A[3]});A=0;for(var m=r.length;A<m;A++)ka.appendChild(l("stop",{offset:r[A].offset?r[A].offset:A?"100%":"0%","stop-color":r[A].color||"#fff","stop-opacity":void 0===r[A].opacity?1:r[A].opacity}));d.defs.appendChild(ka)}S(e,ka);l(s,{fill:"url('"+b._url+"#"+g+"')",opacity:1,"fill-opacity":1});H.fill="";H.opacity=1;return H.fillOpacity=1},L=function(a){var b=a.getBBox(1);l(a.pattern,{patternTransform:a.matrix.invert()+
  " translate("+b.x+","+b.y+")"})},p=function(c,e,t){if("path"==c.type){for(var h=a(e).toLowerCase().split("-"),w=c.paper,k=t?"end":"start",J=c.node,M=c.attrs,f=M["stroke-width"],d=h.length,S="classic",n,R,ca=3,L=3,p=5;d--;)switch(h[d]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":S=h[d];break;case "wide":L=5;break;case "narrow":L=2;break;case "long":ca=5;break;case "short":ca=2}"open"==S?(ca+=2,L+=2,p+=2,n=1,R=t?4:1,h={fill:"none",stroke:M.stroke}):(R=n=ca/2,h={fill:M.stroke,
  stroke:"none"});c._.arrows?t?(c._.arrows.endPath&&u[c._.arrows.endPath]--,c._.arrows.endMarker&&u[c._.arrows.endMarker]--):(c._.arrows.startPath&&u[c._.arrows.startPath]--,c._.arrows.startMarker&&u[c._.arrows.startMarker]--):c._.arrows={};if("none"!=S){var d="raphael-marker-"+S,D="raphael-marker-"+k+S+ca+L+"-obj"+c.id;b._g.doc.getElementById(d)?u[d]++:(w.defs.appendChild(l(l("path"),{"stroke-linecap":"round",d:g[S],id:d})),u[d]=1);var G=b._g.doc.getElementById(D);G?(u[D]++,ca=G.getElementsByTagName("use")[0]):
  (G=l(l("marker"),{id:D,markerHeight:L,markerWidth:ca,orient:"auto",refX:R,refY:L/2}),ca=l(l("use"),{"xlink:href":"#"+d,transform:(t?"rotate(180 "+ca/2+" "+L/2+") ":"")+"scale("+ca/p+","+L/p+")","stroke-width":(1/((ca/p+L/p)/2)).toFixed(4)}),G.appendChild(ca),w.defs.appendChild(G),u[D]=1);l(ca,h);w=n*("diamond"!=S&&"oval"!=S);t?(t=c._.arrows.startdx*f||0,f=b.getTotalLength(M.path)-w*f):(t=w*f,f=b.getTotalLength(M.path)-(c._.arrows.enddx*f||0));h={};h["marker-"+k]="url('"+b._url+"#"+D+"')";if(f||t)h.d=
  b.getSubpath(M.path,t,f);l(J,h);c._.arrows[k+"Path"]=d;c._.arrows[k+"Marker"]=D;c._.arrows[k+"dx"]=w;c._.arrows[k+"Type"]=S;c._.arrows[k+"String"]=e}else t?(t=c._.arrows.startdx*f||0,f=b.getTotalLength(M.path)-t):(t=0,f=b.getTotalLength(M.path)-(c._.arrows.enddx*f||0)),c._.arrows[k+"Path"]&&l(J,{d:b.getSubpath(M.path,t,f)}),delete c._.arrows[k+"Path"],delete c._.arrows[k+"Marker"],delete c._.arrows[k+"dx"],delete c._.arrows[k+"Type"],delete c._.arrows[k+"String"];for(h in u)u.hasOwnProperty(h)&&!u[h]&&
  (c=b._g.doc.getElementById(h))&&c.parentNode.removeChild(c)}},D={"":[0],none:[0],"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},G=function(c,e,t){var h=D[a(e).toLowerCase()],w,k;if(e=h||void 0!==e&&[].concat(e)){w=c.attrs["stroke-width"]||1;t={round:w,square:w,butt:0}[c.attrs["stroke-linecap"]||t["stroke-linecap"]]||0;k=e.length;w=h?w:1;for(h=[];k--;)h[k]=e[k]*w+(k%2?1:-1)*t,0>h[k]&&(h[k]=0);b.is(e,"array")&&
  l(c.node,{"stroke-dasharray":h.join(",")})}},X=function(a,b){for(var c in b)d("raphael.attr."+c+"."+a.id,a,b[c],c),a.ca[c]&&a.attr(c,b[c])},s=b._setFillAndStroke=function(c,t){if(c.paper.canvas){var k=c.node,J=c.attrs,d=c.paper,g=k.style,u=g.visibility;g.visibility="hidden";for(var n in t)if(t.hasOwnProperty(n)&&b._availableAttrs.hasOwnProperty(n)){var R=t[n];J[n]=R;switch(n){case "blur":c.blur(R);break;case "href":case "title":case "target":var D=k.parentNode;if("a"!=D.tagName.toLowerCase()){if(""==
  R)break;var X=l("a");X.raphael=!0;X.raphaelid=k.raphaelid;D.insertBefore(X,k);X.appendChild(k);D=X}"target"==n?D.setAttributeNS("http://www.w3.org/1999/xlink","show","blank"==R?"new":R):D.setAttributeNS("http://www.w3.org/1999/xlink",n,R);k.titleNode=D;break;case "cursor":g.cursor=R;break;case "transform":c.transform(R);break;case "rotation":b.is(R,"array")?c.rotate.apply(c,R):c.rotate(R);break;case "arrow-start":p(c,R);break;case "arrow-end":p(c,R,1);break;case "clip-path":var s=!0;case "clip-rect":D=
  !s&&a(R).split(M);c._.clipispath=!!s;if(s||4==D.length){c.clip&&c.clip.parentNode.parentNode.removeChild(c.clip.parentNode);var X=l("clipPath"),ka=l(s?"path":"rect");X.id=b.createUUID();l(ka,s?{d:R?J["clip-path"]=b._pathToAbsolute(R):b._availableAttrs.path,fill:"none"}:{x:D[0],y:D[1],width:D[2],height:D[3],transform:c.matrix.invert()});X.appendChild(ka);d.defs.appendChild(X);l(k,{"clip-path":"url('"+b._url+"#"+X.id+"')"});c.clip=ka}!R&&(R=k.getAttribute("clip-path"))&&((R=b._g.doc.getElementById(R.replace(/(^url\(#|\)$)/g,
  "")))&&R.parentNode.removeChild(R),l(k,{"clip-path":""}),delete c.clip);break;case "path":"path"==c.type&&(l(k,{d:R?J.path=b._pathToAbsolute(R):b._availableAttrs.path}),c._.dirty=1,c._.arrows&&("startString"in c._.arrows&&p(c,c._.arrows.startString),"endString"in c._.arrows&&p(c,c._.arrows.endString,1)));break;case "width":if(k.setAttribute(n,R),c._.dirty=1,J.fx)n="x",R=J.x;else break;case "x":J.fx&&(R=-J.x-(J.width||0));case "rx":if("rx"==n&&"rect"==c.type)break;case "cx":k.setAttribute(n,R);c.pattern&&
  L(c);c._.dirty=1;break;case "height":if(k.setAttribute(n,R),c._.dirty=1,J.fy)n="y",R=J.y;else break;case "y":J.fy&&(R=-J.y-(J.height||0));case "ry":if("ry"==n&&"rect"==c.type)break;case "cy":k.setAttribute(n,R);c.pattern&&L(c);c._.dirty=1;break;case "r":"rect"==c.type?l(k,{rx:R,ry:R}):k.setAttribute(n,R);c._.dirty=1;break;case "src":"image"==c.type&&k.setAttributeNS("http://www.w3.org/1999/xlink","href",R);break;case "stroke-width":if(1!=c._.sx||1!=c._.sy)R/=h(w(c._.sx),w(c._.sy))||1;d._vbSize&&(R*=
  d._vbSize);f&&0===R&&(R=1E-6);k.setAttribute(n,R);J["stroke-dasharray"]&&G(c,J["stroke-dasharray"],t);c._.arrows&&("startString"in c._.arrows&&p(c,c._.arrows.startString),"endString"in c._.arrows&&p(c,c._.arrows.endString,1));break;case "stroke-dasharray":G(c,R,t);break;case "fill":var r=a(R).match(b._ISURL);if(r){var X=l("pattern"),A=l("image");X.id=b.createUUID();l(X,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});l(A,{x:0,y:0,"xlink:href":r[1]});X.appendChild(A);(function(a){b._preload(r[1],
  function(){var b=this.offsetWidth,c=this.offsetHeight;l(a,{width:b,height:c});l(A,{width:b,height:c});d.safari()})})(X);d.defs.appendChild(X);g.fill="url('"+b._url+"#"+X.id+"')";l(k,{fill:g.fill});c.pattern=X;c.pattern&&L(c);break}D=b.getRGB(R);if(!D.error)delete t.gradient,delete J.gradient,!b.is(J.opacity,"undefined")&&b.is(t.opacity,"undefined")&&l(k,{opacity:J.opacity}),!b.is(J["fill-opacity"],"undefined")&&b.is(t["fill-opacity"],"undefined")&&l(k,{"fill-opacity":J["fill-opacity"]}),c.gradient&&
  S(c);else if(("circle"==c.type||"ellipse"==c.type||"r"!=a(R).charAt())&&ca(c,R)){if("opacity"in J||"fill-opacity"in J)if(D=b._g.doc.getElementById(k.getAttribute("fill").replace(/^url\(#|\)$/g,"")))D=D.getElementsByTagName("stop"),l(D[D.length-1],{"stop-opacity":("opacity"in J?J.opacity:1)*("fill-opacity"in J?J["fill-opacity"]:1)});J.gradient=R;J.fill="none";g.fill="";break}D.hasOwnProperty("opacity")?(l(k,{"fill-opacity":g.fillOpacity=1<D.opacity?D.opacity/100:D.opacity}),c._.fillOpacityDirty=!0):
  c._.fillOpacityDirty&&b.is(J["fill-opacity"],"undefined")&&b.is(t["fill-opacity"],"undefined")&&(k.removeAttribute("fill-opacity"),g.fillOpacity="",delete c._.fillOpacityDirty);case "stroke":D=b.getRGB(R);k.setAttribute(n,D.hex);g[n]=D.hex;"stroke"==n&&(D.hasOwnProperty("opacity")?(l(k,{"stroke-opacity":g.strokeOpacity=1<D.opacity?D.opacity/100:D.opacity}),c._.strokeOpacityDirty=!0):c._.strokeOpacityDirty&&b.is(J["stroke-opacity"],"undefined")&&b.is(t["stroke-opacity"],"undefined")&&(k.removeAttribute("stroke-opacity"),
  g.strokeOpacity="",delete c._.strokeOpacityDirty),c._.arrows&&("startString"in c._.arrows&&p(c,c._.arrows.startString),"endString"in c._.arrows&&p(c,c._.arrows.endString,1)));break;case "gradient":"circle"!=c.type&&"ellipse"!=c.type&&"r"==a(R).charAt()||ca(c,R);break;case "line-height":case "vertical-align":break;case "visibility":"hidden"===R?c.hide():c.show();break;case "opacity":J.gradient&&!J.hasOwnProperty("stroke-opacity")&&l(k,{"stroke-opacity":1<R?R/100:R});case "fill-opacity":if(J.gradient){if(D=
  b._g.doc.getElementById(k.getAttribute("fill").replace(/^url\(#|\)$/g,"")))D=D.getElementsByTagName("stop"),l(D[D.length-1],{"stop-opacity":R});break}default:"font-size"==n&&(R=e(R,10)+"px"),D=n.replace(/(\-.)/g,function(a){return a.substring(1).toUpperCase()}),g[D]=R,c._.dirty=1,k.setAttribute(n,R)}}"text"===c.type&&H(c,t);g.visibility=u}},H=function(e,h){if("text"==e.type&&(h.hasOwnProperty("text")||h.hasOwnProperty("font")||h.hasOwnProperty("font-size")||h.hasOwnProperty("x")||h.hasOwnProperty("y")||
  h.hasOwnProperty("line-height")||h.hasOwnProperty("vertical-align"))){var w=e.attrs,k=e.node,J=k.firstChild&&b._g.doc.defaultView.getComputedStyle(k.firstChild,""),M=J?c(b._g.doc.defaultView.getComputedStyle(k.firstChild,"").getPropertyValue("font-size")):10,f=c(h["line-height"]||w["line-height"])||1.2*M,d=w.hasOwnProperty("vertical-align")?w["vertical-align"]:"middle",g=(h.direction||(J?J.getPropertyValue("direction"):"initial")).toLowerCase(),u=!!document.documentMode;isNaN(f)&&(f=1.2*M);b.is(h.text,
  "array")&&(h.text=h.text.join("<br>"));d="top"===d?-.5:"bottom"===d?.5:0;if(h.hasOwnProperty("text")&&(h.text!==w.text||e._textdirty)){for(w.text=h.text;k.firstChild;)k.removeChild(k.firstChild);for(var R=a(h.text).split(/\n|<br\s*?\/?>/ig),M=[],S=0,n=R.length;S<n;S++)J=l("tspan"),S?l(J,{dy:f,x:w.x}):l(J,{dy:f*R.length*d,x:w.x}),R[S]||(J.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),R[S]=" "),J.appendChild(b._g.doc.createTextNode(R[S])),k.appendChild(J),M[S]=J,!u&&
  "rtl"===g&&S<n-1&&(J=l("tspan"),l(J,{visibility:"hidden","font-size":"0px"}),J.appendChild(b._g.doc.createTextNode("i")),k.appendChild(J));e._textdirty=!1}else for(M=k.getElementsByTagName("tspan"),S=u=0,n=M.length;S<n;S++)if(J=M[S],g=J.attributes[0],!g||"visibility"!==g.name&&"visibility"!==g.nodeName||"hidden"!==g.value&&"hidden"!==g.nodeValue)S?l(J,{dy:f,x:w.x}):(g=M[1]&&M[1].attributes[0],!g||"visibility"!==g.name&&"visibility"!==g.nodeName||"hidden"!==g.value&&"hidden"!==g.nodeValue||(u=t.floor(.5*
  M.length)),l(M[0],{dy:f*(M.length-u)*d,x:w.x}));l(k,{x:w.x,y:w.y});e._.dirty=1;k=e._getBBox();f=w.y-(k.y+k.height/2);if(k.isCalculated)switch(w["vertical-align"]){case "top":f=.75*k.height;break;case "bottom":f=-(.25*k.height);break;default:f=w.y-(k.y+.25*k.height)}f&&b.is(f,"finite")&&M[0]&&l(M[0],{dy:f})}},ka=function(a,c,e){e=e||c;e.canvas&&e.canvas.appendChild(a);this.node=this[0]=a;a.raphael=!0;a.raphaelid=this.id=b._oid++;this.matrix=b.matrix();this.realPath=null;this.attrs=this.attrs||{};this.followers=
  this.followers||[];this.paper=c;this.ca=this.customAttributes=this.customAttributes||new c._CustomAttributes;this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1};this.parent=e;!e.bottom&&(e.bottom=this);(this.prev=e.top)&&(e.top.next=this);e.top=this;this.next=null},r=b.el;ka.prototype=r;r.constructor=ka;b._engine.getNode=function(a){a=a.node||a[0].node;return a.titleNode||a};b._engine.getLastNode=function(a){a=a.node||a[a.length-1].node;return a.titleNode||a};r.rotate=function(b,e,t){if(this.removed)return this;
  b=a(b).split(M);b.length-1&&(e=c(b[1]),t=c(b[2]));b=c(b[0]);null==t&&(e=t);if(null==e||null==t)t=this.getBBox(1),e=t.x+t.width/2,t=t.y+t.height/2;this.transform(this._.transform.concat([["r",b,e,t]]));return this};r.scale=function(b,e,t,h){var w;if(this.removed)return this;b=a(b).split(M);b.length-1&&(e=c(b[1]),t=c(b[2]),h=c(b[3]));b=c(b[0]);null==e&&(e=b);null==h&&(t=h);if(null==t||null==h)w=this.getBBox(1);t=null==t?w.x+w.width/2:t;h=null==h?w.y+w.height/2:h;this.transform(this._.transform.concat([["s",
  b,e,t,h]]));return this};r.translate=function(b,e){if(this.removed)return this;b=a(b).split(M);b.length-1&&(e=c(b[1]));b=c(b[0])||0;this.transform(this._.transform.concat([["t",b,+e||0]]));return this};r.transform=function(a){var c=this._;if(null==a)return c.transform;b._extractTransform(this,a);this.clip&&!c.clipispath&&l(this.clip,{transform:this.matrix.invert()});this.pattern&&L(this);this.node&&l(this.node,{transform:this.matrix});if(1!=c.sx||1!=c.sy)a=this.attrs.hasOwnProperty("stroke-width")?
  this.attrs["stroke-width"]:1,this.attr({"stroke-width":a});return this};r.hide=function(){!this.removed&&this.paper.safari(this.node.style.display="none");return this};r.show=function(){!this.removed&&this.paper.safari(this.node.style.display="");return this};r.remove=function(){if(!this.removed&&this.parent.canvas){var a=b._engine.getNode(this),c=this.paper,e=c.defs;c.__set__&&c.__set__.exclude(this);d.unbind("raphael.*.*."+this.id);for(this.gradient&&e&&S(this);e=this.followers.pop();)e.el.remove();
  for(;e=this.bottom;)e.remove();this._drag&&this.undrag();if(this.events)for(;e=this.events.pop();)e.unbind();this.parent.canvas.removeChild(a);this.removeData();delete c._elementsById[this.id];b._tear(this,this.parent);for(e in this)this[e]="function"===typeof this[e]?b._removedFactory(e):null;this.removed=!0}};r._getBBox=function(){var a=this.node,b={},c=this.attrs,e,t;"none"===a.style.display&&(this.show(),t=!0);try{b=a.getBBox(),"text"==this.type&&(void 0===b.x&&(b.isCalculated=!0,e=c["text-anchor"],
  b.x=(c.x||0)-b.width*("start"===e?0:"middle"===e?.5:1)),void 0===b.y&&(b.isCalculated=!0,e=c["vertical-align"],b.y=(c.y||0)-b.height*("bottom"===e?1:"middle"===e?.5:0)))}catch(h){}finally{b=b||{}}t&&this.hide();return b};r.attr=function(a,c){if(this.removed)return this;if(null==a){var e={},t;for(t in this.attrs)this.attrs.hasOwnProperty(t)&&(e[t]=this.attrs[t]);e.gradient&&"none"==e.fill&&(e.fill=e.gradient)&&delete e.gradient;e.transform=this._.transform;e.visibility="none"===this.node.style.display?
  "hidden":"visible";return e}if(null==c&&b.is(a,"string")){if("fill"==a&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("transform"==a)return this._.transform;if("visibility"==a)return"none"===this.node.style.display?"hidden":"visible";var e=a.split(M),h={},w=0;for(t=e.length;w<t;w++)a=e[w],a in this.attrs?h[a]=this.attrs[a]:b.is(this.ca[a],"function")?h[a]=this.ca[a].def:h[a]=b._availableAttrs[a];return t-1?h:h[e[0]]}if(null==c&&b.is(a,"array")){h={};w=0;for(t=a.length;w<
  t;w++)h[a[w]]=this.attr(a[w]);return h}null!=c?(e={},e[a]=c):null!=a&&b.is(a,"object")&&(e=a);for(w in e)d("raphael.attr."+w+"."+this.id,this,e[w],w);var k={};for(w in this.ca)if(this.ca[w]&&e.hasOwnProperty(w)&&b.is(this.ca[w],"function")&&!this.ca["_invoked"+w]){this.ca["_invoked"+w]=!0;t=this.ca[w].apply(this,[].concat(e[w]));delete this.ca["_invoked"+w];for(h in t)t.hasOwnProperty(h)&&(e[h]=t[h]);this.attrs[w]=e[w];!1===t&&(k[w]=e[w],delete e[w])}s(this,e);var J,w=0;for(t=this.followers.length;w<
  t;w++)J=this.followers[w],J.cb&&!J.cb.call(J.el,e,this)||J.el.attr(e);for(h in k)e[h]=k[h];return this};r.blur=function(a){if(0!==+a){var c=l("filter"),e=l("feGaussianBlur");this.attrs.blur=a;c.id=b.createUUID();l(e,{stdDeviation:+a||1.5});c.appendChild(e);this.paper.defs.appendChild(c);this._blur=c;l(this.node,{filter:"url('"+b._url+"#"+c.id+"')"})}else this._blur&&(this._blur.parentNode.removeChild(this._blur),delete this._blur,delete this.attrs.blur),this.node.removeAttribute("filter")};r.on=function(a,
  c){if(this.removed)return this;var e=c;b.supportsTouch&&(a=b._touchMap[a]||"click"===a&&"touchstart"||a,e=function(a){a.preventDefault();c()});this.node["on"+a]=e;return this};b._engine.path=function(a,b,c){var e=l("path");a=new ka(e,a,c);a.type="path";s(a,b);X(a,b);return a};b._engine.group=function(a,b,c){var e=l("g");a=new ka(e,a,c);a.type="group";a.canvas=a.node;a.top=a.bottom=null;a._id=b||"";b&&e.setAttribute("class","raphael-group-"+a.id+"-"+b);return a};b._engine.circle=function(a,b,c){var e=
  l("circle");a=new ka(e,a,c);a.type="circle";s(a,b);X(a,b);return a};b._engine.rect=function(a,b,c){var e=l("rect");a=new ka(e,a,c);a.type="rect";b.rx=b.ry=b.r;s(a,b);X(a,b);return a};b._engine.ellipse=function(a,b,c){var e=l("ellipse");a=new ka(e,a,c);a.type="ellipse";s(a,b);X(a,b);return a};b._engine.image=function(a,b,c){var e=l("image");a=new ka(e,a,c);a.type="image";e.setAttribute("preserveAspectRatio","none");s(a,b);X(a,b);return a};b._engine.text=function(a,b,c){var e=l("text");a=new ka(e,a,
  c);a.type="text";a._textdirty=!0;s(a,b);X(a,b);return a};b._engine.setSize=function(a,b){this.width=a||this.width;this.height=b||this.height;this.canvas.setAttribute("width",this.width);this.canvas.setAttribute("height",this.height);this._viewBox&&this.setViewBox.apply(this,this._viewBox);return this};b._engine.create=function(){var a=b._getContainer.apply(0,arguments),c=a&&a.container,e=a.x,t=a.y,h=a.width,a=a.height;if(!c)throw Error("SVG container not found.");var w=l("svg"),k,e=e||0,t=t||0,h=
  h||512,a=a||342;l(w,{height:a,version:1.1,width:h,xmlns:"http://www.w3.org/2000/svg"});1==c?(w.style.cssText="overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;-ms-user-select:none;user-select:none;-o-user-select:none;cursor:default;position:absolute;left:"+e+"px;top:"+t+"px",b._g.doc.body.appendChild(w),k=1):(w.style.cssText="overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;-ms-user-select:none;user-select:none;-o-user-select:none;cursor:default;position:relative",
  c.firstChild?c.insertBefore(w,c.firstChild):c.appendChild(w));c=new b._Paper;c.width=h;c.height=a;c.canvas=w;l(w,{id:"raphael-paper-"+c.id});c.clear();c._left=c._top=0;k&&(c.renderfix=function(){});c.renderfix();return c};b._engine.setViewBox=function(a,b,c,e,t){d("raphael.setViewBox",this,this._viewBox,[a,b,c,e,t]);var w=h(c/this.width,e/this.height),k=this.top,J=t?"meet":"xMinYMin",M;null==a?(this._vbSize&&(w=1),delete this._vbSize,M="0 0 "+this.width+" "+this.height):(this._vbSize=w,M=a+" "+b+
  " "+c+" "+e);for(l(this.canvas,{viewBox:M,preserveAspectRatio:J});w&&k;)J="stroke-width"in k.attrs?k.attrs["stroke-width"]:1,k.attr({"stroke-width":J}),k._.dirty=1,k._.dirtyT=1,k=k.prev;this._viewBox=[a,b,c,e,!!t];return this};b.prototype.renderfix=function(){var a=this.canvas,b=a.style,c;try{c=a.getScreenCTM()||a.createSVGMatrix()}catch(e){c=a.createSVGMatrix()}a=-c.e%1;c=-c.f%1;if(a||c)a&&(this._left=(this._left+a)%1,b.left=this._left+"px"),c&&(this._top=(this._top+c)%1,b.top=this._top+"px")};b.prototype._desc=
  function(a){var c=this.desc;if(c)for(;c.firstChild;)c.removeChild(c.firstChild);else this.desc=c=l("desc"),this.canvas.appendChild(c);c.appendChild(b._g.doc.createTextNode(b.is(a,"string")?a:"Created with Red Raphaël "+b.version))};b.prototype.clear=function(){var a;for(d("raphael.clear",this);a=this.bottom;)a.remove();for(a=this.canvas;a.firstChild;)a.removeChild(a.firstChild);this.bottom=this.top=null;a.appendChild(this.desc=l("desc"));a.appendChild(this.defs=l("defs"))};b.prototype.remove=function(){var a;
  for(d("raphael.remove",this);a=this.bottom;)a.remove();this.defs&&this.defs.parentNode.removeChild(this.defs);this.desc&&this.desc.parentNode.removeChild(this.desc);this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(a in this)this[a]="function"==typeof this[a]?b._removedFactory(a):null;this.removed=!0};var A=b.st,m;for(m in r)r.hasOwnProperty(m)&&!A.hasOwnProperty(m)&&(A[m]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a].apply(c,b)})}}(m))}})();
  (function(){if(b.vml){var a=String,c=parseFloat,e=Math,t=e.round,h=e.max,w=e.min,k=e.sqrt,J=e.abs,M=/[, ]+/,f=b.eve,d={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},g=/([clmz]),?([^clmz]*)/gi,u=/ progid:\S+Blur\([^\)]+\)/g,l=/-?[^,\s-]+/g,R={path:1,rect:1,image:1},S={circle:1,ellipse:1},n=function(c){var e=/[ahqstv]/ig,h=b._pathToAbsolute;a(c).match(e)&&(h=b._path2curve);e=/[clmz]/g;if(h==b._pathToAbsolute&&!a(c).match(e))return(c=a(c).replace(g,function(a,b,c){var e=[],h="m"==b.toLowerCase(),
  w=d[b];c.replace(l,function(a){h&&2==e.length&&(w+=e+d["m"==b?"l":"L"],e=[]);e.push(t(21600*a))});return w+e}))||"m0,0";var e=h(c),w;c=[];for(var k=0,J=e.length;k<J;k++){h=e[k];w=e[k][0].toLowerCase();"z"==w&&(w="x");for(var M=1,f=h.length;M<f;M++)w+=t(21600*h[M])+(M!=f-1?",":"");c.push(w)}return c.length?c.join(" "):"m0,0"},ca=function(a,c,e){var t=b.matrix();t.rotate(-a,.5,.5);return{dx:t.x(c,e),dy:t.y(c,e)}},L=function(a,b,c,e,t,h){var w=a._,k=a.matrix,M=w.fillpos;a=a.node;var f=a.style,d=1,g=
  "",u=21600/b,l=21600/c;f.visibility="hidden";if(b&&c){a.coordsize=J(u)+" "+J(l);f.rotation=h*(0>b*c?-1:1);h&&(t=ca(h,e,t),e=t.dx,t=t.dy);0>b&&(g+="x");0>c&&(g+=" y")&&(d=-1);f.flip=g;a.coordorigin=e*-u+" "+t*-l;if(M||w.fillsize)if(e=(e=a.getElementsByTagName("fill"))&&e[0])a.removeChild(e),M&&(t=ca(h,k.x(M[0],M[1]),k.y(M[0],M[1])),e.position=t.dx*d+" "+t.dy*d),w.fillsize&&(e.size=w.fillsize[0]*J(b)+" "+w.fillsize[1]*J(c)),a.appendChild(e);f.visibility="visible"}};b._url="";b.toString=function(){return"Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+
  this.version};var D=function(b,c,e){c=a(c).toLowerCase().split("-");e=e?"end":"start";for(var t=c.length,h="classic",w="medium",k="medium";t--;)switch(c[t]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":h=c[t];break;case "wide":case "narrow":k=c[t];break;case "long":case "short":w=c[t]}b=b.node.getElementsByTagName("stroke")[0];b[e+"arrow"]=h;b[e+"arrowlength"]=w;b[e+"arrowwidth"]=k},p=function(a,b){for(var c in b)f("raphael.attr."+c+"."+a.id,a,b[c],c),a.ca[c]&&a.attr(c,
  b[c])},X=b._setFillAndStroke=function(e,k){if(e.paper.canvas){e.attrs=e.attrs||{};var J=e.node,f=e.attrs,d=J.style,g=R[e.type]&&(k.x!=f.x||k.y!=f.y||k.width!=f.width||k.height!=f.height||k.cx!=f.cx||k.cy!=f.cy||k.rx!=f.rx||k.ry!=f.ry||k.r!=f.r),u=S[e.type]&&(f.cx!=k.cx||f.cy!=k.cy||f.r!=k.r||f.rx!=k.rx||f.ry!=k.ry),l="group"===e.type,ca;for(ca in k)k.hasOwnProperty(ca)&&(f[ca]=k[ca]);g&&(f.path=b._getPath[e.type](e),e._.dirty=1);k.href&&(J.href=k.href);k.title&&(J.title=k.title);k.target&&(J.target=
  k.target);k.cursor&&(d.cursor=k.cursor);"blur"in k&&e.blur(k.blur);if(k.path&&"path"==e.type||g)J.path=n(~a(f.path).toLowerCase().indexOf("r")?b._pathToAbsolute(f.path):f.path),"image"==e.type&&(e._.fillpos=[f.x,f.y],e._.fillsize=[f.width,f.height],L(e,1,1,0,0,0));"transform"in k&&e.transform(k.transform);"rotation"in k&&(d=k.rotation,b.is(d,"array")?e.rotate.apply(e,d):e.rotate(d));"visibility"in k&&("hidden"===k.visibility?e.hide():e.show());u&&(d=+f.cx,u=+f.cy,g=+f.rx||+f.r||0,ca=+f.ry||+f.r||
  0,J.path=b.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",t(21600*(d-g)),t(21600*(u-ca)),t(21600*(d+g)),t(21600*(u+ca)),t(21600*d)));"clip-rect"in k&&(d=a(k["clip-rect"]).split(M),4==d.length&&(d[0]=+d[0],d[1]=+d[1],d[2]=+d[2]+d[0],d[3]=+d[3]+d[1],g=l?J:J.clipRect||b._g.doc.createElement("div"),u=g.style,l?(e.clip=d.slice(),g=e.matrix.offset(),g=[c(g[0]),c(g[1])],d[0]-=g[0],d[1]-=g[1],d[2]-=g[0],d[3]-=g[1],u.width="10800px",u.height="10800px"):J.clipRect||(u.top="0",u.left="0",u.width=e.paper.width+
  "px",u.height=e.paper.height+"px",J.parentNode.insertBefore(g,J),g.appendChild(J),g.raphael=!0,g.raphaelid=J.raphaelid,J.clipRect=g),u.position="absolute",u.clip=b.format("rect({1}px {2}px {3}px {0}px)",d)),k["clip-rect"]||(l&&e.clip?(J.style.clip="rect(auto auto auto auto)",delete e.clip):J.clipRect&&(J.clipRect.style.clip="rect(auto auto auto auto)")));e.textpath&&(l=e.textpath.style,k.font&&(l.font=k.font),k["font-family"]&&(l.fontFamily='"'+k["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,
  "")+'"'),k["font-size"]&&(l.fontSize=k["font-size"]),k["font-weight"]&&(l.fontWeight=k["font-weight"]),k["font-style"]&&(l.fontStyle=k["font-style"]));"arrow-start"in k&&D(e,k["arrow-start"]);"arrow-end"in k&&D(e,k["arrow-end"],1);if(null!=k.opacity||null!=k["stroke-width"]||null!=k.fill||null!=k.src||null!=k.stroke||null!=k["stroke-width"]||null!=k["stroke-opacity"]||null!=k["fill-opacity"]||null!=k["stroke-dasharray"]||null!=k["stroke-miterlimit"]||null!=k["stroke-linejoin"]||null!=k["stroke-linecap"]){l=
  J.getElementsByTagName("fill");d=-1;l=l&&l[0];!l&&(l=H("fill"));"image"==e.type&&k.src&&(l.src=k.src);k.fill&&(l.on=!0);if(null==l.on||"none"==k.fill||null===k.fill)l.on=!1;l.on&&k.fill&&((u=a(k.fill).match(b._ISURL))?(l.parentNode==J&&J.removeChild(l),l.rotate=!0,l.src=u[1],l.type="tile",g=e.getBBox(1),l.position=g.x+" "+g.y,e._.fillpos=[g.x,g.y],b._preload(u[1],function(){e._.fillsize=[this.offsetWidth,this.offsetHeight]})):(u=b.getRGB(k.fill),l.color=u.hex,l.src="",l.type="solid",u.error&&(e.type in
  {circle:1,ellipse:1}||"r"!=a(k.fill).charAt())&&G(e,k.fill,l)?(f.fill="none",f.gradient=k.fill,l.rotate=!1):"opacity"in u&&!("fill-opacity"in k)&&(d=u.opacity)));if(-1!==d||"fill-opacity"in k||"opacity"in k)u=((+f["fill-opacity"]+1||2)-1)*((+f.opacity+1||2)-1)*((+d+1||2)-1),u=w(h(u,0),1),l.opacity=u,l.src&&(l.color="none");J.appendChild(l);l=J.getElementsByTagName("stroke")&&J.getElementsByTagName("stroke")[0];d=!1;!l&&(d=l=H("stroke"));if(k.stroke&&"none"!=k.stroke||k["stroke-width"]||null!=k["stroke-opacity"]||
  k["stroke-dasharray"]||k["stroke-miterlimit"]||k["stroke-linejoin"]||k["stroke-linecap"])l.on=!0;"none"!=k.stroke&&null!==k.stroke&&null!=l.on&&0!=k.stroke&&0!=k["stroke-width"]||(l.on=!1);u=b.getRGB("stroke"in k?k.stroke:f.stroke);l.on&&k.stroke&&(l.color=u.hex);u=((+f["stroke-opacity"]+1||2)-1)*((+f.opacity+1||2)-1)*((+u.opacity+1||2)-1);g=.75*(c(k["stroke-width"])||1);u=w(h(u,0),1);null==k["stroke-width"]&&(g=f["stroke-width"]);k["stroke-width"]&&(l.weight=g);g&&1>g&&(u*=g)&&(l.weight=1);l.opacity=
  u;k["stroke-linejoin"]&&(l.joinstyle=k["stroke-linejoin"])||d&&(d.joinstyle="miter");l.miterlimit=k["stroke-miterlimit"]||8;k["stroke-linecap"]&&(l.endcap="butt"==k["stroke-linecap"]?"flat":"square"==k["stroke-linecap"]?"square":"round");k["stroke-dasharray"]&&(u={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"},l.dashstyle=u.hasOwnProperty(k["stroke-dasharray"])?u[k["stroke-dasharray"]]:
  k["stroke-dasharray"].join&&k["stroke-dasharray"].join(" ")||"");d&&J.appendChild(l)}if("text"==e.type){e.paper.canvas.style.display="";J=e.paper.span;l=f.font&&f.font.match(/\d+(?:\.\d*)?(?=px)/);u=f["line-height"]&&(f["line-height"]+"").match(/\d+(?:\.\d*)?(?=px)/);d=J.style;f.font&&(d.font=f.font);f["font-family"]&&(d.fontFamily=f["font-family"]);f["font-weight"]&&(d.fontWeight=f["font-weight"]);f["font-style"]&&(d.fontStyle=f["font-style"]);l=c(f["font-size"]||l&&l[0])||10;d.fontSize=100*l+"px";
  u=c(f["line-height"]||u&&u[0])||12;f["line-height"]&&(d.lineHeight=100*u+"px");b.is(k.text,"array")&&(k.text=e.textpath.string=k.text.join("\n").replace(/<br\s*?\/?>/ig,"\n"));e.textpath.string&&(J.innerHTML=a(e.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));J=J.getBoundingClientRect();e.W=f.w=(J.right-J.left)/100;e.H=f.h=(J.bottom-J.top)/100;e.X=f.x;e.Y=f.y;switch(f["vertical-align"]){case "top":e.bby=e.H/2;break;case "bottom":e.bby=-e.H/2;break;default:e.bby=
  0}("x"in k||"y"in k||void 0!==e.bby)&&(e.path.v=b.format("m{0},{1}l{2},{1}",t(21600*f.x),t(21600*(f.y+(e.bby||0))),t(21600*f.x)+1));J="x y text font font-family font-weight font-style font-size line-height".split(" ");l=0;for(d=J.length;l<d;l++)if(J[l]in k){e._.dirty=1;break}switch(f["text-anchor"]){case "start":e.textpath.style["v-text-align"]="left";e.bbx=e.W/2;break;case "end":e.textpath.style["v-text-align"]="right";e.bbx=-e.W/2;break;default:e.textpath.style["v-text-align"]="center",e.bbx=0}e.textpath.style["v-text-kern"]=
  !0}}},G=function(e,t,h){e.attrs=e.attrs||{};var w=Math.pow,J="linear",f=".5 .5";e.attrs.gradient=t;t=a(t).replace(b._radial_gradient,function(a,b){J="radial";b=b&&b.split(",")||[];var e=b[3],t=b[4];e&&t&&(e=c(e),t=c(t),.25<w(e-.5,2)+w(t-.5,2)&&(t=k(.25-w(e-.5,2))*(2*(.5<t)-1)+.5),f=e+" "+t);return""});t=t.split(/\s*\-\s*/);if("linear"==J){var d=t.shift(),d=-c(d);if(isNaN(d))return null}t=b._parseDots(t);if(!t)return null;e=e.shape||e.node;if(t.length){h.parentNode==e&&e.removeChild(h);h.on=!0;h.method=
  "none";h.color=t[0].color;h.color2=t[t.length-1].color;for(var M=[],g=1,u=void 0===t[0].opacity?1:t[0].opacity,l=0,R=t.length;l<R;l++)t[l].offset&&M.push(t[l].offset+" "+t[l].color),void 0!==t[l].opacity&&(g=t[l].opacity);h.colors=M.length?M.join():"0% "+h.color;h.opacity=g;h["o:opacity2"]=u;"radial"==J?(h.type="gradientTitle",h.focus="100%",h.focussize="0 0",h.focusposition=f,h.angle=0):(h.type="gradient",h.angle=(270-d)%360);e.appendChild(h)}return 1},s=function(a,c,e){e=e||c;var t;e.canvas&&e.canvas.appendChild(a);
  t=H("skew");t.on=!0;a.appendChild(t);this.skew=t;this.node=this[0]=a;a.raphael=!0;a.raphaelid=this.id=b._oid++;this.Y=this.X=0;this.attrs=this.attrs||{};this.followers=this.followers||[];this.paper=c;this.ca=this.customAttributes=this.customAttributes||new c._CustomAttributes;this.matrix=b.matrix();this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1};this.parent=e;!e.bottom&&(e.bottom=this);(this.prev=e.top)&&(e.top.next=this);e.top=this;this.next=null},e=b.el;s.prototype=e;e.constructor=
  s;e.transform=function(c){if(null==c)return this._.transform;var e=this.paper._viewBoxShift,t=e?"s"+[e.scale,e.scale]+"-1-1t"+[e.dx,e.dy]:"",h;e&&(h=c=a(c).replace(/\.{3}|\u2026/g,this._.transform||""));b._extractTransform(this,t+c);var e=this.matrix.clone(),w=this.skew;c=this.node;var t=~a(this.attrs.fill).indexOf("-"),k=!a(this.attrs.fill).indexOf("url(");e.translate(-.5,-.5);k||t||"image"==this.type?(w.matrix="1 0 0 1",w.offset="0 0",w=e.split(),t&&w.noRotation||!w.isSimple?(c.style.filter=e.toFilter(),
  e=this.getBBox(),t=this.getBBox(1),k=e.x2&&t.x2&&"x2"||"x",w=e.y2&&t.y2&&"y2"||"y",k=e[k]-t[k],e=e[w]-t[w],c.coordorigin=-21600*k+" "+-21600*e,L(this,1,1,k,e,0)):(c.style.filter="",L(this,w.scalex,w.scaley,w.dx,w.dy,w.rotate))):(c.style.filter="",w.matrix=a(e),w.offset=e.offset());h&&(this._.transform=h);return this};e.rotate=function(b,e,t){if(this.removed)return this;if(null!=b){b=a(b).split(M);b.length-1&&(e=c(b[1]),t=c(b[2]));b=c(b[0]);null==t&&(e=t);if(null==e||null==t)t=this.getBBox(1),e=t.x+
  t.width/2,t=t.y+t.height/2;this._.dirtyT=1;this.transform(this._.transform.concat([["r",b,e,t]]));return this}};e.translate=function(b,e){if(this.removed)return this;b=a(b).split(M);b.length-1&&(e=c(b[1]));b=c(b[0])||0;e=+e||0;this._.bbox&&(this._.bbox.x+=b,this._.bbox.y+=e);this.transform(this._.transform.concat([["t",b,e]]));return this};e.scale=function(b,e,t,h){if(this.removed)return this;b=a(b).split(M);b.length-1&&(e=c(b[1]),t=c(b[2]),h=c(b[3]),isNaN(t)&&(t=null),isNaN(h)&&(h=null));b=c(b[0]);
  null==e&&(e=b);null==h&&(t=h);if(null==t||null==h)var w=this.getBBox(1);t=null==t?w.x+w.width/2:t;h=null==h?w.y+w.height/2:h;this.transform(this._.transform.concat([["s",b,e,t,h]]));this._.dirtyT=1;return this};e.hide=function(a){!this.removed&&(this.node.style.display="none");return this};e.show=function(a){!this.removed&&(this.node.style.display="");return this};e._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y+(this.bby||0)-this.H/2,width:this.W,height:this.H}};
  e.remove=function(){if(!this.removed&&this.parent.canvas){var a=b._engine.getNode(this),c=this.paper,e=this.shape;c.__set__&&c.__set__.exclude(this);f.unbind("raphael.*.*."+this.id);e&&e.parentNode.removeChild(e);for(a.parentNode&&a.parentNode.removeChild(a);a=this.followers.pop();)a.el.remove();for(;a=this.bottom;)a.remove();this._drag&&this.undrag();if(this.events)for(;a=this.events.pop();)a.unbind();this.removeData();delete c._elementsById[this.id];b._tear(this,this.parent);for(a in this)this[a]=
  "function"===typeof this[a]?b._removedFactory(a):null;this.removed=!0}};e.attr=function(a,c){if(this.removed)return this;if(null==a){var e={},t;for(t in this.attrs)this.attrs.hasOwnProperty(t)&&(e[t]=this.attrs[t]);e.gradient&&"none"==e.fill&&(e.fill=e.gradient)&&delete e.gradient;e.transform=this._.transform;e.visibility="none"===this.node.style.display?"hidden":"visible";return e}if(null==c&&b.is(a,"string")){if("fill"==a&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;
  if("visibility"==a)return"none"===this.node.style.display?"hidden":"visible";var e=a.split(M),h={},w=0;for(t=e.length;w<t;w++)a=e[w],a in this.attrs?h[a]=this.attrs[a]:b.is(this.ca[a],"function")?h[a]=this.ca[a].def:h[a]=b._availableAttrs[a];return t-1?h:h[e[0]]}if(this.attrs&&null==c&&b.is(a,"array")){h={};w=0;for(t=a.length;w<t;w++)h[a[w]]=this.attr(a[w]);return h}null!=c&&(e={},e[a]=c);null==c&&b.is(a,"object")&&(e=a);for(w in e)f("raphael.attr."+w+"."+this.id,this,e[w],w);if(e){var k={};for(w in this.ca)if(this.ca[w]&&
  e.hasOwnProperty(w)&&b.is(this.ca[w],"function")&&!this.ca["_invoked"+w]){this.ca["_invoked"+w]=!0;t=this.ca[w].apply(this,[].concat(e[w]));delete this.ca["_invoked"+w];for(h in t)t.hasOwnProperty(h)&&(e[h]=t[h]);this.attrs[w]=e[w];!1===t&&(k[w]=e[w],delete e[w])}"text"in e&&"text"==this.type&&(b.is(e.text,"array")&&(e.text=e.text.join("\n")),this.textpath.string=e.text.replace(/<br\s*?\/?>/ig,"\n"));X(this,e);var J,w=0;for(t=this.followers.length;w<t;w++)J=this.followers[w],J.cb&&!J.cb.call(J.el,
  e,this)||J.el.attr(e);for(h in k)e[h]=k[h]}return this};e.blur=function(a){var c=this.node.runtimeStyle,e=c.filter,e=e.replace(u,"");0!==+a?(this.attrs.blur=a,c.filter=e+"  progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+a||1.5)+")",c.margin=b.format("-{0}px 0 0 -{0}px",t(+a||1.5))):(c.filter=e,c.margin=0,delete this.attrs.blur);return this};e.on=function(a,c){if(this.removed)return this;this.node["on"+a]=function(){var a=b._g.win.event;a.target=a.srcElement;c(a)};return this};b._engine.getNode=
  function(a){a=a.node||a[0].node;return a.clipRect||a};b._engine.getLastNode=function(a){a=a.node||a[a.length-1].node;return a.clipRect||a};b._engine.group=function(a,c,e){var t=b._g.doc.createElement("div"),h=new s(t,a,e);t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";h._id=c||"";c&&(t.className="raphael-group-"+h.id+"-"+c);(e||a).canvas.appendChild(t);h.type="group";h.canvas=h.node;h.transform=b._engine.group.transform;h.top=null;h.bottom=null;return h};b._engine.group.transform=
  function(e){if(null==e)return this._.transform;var t=this.node.style,h=this.clip,w=this.paper._viewBoxShift,k=w?"s"+[w.scale,w.scale]+"-1-1t"+[w.dx,w.dy]:"";w&&(e=a(e).replace(/\.{3}|\u2026/g,this._.transform||""));b._extractTransform(this,k+e);e=this.matrix;k=e.offset();w=c(k[0])||0;k=c(k[1])||0;t.left=w+"px";t.top=k+"px";t.zoom=(this._.tzoom=e.get(0))+"";h&&(t.clip=b.format("rect({1}px {2}px {3}px {0}px)",[h[0]-w,h[1]-k,h[2]-w,h[3]-k]));return this};b._engine.path=function(a,b,c){var e=H("shape");
  e.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";e.coordsize="21600 21600";e.coordorigin=a.coordorigin;a=new s(e,a,c);a.type=b.type||"path";a.path=[];a.Path="";b.type&&delete b.type;X(a,b);p(a,b);return a};b._engine.rect=function(a,c,e){var t=b._rectPath(c.x,c.y,c.w,c.h,c.r);c.path=t;c.type="rect";a=a.path(c,e);c=a.attrs;a.X=c.x;a.Y=c.y;a.W=c.width;a.H=c.height;c.path=t;return a};b._engine.ellipse=function(a,b,c){b.type="ellipse";a=a.path(b,c);b=a.attrs;a.X=b.x-b.rx;a.Y=b.y-b.ry;
  a.W=2*b.rx;a.H=2*b.ry;return a};b._engine.circle=function(a,b,c){b.type="circle";a=a.path(b,c);b=a.attrs;a.X=b.x-b.r;a.Y=b.y-b.r;a.W=a.H=2*b.r;return a};b._engine.image=function(a,c,e){var t=b._rectPath(c.x,c.y,c.w,c.h);c.path=t;c.type="image";c.stroke="none";a=a.path(c,e);e=a.attrs;var t=a.node,h=t.getElementsByTagName("fill")[0];e.src=c.src;a.X=e.x=c.x;a.Y=e.y=c.y;a.W=e.width=c.w;a.H=e.height=c.h;h.parentNode==t&&t.removeChild(h);h.rotate=!0;h.src=e.src;h.type="tile";a._.fillpos=[e.x,e.y];a._.fillsize=
  [e.w,e.h];t.appendChild(h);L(a,1,1,0,0,0);return a};b._engine.text=function(c,e,h){var w=H("shape"),k=H("path"),J=H("textpath");x=e.x||0;y=e.y||0;text=e.text;k.v=b.format("m{0},{1}l{2},{1}",t(21600*e.x),t(21600*e.y),t(21600*e.x)+1);k.textpathok=!0;J.string=a(e.text).replace(/<br\s*?\/?>/ig,"\n");J.on=!0;w.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";w.coordsize="21600 21600";w.coordorigin="0 0";c=new s(w,c,h);c.shape=w;c.path=k;c.textpath=J;c.type="text";c.attrs.text=a(e.text||
  "");c.attrs.x=e.x;c.attrs.y=e.y;c.attrs.w=1;c.attrs.h=1;X(c,e);p(c,e);w.appendChild(J);w.appendChild(k);return c};b._engine.setSize=function(a,c){var e=this.canvas.style;this.width=a;this.height=c;a==+a&&(a+="px");c==+c&&(c+="px");e.width=a;e.height=c;e.clip="rect(0 "+a+" "+c+" 0)";this._viewBox&&b._engine.setViewBox.apply(this,this._viewBox);return this};b._engine.setViewBox=function(a,b,c,e,t){f("raphael.setViewBox",this,this._viewBox,[a,b,c,e,t]);var w=this.width,k=this.height,J=1/h(c/w,e/k),d,
  M;t&&(d=k/e,M=w/c,c*d<w&&(a-=(w-c*d)/2/d),e*M<k&&(b-=(k-e*M)/2/M));this._viewBox=[a,b,c,e,!!t];this._viewBoxShift={dx:-a,dy:-b,scale:J};this.forEach(function(a){a.transform("...")});return this};var H;b._engine.initWin=function(c){var e=c.document;e.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!e.namespaces.rvml&&e.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),H=b._createNode=function(b,c){var t=e.createElement("<rvml:"+b+' class="rvml">'),h;for(h in c)t[h]=a(c[h]);
  return t}}catch(t){H=b._createNode=function(b,c){var t=e.createElement("<"+b+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">'),h;for(h in c)t[h]=a(c[h]);return t}}};b._engine.initWin(b._g.win);b._engine.create=function(){var a=b._getContainer.apply(0,arguments),c=a.container,e=a.height,t=a.width,h=a.x,a=a.y;if(!c)throw Error("VML container not found.");var w=new b._Paper,k=w.canvas=b._g.doc.createElement("div"),J=k.style,h=h||0,a=a||0,t=t||512,e=e||342;w.width=t;w.height=e;t==+t&&(t+="px");
  e==+e&&(e+="px");w.coordsize="21600000 21600000";w.coordorigin="0 0";k.id="raphael-paper-"+w.id;w.span=b._g.doc.createElement("span");w.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;";k.appendChild(w.span);J.cssText=b.format("top:0;left:0;width:{0};height:{1};display:inline-block;cursor:default;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",t,e);1==c?(b._g.doc.body.appendChild(k),J.left=h+"px",J.top=a+"px",J.position="absolute"):c.firstChild?
  c.insertBefore(k,c.firstChild):c.appendChild(k);w.renderfix=function(){};return w};b.prototype.clear=function(){var a;for(f("raphael.clear",this);a=this.bottom;)a.remove();this.canvas.innerHTML="";this.span=b._g.doc.createElement("span");this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";this.canvas.appendChild(this.span);this.bottom=this.top=null};b.prototype.remove=function(){var a;for(f("raphael.remove",this);a=this.bottom;)a.remove();
  this.canvas.parentNode.removeChild(this.canvas);for(a in this)this[a]="function"==typeof this[a]?b._removedFactory(a):null;return!0};var ka=b.st,r;for(r in e)e.hasOwnProperty(r)&&!ka.hasOwnProperty(r)&&(ka[r]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a].apply(c,b)})}}(r))}})();oa?r.win.Raphael=b:Raphael=b;return b},!0)})();d.Raphael=z;d.Raphael.desc="";m&&m!==z?window.Raphael=m:window.Raphael===z&&(window.Raphael=void 0)}]);
  FusionCharts.register("module",["private","fusioncharts.redraphael.helper",function(){var d={};this.hcLib.Raphael.fn._elementFromEvent=function(m){if(!m||this.removed)return null;var z=m.srcElement||m.target||(m=m.originalEvent)&&(m.srcElement||m.target)||d;"tspan"===z.nodeName&&(z=z.parentNode);return this.getById(z.raphaelid)}}]);
  FusionCharts.register("module",["private","fusioncharts.redraphael.css",function(){var d=this.hcLib.Raphael,m=d.eve,z=d._g,q=d.fn,E=d.el,b=/[, ]+/,K=/\B([A-Z]{1})/g,I,c;I=function(b){this.rules={};this.ns=b||""};c=I.prototype;c.getSheet=function(){var b=this.node;b||(b=this.node=z.doc.createElement("style"),this.node.setAttribute("id",d.format("raphael-stylesheet-{0}",d._oid++)),this.node.setAttribute("type","text/css"),(z.doc.head||z.doc.getElementsByTagName("head")[0]).appendChild(this.node));return b};
  c.setCssText=function(b){var a=this.node;if(!a)if(b)a=this.getSheet();else return;a.styleSheet?a.styleSheet.cssText=b||"":(a.innerHTML="",b&&a.appendChild(z.doc.createTextNode(b)))};c.destroy=function(){this.node&&this.node.parentNode&&this.node.parentNode.removeChild(this.node);delete this.rules};c.clear=function(){this.setCssText("");this.rules={}};c.add=function(b,a){var c=this.rules[b]||(this.rules[b]={}),d;for(d in a)c[d]=a[d]};c.render=function(){this.setCssText(this.toString())};c.toString=
  function(b){var a=b?"":"\n",c=b?"":"\t";b=b?":":": ";var d=a,m,g;for(m in this.rules){d+=m.replace(/(^|\,)/g,"$1"+this.ns+" ")+" {"+a;m=this.rules[m];for(g in m)m[g]&&(d+=c+g.replace(K,"-$1").toLowerCase()+b+m[g]+";"+a);d+="}"+a}return d};m.on("raphael.new",function(){this._stylesheet=this._stylesheet||new I;this.cssNamespace("")});m.on("raphael.remove",function(){this._stylesheet&&this._stylesheet.destroy();delete this._stylesheet});q.cssNamespace=function(b){arguments.length&&(this._stylesheet.ns=
  d.format("{0}#raphael-paper-{1}",b&&b+" "||"",this.id));return this._stylesheet.ns};q.cssAddRule=function(b,a){if(1===arguments.length&&"object"===typeof b){for(var c in b)this.cssAddRule(c,b[c]);return this}return this._stylesheet.add(b,a),this};q.cssRender=function(){return d.svg&&this._stylesheet.render(),this};q.cssClear=function(){return this._stylesheet.clear(),this};d._availableAttrs["class"]="";d.svg&&m.on("raphael.attr.class",function(b){var a=this.node;b=b||"";a.setAttribute("class","group"===
  this.type&&this._id?"raphael-group-"+this.id+"-"+this._id+" "+b:b)});d.vml&&m.on("raphael.attr.class",function(b){var a=this.paper,c="."+b,a=a._stylesheet&&a._stylesheet.rules,d=this.parent,m=this.attrs,g={},f;this.node.className="group"===this.type?b&&this._id+" "+b||this._id:"rvml "+b;if(c&&a){b=a[c];for(f in b)"color"===f&&"text"===this.type&&(f="fill"),!m[f]&&(g[f]=b[f]);for(;d&&d.attr;){if(b=d.attr("class"))for(f in c="."+b+" "+c,b=a[c],b)"color"===f&&"text"===this.type&&(f="fill"),m[f]||g[f]||
  (g[f]=b[f]);d=d.parent}this.css(g)}});E.css=function(c,a){var v,q,B,g;if(this.removed)return this;this.styles||(this.styles={});if(null==a&&d.is(c,"string")){v=c.split(b);q={};g=0;for(B=v.length;g<B;g++)c=v[g],c in this.styles&&(q[c]=this.styles[c]);return B-1?q:q[v[0]]}if(null==a&&d.is(c,"array")){q={};g=0;for(B=c.length;g<B;g++)q[c[g]]=this.styles(c[g]);return q}null!=a?(v={},v[c]=a):null!=c&&d.is(c,"object")&&(v=c);q={};for(g in v)B=g.replace(/\B([A-Z]{1})/g,"-$1").toLowerCase(),d._availableAttrs.hasOwnProperty(B)||
  "color"===B?("color"===B&&"text"===this.type&&(B="fill"),q[B]=v[g],q.dirty=!0):(m("raphael.css."+B+"."+this.id,this,v[g],B),this.node.style[B]=v[g],this.styles[B]=v[g]);g=0;for(B=this.followers.length;g<B;g++)this.followers[g].el.attr(v);q.hasOwnProperty("dirty")&&(delete q.dirty,this.attr(q));return this}}]);
  FusionCharts.register("module",["private","modules.renderer.js-raphaelexport",function(){var d=this.hcLib,m=d.Raphael,z=d.pluckNumber,q=d.pluck,E=m._availableAttrs,b=/^matrix\(|\)$/g,K=/\,/g,I=/\n|<br\s*?\/?>/ig,c=/[^\d\.]/ig,s=/[\%\(\)\s,\xb0#]/g,a=/group/ig,v=/&/g,O=/"/g,B=/'/g,g=/</g,f=/>/g,n=0;(function(d){var m=Math,Q=parseFloat,l=m.max,C=m.abs,A=m.pow,W=String,r=/[, ]+/,oa=[{reg:/xmlns\=\"http\:\/\/www.w3.org\/2000\/svg\"/ig,repStr:""},{reg:/^.*<svg /,repStr:'<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" '},
  {reg:/\/svg>.*$/,repStr:"/svg>"},{reg:/<desc\>[^<]*<\/desc\>/,repStr:""},{reg:/zIndex="[^"]+"/g,repStr:""},{reg:/url\((\\?[\'\"])[^#]+#/g,repStr:"url($1#"},{reg:/ href=/g,repStr:" xlink:href="},{reg:/(id|class|width|height)=([^" >]+)/g,repStr:'$1="$2"'},{reg:/:(path|rect)/g,repStr:"$1"},{reg:/<ima?ge? ([^\>]+?[^\/])\>/gi,repStr:"<image $1 />"},{reg:/<\/ima?ge?\>/g,repStr:""},{reg:/style="([^"]+)"/g,repStr:function(a){return a.toLowerCase()}}],ga={blur:function(){},transform:function(){},src:function(a,
  b){b.attrSTR+=' xlink:href="'+b.attrs.src+'"'},path:function(a,b){var c=b.attrs.path,c=d._pathToAbsolute(c||"");b.attrSTR+=' d="'+(c.toString&&c.toString()||"").replace(K," ")+'"'},gradient:function(a,b,c){var f=a.attrs.gradient,g="linear",n,r,H,v=.5,q=.5,k=r="",L="",$,aa,B,Y;n=f.replace(s,"_");if(!c[n]){f=W(f).replace(d._radial_gradient,function(a,b){var c,k,f,d,l,n,L;b=b&&b.split(",")||[];g="radial";c=b[0];k=b[1];f=b[2];d=b[3];l=b[4];Y=b[5];L=c&&k;f&&(B=/\%/.test(f)?f:Q(f));if("userSpaceOnUse"===
  Y)return L&&(v=c,q=k),d&&l&&($=d,aa=l,L||(v=$,q=aa)),"";L&&(v=Q(c),q=Q(k),c=2*(.5<q)-1,.25<(n=A(v-.5,2))+A(q-.5,2)&&.25>n&&(q=m.sqrt(.25-n)*c+.5)&&.5!==q&&(q=q.toFixed(5)-1E-5*c));d&&l&&($=Q(d),aa=Q(l),c=2*(.5<aa)-1,.25<(n=A($-.5,2))+A(aa-.5,2)&&.25>n&&(aa=m.sqrt(.25-n)*c+.5)&&.5!==aa&&(aa=aa.toFixed(5)-1E-5*c),L||(v=$,q=aa));return""});f=f.split(/\s*\-\s*/);if("linear"===g){r=f.shift();r=-Q(r);if(isNaN(r))return null;H=[0,0,m.cos(d.rad(r)),m.sin(d.rad(r))];r=1/(l(C(H[2]),C(H[3]))||1);H[2]*=r;H[3]*=
  r;0>H[2]&&(H[0]=-H[2],H[2]=0);0>H[3]&&(H[1]=-H[3],H[3]=0)}f=d._parseDots(f);if(!f)return null;"radial"===g?(r='<radialGradient fx = "'+v+'" fy = "'+q+'" cy = "'+aa+'" cx = "'+$+'" r = "'+B+'" gradientUnits = "'+Y+'" id = "'+n+'">',k="</radialGradient>"):(r='<linearGradient x1 = "'+H[0]+'" y1 = "'+H[1]+'" x2 = "'+H[2]+'" y2 = "'+H[3]+'" gradientTransform ="matrix('+a.matrix.invert()+')" id = "'+n+'">',k="</linearGradient>");a=0;for(H=f.length;a<H;a++)L+='<stop offset="'+(f[a].offset?f[a].offset:a?
  "100%":"0%")+'" stop-color="'+(f[a].color||"#fff")+'" stop-opacity="'+(void 0===f[a].opacity?1:f[a].opacity)+'" />';c[n]=!0;c.str+=r+L+k}b.attrSTR+=" fill=\"url('#"+n+"')\""},fill:function(a,b){var c=b.attrs,f=c.fill,g;a.attrs.gradient||(f=d.color(f),g=f.opacity,"text"===a.type?b.styleSTR+="fill:"+f+"; stroke-opacity:0; ":(b.attrSTR+=' fill="'+f+'"',c["fill-opacity"]||!g&&0!==g||(b.attrSTR+=' fill-opacity="'+g+'"')))},stroke:function(a,b){var c=b.attrs,f,g;f=d.color(c.stroke);g=f.opacity;"text"!==
  a.type&&(b.attrSTR+=' stroke="'+f+'"',c["stroke-opacity"]||!g&&0!==g||(b.attrSTR+=' stroke-opacity="'+g+'"'))},"clip-rect":function(a,c,f){var d=W(c.attrs["clip-rect"]),g=d.split(r),d=d.replace(s,"_")+"__"+n++;4===g.length&&(f[d]||(f[d]=!0,f.str+='<clipPath id="'+d+'"><rect x="'+g[0]+'" y="'+g[1]+'" width="'+g[2]+'" height="'+g[3]+'" transform="matrix('+a.matrix.invert().toMatrixString().replace(b,"")+')"/></clipPath>'),c.attrSTR+=' clip-path="url(#'+d+')"')},cursor:function(a,b){var c=b.attrs.cursor;
  c&&(b.styleSTR+="cursor:"+c+"; ")},font:function(a,b){b.styleSTR+="font:"+b.attrs.font.replace(/\"/ig," ")+"; "},"font-size":function(a,b){var f=q(b.attrs["font-size"],"10");f&&f.replace&&(f=f.replace(c,""));b.styleSTR+="font-size:"+f+"px; "},"font-weight":function(a,b){b.styleSTR+="font-weight:"+b.attrs["font-weight"]+"; "},"font-family":function(a,b){b.styleSTR+="font-family:"+b.attrs["font-family"]+"; "},"line-height":function(){},"clip-path":function(){},visibility:function(){},"vertical-align":function(){},
  "text-anchor":function(a,b){var c=b.attrs["text-anchor"]||"middle";"text"===a.type&&(b.attrSTR+=' text-anchor="'+c+'"')},title:function(){},text:function(a,b){var d=b.attrs,l=d.text,n=q(d["font-size"],d.font,"10"),p=q(d["line-height"]),r,H,A;n&&n.replace&&(n=n.replace(c,""));n=z(n);p&&p.replace&&(p=p.replace(c,""));p=z(p,n&&1.2*n);r=n?.85*n:.75*p;n=d.x;H=q(d["vertical-align"],"middle").toLowerCase();l=W(l).split(I);A=l.length;d=0;for(r="top"===H?r:"bottom"===H?r-p*A:r-p*A*.5;d<A;d++)b.textSTR+="<tspan ",
  H=(l[d]||"").replace(v,"&amp;").replace(O,"&quot;").replace(B,"&#39;").replace(g,"&lt;").replace(f,"&gt;"),b.textSTR=d?b.textSTR+('dy="'+p+'" x="'+n+'" '):b.textSTR+('dy="'+r+'"'),b.textSTR+=">"+H+"</tspan>"}},ba=function(c,f){var d="",g={attrSTR:"",styleSTR:"",textSTR:"",attrs:c.attr()},l=c.isShadow,n="",p="",r,A,m=g.attrs;if("none"===c.node.style.display||l)c.next&&(d+=ba(c.next,f));else{for(r in m)if("gradient"!==r&&(void 0!==E[r]||ga[r])&&void 0!==m[r])if(ga[r])ga[r](c,g,f);else g.attrSTR+=" "+
  r+'="'+m[r]+'"';c.attrs.gradient&&ga.gradient(c,g,f);"rect"===c.type&&m.r&&(g.attrSTR+=' rx="'+m.r+'" ry="'+m.r+'"');for(A in c.styles)g.styleSTR+=A+":"+c.styles[A]+"; ";"image"===c.type&&(g.attrSTR+=' preserveAspectRatio="none"');if("text"===c.type&&!m["text-anchor"])ga["text-anchor"](c,g);c.bottom&&(n=ba(c.bottom,f));c.next&&(p=ba(c.next,f));l=c.type;l.match(a)&&(l="g");d+="<"+l+' transform="matrix('+c.matrix.toMatrixString().replace(b,"")+')" style="'+g.styleSTR+'"'+g.attrSTR+">"+g.textSTR+n+"</"+
  l+">"+p}return d};d.fn.toSVG=function(a){var b="",c={str:""},f=0,g=oa.length,l="";if(d.svg){if(this.canvas&&this.canvas.parentNode){for(b=this.canvas.parentNode.innerHTML;f<g;f+=1)c=oa[f],b=b.replace(c.reg,c.repStr);this._stylesheet&&(b=b.replace(/^(<svg\s[\s\S]*?>)/ig,'$1<style type="text/css">'+this._stylesheet.toString(!0)+"</style>"))}}else b='<svg style="overflow: hidden; position: relative;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+this.width+'" version="1.1" height="'+
  this.height+'">',this.bottom&&(l=ba(this.bottom,c)),b+="<defs>"+c.str+"</defs>"+l+"</svg>";a||(b=b.replace(/<image [^\>]*\>/gi,""));return b}})(m)}]);
  FusionCharts.register("module",["private","modules.renderer.js-raphaelshadow",function(){var d=this.window,m=d.Math.sqrt,z=d.parseFloat,q=d.parseInt,d=d.SVGFilterElement||d.SVGFEColorMatrixElement&&2===d.SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE,E=this.hcLib.Raphael,b={"drop-shadow":"drop-shadow",stroke:"stroke",fill:"fill","stroke-width":"stroke-width","stroke-opacity":"stroke-opacity","stroke-linecap":"stroke-linecap","stroke-linejoin":"stroke-linejoin","shape-rendering":"shape-rendering",
  transform:"transform"},K=E._createNode,I;E.svg?(d&&(E.el.dropshadow=function(b,d,a,v){var q=this.node,B=this._.shadowFilter,g=this.paper.cacheShadows||(this.paper.cacheShadows={}),f="drop-shadow"+[b,d,a,v].join(" "),n;if("none"===b){if(B){--B.use;this.node.removeAttribute("filter");if(!B.use){f=B.hash;for(n in B)b=B[n],b.parentNode&&b.parentNode.removeChild(b),delete B[n];delete g[f]}delete this._.shadowFilter}}else B&&g[f]===B||(B=this.paper.defs.appendChild(K("filter",{id:E.createUUID(),width:"200%",
  height:"200%"})),v=E.color(v),v.error&&(v=E.color("rgba(0,0,0,1)")),n=E.pick(v.opacity,1),this._.shadowFilter=g[f]={use:1,filter:B,hash:f,offset:B.appendChild(K("feOffset",{result:"offOut","in":"SourceGraphic",dx:z(b),dy:z(d)})),matrix:B.appendChild(K("feColorMatrix",{result:"matrixOut","in":"offOut",type:"matrix",values:"0 0 0 0 "+v.r/255+" 0 0 0 0 "+v.g/255+" 0 0 0 0 "+v.b/255+" 0 0 0 "+n+" 0"})),blur:B.appendChild(K("feGaussianBlur",{result:"blurOut","in":"matrixOut",stdDeviation:m(z(a))})),blend:B.appendChild(K("feComposite",
  {"in":"SourceGraphic",in2:"blurOut",operator:"over"}))},q.setAttribute("filter",'url("'+E._url+"#"+B.id+'")'));return this}),I=function(c,d){var a=this.__shadowscale,m={},q,B;for(B in c)switch(b[B]&&(m[B]=c[B],delete c[B]),B){case "transform":q=d.matrix.clone();q.translate(this.__shadowx,this.__shadowy);this.transform(q.toTransformString());break;case "stroke-width":c[B]=((m[B]||1)+6-2*this.__shadowlevel)*a}this.attr(c);for(B in m)c[B]=m[B]},E.ca["drop-shadow"]=function(b,d,a,m,z,B){a=this._.shadows||
  (this._.shadows=[]);var g,f,n,p,F;if(!this.__shadowblocked)if("none"===b)for(;f=a.pop();)f.remove();else for(m=E.color(m),m.error&&(m=E.color("rgba(0,0,0,1)")),z instanceof Array?(g=z[0],z=z[1]):g=z,g=1/E.pick(g,1),z=1/E.pick(z,1),b=E.pick(b,1)*g,d=E.pick(d,1)*g,g=.05*E.pick(m.opacity,1),n=q(this.attr("stroke-width")||1,10)+6,p=this.matrix.clone(),p.translate(b,d),F=1;3>=F;F++)f=(a[F-1]||this.clone().follow(this,I,!B&&"before")).attr({stroke:m.hex,"stroke-opacity":g*F,"stroke-width":(n-2*F)*z,transform:p.toTransformString(),
  "stroke-linecap":"round","stroke-linejoin":"round",fill:"none"}),f.__shadowlevel=F,f.__shadowscale=z,f.__shadowx=b,f.__shadowy=d,B&&B.appendChild(f),a.push(f);return!1},E.el.shadow=function(b,d,a,m){var q;a&&a.constructor===E.el.constructor&&(m=a,a=void 0);"object"===typeof b&&(d&&d.constructor===E.el.constructor&&(m=d),d=b.opacity,a=b.scalefactor,q=!!b.useFilter,b=void 0===b.apply?!!d:b.apply);void 0===d&&(d=1);if(this.dropshadow){if(q)return b&&this.dropshadow(1,1,3,"rgb(64,64,64)")||this.dropshadow("none"),
  this;this._.shadowFilter&&this.dropshadow("none")}return this.attr("drop-shadow",b?[1,1,3,"rgba(64,64,64,"+d+")",a,m]:"none")}):E.vml?(E.ca["drop-shadow"]=function(b,d,a,m,q,B){var g=this._.shadow,f,n;if(this.isShadow)return!1;"none"===b?g&&(this._.shadow=g.remove()):(g||(g=this._.shadow=this.clone(),B&&B.appendChild(g.follow(this))||g.follow(this,void 0,"before"),g.attr({fill:"none","fill-opacity":.5,"stroke-opacity":1}).isShadow=!0,0>=g.attr("stroke-width")&&g.attr("stroke-width",1)),B=g.node.runtimeStyle,
  f=B.filter.replace(/ progid:\S+Blur\([^\)]+\)/g,""),m=E.color(m),m.error&&(m=E.color("rgba(0,0,0,1)")),n=E.pick(m.opacity,1)/5,q=1/E.pick(q,1),b=E.pick(b,1)*q,d=E.pick(d,1)*q,g.translate(b,d),B.filter=f+" progid:DXImageTransform.Microsoft.Blur(pixelRadius="+z(.4*a)+" makeShadow=True Color="+m.hex+' shadowOpacity="'+n+'");');return!1},E.el.shadow=function(b,d,a,m){a&&a.constructor===E.el.constructor&&(m=a,a=void 0);"object"===typeof b&&(d&&"group"===d.type&&(m=d),d=b.opacity,a=b.scalefactor,b=void 0===
  b.apply?!!d:b.apply);void 0===d&&(d=1);return this.attr("drop-shadow",b||!d?[1,1,5,"rgba(64,64,64,"+d+")",a,m]:"none")}):E.canvas&&(E.el.shadow=function(){return this})}]);
  FusionCharts.register("module",["private","modules.renderer.js-raphaelshapes",function(){var d=this.window,m="createTouch"in d.document,z=/msie/i.test(d.navigator.userAgent)&&!d.opera,q=d.Math,E=q.cos,b=q.sin,K=q.abs,I=q.pow,c=q.atan2,s=q.tan,a=q.acos,v=q.min,O=q.round,B=q.PI,g=q.sqrt,f=2*B,n=d.parseInt,p=d.parseFloat,F=String,Q=Array.prototype.slice,l=I(2,-24),C="rgba(192,192,192,"+(z?.002:1E-6)+")",A=this.hcLib.Raphael,W=A.eve,r=A._createNode,oa=A._setFillAndStroke,ga=A.el.constructor,ba={speed:"optimizeSpeed",
  crisp:"crispEdges",precision:"geometricPrecision"},V={enabled:!1,"false":!1,0:!1,disabled:!0,"true":!0,1:!0},ta={Q:"L",Z:"X",q:"l",z:"x",",":" "},za=/,?([achlmqrstvxz]),?/gi,Aa=/\s*\,\s*/g,Z,U=function(){return this.join(",").replace(za,Z)},na,H,T=A._cacher(function(a,b,c,d){return g(I(c-a,2)+I(d-b,2))}),fa=A._cacher(function(a,b,c,d,f){var g=c-a,l=d-b;c=T(a,b,c,d);return{x:a+g/c*f,y:b+l/c*f}});if(A.svg)W.on("raphael.attr.shape-rendering",function(a,b){var c=this.node;this.attrs[b]=a=ba[a]||a||"auto";
  c.setAttribute(b,a);c.style.shapeRendering=a});else if(A.vml)W.on("raphael.attr.shape-rendering",function(a){this.node.style.antialias="crisp"!==a});A.define&&A.define([{name:"polypath",polypath:function(){return this.path(void 0,A._lastArgIfGroup(arguments))},ca:{polypath:function(a,c,d,f,g,l){var r,m,H;r=[];a=n(a,10)||0;c=p(c)||0;d=p(d)||0;f=p(f)||0;g=null===g||isNaN(g)?.5*B:A.rad(g);l=null===l||isNaN(l)?0:p(l);m=g;if(2<a)switch(g=2*B/a,l){case 0:for(l=0;l<a;l++)r.push("L",c+f*E(-m),d+f*b(-m)),
  m+=g;r[0]="M";r.push("Z");break;case 1:for(l=0;l<a;l++)r.push("M",c,d,"L",c+f*E(-m),d+f*b(-m)),m+=g;break;default:g*=.5;H=f*E(g)*(1-l);for(l=0;l<a;l++)r.push("L",c+f*E(-m),d+f*b(-m)),m+=g,r.push("L",c+H*E(-m),d+H*b(-m)),m+=g;r[0]="M";r.push("Z")}else 0===f?r.push("M",c,d,"L",c,d,"Z"):r.push("M",c-f,d,"A",f,f,0,0,0,c+f,d,"A",f,f,0,0,0,c-f,d,"Z");return{path:r}},r:function(a){var b=this.attrs.polypath;b[3]=a;this.attr("polypath",b);return!1}}},{name:"ringpath",ringpath:function(){return this.path(void 0,
  A._lastArgIfGroup(arguments))},ca:function(a,c,d,g,n,p){var r=p%f-n%f,m=p-n,H,A,s,v,C;this._.ringangle=.5*(n+p);K(m)<l?(m=E(n),n=b(n),d=["M",a+d*m,c+d*n,"L",a+g*m,c+g*n,"Z"]):(K(m)>l&&K(m)%f<l?(d=["M",a-d,c,"A",d,d,0,0,0,a+d,c,"A",d,d,0,0,0,a-d,c],0!==g&&(d=d.concat(["M",a-g,c,"A",g,g,0,0,1,a+g,c,"A",g,g,0,0,1,a-g,c]))):(m=E(n),n=b(n),H=E(p),p=b(p),r%=f,0>r&&(r+=f),r=r<B?0:1,A=a+d*m,v=c+d*n,s=a+d*H,C=c+d*p,H=a+g*H,p=c+g*p,.01>K(A-s)&&.01>K(v-C)&&(v=C+.01),d=["M",A,v,"A",d,d,0,r,1,s,C,"L",H,p],0!==
  g&&(a+=g*m,c+=g*n,.01>K(H-a)&&.01>K(p-c)&&(c=p+.01),d.push("A",g,g,0,r,0,a,c))),d.push("Z"));return{path:d}}},{name:"cubepath",cubepath:function(){var a={"stroke-linejoin":"round","shape-rendering":"precision",stroke:"none"},b=arguments,c=b.length-1,d=b[c],f,g;d&&d.constructor===A.el.constructor?b[c]=void 0:d=void 0;c=this.path(a,d);f=this.path(a,d);a=this.path(a,d);a._.cubetop=c.follow(a,void 0,"before");a._.cubeside=f.follow(a,void 0,"before");for(g in A.fn.cubepath.ca)a.ca[g]=A.fn.cubepath.ca[g];
  return a.attr("cubepath",[b[0],b[1],b[2],b[3],b[4],b[5]])},fn:{_getBBox2:function(){var a=this._.cubeside.getBBox(),b=this._.cubetop.getBBox(),c=this.getBBox();return{x:c.x+b.height,y:c.y-a.width,width:c.width,height:c.height}}},ca:{cubepath:function(a,b,c,d,f,g){var l=this._.cubetop,n=this._.cubeside;a=a||0;b=b||0;c=c||0;d=d||0;f=f||0;g=g||0;this.attr("path",["M",a+c,b,"l",0,d,-c,0,0,-d,"z"]);l.attr("path",["M",a,b,"l",1,1,c-1,0,0,-1,f,-g,-c,0,"z"]);n.attr("path",["M",a+c-1,b+1,"l",0,d-1,1,0,f,-g,
  0,-d,-f,g]);return!1},"stroke-linejoin":function(){return{"stroke-linejoin":"round"}},"drop-shadow":function(a,b,c,d){var f=this._.cubetop,g=this._.cubeside;this.dropshadow&&(f.dropshadow(a,-b,c,d),g.dropshadow(a,-b,c,d));return!1},fill:function(a,b){var d=this._.cubetop,f=this._.cubeside,g=this.attr("cubepath")||[0,0,0,0,0,0],l=g[2],n=g[4],g=g[5],p;a=A.color(a);b?(this.attr("fill",a),d.attr("fill",A.tintshade(a,-.78).rgba),f.attr("fill",A.tintshade(a,-.65).rgba)):(p="opacity"in a?"rgba("+[a.r,a.g,
  a.b,a.opacity]+")":"rgb("+[a.r,a.g,a.b]+")",this.attr("fill",[270,A.tintshade(p,.55).rgba,A.tintshade(p,-.65).rgba].join("-")),f.attr("fill",[270,A.tintshade(p,-.75).rgba,A.tintshade(p,-.35).rgba].join("-")),d.attr("fill",[45+A.deg(c(g,n+l)),A.tintshade(p,-.78).rgba,A.tintshade(p,.22).rgba].join("-")));return!1}}},{name:"scroller",scroller:function(a,b,c,d,f,g,l){var n=this.group("scroller",l),r=n.attrs,m=n._.scroller={};f=f&&"horizontal"||"vertical";var H,s={},v,C,q;m.track=this.rect(n).mousedown(function(a){var b=
  r["scroll-position"];a="horizontal"===r["scroll-orientation"]?a.layerX||a.x:a.layerY||a.y;a=(a-m.anchorOffset)/m.trackLength;H=A.animation({"scroll-position":a},2E3*K(b-a),"easeIn");n.animate(H);W("raphael.scroll.start."+n.id,n,b)}).mouseup(m._mouseupTrack=function(){this.stop(H);W("raphael.scroll.end."+this.id,this,r["scroll-position"])},n,!0);m.anchor=this.rect(n).drag(function(){s["scroll-position"]=v+arguments[C]/m.trackLength;n.animate(s,0)},function(a,b,c){C="horizontal"===r["scroll-orientation"]?
  0:1;W("raphael.scroll.start."+n.id,n,v=r["scroll-position"]);c.stopPropagation()},function(){W("raphael.scroll.end."+n.id,n,v=r["scroll-position"])});for(q in A.fn.scroller.fn)n[q]=A.fn.scroller.fn[q];for(q in A.fn.scroller.ca)n.ca[q]=A.fn.scroller.ca[q];r["scroll-orientation"]=f;r["stroke-width"]=1;n.ca["scroll-repaint"]=n.ca["scroll-repaint-"+f];!A.is(g,"object")&&(g={});return n.attr({ishot:!0,"scroll-display-buttons":g.showButtons&&"arrow"||"none","scroll-display-style":g.displayStyleFlat&&"flat"||
  "3d","scroll-ratio":p(g.scrollRatio)||1,"scroll-position":p(g.scrollPosition)||0,"scroll-repaint":[a,b,c,d]})},fn:{scroll:function(a,b){var c=this._.scroller;b=b||this;c.callback=function(){return a.apply(b,arguments)};return this},remove:function(){var a=this._.scroller,b;this.attr("scroll-display-buttons","none");a.track.unmouseup(a._mouseupTrack);for(b in a)a[b]&&a[b].remove&&a[b].remove(),a[b]=null;delete this._.scroller;A.el.remove.apply(this,arguments)}},ca:{"stroke-width":function(){return!1},
  "drop-shadow":function(a,b,c,d,f,g){this._.scroller.track.attr("drop-shadow",[a,b,c,d,f,g]);return!1},"scroll-display-style":function(a){var b=this.attrs,c=b["scroll-display-style"],d=b.fill;a={flat:"flat","3d":"3d",transparent:"transparent"}[a]||c;d&&a!==c&&(b["scroll-display-style"]=a,this.attr("fill",d));return{"scroll-display-style":a}},"scroll-display-buttons":function(a){var b=this,c=b.paper,d=b._.scroller,f=b.attrs,g=f["scroll-display-buttons"],l=f["scroll-repaint"],n,p;void 0===g&&(g="none");
  a={none:"none",arrow:"arrow"}[a]||g;a!==g&&(f["scroll-display-buttons"]=a,"none"===a&&d.start?(d.arrowstart.remove(),delete d.arrowstart,d.arrowend.remove(),delete d.arrowend,d.start.unmouseup(d._mouseupStart),d.start.remove(),delete d.start,d.end.unmouseup(d._mouseupEnd),d.end.remove(),delete d.end):(d.arrowstart=c.polypath(b),d.arrowend=c.polypath(b),d.start=c.rect(b).mousedown(function(){var a;0!==(a=f["scroll-position"])&&(b.animate({"scroll-position":a-.1},100).animate(n=A.animation({"scroll-position":0},
  4500*a,"easeIn")),W("raphael.scroll.start."+b.id,b,a))}).mouseup(d._mouseupStart=function(){b.stop(n);W("raphael.scroll.end."+b.id,b,f["scroll-position"])},b,!0),d.end=c.rect(b).mousedown(function(){var a;1!==(a=f["scroll-position"])&&(b.animate({"scroll-position":a+.1},100).animate(p=A.animation({"scroll-position":1},4500*(1-a),"easeIn")),W("raphael.scroll.start."+b.id,b,a))}).mouseup(d._mouseupEnd=function(){b.stop(p);W("raphael.scroll.end."+b.id,b,f["scroll-position"])},b,!0),f.fill&&b.attr("fill",
  f.fill)),l&&b.attr("scroll-repaint",l));return{"scroll-display-buttons":a}},"scroll-orientation":function(a){var b=this.attrs,c=b["scroll-repaint"],d=b["scroll-orientation"];a={horizontal:"horizontal",vertical:"vertical"}[a]||d;d!==a&&(this.ca["scroll-repaint"]=this.ca["scroll-repaint-"+a],c&&(c[2]+=c[3],c[3]=c[2]-c[3],c[2]-=c[3],this.attr("scroll-repaint",c)),b.fill&&this.attr("fill",b.fill));return{"scroll-orientation":a}},"scroll-ratio":function(a){var b=this.attrs,c=b["scroll-ratio"],d=b["scroll-repaint"];
  a=1<a?1:.01>a?.01:p(a);d&&a!==c&&(b["scroll-ratio"]=a,this.attr("scroll-repaint",d));return{"scroll-ratio":a}},"scroll-position":function(a,b){var c=this.attrs,d="horizontal"===c["scroll-orientation"],f=c["scroll-repaint"],g=c["scroll-position"],l=this._.scroller,n=l.anchor;a=1<a?1:0>a?0:p(a);isNaN(a)&&(a=g);f&&(g!==a||b)&&(g=l.start&&l.start.attr(d&&"width"||"height")||0,d&&n.attr("x",f[0]+g+(f[2]-2*g-n.attr("width"))*a+.5)||n.attr("y",f[1]+g+(f[3]-2*g-n.attr("height"))*a+.5),!b&&1>c["scroll-ratio"]&&
  (W("raphael.scroll.change."+this.id,this,a),l.callback&&l.callback(a)));return{"scroll-position":a}},r:function(a){var b=this._.scroller;b.track.attr("r",a);b.anchor.attr("r","none"===this.attrs["scroll-display-buttons"]&&a||0);return!1},"scroll-repaint-horizontal":function(a,b,c,d){var f=this.attrs,g=this._.scroller,l=f["scroll-ratio"],n=f["scroll-position"],p=0,r=c*l,f="none"===f["scroll-display-buttons"];c&&--c;a&&(a+=.5);d&&--d;b&&(b+=.5);g.track.attr({width:c,height:d,y:b,x:a}).crisp();f||(p=
  v(d,.5*c),r-=2*p*l,g.start.attr({width:p,height:d,x:a,y:b}),g.arrowstart.attr("polypath",[3,a+.5*p,b+.5*d,.25*p,180]),g.end.attr({width:p,height:d,x:a+c-p,y:b}),g.arrowend.attr("polypath",[3,a+c-.5*p,b+.5*p,.25*p,0]));g.trackLength=c-2*p-r;g.trackOffset=a+p+.5;g.anchorOffset=g.trackOffset+.5*(r-1);g.anchor.attr({height:d,width:r-1,y:b,x:g.trackOffset+g.trackLength*n}).crisp()},"scroll-repaint-vertical":function(a,b,c,d){var f=this.attrs,g=this._.scroller,l=f["scroll-ratio"],n=f["scroll-position"],
  p=0,r=d*l,f="none"===f["scroll-display-buttons"];c&&--c;a&&(a+=.5);d&&--d;b&&(b+=.5);g.track.attr({width:c,height:d,y:b,x:a}).crisp();f||(p=v(c,.5*d),r-=2*p*l,g.start.attr({width:c,height:p,x:a,y:b}),g.arrowstart.attr("polypath",[3,a+.5*c,b+.5*p,.25*p,90]),g.end.attr({width:c,height:p,x:a,y:b+d-p}),g.arrowend.attr("polypath",[3,a+.5*c,b+d-.5*p,.25*p,-90]));g.trackLength=d-2*p-r;g.trackOffset=b+p+.5;g.anchorOffset=g.trackOffset+.5*(r-1);g.anchor.attr({height:r-1,width:c,y:g.trackOffset+g.trackLength*
  n,x:a}).crisp()},fill:function(a){var b=this.attrs,c=this._.scroller,d=b["scroll-repaint"],f="flat"===b["scroll-display-style"],g="horizontal"===b["scroll-orientation"],l={stroke:"none"},n;m&&d&&3<(n=16-d[g&&3||2])&&(l.stroke=C,l["stroke-width"]=n);a=A.color(a);a.error&&(a="#000000");a="opacity"in a?"rgba("+[a.r,a.g,a.b,a.opacity]+")":"rgb("+[a.r,a.g,a.b]+")";l.fill=f&&a||[90*g,A.tintshade(a,.15).rgba,a].join("-");l.stroke=A.tintshade(a,-.75).rgba;c.track.attr(l);l.fill=f&&A.tintshade(a,-.6).rgba||
  [270*g,A.tintshade(a,.3).rgba+":40",A.tintshade(a,-.7).rgba].join("-");l.stroke=A.tintshade(a,-.6).rgba;c.anchor.attr(l);l.stroke="none";"none"!==b["scroll-display-buttons"]&&(l.fill=C,c.start.attr(l),c.end.attr(l),l.fill=A.tintshade(a,-.4).rgba,c.arrowstart.attr(l),c.arrowend.attr(l));return!1}}},{name:"button",button:function(a,b,c,d,f,g){g=this.group("button",g);var l;g._.button={bound:this.rect(g),tracker:this.rect(g).attr({fill:C,stroke:C,cursor:"pointer"}).data("compositeButton",g)};!A.is(f,
  "object")&&(f={});for(l in A.fn.button.fn)g[l]=A.fn.button.fn[l];for(l in A.fn.button.ca)g.ca[l]=A.fn.button.ca[l];return g.attr({ishot:!0,"button-padding":[f.horizontalPadding,f.verticalPadding],"button-label":c,"button-symbol":d,"button-disabled":f.disabled||"false","button-symbol-position":f.symbolPosition,"button-symbol-padding":f.symbolPadding}).attr("button-repaint",[a,b,f.width,f.height,f.r])},data:{hoverin:function(){var a=this._.button.hoverbackIn;a&&!1===a()||(this.attr("fill","hover").hovered=
  !0)},hoverout:function(){var a=this._.button.hoverbackOut;a&&!1===a()||(this.attr("fill",(this.pressed||this.active)&&"active"||"normal").hovered=!1)},mousedown:function(){this.attr("fill","active").pressed=!0},mouseup:function(){var a=this._.button.callback;this.attr("fill",this.hovered&&"hover"||this.active&&"active"||"normal").pressed=!1;a()}},fn:{tooltip:function(){A.el.tooltip&&A.el.tooltip.apply(this._.button.tracker,arguments);return this},buttonclick:function(a,b){var c=this._.button;b=b||
  this;c.callback=function(){return a.apply(b,arguments)};return this},labelcss:function(){var a=this._.button,b=a.label;a.cssArg=arguments;b&&b.css.apply(b,arguments);return this.attr("button-repaint",this.attrs["button-repaint"])},buttonhover:function(a,b,c,d){var f=this._.button;c=c||this;d=d||this;f.hoverbackIn=function(){return a.apply(c,arguments)};f.hoverbackOut=function(){return b.apply(d,arguments)};return this},remove:function(){var a=this._.button,b;this.attr("button-disabled","true");for(b in a)a[b]&&
  a[b].remove&&a[b].remove(),a[b]=null;delete this._.button;A.el.remove.apply(this,arguments)}},ca:{"button-active":function(a){this.attr("fill",(this.active=!!a)?"active":this.hovered&&"hover"||"normal")},"button-disabled":function(a){var b=this._.button.tracker,c=this.attrs["button-disabled"],d=this.paper.button.data;a=V[a];c=V[c];if(void 0!==a&&a!==c)switch(a){case !0:b.attr("fill","rgba(204,204,205,.5)").unmousedown(d.mousedown).unmouseup(d.mouseup).unhover(d.hoverin,d.hoverout);break;case !1:b.attr("fill",
  C).mousedown(d.mousedown,this).mouseup(d.mouseup,this,!0).hover(d.hoverin,d.hoverout,this,this)}},"button-label":function(a){var b=this._.button,c=this.attrs,d=b.label,f=b.cssArg,g=this.attrs["button-repaint"];a=F(a||"");"none"===a?d&&(b.label=d.remove()):a&&(!d&&(d=b.label=this.paper.text(this).insertBefore(b.tracker)),d.attr({text:a,"text-anchor":"middle","vertical-align":"middle"}),f&&f.length&&d.css.apply(d,f));g&&c["button-label"]!==a&&this.attr("button-repaint",g)},"button-symbol":function(a){var b=
  this.attrs,c=this._.button,d=c.symbol,f=this.attrs["button-repaint"];a=F(a||"");"none"===a?d&&(c.symbol=d.remove()):a&&!d&&(c.symbol=this.paper.symbol(this).insertAfter(c.bound));f&&b["button-symbol"]!==a&&this.attr("button-repaint",f)},"button-symbol-position":function(a){return{"button-symbol-position":{top:"top",right:"right",bottom:"bottom",left:"left",none:"none"}[F(a).toLowerCase()]||"none"}},"button-symbol-padding":function(a){return{"button-symbol-padding":p(a)}},"button-padding":function(a,
  b){return{"button-padding":[null==a&&(a=5)||p(a),null==b&&a||p(b)]}},"button-repaint":function(a,b,c,d,f){var g=this._.button,l=g.bound,n=g.label,p=g.symbol,r=this.attrs,m=r["button-padding"],H=m[0],s=m[1],C,q;void 0===a&&(a=0);void 0===b&&(b=0);if(void 0===c||void 0===d)C=n&&n.getBBox()||{width:0,height:0},void 0===c&&(c=2*H+C.width),void 0===d&&(d=2*s+C.height);l=A.crispBound(a,b,c,d,l.attr("stroke-width"));l.r=A.pick(f,O(.1*v(d,c)));a=l.x;b=l.y;c=l.width;d=l.height;n&&n.attr({x:a+c/2,y:b+d/2});
  if(p){!A.is(q=r["button-symbol-padding"],"finite")&&(q=.2*d);f=d-s;C=.5*f;switch(r["button-symbol-position"]+(n&&"+"||"-")){case "right+":a=a+(c+(2*C+s))-C-H;b+=.5*d;n.attr("transform",["t",-(f+q),0]);break;case "left+":a=a+H+C;b+=.5*d;n.attr("transform",["t",f+q,0]);break;case "top+":a+=.5*c;b=b+m[1]+C;n.attr("transform",["t",0,f+q]);break;case "bottom+":a+=.5*c;b=b+(d+(2*C+q))-s-C;n.attr("transform",["t",0,-(f+q)]);break;default:a+=.5*c,b+=.5*d}p.attr("symbol",[r["button-symbol"],a,b,C])}g.bound.attr(l);
  g.tracker.attr(l)},fill:function(a,b,c,d){var f=this._.button,g=f.bound,l=f.symbol,n=f.label,p={normal:f.gradient,active:f.gradientActive,hover:f.gradientHover}[a];p||(a=A.getRGB(a),a.error&&(a=A.color("#cccccc")),a="opacity"in a?"rgba("+[a.r,a.g,a.b,a.opacity]+")":"rgb("+[a.r,a.g,a.b]+")",f.gradient=[90,A.tintshade(a,-.8).rgba+":0",A.tintshade(a,.8).rgba+":100"].join("-"),f.gradientActive=[270,A.tintshade(a,-.8).rgba+":0",A.tintshade(a,.8).rgba+":100"].join("-"),d=A.getRGB(d),d.error&&(d=a)||(d=
  "opacity"in d?"rgba("+[d.r,d.g,d.b,d.opacity]+")":"rgb("+[d.r,d.g,d.b]+")"),f.gradientHover=[90,A.tintshade(d,-.9).rgba+":0",A.tintshade(d,.7).rgba+":100"].join("-"),c=c||A.tintshade(a,.2).rgba,b=b||A.tintshade(a,-.2).rgba,f.symbolFill=c,f.labelFill=b,p=(this.pressed||this.active)&&f.gradientActive||this.hovered&&f.gradienthover||f.gradient);g.attr("fill",p);l&&l.attr("fill",f.symbolFill);n&&n.attr("fill",f.labelFill);return!1},stroke:function(a,b){var c=this._.button,d=c.symbol;a=A.color(a);a.error&&
  (a=A.color("#999999"));c.bound.attr("stroke",a);d&&d.attr("stroke",b||a);return!1},"stroke-width":function(a,b){var c=this._.button,d=c.symbol;c.bound.attr("stroke-width",a);c.tracker.attr("stroke-width",a);d&&d.attr("stroke-width",b);return!1}}},{name:"trianglepath",trianglepath:function(){var a=arguments,b=A._lastArgIfGroup(a);return this.path(b).attr("trianglepath",[a[0],a[1],a[2],a[3],a[4],a[5],a[6]||0,a[7]||0,a[8]||0])},fn:{sides:function(){var a=this._args;return[T(a[0],a[1],a[2],a[3]),T(a[2],
  a[3],a[4],a[5]),T(a[4],a[5],a[0],a[1])]},enclosedAngles:function(){var b=this._sides;return[a((I(b[0],2)+I(b[2],2)-I(b[1],2))/(2*b[0]*b[2])),a((I(b[0],2)+I(b[1],2)-I(b[2],2))/(2*b[0]*b[1])),a((I(b[2],2)+I(b[1],2)-I(b[0],2))/(2*b[2]*b[1]))]},semiperimeter:function(){var a=this._sides||this.sides();return(a[0]+a[1]+a[2])/2}},ca:{trianglepath:function(a,b,c,d,f,l,n,p,r){if(n||p||r){this._args=arguments;this._sides=this.sides();var m=this.enclosedAngles(),H;H=this.semiperimeter();H=g(H*(H-this._sides[0])*
  (H-this._sides[1])*(H-this._sides[2]))/H;m=[v(n,H)/s(m[0]/2),v(p,H)/s(m[1]/2),v(r,H)/s(m[2]/2)];m=[fa(a,b,f,l,m[0]),fa(a,b,c,d,m[0]),fa(c,d,a,b,m[1]),fa(c,d,f,l,m[1]),fa(f,l,c,d,m[2]),fa(f,l,a,b,m[2])];this.attr({path:["M",m[0].x,m[0].y,"Q",a,b,m[1].x,m[1].y,"L",m[2].x,m[2].y,"Q",c,d,m[3].x,m[3].y,"L",m[4].x,m[4].y,"Q",f,l,m[5].x,m[5].y,"L",m[0].x,m[0].y]})}else this.attr({path:["M",a,b,"L",c,d,f,l,"Z"]})}}}]);A.ca["text-bound"]=function(a,b,c,d,f,g){d=this.paper;var l=this._.textbound;if("text"===
  this.type){if(!(b&&"none"!==b||a&&"none"!==a))return this._.textbound=l&&l.unfollow(this).remove(),!1;c&&A.is(c,"finite")||(c=0);f&&A.is(f,"finite")||(f=0);!l&&(l=this._.textbound=d.rect(0,0,0,0,this.group).follow(this,A.ca["text-bound"].reposition,"before"));l.attr({stroke:b,"stroke-width":c,fill:a,"shape-rendering":1===c&&"crisp"||"",r:f});g&&l.attr("stroke-dasharray",g);A.ca["text-bound"].reposition.call(l,this.attr(),this);return!1}};A.ca["text-bound"].reposition=function(a,b){var c={},d,f,g,
  l,n;a.hasOwnProperty("visibility")&&this.attr("visibility",a.visibility);if(a.hasOwnProperty("text-bound")||a.hasOwnProperty("x")||a.hasOwnProperty("y")||a.hasOwnProperty("text")||a.hasOwnProperty("text-anchor")||a.hasOwnProperty("text-align")||a.hasOwnProperty("font-size")||a.hasOwnProperty("line-height")||a.hasOwnProperty("vertical-align")||a.hasOwnProperty("transform")||a.hasOwnProperty("rotation"))d=b.attrs["text-bound"],f=F(d&&d[3]||"0").split(Aa),d=p(f[0])||0,f=A.pick(p(f[1]),d),g=b.getBBox(),
  l=g.width,n=g.height,isNaN(l)||(c.x=g.x-d,c.y=g.y-f,c.width=l+2*d,c.height=n+2*f),this.attr(c)};A.fn.symbol=function(){var a=arguments,b=a.length-1,c=a[b];c&&c.constructor===A.el.constructor?a[b]=void 0:c=void 0;b=this.path(void 0,c);b.ca.symbol=A.fn.symbol.ca.symbol;return a.length===!!c+0?b:b.attr("symbol",a)};A.fn.symbol.cache={"":A._cacher(function(a,b,c,d){return 3<arguments.length?["M",a,b,"h",c,"v",d,"h",-c,"v",-d,"z"]:["M",a-c,b-c,"h",c*=2,"v",c,"h",-c,"v",-c,"z"]})};A.fn.symbol.ca={symbol:function(a){var b=
  A.is(a,"object")&&1===arguments.length&&!A.is(a,"function")?a:arguments,c;b===a&&(a=b[0]);b=(c=A.is(a,"function")&&a||A.fn.symbol.cache[a]||A.fn.symbol.cache[""])&&c.apply(A,Q.call(b,1));A.is(b,"array")||A.is(b,"string")?this.attr("path",b):b&&this.attr(b)}};A.addSymbol=function(a,b){var c=A.is(b,"function")&&(c={},c[a]=b,c)||a,d=A.fn.symbol.cache,f=[],g;for(g in c)b=c[g],d[g]=A.is(b,"function")&&A._cacher(b,A)||(f.push(g),b);for(;g=f.pop();)d[g]=d[d[g]]};A.svg?(Z="$1",na=function(a){a?"string"===
  typeof a?a=a.replace(za,Z):a.toString=U:a="M0,0";this.node.setAttribute("d",a.toString());return this},A._engine.litepath=function(a,b,c,d){a=r("path");(d||b).canvas.appendChild(a);b=new ga(a,b,d);b.type="litepath";b.id=a.raphaelid=A._oid++;a.raphael=!0;oa(b,{fill:"none",stroke:"#000"});return b},A._getPath.litepath=function(a){return A.parsePathString(a.node.getAttribute("d"))}):A.vml&&(Z=function(a,b){return ta[b]||b},H=function(){this._transform.apply(this,arguments);this._.bcoord&&(this.node.coordsize=
  this._.bcoord);return this},na=function(a){a?"string"===typeof a?a=a.replace(za,Z):a.toString=U:a="M0,0";this.node.path=a;return this},A._engine.litepath=function(a,b,c,d){a=r("shape");var f=a.style,g=new ga(a,b,d);f.cssText="position:absolute;left:0;top:0;width:21600px;height:21600px;";c=p(c);isNaN(c)?a.coordsize="21600 21600":(g._.bzoom=c,f.width="1px",f.height="1px",a.coordsize=g._.bcoord=c+" "+c);a.coordorigin=b.coordorigin;g.type="litepath";g.id=a.raphaelid=A._oid++;a.raphael=!0;g._transform=
  g.transform;g.transform=H;A._setFillAndStroke(g,{fill:"none",stroke:"#000"});(d||b).canvas.appendChild(a);b=r("skew");b.on=!0;a.appendChild(b);g.skew=b;return g},A._getPath.litepath=function(a){return A.parsePathString(a.node.path||"")});A.fn.litepath=function(a,b,c){b&&b.constructor===ga&&(c=b,b=void 0);a&&a.constructor===ga&&(c=a,a="");b=A._engine.litepath(a,this,b,c);b.ca.litepath=na;a&&b.attr("litepath",A.is(a,"array")?[a]:a);return this.__set__&&this.__set__.push(b),this._elementsById[b.id]=
  b}}]);
  FusionCharts.register("module",["private","modules.renderer.js-htmlrenderer",function(){var d=this.hcLib,m=d.Raphael,z=d.dem,q=this.window,E=q.document,b=/msie/i.test(q.navigator.userAgent)&&!q.opera,K="VML"===m.type,I=d.hasTouch,c={cursor:"cursor"},s={x:"left",y:"top",strokeWidth:"borderThickness","stroke-width":"borderThickness",width:"width",height:"height"},a={fill:"backgroundColor",stroke:"borderColor",color:"color"},v={left:0,top:0,padding:0,border:"none",margin:0,outline:"none","-webkit-apperance":"none",position:"absolute",
  zIndex:20},O,B=function(a,b,c,d){a=E.createElement(a);for(var g in b)s[g]?a.style[g]=b[g]:a.setAttribute(g,b[g]);for(g in c)a.style[g]=c[g];d&&d.appendChild&&d.appendChild(a);return a},g;g=function(a,b,c){b&&b instanceof g&&(b=b.element);(this.element=B(a,c,v,b)).ishot="true";this.nodeName=a.toLowerCase();this.added=Boolean(b)};g.prototype={attr:function(d){var g=this.element,p={},m,v,l,C,A,q,r;if("object"!==typeof d){if(!(p=this[d])){if("string"===typeof d)g&&g.getAttribute&&(C=g.getAttribute(d));
  else if(void 0!==d&&null!==d&&"object"===typeof d)for(l in d)g.setAttribute(l,d[l]);p=C}return p}for(m in d){l=d[m];if(c[m]){switch(m){case "cursor":"pointer"===l&&K&&(l="hand")}g.style[c[m]]=l;v=!0}else if(s[m])g.style[s[m]]=l+"px",v=!0;else if(a[m])g.style[a[m]]=l&&l.replace(/^#?([a-f0-9]+)/ig,"#$1")||"none",v=!0;else if(/^visibility$/i.test(m))v="hidden"===l,g.style.display=v?"none":"",this.hidden=v,v=!0;else if(/^opacity$/i.test(m))g.style.opacity=l,b&&(v=100*Number(l),g.style.filter="progid:DXImageTransform.Microsoft.Alpha(Opacity="+
  v+")"),v=!0;else if(/^innerhtml$/i.test(m)){if(K&&"select"==g.nodeName.toLowerCase()){for(v=l.match(/<option\s?[\s\S]*?(\/>|><\/option>|>[\s\S]*?<\/option>)/ig);g.firstChild;)g.removeChild(g.firstChild);A=0;for(q=v.length;A<q;A+=1)C=v[A],r=E.createElement("option"),/<option\s([\s\S]*[\'\"])\s*?(\/>|>[\s\S]*<\/option>)/ig.test(C)&&(r.value=C.replace(/<option\s([\s\S]*[\'\"])\s*?(\/>|>[\s\S]*<\/option>)/ig,"$1").replace(/[\s\S]*value\s*\=\s*[\'\"]([\s\S]*)[\'\"]/,"$1")),r.text=C.replace(/<option\s*[\s\S]*[\'\"]?\s*?[\/>|\>]([\s\S]*)<\/option>/ig,
  "$1 "),g.options.add(r)}else"input"!==g.nodeName.toLowerCase()&&void 0!==l&&(g.innerHTML=l||"");v=!0}else/^text$/i.test(m)?("input"!==g.nodeName.toLowerCase()&&(g.innerHTML="",void 0!==l&&g.appendChild(E.createTextNode(l))),v=!0):/^type$/i.test(m)&&b&&this.added&&(v=!0);v&&(p[m]=l,delete d[m],v=!1)}for(m in d)g.setAttribute(m,d[m]);for(m in p)this[m]=d[m]=p[m],delete p[m];return this},val:function(a){var b=this.element,c=void 0===a;return"input"===this.nodeName&&"checkbox"===b.getAttribute("type")?
  c?this.checked()?1:0:this.checked(a):c?b.value:(b.value=a,this)},checked:function(a){var b=this.element;return void 0===a?b.checked:(a?b.setAttribute("checked","checked"):b.removeAttribute("checked"),this)},css:function(a,b){var c=this.element.style,d;if("object"===typeof a)for(d in a)c[d]=a[d];else d&&void 0!==b&&(c[d]=b);return this},translate:function(a,b){var c=this.element;void 0!==a&&(c.style.left=a+"px");void 0!==b&&(c.style.top=b+"px");return this},add:function(a,b){var c=this.element,d=a.element;
  b?d.insertBefore(c,d.firstChild):d.appendChild(c);this.added=!0;return this},hide:function(){this.element.style.display="none";return this},show:function(){this.element.style.display="";return this},focus:function(){"function"===typeof this.element.focus?this.element.focus():d.dem.fire(this.element,"focus")},destroy:function(){var a=this.element||{};a.onclick=a.onmouseout=a.onmouseover=a.onmousemove=a.onblur=a.onfocus=null;O||(O=B("div"));a&&O.appendChild(a);O.innerHTML="";delete this.element;return null},
  on:K?function(a,b){this.element["on"+a]=function(){var a=q.event;a.target=a.srcElement;b(a)};return this}:function(a,b){var c=b;I&&"click"===a&&(a="touchstart",c=function(a){a.preventDefault();b()});this.element["on"+a]=c;return this},bind:function(a,b,c){z.listen(this.element,a,b,c);return this},unbind:function(a,b){z.unlisten(this.element,a,b);return this},trigger:function(a,b){z.fire(this.element,a,b);return this},fadeIn:function(a,b){var c="fast"===a?400:1E3;this.show();this.attr({opacity:0});
  d.danimate.animate(this.element,{opacity:1},c,"linear",b)}};g.prototype.constructor=g;m.fn.html=function(a,b,c,d){var m={},l;b&&"type"in b&&(m.type=b.type,delete b.type);a=(new g(a,d,m)).css(c).attr(b);for(l in m)b[l]=m[l];return a}}]);
  FusionCharts.register("module",["private","modules.renderer.js-raphaeltooltip",function(){var d=this,m=d.window,z=m.document,q=z.body||z.getElementsByTagName("body")[0],E=d.hcLib,b=E.Raphael,K=b.eve,I=E.createElement,c=E.addEvent,s=E.removeEvent,a=E.getPosition,v=E.hasTouch,O=E.getTouchEvent,B=m.Math,g=B.ceil,f=B.floor,n={},p=m.screen.availHeight,F=m.screen.availWidth,Q={"":1,moz:1,webkit:1,o:1,ms:1},l={borderRadius:"borderRadius",boxShadow:"boxShadow"},C=/\-([a-z])/ig,A=function(a,b){return b.toUpperCase()},
  W=function(a){var c=r.forbiddenStyle,d,g,f;for(d in a)g=C.test(d)?d.replace(C,A):d,void 0!==a[d]&&!c[g]&&(this[g]=a[d]),b.vml&&/color/ig.test(g)&&(this[g]=b.getRGB(this[g]).toString());for(d in l)if(this[d])for(f in Q)this[f+d]=this[d]},r=E.toolTip={elementId:"fusioncharts-tooltip-element",element:null,lastTarget:null,currentTarget:null,currentPaper:null,pointeroffset:12,prevented:!1,defaultStyle:E.extend2(W.prototype,{backgroundColor:"#ffffee",borderColor:"#000000",borderWidth:"1px",color:"#000000",
  fontSize:"10px",lineHeight:"12px",padding:"3px",borderStyle:"solid"}),defaultContainerStyle:{position:"absolute",textAlign:"left",margin:"0",zIndex:"99999",pointer:"default",display:"block"},forbiddenStyle:{}},oa=function(a){!0===r._oobready?r._oobready=!1:(s(q,"touchstart",oa),!r.hidden&&r.currentTarget&&(a=a.srcElement||a.target||n,a.raphael&&r.currentTarget.paper.getById(a.raphaelid)===r.currentTarget||r.hide()))};b.svg&&(r.defaultContainerStyle.pointerEvents="none",r.defaultStyle.borderRadius=
  "0",r.defaultStyle.boxShadow="none");b.vml&&(r.forbiddenStyle.borderRadius=!0,r.forbiddenStyle.boxShadow=!0,r.defaultStyle.filter="");r.setup=function(){var a=r.container,c=r.textElement,g=r.style,f=r.defaultContainerStyle,l=r.forbiddenStyle,n;a||(a=r.element=I("span"),(z.body||z.getElementsByTagName("body")[0]).appendChild(a),a.setAttribute("id",r.elementId),g=r.containerStyle=a.style,c=r.textElement=I("span"),a.appendChild(c),r.style=b.vml?c.runtimeStyle:c.style,r.style.overflow="hidden",r.style.display=
  "block",r.hidden=!1,r.hide());for(n in f)!l[n]&&(g[n]=f[n]);r.scatted=!0;K.on("raphael.drag.start.*",function(){r.scatted&&(r.waitingScat=!0)});K.on("raphael.drag.move.*",function(){r.waitingScat&&(r.block(),r.waitingScat=!1)});K.on("raphael.drag.end.*",function(){r.waitingScat=!1;r.scatted&&r.unblock(!0)});K.on("raphael.remove",function(){if(r.currentPaper===this||r.currentTarget&&r.currentTarget.paper===this)r.hide(),r.currentTarget=r.currentPaper=null});d.addEventListener("LinkedChartInvoked",
  function(a){r.currentPaper===a.sender.jsVars.hcObj.paper&&r.hide()});d.addEventListener("realTimeUpdateComplete",function(a){r.currentPaper===a.sender.jsVars.hcObj.paper&&r.hide()})};r.restyle=function(a){var b=r.style,c;for(c in a)b[c]=a[c]};r.onelement=function(b){if(!b.__tipProcessed){var d=this.paper,g="group"===this.type?d&&d._elementFromEvent(b):this,f=d.__tipStyle;g&&f&&g.__tipNeeded&&((b.originalEvent||b).FusionChartsPreventEvent&&r.preventTooltip(),r.hiding&&(r.hiding=clearTimeout(r.hiding)),
  r.currentPaper!==d&&(d.__tipCp=d.canvas&&a(d.canvas.parentNode,!0)||{},r.restyle(d.__tipStyle),r.currentPaper=d),r.lastTarget=r.currentTarget,r.currentTarget=g,r.scatted=g.__tipScatted,r.onredraw.call(this,b),b.__tipProcessed=!0,v&&(r._oobready=!0,c(q||(q=z.body||z.getElementsByTagName("body")[0]),"touchstart",oa)))}};r.onredraw=function(a){a.__tipProcessed||(a.__tipProcessed=!0,(this.paper&&this.paper._elementFromEvent(a))===r.currentTarget&&(a=O(a),r.x=f(a.pageX||a.clientX+z.body.scrollLeft+z.documentElement.scrollLeft||
  0),r.y=f(a.pageY||a.clientY+z.body.scrollTop+z.documentElement.scrollTop||0),r.redraw()))};r.onhide=function(a){a.__tipProcessed||(a.__tipProcessed=!0,(this.paper&&this.paper._elementFromEvent(a))===r.currentTarget&&(r.hiding=setTimeout(r.hide,200)))};r.redraw=function(){if(!r.prevented&&!r.blocked&&r.currentTarget&&r.currentTarget.__tipNeeded){var a=r.currentTarget,b=a.paper,c=r.textElement,d=r.containerStyle,f=r.style,l=a.__tipText,a=r.pointeroffset,n=b.__tipCp,m=z.documentElement||z.body,A=m.scrollLeft,
  m=m.scrollTop,H=r.x,s=r.y,v,k=b.width,C=b.height,b=b.__tipConstrain;if(100>k||100>C)b=!1;r.hidden&&(r.containerStyle.top="-999em",r.show());l!==r.text&&(r.text=l,d.width=d.height="",c.innerHTML=l,f.whiteSpace="nowrap",l=g(f.pixelWidth||c.offsetWidth||0),v=g(f.pixelHeight||c.offsetHeight||0),(r.textWidthOverflow=H+l>n.left+k)?(d.width=(k>l?l+2*a:k-2*a||0)+"px",f.whiteSpace="normal"):d.width="",(r.textHeightOverflow=v>C)?(d.height=(C||0)-2*a+"px",f.whiteSpace="normal"):d.height="");l=g(f.pixelWidth||
  c.offsetWidth||0);v=g(f.pixelHeight||c.offsetHeight||0);b?(r.textWidthOverflow?H=(H-l<n.left?n.left:H-l)-A:H+a+l>n.left-A+k-a&&(H=H-l-a),r.textHeightOverflow?s=n.top-m:s+a+v>n.top-m+C-a&&(s=s-v-1.5*a)):(A+F<H+a+l&&(H=H-l-a),m+p<s+a+v&&(s=s-v-1.5*a));d.left=(H+a||0)+"px";d.top=(s+a||0)+"px";r.hidden&&r.show()}};r.hide=function(){r.hiding&&(r.hiding=clearTimeout(r.hiding));r.containerStyle.display="none";r.hidden=!0;r.prevented=!1};r.show=function(){r.blocked||(r.hiding&&(r.hiding=clearTimeout(r.hiding)),
  r.containerStyle.display="inline",r.hidden=!1)};r.preventTooltip=function(){r.prevented=!0};r.block=function(){r.blocked=!0;r.containerStyle.display="none"};r.unblock=function(a){r.blocked=!1;a&&(r.containerStyle.display=r.hidden&&"none"||"inline")};b.fn.tooltip=function(c,d,g){d&&(d=.4*(void 0===d.opacity?1:d.opacity),b.svg?c.boxShadow="1px 1px 3px rgba(64,64,64,"+d+")":c.filter='progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=135, Color="#404040", shadowOpacity="'+d/2+'")');this.__tipStyle=
  new W(c);this.__tipCp=this.canvas&&a(this.canvas.parentNode,!0)||{};this.__tipConstrain=Boolean(g);return this};b.el.trackTooltip=function(a){var b=!!this.__tiptracking;if(void 0===a||(a=!!a)===b)return this;a?v?this.touchstart(r.onelement):(this.mouseover(r.onelement),this.mousemove(r.onredraw),this.mouseout(r.onhide)):v?this.untouchstart(r.onelement):(this.unmouseover(r.onelement),this.unmousemove(r.onredraw),this.unmouseout(r.onhide));this.__tiptracking=a;return this};b.el.tooltip=function(a,c,
  d,g,f){r.setup();b.el.tooltip=function(a,b,c,d,g){b=!1===a||void 0===a||""===a;this.__tipScatted=void 0===d?this.__tipScatted:!d;void 0===this.__tipScatted&&(this.__tipScatted=!0);null!==g&&(this.__tip_blocked=g);b^!this.__tipText&&(this.__tipNeeded=!b);this.__tipText=a;if(r.currentTarget===this&&a!==r.text&&!r.hidden)r[b?"hide":"redraw"]();return this};return b.el.tooltip.call(this,a,c,d,g,f)};d.core._setTooltipZIndex=function(a){a=parseInt(a,10);r&&!isNaN(a)&&(r.defaultContainerStyle.zIndex=a,r.containerStyle&&
  (r.containerStyle.zIndex=a))}}]);
  FusionCharts.register("module",["private","modules.renderer.js-smartlabel",function(){var d=this.hcLib,m=d.isIE,z=d.hasSVG,q=Math.max,E=this.window,b=/ HtmlUnit/.test(E.navigator.userAgent),K=E.document,I=/ AppleWebKit\//.test(E.navigator.userAgent),c=!!K.createElement("canvas").getContext,s=!(!c||!K.createElement("canvas").getContext("2d").measureText),E=function(){function a(a,b,c){if(!a||!a.length)return 0;var d=c.getWidthFunction(),g=0,f=0,f=d(a),l=f/a.length;c=b;g=Math.ceil(b/l);if(f<b)return a.length-
  1;g>a.length&&(c=b-f,g=a.length);for(;0<c;)if(c=b-d(a.substr(0,g)),f=Math.floor(c/l))g+=f;else return g;for(;0>c;)if(c=b-d(a.substr(0,g)),f=Math.floor(c/l))g+=f;else break;return g}function v(a,b){b=5<b?b:5;this.maxContainers=20>b?b:20;this.last=this.first=null;this.containers={};this.length=0;this.rootNode=a;if(W){var c=K.createElementNS("http://www.w3.org/2000/svg","svg");c.setAttributeNS("http://www.w3.org/2000/svg","xlink","http://www.w3.org/1999/xlink");c.setAttributeNS("http://www.w3.org/2000/svg",
  "height","0");c.setAttributeNS("http://www.w3.org/2000/svg","width","0");this.svgRoot=c;this.rootNode.appendChild(c)}}function E(a,c,d){if("undefined"!==typeof a&&"object"!==typeof a){this.id=a;var g;"string"===typeof c&&(c=K.getElementById(c));a:{if(c&&(c.offsetWidth||c.offsetHeight)){if(c.appendChild){c.appendChild(c=K.createElement("div"));c.className="fusioncharts-smartlabel-container";c.setAttribute("aria-hidden","true");c.setAttribute("role","presentation");a=c;break a}}else if((a=K.getElementsByTagName("body")[0])&&
  a.appendChild){c=K.createElement("div");c.className="fusioncharts-smartlabel-container";c.setAttribute("aria-hidden","true");c.setAttribute("role","presentation");a.appendChild(c);a=c;break a}a=void 0}a=this.parentContainer=a;a.innerHTML="WgI";if(b||!a.offsetHeight&&!a.offsetWidth)W=!0;a.innerHTML="";for(g in f)a.style[g]=f[g];this.containerManager=new v(a,10);this.showNoEllipses=!d;this.init=!0;this.style={};this.setStyle()}}var B=d.supportedStyle,g={fontWeight:1,"font-weight":1,fontStyle:1,"font-style":1,
  fontSize:1,"font-size":1,fontFamily:1,"font-family":1},f={position:"absolute",top:"-9999em",left:"-9999em",whiteSpace:"nowrap",padding:"0px",width:"1px",height:"1px",overflow:"hidden"},n=I?0:4.5,p=0,F=/\b_SmartLabel\b/,Q=/\b_SmartLabelBR\b/,l=/(<[^<\>]+?\>)|(&(?:[a-z]+|#[0-9]+);|.)/ig,C=RegExp("\\<span[^\\>]+?_SmartLabel[^\\>]{0,}\\>(.*?)\\<\\/span\\>","ig"),A=/<[^>][^<]*[^>]+>/i,W=!1,r=0,oa=0,ga,ba,V;K.getElementsByClassName?(ga="getElementsByClassName",ba="_SmartLabel",V=!0):(ga="getElementsByTagName",
  ba="span",V=!1);v.prototype={get:function(a){var b=this.containers,c=this.length,d=this.maxContainers,g,f="",l="",l=this.getCanvasFont(a);for(g in B)void 0!==a[g]&&(f+=B[g]+":"+a[g]+";");if(!f)return!1;if(b[f])f=b[f],this.first!==f&&(f.prev&&(f.prev.next=f.next),f.next&&(f.next.prev=f.prev),f.next=this.first,f.next.prev=f,this.last===f&&(this.last=f.prev),f.prev=null,this.first=f);else{if(c>=d)for(a=c-d+1;a--;)this.removeContainer(this.last);f=this.addContainer(f,l)}return f},getCanvasFont:function(a){var b,
  d=[];if(!c||!s)return!1;for(b in g)void 0!==a[b]&&d.push(a[b]);return d.join(" ")},setMax:function(a){var b=this.length;a=5<a?a:5;a=20>a?a:20;if(a<b){for(b-=a;b--;)this.removeContainer(this.last);this.length=a}this.maxContainers=a},addContainer:function(a,b){var c,d;this.containers[a]=d={next:null,prev:null,node:null,ellipsesWidth:0,lineHeight:0,dotWidth:0,avgCharWidth:4,keyStr:a,canvasStr:b,charCache:{}};d.next=this.first;d.next&&(d.next.prev=d);this.first=d;this.last||(this.last=d);this.length+=
  1;c=d.node=K.createElement("div");this.rootNode.appendChild(c);m&&!z?c.style.setAttribute("cssText",a):c.setAttribute("style",a);c.setAttribute("aria-hidden","true");c.setAttribute("role","presentation");c.style.display="inline-block";c.innerHTML="WgI";d.lineHeight=c.offsetHeight;d.avgCharWidth=c.offsetWidth/3;W?(c=d.svgText=K.createElementNS("http://www.w3.org/2000/svg","text"),c.setAttribute("style",a),this.svgRoot.appendChild(c),c.textContent="WgI",d.lineHeight=c.getBBox().height,d.avgCharWidth=
  (c.getBBox().width-n)/3,c.textContent="...",d.ellipsesWidth=c.getBBox().width-n,c.textContent=".",d.dotWidth=c.getBBox().width-n):b?(c=d.canvas=K.createElement("canvas"),c.style.height=c.style.width="0px",this.rootNode.appendChild(c),d.context=c=c.getContext("2d"),c.font=b,d.ellipsesWidth=c.measureText("...").width,d.dotWidth=c.measureText(".").width):(c.innerHTML="...",d.ellipsesWidth=c.offsetWidth,c.innerHTML=".",d.dotWidth=c.offsetWidth,c.innerHTML="");return d},removeContainer:function(a){var b=
  a.keyStr;b&&this.length&&a&&(--this.length,a.prev&&(a.prev.next=a.next),a.next&&(a.next.prev=a.prev),this.first===a&&(this.first=a.next),this.last===a&&(this.last=a.prev),a.node.parentNode.removeChild(a.node),a.canvas&&a.canvas.parentNode.removeChild(a.canvas),delete this.containers[b])},dispose:function(){var a,b=this.containers;this.maxContainers=null;for(a in b)this.removeContainer(b[a]);this.rootNode.parentNode.removeChild(this.rootNode);this.last=this.first=this.rootNode=null}};v.prototype.constructor=
  v;E.prototype={dispose:function(){this.init&&(this.containerManager.dispose(),delete this.container,delete this.context,delete this.cache,delete this.containerManager,delete this.containerObj,delete this.id,delete this.style,delete this.parentContainer,delete this.showNoEllipses)},useEllipsesOnOverflow:function(a){this.init&&(this.showNoEllipses=!a)},getWidthFunction:function(){var a=this.context,b=this.container,c=this.containerObj.svgText;return c?function(a){var b;c.textContent=a;a=c.getBBox();
  b=a.width-n;1>b&&(b=a.width);return b}:a?function(b){return a.measureText(b).width}:function(a){b.innerHTML=a;return b.offsetWidth}},getSmartText:function(b,c,d,f){if(!this.init)return!1;if(void 0===b||null===b)b="";var g={text:b,maxWidth:c,maxHeight:d,width:null,height:null,oriTextWidth:null,oriTextHeight:null,oriText:b,isTruncated:!1},n=!1,m,s,v=0,k,L,B,z=-1,E=n=-1;s=this.container;var I=this.context,O=0;B=0;var la,ya,Ia;Ia=[];var ma=0,Ma=this.showNoEllipses?"":"...";L=this.lineHeight;var pa,O=
  [],z=m=-1;pa=function(a){a=a.replace(/^\s\s*/,"");for(var b=/\s/,c=a.length;b.test(a.charAt(--c)););return a.slice(0,c+1)};n=-1;ya=this.getWidthFunction();if(s){if(!W){s.innerHTML=b;g.oriTextWidth=n=s.offsetWidth;g.oriTextHeight=B=s.offsetHeight;if(B<=d&&n<=c)return g.width=g.oriTextWidth=n,g.height=g.oriTextHeight=B,g;if(L>d)return g.text="",g.width=g.oriTextWidth=0,g.height=g.oriTextHeight=0,g}b=pa(b).replace(/(\s+)/g," ");n=A.test(b);L=this.showNoEllipses?c:c-p;if(n){v=b.replace(l,"$2");b=b.replace(l,
  '$1<span class="_SmartLabel">$2</span>');b=b.replace(/(<br\s*\/*\>)/g,'<span class="_SmartLabel _SmartLabelBR">$1</span>');s.innerHTML=b;ma=s[ga](ba);I=0;for(ya=ma.length;I<ya;I+=1)if(b=ma[I],V||F.test(b.className))pa=b.innerHTML,""!==pa&&(" "===pa?z=O.length:"-"===pa&&(m=O.length),O.push({spaceIdx:z,dashIdx:m,elem:b}),Ia.push(pa));ma=0;m=O.length;r=O[0].elem.offsetWidth;if(r>c)return g.text="",g.width=g.oriTextWidth=g.height=g.oriTextHeight=0,g;r>L&&!this.showNoEllipses&&(L=c-2*oa,L>r?Ma="..":(L=
  c-oa,L>r?Ma=".":(L=0,Ma="")));Ia=O[0].elem.offsetLeft;I=O[0].elem.offsetTop;if(f)for(;ma<m;ma+=1)b=O[ma].elem,ya=b.offsetLeft-Ia+b.offsetWidth,ya>L&&(la||(la=ma),s.offsetWidth>c&&(k=ma,ma=m));else for(;ma<m;ma+=1)b=O[ma].elem,pa=b.offsetHeight+(b.offsetTop-I),ya=b.offsetLeft-Ia+b.offsetWidth,f=null,ya>L?(la||(la=ma),ya>c&&(n=O[ma].spaceIdx,z=O[ma].dashIdx,n>E?(O[n].elem.innerHTML="<br/>",E=n):z>E?(O[z].elem.innerHTML=z===ma?"<br/>-":"-<br/>",E=z):b.parentNode.insertBefore(f=K.createElement("br"),
  b),b.offsetHeight+b.offsetTop>d?(f?f.parentNode.removeChild(f):E===z?O[z].elem.innerHTML="-":O[n].elem.innerHTML=" ",k=ma,ma=m):la=null)):pa>d&&(k=ma,ma=m);if(k<m){g.isTruncated=!0;la=la?la:k;for(ma=m-1;ma>=la;--ma)b=O[ma].elem,b.parentNode.removeChild(b);for(;0<=ma;--ma)b=O[ma].elem,Q.test(b.className)?b.parentNode.removeChild(b):ma=0}g.text=s.innerHTML.replace(C,"$1");g.isTruncated&&(g.text+=Ma,g.tooltext=v)}else{Ia=b.split("");m=Ia.length;s="";k=[];la=Ia[0];this.cache[la]?r=this.cache[la].width:
  (r=ya(la),this.cache[la]={width:r});if(L>r)k=b.substr(0,a(b,L,this)).split(""),ma=k.length;else{if(r>c)return g.text="",g.width=g.oriTextWidth=g.height=g.oriTextHeight=0,g;Ma&&(L=c-2*oa,L>r?Ma="..":(L=c-oa,L>r?Ma=".":(L=0,Ma="")))}O=ya(k.join(""));B=this.lineHeight;if(f){for(;ma<m;ma+=1)if(la=k[ma]=Ia[ma],this.cache[la]?r=this.cache[la].width:(r=ya(la),this.cache[la]={width:r}),O+=r,O>L&&(s||(s=k.slice(0,-1).join("")),O>c))return g.text=pa(s)+Ma,g.tooltext=g.oriText,g.width=ya(g.text),g.height=this.lineHeight,
  g;g.text=k.join("");g.width=O;g.height=this.lineHeight}else{for(;ma<m;ma+=1)if(la=k[ma]=Ia[ma]," "!==la||I||(la="&nbsp;"),this.cache[la]?r=this.cache[la].width:(r=ya(la),this.cache[la]={width:r}),O+=r,O>L&&(s||(s=k.slice(0,-1).join("")),O>c)){n=b.substr(0,k.length).lastIndexOf(" ");z=b.substr(0,k.length).lastIndexOf("-");n>E?(O=ya(k.slice(E+1,n).join("")),k.splice(n,1,"<br/>"),E=n,f=n+1):z>E?(z===k.length-1?(O=ya(k.slice(E+1,n).join("")),k.splice(z,1,"<br/>-")):(O=ya(k.slice(E+1,n).join("")),k.splice(z,
  1,"-<br/>")),E=z,f=z+1):(k.splice(k.length-1,1,"<br/>"+Ia[ma]),n=k.length-2,O=ya(k.slice(E+1,n+1).join("")),E=n,f=ma);B+=this.lineHeight;if(B>d)return g.text=pa(s)+Ma,g.tooltext=g.oriText,g.width=c,g.height=B-this.lineHeight,g;v=q(v,O);s=null;la=a(b.substr(f),L,this);O=ya(b.substr(f,la||1));k.length<f+la&&(k=k.concat(b.substr(k.length,f+la-k.length).split("")),ma=k.length-1)}v=q(v,O);g.text=k.join("");g.width=v;g.height=B}return g}g.height=s.offsetHeight;g.width=s.offsetWidth}else g.error=Error("Body Tag Missing!");
  return g},setStyle:function(a){if(!this.init)return!1;if(a!==this.style||this.styleNotSet){a||(a=this.style);var b=a,c=b.fontSize=b.fontSize||"12px";b.lineHeight=b.lineHeight||b["line-height"]||1.2*parseInt(c,10)+"px";this.style=a;(this.containerObj=a=this.containerManager.get(a))?(this.container=a.node,this.context=a.context,this.cache=a.charCache,this.lineHeight=a.lineHeight,p=a.ellipsesWidth,oa=a.dotWidth,this.styleNotSet=!1):this.styleNotSet=!0}},getTextSize:function(a,b,c){if(!this.init)return!1;
  var d={text:a,width:null,height:null,oriTextWidth:null,oriTextHeight:null,isTruncated:!1},g=this.container;g&&(g.innerHTML=a,d.oriTextWidth=g.offsetWidth,d.oriTextHeight=g.offsetHeight,d.width=Math.min(d.oriTextWidth,b),d.height=Math.min(d.oriTextHeight,c),d.width<d.oriTextWidth||d.height<d.oriTextHeight)&&(d.isTruncated=!0);return d},getOriSize:function(a){if(!this.init)return!1;var b={text:a,width:null,height:null},c=this.container,d=this.getWidthFunction(),g=0;if(W){a=a.split(/(<br\s*\/*\>)/g);
  c=a.length;for(b.height=this.lineHeight*c;c--;)g=q(g,d(a[c]));b.width=g}else c&&(c.innerHTML=a,b.width=c.offsetWidth,b.height=c.offsetHeight);return b}};return E.prototype.constructor=E}();d.SmartLabelManager=E}]);
  FusionCharts.register("module",["private","modules.renderer.js-numberformatter",function(){var d=this,m=d.hcLib,z=m.pluckNumber,q=m.extend2,E=m.getValidValue,b=m.pluck,K=m.getFirstValue,I=Math.abs,c=Math.pow,s=Math.round,a=function(a){return a&&a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},v={},O=function(a){var b=[],c;for(c in a)b.push(c+"_"+a[c]);b.sort();return b.join(",")},B=function(a){var b={},c;for(c in a)b[c.toLowerCase()]=a[c];return b};m.NumberFormatter=function(){function d(a,b,g){var f;
  if(0>=b)return s(a)+"";if(isNaN(b))return a+="",12<a.length&&-1!=a.indexOf(".")&&(b=12-a.split(".")[0].length,f=c(10,b),a=s(a*f)/f+""),a;f=c(10,b);a=s(a*f)/f+"";if(1==g)for(-1==a.indexOf(".")&&(a+=".0"),g=a.split("."),b-=g[1].length,g=1;g<=b;g++)a+="0";return a}function f(a,b,c,d,g){var f=Number(a),n="",m=!1,p="",s="",v=p=0;if(isNaN(f))return"";if(1E15<f)return f.toExponential(g?1:14);p=0;v=a.length;-1!=a.indexOf(".")&&(n=a.substring(a.indexOf(".")+1,a.length),v=a.indexOf("."));0>f&&(m=!0,p=1);p=
  a.substring(p,v);a=p.length;g=d.length-1;f=d[g];if(a<f)s=p;else for(;a>=f;)s=(a-f?c:"")+p.substr(a-f,f)+s,a-=f,f=0>=--g?d[0]:d[g],a<f&&(s=p.substring(a,0)+s);""!=n&&(s=s+b+n);!0===m&&(s="-"+s);return s}var n,m={formatnumber:"1",formatnumberscale:"1",defaultnumberscale:"",numberscaleunit:["K","M"],numberscalevalue:[1E3,1E3],numberprefix:"",numbersuffix:"",decimals:"",forcedecimals:"0",yaxisvaluedecimals:"2",decimalseparator:".",thousandseparator:",",thousandseparatorposition:[3],indecimalseparator:"",
  inthousandseparator:"",sformatnumber:"1",sformatnumberscale:"0",sdefaultnumberscale:"",snumberscaleunit:["K","M"],snumberscalevalue:[1E3,1E3],snumberprefix:"",snumbersuffix:"",sdecimals:"2",sforcedecimals:"0",syaxisvaluedecimals:"2",xFormatNumber:"0",xFormatNumberScale:"0",xDefaultNumberScale:"",xNumberScaleUnit:["K","M"],xNumberScaleValue:[1E3,1E3],xNumberPrefix:"",xNumberSuffix:""},v={mscombidy2d:{formatnumberscale:"1"}},B=function(c,d,g){var f,n,s,B,Q,I,O,za,Aa,Z=d.name,U=q({},m),na,H,T,fa,k,L,
  $,aa,sa,Y,Ea;(s=v[Z])&&(U=q(U,s));this.csConf=U;this.chartAPI=d;E(c.numberscaleunit)&&(f=c.numberscaleunit.split(","));if(n=E(c.snumberscaleunit,c.numberscaleunit))n=n.split(",");if(s=E(c.xnumberscaleunit,c.numberscaleunit))s=s.split(",");if(B=E(c.ticknumberscaleunit,c.numberscaleunit))B=B.split(",");if(Q=E(c.ynumberscaleunit,c.numberscaleunit))Q=Q.split(",");E(c.numberscalevalue)&&(I=c.numberscalevalue.split(","));if(H=E(c.snumberscalevalue,c.numberscalevalue))H=H.split(",");if(O=E(c.xnumberscalevalue,
  c.numberscalevalue))O=O.split(",");if(za=E(c.ticknumberscalevalue,c.numberscalevalue))za=za.split(",");if(Aa=E(c.ynumberscalevalue,c.numberscalevalue))Aa=Aa.split(",");if(E(c.thousandseparatorposition))for(na=c.thousandseparatorposition.split(","),T=na.length,k=m.thousandseparatorposition[0];T--;)fa=parseInt(na[T],10),0>=fa&&(fa=k),k=na[T]=fa;d||(d={});T=z(c.scalerecursively,0);fa=z(c.sscalerecursively,T);k=z(c.xscalerecursively,T);L=z(c.maxscalerecursion,-1);$=z(c.smaxscalerecursion,L);aa=z(c.xmaxscalerecursion,
  L);sa=E(c.scaleseparator," ");Y=E(c.sscaleseparator,sa);Ea=E(c.xscaleseparator,sa);L||(L=-1);this.baseConf=f={cacheStore:[],formatnumber:b(c.formatnumber,d.formatnumber,U.formatnumber),formatnumberscale:b(c.formatnumberscale,d.formatnumberscale,U.formatnumberscale),defaultnumberscale:K(c.defaultnumberscale,d.defaultnumberscale,U.defaultnumberscale),numberscaleunit:b(f,d.numberscaleunit,U.numberscaleunit).concat(),numberscalevalue:b(I,d.numberscalevalue,U.numberscalevalue).concat(),numberprefix:K(c.numberprefix,
  d.numberprefix,U.numberprefix),numbersuffix:K(c.numbersuffix,d.numbersuffix,U.numbersuffix),decimalprecision:parseInt("auto"===c.decimals?U.decimalprecision:b(c.decimals,c.decimalprecision,d.decimals,U.decimals,d.decimalprecision,U.decimalprecision),10),forcedecimals:b(c.forcedecimals,d.forcedecimals,U.forcedecimals),decimalseparator:b(c.decimalseparator,d.decimalseparator,U.decimalseparator),thousandseparator:b(c.thousandseparator,d.thousandseparator,U.thousandseparator),thousandseparatorposition:b(na,
  d.thousandseparatorposition,U.thousandseparatorposition),indecimalseparator:K(c.indecimalseparator,d.indecimalseparator,U.indecimalseparator),inthousandseparator:K(c.inthousandseparator,d.inthousandseparator,U.inthousandseparator),scalerecursively:T,maxscalerecursion:L,scaleseparator:sa};E(f.inthousandseparator)&&(this.baseConf._REGinthousandseparator=new RegExp(a(f.inthousandseparator),"g"));E(f.indecimalseparator)&&(this.baseConf._REGindecimalseparator=new RegExp(a(f.indecimalseparator)));this.Y=
  [];g||(g={cacheStore:[],formatnumber:f.formatnumber,formatnumberscale:f.formatnumberscale,defaultnumberscale:f.defaultnumberscale,numberscaleunit:f.numberscaleunit.concat(),numberscalevalue:f.numberscalevalue.concat(),numberprefix:f.numberprefix,numbersuffix:f.numbersuffix,decimalprecision:f.decimalprecision,forcedecimals:f.forcedecimals,decimalseparator:f.decimalseparator,thousandseparator:f.thousandseparator,thousandseparatorposition:f.thousandseparatorposition,indecimalseparator:f.indecimalseparator,
  inthousandseparator:f.inthousandseparator,scalerecursively:T,maxscalerecursion:L,scaleseparator:sa},d.useScaleRecursively&&(g.numberscalevalue&&g.numberscalevalue.length)==(g.numberscaleunit&&g.numberscaleunit.length)||(g.scalerecursively=T=0),I={cacheStore:[],formatnumber:g.formatnumber,formatnumberscale:g.formatnumberscale,defaultnumberscale:g.defaultnumberscale,numberscaleunit:g.numberscaleunit.concat(),numberscalevalue:g.numberscalevalue.concat(),numberprefix:g.numberprefix,numbersuffix:g.numbersuffix,
  decimalprecision:parseInt(b(c.yaxisvaluedecimals,g.decimalprecision,2),10),forcedecimals:b(c.forceyaxisvaluedecimals,g.forcedecimals),decimalseparator:g.decimalseparator,thousandseparator:g.thousandseparator,thousandseparatorposition:g.thousandseparatorposition.concat(),indecimalseparator:g.indecimalseparator,inthousandseparator:g.inthousandseparator,scalerecursively:T,maxscalerecursion:L,scaleseparator:sa},H={cacheStore:[],formatnumber:b(c.sformatnumber,d.sformatnumber,m.sformatnumber),formatnumberscale:b(c.sformatnumberscale,
  d.sformatnumberscale,m.sformatnumberscale),defaultnumberscale:K(c.sdefaultnumberscale,d.sdefaultnumberscale,g.defaultnumberscale),numberscaleunit:b(n,d.snumberscaleunit,m.snumberscaleunit).concat(),numberscalevalue:b(H,d.snumberscalevalue,m.snumberscalevalue).concat(),numberprefix:K(c.snumberprefix,d.snumberprefix,m.snumberprefix),numbersuffix:K(c.snumbersuffix,d.snumbersuffix,m.snumbersuffix),decimalprecision:parseInt(b(c.syaxisvaluedecimals,c.sdecimals,c.decimals,d.sdecimals,m.sdecimals),10),forcedecimals:b(c.forcesyaxisvaluedecimals,
  c.sforcedecimals,c.forcedecimals,d.sforcedecimals,m.sforcedecimals),decimalseparator:b(c.decimalseparator,d.decimalseparator,m.decimalseparator),thousandseparator:b(c.thousandseparator,d.thousandseparator,m.thousandseparator),thousandseparatorposition:g.thousandseparatorposition.concat(),indecimalseparator:b(c.indecimalseparator,d.indecimalseparator,m.indecimalseparator),inthousandseparator:b(c.inthousandseparator,d.inthousandseparator,m.inthousandseparator),scalerecursively:fa,maxscalerecursion:$,
  scaleseparator:Y},n=q({},H),n.decimalprecision=parseInt(b(c.sdecimals,c.decimals,c.syaxisvaluedecimals,d.sdecimals,m.sdecimals),10),n.forcedecimals=b(c.sforcedecimals,c.forcedecimals,c.forcesyaxisvaluedecimals,d.sforcedecimals,m.sforcedecimals),n.cacheStore=[],d.useScaleRecursively&&(H.numberscalevalue&&H.numberscalevalue.length)==(H.numberscaleunit&&H.numberscaleunit.length)||(H.scalerecursively=fa=0),/^(bubble|scatter|selectscatter)$/.test(Z)&&(I.formatnumber=b(c.yformatnumber,I.formatnumber),I.formatnumberscale=
  b(c.yformatnumberscale,I.formatnumberscale),I.defaultnumberscale=K(c.ydefaultnumberscale,I.defaultnumberscale),I.numberscaleunit=b(Q,I.numberscaleunit),I.numberscalevalue=b(Aa,I.numberscalevalue),I.numberprefix=b(c.ynumberprefix,I.numberprefix),I.numbersuffix=b(c.ynumbersuffix,I.numbersuffix),g.formatnumber=b(c.yformatnumber,g.formatnumber),g.formatnumberscale=b(c.yformatnumberscale,g.formatnumberscale),g.defaultnumberscale=K(c.ydefaultnumberscale,g.defaultnumberscale),g.numberscaleunit=b(c.ynumberscaleunit,
  g.numberscaleunit.concat()),g.numberscalevalue=b(c.ynumberscalevalue,g.numberscalevalue.concat()),g.numberprefix=b(c.ynumberprefix,g.numberprefix),g.numbersuffix=b(c.ynumbersuffix,g.numbersuffix)),/^(mscombidy2d|mscombidy3d)$/.test(Z)&&(H.formatnumberscale=z(c.sformatnumberscale)),/^(pie2d|pie3d|doughnut2d|doughnut3d|marimekko|pareto2d|pareto3d)$/.test(Z)&&(g.decimalprecision=b(c.decimals,"2")),T&&(g.numberscalevalue.push(1),g.numberscaleunit.unshift(g.defaultnumberscale),I.numberscalevalue.push(1),
  I.numberscaleunit.unshift(I.defaultnumberscale)),fa&&(H.numberscalevalue.push(1),H.numberscaleunit.unshift(H.defaultnumberscale),n.numberscalevalue.push(1),n.numberscaleunit.unshift(n.defaultnumberscale)),this.Y[0]={yAxisLabelConf:I,dataLabelConf:g},this.Y[1]={yAxisLabelConf:H,dataLabelConf:n},this.paramLabels=g,this.param1=I,this.param2=H,this.paramLabels2=n);this.paramX={cacheStore:[],formatnumber:b(c.xformatnumber,f.formatnumber),formatnumberscale:b(c.xformatnumberscale,f.formatnumberscale),defaultnumberscale:K(c.xdefaultnumberscale,
  f.defaultnumberscale),numberscaleunit:b(s,f.numberscaleunit.concat()),numberscalevalue:b(O,f.numberscalevalue.concat()),numberprefix:b(c.xnumberprefix,f.numberprefix),numbersuffix:b(c.xnumbersuffix,f.numbersuffix),decimalprecision:parseInt(b(c.xaxisvaluedecimals,c.xaxisvaluesdecimals,f.decimalprecision,2),10),forcedecimals:b(c.forcexaxisvaluedecimals,0),decimalseparator:f.decimalseparator,thousandseparator:f.thousandseparator,thousandseparatorposition:f.thousandseparatorposition.concat(),indecimalseparator:f.indecimalseparator,
  inthousandseparator:f.inthousandseparator,scalerecursively:k,maxscalerecursion:aa,scaleseparator:Ea};this.paramLegend=q(q({},f),{cacheStore:[],decimalprecision:parseInt(z(c.legendvaluedecimals,f.decimalprecision,2),10),forcedecimals:z(c.legendvalueforcedecimals,f.forcedecimals,0),formatnumberscale:b(c.legendvalueformatnumberscale,f.formatnumberscale),formatnumber:b(c.legendvalueformatnumber,f.formatnumber)});d.useScaleRecursively&&(this.paramX.numberscalevalue&&this.paramX.numberscalevalue.length)==
  (this.paramX.numberscaleunit&&this.paramX.numberscaleunit.length)||(this.paramX.scalerecursively=k=0);k&&(this.paramX.numberscalevalue.push(1),this.paramX.numberscaleunit.unshift(this.paramX.defaultnumberscale));this.paramScale={cacheStore:[],formatnumber:b(c.tickformatnumber,f.formatnumber),formatnumberscale:b(c.tickformatnumberscale,f.formatnumberscale),defaultnumberscale:K(c.tickdefaultnumberscale,f.defaultnumberscale),numberscaleunit:b(B,f.numberscaleunit.concat()),numberscalevalue:b(za,f.numberscalevalue.concat()),
  numberprefix:b(c.ticknumberprefix,f.numberprefix),numbersuffix:b(c.ticknumbersuffix,f.numbersuffix),decimalprecision:parseInt(b(c.tickvaluedecimals,f.decimalprecision,"2"),10),forcedecimals:b(c.forcetickvaluedecimals,f.forcedecimals,0),decimalseparator:f.decimalseparator,thousandseparator:f.thousandseparator,thousandseparatorposition:f.thousandseparatorposition.concat(),indecimalseparator:f.indecimalseparator,inthousandseparator:f.inthousandseparator,scalerecursively:T,maxscalerecursion:L,scaleseparator:sa};
  T&&(this.paramScale.numberscalevalue.push(1),this.paramScale.numberscaleunit.unshift(this.paramScale.defaultnumberscale));this.timeConf={inputDateFormat:b(c.inputdateformat,c.dateformat,"mm/dd/yyyy"),outputDateFormat:b(c.outputdateformat,c.inputdateformat,c.dateformat,"mm/dd/yyyy"),days:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),months:"January February March April May June July August September October November December".split(" "),daySuffix:" st nd rd th th th th th th th th th th th th th th th th th st nd rd th th th th th th th st".split(" ")};
  this.cleaneValueCacheStore={};this.percentStrCacheStore={}};B.prototype={cleaneValueCacheStore:{},percentStrCacheStore:{},dispose:function(){this.Y&&delete this.Y;this.cleaneValueCacheStore&&delete this.cleaneValueCacheStore;this.percentStrCacheStore&&delete this.percentStrCacheStore;this.paramLabels&&delete this.paramLabels;this.param1&&delete this.param1;this.param2&&delete this.param2;this.paramLabels2&&delete this.paramLabels2;this.csConf&&delete this.csConf;this.chartAPI&&delete this.chartAPI;
  this.baseConf&&delete this.baseConf;this.timeConf&&delete this.timeConf;this.paramX&&delete this.paramX;this.paramScale&&delete this.paramScale},parseMLAxisConf:function(a,c){var d=this.baseConf,g=this.csConf,f=this.chartAPI,n=z(a.scalerecursively,d.scalerecursively),s=z(a.maxscalerecursion,d.maxscalerecursion),v=E(a.scaleseparator,d.scaleseparator),q,B,F,Q,O,U;c=z(c,this.Y.length);E(a.numberscaleunit)&&(q=a.numberscaleunit.split(","));E(a.numberscalevalue)&&(B=a.numberscalevalue.split(","));s||(s=
  -1);if(E(a.thousandseparatorposition))for(F=a.thousandseparatorposition.split(","),Q=F.length,U=m.thousandseparatorposition[0];Q--;)(O=z(I(F[Q])))?U=O:O=U,F[Q]=O;d={cacheStore:[],formatnumber:b(a.formatnumber,d.formatnumber),formatnumberscale:b(a.formatnumberscale,d.formatnumberscale),defaultnumberscale:K(a.defaultnumberscale,d.defaultnumberscale),numberscaleunit:b(q,d.numberscaleunit).concat(),numberscalevalue:b(B,d.numberscalevalue).concat(),numberprefix:K(a.numberprefix,d.numberprefix),numbersuffix:K(a.numbersuffix,
  d.numbersuffix),forcedecimals:b(a.forcedecimals,d.forcedecimals),decimalprecision:parseInt("auto"===a.decimals?g.decimalprecision:b(a.decimals,d.decimalprecision),10),decimalseparator:b(a.decimalseparator,d.decimalseparator),thousandseparator:b(a.thousandseparator,d.thousandseparator),thousandseparatorposition:b(F,d.thousandseparatorposition),indecimalseparator:K(a.indecimalseparator,d.indecimalseparator),inthousandseparator:K(a.inthousandseparator,d.inthousandseparator),scalerecursively:n,maxscalerecursion:s,
  scaleseparator:v};f.useScaleRecursively&&(d.numberscalevalue&&d.numberscalevalue.length)==(d.numberscaleunit&&d.numberscaleunit.length)||(d.scalerecursively=n=0);f={cacheStore:[],formatnumber:d.formatnumber,formatnumberscale:d.formatnumberscale,defaultnumberscale:d.defaultnumberscale,numberscaleunit:d.numberscaleunit.concat(),numberscalevalue:d.numberscalevalue.concat(),numberprefix:d.numberprefix,numbersuffix:d.numbersuffix,decimalprecision:parseInt(b(a.yaxisvaluedecimals,d.decimalprecision,2),10),
  forcedecimals:b(a.forceyaxisvaluedecimals,d.forcedecimals),decimalseparator:d.decimalseparator,thousandseparator:d.thousandseparator,thousandseparatorposition:d.thousandseparatorposition.concat(),indecimalseparator:d.indecimalseparator,inthousandseparator:d.inthousandseparator,scalerecursively:n,maxscalerecursion:s,scaleseparator:v};n&&(d.numberscalevalue.push(1),d.numberscaleunit.unshift(d.defaultnumberscale),f.numberscalevalue.push(1),f.numberscaleunit.unshift(f.defaultnumberscale));this.Y[c]={dataLabelConf:d,
  yAxisLabelConf:f}},percentValue:function(a){var b=this.percentStrCacheStore[a];void 0===b&&(b=isNaN(this.paramLabels.decimalprecision)?"2":this.paramLabels.decimalprecision,b=this.percentStrCacheStore[a]=f(d(a,b,this.paramLabels.forcedecimals),this.paramLabels.decimalseparator,this.paramLabels.thousandseparator,this.paramLabels.thousandseparatorposition)+"%");return b},getCleanValue:function(a,b){var c=this.cleaneValueCacheStore[a];if(void 0===c){var d=this.baseConf,c=a+"";d._REGinthousandseparator&&
  (c=c.replace(d._REGinthousandseparator,""));d._REGindecimalseparator&&(c=c.replace(d._REGindecimalseparator,"."));c=parseFloat(c);c=isFinite(c)?c:NaN;this.cleaneValueCacheStore[a]=c=isNaN(c)?null:b?I(c):c}return c},dataLabels:function(a,b){var c=this.Y[b]||(b?this.Y[1]:this.Y[0]),d,c=c&&c.dataLabelConf||this.baseConf;d=c.cacheStore[a];void 0===d&&(d=c.cacheStore[a]=n(a,c));return d},yAxis:function(a,b){var c=this.Y[b]||(b?this.Y[1]:this.Y[0]),d,c=c&&c.yAxisLabelConf||this.baseConf;d=c.cacheStore[a];
  void 0===d&&(d=c.cacheStore[a]=n(a,c,!0));return d},xAxis:function(a){var b=this.paramX.cacheStore[a];void 0===b&&(b=this.paramX.cacheStore[a]=n(a,this.paramX,!0));return b},sYAxis:function(a){var b=this.Y[1],c,b=b&&b.yAxisLabelConf||this.baseConf;c=b.cacheStore[a];void 0===c&&(c=b.cacheStore[a]=n(a,b));return c},scale:function(a){var b=this.paramScale.cacheStore[a];void 0===b&&(b=this.paramScale.cacheStore[a]=n(a,this.paramScale));return b},getCleanTime:function(a){var b;this.timeConf.inputDateFormat&&
  Date.parseExact&&(b=Date.parseExact(a,this.timeConf.inputDateFormat));return b&&b.getTime()},legendValue:function(a){var b=this.paramLegend.cacheStore[a];void 0===b&&(b=this.paramLegend.cacheStore[a]=n(a,this.paramLegend));return b},legendPercentValue:function(a){var b=this.percentStrCacheStore[a],c=this.paramLegend;void 0===b&&(b=isNaN(c.decimalprecision)?"2":c.decimalprecision,b=this.percentStrCacheStore[a]=f(d(a,b,c.forcedecimals),c.decimalseparator,c.thousandseparator,c.thousandseparatorposition)+
  "%");return b},getDateValue:function(a){var b,c,d;a&&!/\//.test(this.timeConf.inputDateFormat)&&(a=a.replace(new RegExp(this.timeConf.inputDateFormat.replace(/[a-z]/ig,"").slice(0,1),"g"),"/"));a=/^dd/.test(this.timeConf.inputDateFormat)&&a&&a.replace(/(\d{1,2})\/(\d{1,2})\/(\d{2,4})/,"$2/$1/$3")||a;b=new Date(a);c=b.getTime();!c&&a&&/\:/.test(a)&&(a=a.split(":"),c=z(a[0],0),d=z(a[1],0),a=z(a[2],0),c=23<c?24===c&&0===d&&0===a?c:23:c,d=59<d?59:d,a=59<a?59:a,b=new Date,b.setHours(c),b.setMinutes(d),
  b.setSeconds(a),c=b.getTime());return{ms:c,date:b}},getFormattedDate:function(a,c){var d="object"===typeof a&&a||new Date(a),g=this.timeConf,f=b(c,g.outputDateFormat),n=d.getFullYear(),m=d.getMonth(),p=d.getDate(),s=d.getDay(),v=d.getMinutes(),q=d.getSeconds(),d=d.getHours(),v=9<v?""+v:"0"+v,q=9<q?""+q:"0"+q,d=9<d?""+d:"0"+d;f.match(/dnl/)&&(f=f.replace(/dnl/ig,g.days[s]));f.match(/dns/)&&(f=f.replace(/dns/ig,g.days[s]&&g.days[s].substr(0,3)));f.match(/dd/)&&(f=f.replace(/dd/ig,p));f.match(/mnl/)&&
  (f=f.replace(/mnl/ig,g.months[m]));f.match(/mns/)&&(f=f.replace(/mns/ig,g.months[m]&&g.months[m].substr(0,3)));f.match(/mm/)&&(f=f.replace(/mm/ig,m+1));f.match(/yyyy/)&&(f=f.replace(/yyyy/ig,n));f.match(/yy/)&&(f=f.replace(/yy/ig,(n%1E3%100+"").replace(/^(\d)$/,"0$1")));f.match(/hh12/)&&(f=f.replace(/hh12/ig,d%12||12));f.match(/hh/)&&(f=f.replace(/hh/ig,d));f.match(/mn/)&&(f=f.replace(/mn/ig,v));f.match(/ss/)&&(f=f.replace(/ss/ig,q));f.match(/ampm/)&&(f=f.replace(/ampm/ig,12>d?"AM":"PM"));f.match(/ds/)&&
  (f=f.replace(/ds/ig,g.daySuffix[p]));return f}};B.prototype.constructor=B;n=function(a,c,n){if(null!==a){a=Number(a);var m=a+"",p,s,v,q,B;p=1==c.formatnumberscale?c.defaultnumberscale:"";B=(B=m.split(".")[1])?B.length:c.forcedecimals?"2":"";if(1==c.formatnumberscale){m=a;s=c.numberscalevalue;a=c.numberscaleunit;p={};var F=c.defaultnumberscale;v=0;var E=[],I=[];if(c.scalerecursively){for(v=0;v<s.length;v++)if(q=z(s[v])||1E3,Math.abs(Number(m))>=q&&v<s.length-1)F=m%q,m=(m-F)/q,0!==F&&(E.push(F),I.push(a[v]));
  else{E.push(m);I.push(a[v]);break}E.reverse();I.reverse();p.value=E;p.scale=I}else{if(s.length===a.length)for(v=0;v<s.length;v++)if(q=z(s[v])||1E3,Math.abs(Number(m))>=q)F=a[v]||"",m=Number(m)/q;else break;p.value=m;p.scale=F}s=p;a=m=s.value;p=s.scale}if(c.scalerecursively&&0!==c.formatnumberscale&&"0"!==c.formatnumberscale){n=s.value;s=s.scale;a=-1==c.maxscalerecursion?n.length:Math.min(n.length,c.maxscalerecursion);if(1==c.formatnumber)for(m="",q=0;q<a;q++)p=0===q?n[q]:Math.abs(n[q]),v=p+"",q==
  a-1&&(v=d(p,b(c.decimalprecision,B),c.forcedecimals)),m=m+f(v,c.decimalseparator,c.thousandseparator,c.thousandseparatorposition)+s[q]+(q<a-1?c.scaleseparator:"");else for(m="",q=0;q<a;q++)m=m+(0===q?n[q]:Math.abs(n[q])+"")+s[q]+(q<a-1?c.scaleseparator:"");m=(c.numberprefix||"")+m+(c.numbersuffix||"")}else 1==c.formatnumber&&(m=d(a,b(c.decimalprecision,B),c.forcedecimals),m=f(m,c.decimalseparator,c.thousandseparator,c.thousandseparatorposition,n)),m=(c.numberprefix||"")+m+p+(c.numbersuffix||"");return m}};
  return B}();d.extend(d.core,{formatNumber:function(a,b){b=b&&B(b)||{};var c=O(b),d;v[c]?d=v[c]:v[c]=d=new m.NumberFormatter(b,{useScaleRecursively:!0});return d.dataLabels(a)}},!1);d.extend(d.core,{formatNumber:function(a,b,c,p){c=c&&B(c)||{};var s=this.jsVars.instanceAPI||{},z=s.numberFormatter,l;""===O(c)?z?l=z:(z=this.getChartData(d.dataFormats.JSON,!0),z=z.data||{},z=z.chart||{},c=O(z),v[c]?l=v[c]:v[c]=l=new m.NumberFormatter(z,s)):(z=this.getChartData(d.dataFormats.JSON,!0),z=z.data||{},z=z.chart||
  {},z=q(q({},z),c),c=O(z),v[c]?l=v[c]:v[c]=l=new m.NumberFormatter(z,s));switch((b&&b.toLowerCase?b:"").toLowerCase()){case "yaxisvalues":a=l.yAxis(a,p);break;case "xaxisvalues":a=l.xAxis(a);break;case "scale":a=l.scale(a);break;default:a=l.dataLabels(a,p)}return a}},!0)}]);
  FusionCharts.register("module",["private","modules.renderer.js-dom",function(){var d=this.hcLib,m=this.window,z=m.document,q=d.extend2,E="ontouchstart"in m;(function(b){var d=function(){var b={},d;b.pointerdrag={start:["mousedown"],end:["mouseup"],onStart:["mousemove"],postHandlers:{},preHandlers:{}};b.pointerhover={start:["mouseover"],end:["mouseout"]};b.click={start:["click"]};b.escape={start:["keydown"],preHandlers:{start:function(a){a=a||m.event;return a.keyCode&&27===a.keyCode?!0:!1}}};E&&(d=
  b.pointerdrag,d.start.push("touchstart"),d.end.push("touchend"),d.onStart.push("touchmove"),d.postHandlers.onStart=function(a){a.preventDefault?a.preventDefault():a.returnValue=!1});return b}(),I;I=q({},d);b.dem=new function(){var b={},d={},a=z.addEventListener?function(a,b,c){a.addEventListener(b,c,!1)}:function(a,b,c){a.attachEvent("on"+b,c)},v=z.removeEventListener?function(a,b,c){a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent("on"+b,c)},E=function(a,b,c){var d=[],g,l,s;s=I[b];c.start=
  function(b){b=b||m.event;for(var d=s.onStart,g=s.end,n=[],l=[],v=d&&d.length||0;v--;)n.push(B(a,d[v],c,"onStart"));for(v=g&&g.length||0;v--;)l.push(B(a,g[v],c,"end"));c.startUn=c.startUn?c.startUn.concat(n):n;c.endUn=c.endUn?c.endUn.concat(l):l;c.state="start";c.closure(b)};c.onStart=function(a){a=a||m.event;c.state="on";if(c.gDef&&c.gDef.preHandlers&&"function"===typeof c.gDef.preHandlers.onStart)c.gDef.preHandlers.onStart(a);c.closure(a);if(c.gDef&&c.gDef.postHandlers&&"function"===typeof c.gDef.postHandlers.onStart)c.gDef.postHandlers.onStart(a)};
  c.end=function(a){a=a||m.event;for(var b=c.startUn,d=c.endUn,g=b&&b.length||0;g--;)b[g]();delete c.startUn;c.startUn=[];for(g=d&&d.length||0;g--;)d[g]();delete c.endUn;c.endUn=[];c.state="end";c.closure(a)};if(s)for(b=s.start,l=b.length;l--;)(g=b[l])&&d.push(B(a,g,c,"start"));return d},B=function(b,c,d,g){g=g||"closure";a(b,c,d[g]);return function(){v(b,c,d[g])}},g=function(a){return function(b){b=b||m.event;a.handler.call(a.context||a.elem,{data:a.data,type:a.type,state:a.state,isGesture:a.isGesture,
  target:b.target||b.srcElement,originalEvent:b})}};return{listen:function(a,n,m,v,q){var l=this;n="string"===typeof n?n.split(" "):n;var C=n.length,A=[],K=function(a,b,c){A.push(function(){l.unlisten(a,b,c)})},r,oa,ga,ba,V;if(a.ownerDocument&&a.ownerDocument===z)for(;C--;)oa=n[C],ba=Boolean(I[oa]),V="function"===typeof m?m:m[C],ga={handler:V,elem:a,type:oa,isGesture:ba,gDef:ba?I[oa]:null,data:v,context:q,start:[],end:[],links:{prev:null,next:null}},ga.closure=g(ga),ba?((r=d[oa])||(r=d[oa]=[]),r.push(ga),
  E(a,oa,ga)):((r=b[oa])||(r=b[oa]=[]),r.push(ga),B(a,oa,ga)),K(a,oa,V);else for(;C--;)oa=n[C],V="function"===typeof m?m:m[C],ga={handler:V,elem:a,type:oa,isGesture:ba,data:v,context:q,start:[],end:[],links:{prev:null,next:null}},ga.closure=g(ga),(r=b[oa])||(r=b[oa]=[]),r.push(ga),B(a,oa,ga),K(a,oa,V);return{unlisten:function(){for(var a=A.length;a--;)A[a]();A.length=0;A=null}}},unlisten:function(a,g,m){var q,B=!1,l,z;if(Boolean(I[g]))for(l=(q=d[g])&&q.length||0;l--;){if(z=q[l],z.handler===m&&z.elem===
  a){var B=a,A=void 0,E=void 0,r=void 0,A=void 0;if(A=I[g])for(A=A.start,r=A.length;r--;)(E=A[r])&&v(B,E,z.start);q.splice(l,1);B=!0}}else for(l=(q=b[g])&&q.length||0;l--;)z=q[l],z.handler===m&&z.elem===a&&(v(a,g,z.closure),q.splice(l,1),B=!0);return B},fire:function(a,d,g,m){var s;if(a.ownerDocument&&a.ownerDocument===z)z.createEvent?(s=z.createEvent("HTMLEvents"),s.initEvent(d,!0,!0),g&&(g.originalEvent?g.originalEvent=s:q(s,g)),"function"===typeof a[d]&&a[d].call(a),a.dispatchEvent(s)):(s=z.createEventObject(),
  s.eventType=d,g&&(g.originalEvent?g.originalEvent=s:q(s,g)),"function"===typeof a[d]&&a[d].call(a),a.fireEvent("on"+d,s)),m&&!s.returnValue&&m(s);else for(m=(d=b[d])&&d.length||0;m--;)s=d[m],s.elem===a&&s.closure(g)}}}})(d||m);(function(b){function d(a,b){var c="";z.defaultView&&z.defaultView.getComputedStyle?c=z.defaultView.getComputedStyle(a,"").getPropertyValue(b):a.currentStyle&&(b=b.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()}),c=a.currentStyle[b]);c=parseInt(c,10);return isNaN(c)?
  0:c}function E(b,c,d,g,f,n,m,q){var z=c/40,l=s[n||"linear"](g-d,z),C=0,A=function(){var c;C<z?(c=l[C],b.style[f]=d+c+q,a&&"opacity"===f&&(c=100*Number(c),b.style.filter="progid:DXImageTransform.Microsoft.Alpha(Opacity="+c+")"),C+=1,setTimeout(A,40)):m&&m()};q=q||"";setTimeout(A,40)}var c={width:{suffix:"px"},height:{suffix:"px"},opacity:!0,top:{suffix:"px"},left:{suffix:"px"}},s={linear:function(a,b){for(var c=[],d=a/b,f=0;f<b;f+=1)c[f]=d*(f+1);return c}},a=/msie/i.test(m.navigator.userAgent)&&!m.opera;
  b.danimate=q({animate:function(a,b,m,g,f){g={};var n={},p=function(){q+=1;q===s&&"function"===typeof f&&f()},s=0,q=0,l,z;if(40>m){for(z in b)a.style[z]=b[z];f&&f()}else for(z in b)c[z]&&(s+=1,g[z]=b[z],n[z]=d(a,z),l="object"===typeof c[z]&&c[z].suffix,E(a,m,n[z],g[z],z,"linear",p,l))}},{})})(d||m)}]);
  FusionCharts.register("module",["private","modules.renderer.js-colormanager",function(){var d=this.hcLib,m=d.pluckNumber,z=d.graphics.getDarkColor,q=d.graphics.getLightColor,E="AFD8F8 F6BD0F 8BBA00 FF8E46 008E8E D64646 8E468E 588526 B3AA00 008ED6 9D080D A186BE CC6600 FDC689 ABA000 F26D7D FFF200 0054A6 F7941C CC3300 006600 663300 6DCFF6".split(" "),b="8BBA00 F6BD0F FF654F AFD8F8 FDB398 CDC309 B1D0D2 FAD1B9 B8A79E D7CEA5 C4B3CE E9D3BE EFE9AD CEA7A2 B2D9BA".split(" "),K=d.defaultPaletteOptions={paletteColors:[E,
  E,E,E,E],bgColor:["CBCBCB,E9E9E9","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:["50,50","60,50","40,20","20,10","30,30"],canvasBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],canvasBgAngle:[0,0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:["","","","",""],canvasBorderColor:["545454","545454","415D6F","845001","68001B"],canvasBorderAlpha:[100,100,100,90,100],showShadow:[0,
  1,1,1,1],divLineColor:["717170","7B7D6D","92CDD6","965B01","68001B"],divLineAlpha:[40,45,65,40,30],altHGridColor:["EEEEEE","D8DCC5","99C4CD","DEC49C","FEC1D0"],altHGridAlpha:[50,35,10,20,15],altVGridColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],altVGridAlpha:[10,20,10,15,10],anchorBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["555555","60634E",
  "025B6A","A15E01","68001B"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],legendBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],legendBorderColor:["545454","545454","415D6F","845001","D55979"],plotGradientColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],plotBorderColor:["333333","8A8A8A","FFFFFF","FFFFFF","FFFFFF"],plotFillColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],bgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],bgAlpha3D:["100",
  "100","100","100","100"],bgAngle3D:[90,90,90,90,90],bgRatio3D:["","","","",""],canvasBgColor3D:["DDE3D5","D8D8D7","EEDFCA","CFD2D8","FEE8E0"],canvasBaseColor3D:["ACBB99","BCBCBD","C8A06C","96A4AF","FAC7BC"],divLineColor3D:["ACBB99","A4A4A4","BE9B6B","7C8995","D49B8B"],divLineAlpha3D:[100,100,100,100,100],legendBgColor3D:["F0F3ED","F3F3F3","F7F0E8","EEF0F2","FEF8F5"],legendBorderColor3D:["C6CFB8","C8C8C8","DFC29C","CFD5DA","FAD1C7"],toolTipbgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor3D:["49563A",
  "666666","49351D","576373","681C09"],baseFontColor3D:["49563A","4A4A4A","49351D","48505A","681C09"],anchorBgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"]},E=d.colorManager=function(b,c){var s=b.chart,a=d.extend2({},K),v=c.defaultPaletteOptions||{},E;a||(a={});for(E in v)a[E]=v[E];a=this.paletteOptions=a;v=this.themeEnabled=s.palettethemecolor;this.paletteIndex=(0<s.palette&&6>s.palette?s.palette:m(c.paletteIndex,1))-1;this.iterator=0;this.paletteColors=a.paletteColors[this.themeEnabled?0:
  this.paletteIndex];E=s.palettecolors;void 0!==E&&null!==E&&""!==s.palettecolors&&(this.paletteColors=s.palettecolors.split(/\s*\,\s*/));this.paletteLen=this.paletteColors.length;this.useFlatColors=m(s.useflatdataplotcolor,c.useFlatColor,0);v&&(this.paletteIndex=5,a.bgColor.push(q(v,35)+","+q(v,10)),a.bgAngle.push(270),a.bgRatio.push("0,100"),a.bgAlpha.push("50,50"),a.canvasBgColor.push("FFFFFF"),a.canvasBgAngle.push(0),a.canvasBgAlpha.push("100"),a.canvasBgRatio.push(""),a.canvasBorderColor.push(z(v,
  80)),a.canvasBorderAlpha.push(100),a.showShadow.push(1),a.divLineColor.push(z(v,20)),a.divLineAlpha.push(40),a.altHGridColor.push(q(v,20)),a.altHGridAlpha.push(15),a.altVGridColor.push(q(v,80)),a.altVGridAlpha.push(10),a.anchorBgColor.push("FFFFFF"),a.toolTipBgColor.push("FFFFFF"),a.toolTipBorderColor.push(z(v,80)),a.baseFontColor.push(v.split&&v.split(",")[0]),a.borderColor.push(z(v,60)),a.borderAlpha.push(50),a.legendBgColor.push("FFFFFF"),a.legendBorderColor.push(z(v,80)),a.plotGradientColor.push("FFFFFF"),
  a.plotBorderColor.push(z(v,85)),a.plotFillColor.push(z(v,85)),a.bgColor3D.push("FFFFFF"),a.bgAlpha3D.push("100"),a.bgAngle3D.push(90),a.bgRatio3D.push(""),a.canvasBgColor3D.push(q(v,20)),a.canvasBaseColor3D.push(q(v,40)),a.divLineColor3D.push(z(v,20)),a.divLineAlpha3D.push(40),a.legendBgColor3D.push("FFFFFF"),a.legendBorderColor3D.push(z(v,80)),a.toolTipbgColor3D.push("FFFFFF"),a.toolTipBorderColor3D.push(z(v,80)),a.baseFontColor3D.push(v.split&&v.split(",")[0]),a.anchorBgColor3D.push("FFFFFF"),a.tickColor&&
  a.tickColor.push(z(v,90)),a.trendDarkColor&&a.trendDarkColor.push(z(v,90)),a.trendLightColor&&a.trendLightColor.push(q(v,a.TrendLightShadeOffset)),a.msgLogColor&&a.msgLogColor.push(q(v,80)),a.dialColor&&a.dialColor.push(z(v,95)+",FFFFFF,"+z(v,95)),a.dialBorderColor&&a.dialBorderColor.push(z(v,95)+",FFFFFF,"+z(v,95)),a.pivotColor&&a.pivotColor.push(q(v,95)+",FFFFFF,"+q(v,95)),a.pivotBorderColor&&a.pivotBorderColor.push(z(v,95)+",FFFFFF,"+z(v,95)),a.pointerBorderColor&&a.pointerBorderColor.push(z(v,
  75)),a.pointerBgColor&&a.pointerBgColor.push(z(v,75)),a.thmBorderColor&&a.thmBorderColor.push(z(v,90)),a.thmFillColor&&a.thmFillColor.push(q(v,55)),a.cylFillColor&&a.cylFillColor.push(q(v,55)),a.periodColor&&a.periodColor.push(q(v,10)),a.winColor&&a.winColor.push("666666"),a.lossColor&&a.lossColor.push("CC0000"),a.drawColor&&a.drawColor.push("666666"),a.scorelessColor&&a.scorelessColor.push("FF0000"),a.gridColor&&a.gridColor.push(q(v,30)),a.categoryBgColor&&a.categoryBgColor.push(q(v,10)),a.dataTableBgColor&&
  a.dataTableBgColor.push(q(v,10)),a.gridResizeBarColor&&a.gridResizeBarColor.push(z(v,90)),a.scrollBarColor&&a.scrollBarColor.push(q(v,50)))};E.prototype={getColor:function(b){return this.paletteOptions[b][this.paletteIndex]},getPlotColor:function(b){var c=this.paletteColors;b=this.useFlatColors?this.getColor("plotFillColor"):c[b%this.paletteLen];b||(this.iterator===this.paletteLen&&(this.iterator=0),b=c[this.iterator],this.iterator+=1);return b},parseColorMix:function(b,c){var d=[],a,m,E,B,g,f,n,
  p,F,K;c=c.replace(/\s/g,"");c=c.toLowerCase();if(""===c||null===c||void 0===c)d=[b];else for(m=c.split(","),E=b.split(","),B=Math.max(m.length,E.length,1),g=m[0],f=E[0],F=/[\{\}]/ig,K=0;K<B;K++)n=(m[K]||g).replace(F,""),p=E[K]||f,"color"==n?d.push(p):"light"==n.substr(0,5)?(a=n.indexOf("-"),a=-1==a?1:n.substr(a+1,n.length-a),a=100-a,d.push(q(p,a))):"dark"==n.substr(0,4)?(a=n.indexOf("-"),a=-1==a?1:n.substr(a+1,n.length-a),a=100-a,d.push(z(p,a))):d.push(n);return d},parseAlphaList:function(b,c){var d=
  b.split(","),a=[],v,q=100,B;for(B=0;B<c;B++)v=m(d[B]),void 0!==v&&null!==v&&(q=v),a[B]=q;return a.join()},parseRatioList:function(b,c){var d=b.split(","),a=[],m=0,q,B;for(B=0;B<c;B++)q=d[B],q=isNaN(q)||void 0===q?0:Math.abs(Number(q)),q=100<q?100:q,a[B]=q,m+=q;m=100<m?100:m;if(d.length<c)for(B=d.length;B<c;B++)a[B]=(100-m)/(c-d.length);a[-1]=0;return a.join()}};E.prototype.constructor=E;d.defaultGaugePaletteOptions={paletteColors:[b,b,b,b,b],bgColor:["CBCBCB,E9E9E9","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:["50,50","60,50","40,20","20,10","30,30"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["555555","60634E","025B6A","A15E01","68001B"],tickColor:["333333","60634E","025B6A","A15E01","68001B"],trendDarkColor:["333333","60634E","025B6A","A15E01","68001B"],trendLightColor:["f1f1f1","F3F5DD",
  "EDFBFE","FFF5E8","FFD1DD"],pointerBorderColor:["545454","60634E","415D6F","845001","68001B"],pointerBgColor:["545454","60634E","415D6F","845001","68001B"],canvasBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],canvasBgAngle:[0,0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:["","","","",""],canvasBorderColor:["545454","545454","415D6F","845001","68001B"],canvasBorderAlpha:[100,100,100,90,100],altHGridColor:["EEEEEE","D8DCC5","99C4CD","DEC49C","FEC1D0"],altHGridAlpha:[50,
  35,10,20,15],altVGridColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],altVGridAlpha:[10,20,10,15,10],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],legendBgColor:["ffffff","ffffff","ffffff","ffffff","ffffff"],legendBorderColor:["545454","545454","415D6F","845001","D55979"],plotFillColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],plotBorderColor:["999999","8A8A8A","6BA9B6","C1934D","FC819F"],msgLogColor:["717170","7B7D6D","92CDD6","965B01","68001B"],
  TrendLightShadeOffset:30}}]);
  FusionCharts.register("module",["private","modules.renderer.js-annotations",function(){var d=this,m=d.core,z=d.hcLib,q=d.window,E=/msie/i.test(q.navigator.userAgent)&&!q.opera,b=z.addEvent,K=z.removeEvent,I=z.hasTouch,c=q.Number,s=I?6:5,a="rgba(192,192,192,"+(E?.002:1E-6)+")",E=q.Math,v=E.min,O=E.max,B=E.sin,g=E.cos,f=E.PI,n=f/180,p=d.extend,F=z.pluck,Q=z.pluckNumber,l=z.graphics.convertColor,C=z.getValidValue,A=z.parseUnsafeString,W=z.setImageDisplayMode,r=z.graphics.parseColor,oa=z.setLineHeight,
  ga=z.getMouseCoordinate,ba={style:{}},V=z.toRaphaelColor,ta=function(a,b){return{start:-b,end:-a,angle:a-b}},za=function(a,b,d,g,f){var n,l,m=0,p=0;l=void 0===b||null===b?1:b;var s;if(!a||!a.toString)return{value:d,hasDynamicMacros:!1};a=a.toString();a=a.toLowerCase().replace(/\s/g,"");if(d=a.match(/^[\+\-]?\d+(\.\d+)?|[\+\-]\d+(\.\d+)?/g)){for(b=0;b<d.length;b+=1)m+=Number(d[b])||0;m*=l}if(d=a.match(/^[\+\-]?(\$[a-z0-9\.]+)|[\+\-](\$[a-z0-9\.]+)/g))for(b=0;b<d.length;b+=1){n=d[b];var r=g,q=f,v=n.split("."),
  B=void 0,A=void 0,z=0;for(l=void 0;B=v.shift();)switch(typeof(A=r[B])){case "object":r=A[B];break;case "function":A=A(v,q),"-"===n.charAt()&&(A*=-1),l=!0;default:z+=c(A)||0,v.length=0}n=z;l&&(s=!0);p+=n}if(d=a.match(/^[\+\-]?\$\d+(\.\d+)?|[\+\-]\$\d+(\.\d+)?/g))for(b=0;b<d.length;b+=1)p=p+Number(d[b].replace("$",""))||0;return{value:m+p,hasDynamicMacros:s}},Aa=function(a,b,c){if(!b.removed){b=b.data("annotation");var g=b.getRenderer(),f=ga(g.container,c),n=f.annotationOptions=b.options,l=f.groupOptions=
  b.group.options;f._shape=b;"id"in n&&(f.annotationId=n.id);"id"in l&&(f.groupId=l.id);d.raiseEvent(a,f,g.fusionCharts,c)}},Z,U,na;U=function(a,b,c,d,g){this.options=a;this.attrs={};this.css={};this.bounds={};this.shared=b;this.snaps=c||{};this.annotations=g;this.items=b=[];this._idstore=d;a.id&&(this._id=a.id,d[a.id]=this);if(a=a.items)for(d=0,c=a.length;d<c;d+=1)b.push(new na(a[d],this))};p(U.prototype,{scaleImageX:1,scaleImageY:1,scaleText:1,scaleValue:1,scaleValueComplement:1,scaleX:1,scaleY:1});
  U.prototype.setup=function(){var a=this.options,b=this.shared,c=this.getRenderer();c&&(this.isBelow=0!==Q(a.showbelow,a.showbelowchart,b.showbelow),this.useTracker=!this.isBelow&&c.layers.tracker&&this.shared.useTracker,this.raiseOwnEvents=b.interactionevents)};U.prototype.scale=function(){var a=this.options,b=this.shared,c=this.bounds,d=this.snaps,g=this.getRenderer(),f=b.rootxscale,n=b.rootyscale,l=c.xs=Q(a.xscale,b.xscale,100)/100,m=c.ys=Q(a.yscale,b.yscale,100)/100,p,s,r;g&&(this.scaleText*=m,
  this.scaleImageX*=l,this.scaleImageY*=m,0!==Q(a.autoscale,b.autoscale)&&(l=Q(a.origw,b.origw),m=Q(a.origh,b.origh),l=g.chartWidth/l,m=g.chartHeight/m,g=0!==Q(a.constrainedscale,b.constrainedscale),p=l<m?l:m,s=g?p:l,r=g?p:m,this.scaleValue=U.prototype.scaleValue*p,this.scaleValueComplement=U.prototype.scaleValueComplement*(g?p:l<m?m:l),this.scaleX=U.prototype.scaleX*s,this.scaleY=U.prototype.scaleX*r,c.xs*=s,c.ys*=r,f*=s,n*=r,"1"==F(a.scaletext,b.scaletext)&&(this.scaleText=U.prototype.scaleText*r),
  "1"==F(a.scaleimages,b.scaleimages)&&(this.scaleImageX=U.prototype.scaleImageX*s,this.scaleImageY=U.prototype.scaleImageY*r)),c.x=za(F(a.x,a.xpos),f,0,d,this.isBelow).value+Q(a.grpxshift,b.grpxshift,0),c.y=za(F(a.y,a.ypos),n,0,d,this.isBelow).value+Q(a.grpyshift,b.grpyshift,0),this.xshift=Q(a.xshift,b.xshift,0),this.yshift=Q(a.yshift,b.yshift,0))};U.prototype.draw=function(){var a=this.getRenderer(),b=this.options,c=this.bounds,d=this.items,g=a&&a.layers.dataset,f=this.wrapper;if(a){f||(this.wrapper=
  f=a.paper.group("annotations"),g&&(this.isBelow?f.insertBefore(g):f.insertAfter(a.layers.datalabels||g)));this.wrapper.attr({x:0,y:0,visibility:Q(b.visible,1)?"":"hidden"}).translate(c.x,c.y);b=0;for(c=d.length;b<c;b+=1)a=d[b],a.scale(!0),a.queueDraw?a.queue():(a.setup(),a.draw());return this}};U.prototype.destroy=function(){for(var a=this.wrapper,b=this.items,c;c=b.shift();)c.destroy();a&&(this.wrapper=a.remove());this._idstore[this._id]===this&&delete this._idstore[this._id]};U.prototype.addItem=
  function(a,b){var c;this.items.push(c=new na(a,this,this._idstore));b&&null!==this.getRenderer()&&(c.scale(),c.setup(),c.draw());return c};U.prototype.removeItem=function(a){for(var b=this.items,c=b.length;c--;)if(a===b[c]._id)return b.splice(c,1)};U.prototype.getRenderer=function(){return this.annotations&&this.annotations.getRenderer()||null};na=function(a,b){var c=!1,d;this.options=a;this.group=b;this.args=[];this.attrs={};this.attrsTracker={};this.style={};this.bounds={};this._idstore=b._idstore;
  a.id&&(this._id=a.id,b._idstore[a.id]=this);this.type=a.type&&a.type.toLowerCase&&a.type.toLowerCase();for(d in na.eventNames)"function"===typeof a[d]&&(this[d]=a[d],c=!0);this.hasEvents=c;"function"===typeof a.onload&&(this.onload=a.onload)};d.extend(na.prototype,{getAbsoluteBounds:function(){var a=this.bounds,b=a.x1,c=a.y1,d=a.x2,g=a.y2,f=v(b,d),n=v(c,g),b=O(b,d)-f,c=O(c,g)-n;return{x:f,width:b,y:n,height:c,r:a.r,unscaled:{width:b/a.xs,height:c/a.ys}}},queue:function(){this.group.annotations.shapesToDraw.push(this)},
  scale:function(a){var b=this,c=b.group,d=c.bounds,g=b.bounds,f=b.options,n=c.snaps,l=F(f.x,f.xpos),m=F(f.y,f.ypos),p=F(f.tox,f.toxpos),s=F(f.toy,f.toypos),r=g.xs=d.xs,d=g.ys=d.ys,q=Q(f.xshift,c.xshift,0),v=Q(f.yshift,c.yshift,0),B;B=function(d,g,f,k){d=za(d,g,f,k,c.isBelow);d.hasDynamicMacros&&a&&(b.queueDraw=!0);return d.value};b.hasDimension=!0;b.hasDimensionX=!0;b.hasDimensionY=!0;g.x1=B(l,r,0,n)+q;void 0===p?(b.hasDimension=!1,b.hasDimensionX=!1,g.x2=g.x1):g.x2=B(p,r,0,n)+q;g.y1=B(m,d,0,n)+v;
  void 0===s?(b.hasDimension=!1,b.hasDimensionY=!1,g.y2=g.y1):g.y2=B(s,d,0,n)+v;na.angularShapeTypes[b.type]&&(g.angles=ta(B(f.startangle,1,0,n),B(f.endangle,1,360,n)));g.r=B(f.radius,c.scaleValue,0,n)},setup:function(){var b=this.options,c=this.group,d=c.options,g=this.attrs,f=this.style,n=c.scaleValue,m=Q(d.fillalpha,d.alpha,100),s=this.fillAlpha=F(b.fillalpha,b.alpha,m),r=this.fillColor=F(b.fillcolor,b.color,d.color),q=this.fillPattern=F(b.fillpattern&&b.fillpattern.toLowerCase&&b.fillpattern.toLowerCase(),
  d.fillpattern&&d.fillpattern.toLowerCase&&d.fillpattern.toLowerCase()),v=this.bordered=Q(b.showborder,na.borderedShapeTypes[this.type],!!C(b.bordercolor)),B=this.borderColor=F(b.bordercolor,d.bordercolor,r),m=this.borderAlpha=Q(b.borderalpha,b.alpha,d.borderalpha,m),z=this.dashed=!!Q(b.dashed,0),E=Q(b.borderthickness,b.thickness,2)*n;this.link=F(b.link,d.link);this.shadow="1"==F(b.showshadow,d.showshadow);void 0===r&&(r=na.borderedShapeTypes[this.type]&&"none"||"#ff0000",void 0===B&&(B="#ff0000"));
  v&&E?(g.stroke=l(B,m),g["stroke-linecap"]="round",g["stroke-width"]=E,z&&(g["stroke-dasharray"]=[Q(b.dashlen,5)*n,Q(b.dashgap,3)*n])):g.stroke="none";this.fillOptions={gradientUnits:"objectBoundingBox",color:r,alpha:s,ratio:F(b.fillratio,d.fillratio),angle:360-Q(b.fillangle,0),radialGradient:"radial"===q};this.link&&(f.cursor="pointer",f._cursor="hand");g.visibility=Q(b.visible,1)?"":"hidden";this.useTracker=c.useTracker;this.toolText=A(F(b.tooltext,d.tooltext));if(this.useTracker||this.link||this.toolText)p(this.attrsTracker,
  {stroke:a,fill:a}),this.link&&(this.attrsTracker.ishot=+new Date);this.raiseOwnEvents=c.raiseOwnEvents},draw:function(){var a=this.getRenderer(),c=this.type,d=this.attrs,g=this.style,f=a&&a.paper,n=na.types[c]&&na.types[c].call&&na.types[c].call(this,a),l=na.imageShapeTypes[n],m=na.textShapeTypes[n],p=l||m||na.trackerShapeTypes[n],s=this.link||this.toolText,r=this.wrapper,c=this.tracker,q=a&&a.layers.tracker||this.group.wrapper,v=!1,B=c||r,A=na.eventNames,z=na.ownEvents,E,F;if(a){if(n){if(r)if(r.elemType!==
  n){if(this.ownEventsAttached){for(F in z)B["un"+F].apply(r,z[F]);this.ownEventsAttached=!1}r=r.remove()}else if(this.hasEvents)for(E in A)(F=this[E])&&F.eventAttached&&(K(B.node,A[E],F),F.eventAttached=!1);l||(d.fill=V(this.fillOptions));r?r.attr(d).css(g):(this.args.push(this.group.wrapper),r=this.wrapper=f[n].apply(f,this.args).attr(d).css(g),r.elemType=n,r.data("annotation",this),v=!0,this.args.pop());!this.shadow||this.shadowAdded||l||m?r.shadow(this.shadowAdded=!1):r.shadow(this.shadowAdded=
  !0,O(this.borderAlpha,this.fillOptions.alpha)/100);s?this.useTracker&&(c||(this.args.push(q),c=this.tracker=p?f.rect(0,0,0,0,0,q):f[n].apply(f,this.args),this.args.pop()),c.attr(d).attr(this.attrsTracker)):c&&(c=c.remove());B=c||r;if(this.raiseOwnEvents&&!this.ownEventsAttached){for(F in z)B[F].apply(r,z[F]);this.ownEventsAttached=!0}this.link&&B.click(a.linkClickFN,this);this.toolText&&(B.tooltip(this.toolText||""),this.group.wrapper.trackTooltip(!0));if(this.hasEvents)for(E in A)(F=this[E])&&!F.eventAttached&&
  (b(B.node,A[E],F,this),F.eventAttached=!0);l||(c&&p&&(a=r.getBBox(),c.attr({x:a.x,y:a.y,width:a.width,height:a.height})),v&&this.onload&&this.onload(d))}return this}},destroy:function(){var a=this.wrapper,b=this.tracker,c=b||a,d=na.eventNames,g=na.ownEvents,f,n;if(a){if(this.ownEventsAttached){for(n in g)c["un"+n].apply(a,g[n]);this.ownEventsAttached=!1}if(this.hasEvents)for(f in d)(n=this[f])&&n.eventAttached&&(K(c.node,d[f],n),n.eventAttached=!1);b&&(this.tracker=b.remove());this.wrapper=a.remove()}this._idstore[this._id]===
  this&&delete this._idstore[this._id]},getRenderer:function(){return this.group&&this.group.getRenderer()||null}});d.extend(na,{imageShapeTypes:{image:!0},angularShapeTypes:{circle:!0,arc:!0},textShapeTypes:{text:!0},trackerShapeTypes:{image:!0,text:!0},borderedShapeTypes:{path:!0,line:!0},eventNames:{onmouseover:I?"touchstart":"mouseover",onmouseout:"mouseout",onmousemove:I?"touchmove":"mousemove",onclick:"click"},ownEvents:{click:[function(a){Aa("annotationClick",this,a)}],hover:[function(a){Aa("annotationRollOver",
  this,a)},function(a){Aa("annotationRollOut",this,a)}]},textAlignOptions:{left:"start",right:"end",center:"middle"},textVerticalAlignOptions:{top:"bottom",middle:"middle",bottom:"top"},textRotationOptions:{0:"0",1:"270",right:"90",cw:"90",left:"270",ccw:"270"},types:{rectangle:function(){var a=this.args,b=this.attrs,c=this.getAbsoluteBounds(),d=.5*c.width;c.r>d&&(c.r=d);a[0]=b.x=c.x;a[1]=b.y=c.y;a[2]=b.width=c.width;a[3]=b.height=c.height;a[4]=b.r=c.r;return"rect"},line:function(){var a=this.attrs,
  b=this.bounds;this.args[0]=a.path=["M",b.x1,b.y1,"L",b.x2,b.y2];1===a["stroke-width"]&&(a["shape-rendering"]="crisp");a["stroke-width"]<s&&(this.attrsTracker["stroke-width"]=s);this.bordered&&this.dashed&&(this.attrsTracker["stroke-dasharray"]="solid");return"path"},path:function(){var a=this.attrs,b=this.bounds;this.args[0]=a.path=this.options.path;a.transform=["T",b.x1,b.y1,"S",b.xs,b.ys,b.x1,b.y1];1===a["stroke-width"]&&(a["shape-rendering"]="crisp");return"path"},polygon:function(){var a=this.args,
  b=this.attrs,c=this.options,d=this.bounds,g=this.group,f=g.snaps;a[0]=za(c.sides,1,5,f,g.isBelow).value;a[1]=d.x1;a[2]=d.y1;a[3]=d.r;a[4]=za(c.startangle,1,0,f,g.isBelow).value;a[5]=0;b.polypath=a.slice(0);return"polypath"},circle:function(a){var b=this.args,c=this.attrs,d=this.options,l=this.bounds,m=a.chartWidth,p=a.chartHeight,s=this.group.scaleValueComplement,r=this.group.snaps,q=l.angles,v=this.group;a=l.r;F(d.radius)||(l.r=m<p?m*l.xs:p*l.ys,l.r=a=.3*l.r);d=za(d.yradius,s,a,r,v.isBelow).value;
  this.fillPattern||(this.fillOptions.radialGradient=!0,this.fillPattern="radial");"radial"===this.fillPattern&&(this.fillOptions.cx=this.fillOptions.cy=.5);m=q.angle%360;if(!m&&a===d)return b[0]=c.cx=l.x1,b[1]=c.cy=l.y1,b[2]=c.r=l.r,"circle";m||(q.start-=.001);p=q.start*n;m=q.end*n;q=q.angle*n;s=l.x1;r=l.y1;l=s+g(p)*a;p=r+B(p)*d;s+=g(m)*a;m=r+B(m)*d;b[0]=c.path=["M",l,p,"A",a,d,0,0,q>=f?0:1,s,m,"Z"];return"path"},arc:function(a){var b=this.options,c=this.args,d=this.attrs,g=this.bounds,f=a.chartWidth;
  a=a.chartHeight;var l=this.group,m=l.scaleValue,p=g.angles;F(b.radius)||(g.r=f<a?f*g.xs:a*g.ys,g.r*=.3);g.innerR=za(b.innerradius,m,.8*g.r,this.group.snaps,l.isBelow).value;g.innerR>g.r&&(g.innerR+=g.r,g.r=g.innerR-g.r,g.innerR-=g.r);this.fillPattern||(this.fillOptions.radialGradient=!0,this.fillPattern="radial");"radial"===this.fillPattern&&(this.fillOptions.cx=this.fillOptions.cy=.5);c[0]=g.x1;c[1]=g.y1;c[2]=g.r;c[3]=g.innerR;c[4]=p.start*n;c[5]=p.end*n;d.ringpath=c.slice(0);return"ringpath"},text:function(a){var b=
  this.args,c=this.style,d=this.attrs,g=this.group,f=this.bounds,n=this.options,l=this.getAbsoluteBounds(),m=F(n.align,g.options.textalign,"center").toLowerCase(),s=F(n.valign,g.options.textvalign,"middle").toLowerCase(),q=A(F(n.text,n.label)),v=a.logic.smartLabel,B=Q(n.wrap,g.options.wraptext,1),z,E,C=F(n.rotatetext,g.options.rotatetext,"0").toLowerCase(),C=na.textRotationOptions[C],I="0"!==C?"y":"x",K=a.options.orphanStyles;a=p({},K.defaultStyle.style||{});K=g.id&&K[g.id.toLowerCase()]||ba;a=p(a,
  K.style);var K=parseFloat(a.fontSize),W=F(n.font,g.options.font,a.fontFamily),g=Q(n.fontsize,g.options.fontsize,K)*g.scaleText;B&&(z=Q(n.wrapwidth,this.hasDimensionX?l.width/f.xs:void 0),E=Q(n.wrapheight,this.hasDimensionY?l.height/f.ys:void 0),z&&(z*=f.xs),E&&(E*=f.ys));c.fontFamily=W;c.fontWeight=Q(n.bold,n.isbold,0)?"bold":"normal";Q(n.italic,n.isitalic,0)&&(c.fontStyle="italic");n.bgcolor&&(!d["text-bound"]&&(d["text-bound"]=[]),d["text-bound"][0]=r(n.bgcolor));n.bordercolor&&(!d["text-bound"]&&
  (d["text-bound"]=[]),d["text-bound"][1]=r(n.bordercolor),d["text-bound"][2]=Q(n.borderthickness,1),d["text-bound"][3]=Q(n.padding,1));n.fontcolor&&(d.fill=r(n.fontcolor),this.fillOptions&&(this.fillOptions.color=d.fill));c.fontSize=g+"px";g===K?c.lineHeight=a.lineHeight:oa(c);d["text-anchor"]=na.textAlignOptions[m]||na.textAlignOptions.center;v.setStyle(c);c=v.getSmartText(q,z,E,!1);d["vertical-align"]=na.textVerticalAlignOptions[s]||na.textVerticalAlignOptions.middle;d["text-anchor"]===na.textAlignOptions.left?
  l[I]+=Q(n.leftmargin,0):d["text-anchor"]===na.textAlignOptions.center&&(l[I]+=.5*Q(n.leftmargin,0));"0"!==C&&(d.rotation=[parseFloat(C),l.x,l.y]);b[0]=d.x=l.x;b[1]=d.y=l.y;b[2]=d.text=c.text;c.tooltext&&(d.title=c.tooltext);delete d.stroke;delete d["stroke-weight"];return"text"},image:function(a){var b=this,c=b.style,d=a.chartWidth,g=a.chartHeight;a=b.options;var f=b.attrs,n=b.args,l=C(a.url),m=b.group.scaleImageX*F(Number(a.xscale),100)/100,s=b.group.scaleImageY*F(Number(a.yscale),100)/100,r=b.getAbsoluteBounds(),
  v={width:1,height:1},B;if(!l)return n[0]=f.x=r.x,n[1]=f.y=r.y,n[2]=f.width=r.width,n[3]=f.height=r.height,n[4]=f.r=r.r,"rect";B=new q.Image;B.onload=function(){v=W("none","top","left",100,0,d,g,B);delete v.x;delete v.y;v=p(v,{width:(b.hasDimensionX?r.unscaled.width:v.width)*m,height:(b.hasDimensionY?r.unscaled.height:v.height)*s});setTimeout(function(){var a,d,g;if(a=b.wrapper){a.attr(v);if(d=b.tracker)g=a.getBBox(),d.attr({x:g.x,y:g.y,width:g.width,height:g.height});a.css({opacity:c.opacity=O(Q(b.fillAlpha,
  b.borderAlpha),b.borderAlpha)/100})}b.onload&&b.onload(v)},0)};B.src=l;n[0]=f.src=l;n[1]=f.x=r.x;n[2]=f.y=r.y;n[3]=f.width=(b.hasDimensionX?r.unscaled.width:v.width)*m;n[4]=f.height=(b.hasDimensionY?r.unscaled.height:v.height)*s;c.opacity=O(Q(b.fillAlpha,b.borderAlpha),b.borderAlpha)/100;delete f.stroke;delete f.fill;delete f["stroke-linecap"];return"image"}}});Z=function(){this.groups=[];this._idstore={};this._options={}};z.Annotations=Z;d.extend(Z.prototype,{reset:function(a,b,c){var d=this.groups,
  g;this.clear();if(c){g={};for(var f in c)switch(typeof c[f]){case "object":case "function":g["-$"+f]=g["$"+f]=g["+$"+f]=c[f];break;default:g["$"+f]=g["+$"+f]=c[f],g["-$"+f]=-1*c[f]}g=this._literals=g}b&&(this._options=b);if(a&&a.groups&&d)for(c=0;c<a.groups.length;c+=1)d.push(new U(a.groups[c],b,g,this._idstore,this))},getRenderer:function(){return this._renderer},addGroup:function(a){var b=this.getRenderer();this.groups.push(a=new U(a,this._options,this._literals,this._idstore,this));b&&(a.setup(),
  a.scale(),a.draw());return a},addItem:function(a,b,c){var g,f=this.getRenderer();"string"===typeof a?g=this._idstore[a]:(c=b,b=a);if(g&&g.addItem){if(!f&&c){d.raiseWarning(this,"04031411430","run","Annotations~addItem()","Cannot draw the shapeif the group has not been drawn. Use Annotations~draw() to draw the group and pass the renderer to it.");return}a=g.addItem(b,c)}else a=this.addGroup({}).addItem(b,c);return a},draw:function(a){var b=this.groups,c,d;if(b&&(this._renderer=a||this._renderer))for(c=
  0,d=b.length;c<d;c++)a=b[c],a.setup(),a.scale(),a.draw()},clear:function(){var a=this.groups,b;if(a){for(;b=a.shift();)b.destroy();this.shapesToDraw=[]}},dispose:function(){var a;this.disposing=!0;this.clear();for(a in this)delete this[a];this.disposed=!0},hide:function(a){if(a=this._idstore[a])return a.attrs.visibility="hidden",a.wrapper&&a.wrapper.hide(),a},show:function(a){if(a=this._idstore[a])return a.attrs.visibility="",a.wrapper&&a.wrapper.show(),a},update:function(a,b,c){a=this._idstore[a];
  var d;if(a&&b){if("object"===typeof b)for(d in b.id&&delete b.id,b.type&&delete b.type,b)a.options[(d+"").toLowerCase()]=b[d]+"";else a.options[(b+"").toLowerCase()]=c+"";a.wrapper&&(a.scale(),a.setup(),a.draw());return a}},destroy:function(a){var b=this._idstore[a],c=b.group;b&&"function"===typeof b.destroy&&(c&&c.removeItem(a),b.destroy())},shapesToDraw:[]});d.core.addEventListener("beforeinitialize",function(a){"javascript"===a.sender.options.renderer&&(a.sender.annotations=new Z)});d.core.addEventListener("disposed",
  function(a){a.sender.annotations&&a.sender.annotations.dispose()});d.addEventListener("internal.animationComplete",function(a){var b=(a=a.sender.annotations)&&a.shapesToDraw,c=b&&b.length,d,g;if(c){for(g=0;g<c;g++)d=b[g],d.queueDraw=!1,d.scale(),d.setup(),d.draw();a.shapesToDraw=[]}});m.addEventListener("rendered",function(a,b){if("javascript"===b.renderer){var c=a.sender,d=c.jsVars||{},g=d.instanceAPI;d.hcObj&&g&&g.drawAnnotations?(c.showAnnotation||(c.showAnnotation=function(){c.annotations.show.apply(c.annotations,
  arguments)}),c.hideAnnotation||(c.hideAnnotation=function(){c.annotations.hide.apply(c.annotations,arguments)})):(delete c.showAnnotation,delete c.hideAnnotation)}})}]);
  FusionCharts.register("module",["private","modules.renderer.js-base",function(){var d=this,m=d.hcLib,z=m.Raphael,q=d.window,E=q.document,b=m.BLANKSTRING,K=m.createTrendLine,I="https:"===q.location.protocol?"https://export.api3.fusioncharts.com/":"http://export.api3.fusioncharts.com/",c=m.pluck,s=m.getValidValue,a=m.pluckNumber,v=m.getFirstValue,O=m.getDefinedColor,B=m.parseUnsafeString,g=m.FC_CONFIG_STRING,f=m.extend2,n=m.getDashStyle,p=m.parseTooltext,F=m.toPrecision,Q=m.regex.dropHash,l=m.HASHSTRING,
  C=m.getSentenceCase,A=m.addEvent,W=function(a){return void 0!==a&&null!==a},r=q.Math,oa=m.TOUCH_THRESHOLD_PIXELS,ga=m.CLICK_THRESHOLD_PIXELS,ba=r.min,V=r.max,ta=r.abs,za=r.ceil,Aa=r.floor,Z=r.log,U=r.pow,na=r.sqrt,H=r.round,T=m.graphics.getColumnColor,fa=m.getFirstColor,k=m.setLineHeight,L=m.pluckFontSize,$=m.getFirstAlpha,aa=m.graphics.getDarkColor,sa=m.graphics.getLightColor,Y=m.graphics.convertColor,Ea=m.COLOR_TRANSPARENT,la=m.POSITION_CENTER,ya=m.POSITION_TOP,Ia=m.POSITION_BOTTOM,ma=m.POSITION_RIGHT,
  Ma=m.POSITION_LEFT,pa=m.parsexAxisStyles,qa=m.chartAPI,La=m.graphics.mapSymbolName,Ya=qa.singleseries,ib=qa.multiseries,Ja=m.COMMASTRING,Ta=m.STRINGUNDEFINED,Na=m.ZEROSTRING,sb=m.ONESTRING,Wa=m.HUNDREDSTRING,Ga=m.PXSTRING,Sb=m.COMMASPACE,Rb=q.navigator.userAgent.match(/(iPad|iPhone|iPod)/g),Fb=!/fusioncharts\.com$/i.test(q.location.hostname),jb={left:"start",right:"end",center:"middle"},yb=m.BLANKSTRINGPLACEHOLDER,kb=m.BGRATIOSTRING,h=m.COLOR_WHITE,G=m.TESTSTR,u=m.graphics.getAngle,D=m.axisLabelAdder,
  N=m.falseFN,da=m.NumberFormatter,ha=m.getLinkAction,ra=m.getAxisLimits,ua=m.createDialog,ja=function(a,b){return 0<a?Z(a)/Z(b||10):null},Ha=m.hasTouch=void 0!==E.documentElement.ontouchstart,Ba=m.fireEvent=function(a,b,c,d){m.dem.fire(a,b,c,d)},xa={1:"bold",0:"normal"},Ka={1:"italic",0:"normal"},eb={1:"underline",0:"none"},ia={font:function(a,b){b.style.fontFamily=a},size:function(a,b){a&&(b.style.fontSize=L(a)+Ga)},color:function(a,c,d){c.style.color=a&&a.replace&&a.replace(Q,l)||b;d&&(c.color=c.style.color)},
  bgcolor:function(a,c){c.style.backgroundColor=a&&a.replace&&a.replace(Q,l)||b},bordercolor:function(a,c){c.style.border="1px solid";c.style.borderColor=a&&a.replace&&a.replace(Q,l)||b},ishtml:b,leftmargin:function(b,c){c.style.marginLeft=a(b,0)+Ga},letterspacing:function(b,c){c.style.letterSpacing=a(b,0)+Ga},bold:function(a,b){b.style.fontWeight=xa[a]||""},italic:function(a,b){b.style.fontStyle=Ka[a]||""},underline:function(a,b){b.style.textDecoration=eb[a]||""}},Da=m.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:"divLineAlpha3D",legendBgColor:"legendBgColor3D",legendBorderColor:"legendBorderColor3D",toolTipbgColor:"toolTipbgColor3D",toolTipBorderColor:"toolTipBorderColor3D",baseFontColor:"baseFontColor3D",anchorBgColor:"anchorBgColor3D"}},fb=function(){var a={},b,c=function(){var h,e,g,f,u=0,n,k,l=parseInt(d.core.options.resizeTrackingInterval,10)||300,m;for(h in a)u+=1,e=a[h],g=e.jsVars,n=e.ref,!e.disposed&&(f=n&&n.parentNode)&&(k=n.style)&&(/\%/g.test(k.width)||
  /\%/g.test(k.height))?(n=f.offsetWidth,m=f.offsetHeight,!g.resizeLocked&&(n&&g._containerOffsetW!==n||m&&g._containerOffsetH!==m)&&(e.resizeTo&&e.resizeTo(),g._containerOffsetW=n,g._containerOffsetH=m)):(delete a[h],--u);b=u?setTimeout(c,l):clearTimeout(b)};return function(h,e){var g=h.jsVars,f=e||h.ref&&h.ref.parentNode||{};g._containerOffsetW=f.parentNode.offsetWidth;g._containerOffsetH=f.parentNode.offsetHeight;a[h.id]=h;b||(b=setTimeout(c,parseInt(d.core.options.resizeTrackingInterval,10)||300))}}(),
  Pa={getExternalInterfaceMethods:function(){var a=qa[this.jsVars.type],a=a&&a.eiMethods,b="saveAsImage,print,exportChart,getXML,hasRendered,signature,cancelExport,getSVGString,lockResize,showChartMessage,",c;if("string"===typeof a)b+=a+Ja;else if(void 0!==a||null!==a)for(c in a)b+=c+Ja;return b.substr(0,b.length-1)},drawOverlayButton:function(a){var b=this.jsVars,c=b.overlayButton,h,e;if(a&&a.show){c||(c=b.overlayButton=E.createElement("span"),m.dem.listen(c,"click",function(){d.raiseEvent("OverlayButtonClick",
  a,b.fcObj)}));for(h=a.message?a.message:"Back";c.firstChild;)c.removeChild(c.firstChild);c.appendChild(E.createTextNode(h));b.overlayButtonMessage=h;h={border:"1px solid "+(a.borderColor?a.borderColor.replace(Q,l):"#7f8975"),backgroundColor:a.bgColor?a.bgColor.replace(Q,l):"#edefec",fontFamily:a.font?a.font:"Verdana,sans",color:"#"+a.fontColor?a.fontColor:"49563a",fontSize:(a.fontSize?a.fontSize:"10")+Ga,padding:(a.padding?a.padding:"3")+Ga,fontWeight:0===parseInt(a.bold,10)?"normal":"bold",position:"absolute",
  top:"0",right:"0",_cursor:"hand",cursor:"pointer"};for(e in h)c.style[e]=h[e];b.hcObj.container.appendChild(c);b.overlayButtonActive=!0}else c&&(b.overlayButton=c.parentNode.removeChild(c),b.overlayButtonActive=!1,delete b.overlayButtonMessage)},print:function(a){return this.jsVars.hcObj&&this.jsVars.hcObj.hasRendered&&this.jsVars.hcObj.print(a)},exportChart:function(a){var b=this.jsVars.hcObj;return b&&b.options&&b.options.exporting&&b.options.exporting.enabled?b.exportChart(a):!1},getSVGString:function(){return this.jsVars&&
  this.jsVars.hcObj&&this.jsVars.hcObj.paper&&this.jsVars.hcObj.paper.toSVG()},resize:function(){var a=this.jsVars,b=a.container,c=a.hcObj;c&&(c&&c.destroy&&c.destroy(),m.createChart(a.fcObj,b,a.type,void 0,void 0,!1,!0),delete a.isResizing)},lockResize:function(a){return"boolean"!==typeof a?!!this.jsVars.resizeLocked:this.jsVars.resizeLocked=a},showChartMessage:function(a,b,c){var d=this.jsVars,e=d.hcObj,h=d.fcObj,g=h.options;d.msgStore[a]&&(a=d.msgStore[a]);b&&e&&e.hasRendered?a?e.showMessage(a,c):
  e.hideLoading():(e&&e.destroy&&e.destroy(),h._chartMessageImageStyle={imageHAlign:g.baseChartMessageImageHAlign,imageVAlign:g.baseChartMessageImageVAlign,imageAlpha:g.baseChartMessageImageAlpha,imageScale:g.baseChartMessageImageScale},h._chartMessageStyle={color:g.baseChartMessageColor,fontFamily:g.baseChartMessageFont,fontSize:g.baseChartMessageFontSize},m.createChart(d.fcObj,d.container,d.type,void 0,a));return a},signature:function(){return"FusionCharts/3.4.0 (XT)"}},Oc=m.HCstub=function(c,d,h,
  g){c=c.chart;var e=a(c.showborder,1)?a(c.borderthickness,1):0,f=a(c.charttopmargin,g.charttopmargin,15)+e,u=a(c.chartrightmargin,g.chartrightmargin,15)+e,n=a(c.chartbottommargin,g.chartbottommargin,15)+e,e=a(c.chartleftmargin,g.chartleftmargin,15)+e,k=f+n,l=e+u;h*=.7;d*=.7;k>h&&(f-=(k-h)*f/k,n-=(k-h)*n/k);l>d&&(e-=(l-d)*e/l,u-=(l-d)*u/l);d={_FCconf:{0:{stack:{}},1:{stack:{}},x:{stack:{}},oriCatTmp:[],isSpline:-1!==g.chartInstance.options.chartType.search(/spline/i),noWrap:!1,marginLeftExtraSpace:0,
  marginRightExtraSpace:0,marginBottomExtraSpace:0,marginTopExtraSpace:0,marimekkoTotal:0},chart:{alignTicks:!1,ignoreHiddenSeries:!1,events:{},reflow:!1,spacingTop:f,spacingRight:u,spacingBottom:n,spacingLeft:e,marginTop:f,marginRight:u,marginBottom:n,marginLeft:e,borderRadius:0,plotBackgroundColor:"#FFFFFF",textDirection:"1"===c.hasrtltext?"rtl":"",style:{},animation:a(c.defaultanimation,c.animation,1)?{duration:500*a(c.animationduration,1)}:!1},colors:"AFD8F8 F6BD0F 8BBA00 FF8E46 008E8E D64646 8E468E 588526 B3AA00 008ED6 9D080D A186BE CC6600 FDC689 ABA000 F26D7D FFF200 0054A6 F7941C CC3300 006600 663300 6DCFF6".split(" "),
  credits:{href:m.CREDIT_HREF,text:m.CREDIT_STRING,enabled:Fb},global:{},labels:{items:[]},lang:{},legend:{enabled:!0,symbolWidth:12,borderRadius:1,backgroundColor:"#FFFFFF",initialItemX:0,title:{text:b,x:0,y:0,padding:2},scroll:{},itemStyle:{}},loading:{},plotOptions:{series:{pointPadding:0,borderColor:"#333333",events:{},animation:a(c.animation,c.defaultanimation,1)?{duration:1E3*a(c.animationduration,1)}:!1,states:{hover:{enabled:!1},select:{enabled:!1}},dataLabels:{enabled:!0,color:"#555555",style:{},
  formatter:function(){return this.point.showPercentValues?g.numberFormatter.percentValue(this.percentage):this.point.displayValue}},point:{events:{}}},area:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},radar:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},areaspline:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},line:{shadow:!0,
  states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},scatter:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},bubble:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},spline:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},pie:{size:"80%",allowPointSelect:!0,cursor:"pointer",
  point:{events:{legendItemClick:c.interactivelegend===Na?N:function(){this.slice()}}}},pie3d:{size:"80%",allowPointSelect:!0,cursor:"pointer",point:{events:{legendItemClick:c.interactivelegend===Na?N:function(){this.slice()}}}},column:{},floatedcolumn:{},column3d:{},bar:{},bar3d:{}},point:{},series:[],subtitle:{text:b,style:{}},symbols:[],title:{text:b,style:{}},toolbar:{},tooltip:{style:{}},xAxis:{steppedLabels:{style:{}},labels:{x:0,style:{},enabled:!1},lineWidth:0,plotLines:[],plotBands:[],title:{style:{},
  text:b},tickWidth:0,scroll:{enabled:!1}},yAxis:[{startOnTick:!1,endOnTick:!1,title:{style:{},text:b},tickLength:0,labels:{x:0,style:{}},plotBands:[],plotLines:[]},{tickLength:0,gridLineWidth:0,startOnTick:!1,endOnTick:!1,title:{style:{},text:b},labels:{x:0,style:{},enabled:!1,formatter:function(){return this.value!==yb?this.value:b}},opposite:!0,plotBands:[],plotLines:[]}],exporting:{buttons:{exportButton:{},printButton:{enabled:!1}}}};c.palettecolors&&"string"===typeof c.palettecolors&&(d.colors=
  c.palettecolors.split(/\s*\,\s*/));return g.hcJSON=d},nb=function(a,b,c,d,e){var h=[],g=!1;d=d||0;for(e=e||{max:Number.MIN_VALUE,min:Number.MAX_VALUE};d<a.length;++d)if(g)if(isNaN(a[d].y)||null===a[d].y){if(!c)break}else h.push({index:d,y:a[d].y});else isNaN(a[d].y)||null===a[d].y||(g=!0,h.push({index:d,y:a[d].y}));if(2<h.length){var g=e,f={},u,n,k;for(n=0;n<h.length;++n)u=h[n].index,f["D"+u]=0;for(u=0;10>u;++u)for(n=0;n<h.length;++n)k=0===n?(3*(h[n+1].y-h[n].y)-f["D"+h[n+1].index])/2:n===h.length-
  1?(3*(h[n].y-h[n-1].y)-f["D"+h[n-1].index])/2:(3*(h[n+1].y-h[n-1].y)-f["D"+h[n+1].index]-f["D"+h[n-1].index])/4,f["D"+h[n].index]=k;u=H(b/(h.length-1));for(n=1;n<h.length;++n){k=g;for(var l=void 0,m=void 0,D=void 0,p=void 0,r=m=void 0,s=void 0,G=void 0,q=void 0,q=void 0,l=f["D"+h[0].index],m=f["D"+h[n].index],D=h[0].y,p=3*(h[n].y-h[0].y)-2*l-m,m=2*(h[0].y-h[n].y)+l+m,r=k.max,s=k.min,G=0;G<=u;G++)q=G/u,q=D+l*q+p*q*q+m*q*q*q,q<s&&(s=q),q>r&&(r=q);k.max=r;k.min=s}}d<a.length&&!c&&nb(a,b,c,d,e);return e},
  Nb=m.placeVerticalAxis=function(c,d,h,f,e,u,n,k,l,m){var D=h[g],p=D.smartLabel,r,X,q,v,N=0,B=D.marginRightExtraSpace,da=D.marginLeftExtraSpace,A={},z={},ha={},E=c.plotLines,F=c.plotBands,D=d.verticalAxisValuesPadding,ua=isNaN(d.fixedValuesPadding)?0:d.fixedValuesPadding,H=D-ua,ra=d.verticalAxisValuesPadding,ja=d.verticalAxisNamePadding,C=d.verticalAxisNameWidth,Ba=d.rotateVerticalAxisName&&String(d.rotateVerticalAxisName).toLowerCase(),I="none"!==Ba,K=c.offset?c.offset:0,Ha=0,L=0,Da=0,xa=0,Ka=0,Q=
  0,nb=0,eb,ia,Pa,ea,D=2,nb=n?B+5:da+4,fb=V(a(h.chart.plotBorderWidth,1),0),wa=c.showLine?c.lineThickness:fb,bb=function(a,b){var c,e;a&&a.label&&void 0!==s(a.label.text)&&(Pa=a.label,Pa.style&&Pa.style!==ia&&(ia=Pa.style,p.setStyle(ia)),r=p.getOriSize(a.label.text),e=(c=r.width)?c+2:0,a.isGrid?(A[b]={width:c,height:r.height,label:Pa},xa<=e&&(xa=e,d.lYLblIdx=b)):a.isTrend&&(n&&Pa.textAlign===Ma||Pa.textAlign===ma?(z[b]={width:c,height:r.height,label:Pa},Ka=V(Ka,e)):(ha[b]={width:c,height:r.height,label:Pa},
  Q=V(Q,e))))},W=function(a,d){var h,g=d?N:N+a;h=c.title.style;X=X||{};if(0<g)return I?(g<X.height&&(p.setStyle(h),X=p.getSmartText(c.title.text,e,g)),h=X.height):(g<X.width&&(p.setStyle(h),X=p.getSmartText(c.title.text,g,e)),h=X.width),c.title._actualWidth=h,c.title.text=X.text,X.tooltext&&(c.title.originalText=X.tooltext),d?g-h+a:g-h;c.title.text=b;return 0},P=function(a,b,c){for(var e in a)a[e].label.x=b,a[e].label.y=c},Da=0;for(eb=F.length;Da<eb;Da+=1)bb(F[Da],Da);Da=0;for(eb=E.length;Da<eb;Da+=
  1)bb(E[Da],Da);c.title&&c.title.text!=b&&(ia=c.title.style,p.setStyle(ia),q=p.getOriSize(G).height,c.title._originalText=c.title.text,I?(c.title.rotation="cw"===Ba?90:270,X=p.getSmartText(c.title.text,e,u),N=X.height,v=q):(c.title.rotation=0,X=p.getSmartText(c.title.text,void 0!==C?C:u,e),N=X.width,v=20));0<Q&&(L=Q+ra);l&&(f=a(f.chart.maxlabelwidthpercent,0),1<=f&&100>=f&&(l=f*l/100,xa>l&&(xa=l)));Ha=V(Ka,xa);Ha+=Ha?H+ua:0;0<N&&(Ha+=N+ja+nb);(function(){if(L+Ha>u){ea=L+Ha-u;if(L){if(ra>=ea){ra-=ea;
  return}ea-=ra;ra=0}if(H+ja>=ea)ja>=ea?ja-=ea:(H-=ea-ja,ja=0);else{ea-=H+ja;ja=H=0;if(20<Q)if(Ka>xa){if(Q-Ka>=ea){Q-=ea;return}if(Ka-Q>=ea){Ka-=ea;return}Ka>Q?(ea-=Ka-Q,Ka=Q):(ea-=Q-Ka,Q=Ka);if(2*(Ka-xa)>=ea){Q-=ea/2;Ka-=ea/2;return}ea-=2*(Ka-xa);Q=Ka=xa}else{if(Q-20>=ea){Q-=ea;return}ea-=Q-20;Q=20}if(Ka>xa){if(Ka-xa>=ea){Ka-=ea;return}ea-=Ka-xa;Ka=xa}N-v>=ea?N-=ea:(ea-=N-v,N=v,Q>=ea?Q=0:(ea-=Q,Q=0,N>=ea?N=0:(ea-=N,N=0,xa>=ea&&(Ka=xa-=ea))))}}})();Da=function(a,c){var d,t=0,h=c?Q-2:Q+a-2,g;if(0<Q){for(g in ha)Pa=
  ha[g].label,ha[g].width>h?(Pa.style&&Pa.style!==ia&&(ia=Pa.style,p.setStyle(ia)),d=p.getSmartText(Pa.text,h,e,!0),Pa.text=d.text,d.tooltext&&(Pa.originalText=d.tooltext),ha[g].height=d.height,t=V(t,d.width)):t=V(t,ha[g].width);return c?h-t+a:h-t}for(g in ha)ha[g].label.text=b;return 0}(0,!0);Da=W(Da,!0);Da=function(a){var c=0,d=V(xa,Ka)+a-2,t;if(0<d){for(t in A)Pa=A[t].label,A[t].width>d?(Pa.style&&Pa.style!==ia&&(ia=Pa.style,p.setStyle(ia)),a=p.getSmartText(Pa.text,d,e,!0),Pa.text=a.text,a.tooltext&&
  (Pa.originalText=a.tooltext),A[t].height=a.height,c=V(c,a.width)):c=V(c,A[t].width);for(t in z)Pa=z[t].label,z[t].width>d?(Pa.style&&Pa.style!==ia&&(ia=Pa.style,p.setStyle(ia)),a=p.getSmartText(Pa.text,d,e,!0),Pa.text=a.text,a.tooltext&&(Pa.originalText=a.tooltext),z[t].height=a.height,c=V(c,a.width)):c=V(c,z[t].width);return d-c}for(t in A)A[t].label.text=b;for(t in z)z[t].label.text=b;return 0}(Da);Da=W(Da);l=d.verticalAxisNamePadding-ja;Da&&l&&(Da>l?(ja+=l,Da-=l):(ja+=Da,Da=0));l=d.verticalAxisValuesPadding-
  (H+ua);Da&&l&&(Da>l?(H+=l,Da-=l):(H+=Da,Da=0));l=d.verticalAxisValuesPadding-ra;Da&&l&&(Da>l?(ra+=l,Da-=l):(ra+=Da,Da=0));0<Q&&(L=Q+ra);Ha=V(Ka,xa);Ha+=Ha?H+ua:0;0<N&&(Ha+=N+ja+nb);l=V(Ka,xa);l+=0<l?H+ua:0;0<N?(I?N<X.height&&(X=p.getSmartText(c.title.text,e,N)):(N<X.width&&(X=p.getSmartText(c.title.text,N,e)),c.title.y=-((X.height-q)/2)),c.title.text=X.text,X.tooltext&&(c.title.originalText=X.tooltext),c.title.margin=l+ja+nb+(I?N-q:N/2)):c.title.text=b;q=-(H+ua+K+da+2);B=B+ra+K+2;nb=V(Ka,xa);c.labels.style&&
  (D=.35*parseInt(c.labels.style.fontSize,10));n?(0<Q&&P(ha,q,D),0<nb&&(P(A,B,D),P(z,B,D))):(0<Q&&P(ha,B,D),0<nb&&(P(A,q,D),P(z,q,D)));c.labels._textY=D;c.labels._righttX=B;c.labels._leftX=q;Ha=Ha||wa;L=L||(k?0:fb);m?(h.chart.marginLeft+=n?L:Ha-m,h.chart.marginRight+=n?Ha-m:L):(h.chart.marginLeft+=n?L:Ha,h.chart.marginRight+=n?Ha:L);return L+Ha},bb=m.titleSpaceManager=function(c,d,h,f){var e=this.snapLiterals||(this.snapLiterals={}),u=d.chart,n=B(u.caption);d=B(u.subcaption);var k=u=a(u.captionpadding,
  10),l=c[g],m=this.smartLabel||l.smartLabel,D=!1,p=0,r,s,G=0,q=0,v=0,N=0,da=c.title,A=c.subtitle,z=V(a(c.chart.plotBorderWidth,1),0),ha=0,E=0;if(3<f){u<z&&(u=z+2);n!==b&&(r=da.style,v=za(a(parseFloat(r.fontHeight,10),parseFloat(r.lineHeight,10),12)));d!==b&&(s=A.style,N=a(parseInt(s.fontHeight,10),parseInt(s.lineHeight,10),12));if(0<v||0<N)f=V(f,0),p=v+N+u,p>f?(G=f-p,D=!0,G<u?u=V(G,5):(G-=u,u=0,N>G?(q=N-G+10,N=0,A._originalText=A.text,A.text=""):(G-=N,N=0,v>G&&(q=v-G)))):q=f-p,0<v&&(m.setStyle(r),
  v+=q,f=m.getSmartText(n,h,v),q=v-f.height,da.height=v=f.height,da.text=f.text,f.tooltext&&(da.originalText=f.tooltext),ha=f.width),0<N&&(m.setStyle(s),N+=q,h=m.getSmartText(d,h,N),q=N-h.height,N=h.height,A.text=h.text,A.height=h.height,h.tooltext&&(A.originalText=h.tooltext),E=h.width),D&&0<q&&(u+=ba(k-u,q)),p=v+N+u;p=p||z;da.isOnTop?(e.captionstarty=c.chart.marginTop,c.chart.marginTop+=p):(c.chart.marginBottom+=p,e.captionstarty=da.y=l.height-c.chart.marginBottom+u,c.chart.marginTop+=5,p+=5);da._captionWidth=
  ha;A._subCaptionWidth=E;da._lineHeight=v;A._lineHeight=N}else A&&(A.text=""),da&&(da.text="");return p},ea=m.stepYAxisNames=function(a,c,d,h,e,f){var u=0,n=h.plotLines,k=[],l,m=h.plotLines.length;c=c[g].smartLabel;for(var p=parseFloat(L(d.basefontsize,10)),D;u<m;u+=1)d=n[u],d.isGrid&&d.label&&d.label.text&&(k.push(d),0===d.value&&(l=k.length-1));if(m=k.length)if(h.labels.style?c.setStyle(h.labels.style):k[0].label&&k[0].label.style&&c.setStyle(h.labels.style),u=c.getOriSize("W").height,f||(u+=.4*
  p),a/=m-1,a<u){f=V(1,za(u/a));for(u=a=l;u<m;u+=1)d=k[u],u===e&&((u-a)%f&&D&&(D.label.text=""),a=e),d&&d.label&&((u-a)%f?d.label.text=b:D=d);for(u=a=l;0<=u;--u)d=k[u],u===e&&((a-u)%f&&D&&(D.label.text=""),a=e),d&&d.label&&((a-u)%f?d.label.text=b:D=d)}},xb=m.placeHorizontalAxis=function(c,d,h,f,e,u,n){var k=h[g],l=f&&f.chart||{},m,D,p,r,G,q,v,N,B,da,A,z,ha=0,E=0,F=10,ua=1,H=0,ra=0,ja=0,Ha=0,C=!1,Ba=!1,I=!1,Da=a(l.labelstep,0),K=a(l.xaxisminlabelwidth,0),L=a(l.maxlabelheight,u),Ka=d.labelDisplay,Q=d.rotateLabels,
  xa=d.horizontalLabelPadding,ea=k.marginBottomExtraSpace,nb=h.chart.marginLeft,Pa=h.chart.marginRight,ia=k.smartLabel,eb=k.plotBorderThickness,fb=d.catCount,wa=d.slantLabels,P=e/(c.max-c.min),bb=0,W=0,U=0,O=0,ga=f&&f.chart||{},T=1E3*a(ga.updateinterval,ga.refreshinterval),oa=ga.datastreamurl,Oc=Boolean(this.realtimeEnabled&&T&&void 0!==oa),xb,Ra,Ab,ub,Y,Tb,Nb,Kb,aa,Hb,Z,Zb,fa,$,Ca,$a,ta,qa,pa,sa,ya,Ea,La,Ja,lb,Ga=null,Na=null,Sa,Wa,sb,dc,Ya,ib,kb,jb,Wb,va,Vb,ec,Qa=[],Ib=[],pb,Cb=0,Db=0,Xb,gc,tb,fc,
  kc,yb,db,lc=d.horizontalAxisNamePadding,Bb=0,Xa=d.staggerLines,Jb=bb,Fb=!1,Rb=!1,Sb=0,mc,Eb,Mb,Ub,td,Sc,ud,$c,ad,Ec,Tc,bd,pc,Mc,Uc,Gc,cd,Nc,Vc,Ac;Vb=c.plotLines;F=va=0;for(db=Vb.length;va<db;va+=1)(D=Vb[va])&&D.label&&!D.isTrend&&F<parseInt(D.label.style.lineHeight,10)&&(F=parseInt(D.label.style.lineHeight,10),q=D.label.style);if(q||c.labels.style)q=q||c.labels.style,ia.setStyle(q),N=ia.getOriSize("W"),F=ia.lineHeight,v=N.width+4,z=ia.getOriSize("WWW").width+4;c.title&&c.title.text!=b&&(q=c.title.style,
  ia.setStyle(q),ra=ia.getOriSize("W").height,c.title.rotation=0,r=ia.getSmartText(c.title.text,e,u),E=r.height);nb!=parseInt(l.chartleftmargin,10)&&(kb=!0);Pa!=parseInt(l.chartrightmargin,10)&&(jb=!0);void 0!==l.canvaspadding&&""!==l.canvaspadding&&(Rb=!0);Wb=e-n;switch(Ka){case "none":C=I=!0;Q&&(ha=wa?300:270,N=F,F=v,v=N);break;case "rotate":ha=wa?300:270;N=F;F=v;v=N;C=!0;break;case "stagger":Ba=C=!0;B=Aa((u-ra)/F);B<Xa&&(Xa=B);break;default:Q&&(ha=wa?300:270,N=F,F=v,v=N)}k.isBar&&(C=!0);va=0;Vb=
  c.plotLines;if(typeof h._FCconf.isXYPlot!==Ta||k.isBar){xb={};Tb=Y=0;Hb=aa=null;qa={};Fb=!0;P=e/(c.max-c.min);Ub=function(a,e,d){var g,f,w,u,M,n;n=a.plotObj;M=a.labelTextWidth;M||(G=n.label,G.style&&G.style!==q&&(q=G.style,ia.setStyle(q)),M=ia.getOriSize(G.text).width+4,a.oriWidth=M,M>Ra&&(M=Ra),a.labelTextWidth=M,a.leftEdge=n.value*P-M/2,a.rightEdge=n.value*P+M/2,d&&(M=ba(M,2*(D.value-c.min)*P+h.chart.marginLeft),a.labelTextWidth=M));if(typeof e!==Ta){if(d=e.plotObj,G=d.label,G.style&&G.style!==
  q&&(q=G.style,ia.setStyle(q)),e.oriWidth?w=e.oriWidth:(w=ia.getOriSize(G.text).width+4,e.oriWidth=w),w>Ra&&(w=Ra),e.labelTextWidth=w,e.leftEdge=d.value*P-w/2,e.rightEdge=d.value*P+w/2,g=n.value*P,f=g+M/2,u=d.value*P,w=u-w/2,w<f)if(g+v<u-v)f-=w,g=u-g,a.labelTextWidth=f>g?ba(M,g):V(v,M-f/2),e.labelTextWidth=2*(g-a.labelTextWidth/2),a.leftEdge=n.value*P-a.labelTextWidth/2,a.rightEdge=n.value*P+a.labelTextWidth/2,e.leftEdge=d.value*P-e.labelTextWidth/2,e.rightEdge=d.value*P+e.labelTextWidth/2;else return e.labelTextWidth=
  0,d.label.text=b,!1}else d&&(M=ba(M,2*(c.max-D.value)*P+h.chart.marginRight),a.labelTextWidth=M,a.leftEdge=n.value*P-M/2,a.rightEdge=n.value*P+M/2);a.nextCat=e;return!0};Ba?Xa>gc?Xa=gc:2>Xa&&(Xa=2):Xa=1;for(db=Vb.length;va<db;va+=1)(D=Vb[va])&&D.label&&typeof D.label.text!==Ta&&(D.isGrid?(ub={plotObj:D},D.isCat&&(Kb=va%Xa,xb[Kb]||(xb[Kb]=[]),aa?(Hb=ub,xb[Kb].push(Hb)):(Hb=aa=ub,xb[Kb].push(aa))),Qa.push(ub)):D.isTrend&&Ib.push({plotObj:D}));ec=c.plotBands;va=0;for(db=ec.length;va<db;va+=1)(D=ec[va])&&
  D.isTrend&&D.label&&typeof D.label.text!==Ta&&Ib.push({plotObj:D});if(Qa.length)if(!I&&!ha)if(k.distributedColumns)for(va=0,db=Qa.length;va<db;va+=1)$a=Qa[va],ta=va%Xa,D=$a.plotObj,D.label&&D.isCat&&(0<=va-Xa?(Zb=Qa[va-Xa],La=Zb.plotObj.value*P+Zb.plotObj._weight*P/2):(Zb=null,La=c.min*P-nb),va+Xa<db?(Z=Qa[va+Xa],Ja=Z.plotObj.value*P-Z.plotObj._weight*P/2):(Z=null,Ja=c.max*P+Pa),G=D.label,G.style&&G.style!==q&&(q=G.style,ia.setStyle(q)),fa=D.value*P,ad=fa-D._weight*P/2,$c=fa+D._weight*P/2,1<Xa?(sa=
  ad-La,ya=$c+Ja,lb=$c-ad+ba(sa,ya)):lb=$c-ad,G=D.label,G.style&&G.style!==q&&ia.setStyle(G.style),lb<v&&v<ia.getOriSize(G.text).width?(D.label.text=b,$a.labelTextWidth=0):($a.labelTextWidth=lb,m=ia.getSmartText(G.text,lb-4,u,C),lb=m.width+4,$a.labelTextWidth=lb,O=V(O,m.height)));else{gc=Qa.length;Xb=Qa.length-1;(pb=(Qa[Xb].plotObj.value-Qa[0].plotObj.value)*P)?(Ra=.1*pb,Ab=V(.2*pb,pb/gc)):Ab=Ra=e;for(p in xb)for(va=0,$=xb[p].length;va<$;){for(Nb=va+1;!Ub(xb[p][va],xb[p][Nb]);)Nb+=1;va=Nb}aa&&(Tb=(aa.plotObj.value-
  c.min)*P+nb-aa.labelTextWidth/2);D=Qa[0].plotObj;aa&&D===aa.plotObj||(G=D.label,G.style&&G.style!==q&&(q=G.style,ia.setStyle(q)),A=ia.getOriSize(G.text).width+4,fa=(D.value-c.min)*P+nb,aa&&(Sa=Tb-fa,A=Sa<A&&Sa>v/2?2*Sa:0),Qa[0].labelTextWidth=A,0<A&&(N=fa-A/2),N<Tb&&(Tb=N));Hb&&(A=Hb.labelTextWidth,Y=(c.max-Hb.plotObj.value)*P+Pa-A/2);D=Qa[Xb].plotObj;Hb&&D===Hb.plotObj||(G=D.label,G.style&&G.style!==q&&(q=G.style,ia.setStyle(q)),A=ia.getOriSize(G.text).width+4,fa=(c.max-D.value)*P+Pa,Hb&&(Sa=fa-
  Y,A=Sa<A&&Sa>v/2?2*Sa:0),Qa[Xb].labelTextWidth=A,0<A&&(N=fa-A/2),N<Y&&(Y=N));Cb=0>Tb?-Tb:0;Db=0>Y?-Y:0;yb=Cb+Db;if(0<yb)for(p in Wb>yb?(Ca=(Ca=Db*e/(Db+e))?Ca+4:0,h.chart.marginRight+=Ca,e-=Ca,Ca=(Ca=Cb*e/(Cb+e))?Ca+4:0,h.chart.marginLeft+=Ca,e-=Ca,P=e/(c.max-c.min)):Cb<Db?Wb>=Db&&jb?(Ca=(Ca=Db*e/(Db+e))?Ca+4:0,h.chart.marginRight+=Ca,e-=Ca,P=e/(c.max-c.min)):kb&&(Ca=(Ca=Cb*e/(Cb+e))?Ca+4:0,h.chart.marginLeft+=Ca,e-=Ca,P=e/(c.max-c.min)):Wb>=Cb&&kb?(Ca=(Ca=Cb*e/(Cb+e))?Ca+4:0,h.chart.marginLeft+=
  Ca,e-=Ca,P=e/(c.max-c.min)):jb&&(Ca=(Ca=Db*e/(Db+e))?Ca+4:0,h.chart.marginRight+=Ca,e-=Ca,P=e/(c.max-c.min)),Pa=h.chart.marginRight,nb=h.chart.marginLeft,pb=(Qa[Xb].plotObj.value-Qa[0].plotObj.value)*P,Ra=.1*pb,Ab=V(.2*pb,pb/gc),xb){va=0;for($=xb[p].length;va<$;){for(Nb=va+1;!Ub(xb[p][va],xb[p][Nb],!0);)Nb+=1;va=Nb}p+=1}va=0;for(db=Qa.length;va<db;va+=1)if($a=Qa[va],ta=va%Xa,D=$a.plotObj,D.label)if(D.isCat)$a.labelTextWidth&&(qa[ta]=$a);else{Z=(Zb=qa[ta])?Zb.nextCat:xb[ta]?xb[ta][0]:null;pa=null;
  if(va>=Xa)for(Na=va-Xa,pa=Qa[Na];!pa.labelTextWidth;)if(Na>=Xa)Na-=Xa,pa=Qa[Na];else{pa=null;break}La=pa?pa.rightEdge:c.min*P-nb;Ja=Z?Z.leftEdge:c.max*P+Pa;G=D.label;G.style&&G.style!==q&&(q=G.style,ia.setStyle(q));A=ia.getOriSize(G.text).width+4;ib=D.value*P-A/2;if(k.isBar&&va==db-1&&pa)La>ib&&(pa.plotObj.label.text=b,pa.labelTextWidth=0,La=pa.leftEdge);else if(La>ib||Ja<ib+A){D.label.text=b;$a.labelTextWidth=0;continue}La=V(La,ib);fa=D.value*P;lb=2*ba(fa-La,Ja-fa);lb.toFixed&&(lb=lb.toFixed(2));
  G=D.label;G.style&&G.style!==q&&ia.setStyle(G.style);lb<v&&v<ia.getOriSize(G.text).width?(D.label.text=b,$a.labelTextWidth=0):($a.labelTextWidth=lb,m=ia.getSmartText(G.text,lb-4,u,C),lb=m.width+4,$a.labelTextWidth=lb,$a.leftEdge=fa-lb/2,$a.rightEdge=fa+lb/2,O=V(O,m.height))}pa=Ea=null;va=0;for(db=Qa.length;va<db;va+=1)if($a=Qa[va],D=$a.plotObj,ta=va%Xa,D.isCat&&$a.labelTextWidth){pa=Ea=null;fa=D.value*P;if(va>=Xa)for(Na=va-Xa,pa=Qa[Na];!pa.labelTextWidth;)if(Na>Xa)Na-=Xa,pa=Qa[Na];else{pa=null;break}sa=
  pa?fa-pa.rightEdge:fa-c.min*P+h.chart.marginLeft;if(va+Xa<db)for(Ga=va+Xa,Ea=Qa[Ga];!Ea.labelTextWidth;)if(Ga+Xa<db-1)Ga+=Xa,Ea=Qa[Ga];else{Ea=null;break}ya=Ea?Ea.leftEdge-fa:c.max*P+h.chart.marginRight-fa;lb=2*ba(sa,ya);lb>Ab&&(lb=Ab);lb>$a.oriWidth&&(lb=$a.oriWidth);$a.labelTextWidth=lb;G=D.label;G.style&&G.style!==q&&ia.setStyle(G.style);m=ia.getSmartText(G.text,lb-4,u,C);$a.labelTextWidth=m.width+4;O=V(O,m.height);$a.rightEdge=fa+$a.labelTextWidth/2}}else if(ha)for(va=0,db=Qa.length;va<db;va+=
  1)if((D=Qa[va].plotObj)&&D.label&&D.label.text){G=D.label;G.style&&G.style!==q&&(q=G.style,ia.setStyle(q));p=1;if(va+p<db)for(Ec=Qa[p+va].plotObj;Ec&&(Ec.value-D.value)*P<v;)if(D.isCat){if(Ec.label){Ec.label.text=b;p+=1;if(p+va>=db-1)break;Ec=Vb[p+va].plotObj}}else if(Ec.isCat){D.label.text=b;D=Ec;va+=p-1;G=D.label;G.style&&G.style!==q&&(q=G.style,ia.setStyle(q));break}U=V(U,ia.getOriSize(G.text).width+4)}p=0;for(db=Ib.length;p<db;p+=1)(D=Ib[p].plotObj)&&D.label&&void 0!==s(D.label.text)&&(G=D.label,
  G.style&&G.style!==q&&(q=G.style,ia.setStyle(q)),m=ia.getOriSize(G.text),G.verticalAlign===Ia?bb=V(bb,m.height):W=V(W,m.height))}else{for(db=Vb.length;va<db;va+=1)(D=Vb[va])&&(D.isGrid?Qa.push(D):D.isTrend&&Ib.push(D));ec=c.plotBands;va=0;for(db=ec.length;va<db;va+=1)(D=ec[va])&&Ib.push(D);Xb=Qa.length-1;gc=Qa.length;Ba&&(Xa>gc?Xa=gc:2>Xa&&(Xa=2));if(gc)for(c.scroll&&c.scroll.viewPortMin&&c.scroll.viewPortMax?(dc=c.scroll.viewPortMin,Ya=c.scroll.viewPortMax,jb=kb=!1):(dc=c.min,Ya=c.max),pb=(Qa[Xb].value-
  Qa[0].value)*P,tb=td=pb/(fb-1),fc=(Qa[0].value-dc)*P,kc=(Ya-Qa[Xb].value)*P,"auto"===Ka?tb<z&&(ha=wa?300:270,N=F,F=v,v=N,C=!0):"stagger"===Ka&&(tb*=Xa),"line"!==this.defaultSeriesType&&("area"===this.defaultSeriesType?k.drawFullAreaBorder&&(eb>fc&&(dc=c.min-=eb/(2*P),fc+=(Qa[0].value-dc)*P),eb>kc&&(Ya=c.max+=eb/(2*P),kc+=(Ya-Qa[Xb].value)*P)):(eb>fc&&(dc=c.min-=eb/(2*P),fc+=(Qa[0].value-dc)*P),eb>kc&&(Ya=c.max+=eb/(2*P),kc+=(Ya-Qa[Xb].value)*P))),v<K&&(v=K),ua=Ba||I?V(1,Da):V(1,Da,za(v/tb)),k.x&&
  (k.x.stepValue=ua),tb*=ua,da=2*(fc+nb),(G=Vb[0].label)&&G.text&&(G.style&&ia.setStyle(G.style),A=270===ha?ba(tb,ia.getOriSize(G.text).height+4):ba(tb,ia.getOriSize(G.text).width+4),A>da&&(I||(Cb=(A-da)/2),kb||(Rb&&(Cb=0),tb-=Cb/(fb-1),Mb=tb*(fb-1),P=tb,mc=(pb-Mb)/P,Ya=c.max+=mc,dc=c.min-=mc,Cb=0,pb=Mb,fc=(Qa[0].value-dc)*P,kc=(Ya-Qa[Xb].value)*P))),da=2*(kc+Pa),(G=Vb[Xb].label)&&G.text&&(G.style&&ia.setStyle(G.style),A=270===ha?ba(tb,ia.getOriSize(G.text).height+4):ba(tb,ia.getOriSize(G.text).width+
  4),A>da&&(I||(Db=(A-da)/2),jb||(Rb&&(Db=0),tb-=Db/(fb-1),Mb=tb*(fb-1),P=tb,mc=(pb-Mb)/P,Db=0,pb=Mb,fc=(Qa[0].value-dc)*P,kc=(Ya-Qa[Xb].value)*P))),yb=Cb+Db,0<yb&&(Wb>yb?(Ca=(Ca=Db*e/(Db+e))?Ca+4:0,h.chart.marginRight+=Ca,e-=Ca,Ca=(Ca=Cb*e/(Cb+e))?Ca+4:0,h.chart.marginLeft+=Ca,e-=Ca,P=e/(c.max-c.min)):Cb<Db?Wb>=Db&&jb?(Ca=(Ca=Db*e/(Db+e))?Ca+4:0,h.chart.marginRight+=Ca,e-=Ca,P=e/(c.max-c.min)):kb&&(Ca=(Ca=Cb*e/(Cb+e))?Ca+4:0,h.chart.marginLeft+=Ca,e-=Ca,P=e/(c.max-c.min)):Wb>=Cb&&kb?(Ca=(Ca=Cb*e/(Cb+
  e))?Ca+4:0,h.chart.marginLeft+=Ca,e-=Ca,P=e/(c.max-c.min)):jb&&(Ca=(Ca=Db*e/(Db+e))?Ca+4:0,h.chart.marginRight+=Ca,e-=Ca,P=e/(c.max-c.min)),pb=(Qa[Xb].value-Qa[0].value)*P,tb=pb/(fb-1),Ba&&(tb*=Xa),ua=Ba||I?V(1,Da):ha?V(1,Da,za(F/tb)):V(1,Da,za(v/tb)),k.x&&(k.x.stepValue=ua),tb*=ua),p=0;p<gc;p+=1){D=Qa[p];if(p%ua&&D.label){if(D.stepped=!0,D.label.style=c.steppedLabels.style,!Oc)continue}else D.stepped=!1;D&&D.label&&void 0!==s(D.label.text)&&(G=D.label,G.style&&G.style!==q&&(q=G.style,ia.setStyle(q)),
  ha&&I?(m=ia.getOriSize(G.text),U=V(U,m.width+4),O=V(O,m.height)):I||(m=ha||Ba?ia.getOriSize(G.text):ia.getSmartText(G.text,tb-4,u,C),U=V(U,m.width+4),O=V(O,m.height)))}p=0;for(db=Ib.length;p<db;p+=1)(D=Ib[p])&&D.label&&void 0!==s(D.label.text)&&(G=D.label,G.style&&G.style!==q&&(q=G.style,ia.setStyle(q)),m=ia.getOriSize(G.text),G.verticalAlign===Ia?bb=V(bb,m.height):W=V(W,m.height));c.scroll&&c.scroll.enabled&&!ha&&!I&&(mc=U/2,h.chart.marginLeft<mc&&(Eb=mc-h.chart.marginLeft,Wb>Eb&&(e-=Eb,Wb-=Eb,h.chart.marginLeft+=
  Eb)),h.chart.marginRight<mc&&(Eb=mc-h.chart.marginRight,Wb>Eb&&(e-=Eb,Wb-=Eb,h.chart.marginRight+=Eb)))}I?(Bb=F,ha&&(Bb=U)):Bb=ha?U:Ba?Xa*O:O;0<Bb&&(Bb+xa>L&&(Bb=L-xa,Xa=Math.floor(Bb/O)),Jb+=xa+Bb);0<E&&(Jb+=E+lc);Wa=xa-4;sb=W+Jb+2;N=0;sb>u&&(Sa=sb-u,lc>Sa?(lc-=Sa,Sa=0):(Sa-=lc,lc=0,Wa>Sa?(Wa-=Sa,Sa=0):(Sa-=Wa,Wa=0),xa=Wa+4),W>Sa?(W-=Sa,Sa=0):(0<W&&(Sa-=W,W=0),0<Sa&&(bb>Sa?(bb-=Sa,Sa=0):(0<bb&&(Sa-=bb,bb=0),0<Sa&&((N=E-ra)>Sa?(E-=Sa,Sa=0):(Sa-=N,E=ra,0<Sa&&((N=Bb-F)>Sa?(Bb-=Sa,Sa=0):(Sa-=N,Bb=F,
  0<Sa&&(Sa-=E+lc,E=0,0<Sa&&(Sa-=Bb,Bb=0,0<Sa&&(xa-=Sa)))))))))));xa+=ea;Tc=k.is3d?-h.chart.xDepth:0;bd=Bb+xa;Gc=Tc;cd=.5*F;H=F+xa;db=Qa.length;ja=0;if(Fb)if(ha)for(Ac=ma,pc=wa?xa+8:xa+4,db=Qa.length,p=0;p<db;p+=1)(D=Qa[p].plotObj)&&D.label&&void 0!==s(D.label.text)&&(G=D.label,G.style&&G.style!==q&&(q=G.style,ia.setStyle(q)),va=1,m=ia.getSmartText(G.text,Bb-4,v,C),G.text=m.text,m.tooltext&&(G.originalText=m.tooltext),Gc=Tc+cd/2,G.y=pc,G.x=Gc,G.rotation=ha,G.textAlign=Ac,ja+=1);else for(Mc=Bb,Ac=la,
  pc=H,p=0;p<db;p+=ua)D=Qa[p].plotObj,F=parseInt(D.label.style.lineHeight,10),D&&D.label&&void 0!==s(D.label.text)&&(G=D.label,G.style&&G.style!==q&&(q=G.style,ia.setStyle(q)),I||(m=ia.getSmartText(G.text,Qa[p].labelTextWidth-4,Mc,C),G.text=m.text,m.tooltext&&(G.originalText=m.tooltext),Ba&&(pc=H+ja%Xa*F)),G.y=pc,G.x=Gc,G.rotation=ha,G.textAlign=Ac,ja+=1);else{ha?(Mc=tb,Uc=Bb-4,Ac=ma,pc=wa?xa+8:xa+4):Ba?(Uc=tb-4,Ac=la):(Mc=Bb,Uc=tb-4,Ac=la,pc=H);for(p=0;p<db;p+=ua)D=Qa[p],F=za(parseFloat(D.label.style.lineHeight)),
  cd=.5*F,H=F+xa,D&&D.label&&void 0!==s(D.label.text)&&(G=D.label,G.style&&G.style!==q&&(q=G.style,ia.setStyle(q)),I||(Ba&&(Mc=F),Sc=nb+(p-dc)*td-h.chart.spacingLeft,ud=300===ha?ba(na(2.999*Sc*Sc+Sc*Sc)-xa,Uc):Uc,m=ia.getSmartText(G.text,ud,Mc,C),Sb=V(Sb,ha?m.width:m.height),G.text=m.text,m.tooltext&&(G.originalText=m.tooltext),Ba&&(pc=H+ja%Xa*F)),ha?Gc=Tc+.5*F:Ba||(pc=F+xa),G.y=pc,G.x=Gc,G.rotation=ha,G.textAlign=Ac,ja+=1);300===ha&&(Bb=Sb,bd=Bb+xa);d._labelY=H;d._labelX=Tc;d._yShipment=pc;d._isStagger=
  Ba;d._rotation=ha;d._textAlign=Ac;d._adjustedPx=cd;d._staggerLines=Xa;d._labelHeight=F}db=Ib.length;for(p=Vc=Nc=0;p<db;p+=1)(D=Ib[p].plotObj?Ib[p].plotObj:Ib[p])&&D.label&&void 0!==s(D.label.text)&&(G=D.label,G.style&&G.style!==q&&(q=G.style,ia.setStyle(q)),G.verticalAlign===Ia?(m=ia.getSmartText(G.text,e,bb,!0),Vc=V(Vc,m.height),G.text=m.text,m.tooltext&&(G.originalText=m.tooltext),G.y=bd+ia.getOriSize(G.text).height,G.x=Gc):(m=ia.getSmartText(G.text,e,W,!0),Nc=V(Nc,m.height),G.text=m.text,m.tooltext&&
  (G.originalText=m.tooltext),G.y=-(W-ia.getOriSize("W").height+xa+2)));0<E&&(ia.setStyle(c.title.style),r=ia.getSmartText(c.title.text,e,E),c.title.text=r.text,r.tooltext&&(c.title.originalText=r.tooltext),c.title.margin=bd+Vc+lc);Jb=Vc;0<Bb&&(k.horizontalAxisHeight=xa+Bb-ea,Jb+=k.horizontalAxisHeight);0<E&&(Jb+=Ha=E+lc);Jb=Jb||xa-ea;h.chart.marginBottom+=Jb;0<Nc&&(h.chart.marginTop+=Nc,Jb+=Nc);if(c.opposite)for(c.title.margin-=Bb-(r&&r.height||0)+xa,Jb-=Ha,h.chart.marginTop+=Jb,h.chart.marginBottom-=
  Jb,h.xAxis.opposite=1,db=Vb.length,va=0;va<db;va+=1)(D=Vb[va])&&D.isGrid&&(G=D.label)&&void 0!==G.text&&(G.textAlign=Ma,G.y-=pc+xa+4);return Jb},Zb=m.configureLegendOptions=function(d,h,g,f,e){f=d.legend;var u=d.chart,n=u.is3D?Da.chart3D:Da.chart2D,k=u.useRoundEdges,l=a(h.legendiconscale,1),m=(parseInt(f.itemStyle.fontSize,10)||10)+1,D=this.colorManager,G;if(0>=l||5<l)l=1;f.padding=4;0>=m&&(m=1);G=3*l;m=ba(m*l,e-8);0>=m&&(G=m=0);f.symbolWidth=m;f.symbolPadding=G;f.textPadding=4;f.legendHeight=e=m+
  2*G;f.rowHeight=V(parseInt(f.itemStyle.lineHeight,10)||12,e);g?(f.align=ma,f.verticalAlign="middle",f.layout="vertical"):f.x=(u.marginLeft-u.spacingLeft-u.marginRight+u.spacingRight)/2;g=c(h.legendbordercolor,D.getColor(n.legendBorderColor));e=a(h.legendborderalpha,100);u=a(h.legendbgalpha,100);f.backgroundColor=Y(c(h.legendbgcolor,D.getColor(n.legendBgColor)),u);f.borderColor=Y(g,e);f.borderWidth=a(h.legendborderthickness,!k||h.legendbordercolor?1:0);f.shadow=Boolean(a(h.legendshadow,1));f.symbol3DLighting=
  Boolean(a(h.use3dlighting,h.useplotgradientcolor,1));f.shadow&&(f.shadow={enabled:f.shadow,opacity:V(e,u)/100});f.reversed=Boolean(a(h.reverselegend,0)-a(this.reverseLegend,0));f.style={padding:4};Boolean(a(h.interactivelegend,1))?f.symbolStyle={_cursor:"hand",cursor:"pointer"}:(d.legend.interactiveLegend=!1,f.itemStyle.cursor="default",f.itemHoverStyle={cursor:"inherit"});f.borderRadius=a(h.legendborderradius,k?3:0);f.legendAllowDrag=Boolean(a(h.legendallowdrag,0));f.title.text=B(v(h.legendcaption,
  b));f.legendScrollBgColor=fa(c(h.legendscrollbgcolor,h.scrollcolor,D.getColor("altHGridColor")));f.legendScrollBarColor=c(h.legendscrollbarcolor,g);f.legendScrollBtnColor=c(h.legendscrollbtncolor,g)},P=m.placeLegendBlockRight=function(c,d,h,f,e){this.configureLegendOptions(c,d.chart,!0,e,h);var u=this.snapLiterals||(this.snapLiterals={}),n=0,k=c.series,l,m=c[g],D=this.smartLabel||m.smartLabel,G=c.chart.spacingRight,p=c.legend,r,q=p.textPadding,s=p.title.padding,v=p.symbolWidth,N=p.symbolPadding,A=
  v+2*N,B=2*f,da=0,ha=a(d.chart.legendpadding,7);d=ha+p.borderWidth/2+a(d.chart.canvasborderthickness,1);var z=2*p.padding,F=z,E=!1,ua=[];h-=z+ha;e&&(k=k&&k[0]&&k[0].data);if(typeof k===Ta||typeof k.length===Ta)return 0;e=k.length;for(n=0;n<e;n+=1)(l=k[n])&&!1!==l.showInLegend&&(l.__i=n,ua.push(l));ua.sort(function(a,b){return a.legendIndex-b.legendIndex||a.__i-b.__i});e=ua.length;r=h-A-ha-q;0>r&&(r=0);D.setStyle(p.itemStyle);p.reversed&&ua.reverse();for(n=0;n<e;n+=1)l=ua[n],E=!0,l._legendX=0,l._legendY=
  F,0===r?(F+=l._legendH=A,l.name=b,l._totalWidth=v+N):(k=D.getSmartText(l.name,r,B),l.name=k.text,k.tooltext&&(l.originalText=k.tooltext),k.height<A&&(l._legendTestY=(A-k.height)/2),l._totalWidth=v+N+q+k.width+ha,F+=l._legendH=V(k.height,A),da=V(k.width,da));if(E)return p.itemWidth=da+A+ha+q,p.width=p.itemWidth+z,p.title.text!==b&&(D.setStyle(p.title.style),k=D.getSmartText(p.title.text,h,B),p.title.text=k.text,k.tooltext&&(p.title.originalText=k.tooltext),n=k.width+z,p.width<n&&(p.initialItemX=(n-
  p.width)/2,p.width=n),p.initialItemY=k.height+s,F+=p.initialItemY),p.height=p.totalHeight=F,p.height>f&&(p.height=f,p.scroll.enabled=!0,p.scroll.flatScrollBars=m.flatScrollBars,p.scroll.scrollBar3DLighting=m.scrollBar3DLighting,p.width+=(p.scroll.scrollBarWidth=10)+(p.scroll.scrollBarPadding=2)),u.legendstartx=m.width-G-p.width,u.legendwidth=p.width,u.legendendx=u.legendstartx+u.legendwidth,u.legendheight=p.height,d=ba(p.width+d,h),c.chart.marginRight+=d+ha,d;p.enabled=!1;return 0},Hb=m.placeLegendBlockBottom=
  function(c,d,h,f,e){this.configureLegendOptions(c,d.chart,!1,e,h);var u=this.snapLiterals||(this.snapLiterals={}),n=0,k=c.series,l=c[g],m=l.smartLabel||this.smartLabel,D=c.chart,p=D.spacingBottom,r=D.spacingLeft,D=D.spacingRight,q=c.legend,s,v=q.textPadding,N=q.title.padding,A,da=q.symbolWidth,ha=q.symbolPadding,z=q.legendHeight,F=d.chart;A=0;var E=2*f,ua=q.rowHeight,H=.05*ua,ja=[];s=a(F.minimisewrappinginlegend,0);var F=a(parseInt(F.legendnumcolumns,10),0),ra=0,C=0,Ba=0,I=n=0,Ha=0,Da=0,K=q.padding,
  xa=2*K,K=v+ha+K;d=a(d.chart.legendpadding,7)+q.borderWidth/2+1;var ia=xa,L=!1,Ka,Q=[],P=!1,ea=0,nb=0;0>F&&(F=0);h-=xa;m.setStyle(q.itemStyle);n=m.getOriSize(G).height;d=ba(d,f-n-8);f-=d;e&&(k=k&&k[0]&&k[0].data);if(typeof k===Ta||typeof k.length===Ta)return 0;e=k.length;for(n=0;n<e;n+=1)(Ka=k[n])&&!1!==Ka.showInLegend&&(Ka.__i=n,Q.push(Ka));Q.sort(function(a,b){return a.legendIndex-b.legendIndex||a.__i-b.__i});e=Q.length;m.setStyle(q.itemStyle);for(n=0;n<e;n+=1)L=!0,Q[n].name=B(Q[n].name),k=m.getOriSize(Q[n].name),
  ra=V(ra,k.width),Ha=V(Ha,ba(k.height,E)),C+=k.width,Ba+=1;n=C/Ba;z=z+H+v+ha+xa;C+=z*Ba;if(L){n+=z;ra+=z;0<F&&Ba<F&&(F=Ba);C<=h&&(0>=F||F===Ba)?(F=Ba,I=n=C/Ba,P=!0,Ha>ua&&(Da=(Ha-ua)/2,ua=Ha)):0<F&&(I=h/F)>n?I>ra&&(I=ra):h>ra&&(s||1.5*n>ra)?(F=Aa(h/ra),Ba<F&&(F=Ba),I=ra):h>=2*n?(F=Aa(h/n),Ba<F&&(F=Ba),I=Aa(h/F),I>ra&&(I=ra)):(F=1,I=h);q.itemWidth=I;s=I-z;0>s&&(ha=s=v=0);q.symbolPadding=ha;q.textPadding=v;q.width=I*F-H;q.title.text!==b&&(m.setStyle(q.title.style),k=m.getSmartText(q.title.text,h,E),
  q.title.text=k.text,k.tooltext&&(q.title.originalText=k.tooltext),A=k.width+xa,q.width<A&&(q.initialItemX=(A-q.width)/2,q.width=A),q.initialItemY=A=k.height+N);m.setStyle(q.itemStyle);q.reversed&&Q.reverse();for(n=0;n<e;n+=1){h=Q[n];0===s&&(ja[ea]=!0,h.name=b,N=1,v=parseInt(ea/F,10),H=ea%F,h._legendX=H*I,h._legendY=v*ua+xa,h._legendH=N*ua,h._totalWidth=da+ha);if(P)k=m.getOriSize(h.name),k.height<ua&&(h._legendTestY=(ua-k.height)/2),h._markerYGutter=Da,h._legendX=nb,h._legendY=xa,h._legendH=ua,h._totalWidth=
  da+K+k.width,nb+=k.width+z;else{k=m.getSmartText(h.name,s,E);h.name=k.text;for(k.tooltext&&(h.originalText=k.tooltext);!0===ja[ea];)ea+=1;v=k.height/ua;H=ea;for(N=0;N<v;N+=1,H+=F)ja[H]=!0;k.height<ua&&(h._legendTestY=(ua-k.height)/2);v=parseInt(ea/F,10);H=ea%F;h._legendX=H*I;h._legendY=v*ua+xa;h._legendH=N*ua;h._totalWidth=da+K+k.width}ea+=1}m=P?1:za(ja.length/F);q.height=q.totalHeight=ia+(m*ua+A);q.rowHeight=ua;q.legendNumColumns=F;q.height>f&&(q.height=f,q.scroll.enabled=!0,q.scroll.flatScrollBars=
  l.flatScrollBars,q.scroll.scrollBar3DLighting=l.scrollBar3DLighting,q.width+=(q.scroll.scrollBarWidth=10)+(q.scroll.scrollBarPadding=2));u.legendstartx=r+.5*(l.width-r-D-q.width)+(q.x||0);u.legendwidth=q.width;u.legendendx=u.legendstartx+u.legendwidth;u.legendstarty=l.height-p-q.height;u.legendheight=q.height;u.legendendy=u.legendstarty+u.legendheight;d+=q.height;c.chart.marginBottom+=d;return d}q.enabled=!1;return 0},Kb=function(a,b){return a.value-b.value},$a=function(a,b,c){var d=b._originalText;
  a=a[g].smartLabel;b.text=b.rotation?a.getSmartText(d,c,b._actualWidth).text:a.getSmartText(d,b._actualWidth,c).text;b.centerYAxisName=!0},ub=m.adjustVerticalAxisTitle=function(a,b,c){if(b&&b.text){var d=b.text,e=a[g].smartLabel,h=2*ba(a.chart.marginTop,a.chart.marginBottom)+c,f=c+a.chart.marginTop+a.chart.marginBottom;b.style&&e.setStyle(b.style);d=e.getOriSize(d);void 0===b.centerYAxisName&&(b.centerYAxisName=!0);b.rotation?d.width>h&&(b.y=f/2-(c/2+a.chart.marginTop),b.centerYAxisName=!1):d.height>
  h&&(b.y=(f/2-(c/2+a.chart.marginTop))/2,b.centerYAxisName=!1)}},Ra=m.adjustVerticalCanvasMargin=function(b,c,d,h){var e=c.chart,g=c=0,f=0,u=a(e.canvastopmargin,0),e=a(e.canvasbottommargin,0),n=u/(u+e),k=b.chart.marginTop,l=b.chart.marginBottom;e>l&&(c+=e-l);u>k&&(c+=u-k);c>d?u>k&&e>l?(g=d*n,f=d*(1-n)):u>k?g=d:f=d:0<c&&(e>l&&(f=e-l),u>k&&(g=u-k));g&&(b.chart.marginTop+=g);f&&(b.chart.marginBottom+=f,h&&h.title&&(h.title.margin+=f));return g+f},Tb=m.adjustHorizontalCanvasMargin=function(b,c,d,h,e){var g=
  c.chart;c=a(g.canvasleftmargin,0);var g=a(g.canvasrightmargin,0),f=c/(c+g),u=0,n=b.chart.marginLeft,k=b.chart.marginRight,l=0,m=0;c>n&&(u+=c-n);g>k&&(u+=g-k);u>d?c>n&&g>k?(l=d*f,m=d*(1-f)):g>k?m=d:l=d:0<u&&(c>n&&(l=c-n),g>k&&(m=g-k));l&&(b.chart.marginLeft+=l,h&&h.title&&(h.title.margin+=l));m&&(b.chart.marginRight+=m,e&&e.title&&(e.title.margin+=m));return m+l},wa=function(a,b){return a-b},Ab=m.getDataParser={column:function(b,d,h){var f=b[g],e=d.borderWidth;return function(g,u,k){var l=d.plotgradientcolor,
  m=d.is3d,D=d.isRoundEdges,p=d.plotBorderColor,G=c(g.color,d.color),q=c(g.ratio,d.ratio),r=$(d.plotBorderAlpha),s=a(g.dashed,d.dashed),v=c(g.dashlen,d.dashLen),N=c(g.dashgap,d.dashGap),A=d.use3DLighting,B=$(c(g.alpha,d.alpha)).toString(),da={opacity:B/100},ha=d.isBar,F=d.fillAangle,z=0>k?ha?180-F:360-F:F,F=T(G+Ja+l,B,q,z,D,p,ba(B,r).toString(),ha,m),E=s?n(v,N,e):"none";u=h.getPointStub(g,k,f.oriCatTmp[u],b,d,d.showValues,d.yAxis);g=h.pointHoverOptions(g,d,{plotType:"column",is3d:m,isBar:ha,use3DLighting:A,
  isRoundEdged:D,color:G,gradientColor:l,alpha:B,ratio:q,angle:z,borderWidth:e,borderColor:p,borderAlpha:r,borderDashed:s,borderDashGap:N,borderDashLen:v,shadow:da});u.y=k;u.shadow=da;u.color=F[0];u.borderColor=F[1];u.borderWidth=e;u.use3DLighting=A;u.dashStyle=E;u.tooltipConstraint=h.tooltipConstraint;u.hoverEffects=g.enabled&&g.options;u.rolloverProperties=g.enabled&&g.rolloverOptions;return u}},line:function(b,d,h){var f=b[g];return function(e,g,u){var k=a(e.alpha,d.lineAlpha),l={opacity:k/100},
  m=a(e.anchorsides,d.anchorSides,0),D=a(e.anchorborderthickness,d.anchorBorderThickness,1),p=fa(c(e.anchorbordercolor,d.anchorBorderColor)),G=fa(c(e.anchorbgcolor,d.anchorBgColor)),q=a(e.anchorstartangle,d.anchorStartAngle,90),r=c(e.anchoralpha,d.anchorAlpha),s=c(e.anchorbgalpha,r),v=a(e.anchorradius,d.anchorRadius),N=Boolean(a(e.anchorshadow,d.anchorShadow,0));g=h.getPointStub(e,u,f.oriCatTmp[g],b,d,d.showValues,d.yAxis);var A=c(e.anchorimageurl,d.imageUrl),B=c(e.anchorimagescale,d.imageScale),da=
  c(e.anchorimagealpha,d.imageAlpha);g.y=u;g.shadow=l;g.anchorShadow=d.anchorShadow;g.dashStyle=a(e.dashed,d.lineDashed)?n(d.lineDashLen,d.lineDashGap,d.lineThickness):null;g.color={FCcolor:{color:fa(c(e.color,d.lineColor)),alpha:k}};g.valuePosition=c(e.valueposition,d.valuePosition);u=h.pointHoverOptions(e,d,{plotType:"anchor",anchorBgColor:G,anchorAlpha:r,anchorBgAlpha:s,anchorAngle:q,anchorBorderThickness:D,anchorBorderColor:p,anchorBorderAlpha:r,anchorSides:m,anchorRadius:v,imageUrl:A,imageScale:B,
  imageAlpha:da,shadow:l});g.marker={enabled:void 0===d.drawAnchors?0!==k:!!d.drawAnchors,shadow:N&&{opacity:r/100},fillColor:{FCcolor:{color:fa(c(e.anchorbgcolor,d.anchorBgColor)),alpha:(c(e.anchorbgalpha,d.anchorBgAlpha)*r/100).toString()}},lineColor:{FCcolor:{color:fa(c(e.anchorbordercolor,d.anchorBorderColor)),alpha:r}},imageUrl:A,imageScale:B,imageAlpha:da,lineWidth:a(e.anchorborderthickness,d.anchorBorderThickness),radius:a(e.anchorradius,d.anchorRadius),symbol:La(a(e.anchorsides,d.anchorSides)),
  startAngle:c(e.anchorstartangle,d.anchorAngle)};g.hoverEffects=u.enabled&&u.options;g.rolloverProperties=u.enabled&&u.rolloverOptions;return g}},area:function(b,d,h){var f=b[g];return function(e,g,u){var n=c(e.alpha,d.fillAlpha),k={opacity:V(n,d.lineAlpha)/100,inverted:!0},l=a(e.anchorsides,d.anchorSides,0),m=a(e.anchorborderthickness,d.anchorBorderThickness,1),D=fa(c(e.anchorbordercolor,d.anchorBorderColor)),p=fa(c(e.anchorbgcolor,d.anchorBgColor)),G=a(e.anchorstartangle,d.anchorStartAngle,90),q=
  c(e.anchoralpha,d.anchorAlpha),r=c(e.anchorbgalpha,q),s=a(e.anchorradius,d.anchorRadius),v=Boolean(a(e.anchorshadow,d.anchorShadow,0));g=h.getPointStub(e,u,f.oriCatTmp[g],b,d,d.showValues,d.yAxis);var N=c(e.anchorimageurl,d.imageUrl),A=c(e.anchorimagescale,d.imageScale),B=c(e.anchorimagealpha,d.imageAlpha);g.y=u;g.shadow=k;g.anchorShadow=d.anchorShadow;g.color={FCcolor:{color:fa(c(e.color,d.fillColor)),alpha:n}};g.valuePosition=c(e.valueposition,d.valuePosition);u=h.pointHoverOptions(e,d,{plotType:"anchor",
  anchorBgColor:p,anchorAlpha:q,anchorBgAlpha:r,anchorAngle:G,anchorBorderThickness:m,anchorBorderColor:D,anchorBorderAlpha:q,anchorSides:l,anchorRadius:s,imageUrl:N,imageScale:A,imageAlpha:B,shadow:k});g.marker={enabled:d.drawAnchors,shadow:v&&{opacity:q/100},fillColor:{FCcolor:{color:fa(c(e.anchorbgcolor,d.anchorBgColor)),alpha:(c(e.anchorbgalpha,d.anchorBgAlpha)*q/100).toString()}},lineColor:{FCcolor:{color:fa(c(e.anchorbordercolor,d.anchorBorderColor)),alpha:q}},imageUrl:N,imageScale:A,imageAlpha:B,
  lineWidth:a(e.anchorborderthickness,d.anchorBorderThickness),radius:s,symbol:La(a(e.anchorsides,d.anchorSides)),startAngle:c(e.anchorstartangle,d.anchorAngle)};g.hoverEffects=u.enabled&&u.options;g.rolloverProperties=u.enabled&&u.rolloverOptions;g.events={click:d.getLink};return g}}};d.core.options.resizeTrackingInterval=300;d.core.options.preventTrackResize=!1;d.core.options.SVGDefinitionURL="relative";m.createChart=function(b,h,g,f,e,u,n){var k=b.jsVars,l,D,p=qa[g||(g=b.chartType())],G,q=k.hasNativeMessage,
  r=b.options,s=b.args,v;v=function(a){var c={renderer:"javascript"},e=k.fcObj,u=e.width,l=e.height,D=p&&p.eiMethods,r=k.overlayButton,s;h.jsVars=b.jsVars;k.container=h;k.hcObj=a;k.type=g;k.width=h.offsetWidth;k.height=h.offsetHeight;k.instanceAPI=G;if(a.hasRendered){d.extend(h,Pa);if(D&&"string"!==typeof D)for(s in D)h[s]=D[s];k.overlayButtonActive&&r&&(r.innerHTML="",r.appendChild(E.createTextNode(k.overlayButtonMessage)),a.container.appendChild(r))}(/\%/g.test(u)||/\%/g.test(l))&&h&&h.parentNode&&
  !d.core.options.preventTrackResize&&fb(e,h);f&&(f({success:a.hasRendered,ref:h,id:b.id}),a.hasRendered&&(m.raiseEvent("loaded",{type:g,renderer:"javascript"},b,[b.id]),q||(e.__state.firstRenderNotified=!0,setTimeout(function(){m.raiseEvent("rendered",{renderer:"javascript"},e,[e.id])},0))));a.hasRendered&&k.previousDrawCount<k.drawCount&&(c.width=k.width,c.height=k.height,c.drawCount=k.drawCount,c.displayingMessage=q,c.renderer=e.options.renderer,m.raiseEvent("drawcomplete",c,e,[e.id]),q||n||setTimeout(function(){e.__state&&
  !e.__state.firstRenderNotified&&m.raiseEvent("rendered",{renderer:"javascript"},e,[e.id]);d.raiseEvent("renderComplete",c,e)},0))};k.instanceAPI&&k.instanceAPI.dispose&&k.instanceAPI.dispose();G=p?new qa(g):new qa("stub");G.chartInstance=b;G.origRenderWidth=b.__state.renderedWidth;G.origRenderHeight=b.__state.renderedHeight;void 0!==e?"string"===typeof e&&(e=new ua(h,e,b),q=k.hasNativeMessage=!0):!p||!p.init||p&&"stub"===p.name?(b._chartMessageImageStyle={imageHAlign:c(s.typeNotSupportedMessageImageHAlign,
  r.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:c(s.typeNotSupportedMessageImageVAlign,r.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:a(s.typeNotSupportedMessageImageAlpha,r.baseChartMessageImageAlpha),imageScale:a(s.typeNotSupportedMessageImageScale,r.baseChartMessageImageScale)},b._chartMessageStyle={color:s.typeNotSupportedMessageColor||r.baseChartMessageColor,fontFamily:s.typeNotSupportedMessageFont||r.baseChartMessageFont,fontSize:s.typeNotSupportedMessageFontSize||r.baseChartMessageFontSize},
  e=new ua(h,r.typeNotSupportedMessage,b),q=k.hasNativeMessage=!0):k.message?(e=new ua(h,k.message,b),q=k.hasNativeMessage=!0):k.loadError?(b._chartMessageImageStyle={imageHAlign:c(s.dataLoadErrorMessageImageHAlign,r.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:c(s.dataLoadErrorMessageImageVAlign,r.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:a(s.dataLoadErrorMessageImageAlpha,r.baseChartMessageImageAlpha),imageScale:a(s.dataLoadErrorMessageImageScale,r.baseChartMessageImageScale)},
  b._chartMessageStyle={color:s.dataLoadErrorMessageColor||r.baseChartMessageColor,fontFamily:s.dataLoadErrorMessageFont||r.baseChartMessageFont,fontSize:s.dataLoadErrorMessageFontSize||r.baseChartMessageFontSize},e=new ua(h,r.dataLoadErrorMessage,b),q=k.hasNativeMessage=!0):k.stallLoad?(b._chartMessageImageStyle={imageHAlign:c(s.dataLoadStartMessageImageHAlign,r.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:c(s.dataLoadStartMessageImageVAlign,r.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:a(s.dataLoadStartMessageImageAlpha,
  r.baseChartMessageImageAlpha),imageScale:a(s.dataLoadStartMessageImageScale,r.baseChartMessageImageScale)},b._chartMessageStyle={fontFamily:s.dataLoadStartMessageFont||r.baseChartMessageFont,fontSize:s.dataLoadStartMessageFontSize||r.baseChartMessageFontSize,color:s.dataLoadStartMessageColor||r.baseChartMessageColor},e=new ua(h,r.dataLoadStartMessage,b),q=k.hasNativeMessage=!0):(d.raiseEvent("internal.drawStart",{chartType:g,logicName:G.name,logicBase:G.base&&G.base.name,defaultSeriesType:G.defaultSeriesType},
  b),l=b.jsVars&&b.jsVars.themeObject&&b.jsVars.themeObject.getThemedJSONData()||b.getChartData(d.dataFormats.JSON,!0),D=l.data,l.error instanceof Error?(b._chartMessageImageStyle={imageHAlign:c(s.dataInvalidMessageImageHAlign,r.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:c(s.dataInvalidMessageImageVAlign,r.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:a(s.dataInvalidMessageImageAlpha,r.baseChartMessageImageAlpha),imageScale:a(s.dataInvalidMessageImageScale,r.baseChartMessageImageScale)},
  b._chartMessageStyle={fontFamily:s.dataInvalidMessageFont||r.baseChartMessageFont,fontSize:s.dataInvalidMessageFontSize||r.baseChartMessageFontSize,color:s.dataInvalidMessageColor||r.baseChartMessageColor},e=new ua(h,r.dataInvalidMessage,b),q=k.hasNativeMessage=!0,b.__state.dataReady=!1,n||d.raiseEvent("dataInvalid",{error:l.error},k.fcObj,void 0,function(){m.raiseEvent("dataxmlinvalid",{},b,[b.id])})):(n||m.raiseEvent("dataloaded",{},b,[b.id]),e=G.init(h,D,b,v),G.inited=!0,k.previousDrawCount=k.drawCount,
  k.drawCount+=1,0===e.series.length?(b._chartMessageImageStyle={imageHAlign:c(s.dataEmptyMessageImageHAlign,r.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:c(s.dataEmptyMessageImageVAlign,r.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:a(s.dataEmptyMessageImageAlpha,r.baseChartMessageImageAlpha),imageScale:a(s.dataEmptyMessageImageScale,r.baseChartMessageImageScale)},b._chartMessageStyle={fontFamily:s.dataEmptyMessageFont||r.baseChartMessageFont,fontSize:s.dataEmptyMessageFontSize||
  r.baseChartMessageFontSize,color:s.dataEmptyMessageColor||r.baseChartMessageColor},e=new ua(h,r.dataEmptyMessage,b),q=k.hasNativeMessage=!0,b.__state.dataReady=!1,n||m.raiseEvent("nodatatodisplay",{},b,[b.id])):(b.__state.dataReady=!0,q=k.hasNativeMessage=!1,delete k.message)));e||(b._chartMessageImageStyle={imageHAlign:r.baseChartMessageImageHAlign,imageVAlign:r.baseChartMessageImageVAlign,imageAlpha:r.baseChartMessageImageAlpha,imageScale:r.baseChartMessageImageScale},b._chartMessageStyle={fontFamily:r.baseChartMessageFont,
  fontSize:r.baseChartMessageFontSize,color:r.baseChartMessageColor},e=new ua(h,"Error rendering chart {0x01}",b),q=k.hasNativeMessage=!0);q&&!G.inited&&G.init(h,D,b,v);e.chart=e.chart||{};e.credits=e.credits||{};e.credits.enabled=p&&!0===p.creditLabel?!0:!1;!1===u&&(e.chart.animation=!1,e.plotOptions||(e.plotOptions={}),e.plotOptions.series||(e.plotOptions.series={}),e.plotOptions.series.animation=!1);h.style&&(e.chart.containerBackgroundColor=m.getContainerBackgroundColor(b));return G.draw(e,v)};
  qa("base",{useScaleRecursively:!0,tooltipConstraint:"chart",rendererId:"root",canvasPaddingModifiers:["anchor","anchorlabel"],drawAnnotations:!0,draw:function(a,b){var c=this.renderer;c||(c=this.renderer=new qa("renderer."+this.rendererId));this.updateDefaultAnnotations();return c.init(this,a,b)},init:function(h,g,u){var k=this.chartInstance||u,e=k.jsVars;u=e._reflowData||(e._reflowData={});var n=e._reflowClean,l=k.options,D=l.args,p,G;/^\s*absolute\s*$/i.test(d.core.options.SVGDefinitionURL)&&(z._url=
  (z._g&&z._g.win||q).location.href.replace(/#.*?$/,b));this.dataObj=g=f({},g);G=g.chart=g.chart||g.graph||g.map||{};delete g.graph;delete g.map;u&&!this.stateless&&(p=u.hcJSON,delete u.hcJSON,f(this,u,!0),this.preReflowAdjustments&&this.preReflowAdjustments.call(this),u.hcJSON=p);this.containerElement=h;this.config={};this.smartLabel=e.smartLabel;this.smartLabel.useEllipsesOnOverflow(a(G.useellipseswhenoverflow,G.useellipsewhenoverflow,1));this.colorManager=new m.colorManager(g,this);this.linkClickFN=
  ha(g,k);this.numberFormatter=new da(g.chart,this);if(!this.standaloneInit)return k._chartMessageImageStyle={imageHAlign:c(D.typeNotSupportedMessageImageHAlign,l.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:c(D.typeNotSupportedMessageImageVAlign,l.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:a(D.typeNotSupportedMessageImageAlpha,l.baseChartMessageImageAlpha),imageScale:a(D.typeNotSupportedMessageImageScale,l.baseChartMessageImageScale)},k._chartMessageStyle={fontFamily:D.typeNotSupportedMessageFont||
  l.baseChartMessageFont,fontSize:D.typeNotSupportedMessageFontSize||l.baseChartMessageFontSize,color:D.typeNotSupportedMessageColor||l.baseChartMessageColor},new m.createDialog(h,l.typeNotSupportedMessage,k);h=this.chart(h.offsetWidth||parseFloat(h.style.width),h.offsetHeight||parseFloat(h.style.height),k);u&&!this.stateless&&(u.hcJSON&&f(h,u.hcJSON,!0),this.postReflowAdjustments&&this.postReflowAdjustments.call(this),n&&this.cleanedData&&(this.cleanedData(this,n),this.cleanedData(u,n)));return h},
  postSpaceManager:function(){var b=this.hcJSON,c=b._FCconf,d=b.chart,h=d.marginLeft,e=d.spacingLeft,g=d.spacingRight,f=c.width-h-d.marginRight,u=b.title,b=b.subtitle,k=c.width,n=u.align,c=u.x,l=u.horizontalPadding,m=u.alignWithCanvas,D=(H(h)||0)+a(f,k)/2,h=this.snapLiterals||(this.snapLiterals={}),f=u._captionWidth,p=b._subCaptionWidth,G=u._lineHeight,r=b._lineHeight,q=u.text;if(void 0===c){switch(n){case ma:c=m?k-d.marginRight-l:k-l;break;case Ma:c=m?d.marginLeft+l:l;break;default:c=m?D:e+.5*(k-e-
  g)||k/2}u.align===Ma?(g=e=0,u.align="start"):u.align===ma?(e=f,g=p,u.align="end"):(e=f/2,g=p/2,u.align="middle");u.x=c;u.y=u.y||d.spacingTop||0;b.y=q?u.y+G+2:u.y||d.spacingTop||0;h.captionstartx=c-e-2;h.captionwidth=f+4;h.captionendx=h.captionstartx+h.captionwidth;h.captionstarty=u.y||0;h.captionheight=G+2;h.captionendy=h.captionstarty+h.captionheight;h.subcaptionstartx=c-g-2;h.subcaptionwidth=p+4;h.subcaptionendx=h.subcaptionstartx+h.subcaptionwidth;h.subcaptionstarty=b.y||0;h.subcaptionheight=r+
  2;h.subcaptionendy=h.subcaptionstarty+h.subcaptionheight}},chart:function(h,w){var J=this.name,l=this.dataObj,e=l.chart,m=this.colorManager,p,G,r,N,A,da,ha,F=this.defaultSeriesType,z,E,ua,H,ra,ja,Ba,I,C,K,ia,Q,Ka,P,ea,nb,Pa,eb,fb,bb,W,wa,O,U,xb,T,Ra,Ab,ub,Nb,Tb,ba,Hb,$a,Kb,Z,Zb,$,pa,qa,na,Ea,La,za,Aa,Ya,Ua,vb,ib,rb,Ta,yb,wb,Lb,Ca,sc,uc,vc,nc,oc,yc,Fb,tc,wc,lb,Rb,Fc,Sa,hd,id,dc,jd,zc,kd,Xc,Wb,va,Vb,ec,Qa,Ib,pb,Cb,Db,Xb,gc,tb,fc,kc,sd,db,lc,Bb,Xa,Jb,Rc,Zc,ld,mc,Eb,Mb,Ub;p=Oc(l,h,w,this);C=p.chart;I=
  p.xAxis;z=p[g];this.snapLiterals||(this.snapLiterals={});ia=this.snapLiterals;ia.chartstartx=0;ia.chartstarty=0;ia.chartwidth=h;ia.chartheight=w;ia.chartendx=h;ia.chartendy=w;ia.chartcenterx=h/2;ia.chartcentery=w/2;ia.chartbottommargin=C.spacingBottom;ia.chartleftmargin=C.spacingLeft;ia.chartrightmargin=C.spacingRight;ia.charttopmargin=C.spacingTop;this.updateSnapPoints&&this.updateSnapPoints();this.postHCJSONCreation&&this.postHCJSONCreation.call(this,p);d.raiseEvent("internal.postlogic",this,this.chartInstance);
  p.labels.smartLabel=da=z.smartLabel=this.smartLabel;z.width=h;z.height=w;ua=p.plotOptions;z.isDual=this.isDual;z.numberFormatter=this.numberFormatter;z.axisGridManager=new D(F,e);z.tooltext=e.plottooltext;z.trendLineToolText=e.trendlinetooltext;C.is3D=G=z.is3d=/3d$/.test(F);C.isBar=E=z.isBar=this.isBar;ha=/^pie/.test(F);Ba=1==e.useroundedges;ja=G?Da.chart3D:Da.chart2D;C.events.click=p.plotOptions.series.point.events.click=this.linkClickFN;C.defaultSeriesType=F;nb=0<e.palette&&6>e.palette?e.palette:
  a(this.paletteIndex,1);--nb;C.paletteIndex=nb;C.usePerPointLabelColor=e.colorlabelsfromplot==sb;C.syncLabelWithAnchor=a(e.synclabelwithanchoronhover,1);C.useRoundEdges=Ba&&!G&&!this.distributedColumns&&"pie"!==this.defaultSeriesType;void 0!==c(e.clickurl)&&(C.link=e.clickurl,C.style.cursor="pointer",p.plotOptions.series.point.events.click=function(){C.events.click.call({link:e.clickurl})});Pa=c(e.basefont,"Verdana,sans");eb=L(e.basefontsize,10);fb=c(e.basefontcolor,m.getColor(ja.baseFontColor));bb=
  c(e.outcnvbasefont,Pa);W=L(e.outcnvbasefontsize,eb);wa=W+Ga;O=c(e.outcnvbasefontcolor,fb).replace(/^#?([a-f0-9]+)/ig,"#$1");T=eb;eb+=Ga;fb=fb.replace(/^#?([a-f0-9]+)/ig,"#$1");z.trendStyle=z.outCanvasStyle={fontFamily:bb,color:O,fontSize:wa};U=k(z.trendStyle);z.inCanvasStyle={fontFamily:Pa,fontSize:eb,color:fb};xb=k(z.inCanvasStyle);z.divlineStyle={fontFamily:Pa,fontSize:eb,color:fb,lineHeight:xb};I.labels.style={fontFamily:c(e.labelfont,bb),fontSize:a(e.labelfontsize,W)+Ga,color:c(e.labelfontcolor,
  O)};I.labels.style.lineHeight=k(I.labels.style);I.steppedLabels.style={fontFamily:bb,fontSize:wa,lineHeight:U,color:O,visibility:"hidden"};p.yAxis[0].labels.style={fontFamily:bb,fontSize:wa,lineHeight:U,color:O};p.yAxis[1].labels.style={fontFamily:bb,fontSize:wa,lineHeight:U,color:O};Ab=c(e.legenditemfont,bb);ub=L(e.legenditemfontsize,W);Nb=c(e.legenditemfontcolor,O).replace(/^#?([a-f0-9]+)/ig,"#$1");Tb=xa[a(e.legenditemfontbold,0)]||"";Ra=L(e.legendcaptionfontsize,W)+Ga;ub+=Ga;p.legend.itemStyle=
  {fontFamily:Ab,fontSize:ub,color:Nb,fontWeight:Tb};k(p.legend.itemStyle);p.legend.itemHiddenStyle={fontFamily:Ab,fontSize:ub,color:c(e.legenditemhiddencolor,"cccccc").replace(/^#?([a-f0-9]+)/ig,"#$1"),fontWeight:Tb};k(p.legend.itemHiddenStyle);p.legend.itemHoverStyle={color:c(e.legenditemhoverfontcolor,Nb).replace(/^#?([a-f0-9]+)/ig,"#$1")};p.legend.title.style={fontFamily:c(e.legendcaptionfont,Ab),fontSize:Ra,color:c(e.legendcaptionfontcolor,O).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontWeight:xa[a(e.legendcaptionfontbold,
  1)]||""};k(p.legend.title.style);p.legend.title.align=jb[e.legendcaptionalignment&&e.legendcaptionalignment.toLowerCase()||la]||jb.center;K=(K=v(e.valuebordercolor,b))?Y(K,a(e.valueborderalpha,e.valuealpha,100)):b;p.plotOptions.series.dataLabels.style={fontFamily:c(e.valuefont,Pa),fontSize:c(e.valuefontsize,parseInt(eb,10))+Ga,lineHeight:xb,color:Y(c(e.valuefontcolor,fb),a(e.valuefontalpha,e.valuealpha,100)),fontWeight:a(e.valuefontbold)?"bold":"normal",fontStyle:a(e.valuefontitalic)?"italic":"normal",
  border:K||e.valuebgcolor?a(e.valueborderthickness,1)+"px solid":"",borderColor:K,borderThickness:a(e.valueborderthickness,1),borderPadding:a(e.valueborderpadding,2),borderRadius:a(e.valueborderradius,0),backgroundColor:e.valuebgcolor?Y(e.valuebgcolor,a(e.valuebgalpha,e.valuealpha,100)):b,borderDash:a(e.valueborderdashed,0)?n(a(e.valueborderdashlen,4),a(e.valueborderdashgap,2),a(e.valueborderthickness,1)):void 0};k(p.plotOptions.series.dataLabels.style);p.plotOptions.series.dataLabels.color=p.plotOptions.series.dataLabels.style.color;
  p.tooltip.style={fontFamily:Pa,fontSize:eb,lineHeight:xb,color:fb};p.title.style={fontFamily:c(e.captionfont,bb),color:c(e.captionfontcolor,O).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:a(e.captionfontsize,W+3)+Ga,fontWeight:0===a(e.captionfontbold)?"normal":"bold"};p.title.align=c(e.captionalignment,la);p.title.isOnTop=a(e.captionontop,1);p.title.alignWithCanvas=a(e.aligncaptionwithcanvas,this.alignCaptionWithCanvas,1);p.title.horizontalPadding=a(e.captionhorizontalpadding,p.title.alignWithCanvas?
  0:15);k(p.title.style);p.subtitle.style={fontFamily:c(e.subcaptionfont,e.captionfont,bb),color:c(e.subcaptionfontcolor,e.captionfontcolor,O).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:a(e.subcaptionfontsize,a(V(a(e.captionfontsize)-3,-1),W)+a(this.subTitleFontSizeExtender,1))+Ga,fontWeight:0===a(e.subcaptionfontbold,this.subTitleFontWeight,e.captionfontbold)?"normal":"bold"};p.subtitle.align=p.title.align;p.subtitle.isOnTop=p.title.isOnTop;p.subtitle.alignWithCanvas=p.title.alignWithCanvas;p.subtitle.horizontalPadding=
  p.title.horizontalPadding;k(p.subtitle.style);K=(K=v(e.xaxisnamebordercolor,b))?Y(K,a(e.xaxisnameborderalpha,e.xaxisnamealpha,100)):b;I.title.style={fontFamily:c(e.xaxisnamefont,bb),fontSize:c(e.xaxisnamefontsize,parseInt(wa,10))+Ga,color:Y(c(e.xaxisnamefontcolor,O),a(e.xaxisnamefontalpha,e.xaxisnamealpha,100)),fontWeight:a(e.xaxisnamefontbold,1)?"bold":"normal",fontStyle:a(e.xaxisnamefontitalic)?"italic":"normal",border:K||e.xaxisnamebgcolor?a(e.xaxisnameborderthickness,1)+"px solid":void 0,borderColor:K,
  borderThickness:a(e.xaxisnameborderthickness,1),borderPadding:a(e.xaxisnameborderpadding,2),borderRadius:a(e.xaxisnameborderradius,0),backgroundColor:e.xaxisnamebgcolor?Y(e.xaxisnamebgcolor,a(e.xaxisnamebgalpha,e.xaxisnamealpha,100)):b,borderDash:a(e.xaxisnameborderdashed,0)?n(a(e.xaxisnameborderdashlen,4),a(e.xaxisnameborderdashgap,2),a(e.xaxisnameborderthickness,1)):void 0};k(I.title.style);K=(K=c(e.pyaxisnamebordercolor,e.yaxisnamebordercolor,b))?Y(K,a(e.pyaxisnameborderalpha,e.yaxisnameborderalpha,
  e.pyaxisnamealpha,e.yaxisnamealpha,100)):b;p.yAxis[0].title.style={fontFamily:c(e.pyaxisnamefont,e.yaxisnamefont,bb),fontSize:c(e.pyaxisnamefontsize,e.yaxisnamefontsize,parseInt(wa,10))+Ga,color:Y(c(e.pyaxisnamefontcolor,e.yaxisnamefontcolor,O),a(e.pyaxisnamefontalpha,e.yaxisnamefontalpha,e.pyaxisnamealpha,e.yaxisnamealpha,100)),fontWeight:a(e.pyaxisnamefontbold,e.yaxisnamefontbold,1)?"bold":"normal",fontStyle:a(e.pyaxisnamefontitalic,e.yaxisnamefontitalic)?"italic":"normal",border:K||e.pyaxisnamebgcolor||
  e.yaxisnamebgcolor?a(e.pyaxisnameborderthickness,e.yaxisnameborderthickness,1)+"px solid":void 0,borderColor:K,borderThickness:a(e.pyaxisnameborderthickness,e.yaxisnameborderthickness,1),borderPadding:a(e.pyaxisnameborderpadding,e.yaxisnameborderpadding,2),borderRadius:a(e.pyaxisnameborderradius,e.yaxisnameborderradius,0),backgroundColor:e.pyaxisnamebgcolor||e.yaxisnamebgcolor?Y(c(e.pyaxisnamebgcolor,e.yaxisnamebgcolor),a(e.pyaxisnamebgalpha,e.yaxisnamebgalpha,e.pyaxisnamealpha,e.yaxisnamealpha,100)):
  b,borderDash:a(e.pyaxisnameborderdashed,e.yaxisnameborderdashed,0)?n(a(e.pyaxisnameborderdashlen,e.yaxisnameborderdashlen,4),a(e.pyaxisnameborderdashgap,e.yaxisnameborderdashgap,2),a(e.pyaxisnameborderthickness,e.yaxisnameborderthickness,1)):void 0};k(p.yAxis[0].title.style);p.yAxis[1].title.style={fontFamily:bb,color:O,fontSize:wa,lineHeight:void 0,fontWeight:"bold"};K=(K=c(e.syaxisnamebordercolor,e.yaxisnamebordercolor,b))?Y(K,a(e.syaxisnameborderalpha,e.yaxisnameborderalpha,e.syaxisnamealpha,e.yaxisnamealpha,
  100)):b;p.yAxis[1].title.style={fontFamily:c(e.syaxisnamefont,e.yaxisnamefont,bb),fontSize:c(e.syaxisnamefontsize,e.yaxisnamefontsize,parseInt(wa,10))+Ga,color:Y(c(e.syaxisnamefontcolor,e.yaxisnamefontcolor,O),a(e.syaxisnamefontalpha,e.yaxisnamefontalpha,e.syaxisnamealpha,e.yaxisnamealpha,100)),fontWeight:a(e.syaxisnamefontbold,e.yaxisnamefontbold,1)?"bold":"normal",fontStyle:a(e.syaxisnamefontitalic,e.yaxisnamefontitalic)?"italic":"normal",border:K||e.syaxisnamebgcolor||e.yaxisnamebgcolor?a(e.syaxisnameborderthickness,
  e.yaxisnameborderthickness,1)+"px solid":void 0,borderColor:K,borderThickness:a(e.syaxisnameborderthickness,e.yaxisnameborderthickness,1),borderPadding:a(e.syaxisnameborderpadding,e.yaxisnameborderpadding,2),borderRadius:a(e.syaxisnameborderradius,e.yaxisnameborderradius,0),backgroundColor:e.syaxisnamebgcolor||e.yaxisnamebgcolor?Y(c(e.syaxisnamebgcolor,e.yaxisnamebgcolor),a(e.syaxisnamebgalpha,e.yaxisnamebgalpha,e.syaxisnamealpha,e.yaxisnamealpha,100)):b,borderDash:a(e.syaxisnameborderdashed,e.yaxisnameborderdashed,
  0)?n(a(e.syaxisnameborderdashlen,e.yaxisnameborderdashlen,4),a(e.syaxisnameborderdashgap,e.yaxisnameborderdashgap,2),a(e.syaxisnameborderthickness,e.yaxisnameborderthickness,1)):void 0};k(p.yAxis[1].title.style);C.overlapColumns=a(e[E&&"overlapbars"||"overlapcolumns"],G?0:1);p.orphanStyles={defaultStyle:{style:f({},z.inCanvasStyle)},connectorlabels:{style:f({},p.plotOptions.series.dataLabels)},vyaxisname:{style:f({},p.yAxis[0].title.style)}};p.plotOptions.series.dataLabels.tlLabelStyle={fontFamily:s(e.tlfont,
  Pa),color:fa(s(e.tlfontcolor,fb)),fontSize:L(e.tlfontsize,T)+"px"};k(p.plotOptions.series.dataLabels.tlLabelStyle);p.plotOptions.series.dataLabels.trLabelStyle={fontFamily:s(e.trfont,Pa),color:fa(s(e.trfontcolor,fb)),fontSize:L(e.trfontsize,T)+"px"};k(p.plotOptions.series.dataLabels.trLabelStyle);p.plotOptions.series.dataLabels.blLabelStyle={fontFamily:s(e.blfont,Pa),color:fa(s(e.blfontcolor,fb)),fontSize:L(e.blfontsize,T)+"px"};k(p.plotOptions.series.dataLabels.blLabelStyle);p.plotOptions.series.dataLabels.brLabelStyle=
  {fontFamily:s(e.brfont,Pa),color:fa(s(e.brfontcolor,fb)),fontSize:L(e.brfontsize,T)+"px"};k(p.plotOptions.series.dataLabels.brLabelStyle);this.parseStyles(p);delete p.xAxis.labels.style.backgroundColor;delete p.xAxis.labels.style.borderColor;delete p.yAxis[0].labels.style.backgroundColor;delete p.yAxis[0].labels.style.borderColor;delete p.yAxis[1].labels.style.backgroundColor;delete p.yAxis[1].labels.style.borderColor;z.showTooltip=a(e.showtooltip,this.showtooltip,1);z.tooltipSepChar=c(e.tooltipsepchar,
  this.tooltipsepchar,Sb);z.showValues=a(e.showvalues,this.showValues,1);z.seriesNameInToolTip=a(e.seriesnameintooltip,1);z.showVLines=a(e.showvlines,1);z.showVLinesOnTop=a(e.showvlinesontop,0);z.showVLineLabels=a(e.showvlinelabels,this.showVLineLabels,1);z.showVLineLabelBorder=a(e.showvlinelabelborder,1);z.rotateVLineLabels=a(e.rotatevlinelabels,0);z.vLineColor=c(e.vlinecolor,"333333");z.vLineLabelColor=c(e.vlinelabelcolor);z.vLineThickness=c(e.vlinethickness,1);z.vLineAlpha=a(e.vlinealpha,80);z.vLineLabelBgColor=
  c(e.vlinelabelbgcolor,"ffffff");z.vLineLabelBgAlpha=a(e.vlinelabelbgalpha,G?50:100);z.trendlineColor=c(e.trendlinecolor,"333333");z.trendlineThickness=c(e.trendlinethickness,1);z.trendlineAlpha=a(e.trendlinealpha);z.showTrendlinesOnTop=c(e.showtrendlinesontop,0);z.trendlineValuesOnOpp=c(e.trendlinevaluesonopp,e.trendlinevaluesonright,0);z.trendlinesAreDashed=a(e.trendlinesaredashed,0);z.trendlinesDashLen=a(e.trendlinedashlen,5);z.trendlinesDashGap=a(e.trendlinedashgap,2);z.showTrendlines=a(e.showtrendlines,
  1);z.showTrendlineLabels=a(e.showtrendlinelabels,this.showTrendlineLabels,1);z.flatScrollBars=a(e.flatscrollbars,0);z.scrollBar3DLighting=a(e.scrollbar3dlighting,1);C.anchorTrackingRadius=a(e.anchortrackingradius,Ha?oa:ga);p.plotOptions.series.connectNullData=a(e.connectnulldata,0);C.backgroundColor={FCcolor:{color:c(e.bgcolor,m.getColor(ja.bgColor)),alpha:c(e.bgalpha,m.getColor(ja.bgAlpha)),angle:c(e.bgangle,m.getColor(ja.bgAngle)),ratio:c(e.bgratio,m.getColor(ja.bgRatio))}};C.rotateValues=a(e.rotatevalues,
  0);C.placeValuesInside=a(e.placevaluesinside,0);C.valuePosition=c(e.valueposition,"auto");C.valuePadding=a(e.valuepadding,2);C.managePlotOverflow=a(e.manageplotoverflow,1);C.borderColor=Y(c(e.bordercolor,G?"#666666":m.getColor("borderColor")),c(e.borderalpha,G?"100":m.getColor("borderAlpha")));H=a(e.showborder,G?0:1);C.borderWidth=H?a(e.borderthickness,1):0;C.borderRadius=a(e.borderradius,0);C.borderDashStyle=a(e.borderdashed,0)?n(a(e.borderdashlen,4),a(e.borderdashgap,2),C.borderWidth):void 0;C.plotBorderColor=
  Y(c(e.canvasbordercolor,m.getColor("canvasBorderColor")),c(e.canvasborderalpha,m.getColor("canvasBorderAlpha")));"0"!==e.showcanvasborder&&(ra=Boolean(c(e.canvasborderthickness,Ba?0:1)),"1"!==e.showaxislines&&"1"!==e.showxaxisline&&"1"!==e.showyaxisline&&"1"!==e.showsyaxisline||"1"===e.showcanvasborder||(ra=0));C.plotBorderWidth=G||!ra?0:a(e.canvasborderthickness,this.canvasborderthickness,C.useRoundEdges?1:2);C.bgSWF=c(e.bgimage,e.bgswf);C.bgSWFAlpha=a(e.bgimagealpha,e.bgswfalpha,100);ba=c(e.bgimagedisplaymode,
  "none").toLowerCase();Hb=s(e.bgimagevalign,b).toLowerCase();$a=s(e.bgimagehalign,b).toLowerCase();"tile"==ba||"fill"==ba||"fit"==ba?(Hb!=ya&&"middle"!=Hb&&Hb!=Ia&&(Hb="middle"),$a!=Ma&&"middle"!=$a&&$a!=ma&&($a="middle")):(Hb!=ya&&"middle"!=Hb&&Hb!=Ia&&(Hb=ya),$a!=Ma&&"middle"!=$a&&$a!=ma&&($a=Ma));C.bgImageDisplayMode=ba;C.bgImageVAlign=Hb;C.bgImageHAlign=$a;C.bgImageScale=a(e.bgimagescale,100);C.logoURL=s(e.logourl);C.logoPosition=c(e.logoposition,"tl").toLowerCase();C.logoAlpha=a(e.logoalpha,100);
  C.logoLink=s(e.logolink);C.logoScale=a(e.logoscale,100);C.logoLeftMargin=a(e.logoleftmargin,0);C.logoTopMargin=a(e.logotopmargin,0);Kb=C.toolbar={button:{}};Z=Kb.button;Z.scale=a(e.toolbarbuttonscale,1.15);Z.width=a(e.toolbarbuttonwidth,15);Z.height=a(e.toolbarbuttonheight,15);Z.radius=a(e.toolbarbuttonradius,2);Z.spacing=a(e.toolbarbuttonspacing,5);Z.fill=Y(c(e.toolbarbuttoncolor,"ffffff"));Z.labelFill=Y(c(e.toolbarlabelcolor,"cccccc"));Z.symbolFill=Y(c(e.toolbarsymbolcolor,"ffffff"));Z.hoverFill=
  Y(c(e.toolbarbuttonhovercolor,"ffffff"));Z.stroke=Y(c(e.toolbarbuttonbordercolor,"bbbbbb"));Z.symbolStroke=Y(c(e.toolbarsymbolbordercolor,"9a9a9a"));Z.strokeWidth=a(e.toolbarbuttonborderthickness,1);Z.symbolStrokeWidth=a(e.toolbarsymbolborderthickness,1);Zb=Z.symbolPadding=a(e.toolbarsymbolpadding,5);Z.symbolHPadding=a(e.toolbarsymbolhpadding,Zb);Z.symbolVPadding=a(e.toolbarsymbolvpadding,Zb);$=Kb.position=c(e.toolbarposition,"tr").toLowerCase();switch($){case "tr":case "rt":case "top right":case "right top":$=
  "tr";break;case "br":case "rb":case "bottom right":case "right bottom":$="br";break;case "tl":case "lt":case "top left":case "left top":$="tl";break;case "bl":case "lb":case "bottom left":case "left bottom":$="bl";break;default:$="tr"}pa=Kb.hAlign="left"===(b+e.toolbarhalign).toLowerCase()?"l":$.charAt(1);qa=Kb.vAlign="bottom"===(b+e.toolbarvalign).toLowerCase()?"b":$.charAt(0);Kb.hDirection=a(e.toolbarhdirection,"r"===pa?-1:1);Kb.vDirection=a(e.toolbarvdirection,"b"===qa?-1:1);Kb.vMargin=a(e.toolbarvmargin,
  6);Kb.hMargin=a(e.toolbarhmargin,10);Kb.x=a(e.toolbarx,"l"===pa?0:h);Kb.y=a(e.toolbary,"t"===qa?0:w);na=c(e.divlinecolor,m.getColor(ja.divLineColor));Ea=c(e.divlinealpha,G?m.getColor("divLineAlpha3D"):m.getColor("divLineAlpha"));La=a(e.divlinethickness,1);za=Boolean(a(e.divlinedashed,e.divlineisdashed,this.divLineIsDashed,0));Aa=a(e.divlinedashlen,4);Ya=a(e.divlinedashgap,2);p.yAxis[0].gridLineColor=Y(na,Ea);p.yAxis[0].gridLineWidth=La;p.yAxis[0].gridLineDashStyle=za?n(Aa,Ya,La):"none";p.yAxis[0].alternateGridColor=
  E?Y(c(e.alternatevgridcolor,m.getColor("altVGridColor")),1===a(e.showalternatevgridcolor,1)?c(e.alternatevgridalpha,m.getColor("altVGridAlpha")):Na):Y(c(e.alternatehgridcolor,m.getColor("altHGridColor")),"0"===e.showalternatehgridcolor?0:c(e.alternatehgridalpha,m.getColor("altHGridAlpha")));oc=a(e.vdivlinethickness,1);yc=Boolean(a(e.vdivlinedashed,e.vdivlineisdashed,0));Fb=a(e.vdivlinedashlen,4);tc=a(e.vdivlinedashgap,2);I.gridLineColor=Y(c(e.vdivlinecolor,m.getColor(ja.divLineColor)),c(e.vdivlinealpha,
  m.getColor("divLineAlpha")));I.gridLineWidth=oc;I.gridLineDashStyle=yc?n(Fb,tc,oc):"none";I.alternateGridColor=Y(c(e.alternatevgridcolor,m.getColor("altVGridColor")),"1"===e.showalternatehgridcolor?c(e.alternatevgridalpha,m.getColor("altVGridAlpha")):0);vb=c(e.canvasbgcolor,m.getColor(ja.canvasBgColor));rb=c(e.canvasbgalpha,m.getColor("canvasBgAlpha"));c(e.showcanvasbg,sb)==Na&&(rb="0");p.plotOptions.series.shadow=a(e.showshadow,e.showcolumnshadow,this.defaultPlotShadow,m.getColor("showShadow"));
  this.inversed&&(p.yAxis[0].reversed=!0,p.yAxis[1].reversed=!0);this.isStacked&&(this.distributedColumns?(z.showStackTotal=Boolean(a(e.showsum,1)),A=a(e.usepercentdistribution,1),Ua=a(e.showpercentvalues,0),ib=a(e.showpercentintooltip,A,0),z.showXAxisPercentValues=a(e.showxaxispercentvalues,1)):(z.showStackTotal=Boolean(a(this.showSum,e.showsum,0)),A=a(this.stack100percent,e.stack100percent,0),Ua=a(e.showpercentvalues,A,0),ib=a(e.showpercentintooltip,Ua)),z.showPercentValues=Ua,z.showPercentInToolTip=
  ib,A?(z.isValueAbs=!0,ua[F].stacking="percent",z[0].stacking100Percent=!0):ua[F].stacking="normal");this.isDual&&("0"===e.primaryaxisonleft&&(p.yAxis[0].opposite=!0,p.yAxis[1].opposite=!1),p.yAxis[0].showAlways=!0,p.yAxis[1].showAlways=!0);C.useRoundEdges&&(p.plotOptions.series.shadow=a(e.showshadow,e.showcolumnshadow,1),p.plotOptions.series.borderRadius=1,p.tooltip.style.borderRadius="2px",C.plotBorderRadius=3,ra||(C.plotBorderWidth=0),C.plotShadow=p.plotOptions.series.shadow?{enabled:!0,opacity:rb/
  100}:0);1===a(e.use3dlighting,1)&&(p.legend.lighting3d=!0);p.plotOptions.series.userMaxColWidth=E?e.maxbarheight:a(e.maxcolwidth,this.maxColWidth);p.plotOptions.series.maxColWidth=ta(a(p.plotOptions.series.userMaxColWidth,50))||1;p.title.text=B(e.caption);p.subtitle.text=B(e.subcaption);0===a(e.showtooltip,this.showtooltip)&&(p.tooltip.enabled=!1);Ta=p.tooltip.style;Ta.backgroundColor=Y(c(Ta.backgroundColor,e.tooltipbgcolor,m.getColor("toolTipBgColor")),c(e.tooltipbgalpha,100));Ta.borderColor=Y(c(Ta.borderColor,
  e.tooltipbordercolor,m.getColor("toolTipBorderColor")),c(e.tooltipborderalpha,100));p.tooltip.shadow=a(e.showtooltipshadow,e.showshadow,1)?{enabled:!0,opacity:V(a(e.tooltipbgalpha,100),a(e.tooltipborderalpha,100))/100}:!1;p.tooltip.constrain=a(e.constraintooltip,1);Ta.borderWidth=a(e.tooltipborderthickness,1)+"px";e.tooltipborderradius&&(Ta.borderRadius=a(e.tooltipborderradius,1)+"px");Ta.padding=a(e.tooltippadding,this.tooltippadding,3)+"px";e.tooltipcolor&&(Ta.color=fa(e.tooltipcolor));z.userPlotSpacePercent=
  p.plotOptions.series.userPlotSpacePercent=e.plotspacepercent;yb=a(e.plotspacepercent,20)%100;z.plotSpacePercent=p.plotOptions.series.groupPadding=yb/200;G&&!ha?(C.series2D3Dshift="mscombi3d"===J?!0:Boolean(a(e.use3dlineshift,0)),C.canvasBaseColor3D=c(e.canvasbasecolor,m.getColor("canvasBaseColor3D")),C.canvasBaseDepth=a(e.canvasbasedepth,10),C.canvasBgDepth=a(e.canvasbgdepth,3),C.showCanvasBg=Boolean(a(e.showcanvasbg,1)),C.showCanvasBase=Boolean(a(e.showcanvasbase,1)),E?(C.xDepth=5,C.yDepth=5,C.showCanvasBg&&
  (z.marginTopExtraSpace+=C.canvasBgDepth),z.marginLeftExtraSpace+=C.yDepth+(C.showCanvasBase?C.canvasBaseDepth:0),z.marginBottomExtraSpace+=5):(C.xDepth=10,C.yDepth=10,C.showCanvasBg&&(z.marginRightExtraSpace+=C.canvasBgDepth),z.marginBottomExtraSpace+=C.yDepth+(C.showCanvasBase?C.canvasBaseDepth:0)),vb=vb.split(Ja)[0],rb=rb.split(Ja)[0],C.use3DLighting=Boolean(a(e.use3dlighting,1)),C.plotBackgroundColor=C.use3DLighting?{FCcolor:{color:aa(vb,85)+Ja+sa(vb,55),alpha:rb+Ja+rb,ratio:kb,angle:u(h-(C.marginLeft+
  C.marginRight),w-(C.marginTop+C.marginBottom),1)}}:Y(vb,rb),C.canvasBgColor=Y(aa(vb,80),rb),r=c(e.zeroplanecolor,e.divlinecolor,m.getColor(ja.divLineColor)),N=c(e.zeroplanealpha,e.divlinealpha,m.getColor("divLineAlpha")),C.zeroPlaneColor=Y(r,N),C.zeroPlaneBorderColor=Y(c(e.zeroplanebordercolor,r),a(e.zeroplaneshowborder,1)?N:0),C.zeroPlaneShowBorder=a(e.zeroplaneshowborder,1)):(C.is3D=!1,C.plotBackgroundColor={FCcolor:{color:vb,alpha:rb,angle:c(e.canvasbgangle,m.getColor("canvasBgAngle")),ratio:c(e.canvasbgratio,
  m.getColor("canvasBgRatio"))}});this.parseExportOptions(p);this.parseHoverEffectOptions(C);this.preSeriesAddition&&this.preSeriesAddition(p,l,h,w);this.series&&this.series(l,p,J,h,w);this.postSeriesAddition(p,l,h,w);this.spaceManager(p,l,h,w);this.postSpaceManager&&this.postSpaceManager(p,l,h,w);wb=a(e.drawquadrant,0);z.isXYPlot&&wb&&(Lb=I.min,Ca=I.max,sc=p.yAxis[0].min,uc=p.yAxis[0].max,vc=a(e.quadrantxval,(Lb+Ca)/2),nc=a(e.quadrantyval,(sc+uc)/2),nc>=sc&&nc<=uc&&vc>=Lb&&vc<=Ca&&(wc=Y(c(e.quadrantlinecolor,
  C.plotBorderColor),c(e.quadrantlinealpha,Wa)),lb=a(e.quadrantlinethickness,C.plotBorderWidth),Rb=a(e.quadrantlinedashed,e.quadrantlineisdashed,0),Fc=a(e.quadrantlinedashLen,4),Sa=a(e.quadrantlinedashgap,2),hd=s(e.quadrantlabeltl,b),id=s(e.quadrantlabeltr,b),dc=s(e.quadrantlabelbl,b),jd=s(e.quadrantlabelbr,b),zc=a(e.quadrantlabelpadding,3),kd=Rb?n(Fc,Sa,lb):"none",I.plotLines.push({color:wc,value:vc,width:lb,dashStyle:kd,zIndex:3}),p.yAxis[0].plotLines.push({color:wc,value:nc,width:lb,dashStyle:kd,
  zIndex:3}),Xc=h-C.marginRight-C.marginLeft,Wb=w-C.marginTop-C.marginBottom,pb=z.inCanvasStyle,va=Xc/(Ca-Lb)*(vc-Lb),Vb=Xc-va,Qa=Wb/(uc-sc)*(nc-sc),ec=Wb-Qa,va-=zc,Vb-=zc,ec-=zc,Qa-=zc,Cb=zc+Ga,Db=Wb-zc+Ga,Xb=zc+Ga,gc=Xc-zc+Ga,da.setStyle(pb),0<ec&&(hd!==b&&0<va&&(K=v(e.quadrantlabeltlbordercolor,e.quadrantlabelbordercolor,b),Eb=c(e.quadrantlabeltlbgcolor,e.quadrantlabelbgcolor),Mb=a(e.quadrantlabeltlborderthickness,e.quadrantlabelborderthickness,1),K=K?Y(K,a(e.quadrantlabeltlborderalpha,e.quadrantlabelborderalpha,
  e.quadrantlabeltlalpha,e.quadrantlabelalpha,100)):b,Ub={left:Xb,top:Cb,fontSize:c(a(e.quadrantlabeltlfontsize,e.quadrantlabelfontsize),parseInt(pb.fontSize,10))+Ga,lineHeight:pb.lineHeight,fontFamily:c(e.quadrantlabeltlfont,e.quadrantlabelfont,pb.fontFamily),color:Y(c(e.quadrantlabeltlfontcolor,e.quadrantlabelfontcolor,pb.color),a(e.quadrantlabeltlfontalpha,e.quadrantlabelfontalpha,100)),fontWeight:a(e.quadrantlabeltlfontbold,e.quadrantlabelfontbold)?"bold":"normal",fontStyle:a(e.quadrantlabeltlfontitalic,
  e.quadrantlabelfontitalic)?"italic":"normal",border:K||Eb?Mb+"px solid":b,borderColor:K,borderThickness:Mb,borderPadding:a(e.quadrantlabeltlborderpadding,e.quadrantlabelborderpadding,2),borderRadius:a(e.quadrantlabeltlborderradius,e.quadrantlabelborderradius,0),backgroundColor:Eb?Y(Eb,a(e.quadrantlabeltlbgalpha,e.quadrantlabelbgalpha,e.quadrantlabeltlalpha,e.quadrantlabelalpha,100)):b,borderDash:a(e.quadrantlabeltlborderdashed,e.quadrantlabelborderdashed,0)?n(a(e.quadrantlabeltlborderdashlen,e.quadrantlabelborderdashlen,
  4),a(e.quadrantlabeltlborderdashgap,e.quadrantlabelborderdashgap,2),Mb):void 0},k(Ub),da.setStyle(Ub),Ib=da.getSmartText(hd,va,ec),p.labels.items.push({html:Ib.text,title:Ib.title,zIndex:3,vAlign:ya,style:Ub})),id!==b&&0<Vb&&(K=v(e.quadrantlabeltrbordercolor,e.quadrantlabelbordercolor,b),Eb=c(e.quadrantlabeltrbgcolor,e.quadrantlabelbgcolor),Mb=a(e.quadrantlabeltrborderthickness,e.quadrantlabelborderthickness,1),K=K?Y(K,a(e.quadrantlabeltrborderalpha,e.quadrantlabelborderalpha,e.quadrantlabeltralpha,
  e.quadrantlabelalpha,100)):b,Ub={left:gc,top:Cb,fontSize:c(a(e.quadrantlabeltrfontsize,e.quadrantlabelfontsize),parseInt(pb.fontSize,10))+Ga,lineHeight:pb.lineHeight,fontFamily:c(e.quadrantlabeltrfont,e.quadrantlabelfont,pb.fontFamily),color:Y(c(e.quadrantlabeltrfontcolor,e.quadrantlabelfontcolor,pb.color),a(e.quadrantlabeltrfontalpha,e.quadrantlabelfontalpha,100)),fontWeight:a(e.quadrantlabeltrfontbold,e.quadrantlabelfontbold)?"bold":"normal",fontStyle:a(e.quadrantlabeltrfontitalic,e.quadrantlabelfontitalic)?
  "italic":"normal",border:K||Eb?Mb+"px solid":b,borderColor:K,borderThickness:Mb,borderPadding:a(e.quadrantlabeltrborderpadding,e.quadrantlabelborderpadding,2),borderRadius:a(e.quadrantlabeltrborderradius,e.quadrantlabelborderradius,0),backgroundColor:Eb?Y(Eb,a(e.quadrantlabeltrbgalpha,e.quadrantlabelbgalpha,e.quadrantlabeltralpha,e.quadrantlabelalpha,100)):b,borderDash:a(e.quadrantlabeltrborderdashed,e.quadrantlabelborderdashed,0)?n(a(e.quadrantlabeltrborderdashlen,e.quadrantlabelborderdashlen,4),
  a(e.quadrantlabeltrborderdashgap,e.quadrantlabelborderdashgap,2),Mb):void 0},k(Ub),da.setStyle(Ub),Ib=da.getSmartText(id,va,ec),p.labels.items.push({html:Ib.text,textAlign:ma,title:Ib.title,zIndex:3,vAlign:ya,style:Ub}))),0<Qa&&(dc!==b&&0<va&&(K=v(e.quadrantlabelblbordercolor,e.quadrantlabelbordercolor,b),Eb=c(e.quadrantlabelblbgcolor,e.quadrantlabelbgcolor),Mb=a(e.quadrantlabelblborderthickness,e.quadrantlabelborderthickness,1),K=K?Y(K,a(e.quadrantlabelblborderalpha,e.quadrantlabelborderalpha,e.quadrantlabelblalpha,
  e.quadrantlabelalpha,100)):b,Ub={left:Xb,top:Db,fontSize:c(a(e.quadrantlabelblfontsize,e.quadrantlabelfontsize),parseInt(pb.fontSize,10))+Ga,lineHeight:pb.lineHeight,fontFamily:c(e.quadrantlabelblfont,e.quadrantlabelfont,pb.fontFamily),color:Y(c(e.quadrantlabelblfontcolor,e.quadrantlabelfontcolor,pb.color),a(e.quadrantlabelblfontalpha,e.quadrantlabelfontalpha,100)),fontWeight:a(e.quadrantlabelblfontbold,e.quadrantlabelfontbold)?"bold":"normal",fontStyle:a(e.quadrantlabelblfontitalic,e.quadrantlabelfontitalic)?
  "italic":"normal",border:K||Eb?Mb+"px solid":b,borderColor:K,borderThickness:Mb,borderPadding:a(e.quadrantlabelblborderpadding,e.quadrantlabelborderpadding,2),borderRadius:a(e.quadrantlabelblborderradius,e.quadrantlabelborderradius,0),backgroundColor:Eb?Y(Eb,a(e.quadrantlabelblbgalpha,e.quadrantlabelbgalpha,e.quadrantlabelblalpha,e.quadrantlabelalpha,100)):b,borderDash:a(e.quadrantlabelblborderdashed,e.quadrantlabelborderdashed,0)?n(a(e.quadrantlabelblborderdashlen,e.quadrantlabelborderdashlen,4),
  a(e.quadrantlabelblborderdashgap,e.quadrantlabelborderdashgap,2),Mb):void 0},k(Ub),da.setStyle(Ub),Ib=da.getSmartText(dc,va,ec),p.labels.items.push({html:Ib.text,textAlign:Ma,title:Ib.title,zIndex:3,vAlign:Ia,style:Ub})),jd!==b&&0<Vb&&(K=v(e.quadrantlabelbrbordercolor,e.quadrantlabelbordercolor,b),Eb=c(e.quadrantlabelbrbgcolor,e.quadrantlabelbgcolor),Mb=a(e.quadrantlabelbrborderthickness,e.quadrantlabelborderthickness,1),K=K?Y(K,a(e.quadrantlabelbrborderalpha,e.quadrantlabelborderalpha,e.quadrantlabelbralpha,
  e.quadrantlabelalpha,100)):b,Ub={left:gc,top:Db,fontSize:c(a(e.quadrantlabelbrfontsize,e.quadrantlabelfontsize),parseInt(pb.fontSize,10))+Ga,lineHeight:pb.lineHeight,fontFamily:c(e.quadrantlabelbrfont,e.quadrantlabelfont,pb.fontFamily),color:Y(c(e.quadrantlabelbrfontcolor,e.quadrantlabelfontcolor,pb.color),a(e.quadrantlabelbrfontalpha,e.quadrantlabelfontalpha,100)),fontWeight:a(e.quadrantlabelbrfontbold,e.quadrantlabelfontbold)?"bold":"normal",fontStyle:a(e.quadrantlabelbrfontitalic,e.quadrantlabelfontitalic)?
  "italic":"normal",border:K||Eb?Mb+"px solid":b,borderColor:K,borderThickness:Mb,borderPadding:a(e.quadrantlabelbrborderpadding,e.quadrantlabelborderpadding,2),borderRadius:a(e.quadrantlabelbrborderradius,e.quadrantlabelborderradius,0),backgroundColor:Eb?Y(Eb,a(e.quadrantlabelbrbgalpha,e.quadrantlabelbgalpha,e.quadrantlabelbralpha,e.quadrantlabelalpha,100)):b,borderDash:a(e.quadrantlabelbrborderdashed,e.quadrantlabelborderdashed,0)?n(a(e.quadrantlabelbrborderdashlen,e.quadrantlabelborderdashlen,4),
  a(e.quadrantlabelbrborderdashgap,e.quadrantlabelborderdashgap,2),Mb):void 0},k(Ub),da.setStyle(Ub),Ib=da.getSmartText(jd,va,ec),p.labels.items.push({html:Ib.text,textAlign:ma,vAlign:Ia,title:Ib.title,zIndex:3,style:Ub})))));if(this.hasVDivLine&&(tb=a(e.showvdivlines,0),fc=a(e.numvdivlines,0)+1,tb&&(fc=z.x.catCount-1),1<fc)){db=I.min;lc=z.x.catCount-1;Bb=I.max;Jb=lc/fc;Rc=!0;Zc=db;I.scroll&&!isNaN(I.scroll.viewPortMax)&&(Bb=I.scroll.viewPortMax);kc=c(e.vdivlinecolor,na);sd=a(e.vdivlinealpha,Ea);oc=
  a(e.vdivlinethickness,La);yc=a(e.vdivlinedashed,e.vdivlineisdashed,za);Fb=a(e.vdivlinedashlen,Aa);tc=a(e.vdivlinedashgap,Ya);(mc=a(e.showalternatevgridcolor,0))&&(ld=Y(c(e.alternatevgridcolor,m.getColor("altVGridColor")),c(e.alternatevgridalpha,m.getColor("altVGridAlpha"))));for(Xa=Jb;Xa<lc;Xa+=Jb,Rc=!Rc)Rc&&mc&&I.plotBands.push({isNumVDIV:!0,color:ld,from:Zc,to:Xa,zIndex:1}),I.plotLines.push({isNumVDIV:!0,width:oc,color:Y(kc,sd),dashStyle:yc?n(Fb,tc,oc):"none",value:Xa,zIndex:1}),Zc=Xa;Rc&&mc&&I.plotBands.push({isNumVDIV:!0,
  color:ld,from:Zc,to:Bb,zIndex:1})}Q=C.marginTop;Ka=C.marginBottom;P=C.marginLeft;ea=C.marginRight;ia.canvasstartx=P;ia.canvasstarty=Q;ia.canvasendx=h-ea;ia.canvasendy=w-Ka;ia.canvaswidth=ia.canvasendx-ia.canvasstartx;ia.canvasheight=ia.canvasendy-ia.canvasstarty;p.legend&&p.legend.enabled&&"vertical"===p.legend.layout&&(ia.legendstarty=Q+.5*(z.height-Ka-Q-ia.legendheight)+(p.legend.y||0),ia.legendendy=ia.legendstarty+ia.legendheight);G&&C.xDepth>C.marginLeft&&(C.marginLeft=C.xDepth);q.console&&q.console.log&&
  q.FC_DEV_ENVIRONMENT&&console.log(p);return p},parseHoverEffectOptions:function(b){var d=this.dataObj.chart,h;b.showHoverEffect=d.showhovereffect;b.plotHoverEffect=a(d.plothovereffect,d.anchorhovereffect,b.showHoverEffect);h=b.plotHoverEffects={enabled:b.plotHoverEffect};h.highlight=a(d.highlightonhover,d.highlightplotonhover,b.plotHoverEffect);h.columnHighlight=a(h.highlight,d.highlightcolumnonhover,d.highlightbaronhover);h.anchorHighlight=a(h.highlight,d.highlightanchoronhover);h.imageHighlight=
  a(h.highlight,d.highlightanchorimageonhover);h.anchorImageHoverAlpha=c(d.anchorimagehoveralpha);h.anchorImageHoverScale=c(d.anchorimagehoverscale);h.bubbleHighlight=a(h.highlight,d.highlightbubbleonhover);h.color=c(d.plotfillhovercolor,d.columnhovercolor,d.barhovercolor,d.bubblehovercolor);h.alpha=c(d.plotfillhoveralpha,d.columnhoveralpha,d.barhoveralpha,d.bubblehoveralpha);h.scale=c(d.plothoverscale,d.columnhoverscale,d.barhoverscale,d.bubblehoverscale);h.gradientColor=d.plothovergradientcolor;h.ratio=
  d.plothoverratio;h.angle=d.plothoverangle;h.borderColor=d.plotborderhovercolor;h.borderAlpha=d.plotborderhoveralpha;h.borderThickness=d.plotborderhoverthickness;h.borderDashed=d.plotborderhoverdashed;h.borderDashGap=d.plotborderhoverdashgap;h.borderDashLen=d.plotborderhoverdashlen;h.shadow=d.plothovershadow;h.anchorScale=d.anchorhoverscale;h.anchorSides=d.anchorhoversides;h.anchorRadius=d.anchorhoverradius;h.anchorAlpha=d.anchorhoveralpha;h.anchorBgColor=c(d.anchorbghovercolor,d.anchorhovercolor);
  h.anchorBgAlpha=d.anchorbghoveralpha;h.anchorBorderColor=d.anchorborderhovercolor;h.anchorBorderAlpha=d.anchorborderhoveralpha;h.anchorBorderThickness=d.anchorborderhoverthickness;h.anchorStartAngle=d.anchorhoverstartangle;h.anchorDip=a(d.anchorhoverdip);h.anchorAnimation=a(d.anchorhoveranimation,1);h.negativeColor=c(d.negativehovercolor,d.negativecolor);h.is3DBubble=a(d.is3donhover)},parseExportOptions:function(d){var h=this.chartInstance,g=this.dataObj.chart;f(d.exporting,{enabled:a(g.exportenabled,
  0),bgcolor:h.jsVars.transparent||0===a(h.options.containerBackgroundOpacity,1)?b:h.options.containerBackgroundColor||"#ffffff",bgalpha:(h.jsVars.transparent?0:a(h.options.containerBackgroundOpacity,1))+b,exporttargetwindow:c(g.exporttargetwindow,Rb?"_blank":"_self"),exportaction:g.exportaction&&"save"===g.exportaction.toString().toLowerCase()&&"save"||"download",exportfilename:c(g.exportfilename,"FusionCharts"),exporthandler:c(g.html5exporthandler,g.exporthandler,I),exportparameters:c(g.exportparameters,
  b),exportformat:c(g.exportformat,"PNG"),exportcallback:c(g.exportcallback,b),exportwithimages:a(g.exportwithimages,0),buttons:{printButton:{enabled:!!a(g.printshowbutton,g.showprintmenuitem,0)},exportButton:{enabled:!(!a(g.exportenabled,0)||!a(g.exportshowbutton,g.exportshowmenuitem,1))}}});var h=d.exporting,u;g=g.exportformats;d=C(d.exporting.exportaction);d={JPG:d+" as JPEG image",PNG:d+" as PNG image",PDF:d+" as PDF document",SVG:d+" as SVG vector image"};var e,k,n;if(g){g=g.split(/\s*?\|\s*?/);
  for(n=0;n<g.length;n++)k=(e=g[n].split(/\s*?=\s*?/))&&e[0].toUpperCase()||b,e=e&&e[1]||b,d[k]&&(u||(u={}))&&(u[k]=e||d[k]);u=u||d}else u=d;h.exportformats=u},defaultSeriesType:b,paletteIndex:1,creditLabel:Fb,titleSpaceManager:bb,placeLegendBlockBottom:Hb,configureLegendOptions:Zb,placeLegendBlockRight:P,placeHorizontalAxis:xb,placeVerticalAxis:Nb,placeHorizontalCanvasMarginAdjustment:Tb,placeVerticalCanvasMarginAdjustment:Ra,placeHorizontalXYSpaceManager:function(b,d,h,f){var e=b[g],u,k,n,l,m=d.chart,
  p,D,G,r,q,s,v,N=b.chart,z=e.marginLeftExtraSpace,A=e.marginTopExtraSpace,B=e.marginBottomExtraSpace,da=e.marginRightExtraSpace;l=h-(z+da+N.marginRight+N.marginLeft);var F=f-(B+N.marginBottom+N.marginTop),ha=.3*l;h=.3*F;var C=b.xAxis.showLine?b.xAxis.lineThickness:0;n=b.yAxis[0].showLine?b.yAxis[0].lineThickness:0;u=l-ha;f=F-h;p=c(m.legendposition,Ia).toLowerCase();b.legend.enabled&&p===ma&&(u-=this.placeLegendBlockRight(b,d,u/2,F));q=a(m.xaxisnamepadding,5);s=a(m.labelpadding,4);v=c(m.rotatexaxisname,
  "ccw");v=v===Na?"none":v;D=c(m.showplotborder,e.is3d?Na:sb)===sb;D=e.plotBorderThickness=D?e.is3d?1:a(m.plotborderthickness,1):0;G=V(a(N.plotBorderWidth,1),0);!e.isDual&&N.marginRight<G&&void 0===m.chartrightmargin&&(k=G-N.marginRight,l>ha+k&&(N.marginRight=G,l-=k,ha=.3*l,u=l-ha));k=e.x;r=V(G,D/2);s<r&&(s=r);k.verticalAxisNamePadding=q;k.verticalAxisValuesPadding=s+C;k.rotateVerticalAxisName=v;k.verticalAxisNameWidth=a(m.xaxisnamewidth);u-=Nb(b.xAxis,k,b,d,F,u,!1,!1,l);b.xAxis.lineEndExtension=n;
  u-=Tb(b,d,u,b.xAxis);l=u+ha;b.legend.enabled&&p!==ma&&(f-=this.placeLegendBlockBottom(b,d,l,f/2));f-=this.titleSpaceManager(b,d,l,f/2);k=e[0];k.horizontalAxisNamePadding=a(m.yaxisnamepadding,5);k.horizontalLabelPadding=V(a(m.yaxisvaluespadding,4))+n;k.labelDisplay="auto";k.staggerLines=a(m.staggerlines,2);k.slantLabels=a(m.slantlabels,0);k.horizontalLabelPadding=k.horizontalLabelPadding<G?G:k.horizontalLabelPadding;this.xAxisMinMaxSetter(b,d,l);n=b.xAxis;q=n.plotLines;u=f/(n.max-n.min);q&&q.length&&
  (G=(q[0].value-n.min)*u,q=(n.max-q[q.length-1].value)*u,e.isBar&&(D>G&&(n.min-=(D-G)/(2*u)),D>q&&(n.max+=(D-q)/(2*u))));f-=this.placeHorizontalAxis(b.yAxis[0],k,b,d,l,f,ha);f-=Ra(b,d,f,b.yAxis[0]);ea(h+f,b,m,b.xAxis,e.x.lYLblIdx,!0);ub(b,b.xAxis.title,f);b.legend.enabled&&p===ma&&(b=b.legend,d=h+f,b.height>d&&(b.height=d,b.scroll.enabled=!0,d=(b.scroll.scrollBarWidth=10)+(b.scroll.scrollBarPadding=2),b.width+=d,N.marginRight+=d),b.y=20);N.marginLeft+=z;N.marginTop+=A;N.marginBottom+=B;N.marginRight+=
  da},placeVerticalXYSpaceManager:function(b,d,h,f){var e=b[g],u,k,n=!0;u=0;var l=d.chart,m=!1,p,D,G,r,q=b.chart,s,v,N,z=e.marginLeftExtraSpace,A=e.marginTopExtraSpace,B=e.marginBottomExtraSpace,da=e.marginRightExtraSpace;r=h-(z+da+q.marginRight+q.marginLeft);var ha=f-(B+q.marginBottom+q.marginTop),F=.3*r;f=.3*ha;var C=r-F;h=ha-f;u=e.drawFullAreaBorder=a(l.drawfullareaborder,1);var E=c(l.legendposition,Ia).toLowerCase();s=b.xAxis.showLine?b.xAxis.lineThickness:0;v=b.yAxis[0].showLine?b.yAxis[0].lineThickness:
  0;N=e.isDual&&b.yAxis[1].showLine?b.yAxis[1].lineThickness:0;p=a(l.yaxisnamepadding,5);D=a(l.yaxisvaluespadding,l.labelypadding,4);k=c(l.showplotborder,e.is3d?Na:sb)===sb;k=e.plotBorderThickness=k?e.is3d?1:a(l.plotborderthickness,1):0;G=V(a(q.plotBorderWidth,1),0);k=V(G,k/2);"area"!==this.defaultSeriesType||u||(k=G);D<G&&(D=G);!e.isDual&&q.marginRight<G&&void 0===l.chartrightmargin&&(u=G-b.chart.marginRight,r>F+u&&(r-=u,F=.3*r,C=r-F));b.legend.enabled&&E===ma&&(C-=this.placeLegendBlockRight(b,d,C/
  2,ha));e.isDual&&(m=!0,u=e[1],n=b.yAxis[1].opposite,G=c(l.rotateyaxisname,n?"cw":"ccw"),G=G===Na?"none":G,u.verticalAxisNamePadding=p,u.verticalAxisValuesPadding=D+N,u.rotateVerticalAxisName=G,u.verticalAxisNameWidth=a(l.syaxisnamewidth),C-=Nb(b.yAxis[1],u,b,d,ha,C/2,n,m));u=e[0];n=!n;G=c(l.rotateyaxisname,n?"cw":"ccw");G=G===Na?"none":G;u.verticalAxisNamePadding=p;u.verticalAxisValuesPadding=D+v;u.rotateVerticalAxisName=G;u.verticalAxisNameWidth=a(m?l.pyaxisnamewidth:l.yaxisnamewidth);C-=Nb(b.yAxis[0],
  u,b,d,ha,C,n,m,r);C-=Tb(b,d,C,b.yAxis[0],b.yAxis[1]);n=C+F;b.legend.enabled&&E!==ma&&(h-=this.placeLegendBlockBottom(b,d,n,h/2));h-=this.titleSpaceManager(b,d,n,h/2);u=e.x;u.horizontalAxisNamePadding=a(l.xaxisnamepadding,5);u.horizontalLabelPadding=a(l.labelpadding,l.labelxpadding,4)+s;u.labelDisplay=c(l.labeldisplay,"auto").toLowerCase();u.rotateLabels=a(l.rotatelabels,l.rotatexaxislabels,0);u.staggerLines=a(l.staggerlines,2);u.slantLabels=a(l.slantlabels,l.slantlabel,0);b.yAxis[0].opposite?(b.xAxis.lineEndExtension=
  v,b.xAxis.lineStartExtension=N):(b.xAxis.lineEndExtension=N,b.xAxis.lineStartExtension=v);u.horizontalLabelPadding<k&&(u.horizontalLabelPadding=k);r={left:0,right:0};r=q.managePlotOverflow&&this.canvasPaddingModifiers&&this.calculateCanvasOverflow(b,!0)||r;s=r.left+r.right;v=.6*n;s>v&&(N=r.left/s,r.left-=N*(s-v),r.right-=(1-N)*(s-v));this.xAxisMinMaxSetter(b,d,n,r.left,r.right);h-=this.placeHorizontalAxis(b.xAxis,u,b,d,n,h,F);h-=Ra(b,d,h,b.xAxis);b.title.alignWithCanvas||("left"===b.title.align&&
  b.yAxis[0].title.text&&$a(b,b.yAxis[0].title,f+h),"right"===b.title.align&&m&&b.yAxis[1].title.text&&$a(b,b.yAxis[1].title,f+h));m&&(ea(f+h,b,l,b.yAxis[1],e[1].lYLblIdx),ub(b,b.yAxis[1].title,f+h));ea(f+h,b,l,b.yAxis[0],e[0].lYLblIdx);ub(b,b.yAxis[0].title,f+h);b.legend.enabled&&E===ma&&(b=b.legend,d=f+h,b.height>d&&"gradient"!==b.type&&(b.height=d,b.scroll.enabled=!0,d=(b.scroll.scrollBarWidth=10)+(b.scroll.scrollBarPadding=2),b.width+=d,q.marginRight+=d));q.marginLeft+=z;q.marginTop+=A;q.marginBottom+=
  B;q.marginRight+=da},placeVerticalAxisTitle:ub,calculateCanvasOverflow:function(a,c){for(var d=this.canvasPaddingModifiers,h=a.chart,e=this.smartLabel,g=0,f=0,u=0,k=0,n=g=!1,l=!1,m=d&&d.length||0,p,D,G,r,q;m--;)switch(f=d[m],f){case "anchor":n=D=g=!0;break;case "anchorlabel":G=D=g=!0;break;case "errorbar":l=g=!0}if(g&&(m=(d=a.series)&&d.length||0,c))for(;m--;)p=d[m],D&&(g=p&&p.data||[],1<g.length&&(r=g[0],q=g[g.length-1],n&&(g=r&&r.marker&&r.marker.enabled&&(r.marker.radius||0)+(r.marker.lineWidth||
  0)||0,f=q&&q.marker&&q.marker.enabled&&(q.marker.radius||0)+(q.marker.lineWidth||0)||0,u=V(g+2,u),k=V(f+2,k)),G&&(e.setStyle(a.plotOptions.series.dataLabels.style),h.rotateValues?(f=e.getOriSize(r&&r.displayValue||b),g=f.height/2,f=e.getOriSize(q&&q.displayValue||b),f=f.height/2):(f=e.getOriSize(r&&r.displayValue||b),g=f.width/2,f=e.getOriSize(q&&q.displayValue||b),f=f.width/2),u=V(g+2,u),k=V(f+2,k)))),l&&(f=g=p.errorBarWidth/2+p.errorBarThickness||0,u=V(g+2,u),k=V(f+2,k));return{left:u,right:k}},
  spaceManager:function(){return this.placeVerticalXYSpaceManager.apply(this,arguments)},axisMinMaxSetter:function(b,c,d,h,e,g,f,u){d=c.stacking100Percent?ra(99,1,100,0,e,g,f,u):ra(a(c.max,d),a(c.min,h),d,h,e,g,f,u);b.min=Number(F(d.Min,10));b.max=Number(F(d.Max,10));b.tickInterval=Number(F(d.divGap,10));c.numdivlines=r.round((b.max-b.min)/b.tickInterval)-1;2>=d.Range/d.divGap&&(b.alternateGridColor=Ea);this.highValue=c.max;this.lowValue=c.min;delete c.max;delete c.min},configurePlotLines:function(d,
  h,f,u,e,k,n,l,m,p,D){var G=f.min,r=f.max,q=f.tickInterval,s=p?"xAxis":u.stacking100Percent?"percentValue":"yAxis",v=G,N=1,z=f.gridLineColor,A=f.gridLineWidth,B=f.gridLineDashStyle,da=0>G&&0<r?!0:!1,ha=0===G,C=0===r,E=0===a(u.showzeroplanevalue,d.showzeroplanevalue),ua=!0,H,ja=1,I=0<a(d.numdivlines,0),ra=h[g].axisGridManager,K=this.colorManager,Ba=this.is3D,ia=a(d.showaxislimitgridlines,this.showAxisLimitGridLines),Ba=a(ia,Ba||h.chart.plotBorderWidth?0:1),Ha=this.inversed;h=h.xAxis;D=a(D,m?1:0);delete f._altGrid;
  delete f._lastValue;p&&!u.catOccupied&&(u.catOccupied={});!da||p&&u.catOccupied[0]||(p?(ua=a(d.showvzeroplane,1),H=a(d.showvzeroplanevalue,k),I=a(d.vzeroplanethickness,1),K=c(d.vzeroplanealpha,d.vdivlinealpha,K.getColor("divLineAlpha")),d=0<I?Y(c(d.vzeroplanecolor,z),K):Ea):(K=a(d.divlinealpha,K.getColor("divLineAlpha")),H=a(u.showzeroplanevalue,d.showzeroplanevalue,k),!1===this.defaultZeroPlaneHighlighted?(ua=a(u.showzeroplane,d.showzeroplane,!(this.defaultZeroPlaneHidden&&!I)),I=A):(I=1===A?2:A,
  ja=5,K=ba(2*K,100)),I=a(u.zeroplanethickness,d.zeroplanethickness,I),K=c(u.zeroplanealpha,d.zeroplanealpha,K),d=0<I?Y(c(u.zeroplanecolor,d.zeroplanecolor,z),K):Ea),ua&&(H=H?l[s](0,D):b,(ja=ra.addAxisGridLine(f,0,H,I,B,d,ja,p))&&(ja.isZeroPlane=!0)),f.effectiveZeroPlaneThickness=ua&&parseInt(K,10)&&I);p&&u.catOccupied[G]||(H=!e||ha&&E?b:l[s](G,D),(ja=ia||Ba&&(Ha||!h.showLine)?ra.addAxisGridLine(f,G,H,A,B,z||Ea,2,p):ra.addAxisGridLine(f,G,H,.1,void 0,Ea,2,p))&&(ja.isMinLabel=!0));0>=A&&(A=.1,z=Ea);
  for(G=Number(F(v+q,10));G<r;G=Number(F(G+q,10)),N+=1)da&&0>v&&0<G&&!m&&(ra.addAxisAltGrid(f,0),N+=1),0===G||p&&u.catOccupied[G]||(H=1===k&&0===N%n?l[s](G,D):b,ra.addAxisGridLine(f,G,H,A,B,z,2,p)),v=G,m||ra.addAxisAltGrid(f,G);m||ra.addAxisAltGrid(f,r);0!==N%n||p&&u.catOccupied[r]||(H=!e||C&&E?b:l[s](r,D),(ja=ia||Ba&&(!Ha||!h.showLine)?ra.addAxisGridLine(f,r,H,A,B,z||Ea,2,p):ra.addAxisGridLine(f,r,H,.1,B,Ea,2,p))&&(ja.isMaxLabel=!0));this.realtimeEnabled&&(f.labels._enabled=f.labels.enabled,f._gridLineWidth=
  f.gridLineWidth,f._alternateGridColor=f.alternateGridColor);f.labels.enabled=!1;f.gridLineWidth=0;f.alternateGridColor=Ea;f.plotLines.sort(Kb)},xAxisMinMaxSetter:function(b,c,d,h,e){var f=b[g],u=f.x,k=c.chart,n=u.min=a(u.min,0),l=u.max=a(u.max,u.catCount-1),m=0,p=0,D=b.chart.defaultSeriesType,G=/^(column|column3d|bar|bar3d|floatedcolumn|sparkwinloss|boxandwhisker2d|dragcolumn)$/.test(D),r=/^(line|area|spline|areaspline)$/.test(D),D=/^(scatter|bubble|candlestick|dragnode)$/.test(D),q=b.xAxis,s=q.scroll,
  v=s&&s.enabled,N=a(k.canvaspadding),z=W(N),A=za(ba(a(N,h,0),d/2-10)),N=za(ba(a(N,e,0),d/2-10)),B,da,ha,F;u.adjustMinMax&&(B=a(k.setadaptivexmin,1),l=n=!B,da=a(this.numVDivLines,k.numvdivlines,4),ha=k.adjustvdiv!==Na,F=a(k.showxaxisvalues,k.showxaxisvalue,1),B=a(k.showvlimits,F),F=a(k.showvdivlinevalue,k.showvdivlinevalues,F),this.axisMinMaxSetter(q,u,k.xaxismaxvalue,k.xaxisminvalue,n,l,da,ha),n=q.min,l=q.max,u.requiredAutoNumericLabels&&(da=a(parseInt(k.xaxisvaluesstep,10),1),this.configurePlotLines(k,
  b,q,u,B,F,1>da?1:da,f.numberFormatter,!1,!0)),q.plotLines.sort(Kb));q.labels.enabled=!1;q.gridLineWidth=0;q.alternateGridColor=Ea;(G||f.isScroll)&&!f.hasNoColumn&&!z&&W(h)&&W(e)&&(p=d/(l-n+1)*.5,A=0<p-h?0:A,N=0<p-e?0:N,m=0<p-h?.5:0,p=0<p-e?.5:0);G&&!f.hasNoColumn&&(p=m=.5);f.is3d&&(A+=a(b.chart.xDepth,0));b=(d-(A+N))/((v?s.vxLength:l)-n+(m+p));q.min=n-(m+A/b);q.max=l+(p+N/b);v&&(m=s.vxLength,b=q.max-q.min,s.viewPortMin=q.min,s.viewPortMax=q.max,s.scrollRatio=m/b,s.flatScrollBars=f.flatScrollBars,
  s.scrollBar3DLighting=f.scrollBar3DLighting,q.max=q.min+m);r&&q.min===q.max&&(q.min-=.65,q.max+=.65);D&&c.vtrendlines&&K(c.vtrendlines,q,f,!1,!0,!0)},postSeriesAddition:function(b){var d=b[g],h=d.isBar,u=d.is3d,e=b.chart.rotateValues&&!h?270:0,k=d[0],n=k&&k.stacking100Percent,l,m,D,G,q,r,s,N,v,z,A,B,da,F,ha,C,E,ua,H,I,ra,ja,K;if(this.isStacked)for(D in l=d.plotSpacePercent,m=b.chart.defaultSeriesType,l=1-2*l,C=b.series,E=this.numberFormatter,ra=f({},b.plotOptions.series.dataLabels.style),ja=parseFloat(ra.fontSize),
  K=!k.stacking100Percent,ra.color=b.plotOptions.series.dataLabels.color,G=k.stack,G){k=G[D].length;q=l/k;s=-(l-q)/2;F=[];B=0;for(N=C.length;B<N;B+=1)v=C[B],v.yAxis||c(v.type,m)!==D||F.push(v);for(r=0;r<k;r+=1,s+=q){A=G[D][r];ha=[];B=0;for(N=F.length;B<N;B+=1)v=F[B],a(v.columnPosition,0)===r&&ha.push(v.data);if(A&&A.length)for(z=0,v=A.length;z<v;z+=1)if(B=A[z])for(da=(B.n||0)+(B.p||0),d.showStackTotal&&(N=z,N+=s,B=0>da?B.n:B.p,b.xAxis.plotLines.push({value:N,width:0,isVline:K,isTrend:!K,zIndex:4,_isStackSum:1,
  _catPosition:z,_stackIndex:r,label:{align:la,textAlign:u||270!==e?h?0>da?ma:Ma:la:0>da?ma:Ma,offsetScale:K?B:void 0,offsetScaleIndex:0,rotation:e,style:ra,verticalAlign:ya,y:h?0:0>da?270===e?4:ja:-4,x:0,text:d.numberFormatter.yAxis(da)}})),B=0,N=ha.length;B<N;B+=1)if(H=ha[B][z])if(I=da&&(H.y||0)/da*100,ua=E.percentValue(I),H.toolText=p(H.toolText,[14,24,25,112],{percentValue:ua,sum:E.dataLabels(da),unformattedSum:da}),H.y||0===H.y)n&&(H.y=I,H.previousY||0===H.previousY)&&(H.previousY=H.previousY/
  da*100),H.showPercentValues&&(H.displayValue=ua)}}},styleMapForFont:ia,styleApplicationDefinition_font:function(a,b,c){var d,e,h=!1,f,u,n=this.styleMapForFont;switch(b){case "caption":d=a.title;break;case "datalabels":d=a.xAxis.labels;break;case "datavalues":d=a.plotOptions.series.dataLabels;h=!0;break;case "tldatavalues":d={style:a.plotOptions.series.dataLabels.tlLabelStyle};break;case "trdatavalues":d={style:a.plotOptions.series.dataLabels.trLabelStyle};break;case "bldatavalues":d={style:a.plotOptions.series.dataLabels.blLabelStyle};
  break;case "brdatavalues":d={style:a.plotOptions.series.dataLabels.brLabelStyle};break;case "subcaption":d=a.subtitle;break;case "tooltip":d=a.tooltip;break;case "trendvalues":d={style:a[g].trendStyle};break;case "xaxisname":d=a.xAxis.title;break;case "yaxisname":case "pyaxisname":case "axistitle":d=[];b=0;for(f=a.yAxis.length;b<f;b+=1)d.push(a.yAxis[b].title);break;case "yaxisvalues":d=[];b=0;for(f=a.yAxis.length;b<f;b+=1)d.push(a.yAxis[b].labels);break;case "vlinelabels":d={style:a[g].divlineStyle};
  break;case "legend":d={style:a.legend.itemStyle};break;default:(d=a.orphanStyles[b])||(a.orphanStyles[b]=d={text:"",style:{}})}if("object"===typeof d)if(d instanceof Array)for(b=0,f=d.length;b<f;b+=1){u=d[b];for(e in c)if(a=e.toLowerCase(),"function"===typeof n[a])n[a](c[e],u,h);k(u.style)}else{for(e in c)if(a=e.toLowerCase(),"function"===typeof n[a])n[a](c[e],d,h);k(d.style)}},parseStyles:function(a){var b,c,d,e={},h,g=this.dataObj;if(g.styles&&g.styles.definition instanceof Array&&g.styles.application instanceof
  Array){for(b=0;b<g.styles.definition.length;b+=1)c=g.styles.definition[b],c.type&&c.name&&this["styleApplicationDefinition_"+c.type.toLowerCase()]&&(e[c.name.toLowerCase()]=c);for(b=0;b<g.styles.application.length;b+=1)for(c=g.styles.application[b].styles&&g.styles.application[b].styles.split(Ja)||[],h=0;h<c.length;h+=1)if(d=c[h].toLowerCase(),e[d]&&g.styles.application[b].toobject)this["styleApplicationDefinition_"+e[d].type.toLowerCase()](a,g.styles.application[b].toobject.toLowerCase(),e[d])}},
  updateDefaultAnnotations:function(){var b=this.renderer,d=this.dataObj,h=this.chartInstance,g=d&&d.annotations||{},e={},f;if(this.drawAnnotations&&h.dataReady()&&d&&d.chart&&a(d.chart.showannotations,1)){f=a(g.scaleonresize,d.chart.scaleonresize,1);var b={interactionevents:c(this.annotationInteractionEvents,!0),showbelow:c(g.showbelow,g.showbelowchart),autoscale:g.autoscale,scaletext:g.scaletext,scaleimages:g.scaleimages,constrainedscale:g.constrainedscale,scaleonresize:f,origw:c(g.origw,d.chart.origw,
  f?this.origRenderWidth:b.chartWidth),origh:c(g.origh,d.chart.origh,f?this.origRenderHeight:b.chartHeight),xshift:g.xshift,yshift:g.yshift,grpxshift:g.grpxshift,grpyshift:g.grpyshift,xscale:g.xscale,yscale:g.yscale,rootxscale:a(g.xscale,100)/100,rootyscale:a(g.yscale,100)/100},u;b||(b={});for(u in e)b[u]=e[u];h.annotations.reset(g,b,this.snapLiterals)}else h.annotations.clear()},dispose:function(){var a;this.disposing=!0;this.renderer&&this.renderer.dispose();this.numberFormatter&&this.numberFormatter.dispose();
  this.hcJSON&&this.hcJSON.chart&&this.hcJSON.chart.renderTo&&delete this.hcJSON.chart.renderTo;for(a in this)delete this[a];delete this.disposing;this.disposed=!0}});qa("stub",{init:function(a,b,c){this.containerElement=a;this.smartLabel=c.jsVars.smartLabel},standaloneInit:!0},qa.base);qa("barbase",{spaceManager:function(){return this.placeHorizontalXYSpaceManager.apply(this,arguments)}},qa.base);qa("singleseries",{series:function(a,b,c){var d=a.data||a.dataset&&a.dataset[0]&&a.dataset[0].data,e;d&&
  0<d.length&&d instanceof Array&&(e={data:[],hoverEffects:this.parseSeriesHoverOptions(a,b,{},c),colorByPoint:!0},b.legend.enabled=!1,c=this.point(c,e,d,a.chart,b),c instanceof Array?b.series=b.series.concat(c):b.series.push(c),this.configureAxis(b,a),a.trendlines&&K(a.trendlines,b.yAxis,b[g],!1,this.isBar))},defaultSeriesType:b,configureAxis:function(b,d){var h=b[g],f=b.xAxis,e=d.chart,u=b.chart.is3D,k,n,l,m,p,D,G,r,q,s,N,v,z=0,A,da,F,ha,C,E,ua,H=this.numberFormatter,I=a(e.syncaxislimits,0),ra;f.title.text=
  B(e.xaxisname);ra=a(parseInt(e.yaxisvaluesstep,10),parseInt(e.yaxisvaluestep,10),1);ra=1>ra?1:ra;k=b.yAxis[0];n=h[0];if(h.isDual)l=H.getCleanValue(e.pyaxismaxvalue),m=H.getCleanValue(e.pyaxisminvalue),k.title.text=B(e.pyaxisname),I&&!n.stacking100Percent?(v=h[1],N=a(v.max),v=a(v.min),void 0!==N&&void 0!==v&&(n.min=ba(n.min,v),n.max=V(n.max,N)),N=H.getCleanValue(e.syaxismaxvalue),v=H.getCleanValue(e.syaxisminvalue),null!==v&&(m=null!==m?ba(m,v):v),null!==N&&(l=null!==l?V(l,N):N)):I=0;else{l=H.getCleanValue(e.yaxismaxvalue);
  m=H.getCleanValue(e.yaxisminvalue);if(h.isSpline)for(v=0;v<b.series.length;v++)N=nb(b.series[v].data,h.width,b.plotOptions.series.connectNullData),n.min=ba(n.min,N.min),n.max=V(n.max,N.max);k.title.text=B(e.yaxisname)}G=a(this.isStacked?0:this.setAdaptiveYMin,e.setadaptiveymin,this.defSetAdaptiveYMin,0);D=p=!G;r=a(h.numdivlines,e.numdivlines,this.numdivlines,4);q=e.adjustdiv!==Na;s=a(this.showYAxisValues,e.showyaxisvalues,e.showyaxisvalue,1);N=a(e.showyaxislimits,e.showlimits,s);v=a(e.showdivlinevalue,
  e.showdivlinevalues,s);u||(z=a(e.showaxislines,e.drawAxisLines,0),F=a(e.axislinethickness,1),C=a(e.axislinealpha,100),100<C&&(C=100),da=Y(c(e.axislinecolor,"#000000"),C),k.showLine=a(e.showyaxisline,z),A=f.showLine=a(e.showxaxisline,z),ha=f.lineThickness=a(e.xaxislinethickness,F),k.lineThickness=a(e.yaxislinethickness,F),E=f.lineAlpha=a(e.xaxislinealpha,C),100<E&&(E=f.lineAlpha=100),ua=k.lineAlpha=a(e.yaxislinealpha,C),100<ua&&(ua=k.lineAlpha=100),f.lineColor=Y(c(e.xaxislinecolor,da),E),k.lineColor=
  Y(c(e.yaxislinecolor,da),ua),b.chart.xAxisLineVisible=A&&!!ha&&0<E);this.axisMinMaxSetter(k,n,l,m,p,D,r,q);this.configurePlotLines(e,b,k,n,N,v,ra,h.numberFormatter,!1);k.reversed&&0<=k.min&&(b.plotOptions.series.threshold=k.max);h.isDual&&(k=b.yAxis[1],n=h[1],N=a(e.showsecondarylimits,N),v=a(e.showdivlinesecondaryvalue,s),I?(f=b.yAxis[0],k.min=f.min,k.max=f.max,k.tickInterval=f.tickInterval,delete n.max,delete n.min):(l=H.getCleanValue(e.syaxismaxvalue),m=H.getCleanValue(e.syaxisminvalue),G=a(e.setadaptivesymin,
  G),D=p=!G,this.axisMinMaxSetter(k,n,l,m,p,D,r,q)),u||(k.showLine=a(e.showsyaxisline,z),k.lineThickness=a(e.syaxislinethickness,F),u=k.lineAlpha=a(e.syaxislinealpha,C),100<u&&(u=100),k.lineColor=Y(c(e.syaxislinecolor,da),u)),this.configurePlotLines(e,b,k,n,N,v,ra,h.numberFormatter,!0),k.title.text=B(e.syaxisname))},pointValueWatcher:function(b,d,h,f,e,u,k){b=b[g];var n;if(null!==d)return h=a(h,0),b[h]||(b[h]={}),h=b[h],f&&(this.distributedColumns&&(b.marimekkoTotal+=d),f=h.stack,e=a(e,0),u=a(u,0),
  k=c(k,Ta),f[k]||(f[k]=[]),k=f[k],k[u]||(k[u]=[]),u=k[u],u[e]||(u[e]={}),e=u[e],0<=d?e.p?(n=e.p,d=e.p+=d):e.p=d:e.n?(n=e.n,d=e.n+=d):e.n=d),h.max=h.max>d?h.max:d,h.min=h.min<d?h.min:d,n},parseSeriesHoverOptions:function(b,d,h){b=d.chart.plotHoverEffects;d={enabled:c(h.showhovereffect,h.hovereffect,b.enabled)};d.highlight=a(h.highlightonhover,h.highlightplotonhover,b.highlight);d.columnHighlight=a(d.highlight,h.highlightcolumnonhover,h.highlightbaronhover,b.columnHighlight);d.anchorHighlight=a(d.highlight,
  h.highlightanchoronhover,b.anchorHighlight);d.anchorHighlight=a(d.highlight,h.highlightimageonhover,b.imageHighlight);d.bubbleHighlight=a(d.highlight,h.highlightbubbleonhover,h.highlightbaronhover,b.bubbleHighlight);d.imageHoverAlpha=c(h.anchorimagehoveralpha,b.anchorImageHoverAlpha);d.imageHoverScale=c(h.anchorimagehoverscale,b.anchorImageHoverScale);d.color=c(h.hovercolor,h.bubblehovercolor,b.color);d.alpha=c(h.hoveralpha,b.alpha);d.scale=c(h.hoverscale,h.bubblehoverscale,b.scale);d.gradientColor=
  void 0!==h.hovergradientcolor?h.hovergradientcolor:b.gradientColor;d.ratio=c(h.hoverratio,b.ratio);d.angle=c(h.hoverangle,b.angle);d.borderColor=c(h.borderhovercolor,b.borderColor);d.borderAlpha=c(h.borderhoveralpha,b.borderAlpha);d.borderThickness=a(h.borderhoverthickness,b.borderThickness);d.borderDashed=a(h.borderhoverdashed,b.borderDashed);d.borderDashGap=a(h.borderhoverdashgap,b.borderDashGap);d.borderDashLen=a(h.borderhoverdashlen,b.borderDashLen);d.shadow=c(h.hovershadow,b.shadow);d.anchorSides=
  c(h.anchorhoversides,b.anchorSides);d.anchorRadius=c(h.anchorhoverradius,b.anchorRadius);d.anchorScale=c(h.anchorhoverscale,b.anchorScale);d.anchorAlpha=c(h.anchorhoveralpha,h.hoveralpha,b.anchorAlpha);d.anchorBgColor=c(h.anchorbghovercolor,h.anchorhovercolor,b.anchorBgColor);d.anchorBgAlpha=c(h.anchorbghoveralpha,b.anchorBgAlpha);d.anchorBorderColor=c(h.anchorborderhovercolor,b.anchorBorderColor);d.anchorBorderAlpha=c(h.anchorborderhoveralpha,b.anchorBorderAlpha);d.anchorBorderThickness=a(h.anchorborderhoverthickness,
  b.anchorBorderThickness);d.anchorStartAngle=c(h.anchorhoverstartangle,b.anchorStartAngle);d.anchorDip=c(h.anchorhoverdip,b.anchorDip);d.anchorAnimation=a(h.anchorhoveranimation,b.anchorAnimation,1);d.negativeColor=c(h.negativehovercolor,b.negativeColor);d.is3DBubble=a(h.is3donhover,b.is3DBubble);return d},pointHoverOptions:function(d,h,g){var f,e,u,k={};f=h.hoverEffects;h=a(d.hovereffect,f&&f.enabled);e=!1;var l={enabled:h},m=g&&b+g.plotType.toLowerCase();if(void 0===h)if(this.forceHoverEnable)e=
  h=l.enabled=!0;else{"anchor"==m&&(e=g.imageUrl?h=l.enabled=void 0!==c(d.anchorimagehoveralpha,f.imageHoverAlpha,d.anchorimagehoverscale,f.imageHoverScale,void 0):h=l.enabled=void 0!==c(d.hovercolor,d.anchorhovercolor,d.anchorbghovercolor,f.anchorBgColor,f.color,d.hoveralpha,d.anchorhoveralpha,f.anchorAlpha,d.bghoveralpha,d.anchorbghoveralpha,f.anchorBgAlpha,d.anchorborderhovercolor,d.borderhovercolor,f.anchorBorderColor,d.anchorborderhoverthickness,d.borderhoverthickness,f.anchorBorderThickness,d.anchorborderhoveralpha,
  d.borderhoveralpha,f.anchorBorderAlpha,d.hoverdip,d.anchorhoverdip,f.anchorDip,d.anchorhoverstartangle,f.anchorStartAngle,d.hoversides,d.anchorhoversides,f.anchorSides,d.hoverradius,d.anchorhoverradius,f.anchorRadius,void 0));if("column"==m||"bubble"==m)e=h=l.enabled=void 0!==c(d.hoveralpha,f.alpha,d.hovergradientcolor,f.gradientColor,d.borderhovercolor,f.borderColor,d.borderhoverthickness,f.borderThickness,d.hoverratio,f.ratio,d.hoverangle,f.angle,d.borderhoveralpha,f.borderAlpha,d.borderhoverdashed,
  f.borderDashed,d.borderhoverdashgap,f.borderDashGap,d.borderhoverdashlen,f.borderDashLen,d.hovercolor,f.color,void 0);e||"bubble"!=m||(e=h=l.enabled=void 0!==c(d.negativehovercolor,f.negativeColor,d.is3donhover,f.is3DBubble,d.hoverscale,f.scale,void 0));"pie"==m&&(e=h=l.enabled=void 0!==c(d.hovercolor,f.color,d.hoveralpha,f.alpha,d.borderhovercolor,f.borderColor,d.borderhoverthickness,f.borderThickness,d.borderhoveralpha,f.borderAlpha,void 0))}if(h){l.highlight=a(d.highlightonhover,f.highlight);l.columnHighlight=
  a(l.highlight,d.highlightcolumnonhover,d.highlightbaronhover);l.anchorHighlight=a(l.highlight,d.highlightanchoronhover);l.bubbleHighlight=a(l.highlight,d.highlightbubbleonhover);l.alpha=c(d.hoveralpha,f.alpha,g.alpha);l.scale=c(d.hoverscale,f.scale,1);l.gradientColor=void 0===d.hovergradientcolor?f.gradientColor:d.hovergradientcolor;l.borderColor=c(d.borderhovercolor,f.borderColor,g.borderColor);l.borderThickness=a(d.borderhoverthickness,f.borderThickness,g.borderWidth);l.ratio=c(d.hoverratio,f.ratio,
  g.ratio);l.angle=c(d.hoverangle,f.angle,g.angle);l.borderAlpha=c(d.borderhoveralpha,f.borderAlpha,g.borderAlpha);l.borderDashed=a(d.borderhoverdashed,f.borderDashed,g.borderDashed,0);l.borderDashGap=a(d.borderhoverdashgap,f.borderDashGap,g.borderDashGap);l.borderDashLen=a(d.borderhoverdashlen,f.borderDashLen,g.borderDashLen);l.shadow=c(d.hovershadow,f.shadow,0);l.color=c(d.hovercolor,f.color);"anchor"==m&&(g.imageUrl?(l.imageHoverAlpha=a(d.anchorimagehoveralpha,f.imageHoverAlpha,100),l.imageHoverScale=
  g.imageScale*ta(a(d.anchorimagehoverscale,f.imageHoverScale,110))*.01,l.anchorAnimation=a(d.anchorhoveranimation,f.anchorAnimation,1)):(l.anchorColor=fa(c(d.hovercolor,d.anchorhovercolor,d.anchorbghovercolor,f.anchorBgColor,f.color,g.anchorBgColor)),l.anchorAlpha=c(d.hoveralpha,d.anchorhoveralpha,f.anchorAlpha,g.anchorAlpha),l.anchorBgAlpha=c(d.bghoveralpha,d.anchorbghoveralpha,f.anchorBgAlpha,l.anchorAlpha,g.anchorBgAlpha),l.anchorBorderColor=c(d.anchorborderhovercolor,d.borderhovercolor,f.anchorBorderColor,
  g.anchorBorderColor),l.anchorBorderThickness=c(d.anchorborderhoverthickness,d.borderhoverthickness,f.anchorBorderThickness,g.anchorBorderThickness),l.anchorBorderAlpha=a(d.anchorborderhoveralpha,d.borderhoveralpha,f.anchorBorderAlpha,l.anchorAlpha,g.anchorBorderAlpha),l.anchorDip=a(d.hoverdip,d.anchorhoverdip,f.anchorDip),l.startAngle=c(d.anchorhoverstartangle,f.anchorStartAngle,g.anchorAngle),l.anchorSides=a(d.hoversides,d.anchorhoversides,f.anchorSides,g.anchorSides),l.anchorRadius=a(d.hoverradius,
  d.anchorhoverradius,f.anchorRadius),l.anchorScale=a(d.hoverscale,d.anchorhoverscale,f.anchorScale),l.anchorAnimation=a(d.anchorhoveranimation,f.anchorAnimation,1),void 0===l.anchorRadius&&(l.anchorRadius=!e||l.anchorHighlight?g.anchorRadius&&g.anchorRadius+1:g.anchorRadius)));if(e||(l.columnHighlight||l.bubbleHighlight)&&l.color&&1==l.highlight)l.highlight=0;"column"==m&&(l.color=(c(l.color,g.color)+Ja+(void 0===l.gradientColor?g.gradientColor:l.gradientColor)).replace(/,+?$/,""));"pie"===m&&(l.color=
  c(l.color,g.color).replace(/,+?$/,""));"bubble"==m&&(l.negativeColor=c(d.negativehovercolor,f.negativeColor,g.negativeColor),l.is3d=a(d.is3donhover,f.is3DBubble,g.is3d),l.color=l.negativeColor&&0>d.z?l.negativeColor:l.color||g.color,u="string"==typeof l.color,l.color=fa(u?l.color:l.color.FCcolor.color),l.color=l.is3d?qa.bubble.getPointColor(l.color,l.alpha):{FCcolor:{color:l.color,alpha:l.alpha}});if(1==l.highlight&&"anchor"!==m){d=(u="string"==typeof l.color)?l.color.split(/\s{0,},\s{0,}/):l.color.FCcolor.color.split(/\s{0,},\s{0,}/);
  f=d.length;for(e=0;e<f;e++)d[e]=sa(d[e],70);u?l.color=d.join(","):l.color.FCcolor.color=d.join(",")}"pie"===m&&(k={color:this.getPointColor(l.color,l.alpha,g.radius3D),alpha:l.alpha,borderColor:Y(l.borderColor,l.borderAlpha),borderWidth:l.borderThickness});"column"==m&&(l.colorArr=T(l.color,l.alpha,l.ratio,l.angle,g.isRoundEdged,l.borderColor,ba(l.alpha,l.borderAlpha).toString(),g.isBar,g.is3d),l.dashStyle=l.borderDashed?n(l.borderDashLen,l.borderDashGap,l.borderThickness):"none",k={shadow:l.shadow,
  color:l.colorArr[0],borderColor:l.colorArr[1],borderWidth:l.borderThickness,use3DLighting:g.use3DLighting,dashStyle:l.dashStyle});"anchor"==m&&(k=g.imageUrl?{animation:l.anchorAnimation,imageHoverAlpha:l.imageHoverAlpha,imageHoverScale:l.imageHoverScale}:{animation:l.anchorAnimation,shadow:l.shadow,fillColor:{FCcolor:{color:l.anchorColor,alpha:l.anchorBgAlpha*l.anchorAlpha/100+b}},lineColor:{FCcolor:{color:l.anchorBorderColor,alpha:l.anchorBorderAlpha}},lineWidth:l.anchorBorderThickness,radius:l.anchorRadius,
  symbol:La(l.anchorSides),startAngle:l.startAngle,sides:l.anchorSides,scale:l.anchorScale,dip:l.anchorDip});"bubble"==m&&(k={symbol:l.seriesAnchorSymbol,shadow:l.shadow,scale:l.scale,fillColor:l.color,lineColor:{FCcolor:{color:l.borderColor,alpha:l.alpha}},lineWidth:l.borderThickness})}return{enabled:h,options:l,rolloverOptions:k}},getPointStub:function(d,h,f,u){var e=this.dataObj.chart;u=u[g];h=null===h?h:u.numberFormatter.dataLabels(h);var k=s(B(c(d.tooltext,u.tooltext))),l=s(B(d.displayvalue)),
  e=u.showTooltip?void 0!==k?p(k,[1,2,3,5,6,7],{formattedValue:h,label:f,yaxisName:B(e.yaxisname),xaxisName:B(e.xaxisname)},d,e):null===h?!1:f!==b?f+u.tooltipSepChar+h:h:b;u=a(d.showvalue,u.showValues)?void 0!==l?l:h:b;d=c(d.link);return{displayValue:u,categoryLabel:f,toolText:e,link:d}},updateSnapPoints:function(){var a=this,b=a.snapLiterals,c=function(a,b){var c=0;switch(a){case "startx":c=b.x;break;case "starty":c=b.y;break;case "x":case "middlex":case "centerx":c=b.x+b.width/2;break;case "y":case "middley":case "centery":c=
  b.y+b.height/2;break;case "endx":c=b.x+b.width;break;case "endy":c=b.y+b.height;break;default:c=0}return c};b.dataset=function(b,d){var h=a.renderer&&a.renderer.plots,g,f,u,k;u=a.is3D;if(!h||!h.length)return 0;isNaN(b[0])?g=0:(g=Number(b[0]),b=b.slice(1));f=b[0];if("set"===f){isNaN(b[1])?(k=0,b=b.slice(1)):(k=Number(b[1]),b=b.slice(2));f=b[0];h=(h=h[g]&&h[g].items[k])&&h.graphic;if(!h)return 0;u=d&&u?h._getBBox2():h.getBBox();k=c(f,u)}return k};b.xaxis=function(b){var d=a.renderer&&a.renderer.xAxis&&
  a.renderer.xAxis[0]&&a.renderer.xAxis[0].labels,h,g;if(!d||!d.length)return 0;g=b[0];if("label"===g){isNaN(b[1])?(h=0,b=b.slice(1)):(h=Number(b[1]),b=b.slice(2));g=b[0];b=d[h];if(!b)return 0;b=b.getBBox();h=c(g,b)}return h};b.yaxis=function(b){var d=a.renderer&&a.renderer.yAxis,h,g;if(!d||!d.length)return 0;isNaN(b[0])?h=0:(h=Number(b[0]),b=b.slice(1));h=d[h];if(!h)return 0;d=b[0];if("label"===d){g=h.labels;isNaN(b[1])?(h=0,b=b.slice(1)):(h=Number(b[1]),b=b.slice(2));d=b[0];b=g[h];if(!b)return 0;
  b=b.getBBox();g=c(d,b)}return g}}},qa.base);qa("multiseries",{series:function(b,c,d){var h,e,f=c[g],u,k;c.legend.enabled=Boolean(a(b.chart.showlegend,1));if(b.dataset&&0<b.dataset.length){this.categoryAdder(b,c);h=0;for(e=b.dataset.length;h<e;h+=1)u=b.dataset[h],k={hoverEffects:this.parseSeriesHoverOptions(b,c,u,d),visible:!a(u.initiallyhidden,0),data:[]},this.isStacked||(k.numColumns=e),u=this.point(d,k,u,b.chart,c,f.oriCatTmp.length,h),u instanceof Array?c.series=c.series.concat(u):c.series.push(u);
  this.configureAxis(c,b);b.trendlines&&!this.isLog&&K(b.trendlines,c.yAxis,f,!1,this.isBar,void 0,this.inversed)}},categoryAdder:function(c,d){var h,f=0,e=d[g],u=e.axisGridManager,l=c.chart,n=d.xAxis,m,e=e.x,p,D,G,r;if(c.categories&&c.categories[0]&&c.categories[0].category)for(c.categories[0].font&&(d.xAxis.labels.style.fontFamily=c.categories[0].font),void 0!==(h=a(c.categories[0].fontsize))&&(1>h&&(h=1),d.xAxis.labels.style.fontSize=h+Ga,k(d.xAxis.labels.style)),c.categories[0].fontcolor&&(d.xAxis.labels.style.color=
  c.categories[0].fontcolor.split(Ja)[0].replace(/^\#?/,"#")),D=d[g].oriCatTmp,G=c.categories[0].category,h=0;h<G.length;h+=1)G[h].vline?u.addVline(n,G[h],f,d):(p=a(G[h].showlabel,l.showlabels,1),r=c.categories[0].category[h],m=B(v(r.label,r.name)),u.addXaxisCat(n,f,f,p?m:b,{},r,l),D[f]=v(B(r.tooltext),m),f+=1);e.catCount=f},getPointStub:function(d,h,f,u,e,k,l,n,m,G){var D=this.dataObj.chart,r=this.isDual,q=this.isXY,N=this.isMLAxis,z=this.isStacked,A=this.isErrorChart,da;u=u[g];var F,ha,C=null===h?
  h:this.numberFormatter.dataLabels(h,l),E,ua=s(B(c(d.tooltext,e.plottooltext,u.tooltext))),H=u.tooltipSepChar,ra,I={},ja,K,Ba,ia,Ha,Da,xa,L,Q;A&&(K=null===n?n:this.numberFormatter.dataLabels(n,l),Da=null===h?b:this.numberFormatter.percentValue(n/h*100),ra=[1,2,3,4,5,6,7,99,100,101,102],h={yaxisName:ia=B(r?l?D.syaxisname:D.pyaxisname:D.yaxisname),xaxisName:Ha=B(D.xaxisname),formattedValue:C,label:f,errorDataValue:K,errorPercentValue:Da},q?(Ba=null===m?m:this.numberFormatter.xAxis(m),xa=null===G?b:this.numberFormatter.percentValue(m/
  G*100),ra.push(103,104,105,106,107,108,109,110),Q=c(d.horizontalerrorvalue,d.errorvalue),h.errorValue=L=c(d.verticalerrorvalue,d.errorvalue),G=s(B(c(d.verticalerrorplottooltext,d.errorplottooltext,e.verticalerrorplottooltext,e.errorplottooltext,D.verticalerrorplottooltext,D.errorplottooltext))),null!==n&&(h.verticalErrorDataValue=K,h.verticalErrorPercentValue=Da,h.verticalErrorValue=L),null!==m&&(h.horizontalErrorDataValue=Ba,h.horizontalErrorPercentValue=xa,h.horizontalErrorValue=Q),ja=s(B(c(d.horizontalerrorplottooltext,
  d.errorplottooltext,e.horizontalerrorplottooltext,e.errorplottooltext,D.horizontalerrorplottooltext,D.errorplottooltext))),I._hErrortoolText=u.showTooltip?void 0!==ja?p(ja,ra,{yaxisName:ia=B(r?l?D.syaxisname:D.pyaxisname:D.yaxisname),xaxisName:Ha=B(D.xaxisname),formattedValue:C,label:f,errorDataValue:Ba,errorPercentValue:xa,errorValue:Q,verticalErrorDataValue:K,verticalErrorPercentValue:Da,verticalErrorValue:L,horizontalErrorDataValue:Ba,horizontalErrorPercentValue:xa,horizontalErrorValue:Q},d,D,
  e):null===n?!1:Ba:!1):(G=s(B(c(d.errorplottooltext,e.errorplottooltext,D.errorplottooltext))),h.errorValue=L=c(d.errorvalue)),I._errortoolText=u.showTooltip?void 0!==G?p(G,ra,h,d,D,e):null===n?!1:K:!1);u.showTooltip?void 0!==ua?(z=[4,5,6,7],l={yaxisName:ia||B(r?l?D.syaxisname:D.pyaxisname:N?e._yAxisName:D.yaxisname),xaxisName:Ha||B(D.xaxisname)},q?(z.push(8,9,10,11),l.yDataValue=C,l.xDataValue=f,A&&(z.push(103,104,105,106,107,108,109,110),null!==n&&(l.verticalErrorDataValue=K,l.verticalErrorPercentValue=
  Da,l.verticalErrorValue=L),null!==m&&(l.horizontalErrorDataValue=Ba,l.horizontalErrorPercentValue=xa,l.horizontalErrorValue=Q))):(z.push(1,2,3),l.formattedValue=C,l.label=f,A&&(z.push(99,100,101,102),l.errorValue=L,null!==n&&(l.errorDataValue=K,l.errorPercentValue=Da))),e=p(ua,z,l,d,D,e)):null===C?e=!1:(u.seriesNameInToolTip&&(E=v(e&&e.seriesname)),e=E?E+H:b,e+=f?f+H:b,u.showPercentInToolTip&&z?(ha=!0,e+="$percentValue"):e+=C):e=!1;a(d.showvalue,k)?void 0!==s(d.displayvalue)?da=B(d.displayvalue):
  u.showPercentValues?F=!0:da=C:da=b;I.link=c(d.link);I.displayValue=da;I.categoryLabel=f;I.toolText=e;I.showPercentValues=F;I.showPercentInToolTip=ha;return I}},qa.singleseries);qa("xybase",{hideRLine:function(){var a=this.chart.series[this.index+1];a&&a.hide&&a.hide()},showRLine:function(){var a=this.chart.series[this.index+1];a&&a.show&&a.show()},getRegressionLineSeries:function(a,b,c){var d,e,h,g;g=a.sumXY;var f=a.sumX,u=a.sumY;e=a.xValues;h=a.sumXsqure;d=a.yValues;a=a.sumYsqure;b?(e.sort(wa),d=
  e[0],e=e[e.length-1],g=(c*g-f*u)/(c*h-U(f,2)),h=isNaN(g)?u/c:g*(d-f/c)+u/c,c=isNaN(g)?u/c:g*(e-f/c)+u/c,c=[{x:d,y:h},{x:e,y:c}]):(d.sort(wa),h=d[0],d=d[d.length-1],g=(c*g-f*u)/(c*a-U(u,2)),e=isNaN(g)?f/c:g*(h-u/c)+f/c,c=isNaN(g)?f/c:g*(d-u/c)+f/c,c=[{x:e,y:h},{x:c,y:d}]);return c},pointValueWatcher:function(a,b,c,d){var e=a[g];null!==b&&(a=e[0],a.max=a.max>b?a.max:b,a.min=a.min<b?a.min:b);null!==c&&(a=e.x,a.max=a.max>c?a.max:c,a.min=a.min<c?a.min:c);d&&(c=c||0,b=b||0,d.sumX+=c,d.sumY+=b,d.sumXY+=
  c*b,d.sumXsqure+=U(c,2),d.xValues.push(c),d.sumYsqure+=U(b,2),d.yValues.push(b))}},qa.multiseries);qa("scrollbase",{postSeriesAddition:function(){var b=this.hcJSON,d=b.xAxis.scroll,h=b[g],f=h.width,e=h.x.catCount,u=this.dataObj.chart,l=this.colorManager,k,n,m,p,D,G;h.isScroll=!0;b.chart.hasScroll=!0;if(this.isStacked)k=1;else{n=k=0;p=b.series;G=b.chart.defaultSeriesType;for(m=p.length;n<m;n++)D=c(p[n].type,G),"column"===D&&(k+=1);1>k&&(k=1)}e*=k;f=a(u.numvisibleplot,Aa(f/this.avgScrollPointWidth));
  d&&2<=f&&f<e&&(d.enabled=!0,d.vxLength=f/k,d.startPercent=ba(1,V(0,parseFloat(u.scrolltoend)||0)),d.padding=a(u.scrollpadding,0),d.height=a(u.scrollheight,16),d.showButtons=!!a(u.scrollshowbuttons,1),d.buttonPadding=a(u.scrollbtnpadding,0),d.color=fa(c(u.scrollcolor,l.getColor("altHGridColor"))),h.marginBottomExtraSpace+=d.padding+d.height);if(Ha||a(u.enabletouchscroll,0))b.chart.zoomType="x",b.chart.nativeZoom=!1,b.chart.selectionMarkerFill="rgba(255,255,255,0)",(b.callbacks||(b.callbacks=[])).push(function(a){A(a,
  "selectionstart selectiondrag",qa.scrollbase.performTouchScroll,{})})},performTouchScroll:function(a){var b=this.xAxis[0].scroller,c=b.config,c=c.trackLength/(c.width/c.scrollRatio)*(a.chartX||1);!0!==a.isOutsidePlot&&Ba(b.elements.anchor.element,"selectionstart"===a.type?"dragstart":"drag",{pageX:-c,pageY:-a.chartY})}},qa.multiseries);qa("logbase",{isLog:!0,isValueAbs:!0,configureAxis:function(d,h){var u=d[g],k=u.axisGridManager,e=this.numberFormatter,l=d.series,n=d.xAxis,m=d.yAxis[0],p=u[0],D=h.chart,
  G=!a(D.showyaxislimits,D.showlimits,D.showyaxisvalues,1),r=!a(D.showdivlinevalues,D.showyaxisvalues,1),q=a(D.base,D.logbase,10),s=a(D.yaxismaxvalue),N=a(D.yaxisminvalue),v=this.colorManager,z=1===a(D.showminordivlinevalues),A=c(D.minordivlinecolor,m.gridLineColor,v.getColor("divLineColor")),da=a(D.minordivlinealpha,D.divlinealpha,v.getColor("divLineAlpha")),v=[m,void 0,void 0,a(D.divlinethickness,2),m.gridLineDashStyle,m.gridLineColor,2],A=[m,void 0,void 0,a(D.minordivlinethickness,1),m.gridLineDashStyle,
  Y(c(D.minordivlinecolor,A),a(D.minordivlinealpha,da/2)),2],da=z||da&&A[3],F=a(D.showaxislimitgridlines,this.showAxisLimitGridLines),ha=a(F,this.is3D||d.chart.plotBorderWidth?0:1),C,E;0>=q&&(q=10);0>=s&&(s=void 0);0>=N&&(N=void 0);s=this.getLogAxisLimits(p.max||q,p.min||1,s,N,q,da?D.numminordivlines:0);n.title.text=B(D.xaxisname);n.showLine=a(D.showxaxisline,D.showaxislines,0);n.lineThickness=a(D.xaxislinethickness,D.axislinethickness,1);n.lineAlpha=a(D.xaxislinealpha,D.axislinealpha,100);n.lineColor=
  Y(c(D.xaxislinecolor,D.axislinecolor,"000"));f(m,{title:{text:B(D.yaxisname)},labels:{enabled:!1},gridLineWidth:0,alternateGridColor:Ea,reversed:"1"===D.invertyaxis,max:ja(s.Max,q),min:ja(s.Min,q),showLine:a(D.showyaxisline,D.showaxislines,0),lineThickness:a(D.yaxislinethickness,D.axislinethickness,1),lineAlpha:a(D.yaxislinealpha,D.axislinealpha,100),lineColor:Y(c(D.yaxislinecolor,D.axislinecolor,"000"))});for(D=l.length;D--;)if(N=l[D])for(N.threshold=m.min,E=(N=N.data)&&N.length||0;E--;)C=N[E],C.y=
  ja(C.y,q);delete p.max;delete p.min;p.isLog=!0;m.reversed&&0<=m.min&&(d.plotOptions.series.threshold=m.max);h.trendlines&&K(h.trendlines,[{max:s.Max,min:s.Min,plotLines:m.plotLines,plotBands:m.plotBands,title:m.title}],u);for(D=m.plotLines.length;D--;)C=m.plotLines[D],C.value&&(C.value=ja(C.value,q)),C.from&&(C.from=ja(C.from,q)),C.to&&(C.to=ja(C.to,q));for(D=m.plotBands.length;D--;)C=m.plotBands[D],C.from&&(C.from=ja(C.from,q)),C.to&&(C.to=ja(C.to,q));for(D=s.divArr.length;D--;){C=s.divArr[D];if(C.ismajor)v[1]=
  ja(C.value,q),v[2]=e.yAxis(C.value),k.addAxisGridLine.apply(k,v);else if(da||C.isextreme)A[1]=ja(C.value,q),A[2]=z||C.isextreme?e.yAxis(C.value):b,k.addAxisGridLine.apply(k,A);N=m.plotLines[m.plotLines.length-1];C.isextreme?(N.width=F||ha&&(!C.isMin||!n.showLine)?N.width:.1,G&&(N.label.text=b)):r&&N.label&&(N.label.text=b)}},getLogAxisLimits:function(a,b,c,d,e,h){var g=function(a){return null===a||void 0===a||""===a||isNaN(a)?!1:!0},f=0,u=[],k,l,n,m,p,D,G,q;g(c)&&Number(c)>=a?a=Number(c):(c=1<e?za(Z(a)/
  Z(e)):Aa(Z(a)/Z(e)),a=U(e,c),l=c);l||(l=1<e?za(Z(a)/Z(e)):Aa(Z(a)/Z(e)));g(d)&&Number(d)<=b?b=Number(d):(c=1<e?Aa(Z(b)/Z(e)):za(Z(b)/Z(e)),b=U(e,c),k=c);k||(k=1<e?Aa(Z(b)/Z(e)):za(Z(b)/Z(e)));d=Number(String(Z(e)/Z(10)));h=Number(h)||(Aa(d)==d?8:4);1<e?(n=l,m=k):0<e&&1>e&&(n=k,m=l);d=l;for(k=n;k>=m;--k)if(n=U(e,d),b<=n&&a>=n&&(u[f++]={value:n,ismajor:!0}),k!=m){l=1<e?-1:1;n=U(e,d)-U(e,d+l);c=n/(h+1);for(g=1;g<=h;++g)n=U(e,d+l)+c*g,b<=n&&a>=n&&(u[f++]={value:n,ismajor:!1});1<e?d--:d++}for(G in u)for(q in u[G])"value"==
  q&&(p||(p=u[G][q]==b&&(u[G].isextreme=u[G].isMin=!0)),D||(D=u[G][q]==a&&(u[G].isextreme=u[G].isMax=!0)));p||(u[f++]={value:b,ismajor:!0,isMin:!0,isextreme:!0});D||(u[f]={value:a,ismajor:!0,isMax:!0,isextreme:!0});return{Max:a,Min:b,divArr:u}},pointValueWatcher:function(b,c,d){b=b[g];d=a(d,0);0<c&&(b[d]||(b[d]={}),d=b[d],d.max=d.max>c?d.max:c,d.min=d.min<c?d.min:c)}},qa.mslinebase);Ya=qa.singleseries;ib=qa.multiseries;qa("column2dbase",{point:function(d,h,u,k,e){var l=u.length,m=e[g],p=m.axisGridManager,
  D=e.xAxis,m=m.x,G=this.colorManager,q=/3d$/.test(e.chart.defaultSeriesType),r=this.isBar,s=/^spark/i.test(d);d=c(k.showplotborder,s||q?Na:sb)===sb?q?1:a(k.plotborderthickness,1):0;var N=e.chart.useRoundEdges,z=a(k.plotborderalpha,k.plotfillalpha,100),A=c(k.plotbordercolor,G.getColor("plotBorderColor")).split(Ja)[0],s=s?"":a(k.useplotgradientcolor,1)?O(k.plotgradientcolor,G.getColor("plotGradientColor")):b,da=0,C=Boolean(a(k.use3dlighting,1)),F=e[g].numberFormatter,ha,E=a(k.plotborderdashed,0),ua=
  a(k.plotborderdashlen,5),H=a(k.plotborderdashgap,4),I,ra,K,ja,Ba,ia,Ha,Da,xa,L,Q,Ka,P,ea;for(K=0;K<l;K+=1)P=u[K],P.vline?p.addVline(D,P,da,e):(ra=F.getCleanValue(P.value),ha=a(P.showlabel,k.showlabels,1),ja=B(v(P.label,P.name)),I=c(P.color,G.getPlotColor()),Ba=c(P.alpha,k.plotfillalpha,Wa),ia=c(P.ratio,k.plotfillratio),Ha=c(360-k.plotfillangle,r?180:90),Da=c(P.alpha,z),xa=a(P.dashed,E),L=c(P.dashgap,H),Q=c(P.dashlen,ua),p.addXaxisCat(D,da,da,ha?ja:b,P,{},k,I),da+=1,0>ra&&(Ha=r?180-Ha:360-Ha),ea={opacity:Ba/
  100},Ka=T(I+Ja+s.replace(/,+?$/,""),Ba,ia,Ha,N,A,Da+b,r,q),ha=xa?n(Q,L,d):"none",I=this.pointHoverOptions(P,h,{plotType:"column",is3d:q,isBar:r,use3DLighting:C,isRoundEdged:N,color:I,gradientColor:s,alpha:Ba,ratio:ia,angle:Ha,borderWidth:d,borderColor:A,borderAlpha:Da,borderDashed:xa,borderDashGap:L,borderDashLen:Q,shadow:ea}),h.data.push(f(this.getPointStub(P,ra,ja,e),{y:ra,shadow:ea,color:Ka[0],borderColor:Ka[1],borderWidth:d,use3DLighting:C,dashStyle:ha,tooltipConstraint:this.tooltipConstraint,
  hoverEffects:I.enabled&&I.options,rolloverProperties:I.enabled&&I.rolloverOptions})),this.pointValueWatcher(e,ra));m.catCount=da;return h},defaultSeriesType:"column"},Ya);qa("linebase",{defaultSeriesType:"line",hasVDivLine:!0,defaultPlotShadow:1,point:function(d,h,u,k,e){var l,m,p,D,G,q,r,s,N,z,A,da,C,F,ha,E,ua,H,I,ra,K,ja,Ba,ia,Ha,Da;d=e.chart;var xa=u.length,L=e.xAxis;l=e[g];var Q=this.colorManager,P,Ka=l.axisGridManager,ea=0,nb=l.x,Pa=e[g].numberFormatter,eb,bb,fb;F=fa(c(k.linecolor,k.palettecolors,
  Q.getColor("plotFillColor")));ha=c(k.linealpha,Wa);A=a(k.linethickness,this.lineThickness,4);da=Boolean(a(k.linedashed,0));r=a(k.linedashlen,5);s=a(k.linedashgap,4);Ha=a(k.anchorshadow,0);h.color={FCcolor:{color:F,alpha:ha}};h.lineWidth=A;h.anchorShadow=Ha;h.step=c(this.stepLine,h.step);h.drawVerticalJoins=Boolean(a(h.drawVerticalJoins,k.drawverticaljoins,1));h.useForwardSteps=Boolean(a(h.useForwardSteps,k.useforwardsteps,1));C=a(k.drawanchors,k.showanchors);for(m=0;m<xa;m+=1)D=u[m],D.vline?Ka.addVline(L,
  D,ea,e):(l=Pa.getCleanValue(D.value),G=a(D.showlabel,k.showlabels,1),p=B(v(D.label,D.name)),Ka.addXaxisCat(L,ea,ea,G?p:b,D,{},k),ea+=1,N=fa(c(D.color,F)),z=a(D.alpha,ha),G=a(D.dashed,da)?n(r,s,A):"none",q={opacity:z/100},ua=a(D.anchorsides,k.anchorsides,0),ia=a(D.anchorstartangle,k.anchorstartangle,90),ra=a(D.anchorradius,k.anchorradius,this.anchorRadius,3),I=fa(c(D.anchorbordercolor,k.anchorbordercolor,F)),H=a(D.anchorborderthickness,k.anchorborderthickness,this.anchorBorderThickness,1),K=fa(c(D.anchorbgcolor,
  k.anchorbgcolor,Q.getColor("anchorBgColor"))),ja=c(D.anchoralpha,k.anchoralpha,Wa),Ba=c(D.anchorbgalpha,k.anchorbgalpha,ja),eb=c(D.anchorimageurl,k.anchorimageurl),bb=c(D.anchorimagescale,k.anchorimagescale,100),fb=c(D.anchorimagealpha,k.anchorimagealpha,100),E=void 0===C?0!==z:!!C,Da=Boolean(a(D.anchorshadow,Ha,0)),P=this.pointHoverOptions(D,h,{plotType:"anchor",anchorBgColor:K,anchorAlpha:ja,anchorBgAlpha:Ba,anchorAngle:ia,anchorBorderThickness:H,anchorBorderColor:I,anchorBorderAlpha:ja,anchorSides:ua,
  anchorRadius:ra,imageUrl:eb,imageScale:bb,imageAlpha:fb,shadow:q}),h.data.push(f(this.getPointStub(D,l,p,e),{y:l,color:{FCcolor:{color:N,alpha:z}},shadow:q,dashStyle:G,valuePosition:c(D.valueposition,d.valuePosition),marker:{enabled:!!E,shadow:Da&&{opacity:ja/100},fillColor:{FCcolor:{color:K,alpha:Ba*ja/100+b}},lineColor:{FCcolor:{color:I,alpha:ja}},lineWidth:H,radius:ra,startAngle:ia,symbol:La(ua),imageUrl:eb,imageScale:bb,imageAlpha:fb},tooltipConstraint:this.tooltipConstraint,hoverEffects:P.enabled&&
  P.options,rolloverProperties:P.enabled&&P.rolloverOptions})),this.pointValueWatcher(e,l));nb.catCount=ea;return h},defaultZeroPlaneHighlighted:!1},Ya);qa("area2dbase",{defaultSeriesType:"area",hasVDivLine:!0,parseAnchorVisibility:function(b,d,h){var g=a(b.drawanchors,d.drawanchors,d.showanchors);return W(g)?g:W(c(b.anchorsides,d.anchorsides,b.anchorstartangle,d.anchorstartangle,b.anchorradius,d.anchorradius,b.anchorbordercolor,d.anchorbordercolor,b.anchorborderthickness,d.anchorborderthickness,b.anchorbgcolor,
  d.anchorbgcolor,b.anchoralpha,d.anchoralpha,b.anchorbgalpha,d.anchorbgalpha,b.anchorshadow,d.anchorshadow))||h},point:function(d,h,u,k,e){d=e.chart;var l=u.length,m=e.xAxis,D=e[g],p=D.axisGridManager,D=D.x,G=e[g].numberFormatter,q=this.colorManager,r=0,N,z,A,da,C,F,ha,E,ua,H,I,ra,ja,K,Ba,ia,Ha,Da,xa,L,Q,P,Ka,ea,nb,Pa,eb,bb,fb;C=c(k.plotfillcolor,k.areabgcolor,s(k.palettecolors)?q.getPlotColor(0):q.getColor("plotFillColor")).split(/\s*\,\s*/)[0];Q=Ja+(a(k.useplotgradientcolor,1)?O(k.plotgradientcolor,
  q.getColor("plotGradientColor")):b);F=c(k.plotfillalpha,k.areaalpha,this.isStacked?Wa:"90");ha=a(k.plotfillangle,270);E=c(k.plotbordercolor,k.areabordercolor,s(k.palettecolors)?q.getPlotColor(0):q.getColor("plotBorderColor")).split(/\s*\,\s*/)[0];ua=k.showplotborder==Na?Na:c(k.plotborderalpha,k.plotfillalpha,k.areaalpha,Wa);N=a(k.plotborderangle,270);z=Boolean(a(k.plotborderdashed,0));A=a(k.plotborderdashlen,5);ja=a(k.plotborderdashgap,4);Ha=a(k.plotborderthickness,k.areaborderthickness,1);P=h.fillColor=
  {FCcolor:{color:C+Q.replace(/,+?$/,""),alpha:F,ratio:kb,angle:ha}};h.lineWidth=Ha;h.dashStyle=z?n(A,ja,Ha):"none";h.lineColor={FCcolor:{color:E,alpha:ua,ratio:Wa,angle:N}};h.step=c(this.stepLine,h.step);h.drawVerticalJoins=Boolean(a(h.drawVerticalJoins,k.drawverticaljoins,1));h.useForwardSteps=Boolean(a(h.useForwardSteps,k.useforwardsteps,1));Ha=Boolean(a(k.drawanchors,k.showanchors,1));nb=Boolean(this.parseAnchorVisibility({},k,0));h.anchorShadow=Ka=a(k.anchorshadow,0);for(z=0;z<l;z+=1)ja=u[z],ja.vline?
  p.addVline(m,ja,r,e):(N=G.getCleanValue(ja.value),da=a(ja.showlabel,k.showlabels,1),A=B(v(ja.label,ja.name)),p.addXaxisCat(m,r,r,da?A:b,ja,{},k),r+=1,da=a(ja.anchorsides,k.anchorsides,0),ra=a(ja.anchorstartangle,k.anchorstartangle,90),H=a(ja.anchorradius,k.anchorradius,3),I=fa(c(ja.anchorbordercolor,k.anchorbordercolor,E)),Da=a(ja.anchorborderthickness,k.anchorborderthickness,1),K=fa(c(ja.anchorbgcolor,k.anchorbgcolor,q.getColor("anchorBgColor"))),Ba=c(ja.anchoralpha,k.anchoralpha,this.anchorAlpha,
  nb?Wa:0),ia=c(ja.anchorbgalpha,k.anchorbgalpha,Ba),ea=Boolean(a(ja.anchorshadow,Ka,0)),xa=s(ja.color),L=a(ja.alpha),xa=void 0!==xa||void 0!==L?{FCcolor:{color:xa?fa(xa)+Q:C,alpha:void 0===L?$(L)+b:F,ratio:kb,angle:ha}}:P,Pa=c(ja.anchorimageurl,k.anchorimageurl),eb=c(ja.anchorimagescale,k.anchorimagescale,100),bb=c(ja.anchorimagealpha,k.anchorimagealpha,100),L={opacity:V(L,ua)/100,inverted:!0},fb=this.pointHoverOptions(ja,h,{plotType:"anchor",anchorBgColor:K,anchorAlpha:Ba,anchorBgAlpha:ia,anchorAngle:ra,
  anchorBorderThickness:Da,anchorBorderColor:I,anchorBorderAlpha:Ba,anchorSides:da,anchorRadius:H,imageUrl:Pa,imageScale:eb,imageAlpha:bb,shadow:L}),h.data.push(f(this.getPointStub(ja,N,A,e),{y:N,shadow:L,color:xa,valuePosition:c(ja.valueposition,d.valuePosition),marker:{enabled:Ha,shadow:ea&&{opacity:Ba/100},fillColor:{FCcolor:{color:K,alpha:ia*Ba/100+b}},lineColor:{FCcolor:{color:I,alpha:Ba}},lineWidth:Da,radius:H,symbol:La(da),startAngle:ra,imageUrl:Pa,imageScale:eb,imageAlpha:bb},tooltipConstraint:this.tooltipConstraint,
  previousY:this.pointValueWatcher(e,N),hoverEffects:fb.enabled&&fb.options,rolloverProperties:fb.enabled&&fb.rolloverOptions})));D.catCount=r;return h}},Ya);qa("mscolumn2dbase",{point:function(d,f,u,k,e,l,n,m,D){d=a(k.ignoreemptydatasets,0);var p=!1,G=u.data||[],q=e[g],r=c(f.type,this.defaultSeriesType),N=c(f.isStacked,e.plotOptions[r]&&e.plotOptions[r].stacking),v=c(this.isValueAbs,q.isValueAbs,!1),z=a(f.yAxis,0),A=e[g].numberFormatter,da=this.colorManager,C=da.getPlotColor(),B,F=e._FCconf.isBar,
  ha=f.hoverEffects;N||(f.columnPosition=a(D,m,n));f.name=s(u.seriesname);if(0===a(u.includeinlegend)||void 0===f.name)f.showInLegend=!1;f.color=c(u.color,C).split(Ja)[0].replace(/^#?/g,"#");n=/3d$/.test(e.chart.defaultSeriesType);D=c(360-k.plotfillangle,F?180:90);0>B&&(D=360-D);u=f._dataParser=Ab.column(e,{seriesname:f.name,plottooltext:u.plottooltext,color:c(u.color,C),alpha:c(u.alpha,k.plotfillalpha,Wa),plotgradientcolor:a(k.useplotgradientcolor,1)?O(k.plotgradientcolor,da.getColor("plotGradientColor")):
  b,ratio:c(u.ratio,k.plotfillratio),fillAangle:D,isRoundEdges:e.chart.useRoundEdges,plotBorderColor:c(k.plotbordercolor,n?h:da.getColor("plotBorderColor")).split(Ja)[0],plotBorderAlpha:k.showplotborder==Na||n&&k.showplotborder!=sb?Na:c(k.plotborderalpha,Wa),isBar:this.isBar,is3d:n,dashed:a(u.dashed,k.plotborderdashed,0),dashLen:a(u.dashlen,k.plotborderdashlen,5),dashGap:a(u.dashgap,k.plotborderdashgap,4),borderWidth:a(k.plotborderthickness,sb),showValues:a(u.showvalues,q.showValues),yAxis:z,use3DLighting:a(k.use3dlighting,
  1),_sourceDataset:u,hoverEffects:ha},this);for(k=0;k<l;k+=1)(q=G[k])?(B=A.getCleanValue(q.value,v),null===B?f.data.push({y:null}):(p=!0,q=u(q,k,B),f.data.push(q),q.previousY=this.pointValueWatcher(e,B,z,N,k,m,r))):f.data.push({y:null});!d||p||this.realtimeEnabled||(f.showInLegend=!1);return f},defaultSeriesType:"column"},ib);qa("mslinebase",{hasVDivLine:!0,point:function(d,h,f,u,e,k){d=a(u.ignoreemptydatasets,0);var l=!1,n=this.colorManager,m,D;m=e.chart;var p=f.data||[];D=e[g];var G=c(h.type,this.defaultSeriesType),
  q=c(h.isStacked,e.plotOptions[G]&&e.plotOptions[G].stacking),r=c(this.isValueAbs,D.isValueAbs,!1),N=a(h.yAxis,0),v=this.numberFormatter,z=fa(c(f.color,u.linecolor,n.getPlotColor())),A=a(f.alpha,u.linealpha,Wa),da=a(u.showshadow,this.defaultPlotShadow,1),B=a(f.drawanchors,f.showanchors,u.drawanchors,u.showanchors),C=a(f.anchorsides,u.anchorsides,0),F=a(f.anchorstartangle,u.anchorstartangle,90),ha=a(f.anchorradius,u.anchorradius,3),E=fa(c(f.anchorbordercolor,u.anchorbordercolor,z)),ua=a(f.anchorborderthickness,
  u.anchorborderthickness,1),n=fa(c(f.anchorbgcolor,u.anchorbgcolor,n.getColor("anchorBgColor"))),ja=c(f.anchoralpha,u.anchoralpha,Wa),H=c(f.anchorbgalpha,u.anchorbgalpha,ja),I=ja&&c(f.anchorshadow,u.anchorshadow,0),ra=h.hoverEffects;h.name=s(f.seriesname);if(0===a(f.includeinlegend)||void 0===h.name||0===A&&1!==B)h.showInLegend=!1;h.marker={enabled:Boolean(a(B,1)),fillColor:{FCcolor:{color:n,alpha:H*ja/100+b}},lineColor:{FCcolor:{color:E,alpha:ja+b}},lineWidth:ua,radius:ha,symbol:La(C),startAngle:F};
  h.color={FCcolor:{color:z,alpha:A}};h.shadow=da?{opacity:da?A/100:0}:!1;h.anchorShadow=I;h.step=c(this.stepLine,h.step);h.drawVerticalJoins=Boolean(a(h.drawVerticalJoins,u.drawverticaljoins,1));h.useForwardSteps=Boolean(a(h.useForwardSteps,u.useforwardsteps,1));h.lineWidth=a(f.linethickness,u.linethickness,2);m=h._dataParser=Ab.line(e,{seriesname:h.name,plottooltext:f.plottooltext,lineAlpha:A,anchorAlpha:ja,showValues:a(f.showvalues,D.showValues),yAxis:N,lineDashed:Boolean(a(f.dashed,u.linedashed,
  0)),lineDashLen:a(f.linedashlen,u.linedashlen,5),lineDashGap:a(f.linedashgap,u.linedashgap,4),lineThickness:h.lineWidth,lineColor:z,valuePosition:c(f.valueposition,m.valuePosition),drawAnchors:B,anchorBgColor:n,anchorBgAlpha:H,anchorBorderColor:E,anchorBorderThickness:ua,anchorRadius:ha,anchorSides:C,anchorAngle:F,anchorShadow:h.anchorShadow,anchorStartAngle:a(f.anchorstartangle,u.anchorstartangle),_sourceDataset:f,hoverEffects:ra,imageUrl:c(f.anchorimageurl,u.anchorimageurl),imageScale:c(f.anchorimagescale,
  u.anchorimagescale,100),imageAlpha:c(f.anchorimagealpha,u.anchorimagealpha,100)},this);for(u=0;u<k;u+=1)(D=p[u])?(f=v.getCleanValue(D.value,r),null===f?h.data.push({y:null}):(l=!0,D=m(D,u,f),h.data.push(D),D.previousY=this.pointValueWatcher(e,f,N,q,u,0,G))):h.data.push({y:null});!d||l||this.realtimeEnabled||(h.showInLegend=!1);return h},defaultSeriesType:"line",defaultPlotShadow:1,defaultZeroPlaneHighlighted:!1},ib);qa("msareabase",{hasVDivLine:!0,point:function(d,h,f,u,e,k){d=a(u.ignoreemptydatasets,
  0);var l=!1,m=e.chart,D=f.data||[],p=e[g],G=c(h.type,this.defaultSeriesType),q=c(h.isStacked,e.plotOptions[G]&&e.plotOptions[G].stacking),r=c(this.isValueAbs,p.isValueAbs,!1),s=a(h.yAxis,0),N=e[g].numberFormatter,v=this.colorManager,z=v.getPlotColor(),A=c(f.color,u.plotfillcolor,z).split(Ja)[0].replace(/^#?/g,"#").split(Ja)[0],da=c(f.alpha,u.plotfillalpha,u.areaalpha,this.areaAlpha,70),B=a(u.plotfillangle,270),z=c(f.plotbordercolor,u.plotbordercolor,u.areabordercolor,this.isRadar?z:"666666").split(Ja)[0],
  C=c(f.showplotborder,u.showplotborder)==Na?Na:c(f.plotborderalpha,u.plotborderalpha,f.alpha,u.plotfillalpha,u.areaalpha,"95"),F=a(u.plotborderangle,270),ha=a(f.anchorsides,u.anchorsides,0),E=a(f.anchorstartangle,u.anchorstartangle,90),ja=a(f.anchorradius,u.anchorradius,3),ua=fa(c(f.anchorbordercolor,u.anchorbordercolor,A)),H=a(f.anchorborderthickness,u.anchorborderthickness,1),I=fa(c(f.anchorbgcolor,u.anchorbgcolor,v.getColor("anchorBgColor"))),ra=Boolean(qa.area2dbase.parseAnchorVisibility(f,u,0)),
  ra=a(f.anchoralpha,u.anchoralpha,this.anchorAlpha,ra?Wa:0),K=a(f.anchorbgalpha,u.anchorbgalpha,ra),Ba=ra&&c(f.anchorshadow,u.anchorshadow,0),Ha=h.hoverEffects;this.isRadar||(A+=Ja+(a(u.useplotgradientcolor,1)?O(u.plotgradientcolor,v.getColor("plotGradientColor")):b),A=A.replace(/,+?$/,""));h.step=c(this.stepLine,h.step);h.drawVerticalJoins=Boolean(a(h.drawVerticalJoins,u.drawverticaljoins,1));h.useForwardSteps=Boolean(a(h.useForwardSteps,u.useforwardsteps,1));h.name=c(f.seriesname);if(0===a(f.includeinlegend)||
  void 0===h.name)h.showInLegend=!1;h.fillColor={FCcolor:{color:A,alpha:da,ratio:kb,angle:B}};h.color=A;h.shadow={opacity:a(u.showshadow,1)?C/100:0};h.anchorShadow=Ba;h.lineColor={FCcolor:{color:z,alpha:C,ratio:Wa,angle:F}};h.lineWidth=c(f.plotborderthickness,u.plotborderthickness,1);h.dashStyle=Boolean(a(f.dashed,u.plotborderdashed,0))?n(a(f.dashlen,u.plotborderdashlen,5),a(f.dashgap,u.plotborderdashgap,4),h.lineWidth):void 0;h.marker={fillColor:{FCcolor:{color:I,alpha:K*ra/100+b}},lineColor:{FCcolor:{color:ua,
  alpha:ra+b}},lineWidth:H,radius:ja,symbol:La(ha),startAngle:E};f=h._dataParser=Ab.area(e,{seriesname:h.name,plottooltext:f.plottooltext,lineAlpha:C,anchorAlpha:ra,showValues:a(f.showvalues,p.showValues),yAxis:s,fillColor:A,fillAlpha:da,valuePosition:c(f.valueposition,m.valuePosition),drawAnchors:Boolean(a(f.drawanchors,u.drawanchors,u.showanchors,1)),anchorBgColor:I,anchorBgAlpha:K,anchorBorderColor:ua,anchorBorderThickness:H,anchorRadius:ja,anchorSides:ha,anchorAngle:E,anchorShadow:h.anchorShadow,
  getLink:this.linkClickFN,anchorStartAngle:a(f.anchorstartangle,u.anchorstartangle),_sourceDataset:f,hoverEffects:Ha,imageUrl:c(f.anchorimageurl,u.anchorimageurl),imageScale:c(f.anchorimagescale,u.anchorimagescale,100),imageAlpha:c(f.anchorimagealpha,u.anchorimagealpha,100)},this);for(m=0;m<k;m+=1)(p=D[m])?(u=p?N.getCleanValue(p.value,r):null,null===u?h.data.push({y:null}):(l=!0,p=f(p,m,u),h.data.push(p),p.previousY=this.pointValueWatcher(e,u,s,q,m,0,G))):h.data.push({y:null});!d||l||this.realtimeEnabled||
  (h.showInLegend=!1);return h},defaultSeriesType:"area",defaultPlotShadow:0},ib);qa("scatterbase",{showValues:0,defaultPlotShadow:0,rendererId:"cartesian",defaultSeriesType:"scatter",canvasPaddingModifiers:["anchorlabel"],point:function(d,h,f,u,e,k,l){d=a(u.ignoreemptydatasets,0);var m=this.colorManager,D=m.getPlotColor(),p,G,q,r,N,v,z,A,da,C,B,F,ha,E,ja,ua,H,I,ra;k=!1;var K,Ba;N=a(f.drawline,u.drawlines,0);v=a(f.drawprogressioncurve,0);r=f.data||[];var Ha,ia,Da,xa,L,Q=a(f.showvalues,e[g].showValues),
  P=this.numberFormatter,Ka,ea=h._showRegression=a(f.showregressionline,u.showregressionline,0);h.zIndex=1;h.name=s(f.seriesname);if(0===a(f.includeinlegend)||void 0===h.name)h.showInLegend=!1;if(N||v)q=fa(c(f.color,D)),r=c(f.alpha,Wa),N=a(f.linethickness,u.linethickness,2),v=Boolean(a(f.linedashed,f.dashed,u.linedashed,0)),z=a(f.linedashlen,u.linedashlen,5),A=a(f.linedashgap,u.linedashgap,4),h.color=Y(c(f.linecolor,u.linecolor,q),a(f.linealpha,u.linealpha,r)),h.lineWidth=N,h.dashStyle=v?n(z,A,N):"none";
  N=Boolean(a(f.drawanchors,f.showanchors,u.drawanchors,u.showanchors,1));l=a(f.anchorsides,u.anchorsides,l+3);v=a(f.anchorradius,u.anchorradius,3);q=fa(c(f.anchorbordercolor,f.color,u.anchorbordercolor,q,D));D=a(f.anchorborderthickness,u.anchorborderthickness,1);z=fa(c(f.anchorbgcolor,u.anchorbgcolor,m.getColor("anchorBgColor")));A=c(f.anchoralpha,f.alpha,u.anchoralpha,Wa);B=c(f.anchorbgalpha,f.alpha,u.anchorbgalpha,A);K=c(f.anchorstartangle,u.anchorstartangle,90);h.anchorShadow=m=a(u.anchorshadow,
  0);h.marker={fillColor:this.getPointColor(z,Wa),lineColor:{FCcolor:{color:q,alpha:A+b}},lineWidth:D,radius:v,symbol:La(l)};r=f.data||[];L=r.length;ea&&(h.events={hide:this.hideRLine,show:this.showRLine},Ha={sumX:0,sumY:0,sumXY:0,sumXsqure:0,sumYsqure:0,xValues:[],yValues:[]},xa=a(f.showyonx,u.showyonx,1),ia=fa(c(f.regressionlinecolor,u.regressionlinecolor,q)),Da=a(f.regressionlinethickness,u.regressionlinethickness,D),p=$(a(f.regressionlinealpha,u.regressionlinealpha,A)),ia=Y(ia,p));for(G=0;G<L;G+=
  1)(da=r[G])?(p=P.getCleanValue(da.y),ra=P.getCleanValue(da.x),null===p?h.data.push({y:null,x:ra}):(k=!0,Ba=this.getPointStub(da,p,P.xAxis(ra),e,f,Q),F=a(da.anchorsides,l),ha=a(da.anchorradius,v),E=fa(c(da.anchorbordercolor,q)),ja=a(da.anchorborderthickness,D),ua=fa(c(da.anchorbgcolor,z)),H=c(da.anchoralpha,da.alpha,A),I=c(da.anchorbgalpha,B),C=Boolean(a(da.anchorshadow,m,0)),Ka=this.pointHoverOptions(da,h,{plotType:"anchor",anchorBgColor:ua,anchorAlpha:H,anchorBgAlpha:I,anchorAngle:K,anchorBorderThickness:ja,
  anchorBorderColor:E,anchorBorderAlpha:H,anchorSides:F,anchorRadius:ha,shadow:void 0}),h.data.push({y:p,x:ra,displayValue:Ba.displayValue,toolText:Ba.toolText,link:Ba.link,marker:{enabled:N,shadow:C&&{opacity:H/100},fillColor:{FCcolor:{color:ua,alpha:I*H/100+b}},lineColor:{FCcolor:{color:E,alpha:H}},lineWidth:ja,radius:ha,symbol:La(F),startAngle:c(da.anchorstartangle,f.anchorstartangle,u.anchorstartangle,90)},hoverEffects:Ka.enabled&&Ka.options,rolloverProperties:Ka.enabled&&Ka.rolloverOptions}),this.pointValueWatcher(e,
  p,ra,ea&&Ha))):h.data.push({y:null});ea&&(f=this.getRegressionLineSeries(Ha,xa,L),this.pointValueWatcher(e,f[0].y,f[0].x),this.pointValueWatcher(e,f[1].y,f[1].x),e={type:"line",color:ia,showInLegend:!1,lineWidth:Da,enableMouseTracking:!1,marker:{enabled:!1},data:f,zIndex:0},h=[h,e]);d&&!k&&(h.showInLegend=!1);return h},postSeriesAddition:function(b,c){for(var d=b.chart,h=c.chart,e=b.series,f=0,g=e.length;f<g;f+=1)e[f]._showRegression&&(e[f].relatedSeries=[f+1]);d.clipBubbles=a(h.clipbubbles,1)},categoryAdder:function(d,
  h){var f,u=0,e,l=h[g].x,m,D=h.xAxis,p,G,q=d.chart,r=parseInt(q.labelstep,10),s=a(q.showlabels,1),N=c(q.xaxislabelmode,"categories").toLowerCase(),z=this.colorManager,A=h[g].numberFormatter,da,C,F,ha,E,ja;h._FCconf.isXYPlot=!0;r=1<r?r:1;l.catOccupied={};if("auto"!==N&&d.categories&&d.categories[0]&&d.categories[0].category){G=d.categories[0];G.font&&(h.xAxis.labels.style.fontFamily=G.font);void 0!==(e=a(G.fontsize))&&(1>e&&(e=1),h.xAxis.labels.style.fontSize=e+Ga,k(h.xAxis.labels.style));G.fontcolor&&
  (h.xAxis.labels.style.color=G.fontcolor.split(Ja)[0].replace(/^\#?/,"#"));f=c(G.verticallinecolor,z.getColor("divLineColor"));e=a(G.verticallinethickness,1);m=a(G.verticallinealpha,z.getColor("divLineAlpha"));z=a(G.verticallinedashed,0);da=a(G.verticallinedashlen,4);C=a(G.verticallinedashgap,2);F=Y(f,m);for(f=0;f<G.category.length;f+=1)ha=G.category[f],m=A.getCleanValue(ha.x),null===m||ha.vline||(l.catOccupied[m]=!0,p=a(ha.showlabel,ha.showname,s),E=a(ha.showverticalline,ha.showline,ha.sl,0),ja=a(ha.linedashed,
  z),p=0===p||0!==u%r?b:B(v(ha.label,ha.name)),D.plotLines.push({isGrid:!0,isCat:!0,isDataLabel:!0,width:E?e:0,color:F,dashStyle:n(da,C,e,ja),value:m,label:{text:p,link:c(ha.link,q.labellink),style:pa({},ha,q,D.labels.style),align:la,verticalAlign:Ia,textAlign:la,rotation:0,x:0,y:0}}),this.pointValueWatcher(h,null,m),u+=1);"mixed"===N&&(l.requiredAutoNumericLabels=a(this.requiredAutoNumericLabels,1))}else l.requiredAutoNumericLabels=a(this.requiredAutoNumericLabels,1);l.adjustMinMax=!0},getPointColor:function(a,
  b){var c,d;a=fa(a);b=$(b);c=sa(a,70);d=aa(a,50);return{FCcolor:{gradientUnits:"objectBoundingBox",cx:.4,cy:.4,r:"100%",color:c+Ja+d,alpha:b+Ja+b,ratio:kb,radialGradient:!0}}}},qa.xybase);qa("mscombibase",{canvasPaddingModifiers:["anchor","anchorlabel"],series:function(b,d,h){var f,e,u,k,l=b.chart,n,m=[],D=[],p=[],G,q,r=d[g],s=this.isDual,N=0,z;d.legend.enabled=Boolean(a(b.chart.showlegend,1));if(b.dataset&&0<b.dataset.length){this.categoryAdder(b,d);k=r.oriCatTmp.length;f=0;for(e=b.dataset.length;f<
  e;f+=1)switch(u=b.dataset[f],G=s&&"s"===c(u.parentyaxis,"p").toLowerCase()?!0:!1,n={hoverEffects:this.parseSeriesHoverOptions(b,d,u,h),visible:!a(u.initiallyhidden,0),legendIndex:f,data:[]},G?(n.yAxis=1,q=v(u.renderas,this.secondarySeriesType),this.secondarySeriesFilter&&(z=this.secondarySeriesFilter[q])):(q=v(u.renderas,this.defaultSeriesType),this.defaultSeriesFilter&&(z=this.defaultSeriesFilter[q])),q=q.toLowerCase(),q){case "line":case "spline":n.type=!0===z?q:"line";m.push(qa.mslinebase.point.call(this,
  h,n,u,l,d,k,f));break;case "area":case "splinearea":n.type=!0===z?q:"area";d.chart.series2D3Dshift=!0;p.push(qa.msareabase.point.call(this,h,n,u,l,d,k,f));break;case "column":case "column3d":D.push(qa.mscolumn2dbase.point.call(this,h,n,b.dataset[f],l,d,k,f,void 0,N));N+=1;break;default:G?(n.type="line",m.push(qa.mslinebase.point.call(this,h,n,u,l,d,k,f))):(D.push(qa.mscolumn2dbase.point.call(this,h,n,b.dataset[f],l,d,k,f,void 0,N)),N+=1)}"0"!==l.areaovercolumns?(d.chart.areaOverColumns=!0,d.series=
  d.series.concat(D,p,m)):(d.chart.areaOverColumns=!1,d.series=d.series.concat(p,D,m));if(0===D.length&&1!==k)r.hasNoColumn=!0;else if(!this.isStacked)for(h=0,f=D.length;h<f;h+=1)D[h].numColumns=f;this.configureAxis(d,b);b.trendlines&&K(b.trendlines,d.yAxis,d[g],s,this.isBar)}}},qa.mscolumn2dbase)}]);
  FusionCharts.register("module",["private","modules.renderer.js-renderer",function(){function d(a,b,c,d){var f=b.paper,g=b.layers,k=c?"y-axis":"x-axis",l=this.layerAboveDataset=g.layerAboveDataset,n=this.layerBelowDataset=g.layerBelowDataset,g=l.bands||(l.bands=[]),m=g.length,p=n.bands||(n.bands=[]),q=p.length,r=l.lines||(l.lines=[]),s=r.length,v=n.lines||(n.lines=[]),z=v.length,l=l.labels||(l.labels=[]),A=l.length,n=n.labels||(n.labels=[]),C=n.length;this.renderer=b;this.axisData=a||{};this.globalOptions=
  b.options;this.isVertical=c;this.topBandGroup=this.topBandGroup||f.group(k+"-bands",this.layerAboveDataset);this.belowBandGroup=this.belowBandGroup||f.group(k+"-bands",this.layerBelowDataset);g.push(this.topBandGroup);m&&g[m].insertAfter(g[m-1]);p.push(this.belowBandGroup);q&&p[q].insertAfter(p[q-1]);this.topLineGroup=this.topLineGroup||f.group(k+"-lines",this.layerAboveDataset);this.belowLineGroup=this.belowLineGroup||f.group(k+"-lines",this.layerBelowDataset);this.topLabelGroup=this.topLabelGroup||
  f.group(k+"-labels",this.layerAboveDataset);this.belowLabelGroup=this.belowLabelGroup||f.group(k+"-labels",this.layerBelowDataset);r.push(this.topLineGroup);s&&r[s].insertAfter(r[s-1]);v.push(this.belowLineGroup);z&&v[z].insertAfter(v[z-1]);l.push(this.topLabelGroup);A&&l[A].insertAfter(l[A-1]);n.push(this.belowLabelGroup);C&&n[C].insertAfter(n[C-1]);this.isReverse=d;this.configure()}function m(a,b,c,d){return Ma(b-c[1]-d.top,a-c[0]-d.left)}function z(a,b){var c=b?360:Wa;a=(a||0)%c;return 0>a?c+a:
  a}var q=this,E=q.window,b=q.hcLib,K=b.Raphael,I=b.chartAPI,c=/msie/i.test(E.navigator.userAgent)&&!E.opera,s=E.document,a=E.Image,v="VML"===K.type,O=b.BLANKSTRING,B=b.getPosition,g="rgba(192,192,192,"+(c?.002:1E-6)+")",c=b.TOUCH_THRESHOLD_PIXELS,f=b.CLICK_THRESHOLD_PIXELS,n=b.stubFN,p={pageX:0,pageY:0},F=parseFloat,Q=parseInt,l=b.extend2,C=b.addEvent,A=b.getMouseCoordinate,W=b.removeEvent,r=b.pluck,oa=b.pluckNumber,ga=b.toRaphaelColor,ba=b.setImageDisplayMode,V=b.FC_CONFIG_STRING,ta=b.plotEventHandler,
  za=b.isArray,Aa=b.each=function(a,b,c,d){var f;c||(c=a);d||(d={});if(za(a))for(f=0;f<a.length;f+=1){if(!1===b.call(c,a[f],f,a,d))return f}else if(null!==a&&void 0!==a)for(f in a)if(!1===b.call(c,a[f],f,a,d))return f},Z=b.createElement,U=b.createContextMenu,na=b.hasTouch,H=na?c:f,T=b.getSentenceCase,fa=b.getCrispValues,k=b.getValidValue,L=b.getFirstValue,$=b.regex.dropHash,aa=b.HASHSTRING,sa=function(a){return a!==Ea&&null!==a},Y=function(a,b){a[1]===a[4]&&(a[1]=a[4]=pa(a[1])+b%2/2);a[2]===a[5]&&(a[2]=
  a[5]=pa(a[2])+b%2/2);return a},Ea,la=8===s.documentMode?"visible":"",ya=E.Math,Ia=ya.sin,ma=ya.cos,Ma=ya.atan2,pa=ya.round,qa=ya.min,La=ya.max,Ya=ya.abs,ib=ya.ceil,Ja=ya.floor,Ta=180/ya.PI,Na=ya.PI,sb=Na/2,Wa=2*Na,Ga=Na+sb,Sb=b.getFirstColor,Rb=b.graphics.getLightColor,Fb=b.POSITION_TOP,jb=b.POSITION_BOTTOM,yb=b.POSITION_RIGHT,kb=b.POSITION_LEFT;K.ca.ishot=function(a){if(this.removed)return!1;var b=this.node;a=a||"";b.ishot=a;switch(this.type){case "group":for(b=this.bottom;b;)b.attr("ishot",a),b=
  b.next;break;case "text":if(K.svg)for(b=b.getElementsByTagName("tspan")[0];b;)b.ishot=a,b=b.nextSibling}return!1};K.addSymbol({printIcon:function(a,b,c){var d=.75*c,f=.5*c,g=.33*c,k=pa(a-c)+.5,l=pa(b-c)+.5,n=pa(a+c)+.5;c=pa(b+c)+.5;var m=pa(a-d)+.5,p=pa(b-d)+.5,d=pa(a+d)+.5,q=pa(b+f)+.5,r=pa(a+f)+.5,s=pa(b+g)+.5;a=pa(a-f)+.5;g=pa(b+g+g)+.5;return["M",m,l,"L",d,l,d,p,m,p,"Z","M",k,p,"L",k,q,m,q,m,b,d,b,d,q,n,q,n,p,"Z","M",m,b,"L",m,c,d,c,d,b,"Z","M",r,s,"L",a,s,"M",r,g,"L",a,g]},exportIcon:function(a,
  b,c){var d=.66*c,f=.5*d,g=pa(a-c)+.5,k=pa(b-c)+.5,l=pa(a+c)+.5;c=pa(b+c)-.5;var n=pa(a-f)+.5,m=b<c-3?c-3:pa(b)+.5,f=pa(a+f)-.5,p=pa(a+d)-.5,d=pa(a-d)+.5;return["M",g,m,"L",g,c,l,c,l,m,l,c,g,c,"Z","M",a,c-1,"L",d,b,n,b,n,k,f,k,f,b,p,b,"Z"]}});b.rendererRoot=I("renderer.root",{standaloneInit:!1,isRenderer:!0,inited:!1,callbacks:[],init:function(a,b,c){var d=this,f=d.container=a&&a.containerElement||b.chart.renderTo,g=b.tooltip,k=d.layer,l,n;d.options=b;d.logic=a;d.definition=a.dataObj;d.smartLabel=
  a.smartLabel;d.numberFormatter=a.numberFormatter;d.fusionCharts=a.chartInstance;d.linkClickFN=a.linkClickFN;n=(l=b.chart)&&l.animation&&l.animation.duration;d.animationCompleteQueue=[];f.innerHTML=O;f=d.paper=d.fusionCharts.jsVars.paper=new K(f,f.offsetWidth||a.width,f.offsetHeight||a.height);!1!==q.core.options._useSVGDescTag&&f._desc&&(l=a.friendlyName||"Vector image",d.definition&&d.definition.chart&&d.definition.chart.caption&&(l+=' with caption "'+d.definition.chart.caption+'"'),f._desc(l));
  d.chartWidth=f.width;d.chartHeight=f.height;d.elements||(d.elements={});k||(k=d.layers={},k.background=k.background||f.group("background"),k.dataset=k.dataset||f.group("dataset").insertAfter(k.background),k.tracker=k.tracker||f.group("hot").insertAfter(k.dataset));g&&!1!==g.enabled&&(f.tooltip(g.style,g.shadow,g.constrain),k.tracker.trackTooltip(!0),k.dataset.trackTooltip(!0));d.disposeChartStyleSheet();d.setMargins();d.drawBackground();d.drawButtons();d.drawGraph();b.legend&&b.legend.enabled&&d.drawLegend();
  d.drawCaption();d.drawLogo();d.setChartEvents();d.drawLabels&&d.drawLabels();Aa(b.callbacks,function(a){a.apply(d,this)},[a]);Aa(d.callbacks,function(a){a.apply(d,this)},[a]);d.fusionCharts.annotations&&d.fusionCharts.annotations.draw(d);d.createChartStyleSheet();d.options.nativeMessage||n||q.raiseEvent("internal.animationComplete",{},d.fusionCharts);d.hasRendered=!0;c&&c(d)},disposeChartStyleSheet:function(){this.paper.cssClear()},createChartStyleSheet:function(){this.paper.cssRender()},addCSSDefinition:function(a,
  b){var c=this.paper;b.color&&(b.fill=b.color);c.cssAddRule(a,b)},animationCompleteQueue:[],animationComplete:function(){var a,b,c,d;this.animatedElements=this.animatedElements?++this.animatedElements:1;if(this.animatedElements===this.animatingElementsCount){c=this.animationCompleteQueue;a=0;for(b=c.length;a<b;a++)d=c[a],d.fn&&d.fn.call(d.scope);this.animationCompleteQueue=[];q.raiseEvent("internal.animationComplete",{},this.fusionCharts)}},getAnimationCompleteFn:function(){var a=this;a.animatingElementsCount=
  a.animatingElementsCount?++a.animatingElementsCount:1;return function(){a.animationComplete()}},reinit:function(a,b,c){this.hasRendered||this.init(b,c)},dispose:function(){var a=this.eventListeners,b=a&&a.length;this.disposing=!0;if(b)for(;b--;)a[b].unlisten();if(this.toolbar&&this.toolbar.length){for(;this.toolbar.length;)a=this.toolbar.pop(),a.remove();this.toolbar.add=null}if(this.menus&&this.menus.length)for(;this.menus.length;)a=this.menus.pop(),a.destroy();this.paper&&(this.paper.clear(),this.paper.remove(),
  delete this.paper);this.exportIframe&&(this.exportIframe.parentNode.removeChild(this.exportIframe),delete this.exportIframe);delete this.disposing;this.container=null;this.disposed=!0},onContainerClick:function(a){var c=a.target||a.originalTarget||a.srcElement||a.relatedTarget||a.fromElement,d=a.data,f=d.fusionCharts;a=b.getMouseCoordinate(d.container,a.originalEvent);f.ref&&(f=l({height:f.args.height,width:f.args.width,pixelHeight:f.ref.offsetHeight,pixelWidth:f.ref.offsetWidth,id:f.args.id,renderer:f.args.renderer,
  container:f.options.containerElement},a),q.raiseEvent("chartclick",f,d.logic.chartInstance),c&&c.ishot&&d||d.options.chart.link&&d.linkClickFN.call(d,d))},onContainerMouseMove:function(a){var c=a.data,d=c.fusionCharts;a=b.getMouseCoordinate(c.container,a.originalEvent);d.ref&&(d=l({height:d.args.height,width:d.args.width,pixelHeight:d.ref.offsetHeight,pixelWidth:d.ref.offsetWidth,id:d.args.id,renderer:d.args.renderer,container:d.options.containerElement},a),q.raiseEvent("chartMouseMove",d,c.logic.chartInstance))},
  onContainerRollOver:function(a){var c=a.data,d=c.fusionCharts;a=b.getMouseCoordinate(c.container,a.originalEvent);d.ref&&(d=l({height:d.args.height,width:d.args.width,pixelHeight:d.ref.offsetHeight,pixelWidth:d.ref.offsetWidth,id:d.args.id,renderer:d.args.renderer,container:d.options.containerElement},a),q.raiseEvent("chartRollOver",d,c.logic.chartInstance))},onContainerRollOut:function(a){var c=a.chart,d=c.fusionCharts;a=b.getMouseCoordinate(c.container,a.event);d.ref&&(d=l({height:d.args.height,
  width:d.args.width,pixelHeight:d.ref.offsetHeight,pixelWidth:d.ref.offsetWidth,id:d.args.id,renderer:d.args.renderer,container:d.options.containerElement},a),q.raiseEvent("chartRollOut",d,c.logic.chartInstance))},mouseStateIn:!1,winMouseHover:function(a){var b=a.originalEvent,b=b.target||b.originalTarget||b.srcElement||b.relatedTarget||b.fromElement,c=a.data,d=c.paper;a={chart:c,event:a.originalEvent};v?d.getById(b.parentNode.raphaelid)||(c.onContainerRollOut(a),c.mouseStateIn=!1,W(s,"mouseover",
  c.winMouseHover)):b.viewportElement||(c.mouseStateIn=!1,c.onContainerRollOut(a),W(E,"mouseover",c.winMouseHover))},chartHoverManager:function(){return function(a){var b=a.type,c=a.data,d=c.eventListeners||(c.eventListeners=[]);"mouseover"!==b&&"touchstart"!==b||!1!==c.mouseStateIn||(c.mouseStateIn=!0,c.onContainerRollOver(a),d.push(C(v?s:E,"mouseover",c.winMouseHover,c)))}}(),setChartEvents:function(){var a=this.options,b=this.eventListeners||(this.eventListeners=[]),a=this.link=a.chart.link,c=this.container,
  d=oa(this.definition&&this.definition.chart.enablechartmousemoveevent,0);W(c,"click",this.onContainerClick);b.push(C(c,"click",this.onContainerClick,this));W(this.paper.canvas,"mouseover",this.chartHoverManager,this);W(this.paper.canvas,"touchstart",this.chartHoverManager,this);W(this.paper.canvas,"mouseout",this.chartHoverManager,this);W(this.paper.canvas,"touchend",this.chartHoverManager,this);b.push(C(this.paper.canvas,"mouseover touchstart mouseout touchend",this.chartHoverManager,this));W(c,
  "mousemove",this.onContainerMouseMove,this);W(c,"touchmove",this.onContainerMouseMove,this);d&&b.push(C(c,"mousemove touchmove",this.onContainerMouseMove,this));this.paper.canvas.style.cursor=K.svg?a&&"pointer"||"default":a&&"hand"||"default"},onOverlayMessageClick:function(){var a=this.elements;K.animation({opacity:0},1E3);a.messageText&&a.messageText.hide();a.messageVeil&&a.messageVeil.hide()},showMessage:function(a,b){var c=this.paper,d=this.options.chart,f=this.elements,g=f.messageText,k=f.messageVeil,
  l=c.width,n=c.height;k||(k=f.messageVeil=c.rect(0,0,l,n).attr({fill:"rgba(0,0,0,0.2)",stroke:"none"}));k.show().toFront().attr("cursor",b?"pointer":"default")[b?"click":"unclick"](this.onOverlayMessageClick,this);g||(g=f.messageText=c.text(l/2,n/2,O).attr({fill:"rgba(255,255,255,1)","font-family":"Verdana,sans","font-size":10,"line-height":14,direction:d.textDirection,ishot:!0}));a=a||O;this.smartLabel.setStyle({"line-height":"14px","font-family":"Verdana,sans","font-size":"10px"});c=this.smartLabel.getSmartText(a,
  l-(d.spacingRight||0)-(d.spacingLeft||0),n-(d.spacingTop||0)-(d.spacingBotton||0));g.attr({text:c.text,ishot:!0,cursor:b?"pointer":"default"})[b?"click":"unclick"](this.onOverlayMessageClick,this).show().toFront()},drawButtons:function(){var a=this,b=a.logic,c="zoomline"===b.rendererId,d=a.paper,f=a.elements,g=a.toolbar||(a.toolbar=[]),k=a.menus||(a.menus=[]),l=a.layers,n=a.options,m=n[V],b=m&&m.outCanvasStyle||b.outCanvasStyle||{},m=n.chart.toolbar||{},p=m.hDirection,q=c?1:m.vDirection,r=m.button||
  {},s=r.scale,v=r.width*r.scale,z=r.height*r.scale,A=p*(r.spacing*r.scale+v),C=r.radius,B=(n=n.exporting)&&n.buttons||{},F=B.exportButton&&!1!==B.exportButton.enabled,B=B.printButton&&!1!==B.printButton.enabled,E,H=l.buttons||(l.buttons=d.group("buttons").trackTooltip(!0));g.y||(g.y=(c?0:m.y)+m.vMargin*q+qa(0,z*q));g.x||(g.x=m.x+m.hMargin*p-La(0,v*p));g.count=0;g.add=function(a,b,c){c="string"===typeof c?{tooltip:c}:c||{};var h=0===g.count?A-p*r.spacing*r.scale:A,h=c.x||(g.x+=h),f=c.tooltip||"";g.push(a=
  d.button(h,c.y||g.y,Ea,a,{width:v,height:z,r:C,id:g.count++,verticalPadding:r.symbolHPadding*s,horizontalPadding:r.symbolHPadding},H).attr({ishot:!0,fill:[r.fill,r.labelFill,r.symbolFill,r.hoverFill],stroke:[r.stroke,r.symbolStroke],"stroke-width":[r.strokeWidth,r.symbolStrokeWidth]}).tooltip(f).buttonclick(b));return a};F&&(k.push(E=f.exportMenu=U({chart:a,basicStyle:b,items:function(b){var c=[],d=function(b){return function(){a.logic.chartInstance.exportChart({exportFormat:b})}},f;for(f in b)c.push({text:b[f],
  onclick:d(f)});return c}(n.exportformats)})),f.exportButton=g.add("exportIcon",function(a,b){return function(){E.visible?E.hide():E.show({x:a,y:b+1})}}(g.x+v,g.y+z),{tooltip:"Export chart"}));B&&(f.printButton=g.add("printIcon",function(){a.print()},{tooltip:"Print chart"}))},setMargins:function(){var a=this.paper,b=this.options.chart||{},c=pa;this.canvasBorderWidth=b.plotBorderWidth||0;this.canvasTop=c(b.marginTop)||0;this.canvasLeft=c(b.marginLeft)||0;this.canvasWidth=c(a.width-(b.marginLeft||0)-
  (b.marginRight||0));this.canvasHeight=c(a.height-(b.marginTop||0)-(b.marginBottom||0));this.canvasRight=this.canvasLeft+this.canvasWidth;this.canvasBottom=this.canvasTop+this.canvasHeight},drawBackground:function(){var b=this,c=b.paper,d=b.layers,f=b.elements,g=d.background,k=f.background,l=f.chartborder,n=b.options.chart||{},m=F(n.borderWidth)||0,p=.5*m,r=2*m,s=n.borderWidth||0,v=b.chartHeight,z=b.chartWidth,A=f.backgroundImage,C=n.bgSWF,B=n.bgSWFAlpha/100,E=n.bgImageDisplayMode,H=n.bgImageVAlign,
  I=n.bgImageHAlign,K=n.bgImageScale,L=s+","+s+","+(z-2*s)+","+(v-2*s),Q,ea,O,W,P,U,T;c.canvas.style.backgroundColor=n.containerBackgroundColor;!g&&(g=d.background=c.group("background"));d={x:m,y:m,width:c.width-r,height:c.height-r,stroke:"none",fill:ga(n.backgroundColor)};k?k.attr(d):k=f.background=c.rect(d,g);d={x:p,y:p,width:c.width-m,height:c.height-m,stroke:n.borderColor,"stroke-width":m,"stroke-dasharray":n.borderDashStyle,fill:"none",r:n.borderRadius||0};l?l.attr(d):l=f.chartborder=c.rect(d,
  g);C&&(Q=new a,P=O=1,A=[],Q.onload=function(){ea=ba(E,H,I,K,s,z,v,Q);ea["clip-rect"]=L;if(ea.tileInfo)for(O=ea.tileInfo.xCount,P=U=ea.tileInfo.yCount,T=ea.y,delete ea.tileInfo;O&&ea.width&&ea.height;)--U,W?(A[void 0]=W.clone().attr({x:ea.x,y:ea.y}),g.appendChild(A[void 0])):A[void 0]=W=c.image(C,g).attr(ea).css({opacity:B}),ea.y+=ea.height,0===U&&(U=P,--O,ea.x+=ea.width,ea.y=T);else{if(b.disposed||c.disposed)return;A[0]=c.image(C,g);A[0].attr(ea).css({opacity:B}).attr({visibility:la,"clip-rect":L})}q.raiseEvent("BackgroundLoaded",
  {url:C,bgImageAlpha:100*B,bgImageDisplayMode:E,bgImageVAlign:H,bgImageHAlign:I,bgImageScale:K,imageWidth:Q.width,imageHeight:Q.height},b.logic.chartInstance)},Q.onerror=function(a){q.raiseEvent("BackgroundLoadError",{url:C,bgImageAlpha:100*B,error:a,bgImageDisplayMode:E,bgImageVAlign:H,bgImageHAlign:I,bgImageScale:K},b.logic.chartInstance)},Q.src=C,f.backgroundImage=A)},drawGraph:function(){var a=this,b=a.paper,c=a.plots=a.elements.plots,d=a.logic,f=a.layers,g=a.options,k=a.elements,n=g.chart,g=a.datasets=
  g.series,m=L(n.rendererId,n.defaultSeriesType),p=f.background,q=f.dataset=f.dataset||b.group("dataset").insertAfter(p),s,v,p=function(a,b){return function(h){var f=c[a],g,k={hcJSON:{series:[]}},n=k.hcJSON.series[a]||(k.hcJSON.series[a]={}),m=d.chartInstance.jsVars._reflowData;g=(h=L(h,!f.visible))?"visible":"hidden";Aa(f.graphics,function(a){!0!==a.data("alwaysInvisible")&&a.attr("visibility",g)});f.visible=h;b.visible=h;n.visible=h;l(m,k,!0)}},z=function(b){return function(d,f){a["legendClick"+m]&&
  a["legendClick"+m](c[b],d,f)||a.legendClick&&a.legendClick(c[b],d,f)}},A=function(b){return function(){return a.getEventArgs&&a.getEventArgs(c[b])}},C=function(b,d,f){return function(g,k){d.call(a,c[b],f,{numUpdate:g,hasAxisChanged:k})}};f.tracker=f.tracker||b.group("hot").insertAfter(q);a.drawCanvas();a.drawAxes();c||(c=a.plots=a.plots||[],k.plots=c);f=0;for(k=g.length;f<k;f++)b=g[f]||{},q=b.updatePlot="updatePlot"+T(r(b.type,b.plotType,m)),q=a[q],s=b.drawPlot="drawPlot"+T(r(b.type,b.plotType,m)),
  s=a[s]||a.drawPlot,(v=c[f])||(c.push(v={index:f,items:[],data:b.data||[],name:b.name,userID:b.userID,setVisible:p(f,b),legendClick:z(f),getEventArgs:A(f),realtimeUpdate:C(f,q||s,b)}),b.plot=v,b.legendClick=v.legendClick,b.getEventArgs=v.getEventArgs,b.setVisible=v.setVisible),s.call(a,v,b);n.hasScroll&&(a.drawScroller(),a.finalizeScrollPlots())},drawPlot:n,drawCanvas:n,drawAxes:n,drawScroller:function(){},drawLegend:function(){var a=this,b=a.options,c=a.paper,d=b.chart||{},f=b.legend,g=f.scroll,b=
  {elements:{}},k=b.elements,n=a.layers.legend,m=k.box,p=k.caption,q=k.elementGroup,r="vertical"===f.layout,s=d.marginBottom,v=d.spacingBottom,z=d.spacingLeft,A=d.spacingRight,C=c.width,B=c.height,F=a.canvasTop,E=f.width,H=f.height,I=f.borderRadius,L=f.backgroundColor,Q=f.borderColor,W=f.borderWidth||0,U=.5*W,P=.5*W+2,ga=oa(f.padding,4),V=.5*ga,Z,ub,Ra,Y,wa,Ab,t,w;w=g&&g.enabled;r?(r=C-A-E,s=F+.5*(B-s-F-H)+(f.y||0)):(r=z+.5*(C-z-A-E)+(f.x||0),s=B-v-H);v=K.crispBound(r,s,E,H,W);r=v.x;s=v.y;E=v.width;
  H=v.height;n||(n=a.layers.legend=c.group("legend").insertBefore(a.layers.tracker).translate(r,s).attr("class","fusioncharts-legend"));a.addCSSDefinition(".fusioncharts-legend .fusioncharts-caption",l({"text-anchor":f.title.align},f.title.style));f.legendAllowDrag&&(a.addCSSDefinition(".fusioncharts-legend",{cursor:"move"}),ub=r,Ra=s,n.drag(function(a,b){Y=Ab+a;wa=t+b;Y+E+P>C&&(Y=C-E-P);wa+H+P>B&&(wa=B-H-P);Y<P&&(Y=P);wa<P&&(wa=P);n.translate(Y-ub,wa-Ra);ub=Y;Ra=wa},function(){Ab=ub;t=Ra}));I={x:0,
  y:0,width:E,height:H,r:I,stroke:Q,"stroke-width":W,fill:L||"none",ishot:f.legendAllowDrag};m?m.attr(I):m=k.box=c.rect(I,n);m.shadow(f&&f.shadow);w?(Z=H-ga,m=","+E+","+Z,q=k.elementGroup=c.group("legenditems",n).attr({"clip-rect":"0,"+V+m}),g=k.scroller||(k.scroller=c.scroller(E-10+V-W,U,10,H-W,!1,{scrollPosition:g.scrollPosition||0,scrollRatio:(Z+ga)/f.totalHeight,showButtons:!1,displayStyleFlat:g.flatScrollBars},n)),g.attr("fill",f.legendScrollBgColor).scroll(function(b){q.transform(["T",0,(Z-f.totalHeight)*
  b]);l(a.fusionCharts.jsVars._reflowData,{hcJSON:{legend:{scroll:{position:b}}}},!0)})):q=k.elementGroup=n;if(f.title&&f.title.text!==O){switch(f.title.align){case "start":w=ga;break;case "end":w=E-ga-(w?10:0);break;default:w=.5*E}I={"class":"fusioncharts-caption","text-anchor":f.title.align,text:f.title.text,title:f.title.originalText||"",x:w,y:ga,fill:f.title.style.color,"vertical-align":"top",direction:d.textDirection,"line-height":f.title.style.lineHeight};p?p.attr(I):p=k.caption=c.text(I,q).attr("class",
  "fusioncharts-caption")}this["draw"+T(f.type||"point")+"LegendItem"](b)},drawPointLegendItem:function(a){var b=this,c=b.paper,d=b.options,f=d.series,k=d.chart,n=k.defaultSeriesType,d=d.legend,m=d.legendHeight,p=d.symbolPadding,s=d.textPadding||2,v=oa(d.padding,4),k=k.textDirection,z=d.itemHoverStyle,C=d.itemHiddenStyle,B=d.itemStyle,F=B.color,C=C&&C.color||"#CCCCCC",E=z&&z.color||F,z=d.symbol3DLighting,H=d.symbolWidth,I=!1!==d.interactiveLegend,K=a.elements,L=K.elementGroup;a=a.item=[];var K=K.item=
  [],Q=[],W={line:!0,spline:!0,scatter:!0,bubble:!0,dragnode:!0,zoomline:!0},O,ea,U,T,P,V,Z,Y,ub,Ra,ba,wa,Ab,t,w,J,M,e,ca,R,S;wa=0;for(Ab=f.length;wa<Ab;wa+=1)if((O=f[wa])&&!1!==O.showInLegend)if(Y=O.type||n,"point"===O.legendType)for(O=O.data||[],P=0,V=O.length;P<V;P+=1)U=O[P]||{},!1!==U.showInLegend&&(U._legendType=Y,Q.push(U));else switch(O._legendType=Y,Y){case "pie":case "pie3d":case "funnel":case "pyramid":Q=O.data;break;default:Q.push(O)}Q.sort(function(a,b){return(a.legendIndex||0)-(b.legendIndex||
  0)||a.__i-b.__i});d.reversed&&Q.reverse();f=d.initialItemX||0;n=d.initialItemY||0;P=function(a){var c=this.data("legendItem"),d=c.getEventArgs?c.getEventArgs():{},e;a=A(b.logic.chartInstance.ref,a);d.chartX=a.chartX;d.chartY=a.chartY;d.pageX=a.pageX;d.pageY=a.pageY;d.preventDefaults=function(){e=!0};q.raiseEvent("LegendItemClicked",d,b.logic.chartInstance);I&&!e&&c.legendClick()};V=function(a){var c=this.data("legendItem"),d=c.getEventArgs?c.getEventArgs():{};a=A(b.logic.chartInstance.ref,a);var e=
  !1!==c.visible,c=c.plot.legend.elements.legendItemText;d.chartX=a.chartX;d.chartY=a.chartY;d.pageX=a.pageX;d.pageY=a.pageY;e&&c&&c.attr({fill:E});q.raiseEvent("LegendItemRollover",d,b.logic.chartInstance)};Z=function(a){var c=this.data("legendItem"),d=c.getEventArgs?c.getEventArgs():{};a=A(b.logic.chartInstance.ref,a);var e=!1!==c.visible,c=c.plot.legend.elements.legendItemText;d.chartX=a.chartX;d.chartY=a.chartY;d.pageX=a.pageX;d.pageY=a.pageY;e&&c&&c.attr({fill:F});q.raiseEvent("LegendItemRollout",
  d,b.logic.chartInstance)};b.addCSSDefinition(".fusioncharts-legend .fusioncharts-legenditem",d.itemStyle);wa=0;for(Ab=Q.length;wa<Ab;wa+=1)!1!==Q[wa].showInLegend&&(S={elements:{},hiddenColor:C,itemTextColor:F,hoverColor:E},a.push(S),K.push(S.elements),O=Q[wa],ub=f+O._legendX+v,Ra=n+O._legendY-v,ba=O._legendH,ea=O._legendType||Y,U=!1!==O.visible,T=S.itemLineColor=ga(O.color||{}),O.plot.legend=S,S.elements.legendItemText=c.text({"class":"fusioncharts-legenditem",x:ub+m+s-2,y:Ra+(O._legendTestY||0),
  text:O.name,fill:U?F:C,"vertical-align":"top",direction:k,"text-anchor":"start",cursor:B.cursor||"pointer",ishot:I,"line-height":B.lineHeight,"font-size":B.fontSize},L).data("legendItem",O),W[ea]?(ea=Ra+(O._markerYGutter||0)+p+.5*H,O.lineWidth&&(R=S.elements.legendItemLine=c.path({"stroke-width":O.lineWidth,stroke:U?T:C,cursor:B.cursor||"pointer",ishot:I,path:["M",ub+p,ea,"L",ub+p+H,ea]},L).data("legendItem",O)),O&&(M=O.marker)&&!1!==M.enabled&&(S.symbolStroke=ga(r((e=M.lineColor)&&(e.FCcolor&&e.FCcolor.color.split(",")[0]||
  e),T)),z?M.fillColor&&M.fillColor.FCcolor?(ea=l({},M.fillColor),ea.FCcolor.alpha="100"):ea=r(M.fillColor,T):ea={FCcolor:{color:r((ca=M.fillColor)&&(ca.FCcolor&&ca.FCcolor.color.split(",")[0]||ca),T),angle:0,ratio:"0",alpha:"100"}},S.symbolColor=ga(ea),t=.5*H,T=ub+p+t,ea=Ra+(O._markerYGutter||0)+p+t,R&&(t*=.6),w=M.symbol.split("_"),J="spoke"===w[0]?1:0,ea=w[1]?S.elements.legendItemSymbol=c.polypath(w[1],T,ea,t,M.startAngle,J,L):S.elements.legendItemSymbol=c.circle(T,ea,t,L),ea.data("legendItem",O).attr({cursor:B.cursor||
  "pointer",stroke:U?S.symbolStroke:C,fill:U?S.symbolColor:C,"stroke-width":1,ishot:I}))):(ea=b.getSymbolPath(ub+p,Ra+(O._markerYGutter||0)+p,H,H,ea,O,!z),S.symbolColor=ga(ea.color),S.symbolStroke=ga(ea.strokeColor),ea=S.elements.legendItemSymbol=c.path({path:ea.path,"stroke-width":ea.strokeWidth,stroke:U?S.symbolStroke:C,fill:U?S.symbolColor:C,cursor:B.cursor||"pointer",ishot:I},L).data("legendItem",O)),S.elements.legendItemBackground=c.rect({x:ub,y:Ra,width:O._totalWidth,height:ba,r:0,fill:ga(O.legendFillColor||
  g),"stroke-width":1,stroke:ga(O.legendBorderColor||"none"),cursor:B.cursor||"pointer",ishot:I},L).click(P).mouseover(V).mouseout(Z).data("legendItem",O));d.reversed&&Q.reverse()},drawCaption:function(){var a=this.options.chart,b=this.options.title,c=this.options.subtitle,d=this.paper,f=this.smartLabel,g=this.elements,k=this.layers,l=k.caption,n=g.caption,m=g.subcaption,p=b.text,q=c&&c.text,r=b.x,s;!p&&!q||l||(l=k.caption=d.group("caption"),k.tracker?l.insertBefore(k.tracker):l.insertAfter(k.dataset));
  p?(this.addCSSDefinition(".fusioncharts-caption",b.style),s={"class":"fusioncharts-caption",text:b.text,fill:b.style.color,x:r,y:b.y||a.spacingTop||0,"text-anchor":b.align||"middle","vertical-align":b.verticalAlign||"top",visibility:"visible",direction:a.textDirection,title:b.originalText||""},n?n.attr(s):n=g.caption=d.text(s,l).attr("class","fusioncharts-caption"),n.css(b.style),f?(f.setStyle(b.style),s=f.getOriSize(b.text).height):s=10):n&&(n=g.caption=n.remove());q?(this.addCSSDefinition(".fusioncharts-subcaption",
  c.style),s={"class":"fusioncharts-subcaption",text:c.text,title:c.originalText||"",fill:c.style.color,x:r,y:p?n.attrs.y+s+2:b.y||a.spacingTop||0,"text-anchor":b.align||"middle","vertical-align":"top",direction:a.textDirection,visibility:"visible"},m?m.attr(s):m=g.subcaption=d.text(s,l).attr("class","fusioncharts-subcaption"),m.css(c.style)):m&&(g.subcaption=m.remove());p||q||!l||(k.caption=l.remove())},drawLogo:function(){var b=this,c=b.paper,d=b.elements,f=b.options,g=f.credits,k=f.chart||{},l=k.borderWidth||
  0,n=b.chartHeight,m=b.chartWidth,p=d.logoImage,r=k.logoURL,s=k.logoAlpha/100,z=k.logoPosition,C=k.logoLink,B=k.logoScale,F=k.logoLeftMargin,H=k.logoTopMargin,f={tr:{vAlign:Fb,hAlign:yb},bl:{vAlign:jb,hAlign:kb},br:{vAlign:jb,hAlign:yb},cc:{vAlign:"middle",hAlign:"middle"}},I,K,L;b.logic&&g.enabled&&c.text().attr({text:g.text,x:6,y:n-4,"vertical-align":jb,direction:k.textDirection,"text-anchor":"start",fill:"rgba(0,0,0,0.5)",title:g.title||""}).css({fontSize:9,fontFamily:"Verdana,sans",cursor:"pointer",
  _cursor:"hand"}).click(function(){try{E.open(g.href)}catch(a){(E.top||E).location.href=g.href}});r&&(I=new a,(L=f[z])||(L={vAlign:Fb,hAlign:kb}),I.onload=function(){b.disposed||c.disposed||(K=ba("none",L.vAlign,L.hAlign,B,l,m,n,I),v&&(K.w=K.width||0,K.h=K.height||0),K.src=r,p=b.paper.image(K).translate(F,H).css("opacity",s),C&&p.css({cursor:"pointer",_cursor:"hand"}),p.mouseover(function(a){a=A(b.logic.chartInstance.ref,a);q.raiseEvent("LogoRollover",{logoURL:r,logoAlpha:100*s,logoPosition:z||"tl",
  logoScale:B,logoLink:C,chartX:a.chartX,chartY:a.chartY,pageX:a.pageX,pageY:a.pageY},b.logic.chartInstance)}),p.mouseout(function(a){a=A(b.logic.chartInstance.ref,a);q.raiseEvent("LogoRollout",{logoURL:r,logoAlpha:100*s,logoPosition:z||"tl",logoScale:B,logoLink:C,chartX:a.chartX,chartY:a.chartY,pageX:a.pageX,pageY:a.pageY},b.logic.chartInstance)}),p.click(function(a){a=A(b.logic.chartInstance.ref,a);q.raiseEvent("LogoClick",{logoURL:r,logoAlpha:100*s,logoPosition:z||"tl",logoScale:B,logoLink:C,chartX:a.chartX,
  chartY:a.chartY,pageX:a.pageX,pageY:a.pageY},b.logic.chartInstance,void 0,function(){C&&k.events.click.call({link:C})})}),q.raiseEvent("LogoLoaded",{logoURL:r,logoAlpha:100*s,logoPosition:z||"tl",logoScale:B,logoLink:C},b.logic.chartInstance))},I.onerror=function(a){q.raiseEvent("LogoLoadError",{logoURL:r,logoAlpha:100*s,logoPosition:z||"tl",logoScale:B,logoLink:C,error:a},b.logic.chartInstance)},I.src=r,d.logoImage=p)},getEventArgs:function(a){a=a||{};return{datasetName:a.name,datasetIndex:a.index,
  id:a.userID,visible:a.visible}},legendClick:function(a,b){var c=a.legend,d=c&&c.elements,f=d&&d.legendItemText,g=d&&d.legendItemSymbol,d=d&&d.legendItemLine,k=c&&c.hiddenColor,l=c&&c.itemLineColor,n=c&&c.itemTextColor,m=c&&c.symbolColor,p=c&&c.symbolStroke,c=r(b,!a.visible);a.setVisible(b);c?(g&&g.attr({fill:m||l,stroke:p}),f&&f.attr({fill:n}),d&&d.attr({stroke:l})):(g&&g.attr({fill:k,stroke:k}),f&&f.attr({fill:k}),d&&d.attr({stroke:k}));if((f=this.datasets&&this.datasets[a.index]&&this.datasets[a.index].relatedSeries)&&
  f instanceof Array&&0<f.length)for(g=f.length;g--;)d=parseFloat(f[g]),d=this.plots[d],d.legendClick.call(d,c,!1)},exportChart:function(c){var d=this,f=d.fusionCharts,g=d.options;c="object"===typeof c&&function(a){var b={},c;for(c in a)b[c.toLowerCase()]=a[c];return b}(c)||{};var k=l(l({},g.exporting),c),n=(k.exportformat||"png").toLowerCase(),m=k.exporthandler,p=(k.exportaction||O).toLowerCase(),r=k.exporttargetwindow||O,v=k.exportfilename,z=k.exportparameters,A=k.exportcallback,C=k.exportwithimages;
  if(!g.exporting||!g.exporting.enabled||!m)return!1;q.raiseEvent("beforeExport",k,f,void 0,function(){function c(){var a;if("download"===p){/webkit/ig.test(E.navigator.userAgent)&&"_self"===r&&(r=F=g+"export_iframe",d.exportIframe||(d.exportIframe=H=Z("IFRAME",{name:F,width:"1px",height:"1px"},s.body),H.style.cssText="position:absolute;left:-10px;top:-10px;"));I=Z("form",{method:"POST",action:m,target:r,style:"display:none;"},s.body);for(a in B)Z("input",{type:"hidden",name:a,value:B[a]},I);I.submit();
  s.body.removeChild(I);I=void 0;return!0}K=new q.ajax(function(a){var c={};a.replace(RegExp("([^?=&]+)(=([^&]*))?","g"),function(a,b,d,e){c[b]=e});A&&E[A]&&"function"===typeof E[A]&&E[A].call(E,c);b.raiseEvent("exported",c,f)},function(a){a={statusCode:0,statusMessage:"failure",error:a,DOMId:g,width:l.width,height:l.height};A&&E[A]&&"function"===typeof E[A]&&E[A].call(E,a);b.raiseEvent("exported",a,f,[a])});for(a in B)B.hasOwnProperty(a)&&(B[a]=encodeURIComponent(B[a]));K.post(m,B)}var h=d.layers.buttons,
  g=f.id,l=d.paper,D=q&&q.hcLib,B,F,H,I,K,L,D=D&&D.isCanvasElemSupported(),Q,O,P=0,W={},U,T,ga,V,Y={};h&&h.attr("visibility","hidden");L=l.toSVG(C&&D&&"svg"!==n);h&&h.attr("visibility","visible");L=L.replace(/(\sd\s*=\s*["'])[M\s\d\.]*(["'])/ig,"$1M 0 0 L 0 0$2");B={charttype:f.chartType(),stream:L,stream_type:"svg",meta_bgColor:k.bgcolor||"",meta_bgAlpha:k.bgalpha||"1",meta_DOMId:f.id,meta_width:l.width,meta_height:l.height,parameters:["exportfilename="+v,"exportformat="+n,"exportaction="+p,"exportparameters="+
  z].join("|")};-1!==L.indexOf("<image ")?D?(O=(Q=L.match(/<image [^\>]*\>/gi))&&Q.length,U=function(a){a=a&&a.split("/");a=a[a.length-1].split(".");return{name:a[0],type:a[1]||"png"}},T=function(b,c,d,f,h){var g=new a;g.onload=function(){var a="image/"+d,k=s.createElement("canvas"),l=k.getContext("2d"),u="";k.width=g.width;k.height=g.height;l.drawImage(g,0,0);u=k.toDataURL(a);Y[b]=u;V(u,c,d,f,h)};g.onerror=function(){ga()};g.src=b},V=function(a,b,c,d,f){W["image_"+P]={name:b,type:c,encodedData:a,width:d,
  height:f};ga()},ga=function(){var a={},b,d,f,h,g,e=!1;P<O?(b=Q[P].replace(/\"/g,""),b.split(" ").forEach(function(b){b=b.split("=");a[b[0]]=b[1]}),a["xlink:href"]&&(b=(d=U(a["xlink:href"]))&&d.name||"temp_image_"+P,f=d&&d.type||"png",h=parseInt(a.width,10),g=parseInt(a.height,10),d=b+"."+f,Y[a["xlink:href"]]?e=!0:T(a["xlink:href"],b,f,h,g)),b='xlink:href="'+a["xlink:href"],L=L.replace(b,'xlink:href="temp/'+d),P+=1,e&&ga()):(B.encodedImgData=JSON.stringify(W),B.stream=L,c())},ga()):c():c();q.raiseEvent("exportDataReady",
  B,f)},function(){q.raiseEvent("exportCancelled",k,f)})},print:function(a){var b=this,c=l({},a);if(b.isPrinting)return!1;q.raiseEvent("BeforePrint",c,b.logic.chartInstance,void 0,function(){var a=b.container,d=b.elements,f=d.printButton,h=d.exportButton,g=[],k=a.parentNode,d=s.body||s.getElementsByTagName("body")[0],l=d.childNodes;b.isPrinting=!0;Aa(l,function(a,b){1==a.nodeType&&(g[b]=a.style.display,a.style.display="none")});!1!==c.hideButtons&&(f&&"hidden"!=f.attrs.visibility&&f.attr({visibility:"hidden"}),
  h&&"hidden"!=h.attrs.visibility&&h.attr({visibility:"hidden"}));d.appendChild(a);E.print();setTimeout(function(){f&&f.attr({visibility:"visible"});h&&h.attr({visibility:"visible"});k.appendChild(a);Aa(l,function(a,b){1==a.nodeType&&(a.style.display=g[b])});b.isPrinting=!1;q.raiseEvent("PrintComplete",c,b.logic.chartInstance)},1E3)},function(){q.raiseEvent("PrintCancelled",c,b.logic.chartInstance)})},getSymbolPath:function(a,b,c,d,f,g,k){var l=["M"],n,m,p;n=(g.color&&Sb("string"===typeof g.color?g.color:
  g.color.FCcolor.color)||O).replace($,"");p=Rb(n,60).replace($,aa);k?n={FCcolor:{color:n,angle:0,ratio:"0",alpha:"100"}}:(k=Rb(n,40),n={FCcolor:{color:n+","+n+","+k+","+n+","+n,ratio:"0,30,30,30,10",angle:0,alpha:"100,100,100,100,100"}});switch(f){case "column":case "dragcolumn":case "column3d":g=.25*c;f=.5*g;k=.7*d;m=.4*d;l=l.concat([a,b+d,"l",0,-k,g,0,0,k,"z","m",g+f,0,"l",0,-d,g,0,0,d,"z","m",g+f,0,"l",0,-m,g,0,0,m,"z"]);n.FCcolor.angle=270;break;case "bar":case "bar3d":g=.3*c;f=.6*c;k=d/4;m=k/
  2;l=l.concat([a,b,"L",a+f,b,a+f,b+k,a,b+k,"Z","M",a,b+k+m,"L",a+c,b+k+m,a+c,b+k+m+k,a,b+2*k+m,"Z","M",a,b+2*(k+m),"L",a+g,b+2*(k+m),a+g,b+d,a,b+d,"Z"]);break;case "area":case "area3d":case "areaspline":case "dragarea":k=.6*d;m=.2*d;d*=.8;l=l.concat([a,b+d,"L",a,b+k,a+.3*c,b+m,a+.6*c,b+k,a+c,b+m,a+c,b+d,"Z"]);n.FCcolor.angle=270;break;case "pie":case "pie3d":g=.5*c;f=.9*g;c=a+g+1;d=b+g-1;a=a+g-1;b=b+g+1;l=l.concat(["M",c,d,"L",c,d-f+1,"A",f-1,f-1,0,0,1,c+f-1,d,"Z","M",a,b,"L",a,b-f,"A",f,f,0,1,0,a+
  f,b,"Z"]);n.FCcolor.radialGradient="1";n.FCcolor.ratio="0,0,0,100,0";break;case "boxandwhisker2d":l=l.concat([a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]);n=g.color;p="#000000";break;default:l=l.concat([a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]),n.FCcolor.angle=270,n.FCcolor.ratio="0,70,30"}return{path:l,color:n,strokeWidth:.5,strokeColor:p}}});d.prototype={configure:function(){var a=this.axisData,b=this.renderer,c=this.isVertical,d=this.isReverse,f=b.options,g=f.chart,k=g.marginBottom,g=g.marginRight,l=b.canvasTop,
  n=b.canvasLeft,m=this.min=a.min,m=this.span=(this.max=a.max)-m,n=this.startX=oa(a.startX,n),l=this.startY=oa(a.startY,l),p=this.endX=oa(a.endX,b.canvasRight),a=this.endY=oa(a.endY,b.canvasBottom),m=this.pixelRatio=c?(a-l)/m:(p-n)/m,r=this.relatedObj={};r.marginObj={top:l,right:g,bottom:k,left:n};r.canvasObj={x:n,y:l,w:p-n,h:a-l,toX:p,toY:a};this.startPixel=d?c?a:p:c?l:n;this.pixelValueRatio=d?-m:m;this.primaryOffset=this.secondaryOffset=0;this.cache={lowestVal:0,highestVal:0,indexArr:[],hashTable:{}};
  this.elements=this.elements||{};this.belowBandGroup&&(b.elements.axes=b.elements.axes||{},b.elements.axes.belowBandGroup=this.belowBandGroup,f&&f.chart&&f.chart.hasScroll&&this.belowBandGroup.attr({"clip-rect":b.elements["clip-canvas"]}));this.poi={}},draw:function(){var a=this.axisData,b=a&&a.plotLines||[],c=a&&a.plotBands||[],d=a&&a.showLine,f=a&&a.tickLength,g=a&&a.tickWidth;a&&a.title&&this.drawAxisName();a&&a.labels&&(this.renderer.addCSSDefinition("."+a.labels.className+" .fusioncharts-label",
  a.labels.style),this.belowLabelGroup&&this.belowLabelGroup.attr("class",a.labels.className),this.topLabelGroup&&this.topLabelGroup.attr("class",a.labels.className));b&&0<b.length&&this.drawPlotLine();c&&0<c.length&&this.drawPlotBands();isNaN(f)||0===f||isNaN(g)||0===g||this.drawTicks();d&&this.drawLine()},scroll:function(){},setOffset:function(a,b){var c=this.primaryOffset=a,d=this.secondaryOffset=b||this.secondaryOffset,f=this.isVertical,g,k,l,n=[this.topLabelGroup,this.belowLabelGroup,this.topLineGroup,
  this.belowLineGroup,this.topBandGroup,this.belowBandGroup],m,p;m=0;for(p=n.length;m<p;m+=1)if(l=n[m])g=f?d:c,k=f?c:d,l.attr({transform:"t"+g+","+k});f||this.drawPlotLine&&this.drawPlotLine()},update:function(){},drawTicks:function(){var a=this.axisData,b=this.renderer.paper,c=this.min,d=this.max,f=this.isVertical,g=this.layerBelowDataset,g=this.tickGroup=this.tickGroup||b.group("axis-ticks",g),k=this.relatedObj.canvasObj,l=a.offset,n=a.opposite,m=a.showAxis,p=a.tickInterval,r=a.tickLength,q=a.tickWidth,
  a=a.tickColor,s=c;if(f&&m)for(c=this.getAxisPosition(c),f=this.getAxisPosition(d),k=n?k.toX+l:k.x-l,b.path(["M",k,c,"L",k,f],g).attr({stroke:a,"stroke-width":q});Ja(s)<=d;)l=this.getAxisPosition(s),c=n?k+r:k-r,b.path(["M",k,l,"L",c,l],g).attr({stroke:a,"stroke-width":q}),s+=p},getAxisPosition:function(a,b){var c;b?c=(a-this.startPixel)/this.pixelValueRatio+this.min:(a=this.axisData.reversed?this.min+(this.max-a):a,c=this.startPixel+(a-this.min)*this.pixelValueRatio);return c},drawPlotLine:function(){var a=
  this.renderer,b=a.paper,c=this.isVertical,d=+!c,f=this.lines=this.lines||[],k=this.labels=this.labels||[],l=this.relatedObj.canvasObj,n=this.globalOptions||{},m=this.elements||{},p=this.axisData.plotLines||[],r=this.primaryOffset,q=c?this.startY:this.startX,s=c?this.endY:this.endX,v=parseFloat(a.canvasBorderWidth)||0,z=La(p.length,La(f.length,k.length)),A=a.layers.datalabels,C=this.belowLineGroup,B=this.topLineGroup,F=this.belowLabelGroup,E=this.topLabelGroup,I=!1!==(a.tooltip||{}).enabled,K=function(b){return function(c){ta.call(this,
  a,c,b)}},L=n.chart.xDepth||0,n=n.chart.textDirection,Q=[],W=0,U,P,T,V,Z,ba,Ra,fa,wa,aa,t,w,J,M,e,ca,R,S,ka,$,pa,ma,qa,X,Fa,la,na,sa,Ea,ya,za,Aa,Dc,Na,ob,Va,Oa,Ja,ab,Ga,Ia,mb,hb;for(hb=0;hb<z;hb+=1){T=V=Z=null;T=f[hb];V=k[hb];if(Ra=p[hb])if(fa=Ra.width,wa=Ra.isVline,aa=Ra.isTrend,t=Ra.isGrid,w=Ra.tooltext,J=Ra.value,M=Ra.color,e=Ra.dashStyle,ca=aa?Ra.to:null,R=Ra._isStackSum,U=3<Ra.zIndex?B:C,S=Ra.label){ka=S.style;$=S.text;pa=ka&&ka.color;ma=S.offsetScaleIndex||0;qa=S.offsetScale;if(X=ka&&ka.fontSize)Fa=
  X,-1!==Fa.indexOf("px")&&(Fa=Fa.replace("px",""),Fa=parseFloat(Fa));P=ka&&ka.lineHeight;X=ka?{fontFamily:ka.fontFamily,fontSize:ka.fontSize,lineHeight:ka.lineHeight,fontWeight:ka.fontWeight,fontStyle:ka.fontStyle}:null;P&&(la=P,-1!==la.indexOf("px")&&(la=la.replace("px",""),la=parseFloat(la)));na=S.rotation;sa=S.x||0;Ea=S.y||0;ya=S.align;za=S.verticalAlign;Aa=S.textAlign;Dc=oa(parseInt(S.borderWidth,10),1);P=R?A:3<=Ra.zIndex?E:F;S.backgroundColor&&(S.labelBgClr=ga({color:S.backgroundColor,alpha:100*
  S.backgroundOpacity}));S.borderColor&&(S.labelBorderClr=ga({color:S.borderColor,alpha:"100"}));Na=Fa?.2*Fa:2;Aa="left"===Aa?"start":"right"===Aa?"end":"middle"}ba=Ia="visible";mb=0>oa(qa,J,0);c?(Va=this.getAxisPosition(J),Ja=aa?this.getAxisPosition(ca)||Va:Va,ab=Va!==Ja?!0:!1,Ga=["M",l.x,Va,"L",l.toX,Ja],wa?a.logic.isBar&&(ob=a.yAxis[ma],!R&&!isNaN(qa)&&0<=qa&&1>=qa&&(qa=ob.min+(ob.max-ob.min)*qa),Oa=ob.getAxisPosition(oa(qa,J))+sa+Na*(mb?-1:1)):Oa=S?ob=this.axisData.isOpposite||"right"===ya?l.toX+
  sa:l.x+sa:ob=this.axisData.isOpposite?l.toX:l.x):(ob=this.getAxisPosition(J)||0,Oa=aa?this.getAxisPosition(ca)||ob:ob,!aa&&!wa&&0<L&&!a.logic.isBar&&(ob+=L,Oa+=L,s+=L),ab=ob!==Oa?!0:!1,Ga=["M"+ob,l.y,"L",Oa,l.toY],Ia=ob+r<q||ob+r>s?"hidden":Ia,wa?(ob=a.yAxis[ma],!R&&!isNaN(qa)&&0<=qa&&1>=qa&&(qa=ob.min+(ob.max-ob.min)*(1-qa)),Va=ob.getAxisPosition(oa(qa,J))+Ea,Va-=(v+parseFloat(Dc))*(Ea&&(0<Ea?-1:1))):this.axisData.opposite||"top"===za&&!t?(Va=l.y+Ea,Ja="bottom"):Va=l.toY+Ea,Ja=Va);ba=c?ba:Oa+r<q||
  Oa+r>s?"hidden":ba;if(Ra&&"visible"===Ia&&.1<fa)ab={path:Y(Ga,fa),stroke:M,"stroke-width":fa,"shape-rendering":!ab&&1<=fa?"crisp":void 0,"stroke-dasharray":e?e:void 0,visibility:Ia},T?T.attr(ab):(T=f[hb]=b.path(ab,U).css(Ra.style),m.lines=m.lines||[],m.lines.push(T)),I&&w&&fa<H&&Ia&&(Z=b.path({stroke:g,"stroke-width":H,ishot:!0,path:Ga,fill:g},a.layers.tracker)),Z=Z||T,I&&w&&Z.tooltip(w);else if(T||V)T&&T.remove(),T=null,f&&(f[hb]=null),m&&m.lines&&(m.lines[hb]=null);S&&Ra&&!Ra.stepped&&"visible"===
  ba&&S.text!=O&&" "!=S.text?(Va=aa?"left"===ya?Va:Ja:Ja,Z=Oa-+!wa*d*L+d*(sa||0),R?(Ja=c||na?"middle":"bottom",Va+=c?0:Fa*(mb?-.4:.4),na&&(Va+=mb?4:-2,Aa=mb?"end":"start")):d&&this.axisData.opposite?(Ja=jb,Aa=na?"start":"middle"):Ja=za,/\n|<br\s*?\/?>/ig.test($)&&t&&(na?(Ja="middle",Z-=d*(sa||0)):(Ja=d&&this.axisData.opposite&&!na?"middle":Fb,Va-=la)),ab={"class":"fusioncharts-label",text:$,fill:X?pa||M:null,title:S&&(S.originalText||O),cursor:S.link?"pointer":O,x:Z,y:Va,"text-anchor":Aa,"vertical-align":Ja,
  direction:n,transform:" ","text-bound":[ka.backgroundColor||S.labelBgClr,ka.borderColor||S.labelBorderClr,ka.borderThickness||Dc,ka.borderPadding||Na,ka.borderRadius,ka.borderDash],visibility:ba,"line-height":ka.lineHeight},V?V.attr(ab):(V=k[hb]=b.text(ab,P).attr("class","fusioncharts-label"),T&&(T.label=V),m.labels=m.labels||[],m.labels.push(V),Ra.isDataLabel&&V.click(K("dataLabelClick")).hover(K("dataLabelRollOver"),K("dataLabelRollOut"))),X&&V.css(X),Ra.isDataLabel&&(ba={text:$,index:W,link:S.link},
  W+=1,V.data("eventArgs",ba)),na&&V.attr("transform",["r",na,Z,Va]),R&&V&&Q.push(V)):V&&(V.isRotationSet=!1,V.remove(),k&&(k[hb]=null),m&&m.labels&&(m.labels[hb]=null));!T&&!V||Ra&&null===Ra.value||(Ra&&Ra.isMinLabel?this.poi.min={label:V,index:hb,line:T}:Ra&&Ra.isMaxLabel?this.poi.max={label:V,index:hb,line:T}:Ra&&Ra.isZeroPlane&&(this.poi.zero={label:V,index:hb,line:T}));T=V=null}oa(a.options.plotOptions.series.animation.duration,0)},drawPlotBands:function(){var a=this.renderer,b=a.paper,c=this.isVertical,
  d=this.axisData.plotBands||[],f=this.bands=this.bands||[],g=this.bandLabels=this.bandLabels||[],k=this.relatedObj.canvasObj,l=this.primaryOffset,n=c?this.startY:this.startX,m=c?this.endY:this.endX,p=a.options.chart.hasScroll,r=this.belowBandGroup,q=this.topBandGroup,s=this.belowLabelGroup,v=this.topLabelGroup,z=this.elements||{},A=a.options.chart.textDirection,a=!1!==(a.tooltip||{}).enabled,C,B,F,E,H,I,K,L,Q,P,O,W,U,T,V,Z,Y,ba,t,w,J,M,e,ca,R,S,ka,fa,aa,$,pa,X,qa,ma,ta,la=La(d.length,f.length);for(ta=
  0;ta<la;ta+=1){ma="visible";X=f[ta];qa=g[ta];if(C=d[ta])if(B=C.tooltext,F=C.to,E=C.from,H=C.value,I=C.width,K=C.color,$=3<C.zIndex?q:r,L=C.label){if(Q=L.style){if(T=Q.fontSize)P=T,-1!==P.indexOf("px")&&(P=P.replace("px",""),parseFloat(P));(P=Q.lineHeight)&&-1!==P.indexOf("px")&&(P=P.replace("px",""),parseFloat(P));t=Q.color}(P=L.borderWidth)&&-1!==P.indexOf("px")&&P.replace("px","");O=L.align;W=L.x;U=L.y;Y=L.text;ba=L.originalText;V=L.backgroundColor;Z=L.backgroundOpacity;V&&(J=L.labelBgClr=ga({color:V,
  alpha:100*Z}));if(V=L.borderColor)M=L.labelBorderClr=ga({color:V,alpha:"100"});V=L.textAlign;V="left"===V?"start":"right"===V?"end":"middle";Z=L.verticalAlign;w=L.borderType;pa=3<C.zIndex?v:s}e=this.getAxisPosition(oa(F,H));ca=this.getAxisPosition(oa(E,H));R=c?k.x:ca;S=c?e:k.y;ka=c?k.w:(this.axisData.reversed?ca-e:e-ca)||I||1;ca=c?ca-e||1:k.h;e=R+ka;ka=Ya(ka);0>ca&&(ca=Ya(ca),S-=ca);c||(ma=p?"hidden":R+l>m||e+l<n?"hidden":ma);L&&(fa=c?"right"===O?k.toX+W:k.x+W:R+ka/2,aa=c?S+ca/2:k.toY+U);if(!X&&C&&
  "visible"===ma)C={x:R,y:S,width:ka,height:ca,fill:ga(K),"stroke-width":0},X?X.attr(C):(X=f[ta]=b.rect(C,$),z.bands=z.bands||[],z.bands[ta]=X),a&&B&&X.tooltip(B);else if(X&&(!C||"hidden"===ma)){z.labels&&(g[ta]=z.labels[ta]=null);X.label&&X.label.remove();f[ta]=z.bands[ta]=null;X.remove();continue}X&&L&&L.text&&(C={"class":"fusioncharts-label",text:Y,title:ba||"",fill:t,"text-bound":[J,M,P,.2*T,"solid"===w?!1:!0],x:fa,y:aa,"text-anchor":V,direction:A,"vertical-align":Z,"line-height":Q.lineHeight},
  qa?qa.attr(C):(qa=g[ta]=X.label=b.text(C,pa).attr("class","fusioncharts-label"),Q&&qa.css(Q),z.labels=z.labels||[],z.labels[ta]=qa))}},drawAxisName:function(){var a=this.axisData,b=a.title||{},c=b&&b.style,d=b&&b.className,f=b.align,g=b.centerYAxisName||!1,k=this.renderer.paper,l=this.isVertical,n=this.relatedObj.canvasObj,m=oa(a.offset,0)+oa(b.margin,0),p=b.text||"",r=this.name||void 0,a=a.opposite,q=this.layerBelowDataset,q=q.nameGroup=q.nameGroup||k.group("axis-name",q),s=oa(b.rotation,a?90:270),
  v=l?a?n.toX+m:n.x-m:(n.x+n.toX)/2,z={fontFamily:c.fontFamily,fontSize:c.fontSize,lineHeight:c.lineHeight,fontWeight:c.fontWeight,fontStyle:c.fontStyle},A,g=l?"low"===f?n.toY:g?(n.y+n.toY)/2:this.renderer.chartHeight/2:n.toY+m;p?(!isNaN(s)&&s&&l&&(A=c.fontSize,A=-1!=A.indexOf("px")?A.replace("px",""):A,a?(v+=parseFloat(A),A=270===s?"bottom":"top"):(v-=parseFloat(A),A=270===s?"top":"bottom")),this.renderer.addCSSDefinition("."+d,z),d={"class":d,x:0,y:0,text:p,fill:c.color,direction:this.renderer.options.chart.textDirection,
  "text-anchor":"low"===f?90==s?"end":"start":"middle","vertical-align":l?s?A:"middle":a?jb:"top",transform:l?"t"+v+","+g+"r"+s:"t"+v+","+g,"font-size":c.fontSize},b.originalText&&(d.title=b.originalText),r?r.attr(d):r=this.name=k.text(d,q),setTimeout(function(){r.attr({"line-height":c.lineHeight,"text-bound":[c.backgroundColor,c.borderColor,c.borderThickness,c.borderPadding,c.borderRadius,c.borderDash]})},0)):r&&r.remove();this.elements.name=r},drawLine:function(){var a=this.axisData,b=this.renderer.paper,
  c=this.min,d=this.max,f=this.isVertical,g=a.opposite,k=this.layerBelowDataset,k=this.lineGroup=this.lineGroup||b.group("axis-lines",k),l=a.lineColor,n=a.lineThickness,m=a.lineEndExtension||0,p=a.lineStartExtension||0,a=this.relatedObj.canvasObj;f?(c=this.getAxisPosition(c)-p,m=this.getAxisPosition(d)+m,d=f=g?a.toX+n/2:a.x-n/2):(d=a.x-p,f=a.toX+m,c=m=g?a.y-n/2:a.toY+n/2);b=b.path({path:["M",d,c,"L",f,m],stroke:l,"stroke-width":n},k);this.elements.axisLine=b},realtimeUpdateX:function(a){if(0<a){for(var b=
  this.axisData.plotBands,c=this.min+a,d,f=b.length;f--;)(d=b[f])&&!d.isNumVDIV&&(d.value<c||d.from<c||d.to<c?b.splice(f,1):(void 0!==d.value&&(d.value-=a),void 0!==d.from&&(d.from-=a),void 0!==d.to&&(d.to-=a)));this.drawPlotLine();this.drawPlotBands()}},realtimeUpdateY:function(a,b){var c=this.axisData,d=this.min=c.min=a,c=this.span=(this.max=c.max=b)-d,c=this.pixelRatio=this.isVertical?this.relatedObj.canvasObj.h/c:this.relatedObj.canvasObj.w/c;this.pixelValueRatio=this.isReverse?-c:c;this.drawPlotLine();
  this.drawPlotBands()}};d.prototype.constructor=d;I("renderer.cartesian",{drawCanvas:function(){var a=this.options.chart||{},b=a.plotBackgroundColor,c=this.paper,d=this.elements,f=d.canvas,g=d.canvas3DBase,k=d.canvas3dbaseline,g=d.canvasBorder,l=d.canvasBg,n=this.canvasTop,m=this.canvasLeft,p=this.canvasWidth,r=this.canvasHeight,q=oa(a.plotBorderRadius,0),l=a.plotBorderWidth,s=.5*l,z=a.plotBorderColor,A=a.isBar,C=a.is3D,B=a.use3DLighting,F=a.showCanvasBg,E=a.canvasBgDepth,H=a.showCanvasBase,I=a.canvasBaseColor3D,
  L=a.canvasBaseDepth,Q=a.plotShadow,O=v&&0===l&&Q&&Q.enabled,W=a.xDepth||0,a=a.yDepth||0,P=this.layers,U=P.background,T=P.dataset;P.tracker=P.tracker||c.group("hot").insertAfter(T);P.datalabels=P.datalabels||c.group("datalabels").insertAfter(T);P=P.canvas=P.canvas||c.group("canvas").insertAfter(U);g||(d.canvasBorder=c.rect({x:m-s,y:n-s,width:p+l,height:r+l,r:q,"stroke-width":l,stroke:z,"stroke-linejoin":2<l?"round":"miter"},P).shadow(Q));d["clip-canvas"]=[La(0,m-W),La(0,n-a),La(1,p+2*W),La(1,r+2*a)];
  d["clip-canvas-init"]=[La(0,m-W),La(0,n-a),1,La(1,r+2*a)];C&&(F&&(l=A?d.canvasBg=c.path(["M",m,",",n,"L",m+1.2*E,",",n-E,",",m+p-E,",",n-E,",",m+p,",",n,"Z"],P):d.canvasBg=c.path(["M",m+p,",",n,"L",m+p+E,",",n+1.2*E,",",m+p+E,",",n+r-E,",",m+p,",",n+r,"Z"],P),l.attr({"stroke-width":0,stroke:"none",fill:ga(b)})),H&&(g=A?d.canvas3DBase=c.cubepath(m-W-L-1,n+a+1,L,r,W+1,a+1,P):d.canvas3DBase=c.cubepath(m-W-1,n+r+a+1,p,L,W+1,a+1,P),g.attr({stroke:"none","stroke-width":0,fill:[I.replace($,aa),!B]}),k||
  (k=d.canvas3dbaseline=c.path(void 0,P)),k.attr({path:A?["M",m,n,"V",r+n]:["M",m,n+r,"H",p+m],stroke:K.tintshade(I.replace($,aa),.05).rgba})));!f&&b&&(d.canvas=c.rect({x:m,y:n,width:p,height:r,r:q,"stroke-width":0,stroke:"none",fill:ga(b)},P).shadow(O))},drawAxes:function(){var a=this.logic,b=this.options,c=this.paper,f=this.layers,g=f.dataset,k=f.layerBelowDataset=f.layerBelowDataset||c.group("axisbottom").trackTooltip(!0),l=f.layerAboveDataset=f.layerAboveDataset||c.group("axistop").trackTooltip(!0),
  c=this.xAxis=[],f=this.yAxis=[];k.insertBefore(g);l.insertAfter(g);if(b.xAxis&&b.xAxis.length)for(g=0,k=b.xAxis.length;g<k;g+=1)c[g]=this.xAxis[g]=new d(b.xAxis[g],this,a.isBar);else c[0]=this.xAxis[0]=new d(b.xAxis,this,a.isBar);if(b.yAxis)for(g=0,k=b.yAxis.length;g<k;g+=1)f[g]=this.yAxis[g]=new d(b.yAxis[g],this,!a.isBar,!a.isBar);g=0;for(k=f.length;g<k;g+=1)f[g].axisData&&(f[g].axisData.title&&(f[g].axisData.title.className="fusioncharts-yaxis-"+g+"-title"),f[g].axisData.labels&&(f[g].axisData.labels.className=
  "fusioncharts-yaxis-"+g+"-gridlabels")),f[g].draw();g=0;for(k=c.length;g<k;g+=1)c[g].axisData&&(c[g].axisData.title&&(c[g].axisData.title.className="fusioncharts-xaxis-"+g+"-title"),c[g].axisData.labels&&(c[g].axisData.labels.className="fusioncharts-xaxis-"+g+"-gridlabels")),c[g].draw()},drawScroller:function(){var a=this,b=a.options,c=a.paper,d=a.layers,f=a.xAxis["0"]||{},g=f.axisData||{},k=g.scroll||{},n=a.canvasTop,m=a.canvasLeft,p=a.canvasWidth,r=a.canvasHeight,s=a.canvasBorderWidth,v=s||(g.showLine?
  g.lineThickness:0),z=s||g.lineStartExtension,g=s||g.lineEndExtension,s=b.chart.useRoundEdges,A,C,B,F,E,H,I,L,Q,O,W,U,P,T,ga,Z=d.dataset,Y=d.datalabels,ba=d.tracker;F=d.layerAboveDataset;var fa,wa;k.enabled&&(fa=d.scroll=d.scroll||c.group("scroll").insertAfter(F),F=k.scrollRatio,b=oa(b[V].xAxisScrollPos,k.startPercent),E=k.viewPortMax,H=k.viewPortMin,C=k.vxLength,I=ib(C),L=k.showButtons,Q=k.height,O=k.padding,W=k.color,U=k.flatScrollBars,C=k.windowedCanvasWidth=f.getAxisPosition(C),A=k.fullCanvasWidth=
  f.getAxisPosition(E-H)-C,B=pa(b*A),P=a.fusionCharts.jsVars._reflowData,T={hcJSON:{_FCconf:{xAxisScrollPos:0}}},ga=T.hcJSON._FCconf,d.scroller=c.scroller(m-z,n+r+v+O-!!v,p+z+g,Q,!0,{showButtons:L,displayStyleFlat:U,scrollRatio:F,scrollPosition:b},fa).data("fullCanvasWidth",A).data("windowedCanvasWidth",C).attr({"scroll-display-style":U,fill:W,r:s&&2||0}).scroll(function(b){var c;B=-pa(b*A);Z&&Z.transform(["T",B,0]);Y&&Y.transform(["T",B,0]);ba&&ba.transform(["T",B,0]);f.setOffset&&f.setOffset(B);c=
  {position:b,direction:b-k.lastPos||0,vxLength:I};ga.xAxisScrollPos=k.lastPos=b;l(P,T,!0);if(0!==c.direction)for(wa=0;wa<a.datasets.length;wa++)a[a.datasets[wa].drawPlot+"Scroll"]&&a[a.datasets[wa].drawPlot+"Scroll"].call(a,a.plots[wa],a.datasets[wa],c)}),function(){var b;K.eve.on("raphael.scroll.start."+d.scroller.id,function(c){b=c;q.raiseEvent("scrollstart",{scrollPosition:c},a.logic.chartInstance)});K.eve.on("raphael.scroll.end."+d.scroller.id,function(c){q.raiseEvent("scrollend",{prevScrollPosition:b,
  scrollPosition:c},a.logic.chartInstance)})}());return k.enabled},finalizeScrollPlots:function(){var a=this,c=a.container,d=a.elements,f=a.layers,g=f.scroller,k=f.dataset,l=f.datalabels,f=f.tracker,n,m={},r,s=a.xAxis["0"]||{},v=(s.axisData||{}).scroll||{},z=oa(a.options[V].xAxisScrollPos,v.startPercent),A=v.fullCanvasWidth;v.enabled&&(k.attr({"clip-rect":d["clip-canvas"]}),l.attr({"clip-rect":d["clip-canvas"]}),f.attr({"clip-rect":d["clip-canvas"]}),d=function(c){var d=a.elements.canvas,f=n.left,k=
  n.top,l=c.state,u=na&&b.getTouchEvent(c)||p;c=c.originalEvent;f=(c.clientX||c.pageX||u.pageX)-f;k=(c.clientY||c.pageY||u.pageY)-k;switch(l){case "start":r=d.isPointInside(f,k);m.ox=r&&f||null;if(!r)return!1;m.prevScrollPosition=g.attrs["scroll-position"];q.raiseEvent("scrollstart",{scrollPosition:m.prevScrollPosition},a.logic.chartInstance);break;case "end":q.raiseEvent("scrollend",{prevScrollPosition:m.prevScrollPosition,scrollPosition:m.scrollPosition},a.logic.chartInstance);r=!1;m={};break;default:if(!r)break;
  d=f-m.ox;m.ox=f;m.scrollPosition=g.attrs["scroll-position"]-d/A;g.attr({"scroll-position":m.scrollPosition})}},na&&(n=B(c),c&&(W(c,"pointerdrag",d),C(c,"pointerdrag",d))),0<z&&(c=-pa(z*A),k&&k.transform(["T",c,0]),l&&l.transform(["T",c,0]),f&&f.transform(["T",c,0]),s.setOffset&&s.setOffset(c)))},drawPlotColumn:function(a,b,c){var d=this,f=a.data,k=f.length,l=a.items,n=a.graphics||(a.graphics=[]),m=d.paper,p=d.smartLabel,q=d.logic,s=d.layers,v=d.options,z=d.elements,A=v.chart,C=!1!==(v.tooltip||{}).enabled,
  B,E=d.definition.chart,I=v.plotOptions.series,L=I.dataLabels.style,O=d.xAxis[b.xAxis||0],W=d.yAxis[b.yAxis||0],U=d.chartWidth,ea=d.chartHeight,T=W.axisData.reversed,Z=q.isLog,P=q.is3D,Y=q.isStacked,ba=q.isWaterfall,fa=q.isCandleStick,aa=r(O.axisData.scroll,{}),$=c||{},ma=aa.enabled,wa=oa($.position,v[V].xAxisScrollPos,aa.startPercent),la=$.vxLength||ib(aa.vxLength),t=$.scrollStart||La(0,pa((k-la)*wa)-1)||0,w=$.scrollEnd||qa(k,t+la+2)||k,J=A.canvasBorderOpacity=K.color(A.plotBorderColor).opacity,M=
  d.canvasBorderWidth,e=A.isCanvasBorder=0!==J&&0<M,ca,R=c!==Ea?0:isNaN(+I.animation)&&I.animation.duration||1E3*I.animation,S=b.numColumns||1,ka=b.columnPosition||0,na=A.use3DLighting,Yb=!1===b.visible?"hidden":"visible",ya=A.overlapColumns,za=O.getAxisPosition(0),X=O.getAxisPosition(1)-za,Fa=E&&E.plotspacepercent,Aa=oa(E&&E.plotpaddingpercent),Ja=I.groupPadding,Ia=I.maxColWidth,Na=(1-.01*Fa)*X||qa(X*(1-2*Ja),Ia*S),Ga=Na/2,Ma=Na/S,Wa=qa(Ma-1,1<S?ya||Aa!==Ea?0<Aa?Ma*Aa/100:0:4:0),Dc=ka*Ma-Ga+Wa/2,Ta=
  W.max,ob=W.min,Va=0<Ta&&0<=ob,Oa=0>=Ta&&0>ob,sb=0<Ta&&0>ob,ab=Oa||T&&Va?Ta:Z||Va?ob:0,kb=W.yBasePos=W.getAxisPosition(ab),yb,mb=oa(A.useRoundEdges,0),hb=s.dataset=s.dataset||m.group("dataset-orphan"),Za=s.datalabels=s.datalabels||m.group("datalabels").insertAfter(hb),cb=s.tracker,jb=d.canvasTop,Fb=d.canvasLeft,Rb=d.canvasWidth,Sb=d.canvasBottom,md=d.canvasRight,xc,nd,od,Hc,bc,cc,Pc,Ob,$b,zb,qb,qc,Gb,Bc,Pb,hc,Qb,gb,Cc,Ic,Ua,vb,ac,rb,rc,Qc,wb,Lb,Ca,sc,uc,vc,nc,oc,yc,dd,tc,wc,lb,Yc=function(a){ta.call(this,
  d,a)},Fc=function(a,b){return function(c){a.attr(b);ta.call(this,d,c,"DataPlotRollOver")}},Sa=function(a,b){return function(c){a.attr(b);ta.call(this,d,c,"DataPlotRollOut")}};d.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",{fontFamily:L.fontFamily,fontSize:L.fontSize,lineHeight:L.lineHeight,fontWeight:L.fontWeight,fontStyle:L.fontStyle,color:L.color});Za.attr("class","fusioncharts-datalabels");R&&(!c&&Za.attr({transform:"...t"+U+","+ea}),d.animationCompleteQueue.push({fn:function(){Za.attr({transform:"...t"+
  -U+","+-ea})},scope:d}));Ma-=Wa;ma&&t>w-la-2&&(t=La(0,w-la-2));Y&&(dd=hb.shadows||(hb.shadows=m.group("shadows",hb).toBack()));Ca=hb.column||(hb.column=m.group("columns",hb));fa||P||ma||Ca.attrs["clip-rect"]||Ca.attr({"clip-rect":z["clip-canvas"]});ba&&Ca.toBack();if(P)for(bc=A.xDepth||0,cc=A.yDepth||0,sc=Ca.negative=Ca.negative||m.group("negative-values",Ca),nc=Ca.column=Ca.column||m.group("positive-values",Ca),vc=Ca.zeroPlane,!vc&&0>ob&&0<=Ta&&(vc=Ca.zeroPlane=m.group("zero-plane",Ca).insertBefore(nc),
  nd=A.zeroPlaneColor,od=A.zeroPlaneBorderColor,Hc=A.zeroPlaneShowBorder,z.zeroplane=m.cubepath(Fb-bc,kb+cc,Rb,1,bc,cc,vc).attr({fill:[nd,!na],stroke:od||"none","stroke-width":Hc?1:0})),(uc=sc.data("categoryplots"))||(sc.data("categoryplots",Array(k)),uc=sc.data("categoryplots")),(oc=nc.data("categoryplots"))||(nc.data("categoryplots",Array(k)),oc=nc.data("categoryplots")),zb=0;zb<k;zb+=1)uc[zb]=uc[zb]||m.group(sc),oc[zb]=oc[zb]||m.group(nc);else yc=Ca;p.setStyle({fontFamily:L.fontFamily,fontSize:L.fontSize,
  lineHeight:L.lineHeight,fontWeight:L.fontWeight,fontStyle:L.fontStyle});for(zb=t;zb<w;zb+=1){qb=f[zb];Pb=qb.y;B=qb.toolText;xc=a.index+"_"+zb;wb=Lb=null;if(null===Pb){if($b=l[zb])wb=$b.graphic,P||wb.attr({height:0})}else{Pc=!1;Bc=oa(qb.x,zb);qc=qb.link;Gb=F(qb.borderWidth)||0;Qc=qb._FCW*X;Qb=O.getAxisPosition(qb._FCX)||O.getAxisPosition(Bc)+Dc;hc=qb.previousY;Cc=W.getAxisPosition(hc||ab);gb=W.getAxisPosition(Pb+(hc||0));Ua=Ya(gb-Cc);vb=Qc||Ma;lb={index:zb,link:qc,value:qb.y,displayValue:qb.displayValue,
  categoryLabel:qb.categoryLabel,toolText:qb.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible};if(P){0>Pb&&(gb=Cc,Pc=!0);yc=0>Pb?uc:oc;($b=l[zb])||($b=l[zb]={index:zb,value:Pb,graphic:m.cubepath(yc[zb]),dataLabel:null,tracker:null,hot:null});wb=$b.graphic;rb=rc={};qb.hoverEffects&&(rb={fill:[ga(qb.color),!na],stroke:Gb&&ga(qb.borderColor)||"NONE","stroke-width":Gb},ac=qb.rolloverProperties,rc={fill:[ga(ac.color),!na],stroke:ac.borderWidth&&ga(ac.borderColor)||"NONE","stroke-width":ac.borderWidth});
  wb.attr({cubepath:[Qb-bc,R?kb+cc:gb+cc,vb,R?0:Ua,bc,cc],fill:[ga(qb.color),!na],stroke:Gb&&ga(qb.borderColor)||"NONE","stroke-width":Gb,visibility:Yb}).shadow(I.shadow&&qb.shadow,dd).data("BBox",{height:Ua,width:vb,x:Qb,y:gb});R&&wb.animate({cubepath:[Qb-bc,gb+cc,vb,Ua,bc,cc]},R,"normal",d.getAnimationCompleteFn());if(qc||C)!Y&&Ua<H&&(gb-=(H-Ua)/2,Ua=H),$b.tracker||($b.tracker=m.cubepath(cb)),Lb=$b.tracker,Lb.attr({cubepath:[Qb-bc,gb+cc,vb,Ua,bc,cc],cursor:qc?"pointer":"",stroke:Gb&&g||"NONE","stroke-width":Gb,
  fill:g,ishot:!0,visibility:Yb});(Lb||wb).data("eventArgs",lb).data("groupId",xc).click(Yc).hover(Fc(wb,rc),Sa(wb,rb)).tooltip(B);(Lb||wb)._.cubetop.data("eventArgs",lb).data("groupId",xc).click(Yc).hover(Fc(wb,rc),Sa(wb,rb)).tooltip(B);(Lb||wb)._.cubeside.data("eventArgs",lb).data("groupId",xc).click(Yc).hover(Fc(wb,rc),Sa(wb,rb)).tooltip(B);Y&&Pc&&(wb.toBack(),Lb&&Lb.toBack())}else{Ob=!1;if(!Z&&!T&&0>Pb||!Z&&T&&0<Pb)gb=Cc,Ob=!0;T&&!sb&&0<Pb&&(gb=Cc-Ua,Ob=!1);ba&&0>Pb&&sa(hc)&&(gb-=Ua,Ob=!0);fa||
  ma||(Q(gb)<=jb&&(Ua-=jb-gb-+e,gb=jb-+e),pa(gb+Ua)>=Sb&&(Ua-=pa(gb+Ua)-Sb+ +!!Gb+ +e,A.xAxisLineVisible&&!e&&(Ua+=1)),1>=Gb&&(pa(Qb)<=Fb&&(vb+=Qb,Qb=Fb-Gb/2+ +!!Gb-+e,vb-=Qb),pa(Qb+vb)>=md&&(vb=md-Qb+Gb/2-+!!Gb+ +e)));tc=K.crispBound(Qb,gb,vb,Ua,Gb);Qb=tc.x;gb=tc.y;vb=tc.width;Ua=tc.height;if(!fa&&e&&(!sa(hc)||ba&&hc===Pb&&Pb===qb._FCY))if(Oa&&!T)ca=gb-(jb-Gb/2),Ua+=ca,kb=gb-=ca;else if(Z||Va||T&&Oa)Ua=Sb-gb+Gb/2,kb=gb+Ua;ba&&hc&&0<Gb&&0!==I.connectorOpacity&&1===I.connectorWidth&&I.connectorDashStyle&&
  (--Ua,0>Pb&&(gb+=1));1>Ua&&(gb+=0>Pb?1:0===Pb?0:-(1-Ua),Ua=1);b._columnWidth=vb;if(!($b=l[zb])){$b=l[zb]={index:zb,value:Pb,width:vb,graphic:null,valueBelowPlot:Ob,dataLabel:null,tracker:null};yb=0;R||(kb=gb,yb=Ua||1);rb=rc={};qb.hoverEffects&&(rb={fill:ga(qb.color),stroke:ga(qb.borderColor),"stroke-width":Gb,"stroke-dasharray":qb.dashStyle},ac=qb.rolloverProperties,rc={fill:ga(ac.color),stroke:ga(ac.borderColor),"stroke-width":ac.borderWidth,"stroke-dasharray":ac.dashStyle});wc={x:Qb,y:kb,width:vb,
  height:yb,r:mb,fill:ga(qb.color),stroke:ga(qb.borderColor),"stroke-width":Gb,"stroke-dasharray":qb.dashStyle,"stroke-linejoin":"miter",visibility:Yb};wb?wb.attr(wc):wb=$b.graphic=m.rect(wc,yc);wb.shadow(I.shadow&&qb.shadow,dd).data("BBox",tc);R&&wb.animate({y:gb,height:Ua||1},R,"normal",d.getAnimationCompleteFn());if(qc||C)!Y&&Ua<H&&(gb-=(H-Ua)/2,Ua=H),wc={x:Qb,y:gb,width:vb,height:Ua,r:mb,cursor:qc?"pointer":"",stroke:g,"stroke-width":Gb,fill:g,ishot:!0,visibility:Yb},(Lb=$b.tracker)?Lb.attr(wc):
  Lb=$b.tracker=m.rect(wc,cb);Lb=$b.tracker;(Lb||wb).data("eventArgs",lb).data("groupId",xc).click(Yc).hover(Fc(wb,rc),Sa(wb,rb)).tooltip(B)}}Ic=d.drawPlotColumnLabel(a,b,zb,Qb,gb)}Ic&&n.push(Ic);wb&&n.push(wb);Lb&&n.push(Lb);d.drawTracker&&d.drawTracker.call(d,a,b,zb)}a.visible=!1!==b.visible;return a},drawPlotColumnScroll:function(a,b,c){var d=a.data.length,f=a.items,g;g=c.vxLength;var k=La(0,pa((d-g)*c.position)-1)||0,d=qa(d,k+g+2)||d;k>d-g-2&&(k=La(0,d-g-2));c.scrollEnd=d;for(g=k;g<d;g++)if(!f[g]){c.scrollStart=
  g;this.drawPlotColumn(a,b,c);break}},drawPlotColumnLabel:function(a,b,c,d,f,g){var k=this.options,l=this.logic;d=k.chart;var n=this.paper,m=this.smartLabel,p=this.layers,k=k.plotOptions.series.dataLabels.style,q=1===d.rotateValues?270:0,s=this.canvasHeight,v=this.canvasTop,z=a.data[c];a=a.items[c];var A=d.valuePadding+2,C=a.graphic;c=a.dataLabel;var B=r(a.valueBelowPlot,0>z.y),F=l.isStacked,l=l.is3D,E=d.xDepth||0,I=d.yDepth||0,H=z.displayValue;b=!1===b.visible?"hidden":"visible";var K=d.placeValuesInside,
  L;g=g||p.datalabels;sa(H)&&H!==O&&null!==z.y?(a._state&&a._state.labelWidth||(m=m.getOriSize(H),a._state=q?{labelWidth:m.height,labelHeight:m.width}:{labelWidth:m.width,labelHeight:m.height}),C=C.data("BBox"),p=C.height,m=L=a._state.labelHeight+A,A=.5*L+A,C=C.x+.5*C.width,L=B?v+s-(f+p):f-v,F?(f=qa(v+s-.5*m,f+.5*p+(I||0)),f=La(v+.5*m,f),C-=E):K?p>=m?(f+=B?p-A:A,z._valueBelowPoint=1,l&&(C-=E,f+=I)):L>=m?(f+=B?p+A:-A,l&&B&&(C-=E,f+=I)):(f+=B?p-A:A,z._valueBelowPoint=1,l&&(C-=E,f+=I)):L>=m?(f+=B?p+A:
  -A,l&&(B?(C-=E,f+=I):C-=E/2)):(f+=B?p-A:A,z._valueBelowPoint=1,l&&(C-=E,f+=I)),c?c.attr({x:C,y:f,visibility:b}):c=a.dataLabel=n.text({text:H,"class":"fusioncharts-label",x:C,y:f,fill:k.color,"font-size":k.fontSize,direction:d.textDirection,visibility:b},g).attr({"line-height":k.lineHeight,"text-bound":[k.backgroundColor,k.borderColor,k.borderThickness,k.borderPadding,k.borderRadius,k.borderDash]}),q&&c.attr("transform","T0,0,R"+q)):c&&c.attr({text:O});return c},drawPlotFloatedcolumn:function(a,b){this.drawPlotColumn.call(this,
  a,b)},drawPlotColumn3d:function(a,b){this.drawPlotColumn.call(this,a,b)},drawPlotBar:function(a,b){var c=this,d=a.data,f=d.length,k=a.items,l=a.graphics=[],n=c.paper,m=c.logic,p=c.layers,r=c.options,q=c.elements,s=r.chart,v=!1!==(r.tooltip||{}).enabled,A,z=c.definition.chart,r=r.plotOptions.series,C=r.dataLabels.style,B={fontFamily:C.fontFamily,fontSize:C.fontSize,lineHeight:C.lineHeight,fontWeight:C.fontWeight,fontStyle:C.fontStyle},C=c.xAxis[b.xAxis||0],E=c.yAxis[b.yAxis||0],I=m.is3D,m=m.isStacked,
  L=s.canvasBorderOpacity=K.color(s.plotBorderColor).opacity,O=c.canvasBorderWidth,L=s.isCanvasBorder=0!==L&&0<O,O=isNaN(+r.animation)&&r.animation.duration||1E3*r.animation,W=b.numColumns||1,T=b.columnPosition||0,U=s.use3DLighting,V=!1===b.visible?"hidden":"visible",P=s.overlapColumns,Z=C.getAxisPosition(0),Z=C.getAxisPosition(1)-Z,Y=z&&z.plotspacepercent,z=oa(z&&z.plotpaddingpercent),ba=r.groupPadding,fa=r.maxColWidth,Y=(1-.01*Y)*Z||qa(Z*(1-2*ba),fa*W),Z=Y/2,Y=Y/W,P=qa(Y-1,1<W?P||z!==Ea?0<z?Y*z/100:
  0:4:0),W=Y-P,T=T*Y-Z+P/2,aa=E.max,$=E.min,P=E.getAxisPosition(0>aa&&0>$?aa:0<aa&&0<$?$:0),z=oa(s.useRoundEdges,0),wa=c.canvasTop,Z=c.canvasLeft,ma=c.canvasHeight,Y=c.canvasRight,t=c.chartWidth,w=c.chartHeight,J,M,e,ca,R,S,ka,la,na,sa,ba=E.axisData.effectiveZeroPlaneThickness;ka=p.dataset=p.dataset||n.group("dataset-orphan");var Aa=p.datalabels=p.datalabels||n.group("datalabels").insertAfter(ka),p=p.tracker,X,Fa,ya,za,Ja,La,fa=function(a){ta.call(this,c,a)},Na=function(a,b){return function(d){a.attr(b);
  ta.call(this,c,d,"DataPlotRollOver")}},Ia=function(a,b){return function(d){a.attr(b);ta.call(this,c,d,"DataPlotRollOut")}},Ga;c.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",B);Aa.attr("class","fusioncharts-datalabels");O&&(c.animationCompleteQueue.push({fn:function(){Aa.attr({transform:"...t"+-t+","+-w})},scope:c}),Aa.attr({transform:"...t"+t+","+w}));m&&(Ja=ka.shadows||(ka.shadows=n.group("shadows",ka).toBack()));la=ka.column=ka.column||n.group("bars",ka);if(I)for(J=s.xDepth||
  0,M=s.yDepth||0,B=la.negative=la.negative||n.group("negative-values",la),ka=la.column=la.column||n.group("positive-values",la),ya=la.zeroPlane,!ya&&0>$&&0<=aa&&(ya=la.zeroPlane=n.group("zero-plane",la).insertBefore(ka),sa=s.zeroPlaneColor,aa=s.zeroPlaneBorderColor,$=s.zeroPlaneShowBorder,q.zeroplane=n.cubepath(P-J,wa+M,1,ma,J,M,ya).attr({fill:[sa,!U],stroke:aa||"none","stroke-width":$?1:0})),(ya=B.data("categoryplots"))||(B.data("categoryplots",Array(f)),ya=B.data("categoryplots")),(sa=ka.data("categoryplots"))||
  (ka.data("categoryplots",Array(f)),sa=ka.data("categoryplots")),q=0;q<f;q+=1)ya[q]=ya[q]||n.group(B),sa[q]=sa[q]||n.group(ka);else la.attrs["clip-rect"]||la.attr({"clip-rect":q["clip-canvas"]}),za=la;q=0;for(B=f-1;q<f;q+=1,--B){wa=d[q];$=wa.y;X=ma=null;if(null===$){if(S=k[q])X=S.graphic,I||X.attr({width:0})}else{la=oa(wa.x,q);ka=wa.link;A=wa.toolText;aa=F(wa.borderWidth)||0;la=C.getAxisPosition(la)+T;S=(e=wa.previousY)?E.getAxisPosition(e):P;na=E.getAxisPosition($+(e||0));e=Ya(na-S);0<$&&(na=S);Fa=
  {index:q,link:ka,value:wa.y,displayValue:wa.displayValue,categoryLabel:wa.categoryLabel,toolText:wa.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible};if(I){za=0>$?ya:sa;(S=k[q])||(S=k[q]={index:q,value:$,graphic:n.cubepath(za[B]),dataLabel:null,tracker:null});X=S.graphic;R=ca={};wa.hoverEffects&&(R={fill:[ga(wa.color),!U],stroke:aa&&ga(wa.borderColor)||"NONE","stroke-width":aa},ca=wa.rolloverProperties,ca={fill:[ga(ca.color),!U],stroke:ca.borderWidth&&ga(ca.borderColor)||
  "NONE","stroke-width":ca.borderWidth});X.attr({cubepath:[O?P-J:na-J,la+M,O?0:e,W,J,M],fill:[ga(wa.color),!U],stroke:aa&&ga(wa.borderColor)||"NONE","stroke-width":aa,"stroke-dasharray":wa.dashStyle,cursor:ka?"pointer":"",visibility:V}).shadow(r.shadow&&wa.shadow,Ja).data("BBox",{height:W,width:e,x:na,y:la});O&&X.animate({cubepath:[na-J,la+M,e,W,J,M]},O,"normal",c.getAnimationCompleteFn());if(ka||v)!m&&e<H&&(na-=(H-e)/2,e=H),S.tracker||(S.tracker=n.cubepath(p)),ma=S.tracker,ma.attr({cubepath:[na-J,
  la+M,e,W,J,M],cursor:ka?"pointer":"",stroke:aa&&g||"NONE","stroke-width":aa,fill:g,ishot:!0});(ma||X).data("eventArgs",Fa).click(fa).hover(Na(X,ca),Ia(X,R)).tooltip(A);(ma||X)._.cubetop.data("eventArgs",Fa).click(fa).hover(Na(X,ca),Ia(X,R));(ma||X)._.cubeside.data("eventArgs",Fa).click(fa).hover(Na(X,ca),Ia(X,R));if(!m||m&&0>$)X.toBack(),ma&&ma.toBack()}else{Q(na)<=Z&&(e+=na,na=Z+aa/2+.2,s.xAxisLineVisible&&!L&&--na,e-=na);pa(na+e)>=Y&&(e=Y-na-aa/2-.2);La=K.crispBound(na,la,e,W,aa);na=La.x;la=La.y;
  e=La.width;Ga=La.height;1>=e&&(e=1,na+=0>$?-e:0===$?0:1<ba?e:0);(S=k[q])||(S=k[q]={index:q,value:$,height:Ga,graphic:null,dataLabel:null,tracker:null});X=S.graphic;R=ca={};wa.hoverEffects&&(R={fill:ga(wa.color),stroke:ga(wa.borderColor),"stroke-width":aa,"stroke-dasharray":wa.dashStyle},ca=wa.rolloverProperties,ca={fill:ga(ca.color),stroke:ga(ca.borderColor),"stroke-width":ca.borderWidth,"stroke-dasharray":ca.dashStyle});$={x:O?P:na,y:la,width:O?0:e||1,height:Ga,r:z,fill:ga(wa.color),stroke:ga(wa.borderColor),
  "stroke-width":aa,"stroke-dasharray":wa.dashStyle,"stroke-linejoin":"miter",cursor:ka?"pointer":"",visibility:V};X?X.attr($):X=S.graphic=n.rect($,za);X.shadow(r.shadow&&wa.shadow,Ja).data("BBox",La);O&&X.animate({x:na,width:e||1},O,"normal",c.getAnimationCompleteFn());if(ka||v)!m&&e<H&&(na-=(H-e)/2,e=H),ma=S.tracker,$={x:na,y:la,width:e,height:W,r:z,cursor:ka?"pointer":"",stroke:g,"stroke-width":aa,fill:g,ishot:!0},ma?ma.attr($):ma=S.tracker=n.rect($,p),ma.data("eventArgs",Fa);(ma||X).data("eventArgs",
  Fa).click(fa).hover(Na(X,ca),Ia(X,R)).tooltip(A)}A=c.drawPlotBarLabel(a,b,q,na,la)}A&&l.push(A);X&&l.push(X);ma&&l.push(ma);c.drawTracker&&c.drawTracker.call(c,a,b,q)}a.visible=!1!==b.visible;return a},drawPlotBarLabel:function(a,b,c,d,f,g){var k=this.options,l=this.logic,n=k.chart,m=this.paper,p=this.layers,r=k.plotOptions.series.dataLabels.style,k=this.canvasLeft,q=this.canvasWidth,s=a.data[c],v=a.items[c];a=n.valuePadding+2;var z=v.graphic;c=v.dataLabel;var A=0>s.y,C=l.isStacked,l=l.is3D,B=n.xDepth||
  0,F=n.yDepth||0,E=s.displayValue;b=!1===b.visible?"hidden":"visible";var I=n.placeValuesInside;g=g||p.datalabels;if(sa(E)&&E!==O&&null!==s.y){c||(c=v.dataLabel=m.text({"class":"fusioncharts-label",text:E,"font-size":r.fontSize,title:s.originalText||"",fill:r.color,direction:n.textDirection,x:0,y:0,"line-height":r.lineHeight},g).attr("text-bound",[r.backgroundColor,r.borderColor,r.borderThickness,r.borderPadding,r.borderRadius,r.borderDash]));p=c.getBBox();g=z.data("BBox");r=g.height;m=g.width;g=C?
  "middle":A?I?"start":"end":I?"end":"start";n=A?d-k:k+q-(d+m);p=p.width;p+=a;r=f+.5*r;s=d+(A?0:m);f=A?d-k:k+q-(d+m);if(C)s=La(k+.5*p,s+.5*(A?m:-m)),s=qa(k+q-.5*p,s),s-=l?B:0,r+=l?F:0;else if(I?m>=p?(s+=A?a:-a,l&&(r+=F,s-=B)):p<n?(s+=A?-a:a,g=A?"end":"start",l&&A&&(s-=B)):(A?(s=d+m+La(p-d-m+k,0)-a,g="end",s-=l?B:0):(s=d-La(p-(k+q-d),0)+a,g="start"),l&&(s-=B,r+=F)):f>=p?(s+=A?-a:a,l&&A&&(s-=B,r+=B)):(s+=A?a+p:-(a+p),l&&(s-=B,r+=F)),s>k+q||s<k)s=k+4,g="start";c.attr({x:s,y:r,"text-anchor":g,visibility:b})}else c&&
  c.attr({text:O});return c},drawPlotBar3d:function(a,b){this.drawPlotBar.call(this,a,b)},drawPlotLine:function(b,c){var d=this,f=d.paper,k=d.elements,l=d.options,n=l.chart,m=d.logic,p=l.plotOptions.series,r=b.items,q=b.graphics=b.graphics||[],s,v=d.xAxis[c.xAxis||0],A=d.yAxis[c.yAxis||0],z=m.multisetRealtime||m.dragExtended,C=m.isWaterfall,B,E,I,H,L,Q=0,O=!1!==(l.tooltip||{}).enabled,W,T=isNaN(+p.animation)&&p.animation.duration||1E3*p.animation,U,P=p.dataLabels.style,V={fontFamily:P.fontFamily,fontSize:P.fontSize,
  lineHeight:P.lineHeight,fontWeight:P.fontWeight,fontStyle:P.fontStyle},Z=n.xDepth||0,Y=n.yDepth||0,$=n.series2D3Dshift,aa=c.step,ba=c.drawVerticalJoins,ma=c.useForwardSteps,la=b.data,t=!1===c.visible?"hidden":"visible",w,J=la.length,M=v.getAxisPosition(0),e=v.getAxisPosition(1)-M,ca=e*J,R=v.axisData.scroll||{},S=n.hasScroll||!1,ka,na=p.connectNullData,pa=d.chartWidth,sa=d.chartHeight,ya=function(){hc.attr({"clip-rect":null});Pb.show();Bc.show();Qb.show();Fb.attr({transform:"...t"+-pa+","+-sa})},X,
  Fa,za,Aa,Ea,Ja,Na,Ia=null,Ga,Ma,Ta=p.connectorWidth=F(c.lineWidth),ob=c.color,Va,Oa,Wa=p.connectorDashStyle=c.dashStyle,ab,Ya,kb,mb,hb,Za,cb,ib,jb,sb=d.layers,yb=sb.dataset=sb.dataset||f.group("dataset-orphan"),Fb=sb.datalabels=sb.datalabels||f.group("datalabels").insertAfter(yb),xc=sb.tracker,Rb=k["clip-canvas-init"].slice(0),Sb=k["clip-canvas"].slice(0),Hc=A.axisData.reversed,bc=A.max,cc=A.min,Pc=A.getAxisPosition(0<bc&&0<cc?Hc?bc:cc:0>bc&&0>cc?Hc?cc:bc:Hc?bc:0)+($?Y:0),Ob=[],$b=n.anchorTrackingRadius,
  zb=/drag/ig.test(d.logic.rendererId),qb,qc,Gb,Bc,Pb,hc,Qb,gb,Cc,Ic,Ua,vb,ac=[],rb=function(a){ta.call(this,d,a)},rc=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOver",a,d)}},Qc=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOut",a,d)}},wb=function(a,e,k,l,n,m,p,r){return function(){var s=k.imageUrl,w=k.imageScale,v=k.imageAlpha,A=p.imageHoverAlpha,z=p.imageHoverScale,C=this.height*w*.01,B=this.width*w*.01,F=this.width*z*.01;cb={x:a-this.width*w*.005,y:e-
  this.height*w*.005,width:B,height:C,alpha:v};ib={x:a-this.width*z*.005,y:e-this.height*z*.005,width:F,height:this.height*z*.01,alpha:A};A=F>B?ib:cb;zb&&(A={cx:a,cy:e,r:.5*La(C,B)});(l.graphic=mb=f.image(s,Qb).attr(cb).css({opacity:.01*v}).data("alwaysInvisible",!w).data("setRolloverProperties",p).data("setRolloverAttr",ib).data("setRolloutAttr",cb).data("anchorRadius",w).data("anchorHoverRadius",z))&&q.push(mb);if(Fa||O||p)hb=l.tracker=(zb?f.circle(xc):f.rect(xc)).attr(A).attr({cursor:Fa?"pointer":
  "",stroke:g,"stroke-width":k.lineWidth,fill:g,ishot:!0,visibility:t}).data("eventArgs",n).data("groupId",qb).click(rb).hover(rc(l),Qc(l)).tooltip(m);d.drawTracker&&d.drawTracker.call(d,b,c,r);(Ua=l.dataLabel=d.drawPlotLineLabel(b,c,r,a,e))&&q.push(Ua)}},Lb=function(a,e,f,g,k,l,n,m){return function(){(Ua=g.dataLabel=d.drawPlotLineLabel(b,c,m,a,e))&&q.push(Ua)}};d.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",V);Fb.attr("class","fusioncharts-datalabels");p.connectorOpacity=K.color(ob).opacity;
  A.yBasePos=Pc;C&&(B=(E=d.definition.chart)&&E.plotspacepercent,I=p.groupPadding,H=p.maxColWidth,L=(1-.01*B)*e||qa(e*(1-2*I),1*H),Q=L/2);Fb.attr({transform:"...t"+pa+","+sa});T&&d.animationCompleteQueue.push({fn:ya,scope:d});Gb=yb.line||(yb.line=f.group("line-connector",yb));Bc=b.lineShadowLayer||(b.lineShadowLayer=f.group("connector-shadow",Gb));Pb=b.anchorShadowLayer||(b.anchorShadowLayer=f.group("anchor-shadow",Gb));hc=b.lineLayer||(b.lineLayer=f.group("connector",Gb));Qb=b.anchorLayer||(b.anchorLayer=
  f.group("anchors",Gb));Qb.hide();Bc.hide();Pb.hide();for(w=0;w<J;w+=1){X=la[w];Ea=X.y;Ja=X.previousY||0;W=X.toolText;qb=b.index+"_"+w;jb=Ua=mb=hb=null;s=r[w]={index:w,value:null,graphic:null,connector:null,dataLabel:null,shadowGroup:Pb,tracker:null};if(null===Ea)ac.length=0,0===na&&(Ia=null);else{Aa=oa(X.x,w);Fa=X.link;"boxandwhisker"===c.relatedSeries&&c.pointStart&&(Aa+=c.pointStart);Ma=A.getAxisPosition(Ea+Ja)+($?Y:0);Ga=v.getAxisPosition(Aa)-Z;Ga=fa(Ga,Ta,Ta).position;Ma=fa(Ma,Ta,Ta).position;
  if((ab=X.marker)&&ab.enabled)if(Ya=ab.symbol.split("_"),kb="spoke"===Ya[0]?1:0,za=ab.radius,gb=ab.shadow,qc={index:w,link:Fa,value:X.y,displayValue:X.displayValue,categoryLabel:X.categoryLabel,toolText:X.toolText,id:b.userID,datasetIndex:b.index,datasetName:b.name,visible:b.visible},cb=ib={},Za=X.rolloverProperties,ab.imageUrl)vb=new a,vb.onload=wb(Ga,Ma,ab,s,qc,W,Za,w),vb.onerror=Lb(Ga,Ma,ab,s,qc,W,Za,w),vb.src=ab.imageUrl;else{Za&&(cb={polypath:[Ya[1]||2,Ga,Ma,za,ab.startAngle,kb],fill:ga(ab.fillColor),
  "stroke-width":ab.lineWidth,stroke:ga(ab.lineColor)},ib={polypath:[Za.sides||2,Ga,Ma,Za.radius,Za.startAngle,Za.dip],fill:ga(Za.fillColor),"stroke-width":Za.lineWidth,stroke:ga(Za.lineColor)});mb=s.graphic=f.polypath(Ya[1]||2,Ga,Ma,za,ab.startAngle,kb,Qb).attr({fill:ga(ab.fillColor),"stroke-width":ab.lineWidth,stroke:ga(ab.lineColor),cursor:Fa?"pointer":"",visibility:za?t:"hidden"}).data("alwaysInvisible",!za).data("setRolloverProperties",Za).data("setRolloverAttr",ib).data("setRolloutAttr",cb).data("anchorRadius",
  za).data("anchorHoverRadius",Za&&Za.radius).shadow(gb||!1,Pb);if(Fa||O||Za)za=La(za,Za&&Za.radius||0,$b),hb=s.tracker=f.circle({cx:Ga,cy:Ma,r:za,cursor:Fa?"pointer":"",stroke:g,"stroke-width":ab.lineWidth,fill:g,ishot:!0,visibility:t},xc);(hb||mb).data("eventArgs",qc).data("groupId",qb).click(rb).hover(rc(s),Qc(s)).tooltip(W);d.drawTracker&&d.drawTracker.call(d,b,c,w)}Cc=Ic!==[ga(X.color||ob),X.dashStyle||Wa].join(":");if(null!==Ia){if(ac.length&&(Ob=Ob.concat(ac),ac.length=0),(z||C||!Ob.join(""))&&
  Ob.push("M",Na,Ia),C&&Ob.push("m",-Q,0),aa?ma?(Ob.push("H",Ga),C&&Ob.push("h",Q),ba?Ob.push("V",Ma):Ob.push("m",0,Ma-Ia)):(ba&&Ob.push("V",Ma),Ob.push("M",Na,Ma,"H",Ga)):Ob.push("L",Ga,Ma),z||Cc)jb=s.connector=f.path(Ob,hc).attr({"stroke-dasharray":Oa,"stroke-width":Ta,stroke:Va,"stroke-linecap":"round","stroke-linejoin":2<Ta?"round":"miter",visibility:t}).shadow(p.shadow&&X.shadow,Bc),Ob=[]}else!z&&ac.push("M",Ga,Ma);ab&&ab.imageUrl||(Ua=s.dataLabel=d.drawPlotLineLabel(b,c,w,Ga,Ma));Na=Ga;Ia=Ma;
  Va=ga(X.color||ob);Oa=X.dashStyle||Wa;Ic=[Va,Oa].join(":")}Ua&&q.push(Ua);mb&&q.push(mb);jb&&q.push(jb);hb&&q.push(hb)}!z&&Ob.join("")&&(jb=f.path(Ob,hc).attr({"stroke-dasharray":Oa,"stroke-width":Ta,stroke:Va,"stroke-linecap":"round","stroke-linejoin":2<Ta?"round":"miter",visibility:t}).shadow(p.shadow&&X.shadow,Bc))&&q.push(jb);S&&(ka=R.startPercent,Sb[2]=ca+Rb[0],1===ka&&(Rb[0]=Sb[2],Sb[0]=0));T?(U=K.animation({"clip-rect":Sb},T,S?"easeIn":"normal",d.getAnimationCompleteFn()),hc.attr({"clip-rect":Rb}).animate(C?
  U.delay(T):U)):(ya&&ya(),ya=void 0);b.visible=!1!==c.visible;return b},hoverPlotAnchor:function(a,b,c,d,f){var g=d.graphic;d=d.dataLabel;var k=f.options.chart,l=1===k.rotateValues?270:0,n=g.data("setRolloverProperties"),m=g.data("isRealtime"),p=m&&g.attr("polypath"),r=g.data("setRolloverAttr"),q="image"===g.type,s=g.data("setRolloutAttr"),v=d&&(d.data("isBelow")?1:-1)*(q?.5*(r.height-s.height):g.data("anchorHoverRadius")-g.data("anchorRadius")),A="DataPlotRollOver"==c?r:s,z={transform:"T0,"+("DataPlotRollOver"===
  c?v:0)+"R"+l},C={fill:A.fill,"stroke-width":A["stroke-width"],stroke:A.stroke},A=q?A:{polypath:A.polypath},k=k.syncLabelWithAnchor,B=g.data("anchorRadius"),F=g.data("anchorHoverRadius"),r=!(/,0\)$/.test(r.fill)&&/,0\)$/.test(s.fill))&&g.data("anchorHoverRadius")-g.data("anchorRadius")&&n.animation&&50;d&&d.data("isMiddle")&&(z={transform:"T,"+("DataPlotRollOver"===c?v:0)+",0R"+l});n&&(("DataPlotRollOver"==c&&0!==F||"DataPlotRollOut"==c&&0!==B)&&g.attr({visibility:"visible"}),q?g.css({opacity:.01*
  A.alpha}):g.attr(C),m&&!q&&(A.polypath[1]=p[1],A.polypath[2]=p[2]),g.stop(),g.animate(A,r,"easeOut",function(){("DataPlotRollOver"==c&&!F||"DataPlotRollOut"==c&&!B)&&g.attr({visibility:"hidden"})}),d&&d.stop(),r&&k&&d&&d.animate(z,r,"easeOut"));ta.call(a,f,b,c)},drawPlotArea:function(b,c){var d=this,f=d.paper,k=d.options,n=k.chart,m=d.logic,p=k.plotOptions.series,r=d.elements,q=b.items,s=b.graphics=b.graphics||[],v,A=d.xAxis[c.xAxis||0],z=d.yAxis[c.yAxis||0],C=z.axisData.reversed,B=n.xDepth||0,F=
  n.yDepth||0,m=m.isStacked,E=!1!==(k.tooltip||{}).enabled,I,H,k=p.dataLabels.style,K={fontFamily:k.fontFamily,fontSize:k.fontSize,lineHeight:k.lineHeight,fontWeight:k.fontWeight,fontStyle:k.fontStyle,color:k.color},k=isNaN(+p.animation)&&p.animation.duration||1E3*p.animation,L=n.series2D3Dshift,Q="0"===d.definition.chart.drawfullareaborder,O=b.data,W=!1===c.visible?"hidden":"visible",T=O.length,P=A.getAxisPosition(0),U=(A.getAxisPosition(1)-P)*T,V=A.axisData.scroll||{},P=n.hasScroll||!1,Z=p.connectNullData,
  Y,$,aa,ba,fa,t=z.max,w=z.min,J=z.getAxisPosition(0<t&&0>w?0:!C&&0<t&&0<=w?w:t)+(L?F:0),M=d.chartWidth,e=d.chartHeight,C=function(){Wa.attr({"clip-rect":null});ab.show();Oa.show();Ma.attr({transform:"...t"+-M+","+-e})},ca=null,R,S,t=c.lineWidth,w=c.dashStyle,ka=ga(c.fillColor),ma=ga(c.lineColor),la=0,na=/drag/ig.test(d.logic.rendererId),qa,X,pa,sa,ya,za,Aa=[],Ea=[],Ga=null,Ja=[],Ia=d.layers;ba=Ia.dataset=Ia.dataset||f.group("dataset-orphan");var Ma=Ia.datalabels=Ia.datalabels||f.group("datalabels").insertAfter(ba),
  Na=Ia.tracker,Ia=r["clip-canvas-init"].slice(0),r=r["clip-canvas"].slice(0),n=n.anchorTrackingRadius,Va,Oa,Ta,ab,Wa,Ya,mb,hb,Za,cb,ib=function(a){ta.call(this,d,a)},jb=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOver",a,d)}},kb=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOut",a,d)}},Ga=function(a,e,k,n,m,p,r,q){return function(){var t=k.imageUrl,v=k.imageScale,w=k.imageAlpha,A=r.imageHoverAlpha,z=r.imageHoverScale,C=this.width*v*.01,B=this.width*z*
  .01;ya={x:a-this.width*v*.005,y:e-this.height*v*.005,width:C,height:this.height*v*.01,alpha:w};za={x:a-this.width*z*.005,y:e-this.height*z*.005,width:B,height:this.height*z*.01,alpha:A};A=B>C?za:ya;na&&(A={cx:a,cy:e,r:.5*La(B,C)});(n.graphic=X=f.image(t,ab).attr(ya).css({opacity:.01*w}).data("alwaysInvisible",!v).data("setRolloverProperties",r).data("setRolloverAttr",za).data("setRolloutAttr",ya).data("anchorRadius",v).data("anchorHoverRadius",z))&&s.push(X);if($||E||r)Va=l({cursor:$?"pointer":"",
  stroke:g,"stroke-width":k.lineWidth,fill:g,ishot:!0,visibility:W},A),pa=n.tracker=(na?f.circle(Va,Na):f.rect(Va,Na)).data("eventArgs",m).click(ib).hover(jb(n),kb(n)).tooltip(p),d.drawTracker&&d.drawTracker.call(d,b,c,q);(cb=n.dataLabel=d.drawPlotLineLabel(b,c,q,a,e))&&s.push(cb)}},sb=function(a,e,f,g,k,l,n,m){return function(){(cb=g.dataLabel=d.drawPlotLineLabel(b,c,m,a,e))&&s.push(cb)}};d.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",K);Ma.attr("class","fusioncharts-datalabels");
  z.yBasePos=J;Ma.attr({transform:"...t"+M+","+e});k&&d.animationCompleteQueue.push({fn:C,scope:d});K=ba;m&&(Ya=K.shadows||(K.shadows=f.group("shadows",K).toBack()));Wa=K.area=K.area||f.group("area",K);K=K.areaConnector||(K.areaConnector=f.group("area-connector",K));b.lineShadowLayer||(b.lineShadowLayer=f.group("connector-shadow",K));Oa=b.anchorShadowLayer||(b.anchorShadowLayer=f.group("anchor-shadow",K));Ta=b.lineLayer||(b.lineLayer=f.group("connector",K));ab=b.anchorLayer||(b.anchorLayer=f.group("anchors",
  K));ab.hide();Oa.hide();K=ba;for(K=0;K<T;K+=1){Y=O[K];ba=Y.y;v=oa(Y.x,K);R=A.getAxisPosition(v)-B;X=cb=pa=null;v=q[K]={};if(null===ba)0===Z&&(ca=null,0<la&&(1===la?Aa.splice(-8,8):(Aa=Aa.concat(Ea),Aa.push("Z")),Ea=[])),v.chart=d,v.index=K,v.value=ba;else{$=Y.link;I=Y.toolText;H=Y.previousY;fa=(fa=z.getAxisPosition(H)||null)||J;S=z.getAxisPosition(ba+(H||0))+(L?F:0);if((Za=Y.marker)&&Za.enabled)if(H={index:K,link:$,value:Y.y,displayValue:Y.displayValue,categoryLabel:Y.categoryLabel,toolText:Y.toolText,
  id:b.userID,datasetIndex:b.index,datasetName:b.name,visible:b.visible},ya=za={},sa=Y.rolloverProperties,Za.imageUrl)aa=new a,aa.onload=Ga(R,S,Za,v,H,I,sa,K),aa.onerror=sb(R,S,Za,v,H,I,sa,K),aa.src=Za.imageUrl;else{qa=Za.symbol.split("_");aa=Za.radius;hb=Za.shadow;sa&&(ya={polypath:[qa[1]||2,R,S,aa,Za.startAngle,0],fill:ga(Za.fillColor),"stroke-width":Za.lineWidth,stroke:ga(Za.lineColor)},sa=Y.rolloverProperties,za={polypath:[sa.sides||2,R,S,sa.radius,sa.startAngle,sa.dip],fill:ga(sa.fillColor),"stroke-width":sa.lineWidth,
  stroke:ga(sa.lineColor)});X=v.graphic=f.polypath(qa[1]||2,R,S,aa,Za.startAngle,0,ab).attr({fill:ga(Za.fillColor),"stroke-width":Za.lineWidth,stroke:ga(Za.lineColor),cursor:$?"pointer":"",visibility:aa?W:"hidden"}).data("alwaysInvisible",!aa).data("setRolloverProperties",sa).data("setRolloverAttr",za).data("setRolloutAttr",ya).data("anchorRadius",aa).data("anchorHoverRadius",sa&&sa.radius).shadow(hb||!1,Oa);if($||E||sa)m||(aa=La(aa,sa&&sa.radius||0,n)),pa=v.tracker=f.circle({cx:R,cy:S,r:aa,cursor:$?
  "pointer":"",stroke:g,"stroke-width":Za.lineWidth,fill:g,ishot:!0,visibility:W},Na);(pa||X).data("eventArgs",H).click(ib).hover(jb(v),kb(v)).tooltip(I);d.drawTracker&&d.drawTracker.call(d,b,c,K)}null===ca?(Ja.push("M",R,",",S),Aa.push("M",R,",",fa),la=0):Ja.push("L",R,",",S);Aa.push("L",R,",",S);Ea.unshift("L",R,",",fa);la++;ca=S;Za&&Za.imageUrl||(cb=v.dataLabel=d.drawPlotLineLabel(b,c,K,R,S));v.chart=d;v.index=K;v.value=ba;v.dataLabel=cb}cb&&s.push(cb);X&&s.push(X);pa&&s.push(pa)}0<la&&(1===la?Aa.splice(-8,
  8):(Aa=Aa.concat(Ea),Aa.push("Z")));(Ga=b.graphic=f.path(Aa,Wa).attr({fill:ka,"stroke-dasharray":w,"stroke-width":Q?0:t,stroke:ma,"stroke-linecap":"round","stroke-linejoin":2<t?"round":"miter",visibility:W}).shadow(p.shadow&&Y.shadow,Ya))&&s.push(Ga);P&&(p=V.startPercent,r[2]=U+Ia[0],1===p&&(Ia[0]=r[2],r[0]=0));k?mb=Wa.attr({"clip-rect":Ia}).animate({"clip-rect":r},k,P?"easeIn":"normal",d.getAnimationCompleteFn()):(C&&C(),C=void 0);Ya&&(k?Ya.attr({"clip-rect":Ia}).animateWith(Wa,mb,{"clip-rect":r},
  k,P?"easeIn":"normal",function(){Ya.attr({"clip-rect":null})}):Ya.attr({"clip-rect":null}));Q&&(p=b.connector=f.path(Ja,Ta).attr({"stroke-dasharray":w,"stroke-width":t,stroke:ma,"stroke-linecap":"round","stroke-linejoin":2<t?"round":"miter",visibility:W}),k?Ta.attr({"clip-rect":Ia}).animateWith(Wa,mb,{"clip-rect":r},k,P?"easeIn":"normal",function(){Ta.attr({"clip-rect":null})}):Ta.attr({"clip-rect":null}),p&&s.push(p));b.visible=!1!==c.visible;return b},drawPlotScatter:function(a,b){var c=this,d=
  c.options,f=d.chart,k=d.plotOptions.series,l=c.paper,n=c.elements,m=a.items,p,r=a.graphics=a.graphics||[],q=c.xAxis[b.xAxis||0],s=c.yAxis[b.yAxis||0],v=a.data,A=!1===b.visible?"hidden":"visible",d=!1!==(d.tooltip||{}).enabled,z,C=k.dataLabels.style,B={fontFamily:C.fontFamily,fontSize:C.fontSize,lineHeight:C.lineHeight,fontWeight:C.fontWeight,fontStyle:C.fontStyle,color:C.color},C=isNaN(+k.animation)&&k.animation.duration||1E3*k.animation,F=c.chartWidth,E=c.chartHeight,I,H,K,L,Q,O,P,W,T,U=b.lineWidth,
  V=0<U,Y=b.color,Z=b.dashStyle,aa=k.connectNullData,$=[],t,w,J,M,e,ca,R=c.layers,S=R.dataset||(R.dataset=l.group("dataset-orphan")),ba=R.datalabels||(R.datalabels=l.group("datalabels").insertAfter(S)),R=R.tracker,f=f.anchorTrackingRadius,fa,la,ma,oa=function(a){ta.call(this,c,a)},X=function(a){return function(b){c.hoverPlotAnchor(this,b,"DataPlotRollOver",a,c)}},na=function(a){return function(b){c.hoverPlotAnchor(this,b,"DataPlotRollOut",a,c)}};c.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",
  B);ba.attr("class","fusioncharts-datalabels");C&&(c.animationCompleteQueue.push({fn:function(){ba.attr({transform:"...t"+-F+","+-E})},scope:c}),ba.attr({transform:"...t"+F+","+E}));fa=S.line||(S.line=l.group("line-connector",S));a.lineShadowLayer=l.group("connector-shadow",fa);S=a.anchorShadowLayer=l.group("anchor-shadow",fa);B=a.lineLayer=l.group("connector",fa);fa=a.anchorLayer=l.group("anchors",fa);I=0;for(H=v.length;I<H;I+=1){K=v[I];t=K.marker;W=T=M=z=e=null;ma=a.index+"_"+I;O=K.y;Q=K.x;if(null!==
  O&&null!==Q){if(t&&t.enabled){L=K.link;z=K.toolText;J=t.radius;la=t.shadow;T=s.getAxisPosition(O);W=q.getAxisPosition(Q);w={index:I,link:L,y:K.y,x:K.x,displayValue:K.displayValue,categoryLabel:K.categoryLabel,toolText:K.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible};M=t.symbol.split("_");p=m[I]={index:I,x:Q,y:O,value:O};Q=O={};K.hoverEffects&&(Q={polypath:[M[1]||2,W,T,J,t.startAngle,0],fill:ga(t.fillColor),"stroke-width":t.lineWidth,stroke:ga(t.lineColor)},ca=K.rolloverProperties,
  O={polypath:[ca.sides||2,W,T,ca.radius,ca.startAngle,ca.dip],fill:ga(ca.fillColor),"stroke-width":ca.lineWidth,stroke:ga(ca.lineColor)});M=p.graphic=l.polypath(M[1]||2,W,T,J,t.startAngle,0,fa).attr({fill:ga(t.fillColor),"stroke-width":t.lineWidth,stroke:ga(t.lineColor),cursor:L?"pointer":"",visibility:J?A:"hidden"}).data("alwaysInvisible",!J).data("setRolloverProperties",ca).data("setRolloverAttr",O).data("setRolloutAttr",Q).data("anchorRadius",J).data("anchorHoverRadius",ca&&ca.radius).shadow(la||
  !1,S);if(L||d||ca)J=La(J,ca&&ca.radius||0,f),e=p.tracker=l.circle({cx:W,cy:T,r:J,cursor:L?"pointer":"",stroke:g,"stroke-width":t.lineWidth,fill:g,ishot:!0,visibility:A},R);(e||M).data("eventArgs",w).data("groupId",ma).click(oa).hover(X(p),na(p)).tooltip(z)}V&&((void 0===P||null===P&&0===aa)&&W&&T&&$.push("M",W,",",T),W&&T&&$.push("L",W,",",T),P=T);z=p.dataLabel=c.drawPlotLineLabel(a,b,I,W,T)}else V&&0===aa&&(P=null),m[I]={chart:c,index:I,x:Q,y:O};z&&r.push(z);M&&r.push(M);e&&r.push(e);c.drawTracker&&
  c.drawTracker.call(c,a,b,I)}$.length&&(k=a.graphic=l.path($,B).attr({"stroke-dasharray":Z,"stroke-width":U,stroke:Y,"stroke-linecap":"round","stroke-linejoin":2<U?"round":"miter",visibility:A}).shadow(k.shadow&&K.shadow),B.attr({"clip-rect":n[C?"clip-canvas-init":"clip-canvas"]}),C&&B.animate({"clip-rect":n["clip-canvas"]},C,"normal"),r.push(k));C&&fa.attr({opacity:0}).animate({opacity:1},C,"normal",c.getAnimationCompleteFn());a.visible=!1!==b.visible;return a},drawPlotLineLabel:function(a,b,c,d,
  f,g){var l=this.options,n=l.chart,m=this.paper,p=this.layers,r=l.plotOptions.series.dataLabels.style,l=1===n.rotateValues?270:0,q=this.canvasHeight,s=this.canvasTop,v=a.data,A=v[c],z=a.items[c],C=k(A.valuePosition,"auto").toLowerCase();a=this.logic.defaultSeriesType;var B=z.graphic,F=A.marker,B=F&&F.enabled?B&&"image"==B.type&&.5*B.attr("height")||F&&F.radius-3:0,B=n.valuePadding+2+B;b=!1===b.visible?"hidden":"visible";F=z.dataLabel;g=g||p.datalabels;switch(C){case "above":c=0;break;case "below":c=
  1;break;default:p=v[c-1]||{},v=v[c+1]||{},c=c?p.y>A.y?1:(null==p.y&&v.y)>A.y?1:0:0}p=A.displayValue;sa(p)&&p!==O?(F?l&&F.attr("transform",["r",360-l]):F=z.dataLabel=m.text(g).attr({"class":"fusioncharts-label",text:p,fill:r.color,"text-bound":[r.backgroundColor,r.borderColor,r.borderThickness,r.borderPadding,r.borderRadius,r.borderDash],direction:n.textDirection,"font-weight":r.fontWeight,"font-style":r.fontStyle,"font-family":r.fontFamily,"font-size":r.fontSize,"line-height":r.lineHeight}),F.attr({title:A.originalText||
  "",fill:r.color}),z._state&&z._state.labelWidth||(g=F.getBBox(),z._state={labelWidth:g.width,labelHeight:g.height}),n=m=l?z._state.labelWidth:z._state.labelHeight,g=f-s,q=s+q-f,n=n+B+4,s=.5*m+B,/bubble/i.test(a)||(c?q>n?(f+=s,A._valueBelowPoint=1):g>n&&(f-=s,A._valueBelowPoint=0):g>n?(f-=s,A._valueBelowPoint=0):q>n&&(f+=s,A._valueBelowPoint=1)),F.attr({x:d,y:f,visibility:b}).data("isBelow",A._valueBelowPoint),l&&F.attr("transform","T0,0,R"+l)):F&&F.attr({text:O});return F},drawLabels:function(){for(var a=
  this.paper,b=this.options,c=b.labels&&b.labels.items&&b.labels.items,d=c&&c.length,f=this.layers.layerAboveDataset,g=this.elements.quadran||(this.elements.quadran=[]),k=this.canvasTop,l=this.canvasLeft,b=b.chart.textDirection,n={right:"end",left:"start",undefined:"start"},m,p,r;d--;)r=c[d],m=r.style,p={fontFamily:m.fontFamily,fontSize:m.fontSize,lineHeight:m.lineHeight,fontWeight:m.fontWeight,fontStyle:m.fontStyle,fill:m.color},sa(r.html)&&r.html!==O&&(g[d]=a.text({text:r.html},f).css(p).attr({x:parseInt(m.left,
  10)+l,y:parseInt(m.top,10)+k,"text-anchor":n[r.textAlign],"vertical-align":r.vAlign,direction:b,"text-bound":[m.backgroundColor,m.borderColor,m.borderThickness,m.borderPadding,m.borderRadius,m.borderDash]}))}},I["renderer.root"]);I("renderer.piebase",{isHovered:!1,getPlotData:function(a,b){var c=this.datasets[0],d=c.data[a],c=c.userData||(c.userData=[]),f,g;if(c[a])c=c[a];else{c=c[a]={};for(g in d)"object"!==typeof(f=d[g])&&"function"!==typeof f&&0!==g.indexOf("_")&&(c[g]=f);c.value=c.y;c.label=c.name;
  delete c.y;delete c.total;delete c.doNotSlice;delete c.name;delete c.centerAngle;delete c.showInLegend}c.sliced=b;return c},redrawDataLabels:function(a){var b=a.elements.plots[0];a.placeDataLabels(!0,b.items,b);return{}},sliceInOtherPies:function(a){var b=this.options.series[0],c=b.plot.items,d=c.length,f=0,g;for(b.enableMultiSlicing=!0;d--;)d!==a&&(g=c[d]).sliced&&++f&&this.plotGraphicClick.call(g);b.enableMultiSlicing=!1;return!!f},plotGraphicClick:function(a){var b=this.graphic||this,c=b.plotItem||
  b.data("plotItem"),d=c.seriesData,f=c.chart,g=f.logic.chartInstance,k=c.index,n=b.data("eventArgs")||{},m=f.options.series[0].enableMultiSlicing,p=d.data[c.index].doNotSlice,r=c.slicedTranslation,s,v;!d.isRotating&&ta.call(b,f,a);if(!(d.isRotating||d.singletonCase||p||(b=!m&&f.sliceInOtherPies(k),(a=c.sliced)&&b)))return b=c.graphic,d=c.connector,m=c.dataLabel,r="object"===typeof r?"t"+r:r,p=c.connectorPath,s=(a?-1:1)*c.transX,v=(a?-1:1)*c.transY,q.raiseEvent("slicingStart",{slicedState:a,dataIndex:"index"in
  n&&n.index,data:f.getPlotData(k,a)},g),b.animate({transform:a?"t0,0":r},200,"easeIn",function(){q.raiseEvent("slicingEnd",{slicedState:c.sliced,dataIndex:"index"in n&&n.index,data:f.getPlotData(k,c.sliced)},g)}),m&&m.x&&m.animate({x:m.x+(a?0:s)},200,"easeIn"),p&&(p[1]+=s,p[2]+=v,p[4]+=s,p[6]+=s,d.animate({path:p},200,"easeIn")),a=c.sliced=!a,b={hcJSON:{series:[]}},b.hcJSON.series[0]={data:r=[]},r[k]={sliced:a},l(g.jsVars._reflowData,b,!0),a},plotDragStart:function(a,b,c){var d=this.data("plotItem"),
  f=d.chart,d=d.seriesData,g=f.options.series,k=-f.datasets[0].startAngle*Ta;d.isRotating=!1;if(g[0].enableRotation){g=f.container;f={left:0,top:0};if(g.getBoundingClientRect)g=g.getBoundingClientRect(),f.top=g.top+(E.pageYOffset||s.scrollTop||0)-(s.clientTop||0),f.left=g.left+(E.pageXOffset||s.scrollLeft||0)-(s.clientLeft||0);else for(;g;)f.left+=g.offsetLeft||0,f.top+=g.offsetTop||0,g!==s.body&&g!==s.documentElement&&(f.left-=g.scrollLeft||0,f.top-=g.scrollTop||0),g=g.offsetParent;d.chartPosition=
  f;a=m.call(c,a,b,d.pieCenter,d.chartPosition);d.dragStartAngle=a;d.startingAngleOnDragStart=k}},plotDragEnd:function(a){var b=this.data("plotItem"),c=b.chart,d=b.seriesData,f=-c.datasets[0].startAngle*Ta,g={hcJSON:{series:[{startAngle:f}]}};c.disposed||(l(c.logic.chartInstance.jsVars._reflowData,g,!0),c.rotate(d,c.options.series[0]));!d.isRotating&&c.plotGraphicClick.call(b,a);d.isRotating&&(setTimeout(function(){d.isRotating=!1},0),q.raiseEvent("RotationEnd",{startingAngle:z(f,!0),changeInAngle:f-
  d.startingAngleOnDragStart},c.logic.chartInstance));!c.isHovered&&c.onPlotHover(this,!1)},plotDragMove:function(a,b,c,d,f){a=this.data("plotItem");var g=a.chart,k=a.seriesData,l=g.options.series;l[0].enableRotation&&!k.singletonCase&&(c=m.call(f,c,d,k.pieCenter,k.chartPosition),k.isRotating||(k.dragStartAngle!==c&&(k.isRotating=!0),q.raiseEvent("RotationStart",{startingAngle:z(k.startingAngleOnDragStart,!0)},g.logic.chartInstance)),l[0].startAngle+=c-k.dragStartAngle,k.dragStartAngle=c,k.moveDuration=
  0,c=(new Date).getTime(),!k._lastTime||k._lastTime+k.timerThreshold<c)&&(setTimeout(function(){g.rotate(k,l[0])},0),k._lastTime=c)},plotRollOver:function(a){var b=this.plotItem||this.data("plotItem"),c=b.chart,d,f;b.seriesData.isRotating||(ta.call(this,c,a,"DataPlotRollOver"),c.onPlotHover(this,!0));c.isHovered=!0;(a=b.innerDiameter)&&(d=b.centerLabelConfig)&&(f=d.label)&&c.drawDoughnutCenterLabel(f,b.center[0],b.center[1],a,a,d,!1)},plotRollOut:function(a){var b=this.plotItem||this.data("plotItem"),
  c=b.chart,d=c.options.series[0],f,g;b.seriesData.isRotating||(ta.call(this,c,a,"DataPlotRollOut"),c.onPlotHover(this,!1));c.isHovered=!1;(a=b.innerDiameter)&&(f=d.centerLabelConfig)&&((g=f.label)||!g)&&c.drawDoughnutCenterLabel(g,b.center[0],b.center[1],a,a,f,!1)},onPlotHover:function(a,b){var c=a.data("plotItem"),d=c.rolloverProperties,f=b?d.color:c.color,g=b?d.borderWidth:c.borderWidth,k=b?d.borderColor:c.borderColor;d&&c.graphic.attr({fill:ga(f),"stroke-width":g,stroke:k})},getEventArgs:function(a){a=
  a||{};return{datasetName:a.label,datasetIndex:a.originalIndex,id:a.userID,visible:!0,label:a.label,value:a.value,percentValue:a.percentage,tooltext:a.toolText,link:a.link,sliced:a.sliced}},legendClick:function(a){var b=a.chart;b.elements.plots[0].isRotating=!1;b.plotGraphicClick.call(a)},placeDataLabels:function(){var a=function(a,b){return a.point.value-b.point.value},b=function(a,b){return a.angle-b.angle},c=["start","start","end","end"],d=[-1,1,1,-1],f=[1,1,-1,-1];return function(g,k,l,n){var m=
  this.options.plotOptions,p=m.pie,r=this.canvasLeft+.5*this.canvasWidth,q=this.canvasTop+.5*this.canvasHeight,s=this.smartLabel,v=m.series.dataLabels,A=v.style,z=oa(ib(parseFloat(A.lineHeight)),12),z=L(v.placeLabelsInside,1===k.length?!0:!1),m=v.skipOverlapLabels,C=v.manageLabelOverflow,B=v.connectorPadding,F=v.distance,E=n&&n.metrics||[r,q,p.size,p.innerSize||0],I=E[1],H=E[0];n=.5*E[2];var K=[[],[],[],[]],Q=this.canvasLeft,O=this.canvasTop,p=this.canvasWidth,F=l.labelsRadius||(l.labelsRadius=n+F),
  q=r=parseInt(A.fontSize,10),P=q/2,B=[B,B,-B,-B];l=l.labelsMaxInQuadrant||(l.labelsMaxInQuadrant=Ja(F/q));var v=v.isSmartLineSlanted,E=E[3]/2,W,T,U,V,Y,Z,aa,$,t,w,J,M,e,ca,R,S,ba,fa,ga,na;g||s.setStyle(A);if(1==k.length&&!E&&z)V=k[0],(R=V.dataLabel)&&R.show(),V.slicedTranslation=[Q,O],R&&(R.attr({visibility:la,align:"middle",transform:["t",H,I]}),R.x=H);else if(z)na=E+(n-E)/2,Aa(k,function(a){(R=a.dataLabel)&&R.show();R&&(e=a.angle,M=I+na*Ia(e),$=H+na*ma(e),R.x=$,R._x=$,R.y=M,a.sliced&&(ga=a.slicedTranslation,
  ba=ga[0]-Q,fa=ga[1]-O,$+=ba,M+=fa),R.attr({visibility:la,align:"middle",transform:["t",$,M]}))});else{Aa(k,function(a){(R=a.dataLabel)&&R.show();R&&(e=a.angle%Wa,0>e&&(e=Wa+e),S=0<=e&&e<sb?1:e<Na?2:e<Ga?3:0,K[S].push({point:a,angle:e}))});for(k=g=4;k--;){if(m&&(z=K[k].length-l,0<z))for(K[k].sort(a),A=K[k].splice(0,z),z=0,U=A.length;z<U;z+=1)V=A[z].point,V.dataLabel.attr({visibility:"hidden"}),V.connector&&V.connector.attr({visibility:"hidden"});K[k].sort(b)}z=La(K[0].length,K[1].length,K[2].length,
  K[3].length);ca=La(qa(z,l)*q,F+q);K[1].reverse();for(K[3].reverse();g--;){E=K[g];U=E.length;m||(q=U>l?ca/U:r,P=q/2);V=U*q;A=ca;for(k=0;k<U;k+=1,V-=q)z=Ya(ca*Ia(E[k].angle)),A<z?z=A:z<V&&(z=V),A=(E[k].oriY=z)-q;W=c[g];U=ca-(U-1)*q;A=0;for(k=E.length-1;0<=k;--k,U+=q)if(V=E[k].point,e=E[k].angle,Y=V.sliced,R=V.dataLabel,z=Ya(ca*Ia(e)),z<A?z=A:z>U&&(z=U),A=z+q,w=(z+E[k].oriY)/2,Z=H+f[g]*F*ma(ya.asin(w/ca)),w*=d[g],w+=I,J=I+n*Ia(e),aa=H+n*ma(e),(2>g&&Z<aa||1<g&&Z>aa)&&(Z=aa),$=Z+B[g],M=w-P-2,t=$+B[g],
  R.x=t,R._x=t,C&&(T=1<g?t-this.canvasLeft:this.canvasLeft+p-t,s.setStyle(V.style),z=oa(ib(parseFloat(V.style.lineHeight)),12)+2*ib(oa(parseFloat(V.style.border),12),12),z=s.getSmartText(V.labelText,T,z),R.attr({text:z.text,title:z.tooltext||""})),R.y=M,Y&&(ba=V.transX,fa=V.transY,$+=ba,Z+=ba,aa+=ba,J+=fa,t+=ba),R.attr({visibility:la,"text-anchor":W,vAlign:"middle",x:t,y:w}),z=V.connector)V.connectorPath=V=["M",aa,J,"L",v?Z:aa,w,$,w],z.attr({path:V,visibility:la})}}}}()},I["renderer.root"])}]);
  FusionCharts.register("module",["private","modules.renderer.js-interface",function(){var d=this,m=d.hcLib,z=d.renderer.getRenderer("javascript"),q=m.hasModule,E=m.loadModule,b=m.getMetaSentence,K=m.moduleCmdQueue,I=m.executeWaitingCommands,c=m.injectModuleDependency,s=m.moduleDependencies,a=m.getDependentModuleName,v,O;v=function(c){var g,f,n,p={},q;c=b(c);for(g in d.core.items)g=d.core.items[g],f=g.chartType(),n=g.options.chartTypeSourcePath+f,(f=g.jsVars)&&f.waitingModule&&g.__state.rendering&&
  m.needsModule(c.predicate,n)&&(f.waitingModuleError=!0,f=a(n).concat(f.userModules),f.length&&(f=f[f.length-1],p[f]=m.moduleCmdQueue[f]));for(q in p)I(p[q]);d.raiseError(d.core,"11171116151","run","HC-interface~renderer.load","Unable to load required modules and resources: "+c.key)};O=function(a,b,c){var n=a.args,m=a.options;a._chartMessageImageStyle={imageHAlign:n.typeNotSupportedMessageImageHAlign||m.baseChartMessageImageHAlign,imageVAlign:n.typeNotSupportedMessageImageVAlign||m.baseChartMessageImageVAlign,
  imageAlpha:n.typeNotSupportedMessageImageAlpha||m.baseChartMessageImageAlpha,imageScale:n.typeNotSupportedMessageImageScale||m.baseChartMessageImageScale};a._chartMessageStyle={color:n.typeNotSupportedMessageColor||m.baseChartMessageColor,fontFamily:n.typeNotSupportedMessageFont||m.baseChartMessageFont,fontSize:n.typeNotSupportedMessageFontSize||m.baseChartMessageFontSize};d.hcLib.createChart(a,b,"stub",c,m.typeNotSupportedMessage)};m.eventList=d.extend(d.legacyEventList,{loaded:"FC_Loaded",dataloaded:"FC_DataLoaded",
  rendered:"FC_Rendered",drawcomplete:"FC_DrawComplete",dataxmlinvalid:"FC_DataXMLInvalid",nodatatodisplay:"FC_NoDataToDisplay",exported:"FC_Exported"});m.raiseEvent=d.raiseEventWithLegacy;s.charts=d.extend(s.charts||{},{column2d:0,column3d:0,bar2d:0,bar3d:0,pie2d:0,pie3d:0,line:0,area2d:0,doughnut2d:0,doughnut3d:0,pareto2d:0,pareto3d:0,mscolumn2d:0,mscolumn3d:0,msline:0,msarea:0,msbar2d:0,msbar3d:0,stackedcolumn2d:0,marimekko:0,stackedcolumn3d:0,stackedarea2d:0,stackedcolumn2dline:0,stackedcolumn3dline:0,
  stackedbar2d:0,stackedbar3d:0,msstackedcolumn2d:0,mscombi2d:0,mscombi3d:0,mscolumnline3d:0,mscombidy2d:0,mscolumn3dlinedy:0,stackedcolumn3dlinedy:0,msstackedcolumn2dlinedy:0,scatter:0,bubble:0,ssgrid:0,scrollcolumn2d:0,scrollcolumn3d:0,scrollline2d:0,scrollarea2d:0,scrollstackedcolumn2d:0,scrollcombi2d:0,scrollcombidy2d:0,zoomline:0});s.powercharts=d.extend(s.powercharts||{},{spline:0,splinearea:0,msspline:0,mssplinearea:0,mssplinedy:0,multiaxisline:0,multilevelpie:0,waterfall2d:0,msstepline:0,inversemsline:0,
  inversemscolumn2d:0,inversemsarea:0,errorbar2d:0,errorscatter:0,errorline:0,logmsline:0,logmscolumn2d:0,logstackedcolumn2d:0,radar:0,dragnode:0,candlestick:0,selectscatter:0,dragcolumn2d:0,dragline:0,dragarea:0,boxandwhisker2d:0,kagi:0,heatmap:0});s.widgets=d.extend(s.widgets||{},{angulargauge:0,bulb:0,cylinder:0,drawingpad:0,funnel:0,hbullet:0,hled:0,hlineargauge:0,vlineargauge:0,pyramid:0,realtimearea:0,realtimecolumn:0,realtimeline:0,realtimelinedy:0,realtimestackedarea:0,realtimestackedcolumn:0,
  sparkcolumn:0,sparkline:0,sparkwinloss:0,thermometer:0,vbullet:0,gantt:0,vled:0});s.maps=d.extend(s.maps||{},{});d.extend(z,{render:function(b,g){var f=this.chartType(),n=this.options.chartTypeSourcePath+f,p=this.jsVars,s=this.__state,v=m.chartAPI,l=this.options,C=this.args,A=this.options.showChartLoadingMessage,E,r;E=a(n).concat(p.userModules);p.isResizing&&(p.isResizing=clearTimeout(p.isResizing));p.hcObj&&p.hcObj.destroy&&p.hcObj.destroy();if(v[f]){if(v[s.lastRenderedType]&&s.lastRenderedType!==
  f)for(r in d.raiseEvent("chartTypeChanged",{previousType:s.lastRenderedType,newType:f},this),v[s.lastRenderedType].eiMethods)delete this[r];s.lastRenderedType=f;s.lastRenderedSrc=this.src;!p.waitingModuleError&&m.raiseEvent("internal.loaded",{type:f,triggeredModuleLoad:p.drLoadAttempted||p.waitingModule},this,[this.id]);delete p.waitingModule;delete p.waitingModuleError;delete p.drLoadAttempted;d.hcLib.createChart(this,b,f,g)}else{if(f&&q(E)){if(p.drLoadAttempted){d.raiseError(this,11112822001,"run",
  "HC-interface~renderer.render","Chart runtimes not loaded even when resource is present");O(this,b,g);return}c(n)&&(E=a(n).concat(p.userModules));p.drLoadAttempted=!0}else{if(!E.length){O(this,b,g);return}if(p.waitingModuleError){O(this,b,g);delete p.waitingModule;delete p.waitingModuleError;return}}(f=K[E[E.length-1]])?(f.push({cmd:"render",obj:this,args:arguments}),p.waitingModule||(p=A?l.PBarLoadingText||l.loadMessage:"",this._chartMessageImageStyle={imageHAlign:C.loadMessageImageHAlign||l.baseChartMessageImageHAlign,
  imageVAlign:C.loadMessageImageVAlign||l.baseChartMessageImageVAlign,imageAlpha:C.loadMessageImageAlpha||l.baseChartMessageImageAlpha,imageScale:C.loadMessageImageScale||l.baseChartMessageImageScale},this._chartMessageStyle={color:C.loadMessageColor||l.baseChartMessageColor,fontFamily:C.loadMessageFont||l.baseChartMessageFont,fontSize:C.loadMessageFontSize||l.baseChartMessageFontSize},d.hcLib.createChart(this,b,"stub",void 0,p),z.load.call(this,b,g))):(d.raiseError(this,12080515551,"run","HC-interface~renderer.render",
  "Unregistered module in dependentModule definition."),this._chartMessageImageStyle={imageHAlign:C.renderErrorMessageImageHAlign||l.baseChartMessageImageHAlign,imageVAlign:C.renderErrorMessageImageVAlign||l.baseChartMessageImageVAlign,imageAlpha:C.renderErrorMessageImageAlpha||l.baseChartMessageImageAlpha,imageScale:C.renderErrorMessageImageScale||l.baseChartMessageImageScale},this._chartMessageStyle={color:C.renderErrorMessageColor||l.baseChartMessageColor,fontFamily:C.renderErrorMessageFont||l.baseChartMessageFont,
  fontSize:C.renderErrorMessageFontSize||l.baseChartMessageFontSize},d.hcLib.createChart(this,b,"stub",void 0,l.renderErrorMessage))}},update:function(a){var b=this.ref,c=this.jsVars,n=c&&c.fcObj,n=c.container||n&&n.options&&n.options.containerElement&&n.options.containerElement.childNodes[0];c.hcObj&&c.hcObj.destroy&&c.hcObj.destroy();c.isResizing&&(c.isResizing=clearTimeout(c.isResizing));void 0===a.error?(delete c.stallLoad,delete c.loadError,this.isActive()?this.src!==this.__state.lastRenderedSrc?
  this.render():d.hcLib.createChart(this,n):this.__state.rendering&&!c.waitingModule&&d.hcLib.createChart(this,n)):(this.isActive()&&"function"===typeof b.showChartMessage&&b.showChartMessage("InvalidXMLText"),delete c.loadError)},resize:function(a){var b=this.ref,c,n=this.jsVars;b&&b.resize&&(n.isResizing&&(n.isResizing=clearTimeout(n.isResizing)),n.isResizing=setTimeout(function(){c=d.normalizeCSSDimension(a.width,a.height,b);void 0!==a.width&&(b.style.width=c.width);void 0!==a.height&&(b.style.height=
  c.height);b.resize();delete n.isResizing},0))},dispose:function(){var a,b=this.jsVars;b.isResizing&&(b.isResizing=clearTimeout(b.isResizing));b.instanceAPI&&b.instanceAPI.dispose&&(b.instanceAPI.dispose(),delete b.instanceAPI);if(a=this.ref)d.purgeDOM(a),a.parentNode&&a.parentNode.removeChild(a);b.container=null;m.cleanupWaitingCommands(this)},load:function(b,c){var f=this.jsVars,n=this.chartType(),p=d.hcLib.chartAPI[n],n=a(n).concat(f.userModules),q=n[n.length-1];p||!n||n&&0===n.length?(delete f.waitingModule,
  b&&O(this,b||this.ref,c)):f.waitingModule||(f.waitingModule=!0,delete f.waitingModuleError,E(n,function(){delete f.waitingModule;I(m.moduleCmdQueue[q])},v,this))}})}]);
  FusionCharts.register("module",["private","modules.api.dynamicchartattributes",function(){var d=this;d.extend(d.core,{setChartAttribute:function(m,z){var q,E,b,K;if("string"===typeof m)q=m,m={},m[q]=z;else if(null===m||"object"!==typeof m)return;K=0;if(b=(q=this.getChartData(d.dataFormats.JSON))&&(q.chart||q.graph||q.map)){for(E in m)K+=1,null===m[E]?delete b[E.toLowerCase()]:b[E.toLowerCase()]=m[E];0<K&&("undefined"===typeof b.animation&&(b.animation="0"),this.setChartData(q,d.dataFormats.JSON))}else d.raiseError(this,
  "2105141421","run","#setChartAttribute()","Could not retrieve attribute list. Is data ready?")},getChartAttribute:function(m){var z=this.getChartData(d.dataFormats.JSON),z=z&&(z.chart||z.graph||z.map),q,E;if(0===arguments.length||void 0===m||void 0===z)return z;if("string"===typeof m)q=z[m.toString().toLowerCase()];else if(m instanceof Array)for(q={},E=0;E<m.length;E+=1)q[m[E]]=z[m[E].toString().toLowerCase()];else d.raiseError(this,"25081429","param","~getChartAttribute()",'Unexpected value of "attribute"');
  return q}},!0)}]);
  FusionCharts.register("module",["private","api.linkmanager",function(){var d=this,m=d.FusionChartsDOMInsertModes,z={},q=function(b,m){this.items={};this.root=b;this.parent=m;m instanceof d.core?this.level=this.parent.link.level+1:(z[b.id]=[{}],this.level=0)},E=function(b,d){return(b.options.containerElement===d.options.containerElement||b.options.containerElementId===d.options.containerElementId)&&b.options.insertMode===m.REPLACE};d.policies.link=["link",void 0];q.prototype.configuration=function(){return z[this.root.id][this.level]||
  (z[this.root.id][this.level]={})};d.extend(d.core,{configureLink:function(b,m){var q;if(b instanceof Array){for(q=0;q<b.length;q+=1)"object"!==typeof z[this.link.root.id][q]&&(z[this.link.root.id][q]={}),d.extend(z[this.link.root.id][q],b[q]);z[this.link.root.id].splice(b.length)}else"object"===typeof b?("number"!==typeof m&&(m=this.link.level),void 0===z[this.link.root.id][m]&&(z[this.link.root.id][m]={}),d.extend(z[this.link.root.id][m],b)):d.raiseError(this,"25081731","param","~configureLink()",
  "Unable to update link configuration from set parameters")}},!0);d.addEventListener("beforeInitialize",function(b){b.sender.link instanceof q?b.sender.link.parent instanceof d.core&&(b.sender.link.parent.link.items[b.sender.id]=b.sender):b.sender.link=new q(b.sender)});d.addEventListener("linkedChartInvoked",function(b,m){var z=b.sender,c=z.clone({dataSource:m.data,dataFormat:m.linkType,link:new q(z.link.root,z)},!0),s=m.alias,a;s&&(!c.typeSource&&c.swfUrl&&(c.typeSource=c.swfUrl.replace(/(.*?)?[^\/]*\.swf.*?/ig,
  "$1")),c.type=s);z.args&&0!==parseInt(z.args.animate,10)&&delete c.animate;d.extend(c,z.link.configuration());d.raiseEvent("beforeLinkedItemOpen",{level:z.link.level},z.link.root,void 0,function(){d.core.items[c.id]instanceof d.core&&d.core.items[c.id].dispose();a=new d.core(c);E(a,z)||z.options.overlayButton&&z.options.overlayButton.message||("object"!==typeof z.options.overlayButton&&(z.options.overlayButton={}),z.options.overlayButton.message="Close");a.render();d.raiseEvent("linkedItemOpened",
  {level:z.link.level,item:a},z.link.root)})});d.addEventListener("overlayButtonClick",function(b,m){if("LinkManager"===m.id){var q=b.sender,c=q.link.level-1,s=q.link.parent,a=q.link.root;d.raiseEvent("beforeLinkedItemClose",{level:c,item:q},a,q,function(){setTimeout(function(){d.core.items[q.id]&&q.dispose();d.raiseEvent("linkedItemClosed",{level:c},a)},0);s.disposed||s.isActive()||!E(q,s)||s.render()})}});d.addEventListener("Loaded",function(b){b=b.sender;var m;b&&void 0!==b.link&&b.link.root!==b&&
  b.link.parent instanceof d.core&&(b.ref&&"function"===typeof b.ref.drawOverlayButton?(m=d.extend({show:!0,id:"LinkManager"},b.link.parent.options.overlayButton),d.extend(m,b.link.parent.link.configuration().overlayButton||{}),b.ref.drawOverlayButton(m)):d.raiseWarning(b,"04091602","run","::LinkManager^Loaded","Unable to draw overlay button on object. -"+b.id))});d.addEventListener("beforeDispose",function(b){var m=b.sender;m&&m.link instanceof q&&(m&&m.link&&m.link.parent instanceof d.core&&m.link.parent.link&&
  m.link.parent.link.items&&delete m.link.parent.link.items[b.sender.id],delete z[m.id])})}]);
  FusionCharts.register("module",["private","modules.renderer.js-thememanager",function(){var d=this,m,z,q,E=/\s+!important$/,b=/\\!important$/,K=function(a,b){for(var c=b.length,d=-1;c--;)if(a===b[c]){d=c;break}return d},I=function(a,b,c,d,m){var q,l,s,v;m?(d.push(a),m.push(b)):(d=[a],m=[b]);if(b instanceof Array)for(q=0;q<b.length;q+=1){try{l=a[q],s=b[q]}catch(z){continue}if("object"!==typeof s)c&&void 0===s||(a[q]=s);else{if(null===l||"object"!==typeof l)l=a[q]=s instanceof Array?[]:{};v=K(s,m);
  -1!==v?l=a[q]=d[v]:I(l,s,c,d,m)}}else for(q in b){try{l=a[q],s=b[q]}catch(r){continue}if(null!==s&&"object"===typeof s)if(v=Object.prototype.toString.call(s),"[object Object]"===v){if(null===l||"object"!==typeof l)l=a[q]={};v=K(s,m);-1!==v?l=a[q]=d[v]:I(l,s,c,d,m)}else"[object Array]"===v?(null!==l&&l instanceof Array||(l=a[q]=[]),v=K(s,m),-1!==v?l=a[q]=d[v]:I(l,s,c,d,m)):a[q]=s;else a[q]=s}return a},c=function(a,b,c){if("object"!==typeof a&&"object"!==typeof b)return null;if("object"!==typeof b||
  null===b)return a;"object"!==typeof a&&(a=b instanceof Array?[]:{});I(a,b,c);return a},s=function(a){var c={important:!1,str:""};if(!a)return c;a=a.toString();E.test(a)?(a=a.replace(E,""),c.important=!0):(a=a.replace(b,"!imporant"),c.important=!1);c.str=a;return c},a=function(b,c){var d,m,q,s,l,z,A=0,B=0;for(d in b)if(m=b[d],m instanceof Array)for(z=m.length,l=0;l<z;l+=1){if(s=m[l],"object"===typeof s)if("category"===d)if("true"===s.vline){if(q=c.component("vline",A,s))v(s,q),A+=1}else{if(q=c.component("category",
  B,s,z))v(s,q),B+=1}else if(q=c.component(d,l,s,z))v(s,q),a(s,q)}else"object"===typeof m&&(q=c.component(d,null,m))&&(v(m,q),a(m,q))},v=function(a,b){var c=b.getAll(),d,m;for(d in c)m=c[d].toString(),m=s(m),m.important?a[d.toLowerCase()]=m.str:void 0===a[d.toLowerCase()]&&(a[d.toLowerCase()]=m.str)},O=function(a,b){"geo"===b.defaultSeriesType&&B.call(this,a,b)},B=function(a,b){var c=a.sender,m=c.getChartData(d.dataFormats.JSON,!0),s;m.error||((s=m.data.chart.theme)?q.themify(s,c,c.chartType(),m.data,
  "geo"===b.defaultSeriesType&&"geo"):c.jsVars.themeObject&&c.jsVars.themeObject.dispose())};m=function(){this.themeStore={}};m.prototype={constructor:m,add:function(a){for(var b=0,c=a.length,d;b<c;b+=1)(d=a[b].name)&&(this.themeStore[d]=a[b])},themify:function(a,b,c,m,q){var s=b.jsVars,l=a.split(","),v=[],A=l.length,E,r;if(A){for(r=0;r<A;r+=1){E=this.themeStore;var I;I=l[r];I=I.replace(/^\s\s*/,"");for(var K=/\s/,ba=I.length;K.test(I.charAt(--ba)););I=I.slice(0,ba+1);(E=E[I])&&v.push(this.evaluateThemeJSON(E.theme,
  b,c,q))}v.length?(s.themeObject=new z(v,b,!1,m),this.applyTheme(b),b.addEventListener("chartTypeChanged",B),b.addEventListener("internal.drawstart",O)):d.raiseWarning(b,"14051100501","run","api.themes~themify()",'The theme "'+a+'" requested has not been registered.')}},evaluateThemeJSON:function(a,b,d,m){var q={},s=b.jsVars,l=function(a){var b,d;for(b in a)d=a[b],q[b]=d instanceof Array?c(q[b]||[],d):"object"===typeof d?c(q[b]||{},d):d};d=d||b.chartType();s.themeObject&&a!==s.themeObject&&(s.themeObject.dispose(),
  delete s.themeObject);l(a.base);m&&a[m]&&l(a[m]);d&&a[d]&&l(a[d]);return q},applyTheme:function(b){b=b.jsVars.themeObject;var c=b.getThemedJSONData().data;c&&a(c,b)}};z=function(a,b,d,m){this.themeArray=a;this.themeComponents={};this.base={};this.chartInstance=b;this.isChildInstance=Boolean(d);this.themedData=d?null:c({},m);this.length=a.length;b=0;for(d=a.length;b<d;b+=1)this.parse(a[b])};z.prototype={constructor:z,pushTheme:function(a){a&&(this.themeArray.push(a),this.parse(a),this.length+=1)},
  popTheme:function(){},parse:function(a){var b=this.themeComponents,d=this.chartInstance,m=this.base,q,v,l;for(v in a)if("string"===typeof a[v]||"number"===typeof a[v])if(m[v]){if(q=s(a[v]),l=s(m[v]),q.important||!l.important)m[v]=a[v]}else m[v]=a[v];else b[v]||(b[v]=[]),q=b[v],a[v]instanceof Array?q.push(c([],a[v])):"object"===typeof a[v]?q.push(new z([a[v]],d,!0)):"function"===typeof a[v]&&q.push(a[v])},merge:function(a){var b=this.base,c=a.base,d=this.themeComponents,m=a.themeComponents,q,l,v;for(v in c)if(q=
  s(b[v]),l=s(c[v]),!q.important||l.important)b[v]=c[v];for(v in m)d[v]=d[v]?d[v].concat(m[v]):[].concat(m[v]);this.length+=a.length},get:function(a){return this.base[a]},getAll:function(){return c({},this.base)},component:function(a,b,c,d){var m=this.themeComponents,q=this.chartInstance,l=new z([],q,!0),s,v,B;v=m[a];if(!v)return null;a=0;for(m=v.length;a<m;a+=1)B=v[a],"function"===typeof B?(b=b||0,l.pushTheme(B.call(q,b,c,d))):B instanceof Array?(b=b||0,s=B.length,b%=s,s=B[b],s instanceof z?l.merge(s):
  "function"===typeof s?l.pushTheme(s.call(q,b,c,d)):l.pushTheme(s)):B instanceof z?l.merge(B):l.pushTheme(B);return l},getThemedJSONData:function(){return{data:this.themedData}},dispose:function(){var a=this.themeComponents,b=this.chartInstance,c,d;for(c in a)if(d=a[c].length){for(;d--;)a[c][d].dispose&&a[c][d].dispose();delete a[c]}this.isChildInstance||(b.removeEventListener("chartTypeChanged",B),b.removeEventListener("internal.drawstart",O));this.dataWithoutTheme=this.isChildInstance=this.themeArray=
  this.base=this.chartInstance=this.themeComponents=null}};q=new m;d.registrars.theme=d.registerTheme=function(a){a&&("[object Array]"!==Object.prototype.toString.call(a)&&(a=[a]),q.add(a))};d.addEventListener("beforeDataUpdate",function(a,b){var c=a.sender,m=d.core.transcodeData(b.data,b.format,d.dataFormats.JSON),s=m.chart&&m.chart.theme;s?q.themify(s,c,c.args.type,m):c.jsVars.themeObject&&(c.jsVars.themeObject.dispose(),delete c.jsVars.themeObject)})}]);
  FusionCharts.register("theme",{name:"default",theme:{base:{chart:{labelDisplay:"stagger !important",caption:"Theme Caption \\!important",canvasBgColor:"#56EF22",borderThickness:"5 !important",borderColor:"#E60539",baseFontColor:"#781129"},categories:[{fontColor:"#0F4F40",fontSize:15,category:function(d){return{showLabel:d%2?0:1}},vline:{color:"#000000",thickness:2}}],dataset:[{color:"#8C3146",data:function(d,m){8==d&&(m.value="");return{color:32E3>Number(m.value)?"#8C3146":"#FF0000",alpha:"100"}}}],
  trendlines:[{line:function(d){return d?{color:"#ff0000",thickness:3}:{color:"#ffff00",thickness:3}}}]},pie2d:{chart:{bgColor:"#FF0000"}},msline:{chart:{canvasBgColor:"#ff0000"}},geo:{chart:{canvasBgColor:"#0000ff"}},world:{chart:{canvasBgColor:"#00Ff00"}}}});
  