/**!
* @license FusionCharts JavaScript Library
* Copyright FusionCharts, Inc.
* License Information at <http://www.fusioncharts.com/license>
*
* @version 3.21.1
*
* @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"!=typeof Object.assign&&(Object.assign=function(e){"use strict";var t,r,n,a;if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(t=Object(e),r=1;r<arguments.length;r++)if(null!=(n=arguments[r]))for(a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a]);return t}),Function.prototype.bind||(Function.prototype.bind=function(e){"use strict";var t,r,n,a;if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");return t=Array.prototype.slice.call(arguments,1),r=this,n=function(){},a=function(){return r.apply(this instanceof n?this:e,t.concat(Array.prototype.slice.call(arguments)))},this.prototype&&(n.prototype=this.prototype),a.prototype=new n,a}),!document.head&&(document.head=document.getElementsByTagName("head")[0]),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.FusionCharts=t():e.FusionCharts=t()}(window,(function(){return function(e){function t(t){for(var r,a,i=t[0],o=t[1],s=0,c=[];s<i.length;s++)a=i[s],Object.prototype.hasOwnProperty.call(n,a)&&n[a]&&c.push(n[a][0]),n[a]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r]);for(l&&l(t);c.length;)c.shift()()}var r={},n={0:0};function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.e=function(e){var t=[],r=n[e];if(0!==r)if(r)t.push(r[2]);else{var i=new Promise((function(t,a){r=n[e]=[t,a]}));t.push(r[2]=i);var o,s=document.createElement("script");s.charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.src=function(e){return a.p+""+({1:"fusioncharts.charts",2:"fusioncharts.common",3:"fusioncharts.timeseries",4:"fusioncharts.powercharts",5:"fusioncharts.widgets",6:"fusioncharts.zoomline",7:"fusioncharts.gantt",8:"fusioncharts.treemap",9:"fusioncharts.zoomscatter",10:"fusioncharts.msstackedcolumn2dsplinedy",11:"fusioncharts.overlappedbar2d",12:"fusioncharts.overlappedcolumn2d",13:"fusioncharts.excelexport",14:"fusioncharts.accessibility",15:"fusioncharts.maps",16:"fusioncharts.vml"}[e]||e)+".js"}(e);var l=new Error;o=function(t){s.onerror=s.onload=null,clearTimeout(c);var r=n[e];if(0!==r){if(r){var a=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+a+": "+i+")",l.name="ChunkLoadError",l.type=a,l.request=i,r[1](l)}n[e]=undefined}};var c=setTimeout((function(){o({type:"timeout",target:s})}),12e4);s.onerror=s.onload=o,document.head.appendChild(s)}return Promise.all(t)},a.m=e,a.c=r,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var i=window.webpackJsonpFusionCharts=window.webpackJsonpFusionCharts||[],o=i.push.bind(i);i.push=t,i=i.slice();for(var s=0;s<i.length;s++)t(i[s]);var l=o;return a(a.s=0)}([function(e,t,r){r(1),r(160),r(244),e.exports=r(248)},function(e,t,r){"use strict";r(2),r(75),r(77),r(79),r(85),r(87),r(92),r(103),r(106),r(108),r(112),r(114),r(116),r(122),r(159);window.getComputedStyle||(window.getComputedStyle=function(e){return this.el=e,this.getPropertyValue=function(t){var r=/(\-([a-z]){1})/g,n=t;return"float"===n&&(n="styleFloat"),r.test(n)&&(n=n.replace(r,(function(){return arguments[2].toUpperCase()}))),e.currentStyle[n]?e.currentStyle[n]:null},this}),Event.prototype.stopPropagation||(Event.prototype.stopPropagation=function(){this.cancelBubble=!0})},function(e,t,r){"use strict";r(3);var n=r(74).Object;e.exports=function(e){return n.getOwnPropertyNames(e)}},function(e,t,r){"use strict";var n=r(4),a=r(9),i=r(71).f;n({target:"Object",stat:!0,forced:a((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},function(e,t,r){"use strict";var n=r(5),a=r(7).f,i=r(46),o=r(50),s=r(40),l=r(58),c=r(70);e.exports=function(e,t){var r,u,h,f,d,p=e.target,g=e.global,m=e.stat;if(r=g?n:m?n[p]||s(p,{}):(n[p]||{}).prototype)for(u in t){if(f=t[u],h=e.dontCallGetSet?(d=a(r,u))&&d.value:r[u],!c(g?u:p+(m?".":"#")+u,e.forced)&&h!==undefined){if(typeof f==typeof h)continue;l(f,h)}(e.sham||h&&h.sham)&&i(f,"sham",!0),o(r,u,f,e)}}},function(e,t,r){"use strict";(function(t){var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||function(){return this}()||this||Function("return this")()}).call(this,r(6))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var n=r(8),a=r(10),i=r(12),o=r(13),s=r(14),l=r(20),c=r(41),u=r(44),h=Object.getOwnPropertyDescriptor;t.f=n?h:function(e,t){if(e=s(e),t=l(t),u)try{return h(e,t)}catch(r){}if(c(e,t))return o(!a(i.f,e,t),e[t])}},function(e,t,r){"use strict";var n=r(9);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,r){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,r){"use strict";var n=r(11),a=Function.prototype.call;e.exports=n?a.bind(a):function(){return a.apply(a,arguments)}},function(e,t,r){"use strict";var n=r(9);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},function(e,t,r){"use strict";var n={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,i=a&&!n.call({1:2},1);t.f=i?function(e){var t=a(this,e);return!!t&&t.enumerable}:n},function(e,t,r){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){"use strict";var n=r(15),a=r(18);e.exports=function(e){return n(a(e))}},function(e,t,r){"use strict";var n=r(16),a=r(9),i=r(17),o=Object,s=n("".split);e.exports=a((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):o(e)}:o},function(e,t,r){"use strict";var n=r(11),a=Function.prototype,i=a.call,o=n&&a.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},function(e,t,r){"use strict";var n=r(16),a=n({}.toString),i=n("".slice);e.exports=function(e){return i(a(e),8,-1)}},function(e,t,r){"use strict";var n=r(19),a=TypeError;e.exports=function(e){if(n(e))throw new a("Can't call method on "+e);return e}},function(e,t,r){"use strict";e.exports=function(e){return null===e||e===undefined}},function(e,t,r){"use strict";var n=r(21),a=r(25);e.exports=function(e){var t=n(e,"string");return a(t)?t:t+""}},function(e,t,r){"use strict";var n=r(10),a=r(22),i=r(25),o=r(32),s=r(35),l=r(36),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!a(e)||i(e))return e;var r,l=o(e,u);if(l){if(t===undefined&&(t="default"),r=n(l,e,t),!a(r)||i(r))return r;throw new c("Can't convert object to primitive value")}return t===undefined&&(t="number"),s(e,t)}},function(e,t,r){"use strict";var n=r(23),a=r(24),i=a.all;e.exports=a.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},function(e,t,r){"use strict";var n=r(24),a=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===a}:function(e){return"function"==typeof e}},function(e,t,r){"use strict";var n="object"==typeof document&&document.all,a=void 0===n&&n!==undefined;e.exports={all:n,IS_HTMLDDA:a}},function(e,t,r){"use strict";var n=r(26),a=r(23),i=r(27),o=r(28),s=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return a(t)&&i(t.prototype,s(e))}},function(e,t,r){"use strict";var n=r(5),a=r(23),i=function(e){return a(e)?e:undefined};e.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}},function(e,t,r){"use strict";var n=r(16);e.exports=n({}.isPrototypeOf)},function(e,t,r){"use strict";var n=r(29);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,r){"use strict";var n=r(30),a=r(9),i=r(5).String;e.exports=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},function(e,t,r){"use strict";var n,a,i=r(5),o=r(31),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(a=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!a&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(a=+n[1]),e.exports=a},function(e,t,r){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(e,t,r){"use strict";var n=r(33),a=r(19);e.exports=function(e,t){var r=e[t];return a(r)?undefined:n(r)}},function(e,t,r){"use strict";var n=r(23),a=r(34),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(a(e)+" is not a function")}},function(e,t,r){"use strict";var n=String;e.exports=function(e){try{return n(e)}catch(t){return"Object"}}},function(e,t,r){"use strict";var n=r(10),a=r(23),i=r(22),o=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&a(r=e.toString)&&!i(s=n(r,e)))return s;if(a(r=e.valueOf)&&!i(s=n(r,e)))return s;if("string"!==t&&a(r=e.toString)&&!i(s=n(r,e)))return s;throw new o("Can't convert object to primitive value")}},function(e,t,r){"use strict";var n=r(5),a=r(37),i=r(41),o=r(43),s=r(29),l=r(28),c=n.Symbol,u=a("wks"),h=l?c["for"]||c:c&&c.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=s&&i(c,e)?c[e]:h("Symbol."+e)),u[e]}},function(e,t,r){"use strict";var n=r(38),a=r(39);(e.exports=function(e,t){return a[e]||(a[e]=t!==undefined?t:{})})("versions",[]).push({version:"3.33.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e,t,r){"use strict";e.exports=!1},function(e,t,r){"use strict";var n=r(5),a=r(40),i=n["__core-js_shared__"]||a("__core-js_shared__",{});e.exports=i},function(e,t,r){"use strict";var n=r(5),a=Object.defineProperty;e.exports=function(e,t){try{a(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},function(e,t,r){"use strict";var n=r(16),a=r(42),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(a(e),t)}},function(e,t,r){"use strict";var n=r(18),a=Object;e.exports=function(e){return a(n(e))}},function(e,t,r){"use strict";var n=r(16),a=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(e===undefined?"":e)+")_"+o(++a+i,36)}},function(e,t,r){"use strict";var n=r(8),a=r(9),i=r(45);e.exports=!n&&!a((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){"use strict";var n=r(5),a=r(22),i=n.document,o=a(i)&&a(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,r){"use strict";var n=r(8),a=r(47),i=r(13);e.exports=n?function(e,t,r){return a.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){"use strict";var n=r(8),a=r(44),i=r(48),o=r(49),s=r(20),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor;t.f=n?i?function(e,t,r){if(o(e),t=s(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=u(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(o(e),t=s(t),o(r),a)try{return c(e,t,r)}catch(n){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){"use strict";var n=r(8),a=r(9);e.exports=n&&a((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(e,t,r){"use strict";var n=r(22),a=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(a(e)+" is not an object")}},function(e,t,r){"use strict";var n=r(23),a=r(47),i=r(51),o=r(40);e.exports=function(e,t,r,s){s||(s={});var l=s.enumerable,c=s.name!==undefined?s.name:t;if(n(r)&&i(r,c,s),s.global)l?e[t]=r:o(t,r);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=r:a.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},function(e,t,r){"use strict";var n=r(16),a=r(9),i=r(23),o=r(41),s=r(8),l=r(52).CONFIGURABLE,c=r(53),u=r(54),h=u.enforce,f=u.get,d=String,p=Object.defineProperty,g=n("".slice),m=n("".replace),v=n([].join),b=s&&!a((function(){return 8!==p((function(){}),"length",{value:8}).length})),y=String(String).split("String"),x=e.exports=function(e,t,r){"Symbol("===g(d(t),0,7)&&(t="["+m(d(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),b&&r&&o(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=undefined)}catch(a){}var n=h(e);return o(n,"source")||(n.source=v(y,"string"==typeof t?t:"")),e};Function.prototype.toString=x((function(){return i(this)&&f(this).source||c(this)}),"toString")},function(e,t,r){"use strict";var n=r(8),a=r(41),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,s=a(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},function(e,t,r){"use strict";var n=r(16),a=r(23),i=r(39),o=n(Function.toString);a(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),e.exports=i.inspectSource},function(e,t,r){"use strict";var n,a,i,o=r(55),s=r(5),l=r(22),c=r(46),u=r(41),h=r(39),f=r(56),d=r(57),p=s.TypeError,g=s.WeakMap;if(o||h.state){var m=h.state||(h.state=new g);m.get=m.get,m.has=m.has,m.set=m.set,n=function(e,t){if(m.has(e))throw new p("Object already initialized");return t.facade=e,m.set(e,t),t},a=function(e){return m.get(e)||{}},i=function(e){return m.has(e)}}else{var v=f("state");d[v]=!0,n=function(e,t){if(u(e,v))throw new p("Object already initialized");return t.facade=e,c(e,v,t),t},a=function(e){return u(e,v)?e[v]:{}},i=function(e){return u(e,v)}}e.exports={set:n,get:a,has:i,enforce:function(e){return i(e)?a(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=a(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return r}}}},function(e,t,r){"use strict";var n=r(5),a=r(23),i=n.WeakMap;e.exports=a(i)&&/native code/.test(String(i))},function(e,t,r){"use strict";var n=r(37),a=r(43),i=n("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},function(e,t,r){"use strict";e.exports={}},function(e,t,r){"use strict";var n=r(41),a=r(59),i=r(7),o=r(47);e.exports=function(e,t,r){for(var s=a(t),l=o.f,c=i.f,u=0;u<s.length;u++){var h=s[u];n(e,h)||r&&n(r,h)||l(e,h,c(t,h))}}},function(e,t,r){"use strict";var n=r(26),a=r(16),i=r(60),o=r(69),s=r(49),l=a([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(s(e)),r=o.f;return r?l(t,r(e)):t}},function(e,t,r){"use strict";var n=r(61),a=r(68).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,a)}},function(e,t,r){"use strict";var n=r(16),a=r(41),i=r(14),o=r(62).indexOf,s=r(57),l=n([].push);e.exports=function(e,t){var r,n=i(e),c=0,u=[];for(r in n)!a(s,r)&&a(n,r)&&l(u,r);for(;t.length>c;)a(n,r=t[c++])&&(~o(u,r)||l(u,r));return u}},function(e,t,r){"use strict";var n=r(14),a=r(63),i=r(66),o=function(e){return function(t,r,o){var s,l=n(t),c=i(l),u=a(o,c);if(e&&r!=r){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,r){"use strict";var n=r(64),a=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?a(r+t,0):i(r,t)}},function(e,t,r){"use strict";var n=r(65);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},function(e,t,r){"use strict";var n=Math.ceil,a=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?a:n)(t)}},function(e,t,r){"use strict";var n=r(67);e.exports=function(e){return n(e.length)}},function(e,t,r){"use strict";var n=r(64),a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},function(e,t,r){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,r){"use strict";t.f=Object.getOwnPropertySymbols},function(e,t,r){"use strict";var n=r(9),a=r(23),i=/#|\.prototype\./,o=function(e,t){var r=l[s(e)];return r===u||r!==c&&(a(t)?n(t):!!t)},s=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},function(e,t,r){"use strict";var n=r(17),a=r(14),i=r(60).f,o=r(72),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===n(e)?function(e){try{return i(e)}catch(t){return o(s)}}(e):i(a(e))}},function(e,t,r){"use strict";var n=r(63),a=r(66),i=r(73),o=Array,s=Math.max;e.exports=function(e,t,r){for(var l=a(e),c=n(t,l),u=n(r===undefined?l:r,l),h=o(s(u-c,0)),f=0;c<u;c++,f++)i(h,f,e[c]);return h.length=f,h}},function(e,t,r){"use strict";var n=r(20),a=r(47),i=r(13);e.exports=function(e,t,r){var o=n(t);o in e?a.f(e,o,i(0,r)):e[o]=r}},function(e,t,r){"use strict";var n=r(5);e.exports=n},function(e,t,r){"use strict";r(76);var n=r(74).Object,a=e.exports=function(e,t){return n.getOwnPropertyDescriptor(e,t)};n.getOwnPropertyDescriptor.sham&&(a.sham=!0)},function(e,t,r){"use strict";var n=r(4),a=r(9),i=r(14),o=r(7).f,s=r(8);n({target:"Object",stat:!0,forced:!s||a((function(){o(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(i(e),t)}})},function(e,t,r){"use strict";r(78);var n=r(74).Object,a=e.exports=function(e,t,r){return n.defineProperty(e,t,r)};n.defineProperty.sham&&(a.sham=!0)},function(e,t,r){"use strict";var n=r(4),a=r(8),i=r(47).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!a},{defineProperty:i})},function(e,t,r){"use strict";r(80);var n=r(74).Object;e.exports=function(e,t){return n.create(e,t)}},function(e,t,r){"use strict";r(4)({target:"Object",stat:!0,sham:!r(8)},{create:r(81)})},function(e,t,r){"use strict";var n,a=r(49),i=r(82),o=r(68),s=r(57),l=r(84),c=r(45),u=r(56),h=u("IE_PROTO"),f=function(){},d=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{n=new ActiveXObject("htmlfile")}catch(a){}var e,t;g="undefined"!=typeof document?document.domain&&n?p(n):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(n);for(var r=o.length;r--;)delete g.prototype[o[r]];return g()};s[h]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f.prototype=a(e),r=new f,f.prototype=null,r[h]=e):r=g(),t===undefined?r:i.f(r,t)}},function(e,t,r){"use strict";var n=r(8),a=r(48),i=r(47),o=r(49),s=r(14),l=r(83);t.f=n&&!a?Object.defineProperties:function(e,t){o(e);for(var r,n=s(t),a=l(t),c=a.length,u=0;c>u;)i.f(e,r=a[u++],n[r]);return e}},function(e,t,r){"use strict";var n=r(61),a=r(68);e.exports=Object.keys||function(e){return n(e,a)}},function(e,t,r){"use strict";var n=r(26);e.exports=n("document","documentElement")},function(e,t,r){"use strict";r(86);var n=r(74);e.exports=n.Object.keys},function(e,t,r){"use strict";var n=r(4),a=r(42),i=r(83);n({target:"Object",stat:!0,forced:r(9)((function(){i(1)}))},{keys:function(e){return i(a(e))}})},function(e,t,r){"use strict";r(88);var n=r(91);e.exports=n("Array","indexOf")},function(e,t,r){"use strict";var n=r(4),a=r(89),i=r(62).indexOf,o=r(90),s=a([].indexOf),l=!!s&&1/s([1],1,-0)<0;n({target:"Array",proto:!0,forced:l||!o("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:undefined;return l?s(this,e,t)||0:i(this,e,t)}})},function(e,t,r){"use strict";var n=r(17),a=r(16);e.exports=function(e){if("Function"===n(e))return a(e)}},function(e,t,r){"use strict";var n=r(9);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},function(e,t,r){"use strict";var n=r(5),a=r(16);e.exports=function(e,t){return a(n[e].prototype[t])}},function(e,t,r){"use strict";r(93);var n=r(91);e.exports=n("Array","forEach")},function(e,t,r){"use strict";var n=r(4),a=r(94);n({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},function(e,t,r){"use strict";var n=r(95).forEach,a=r(90)("forEach");e.exports=a?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:undefined)}},function(e,t,r){"use strict";var n=r(96),a=r(16),i=r(15),o=r(42),s=r(66),l=r(97),c=a([].push),u=function(e){var t=1===e,r=2===e,a=3===e,u=4===e,h=6===e,f=7===e,d=5===e||h;return function(p,g,m,v){for(var b,y,x=o(p),w=i(x),_=n(g,m),S=s(w),C=0,k=v||l,A=t?k(p,S):r||f?k(p,0):undefined;S>C;C++)if((d||C in w)&&(y=_(b=w[C],C,x),e))if(t)A[C]=y;else if(y)switch(e){case 3:return!0;case 5:return b;case 6:return C;case 2:c(A,b)}else switch(e){case 4:return!1;case 7:c(A,b)}return h?-1:a||u?u:A}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},function(e,t,r){"use strict";var n=r(89),a=r(33),i=r(11),o=n(n.bind);e.exports=function(e,t){return a(e),t===undefined?e:i?o(e,t):function(){return e.apply(t,arguments)}}},function(e,t,r){"use strict";var n=r(98);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},function(e,t,r){"use strict";var n=r(99),a=r(100),i=r(22),o=r(36)("species"),s=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(a(t)&&(t===s||n(t.prototype))||i(t)&&null===(t=t[o]))&&(t=undefined)),t===undefined?s:t}},function(e,t,r){"use strict";var n=r(17);e.exports=Array.isArray||function(e){return"Array"===n(e)}},function(e,t,r){"use strict";var n=r(16),a=r(9),i=r(23),o=r(101),s=r(26),l=r(53),c=function(){},u=[],h=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=n(f.exec),p=!f.test(c),g=function(e){if(!i(e))return!1;try{return h(c,u,e),!0}catch(t){return!1}},m=function(e){if(!i(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(f,l(e))}catch(t){return!0}};m.sham=!0,e.exports=!h||a((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?m:g},function(e,t,r){"use strict";var n=r(102),a=r(23),i=r(17),o=r(36)("toStringTag"),s=Object,l="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return e===undefined?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=s(e),o))?r:l?i(t):"Object"===(n=i(t))&&a(t.callee)?"Arguments":n}},function(e,t,r){"use strict";var n={};n[r(36)("toStringTag")]="z",e.exports="[object z]"===String(n)},function(e,t,r){"use strict";r(104);var n=r(91);e.exports=n("Array","map")},function(e,t,r){"use strict";var n=r(4),a=r(95).map;n({target:"Array",proto:!0,forced:!r(105)("map")},{map:function(e){return a(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,r){"use strict";var n=r(9),a=r(36),i=r(30),o=a("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,r){"use strict";r(107);var n=r(91);e.exports=n("Array","filter")},function(e,t,r){"use strict";var n=r(4),a=r(95).filter;n({target:"Array",proto:!0,forced:!r(105)("filter")},{filter:function(e){return a(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,r){"use strict";r(109);var n=r(91);e.exports=n("Array","reduce")},function(e,t,r){"use strict";var n=r(4),a=r(110).left,i=r(90),o=r(30);n({target:"Array",proto:!0,forced:!r(111)&&o>79&&o<83||!i("reduce")},{reduce:function(e){var t=arguments.length;return a(this,e,t,t>1?arguments[1]:undefined)}})},function(e,t,r){"use strict";var n=r(33),a=r(42),i=r(15),o=r(66),s=TypeError,l=function(e){return function(t,r,l,c){n(r);var u=a(t),h=i(u),f=o(u),d=e?f-1:0,p=e?-1:1;if(l<2)for(;;){if(d in h){c=h[d],d+=p;break}if(d+=p,e?d<0:f<=d)throw new s("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=p)d in h&&(c=r(c,h[d],d,u));return c}};e.exports={left:l(!1),right:l(!0)}},function(e,t,r){"use strict";var n=r(5),a=r(17);e.exports="process"===a(n.process)},function(e,t,r){"use strict";r(113);var n=r(74);e.exports=n.Array.isArray},function(e,t,r){"use strict";r(4)({target:"Array",stat:!0},{isArray:r(99)})},function(e,t,r){"use strict";r(115);var n=r(91);e.exports=n("Array","some")},function(e,t,r){"use strict";var n=r(4),a=r(95).some;n({target:"Array",proto:!0,forced:!r(90)("some")},{some:function(e){return a(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,r){"use strict";r(117);var n=r(91);e.exports=n("String","trim")},function(e,t,r){"use strict";var n=r(4),a=r(118).trim;n({target:"String",proto:!0,forced:r(121)("trim")},{trim:function(){return a(this)}})},function(e,t,r){"use strict";var n=r(16),a=r(18),i=r(119),o=r(120),s=n("".replace),l=RegExp("^["+o+"]+"),c=RegExp("(^|[^"+o+"])["+o+"]+$"),u=function(e){return function(t){var r=i(a(t));return 1&e&&(r=s(r,l,"")),2&e&&(r=s(r,c,"$1")),r}};e.exports={start:u(1),end:u(2),trim:u(3)}},function(e,t,r){"use strict";var n=r(101),a=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return a(e)}},function(e,t,r){"use strict";e.exports="\t\n\x0B\f\r                　\u2028\u2029\ufeff"},function(e,t,r){"use strict";var n=r(52).PROPER,a=r(9),i=r(120);e.exports=function(e){return a((function(){return!!i[e]()||"​᠎"!=="​᠎"[e]()||n&&i[e].name!==e}))}},function(e,t,r){"use strict";r(123),r(125),r(127),r(142),r(143),r(144),r(145),r(146),r(147),r(148),r(149),r(150),r(151),r(152),r(153),r(154),r(155),r(156),r(157),r(158);var n=r(74);e.exports=n.Symbol},function(e,t,r){"use strict";var n=r(4),a=r(9),i=r(99),o=r(22),s=r(42),l=r(66),c=r(124),u=r(73),h=r(97),f=r(105),d=r(36),p=r(30),g=d("isConcatSpreadable"),m=p>=51||!a((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),v=function(e){if(!o(e))return!1;var t=e[g];return t!==undefined?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!m||!f("concat")},{concat:function(e){var t,r,n,a,i,o=s(this),f=h(o,0),d=0;for(t=-1,n=arguments.length;t<n;t++)if(v(i=-1===t?o:arguments[t]))for(a=l(i),c(d+a),r=0;r<a;r++,d++)r in i&&u(f,d,i[r]);else c(d+1),u(f,d++,i);return f.length=d,f}})},function(e,t,r){"use strict";var n=TypeError;e.exports=function(e){if(e>9007199254740991)throw n("Maximum allowed index exceeded");return e}},function(e,t,r){"use strict";var n=r(102),a=r(50),i=r(126);n||a(Object.prototype,"toString",i,{unsafe:!0})},function(e,t,r){"use strict";var n=r(102),a=r(101);e.exports=n?{}.toString:function(){return"[object "+a(this)+"]"}},function(e,t,r){"use strict";r(128),r(134),r(136),r(137),r(141)},function(e,t,r){"use strict";var n=r(4),a=r(5),i=r(10),o=r(16),s=r(38),l=r(8),c=r(29),u=r(9),h=r(41),f=r(27),d=r(49),p=r(14),g=r(20),m=r(119),v=r(13),b=r(81),y=r(83),x=r(60),w=r(71),_=r(69),S=r(7),C=r(47),k=r(82),A=r(12),N=r(50),E=r(129),L=r(37),M=r(56),F=r(57),T=r(43),D=r(36),I=r(130),O=r(131),P=r(132),R=r(133),j=r(54),B=r(95).forEach,V=M("hidden"),z=j.set,U=j.getterFor("Symbol"),H=Object.prototype,q=a.Symbol,G=q&&q.prototype,W=a.RangeError,$=a.TypeError,X=a.QObject,Y=S.f,K=C.f,J=w.f,Z=A.f,Q=o([].push),ee=L("symbols"),te=L("op-symbols"),re=L("wks"),ne=!X||!X.prototype||!X.prototype.findChild,ae=function(e,t,r){var n=Y(H,t);n&&delete H[t],K(e,t,r),n&&e!==H&&K(H,t,n)},ie=l&&u((function(){return 7!==b(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?ae:K,oe=function(e,t){var r=ee[e]=b(G);return z(r,{type:"Symbol",tag:e,description:t}),l||(r.description=t),r},se=function(e,t,r){e===H&&se(te,t,r),d(e);var n=g(t);return d(r),h(ee,n)?(r.enumerable?(h(e,V)&&e[V][n]&&(e[V][n]=!1),r=b(r,{enumerable:v(0,!1)})):(h(e,V)||K(e,V,v(1,{})),e[V][n]=!0),ie(e,n,r)):K(e,n,r)},le=function(e,t){d(e);var r=p(t),n=y(r).concat(fe(r));return B(n,(function(t){l&&!i(ce,r,t)||se(e,t,r[t])})),e},ce=function(e){var t=g(e),r=i(Z,this,t);return!(this===H&&h(ee,t)&&!h(te,t))&&(!(r||!h(this,t)||!h(ee,t)||h(this,V)&&this[V][t])||r)},ue=function(e,t){var r=p(e),n=g(t);if(r!==H||!h(ee,n)||h(te,n)){var a=Y(r,n);return!a||!h(ee,n)||h(r,V)&&r[V][n]||(a.enumerable=!0),a}},he=function(e){var t=J(p(e)),r=[];return B(t,(function(e){h(ee,e)||h(F,e)||Q(r,e)})),r},fe=function(e){var t=e===H,r=J(t?te:p(e)),n=[];return B(r,(function(e){!h(ee,e)||t&&!h(H,e)||Q(n,ee[e])})),n};c||(N(G=(q=function(){if(f(G,this))throw new $("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==undefined?m(arguments[0]):undefined,t=T(e),r=function n(e){this===H&&i(n,te,e),h(this,V)&&h(this[V],t)&&(this[V][t]=!1);var r=v(1,e);try{ie(this,t,r)}catch(a){if(!(a instanceof W))throw a;ae(this,t,r)}};return l&&ne&&ie(H,t,{configurable:!0,set:r}),oe(t,e)}).prototype,"toString",(function(){return U(this).tag})),N(q,"withoutSetter",(function(e){return oe(T(e),e)})),A.f=ce,C.f=se,k.f=le,S.f=ue,x.f=w.f=he,_.f=fe,I.f=function(e){return oe(D(e),e)},l&&(E(G,"description",{configurable:!0,get:function(){return U(this).description}}),s||N(H,"propertyIsEnumerable",ce,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:q}),B(y(re),(function(e){O(e)})),n({target:"Symbol",stat:!0,forced:!c},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!l},{create:function(e,t){return t===undefined?b(e):le(b(e),t)},defineProperty:se,defineProperties:le,getOwnPropertyDescriptor:ue}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:he}),P(),R(q,"Symbol"),F[V]=!0},function(e,t,r){"use strict";var n=r(51),a=r(47);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),a.f(e,t,r)}},function(e,t,r){"use strict";var n=r(36);t.f=n},function(e,t,r){"use strict";var n=r(74),a=r(41),i=r(130),o=r(47).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});a(t,e)||o(t,e,{value:i.f(e)})}},function(e,t,r){"use strict";var n=r(10),a=r(26),i=r(36),o=r(50);e.exports=function(){var e=a("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&o(t,s,(function(e){return n(r,this)}),{arity:1})}},function(e,t,r){"use strict";var n=r(47).f,a=r(41),i=r(36)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!a(e,i)&&n(e,i,{configurable:!0,value:t})}},function(e,t,r){"use strict";var n=r(4),a=r(26),i=r(41),o=r(119),s=r(37),l=r(135),c=s("string-to-symbol-registry"),u=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{"for":function(e){var t=o(e);if(i(c,t))return c[t];var r=a("Symbol")(t);return c[t]=r,u[r]=t,r}})},function(e,t,r){"use strict";var n=r(29);e.exports=n&&!!Symbol["for"]&&!!Symbol.keyFor},function(e,t,r){"use strict";var n=r(4),a=r(41),i=r(25),o=r(34),s=r(37),l=r(135),c=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw new TypeError(o(e)+" is not a symbol");if(a(c,e))return c[e]}})},function(e,t,r){"use strict";var n=r(4),a=r(26),i=r(138),o=r(10),s=r(16),l=r(9),c=r(23),u=r(25),h=r(139),f=r(140),d=r(29),p=String,g=a("JSON","stringify"),m=s(/./.exec),v=s("".charAt),b=s("".charCodeAt),y=s("".replace),x=s(1..toString),w=/[\uD800-\uDFFF]/g,_=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,C=!d||l((function(){var e=a("Symbol")("stringify detection");return"[null]"!==g([e])||"{}"!==g({a:e})||"{}"!==g(Object(e))})),k=l((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),A=function(e,t){var r=h(arguments),n=f(t);if(c(n)||e!==undefined&&!u(e))return r[1]=function(e,t){if(c(n)&&(t=o(n,this,p(e),t)),!u(t))return t},i(g,null,r)},N=function(e,t,r){var n=v(r,t-1),a=v(r,t+1);return m(_,e)&&!m(S,a)||m(S,e)&&!m(_,n)?"\\u"+x(b(e,0),16):e};g&&n({target:"JSON",stat:!0,arity:3,forced:C||k},{stringify:function(e,t,r){var n=h(arguments),a=i(C?A:g,null,n);return k&&"string"==typeof a?y(a,w,N):a}})},function(e,t,r){"use strict";var n=r(11),a=Function.prototype,i=a.apply,o=a.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},function(e,t,r){"use strict";var n=r(16);e.exports=n([].slice)},function(e,t,r){"use strict";var n=r(16),a=r(99),i=r(23),o=r(17),s=r(119),l=n([].push);e.exports=function(e){if(i(e))return e;if(a(e)){for(var t=e.length,r=[],n=0;n<t;n++){var c=e[n];"string"==typeof c?l(r,c):"number"!=typeof c&&"Number"!==o(c)&&"String"!==o(c)||l(r,s(c))}var u=r.length,h=!0;return function(e,t){if(h)return h=!1,t;if(a(this))return t;for(var n=0;n<u;n++)if(r[n]===e)return t}}}},function(e,t,r){"use strict";var n=r(4),a=r(29),i=r(9),o=r(69),s=r(42);n({target:"Object",stat:!0,forced:!a||i((function(){o.f(1)}))},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(s(e)):[]}})},function(e,t,r){"use strict";r(131)("asyncIterator")},function(e,t,r){"use strict";var n=r(4),a=r(8),i=r(5),o=r(16),s=r(41),l=r(23),c=r(27),u=r(119),h=r(129),f=r(58),d=i.Symbol,p=d&&d.prototype;if(a&&l(d)&&(!("description"in p)||d().description!==undefined)){var g={},m=function(){var e=arguments.length<1||arguments[0]===undefined?undefined:u(arguments[0]),t=c(p,this)?new d(e):e===undefined?d():d(e);return""===e&&(g[t]=!0),t};f(m,d),m.prototype=p,p.constructor=m;var v="Symbol(description detection)"===String(d("description detection")),b=o(p.valueOf),y=o(p.toString),x=/^Symbol\((.*)\)[^)]+$/,w=o("".replace),_=o("".slice);h(p,"description",{configurable:!0,get:function(){var e=b(this);if(s(g,e))return"";var t=y(e),r=v?_(t,7,-1):w(t,x,"$1");return""===r?undefined:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:m})}},function(e,t,r){"use strict";r(131)("hasInstance")},function(e,t,r){"use strict";r(131)("isConcatSpreadable")},function(e,t,r){"use strict";r(131)("iterator")},function(e,t,r){"use strict";r(131)("match")},function(e,t,r){"use strict";r(131)("matchAll")},function(e,t,r){"use strict";r(131)("replace")},function(e,t,r){"use strict";r(131)("search")},function(e,t,r){"use strict";r(131)("species")},function(e,t,r){"use strict";r(131)("split")},function(e,t,r){"use strict";var n=r(131),a=r(132);n("toPrimitive"),a()},function(e,t,r){"use strict";var n=r(26),a=r(131),i=r(133);a("toStringTag"),i(n("Symbol"),"Symbol")},function(e,t,r){"use strict";r(131)("unscopables")},function(e,t,r){"use strict";var n=r(5);r(133)(n.JSON,"JSON",!0)},function(e,t,r){"use strict";r(133)(Math,"Math",!0)},function(e,t,r){"use strict";var n=r(4),a=r(5),i=r(133);n({global:!0},{Reflect:{}}),i(a.Reflect,"Reflect",!0)},function(e,t){window.MutationObserver||(window.MutationObserver=function(e){function t(e){this.i=[],this.m=e}function r(t){var r,n={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null};for(r in t)n[r]!==e&&t[r]!==e&&(n[r]=t[r]);return n}function n(t,n){var s=i(t,n);return function(c){var u=c.length;if(n.a&&3===t.nodeType&&t.nodeValue!==s.a&&c.push(new r({type:"characterData",target:t,oldValue:s.a})),n.b&&s.b&&a(c,t,s.b,n.f),n.c||n.g)var h=function(t,n,i,s){function c(e,n,i,o,l){var c,h,f,d=e.length-1;for(l=-~((d-l)/2);f=e.pop();)c=i[f.j],h=o[f.l],s.c&&l&&Math.abs(f.j-f.l)>=d&&(t.push(r({type:"childList",target:n,addedNodes:[c],removedNodes:[c],nextSibling:c.nextSibling,previousSibling:c.previousSibling})),l--),s.b&&h.b&&a(t,c,h.b,s.f),s.a&&3===c.nodeType&&c.nodeValue!==h.a&&t.push(r({type:"characterData",target:c,oldValue:h.a})),s.g&&u(c,h)}function u(n,i){for(var f,d,p,g,m,v=n.childNodes,b=i.c,y=v.length,x=b?b.length:0,w=0,_=0,S=0;_<y||S<x;)(g=v[_])===(m=(p=b[S])&&p.node)?(s.b&&p.b&&a(t,g,p.b,s.f),s.a&&p.a!==e&&g.nodeValue!==p.a&&t.push(r({type:"characterData",target:g,oldValue:p.a})),d&&c(d,n,v,b,w),s.g&&(g.childNodes.length||p.c&&p.c.length)&&u(g,p),_++,S++):(h=!0,f||(f={},d=[]),g&&(f[p=o(g)]||(f[p]=!0,-1===(p=l(b,g,S,"node"))?s.c&&(t.push(r({type:"childList",target:n,addedNodes:[g],nextSibling:g.nextSibling,previousSibling:g.previousSibling})),w++):d.push({j:_,l:p})),_++),m&&m!==v[_]&&(f[p=o(m)]||(f[p]=!0,-1===(p=l(v,m,_))?s.c&&(t.push(r({type:"childList",target:i.node,removedNodes:[m],nextSibling:b[S+1],previousSibling:b[S-1]})),w--):d.push({j:p,l:S})),S++));d&&c(d,n,v,b,w)}var h;return u(n,i),h}(c,t,s,n);(h||c.length!==u)&&(s=i(t,n))}}function a(t,n,a,i){for(var o,s,l={},c=n.attributes,h=c.length;h--;)s=(o=c[h]).name,i&&i[s]===e||(u(n,o)!==a[s]&&t.push(r({type:"attributes",target:n,attributeName:s,oldValue:a[s],attributeNamespace:o.namespaceURI})),l[s]=!0);for(s in a)l[s]||t.push(r({target:n,type:"attributes",attributeName:s,oldValue:a[s]}))}function i(e,t){var r=!0;return function n(e){var a={node:e};return!t.a||3!==e.nodeType&&8!==e.nodeType?(t.b&&r&&1===e.nodeType&&(a.b=s(e.attributes,(function(r,n){return t.f&&!t.f[n.name]||(r[n.name]=u(e,n)),r}),{})),r&&(t.c||t.a||t.b&&t.g)&&(a.c=function(e,t){for(var r=[],n=0;n<e.length;n++)r[n]=t(e[n],n,e);return r}(e.childNodes,n)),r=t.g):a.a=e.nodeValue,a}(e)}function o(e){try{return e.id||(e.mo_id=e.mo_id||h++)}catch(t){try{return e.nodeValue}catch(r){return h++}}}function s(e,t,r){for(var n=0;n<e.length;n++)r=t(r,e[n],n,e);return r}function l(e,t,r,n){for(;r<e.length;r++)if((n?e[r][n]:e[r])===t)return r;return-1}t._period=30,t.prototype={observe:function(e,r){for(var a={b:!!(r.attributes||r.attributeFilter||r.attributeOldValue),c:!!r.childList,g:!!r.subtree,a:!(!r.characterData&&!r.characterDataOldValue)},i=this.i,o=0;o<i.length;o++)i[o].s===e&&i.splice(o,1);r.attributeFilter&&(a.f=s(r.attributeFilter,(function(e,t){return e[t]=!0,e}),{})),i.push({s:e,o:n(e,a)}),this.h||function(e){!function r(){var n=e.takeRecords();n.length&&e.m(n,e),e.h=setTimeout(r,t._period)}()}(this)},takeRecords:function(){for(var e=[],t=this.i,r=0;r<t.length;r++)t[r].o(e);return e},disconnect:function(){this.i=[],clearTimeout(this.h),this.h=null}};var c=document.createElement("i");c.style.top=0;var u=(c="null"!=c.attributes.style.value)?function(e,t){return t.value}:function(e,t){return"style"!==t.name?t.value:e.style.cssText},h=1;return t}(void 0))},function(e,t,r){"use strict";r(161),r(166),r(183),r(185),r(188),r(190),r(192),r(199),r(202),r(204),r(206),r(209),r(212),r(214),r(216),r(219),r(221),r(234),r(237),r(241),Element.prototype.remove||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)})},function(e,t,r){"use strict";r(162);var n=r(74);e.exports=n.Object.entries},function(e,t,r){"use strict";var n=r(4),a=r(163).entries;n({target:"Object",stat:!0},{entries:function(e){return a(e)}})},function(e,t,r){"use strict";var n=r(8),a=r(9),i=r(16),o=r(164),s=r(83),l=r(14),c=i(r(12).f),u=i([].push),h=n&&a((function(){var e=Object.create(null);return e[2]=2,!c(e,2)})),f=function(e){return function(t){for(var r,a=l(t),i=s(a),f=h&&null===o(a),d=i.length,p=0,g=[];d>p;)r=i[p++],n&&!(f?r in a:c(a,r))||u(g,e?[r,a[r]]:a[r]);return g}};e.exports={entries:f(!0),values:f(!1)}},function(e,t,r){"use strict";var n=r(41),a=r(23),i=r(42),o=r(56),s=r(165),l=o("IE_PROTO"),c=Object,u=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=i(e);if(n(t,l))return t[l];var r=t.constructor;return a(r)&&t instanceof r?r.prototype:t instanceof c?u:null}},function(e,t,r){"use strict";var n=r(9);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,r){"use strict";r(167),r(177);var n=r(74);e.exports=n.Object.fromEntries},function(e,t,r){"use strict";var n=r(14),a=r(168),i=r(169),o=r(54),s=r(47).f,l=r(170),c=r(176),u=r(38),h=r(8),f=o.set,d=o.getterFor("Array Iterator");e.exports=l(Array,"Array",(function(e,t){f(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,r=e.kind,n=e.index++;if(!t||n>=t.length)return e.target=undefined,c(undefined,!0);switch(r){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var p=i.Arguments=i.Array;if(a("keys"),a("values"),a("entries"),!u&&h&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(g){}},function(e,t,r){"use strict";var n=r(36),a=r(81),i=r(47).f,o=n("unscopables"),s=Array.prototype;s[o]===undefined&&i(s,o,{configurable:!0,value:a(null)}),e.exports=function(e){s[o][e]=!0}},function(e,t,r){"use strict";e.exports={}},function(e,t,r){"use strict";var n=r(4),a=r(10),i=r(38),o=r(52),s=r(23),l=r(171),c=r(164),u=r(173),h=r(133),f=r(46),d=r(50),p=r(36),g=r(169),m=r(172),v=o.PROPER,b=o.CONFIGURABLE,y=m.IteratorPrototype,x=m.BUGGY_SAFARI_ITERATORS,w=p("iterator"),_=function(){return this};e.exports=function(e,t,r,o,p,m,S){l(r,t,o);var C,k,A,N=function(e){if(e===p&&T)return T;if(!x&&e&&e in M)return M[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},E=t+" Iterator",L=!1,M=e.prototype,F=M[w]||M["@@iterator"]||p&&M[p],T=!x&&F||N(p),D="Array"===t&&M.entries||F;if(D&&(C=c(D.call(new e)))!==Object.prototype&&C.next&&(i||c(C)===y||(u?u(C,y):s(C[w])||d(C,w,_)),h(C,E,!0,!0),i&&(g[E]=_)),v&&"values"===p&&F&&"values"!==F.name&&(!i&&b?f(M,"name","values"):(L=!0,T=function(){return a(F,this)})),p)if(k={values:N("values"),keys:m?T:N("keys"),entries:N("entries")},S)for(A in k)(x||L||!(A in M))&&d(M,A,k[A]);else n({target:t,proto:!0,forced:x||L},k);return i&&!S||M[w]===T||d(M,w,T,{name:p}),g[t]=T,k}},function(e,t,r){"use strict";var n=r(172).IteratorPrototype,a=r(81),i=r(13),o=r(133),s=r(169),l=function(){return this};e.exports=function(e,t,r,c){var u=t+" Iterator";return e.prototype=a(n,{next:i(+!c,r)}),o(e,u,!1,!0),s[u]=l,e}},function(e,t,r){"use strict";var n,a,i,o=r(9),s=r(23),l=r(22),c=r(81),u=r(164),h=r(50),f=r(36),d=r(38),p=f("iterator"),g=!1;[].keys&&("next"in(i=[].keys())?(a=u(u(i)))!==Object.prototype&&(n=a):g=!0),!l(n)||o((function(){var e={};return n[p].call(e)!==e}))?n={}:d&&(n=c(n)),s(n[p])||h(n,p,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},function(e,t,r){"use strict";var n=r(174),a=r(49),i=r(175);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(o){}return function(r,n){return a(r),i(n),t?e(r,n):r.__proto__=n,r}}():undefined)},function(e,t,r){"use strict";var n=r(16),a=r(33);e.exports=function(e,t,r){try{return n(a(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(i){}}},function(e,t,r){"use strict";var n=r(23),a=String,i=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw new i("Can't set "+a(e)+" as a prototype")}},function(e,t,r){"use strict";e.exports=function(e,t){return{value:e,done:t}}},function(e,t,r){"use strict";var n=r(4),a=r(178),i=r(73);n({target:"Object",stat:!0},{fromEntries:function(e){var t={};return a(e,(function(e,r){i(t,e,r)}),{AS_ENTRIES:!0}),t}})},function(e,t,r){"use strict";var n=r(96),a=r(10),i=r(49),o=r(34),s=r(179),l=r(66),c=r(27),u=r(180),h=r(181),f=r(182),d=TypeError,p=function(e,t){this.stopped=e,this.result=t},g=p.prototype;e.exports=function(e,t,r){var m,v,b,y,x,w,_,S=r&&r.that,C=!(!r||!r.AS_ENTRIES),k=!(!r||!r.IS_RECORD),A=!(!r||!r.IS_ITERATOR),N=!(!r||!r.INTERRUPTED),E=n(t,S),L=function(e){return m&&f(m,"normal",e),new p(!0,e)},M=function(e){return C?(i(e),N?E(e[0],e[1],L):E(e[0],e[1])):N?E(e,L):E(e)};if(k)m=e.iterator;else if(A)m=e;else{if(!(v=h(e)))throw new d(o(e)+" is not iterable");if(s(v)){for(b=0,y=l(e);y>b;b++)if((x=M(e[b]))&&c(g,x))return x;return new p(!1)}m=u(e,v)}for(w=k?e.next:m.next;!(_=a(w,m)).done;){try{x=M(_.value)}catch(F){f(m,"throw",F)}if("object"==typeof x&&x&&c(g,x))return x}return new p(!1)}},function(e,t,r){"use strict";var n=r(36),a=r(169),i=n("iterator"),o=Array.prototype;e.exports=function(e){return e!==undefined&&(a.Array===e||o[i]===e)}},function(e,t,r){"use strict";var n=r(10),a=r(33),i=r(49),o=r(34),s=r(181),l=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(a(r))return i(n(r,e));throw new l(o(e)+" is not iterable")}},function(e,t,r){"use strict";var n=r(101),a=r(32),i=r(19),o=r(169),s=r(36)("iterator");e.exports=function(e){if(!i(e))return a(e,s)||a(e,"@@iterator")||o[n(e)]}},function(e,t,r){"use strict";var n=r(10),a=r(49),i=r(32);e.exports=function(e,t,r){var o,s;a(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(l){s=!0,o=l}if("throw"===t)throw r;if(s)throw o;return a(o),r}},function(e,t,r){"use strict";r(184);var n=r(74);e.exports=n.Object.values},function(e,t,r){"use strict";var n=r(4),a=r(163).values;n({target:"Object",stat:!0},{values:function(e){return a(e)}})},function(e,t,r){"use strict";r(186);var n=r(74);e.exports=n.Math.sign},function(e,t,r){"use strict";r(4)({target:"Math",stat:!0},{sign:r(187)})},function(e,t,r){"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},function(e,t,r){"use strict";r(189);var n=r(91);e.exports=n("Array","findIndex")},function(e,t,r){"use strict";var n=r(4),a=r(95).findIndex,i=r(168),o=!0;"findIndex"in[]&&Array(1).findIndex((function(){o=!1})),n({target:"Array",proto:!0,forced:o},{findIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:undefined)}}),i("findIndex")},function(e,t,r){"use strict";r(191);var n=r(91);e.exports=n("Array","find")},function(e,t,r){"use strict";var n=r(4),a=r(95).find,i=r(168),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),n({target:"Array",proto:!0,forced:o},{find:function(e){return a(this,e,arguments.length>1?arguments[1]:undefined)}}),i("find")},function(e,t,r){"use strict";r(193),r(195);var n=r(74);e.exports=n.Array.from},function(e,t,r){"use strict";var n=r(194).charAt,a=r(119),i=r(54),o=r(170),s=r(176),l=i.set,c=i.getterFor("String Iterator");o(String,"String",(function(e){l(this,{type:"String Iterator",string:a(e),index:0})}),(function(){var e,t=c(this),r=t.string,a=t.index;return a>=r.length?s(undefined,!0):(e=n(r,a),t.index+=e.length,s(e,!1))}))},function(e,t,r){"use strict";var n=r(16),a=r(64),i=r(119),o=r(18),s=n("".charAt),l=n("".charCodeAt),c=n("".slice),u=function(e){return function(t,r){var n,u,h=i(o(t)),f=a(r),d=h.length;return f<0||f>=d?e?"":undefined:(n=l(h,f))<55296||n>56319||f+1===d||(u=l(h,f+1))<56320||u>57343?e?s(h,f):n:e?c(h,f,f+2):u-56320+(n-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},function(e,t,r){"use strict";var n=r(4),a=r(196);n({target:"Array",stat:!0,forced:!r(198)((function(e){Array.from(e)}))},{from:a})},function(e,t,r){"use strict";var n=r(96),a=r(10),i=r(42),o=r(197),s=r(179),l=r(100),c=r(66),u=r(73),h=r(180),f=r(181),d=Array;e.exports=function(e){var t=i(e),r=l(this),p=arguments.length,g=p>1?arguments[1]:undefined,m=g!==undefined;m&&(g=n(g,p>2?arguments[2]:undefined));var v,b,y,x,w,_,S=f(t),C=0;if(!S||this===d&&s(S))for(v=c(t),b=r?new this(v):d(v);v>C;C++)_=m?g(t[C],C):t[C],u(b,C,_);else for(w=(x=h(t,S)).next,b=r?new this:[];!(y=a(w,x)).done;C++)_=m?o(x,g,[y.value,C],!0):y.value,u(b,C,_);return b.length=C,b}},function(e,t,r){"use strict";var n=r(49),a=r(182);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(o){a(e,"throw",o)}}},function(e,t,r){"use strict";var n=r(36)("iterator"),a=!1;try{var i=0,o={next:function(){return{done:!!i++}},"return":function(){a=!0}};o[n]=function(){return this},Array.from(o,(function(){throw 2}))}catch(s){}e.exports=function(e,t){try{if(!t&&!a)return!1}catch(s){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(s){}return r}},function(e,t,r){"use strict";r(200);var n=r(91);e.exports=n("Array","fill")},function(e,t,r){"use strict";var n=r(4),a=r(201),i=r(168);n({target:"Array",proto:!0},{fill:a}),i("fill")},function(e,t,r){"use strict";var n=r(42),a=r(63),i=r(66);e.exports=function(e){for(var t=n(this),r=i(t),o=arguments.length,s=a(o>1?arguments[1]:undefined,r),l=o>2?arguments[2]:undefined,c=l===undefined?r:a(l,r);c>s;)t[s++]=e;return t}},function(e,t,r){"use strict";r(203);var n=r(91);e.exports=n("Array","includes")},function(e,t,r){"use strict";var n=r(4),a=r(62).includes,i=r(9),o=r(168);n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:undefined)}}),o("includes")},function(e,t,r){"use strict";r(205),e.exports=Math.pow(2,-52)},function(e,t,r){"use strict";r(4)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},function(e,t,r){"use strict";r(207);var n=r(74);e.exports=n.Number.parseFloat},function(e,t,r){"use strict";var n=r(4),a=r(208);n({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},function(e,t,r){"use strict";var n=r(5),a=r(9),i=r(16),o=r(119),s=r(118).trim,l=r(120),c=i("".charAt),u=n.parseFloat,h=n.Symbol,f=h&&h.iterator,d=1/u(l+"-0")!=-Infinity||f&&!a((function(){u(Object(f))}));e.exports=d?function(e){var t=s(o(e)),r=u(t);return 0===r&&"-"===c(t,0)?-0:r}:u},function(e,t,r){"use strict";r(210);var n=r(74);e.exports=n.Number.parseInt},function(e,t,r){"use strict";var n=r(4),a=r(211);n({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},function(e,t,r){"use strict";var n=r(5),a=r(9),i=r(16),o=r(119),s=r(118).trim,l=r(120),c=n.parseInt,u=n.Symbol,h=u&&u.iterator,f=/^[+-]?0x/i,d=i(f.exec),p=8!==c(l+"08")||22!==c(l+"0x16")||h&&!a((function(){c(Object(h))}));e.exports=p?function(e,t){var r=s(o(e));return c(r,t>>>0||(d(f,r)?16:10))}:c},function(e,t,r){"use strict";r(213),e.exports=-9007199254740991},function(e,t,r){"use strict";r(4)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,r){"use strict";r(215),e.exports=9007199254740991},function(e,t,r){"use strict";r(4)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,r){"use strict";r(217);var n=r(74);e.exports=n.Number.isFinite},function(e,t,r){"use strict";r(4)({target:"Number",stat:!0},{isFinite:r(218)})},function(e,t,r){"use strict";var n=r(5).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&n(e)}},function(e,t,r){"use strict";r(220);var n=r(74);e.exports=n.Number.isNaN},function(e,t,r){"use strict";r(4)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,r){"use strict";r(167),r(125),r(222),r(193);var n=r(74);e.exports=n.Set},function(e,t,r){"use strict";r(223)},function(e,t,r){"use strict";r(224)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),r(231))},function(e,t,r){"use strict";var n=r(4),a=r(5),i=r(16),o=r(70),s=r(50),l=r(225),c=r(178),u=r(229),h=r(23),f=r(19),d=r(22),p=r(9),g=r(198),m=r(133),v=r(230);e.exports=function(e,t,r){var b=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),x=b?"set":"add",w=a[e],_=w&&w.prototype,S=w,C={},k=function(e){var t=i(_[e]);s(_,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(y&&!d(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return y&&!d(e)?undefined:t(this,0===e?0:e)}:"has"===e?function(e){return!(y&&!d(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(o(e,!h(w)||!(y||_.forEach&&!p((function(){(new w).entries().next()})))))S=r.getConstructor(t,e,b,x),l.enable();else if(o(e,!0)){var A=new S,N=A[x](y?{}:-0,1)!==A,E=p((function(){A.has(1)})),L=g((function(e){new w(e)})),M=!y&&p((function(){for(var e=new w,t=5;t--;)e[x](t,t);return!e.has(-0)}));L||((S=t((function(e,t){u(e,_);var r=v(new w,e,S);return f(t)||c(t,r[x],{that:r,AS_ENTRIES:b}),r}))).prototype=_,_.constructor=S),(E||M)&&(k("delete"),k("has"),b&&k("get")),(M||N)&&k(x),y&&_.clear&&delete _.clear}return C[e]=S,n({global:!0,constructor:!0,forced:S!==w},C),m(S,e),y||r.setStrong(S,e,b),S}},function(e,t,r){"use strict";var n=r(4),a=r(16),i=r(57),o=r(22),s=r(41),l=r(47).f,c=r(60),u=r(71),h=r(226),f=r(43),d=r(228),p=!1,g=f("meta"),m=0,v=function(e){l(e,g,{value:{objectID:"O"+m++,weakData:{}}})},b=e.exports={enable:function(){b.enable=function(){},p=!0;var e=c.f,t=a([].splice),r={};r[g]=1,e(r).length&&(c.f=function(r){for(var n=e(r),a=0,i=n.length;a<i;a++)if(n[a]===g){t(n,a,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,g)){if(!h(e))return"F";if(!t)return"E";v(e)}return e[g].objectID},getWeakData:function(e,t){if(!s(e,g)){if(!h(e))return!0;if(!t)return!1;v(e)}return e[g].weakData},onFreeze:function(e){return d&&p&&h(e)&&!s(e,g)&&v(e),e}};i[g]=!0},function(e,t,r){"use strict";var n=r(9),a=r(22),i=r(17),o=r(227),s=Object.isExtensible,l=n((function(){s(1)}));e.exports=l||o?function(e){return!!a(e)&&((!o||"ArrayBuffer"!==i(e))&&(!s||s(e)))}:s},function(e,t,r){"use strict";var n=r(9);e.exports=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},function(e,t,r){"use strict";var n=r(9);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,r){"use strict";var n=r(27),a=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new a("Incorrect invocation")}},function(e,t,r){"use strict";var n=r(23),a=r(22),i=r(173);e.exports=function(e,t,r){var o,s;return i&&n(o=t.constructor)&&o!==r&&a(s=o.prototype)&&s!==r.prototype&&i(e,s),e}},function(e,t,r){"use strict";var n=r(81),a=r(129),i=r(232),o=r(96),s=r(229),l=r(19),c=r(178),u=r(170),h=r(176),f=r(233),d=r(8),p=r(225).fastKey,g=r(54),m=g.set,v=g.getterFor;e.exports={getConstructor:function(e,t,r,u){var h=e((function(e,a){s(e,f),m(e,{type:t,index:n(null),first:undefined,last:undefined,size:0}),d||(e.size=0),l(a)||c(a,e[u],{that:e,AS_ENTRIES:r})})),f=h.prototype,g=v(t),b=function(e,t,r){var n,a,i=g(e),o=y(e,t);return o?o.value=r:(i.last=o={index:a=p(t,!0),key:t,value:r,previous:n=i.last,next:undefined,removed:!1},i.first||(i.first=o),n&&(n.next=o),d?i.size++:e.size++,"F"!==a&&(i.index[a]=o)),e},y=function(e,t){var r,n=g(e),a=p(t);if("F"!==a)return n.index[a];for(r=n.first;r;r=r.next)if(r.key===t)return r};return i(f,{clear:function(){for(var e=g(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=undefined),delete t[r.index],r=r.next;e.first=e.last=undefined,d?e.size=0:this.size=0},"delete":function(e){var t=g(this),r=y(this,e);if(r){var n=r.next,a=r.previous;delete t.index[r.index],r.removed=!0,a&&(a.next=n),n&&(n.previous=a),t.first===r&&(t.first=n),t.last===r&&(t.last=a),d?t.size--:this.size--}return!!r},forEach:function(e){for(var t,r=g(this),n=o(e,arguments.length>1?arguments[1]:undefined);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),i(f,r?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return b(this,0===e?0:e,t)}}:{add:function(e){return b(this,e=0===e?0:e,e)}}),d&&a(f,"size",{configurable:!0,get:function(){return g(this).size}}),h},setStrong:function(e,t,r){var n=t+" Iterator",a=v(t),i=v(n);u(e,t,(function(e,t){m(this,{type:n,target:e,state:a(e),kind:t,last:undefined})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?h("keys"===t?r.key:"values"===t?r.value:[r.key,r.value],!1):(e.target=undefined,h(undefined,!0))}),r?"entries":"values",!r,!0),f(t)}}},function(e,t,r){"use strict";var n=r(50);e.exports=function(e,t,r){for(var a in t)n(e,a,t[a],r);return e}},function(e,t,r){"use strict";var n=r(26),a=r(129),i=r(36),o=r(8),s=i("species");e.exports=function(e){var t=n(e);o&&t&&!t[s]&&a(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,r){"use strict";r(167),r(235),r(125),r(193);var n=r(74);e.exports=n.Map},function(e,t,r){"use strict";r(236)},function(e,t,r){"use strict";r(224)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),r(231))},function(e,t,r){"use strict";r(238),r(240);var n=r(91);e.exports=n("Array","flat")},function(e,t,r){"use strict";var n=r(4),a=r(239),i=r(42),o=r(66),s=r(64),l=r(97);n({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:undefined,t=i(this),r=o(t),n=l(t,0);return n.length=a(n,t,t,r,0,e===undefined?1:s(e)),n}})},function(e,t,r){"use strict";var n=r(99),a=r(66),i=r(124),o=r(96);e.exports=function s(e,t,r,l,c,u,h,f){for(var d,p=c,g=0,m=!!h&&o(h,f);g<l;)g in r&&(d=m?m(r[g],g,t):r[g],u>0&&n(d)?p=s(e,t,d,a(d),p,u-1)-1:(i(p+1),e[p]=d),p++),g++;return p}},function(e,t,r){"use strict";r(168)("flat")},function(e,t,r){"use strict";r(242);var n=r(91);e.exports=n("String","repeat")},function(e,t,r){"use strict";r(4)({target:"String",proto:!0},{repeat:r(243)})},function(e,t,r){"use strict";var n=r(64),a=r(119),i=r(18),o=RangeError;e.exports=function(e){var t=a(i(this)),r="",s=n(e);if(s<0||s===Infinity)throw new o("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(r+=t);return r}},function(e,t,r){(function(e,t){!function(){"use strict";function r(e){var t=this.constructor;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){return t.reject(r)}))}))}function n(e){return new this((function(t,r){function n(e,r){if(r&&("object"==typeof r||"function"==typeof r)){var o=r.then;if("function"==typeof o)return void o.call(r,(function(t){n(e,t)}),(function(r){a[e]={status:"rejected",reason:r},0==--i&&t(a)}))}a[e]={status:"fulfilled",value:r},0==--i&&t(a)}if(!e||"undefined"==typeof e.length)return r(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var a=Array.prototype.slice.call(e);if(0===a.length)return t([]);for(var i=a.length,o=0;a.length>o;o++)n(o,a[o])}))}function a(e,t){this.name="AggregateError",this.errors=e,this.message=t||""}function i(e){var t=this;return new t((function(r,n){if(!e||"undefined"==typeof e.length)return n(new TypeError("Promise.any accepts an array"));var i=Array.prototype.slice.call(e);if(0===i.length)return n();for(var o=[],s=0;i.length>s;s++)try{t.resolve(i[s]).then(r)["catch"]((function(e){o.push(e),o.length===i.length&&n(new a(o,"All promises were rejected"))}))}catch(u){n(u)}}))}function o(e){return!(!e||"undefined"==typeof e.length)}function s(){}function l(e){if(!(this instanceof l))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],d(e,this)}function c(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,l._immediateFn((function(){var r=1===e._state?t.onFulfilled:t.onRejected;if(null!==r){var n;try{n=r(e._value)}catch(o){return void h(t.promise,o)}u(t.promise,n)}else(1===e._state?u:h)(t.promise,e._value)}))):e._deferreds.push(t)}function u(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var r=t.then;if(t instanceof l)return e._state=3,e._value=t,void f(e);if("function"==typeof r)return void d(function(e,t){return function(){e.apply(t,arguments)}}(r,t),e)}e._state=1,e._value=t,f(e)}catch(i){h(e,i)}}function h(e,t){e._state=2,e._value=t,f(e)}function f(e){2===e._state&&0===e._deferreds.length&&l._immediateFn((function(){e._handled||l._unhandledRejectionFn(e._value)}));for(var t=0,r=e._deferreds.length;r>t;t++)c(e,e._deferreds[t]);e._deferreds=null}function d(e,t){var r=!1;try{e((function(e){r||(r=!0,u(t,e))}),(function(e){r||(r=!0,h(t,e))}))}catch(i){if(r)return;r=!0,h(t,i)}}a.prototype=Error.prototype;var p=setTimeout;l.prototype["catch"]=function(e){return this.then(null,e)},l.prototype.then=function(e,t){var r=new this.constructor(s);return c(this,new function(e,t,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=r}(e,t,r)),r},l.prototype["finally"]=r,l.all=function(e){return new l((function(t,r){function n(e,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var s=o.then;if("function"==typeof s)return void s.call(o,(function(t){n(e,t)}),r)}a[e]=o,0==--i&&t(a)}catch(u){r(u)}}if(!o(e))return r(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(e);if(0===a.length)return t([]);for(var i=a.length,s=0;a.length>s;s++)n(s,a[s])}))},l.any=i,l.allSettled=n,l.resolve=function(e){return e&&"object"==typeof e&&e.constructor===l?e:new l((function(t){t(e)}))},l.reject=function(e){return new l((function(t,r){r(e)}))},l.race=function(e){return new l((function(t,r){if(!o(e))return r(new TypeError("Promise.race accepts an array"));for(var n=0,a=e.length;a>n;n++)l.resolve(e[n]).then(t,r)}))},l._immediateFn="function"==typeof e&&function(t){e(t)}||function(e){p(e,0)},l._unhandledRejectionFn=function(e){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var g=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==t)return t;throw Error("unable to locate global object")}();"function"!=typeof g.Promise?g.Promise=l:(g.Promise.prototype["finally"]||(g.Promise.prototype["finally"]=r),g.Promise.allSettled||(g.Promise.allSettled=n),g.Promise.any||(g.Promise.any=i))}()}).call(this,r(245).setImmediate,r(6))},function(e,t,r){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,a=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(a.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new i(a.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r(246),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(6))},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,a,i,o,s,l=1,c={},u=!1,h=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){i.port2.postMessage(e)}):h&&"onreadystatechange"in h.createElement("script")?(a=h.documentElement,n=function(e){var t=h.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,a.removeChild(t),t=null},a.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(o="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&p(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),n=function(t){e.postMessage(o+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var a={callback:e,args:t};return c[l]=a,n(l),l++},f.clearImmediate=d}function d(e){delete c[e]}function p(e){if(u)setTimeout(p,0,e);else{var t=c[e];if(t){u=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(void 0,r)}}(t)}finally{d(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,r(6),r(247))},function(e,t){var r,n,a=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var l,c=[],u=!1,h=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):h=-1,c.length&&d())}function d(){if(!u){var e=s(f);u=!0;for(var t=c.length;t;){for(l=c,c=[];++h<t;)l&&l[h].run();h=-1,t=c.length}l=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new p(e,t)),1!==c.length||u||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=g,a.addListener=g,a.once=g,a.off=g,a.removeListener=g,a.removeAllListeners=g,a.emit=g,a.prependListener=g,a.prependOnceListener=g,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(250)),i=n(r(489)),o=n(r(490)),s=n(r(313)),l=r(254);a["default"].addDep(s["default"]);var c,u=(c={},function(e){var t=e;return t=t&&t.replace(/(^\s*)|(\s*$)/g,"")||"",c[t]||(c[t]={key:t,subject:t.replace(/[^\/]*?$/gi,""),predicate:t.replace(/^.*\//gi,"")})});function h(e){switch(i["default"][e]){case"charts":return Promise.all([r.e(2),r.e(1)]).then(r.t.bind(null,492,7));case"timeseries":return Promise.all([r.e(2),r.e(3)]).then(r.t.bind(null,775,7));case"powercharts":return Promise.all([r.e(2),r.e(4)]).then(r.t.bind(null,960,7));case"widgets":return Promise.all([r.e(2),r.e(5)]).then(r.t.bind(null,1125,7));case"zoomline":return Promise.all([r.e(2),r.e(6)]).then(r.t.bind(null,1223,7));case"gantt":return Promise.all([r.e(2),r.e(7)]).then(r.t.bind(null,1234,7));case"treemap":return Promise.all([r.e(2),r.e(8)]).then(r.t.bind(null,1252,7));case"zoomscatter":return Promise.all([r.e(2),r.e(9)]).then(r.t.bind(null,1258,7));case"msstackedcolumn2dsplinedy":return Promise.all([r.e(2),r.e(10)]).then(r.t.bind(null,1262,7));case"overlappedbar2d":return Promise.all([r.e(2),r.e(11)]).then(r.t.bind(null,1266,7));case"overlappedcolumn2d":return Promise.all([r.e(2),r.e(12)]).then(r.t.bind(null,1271,7));default:return(0,o["default"])(""+a["default"].getScriptBaseURI()+function(e){var t,r=a["default"].options,n=e;return n=function(e){return void 0===e&&(e=""),""===e?e:e.replace(/^[\s\S]*\//gi,"").replace(/\?/g,"%3F").replace(/\#/g,"%23").replace(/\:/g,"%3A")}((t=u(n)).predicate),t.subject+r.html5ScriptNamePrefix+n+r.html5ScriptNameSuffix}(e))}}a["default"].addEventListener("resourceRequested",(function(e){var t=e.sender,r=t.chartType(),n=t.options.chartTypeSourcePath||"";a["default"].getDep(r,"chartapi")||a["default"].getDep(r,"maps")||a["default"].addDep({name:r,type:"dependency",extension:h(n+r)})})),a["default"].addEventListener("preconfigure",(function(e){var t=e.sender;if("chartAPI"===t.getType()){var n=t.getFromEnv("dataSource");n&&n.chart&&(0,l.pluck)(n.chart.exportenabled,0)&&!a["default"].getDep("ExcelExport")&&a["default"].addDep({name:"ExcelExport",extension:Promise.all([r.e(2),r.e(13)]).then(r.t.bind(null,1275,7)).then((function(e){var t=e["default"];a["default"].addDep(t)}))}),n&&n.chart&&(0,l.pluckNumber)(n.chart.accessibility,0)&&!a["default"].getDep("AccessibilityExtension")&&a["default"].addDep({name:"AccessibilityExtension",extension:Promise.all([r.e(2),r.e(14)]).then(r.t.bind(null,1284,7)).then((function(e){var t=e["default"];a["default"].addDep(t)}))})}})),window&&r(491)&&(window.FusionCharts=a["default"]);var f=a["default"];t["default"]=f},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{"default":e}},e.exports["default"]=e.exports,e.exports.__esModule=!0},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(251)),i=r(261),o=n(r(445)),s=r(457),l=r(485),c=r(486);a["default"].DataStore=o["default"],a["default"].DataStore.Operators={between:s.between,equals:s.equals,less:s.less,lessEquals:s.lessEquals,greater:s.greater,greaterEquals:s.greaterEquals,filter:s.filter,select:s.select,groupBy:s.groupBy,pipe:s.pipe,sort:s.sort,pivot:s.pivot},a["default"].Utils={duration:c.duration,before:c.before,after:c.after,parseDate:c.parseDate,formatDate:c.formatDate,DatetimeUnits:c.DatetimeUnits,Weekdays:c.Weekdays},a["default"].DataStore.Aggregators={aggregatorStore:l.aggregatorStore};var u=["type","id","width","height","debugMode","registerWithJS","backgroundColor","scaleMode","lang","detectFlashVersion","autoInstallRedirect"],h=function(e,t){var r,n;for(r=0,n=u.length;r<n;r++)"object"==typeof t[r]?Object.assign(e,t[r]):e[u[r]]=t[r];return e};function f(e){var t=e;return this instanceof f?(1===arguments.length&&"object"==typeof t||(t=h({},arguments)),new a["default"](t)):1===arguments.length&&t instanceof Array&&"private"===t[0]?a["default"].register("module",t):1===arguments.length&&"string"==typeof t?a["default"].getChartFromId(t):void(0,i.raiseError)(f,"25081840","run","",new SyntaxError('Use the "new" keyword while creating a new FusionCharts object'))}Object.getOwnPropertyNames(a["default"]).filter((function(e){return!0===Object.getOwnPropertyDescriptor(a["default"],e).writable})).forEach((function(e){f[e]=a["default"][e]}));var d=f;t["default"]=d},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(252));r(311);var i=n(r(313));a["default"].addDep(i["default"]);var o=a["default"];t["default"]=o},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(253)),i=r(254),o=r(261),s=r(262),l=r(263),c=n(r(264)),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var r=S(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n["default"]=e,r&&r.set(e,n);return n}(r(265)),h=n(r(279)),f=r(266),d=n(r(282)),p=n(r(283)),g=n(r(284)),m=n(r(285)),v=n(r(288)),b=n(r(290)),y=n(r(291)),x=n(r(306)),w=n(r(310)),_=n(r(275));function S(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(S=function(e){return e?r:t})(e)}function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach((function(t){(0,a["default"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var A,N,E,L,M,F,T="3.21.1",D=new Date("2021-09-20").getTime(),I=new Date("2020-08-20").getTime(),O=new Date("2020-08-20").getTime(),P=void 0===P?"":new Date("2020-08-20").getTime(),R=new Date("2020-08-20").getTime(),j=new Date("2020-08-20").getTime(),B=/(^|[\/\\])(fusioncharts\.js)([\?#].*)?$/gi,V=/^(FusionCharts|FusionWidgets|FusionMaps)/,z=/[^\%\d]*$/gi,U=/url$/i,H="relative",q="left",G="normal",W="inline-block",$="1",X="middle",Y="normal",K="normal",J="normal",Z="none",Q="inline",ee="0",te="0",re="none",ne="ltr",ae="none",ie=function(e){return e.toString().toLowerCase()},oe=function(){return{state:2}},se=(N={},E=function Ie(){var e,t,r,n,a,i=0,o=parseInt(Te.options.visibilityTrackingInterval,10)||300;for(e in N)if(i+=1,t=N[e].chart,r=N[e].container,n=N[e].insertMode,a=N[e].callback,t.disposed||!le(r)){if(delete N[e],i-=1,delete t.containerHidden,t.disposed)return;t.renderOpts={containerElement:r,insertMode:n,callback:a},t._addChartDependency("chartContainer",{scopeOf:t,opts:{containerElement:r,insertMode:n,callback:a},resolve:Me}),t._setState()}else N[e]&&N[e].chart&&(N[e].chart.containerHidden=!0,N[e].chart._addChartDependency("chartContainer",{resolve:oe}),N[e].chart._setState());A=i?setTimeout(Ie,o):clearTimeout(A)},function(e,t,r,n){N[e.id]={chart:e,container:t,insertMode:r,callback:n},A||(A=setTimeout(E,parseInt(Te.options.visibilityTrackingInterval,10)||300))}),le=function Oe(e){var t=e.parentNode;return!!t&&9!==t.nodeType&&("none"===function(e,t){var r=t;return window.getComputedStyle?r=window.getComputedStyle(e).getPropertyValue(r):e.currentStyle&&(r=e.currentStyle[r]),r}(e,"display")||!!t&&Oe(t))},ce=0,ue=!1,he=["disposed","error","waiting","ready","initialized"],fe={},de="https://www.fusioncharts.com/dev/migration/deprecated-functionalities?version=3.13.0",pe='You are using incompatible files or deprecated "register" API of FusionCharts, please go through the docs to know more at '+de;function ge(){return this.state}function me(){return this.msg}function ve(){return this.msgStyle}function be(){return"chartobject-"+(be.lastId+=1)}function ye(e){var t,r={};for(t in e)r[t.toLowerCase()]=e[t];return r}function xe(e){var t,r=[];for(t in e)r.push(t+"_"+e[t]);return r.sort(),r.join(",")}function we(e){var t,r,n=e.options,a=e.args;return t={imageHAlign:a.loadMessageImageHAlign||n.baseChartMessageImageHAlign,imageVAlign:a.loadMessageImageVAlign||n.baseChartMessageImageVAlign,imageAlpha:a.loadMessageImageAlpha||n.baseChartMessageImageAlpha,imageScale:a.loadMessageImageScale||n.baseChartMessageImageScale},r={color:a.loadMessageColor||n.baseChartMessageColor,fontFamily:a.loadMessageFont||n.baseChartMessageFont,fontSize:a.loadMessageFontSize||n.baseChartMessageFontSize},{msg:e.options.showChartLoadingMessage?n.PBarLoadingText||n.loadMessage:"",msgStyle:{message:r,image:t}}}function _e(e){var t,r,n=e.args,a=e.options;return t={imageHAlign:n.typeNotSupportedMessageImageHAlign||a.baseChartMessageImageHAlign,imageVAlign:n.typeNotSupportedMessageImageVAlign||a.baseChartMessageImageVAlign,imageAlpha:n.typeNotSupportedMessageImageAlpha||a.baseChartMessageImageAlpha,imageScale:n.typeNotSupportedMessageImageScale||a.baseChartMessageImageScale},r={color:n.typeNotSupportedMessageColor||a.baseChartMessageColor,fontFamily:n.typeNotSupportedMessageFont||a.baseChartMessageFont,fontSize:n.typeNotSupportedMessageFontSize||a.baseChartMessageFontSize},ue&&(a.messageURL=de),{msg:ue?pe:a.typeNotSupportedMessage,msgStyle:{image:t,message:r}}}function Se(e){var t,r,n=e.args,a=e.options;return t={imageHAlign:n.browserNotSupportedMessageImageHAlign||a.baseChartMessageImageHAlign,imageVAlign:n.browserNotSupportedMessageImageVAlign||a.baseChartMessageImageVAlign,imageAlpha:n.browserNotSupportedMessageImageAlpha||a.baseChartMessageImageAlpha,imageScale:n.browserNotSupportedMessageImageScale||a.baseChartMessageImageScale},r={color:n.browserNotSupportedMessageColor||a.baseChartMessageColor,fontFamily:n.browserNotSupportedMessageFont||a.baseChartMessageFont,fontSize:n.browserNotSupportedMessageFontSize||a.baseChartMessageFontSize},{msg:a.browserNotSupportedMessage,msgStyle:{image:t,message:r}}}function Ce(){ue=!0}function ke(e){var t,r,n,a=this.opts,c=a.data,u=a.sanitisedFormat,h=a.silent,f=(0,s.getDepsByType)("transcoder"),d=f[u]&&f[u](),p=e.options,g=function(e){var t,r,n=e.options,a=e.args;return t={imageHAlign:(0,i.pluck)(a.dataInvalidMessageImageHAlign,n.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:(0,i.pluck)(a.dataInvalidMessageImageVAlign,n.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:(0,i.pluckNumber)(a.dataInvalidMessageImageAlpha,n.baseChartMessageImageAlpha),imageScale:(0,i.pluckNumber)(a.dataInvalidMessageImageScale,n.baseChartMessageImageScale)},r={fontFamily:a.dataInvalidMessageFont||n.baseChartMessageFont,fontSize:a.dataInvalidMessageFontSize||n.baseChartMessageFontSize,color:a.dataInvalidMessageColor||n.baseChartMessageColor},{msg:n.dataInvalidMessage,msgStyle:{image:t,message:r}}}(e),m=g.msg,v=g.msgStyle;return e.__state.newDataArrived=!0,d&&d.toJSON?n=(r=d.toJSON(c,e)).error?{state:1,msg:m,msgStyle:v}:{state:3}:(r={error:new Error("Unable to convert data.")},n={state:1,msg:m,msgStyle:v}),t=r.error?r:r.data,p.dataErroneous=p.error=r.error,p.dataSource=t,p.dataFormat=u,p.dataErroneous||(0,o.triggerEvent)("beforeDataUpdate",e,function(e,t,r,n){var a={};return a.native="json"===r,a.dataFormat=r,a.format="json",a.data=t,a.dataSource=e,a.silent=!!n,a}(c,t,u,h),M,l.onDataUpdateSuccess,l.onDataUpdateCancel),n}function Ae(e){var t,r,n,a,l,c,u,h=this.opts,f=h.url,d=void 0===f?"":f,p=h.format,g=h.config,m=h.callback,v=h.silent,b=(0,s.getDepsByType)("transcoder"),y=(c=(n=e).options,u=n.args,a={imageHAlign:(0,i.pluck)(u.dataLoadStartMessageImageHAlign,c.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:(0,i.pluck)(u.dataLoadStartMessageImageVAlign,c.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:(0,i.pluckNumber)(u.dataLoadStartMessageImageAlpha,c.baseChartMessageImageAlpha),imageScale:(0,i.pluckNumber)(u.dataLoadStartMessageImageScale,c.baseChartMessageImageScale)},l={fontFamily:u.dataLoadStartMessageFont||c.baseChartMessageFont,fontSize:u.dataLoadStartMessageFontSize||c.baseChartMessageFontSize,color:u.dataLoadStartMessageColor||c.baseChartMessageColor},{msg:c.dataLoadStartMessage,msgStyle:{image:a,message:l}}),x=y.msg,w=y.msgStyle;return null!=p&&"function"==typeof p.toString||(p=e.options.dataFormat,(0,o.raiseWarning)(e,"03091609","param","FusionCharts#setChartDataUrl","Invalid Data Format. Reverting to current data format - "+p)),t=ie(p),U.test(t)||(t+="url"),r=b[t]&&b[t](),e.jsVars.stallLoad=!0,r&&r.toJSON?(r.toJSON(d,g,m,v,e),{state:2,msg:x,msgStyle:w}):{state:1,error:new Error("Unable to fetch data.")}}function Ne(e){var t,r,n=e.__state,a=e.chartType(),l=e.apiInstance&&e.apiInstance.getFromEnv("toolTipController")&&e.apiInstance.getFromEnv("toolTipController").toolTips,c=(0,s.getDep)(n.lastRenderedType,"chartapi")||(0,s.getDep)(n.lastRenderedType,"maps");if(l&&(0,i.removeAllTooltipOnChart)(l,n.lastRenderedType===a),c&&n.lastRenderedType!==a&&((0,o.triggerEvent)("chartTypeChanged",e,{previousType:n.lastRenderedType,newType:a}),t=c))for(r in t)delete e[r];n.lastRenderedType=a}function Ee(e){var t=we(e),n=t.msgStyle,a=t.msg;return Promise.all([r.e(2),r.e(15)]).then(r.t.bind(null,1298,7)).then((function(t){Te.addDep(t["default"]),Ne(e),e._addChartDependency("mapModuleLoad",{resolve:function(){return{state:3}}}),(0,o.triggerEvent)("loaded",e,{type:e.chartType(),renderer:"javascript"},[e.id]),e._setState()}))["catch"]((function(){var t=_e(e),r=t.msgStyle,n=t.msg;e._addChartDependency("mapModuleLoad",{resolve:function(){return{state:1,msgStyle:r,msg:n}}}),(0,o.raiseError)(Te,"12052314141","run","JavaScriptRenderer~Maps",new Error("FusionCharts' maps file is required to render the visualization.")),e._setState(),(0,o.triggerEvent)("charttypeinvalid",e,{},[e.id])})),{state:2,msgStyle:n,msg:a}}function Le(e){var t=this.opts.value,r=Te.getDep(t,"dependency")||Te.getDep(t,"chartapi")||Te.getDep(t,"maps"),n=_e(e),a=n.msgStyle,i=n.msg;return ue=!1,r?r.then?(Te.addEventListener("register",Ce),r.then((function(r){if(!e.disposed){if(r.__esModule){var n=(0,s.getDep)(t,"maps");Te.addDep(r["default"]),!n&&Ne(e),e._addChartDependency("chartModuleLoad",{resolve:function(){return n?e._addChartDependency("mapModuleLoad",{scopeOf:e,resolve:Ee}):(0,o.triggerEvent)("loaded",e,{type:t,renderer:"javascript"},[e.id]),{state:3}}})}else e._addChartDependency("chartModuleLoad",{resolve:function(){return(0,s.getDep)(t,"maps")?e._addChartDependency("mapModuleLoad",{scopeOf:e,resolve:Ee}):(Ne(e),(0,o.triggerEvent)("loaded",e,{type:t,renderer:"javascript"},[e.id])),{state:3}}});e._setState()}}))["catch"]((function(t){if(!e.disposed){if(!(t instanceof Event))throw new Error(t.stack);e._addChartDependency("chartModuleLoad",{resolve:function(){return k({state:1},_e(e))}}),e._setState(),(0,o.triggerEvent)("charttypeinvalid",e,{},[e.id])}})),k({state:2},we(e))):((0,s.getDep)(t,"maps")?(e._addChartDependency("mapModuleLoad",{scopeOf:e,resolve:Ee}),e._setState()):(Ne(e),(0,o.triggerEvent)("loaded",e,{type:t,renderer:"javascript"},[e.id])),{state:3}):((0,o.triggerEvent)("charttypeinvalid",this,{},[this.id]),{state:1,msgStyle:a,msg:i})}function Me(e){var t,r,n,a,s=this.opts,l=s.containerElement,c=s.insertMode,u=s.callback;if(u?"function"!=typeof u&&(u=M):"function"==typeof c?(u=c,c=M):c||"function"!=typeof l||(u=l,l=M),c=(c||e.options.insertMode).toLowerCase()||i.domInsertModes.REPLACE,void 0===l&&(l=e.options.containerElementId||e.options.containerElement),"string"==typeof l&&(l=document.getElementById(l)),null==l)return(0,o.raiseError)(e,"03091456","run",".render()",new Error("Unable to find the container DOM element.")),(0,o.triggerEvent)("containernotfound",e,{},[e.id]),{state:1};if(function(e,t){var r,n,a,i=document.getElementById(e),o=t.id||t.getAttribute("id");if(null===i)return!1;if(e===o)return!0;for(n=0,a=(r=t.getElementsByTagName("*")).length;n<a;n++)if(r[n]===i)return!1;return!0}(e.id,l))return(0,o.raiseError)(e,"05102109","run",".render()",new Error("A duplicate object already exists with the specific Id: "+e.id)),{state:1};if(le(l))return e.containerHidden=!0,se(e,l,c,u),{state:2};if(delete e.containerHidden,((r=window[e.id])&&r.FusionCharts&&r.FusionCharts===e||(r=e.ref)&&r.FusionCharts&&r.FusionCharts===e)&&(e._dispose(),r===window[e.id]&&(window[e.id]=M)),"undefined"!=typeof window[e.id])return(0,o.raiseError)(e,"25081843","comp",".render",new Error("#25081843:IECompatibility() Chart Id is same as a JavaScript variable name. Variable naming error. Please use unique name for chart JS variable, chart-id and container id.")),{state:1};if((t=document.createElement(e.options.containerElementType||"span")).setAttribute("id",e.id),"append"!==c&&"prepend"!==c)for(;l.hasChildNodes();)l.removeChild(l.firstChild);return"prepend"===c&&l.firstChild?l.insertBefore(t,l.firstChild):l.appendChild(t),e.options.containerElement=l,e.options.containerElementId=l.id,(a=t.style)&&(a.position=H,a.textAlign=q,a.lineHeight=G,a.display=W,a.zoom=$,a["vertical-align"]=X,a.fontWeight=Y,a.fontVariant=K,a.fontStyle=J,a.textDecoration=Z,a["*DISPLAY"]=Q,a.padding=ee,a.margin=te,a.border=re,a.direction=ne,a.transform=ae),e.options.containerClassName&&(t.className=e.options.containerClassName),n=(0,i.normalizeCSSDimension)(e.width,e.height,t),e.__state.renderedWidth=n.pixelWidth,e.__state.renderedHeight=n.pixelHeight,e.__state.rendering=!0,e.renderOpts={containerElement:t,insertMode:c,callback:u},{state:3}}be.lastId=0;var Fe,Te=function(){function e(){var t,n,a=this,s={},l=e.getDep("vml","dependency");(this.__state={},this.id=i.BLANKSTRING,this._deps={},this.__state._unresolvedDeps={},this.__state.state=4,1===arguments.length&&"object"==typeof(arguments.length<=0?undefined:arguments[0])&&(s=arguments.length<=0?undefined:arguments[0]),arguments.length>1&&"object"==typeof((t=arguments.length-1)<0||arguments.length<=t?undefined:arguments[t]))&&(0,i.extend2)(s,(n=arguments.length-1)<0||arguments.length<=n?undefined:arguments[n],!1,!0);this.id="undefined"==typeof s.id?be():s.id,this.args=s,this._parsePolicies(p["default"]),this._attachDefaultEventListeners(),this.jsVars.fcObj=this,(0,o.triggerEvent)("beforeInitialize",this,s),e.items[this.id]instanceof e&&(0,o.raiseWarning)(this,"06091847","param","",new Error('A FusionCharts object with the specified id "'+this.id+'" already exists.Renaming it to '+(this.id=be()))),this.attributes.id=this.id,r.p=e.getScriptBaseURI(),l&&(this._addChartDependency("chartVmlRendererLoad",{resolve:function(){return l.then((function(t){var r=t["default"];e.addDep(r),a._addChartDependency("chartVmlRendererLoad",{resolve:function(){return{state:3}}}),a._setState()}))["catch"]((function(){(0,o.raiseError)(e,"162162788","run",">RendererError~VMLRendererLoad","Unable to load FusionCharts VML renderer."),a._addChartDependency("chartVmlRendererLoad",{resolve:function(){return{state:1}}}),a._setState()})),{state:2}}}),this._setState()),this.chartType&&this.chartType(s.type||s.swfUrl||""),this.setChartData(this.args.dataSource,this.args.dataFormat,M,M,!0),e.items[this.id]=this,e.defaultOptions=e.options,(0,o.triggerEvent)("initialized",this,s),this._setState()}e.getObjectReference=function(t){return void 0===t&&(t=""),e.items[t]&&e.items[t].ref},e.register=function(){(0,o.triggerEvent)("register",e,arguments,M,(function(){(0,o.raiseError)(this,"0604111219","run",".register()",new Error(pe))}))},e.render=function(t,r){return t instanceof e?(t.render(r),t):new e(t).render(r)},e.addDep=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.addDep.call.apply(s.addDep,[this].concat(t))},e.getDep=function(e,t){return s.getDep.call(this,e,t)},e.addEventListener=function(e,t){return(0,o.addListener)(e,t)},e.on=function(t,r){return e.addEventListener(t,r)},e.removeEventListener=function(e,t){return(0,o.removeListener)(e,t)},e.ready=function(t,r,n){void 0===r&&(r=e),void 0===n&&(n=e);var a=function(){t.call(n,r)};"function"==typeof t&&(L?setTimeout(a,0):e.addEventListener("ready",a))},e.formatNumber=function(e,t,r){void 0===t&&(t={});var n,a=ye(t),i=xe(a);return fe[i]?n=fe[i]:fe[i]=n=new g["default"](a,{useScaleRecursively:!0}),n.configure(a),n.dataLabels(e,r)},e._getCleanValue=function(e,t){void 0===t&&(t={});var r,n=ye(t),a=xe(n);return fe[a]?r=fe[a]:(fe[a]=r=new g["default"](n,{useScaleRecursively:!0}),r.configure(n)),r.getCleanValue(e)},e.transcodeData=function(e,t,r,n){var a,i,l,c=(0,s.getDepsByType)("transcoder"),u=ie(r),h=ie(t);if(h&&"function"==typeof h.toString&&u&&"function"==typeof u.toString&&"undefined"!=typeof c[u]&&"undefined"!=typeof c[h])return(l=c[h]()).toJSON&&(a=l.toJSON(e,this),i=c[u]().fromJSON(a.data,this)),a.error instanceof Error||(i.error=a.error),n?i:i.data;(0,o.raiseError)(this,"14090217","param",".transcodeData()","Unrecognized data-format specified during transcoding.")},e.setAnimation=function(t){!e.options._globalAnimationRule&&(e.options._globalAnimationRule=[]),e.options._globalAnimationRule.push(t)},e.setEasingEffect=function(t,r){e.getDep("redraphael","plugin").easing_formulas[t]=r},e.getScriptBaseURI=function(){return e.options.scriptBaseUri},e.setScriptBaseURI=function(t){e.options.scriptBaseUri=t,r.p=t},e.getChartFromId=function(t){return e.items[t]},e.getVersion=function(e){var t={fcs:T,"fcs-xt":{fc:"3.21.1",fw:"3.21.1",pc:"3.21.1",fm:"3.21.1"},ft:"2.8.2"};return t[e]||t["fcs-xt"][e]||t},e.getReleaseDate=function(e){var t={fcs:D,"fcs-xt":{fc:P,fw:I,pc:O,fm:R},ft:j};return t[e]||t["fcs-xt"][e]||t};var t=e.prototype;return t._attachDefaultEventListeners=function(){var e,t,r=this.options.events;if(r)for(e in r)"function"==typeof r[e]&&this.addEventListener(e,r[e]);for(t in this.options.renderer="javascript",c["default"])this.addEventListener(t,c["default"][t])},t._setState=function(){var e,t,r=this._deps,n=this.__state.state,a=4;for(var i in r)r.hasOwnProperty(i)&&(a>(t=(e=r[i]).getState())&&(a=t,this.__state.currChartMsg=e.getMsg(),this.__state.currChartMsgStyle=e.getMsgStyle()),3===t&&this._removeChartDependency(i));if(this.__state.prevState=n,this.__state.state=a,n!==a&&(0,o.triggerEvent)("stateChanged",this,{prevState:he[n],state:he[a]},[this.id]),!this.containerHidden)if(3===a&&this.__state.renderInvoked&&this.__state.isDrawInvoked){var s=this.renderOpts,l=s.containerElement,c=s.callback;this._renderChart(l,M,c),this._clearPrevContext(),delete this.renderOpts.callback}else if((2===a||1===a)&&this.__state.renderInvoked&&this.__state.isDrawInvoked&&this._contextChanged()&&(!this.__state.renderComplete||2!==a)){var u=this.renderOpts,h=u.containerElement,f=u.callback;this._renderChart(h,"base",1===a&&f,this.__state.currChartMsg,this.__state.currChartMsgStyle),this._clearPrevContext(),1===a&&delete this.renderOpts.callback}},t._clearPrevContext=function(){this.__state.prevChartMsg=i.BLANKSTRING,this.__state.prevChartMsgStyle={}},t._contextChanged=function(){if(this.__state.currChartMsg!==this.__state.prevChartMsg)return this.__state.prevChartMsg=this.__state.currChartMsg,this.__state.prevChartMsgStyle=this.__state.currChartMsgStyle,!0;var e=this.__state.prevChartMsgStyle&&this.__state.prevChartMsgStyle.image,t=this.__state.currChartMsgStyle&&this.__state.currChartMsgStyle.image,r=this.__state.prevChartMsgStyle&&this.__state.prevChartMsgStyle.message,n=this.__state.currChartMsgStyle&&this.__state.currChartMsgStyle.message;return!(!e||e.imageHAlign===t.imageHAlign&&e.imageVAlign===t.imageVAlign&&e.imageAlpha===t.imageAlpha&&e.imageScale===t.imageScale&&r.color===n.color&&r.fontFamily===n.fontFamily&&r.fontSize===n.fontSize)&&(this.__state.prevChartMsg=this.__state.currChartMsg,this.__state.prevChartMsgStyle=this.__state.currChartMsgStyle,!0)},t._sudoSetState=function(e){this.__state.prevState=this.__state.state,this.__state.state=e,(0,o.triggerEvent)("stateChanged",this,{prevState:he[this.__state.prevState],state:he[this.__state.state]},[this.id])},t._getState=function(){return he[this.__state.state]},t._addChartDependency=function(e,t){this._deps&&this._deps[e]&&this._removeChartDependency(e),this._deps[e]=t,t.getState=ge,t.getMsg=me,t.getMsgStyle=ve,Object.assign(t,t.resolve(t.scopeOf))},t._removeChartDependency=function(e){this._deps[e]&&(this._deps[e].removed=!0,delete this._deps[e])},t._parsePolicies=function(e){var t,r,n,a=this.args;for(t in e)if(p["default"][t]instanceof Array)r=a[e[t][0]],this[t]=void 0===r?e[t][1]:r;else for(n in"object"!=typeof this[t]&&(this[t]={}),e[t])r=a[e[t][n][0]],this[t][n]=void 0===r?e[t][n][1]:r},t.hasRendered=function(){return!(!this.jsVars.hcObj||!this.jsVars.hcObj.hasRendered)},t.setTransparent=function(e){var t,r=e;(t=this.jsVars)&&("boolean"!=typeof r&&null!==r&&(r=!0),t.transparent=null!==r&&!0===r)},t.addEventListener=function(e,t){return(0,o.addListener)(e,t,this)},t.on=function(e,t){return this.addEventListener(e,t)},t.removeEventListener=function(e,t){return(0,o.removeListener)(e,t,this)},t.formatNumber=function(e,t,r,n){var a,o,s,l,c,u=this.apiInstance||{},h=u.numberFormatter,f=r;switch(o=xe(f),f=f&&ye(f)||{},""===o?h?l=h:(s=xe(a=this.options.dataSource.chart||{}),fe[s]?l=fe[s]:fe[s]=l=new g["default"](u,a)):(a=this.options.dataSource.chart||{},s=xe(a=(0,i.extend2)((0,i.extend2)({},a),f)),fe[s]?l=fe[s]:fe[s]=l=new g["default"](u,a)),(t&&t.toLowerCase?t:"").toLowerCase()){case"yaxisvalues":c=l.yAxis(e,n);break;case"xaxisvalues":c=l.xAxis(e);break;case"scale":c=l.scale(e);break;default:c=l.dataLabels(e,n)}return c},t.clone=function(t,r){var n=typeof t,a={},o=r,s=(0,i.extend2)({},this.args,!1,!0);switch(function(e,t,r){var n,a;for(n in e)if(e[n]instanceof Array)t[e[n][0]]=r[n];else for(a in e[n])t[e[n][a][0]]=r[n][a]}(p["default"],s,this),delete s.id,delete s.animate,delete s.stallLoad,a.link=s.link,(s=(0,i.extend2)({},s,!1,!0)).link=a.link,n){case"object":(0,i.extend2)(s,t,!1,!0);break;case"boolean":o=t}return o?s:new e(s)},t.isActive=function(){if(!this.ref||window.document.getElementById(this.id)!==this.ref)return!1;try{return V.test("FusionCharts")}catch(e){return!1}},t.chartType=function(t,r){var n,a=r,s=this.options;if("string"==typeof t&&""!==t){if(a="object"==typeof a?a:{},n=t.replace(/[\?\#][\s\S]*$/g,""),s.chartType=n.replace(/^[\s\S]*\//gi,""),s.chartTypeSourcePath=-1===n.indexOf("/")?a.chartTypeSourcePath||e.options.chartTypeSourcePath||"":n.replace(/[^\/]*?$/gi,""),"zoomscatter"===s.chartType&&!document.createElement("canvas").getContext){var l=Se(this),c=l.msgStyle,u=l.msg;return this._addChartDependency("chartModuleLoad",{scopeOf:this,opts:{value:s.chartType},resolve:function(){return{state:1,msgStyle:c,msg:u}}}),void this._setState()}if(("timeseries"===s.chartType||"chord"===s.chartType||"sankey"===s.chartType)&&i.isIE){var h=Se(this),f=h.msgStyle,d=h.msg;return this._addChartDependency("chartModuleLoad",{scopeOf:this,opts:{value:s.chartType},resolve:function(){return{state:1,msgStyle:f,msg:d}}}),void this._setState()}(0,o.triggerEvent)("resourceRequested",this),this._addChartDependency("chartModuleLoad",{scopeOf:this,opts:{value:s.chartType},resolve:Le}),"undefined"!=typeof a.dataSource&&null!==a.dataSource&&this.setChartData(a.dataSource,a.dataFormat,a.dataConfiguration),this._setState()}else if(t!==M){var p=_e(this),g=p.msgStyle,m=p.msg;return this._addChartDependency("chartModuleLoad",{resolve:function(){return{state:1,msgStyle:g,msg:m}}}),this._setState(),void(0,o.triggerEvent)("charttypeinvalid",this,{},[this.id])}return(s.chartType||"").toLowerCase()},t.setChartDataUrl=function(e,t,r,n,a){var i=e||"";this._addChartDependency("data",{scopeOf:this,opts:{url:i,format:t,config:r,callback:n,silent:a},resolve:Ae}),this._setState()},t.setChartData=function(e,t,r,n,a){void 0===a&&(a=!0);var i,o=this,s=e,l=t,c=he[this.__state.prevState];if("waiting"!==o._getState()||"waiting"!==c){if(o.originalDataSource=e,null!=s){if("string"!=typeof l)switch(typeof s){case"function":s=s.call(o,o.options.dataConfiguration),l=o.args.dataFormat="JSON";break;case"string":l=o.args.dataFormat=/^\s*?\{[\s\S]*\}\s*?$/g.test(l)?"JSON":"XML";break;case"object":l=o.args.dataFormat="JSON"}}else l="json";"xml"===(i=ie(l))&&o.apiInstance&&o.apiInstance.config&&o.apiInstance.config.isXMLUnsupported||(U.test(i)?o.setChartDataUrl(s,i,r,n,a):(this._addChartDependency("data",{opts:{data:s,sanitisedFormat:i,config:r,callback:n,silent:a},scopeOf:o,resolve:ke}),!o.disposed&&this._setState()))}else setTimeout((function(){o.setChartData(e,t,r,n,a)}),100)},t.getChartData=function(e,t,r){var n=e||"json";"object"==typeof e&&e.format&&(n=e.format);var a,o,l=ie(null===n?"json":n),c=(0,s.getDepsByType)("transcoder")[l](),u=this.options,h=this.apiInstance,f=!r&&(a=h&&h.getCollatedData&&h.getCollatedData(u.dataSource))?a:u.dataSource;return"object"==typeof e&&1===e.isRaw?o=this.originalDataSource:"xml"===l&&h&&h.config&&h.config.isXMLUnsupported?i.BLANKSTRING:(!(o=c?c.fromJSON?c.fromJSON(f,this):{error:new Error("Unable to convert data.")}:{error:new Error("Data format not recognized.")}).error&&u.error&&(o.error=u.error),t?o:o.data)},t.dataReady=function(e){return e?this.__state.dataAvailable:this.__state.dataReady},t.setChartAttribute=function(e,t){var r,n,a,o,s=e;if("string"==typeof s)(s={})[arguments[0]]=t;else if(null===s||"object"!=typeof s)return;for(n in o=0,(a=(r=this.getChartData("json")).chart||r.graph||r.map)||(a={},r=Object.assign({chart:a},r)),s)o+=1,null!==s[n]?a[n.toLowerCase()]=s[n]:delete a[n.toLowerCase()];o>0&&("undefined"==typeof a.animation&&(a.animation=i.ZEROSTRING),this.setChartData(r,"json"))},t.getChartAttribute=function(e){var t,r,n=this.getChartData("json"),a=n&&(n.chart||n.graph||n.map);if(0===arguments.length||void 0===e||void 0===a||null===e)return a;if("string"==typeof e)t=a[e.toString().toLowerCase()];else if(e instanceof Array)for(t={},r=0;r<e.length;r+=1)t[e[r]]=a[e[r].toString().toLowerCase()];else(0,o.raiseError)(this,"25081429","param","~getChartAttribute()",'Unexpected value of "attribute"');return t},t.render=function(e,t,r){var n=e||M,a=t||M,i=r||M;return this.disposed||(this.__state.beforeRenderFired=!1,this._addChartDependency("chartContainer",{scopeOf:this,opts:{containerElement:n,insertMode:a,callback:i},resolve:Me}),this.__state.renderInvoked=!0,this.__state.isDrawInvoked=!0),this._setState(),this},t._renderChart=function(e,t,r,n,a,i){if(void 0===i&&(i=!1),!this.disposed){var s,l=this,c=function(){!0!==l.disposed&&l._render(e,t,r&&function(){if(r)try{r.call(l,l.options.containerElement)}catch(e){setTimeout((function(){throw e}))}},n,a)};return i||this.__state.beforeRenderFired?c():(this.__state.beforeRenderFired=!0,(0,o.triggerEvent)("beforeRender",this,s={container:l.options.containerElement,width:this.width,height:this.height,renderer:this.options.renderer},M,c,(function(){(0,o.triggerEvent)("renderCancelled",l,s),this.__state.renderInvoked=!1}))),this}},t._render=function(t,r,n,a,i){var s=this;s.apiInstance&&s.apiInstance.removeJob("resizeScheduled"),s.__state.beforedrawFired?((0,u["default"])(e,s,t,r,n,a,i),s.__state.beforedrawFired=!0):(0,o.triggerEvent)("beforedraw",s,{},M,(function(){(0,u["default"])(e,s,t,r,n,a,i)}),(function(){(0,o.triggerEvent)("drawCancelled",s),this.__state.isDrawInvoked=!1}))},t.resizeTo=function(e,t,r){var n=this,a=n.width,i=n.height,s=n.__state,l=r,c=t,u=e;return(n.apiInstance&&n.apiInstance.config||{}).resize=!0,null!==u&&"object"==typeof u&&(l=c,c=u.h,u=u.w),u=null==u?a:u.toString().replace(z,""),c=null==c?i:c.toString().replace(z,""),!0!==l&&(0,o.triggerEvent)("beforeresize",n,{currentWidth:a,currentHeight:i,newWidth:u,newHeight:c},M,(function(){n.width=u,n.height=c,n.scheduleResize({width:u,height:c}),n.apiInstance&&n.apiInstance.addJob("resized"+ce++,(function(){(0,o.triggerEvent)("resized",n,{id:n.id,width:n.width,height:n.height,prevWidth:a,prevHeight:i,pixelWidth:n.ref&&n.ref.offsetWidth||0,pixelHeight:n.ref&&n.ref.offsetHeight||0,originalWidth:s.renderedWidth,originalHeight:s.renderedHeight})}),f.priorityList.postRender)}),(function(){(0,o.triggerEvent)("resizecancelled",n,{currentWidth:a,currentHeight:i,cancelledTargetWidth:u,cancelledTargetHeight:c})})),this},t.dispose=function(){var t=this,r={},n=function(t){for(var n in t._dispose(),t._addChartDependency("dispose",{resolve:function(){return{state:0}}}),t._setState(),(0,o.triggerEvent)("disposed",t,r),(0,o.disposeEvents)(t),delete e.items[t.id],t)t.hasOwnProperty(n)&&delete t[n];return t.disposed=!0,{state:0}};(0,o.triggerEvent)("beforeDispose",t,r,M,(function(){t._addChartDependency("dispose",{scopeOf:t,resolve:n})}),(function(){(0,o.triggerEvent)("disposeCancelled",t,r)}))},t._dispose=function(){var e,t=this.jsVars;this.apiInstance&&(this.apiInstance.removeJob("resizeScheduled"),this.apiInstance.remove({instant:!0}),delete this.apiInstance,delete t.instanceAPI),(e=window[this.id])&&(!function r(e){var t,n,a,i=e.attributes;if(i)for(t=i.length-1;t>=0;t-=1)"function"==typeof e[a=i[t].name]&&(e[a]=null);if(i=e.childNodes)for(n=i.length,t=0;t<n;t+=1)r(e.childNodes[t])}(e),e.parentNode&&e.parentNode.removeChild(e)),t.container=null},t._config=function(e,t){var r,n,a=e,i=this,o=i.jsVars,s=o.msgStore,l=o.cfgStore,c=i.options;for(r in n={LoadingText:"loadMessage",ChartNotSupported:"typeNotSupportedMessage",RenderChartErrorText:"renderErrorMessage",XMLLoadingText:"dataLoadStartMessage",ChartNoDataText:"dataEmptyMessage",LoadDataErrorText:"dataLoadErrorMessage",InvalidXMLText:"dataInvalidMessage"},"string"==typeof a&&arguments.length>1&&(r=a,(a={})[r]=t),a)"undefined"!=typeof s[r]?s[r]=a[r]:l[r.toLowerCase()]=a[r],n[r]?c[n[r]]=a[r]:c[r]=a[r]},t.configure=function(e,t){var r;e&&("string"==typeof e?(r={})[e]=t:r=e,this._config(r))},t.print=function(e){var t=this.apiInstance,r=(0,i.extend2)({},e);if(t.config.isPrinting||!t.config.hasRendered)return!1;(0,o.triggerEvent)("BeforePrint",this,r,M,(function(){var e,n,a,s,l=t.getFromEnv("chart-container"),c=[],u=l.parentNode,h=document.body||document.getElementsByTagName("body")[0],f=h.childNodes;if(t.config.isPrinting=!0,(0,i.fcEach)(f,(function(e,t){1===e.nodeType&&(c[t]=e.style.display,e.style.display="none")})),!1!==r.hideButtons&&(s=t.getChildren("chartMenuBar")))for(a=0,e=(n=s[0].getChildren("tool")).length;a<e;a++)n[0].getChildren("listContainer")[0].hide();h.appendChild(l),window.print(),setTimeout((function(){u.appendChild(l),(0,i.fcEach)(f,(function(e,t){1===e.nodeType&&(e.style.display=c[t])})),r.hideButtons,t.config.isPrinting=!1,(0,o.triggerEvent)("PrintComplete",t.getFromEnv("chartInstance"),r)}),1e3)}),(function(){(0,o.triggerEvent)("PrintCancelled",t.getFromEnv("chartInstance"),r)}))},t.getSVGString=function(e,t){var r,n=this.apiInstance,a=n&&n.getFromEnv("paper");if(t&&t.keepImages&&(r=!0),"function"!=typeof e)return(new XMLSerializer).serializeToString(a.canvas);n.addJob("getSVG",(function(){e(a&&a.toSVG&&a.toSVG(r))}),f.priorityList.postRender)},t.lockResize=function(e){return"boolean"!=typeof e?!!this.jsVars.resizeLocked:this.jsVars.resizeLocked=e},t.showChartMessage=function(e,t,r,n){var a=e||M,i=t||M,o=r||M,s=n||{},l=this,c=l.apiInstance,u=function(){l._showChartMessage(a,i,o,s)};return c&&("base"===c.getName()?l.addEventListener("renderComplete",u):u()),a},t._showChartMessage=function(e,t,r,n){void 0===n&&(n={});var a,o=this,s=e,l=o.jsVars,c=o.apiInstance,u=o.options;c._hideChartMessage(),void 0!==s?(a={fontFamily:(0,i.pluck)(n.font,u.baseChartMessageFont,"Verdana,sans"),fontSize:(0,i.pluck)(n.fontSize,u.baseChartMessageFontSize,10),color:(0,i.pluck)(n.color&&(0,i.convertColor)(n.color,n.alpha),u.baseChartMessageColor)},l.msgStore[s]&&(s=l.msgStore[s]),c.addJob("showMsg",(function(){t&&c&&c.config.hasRendered?(c._show&&c._show(),o.showMessage(s,a,r)):(c._hide&&c._hide(),c.setChartMessage(s,{_chartMessageStyle:a}),c.drawChartMessage())}),f.priorityList.postRender)):o.hideChartMessage()},t._resize=function(){var e=this.apiInstance,t=this.jsVars.container;this.__state.resize=!0,e?(e.config.elScroll=!1,e.getFromEnv("animationManager").setAnimationState("resize"),e.addToEnv("chartWidth",t.offsetWidth),e.addToEnv("chartHeight",t.offsetHeight),this.args.dataSource&&(this.args.dataSource.data||this.args.dataSource.dataset||this.args.dataSource.colorRange)&&this._addChartDependency("resize",{resolve:function(){return{state:3}}})):this._addChartDependency("resize",{resolve:function(){return{state:1}}}),this._setState(),this.__state.resize=!1},t.hideChartMessage=function(){var e=this.apiInstance;e._hideChartMessage(),e._show&&e._show()},t.showMessage=function(e,t,r){void 0===e&&(e="");var n,a,o,s=this.apiInstance,l=s.config,c=s.getFromEnv("paper"),u=s.getFromEnv("smartLabel"),h=s.getFromEnv("animationManager"),f=s.getGraphicalElement("messageText"),d=s.getGraphicalElement("messageVeil"),p=c.width,g=c.height;a=s.getChildContainer("messageGroup"),h.setAnimationState("showmessage"),(n=h.setAnimation({el:a||"group",attr:{name:"messageGroup"},component:s,label:"group"})).show().toFront(),a||s.addChildContainer("messageGroup",n),(d=h.setAnimation({el:d||"rect",attr:{x:0,y:0,width:p,height:g,fill:"rgba(0,0,0,0.2)",stroke:"none"},container:n,component:s,label:"rect"})).off("fc-click",n.hide),d.show().toFront().attr("cursor",r?i.POINTER:"default"),r&&d.on("fc-click",s._hideChartMessage,s),s.addGraphicalElement("messageVeil",d),u.setStyle(t),o=u.getSmartText(e,p-(l.marginRight||0)-(l.marginLeft||0),g-(l.marginTop||0)-(l.marginBotton||0)),(f=h.setAnimation({el:f||"text",attr:{"font-size":t.fontSize,"font-family":t.fontFamily,fill:t.color,text:o.text,"line-height":14,x:p/2,y:g/2},container:n,component:s,label:"text"})).attr("cursor",r?i.POINTER:"default")[r?"click":"unclick"](s._hideChartMessage,s).show().toFront(),s.addGraphicalElement("messageText",f)},t.scheduleResize=function(e){var t,r=this,n=r.ref;n&&(r._addChartDependency("resize",{resolve:function(){return{state:2}}}),r.apiInstance.addJob("resizeScheduled",(function(){t=(0,i.normalizeCSSDimension)(e.width,e.height,n),"undefined"!=typeof e.width&&(n.style.width=t.width),"undefined"!==e.height&&(n.style.height=t.height),r._resize()}),f.priorityList.instant))},e}();Te.id="FusionCharts",Te.options={html5ScriptNameSuffix:".js",html5ScriptNamePrefix:"fusioncharts.","export":{useCanvas:!1},scriptBaseUri:(Fe=function(e){var t,r,n=window.document.getElementsByTagName("script"),a=n.length;for(r=0;r<a;r+=1)if(null!=(t=n[r].getAttribute("src"))&&null!==t.match(e))return t.replace(e,"$1")}(B),void 0===Fe?((0,o.raiseError)(Te,"1603111624","run",">GenericRuntime~scriptBaseUri","Unable to locate FusionCharts script source location (URL)."),""):Fe),set creditLabel(e){console.warn("FusionCharts.options.creditLabel property is deprecated. Please use FusionCharts.options.license with a valid license key to remove the watermark.")},license:function(e){e&&_["default"].storeObj(Te,e)}},r.p=Te.getScriptBaseURI(),Te.version=T.split(/[\.\-]/g),Te.versionDetails=[Te.version,D],Te.items={},(0,o.setRootSender)(Te),L=!1,i.hasSVG||Te.addDep({name:"vml",type:"dependency",extension:r.e(16).then(r.t.bind(null,1305,7))}),setTimeout((function(){L=!0,(0,o.triggerEvent)("ready",Te,{version:Te.version,now:!0})}),1),Te.addEventListener("dependencyAdded",(function(e,t){if("maps"===t.type){var r={};r[t.name]=["fusioncharts.maps.js"],Te.getDep("dependency")||Te.addDep({name:"dependency",extension:r})}})),Te.addEventListener("initialized",(function Pe(){Te.removeEventListener("initialized",Pe),F=new h["default"](document.body||document.getElementsByTagName("body")[0]),u.globalStore.addToEnv("smartLabel",F)})),Te.addDep(d["default"]),Te.addDep(m["default"]),Te.addDep(w["default"]),Te.addDep(v["default"]),Te.addDep(b["default"]),Te.addDep(y["default"]),Te.addDep(x["default"]);var De=Te;t["default"]=De},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports["default"]=e.exports,e.exports.__esModule=!0},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.isInterActiveEvt=function(e){return!!xe[e]},t.addInterActiveEvtName=function(e){e&&e.toLowerCase&&(xe[e.toLowerCase()]=!0)},t.getMouseCoordinate=function(e,t,r){var n,a,i,o=E.webkitIsFullScreen||E.mozFullScreen||E.msFullscreenElement||E.fullscreenElement,s=fe(ke(t)),l=o?s.clientX:s.pageX,u=o?s.clientY:s.pageY,d=r&&r.config||{},p=t.type,g=d&&d.itemFixed,m=(0,c["default"])(d.applycsstransform,0),v=g?C.pageYOffset||C.scrollY||E.documentElement.scrollTop:0,b=g?C.pageXOffset||C.scrollX||E.documentElement.scrollLeft:0;d.elScroll&&d.posOb&&!m?i=d.posOb:(d.elScroll=!0,i=Ce(e),d.posOb=i);"touchend"===p?(isNaN(l)&&(l=h),isNaN(u)&&(u=f)):"touchmove"!==p&&"touchstart"!==p||(h=l,f=u);if(n=l-i.left-b,a=u-i.top-v,m){var y=function(e,t){var r,n,a,i,o,s,l=t.x,c=t.y,u=e,h=[],f=0,d=0,p=!1,g=0,m=0;do{if(r=window.getComputedStyle(u),"BODY"===u.tagName||"auto"!==r.getPropertyValue("overflow")&&"scroll"!==r.getPropertyValue("overflow")||(u.scrollHeight>u.offsetHeight&&(g+=u.scrollTop),u.scrollWidth>u.offsetWidth&&(m+=u.scrollLeft)),r.getPropertyValue("transform")&&"none"!==r.getPropertyValue("transform")){var v=r.getPropertyValue("transform-origin").split(" ").map((function(e){return+e.replace(/px/gi,"")}));if(n=v[0],a=v[1],6===(i=r.getPropertyValue("transform").split("(")[1].split(")")[0].split(",").map((function(e){return parseFloat(e.trim())}))).length){var b=i,y=b[0],x=b[1],w=b[2],_=b[3],S=b[4],C=b[5];f=0,d=0,s=u;do{f+=s.offsetLeft,d+=s.offsetTop,s=s.offsetParent}while(s);h.push({elem:u,oriX:n,oriY:a,invM:De([y,w,S,x,_,C]),matrix:[y,w,S,x,_,C],offsetLeft:f,offsetTop:d}),p=!0}}u=u.parentElement}while(u);l+=m,c+=g,f=0,d=0,s=e;do{f+=s.offsetLeft,d+=s.offsetTop,s=s.offsetParent}while(s);if(p)for(;u=h.pop();)l-=u.offsetLeft,c-=u.offsetTop,o=Ie({x:l,y:c},{oriX:u.oriX,oriY:u.oriY},u.invM),l=o.x+u.offsetLeft,c=o.y+u.offsetTop;return{x:l-=f,y:c-=d}}(e,{x:l,y:u});n=y.x,a=y.y}return{chartX:n,chartY:a,pageX:l,pageY:u,clientX:s.clientX,clientY:s.clientY}},t.getTouchEvent=ke,t.imprint=function(e,t,r){var n,a=e;if("object"!=typeof a||null===a)return a=t,t;if("object"!=typeof t||null===t)return a;for(n in t)(a[n]===u||!r&&null===a[n])&&(a[n]=t[n]);return a},t.pluck=Te,t.computeFontSize=function(e){var t,r,n=parseFloat(e),a=function(e){if(e&&"string"==typeof e)return ae.find((function(t){return e.indexOf(t)>-1}))||"px";return"px"}(e),i=this.getLinkedParent(),o=parseInt(window.getComputedStyle(document.documentElement,null).fontSize,10);if("px"===a)return n;switch(a){case"em":t=(t=i.config.style?i.config.style.fontSize:u)||i.config.baseFontSize||o,n*=t;break;case"rem":n*=o;break;case"vw":r=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),n=n/100*r;break;case"%":t=(t=i.config.style?i.config.style.fontSize:u)||i.config.baseFontSize||o,n=n/100*t}return n},t.getFirstDefinedValue=function(){var e,t,r;for(t=0,r=arguments.length;t<r;t+=1)if((e=arguments[t])||!1===e||0===e||""===e)return e;return u},t.hashify=function(e){return e&&e.replace(/^#?([a-f0-9]+)/gi,"#$1")||"none"},t.dehashify=function(e){return e&&e.replace(/^#?([a-f0-9]+)/gi,"$1")||"none"},t.getComparatorFN=function(e,t){if(e)return t?function(e,r){return e[t]-r[t]}:Ve;return t?function(e,r){return r[t]-e[t]}:ze},t.pluckFontSize=function(){var e,t,r;for(t=0,r=arguments.length;t<r;t+=1)if(((e=arguments[t])||!1===e||0===e)&&!isNaN(e=Number(e)))return e<1?1:e;return 1},t.pluckFontSizeMaintainUnit=Fe,t.getValidValue=Me,t.getPosition=Ce,t.bindSelectionEvent=function(e,t){var r=t||{},n=e.config,a=e.getFromEnv("chart-container"),s=n.zoomType,l=(0,o["default"])({},r.attr||{}),u=l["stroke-width"]=(0,c["default"])(l.strokeWidth,l["stroke-width"],1),h=e.eventListeners||(e.eventListeners=[]),f=Ce(a);r=(0,o["default"])({chart:e,zoomX:/x/.test(s),zoomY:/y/.test(s),canvasY:n.canvasTop,canvasX:n.canvasLeft,canvasW:n.canvasWidth,canvasH:n.canvasHeight,canvasX2:n.canvasLeft+n.canvasWidth,canvasY2:n.canvasTop+n.canvasHeight,strokeWidth:u,chartPosLeft:f.left,chartPosTop:f.top,attr:l},r),l.stroke=Ee(l.stroke,"rgba(51,153,255,0.8)"),l.fill=Ee(l.fill,"rgba(185,213,241,0.3)"),a&&(i["default"].unlisten(a,"pointerdrag",Ae),h.push(i["default"].listen(a,"pointerdrag",Ae,r)));n.link&&(i["default"].unlisten(e.getFromEnv("chart-container"),"mouseup mousedown",Ne),h.push(i["default"].listen(e.getFromEnv("chart-container"),"mouseup mousedown",Ne,r)))},t.fcEach=function(e,t,r,n){var a,i=r,o=n;i||(i=e);o||(o={});if(he(e)){for(a=0;a<e.length;a+=1)if(!1===t.call(i,e[a],a,e,o))return a}else if(null!==e&&e!==u)for(a in e)if(!1===t.call(i,e[a],a,e,o))return a},t.getDefinedColor=function(e,t){return e||0===e||""===e?e:t},t.getFirstValue=Ee,t.getColorCodeString=function(e,t){var r,n,a="",i=0,o=t.split(",");for(n=o.length;i<n;i+=1)2===(r=o[i].split("-")).length?"-1"!==r[0].indexOf("dark")?a+=(0,s.getLightColor)(e,100-parseInt(r[1],10))+",":a+=(0,s.getDarkColor)(e,100-parseInt(r[1],10))+",":a+=o[i]+",";return a.substring(0,a.length-1)},t.clampNumber=function(e,t,r){void 0===t&&(t=-Infinity);void 0===r&&(r=Infinity);if(e<=t)return t;if(e>=r)return r;return e},t.fastTrim=function(e){var t=e.replace(/^\s\s*/,""),r=t.length;for(;/\s/.test(t.charAt(r-=1)););return t.slice(0,r+1)},t.parseUnsafeString=function(e,t){void 0===t&&(t=!0);var r=-1;if("string"==typeof e)return t?e.replace(/<|>|\'|\"/g,(function(e,t,n){switch(e){case"<":return/^<br\s*[\/]?>/gi.test(n.slice(t,n.length))?(r=t,e):"&lt;";case">":return r>=0&&/<br\s*[\/]?>$/gi.test(n.slice(r,t+1))?(r=-1,e):"&gt;";case'"':return"&#034;";case"'":return"&#039;"}})).replace(U,"<br />"):e.replace(U,"<br />");return""},t.toPrecision=Re,t.regescape=function(e){return e&&e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},t.regReplaceEscape=Le,t.getImageURL=function(e){var t={image:!1},r=e;r!==u&&(r=r.replace(/^\s+/,"").replace(/\s+$/,""),/^i\s*[\-]\s*/i.test(r)?(t.image=!0,t.string=r.replace(/^i\s*[\-]\s*/i,"")):t.string=r.replace(/^\\/,""));return t},t.getCripValues=t.getCrispValue=function(e,t,r){var n=r%2/2,a=X(e+n)-n,i=X(e+t+n)-n-a;return{position:a,distance:i}},t.stableSort=function(e,t){var r,n=e.length;for(r=0;r<n;r++)e[r].ssI=r;for(e.sort((function(e,r){var n=t(e,r);return 0===n?e.ssI-r.ssI:n})),r=0;r<n;r++)delete e[r].ssI},t.getLinkAction=function(e,t){return function(r){if(!r||!t.config.clickURLOverridesPlotLinks){var n,a,i,o,s,l,h,f,d,p,g=e.chart||e.map||{},m=(0,c["default"])(g.unescapelinks,1),v=this.entity||u,b=this.entityBox||u,y=this.link,x=y;if(y!==u){switch(m&&(y=C.decodeURIComponent?C.decodeURIComponent(y):C.unescape(y)),-1!==(y=y.replace(/^\s+/,"").replace(/\s+$/,"")).search(/^[a-z]*\s*[\-\:]\s*/i)&&(p=(s=y.split(/\s*[\-\:]\s*/)[0].toLowerCase()).length),r&&(t.config.hotElemClicked=!0),s){case"j":case"javascript":Pe(y);break;case"n":y.replace(/^n\s*\-/i,"n-"),C.open(y.slice(2));break;case"f":-1!==(n=(y=y.replace(/^f\s*\-/i,"f-")).indexOf("-",2))?(a=y.substr(2,n-2))&&C.frames[a]?C.frames[a].location=y.slice(n+1):C.open(y.slice(n+1),a):C.open(y.slice(2));break;case"p":n=(y=y.replace(/p\s*\-/i,"p-")).indexOf("-",2),i=y.indexOf(",",2),-1===n&&(n=1),o=y.slice(n+1),(d=C.open(o,y.substr(2,i-2),y.substr(i+1,n-i-1)))&&d.focus();break;case"newchart":case"newmap":switch(":"===y.charAt(p)&&(n=y.indexOf("-",p+1),f=y.substring(p+1,n),p=n),n=y.indexOf("-",p+1),l=y.substring(p+1,n).toLowerCase()){case"xmlurl":case"jsonurl":h=y.substring(n+1,y.length);break;case"xml":case"json":h=function(e,t){var r,n={chart:{}},a=t,i=e.toLowerCase();if(a.linkeddata)for(r=0;r<a.linkeddata.length;r+=1)a.linkeddata[r].id.toLowerCase()===i&&(n=a.linkeddata[r].linkedchart||a.linkeddata[r].linkedmap);return n}(y.substring(n+1,y.length),e),l="json"}t.fireChartInstanceEvent("linkedChartInvoked",{alias:f,linkType:l.toUpperCase(),data:h,clickedEntity:v,clickedEntityBox:b});break;default:C.location.href=y}t.fireChartInstanceEvent("linkClicked",{linkProvided:x,linkInvoked:y,linkAction:s&&s.toLowerCase()})}}}},t.setImageDisplayMode=function(e,t,r,n,a,i,o,s){var c=s.width*(n/100),u=s.height*(n/100),h=i-2*a,f=o-2*a;return(0,l.getAlignImage)(t,r,e,c,u,i,o,a,h,f)},t.setLineHeight=Be,t.parsexAxisStyles=function(e,t,r,n,a){var i,o=Ee(e.labelbordercolor,t.bordercolor,r.labelbordercolor,""),l=Te(e.labelbgcolor,t.bgcolor,r.labelbgcolor),u=(0,c["default"])(e.labelborderthickness,t.borderthickness,r.labelborderthickness,1),h=(0,c["default"])(r.usedataplotcolorforlabels,0)&&a||n.color;return o=o?(0,s.convertColor)(o,(0,c["default"])(e.labelborderalpha,t.borderalpha,r.labelborderalpha,e.labelalpha,t.alpha,r.labelalpha,100)):"",(i={fontFamily:Te(e.labelfont,t.font,r.labelfont,n.fontFamily),fontSize:Te(e.labelfontsize,t.fontsize,this.computeFontSize(r.labelfontsize),parseInt(n.fontSize,10))+"px",fontSizeWithUnit:Fe(e.labelfontsize,t.fontsize,r.labelfontsize,n.fontSizeWithUnit),color:(0,s.convertColor)(Te(e.labelfontcolor,t.fontcolor,r.labelfontcolor,h),(0,c["default"])(e.labelfontalpha,t.fontalpha,r.labelfontalpha,e.labelalpha,t.alpha,r.labelalpha,100)),fontWeight:(0,c["default"])(e.labelfontbold,t.fontbold,r.labelfontbold)?"bold":"normal",fontStyle:(0,c["default"])(e.labelfontitalic,t.fontitalic,r.labelfontitalic)?"italic":"normal",border:o||l?u+"px solid":"",borderColor:o,borderThickness:u,borderPadding:(0,c["default"])(e.labelborderpadding,t.borderpadding,r.labelborderpadding,2),borderRadius:(0,c["default"])(e.labelborderradius,t.borderradius,r.labelborderradius,0),backgroundColor:l?(0,s.convertColor)(l,(0,c["default"])(e.labelbgalpha,t.bgalpha,r.labelbgalpha,e.labelalpha,t.alpha,r.labelalpha,100)):"",borderDash:(0,c["default"])(e.labelborderdashed,t.borderdashed,r.labelborderdashed,0)?je((0,c["default"])(e.labelborderdashlen,t.borderdashlen,r.labelborderdashlen,4),(0,c["default"])(e.labelborderdashgap,t.borderdashgap,r.labelborderdashgap,2)):"none"}).lineHeight=Be(i),i},t.getDashStyle=je,t.componentDispose=function Ue(){var e,t,r,n,a,i,o,s,l,c,u,h;if(this&&this!==C){if(this.disposing=!0,e=this.components)for(r in e)if((t=e[r])instanceof Array)for(n=t.length,a=0;a<n;a++)(h=t[a])&&!this.disposing&&(h.dispose?h.dispose():Ue.call(h));else t&&!t.disposing&&(t.dispose?t.dispose():Ue.call(t));for(s in i=this.graphics)if(o=i[s])if(o.hide)o.hide(),o.followers&&o.followers[0]&&(u=o.followers[0].el)&&u.hide&&u.hide();else for(l in o)(c=o[l]).hide&&c.hide();for(r in this)delete this[r]}},t.executeJS=Oe,t.pseudoEval=Pe,t.getContainerBackgroundColor=function(e){var t=e.options,r=t.containerBackgroundColor,n=t.containerBackgroundOpacity;Se(e.jsVars.transparent)?n=e.jsVars.transparent?0:1:(n=parseFloat(n))<0?n=0:n>1&&(n=1);r||(r="#FFFFFF");if(T&&!M)return n?r:"transparent";return r=r.replace(/^#?([a-f0-9]+)/gi,"$1"),(r=(0,s.HEXtoRGB)(r))[3]=n.toString(),"rgba("+r.join(",")+")"},t.capitalizeString=function(e,t){return e?e.replace(t?/(^|\s)([a-z])/g:/(^|\s)([a-z])/,(function(e,t,r){return t+r.toUpperCase()})):e},t.pInt=function(e,t){return parseInt(e,t||10)},t.defined=Se,t.trimString=function(e){var t=e.replace(/^\s\s*/,""),r=t.length;for(;/\s/.test(t.charAt(r-=1)););return t.slice(0,r+1)},t.getSuggestiveRotation=function(){var e,t,r,n;e=arguments[0],1===arguments.length?(t=e.angle,r=e.x,n=e.y):(t=e,r=arguments[1],n=arguments[2]);return"r"+(t=t||0)+","+r+","+n},t.normalizeCSSDimension=function(e,t,r){var n,a=void 0===e?r.offsetWidth||parseFloat(r.style.width):e,i=void 0===t?r.offsetHeight||parseFloat(r.style.height):t,o={},s=r.style;if(s.width=a=a.toString?a.toString():"0",s.height=i=i.toString?i.toString():"0",(o.widthIsRelative=a.match(/^\s*\d*\.?\d*\%\s*$/)&&!a.match(/^\s*0\%\s*$/))&&0===r.offsetWidth)for(n=r;n=n.offsetParent;)if(n.offsetWidth>0){a=(n.offsetWidth*parseFloat(a.match(/\d*/)[0])/100).toString();break}if((o.heightIsRelative=i.match(/^\s*\d*\.?\d*\%\s*$/)&&!i.match(/^\s*0\%\s*$/))&&r.offsetHeight<=20)for(n=r;n=n.offsetParent;)if(n.offsetHeight>0){i=(n.offsetHeight*parseFloat(i.match(/\d*/)[0])/100).toString();break}return o.width=a.replace?a.replace(/^\s*(\d*\.?\d*)\s*$/gi,"$1px"):a,o.height=i.replace?i.replace(/^\s*(\d*\.?\d*)\s*$/gi,"$1px"):i,s.width=o.width,s.height=o.height,o.pixelWidth=o.widthIsRelative?r.offsetWidth:parseInt(o.width,10)||0,o.pixelHeight=o.heightIsRelative?r.offsetHeight:parseInt(o.height,10)||0,o},t._manageInteractiveSpace=function(){var e,t,r,n,a,i,o=this.config,s=this.getChildren(),l=s.xAxis[0],c=s.yAxis[0],u=s.canvas&&s.canvas[0],h=u.config,f=h.canvasBorderWidth,d=h.canvasPaddingTop,p=h.canvasPadding||0,g=h.canvasPaddingLeft,m=o.xAxisSpaceAllocation,v=o.yAxisSpaceAllocation[0].spaceTaken;t=o.xAxisSpaceAllocation=l.placeAxis(o.availableHeight+m.bottom),r=o.yAxisSpaceAllocation[0].spaceTaken=c.placeAxis(o.availableWidth+v.left),e=t.bottom-m.bottom,a=t.top-m.top,n=r.left-v.left,i=r.right-v.right,e&&this._allocateSpace({top:a,bottom:e}),(n||i)&&this._allocateSpace({left:n,right:i}),l&&l.setAxisDimention({x:o.canvasLeft+Math.max(g,p),y:l.config.isOpposit?o.canvasTop-f:o.canvasBottom+f,opposite:l.config.isOpposit?o.canvasBottom+f:o.canvasTop-f,axisLength:o.canvasWidth-Math.max(g,p)-Math.max(h.canvasPaddingRight,p)}),c&&c.setAxisDimention({x:c.config.isOpposit?o.canvasRight+f:o.canvasLeft-f,y:o.canvasTop+d,opposite:c.config.isOpposit?o.canvasLeft-f:o.canvasRight+f,axisLength:o.canvasHeight-d-h.canvasPaddingBottom}),(a||e||n||i)&&u.asyncDraw()},t.removeAllTooltipOnChart=function(e,t){for(var r=e.implicit,n=e.explicit,a=0;a<r.length;a++){var i=r[a];t?i.hide():i.element&&i.element.remove()}for(var o=0;o<n.length;o++){var s=n[o];t?s.hide():s.element&&s.element.remove()}},t.configureDataLabelStyle=function(e,t){void 0===e&&(e={});var r,n,a=t||this.config.JSONData,i=this.getFromEnv("chartConfig");return r=Te(e.valuebordercolor,a.valuebordercolor,i.valueBorderColor),n=Te(e.valuebgcolor,a.valuebgcolor,i.valueBgColor),{color:(0,s.convertColor)(Te(e.valuefontcolor,a.valuefontcolor,i.valueFontColor),i.valueFontAlpha),borderColor:r?(0,s.convertColor)(r,i.valueBorderAlpha):"",backgroundColor:n?(0,s.convertColor)(n,i.valueBgAlpha):""}},t.convertToPixels=function(e,t){if(e&&isNaN(e)){var r=e.split("px");return 2===r.length?parseInt(r[0],10):2===(r=e.split("%")).length?Math.round(t*(parseInt(r[0],10)/100)):void 0}return parseInt(e,10)},t.FIT=t.FILL=t.TILE=t.COMMA=t.animationObjStr=t.configStr=t.ROUND=t.BLANK=t.POINTER=t.HAND=t.BOLD=t.NORMAL=t.mathRound=t.mathAbs=t.animHelperFN=t.xssEncode=t.MathExt=t.defaultGaugePaletteOptions=t.crispBound=t.canvasBorderColorStr=t.attrTypeBool=t.canvasBGAlphaStr=t.attrTypeNum=t.DASH_DEF=t.chartPaletteStr=t.TRACKER_FILL=t.appliedCSS=t.validhexcolor=t.chartAPI=t.getAxisLimits=t.supportedStyle=t.lineHeightFactor=t.isEdge=t.isIE9=t.isIE11=t.isIE=t.TXT_REGEX=t.hasSVG=t.stubFN=t.preDefStr=t.isArray=t.TXT_STRING=t.TXT_HREF=t.txtLabel=t.hasTouch=t.parseTooltext=t.gradientify=t.rgbaToHex=t.toRaphaelColor=t.getViewPortDimension=t.polyPathToPath=t.createElement=t.getEventCoordinate=t.regex=t.HOVER_THRESHOLD_PIXELS=t.CLICK_THRESHOLD_PIXELS=t.TOUCH_THRESHOLD_PIXELS=t.cleanColorCode=t.startsRGBA=t.visibleStr=t.hiddenStr=t.TEXTANCHOR=t.COMMASPACE=t.PXSTRING=t.HUNDREDSTRING=t.SHAPE_RECT=t.FC_CONFIG_STRING=t.INITIALSTR=t.FINALSTR=t.POSITION_END=t.POSITION_START=t.MIDDLESTR=t.POSITION_MIDDLE=t.POSITION_CENTER=t.POSITION_LEFT=t.POSITION_BOTTOM=t.POSITION_RIGHT=t.POSITION_TOP=t.POSITION_ABSOLUTE=t.STRINGUNDEFINED=t.DECIMALSTRING=t.ONESTRING=t.TESTSTR=t.SAMPLESTRING=t.ZEROSTRING=t.COMMASTRING=t.OBJECTSTRING=t.STRINGSTRING=t.BREAKSTRING=t.HASHSTRING=t.COLOR_TRANSPARENT=t.COLOR_WHITE=t.COLOR_GLASS=t.COLOR_BLACK=t.BLANKSTRING=t.UNDERSCORE=t.UNDEF=t.isFirefox=t.BLANKSTRINGPLACEHOLDER=t.getEmptyConstractor=void 0,t.removeHtmlAttrs=t.isSimilarObject=t.snapPoint=t.DEFAULT_FT_FONT=t.isIpad=t.domInsertModes=t.isXSSSafe=t.normalizeAngle=t.LINE_HEIGHT_FACTOR=t.PROJECT_VERSION=t.datasetFactory=t.componentFactory=t.dropHash=t.BGRATIOSTRING=t.VISIBLE=t.touchEnabled=t.MOUSEMOVE=t.MOUSEOUT=void 0;var a=r(255);t.attribDefs=a.attribDefs,t.parseConfiguration=a.parseConfiguration,t.setAttribDefs=a.setAttribDefs,t.hasAttribDefs=a.hasAttribDefs;var i=n(r(256)),o=n(r(257));t.extend2=o["default"];var s=r(258);t.convertColor=s.convertColor,t.getDarkColor=s.getDarkColor,t.getLightColor=s.getLightColor,t.mapSymbolName=s.mapSymbolName,t.getColumnColor=s.getColumnColor,t.getPointColor=s.getPointColor,t.getAngle=s.getAngle,t.parseColor=s.parseColor,t.getValidColor=s.getValidColor,t.RGBtoHex=s.RGBtoHex,t.rawRGBtoHEX=s.rawRGBtoHEX,t.HEXtoRGB=s.HEXtoRGB,t.parsePointValue=s.parsePointValue,t.getFirstColor=s.getFirstColor,t.getFirstAlpha=s.getFirstAlpha;var l=r(259),c=n(r(260));t.pluckNumber=c["default"];t.LINE_HEIGHT_FACTOR=1.2,t.PROJECT_VERSION="3.21.1";var u,h,f,d,p,g,m,v,b,y,x,w,_,S,C=window,k=function(){},A=(S=C.navigator.userAgent.toLowerCase(),!(!(_=-1!==S.indexOf("msie")&&C.parseInt(S.split("msie")[1]))||9!==_)),N=/Firefox/i.test(C.navigator.userAgent),E=C.document,L=C.navigator,M=Boolean(C.SVGAngle||E.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")),F=/trident/i.test(L.userAgent)&&/rv:11/i.test(L.userAgent)&&!window.opera,T=/msie/i.test(L.userAgent)&&!C.opera,D=/Edge/.test(L.userAgent),I=!!L.platform&&/iPad|iPhone|iPod/.test(L.platform),O=/[\\\"<>;&]/,P=/^[^\S]*?(sf|f|ht)(tp|tps):\/\//i,R="rgba(192,192,192,"+(T?.002:1e-6)+")",j="http://www.fusioncharts.com?BS=FCHSEvalMark&utm_source=FCS_trial&pver="+escape("3.21.1"),B="70|117|115|105|111|110|67|104|97|114|116|115|32|84|114|105|97|108".split("|").map((function(e){return String.fromCharCode(+e)})).join(""),V=parseFloat,z=/fusioncharts\.com|fusioncharts\.github\.io$/i,U=/\{br\}\s*/gi,H=/^#?/,q=/^rgba/i,G=/[#\s]/gi,W=Math.abs,$=Math.pow,X=Math.round,Y=$(2,-24),K="ontouchstart"in E,J=K&&!(L.maxTouchPoints||L.msMaxTouchPoints),Z=!z.test(C.location.hostname),Q=Math,ee=Q.max,te=Q.min,re={pageX:0,pageY:0},ne=["8BBA00","F6BD0F","FF654F","AFD8F8","FDB398","CDC309","B1D0D2","FAD1B9","B8A79E","D7CEA5","C4B3CE","E9D3BE","EFE9AD","CEA7A2","B2D9BA"],ae=["rem","em","vw","%","px"],ie={paletteColors:[ne,ne,ne,ne,ne],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},oe={numDecimals:function(e){var t=e;t=Re(t,10);var r=Re((t=Math.abs(t))-Math.floor(t),10),n=String(r).length-2;return n=n<0?0:n,n},toRadians:function(e){return e/180*Math.PI},toDegrees:function(e){return e/Math.PI*180},flashToStandardAngle:function(e){return-1*e},standardToFlashAngle:function(e){return-1*e},flash180ToStandardAngle:function(e){var t=e,r=360-((t%=360)<0?t+360:t);return 360===r?0:r},getAngularPoint:function(e,t,r,n){var a=n*(Math.PI/180);return{x:e+r*Math.cos(a),y:t-r*Math.sin(a)}},remainderOf:function(e,t){return Math.ceil(e%t)},boundAngle:function(e){return e>=0?oe.prototype.remainderOf(e,360):360-oe.prototype.remainderOf(Math.abs(e),360)},toNearestTwip:function(e){var t=e,r=t<0?-1:1,n=Math.abs(t),a=Math.round(100*n),i=Math.floor(a/5);return r*((Number(String(a-5*i))>2?5*i+5:5*i)/100)},roundUp:function(e,t){var r=e,n=t;n=n||2;var a=Math.pow(10,n);return r*=a,r=Math.round(Number(String(r))),r/=a}},se=2*Q.PI,le={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"}},ce=M?0:.5,ue=["color"],he=function(){if(Array.isArray)return Array.isArray;var e=Object.prototype.toString;return function(t){return e.call(t)===e.call([])}}(),fe=function(e){return e.pageX===u&&(e.pageX=e.clientX+E.body.scrollLeft+E.documentElement.scrollLeft,e.pageY=e.clientY+E.body.scrollTop+E.documentElement.scrollTop),e},de=(b="innerWidth",y="innerHeight",x=E.documentElement||E.body,w=x,"innerWidth"in C?w=C:(b="clientWidth",y="clientHeight"),function(){return{width:w[b],height:w[y],scrollTop:x.scrollTop,scrollLeft:x.scrollLeft}}),pe=(v=/^@window_/g,function(e,t,r){var n,a,i,o,s=e.replace(/\[[\'\"]/g,".").replace(/[\'\"]\]/g,"").replace(/\[/g,".@window_").replace(/\]/g,"").split("."),l=C,c="";for(i=s.length,o=0;o<i;o+=1){if(n=l,(a=s[o]).match(v))l=l[C[a.replace(v,"")]];else{if(l===u||null===l)throw(c||a).replace(v,"")+" is not defined";l=l[a]}c=a}if(!l||"function"!=typeof l.call&&l!==C.alert){if("void"===c)return;setTimeout((function(){throw a.replace(v,"")+"() is not a function"}),0)}else l===C.alert?l(t):r?l.apply(n,t.split("__FC_ARG_SEP__")):l.call(n,t)}),ge=(m={},function(e){var t,r,n,a,i,o=e||this,l=o&&o.FCcolor||o,c=l.color,h=l.ratio,f=l.angle,d=l.alpha,p=l.r,g=l.cx,v=l.cy,b=l.fx,y=l.fy,x=l.gradientUnits,w=l.x1,_=l.y1,S=l.x2,C=l.y2,k=1;if("string"==typeof o)return m[i="~"+o]||(m[i]=o.replace(/^#?([a-f0-9]{3,6})/gi,"#$1"));if(!(c=c||""))return t;if(i=[c,d,h,f,p,g,v,x,b,y,w,S,_,C,l.radialGradient].join("_").replace(/[\(\)\s,\xb0#]/g,"_"),m[i])return m[i];if(h=h&&(h+"").split(",")||[],d=(d||0===d)&&(d+"").split(",")||[],c=c.split(","))if(t="",1===c.length)a=c[0].replace(/^#?([a-f0-9]{3,6})/gi,"$1"),t=d.length?"rgba("+(0,s.HEXtoRGB)(a).join(",")+","+.01*V(d[0])+")":a.replace(/^#?([a-f0-9]{3,6})/gi,"#$1");else{for(r=0,n=c.length;r<n;r++)a=c[r].replace(/^#?([a-f0-9]{3,6})/gi,"$1"),isNaN(h[r])||(h[r]=V(h[r]),a+=":"+h[r],isNaN(h[r+1])||(h[r+1]=V(h[r+1])+h[r])),isNaN(d[r])||""===d[r]||(k=.01*d[r]),c[r]="rgba("+(0,s.HEXtoRGB)(a).join(",")+","+k+")",isNaN(h[r])||(h[r]===h[r-1]&&(h[r]+=.001),c[r]=c[r]+":"+h[r]);t+=c.join("-"),p!==u||b!==u||g!==u||l.radialGradient?t="xr("+[b,y,p,g,v,x].join(",")+")"+t:(t="-"+t,w===u&&_===u&&S===u&&C===u||(t="("+[w,_,S,C,x].join(",")+")"+t),f===u&&(f=0),t=360-V(f)%360+t)}return m[i]=t,t}),me=function(){return""},ve=function(e,t){var r=this.argKey,n=Number(e.match(/\d+/g)[0]);return t[n]?t[n][r]:u},be=function(){var e,t=[{regex:/((^|[^\\])((\\)\\)*\$cleanvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cleanvalue))/gi,argIndex:2,argKey:"cleanvalue"},{regex:/((^|[^\\])((\\)\\)*\$datavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$datavalue))/gi,argIndex:2,argKey:"formattedValue"},{regex:/((^|[^\\])((\\)\\)*\$value)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$value))/gi,argIndex:3,argKey:"value"},{regex:/((^|[^\\])((\\)\\)*\$label)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$label))/gi,argIndex:2,argKey:"label"},{regex:/((^|[^\\])((\\)\\)*\$seriesname)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$seriesname))/gi,argIndex:5,argKey:"seriesname"},{regex:/((^|[^\\])((\\)\\)*\$yaxisname)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$yaxisname))/gi,argIndex:2,argKey:"yaxisName"},{regex:/((^|[^\\])((\\)\\)*\$xaxisname)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xaxisname))/gi,argIndex:2,argKey:"xaxisName"},{regex:/((^|[^\\])((\\)\\)*\$displayvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$displayvalue))/gi,argIndex:3,argKey:"displayvalue"},{regex:/((^|[^\\])((\\)\\)*\$xdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xdatavalue))/gi,argIndex:2,argKey:"xDataValue"},{regex:/((^|[^\\])((\\)\\)*\$ydatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$ydatavalue))/gi,argIndex:2,argKey:"yDataValue"},{regex:/((^|[^\\])((\\)\\)*\$xvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xvalue))/gi,argIndex:3,argKey:"x"},{regex:/((^|[^\\])((\\)\\)*\$yvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$yvalue))/gi,argIndex:3,argKey:"y"},{regex:/((^|[^\\])((\\)\\)*\$zvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$zvalue))/gi,argIndex:3,argKey:"z"},{regex:/((^|[^\\])((\\)\\)*\$name)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$name))/gi,argIndex:3,argKey:"name"},{regex:/((^|[^\\])((\\)\\)*\$percentValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentValue))/gi,argIndex:2,argKey:"percentValue"},{regex:/((^|[^\\])((\\)\\)*\$startValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$startValue))/gi,argIndex:2,argKey:"startValue"},{regex:/((^|[^\\])((\\)\\)*\$startDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$startDataValue))/gi,argIndex:2,argKey:"startDataValue"},{regex:/((^|[^\\])((\\)\\)*\$endValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$endValue))/gi,argIndex:2,argKey:"endValue"},{regex:/((^|[^\\])((\\)\\)*\$endDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$endDataValue))/gi,argIndex:2,argKey:"endDataValue"},{regex:/((^|[^\\])((\\)\\)*\$axisName)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$axisName))/gi,argIndex:2,argKey:"axisName"},{regex:/((^|[^\\])((\\)\\)*\$cumulativevalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativevalue))/gi,argIndex:2,argKey:"cumulativeValue"},{regex:/((^|[^\\])((\\)\\)*\$cumulativedatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativedatavalue))/gi,argIndex:2,argKey:"cumulativeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$cumulativePercentValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativePercentValue))/gi,argIndex:2,argKey:"cumulativePercentValue"},{regex:/((^|[^\\])((\\)\\)*\$cumulativepercentdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativepercentdatavalue))/gi,argIndex:2,argKey:"cumulativePercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$sum)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$sum))/gi,argIndex:2,argKey:"sum"},{regex:/((^|[^\\])((\\)\\)*\$unformattedsum)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedsum))/gi,argIndex:2,argKey:"unformattedSum"},{regex:/((^|[^\\])((\\)\\)*\$targetvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$targetvalue))/gi,argIndex:2,argKey:"targetValue"},{regex:/((^|[^\\])((\\)\\)*\$targetdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$targetdatavalue))/gi,argIndex:2,argKey:"targetDataValue"},{regex:/((^|[^\\])((\\)\\)*\$processname)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$processname))/gi,argIndex:2,argKey:"processName"},{regex:/((^|[^\\])((\\)\\)*\$start)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$start))/gi,argIndex:2,argKey:"start"},{regex:/((^|[^\\])((\\)\\)*\$end)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$end))/gi,argIndex:2,argKey:"end"},{regex:/((^|[^\\])((\\)\\)*\$percentcomplete)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentcomplete))/gi,argIndex:2,argKey:"percentComplete"},{regex:/((^|[^\\])((\\)\\)*\$taskpercentcomplete)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$taskpercentcomplete))/gi,argIndex:2,argKey:"taskPercentComplete"},{regex:/((^|[^\\])((\\)\\)*\$taskstartdate)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$taskstartdate))/gi,argIndex:2,argKey:"taskStartDate"},{regex:/((^|[^\\])((\\)\\)*\$taskenddate)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$taskenddate))/gi,argIndex:2,argKey:"taskEndDate"},{regex:/((^|[^\\])((\\)\\)*\$tasklabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tasklabel))/gi,argIndex:2,argKey:"taskLabel"},{regex:/((^|[^\\])((\\)\\)*\$date)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$date))/gi,argIndex:2,argKey:"date"},{regex:/((^|[^\\])((\\)\\)*\$percentofprevvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentofprevvalue))/gi,argIndex:2,argKey:"percentOfPrevValue"},{regex:/((^|[^\\])((\\)\\)*\$sname)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$sname))/gi,argIndex:2,argKey:"sName"},{regex:/((^|[^\\])((\\)\\)*\$lname)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$lname))/gi,argIndex:2,argKey:"lName"},{regex:/((^|[^\\])((\\)\\)*\$fromid)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromid))/gi,argIndex:2,argKey:"fromId"},{regex:/((^|[^\\])((\\)\\)*\$fromlabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromlabel))/gi,argIndex:2,argKey:"fromLabel"},{regex:/((^|[^\\])((\\)\\)*\$toid)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toid))/gi,argIndex:2,argKey:"toId"},{regex:/((^|[^\\])((\\)\\)*\$tolabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tolabel))/gi,argIndex:2,argKey:"toLabel"},{regex:/((^|[^\\])((\\)\\)*\$fromxvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromxvalue))/gi,argIndex:2,argKey:"fromXValue"},{regex:/((^|[^\\])((\\)\\)*\$fromyvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromyvalue))/gi,argIndex:2,argKey:"fromYValue"},{regex:/((^|[^\\])((\\)\\)*\$fromxdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromxdatavalue))/gi,argIndex:2,argKey:"fromXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromydatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromydatavalue))/gi,argIndex:2,argKey:"fromYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromlabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromlabel))/gi,argIndex:2,argKey:"fromLabel"},{regex:/((^|[^\\])((\\)\\)*\$toxvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toxvalue))/gi,argIndex:2,argKey:"toXValue"},{regex:/((^|[^\\])((\\)\\)*\$toyvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toyvalue))/gi,argIndex:2,argKey:"toYValue"},{regex:/((^|[^\\])((\\)\\)*\$toxdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toxdatavalue))/gi,argIndex:2,argKey:"toXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$toydatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toydatavalue))/gi,argIndex:2,argKey:"toYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$tolabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tolabel))/gi,argIndex:2,argKey:"toLabel"},{regex:/((^|[^\\])((\\)\\)*\$openvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$openvalue))/gi,argIndex:2,argKey:"openValue"},{regex:/((^|[^\\])((\\)\\)*\$closevalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$closevalue))/gi,argIndex:2,argKey:"closeValue"},{regex:/((^|[^\\])((\\)\\)*\$highvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$highvalue))/gi,argIndex:2,argKey:"highValue"},{regex:/((^|[^\\])((\\)\\)*\$lowvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$lowvalue))/gi,argIndex:2,argKey:"lowValue"},{regex:/((^|[^\\])((\\)\\)*\$opendatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$opendatavalue))/gi,argIndex:2,argKey:"openDataValue"},{regex:/((^|[^\\])((\\)\\)*\$closedatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$closedatavalue))/gi,argIndex:2,argKey:"closeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$highdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$highdatavalue))/gi,argIndex:2,argKey:"highDataValue"},{regex:/((^|[^\\])((\\)\\)*\$lowdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$lowdatavalue))/gi,argIndex:2,argKey:"lowDataValue"},{regex:/((^|[^\\])((\\)\\)*\$maxvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$maxvalue))/gi,argIndex:2,argKey:"maxValue"},{regex:/((^|[^\\])((\\)\\)*\$maxdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$maxdatavalue))/gi,argIndex:2,argKey:"maxDataValue"},{regex:/((^|[^\\])((\\)\\)*\$minvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$minvalue))/gi,argIndex:2,argKey:"minValue"},{regex:/((^|[^\\])((\\)\\)*\$mindatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$mindatavalue))/gi,argIndex:2,argKey:"minDataValue"},{regex:/((^|[^\\])((\\)\\)*\$q1)/gi,argIndex:2,argKey:"Q1"},{regex:/((^|[^\\])((\\)\\)*\$unformattedQ1)/gi,argIndex:2,argKey:"unformattedQ1"},{regex:/((^|[^\\])((\\)\\)*\$q3)/gi,argIndex:2,argKey:"Q3"},{regex:/((^|[^\\])((\\)\\)*\$unformattedQ3)/gi,argIndex:2,argKey:"unformattedQ3"},{regex:/((^|[^\\])((\\)\\)*\$median)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$median))/gi,argIndex:2,argKey:"median"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMedian)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMedian))/gi,argIndex:2,argKey:"unformattedMedian"},{regex:/((^|[^\\])((\\)\\)*\$SD)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$SD))/gi,argIndex:2,argKey:"SD"},{regex:/((^|[^\\])((\\)\\)*\$unformattedsd)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedsd))/gi,argIndex:2,argKey:"unformattedsd"},{regex:/((^|[^\\])((\\)\\)*\$QD)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$QD))/gi,argIndex:2,argKey:"QD"},{regex:/((^|[^\\])((\\)\\)*\$unformattedQD)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedQD))/gi,argIndex:2,argKey:"unformattedQD"},{regex:/((^|[^\\])((\\)\\)*\$MD)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$MD))/gi,argIndex:2,argKey:"MD"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMD)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMD))/gi,argIndex:2,argKey:"unformattedMD"},{regex:/((^|[^\\])((\\)\\)*\$mean)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$mean))/gi,argIndex:2,argKey:"mean"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMean)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMean))/gi,argIndex:2,argKey:"unformattedMean"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMean)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMean))/gi,argIndex:2,argKey:"unformattedMean"},{regex:/((^|[^\\])((\\)\\)*\$volumeValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$volumeValue))/gi,argIndex:2,argKey:"volumeValue"},{regex:/((^|[^\\])((\\)\\)*\$volumeDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$volumeDataValue))/gi,argIndex:2,argKey:"volumeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromXValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromXValue))/gi,argIndex:2,argKey:"fromXValue"},{regex:/((^|[^\\])((\\)\\)*\$fromYValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromYValue))/gi,argIndex:2,argKey:"fromYValue"},{regex:/((^|[^\\])((\\)\\)*\$fromXDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromXDataValue))/gi,argIndex:2,argKey:"fromXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromYDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromYDataValue))/gi,argIndex:2,argKey:"fromYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromLabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromLabel))/gi,argIndex:2,argKey:"fromLabel"},{regex:/((^|[^\\])((\\)\\)*\$toXValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toXValue))/gi,argIndex:2,argKey:"toXValue"},{regex:/((^|[^\\])((\\)\\)*\$toYValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toYValue))/gi,argIndex:2,argKey:"toYValue"},{regex:/((^|[^\\])((\\)\\)*\$toXDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toXDataValue))/gi,argIndex:2,argKey:"toXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$toYDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toYDataValue))/gi,argIndex:2,argKey:"toYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$tolabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tolabel))/gi,argIndex:2,argKey:"toLabel"},{regex:/((^|[^\\])((\\)\\)*\$tlLabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tlLabel))/gi,argIndex:5,argKey:"tlLabel"},{regex:/((^|[^\\])((\\)\\)*\$trlabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$trlabel))/gi,argIndex:5,argKey:"trLabel"},{regex:/((^|[^\\])((\\)\\)*\$bllabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$bllabel))/gi,argIndex:5,argKey:"blLabel"},{regex:/((^|[^\\])((\\)\\)*\$brlabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$brlabel))/gi,argIndex:5,argKey:"brLabel"},{regex:/((^|[^\\])((\\)\\)*\$rowlabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$rowlabel))/gi,argIndex:5,argKey:"rowLabel"},{regex:/((^|[^\\])((\\)\\)*\$columnlabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$columnlabel))/gi,argIndex:5,argKey:"columnLabel"},{regex:/((^|[^\\])((\\)\\)*\$errorvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errorvalue))/gi,argIndex:2,argKey:"errorValue"},{regex:/((^|[^\\])((\\)\\)*\$errordatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errordatavalue))/gi,argIndex:2,argKey:"errorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$errorpercentvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errorpercentvalue))/gi,argIndex:2,argKey:"errorPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$errorpercentdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errorpercentdatavalue))/gi,argIndex:2,argKey:"errorPercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorValue))/gi,argIndex:2,argKey:"horizontalErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorDataValue))/gi,argIndex:2,argKey:"horizontalErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalErrorValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorValue))/gi,argIndex:2,argKey:"verticalErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalErrorDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorDataValue))/gi,argIndex:2,argKey:"verticalErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorPercent)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorPercentValue))/gi,argIndex:2,argKey:"horizontalErrorPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorPercentDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorPercentDataValue))/gi,argIndex:2,argKey:"horizontalErrorPercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalErrorPercent)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorPercentValue))/gi,argIndex:2,argKey:"verticalErrorPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalErrorPercentDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorPercentDataValue))/gi,argIndex:2,argKey:"verticalErrorPercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$xaxispercentvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xaxispercentvalue))/gi,argIndex:2,argKey:"xAxisPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$percentdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentdatavalue))/gi,argIndex:2,argKey:"percentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$trType)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$trType))/gi,argIndex:4,argKey:"trtype"},{regex:/((^|[^\\])((\\)\\)*\$tlType)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tlType))/gi,argIndex:4,argKey:"tltype"},{regex:/((^|[^\\])((\\)\\)*\$brType)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$brType))/gi,argIndex:4,argKey:"brtype"},{regex:/((^|[^\\])((\\)\\)*\$blType)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$blType))/gi,argIndex:4,argKey:"bltype"},{regex:/((^|[^\\])((\\)\\)*\$colorRangeLabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$colorRangeLabel))/gi,argIndex:5,argKey:"colorRangeLabel"},{regex:/((^|[^\\])((\\)\\)*\$zdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$zdatavalue))/gi,argIndex:2,argKey:"zDataValue"},{regex:/((^|[^\\])((\\)\\)*\$svalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$svalue))/gi,argIndex:3,argKey:"svalue"},{regex:/((^|[^\\])((\\)\\)*\$positiveErrorValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$positiveErrorValue))/gi,argIndex:2,argKey:"positiveErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$negativeErrorValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$negativeErrorValue))/gi,argIndex:2,argKey:"negativeErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$datasvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$datasvalue))/gi,argIndex:2,argKey:"formattedsValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalNegativeErrorValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalNegativeErrorValue))/gi,argIndex:2,argKey:"horizontalNegativeErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalPositiveErrorValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalPositiveErrorValue))/gi,argIndex:2,argKey:"horizontalPositiveErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalNegativeErrorValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalNegativeErrorValue))/gi,argIndex:2,argKey:"verticalNegativeErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalPositiveErrorValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalPositiveErrorValue))/gi,argIndex:2,argKey:"verticalPositiveErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalNegativeErrorDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalNegativeErrorDataValue))/gi,argIndex:2,argKey:"horizontalNegativeErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalPositiveErrorDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalPositiveErrorDataValue))/gi,argIndex:2,argKey:"horizontalPositiveErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalPositiveErrorDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalPositiveErrorDataValue))/gi,argIndex:2,argKey:"verticalPositiveErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalNegativeErrorDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalNegativeErrorDataValue))/gi,argIndex:2,argKey:"verticalNegativeErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$positiveErrorDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$positiveErrorDataValue))/gi,argIndex:2,argKey:"positiveErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$negativeErrorDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$negativeErrorDataValue))/gi,argIndex:2,argKey:"negativeErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$nodeValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$nodeValue))/gi,argIndex:3,argKey:"nodeValue"},{regex:/((^|[^\\])((\\)\\)*\$nodeDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$nodeDataValue))/gi,argIndex:3,argKey:"nodeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$dominantNode)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$dominantNode))/gi,argIndex:2,argKey:"dominantNode"},{regex:/((^|[^\\])((\\)\\)*\$subservientNode)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$subservientNode))/gi,argIndex:2,argKey:"subservientNode"},{regex:/((^|[^\\])((\\)\\)*\$dominantFlowValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$dominantFlowValue))/gi,argIndex:2,argKey:"dominantFlowValue"},{regex:/((^|[^\\])((\\)\\)*\$dominantFlowDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$dominantFlowDataValue))/gi,argIndex:2,argKey:"dominantFlowDataValue"},{regex:/((^|[^\\])((\\)\\)*\$subservientFlowValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$subservientFlowValue))/gi,argIndex:2,argKey:"subservientFlowValue"},{regex:/((^|[^\\])((\\)\\)*\$subservientFlowDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$subservientFlowDataValue))/gi,argIndex:2,argKey:"subservientFlowDataValue"},{regex:/((^|[^\\])((\\)\\)*\$linkValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$linkValue))/gi,argIndex:3,argKey:"linkValue"},{regex:/((^|[^\\])((\\)\\)*\$linkDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$linkDataValue))/gi,argIndex:3,argKey:"linkDataValue"},{regex:/((^|[^\\])((\\)\\)*\$plotFillColor)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$plotFillColor))/gi,argIndex:3,argKey:"plotFillColor"},{regex:/((^|[^\\])((\\)\\)*\$plotFillAlpha)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$plotFillAlpha))/gi,argIndex:3,argKey:"plotFillAlpha"},{regex:/((^|[^\\])((\\)\\)*\$plotIdentifier)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$plotIdentifier))/gi,argIndex:3,argKey:"plotIdentifier"},{regex:/((^|[^\\])((\\)\\)*\$dominantPlotIdentifier)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$dominantPlotIdentifier))/gi,argIndex:2,argKey:"dominantPlotIdentifier"},{regex:/((^|[^\\])((\\)\\)*\$subservientPlotIdentifier)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$subservientPlotIdentifier))/gi,argIndex:2,argKey:"subservientPlotIdentifier"},{regex:/((^|[^\\])((\\)\\)*\$from\b)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$from\b))/gi,argIndex:2,argKey:"from"},{regex:/((^|[^\\])((\\)\\)*\$to\b)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$to\b))/gi,argIndex:2,argKey:"to"},{regex:/((^|[^\\])((\\)\\)*\$linkValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$linkValue))/gi,argIndex:2,argKey:"linkValue"},{regex:/((^|[^\\])((\\)\\)*\$fromPlotIdentifier)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromPlotIdentifier))/gi,argIndex:3,argKey:"fromPlotIdentifier"},{regex:/((^|[^\\])((\\)\\)*\$toPlotIdentifier)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toPlotIdentifier))/gi,argIndex:3,argKey:"toPlotIdentifier"},{regex:/((^|[^\\])((\\)\\)*\$flowDirection)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$flowDirection))/gi,argIndex:3,argKey:"flowDirection"},{regex:/(((\\)\\)*\$series.[0-9].name)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].name))/gi,argIndex:2,argKey:"name",isTimeseriesMacro:!0,parsingMethod:ve},{regex:/(((\\)\\)*\$series.[0-9].color)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].color))/gi,argIndex:3,argKey:"color",isTimeseriesMacro:!0,parsingMethod:ve},{regex:/(((\\)\\)*\$series.[0-9].plotIdentifier)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].plotIdentifier))/gi,argIndex:3,argKey:"plotIdentifier",isTimeseriesMacro:!0,parsingMethod:ve},{regex:/(((\\)\\)*\$series.[0-9].value)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].value))/gi,argIndex:3,argKey:"value",isTimeseriesMacro:!0,parsingMethod:ve},{regex:/(((\\)\\)*\$series.[0-9].dataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].dataValue))/gi,argIndex:3,argKey:"dataValue",isTimeseriesMacro:!0,parsingMethod:ve},{regex:/(((\\)\\)*\$series.[0-9].volumeValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].volumeValue))/gi,argIndex:3,argKey:"volumeValue",isTimeseriesMacro:!0,parsingMethod:ve},{regex:/(((\\)\\)*\$series.[0-9].volumeDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].volumeDataValue))/gi,argIndex:3,argKey:"volumeDataValue",isTimeseriesMacro:!0,parsingMethod:ve},{regex:/(((\\)\\)*\$series.[0-9].openValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].openValue))/gi,argIndex:3,argKey:"openValue",isTimeseriesMacro:!0,parsingMethod:ve},{regex:/(((\\)\\)*\$series.[0-9].openDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].openDataValue))/gi,argIndex:3,argKey:"openDataValue",isTimeseriesMacro:!0,parsingMethod:ve},{regex:/(((\\)\\)*\$series.[0-9].highValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].highValue))/gi,argIndex:3,argKey:"highValue",isTimeseriesMacro:!0,parsingMethod:ve},{regex:/(((\\)\\)*\$series.[0-9].highDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].highDataValue))/gi,argIndex:3,argKey:"highDataValue",isTimeseriesMacro:!0,parsingMethod:ve},{regex:/(((\\)\\)*\$series.[0-9].lowValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].lowValue))/gi,argIndex:3,argKey:"lowValue",isTimeseriesMacro:!0,parsingMethod:ve},{regex:/(((\\)\\)*\$series.[0-9].lowDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].lowDataValue))/gi,argIndex:3,argKey:"lowDataValue",isTimeseriesMacro:!0,parsingMethod:ve},{regex:/(((\\)\\)*\$series.[0-9].closeValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].closeValue))/gi,argIndex:3,argKey:"closeValue",isTimeseriesMacro:!0,parsingMethod:ve},{regex:/(((\\)\\)*\$series.[0-9].closeDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].closeDataValue))/gi,argIndex:3,argKey:"closeDataValue",isTimeseriesMacro:!0,parsingMethod:ve},{regex:/(\$binStart)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$binStart))/gi,argIndex:3,argKey:"binStart",isTimeseriesMacro:!0},{regex:/(\$binEnd)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$binEnd))/gi,argIndex:3,argKey:"binEnd",isTimeseriesMacro:!0},{regex:/(\$bin)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$bin))/gi,argIndex:3,argKey:"bin",isTimeseriesMacro:!0},{regex:/((^|[^\\])((\\)\\)*\$barColor)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$barColor))/gi,argIndex:3,argKey:"barColor"},{regex:/((^|[^\\])((\\)\\)*\$icon)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$icon))/gi,argIndex:3,argKey:"icon"}],r=[],n=t.length;for(e=0;e<n;e+=1)r.push(e);return function(){var e,n,a,i,o,s,l=arguments[0],c=arguments[1],u=arguments;if(he(c)||(c=r),l)for(o=c.length,s=function(){return a.parsingMethod(arguments[0],u[a.argIndex].series)},i=0;i<o;i+=1)if(a=t[c[i]])if(a.isTimeseriesMacro){var h=a.argKey;a.parsingMethod?l=l.replace(a.regex,s):u[a.argIndex]&&(l=l.replace(a.regex,u[a.argIndex].series[0][h]))}else e=Le(Me((n=arguments[a.argIndex])&&n[a.argKey],"")+""),l=(l=l.replace(a.regex,"$2$4"+(a.parsingMethod?a.parsingMethod(e):e))).replace(a.escapeRegex,"$2$4$5");return l}}(),ye=(d=function(e,t,r,n,a){var i,o=Math.abs(t-e),s=o/(r+1),l=n;return g(o,r,l)||(a&&(i=l>1?2:.5,Number(s)/Number(l)<i&&(l/=10)),o=(s=(Math.floor(s/l)+1)*l)*(r+1)),o},p=function(e){var t=Math.abs(e),r=String(t),n=0,a=r.indexOf(".");return-1!==a&&(n=r.length-a-1),n},g=function(e,t,r){return!(p(e/(t+1))>p(r))},function(e,t,r,n,a,i,o,s){var l,c,h,f,p,m,v,b,y,x,w,_,S,C,k,A,N,E,L,M,F,T,D,I,O,P,R,j=0,B=e,V=t,z=a,U=i,H=o;if((B=!0===isNaN(B)||B===u?.1:B)===(V=!0===isNaN(V)||V===u?0:V)&&0===B&&(B=.1),z=void 0===z||z,U=void 0===U||U,v=Math.floor(Math.log(Math.abs(B))/Math.LN10),b=Math.floor(Math.log(Math.abs(V))/Math.LN10),y=Math.max(b,v),x=Math.pow(10,y),Math.abs(B)/x<2&&Math.abs(V)/x<2&&(y--,x=Math.pow(10,y)),w=Math.floor(Math.log(B-V)/Math.LN10),_=Math.pow(10,w),B-V>0&&x/_>=10&&(x=_,y=w),S=(Math.floor(B/x)+1)*x,C=V<0?(Math.floor(Math.abs(V/x))+1)*x*-1:U||(C=Math.floor(Math.abs(V/x)-1)*x)<0?0:C,z&&B<=0&&(S=0),c=!(!n&&0!==n),h=!1==(l=!(!r&&0!==r))||!0===l&&Number(r)<B&&B-Number(r)>Y?S:Number(r),f=!1===c||!0===c&&Number(n)>V&&Number(n)-V>Y?C:Number(n),p=Math.abs(h-f),m=x,!1===c&&!1===l&&s)if(h>0&&f<0){for(A=!1,E=d(f,h,H,N=m>10?m/10:m,!1)-(H+1)*N;!1===A;)if(g(E+=(H+1)*N,H,N))if(k=E-p,L=E/(H+1),M=(F=Math.min(Math.abs(f),h))===Math.abs(f)?-1:1,0===H)A=!0;else for(D=1;D<=Math.floor((H+1)/2);D++)(T=L*D)-F>k||T>F&&(P=E-T)/L===Math.floor(P/L)&&T/L===Math.floor(T/L)&&(p=E,h=-1===M?P:T,f=-1===M?-T:-P,A=!0)}else k=(I=d(f,h,H,m,!0))-p,p=I,h>0?h+=k:f-=k;else s&&(R=function(e,t,r){for(var n,a=0,i=1;!g(t,n=0===(n=e+a*i)?1:n,r);){if((a=-1===i||a>e?++a:a)>25){n=0;break}i=a<=e?-1*i:1}return n},H>0&&(0===(O=R(H,p,m))&&(O=R(H,p+1,m),j=1),H=O));return{Max:h,Min:f,Range:p,interval:m,divGap:(h-f+j)/(H+1)}}),xe={keyup:!0,blur:!0,click:!0,load:!0,dragstart:!0,dragmove:!0,dragend:!0,dblclick:!0,mousedown:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,"fc-wheel":!0,"fc-click":!0,"fc-dragstart":!0,"fc-dragmove":!0,"fc-dragend":!0,"fc-dbclick":!0,"fc-mousedown":!0,"fc-mousemove":!0,"fc-mouseout":!0,"fc-mouseover":!0,"fc-mouseup":!0,"fc-pinchstart":K||J,"fc-pinchmove":K||J,"fc-pinchend":K||J,touchstart:K||J,touchmove:K||J,touchend:K||J,touchcancel:K||J},we={stripWhitespace:/\s+/g,dropHash:H,startsRGBA:q,cleanColorCode:G,breakPlaceholder:U,hexcode:/^#?[0-9a-f]{6}/i},_e={colors:{B90000:"B90000",FFFFFF:"FFFFFF",AAAAAA:"AAAAAA",c000000:"000000"},BLANK:"",DATASET:"dataset",NORMALSTRING:"normal",PX:"px",INPUT:"input",LABEL:"label",BLANKSPACE:" ",COMMA:",",OBJECTBOUNDINGBOX:"objectBoundingBox",GROUPID:"groupId",EVENTARGS:"eventArgs",CIRCLE:"circle",POLYGON:"polygon",SPOKE:"spoke",RECTANGLE:"rectangle",ROLLOUT:"rollout",ROLLOVER:"rollover",DATAPLOTCLICK:"dataplotclick",defaultFontStr:"Verdana,sans",line:"line",bar:"bar",column:"column",volume:"volume",HUNDREDSTRING:"100",SEVENTYSTRING:"70",NINETYSTRING:"90",AUTOSTRING:"auto",configStr:"config",animationObjStr:"animationObj",showHoverEffectStr:"showHoverEffect",hiddenStr:"hidden",visibleStr:"visible",columnStr:"columns",barStr:"bars",barHotStr:"bar-hot",colHotStr:"col-hot",shadowStr:"shadow",dataLabelStr:"datalabel",errorBarStr:"errorBar",errorHotStr:"error-hot",errorShadowStr:"error-shadow",negativeValueStr:"negative-values",positiveValueStr:"positive-values",zeroPlaneStr:"zero-plane",categoryPlotsStr:"categoryplots",noneStr:"none",setRolloverAttrStr:"setRolloverAttr",setRolloutAttrStr:"setRolloutAttr",elementStr:"element",hotElementStr:"hotElement",strokeWidthStr:"stroke-width",strokeDashStr:"stroke-dasharray",strokeLineJoinStr:"stroke-linejoin",miterStr:"miter",visiblilityStr:"visibility",ROUND:"round",PERCENTAGESTRING:"%",pStr:"p",sStr:"s",divLineAlpha3DStr:"divLineAlpha3D",divLineAlphaStr:"divLineAlpha",altVGridColorStr:"altVGridColor",altVGridAlphaStr:"altVGridAlpha",altHGridColorStr:"altHGridColor",altHGridAlphaStr:"altHGridAlpha",PLOTFILLCOLOR_STR:"plotFillColor",UNDERSCORE:"_",gaugeFillColorStr:"gaugeFillColor",gaugeBorderColorStr:"gaugeBorderColor",NORMAL:"normal",BOLD:"bold",POINTER:"pointer",DEFAULT:"default",POSITION_MIDDLE:"middle",POSITION_START:"start",POSITION_TOP:"top",POSITION_BOTTOM:"bottom",POSITION_END:"end"};function Se(e){return null!=e}function Ce(e){var t={},r=e.getBoundingClientRect();return t.left=r.left+(window.pageXOffset||document.documentElement.scrollLeft),t.top=r.top+(window.pageYOffset||document.documentElement.scrollTop),t}function ke(e){var t=e&&(e.sourceEvent||e.originalEvent||e);return K&&t&&(t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0])||t||re}function Ae(e){var t,r,n,a=e.data,i=a.chart,o=i.getFromEnv("animationManager"),s=fe(ke(e.originalEvent)),l=i.getChildren("canvas")[0],c=t=l.getGraphicalElement("resizeBox"),u=a.layerX=s.pageX-a.chartPosLeft,h=a.layerY=s.pageY-a.chartPosTop,f=u-a.ox,d=h-a.oy,p=a.bBox,g=a.ox,m=a.oy,v=a.zoomX,b=a.zoomY,y=a.canvasY,x=a.canvasX,w=a.canvasX2,_=a.canvasY2,S=a.strokeWidth,C=a.attr;switch(e.state){case"start":r=Ce(this),a.chartPosLeft=r.left,a.chartPosTop=r.top,u=s.pageX-a.chartPosLeft,h=s.pageY-a.chartPosTop,a.oy=h,a.ox=u,a.allowMove=!1,C.x=0,C.y=0,C.height=0,C.width=0,c=l.addGraphicalElement("resizeBox",o.setAnimation({el:t||"rect",attr:C,container:i.getChildContainer("trackerGroup")})).show(),t||l.addGraphicalElement("resizeBox",c),u>x&&u<w&&h>y&&h<_&&(a.allowMove=!0),e.target._isTrackerElem&&(a.allowMove=!1);break;case"end":n={chart:i,selectionLeft:(p=c.getBBox()).x,selectionTop:p.y,selectionHeight:p.height,selectionWidth:p.width,originalEvent:e.originalEvent},a.isDragged&&(a.selectionEnd&&a.selectionEnd(n),a.isDragged=0),c.hide(),delete a.oy,delete a.ox;break;default:if(!a.allowMove)return;f=u-a.ox,d=h-a.oy,p=a.bBox,g=a.ox,m=a.oy,a.isDragged||(n={chart:i,selectionLeft:(v?te(g,g+f):x)+.5*S,selectionTop:(b?te(m,m+d):y)+.5*S,selectionHeight:0,selectionWidth:0,originalEvent:e.originalEvent},a.selectionStart&&a.selectionStart(n),a.isDragged=1),f=-(g-te(g-(g-ee(g+f,x)),w)),d=-(m-te(m-(m-ee(m+d,y)),_)),o.setAnimation({el:c,attr:{x:(v?te(g,g+f):x)+.5*S,y:(b?te(m,m+d):y)+.5*S,width:v?W(f):a.canvasW,height:b?W(d):a.canvasH}})}}function Ne(e){var t=e.data,r=e.originalEvent,n=r.target||r.originalTarget||r.srcElement||r.relatedTarget||r.fromElement,a=r.type,i=r.layerX,o=r.layerY;i===u&&(i=r.pageX-t.chartPosLeft,o=r.pageY-t.chartPosTop),"mousedown"===a&&(n.ishot=i>t.canvasX&&i<t.canvasX2&&o>t.canvasY&&o<t.canvasY2),"mouseup"===a&&setTimeout((function(){n.ishot=!1}),1)}function Ee(){var e,t,r;for(t=0,r=arguments.length;t<r;t+=1)if((e=arguments[t])||!1===e||0===e)return e;return""}function Le(e){return e&&e.replace(/\$/g,"$$$$")}function Me(e,t){return e||!1===e||0===e?e:t}function Fe(){var e,t,r;for(t=0,r=arguments.length;t<r;t+=1)if(((e=arguments[t])||!1===e||0===e)&&!isNaN(parseInt(e,10)))return e<1?1:e;return u}function Te(){var e,t,r;for(t=0,r=arguments.length;t<r;t+=1)if((e=arguments[t])||!1===e||0===e)return e;return u}function De(e){var t;if(6===e.length){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5];return[o/(t=r*o-i*n),-n/t,(n*s-a*o)/t,-i/t,r/t,-(r*s-a*i)/t]}return[]}function Ie(e,t,r){var n=e.x,a=e.y,i=t.oriX,o=t.oriY;return n-=i,a-=o,6===r.length?{x:r[0]*n+r[1]*a+r[2]+i,y:r[3]*n+r[4]*a+r[5]+o}:{x:n,y:a}}function Oe(e,t){pe(e.substr(0,e.indexOf("__FC_ARG_SEP__")).replace(/\s/g,""),e.substr(e.indexOf("__FC_ARG_SEP__")).replace(/__FC_ARG_SEP__/,""),t)}function Pe(e){/^j\s*\-/.test(e)?Oe(e.replace(/^j\s*\-/,"").replace(/\-/,"__FC_ARG_SEP__")):Oe(e.replace(/^javascript\s*\:/i,"").replace(/[\'\"]?\s*\,\s*[\'\"]?/g,"__FC_ARG_SEP__").replace(/\(\s*[\'\"]?(.*)\)\;?/,"__FC_ARG_SEP__$1").replace(/[\'\"]?$/,""),!0)}function Re(e,t){var r=$(10,t);return X(e*r)/r}function je(e,t,r){return r||r===u?[e,t]:"none"}function Be(e,t){return"object"!=typeof e?"":((e.fontSize||e["font-size"])&&(!e.fontSize&&e["font-size"]&&(e.fontSize=e["font-size"],delete e["font-size"]),e.lineHeight=1.2*(parseFloat(e.fontSize)||t||10)+"px",delete e["line-height"]),!e.lineHeight&&e["line-height"]&&(e.lineHeight=e["line-height"],delete e["line-height"]),e.lineHeight)}function Ve(e,t){return e-t}function ze(e,t){return t-e}t.appliedCSS=["fontFamily","fontSize","fontWeight","fontStyle"],t.preDefStr=_e,t.regex=we,t.chartAPI=void 0,t.getAxisLimits=ye,t.parseTooltext=be,t.gradientify=me,t.toRaphaelColor=ge,t.getViewPortDimension=de,t.getEventCoordinate=fe,t.isArray=he,t.createElement=function(e,t,r){var n,a=E.createElement(e);for(n in t)a.setAttribute(n,t[n]);return r&&r.appendChild&&r.appendChild(a),a},t.animHelperFN={getTimeByValue:function(e,t,r){var n=(e.end-e.start)/(t.endPx-t.startPx);return{start:e.start+n*(r.startPx-t.startPx),end:e.start+n*(r.endPx-t.startPx)}},animByWeight:function(e,t,r,n,a){var i=n||1,o=t,s=a||0;return{start:e/--o*r*i+s,end:e/o*r*i+r+s}}},t.rgbaToHex=function(e){var t=e.replace("rgba(","").split(",");return"#"+("000000"+(t[0]<<16|t[1]<<8|t[2]).toString(16)).slice(-6)},t.polyPathToPath=function(e){var t,r,n,a,i,o=e[0],s=e[1],l=e[2],c=e[3],u=e[4],h=e[5];if(t=[],o=C.parseInt(o,10)||0,s=V(s)||0,l=V(l)||0,c=V(c)||0,u=null===u||isNaN(u)?.5*Math.PI:u%360*(Math.PI/180),h=null===h||isNaN(h)?0:V(h),a=u,o>2)switch(r=2*Math.PI/o,h){case 0:for(n=0;n<o;n++)t.push("L",s+c*Math.cos(-a),l+c*Math.sin(-a)),a+=r;t[0]="M",t.push("Z");break;case 1:for(n=0;n<o;n++)t.push("M",s,l,"L",s+c*Math.cos(-a),l+c*Math.sin(-a)),a+=r;break;default:for(r*=.5,i=c*Math.cos(r)*(1-h),n=0;n<o;n++)t.push("L",s+c*Math.cos(-a),l+c*Math.sin(-a)),a+=r,t.push("L",s+i*Math.cos(-a),l+i*Math.sin(-a)),a+=r;t[0]="M",t.push("Z")}else 0===c?t.push("M",s,l,"L",s,l,"Z"):t.push("M",s-c,l,"A",c,c,0,0,0,s+c,l,"A",c,c,0,0,0,s-c,l,"Z");return t},t.removeHtmlAttrs=function(e){return void 0===e&&(e={}),ue.forEach((function(t){return delete e[t]})),e},t.crispBound=function(e,t,r,n,a,i,o,s){void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0),void 0===n&&(n=0),void 0===a&&(a=0),void 0===i&&(i={}),void 0===s&&(s=!1);var l=a;if(n<1||r<1)return{x:e,y:t,width:r,height:n,"stroke-width":l};(l>=r||l>=n)&&(l=Math.floor(Math.min(r,n)/2)||l);var c=e,u=t,h=e+r,f=l/2,d=l%2,p=t+n;return u=i.top?Math.round(u)+f-ce:d?Math.floor(u)+.5-ce:Math.round(u)-ce,p=i.bottom?Math.round(p)-f-ce:o&&i.top?Math.round(p)+f-ce:d?Math.floor(p)+.5-ce:Math.round(p)-ce,c=i.left?Math.round(c)+f-ce:o&&i.right?Math.round(c)-f-ce:d?s?Math.round(c)-f-ce:Math.floor(c)+.5-ce:Math.round(c)-ce,h=i.right?Math.round(h)-f-ce:d?Math.floor(h)+.5-ce:Math.round(h)-ce,{x:c,y:u,width:Math.abs(h-c),height:Math.abs(p-u),"stroke-width":l}},t.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"},t.chartPaletteStr=le,t.normalizeAngle=function(e,t){var r=t?360:se,n=(e||0)%r;return n<0?r+n:n},t.MathExt=oe,t.xssEncode=function(e){var t=e;return null==t||"function"!=typeof t.toString?"":t=t.toString().replace(/&/g,"&amp;").replace(/\'/g,"&#39;").replace(/\"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},t.isXSSSafe=function(e,t){return(!t||null===P.exec(e))&&null===O.exec(e)},t.domInsertModes={REPLACE:"replace",APPEND:"append",PREPEND:"prepend"},t.defaultGaugePaletteOptions=ie,t.txtLabel=Z,t.hasTouch=J,t.touchEnabled=K,t.mathRound=X,t.mathAbs=W,t.validhexcolor=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,t.cleanColorCode=G,t.startsRGBA=q,t.dropHash=H,t.TXT_REGEX=z,t.visibleStr="visible",t.hiddenStr="hidden",t.animationObjStr="animationObj",t.configStr="config",t.lineHeightFactor=1.2,t.HOVER_THRESHOLD_PIXELS=1,t.CLICK_THRESHOLD_PIXELS=5,t.TOUCH_THRESHOLD_PIXELS=15,t.canvasBorderColorStr="canvasBorderColor",t.TXT_STRING=B,t.TXT_HREF=j,t.FIT="fit",t.FILL="fill",t.TILE="tile",t.HAND="pointer",t.POINTER="pointer",t.BOLD="bold",t.NORMAL="normal",t.UNDERSCORE="_",t.ROUND="round",t.canvasBGAlphaStr="canvasBgAlpha",t.TEXTANCHOR="text-anchor",t.COMMASPACE=", ",t.PXSTRING="px",t.VISIBLE="visible",t.INITIALSTR="initial",t.FINALSTR="final",t.HUNDREDSTRING="100",t.SHAPE_RECT="rect",t.FC_CONFIG_STRING="_FCconf",t.POSITION_END="end",t.POSITION_START="start",t.MIDDLESTR=t.POSITION_MIDDLE="middle",t.POSITION_BOTTOM="bottom",t.POSITION_TOP="top",t.STRINGUNDEFINED="undefined",t.DECIMALSTRING=".",t.ONESTRING="1",t.TESTSTR="Ag",t.MOUSEMOVE="fc-mousemove",t.MOUSEOUT="fc-mouseout",t.ZEROSTRING="0",t.COMMA=",",t.COMMASTRING=",",t.BLANKSTRING="",t.BLANK="",t.OBJECTSTRING="object",t.STRINGSTRING="string",t.BREAKSTRING="<br />",t.HASHSTRING="#",t.COLOR_TRANSPARENT="rgba(0,0,0,0)",t.COLOR_WHITE="FFFFFF",t.COLOR_GLASS="rgba(255, 255, 255, 0.3)",t.COLOR_BLACK="000000",t.SAMPLESTRING="Ay0",t.BLANKSTRINGPLACEHOLDER="#BLANK#",t.UNDEF=u,t.POSITION_CENTER="center",t.POSITION_LEFT="left",t.POSITION_RIGHT="right",t.POSITION_ABSOLUTE="absolute",t.TRACKER_FILL=R,t.attrTypeBool=2,t.attrTypeNum=1,t.DEFAULT_FT_FONT="Helvetica, Arial, sans-serif",t.isIpad=I,t.isEdge=D,t.isIE=T,t.isIE11=F,t.hasSVG=M,t.isFirefox=N,t.isIE9=A,t.getEmptyConstractor=function(){return k},t.stubFN=k,t.DASH_DEF="none",t.BGRATIOSTRING=void 0;t.isSimilarObject=function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;var r;for(r in e)if(e[r]!==t[r])return!1;return!0},t.snapPoint=function(e,t,r){for(var n=t.length,a=r.lastSnap,i=1,o=n,s=r.config.setValue;o--;)if(W(t[o]-s)<e.snapPixel){a!==o&&(r.lastSnap=e.datasetConf.snapToDivOnly?u:o,s=t[o]),i=0;break}return i&&(r.lastSnap=u),s},t.datasetFactory=function(e,t,r,n,a,i){if(void 0===n&&(n=1),void 0===i&&(i=[]),e&&t&&r){var o,s,l,c=e.getChildren(r)||[];for(o=0;o<n;o+=1)c&&c[o]&&!c[o].getState("removed")?l=c[o]:(l=new t,e.attachChild(l,r)),l.config._childIndex=o,l.setState("_total",n),l.setJSONIndex&&l.setJSONIndex(i[o]||o),a&&a.length>o&&l.configure&&l.configure(a[o]);if(o<(s=c&&c.length))for(;o<s;o+=1)c[o]&&c[o].remove&&c[o].remove()}},t.componentFactory=function(e,t,r,n,a){if(void 0===n&&(n=1),e&&t&&r){var i,o,s,l=e.getChildren(r)||[];for(i=0;i<n;i+=1)l&&l[i]&&!l[i].getState("removed")?s=l[i]:(s=new t,e.attachChild(s,r)),a&&a.length>i&&s.configure&&s.configure(a[i]);if(i<(o=l&&l.length))for(;i<o;i+=1)l[i]&&l[i].remove&&l[i].remove()}}},function(e,t,r){"use strict";t.__esModule=!0,t.parseConfiguration=function(e,r,i,o,s,l){var c,u,h,f=1,d=o,p=l,g=s;for(c in t.attribDefs=n=n||a,d=d||a,p=p||a,g=g||{},e)if(!d[c]&&((u=e[c])||!1===u||0===u))switch((h=p[c]||n[c])&&h.type){case 1:u=Number(u),isNaN(u)||(r[c]=u);break;case 2:u=Number(u),isNaN(u)||(r[c]=!!u);break;default:r[c]=u}if(i)for(c in r)void 0===r[c]&&(h=p[c]||n[c])&&h.pAttr&&(r[c]=i[h.pAttr]);for(;f;)for(c in f=0,r)void 0===r[c]&&(h=p[c]||n[c])&&(h.attr?void 0!==(u=r[h.attr])&&(r[c]=u,f+=1):h.parser&&void 0!==(u=h.parser(r,i,g))&&(r[c]=u,f+=1))},t.setAttribDefs=function(e,r){var a,i;t.attribDefs=n=n||{},"string"==typeof e?(a={})[e]=r:a=e;for(i in a)n[i]||(n[i]=a[i])},t.hasAttribDefs=function(e){return!!n[e]},t.attribDefs=void 0;var n,a={},i=Math.max;t.attribDefs=n,t.attribDefs=n={setBorderWidth:{type:1,pAttr:"plotborderthickness"},plotborderthickness:{type:1,pAttr:"plotborderthickness"},showBorderEffect:{parser:function(){var e=arguments[1],t=.1;return 1==+e.showplotborder&&e.plotborderthickness===t?1:0}},alphaanimation:{type:1},showplotborder:{type:1,pAttr:"showplotborder"},zeroplanethickness:{type:1},showzeroplaneontop:{type:1},stickytracking:{type:1},usemessagelog:{type:1},showtooltip:{type:1,pAttr:"showtooltip"},seriesnameintooltip:{type:1},plothovereffect:{type:1,attr:"anchorhovereffect"},anchorhovereffect:{type:1,attr:"showhovereffect"},showhovereffect:{type:1},linethickness:{type:1,pAttr:"linethickness"},dashed:{type:1,pAttr:"linedashed"},linedashed:{type:1,attr:"plotborderdashed"},plotborderdashed:{type:1,pAttr:"plotborderdashed"},linedashlen:{type:1,pAttr:"linedashlen"},linedashgap:{type:1,pAttr:"linedashgap"},anchoralpha:{pAttr:"anchoralpha"},anchorsides:{type:1,pAttr:"anchorsides"},anchorradius:{type:1,pAttr:"anchorradius"},anchorbgalpha:{pAttr:"anchorbgalpha"},anchorbgcolor:{pAttr:"anchorbgcolor"},anchorbordercolor:{pAttr:"anchorbordercolor"},anchorstartangle:{type:1,pAttr:"anchorstartangle"},anchorimageurl:{pAttr:"anchorimageurl"},anchorimagescale:{type:1,pAttr:"anchorimagescale"},anchorimagealpha:{pAttr:"anchorimagealpha"},anchorimagepadding:{type:1,pAttr:"anchorimagepadding"},anchorborderthickness:{type:1,pAttr:"anchorborderthickness"},anchorshadow:{type:1,pAttr:"anchorshadow"},valuepadding:{type:1,pAttr:"valuepadding"},valueposition:{pAttr:"valueposition"},plotfillangle:{type:1,pAttr:"plotfillangle"},useplotgradientcolor:{type:1},rotatevalues:{type:1,pAttr:"rotatevalues"},includeinlegend:{type:1},connectnulldata:{type:1},plotfillalpha:{pAttr:"plotfillalpha"},alpha:{pAttr:"linealpha"},linealpha:{pAttr:"plotfillalpha"},showvalues:{type:1,pAttr:"showvalues"},showpercentvalues:{type:1,parser:function(e){return e.isstacked&&e.stack100percent?1:0}},showpercentintooltip:{type:1,parser:function(e){return e.isstacked&&e.stack100percent?1:0}},stack100percent:{type:1,attr:"usepercentdistribution"},drawfullareaborder:{type:1},use3dlineshift:{type:1},parentyaxis:{type:1},radarborderthickness:{type:1},radarborderradius:{type:1},gaugeoriginx:{type:1},hasgaugeoriginx:{attr:"gaugeoriginx"},gaugeoriginy:{type:1},hasgaugeoriginy:{attr:"gaugeoriginy"},gaugeradius:{type:1},hasgaugeradius:{attr:"gaugeradius"},showgaugeborder:{type:1},setAdaptiveMin:{type:1},adjustDiv:{type:1},axisNameWidth:{type:1},rotateAxisName:{type:1},useEllipsesWhenOverflow:{type:1},showZeroPlane:{type:1},zeroPlaneAlpha:{type:1},showZeroPlaneValue:{type:1},zeroPlaneOnTop:{type:1},trendlineThickness:{type:1},showTrendlinesOnTop:{type:1},trendlinesAreDashed:{type:1},trendlinesDashLen:{type:1},trendlinesDashGap:{type:1},showTrendlines:{type:1},showTrendlineLabels:{type:1},showLabels:{type:1},rotateLabels:{type:1},slantLabel:{type:1},showAxisValues:{type:1},showTooltip:{type:1},maxLabelHeight:{type:1},useroundedges:{type:1,pAttr:"useroundedges"},placevaluesinside:{type:1},plotpaddingpercent:{type:1},use3dlighting:{type:1,pAttr:"use3dlighting"},usedataplotcolorforlabels:{type:1},plotspacepercent:{type:1,parser:function(e){return i(e.plotspacepercent%100,0)}},ratio:{pAttr:"plotfillratio"},base:{type:1},showMinorDivLineValues:{type:1},numMinorDivLines:{type:1},majorTMNumber:{type:1},majorTMHeight:{type:1},showTickMarks:{type:1},majorTMThickness:{type:1},adjustTM:{type:2},minorTMNumber:{type:1},minorTMThickness:{type:1},tickMarkDistance:{type:1},placeTicksInside:{type:1},placeValuesInside:{type:1},axisValuePadding:{type:1},gridLineWidth:{type:1},showRadarBorder:{type:1},radarBorderThickness:{type:1},maxcolwidth:{type:1,parser:function(e){return Math.abs(e.maxcolwidth)}},maxbarheight:{type:1,parser:function(e){return Math.abs(e.maxbarheight)}},plotborderalpha:{parser:function(e,t){return t.plotborderalpha||e.plotfillalpha}},autoscale:{type:1},plotborderdashlen:{type:1,pAttr:"plotborderdashlen"},plotborderdashgap:{type:1,pAttr:"plotborderdashgap"},plotfillratio:{pAttr:"plotfillratio"},drawverticaljoins:{type:1,pAttr:"drawverticaljoins"},useforwardsteps:{type:1,pAttr:"useforwardsteps"},minimizetendency:{type:1},usepercentdistribution:{type:1},stepatmiddle:{type:1}}},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a,i,o,s=n(r(257)),l=window,c=l.document,u="ontouchstart"in l,h="click",f="touchstart",d="touchend",p="touchmove",g="mouseout",m="mouseover",v="keydown",b=((o={}).pointerdrag={start:["mousedown"],end:["mouseup"],onStart:["mousemove"],postHandlers:{},preHandlers:{}},o.pointerhover={start:[m],end:[g]},o.click={start:[h]},o.escape={start:[v],preHandlers:{start:function(e){var t=e||l.event;return!(!t.keyCode||27!==t.keyCode)}}},u&&((i=o.pointerdrag).start.push(f),i.end.push(d),i.onStart.push(p),i.postHandlers.onStart=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}),o);a=(0,s["default"])({},b);var y=new function(){var e={},t={},r=c.addEventListener?function(e,t,r){e.addEventListener(t,r,!1)}:function(e,t,r){e.attachEvent("on"+t,r)},n=c.removeEventListener?function(e,t,r){e.removeEventListener(t,r,!1)}:function(e,t,r){e.detachEvent("on"+t,r)},i=function(e,t,a,i){var o=i||"closure";return r(e,t,a[o]),function(){n(e,t,a[o])}},o=function(e,t,r){var n,o,s,c,u=[];if(c=a[t],r.start=function(t){for(var n=c.onStart,a=c.end,o=[],s=[],u=n&&n.length||0,h=t||l.event;u--;)o.push(i(e,n[u],r,"onStart"));for(u=a&&a.length||0;u--;)s.push(i(e,a[u],r,"end"));r.startUn=r.startUn?r.startUn.concat(o):o,r.endUn=r.endUn?r.endUn.concat(s):s,r.state="start",r.closure(h)},r.onStart=function(e){var t=e||l.event;r.state="on",r.gDef&&r.gDef.preHandlers&&"function"==typeof r.gDef.preHandlers.onStart&&r.gDef.preHandlers.onStart(t),r.closure(t),r.gDef&&r.gDef.postHandlers&&"function"==typeof r.gDef.postHandlers.onStart&&r.gDef.postHandlers.onStart(t)},r.end=function(e){for(var t=r.startUn,n=r.endUn,a=t&&t.length||0,i=e||l.event;a--;)t[a]();for(delete r.startUn,r.startUn=[],a=n&&n.length||0;a--;)n[a]();delete r.endUn,r.endUn=[],r.state="end",r.closure(i)},c)for(s=(n=c.start).length;s--;)(o=n[s])&&u.push(i(e,o,r,"start"));return u},u=function(e,t,r){var i,o,s,l;if(l=a[t])for(s=(i=l.start).length;s--;)(o=i[s])&&n(e,o,r.start)},h=function(e){return function(t){var r=e.context||e.elem,n=t.originalEvent||t;n=n||l.event,e.handler.call(r,{data:e.data,type:e.type,state:e.state,isGesture:e.isGesture,target:n.target||n.srcElement,originalEvent:n})}};return{listen:function(r,n,s,l,u){var f,d,p,g,m,v=this,b="string"==typeof n?n.split(" "):n,y=b.length,x=[],w=function(e,t,r){x.push((function(){v.unlisten(e,t,r)}))};if(r.ownerDocument&&r.ownerDocument===c)for(;y--;)d=b[y],g=Boolean(a[d]),(p={handler:m="function"==typeof s?s:s[y],elem:r,type:d,isGesture:g,gDef:g?a[d]:null,data:l,context:u,start:[],end:[],links:{prev:null,next:null}}).closure=h(p),g?((f=t[d])||(f=t[d]=[]),f.push(p),o(r,d,p)):((f=e[d])||(f=e[d]=[]),f.push(p),i(r,d,p)),w(r,d,m);else for(;y--;)d=b[y],(p={handler:m="function"==typeof s?s:s[y],elem:r,type:d,isGesture:g,data:l,context:u,start:[],end:[],links:{prev:null,next:null}}).closure=h(p),(f=e[d])||(f=e[d]=[]),f.push(p),i(r,d,p),w(r,d,m);return{unlisten:function(){for(var e=x.length;e--;)x[e]();x.length=0,x=null}}},unlisten:function(r,i,o){var s,l,c,h=!1;if(Boolean(a[i]))for(l=(s=t[i])&&s.length||0;l--;)(c=s[l]).handler===o&&c.elem===r&&(u(r,i,c),s.splice(l,1),h=!0);else for(l=(s=e[i])&&s.length||0;l--;)(c=s[l]).handler===o&&c.elem===r&&(n(r,i,c.closure),s.splice(l,1),h=!0);return h},fire:function(t,r,n,a){var i,o,l,u;if(t.ownerDocument&&t.ownerDocument===c)c.createEvent?((u=c.createEvent("HTMLEvents")).initEvent(r,!0,!0),n&&n.originalEvent&&(n.originalEvent=u),"function"==typeof t[r]&&t[r](),t.dispatchEvent(u),a&&!u.returnValue&&a(u)):((u=c.createEventObject()).eventType=r,n&&(n.originalEvent?n.originalEvent=u:(0,s["default"])(u,n)),"function"==typeof t[r]&&t[r](),t.fireEvent("on"+r,u),a&&!u.returnValue&&a(u));else for(o=(i=e[r])&&i.length||0;o--;)(l=i[o]).elem===t&&l.closure(n)}}};t["default"]=y},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=function(e,t,r,n){var a;if("object"!=typeof e&&"object"!=typeof t)return null;if("object"!=typeof t||null===t)return e;void 0===e&&(e=t instanceof Array?[]:{});if(n)for(a in t)e[a]=t[a];else i(e,t,r);return e},t.cacher=t.showRecursively=t.loadRefImage=t.dashedAttr2CSSMap=t.getArrayCopy=t.merge=void 0;/Firefox/i.test(window.navigator.userAgent);var n=function(e,t){for(var r=t.length,n=-1;r--;)if(e===t[r])return n=r;return n},a=function(e){var t,r,n;for(t=0,r=e.length,n=new Array(r);t<r;t++)n[t]=e[t];return n},i=function o(e,t,r,a,i){var s,l,c,u,h;if(i?(a.push(e),i.push(t)):(a=[e],i=[t]),t instanceof Array)for(s=0;s<t.length;s+=1){try{l=e[s],c=t[s]}catch(f){continue}"object"!=typeof c?r&&void 0===c||(e[s]=c):(null!==l&&"object"==typeof l||(l=e[s]=c instanceof Array?[]:{}),-1!==(h=n(c,i))?l=e[s]=a[h]:o(l,c,r,a,i))}else for(s in t){try{l=e[s],c=t[s]}catch(f){continue}null!==c&&"object"==typeof c?"[object Object]"===(u=Object.prototype.toString.call(c))?(null!==l&&"object"==typeof l||(l=e[s]={}),-1!==(h=n(c,i))?l=e[s]=a[h]:o(l,c,r,a,i)):"[object Array]"===u?(null!==l&&l instanceof Array||(l=e[s]=[]),-1!==(h=n(c,i))?l=e[s]=a[h]:o(l,c,r,a,i)):e[s]=c:e[s]=c}return e};t.merge=i,t.getArrayCopy=a,t.showRecursively=function(e){for(var t={},r=e,n=t;r;)r.node&&r.node.style&&"none"===r.node.style.display&&(r.show(),n._doHide=!0),r=r.parent,n.parent={},n=n.parent;return function(){for(var r=e,n=t;r;)n._doHide&&r.hide(),r=r.parent,n=n.parent}},t.loadRefImage=function(e,t){var r=t.src,n=e._.RefImg;n||(n=e._.RefImg=new Image),t.src!==undefined&&(n.src=r,e._.RefImg=n)},t.dashedAttr2CSSMap={"font-family":"fontFamily","font-size":"fontSize","text-anchor":"textAnchor","font-weight":"fontWeight","letter-spacing":"letterSpacing","font-style":"fontStyle"};t.cacher=function(e,t,r,n,i,o,s){var l=o||{},c=0;return l.__start===undefined&&(l.__start=null),l.__end===undefined&&(l.__end=null),i=i||1e3,n=n||"item",function(o){var u,h,f,d=s?o:a(arguments).join("␀");return(u=l[d=""===d?"__blank":d])?u.__prev&&(l[u.__prev].__next=u.__next,u.__next?u.__next.__prev=u.__prev:l.__end=u.__prev):(u=l[d]={},e&&(l[d][n]=r?r(e.apply(t,arguments)):e.apply(t,arguments)),null===l.__end&&(l.__end=d),++c>i&&l.__end&&(h=l[l.__end],l[h.__prev].__next=null,delete l[l.__end],l.__end=h.__prev,c--)),(f=l.__start)!==u&&(u.__prev=null,u.__next=f,f&&(f.__prev=d),l.__start=u),l[d][n]}}},function(e,t,r){"use strict";t.__esModule=!0,t.convertColor=function(e,t,r){var n,a,i=0,o=0,s=0,l=t;r&&r.match(u)&&(a=r.split(","),i=a[0].slice(a[0].indexOf("(")+1),o=a[1],s=a[2],l||0===l||(l=parseInt(100*a[3].slice(0,a[3].indexOf(")")),10)));if(e)if(e.match(u))a=e.split(","),i=a[0].slice(a[0].indexOf("(")+1),o=a[1],s=a[2];else{switch((n=e.replace(h,"").split(",")[0]).length){case 3:n=n.charAt(0)+n.charAt(0)+n.charAt(1)+n.charAt(1)+n.charAt(2)+n.charAt(2);break;case 6:break;default:n=(n+"FFFFFF").slice(0,6)}i=parseInt(n.slice(0,2),16)||0,o=parseInt(n.slice(2,4),16)||0,s=parseInt(n.slice(4,6),16)||0}l||0===l||(l=100);"string"==typeof l&&(l=l.split(",")[0]);return l=parseInt(l,10)/100,"rgba("+i+","+o+","+s+","+l+")"},t.getDarkColor=m,t.getLightColor=v,t.mapSymbolName=function(e,t){var r=n,o=e;(o=f(o))>=3&&(r=(t?i:a)+o);return r},t.getColumnColor=function(e,t,r,n,a,i,o,s,l){var c,u,h,f,d,p,b,y=e,x=t;u=y.split(","),h=x.split(","),f=i.split(","),b=o.split(","),y=y.replace(/\s/g,"").replace(/\,$/,""),l?c={FCcolor:{color:u[0],alpha:h[0]}}:a?(d=u[0],p=h[0],c={FCcolor:{color:m(d,75)+","+v(d,10)+","+m(d,90)+","+v(d,55)+","+m(d,80),alpha:p+","+p+","+p+","+p+","+p,ratio:"0,11,14,57,18",angle:s?"90":"0"}},f=[m(d,70)]):(x=function(e,t,r){var n,a=e.split(","),i=r;void 0!==i&&(i=Number(i.split(",")[0]));for(i=isNaN(i)?void 0:i,a[0]=g(a[0],i),n=1;n<t;n+=1)a[n]=a[0]*g(a[n],i)/100;return a.join(",")}(x,u.length),c={FCcolor:{color:y,alpha:x,ratio:r,angle:s?-n:n}});return[c,{FCcolor:{color:f[0],alpha:b[0]}}]},t.getPointColor=function(e,t){var r=d(e),n=p(t);return{FCcolor:{gradientUnits:"objectBoundingBox",cx:.4,cy:.4,r:"100%",color:v(r,70)+","+m(r,50),alpha:n+","+n,ratio:void 0,radialGradient:!0}}},t.getAngle=function(e,t,r){var n=180*Math.atan(t/e)/Math.PI;2===r?n=180-n:3===r?n+=180:4===r&&(n=360-n);return n},t.parseColor=b,t.getValidColor=function(e){return c.test(b(e))&&e},t.RGBtoHex=function(e){return("000000"+(e[0]<<16|e[1]<<8|e[2]).toString(16)).slice(-6)},t.rawRGBtoHEX=function(e){var t;return("000000"+((t=e.match(/[\d+]+/g).splice(0,3))[0]<<16|t[1]<<8|t[2]).toString(16)).slice(-6)},t.HEXtoRGB=function(e){var t=parseInt(e,16),r=Math.floor(t/65536),n=Math.floor((t-65536*r)/256),a=Math.floor(t-65536*r-256*n);return[r,n,a]},t.parsePointValue=f,t.getFirstColor=d,t.getFirstAlpha=p;var n="circle",a="poly_",i="spoke_",o=Math.abs,s=/\s+/g,l=/^#?/,c=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,u=/^rgba/i,h=/[#\s]/gi;function f(e,t){var r=e;return r=r||!1===r||0===r?Number(r):NaN,isNaN(r)?null:t?o(r):r}function d(e,t){var r=e;return""===(r=(r=r.split(",")[t||0]).replace(s,""))&&(r="000000"),r.replace(l,"#")}function p(e){var t=e;return t=parseInt(t,10),(isNaN(t)||t>100||t<0)&&(t=100),t}function g(e,t){var r=e;return r=Number(r),r=isNaN(r)?100:r,void 0!==t&&(r=r*t/100),r%101}function m(e,t){var r=e,n=t;n=n<0||n>100?100:n,n/=100,r=r.replace(h,"");var a=parseInt(r,16),i=Math.floor(a/65536),o=Math.floor((a-65536*i)/256);return("000000"+(i*n<<16|o*n<<8|(a-65536*i-256*o)*n).toString(16)).slice(-6)}function v(e,t){var r=e,n=t;n=n<0||n>100?100:n,n/=100,r=r.replace(h,"");var a=parseInt(r,16),i=Math.floor(a/65536),o=Math.floor((a-65536*i)/256);return("000000"+(256-(256-i)*n<<16|256-(256-o)*n<<8|256-(256-(a-65536*i-256*o))*n).toString(16)).slice(-6)}function b(e){return e.replace(h,"").replace(l,"#")}},function(e,t,r){"use strict";function n(e,t,r,n,a,i,o){var s={};switch(t){case"top":s.y=e;break;case"bottom":s.y=o-a-e;break;case"middle":s.y=(o-a)/2}switch(r){case"left":s.x=e;break;case"right":s.x=i-n-e;break;case"middle":s.x=(i-n)/2}return s}t.__esModule=!0,t.getAlignImage=function(e,t,r,a,i,o,s,l,c,u){var h,f,d,p,g={};switch(r){case"center":g.width=a,g.height=i,g.y=s/2-i/2,g.x=o/2-a/2;break;case"stretch":g.width=o-2*l,g.height=s-2*l,g.y=l,g.x=l;break;case"tile":g.width=a,g.height=i,g.tileInfo={},g.tileInfo.xCount=f=Math.ceil(c/a),g.tileInfo.yCount=d=Math.ceil(u/i),p=n(l,e,t,a*f,i*d,o,s),g.y=p.y,g.x=p.x;break;case"fit":h=a/i>c/u?c/a:u/i,g.width=a*h,g.height=i*h,p=n(l,e,t,g.width,g.height,o,s),g.y=p.y,g.x=p.x;break;case"fill":h=a/i>c/u?u/i:c/a,g.width=a*h,g.height=i*h,p=n(l,e,t,g.width,g.height,o,s),g.y=p.y,g.x=p.x;break;default:p=n(l,e,t,a,i,o,s),g.width=a,g.height=i,g.y=p.y,g.x=p.x}return g}},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=function(){var e,t,r;for(t=0,r=arguments.length;t<r;t+=1)if(((e=arguments[t])||!1===e||0===e)&&!isNaN(e=Number(e)))return e;return}},function(e,t,r){"use strict";t.__esModule=!0,t.setRootSender=t.raiseEventGroup=t.raiseError=t.raiseWarning=t.disposeEvents=t.getListeners=t.triggerEvent=t.removeListener=t.addListener=void 0;var n={},a={},i=function(e,t,r,n){try{e[0].call(t,r,n||{})}catch(a){setTimeout((function(){throw a}),0)}},o=function(e,t,r){var n,o=0;if(e instanceof Array&&!t.cancelled)for(;o<e.length;o+=1)if(!0!==e[o].removed){if(e[o][1]!==t.sender&&void 0!==e[o][1]||(n=e[o][1]===t.sender?t.sender:a,i(e[o],n,t,r),!0===t.detached&&(e.splice(o,1),o-=1,t.detached=!1)),!0===t.cancelled)break}else e.splice(o,1),o-=1},s=function(){this.originalEvent&&this.originalEvent.stopPropagation&&this.originalEvent.stopPropagation.call&&this.originalEvent.stopPropagation()},l=function(){this.cancelled=!0,this.originalEvent&&this.originalEvent.stopImmediatePropagation&&this.originalEvent.stopImmediatePropagation.call?this.originalEvent.stopImmediatePropagation():this.originalEvent&&this.originalEvent.stopPropagation&&this.originalEvent.stopPropagation.call&&this.originalEvent.stopPropagation()},c=function(){return!1==(this.detached=!0)},u=function(){this.defaultPrevented=!0,this.originalEvent&&this.originalEvent.preventDefault&&this.originalEvent.preventDefault.call&&this.originalEvent.preventDefault()},h={},f=0,d=function(e,t,r,n,a,i){if(!t||!t.disposed){var d,g,m,v,b,y=e;return y=y.toLowerCase(),g=p(y,t),m=p("*",t),v=h[y],b=h["*"],(g&&g.length||m&&m.length||v&&v.length||b&&b.length)&&(d={type:y,eventType:y,eventId:f+=1,sender:t||new Error("Orphan Event"),stopPropagation:s,stopImmediatePropagation:l,cancelled:!1,preventDefault:u,defaultPrevented:!1,originalEvent:n,detached:!1,data:r,detachHandler:c},o(b,d,r),o(v,d,r),t&&(o(p("*",t),d,r),o(p(y,t),d,r))),d&&d.defaultPrevented?i&&"function"==typeof i&&i.call(t,d,r||{}):a&&"function"==typeof a&&a.call(t,d,r||{}),!0}},p=function(e,t){var r=e;if("string"==typeof r)return r=r.toLowerCase(),t?t._evtListeners&&t._evtListeners[r]:h[r];v(t,"03091559","param","::removeListener",new Error("Unspecified Event Type"))},g={type:"TypeException",range:"ValueRangeException",impl:"NotImplementedException",param:"ParameterException",run:"RuntimeException",comp:"DesignTimeError",undefined:"UnspecifiedException"},m=function(e,t,r,n,a,i){var o="#"+t+" "+(e?e.id:"unknown-source")+n+" "+i+" >> ";a instanceof Error?(a.name=g[r],a.module="FusionCharts"+n,a.level=i,a.message=o+a.message,o=a.message,setTimeout((function(){throw a}),0)):o+=a,d(i,e,{id:t,nature:g[r],source:"FusionCharts"+n,message:o})},v=function(e,t,r,n,a){m(e,t,r,n,a,"Error")};t.setRootSender=function(e){void 0===e&&(e={}),a=e},t.raiseEventGroup=function(e,t,r,a,i,o,s){var l=a.id,c=e+l;n[c]?(clearTimeout(n[c]),delete n[c]):l&&c?n[c]=setTimeout((function(){d(t,a,r,i,o,s),delete n[c]}),0):d(t,a,r,i,o,s)},t.raiseWarning=function(e,t,r,n,a){m(e,t,r,n,a,"Warning")},t.raiseError=v,t.disposeEvents=function(e){var t,r=e?e._evtListeners:h;for(t in r)r[t].length&&(r[t].length=0)},t.getListeners=p,t.triggerEvent=d,t.removeListener=function b(e,t,r){var n,a;if("function"==typeof t){if(e instanceof Array)for(a=0;a<e.length;a+=1)b(e[a],t,r);else if((n=p(e,r))instanceof Array&&n.length)for(a=n.length-1;a>=0;a-=1)n[a][0]===t&&n[a][1]===r&&(n[a].removed=!0)}else v(r,"03091560","param","::removeListener",new Error("Invalid Event Listener"))},t.addListener=function y(e,t,r,n){var a,i,o,s=e;if(s instanceof Array){for(a=[],i=0;i<s.length;i+=1)a.push(y(s[i],t,r));return a}if("string"==typeof s){if("function"==typeof t)return s=s.toLowerCase(),r?(r._evtListeners||(r._evtListeners={}),r._evtListeners[s]instanceof Array||(r._evtListeners[s]=[]),o=r._evtListeners[s]):(h[s]instanceof Array||(h[s]=[]),o=h[s]),!function(e,t,r){var n,a=e.length;for(n=0;n<a;n+=1)if(e[n][0]===t&&e[n][1]===r&&!e[n].removed)return!0}(o,t,r)&&(n&&n.priority?o.unshift([t,r]):o.push([t,r]),t);v(r,"03091550","param","::addListener",new Error("Invalid Event Listener"))}else v(r,"03091549","param","::addListener",new Error("Unspecified Event Type"))}},function(e,t,r){"use strict";t.__esModule=!0,t.addDep=function(){for(var e=this,t=arguments.length,r=new Array(t),c=0;c<t;c++)r[c]=arguments[c];if(!r.length)return void(0,n.raiseError)({id:"Extension"},"90211","dependency","Extension",new Error("A FusionCharts extension must have a valid extension property."));r.forEach((function(t){var r,c,u,h,f;t?(c=t.extension?t.extension:t,r=o(t),u=s(t),f=t.requiresFusionCharts,u?(!a[u]&&l(u),(h=a[u][r]!==c)&&(a[u][r]=c)):r&&(h=i[r]!==c)&&(i[r]=c),h&&(0,n.triggerEvent)("dependencyadded",e,{name:r,type:u}),h&&f&&c(e)):(0,n.raiseError)({id:"Extension"},"90211","dependency","Extension",new Error("A FusionCharts extension must have a valid extension property."))}))},t.getDep=function(e,t){var r,n=e&&e.toLowerCase();if(t&&a[t])return a[t][n];if(!t)for(var o in a)if(a.hasOwnProperty(o)&&(r=a[o][n]))return r;return i[n]},t.getDepsByType=function(e){void 0===e&&(e="");return""===e?a:a[e.toLowerCase()]};var n=r(261),a={},i={};function o(e){void 0===e&&(e={});var t=e.getName&&e.getName()||e.name;return void 0===t&&(0,n.raiseError)({id:"Extension"},"90211","extension","Name",new Error("A FusionCharts extension must have a getName API or a name property.")),t&&t.toLowerCase()}function s(e){void 0===e&&(e={});var t=e.getType&&e.getType()||e.type;return t&&t.toLowerCase()}function l(e){"string"==typeof e&&(a[e]={})}},function(e,t,r){"use strict";t.__esModule=!0,t.onDataUpdateSuccess=function(e,t){var r=e.sender,a=r.__state;a.dataReady=void 0,a.dataAvailable=!0,!0!==t.silent?(r.options.dataSource=t.data,!0!==r.options.safeMode||!0!==a.rendering||r.isActive()?delete a.args:(a.updatePending=t,(0,n.raiseWarning)(r,"23091255","run","::DataHandler~update","Renderer update was postponed due to async loading."))):r.options.dataSource=t.data;(0,n.triggerEvent)("dataUpdated",r,t,void 0,t.successcallback)},t.onDataUpdateCancel=function(e,t){(0,n.triggerEvent)("dataUpdateCancelled",e.sender,t,void 0,t.failurecallback)};var n=r(261)},function(e,t,r){"use strict";function n(e){delete e.sender.jsVars._reflowData,e.sender.jsVars._reflowData={},delete e.sender.jsVars._reflowClean}t.__esModule=!0,t["default"]=void 0;var a={beforeInitialize:function(e){var t,r=e.sender,n=r.jsVars;n.fcObj=r,n.msgStore=n.msgStore||{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."},n.cfgStore=n.cfgStore||{},n.previousDrawCount=-1,n.drawCount=0,n._reflowData={},r.addEventListener("beforeRender",(function(e){return e.detachHandler()})),n.userModules instanceof Array||(t=n.userModules,n.userModules=[],"string"==typeof t&&(n.userModules=n.userModules.concat(t.split(","))))},beforeDataUpdate:n,beforeDispose:function(e){var t=e.sender.jsVars;t.smartLabel&&!t.smartLabel.disposed&&t.smartLabel.dispose(),n.apply(void 0,arguments)},beforeRender:function(e){delete e.sender.jsVars.drLoadAttempted,n.apply(void 0,arguments)},dataLoadRequested:function(e){var t=e.sender,r=t.jsVars;delete r.loadError,t.ref&&t.options.showDataLoadingMessage?r.hcObj&&!r.hasNativeMessage&&r.hcObj.showLoading?r.hcObj.showMessage(r.msgStore.XMLLoadingText):t.ref.showChartMessage?t.ref.showChartMessage("XMLLoadingText"):r.stallLoad=!0:r.stallLoad=!0},dataLoadRequestCompleted:function(e){delete e.sender.jsVars.stallLoad}};t["default"]=a},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=t.globalStore=void 0;var a,i,o,s,l=r(254),c=r(261),u=r(262),h=r(266),f=n(r(267)),d=n(r(275)),p=/\%/,g=new f["default"],m=(o={},s=function x(){var e,t,r,n,s,l,c,u,h=0,f=parseInt(i.options.resizeTrackingInterval,10)||300,d={},g=function(){d.itemVar._containerOffsetW=d.parentEle.offsetWidth,d.itemVar._containerOffsetH=d.parentEle.offsetHeight};for(e in o)h+=1,r=(t=o[e]).jsVars,s=t.ref,!t.disposed&&(n=s&&s.parentNode)&&(l=s.style)&&(p.test(l.width)||p.test(l.height))?(c=n.offsetWidth,u=n.offsetHeight,!r.resizeLocked&&(c&&r._containerOffsetW!==c||u&&r._containerOffsetH!==u)&&(t.resizeTo&&t.resizeTo(),d.itemVar=r,d.parentEle=n,setTimeout(g,1))):(delete o[e],h-=1);a=h?setTimeout(x,f):clearTimeout(a)},function(e,t,r){var n=e.jsVars,l=t||e.ref&&e.ref.parentNode||{};i=r,n._containerOffsetW=l.parentNode.offsetWidth,n._containerOffsetH=l.parentNode.offsetHeight,o[e.id]=e,a||(a=setTimeout(s,parseInt(r.options.resizeTrackingInterval,10)||300))});function v(e,t,r){void 0===r&&(r=!1);var n=this.apiInstance,a=this.getChartData((0,u.getDepsByType)("transcoder").JSON,!0,!0).data;r||(0,c.triggerEvent)("dataloaded",this,{},[this.id]),this.__state&&(this.__state.newDataArrived=!1),n.addToEnv("dataSource",a),n.addToEnv("chart-attrib",a.chart||{}),n._checkInvalidData()||n._checkInvalidSpecificData()?(n.getContainer("parentgroup")&&n.getContainer("parentgroup").hide(),n.createBaseComponent(),n.getFromEnv("animationManager").setAnimationState("chartmessage"),n.setChartMessage(),n.drawChartMessage(),this._sudoSetState(1),(0,c.triggerEvent)("nodatatodisplay",this,{},[this.id])):(n.config.hasChartMessage=!1,n.setData(Object.assign({},a)))}function b(e){var t=e.sender.args,r=l.BLANK,n=t.dataFormat||"json";"jsonurl"!==n.toLowerCase()&&"xmlurl"!==n.toLowerCase()||(r=t.dataSource),(0,c.triggerEvent)("dataloadcancelled",e,{url:r,dataFormat:n},[e.id]),e.__state&&(e.__state.newDataArrived=!1)}t.globalStore=g;var y=function(e,t,r,n,a,i,o,s){var f,y,x,w,_,S=n,C=t.apiInstance,k=t.jsVars,A=p.test(t.width)?r.offsetWidth:t.width,N=p.test(t.height)?r.offsetHeight:t.height;if(r.FusionCharts=e.items[t.id],t.__state.beforedrawFired=!0,S=S||t.chartType(),!(f=(0,u.getDep)(S,"chartapi"))&&(x=(0,u.getDep)(S,"maps"))&&(f=(0,u.getDep)("maps","chartapi"),w=!0),C&&C.getName().toLowerCase()!==S.toLowerCase()&&(C.remove({instant:!0}),C=l.UNDEF),C&&C.getName().toLowerCase()===S.toLowerCase()||(C=t.apiInstance=new f,g.attachChild(C,"chartAPI"),C.addToEnv("core-options",e.options),C.addToEnv("chartInstance",t),C.addToEnv("chart",C),C.addToEnv("chart-container",r),C.addToEnv("eventListeners",[])),w)for(var E in x=x[0])x.hasOwnProperty(E)&&(C.config[E]=x[E]);if(C.addToEnv("chartWidth",Math.max(0,A)),C.addToEnv("chartHeight",Math.max(0,N)),C._removeWaitingJobs(),C.setDummyEImethods(S),C.config.origRenderWidth=t.__state.renderedWidth,C.config.origRenderHeight=t.__state.renderedHeight,"base"===S||i)!function(e,t){void 0===t&&(t=!1);var r=e.options.dataErroneous;if(r)return e.__state.dataReady=!1,t||(0,c.triggerEvent)("dataInvalid",e,{error:r},l.UNDEF,(function(){(0,c.triggerEvent)("dataxmlinvalid",e,{},[e.id])})),!0}(t,s),function(e,t){void 0===t&&(t={});e._chartMessageImageStyle=t.image||{},e._chartMessageStyle=t.message||{}}(t,o),C.createBaseComponent(),C.getFromEnv("animationManager").setAnimationState("chartmessage"),C.setChartMessage(i,t,r);else if(t.__state.resize)C.asyncDraw();else{if(C.getFromEnv("toolTipController")||(_=new((0,u.getDep)("ToolTipController"))(r,C),C.addToEnv("toolTipController",_)),C.disposeChartStyleSheet(),r.jsVars=t.jsVars,y=C.eiMethods,t.ref=r,k.type=S,y&&"string"!=typeof y)for(var L in y)r[L]=y[L];!s&&t.__state.newDataArrived?(0,c.triggerEvent)("beforedataload",t,{data:t.getChartData((0,u.getDepsByType)("transcoder").JSON,!0,!0)},l.UNDEF,v,b):v.call(t,l.UNDEF,l.UNDEF,s)}!t.disposed&&function(e,t,r,n,a){var i=e.jsVars,o=e.apiInstance,s=i.fcObj,f=i.overlayButton,p=s.getChartData((0,u.getDepsByType)("transcoder").JSON,!0,!0).data;i.width=o.getFromEnv("chartWidth"),i.height=o.getFromEnv("chartHeight"),i.container=t,i.hcObj=e,i.hcObj.container=t,i.instanceAPI=o,e.hasRendered&&i.overlayButtonActive&&f&&(f.innerHTML=l.BLANK,f.appendChild(document.createTextNode(i.overlayButtonMessage)),e.container.appendChild(f));(p.data||p.dataset||p.colorrange)&&(/\%/g.test(s.width)||/\%/g.test(s.height))&&t&&t.parentNode&&!a.options.preventTrackResize&&m(e,t,a);!function(e,t,r,n){e.apiInstance.addJob("fire-rendered",(function(){if(e.apiInstance.config.hasRendered=r.hasRendered,"waiting"!==e._getState()&&"function"==typeof t&&t(r),"waiting"!==e._getState()&&((0,c.triggerEvent)("drawcomplete",e,{width:e.jsVars.width,height:e.jsVars.height,drawCount:e.jsVars.drawCount,displayingMessage:"waiting"===e._getState()||"error"===e._getState(),renderer:"javascript"},[e.id]),e.__state&&delete e.__state.beforedrawFired),!e.disposed&&"ready"===e._getState()){if(e.__state.rendering&&(0,c.triggerEvent)("rendered",e,{renderer:"javascript"},[e.id]),e.disposed)return;if((0,c.triggerEvent)("renderComplete",e,{width:e.jsVars.width,height:e.jsVars.height,drawCount:e.jsVars.drawCount,renderer:"javascript"}),e.disposed)return;e.__state&&delete e.__state.rendering,e.__state.renderComplete=!0,e.args.creditLabel!==l.UNDEF&&console.warn("FusionCharts.options.creditLabel property is deprecated. Please use FusionCharts.options.license with a valid license key to remove the watermark."),d["default"]._mapperParent(n,e)}}),h.priorityList.postRender)}(e,r,n,a)}(t,r,a,{hasRendered:!0,container:r},e)};t["default"]=y},function(e,t,r){"use strict";t.__esModule=!0,t.priorityList=t["default"]=void 0;var n=[],a={},i=[],o={},s=0,l=window,c=l.navigator,u=/trident/i.test(c.userAgent)&&/rv:11/i.test(c.userAgent)&&!l.opera,h=/msie/i.test(c.userAgent)&&!l.opera,f=/Edge/.test(c.userAgent),d={},p=l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame||l.msRequestAnimationFrame||function(e){setTimeout(e,16)},g=!1,m=function b(){var e,t,r,a=!0,s=(new Date).getTime();for(g=!0;a&&(e=n[0]);)t=(new Date).getTime(),e.OIAF&&r||e.executeAfter&&!(e.executeAfter<t)||!(t-s<16)?a=!1:(n.shift(),i[e.priority]-=1,o[e.jobID]&&!e.executed&&(e.executed=!0,delete o[e.jobID],e.job(),r=e.OIAF));n.length?p(b):g=!1};t.priorityList={instant:1,render:1,chartEvents:1,configure:2,chartClick:2,draw:3,entitydraw:4,label:4,animation:5,tracker:6,kdTree:6,postRender:7,verification:8},(u||h||f)&&(p=p.bind(window)),d.addJob=function(e,t,r){var a,l,c,u=0,h=r&&r.oneInAFrame,f=r&&r.addToTop?t-1:t;for("function"==typeof e?(l={job:e,priority:t,OIAF:h,jobID:a="JOB_"+ ++s+"_"+(t||1)},r&&r.executionDelay&&(l.executeAfter=(new Date).getTime()+r.executionDelay)):l=e,c=0;c<=f;c++)u+=i[c]||0;return n.splice(u,0,l),o[l.jobID]=l,i[t]=(i[t]||0)+1,g||1!==n.length||(h?p(m):setTimeout(m,0)),a},d.removeJob=function(e){o[e]&&delete o[e]},d.updateJob=function(e,t,r,n){return o[e]?(o[e].job=t,e):this.addJob(t,r,n)},d.pauseExecution=function(e){if(!o[e])return!1;a[e]=o[e],delete o[e]},d.resumeExecution=function(e){var t=a[e];if(!t)return!1;d.addJob(t,t.priority),delete a[e]};var v=d;t["default"]=v},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"globalStore"},r.getType=function(){return"globalStore"},t}(r(270).ComponentInterface);t["default"]=i},function(e,t,r){var n=r(269);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)},e.exports["default"]=e.exports,e.exports.__esModule=!0},function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf||function(e,t){return function(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var a=r[n],i=Object.getOwnPropertyDescriptor(t,a);i&&i.configurable&&e[a]===undefined&&Object.defineProperty(e,a,i)}}(e,t),e},e.exports["default"]=e.exports,e.exports.__esModule=!0,r(t,n)}e.exports=r,e.exports["default"]=e.exports,e.exports.__esModule=!0},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0;var a=n(r(271));t.ComponentInterface=a["default"];var i=n(r(274));t.SmartRenderer=i["default"]},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(272)),i=n(r(268)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n["default"]=e,r&&r.set(e,n);return n}(r(273));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}var l=function(e){function t(){var t;t=e.call(this)||this;var r=(0,a["default"])(t);return r._components={},r._version=1,r.fireEvent("instantiated"),r.__setDefaultConfig(),t}(0,i["default"])(t,e);var r=t.prototype;return r.addGraphicalElement=function(e,t,r,n){void 0===r&&(r=!1);var a=this._graphics;return t&&(r?(void 0===a[e]&&(a[e]=[]),n?a[e][n]=t:a[e].push(t)):(a[e]=t,this.fireEvent("graphicalelementattached",{element:t})),(0,o.addAllEventsOnGraphic)(t,this._middleListeners,this)),t},r.removeGraphicalElement=function(e){var t,r=this,n=r._graphics;(0,o._mapSubFnForward)(n,(function(a,i,s){a===e&&(t=!0,(0,o.removeAllEventsFromGraphic)(a,r._middleListeners),r._setRemoveAnim(a,i),void 0!==s?n[i].splice(s,1):delete n[i])})),t&&this.fireEvent("graphicalelementremoved",{element:e})},r.getGraphicalElement=function(e){return void 0!==e?this._graphics[e]:this._graphics},r.addChildContainer=function(e,t){var r=this._childContainers;return t&&(void 0===r&&(r=this._childContainers={}),r[e]=t,(0,o.addAllEventsOnGraphic)(t,this._middleListeners,this)),t},r.removeChildContainer=function(e){var t=this._childContainers;t&&t[e]&&((0,o.removeAllEventsFromGraphic)(t[e],this._middleListeners),this._setRemoveAnim(t[e],e),delete t[e])},r.getChildContainer=function(e){return void 0===this._childContainers&&(this._childContainers={}),e?this._childContainers[e]:this._childContainers},r.addContainer=function(e,t){var r=this._containers;return t&&(void 0===r&&(r=this._containers={}),r[e]=t),t},r.removeContainer=function(e){var t=this._containers;t&&t[e]&&(this._setRemoveAnim(t[e],e),delete t[e])},r.getContainer=function(e){return void 0===this._containers&&(this._containers={}),e?this._containers[e]:this._containers},r.addEventListener=function(t,r,n){var a=e.prototype.addEventListener.call(this,t,r,n);return!0===a?(function(e,t,r){var n;t&&r&&(n=function(e){e.on&&e.on(t,r)},(0,o._mapSubFnForward)(e.getGraphicalElement(),n),(0,o._mapSubFnForward)(e.getChildContainer(),n))}(this,t,this._middleListeners[t]),r):!!a&&r},r.removeEventListener=function(t,r){e.prototype.removeEventListener.call(this,t,r)&&function(e,t,r){var n;t&&r&&(n=function(e){e.off&&e.off(t,r)},(0,o._mapSubFnForward)(e.getGraphicalElement(),n),(0,o._mapSubFnForward)(e.getChildContainer(),n))}(this,t,this._middleListeners[t])},r._dispose=function(){var t;if(e.prototype._dispose.call(this)){for(t in this.getFromEnv("paper")&&!this.getFromEnv("paper").removed&&((0,o._mapSubFnForward)(this.getChildContainer(),this.__instantRemoveFn),(0,o._mapSubFnForward)(this.getGraphicalElement(),this.__instantRemoveFn),(0,o._mapSubFnForward)(this.getContainer(),this.__instantRemoveFn)),this)this.hasOwnProperty(t)&&delete this[t];this.fireEvent("removed")}},r.removingDraw=function(){(0,o._mapSubFnForward)(this.getChildContainer(),this._setRemoveAnim),(0,o._mapSubFnForward)(this.getGraphicalElement(),this._setRemoveAnim),(0,o._mapSubFnForward)(this.getContainer(),this._setRemoveAnim)},r.attachChild=function(e,t,r){var n=t||e.getType(),a=this._components;return!1===r?a[n]=e:(a[n]&&a[n]instanceof Array||(a[n]=[]),a[n].push(e)),e._setLinkedParent(this),this.fireEvent("childattached",{attachedChild:e}),e},r.getChild=function(e){var t;return void 0===e?this._components:(this._searchChildren(e,(function(e){t=e})),t)},r._searchChildren=function(e,t){var r,n,a,i=this._components;for(n in i)if(i.hasOwnProperty(n))if((r=i[n]).constructor===Array){for(a=r.length-1;a>=0;a--)if(r[a].getId&&r[a].getId()===e)return t(r[a],a,r)}else if(r.getId&&r.getId()===e)return t(n,void 0,i)},r.getChildren=function(e){return e?this._components[e]:this._components},t}(o["default"]);t["default"]=l},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports["default"]=e.exports,e.exports.__esModule=!0},function(e,t,r){"use strict";t.__esModule=!0,t._mapSubFnForward=t.addAllEventsOnGraphic=t.removeAllEventsFromGraphic=t["default"]=void 0;var n=r(254),a=r(261),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var r=o(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n["default"]=e,r&&r.set(e,n);return n}(r(266));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}var s=function(e){e&&e.draw&&e.syncDraw()},l=function(e){return e.setDefaults()},c=function(e){e.prepareAttributes&&e.prepareAttributes()},u={},h={executionDelay:16},f=function(e,t){var r,n,a,i;if(e&&e.hasOwnProperty&&t&&t.call)for(r in e)if(e.hasOwnProperty(r))if((n=e[r])instanceof Array)for(i=n.length,a=0;a<i;a++)t(n[a],r,a);else t(n,r)};t.removeAllEventsFromGraphic=function(e,t){var r,n;if(t&&t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&(n=(0,a.getListeners)(r,this))&&n.length>=1&&e&&e.off(r,t[r])},t.addAllEventsOnGraphic=function(e,t,r){var n,i;if(t&&t.hasOwnProperty)for(n in t)t.hasOwnProperty(n)&&(i=(0,a.getListeners)(n,r))&&i.length>=1&&e&&e.on(n,t[n])},t._mapSubFnForward=f;var d=function(){function e(){var e=this;e.config={},e._jobList={},e._env={},e._extListeners={},e._state={},e._factories=[],e._factoriyNames={},e._graphics={},e.__drawJob=function(){e.updateVisual()},e.computeFontSize=n.computeFontSize.bind(e),e.__remove=function(){e.getState("removed")&&e._dispose()},e._setRemoveAnim=function(t,r){var n=e.getFromEnv("animationManager");n.setAnimation({el:t,component:e,label:r,props:t.__props}),e._setRemoveAnim=function(t,r){n.setAnimation({el:t,component:e,label:r,props:t.__props})}},e.__instantRemoveFn=function(t){var r=e.getFromEnv("animationManager");r.removeElement(t,!0),e.__instantRemoveFn=function(e){return r.removeElement(e,!0)}}}var t=e.prototype;return t.configure=function(e){this.preConfigure(e),this.configureAttributes(e),this.postConfigure(e),this.invokeFactories()},t.preConfigure=function(e){this.fireEvent("preconfigure",e)},t.configureAttributes=function(){return this},t.postConfigure=function(e){this.fireEvent("postconfigure",e)},t.prepareAttributes=function(){this.fireEvent("beforeattributeprepared"),this.allocatePosition&&this.allocatePosition(),this._mapChildren(c),this.fireEvent("attributeprepared")},t.setDefaults=function(){this.__setDefaultConfig(),this._mapChildren(l)},t.__setDefaultConfig=function(){return this},t.setData=function(e,t){void 0===t&&(t=!1);var r,n=this.getLinkedParent();this.asyncDraw(),!t&&this.setDefaults(),this.configure&&this.configure(e),(r=this.getState("change-info"))&&r.hasNoExternalEffect||n&&n.childChange&&n.childChange(r,this.getId())},t.getName=function(){return"generic"},t.getType=function(){return"generic"},t.getComponentVersion=function(){return this._version},t.getId=function(){return this._id||this.setId(),this._id},t.setId=function(e){var t,r=e;r===n.UNDEF&&(t=this.getType()+n.UNDERSCORE+this.getName(),u[t]||(u[t]=1),r=t+n.UNDERSCORE+u[t],u[t]+=1),this._id=r},t.iterateComponents=function(e){this._mapChildren((function t(r,n,a){!1!==e(r,n,a)&&r._mapChildren&&r._mapChildren(t)}))},t.getFromEnv=function(e){return e?this._env[e]:this._env},t.addToEnv=function(e,t){e&&(this._env[e]=t)},t.deleteFromEnv=function(e){delete this._env[e]},t._updateParentEnv=function(){var e,t,r,n,a=this.getLinkedParent(),i=this._env;if(a){if(e=a.getFromEnv(),((t=function(){}).prototype=e).constructor=t,r=new t,i)for(n in i)i.hasOwnProperty(n)&&(r[n]=i[n]);this._env=r,this._mapChildren((function(e){e._updateParentEnv&&e._updateParentEnv()}))}},t.addJob=function(e,t,r,n){this._jobList[e]?this._jobList[e]=i["default"].updateJob(this._jobList[e],t,r,n):this._jobList[e]=i["default"].addJob(t,r,n)},t.removeJob=function(e){var t=this._jobList[e];t&&(i["default"].removeJob(t),delete this._jobList[e])},t.removeAllJobs=function(){var e,t=this._jobList;for(e in t)t.hasOwnProperty(e)&&(i["default"].removeJob(t[e]),delete t[name])},t.asyncDraw=function(){this.addJob("draw",this.__drawJob,i.priorityList&&i.priorityList.draw,h)},t.syncDraw=function(){var e=this;e.fireEvent("predraw"),e.removeJob("draw"),e.getState("removed")?e.removingDraw():e.draw&&e.draw(),e.addExtEventListener("animationComplete",e.__remove,e.getFromEnv("animationManager")),e.childrenSyncDraw(),e.setState("dirty",!1),e.setState("parentChanged",!1),e.addJob("draw-complete",(function(){e.fireEvent("drawn")}),i.priorityList.instant)},t.updateVisual=function(){this.fireEvent("beforevisualupdate"),this.removeJob("visualupdate"),this.manageSpace&&this.manageSpace(),this.prepareAttributes(),this.syncDraw(),this.fireEvent("visualupdated")},t.childrenSyncDraw=function(){this._mapChildren(s)},t.addEventListener=function(e,t,r){var i,o=this,s=e;return!!(s&&s.toLowerCase&&(s=s.toLowerCase(),(0,a.addListener)(s,t,o,r)))&&((0,n.isInterActiveEvt)(s)&&(i=(0,a.getListeners)(s,o))&&1===i.length?(o._middleListeners||(o._middleListeners={}),o._middleListeners[s]||(o._middleListeners[s]=function(e){o.fireEvent(s,n.UNDEF,n.UNDEF,n.UNDEF,e)}),!0):t)},t.removeEventListener=function(e,t){var r,i=e;if(i&&i.toLowerCase&&(i=i.toLowerCase(),(0,a.removeListener)(i,t,this),(0,n.isInterActiveEvt)(i)&&(r=(0,a.getListeners)(i,this))&&0===r.length&&this._middleListeners&&this._middleListeners[i]))return!0},t.fireEvent=function(e,t,r,n,i){(0,a.triggerEvent)(e,this,t,i,r,n)},t.showWarning=function(e,t,r,n){(0,a.raiseWarning)(this.getFromEnv("chartInstance"),e,t,r,n)},t.showError=function(e,t,r,n){(0,a.raiseError)(this.getFromEnv("chartInstance"),e,t,r,n)},t.addExtEventListener=function(e,t,r){return!!(r&&r.addEventListener&&r.addEventListener(e,t))&&(this._extListeners[e]||(this._extListeners[e]=[]),this._extListeners[e].push({fn:t,component:r}),t)},t.removeExtEventListener=function(e,t,r){var n,a;if(r&&r.addEventListener&&this._extListeners&&this._extListeners[e])for(n=(a=this._extListeners[e]).length-1;n>=0;n-=1)if(a[n]&&a[n].fn===t&&a[n].component===r)return r.removeEventListener(e,t),void a.splice(n,1)},t._setLinkedParent=function(e){var t=this._linkedParent;this._linkedParent=e,t&&t!==e&&(this.setState("parentChanged",!0),this.fireEvent("parentdetached",{oldParent:t}),e&&this.fireEvent("parentAttached",{newParent:e})),this._updateParentEnv&&this._updateParentEnv()},t.getLinkedParent=function(){return this._linkedParent},t.setLinkedItem=function(e,t){this.linkedItems||(this.linkedItems={}),e===n.UNDEF&&t===n.UNDEF||(this.linkedItems[e]=t)},t.getLinkedItem=function(e){if(this.linkedItems)return e!==n.UNDEF?this.linkedItems[e]:this.linkedItems},t.removeLinkedItem=function(e){this.linkedItems&&this.linkedItems[e]&&delete this.linkedItems[e]},t._detachChild=function(e){var t,r=e&&e.getId(),a=this;return r===n.UNDEF?n.UNDEF:(a._searchChildren(r,(function(e,r,i){i&&i.constructor===Array?t=i.splice(r,1)[0]:(t=i[e],delete i[e]),t._setLinkedParent(n.UNDEF),a.fireEvent("childdetached",{detachedChild:t})})),t)},t._mapChildren=function(e,t){t?function(e,t){var r,n,a;if(e&&e.hasOwnProperty&&t&&t.call)for(r in e)if(e.hasOwnProperty(r))if((n=e[r])instanceof Array)for(a=n.length-1;a>=0;a--)t(n[a],r,a);else t(n,r)}(this.getChildren(),e):f(this.getChildren(),e)},t._dispose=function(){var e,t,r,n;if(this&&this!==window&&!0!==this._disposing){if(this._disposing=!0,this.fireEvent("beforeremove"),(e=this.getLinkedParent())&&e._detachChild&&!e._disposing&&e._detachChild(this),this._extListeners)for(r in this._extListeners)for(t=(n=this._extListeners[r]).length-1;t>=0;t--)n[t].component&&n[t].component.addEventListener&&n[t].component.removeEventListener(r,n[t].fn);return this.removeAllJobs(),!0}},t.remove=function(e){this.setState("removed",!0),this.getChildren()&&this._mapChildren((function(t){t&&t.remove&&t.remove(e)}),!0),e&&e.instant&&this._dispose()},t.setState=function(e,t){this._state[e]=t},t.getState=function(e){return this._state&&this._state[e]},t.registerFactory=function(e,t,r){var n={name:e,factory:t,dep:r};if(this._factoriyNames[e])for(var a=0,i=this._factories.length,o=!1;a<i&&!o;a+=1)this._factories[a].name===e&&(this._factories.splice(a,1),o=!0);this._factories.push(n),this._factoriyNames[e]=!0},t.deregisterFactory=function(e){if(this._factoriyNames[e])return delete this._factoriyNames[e],this._factories.splice(this._factories.findIndex((function(t){return t.name===e})),1)[0].factory},t.invokeFactories=function(){for(var e,t=this,r=t._factoriyNames,n={},a=t._factories,i=a.length+1,o=function(a){var i;a.dep&&a.dep.length&&a.dep.forEach((function(e){i=r[e]&&!n[e]})),i?e.push(a):(a.factory(t),n[a.name]=!0)};a.length&&a.length<i;)e=[],a.forEach(o),i=a.length,a=e;a.length&&a.forEach((function(e){return e.factory(t)})),this.fireEvent("factoriesinvoked",{})},e}();t["default"]=d},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(272)),i=n(r(268)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n["default"]=e,r&&r.set(e,n);return n}(r(273)),s=r(254),l=r(266);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var u=function(e,t){var r,n,a;if(e&&e.hasOwnProperty&&t&&t.call)for(r in e)for(a=(n=e[r].elemStore)&&n.length-1;a>=0&&!t(n[a],r,a);a--);},h=function(e,t){var r,n,a,i;if(e&&e.hasOwnProperty&&t&&t.call)for(n in e)for(i=0,r=(a=e[n].elemStore)&&a.length;i<r&&!t(a[i],n,i);i++);},f=function(e,t,r){var n,a,i,o;for(o in void 0===r&&(r={}),e)a=e[o],(i=(0,s.pluck)(t[o],r[o]))!==s.UNDEF?a instanceof Array?"text-bound"===o?(n||(n={}),n[o]=a,n.x=e.x,n.y=e.y):a.toString().replace(/,/g,"")!==i.toString().replace(/,/g,"")&&(n||(n={}),n[o]=a):"string"==typeof a?a.replace(/,/g,"")!==i.toString().replace(/,/g,"")&&(n||(n={}),n[o]=a):a!==i&&(n||(n={}),n[o]=a):(n||(n={}),n[o]=a);return n},d=function(e){function t(t){var r;r=e.call(this,t)||this;var n=(0,a["default"])(r);return n._version=2,n._id=t,n._componentStore={},n._oldComponentStore=[],n.fireEvent("instantiated"),n.__setDefaultConfig(),r}(0,i["default"])(t,e);var r=t.prototype;return r.isDrawingRequired=function(){return this},r.syncDraw=function(){var e=this,t=e.getState("removed");(e.isDrawingRequired()||t)&&(e.fireEvent("predraw"),e.removeJob("draw"),e._resetGraphicalStore(),t?e.addJob("dispose-component",(function(){return e._dispose()}),l.priorityList.postRender):e.draw&&e.draw(),e.childrenSyncDraw(),e._removeUnusedGraphics(),e.fireEvent("drawn"))},r._remove=function(){this.onRemove&&this.onRemove(),this.setState("removed",!0),this.getChildren()&&this._mapChildren((function(e){e.onRemove&&e.onRemove(),e&&e.setState("removed",!0)}),!0)},r.setDimension=function(e,t){this.config.width=e,this.config.height=t},r.setTranslation=function(e,t){var r=this.config;r._translateX=e,r._translateY=t,r.translate="t"+e+","+t},r.getTranslation=function(){return{x:this.config&&this.config._translateX,y:this.config&&this.config._translateY}},r._resetGraphicalStore=function(){this._oldGraphicalStore=this._graphicalStore,this._graphicalStore={}},r._getLastUsedElem=function(){return this.config.lastElemUsed},r.addGraphicalElement=function(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var r,n,a,i,l,c=e.label,u=this._graphicalStore[c]||(this._graphicalStore[c]={elemStore:[],idMap:{},indexMap:{},lastIndexUsed:-1}),h=!0,d=this._oldGraphicalStore&&this._oldGraphicalStore[c],p=u.lastIndexUsed+=1,g=e.attr,m=e.id;d&&(m&&d.idMap[m]!==s.UNDEF?(i=d.idMap[m],l=d.elemStore[i],delete d.elemStore[i],delete d.indexMap[i],delete d.idMap[m]):d.elemStore[p]&&(d.indexMap[p]||(l=d.elemStore[p],delete d.elemStore[p]))),"text"===e.el&&e.css&&(0,s.removeHtmlAttrs)(e.css),l&&(e.el=l,h=!1,(g=f(e.attr,l.attrs))&&(e.attr=g),e.css&&(n=f(e.css,l.attrs,l.styles))&&(e.css=n)),(a=e.container)?(r=a.isParent?this.getLinkedParent():this,e.container=r.getGraphicalElement(a.id,a.label)||r.getChildContainer(a.id)):e.container=this.getFromEnv("chart-container"),(g||n)&&(l=this.getFromEnv("animationManager").setAnimation(e)),u.elemStore[p]=l,m&&(u.idMap[m]&&(delete u.indexMap[u.idMap[m]],delete u.idMap[m]),u.idMap[m]=p,u.indexMap[p]=m),this.fireEvent("graphicalelementattached",{element:l}),l._skipEvents=t,e.shadow&&l.shadow(e.shadow),e.outlineText!==s.UNDEF&&l.outlineText(e.outlineText,(0,s.convertColor)((0,s.pluck)(e.css.fill,e.attr.fill))),e.tooltext!==s.UNDEF&&this.getFromEnv("toolTipController").enableToolTip(l,e.tooltext),this.config.lastElemUsed=l,!t&&h&&(0,o.addAllEventsOnGraphic)(l,this._middleListeners,this)},r.removeGraphicalElement=function(e,t){var r,n,a=this,i=a._graphicalStore;u(i,"object"==typeof e?function(t,o,s){if(e===t)return n=!0,a._setRemoveAnim(t,o),(r=i[o]).elemStore.splice(s,1),delete r.idMap[r.indexMap[s]],delete r.indexMap[s],!0}:function(o,s,l){if((r=i[s]).indexMap[l]===e&&(!t||t===s))return n=!0,a._setRemoveAnim(o,s),r.elemStore.splice(l,1),delete r.idMap[r.indexMap[l]],delete r.indexMap[l],!0}),n&&this.fireEvent("graphicalelementremoved",{element:void 0})},r.getChildContainer=function(e){return this.getGraphicalElement(s.UNDEF,e)},r._removeUnusedGraphics=function(){var e,t=this,r=t._oldGraphicalStore;u(r,(function(n,a,i){n&&(t._setRemoveAnim(n,a),delete(e=r[a]).idMap[e.indexMap[i]],delete e.indexMap[i])}))},r.getGraphicalElement=function(e,t){var r,n,a,i,o=this._graphicalStore;return t||e?t?(r=o[t],e?r&&r.elemStore&&r.elemStore[r.idMap[e]]:r&&r.elemStore&&r.elemStore[0]):(h(o,(function(){if(i=arguments[2],(n=o[arguments[1]]).idMap[i]===e)return a=n.elemStore[i],!0})),a):o},r.addEventListener=function(t,r,n){var a=e.prototype.addEventListener.call(this,t,r,n);return!0===a?(function(e,t,r){var n;t&&r&&(n=function(e){!e._skipEvents&&e.on&&e.on(t,r)},h(e.getGraphicalElement(),n))}(this,t,this._middleListeners[t]),r):!!a&&r},r.removeEventListener=function(t,r){e.prototype.removeEventListener.call(this,t,r)&&function(e,t,r){var n;t&&r&&(n=function(e){!e._skipEvents&&e.off&&e.off(t,r)},h(e.getGraphicalElement(),n))}(this,t,this._middleListeners[t])},r._dispose=function(){var e,t,r,n;if(this&&this!==window&&!0!==this._disposing){if(this._disposing=!0,this.fireEvent("beforeremove"),this._extListeners)for(r in this._extListeners)for(t=(n=this._extListeners[r]).length-1;t>=0;t--)n[t].component&&n[t].component.addEventListener&&n[t].component.removeEventListener(r,n[t].fn);for(e in this.removeAllJobs(),this._linkedParent&&1===this._linkedParent.getComponentVersion()&&this._linkedParent._detachChild(this),this.getFromEnv("paper")&&!this.getFromEnv("paper").removed&&h(this.getGraphicalElement(),this.__instantRemoveFn),this)this.hasOwnProperty(e)&&delete this[e];this.fireEvent("removed")}},r.configure=function(t){this._resetComponentStore(),e.prototype.configure.call(this,t)},r._resetComponentStore=function(){this._oldComponentStore.push(this._componentStore),this._componentStore={}},r._mapChildren=function(e,t){t?u(this.getChildren(),e):h(this.getChildren(),e)},r.attachChild=function(e,t,r){var n,a,i=this._componentStore[t]||(this._componentStore[t]={elemStore:[],idMap:{},indexMap:{},lastIndexUsed:-1}),o=this._oldComponentStore&&this._oldComponentStore.length&&this._oldComponentStore[this._oldComponentStore.length-1][t],l=i.lastIndexUsed+=1;if(o){var c=o.elemStore,u=c[l];r&&o.idMap[r]!==s.UNDEF?(a=c[n=o.idMap[r]],delete c[n],delete o.indexMap[n],delete o.idMap[r]):u&&u.constructor===e&&(o.indexMap[l]||(a=u,delete c[l]))}return a||(a=new e(r)),i.elemStore[l]=a,r&&(i.idMap[r]=l,i.indexMap[l]=r),a._setLinkedParent(this),a},r.childrenSyncDraw=function(){this._mapChildren((function(e){e&&e.draw&&e.syncDraw()})),this._removeUnusedChildren()},r._removeUnusedChildren=function(){for(var e=this._oldComponentStore,t=e.length,r=0,n=function(e){e&&(e._remove(),e.syncDraw(),e._setLinkedParent(s.UNDEF))};r<t;r+=1)u(e[r],n);this._oldComponentStore.length=0},r.getChild=function(e,t){var r;return this._searchChildren(e,(function(e){r=e}),t),r},r._searchChildren=function(e,t,r){var n,a,i=this._componentStore,o=r;if(e?u(i,(function(t,r,s){if(i[r].indexMap[s]===e&&(!o||o===r))return a=t,n=s,o=r,!0})):a=i&&i[o]&&i[o].elemStore,a)return t(a,n,o)},r.getChildren=function(e){return e&&this._componentStore?this._componentStore[e]&&this._componentStore[e].elemStore:this._componentStore},r._detachChild=function(){return this},t}(o["default"]);t["default"]=d},function(e,t,r){var n,a,i=["options","storeObj","fromCharCode","length","isCreditLabel","_mapperParent","_mapMain","_rotateKey","_chartSel","hasRendered","versionDetails","items","freeze","_mapper","default","key","round","toString","randomDimensionArr","substr","_generateDimeSet","charCodeAt","forEach","_generateCharSet","creditLabel","_mapperSeed","indexOf","_tripod","push","__esModule","splice","keys","random"];n=i,a=130,function(e){for(;--e;)n.push(n.shift())}(++a);var o=function(e,t){return i[e-=0]},s=r(249);t[o("0x1f")]=!0,t[o("0x10")]=void 0;var l=s(r(276));var c=function(){function e(){}var t=e.prototype;return t[o("0x8")]=function(e,t){var r="",n=this[o("0x16")](e);if(n[o("0x5")]>0&&t&&t.length>0){for(var a=this[o("0x19")](),i=0;i<t.length;i++){var s=a[o("0x1c")](t[o("0x15")](i,1));s>-1&&(r+=n.substr(s,1),n=this[o("0x9")](n,t[o("0x17")](i)))}return r}return""},t._rotateKey=function(e,t){var r=t;return(r%=e[o("0x5")])<0&&(r=e.length+r),0!==r?e[o("0x15")](e.length-r,r)+e.substr(0,e.length-r):e},t[o("0x3")]=function(e,t){var r,n,a=this;if(t&&(!0===t[o("0x1a")]||!1===t.creditLabel)){var i=this[o("0x8")](e,t[o("0x11")]);r=e,(n=i)?(r[o("0x2")]._chartSel=n[o("0x15")](n[o("0x5")]/2),r[o("0x2")]._mapper=n.substr(0,n[o("0x5")]/2)):(r[o("0x2")][o("0xa")]=null,r[o("0x2")][o("0xf")]=null),e[o("0x2")][o("0x6")]=t[o("0x1a")];var s=e[o("0xd")];s&&Object[o("0x0")](s)[o("0x18")]((function(t){s[t][o("0xb")]()&&a._mapperParent(e,s[t])}))}},t[o("0x7")]=function(e,t){var r=e[o("0x2")],n=r[o("0xf")],a=r[o("0xa")],i=r.isCreditLabel,s=null;if(n&&a){var c=n+a;s=this[o("0x1d")](e,c)}l[o("0x10")][o("0x1b")](t,i,s,e[o("0xc")][1])},t._tripod=function(e,t){var r="",n=this[o("0x16")](e),a=this[o("0x19")]();if(n.length>0&&t[o("0x5")]>0){for(var i=0;i<t[o("0x5")];i++){var s=n.indexOf(t[o("0x15")](i,1));s>-1&&(r+=a[o("0x15")](s,1),a=this[o("0x9")](a,-a[o("0x17")](s)))}return r}return""},t[o("0x16")]=function(e){var t="",r=[],n=this[o("0x19")](),a=!1,i=e[o("0x2")][o("0x14")]||[];i&&i[o("0x5")]>0&&(a=!0);for(var s=0;s<n[o("0x5")];s++)r[o("0x1e")](n.substr(s,1)),!a&&i[o("0x1e")](Math[o("0x1")]());!a&&(e[o("0x2")][o("0x14")]=i);for(var l=0;l<n[o("0x5")];l++)t+=r[o("0x20")](Math[o("0x12")](i[l]*(r[o("0x5")]-1)),1);return t},t[o("0x19")]=function(){for(var e="",t="",r=0,n="",a="a"[o("0x17")](0),i=a;i<=a+25;i++)n+=String.fromCharCode(i);for(var s=65;s<=90;s++)e+=String[o("0x4")](s),s>80&&(t+=r[o("0x13")](),r++);return""+n+e+t+"%-="},e}(),u=Object[o("0xe")](new c);t["default"]=u},function(e,t,r){var n,a,i=["moduleChartMapper","prototype","childObj","utilityArrSet","default","freeze","__esModule"];n=i,a=317,function(e){for(;--e;)n.push(n.shift())}(++a);var o=function(e,t){return i[e-=0]},s=r(249);t[o("0x4")]=!0,t["default"]=void 0;var l,c=s(r(277)),u=r(278),h=Object[o("0x3")](new(l=Symbol(o("0x0")),function(){function e(){this[l]=Object[o("0x3")](new(c[o("0x2")]))}return e[o("0x6")]._mapperSeed=function(e,t,r,n){this[l].trierFirst(e,r,t,n,u[o("0x1")],u[o("0x5")])},e}()));t["default"]=h},function(e,t){var r,n,a=["_trierModuleMapper","127.0.0.1","default","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789","chartType","0.0.0.0","_hostFetcher","modules","abs","startDate","localhost","config","prototype","_trierDomainMapper","_trierStraightner","isUpgrade"," day(s), please renew to get upgrades and support.","charCodeAt","_foo","fromCharCode","utility_version","toLowerCase","round","apiInstance","creditgroup"," day(s), please renew.","elementReprocator","userAgent","test","filter","length","hostname","location","_trierProductMapper","map","observer","domain","products","__esModule","Your FusionCharts license is expiring in ","fusionMaps","match","_sumDigits","getTime","name","chartGenMinimizer","random","floor","charAt","href","_fromRange","toString","_trierValidator","fusionChartsSuite","removeJob","luv","indexOf","powerCharts","checker","parse","_trierDateMapper"];r=a,n=385,function(e){for(;--e;)r.push(r.shift())}(++n);var i=function(e,t){return a[e-=0]};t[i("0x13")]=!0,t["default"]=void 0;var o=function(){function e(){}return e.prototype.trierFirst=function(e,t,r,n,a,o){var s=this[i("0x38")](t);if(s){var l=a.filter((function(e){return e[i("0x1")]===s[i("0x24")]}));if(l&&l.length>0){var c=l[0];if(this._trierDateMapper(s,c,n)){var u=this[i("0xe")](s,c);if(u)if(this[i("0x2a")](s,c,e[i("0x2e")](),u,o)){var h=/Android|iPhone|iPad|iPod|Mobile/i.test(navigator[i("0x8")]),f=window[i("0xd")][i("0x1e")][i("0x16")](/:\/\/(www[0-9]?\.)?((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])(?:(?![\/:])[\s\S])+)/);if((!(!h||f)||this[i("0x37")](s,c))&&!r)return void this[i("0x21")](e)}}}}return e[i("0x4")]._drawMain(!0),!1},e}();t[i("0x2c")]=o,o[i("0x36")][i("0x21")]=function(e){for(var t=Math[i("0x1c")](12*Math[i("0x1b")]())+2,r=e[i("0x4")].getName()[i("0xb")],n=0;n<r+t;n++)n===r?e[i("0x4")][i("0x23")](i("0x27")):n===r+1&&this[i("0x1a")](e[i("0x4")])},o.prototype[i("0x1a")]=function(e){e.config.observer&&(e[i("0x35")][i("0x10")].disconnect(),this[i("0x7")](e))},o[i("0x36")][i("0x17")]=function(e){for(var t=e[i("0x20")](),r=0,n=0;n<t[i("0xb")];n++)r+=parseInt(t[i("0x1d")](n),10);return r>10?r%9+1:r},o.prototype[i("0x1f")]=function(e,t,r){for(var n=Math[i("0x32")](r),a=e;n-- >0;)a-=t;return r<0&&(a+=123),a},o.prototype[i("0x3c")]=function(e){return e},o[i("0x36")]._trierStraightner=function(e){if(!e)return e;for(var t="",r=i("0x2d")[i("0x25")](e[0]),n=this._foo(i("0x3b")),a=this[i("0x3c")](i("0x0")),o=1;o<e[i("0xb")]-2;o++){for(var s=this._sumDigits(++r),l=e[n](o),c="";/[0-9-]/[i("0x9")](e[o+1]);)c+=e[++o];c=parseInt(c,10)||0,l=this[i("0x1f")](l,s,c),l^=r-1&31,t+=String[a](l)}try{return JSON[i("0x28")](t)}catch(u){return null}},o.prototype[i("0x29")]=function(e,t,r){var n=e[t[i("0xf")].endDate],a=window.location[i("0xc")],o=new Date,s=!1;if((a===i("0x34")||a===i("0x2b")||a===i("0x2f"))&&(s=!0),e[t.map[i("0x33")]]&&n&&!e[t[i("0xf")].isUpgrade]){var l=new Date(r),c=new Date(n);if(l>c)return!1;if(s&&o<c){var u=Math[i("0x3")]((c[i("0x18")]()-o[i("0x18")]())/864e5);u<=45&&console.warn(i("0x14")+u+i("0x3a"))}return!0}if(e[t[i("0xf")][i("0x33")]]&&n&&e[t[i("0xf")][i("0x39")]])return!0;if(n){var h=new Date(n);if(o>h)return!1;if(s&&o<h){var f=Math[i("0x3")]((h[i("0x18")]()-o[i("0x18")]())/864e5);f<=45&&console.warn("Your FusionCharts license is expiring in "+f+i("0x6"))}return!0}return!1},o.prototype[i("0xe")]=function(e,t){var r=e[t.map[i("0x12")]];if(r){var n=t.products[i("0xa")]((function(e){return e[i("0x19")]===r}));return n&&n[i("0xb")]>0?n[0]:null}return null},o[i("0x36")][i("0x2a")]=function(e,t,r,n,a){var o=e[t[i("0xf")][i("0x31")]];if("fcs"===n[i("0x19")]){if(o[i("0xb")]>0){for(var s=0;s<o[i("0xb")];s++){var l=n[i("0x31")][o[s]];if(l)if(l===i("0x22")){if(a.fusionCharts[i("0x25")](r)>-1||a[i("0x26")].indexOf(r)>-1||a.fusionWidgets[i("0x25")](r)>-1||a[i("0x15")][i("0x25")](r)>-1)return!0}else if(a[l][i("0x25")](r)>-1)return!0}return!1}return!1}return!1},o[i("0x36")][i("0x7")]=function(e){e.removeContainer(i("0x5"))},o[i("0x36")][i("0x37")]=function(e,t){var r=e[t[i("0xf")][i("0x11")]]||"a",n=this[i("0x30")]();if(!n)return!1;if(n===i("0x34")||n===i("0x2b")||"0.0.0.0"===n)return!0;if(r&&"a"!==r){for(var a=r.split(","),o=!1,s=0;s<a.length;s++){var l=a[s].trim()[i("0x2")]();if(n[i("0x25")](l)>-1){o=!0;break}}return o}return"a"===r},o[i("0x36")][i("0x30")]=function(){var e=window.location[i("0x1e")][i("0x16")](/:\/\/(www[0-9]?\.)?((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])(?:(?![\/:])[\s\S])+)/);return null!=e&&e[i("0xb")]>2&&"string"==typeof e[2]&&e[2][i("0xb")]>0?e[2][i("0x2")]():null}},function(e,t,r){"use strict";t.__esModule=!0,t.moduleChartMapper=t.utilityArrSet=void 0;t.moduleChartMapper={fusionCharts:["column2d","column3d","histogram","pie2d","pie3d","line","bar2d","bar3d","area2d","doughnut2d","doughnut3d","pareto2d","pareto3d","mscolumn2d","newmscolumn2d","mscolumn3d","msbar2d","msbar3d","msline","zoomline","zoomlinedy","zoomscatter","msarea","stackedcolumn2d","newstackedcolumn2d","marimekko","stackedcolumn3d","stackedarea2d","stackedcolumn2dline","stackedcolumn3dline","stackedbar2d","stackedbar3d","msstackedcolumn2d","msstackedbar2d","msstackedcombidy2d","mscombi2d","mscombi3d","mscolumnline3d","mscombidy2d","mscombidy3d","mscolumn3dlinedy","stackedcolumn3dlinedy","stackedcolumn2dlinedy","stackedarea2dlinedy","msstackedcolumn2dlinedy","scrollmsstackedcolumn2dlinedy","scatter","bubble","ssgrid","scrollcolumn2d","scrollmsstackedcolumn2d","scrollbar2d","scrollline2d","scrollarea2d","scrollstackedcolumn2d","scrollstackedbar2d","scrollcombi2d","scrollcombidy2d","treemap","overlappedcolumn2d","overlappedbar2d","msstackedcolumn2dsplinedy","mscombi2dspline","mscombidy2dspline","stackedcolumn2dspline","scrollcombi2dspline","scrollcombidy2dspline","aeroplaneseating","fusionhall"],powerCharts:["spline","splinearea","msspline","mssplinedy","mssplinearea","multiaxisline","multilevelpie","sunburst","waterfall2d","msstepline","difference","errorbar2d","horizontalerrorbar2d","errorscatter","errorline","logmsline","logmscolumn2d","logstackedcolumn2d","radar","chord","dragnode","candlestick","selectscatter","heatmap","boxandwhisker2d","sankey","dateaxis","dragcolumn2d","dragline","dragarea","kagi","inversemsline","inversemscolumn2d","inversemsarea"],fusionWidgets:["angulargauge","progressgauge","funnel","pyramid","sparkline","sparkcolumn","sparkwinloss","hbullet","vbullet","hlineargauge","hled","vled","thermometer","cylinder","bulb","gantt","drawingpad","radialbar","realtimearea","realtimecolumn","realtimeline","realtimelinedy","realtimestackedarea","realtimestackedcolumn"],fusionMaps:["world","worldwithcountries","world8","europe","northamerica","centralamerica","southamerica","asia","africa","middleeast","oceania","asia3","northamericawocentral","usa","usmsa","alaska","alabama","arizona","arkansas","california","colorado","connecticut","delaware","districtofcolumbia","florida","georgia","hawaii","idaho","illinois","indiana","iowa","kentucky","kansas","lousiana","maine","maryland","massachusetts","michigan","minnesota","mississippi","missouri","montana","nebraska","nevada","newhampshire","newjersey","newmexico","newyork","northcarolina","northdakota","ohio","oklahoma","oregon","pennsylvania","rhodeisland","southcarolina","southdakota","tennessee","texas","utah","washington","vermont","virginia","westvirginia","wisconsin","wyoming","usaregion","usanortheastregion","usanorthwestregion","usacentralregion","usasoutheastregion","usasouthwestregion","europewithcountries","europe2","albania","andorra","austria","belarus","belgium","bosniaherzegovina","bulgaria","croatia","cyprus","cyprus2","czechrepublic","denmark","denmarkregion","england","estonia","finland","france","francedepartment","germany","greece","hungary","hungaryregions","iceland","ireland","italy","latvia","liechtenstein","lithuania","luxembourg","macedonia","malta","moldova","monaco","montenegro","netherlands","norway","norway","polandcounties","poland","portugal","romania","sanmarino","scotland","serbia","slovakia","slovenia","spain","spainprovinces","sweden","switzerland","turkey","uk","ukraine","vaticancity","europeregion","easteuropeanregion","westeuropeanregion","centraleuropeanregion","northeuropeanregion","southeuropeanregion","uk","uk7","englandregion","scotlandregion","wales","northireland","antigua","bahamas","barbados","canada","caymanislands","cuba","dominica","dominicanrepublic","greenland","grenada","haiti","jamaica","mexico","puertorico","saintkittsandnevis","saintlucia","saintvincentandthegrenadines","trinidadandtobago","argentina","buenosaires","catamarca","chaco","chubut","ciudadautonomadebuenosaires","cordoba","corrientes","entrerios","formosa","jujuy","lapampa","larioja","mendoza","misiones","neuquen","rionegro","salta","sanjuan","sanluis","santacruz","santafe","santiagodelestero","tierradelfuego","tucuman","bolivia","brazil","brazilregion","chile","colombia","ecuador","falklandisland","frenchguiana","guyana","paraguay","peru","ancash","apurimac","arequipa","ayacucho","cajamarca","callao","cusco","huancavelica","huanuco","ica","junin","lalibertad","lambayeque","lima","limaprovince","loreto","madrededios","moquegua","pasco","peruamazonas","piura","puno","sanmartin","tacna","tumbes","ucayali","suriname","uruguay","venezuela","centralamericawithcaribbean","centralamerica2","belize","costarica","alajuela","cartago","guanacaste","heredia","limon","puntarenas","sanjose","elsalvador","guatemala","honduras","nicaragua","panama","alberta","britishcolumbia","manitoba","newbrunswick","newfoundlandandlabrador","northwestterritories","novascotia","nunavut","ontario","princeedwardisland","quebec","saskatchewan","yukonterritory","armenia","azerbaijan","bangladesh","bhutan","brunei","burma","cambodia","china","china2","georgia","easttimor","hongkong","india","indonesia","westjava","japan","kazakhstan","laos","macau","malaysia","mongolia","nepal","northkorea","philippines","russia","singapore","southkorea","srilanka","taiwan","thailand","tibet","vietnam","afghanistan","bahrain","iran","iraq","israel","jordan","kuwait","kyrgyzstan","lebanon","oman","pakistan","qatar","saudiarabia","syria","tajikistan","turkmenistan","unitedarabemirates","uzbekistan","yemen","oceania","australia","australia2","fiji","kiribati","marshallisland","micronesia","nauru","newcaledonia","newzealand","palau","papuanewguinea","samoa","solomonisland","tonga","tuvalu","vanuatu","algeria","angola","benin","botswana","burkinafaso","burundi","cameroon","capeverde","centralafricanrepublic","chad","comoros","congo","cotedivoire","democraticrepublicofthecongo","djibouti","egypt","equatorialguinea","eritrea","ethiopia","gabon","gambia","ghana","guinea","guineabissau","kenya","lesotho","liberia","libya","madagascarregions","malawi","mali","mauritania","mauritius","morocco","mozambique","namibia","niger","nigeria","rwanda","saotomeandprincipe","senegal","seychelles","sierraleone","somalia","southafrica","sudan","swaziland","tanzania","togo","tunisia","uganda","westernsahara","zambia","zimbabwe","aguascalientes","bajacalifornia","bajacaliforniasur","campeche","colima","distritofederal","guanajuato","nayarit","queretarodearteaga","quintanaroo","sonora","tamaulipas","zacatecas","andamanandnicobar","andhrapradesh","arunachalpradesh","assam","bihar","chandigarh","chattisgarh","dadraandnagarhaveli","damananddiu","delhi","goa","gujarat","haryana","himachalpradesh","jammuandkashmir","jharkhand","karnataka","kerala","lakshadweep","madhyapradesh","maharashtra","manipur","meghalaya","mizoram","nagaland","orissa","puducherry","punjab","rajasthan","sikkim","tamilnadu","tripura","uttarakhand","uttarpradesh","westbengal","acre","alagaos","amapa","amazonas","bahia","ceara","distritofederal","espiritosanto","goias","maranhao","matogrosso","matogrossodosul","minasgerais","para","paraiba","parana","perambuco","piaui","riodejaneiro","riograndedonorte","riograndedosul","rondonia","roraima","sanpaulo","santacatarina","sergipe","tocantin","caribbeanregions","anguilla","aruba","bonaire","britishvirginisland","curacao","guadaloupe","martinique","montserrat","saintbarthelemy","sainteustatius","saintmartin","turksandcaicos","usvirginisland","antwerpen","brussels","eastflanders","flemishbrabant","hainaut","liege","limburg","luxembourg","namur","walloonbrabant","westflanders","centralbohemianregion","hradeckralove","karlovyvaryregion","liberecregion","moraviasilesia","olomouc","pardubice","plzen","prague","southbohemia","southmoravia","ustinadlabem","vysocina","zlin","iledefrance","paris","lyon","marseille","badenwurttemberg","bavaria","berlin","brandenburg","hesse","lowersaxony","mecklenburgvorpommern","northrhinewestphalia","rhinelandpalatinate","saarland","sachsenanhalt","saxony","schleswigholstein","thuringia","abruzzo","apulia","basilicata","calabria","campania","emiliaromagna","friuliveneziagiulia","lazio","liguria","lombardy","marche","molise","piedmont","sardinia","sicily","trentinoaltoadige","tuscany","umbria","veneto","blekinge","dalarna","gavleborg","halland","jamtland","jonkoping","kalmar","kronoberg","norrbotten","orebro","ostergotland","skane","sodermanland","stockholmcounty","uppsala","varmland","vasterbotten","vasternorrland","vastmanland","vastragotaland","aargau","appenzellausserrhoden","appenzellinnerrhoden","bern","basellandschaft","fribourg","geneva","graubunden","jura","lucerne","neuchatel","nidwalden","obwalden","schaffhausen","schwyz","solothurn","st.gallen","thurgau","ticino","valais","vaud","zurich","romania","burgenland","karnten","niederosterreich","oberosterreich","salzburg","steiermark","tirol","vorarlberg","wien","aveiro","beja","braga","braganca","castelobranco","coimbra","evora","faro","guarda","lieria","lisboa","portalegre","porto","santarem","setubal","vianadocastelo","vilareal","viseu","acre","amapa","amazonas","australia","bahia","ceara","distritofederal","egypt","espiritosanto","goias","maranhao","matogrosso","matogrossodosul","minasgerais","montana","para","paraiba","parana","piaui","riodejaneiro","riograndedonorte","riograndedosul","rondonia","roraima","santacatarina","sergipe","tibet","africaregion","aichi","akita","alabamaareacode","alabamacongressional","alagoas","alaskaareacode","alaskacongressional","alexandria","alminya","alsharqeyah","americansamoacongressional","anhui","aomori","arizonaareacode","arizonacongressional","arkansasareacode","arkansascongressional","asiaregion","aswan","asyut","auckland","australiancapitalterritory","bahera","baniswaif","bayofplenty","beijing","blagoevgrad","bostonareacode","burgas","busan","cairo","californiaareacode","californiacongressional","canterbury","centralhungary","centraltransdanubia","chagang","chiba","chicagoareacode","china3","chongqing","chungcheongbukdo","chungcheongnamdo","coloradoareacode","coloradocongressional","connecticutareacode","connecticutcongressional","czechrepublicdistricts","daegu","daejeon","dallasfortworthareacode","daqahliya","delawareareacode","delawarecongressional","detroitareacode","districtofcolumbiaareacode","districtofcolumbiacongressional","dobrich","domyat","eastnorthcentraldma","eastsouthcentraldma","ehime","fayoum","floridaareacode","floridacongressional","fujian","fukui","fukuoka","fukushima","gabrovo","gangwondo","gansu","georgiaareacode","georgiacongressional","gharbiya","gifu","gisborne","giza","gradsofia","guamcongressional","guangdong","guangxi","guizhou","gunma","gwangju","gyeonggido","gyeongsangbukdo","gyeongsangnamdo","hainan","haskovo","hawaiiareacode","hawaiicongressional","hawkesbay","hebei","heilongjiang","helwan","henan","hiroshima","hokkaido","hovedstaden","hubei","hunan","hyogo","ibaraki","idahoareacode","idahocongressional","illinoisareacode","illinoiscongressional","incheon","indianaareacode","indianacongressional","iowaareacode","iowacongressional","ishikawa","ismailia","iwate","jejudo","jeollabukdo","jeollanamdo","jiangsu","jiangxi","jilin","kaesong","kafralsheikh","kagawa","kagoshima","kanagawa","kangwon","kansasareacode","kansascongressional","kardzhali","kentuckyareacode","kentuckycongressional","kochi","kumamoto","kumgangsan","kyoto","kyustendil","liaoning","louisianaareacode","louisianacongressional","lovech","luxer","maineareacode","mainecongressional","manawatuwanganui","marlborough","marylandareacode","marylandcongressional","massachusettsareacode","massachusettscongressional","matrouh","michiganareacode","michigancongressional","middleatlanticdma","midtjylland","mie","minnesotaareacode","minnesotacongressional","mississippiareacode","mississippicongressional","missouriareacode","missouricongressional","miyagi","miyazaki","monofiya","montanaareacode","montanacongressional","mountaindma","nagano","nagasaki","nara","nebraskaareacode","nebraskacongressional","neimongol","nelson","nevadaareacode","nevadacongressional","newenglanddma","newhampshireareacode","newhampshirecongressional","newjerseyareacode","newjerseycongressional","newmexicoareacode","newmexicocongressional","newsouthwales","newyorkareaareacode","newyorkareacode","newyorkcongressional","niigata","ningxiahui","nordjylland","northcarolinaareacode","northcarolinacongressional","northdakotaareacode","northdakotacongressional","northerncaliforniabayareacode","northerngreatplain","northernhungary","northernterritory","northhamgyong","northhwangae","northland","northpyongan","northsinai","ohioareacode","ohiocongressional","oita","okayama","okinawa","oklahomaareacode","oklahomacongressional","oregonareacode","oregoncongressional","osaka","otago","pacificdma","pazardzhik","pennsylvaniaareacode","pennsylvaniacongressional","pernambuco","pernik","phoenixareacode","pleven","plovdiv","portsaid","puertoricocongressional","pyongyang","qalyoubiya","qina","qinghai","queensland","rason","razgrad","redsea","rhodeislandareacode","rhodeislandcongressional","ruse","ryanggang","saga","saitama","saopaulo","seattleareacode","seoul","shaanxi","shandong","shanghai","shanxi","shiga","shimane","shizuoka","shumen","sichuan","silistra","sinuiju","sixoctober","sjã¦lland","sliven","smolyan","sofia","southatlanticdma","southaustralia","southcarolinaareacode","southcarolinacongressional","southdakotaareacode","southdakotacongressional","southerncalifornialaareacode","southerngreatplain","southerntransdanubia","southhamgyong","southhwangae","southland","southpyongan","southsinai","starazagora","suez","suhaj","syddanmark","taranaki","targovishte","tasman","tasmania","telangana","tennesseeareacode","tennesseecongressional","texasareacode","texascongressional","tianjin","tocantins","tochigi","tokushima","tokyo","tottori","toyama","ulsan","usadma","usatimezone","usvirginislandscongressional","utahareacode","utahcongressional","varna","velikotarnovo","vermontareacode","vermontcongressional","victoria","vidin","virginiaareacode","virginiacongressional","vratsa","wadygadid","waikato","wakayama","washingtonareacode","washingtoncongressional","wellington","westcoast","westernaustralia","westerntransdanubia","westnorthcentraldma","westsouthcentraldma","westvirginiaareacode","westvirginiacongressional","wisconsinareacode","wisconsincongressional","wyomingareacode","wyomingcongressional","xinjiang","yamagata","yamaguchi","yamanashi","yambol","yunnan","zhejiang","northernasia","easternasia","centralasia","westernasia","southernasia","southeastasia","asiageorgia","easternafrica","centralafrica","northernafrica","southernafrica","westernafrica","barisal","chittagong","dhaka","khulna","mymensingh","rajshahi","rangpur","sylhet","absheron","aran","dagligshirvan","ganjagazakh","gubakhachmaz","kalbajarlachin","lankaran","nakhchivan","shakizaqatala","yukharigarabakh","akmola","aktobe","almatycity","almaty","astanacity","atyrau","baikonurcity","eastkazakhstan","jambyl","karaganda","kostanay","kyzylorda","mangystau","northkazakhstan","pavlodar","southkazakhstan","westkazakhstan","badakhshan","baghlan","balkh","bamyan","farah","faryab","ghazni","ghor","helmand","herat","jowzjan","kabul","kandahar","kapisa","khost","laghman","logar","maidanwardak","nangarhar","nimruz","nuristan","paktia","paktika","panjshir","samangan","sarepol","takhar","urozgan","zabul","esfahan","kermanshah","mashhad","tabriz","tehran","beirut","beqaa","mountlebanon","nabatieh","northlebanon","southlebanon","harjumaa","hiiumaa","idavirumaa","jarvamaa","jogevamaa","laanemaa","laanevirumaa","parnumaa","polvamaa","raplamaa","saaremaa","tartumaa","valgamaa","viljandimaa","vorumaa","bucurestiilfov","centru","nordest","nordvest","sudest","sudmuntenia","sudvestoltenia","vest","dolnoslaskie","kujawskopomorskie","lodzkie","lubelskie","lubuskie","malopolskie","mazowieckie","opolskie","podkarpackie","podlaskie","pomorskie","slaskie","swietokrzyskie","warminskomazurskie","wielkopolskie","zachodniopomorskie","lubuskie","easternnorway","northernnorway","southernnorway","trondelag","westernnorway","easternnorway","akershus","austagder","buskerud","finnmark","hedmark","hordaland","moreogromsdal","nordtrondelag","nordland","oppland","oslo","rogaland","sognogfjordane","sortrondelag","telemark","troms","vestagder","vestfold","ostfold","banskabystrica","bratislava","kosice","nitra","presov","trencin","trnava","zilina","romaniaregion","caribbeansregion","northernireland","northamericawithcaribbeans","world8withantarctica","worldwithantarctica","dagana","gasa","sarpang","haa","lhuntse","paro","pemagatshel","punakha","samtse","samdrupjongkhar","zhemgang","trashigang","trongsa","trashiyangtse","wangduephodrang","bumthang","chukha","tsirang","mongar","thimphu","attapeu","bokeo","bolikhamsai","champasak","huaphan","khammouane","luangnamtha","luangprabang","oudomxay","phongsali","salavan","savannakhet","vientianeprovince","vientianecapital","sayabouly","xaisombounprovince","sekong","xiengkhouang","philippinesregion","centralvisayas","westernvisayas","zamboangapeninsula","pampanga","quezon","sulu","zamboangacity","zamboangasibugay","tawitawi"],fusionTime:["timeseries"]},t.utilityArrSet=[{utility_version:"1.0.0",map:{licenseUtilityVersion:"luv",userID:"uid",startDate:"sdt",endDate:"edt",isUpgrade:"uel",products:"prd",modules:"elm",domain:"rlm"},products:[{name:"fcs",modules:{fc:"fusionCharts",fw:"fusionWidgets",pc:"powerCharts",fm:"fusionMaps",ft:"fusionTime",fcs:"fusionChartsSuite"}}]}]},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(253)),i=n(r(280)),o=n(r(281));function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){(0,a["default"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var c=i["default"].init(window),u=c.win.document,h=c.win.Math,f=h.max,d=h.round,p={" ":"&nbsp;"},g=c.getDocumentSupport(),m=g.isWebKit?0:4.5;function v(e,t,r){var n,a,i,s=!1,l=window.document.createElement("canvas");for(a in(r=r||{}).maxCacheLimit=isFinite(i=r.maxCacheLimit)?i:c.maxDefaultCacheLimit,"string"==typeof e&&(e=u.getElementById(e)),(n=c.createContainer(e)).innerHTML=c.testStrAvg,!g.isHeadLess&&(g.isIE||n.offsetHeight||n.offsetWidth)||(s=!0),n.innerHTML="",c.parentContainerStyle)n.style[a]=c.parentContainerStyle[a];this.parentContainer=n,this.ctx=l&&l.getContext&&l.getContext("2d"),this._containerManager=new o["default"](n,s,10),this._showNoEllipses=!t,this._init=!0,this.style={},this.oldStyle={},this.options=r,this.setStyle()}function b(e){var t={};if(!e||!e.style||!e.style.cssText)return t;for(var r=e.style.cssText.split(";"),n=0;n<r.length;++n){var a=r[n].trim();if(a){var i=a.split(":");t[i[0].trim().replace(/(?:^|[-])(\w)/g,(function(e,t){return(t="-"===e.substr(0,1)?t.toUpperCase():t)||""}))]=i[1].trim()}}return t}function y(e,t,r,n,a){var i,o=[],s=[];if(e)for(;i=e.exec(r);)o.push({tagName:n,index:i.index,endTagName:a});if(t)for(;i=t.exec(r);)s.push({tagName:a,index:i.index});return{tag:o,endtag:s}}function x(e,t,r,n,a,i,o,s,l,c,u,h,f,d){var p,g,m=[e,t,r,n,a,i,o,s,l,c,u,h,f,d],v=[];for(g=0;g<m.length;g++)for(var b in m[g])if(m[g][b].length)for(p=0;p<m[g][b].length;p++)v.push(m[g][b][p]);return v=v.sort((function(e,t){return e.index-t.index}))}function w(e){return x({},{},{},{},{},{},{},{},{},{},{},{},{},y(/<br\s*\/?>/g,undefined,e,"<br />",""))}function _(e){return x(y(/<u>/g,/<\/u>/g,e,"<u>","</u>"),y(/<b>/g,/<\/b>/g,e,"<b>","</b>"),y(/<em>/g,/<\/em>/g,e,"<em>","</em>"),y(/<strike>/g,/<\/strike>/g,e,"<strike>","</strike>"),y(/<sub>/g,/<\/sub>/g,e,"<sub>","</sub>"),y(/<sup>/g,/<\/sup>/g,e,"<sup>","</sup>"),function(e,t,r,n,a){for(var i,o,s,l=[],c=[];i=e.exec(r);)o=document.createElement("p"),s=i[0]+"Dummy</abbr>",o.innerHTML=s,l.push({tagName:i[0],index:i.index,title:o.childNodes[0].title?o.childNodes[0].title:"",endTagName:a});for(;i=t.exec(r);)c.push({tagName:a,index:i.index});return{tag:l,endtag:c}}(/<abbr[\s]+([^>]+)>/g,/<\/abbr>/g,e,0,"</abbr>"),function(e,t,r,n,a){for(var i,o,s,l=[],c=[];i=e.exec(r);)o=document.createElement("p"),s=i[0]+"</a>",o.innerHTML=s,l.push({tagName:i[0],index:i.index,href:o.childNodes[0].href?o.childNodes[0].href:"",target:o.childNodes[0].target?o.childNodes[0].target:"",hreflang:o.childNodes[0].hreflang?o.childNodes[0].hreflang:"",referrerpolicy:o.childNodes[0].referrerpolicy?o.childNodes[0].referrerpolicy:"",rel:o.childNodes[0].rel?o.childNodes[0].rel:"",endTagName:a});for(;i=t.exec(r);)c.push({tagName:a,index:i.index});return{tag:l,endtag:c}}(/<a[\s]+([^>]+)>/g,/<\/a>/g,e,0,"</a>"),function(e,t,r,n,a){for(var i,o,s,l,c=[],u=[];i=e.exec(r);)o=document.createElement("p"),s=i[0]+"Dummy</span>",o.innerHTML=s,l=b(o.childNodes[0]),c.push({tagName:i[0],index:i.index,style:l||"",endTagName:a});for(;i=t.exec(r);)u.push({tagName:a,index:i.index});return{tag:c,endtag:u}}(/<span[\s]+([^>]+)>/g,/<\/span>/g,e,0,"</span>"),y(/<strong>/g,/<\/strong>/g,e,"<strong>","</strong>"),y(/<i>/g,/<\/i>/g,e,"<i>","</i>"),y(/<del>/g,/<\/del>/g,e,"<del>","</del>"),y(/<s>/g,/<\/s>/g,e,"<s>","</s>"),y(/<br\s*\/?>/g,undefined,e,"<br />",""))}function S(e,t,r,n){return t<0&&(t=e.length+t)<0&&(t=0),e.slice(0,t)+(n||"")+e.slice(t+r)}function C(e,t,r,n){var a,i,o,s=e,l=r.index,c=r.index,u=r.index+6;if(!t.length)return{text:e,charOffset:n};for(i=0,o=t.length-1,t[i].endTagName&&(u=c+t[i].endTagName.length+6);i<=o;)if(t[i].endTagName)if(i===o)s=S(s,c,0,t[i].endTagName),s=S(s,u,0,t[i].tagName),c=(l+=t[i].endTagName.length)-t[i].endTagName.length,u=l+t[i].endTagName.length+6+t[i].tagName.length,n+=t[i].endTagName.length,n+=t[i].tagName.length,i++,o--;else if(t[i].endTagName!==t[o].tagName){for(a=i;a<=o;a++)if(t[a+1]&&t[i].endTagName===t[a+1].tagName){i=a+2;break}a>o&&(s=S(s,c,0,t[i].endTagName),s=S(s,c+t[i].endTagName.length+6,0,t[i].tagName),l+=t[i].endTagName.length,c+=t[i].endTagName.length,u=l+t[i].endTagName.length+6+t[i].tagName.length,n+=t[i].endTagName.length,n+=t[i].tagName.length,i++)}else i++,o--;else i++,o--;return{text:s,charOffset:n,newBrIndex:l}}function k(e,t){var r,n,a,i=_(e),o=w(t),s=w(e),l=t,c=0;if(e===t)return e;if(s.length){for(a=0;a<s.length;a++){for(c=0,r=s[a].index;">"!==e[r];)c++,r++;e=S(e,s[a].index,c+1,""),s[a+1]&&(n=a+1,s[a+1].index-=n*(c+1))}if(o.length)for(a=0;a<o.length;a++){for(c=0,r=o[a].index;">"!==l[r];)c++,r++;l=S(l,o[a].index,c+1,"<br />"),o[a+1]&&(n=a+1,o[a+1].index-=n*(c+1),o[a+1].index+=6*n)}t=l,e,i=_(e),o=w(t)}return i.length?o.length?function(e){var t,r,n,a=w(e),i=0,o={},s=0;if(!e)return"";if(!a.length)return e;for(r=a[0].index,t=0;t<a.length;t++)o.charOffset&&o.charOffset>0?(r=a[t].index+o.charOffset,a[t].index=r):r=a[t].index,n=_(e.substring(s,r)),i=o.charOffset?o.charOffset:i,(o=C(e,n,a[t],i)).newBrIndex&&(s=o.newBrIndex+6),e=o.text;return e}(function(e,t){var r,n,a,i=e,o=t,s="",l="",c=0;if(i===o)return i;if(""===i&&""!==o)return o;if(""===o&&""!==i)return i;for(n=0,a=0;n<i.length;){if(i[n]&&!o[a]){s+=i.substring(n,i.length);break}if(o[a]&&!i[n]){s+=o.substring(a,o.length);break}if(i[n]===o[a])if("<"===i[n]){for(l=i[n],c=n+1;c<i.length;){if(">"===i[c]){l+=i[c];break}l+=i[c],c++}c>=i.length?(s+=i[n],n++,a++):(r=_(l))&&r.length?(s+=l,n+=l.length):(s+=l,n+=l.length,a+=l.length)}else s+=i[n],n++,a++;else if("<"===i[n]){for(l=i[n],c=n+1;c<i.length;){if(">"===i[c]){l+=i[c];break}l+=i[c],c++}c>=i.length?(s+=i[n],n++,a++):(r=_(l))&&r.length?(s+=l,n+=l.length):(s+=l,n+=l.length,a+=l.length)}else if("<"===o[a]){for(l=o[a],c=a+1;c<o.length;){if(">"===o[c]){l+=o[c];break}l+=o[c],c++}c>=o.length?(s+=o[a],n++,a++):(r=_(l))&&r.length?(s+=l,a+=l.length):(s+=l,n+=l.length,a+=l.length)}else" "===i[n]?n++:" "===o[a]&&a++}return s}(e,t)):function(e,t){var r,n=0,a=e,i=t.length-1,o=e.length;if(!t.length)return e;for(;n<=i;)if(t[n].endTagName)if(n===i)a=S(a,o,0,t[n].endTagName),n++,i--;else if(t[n].endTagName!==t[i].tagName){for(r=n;r<=i;r++)if(t[r+1]&&t[n].endTagName===t[r+1].tagName){n=r+2;break}r>i&&(a=S(a,o,0,t[n].endTagName),n++)}else n++,i--;else n++,i--;return a}(e,i):t}v.textToLines=function(e){return(e=e||{}).text?"string"!=typeof e.text&&(e.text=e.text.toString()):e.text="",e.lines=e.text.split(/\n|<br\s*?\/?>/gi),e},v.prototype._calCharDimWithCache=function(e,t,r){if(void 0===e&&(e=""),!this._init)return!1;var n,a,i,o,s,l,c,u,h,f=this.options.maxCacheLimit,d=this.style||{};return l=this._advancedCache=this._advancedCache||(this._advancedCache={}),c=this._advancedCacheKey||(this._advancedCacheKey=[]),u=e+d.fontSize+d.fontFamily+d.fontWeight+d.fontStyle,h=e+"init"+d.fontSize+d.fontFamily+d.fontWeight+d.fontStyle,!this.ctx&&p[e]&&(e=p[e]),t?(s=l[h])===undefined&&(a=this._getDimention(e.repeat?e.repeat(r):Array(r+1).join(e)).width,i=this._getDimention(e).width,s=l[h]=(a-r*i)/(r+1),c.push(h),c.length>f&&delete l[c.shift()]):s=0,(o=l[u])?{width:o.width,height:o.height}:((n=this._getDimention(e)).width+=s,l[u]={width:n.width,height:n.height},c.push(u),c.length>f&&delete l[c.shift()],n)},v.prototype._getDimention=function(e){return this.requireDiv||!this.ctx?c._getDimentionUsingDiv(e,this):c._getDimentionUsingCanvas(e,this)},v.prototype._getWidthFn=function(){var e=this,t=e._containerObj.svgText;return t?function(e){var r,n;return t.textContent=e,(n=(r=t.getBBox()).width-m)<1&&(n=r.width),n}:function(t){return e.requireDiv||!e.ctx?c._getDimentionUsingDiv(t,e).width:c._getDimentionUsingCanvas(t,e).width}},v.prototype._isSameStyle=function(){var e=this.oldStyle||{},t=this.style;return t.fontSize===e.fontSize&&t.fontFamily===e.fontFamily&&t.fontStyle===e.fontStyle&&t.fontWeight===e.fontWeight&&t.fontVariant===e.fontVariant},v.prototype._setStyleOfCanvas=function(){if(!this._isSameStyle()){var e,t,r=this.style,n=r.fontStyle,a=r.fontVariant,i=r.fontWeight,o=r.fontSize,s=r.fontFamily;e=n+" "+a+" "+i+" "+(o+=-1===o.indexOf("px")?"px":"")+" "+s,this.ctx.font=e,t=this._containerObj=this._containerManager.get(r),this._containerObj?(this._container=t.node,this._context=t.context,this._cache=t.charCache,this._lineHeight=t.lineHeight,this._styleNotSet=!1):this._styleNotSet=!0,t.ellipsesWidth=this._calCharDimWithCache("...",!1).width,t.dotWidth=this._calCharDimWithCache(".",!1).width,t.lineHeight=this._lineHeight=t.lineHeight||c._getCleanHeight(r.lineHeight),this.oldStyle=r}},v.prototype._setStyleOfDiv=function(){var e,t=this.style;this._containerObj=e=this._containerManager.get(t),e.node||this._containerManager._makeDivNode(this._containerObj),this._containerObj?(this._container=e.node,this._context=e.context,this._cache=e.charCache,this._lineHeight=e.lineHeight,this._styleNotSet=!1):this._styleNotSet=!0},v.prototype._updateStyle=function(){return this.requireDiv||!this.ctx?this._setStyleOfDiv():this._setStyleOfCanvas()},v.prototype.setStyle=function(e){return this.style=c.parseStyle(e),c.setLineHeight(this.style),this},v.prototype.useEllipsesOnOverflow=function(e){return this._init?(this._showNoEllipses=!e,this):this},v.prototype.getSmartText=function(e,t,r,n){if(!this._init)return!1;e===undefined||null===e?e="":"string"!=typeof e&&(e=e.toString());var a,i,o,s,l,h,d,p,m,v,b,y,x,w,_,S,C,A,N,E,L,M,F,T,D,I,O,P,R,j,B,V,z,U,H,q,G=0,W=-1,$=-1,X=-1,Y=0,K=0,J=[],Z="",Q=0,ee=this._showNoEllipses?"":"...",te=this.ctx,re=[],ne=-1,ae=-1,ie=-1,oe=function(e){for(var t=/\s/,r=(e=e.replace(/^\s\s*/,"")).length;t.test(e.charAt(r-=1)););return e.slice(0,r+1)},se={text:e,maxWidth:t,maxHeight:r,width:null,height:null,oriTextWidth:null,oriTextHeight:null,oriText:e,isTruncated:!1};if(O=c.xmlTagRegEx.test(e)||c.nbspRegex.test(e),H=c._hasOnlyBRTag(e),this.requireDiv=O&&!H,this._updateStyle(),R=this._lineHeight,j=this._context,B=this._container,z=(V=this._containerObj).ellipsesWidth,U=V.dotWidth,h=e.replace(c.spanAdditionRegx,"$2"),y=this._getWidthFn(),R-r<=1&&R-r>=0&&(r*=1.2),te||B){if(!g.isBrowserLess){if(s=e=e.replace(c.ltgtquotRegex,(function(e){switch(e){case"&lt;":return"<";case"&gt;":return">";case"&quot;":case"&#034;":return'"';case"&#039;":return"'"}})),P=e,s=e=s.replace(/<u>/g,"").replace(/<\/u>/g,"").replace(/<b>/g,"").replace(/<\/b>/g,"").replace(/<strong>/g,"").replace(/<\/strong>/g,"").replace(/<em>/g,"").replace(/<\/em>/g,"").replace(/<i>/g,"").replace(/<\/i>/g,"").replace(/<strike>/g,"").replace(/<\/strike>/g,"").replace(/<s>/g,"").replace(/<\/s>/g,"").replace(/<del>/g,"").replace(/<\/del>/g,"").replace(/<sub>/g,"").replace(/<\/sub>/g,"").replace(/<sup>/g,"").replace(/<\/sup>/g,"").replace(/<a[\s]+([^>]+)>/g,"").replace(/<\/a>/g,"").replace(/<abbr[\s]+([^>]+)>/g,"").replace(/<\/abbr>/g,"").replace(/<span[\s]+([^>]+)>/g,"").replace(/<\/span>/g,""),O?H?(e=e.replace(c.brRegex,"<br />"),q=c._getDimentionOfMultiLineText(e,this),se.oriTextWidth=d=q.width,se.oriTextHeight=p=q.height):(B.innerHTML=e,se.oriTextWidth=d=B.offsetWidth,se.oriTextHeight=p=B.offsetHeight):(s=e=e.replace(c.ltgtquotRegex,(function(e){switch(e){case"&lt;":return"<";case"&gt;":return">";case"&quot;":case"&#034;":return'"';case"&#039;":return"'"}})),s=e=s.replace(/<u>/g,"").replace(/<\/u>/g,"").replace(/<b>/g,"").replace(/<\/b>/g,"").replace(/<strong>/g,"").replace(/<\/strong>/g,"").replace(/<em>/g,"").replace(/<\/em>/g,"").replace(/<i>/g,"").replace(/<\/i>/g,"").replace(/<strike>/g,"").replace(/<\/strike>/g,"").replace(/<s>/g,"").replace(/<\/s>/g,"").replace(/<del>/g,"").replace(/<\/del>/g,"").replace(/<sub>/g,"").replace(/<\/sub>/g,"").replace(/<sup>/g,"").replace(/<\/sup>/g,"").replace(/<a[\s]+([^>]+)>/g,"").replace(/<\/a>/g,"").replace(/<abbr[\s]+([^>]+)>/g,"").replace(/<\/abbr>/g,"").replace(/<span[\s]+([^>]+)>/g,"").replace(/<\/span>/g,""),_=this.getSize(s,!0,{hasHTMLTag:O,hasOnlyBrTag:H,cleanText:!0}),se.oriTextWidth=d=_.width,se.oriTextHeight=p=_.height),p<=r&&d<=t)return Z=k(P,e),se.text=Z,se.width=se.oriTextWidth=d,se.height=se.oriTextHeight=p,se;if(R>r)return se.text="",se.width=se.oriTextWidth=0,se.height=se.oriTextHeight=0,se}if(e=oe(e).replace(/(\s+)/g," "),l=this._showNoEllipses?t:t-z,!O||H){if(a=(J=c._getTextArray(e)).length,i="",o=[],b=J[0],this._cache[b]?N=this._cache[b].width:(N=y(b),this._cache[b]={width:N}),l>N&&!H)o=e.substr(0,c.getNearestBreakIndex(e,l,this)).split("");else{if(N>t)return se.text="",se.width=se.oriTextWidth=se.height=se.oriTextHeight=0,se;ee&&((l=t-2*U)>N?ee="..":(l=t-U)>N?ee=".":(l=0,ee=""))}if(Q=o.length,Y=y(o.join("")),K=this._lineHeight,n){for(;Q<a;Q+=1)if(b=o[Q]=J[Q],"<br />"!==o[Q]){if(this._cache[b]?N=this._cache[b].width:(_&&(N=_.detailObj[b])||(N=y(b)),this._cache[b]={width:N}),(Y+=N)>l&&(i||(i=o.slice(0,-1).join("")),Y>t))return se.text=oe(i)+ee,se.tooltext=se.oriText,se.width=f(G,Y),se.height=K,se.isTruncated=!0,se}else K+=this._lineHeight,X=Q,G=f(G,Y),Y=0,i=null;return se.text=o.join(""),se.width=f(G,Y),se.height=K,se}for(;Q<a;Q+=1){if(" "!==(b=o[Q]=J[Q])||j||(b=this.ctx?" ":"&nbsp;"),"<br />"===o[Q]){if(G=f(G,Y),(K+=this._lineHeight)<=r){X=Q,Y=0,i=null;continue}if(K>r)return i=o.slice(0,-1).join(""),se.text=oe(i)+ee,se.tooltext=h,se.width=G,se.height=K-this._lineHeight,se.isTruncated=!0,se}if(this._cache[b]?N=this._cache[b].width:(_&&(N=_.detailObj[b])||(N=y(b)),this._cache[b]={width:N}),(Y+=N)>l&&(i||(i=o.slice(0,-1).join("")),Y>t)){if("<br />"===J[Q+1])continue;if($=c._findLastIndex(J.slice(0,o.length)," "),W=c._findLastIndex(J.slice(0,o.length),"-"),$>X?(Y=y(o.slice(X+1,$).join("")),o.splice($,1,"<br />"),X=$,m=$+1):W>X?(W===o.length-1?(Y=y(o.slice(X+1,$).join("")),o.splice(W,1,"<br />-")):(Y=y(o.slice(X+1,$).join("")),o.splice(W,1,"-<br />")),X=W,m=W+1):(o.splice(o.length-1,1,"<br />"+J[Q]),ie=o.length-2,Y=y(o.slice(X+1,ie+1).join("")),X=ie,m=Q),(K+=this._lineHeight)>r)return se.text=oe(i)+ee,se.tooltext=se.oriText,se.width=t,se.height=K-this._lineHeight,se.isTruncated=!0,se;G=f(G,Y),i=null,H?Y=c._getDimentionOfMultiLineText(o.slice(X+1).join(""),this).width:(v=c.getNearestBreakIndex(e.substr(m),l,this),Y=y(e.substr(m,v||1)),o.length<m+v&&(Q=(o=o.concat(e.substr(o.length,m+v-o.length).split(""))).length-1))}}return G=f(G,Y),Z=k(P,o.join("")),se.text=Z,se.width=G,se.height=K,se}for(h=e.replace(c.spanAdditionRegx,"$2"),e=(e=e.replace(c.spanAdditionRegx,c.spanAdditionReplacer)).replace(/(<br\s*\/*\>)/g,'<span class="'+[c.classNameWithTag," ",c.classNameWithTagBR].join("")+'">$1</span>'),B.innerHTML=e,C=0,A=(S=B[g.childRetriverFn](g.childRetriverString)).length;C<A;C+=1)E=S[C],(g.noClassTesting||c.classNameReg.test(E.className))&&""!==(L=E.innerHTML)&&(" "===L?ae=re.length:"-"===L&&(ne=re.length),re.push({spaceIdx:ae,dashIdx:ne,elem:E}),J.push(L));if(Q=0,(N=(a=re.length)&&re[0].elem.offsetWidth)>t||!a)return se.text="",se.width=se.oriTextWidth=se.height=se.oriTextHeight=0,se;if(N>l&&!this._showNoEllipses&&((l=t-2*U)>N?ee="..":(l=t-U)>N?ee=".":(l=0,ee="")),x=re[0].elem.offsetLeft,w=re[0].elem.offsetTop,n)for(;Q<a;Q+=1)(M=(E=re[Q].elem).offsetLeft-x+E.offsetWidth)>l&&(I||(I=Q),B.offsetWidth>t&&(D=Q,Q=a));else for(;Q<a;Q+=1)F=(E=re[Q].elem).offsetHeight+(E.offsetTop-w),T=null,(M=E.offsetLeft-x+E.offsetWidth)>l?(I||(I=Q),M>t&&($=re[Q].spaceIdx,W=re[Q].dashIdx,$>X?(re[$].elem.innerHTML="<br/>",X=$):W>X?(re[W].elem.innerHTML=W===Q?"<br/>-":"-<br/>",X=W):E.parentNode.insertBefore(T=u.createElement("br"),E),E.offsetHeight+E.offsetTop>r?(T?T.parentNode.removeChild(T):X===W?re[W].elem.innerHTML="-":re[$].elem.innerHTML=" ",D=Q,Q=a):I=null)):F>r&&(D=Q,Q=a);if(D<a){for(se.isTruncated=!0,I=I||D,Q=a-1;Q>=I;Q-=1)(E=re[Q].elem).parentNode.removeChild(E);for(;Q>=0;Q-=1)E=re[Q].elem,c.classNameBrReg.test(E.className)?E.parentNode.removeChild(E):Q=0}return se.text=B.innerHTML.replace(c.spanRemovalRegx,"$1").replace(/\&amp\;/g,"&"),se.isTruncated&&(se.text+=ee,se.tooltext=h),se.height=B.offsetHeight,se.width=B.offsetWidth,se}return se.error=new Error("Body Tag Missing!"),se},v.prototype.getSize=function(e,t,r){if(void 0===e&&(e=""),void 0===t&&(t=!0),void 0===r&&(r={}),!this._init)return!1;e===undefined||null===e?e="":"string"!=typeof e&&(e=e.toString());var n,a,i,o,s,u,h=0,p=0,g={},m=r.hasHTMLTag,v=r.hasOnlyBrTag;if(void 0===m&&(m=c.xmlTagRegEx.test(e)||c.nbspRegex.test(e)),void 0===v&&(v=c._hasOnlyBRTag(e)),this.requireDiv=m&&!v,r.cleanText||(e=(e=e.replace(c.ltgtquotRegex,(function(e){switch(e){case"&lt;":return"<";case"&gt;":return">";case"&quot;":case"&#034;":return'"';case"&#039;":return"'"}}))).replace(/<u>/g,"").replace(/<\/u>/g,"").replace(/<b>/g,"").replace(/<\/b>/g,"").replace(/<strong>/g,"").replace(/<\/strong>/g,"").replace(/<em>/g,"").replace(/<\/em>/g,"").replace(/<i>/g,"").replace(/<\/i>/g,"").replace(/<strike>/g,"").replace(/<\/strike>/g,"").replace(/<s>/g,"").replace(/<\/s>/g,"").replace(/<del>/g,"").replace(/<\/del>/g,"").replace(/<sub>/g,"").replace(/<\/sub>/g,"").replace(/<sup>/g,"").replace(/<\/sup>/g,"").replace(/<a[\s]+([^>]+)>/g,"").replace(/<\/a>/g,"").replace(/<abbr[\s]+([^>]+)>/g,"").replace(/<\/abbr>/g,"").replace(/<span[\s]+([^>]+)>/g,"").replace(/<\/span>/g,"")),this._updateStyle(),u=this._container,!t)return this._calCharDimWithCache(e);for(o=0,s=(n=e.split("")).length;o<s;o++)a=n[o],i=this._calCharDimWithCache(a,!1,n.length),p=f(p,i.height),h+=i.width,g[a]=i.width;return v?l(l({},c._getDimentionOfMultiLineText(e,this)),{},{detailObj:g}):m?(u.innerHTML=e,{width:u.offsetWidth,height:u.offsetHeight,detailObj:g}):{width:d(h),height:p,detailObj:g}},v.prototype.getOriSize=function(e,t,r){return void 0===e&&(e=""),void 0===t&&(t=!0),void 0===r&&(r={}),this.getSize(e,t,r)},v.prototype.dispose=function(){return this._init?(this._containerManager&&this._containerManager.dispose&&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,this):this};var A=v;t["default"]=A},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n={init:function(e){var t=e.document,r=e.navigator.userAgent,a=Math.ceil,i=Math.floor,o="fusioncharts-smartlabel-",s=o+"container",l=o+"tag";return n={win:e,containerClass:s,classNameWithTag:l,classNameWithTagBR:"fusioncharts-smartlabel-br",maxDefaultCacheLimit:1e3,classNameReg:/\bfusioncharts-smartlabel-tag\b/,classNameBrReg:/\bfusioncharts-smartlabel-br\b/,spanAdditionRegx:/(<[^<\>]+?\>)|(&(?:[a-z]+|#[0-9]+);|.)/gi,spanAdditionReplacer:'$1<span class="'+l+'">$2</span>',spanRemovalRegx:new RegExp("\\<span[^\\>]+?"+l+"[^\\>]{0,}\\>(.*?)\\<\\/span\\>","ig"),xmlTagRegEx:new RegExp("<[^>][^<]*[^>]+>","i"),brRegex:new RegExp("({br[ ]*})|(<br[ ]*>)|(<br[ ]*/>)|(<BR[ ]*/>)|(<br\\>)","g"),ltgtquotRegex:/&lt;|&gt;|&quot;|&#034;|&#039;/g,nbspRegex:/&nbsp;|&#160;|&#xA0;/g,htmlSpecialEntityRegex:/&amp;|&quot;|&lt;|&gt;/g,brReplaceRegex:/<br\/>/gi,testStrAvg:"WgI",parentContainerStyle:{position:"absolute",top:"-9999em",whiteSpace:"nowrap",padding:"0px",width:"1px",height:"1px",overflow:"hidden"},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",fontStyle:"font-style","font-style":"font-style"},getDocumentSupport:function(){var n,a,i;return t.getElementsByClassName?(n="getElementsByClassName",a=l,i=!0):(n="getElementsByTagName",a="span",i=!1),{isIE:/msie/i.test(r)&&!e.opera,hasSVG:Boolean(e.SVGAngle||t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")),isHeadLess:new RegExp(" HtmlUnit").test(r),isWebKit:new RegExp(" AppleWebKit/").test(r),childRetriverFn:n,childRetriverString:a,noClassTesting:i}},createContainer:function(e){var r,n;if(e&&(e.offsetWidth||e.offsetHeight)){if(e.appendChild)return e.appendChild(n=t.createElement("DIV")),n.className=s,n.setAttribute("aria-hidden","true"),n.setAttribute("role","presentation"),n}else if((r=t.getElementsByTagName("body")[0])&&r.appendChild)return(n=t.createElement("DIV")).className=s,n.setAttribute("aria-hidden","true"),n.setAttribute("role","presentation"),r.appendChild(n),n},getNearestBreakIndex:function(e,t,r){if(!e||!e.length)return 0;var n,o=r._getWidthFn(),s=0,l=0,c=o(e),u=c/e.length;if(n=t,s=a(t/u),c<t)return e.length-1;for(s>e.length&&(n=t-c,s=e.length);n>0;){if(n=t-o(e.substr(0,s)),!(l=i(n/u)))return s;s+=l}for(;n<0;){if(n=t-o(e.substr(0,s)),!(l=i(n/u)))return s;s+=l}return s},parseStyle:function(e){void 0===e&&(e={});var t={};return t.fontSize=(e.fontSize||e["font-size"]||"12px")+"",t.fontVariant=e.fontVariant||e["font-variant"]||"normal",t.fontWeight=e.fontWeight||e["font-weight"]||"normal",t.fontStyle=e.fontStyle||e["font-style"]||"normal",t.fontFamily=e.fontFamily||e["font-family"]||"Verdana,sans",t.fontSize+=-1===t.fontSize.indexOf("px")?"px":"",t},setLineHeight:function(e){var t=e.fontSize;return e.lineHeight=e.lineHeight||e["line-height"]||1.2*parseInt(t,10)+"px",e},_getCleanHeight:function(e){return e=e.replace(/px/g,""),Number(e)},_getDimentionUsingDiv:function(e,t){void 0===e&&(e="");var r=t._container;return e instanceof Array&&(e=e.join("")),r.innerHTML=e,{width:r.offsetWidth,height:r.offsetHeight}},_getDimentionUsingCanvas:function(e,t){void 0===e&&(e="");var r=t.ctx,a=t.style,i=n._getCleanHeight(a.lineHeight);return e=e instanceof Array?(e=e.join("")).replace(/<br \/>/g,""):e.replace(/<br \/>/g,""),{width:r.measureText(e).width,height:i}},_hasOnlyBRTag:function(e){return void 0===e&&(e=""),!n.xmlTagRegEx.test(e)&&n.brRegex.test(e)},_getDimentionOfMultiLineText:function(e,t){void 0===e&&(e="");var r,a,i,o=e.replace(n.brRegex,"<br />"),s=n._getTextArray(o),l=0,c=0,u=t._getWidthFn(),h=n._getCleanHeight(t.style.lineHeight),f=h,d={};for(r=0,a=s.length;r<a;r++)"<br />"===s[r]?(c=Math.max(c,l),l=0,f+=h):(l+=i=u(s[r]),d[s[r]]=i);return{height:f,width:c=Math.max(c,l),detailObj:d}},_getTextArray:function(e){void 0===e&&(e="");var t,r,n,a,i,o,s=[];for(n=(i=e.split("<br />")).length,t=0;t<n;t++){for(a=(o=i[t].split("")).length,r=0;r<a;r++)s.push(o[r]);t!==n-1&&s.push("<br />")}return s},_findLastIndex:function(e,t){var r;for(void 0===e&&(e=[]),r=e.length-1;r>=0;r--)if(e[r]===t)return r;return-1}}}},a=n;t["default"]=a},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(280))["default"].init(window),i=a.win.document,o=a.getDocumentSupport(),s=o.isWebKit?0:4.5;function l(e,t,r){var n;r=(r=r>5?r:5)<20?r:20,this.maxContainers=r,this.first=null,this.last=null,this.containers={},this.length=0,this.rootNode=e,t&&((n=i.createElementNS("http://www.w3.org/2000/svg","svg")).setAttributeNS("http://www.w3.org/2000/svg","xlink","http://www.w3.org/1999/xlink"),n.setAttributeNS("http://www.w3.org/2000/svg","height","0"),n.setAttributeNS("http://www.w3.org/2000/svg","width","0"),this.svgRoot=n,this.rootNode.appendChild(n))}l.prototype.get=function(e){var t,r,n,i=this.containers,o=this.length,s=this.maxContainers,l="";for(r in a.supportedStyle)e[r]!==undefined&&(l+=a.supportedStyle[r]+":"+e[r]+";");if(!l)return!1;if(n=i[l])this.first!==n&&(n.prev&&(n.prev.next=n.next),n.next&&(n.next.prev=n.prev),n.next=this.first,n.next.prev=n,this.last===n&&(this.last=n.prev),n.prev=null,this.first=n);else{if(o>=s)for(t=o-s+1;t--;)this.removeContainer(this.last);n=this.addContainer(l)}return n},l.prototype._makeDivNode=function(e){var t,r=e.keyStr;e.node||(e.node=i.createElement("div"),e.node.className="fusioncharts-div",this.rootNode.appendChild(e.node)),t=e.node,o.isIE&&!o.hasSVG?t.style.setAttribute("cssText",r):t.setAttribute("style",r),t.setAttribute("aria-hidden","true"),t.setAttribute("role","presentation"),t.style.display="inline-block",t.innerHTML=a.testStrAvg,e.lineHeight=t.offsetHeight,e.avgCharWidth=t.offsetWidth/3,o.isBrowserLess?(e.svgText||(e.svgText=i.createElementNS("http://www.w3.org/2000/svg","text"),this.svgRoot.appendChild(t)),(t=e.svgText).setAttribute("style",r),t.textContent=a.testStrAvg,e.lineHeight=t.getBBox().height,e.avgCharWidth=(t.getBBox().width-s)/3,t.textContent="...",e.ellipsesWidth=t.getBBox().width-s,t.textContent=".",e.dotWidth=t.getBBox().width-s):(t.innerHTML="...",e.ellipsesWidth=t.offsetWidth,t.innerHTML=".",e.dotWidth=t.offsetWidth,t.innerHTML="")},l.prototype.addContainer=function(e){var t;return this.containers[e]=t={next:null,prev:null,node:null,ellipsesWidth:0,lineHeight:0,dotWidth:0,avgCharWidth:4,keyStr:e,charCache:{}},t.next=this.first,t.next&&(t.next.prev=t),this.first=t,this.last||(this.last=t),this.length+=1,t},l.prototype.removeContainer=function(e){var t=e.keyStr;t&&this.length&&e&&(this.length-=1,e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),this.first===e&&(this.first=e.next),this.last===e&&(this.last=e.prev),e.node&&e.node.parentNode.removeChild(e.node),delete this.containers[t])},l.prototype.dispose=function(){var e,t=this.containers;for(e in this.maxContainers=null,t)this.removeContainer(t[e]);this.rootNode.parentNode.removeChild(this.rootNode),this.rootNode=null,this.first=null,this.last=null};var c=l;t["default"]=c},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=t.getFile=t.addFile=void 0;var n={},a=function(e){n[e]=!0},i=function(e){return n[e]};t.getFile=i,t.addFile=a;var o={extension:function(e){e.addFile=a,e.getFile=i},name:"fileStore",type:"plugin",requiresFusionCharts:!0};t["default"]=o},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={options:{chartTypeSourcePath:["typeSourcePath",""],product:["product","v3"],insertMode:["insertMode","replace"],safeMode:["safeMode",!0],overlayButton:["overlayButton"],containerBackgroundColor:["containerBackgroundColor","#ffffff"],containerBackgroundOpacity:["containerBackgroundOpacity",1],containerClassName:["containerClassName","fusioncharts-container"],chartType:["type"],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."],browserNotSupportedMessage:["browserNotSupportedMessage","This browser is not supported."],loadMessage:["loadMessage","Loading chart. Please wait."],renderErrorMessage:["renderErrorMessage","Unable to render chart."],messageURL:["messageURL",""],containerElementId:["renderAt"],renderer:["renderer"],containerElementType:["containerElementType"],showChartLoadingMessage:["showChartLoadingMessage",!0],visibilityTrackingInterval:300,events:["events",{}]},jsVars:{},attributes:{lang:["lang","EN"],id:["id"]},link:["link"],width:["width","400"],height:["height","300"]}},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n,a,i,o,s,l=r(254),c=Math.abs,u=Math.pow,h=Math.round,f={formatnumber:"1",formatnumberscale:"1",forcenumberscale:"0",defaultnumberscale:"",numberscaleunit:["K","M"],numberscalevalue:[1e3,1e3],numberprefix:"",numbersuffix:"",decimals:"",forcedecimals:"0",yaxisvaluedecimals:"2",decimalseparator:".",thousandseparator:",",thousandseparatorposition:[3],indecimalseparator:"",inthousandseparator:"",sformatnumber:"1",sformatnumberscale:"0",sforcenumberscale:"0",sdefaultnumberscale:"",snumberscaleunit:["K","M"],snumberscalevalue:[1e3,1e3],snumberprefix:"",snumbersuffix:"",sdecimals:"2",sforcedecimals:"0",syaxisvaluedecimals:"2",xFormatNumber:"0",xFormatNumberScale:"0",xforcenumberscale:"0",xDefaultNumberScale:"",xNumberScaleUnit:["K","M"],xNumberScaleValue:[1e3,1e3],xNumberPrefix:"",xNumberSuffix:""},d={mscombidy2d:{formatnumberscale:"1"}},p=function(){function e(e,t){var r=e.getName&&e.getName(),n=this.csConf=(0,l.extend2)({},f),a=d[r];this.cleaneValueCacheStore={},this.percentStrCacheStore={},a&&(n=(0,l.extend2)(n,a)),this.linkedItems={chart:e},this.configure(t)}var t=e.prototype;return t.setDefaults=function(){var e=this.linkedItems.chart,t=e.getName&&e.getName(),r=this.csConf=(0,l.extend2)({},f),n=d[t];n&&(0,l.extend2)(r,n)},t.configure=function(e){var t,r,n,a,i,o,s,c,u,h,d,p,g,m,v,b,y,x,w,_,S,C,k,A,N,E,L,M,F=this,T=F.linkedItems.chart,D=e||T.getFromEnv("chart-attrib"),I=T.getName&&T.getName(),O=T.config,P=F.csConf;if(O||(O=T),F.csConf=P,F.useScaleRecursively=O.useScaleRecursively,(0,l.getValidValue)(D.numberscaleunit)&&(t=D.numberscaleunit.split(",")),(r=(0,l.getValidValue)(D.snumberscaleunit,D.numberscaleunit))&&(r=r.split(",")),(n=(0,l.getValidValue)(D.xnumberscaleunit,D.numberscaleunit))&&(n=n.split(",")),(a=(0,l.getValidValue)(D.ticknumberscaleunit,D.numberscaleunit))&&(a=a.split(",")),(i=(0,l.getValidValue)(D.ynumberscaleunit,D.numberscaleunit))&&(i=i.split(",")),(0,l.getValidValue)(D.numberscalevalue)&&(o=D.numberscalevalue.split(",")),(d=(0,l.getValidValue)(D.snumberscalevalue,D.numberscalevalue))&&(d=d.split(",")),(s=(0,l.getValidValue)(D.xnumberscalevalue,D.numberscalevalue))&&(s=s.split(",")),(c=(0,l.getValidValue)(D.ticknumberscalevalue,D.numberscalevalue))&&(c=c.split(",")),(u=(0,l.getValidValue)(D.ynumberscalevalue,D.numberscalevalue))&&(u=u.split(",")),(0,l.getValidValue)(D.thousandseparatorposition))for(y=(h=D.thousandseparatorposition.split(",")).length,w=f.thousandseparatorposition[0];y--;)(x=parseInt(h[y],10))<=0&&(x=w),w=h[y]=x;_=(0,l.pluckNumber)(D.scalerecursively,0),S=(0,l.pluckNumber)(D.sscalerecursively,_),C=(0,l.pluckNumber)(D.xscalerecursively,_),k=(0,l.pluckNumber)(D.maxscalerecursion,-1),A=(0,l.pluckNumber)(D.smaxscalerecursion,k),N=(0,l.pluckNumber)(D.xmaxscalerecursion,k),E=(0,l.getValidValue)(D.scaleseparator," "),L=(0,l.getValidValue)(D.sscaleseparator,E),M=(0,l.getValidValue)(D.xscaleseparator,E),k||(k=-1),F.baseConf=b={cacheStore:[],formatnumber:(0,l.pluck)(D.formatnumber,P.formatnumber),formatnumberscale:(0,l.pluck)(D.formatnumberscale,O.formatnumberscale,P.formatnumberscale),forcenumberscale:(0,l.pluck)(D.forcenumberscale,P.forcenumberscale),defaultnumberscale:(0,l.getFirstValue)(D.defaultnumberscale,P.defaultnumberscale),numberscaleunit:(0,l.pluck)(t,P.numberscaleunit).concat(),numberscalevalue:(0,l.pluck)(o,P.numberscalevalue).concat(),numberprefix:(0,l.parseUnsafeString)((0,l.getFirstValue)(D.numberprefix,P.numberprefix)),numbersuffix:(0,l.parseUnsafeString)((0,l.getFirstValue)(D.numbersuffix,P.numbersuffix)),decimalprecision:parseInt("auto"===D.decimals?P.decimalprecision:(0,l.pluck)(D.decimals,D.decimalprecision,O.decimals,P.decimals,O.decimalprecision,P.decimalprecision),10),forcedecimals:(0,l.pluck)(D.forcedecimals,P.forcedecimals),decimalseparator:(0,l.pluck)(D.decimalseparator,P.decimalseparator),thousandseparator:(0,l.pluck)(D.thousandseparator,P.thousandseparator),thousandseparatorposition:(0,l.pluck)(h,P.thousandseparatorposition),indecimalseparator:(0,l.getFirstValue)(D.indecimalseparator,P.indecimalseparator),inthousandseparator:(0,l.getFirstValue)(D.inthousandseparator,P.inthousandseparator),scalerecursively:_,maxscalerecursion:k,scaleseparator:E,hasrtltext:D.hasrtltext},(0,l.getValidValue)(b.inthousandseparator)&&(F.baseConf._REGinthousandseparator=new RegExp((0,l.regescape)(b.inthousandseparator),"g")),(0,l.getValidValue)(b.indecimalseparator)&&(F.baseConf._REGindecimalseparator=new RegExp((0,l.regescape)(b.indecimalseparator))),F.Y=[],p={cacheStore:[],formatnumber:b.formatnumber,formatnumberscale:b.formatnumberscale,forcenumberscale:b.forcenumberscale,defaultnumberscale:b.defaultnumberscale,numberscaleunit:b.numberscaleunit.concat(),numberscalevalue:b.numberscalevalue.concat(),numberprefix:b.numberprefix,numbersuffix:b.numbersuffix,decimalprecision:b.decimalprecision,forcedecimals:b.forcedecimals,decimalseparator:b.decimalseparator,thousandseparator:b.thousandseparator,thousandseparatorposition:b.thousandseparatorposition,indecimalseparator:b.indecimalseparator,inthousandseparator:b.inthousandseparator,scalerecursively:_,maxscalerecursion:k,scaleseparator:E,hasrtltext:b.hasrtltext},O.useScaleRecursively&&(p.numberscalevalue&&p.numberscalevalue.length)===(p.numberscaleunit&&p.numberscaleunit.length)||(p.scalerecursively=_=0),m={cacheStore:[],formatnumber:p.formatnumber,formatnumberscale:p.formatnumberscale,forcenumberscale:p.forcenumberscale,defaultnumberscale:p.defaultnumberscale,numberscaleunit:p.numberscaleunit.concat(),numberscalevalue:p.numberscalevalue.concat(),numberprefix:p.numberprefix,numbersuffix:p.numbersuffix,decimalprecision:parseInt((0,l.pluck)(D.yaxisvaluedecimals,p.decimalprecision,2),10),forcedecimals:(0,l.pluck)(D.forceyaxisvaluedecimals,p.forcedecimals),decimalseparator:p.decimalseparator,thousandseparator:p.thousandseparator,thousandseparatorposition:p.thousandseparatorposition.concat(),indecimalseparator:p.indecimalseparator,inthousandseparator:p.inthousandseparator,scalerecursively:_,maxscalerecursion:k,scaleseparator:E,hasrtltext:p.hasrtltext},v={cacheStore:[],formatnumber:(0,l.pluck)(D.sformatnumber,f.sformatnumber),formatnumberscale:(0,l.pluck)(D.sformatnumberscale,f.sformatnumberscale),forcenumberscale:(0,l.pluck)(D.sforcenumberscale,f.sforcenumberscale),defaultnumberscale:(0,l.getFirstValue)(D.sdefaultnumberscale,p.defaultnumberscale),numberscaleunit:(0,l.pluck)(r,f.snumberscaleunit).concat(),numberscalevalue:(0,l.pluck)(d,f.snumberscalevalue).concat(),numberprefix:(0,l.parseUnsafeString)((0,l.getFirstValue)(D.snumberprefix,f.snumberprefix)),numbersuffix:(0,l.parseUnsafeString)((0,l.getFirstValue)(D.snumbersuffix,f.snumbersuffix)),decimalprecision:parseInt((0,l.pluck)(D.syaxisvaluedecimals,D.sdecimals,D.decimals,f.sdecimals),10),forcedecimals:(0,l.pluck)(D.forcesyaxisvaluedecimals,D.sforcedecimals,D.forcedecimals,f.sforcedecimals),decimalseparator:(0,l.pluck)(D.decimalseparator,f.decimalseparator),thousandseparator:(0,l.pluck)(D.thousandseparator,f.thousandseparator),thousandseparatorposition:p.thousandseparatorposition.concat(),indecimalseparator:(0,l.parseUnsafeString)((0,l.pluck)(D.indecimalseparator,f.indecimalseparator)),inthousandseparator:(0,l.parseUnsafeString)((0,l.pluck)(D.inthousandseparator,f.inthousandseparator)),scalerecursively:S,maxscalerecursion:A,scaleseparator:L,hasrtltext:p.hasrtltext},(g=(0,l.extend2)({},v)).decimalprecision=parseInt((0,l.pluck)(D.sdecimals,D.decimals,D.syaxisvaluedecimals,f.sdecimals),10),g.forcedecimals=(0,l.pluck)(D.sforcedecimals,D.forcedecimals,D.forcesyaxisvaluedecimals,f.sforcedecimals),g.cacheStore=[],O.useScaleRecursively&&(v.numberscalevalue&&v.numberscalevalue.length)===(v.numberscaleunit&&v.numberscaleunit.length)||(v.scalerecursively=S=0),/^(bubble|scatter|selectscatter|zoomscatter)$/gi.test(I)&&(m.formatnumber=(0,l.pluck)(D.yformatnumber,m.formatnumber),m.formatnumberscale=(0,l.pluck)(D.yformatnumberscale,m.formatnumberscale),m.forcenumberscale=(0,l.pluck)(D.yforcenumberscale,m.forcenumberscale),m.defaultnumberscale=(0,l.getFirstValue)(D.ydefaultnumberscale,m.defaultnumberscale),m.numberscaleunit=(0,l.pluck)(i,m.numberscaleunit),m.numberscalevalue=(0,l.pluck)(u,m.numberscalevalue),m.numberprefix=(0,l.parseUnsafeString)((0,l.pluck)(D.ynumberprefix,m.numberprefix)),m.numbersuffix=(0,l.parseUnsafeString)((0,l.pluck)(D.ynumbersuffix,m.numbersuffix)),p.formatnumber=(0,l.pluck)(D.yformatnumber,p.formatnumber),p.formatnumberscale=(0,l.pluck)(D.yformatnumberscale,p.formatnumberscale),p.forcenumberscale=(0,l.pluck)(D.yforcenumberscale,p.forcenumberscale),p.defaultnumberscale=(0,l.getFirstValue)(D.ydefaultnumberscale,p.defaultnumberscale),p.numberscaleunit=(0,l.pluck)(D.ynumberscaleunit,p.numberscaleunit.concat()),p.numberscalevalue=(0,l.pluck)(D.ynumberscalevalue,p.numberscalevalue.concat()),p.numberprefix=(0,l.parseUnsafeString)((0,l.pluck)(D.ynumberprefix,p.numberprefix)),p.numbersuffix=(0,l.parseUnsafeString)((0,l.pluck)(D.ynumbersuffix,p.numbersuffix))),/^(pie2d|pie3d|doughnut2d|doughnut3d|marimekko|pareto2d|pareto3d)$/.test(I)&&(p.decimalprecision=(0,l.pluck)(D.decimals,"2")),_&&(p.numberscalevalue.push(1),p.numberscaleunit.unshift(p.defaultnumberscale),m.numberscalevalue.push(1),m.numberscaleunit.unshift(m.defaultnumberscale)),S&&(v.numberscalevalue.push(1),v.numberscaleunit.unshift(v.defaultnumberscale),g.numberscalevalue.push(1),g.numberscaleunit.unshift(g.defaultnumberscale)),F.Y[0]={yAxisLabelConf:m,dataLabelConf:p},F.Y[1]={yAxisLabelConf:v,dataLabelConf:g},F.paramLabels=p,F.param1=m,F.param2=v,F.paramLabels2=g,F.paramX={cacheStore:[],formatnumber:(0,l.pluck)(D.xformatnumber,b.formatnumber),formatnumberscale:(0,l.pluck)(D.xformatnumberscale,b.formatnumberscale),forcenumberscale:(0,l.pluck)(D.xforcenumberscale,b.forcenumberscale),defaultnumberscale:(0,l.getFirstValue)(D.xdefaultnumberscale,b.defaultnumberscale),numberscaleunit:(0,l.pluck)(n,b.numberscaleunit.concat()),numberscalevalue:(0,l.pluck)(s,b.numberscalevalue.concat()),numberprefix:(0,l.parseUnsafeString)((0,l.pluck)(D.xnumberprefix,b.numberprefix)),numbersuffix:(0,l.parseUnsafeString)((0,l.pluck)(D.xnumbersuffix,b.numbersuffix)),decimalprecision:parseInt((0,l.pluck)(D.xaxisvaluedecimals,D.xaxisvaluesdecimals,b.decimalprecision,2),10),forcedecimals:(0,l.pluck)(D.forcexaxisvaluedecimals,0),decimalseparator:b.decimalseparator,thousandseparator:b.thousandseparator,thousandseparatorposition:b.thousandseparatorposition.concat(),indecimalseparator:b.indecimalseparator,inthousandseparator:b.inthousandseparator,scalerecursively:C,maxscalerecursion:N,scaleseparator:M},F.paramLegend=(0,l.extend2)((0,l.extend2)({},b),{cacheStore:[],decimalprecision:parseInt((0,l.pluckNumber)(D.legendvaluedecimals,b.decimalprecision,2),10),forcedecimals:(0,l.pluckNumber)(D.legendvalueforcedecimals,b.forcedecimals,0),formatnumberscale:(0,l.pluck)(D.legendvalueformatnumberscale,b.formatnumberscale),forcenumberscale:(0,l.pluck)(D.legendvalueforcenumberscale,b.forcenumberscale),formatnumber:(0,l.pluck)(D.legendvalueformatnumber,b.formatnumber)}),_&&(F.paramLegend.numberscalevalue.push(1),F.paramLegend.numberscaleunit.unshift(F.paramLegend.defaultnumberscale)),O.useScaleRecursively&&(F.paramX.numberscalevalue&&F.paramX.numberscalevalue.length)===(F.paramX.numberscaleunit&&F.paramX.numberscaleunit.length)||(F.paramX.scalerecursively=C=0),C&&(F.paramX.numberscalevalue.push(1),F.paramX.numberscaleunit.unshift(F.paramX.defaultnumberscale)),F.paramScale={cacheStore:[],formatnumber:(0,l.pluck)(D.tickformatnumber,b.formatnumber),formatnumberscale:(0,l.pluck)(D.tickformatnumberscale,b.formatnumberscale),forcenumberscale:(0,l.pluck)(D.tickforcenumberscale,b.forcenumberscale),defaultnumberscale:(0,l.getFirstValue)(D.tickdefaultnumberscale,b.defaultnumberscale),numberscaleunit:(0,l.pluck)(a,b.numberscaleunit.concat()),numberscalevalue:(0,l.pluck)(c,b.numberscalevalue.concat()),numberprefix:(0,l.parseUnsafeString)((0,l.pluck)(D.ticknumberprefix,b.numberprefix)),numbersuffix:(0,l.parseUnsafeString)((0,l.pluck)(D.ticknumbersuffix,b.numbersuffix)),decimalprecision:parseInt((0,l.pluck)(D.tickvaluedecimals,b.decimalprecision,"2"),10),forcedecimals:(0,l.pluck)(D.forcetickvaluedecimals,b.forcedecimals,0),decimalseparator:b.decimalseparator,thousandseparator:b.thousandseparator,thousandseparatorposition:b.thousandseparatorposition.concat(),indecimalseparator:b.indecimalseparator,inthousandseparator:b.inthousandseparator,scalerecursively:_,maxscalerecursion:k,scaleseparator:E},_&&(F.paramScale.numberscalevalue.push(1),F.paramScale.numberscaleunit.unshift(F.paramScale.defaultnumberscale)),F.timeConf={inputDateFormat:(0,l.pluck)(D.inputdateformat,D.dateformat,"mm/dd/yyyy"),outputDateFormat:(0,l.pluck)(D.outputdateformat,D.inputdateformat,D.dateformat,"mm/dd/yyyy"),days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],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"]},F.cleaneValueCacheStore={},F.percentStrCacheStore={}},t.dispose=function(){var e=this;e.Y&&delete e.Y,e.cleaneValueCacheStore&&delete e.cleaneValueCacheStore,e.percentStrCacheStore&&delete e.percentStrCacheStore,e.paramLabels&&delete e.paramLabels,e.param1&&delete e.param1,e.param2&&delete e.param2,e.paramLabels2&&delete e.paramLabels2,e.csConf&&delete e.csConf,e.chart&&delete e.chart,e.baseConf&&delete e.baseConf,e.timeConf&&delete e.timeConf,e.paramX&&delete e.paramX,e.paramScale&&delete e.paramScale},t.parseMLAxisConf=function(e,t){var r,n,a,i,o,s,u,h,d=this.baseConf,p=this.csConf,g=(0,l.pluckNumber)(e.scalerecursively,d.scalerecursively),m=(0,l.pluckNumber)(e.maxscalerecursion,d.maxscalerecursion),v=(0,l.getValidValue)(e.scaleseparator,d.scaleseparator),b=(0,l.pluckNumber)(t,this.Y.length);if((0,l.getValidValue)(e.numberscaleunit)&&(n=e.numberscaleunit.split(",")),(0,l.getValidValue)(e.numberscalevalue)&&(a=e.numberscalevalue.split(",")),m||(m=-1),(0,l.getValidValue)(e.thousandseparatorposition))for(s=(o=e.thousandseparatorposition.split(",")).length,h=f.thousandseparatorposition[0];s--;)(u=(0,l.pluckNumber)(c(o[s])))?h=u:u=h,o[s]=u;r={cacheStore:[],formatnumber:(0,l.pluck)(e.formatnumber,d.formatnumber),formatnumberscale:(0,l.pluck)(e.formatnumberscale,d.formatnumberscale),forcenumberscale:(0,l.pluck)(e.forcenumberscale,d.forcenumberscale),defaultnumberscale:(0,l.getFirstValue)(e.defaultnumberscale,d.defaultnumberscale),numberscaleunit:(0,l.pluck)(n,d.numberscaleunit).concat(),numberscalevalue:(0,l.pluck)(a,d.numberscalevalue).concat(),numberprefix:(0,l.parseUnsafeString)((0,l.getFirstValue)(e.numberprefix,d.numberprefix)),numbersuffix:(0,l.parseUnsafeString)((0,l.getFirstValue)(e.numbersuffix,d.numbersuffix)),forcedecimals:(0,l.pluck)(e.forcedecimals,d.forcedecimals),decimalprecision:parseInt("auto"===e.decimals?p.decimalprecision:(0,l.pluck)(e.decimals,d.decimalprecision),10),decimalseparator:(0,l.pluck)(e.decimalseparator,d.decimalseparator),thousandseparator:(0,l.pluck)(e.thousandseparator,d.thousandseparator),thousandseparatorposition:(0,l.pluck)(o,d.thousandseparatorposition),indecimalseparator:(0,l.parseUnsafeString)((0,l.getFirstValue)(e.indecimalseparator,d.indecimalseparator)),inthousandseparator:(0,l.parseUnsafeString)((0,l.getFirstValue)(e.inthousandseparator,d.inthousandseparator)),scalerecursively:g,maxscalerecursion:m,scaleseparator:v},this.useScaleRecursively&&(r.numberscalevalue&&r.numberscalevalue.length)===(r.numberscaleunit&&r.numberscaleunit.length)||(r.scalerecursively=g=0),i={cacheStore:[],formatnumber:r.formatnumber,formatnumberscale:r.formatnumberscale,forcenumberscale:r.forcenumberscale,defaultnumberscale:r.defaultnumberscale,numberscaleunit:r.numberscaleunit.concat(),numberscalevalue:r.numberscalevalue.concat(),numberprefix:r.numberprefix,numbersuffix:r.numbersuffix,decimalprecision:parseInt((0,l.pluck)(e.yaxisvaluedecimals,r.decimalprecision,2),10),forcedecimals:(0,l.pluck)(e.forceyaxisvaluedecimals,r.forcedecimals),decimalseparator:r.decimalseparator,thousandseparator:r.thousandseparator,thousandseparatorposition:r.thousandseparatorposition.concat(),indecimalseparator:r.indecimalseparator,inthousandseparator:r.inthousandseparator,scalerecursively:g,maxscalerecursion:m,scaleseparator:v},g&&(r.numberscalevalue.push(1),r.numberscaleunit.unshift(r.defaultnumberscale),i.numberscalevalue.push(1),i.numberscaleunit.unshift(i.defaultnumberscale)),this.Y[b]={dataLabelConf:r,yAxisLabelConf:i}},t.percentValue=function(e){var t,r=this.percentStrCacheStore[e];return void 0===r&&(t=isNaN(this.paramLabels.decimalprecision)?"2":this.paramLabels.decimalprecision,r=this.percentStrCacheStore[e]=s(o(e,t,this.paramLabels.forcedecimals),this.paramLabels.decimalseparator,this.paramLabels.thousandseparator,this.paramLabels.thousandseparatorposition)+"%"),r},t.yAxisPercentValue=function(e,t){window.th=this;var r,n,a=this.Y[t]||(t?this.Y[1]:this.Y[0]);return void 0===(r=(a=a&&a.yAxisLabelConf||this.baseConf).cacheStore[e])&&(n=isNaN(a.decimalprecision)?"2":a.decimalprecision,r=a.cacheStore[e]=s(o(e,n,a.forcedecimals),a.decimalseparator,a.thousandseparator,a.thousandseparatorposition)+"%"),r},t.getCleanValue=function(e,t){var r,n=this.cleaneValueCacheStore[e];return(void 0===n||t)&&(r=i(e,this.baseConf),this.cleaneValueCacheStore[e]=n=isNaN(r)?null:t?c(r):r),n},t.dataLabels=function(e,t){var r,a=this.Y[t]||(t?this.Y[1]:this.Y[0]);return void 0===(r=(a=a&&a.dataLabelConf||this.baseConf).cacheStore[e])&&(r=a.cacheStore[e]=n(e,a)),r},t.formatValue=function(e){var t,r=this.baseConf;return void 0===(t=r.cacheStore[e])&&(t=r.cacheStore[e]=n(e,r)),t},t.yAxis=function(e,t){var r,a=this.Y[t]||(t?this.Y[1]:this.Y[0]);return void 0===(r=(a=a&&a.yAxisLabelConf||this.baseConf).cacheStore[e])&&(r=a.cacheStore[e]=n(e,a,!0)),r},t.xAxis=function(e){var t=this.paramX.cacheStore[e];return void 0===t&&(t=this.paramX.cacheStore[e]=n(e,this.paramX,!0)),t},t.sYAxis=function(e){var t,r=this.Y[1];return void 0===(t=(r=r&&r.yAxisLabelConf||this.baseConf).cacheStore[e])&&(t=r.cacheStore[e]=n(e,r)),t},t.scale=function(e){var t=this.paramScale.cacheStore[e];return void 0===t&&(t=this.paramScale.cacheStore[e]=n(e,this.paramScale)),t},t.legendValue=function(e){var t=this.paramLegend.cacheStore[e];return void 0===t&&(t=this.paramLegend.cacheStore[e]=n(e,this.paramLegend)),t},t.legendPercentValue=function(e){var t,r=this.percentStrCacheStore[e],n=this.paramLegend;return void 0===r&&(t=isNaN(n.decimalprecision)?"2":n.decimalprecision,r=this.percentStrCacheStore[e]=s(o(e,t,n.forcedecimals),n.decimalseparator,n.thousandseparator,n.thousandseparatorposition)+"%"),r},t.getDateValue=function(e){var t,r,n,a,i,o=e;return o&&!/\//.test(this.timeConf.inputDateFormat)&&(o=o.replace(new RegExp(this.timeConf.inputDateFormat.replace(/[a-z]/gi,"").slice(0,1),"g"),"/")),o=/^dd/.test(this.timeConf.inputDateFormat)&&o&&o.replace(/(\d{1,2})\/(\d{1,2})\/(\d{2,4})/,"$2/$1/$3")||o,/\s24:/.test(o)?(o=o.replace(/\s24:/," 00:"),(t=new Date(o)).setDate(t.getDate()+1)):t=new Date(o),!(i=t.getTime())&&o&&/\:/.test(o)&&(o=o.split(":"),r=(0,l.pluckNumber)(o[0],0),n=(0,l.pluckNumber)(o[1],0),a=(0,l.pluckNumber)(o[2],0),r=r>23?24===r&&0===n&&0===a?r:23:r,n=n>59?59:n,a=a>59?59:a,(t=new Date).setHours(r),t.setMinutes(n),t.setSeconds(a),i=t.getTime()),{ms:i,date:t}},t.getFormattedDate=function(e,t){var r="object"==typeof e&&e||new Date(e),n=this.timeConf,a=(0,l.pluck)(t,n.outputDateFormat),i=r.getFullYear(),o=r.getMonth(),s=r.getDate(),c=r.getDay(),u=r.getMinutes(),h=r.getSeconds(),f=r.getHours();return u=u>9?""+u:"0"+u,h=h>9?""+h:"0"+h,f=f>9?""+f:"0"+f,a.match(/dnl/)&&(a=a.replace(/dnl/gi,n.days[c])),a.match(/dns/)&&(a=a.replace(/dns/gi,n.days[c]&&n.days[c].substr(0,3))),a.match(/dd/)&&(a=a.replace(/dd/gi,s)),a.match(/mnl/)&&(a=a.replace(/mnl/gi,n.months[o])),a.match(/mns/)&&(a=a.replace(/mns/gi,n.months[o]&&n.months[o].substr(0,3))),a.match(/mm/)&&(a=a.replace(/mm/gi,o+1)),a.match(/yyyy/)&&(a=a.replace(/yyyy/gi,i)),a.match(/yy/)&&(a=a.replace(/yy/gi,(i%1e3%100+"").replace(/^(\d)$/,"0$1"))),a.match(/hh12/)&&(a=a.replace(/hh12/gi,f%12||12)),a.match(/hh/)&&(a=a.replace(/hh/gi,f)),a.match(/mn/)&&(a=a.replace(/mn/gi,u)),a.match(/ss/)&&(a=a.replace(/ss/gi,h)),a.match(/ampm/)&&(a=a.replace(/ampm/gi,f<12?"AM":"PM")),a.match(/ds/)&&(a=a.replace(/ds/gi,n.daySuffix[s])),a},e}();n=function(e,t,r){var n,i,c,u,h,f,d,p,g,m,v,b=e;if(null!==b){if(n=(b=Number(b))+"",i=1===Number(t.formatnumberscale)?t.defaultnumberscale:"",m=(g=n.split(".")[1])?g.length:t.forcedecimals?"2":"",1===Number(t.formatnumberscale)&&(n=(v=a(b,t.defaultnumberscale,t.numberscalevalue,t.numberscaleunit,t.scalerecursively,t.forcenumberscale)).value,b=v.value,i=v.scale),t.scalerecursively&&0!==t.formatnumberscale&&"0"!==t.formatnumberscale){if(c=v.value,u=v.scale,h=-1===Number(t.maxscalerecursion)?c.length:Math.min(c.length,t.maxscalerecursion),1===Number(t.formatnumber))for(n=l.BLANKSTRING,p=0;p<h;p++)d=(f=0===p?c[p]:Math.abs(c[p]))+"",p===h-1&&(d=o(f,(0,l.pluck)(t.decimalprecision,m),t.forcedecimals)),n=n+s(d,t.decimalseparator,t.thousandseparator,t.thousandseparatorposition)+u[p]+(p<h-1?t.scaleseparator:l.BLANKSTRING);else for(n=l.BLANKSTRING,p=0;p<h;p++)n=n+(0===p?c[p]:Math.abs(c[p])+"")+u[p]+(p<h-1?t.scaleseparator:"");n=(t.numberprefix||"")+n+(t.numbersuffix||"")}else 1===Number(t.formatnumber)&&(n=o(b,(0,l.pluck)(t.decimalprecision,m),t.forcedecimals),n=s(n,t.decimalseparator,t.thousandseparator,t.thousandseparatorposition,r)),n=t.hasrtltext&&1===t.hasrtltext?(t.numbersuffix||"")+"‎"+n+i+(t.numberprefix||""):(t.numberprefix||"")+n+i+(t.numbersuffix||"");return n}},a=function(e,t,r,n,a,i){var o,s,c,u,h={},f=t,d=0,p=[],g=[],m=e,v=(0,l.pluckNumber)(i)||0;if(a){for(o=(0,l.pluckNumber)(r[0])||1e3,d=0;d<r.length;d++){if(c=(0,l.pluckNumber)(r[d])||1e3,!(Math.abs(Number(m))>=c&&d<r.length-1)){0===d&&""===t&&v?(m=Number(m)/o,p.push(m),g.push(n[1]||"")):(1===d&&""===t&&v?(s=m+(p.length?p.pop():0),g.pop(),p.push(s)):p.push(m),g.push(n[d]));break}m=(m-(u=m%c))/c,0===d&&0!==u&&""===n[d]&&v?(p.push(u/o),g.push(n[1]||"")):0!==u&&(1===d&&""===t&&v?(s=u+(p.length?p.pop():0),g.pop(),p.push(s)):p.push(u),g.push(n[d]))}p.reverse(),g.reverse(),h.value=p,h.scale=g}else{if(r.length===n.length)for(d=0;d<r.length;d++){if(!((c=(0,l.pluckNumber)(r[d])||1e3)&&Math.abs(Number(m))>=c)){0===d&&""===t&&v&&(f=n[0]||"",m=Number(m)/c);break}f=n[d]||"",m=Number(m)/c}h.value=m,h.scale=f}return h},o=function(e,t,r){var n,a,i,o,s=e,l=t;if(l<=0)return s.toFixed(0);if(isNaN(l))return(s+="").length>12&&-1!==s.indexOf(".")&&(l=12-s.split(".")[0].length,n=u(10,l),s=a=h(s*n)/n+""),s;if(n=u(10,l),a=s<0?-h(-s*n)/n+"":h(s*n)/n+"",1===Number(r))for(-1===a.indexOf(".")&&(a+=".0"),i=l-a.split(".")[1].length,o=1;o<=i;o++)a+="0";return a},s=function(e,t,r,n,a){var i,o,s,l,c=Number(e),u="",h=!1,f="",d="",p=0,g=0;if(isNaN(c))return"";if(c>1e15)return i=a?1:14,c.toExponential(i);if(p=0,g=e.length,-1!==e.indexOf(".")&&(u=e.substring(e.indexOf(".")+1,e.length),g=e.indexOf(".")),c<0&&(h=!0,p=1),(o=(f=e.substring(p,g)).length)<(l=n[s=n.length-1]))d=f;else for(;o>=l;)d=(o-l?r:"")+f.substr(o-l,l)+d,(o-=l)<(l=(s-=1)<=0?n[0]:n[s])&&(d=f.substring(o,0)+d);return""!==u&&(d=d+t+u),!0===h&&(d="-"+d),d},i=function(e,t){var r=e;return r+="",t._REGinthousandseparator&&(r=r.replace(t._REGinthousandseparator,"")),t._REGindecimalseparator&&(r=r.replace(t._REGindecimalseparator,".")),r=parseFloat(r),isFinite(r)?r:NaN};var g=p;t["default"]=g},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(286));a["default"].stopPartialEventPropagation=!0,a["default"]._stopabsolutePath=!0;var i={extension:a["default"],name:"redraphael",type:"plugin"};t["default"]=i},function(e,t,r){"use strict";(function(e){var n=r(249);t.__esModule=!0,t["default"]=void 0;var a,i=n(r(287)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n["default"]=e,r&&r.set(e,n);return n}(r(257));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}var l="undefined"!=typeof window?window:void 0!==e?e:null;function c(e){var t,r,n;return c._url===undefined&&(c._url=p),c.is(e,k)?u?e():i["default"].on("raphael.DOMload",e):c.is(e,w)?c._engine.create[v](c,e.splice(0,3+c.is(e[0],y))).add(e):(r=(0,o.getArrayCopy)(arguments),t=Array.prototype.slice.call(r,0),c.is(t[t.length-1],k)?(n=t.pop(),u?n.call(c._engine.create[v](c,t)):i["default"].on("raphael.DOMload",(function(){n.call(c._engine.create[v](c,t))}))):c._engine.create[v](c,arguments))}c.upgrade="1.0.0",c.version="2.1.0",c.eve=i["default"];var u,h,f,d,p="",g=" ",m="hasOwnProperty",v="apply",b="concat",y="number",x="string",w="array",_="object",S="split",C="none",k="function",A=/R/i,N=/trident/i.test(l.navigator.userAgent),E={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},L=Array.prototype.splice,M=function(){}.hasOwnProperty("prototype"),F={doc:l.document,win:l},T=F.doc,D=F.win,I=c.safePointerEventMapping={mouseover:"pointerover",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup",mouseout:"pointerout"},O=D.navigator,P=c.supportsTouch="ontouchstart"in T||O.maxTouchPoints||O.msMaxTouchPoints,R=c.supportsPointer="onpointerover"in T,j=c.isEdge=/Edge/.test(O.userAgent),B=c.isIE11=/trident/i.test(O.userAgent)&&/rv:11/i.test(O.userAgent)&&!D.opera,V=(c.isIE10=-1!==O.appVersion.indexOf("MSIE 10"),c.isFirefox=/Firefox/.test(O.userAgent)),z=c.isWindows=/Windows/.test(O.userAgent),U="L",H=[],q=/[a-z]/i,G=function(e,t,r){var n=t.toLowerCase(),a=[],i=0;if(H.length=0,r.replace(Se,(function(e,t){t&&H.push(+t)})),"r"===n)h.push([t][b](H));else if("z"===n)h.push([t]);else if(H.length>=E[n]){for(;i<H.length;)i%E[n]?a.push(H[i]):(a.length&&h.push(a)&&(a=[]),a.push(t,H[i])),i++;h.push(a)}},W=function(){},$=(c.ca=c.customAttributes=W.prototype,function(){this.ca=this.customAttributes=new W,this._CustomAttributes=function(){},this._CustomAttributes.prototype=this.ca,this._elementsById={},this.id=c._oid++,(0,i["default"])("raphael.new",this)}),X=c.fn=$.prototype=c.prototype,Y="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel dragstart dragmove dragend"[S](g),K={dragstart:"touchstart",dragmove:"touchmove",dragend:"touchend"},J=String,Z=D.parseFloat,Q=D.parseInt,ee=Math,te=ee.max,re=ee.min,ne=ee.abs,ae=ee.pow,ie=ee.cos,oe=ee.sin,se=ee.sqrt,le=ee.round,ce=ee.PI,ue=ce/180,he=180/ce,fe=J.prototype.toLowerCase,de=J.prototype.toUpperCase,pe=Object.prototype.toString,ge=/[, ]+/,me=/\{(\d+)\}/g,ve=/^\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,be=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,ye=/[\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]*/,xe=/,?([achlmqrstvxz]),?/gi,we=/([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]*)+)/gi,_e=/([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]*)+)/gi,Se=/(-?\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]*/gi,Ce={NaN:1,Infinity:1,"-Infinity":1},ke={hs:1,rg:1},Ae=c._availableAttrs=((a={"arrow-end":C,"arrow-start":C,blur:0,"clip-rect":"0 0 1e9 1e9","clip-path":p,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:p,stroke:"#000","stroke-dasharray":p,"stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",visibility:p,title:p,transform:p,rotation:0,width:0,x:0,y:0,"shape-rendering":"auto",alpha:y,"font-stretch":"normal","alignment-baseline":"auto","baseline-shift":"auto","clip-rule":"nonzero","dominant-baseline":"auto","fill-rule":"nonzero",filter:C,"flood-color":"#000","flood-opacity":1,"font-size-adjust":C})["font-stretch"]="normal",a["font-variant"]="normal",a.kerning="auto",a["lighting-color"]="white",a["marker-end"]=C,a["marker-mid"]=C,a["marker-start"]=C,a.mask=C,a["pointer-events"]="visiblePainted",a["stop-color"]="#000",a["stop-opacity"]=1,a["stroke-dashoffset"]=0,a["text-decoration"]=C,a["vector-effect"]=p,a.visibility="visible",a["word-spacing"]="normal",a["writing-mode"]="lr-tb",a),Ne=c._availableAnimAttrs={blur:y,"clip-rect":"csv","clip-path":"path",cx:y,cy:y,fill:"colour","fill-opacity":y,"font-size":y,height:y,opacity:y,path:"path",r:y,rx:y,ry:y,stroke:"colour","stroke-opacity":y,"stroke-width":y,transform:"transform",width:y,x:y,y:y,color:"colour",borderColor:"colour",borderWidth:y,alpha:y,"text-bound":"text-bound"},Ee={},Le=function(e,t){return Z(e)-Z(t)},Me=function(e){return e},Fe=c._rectPath=function(e,t,r,n,a){return a?[["M",e+a,t],["l",r-2*a,0],["a",a,a,0,0,1,a,a],["l",0,n-2*a],["a",a,a,0,0,1,-a,a],["l",2*a-r,0],["a",a,a,0,0,1,-a,-a],["l",0,2*a-n],["a",a,a,0,0,1,a,-a],["z"]]:[["M",e,t],["l",r,0],["l",0,n],["l",-r,0],["z"]]},Te=function(e,t,r,n){return null==n&&(n=r),[["M",e,t],["m",0,-n],["a",r,n,0,1,1,0,2*n],["a",r,n,0,1,1,0,-2*n],["z"]]},De=c._getPath={group:function(){return!1},path:function(e){return e.attr("path")},circle:function(e){var t=e.attrs;return Te(t.cx,t.cy,t.r)},ellipse:function(e){var t=e.attrs;return Te(t.cx,t.cy,t.rx,t.ry)},rect:function(e){var t=e.attrs;return Fe(t.x,t.y,t.width,t.height,t.r)},image:function(e){var t=e.attrs;return Fe(t.x,t.y,t.width,t.height)},text:function(e){var t=e._getBBox();return Fe(t.x,t.y,t.width,t.height)}},Ie=c.mapPath=function(e,t){if(!t)return e;var r,n,a,i,o,s,l;for(a=0,o=(e=ot(e).slice(0)).length;a<o;a++)for(i=1,s=(l=e[a]=e[a].slice(0)).length;i<s;i+=2)r=t.x(l[i],l[i+1]),n=t.y(l[i],l[i+1]),l[i]=r,l[i+1]=n;return e},Oe=c._lastArgIfGroup=function(e,t){var r=e.length-1,n=e[r];if(n&&n.constructor===c.el.constructor&&"group"===n.type)return t&&(e[r]=undefined,delete e[r],L.call(e,r,1)),n},Pe=c._serializeArgs=function(e){var t,r,n,a,i=e[0];if(c.is(i,_)&&!c.is(i,w)&&"group"!==i.type)for(r=i,i.path&&(t=i.path)&&!c.is(t,x)&&!c.is(t[0],w)&&(t+=p),n=1,a=arguments.length;n<a;n+=2)r[arguments[n]]||(r[arguments[n]]=arguments[n+1]);else for(r={},n=1,a=arguments.length;n<a;n+=2)r[arguments[n]]=e[(n-1)/2]||arguments[n+1];return r},Re=c.is=function(e,t){return"finite"===t?!Ce[m](+e):t===w?e instanceof Array:(t!==_||null!=e)&&("null"===t&&null===e||t===typeof e&&null!==e||t===_&&e===Object(e)||t===w&&Array.isArray&&Array.isArray(e)||pe.call(e).slice(8,-1).toLowerCase()===t)},je=c.clone=M?function(e){if(Object(e)!==e)return e;if(e instanceof Function)return e;var t=new e.constructor;for(var r in e)"prototype"!==r&&e[m](r)&&(t[r]=je(e[r]));return t}:function(e){if(Object(e)!==e)return e;if(e instanceof Function)return e;var t=new e.constructor;for(var r in e)e[m](r)&&(t[r]=je(e[r]));return t},Be=l.Node;function Ve(e){this._comparator=e,this._elements=[]}Be&&!Be.prototype.contains&&(Be.prototype.contains=function(e){for(;e=e.parentNode;)if(e===this)return!0;return!1}),c._g=F,c.merge=o.merge,c.extend=o["default"],c.createUUID=(f=/[xy]/g,d=function(e){var t=16*ee.random()|0;return("x"===e?t:3&t|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(f,d).toUpperCase()}),c._radial_gradient=/^x?r(?:\(([^\)]*?)\))?/,c._ISURL=/^url\(['"]?([^\)]+?)['"]?\)$/i,c.getElementID=function(e){return"rr-"+e},Ve.prototype.isEmpty=function(){return 0===this.size()},Ve.prototype.peek=function(){return this.isEmpty()?null:this._elements[0]},Ve.prototype.deq=function(){var e=this.peek(),t=this._elements.pop(),r=this.size();if(0===r)return e;this._elements[0]=t;for(var n=0;n<r;){var a=n,i=2*n+1,o=2*n+2;if(i<r&&this._compare(i,a)>=0&&(a=i),o<r&&this._compare(o,a)>=0&&(a=o),a===n)break;this._swap(a,n),n=a}return e},Ve.prototype.enq=function(e){for(var t=this._elements.push(e),r=t-1;r>0;){var n=Math.floor((r-1)/2);if(this._compare(r,n)<=0)break;this._swap(n,r),r=n}return t},Ve.prototype.size=function(){return this._elements.length},Ve.prototype._compare=function(e,t){return this._comparator(this._elements[e],this._elements[t])},Ve.prototype._swap=function(e,t){var r=this._elements[e];this._elements[e]=this._elements[t],this._elements[t]=r},c.type=D.ENABLE_RED_CANVAS&&(D.CanvasRenderingContext2D||T.createElement("canvas").getContext)?"CANVAS":D.SVGAngle||T.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",c.svg=!((c.vml="VML"===c.type)||(c.canvas="CANVAS"===c.type)),c._Paper=$,c._id=0,c._oid=0,c.rad=function(e){return e%360*ue},c.deg=function(e){return e*he%360};var ze=function(e){if(c.vml){var t,r=/^\s+|\s+$/g;try{var n=new ActiveXObject("htmlfile");n.write("<body>"),n.close(),t=n.body}catch(s){t=createPopup().document.body}var a=t.createTextRange();ze=(0,o.cacher)((function(e){try{t.style.color=J(e).replace(r,p);var n=a.queryCommandValue("ForeColor");return"#"+("000000"+(n=(255&n)<<16|65280&n|(16711680&n)>>>16).toString(16)).slice(-6)}catch(s){return C}}))}else{var i=F.doc.createElement("i");i.title="Raphaël Colour Picker",i.style.display=C,F.doc.body.appendChild(i),ze=(0,o.cacher)((function(e){return i.style.color=e,F.doc.defaultView.getComputedStyle(i,p).getPropertyValue("color")}))}return ze(e)},Ue=function(){return"hsb("+[this.h,this.s,this.b]+")"},He=function(){return"hsl("+[this.h,this.s,this.l]+")"},qe=function(){return this.hex},Ge=function(e,t,r){if(null==t&&Re(e,_)&&"r"in e&&"g"in e&&"b"in e&&(r=e.b,t=e.g,e=e.r),null==t&&Re(e,x)){var n=c.getRGB(e);e=n.r,t=n.g,r=n.b}return(e>1||t>1||r>1)&&(e/=255,t/=255,r/=255),[e,t,r]},We=function(e,t,r,n){var a={r:e*=255,g:t*=255,b:r*=255,hex:c.rgb(e,t,r),toString:qe};return Re(n,"finite")&&(a.opacity=n),a};function $e(){return this.hex}function Xe(e,t){for(var r=[],n=0,a=e.length;a-2*!t>n;n+=2){var i=[{x:+e[n-2],y:+e[n-1]},{x:+e[n],y:+e[n+1]},{x:+e[n+2],y:+e[n+3]},{x:+e[n+4],y:+e[n+5]}];t?n?a-4===n?i[3]={x:+e[0],y:+e[1]}:a-2===n&&(i[2]={x:+e[0],y:+e[1]},i[3]={x:+e[2],y:+e[3]}):i[0]={x:+e[a-2],y:+e[a-1]}:a-4===n?i[3]=i[2]:n||(i[0]={x:+e[n],y:+e[n+1]}),r.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y])}return r}c.color=function(e){var t;return c.is(e,_)&&"h"in e&&"s"in e&&"b"in e?(t=c.hsb2rgb(e),e.r=t.r,e.g=t.g,e.b=t.b,e.hex=t.hex):c.is(e,_)&&"h"in e&&"s"in e&&"l"in e?(t=c.hsl2rgb(e),e.r=t.r,e.g=t.g,e.b=t.b,e.hex=t.hex):(c.is(e,x)&&(e=c.getRGB(e)),c.is(e,_)&&"r"in e&&"g"in e&&"b"in e?(t=c.rgb2hsl(e),e.h=t.h,e.s=t.s,e.l=t.l,t=c.rgb2hsb(e),e.v=t.b):(e={hex:C}).r=e.g=e.b=e.h=e.s=e.v=e.l=-1),e.toString=qe,e},c.hsb2rgb=function(e,t,r,n){var a,i,o,s,l;return this.is(e,_)&&"h"in e&&"s"in e&&"b"in e&&(r=e.b,t=e.s,n=(e=e.h).o),s=(l=r*t)*(1-ne((e=(e*=360)%360/60)%2-1)),a=i=o=r-l,We(a+=[l,s,0,0,s,l][e=~~e],i+=[s,l,l,s,0,0][e],o+=[0,0,s,l,l,s][e],n)},c.hsl2rgb=function(e,t,r,n){var a,i,o,s,l;return this.is(e,_)&&"h"in e&&"s"in e&&"l"in e&&(r=e.l,t=e.s,e=e.h),(e>1||t>1||r>1)&&(e/=360,t/=100,r/=100),s=(l=2*t*(r<.5?r:1-r))*(1-ne((e=(e*=360)%360/60)%2-1)),a=i=o=r-l/2,We(a+=[l,s,0,0,s,l][e=~~e],i+=[s,l,l,s,0,0][e],o+=[0,0,s,l,l,s][e],n)},c.rgb2hsb=function(e,t,r){var n,a;return e=(r=Ge(e,t,r))[0],t=r[1],r=r[2],{h:((0===(a=(n=te(e,t,r))-re(e,t,r))?null:n===e?(t-r)/a:n===t?(r-e)/a+2:(e-t)/a+4)+360)%6*60/360,s:0===a?0:a/n,b:n,toString:Ue}},c.rgb2hsl=function(e,t,r){var n,a,i,o;return e=(r=Ge(e,t,r))[0],t=r[1],r=r[2],n=((a=te(e,t,r))+(i=re(e,t,r)))/2,{h:((0===(o=a-i)?null:a===e?(t-r)/o:a===t?(r-e)/o+2:(e-t)/o+4)+360)%6*60/360,s:0===o?0:n<.5?o/(2*n):o/(2-2*n),l:n,toString:He}},c._path2string=function(){return this.join(",").replace(xe,"$1")},c._cacher=o.cacher,c.getRGB=(0,o.cacher)((function(e){var t,r,n,a,i,o,s;return e&&Re(e,_)&&"opacity"in e&&(t=e.opacity),!e||(e=J(e)).indexOf("-")+1?{r:-1,g:-1,b:-1,hex:C,error:1,toString:$e}:e===C?{r:-1,g:-1,b:-1,hex:C,toString:$e}:(!ke[m](e.toLowerCase().substring(0,2))&&"#"!==e.charAt()&&(e=ze(e)),(s=e.match(ve))?(s[2]&&(a=Q(s[2].substring(5),16),n=Q(s[2].substring(3,5),16),r=Q(s[2].substring(1,3),16)),s[3]&&(a=Q((i=s[3].charAt(3))+i,16),n=Q((i=s[3].charAt(2))+i,16),r=Q((i=s[3].charAt(1))+i,16)),s[4]&&(o=s[4][S](ye),r=Z(o[0]),"%"===o[0].slice(-1)&&(r*=2.55),n=Z(o[1]),"%"===o[1].slice(-1)&&(n*=2.55),a=Z(o[2]),"%"===o[2].slice(-1)&&(a*=2.55),"rgba"===s[1].toLowerCase().slice(0,4)&&(t=Z(o[3])),o[3]&&"%"===o[3].slice(-1)&&(t/=100)),s[5]?(o=s[5][S](ye),r=Z(o[0]),"%"===o[0].slice(-1)&&(r*=2.55),n=Z(o[1]),"%"===o[1].slice(-1)&&(n*=2.55),a=Z(o[2]),"%"===o[2].slice(-1)&&(a*=2.55),("deg"===o[0].slice(-3)||"°"===o[0].slice(-1))&&(r/=360),"hsba"===s[1].toLowerCase().slice(0,4)&&(t=Z(o[3])),o[3]&&"%"===o[3].slice(-1)&&(t/=100),c.hsb2rgb(r,n,a,t)):s[6]?(o=s[6][S](ye),r=Z(o[0]),"%"===o[0].slice(-1)&&(r*=2.55),n=Z(o[1]),"%"===o[1].slice(-1)&&(n*=2.55),a=Z(o[2]),"%"===o[2].slice(-1)&&(a*=2.55),("deg"===o[0].slice(-3)||"°"===o[0].slice(-1))&&(r/=360),"hsla"===s[1].toLowerCase().slice(0,4)&&(t=Z(o[3])),o[3]&&"%"===o[3].slice(-1)&&(t/=100),c.hsl2rgb(r,n,a,t)):((s={r:r,g:n,b:a,toString:$e}).hex="#"+(16777216|a|n<<8|r<<16).toString(16).slice(1),c.is(t,"finite")&&(s.opacity=t),s)):{r:-1,g:-1,b:-1,hex:C,error:1,toString:$e})}),c),c.tintshade=(0,o.cacher)((function(e,t){var r,n=c.getRGB(e),a=255;return t<0&&(t*=-1,a=0),t>1&&(t=1),(r=0===t?n:{r:a-(a-n.r)*t,g:a-(a-n.g)*t,b:a-(a-n.b)*t,toString:$e}).hex=c.rgb(r.r,r.g,r.b),n.error&&(r.error=n.error),"opacity"in n?(r.rgba="rgba("+[r.r,r.g,r.b,n.opacity].join(",")+")",r.opacity=n.opacity):r.rgba="rgb("+[r.r,r.g,r.b].join(",")+")",r}),c),c.rgb=(0,o.cacher)((function(e,t,r){return"#"+(16777216|r|t<<8|e<<16).toString(16).slice(1)})),c.sanitizePath=function(e){var t;return t=e.join?e.join(","):e,t=A.test(t)?c._pathToAbsolute(t):t.replace(xe,"$1")},c.parsePathString=function(e){if(!e||!e.length)return null;var t=Ye(e);if(t.arr)return Qe(t.arr);if(h=void 0,c.is(e,w))if(e=J(e).replace(/,?([A-Z]),?/g,",$1,").replace(/(^,?)|(,?$)/g,"").replace(/,,?/g,",").split(","),c.is(e[0],w))h=Qe(e);else{var r,n,a,i=[],o=e.length;for(h=[],r=0;r<o;r+=1)q.test(e[r])?(i.length&&h.push(i),i=[n=e[r]],a=E[n.toLowerCase()]):a?(i.push(+e[r]),a--):e[r].length&&(h.push(i),i=[n].concat(+e[r]),a=E[n.toLowerCase()]-1);h.push(i)}return h&&h.length||(h=[],J(e).replace(we,G)),h.toString=c._path2string,t.arr=h,t.arr},c.parseTransformString=(0,o.cacher)((function(e){if(!e)return null;var t=[];return c.is(e,w)&&c.is(e[0],w)&&(t=Qe(e)),t.length||J(e).replace(_e,(function(e,r,n){var a=[];fe.call(r);n.replace(Se,(function(e,t){t&&a.push(+t)})),t.push([r][b](a))})),t.toString=c._path2string,t}));var Ye=(0,o.cacher)((function(){return{}}),void 0,void 0,void 0,500,{},!0);function Ke(e,t,r,n,a){return e*(e*(-3*t+9*r-9*n+3*a)+6*t-12*r+6*n)-3*t+3*r}function Je(e,t,r,n,a,i,o,s,l){null==l&&(l=1);for(var c=(l=l>1?1:l<0?0:l)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,d=0;d<12;d++){var p=c*u[d]+c,g=Ke(p,e,r,a,o),m=Ke(p,t,n,i,s);f+=h[d]*se(g*g+m*m)}return c*f}c.findDotsAtSegment=function(e,t,r,n,a,i,o,s,l){var c=1-l,u=ae(c,3),h=ae(c,2),f=l*l,d=f*l,p=u*e+3*h*l*r+3*c*l*l*a+d*o,g=u*t+3*h*l*n+3*c*l*l*i+d*s,m=e+2*l*(r-e)+f*(a-2*r+e),v=t+2*l*(n-t)+f*(i-2*n+t),b=r+2*l*(a-r)+f*(o-2*a+r),y=n+2*l*(i-n)+f*(s-2*i+n),x=c*e+l*r,w=c*t+l*n,_=c*a+l*o,S=c*i+l*s,C=90-180*ee.atan2(m-b,v-y)/ce;return(m>b||v<y)&&(C+=180),{x:p,y:g,m:{x:m,y:v},n:{x:b,y:y},start:{x:x,y:w},end:{x:_,y:S},alpha:C}},c._removedFactory=function(e){return function(){(0,i["default"])("raphael.log",null,"Raphaël: you are calling to method “"+e+"” of removed object",e)}};var Ze=c.pathBBox=function(e){var t=Ye(e);if(!e)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var r,n=0,a=0,i=[],o=[],s=0,l=(e=ot(e)).length;s<l;s++)if("M"===(r=e[s])[0])n=r[1],a=r[2],i.push(n),o.push(a);else{var c=it(n,a,r[1],r[2],r[3],r[4],r[5],r[6]);i=i[b](c.min.x,c.max.x),o=o[b](c.min.y,c.max.y),n=r[5],a=r[6]}var u=re[v](0,i),h=re[v](0,o),f=te[v](0,i),d=te[v](0,o),p={x:u,y:h,x2:f,y2:d,width:f-u,height:d-h};return t.bbox=je(p),p},Qe=function(e){var t=je(e);return t.toString=c._path2string,t},et=c._pathToAbsolute=function(e){var t,r=Ye(e);if(!r.abs){if(c.is(e,w)&&c.is(e&&e[0],w)||(e=c.parsePathString(e)),!e||!e.length)return(t=[["M",0,0]]).toString=c._path2string,t;var n=0,a=0,i=0,o=0,s=0;t=[],"M"===e[0][0]&&(i=n=+e[0][1],o=a=+e[0][2],s++,t[0]=["M",n,a]);for(var l,u,h=3===e.length&&"M"===e[0][0]&&"R"===e[1][0].toUpperCase()&&"Z"===e[2][0].toUpperCase(),f=s,d=e.length;f<d;f++){if(t.push(l=[]),(u=e[f])[0]!=de.call(u[0]))switch(l[0]=de.call(u[0]),l[0]){case"A":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+n),l[7]=+(u[7]+a);break;case"V":l[1]=+u[1]+a;break;case"H":l[1]=+u[1]+n;break;case"R":for(var p=[n,a][b](u.slice(1)),g=2,m=p.length;g<m;g++)p[g]=+p[g]+n,p[++g]=+p[g]+a;t.pop(),t=t[b](Xe(p,h));break;case"M":i=+u[1]+n,o=+u[2]+a;default:for(g=1,m=u.length;g<m;g++)l[g]=+u[g]+(g%2?n:a),g%2?n=l[g]:a=l[g]}else if("R"===u[0])p=[n,a][b](u.slice(1)),t.pop(),t=t[b](Xe(p,h)),l=["R"][b](u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case"Z":n=i,a=o;break;case"H":n=l[1];break;case"V":a=l[1];break;case"M":i=l[l.length-2],o=l[l.length-1];default:n=l[l.length-2],a=l[l.length-1]}}t.toString=c._path2string,r.abs=t}return Qe(r.abs)},tt=function(e,t,r,n){return[e,t,r,n,r,n]},rt=function(e,t,r,n,a,i){return[1/3*e+2/3*r,1/3*t+2/3*n,1/3*a+2/3*r,1/3*i+2/3*n,a,i]},nt=function Xt(e,t,r,n,a,i,s,l,c,u){if(s=s&&+s,i=i&&+i,0===r||0===n)return tt(e,t,l,c);var h,f=120*ce/180,d=ue*(+a||0),p=[],g=(0,o.cacher)((function(e,t,r){return{x:e*ie(r)-t*oe(r),y:e*oe(r)+t*ie(r)}}));if(u)A=u[0],N=u[1],C=u[2],k=u[3];else{e=(h=g(e,t,-d)).x,t=h.y,l=(h=g(l,c,-d)).x,c=h.y;ie(ue*a),oe(ue*a);var m=(e-l)/2,v=(t-c)/2,y=m*m/(r*r)+v*v/(n*n);y>1&&(r*=y=se(y),n*=y);var x=r*r,w=n*n,_=(i===s?-1:1)*se(ne((x*w-x*v*v-w*m*m)/(x*v*v+w*m*m))),C=_*r*v/n+(e+l)/2,k=_*-n*m/r+(t+c)/2,A=ee.asin(((t-k)/n).toFixed(9)),N=ee.asin(((c-k)/n).toFixed(9));(A=e<C?ce-A:A)<0&&(A=2*ce+A),(N=l<C?ce-N:N)<0&&(N=2*ce+N),s&&A>N&&(A-=2*ce),!s&&N>A&&(N-=2*ce)}var E=N-A;if(ne(E)>f){var L=N,M=l,F=c;p=Xt(l=C+r*ie(N=A+f*(s&&N>A?1:-1)),c=k+n*oe(N),r,n,a,0,s,M,F,[N,L,C,k])}E=N-A;var T=ie(A),D=oe(A),I=ie(N),O=oe(N),P=ee.tan(E/4),R=4/3*r*P,j=4/3*n*P,B=[e,t],V=[e+R*D,t-j*T],z=[l+R*O,c-j*I],U=[l,c];if(V[0]=2*B[0]-V[0],V[1]=2*B[1]-V[1],u)return[V,z,U][b](p);for(var H=[],q=0,G=(p=[V,z,U][b](p).join()[S](",")).length;q<G;q++)H[q]=q%2?g(p[q-1],p[q],d).y:g(p[q],p[q+1],d).x;return H},at=function(e,t,r,n,a,i,o,s,l){var c=1-l;return{x:ae(c,3)*e+3*ae(c,2)*l*r+3*c*l*l*a+ae(l,3)*o,y:ae(c,3)*t+3*ae(c,2)*l*n+3*c*l*l*i+ae(l,3)*s}},it=(0,o.cacher)((function(e,t,r,n,a,i,o,s){var l,c=a-2*r+e-(o-2*a+r),u=2*(r-e)-2*(a-r),h=e-r,f=(-u+se(u*u-4*c*h))/2/c,d=(-u-se(u*u-4*c*h))/2/c,p=[t,s],g=[e,o];return ne(f)>"1e12"&&(f=.5),ne(d)>"1e12"&&(d=.5),f>0&&f<1&&(l=at(e,t,r,n,a,i,o,s,f),g.push(l.x),p.push(l.y)),d>0&&d<1&&(l=at(e,t,r,n,a,i,o,s,d),g.push(l.x),p.push(l.y)),f=(-(u=2*(n-t)-2*(i-n))+se(u*u-4*(c=i-2*n+t-(s-2*i+n))*(h=t-n)))/2/c,d=(-u-se(u*u-4*c*h))/2/c,ne(f)>"1e12"&&(f=.5),ne(d)>"1e12"&&(d=.5),f>0&&f<1&&(l=at(e,t,r,n,a,i,o,s,f),g.push(l.x),p.push(l.y)),d>0&&d<1&&(l=at(e,t,r,n,a,i,o,s,d),g.push(l.x),p.push(l.y)),{min:{x:re[v](0,g),y:re[v](0,p)},max:{x:te[v](0,g),y:te[v](0,p)}}})),ot=c._path2curve=(0,o.cacher)((function(e,t){var r=!t&&Ye(e);if(!t&&r.curve)return Qe(r.curve);for(var n=et(e),a=t&&et(t),i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=function(e,t){if(!e)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(!(e[0]in{T:1,Q:1})&&(t.qx=t.qy=null),e[0]){case"M":t.X=e[1],t.Y=e[2];break;case"A":e=["C"][b](nt[v](0,[t.x,t.y][b](e.slice(1))));break;case"S":e=["C",t.x+(t.x-(t.bx||t.x)),t.y+(t.y-(t.by||t.y))][b](e.slice(1));break;case"T":t.qx=t.x+(t.x-(t.qx||t.x)),t.qy=t.y+(t.y-(t.qy||t.y)),e=["C"][b](rt(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case"Q":t.qx=e[1],t.qy=e[2],e=["C"][b](rt(t.x,t.y,e[1],e[2],e[3],e[4]));break;case"L":e=["C"][b](tt(t.x,t.y,e[1],e[2]));break;case"H":e=["C"][b](tt(t.x,t.y,e[1],t.y));break;case"V":e=["C"][b](tt(t.x,t.y,t.x,e[1]));break;case"Z":e=["C"][b](tt(t.x,t.y,t.X,t.Y))}return e},l=function(e,t){if(e[t].length>7){e[t].shift();for(var r=e[t];r.length;)e.splice(t++,0,["C"][b](r.splice(0,6)));e.splice(t,1),h=te(n.length,a&&a.length||0)}},c=function(e,t,r,i,o){e&&t&&"M"===e[o][0]&&"M"!=t[o][0]&&!o&&(t.splice(o,0,["M",i.x,i.y]),r.bx=0,r.by=0,r.x=e[o][1],r.y=e[o][2],h=te(n.length,a&&a.length||0))},u=0,h=te(n.length,a&&a.length||0);u<h;u++){n[u]=s(n[u],i),l(n,u),a&&(a[u]=s(a[u],o)),a&&l(a,u),c(n,a,i,o,u),c(a,n,o,i,u);var f=n[u],d=a&&a[u],p=f.length,g=a&&d.length;i.x=f[p-2],i.y=f[p-1],i.bx=Z(f[p-4])||i.x,i.by=Z(f[p-3])||i.y,o.bx=a&&(Z(d[g-4])||o.x),o.by=a&&(Z(d[g-3])||o.y),o.x=a&&d[g-2],o.y=a&&d[g-1]}return a||(r.curve=Qe(n)),a?[n,a]:n}),null,Qe),st=(c._parseDots=(0,o.cacher)((function(e){for(var t=[],r=0,n=e.length;r<n;r++){var a={},i=e[r].match(/^([^:]*):?([\d\.]*)/);if(a.color=c.getRGB(i[1]),a.color.error)return null;a.opacity=a.color.opacity,a.color=a.color.hex,i[2]&&(a.offset=i[2]+"%"),t.push(a)}for(r=1,n=t.length-1;r<n;r++)if(!t[r].offset){for(var o=Z(t[r-1].offset||0),s=0,l=r+1;l<n;l++)if(t[l].offset){s=t[l].offset;break}s||(s=100,l=n);for(var u=((s=Z(s))-o)/(l-r+1);r<l;r++)o+=u,t[r].offset=o+"%"}return t})),c._tear=function(e,t){e===t.top&&(t.top=e.prev),e===t.bottom&&(t.bottom=e.next),e.next&&(e.next.prev=e.prev),e.prev&&(e.prev.next=e.next)}),lt=(c._tofront=function(e,t){return t.top!==e&&(st(e,t),e.next=null,e.prev=t.top,t.top.next=e,t.top=e,!0)},c._toback=function(e,t){return t.bottom!==e&&(st(e,t),e.next=t.bottom,e.prev=null,t.bottom.prev=e,t.bottom=e,!0)},c._insertafter=function(e,t,r,n){st(e,r),e.parent=n,t===n.top&&(n.top=e),t.next&&(t.next.prev=e),e.next=t.next,e.prev=t,t.next=e},c._insertbefore=function(e,t,r,n){st(e,r),e.parent=n,t===n.bottom&&(n.bottom=e),t.prev&&(t.prev.next=e),e.prev=t.prev,t.prev=e,e.next=t},c._extractTransform=function(e,t){if(null==t)return e._.transform;t=J(t).replace(/\.{3}|\u2026/g,e._.transform||p);var r,n,a=c.parseTransformString(t),i=0,o=1,s=1,l=e._,u=new ht;if(l.transform=a||[],a)for(var h=0,f=a.length;h<f;h++){var d,g,m,v,b,y=a[h],x=y.length,w=J(y[0]).toLowerCase(),_=y[0]!=w,S=_?u.invert():0;"t"===w&&3===x?_?(d=S.x(0,0),g=S.y(0,0),m=S.x(y[1],y[2]),v=S.y(y[1],y[2]),u.translate(m-d,v-g)):u.translate(y[1],y[2]):"r"===w?2===x?(b=l.bb||(l.bb=e.getBBox(1)),u.rotate(y[1],b.x+b.width/2,b.y+b.height/2),i+=y[1]):4===x&&(_?(m=S.x(y[2],y[3]),v=S.y(y[2],y[3]),u.rotate(y[1],m,v)):u.rotate(y[1],y[2],y[3]),i+=y[1]):"s"===w?2===x||3===x?(b=l.bb||(l.bb=e.getBBox(1)),u.scale(y[1],y[x-1],b.x+b.width/2,b.y+b.height/2),o*=y[1],s*=y[x-1]):5===x&&(_?(m=S.x(y[3],y[4]),v=S.y(y[3],y[4]),u.scale(y[1],y[2],m,v)):u.scale(y[1],y[2],y[3],y[4]),o*=y[1],s*=y[2]):"m"===w&&7===x&&u.add(y[1],y[2],y[3],y[4],y[5],y[6]),l.dirtyT=1,e.matrix=u}e.matrix=u,l.sx=o,l.sy=s,l.deg=i,l.dx=r=u.e,l.dy=n=u.f,1===o&&1===s&&!i&&l.bbox?(l.bbox.x+=+r,l.bbox.y+=+n):l.dirtyT=1}),ct=function(e){var t=e[0];switch(t.toLowerCase()){case"t":return[t,0,0];case"m":return[t,1,0,0,1,0,0];case"r":return 4===e.length?[t,0,e[2],e[3]]:[t,0];case"s":return 5===e.length?[t,1,1,e[3],e[4]]:3===e.length?[t,1,1]:[t,1]}},ut=c._equaliseTransform=function(e,t){t=J(t).replace(/\.{3}|\u2026/g,e),e=c.parseTransformString(e)||[],t=c.parseTransformString(t)||[];for(var r,n,a,i,o=te(e.length,t.length),s=[],l=[],u=0;u<o;u++){if(a=e[u]||ct(t[u]),i=t[u]||ct(a),a[0]!=i[0]||"r"===a[0].toLowerCase()&&(a[2]!=i[2]||a[3]!=i[3])||"s"===a[0].toLowerCase()&&(a[3]!=i[3]||a[4]!=i[4]))return;for(s[u]=[],l[u]=[],r=0,n=te(a.length,i.length);r<n;r++)r in a&&(s[u][r]=a[r]),r in i&&(l[u][r]=i[r])}return{from:s,to:l}};function ht(e,t,r,n,a,i){null!=e?(this.a=+e,this.b=+t,this.c=+r,this.d=+n,this.e=+a,this.f=+i):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}c._getContainer=function(e,t,r,n){var a;if(null!=(a=null!=n||c.is(e,_)?e:F.doc.getElementById(e)))return a.tagName?null==t?{container:a,width:a.style.pixelWidth||a.offsetWidth,height:a.style.pixelHeight||a.offsetHeight}:{container:a,width:t,height:r}:{container:1,x:e,y:t,width:r,height:n}},c._engine={},c.path2curve=ot,c.matrix=function(e,t,r,n,a,i){return new ht(e,t,r,n,a,i)},function(e){function t(e){return e[0]*e[0]+e[1]*e[1]}function r(e){var r=se(t(e));e[0]&&(e[0]/=r),e[1]&&(e[1]/=r)}e.add=function(e,t,r,n,a,i){var o,s,l,c,u=[[],[],[]],h=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],f=[[e,r,a],[t,n,i],[0,0,1]];for(e&&e instanceof ht&&(f=[[e.a,e.c,e.e],[e.b,e.d,e.f],[0,0,1]]),o=0;o<3;o++)for(s=0;s<3;s++){for(c=0,l=0;l<3;l++)c+=h[o][l]*f[l][s];u[o][s]=c}this.a=u[0][0],this.b=u[1][0],this.c=u[0][1],this.d=u[1][1],this.e=u[0][2],this.f=u[1][2]},e.invert=function(){var e=this,t=e.a*e.d-e.b*e.c;return new ht(e.d/t,-e.b/t,-e.c/t,e.a/t,(e.c*e.f-e.d*e.e)/t,(e.b*e.e-e.a*e.f)/t)},e.clone=function(){return new ht(this.a,this.b,this.c,this.d,this.e,this.f)},e.translate=function(e,t){this.add(1,0,0,1,e,t)},e.scale=function(e,t,r,n){null==t&&(t=e),(r||n)&&this.add(1,0,0,1,r,n),this.add(e,0,0,t,0,0),(r||n)&&this.add(1,0,0,1,-r,-n)},e.rotate=function(e,t,r){e=c.rad(e),t=t||0,r=r||0;var n=+ie(e).toFixed(9),a=+oe(e).toFixed(9);this.add(n,a,-a,n,t,r),this.add(1,0,0,1,-t,-r)},e.x=function(e,t){return e*this.a+t*this.c+this.e},e.y=function(e,t){return e*this.b+t*this.d+this.f},e.get=function(e){return+this[J.fromCharCode(97+e)].toFixed(4)},e.toString=function(){return c.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()},e.toMatrixString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},e.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')"},e.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},e.split=function(){var e={};e.dx=this.e,e.dy=this.f;var n=[[this.a,this.c],[this.b,this.d]];e.scalex=se(t(n[0])),r(n[0]),e.shear=n[0][0]*n[1][0]+n[0][1]*n[1][1],n[1]=[n[1][0]-n[0][0]*e.shear,n[1][1]-n[0][1]*e.shear],e.scaley=se(t(n[1])),r(n[1]),e.shear/=e.scaley;var a=-n[0][1],i=n[1][1];return i<0?(e.rotate=c.deg(ee.acos(i)),a<0&&(e.rotate=360-e.rotate)):e.rotate=c.deg(ee.asin(a)),e.isSimple=!(+e.shear.toFixed(9)||e.scalex.toFixed(9)!==e.scaley.toFixed(9)&&e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)===e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e},e.toTransformString=function(e){var t=e||this[S]();return t.isSimple?(t.scalex=+t.scalex.toFixed(4),t.scaley=+t.scaley.toFixed(4),t.rotate=+t.rotate.toFixed(4),(t.dx||t.dy?"t"+[t.dx,t.dy]:p)+(1!=t.scalex||1!=t.scaley?"s"+[t.scalex,t.scaley,0,0]:p)+(t.rotate?"r"+[t.rotate,0,0]:p)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(ht.prototype);var ft=(O=D.navigator).userAgent.match(/Version\/(.*?)\s/)||O.userAgent.match(/Chrome\/(\d+)/);"Apple Computer, Inc."===O.vendor&&(ft&&ft[1]<4||"iP"===O.platform.slice(0,2))||"Google Inc."===O.vendor&&ft&&ft[1]<8?X.safari=function(){var e=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:C});return setTimeout((function(){e.remove()})),!0}:X.safari=function(){};for(var dt=function(){this.returnValue=!1},pt=function(){return this.originalEvent.preventDefault()},gt=function(){this.cancelBubble=!0},mt=function(){return this.originalEvent.stopPropagation()},vt={stopPropagation:"fn",stopImmediatePropagation:"fn",preventDefault:"fn",type:!0,clientX:!0,clientY:!0,pageX:!0,pageY:!0,bubbles:!0,cancelable:!0,touches:!0,target:!0,originalTarget:!0,srcElement:!0,relatedTarget:!0,fromElement:!0,changedTouches:!0,layerX:!0,layerY:!0,deltaX:!0,deltaY:!0},bt=c.makeSelectiveCopy=function(e,t){var r=function(r){e[r]="fn"===vt[r]?function(){t[r]()}:t[r]};for(var n in vt)r(n);e.originalEvent=t,e.type||(e.type=t.originalEvent&&t.originalEvent.type)},yt=c.addEvent=F.doc.addEventListener?function(e,t,r,n){var a,i,o=R?I[t]:P?K[t]:t;return N||(i={capture:!1}),n.dragFn&&("pointerup"===o?o="mouseup":void 0===o&&(o="touchend")),a=function(a){var i,o=F.doc.documentElement.scrollTop||F.doc.body.scrollTop,s=F.doc.documentElement.scrollLeft||F.doc.body.scrollLeft;if(P&&K[t])for(var l=0,c=a.targetTouches&&a.targetTouches.length;l<c;l++)if((i=a.targetTouches[l].target)===e||"tspan"===i.nodeName&&i.parentNode===e){var u=a;(a=a.targetTouches[l]).originalEvent=u,a.preventDefault=pt,a.stopPropagation=mt;break}return r.call(n,a,a.clientX+s,a.clientY+o)},e.addEventListener(o,a,i),function(){return e.removeEventListener(o,a,i),!0}}:F.doc.attachEvent?function(e,t,r,n){var a=function(e){e=e||F.win.event;var t=F.doc.documentElement.scrollTop||F.doc.body.scrollTop,a=F.doc.documentElement.scrollLeft||F.doc.body.scrollLeft,i=e.clientX+a,o=e.clientY+t;return e.preventDefault=e.preventDefault||dt,e.stopPropagation=e.stopPropagation||gt,r.call(n,e,i,o)};return e.attachEvent("on"+t,a),function(){return e.detachEvent("on"+t,a),!0}}:void 0,xt=function(e){var t,r=F.doc.documentElement.scrollTop||F.doc.body.scrollTop,n=F.doc.documentElement.scrollLeft||F.doc.body.scrollLeft,a=(void 0!==e.clientX?e.clientX:e.changedTouches&&e.changedTouches[0].clientX)+n,o=(void 0!==e.clientY?e.clientY:e.changedTouches&&e.changedTouches[0].clientY)+r,s={},l=this,u=l.dragInfo.onmove.length;if(!(l.dragStartFn&&!(Math.abs(a-l._drag.x)>=2.5||Math.abs(o-l._drag.y)>=2.5)||l._blockDrag||R&&P&&!e.isPrimary))for(;u--;){if(P&&"touchmove"===e.type)for(var h,f=e.touches.length;f--;)if((h=e.touches[f]).identifier===l._drag.id){a=h.clientX+n,o=h.clientY+r;break}if(!l.removed){if(l.dragStartFn&&(l.dragStartFn(u),l.dragStartFn=undefined,l.dragInfo._dragmove=!0),F.win.opera){var d=c._engine.getNode(l),p=d.nextSibling,g=d.parentNode,m=d.style.display;g.removeChild(d),d.style.display=C,d.style.display=m,p?g.insertBefore(d,p):g.appendChild(d)}bt(s,e),t=s.data=[a-l._drag.x,o-l._drag.y,a,o],(0,i["default"])("raphael.drag.move."+l.id,l.dragInfo.move_scope[u]||l,s,t)}}},wt=function e(t){var r=this,n=r.dragInfo,a=n.onend.length;if(r.dragInfo._dragmove)for(;a--;)r._drag={},(0,i["default"])("raphael.drag.end."+r.id,n.end_scope[a]||n.start_scope[a]||n.move_scope[a]||r,t);r.dragInfo._dragmove=undefined,P&&!B&&!j&&(!z||!V)&&(r.paper.canvas.style["touch-action"]="auto"),c.undragmove.call(r,xt),c.undragend.call(r,e),c.unmousemove.call(r,xt).unmouseup.call(r,e)},_t=c.el={},St=Y.length;St--;)!function(e){c[e]=_t[e]=function(t,r,n){return c.is(t,k)&&(this.events=this.events||[],this.events.push({name:e,f:t,unbind:yt(n||this.shape||this.node||F.doc,e,t,r||this)})),this},c["un"+e]=_t["un"+e]=function(t){for(var r=this.events||[],n=r.length;n--;)if(r[n].name===e&&r[n].f===t)return r[n].unbind(),r.splice(n,1),!r.length&&delete this.events,this;return this}}(Y[St]);_t.data=function(e,t){var r=Ee[this.id]=Ee[this.id]||{};if(1===arguments.length){if(c.is(e,_)){for(var n in e)e[m](n)&&this.data(n,e[n]);return this}return c.stopPartialEventPropagation||(0,i["default"])("raphael.data.get."+this.id,this,r[e],e),r[e]}return r[e]=t,c.stopPartialEventPropagation||(0,i["default"])("raphael.data.set."+this.id,this,t,e),this},_t.removeData=function(e){return null==e?delete Ee[this.id]:Ee[this.id]&&delete Ee[this.id][e],this},_t.dbclick=function(e,t){var r,n=this,a=function(r){var a;R&&!r.isPrimary||(r&&r.preventDefault(),(!(a=r).touches||a.touches&&1===a.touches.length)&&(n._tappedOnce?(e.call(t||n,r),n._tappedOnce=!1):(n._tappedOnce=!0,setTimeout((function(){n._tappedOnce=!1}),500))))};r=R?"pointerup":c.supportsTouch?"touchstart":"mouseup",n.node.addEventListener(r,a),c.storeHandlers(n,e,a)},_t.undbclick=function(e){var t=removeHandlers(this,e);t&&this.node.removeEventListener(R?"pointerup":c.supportsTouch?"touchstart":"mouseup",t)},_t.getData=function(){return je(Ee[this.id]||{})};var Ct=[],kt=function(){this.untrack=yt(F.doc,"mouseup",At,this)},At=function(){return this.untrack(),this.untrack=null,this.fn&&this.fn.apply(this.scope||this.el,arguments)};_t.mouseup=function(e,t,r,n){return r?(Ct.push(r={el:this,fn:e,scope:t}),r.unbind=yt(this.shape||this.node||F.doc,"mousedown",kt,r),this):c.mouseup.apply(this,[e,t,n])},_t.unmouseup=function(e){for(var t,r=Ct.length;r--;)Ct[r].el===this&&Ct[r].fn===e&&((t=Ct[r]).unbind(),t.untrack&&t.untrack(),Ct.splice(r,1));return t?this:c.unmouseup.apply(this,arguments)},_t.hover=function(e,t,r,n){return this.on("fc-mouseover",e,r).on("fc-mouseout",t,n)},_t.unhover=function(e,t){return this.off("fc-mouseover",e).off("fc-mouseout",t)},_t.fcclick=function(e,t){var r,n,a,i,o,s=this,l=s.node,u=function(e){s._lastEventTriggered="mousedown",a=void 0!==e.clientX?e.clientX:e.changedTouches&&e.changedTouches[0].clientX,i=void 0!==e.clientY?e.clientY:e.changedTouches&&e.changedTouches[0].clientY},h=function(e){var t=void 0!==e.clientX?e.clientX:e.changedTouches&&e.changedTouches[0].clientX,r=void 0!==e.clientY?e.clientY:e.changedTouches&&e.changedTouches[0].clientY;(Math.abs(a-t)>=2.5||Math.abs(i-r)>=2.5)&&(s._lastEventTriggered=undefined)};if(s._clickStoreActual||(s._clickStoreActual=[]),s._clickStoreDerived||(s._clickStoreDerived=[]),!s._clickHandlerHelper){for(r in o=!R&&c.supportsTouch?{touchstart:function(){s._lastEventTriggered="touchstart",s._lastEventTriggeredAt=(new Date).getTime()},touchmove:h}:R&&c.supportsTouch?{pointerdown:u,pointermove:h}:{mousedown:u,mousemove:h})l.addEventListener?l.addEventListener(r,o[r]):l.attachEvent("on"+r,o[r]);s._clickHandlerHelper=o}return!R&&c.supportsTouch?(r="touchend",n=function(r){"touchstart"===s._lastEventTriggered&&(new Date).getTime()-s._lastEventTriggeredAt<=500&&setTimeout((function(){e.call(t||s,r)}),0)}):(r="click",n=function(r){"mousedown"===s._lastEventTriggered&&e.call(t||s,r)}),l.addEventListener?l.addEventListener(r,n):l.attachEvent("on"+r,n),s._clickStoreDerived.push(n),s._clickStoreActual.push(e),s},_t.fcunclick=function(e){var t,r,n=this.node,a=this._clickHandlerHelper,i=this._clickStoreActual,o=this._clickStoreDerived;if(i){for(t=i.length-1;t>=0;t--)i[t]===e&&(n.removeEventListener?n.removeEventListener(!R&&c.supportsTouch?"touchend":"click",o[t]):n.detachEvent("onclick",o[t]),i.splice(t,1),o.splice(t,1));if(!i.length){for(r in a)n.removeEventListener?n.removeEventListener(r,a[r]):n.detachEvent("on"+r,a[r]);this._clickHandlerHelper=undefined}}return this};var Nt=[];function Et(){return this.x+g+this.y+g+this.width+" × "+this.height}_t.drag=function(e,t,r,n,a,o){var s=this,l=s.dragInfo||(s.dragInfo={onmove:[],onstart:[],onend:[],move_scope:[],start_scope:[],end_scope:[]});return e&&l.onmove.push(e)&&l.move_scope.push(n),t&&l.onstart.push(t)&&l.start_scope.push(a),r&&l.onend.push(r)&&l.end_scope.push(o),s.dragFn=s.dragFn||function(e){var t,r,n,a,o,l,u,h,f,d,p=F.doc.documentElement.scrollTop||F.doc.body.scrollTop,g=F.doc.documentElement.scrollLeft||F.doc.body.scrollLeft,m={},v=s.dragInfo,b=[xt,void 0,F.doc];if(!R||e.isPrimary){for(P&&(R?B||j||z&&V||(s.paper.canvas.style["touch-action"]="none"):e.preventDefault()),s._drag.x=f=(void 0!==e.clientX?e.clientX:e.changedTouches&&e.changedTouches[0].clientX)+g,s._drag.y=d=(void 0!==e.clientY?e.clientY:e.changedTouches&&e.changedTouches[0].clientY)+p,s._drag.id=e.identifier,P&&!R?c.dragmove.apply(s,b):c.mousemove.apply(s,b).mouseup.call(s,wt,void 0,void 0,F.doc),P&&c.dragend.call(s,wt,void 0,F.doc),bt(m,e),t=m.data=[f,d],r=0,o=v.onstart.length;r<o;r++)i["default"].on("raphael.drag.start."+s.id,v.onstart[r]);for(n=0,l=v.onmove.length;n<l;n++)i["default"].on("raphael.drag.move."+s.id,v.onmove[n]);for(a=0,u=v.onend.length;a<u;a++)i["default"].on("raphael.drag.end."+s.id,v.onend[a]);o&&!l&&(h=function(){s.undragmove(),v.onmove=[]},v.onmove.push(h),i["default"].on("raphael.drag.end."+s.id,h)),s.dragStartFn=function(e){(0,i["default"])("raphael.drag.start."+s.id,s.dragInfo.start_scope[e]||s.dragInfo.move_scope[e]||s,m,t)}}},s._drag={},Nt.push({el:s,start:s.dragFn,onstart:t,onmove:e,onend:r}),t&&!s.startHandlerAttached&&(P&&!R?s.dragstart(s.dragFn):s.mousedown(s.dragFn),s.startHandlerAttached=!0),s},_t.onDragOver=function(e){e?i["default"].on("raphael.drag.over."+this.id,e):i["default"].unbind("raphael.drag.over."+this.id)},_t.undrag=function(){for(var e=Nt.length;e--;)Nt[e].el===this&&(this.unmousedown(this.dragFn),Nt.splice(e,1),i["default"].unbind("raphael.drag.*."+this.id),this.dragInfo=undefined,this.dragFn=undefined,this.startHandlerAttached=undefined);c.unmousemove.call(this,xt).unmouseup.call(this,wt),c.undragmove.call(this,xt),c.undragend.call(this,wt),delete this._drag},_t.undragstart=function(e){var t,r,n=this.dragInfo,a=n&&n.onstart,o=n&&n.start_scope;if(e)for(t=0,r=a&&a.length;t<r;t++)if(a[t]===e){a.splice(t,1),o.splice(t,1),i["default"].unbind("raphael.drag.start."+this.id,e);break}a&&a.length&&e||(c.undragstart.call(this,this.dragFn),c.unmousedown.call(this,this.dragFn),i["default"].unbind("raphael.drag.start."+this.id),this.startHandlerAttached=!1,n&&(n.onstart=[],n.start_scope=[]))},_t.undragmove=function(e){var t,r,n=this.dragInfo,a=n&&n.onmove,o=n&&n.move_scope;if(e)for(t=0,r=a&&a.length;t<r;t++)if(a[t]===e){a.splice(t,1),o.splice(t,1),i["default"].unbind("raphael.drag.move."+this.id,e);break}a&&a.length&&e||(c.undragmove.call(this,xt),c.unmousemove.call(this,xt),n&&(n.onmove=[],n.move_scope=[]),i["default"].unbind("raphael.drag.move."+this.id))},_t.undragend=function(e){var t,r,n=this.dragInfo,a=n&&n.onend,o=n&&n.end_scope;if(e)for(t=0,r=a&&a.length;t<r;t++)if(a[t]===e){a.splice(t,1),o.splice(t,1),i["default"].unbind("raphael.drag.end."+this.id,e);break}a&&a.length&&e||(c.undragend.call(this,wt),c.unmouseup.call(this,wt),n&&(n.onend=[],n.end_scope=[]),i["default"].unbind("raphael.drag.end."+this.id))},_t.follow=function(e,t,r){return e.removed||e.constructor!==c.el.constructor||(e.followers.push({el:this,stalk:r={before:"insertBefore",after:"insertAfter"}[r],cb:t}),r&&this[r](e)),this},_t.unfollow=function(e){if(e.removed||e.constructor!==c.el.constructor)return this;for(var t=0,r=e.followers.length;t<r;t++)if(e.followers[t].el===this){e.followers.splice(t,1);break}return this},X.hide=function(){return this.canvas.style.visibility="hidden",this},X.show=function(){return this.canvas.style.visibility=p,this},X.group=function(){var e=this,t=(0,o.getArrayCopy)(arguments),r=Oe(t,!0),n=c._engine.group(e,t[0],r,!!t[1]);return e.__set__&&e.__set__.push(n),e._elementsById[n.id]=n},X.circle=function(){var e=this,t=(0,o.getArrayCopy)(arguments),r=Oe(t,!0),n=e._addDefAttribs()?Pe(t,"cx",0,"cy",0,"r",0,"fill",C,"stroke","#000"):Pe(t),a=c._engine.circle(e,n,r);return e.__set__&&e.__set__.push(a),e._elementsById[a.id]=a},X.rect=function(){var e=this,t=(0,o.getArrayCopy)(arguments),r=Oe(t,!0),n=e._addDefAttribs()?Pe(t,"x",0,"y",0,"width",0,"height",0,"r",0,"fill",C,"stroke","#000"):Pe(t),a=c._engine.rect(e,n,r);return e.__set__&&e.__set__.push(a),e._elementsById[a.id]=a},X.ellipse=function(){var e=this,t=(0,o.getArrayCopy)(arguments),r=Oe(t,!0),n=e._addDefAttribs()?Pe(t,"x",0,"y",0,"rx",0,"ry",0,"fill",C,"stroke","#000"):Pe(t),a=c._engine.ellipse(this,n,r);return e.__set__&&e.__set__.push(a),e._elementsById[a.id]=a},X.path=function(){var e=this,t=(0,o.getArrayCopy)(arguments),r=Oe(t,!0),n=e.config,a=n&&n["stroke-linecap"]||"butt",i=e._addDefAttribs()?Pe(t,"path",p,"fill",C,"stroke","#000","stroke-linecap",a):Pe(t),s=c._engine.path(e,i,r);return e.__set__&&e.__set__.push(s),e._elementsById[s.id]=s},X.image=function(){var e=this,t=(0,o.getArrayCopy)(arguments),r=Oe(t,!0),n=e._addDefAttribs()?Pe(t,"x",0,"y",0,"width",0,"height",0):Pe(t),a=c._engine.image(e,n,r);return e.__set__&&e.__set__.push(a),e._elementsById[a.id]=a},X.text=function(){var e=this,t=(0,o.getArrayCopy)(arguments),r=Oe(t,!0),n=e._addDefAttribs()?Pe(t,"x",0,"y",0,"text",p,"stroke",C,"fill","#000","text-anchor","middle","vertical-align","middle"):Pe(t),a=c._engine.text(e,n,r,t[1]);return e.__set__&&e.__set__.push(a),e._elementsById[a.id]=a},X._addDefAttribs=function(){return!(c.svg&&this.config&&this.config.noDefaultAttribs)},X.setConfig=function(e,t){return e!==undefined&&t!==undefined&&(this.config=this.config||{},this.config[e]=t),this.config},X._createDOMNodes=function(e,t,r){var n,a,i,o,s={},l=c._createNode,u=t.tagName,h=t.children||[];for(o in!r&&(r={}),t)"tagName"!==o&&"children"!==o&&(s[o]=t[o]);if(!s.id&&(s.id=c.getElementID(c.createUUID())),!this.canvas.getElementById(s.id)&&u)for(n=e.appendChild(l(u,s)),r.element=n,r.id=s.id,(i=h.length)>0&&(r.children=[]),a=0;a<i;a++)r.children[a]={},this._createDOMNodes(n,h[a],r.children[a]);return r},X.addDefs=function(e){if(c.svg){var t,r={},n=this.defs;for(t in e)r[t]={},this._createDOMNodes(n,e[t],r[t]);return r}},X.setSize=function(e,t){return c._engine.setSize.call(this,e,t)},X.setDimension=function(e,t){var r;typeof e===_?(r=e.width,t=e.height,this.setSize(e.width,e.height)):(r=e,this.setSize(r,t))},X.attr=function(e){return null==e?{width:this.width,height:this.height}:c.is(e,x)?this[e]:(this.setDimension(e),this)},X.status=function(e,t){return _t.status.call(this,e,t)},X.animateWith=function(e,t,r,n,a,i,o){return _t.animateWith.call(this,e,t,r,n,a,i,o)},X.animate=function(e,t,r,n){return _t.animate.call(this,e,t,r,n)},X.setViewBox=function(e,t,r,n,a){return c._engine.setViewBox.call(this,e,t,r,n,a)},X.getById=function(e){return this._elementsById[e]||null},X.top=X.bottom=null,X.raphael=c,_t.getBBox=function(e){if(this.removed)return{};var t=this._;return e?(!t.dirty&&t.bboxwt||(this.realPath=De[this.type](this),t.bboxwt=Ze(this.realPath),t.bboxwt.toString=Et,t.dirty=0),t.bboxwt):((t.dirty||t.dirtyT||!t.bbox)&&(!t.dirty&&this.realPath||(t.bboxwt=0,this.realPath=De[this.type](this)),t.bbox=Ze(Ie(this.realPath,this.matrix)),t.bbox.toString=Et,t.dirty=t.dirtyT=0),t.bbox)},_t.clone=function(e,t){if(this.removed)return null;var r,n,a=this,i=a.attr();if(e){for(r in e)i[r]=e[r];n=a.paper[a.type](i,t)}else n=a.paper[a.type]().attr(i);return a.__set__&&a.__set__.push(n),n};var Lt=function(e,t,r,n,a,i,o,s,l){return null==l?Je(e,t,r,n,a,i,o,s):c.findDotsAtSegment(e,t,r,n,a,i,o,s,function(e,t,r,n,a,i,o,s,l){if(!(l<0||Je(e,t,r,n,a,i,o,s)<l)){var c,u=.5,h=1-u;for(c=Je(e,t,r,n,a,i,o,s,h);ne(c-l)>.01;)c=Je(e,t,r,n,a,i,o,s,h+=(c<l?1:-1)*(u/=2));return h}}(e,t,r,n,a,i,o,s,l))},Mt=function(e,t){return function(r,n,a){r=ot(r);for(var i,o,s,l,u,h=p,f={},d=0,g=0,m=r.length;g<m;g++){if("M"===(s=r[g])[0])i=+s[1],o=+s[2];else{if(d+(l=Lt(i,o,s[1],s[2],s[3],s[4],s[5],s[6]))>n){if(t&&!f.start){if(h+=["C"+(u=Lt(i,o,s[1],s[2],s[3],s[4],s[5],s[6],n-d)).start.x,u.start.y,u.m.x,u.m.y,u.x,u.y],a)return h;f.start=h,h=["M"+u.x,u.y+"C"+u.n.x,u.n.y,u.end.x,u.end.y,s[5],s[6]].join(),d+=l,i=+s[5],o=+s[6];continue}if(!e&&!t)return{x:(u=Lt(i,o,s[1],s[2],s[3],s[4],s[5],s[6],n-d)).x,y:u.y,alpha:u.alpha}}d+=l,i=+s[5],o=+s[6]}h+=s.shift()+s}return f.end=h,(u=e?d:t?f:c.findDotsAtSegment(i,o,s[0],s[1],s[2],s[3],s[4],s[5],1)).alpha&&(u={x:u.x,y:u.y,alpha:u.alpha}),u}},Ft=Mt(1),Tt=Mt();Mt(0,1);c.getTotalLength=Ft,c.getPointAtLength=Tt,_t.getTotalLength=function(){if("path"==this.type)return this.node.getTotalLength?this.node.getTotalLength():Ft(this.attrs.path)},_t.getPointAtLength=function(e){if("path"==this.type)return Tt(this.attrs.path,e)};var Dt=c.easing_formulas={linear:function(e){return e},"<":function(e){return ae(e,1.7)},">":function(e){return ae(e,.48)},"<>":function(e){var t=.48-e/1.04,r=se(.1734+t*t),n=r-t,a=-r-t,i=ae(ne(n),1/3)*(n<0?-1:1)+ae(ne(a),1/3)*(a<0?-1:1)+.5;return 3*(1-i)*i*i+i*i*i},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},elastic:function(e){return e===!!e?e:ae(2,-10*e)*oe(2*ce*(e-.075)/.3)+1},bounce:function(e){var t=7.5625,r=2.75;return e<1/r?t*e*e:e<2/r?t*(e-=1.5/r)*e+.75:e<2.5/r?t*(e-=2.25/r)*e+.9375:t*(e-=2.625/r)*e+.984375},oneBounceOut:function(e){return e<=.9?1.33*Dt.easeIn(e):1.2-e/5},elasticOnce:function(e){return e===!!e?e:Math.pow(2,-10*e)*Math.sin((e-.225)*(2*Math.PI)/.9)+1},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}};Dt.easeIn=Dt["ease-in"]=Dt["<"],Dt.easeOut=Dt["ease-out"]=Dt[">"],Dt.easeInOut=Dt["ease-in-out"]=Dt["<>"],Dt["back-in"]=Dt.backIn,Dt["back-out"]=Dt.backOut;var It,Ot=[],Pt=function Yt(){for(var e,t,r,n=+new Date,a=0,o=[],s=0;a<Ot.length;a++){var l=Ot[a];if(!(l.el.removed||l.paused||l.parentEl&&l.parentEl.e&&l.parentEl.e.paused)){for(var u,h,f,d=n-l.start,v=l.ms,y=l.easing,x=l.from,w=l.diff,_=l.to,S=(l.t,l.el),C={},A={},N=!c.stopPartialEventPropagation,E=(s=0,l.el&&l.el.animElements&&l.el.animElements.peek());E&&E.pos<=d/v;)o.push(l.el.animElements.deq()),E=l.el.animElements.peek();if(l.initstatus?(d=(l.initstatus*l.anim.top-l.prev)/(l.percent-l.prev)*v,l.status=l.initstatus,delete l.initstatus,l.stop&&(delete l.el,Ot.splice(a--,1))):l.status=(l.prev+(l.percent-l.prev)*(d/v))/l.anim.top,h=v,l.parentEl&&l.parentEl.animElements?(v=l.delayend-l.delaystart,d=l.parentEl.cPos-l.delaystart):l.el.animElements&&(l.el.cPos=d/v),!(d<0))if(d<v){var L=y(d/v);for(var M in v=h,x)if(x[m](M)){switch(Ne[M]){case"number":u=+x[M]+L*v*w[M];break;case"colour":if(w[M].length){for(u=[],s=0,F=x[M].length;s<F;++s)0===s?x[M].isRadial||w[M].isRadial?(r="xr(",r+=x[M][0].f1*(1-L)+w[M][0].f1*L||p,r+=",",r+=x[M][0].f2*(1-L)+w[M][0].f2*L||p,r+=",",r+=100*(x[M][0].f3*(1-L)+w[M][0].f3*L)||p,r+="%,",r+=x[M][0].f4*(1-L)+w[M][0].f4*L||p,r+=",",r+=x[M][0].f5*(1-L)+w[M][0].f5*L,r+=",",r+=x[M][0].f6,r+=")",u.push(r)):(u.push(x[M][s]*(1-L)+L*w[M][s]),u[0]<=0&&(u[0]+=360)):u.push("rgba("+[Rt(le(x[M][s].r+L*v*w[M][s].r)),Rt(le(x[M][s].g+L*v*w[M][s].g)),Rt(le(x[M][s].b+L*v*w[M][s].b)),x[M][s].opacity+L*v*w[M][s].opacity].join(",")+"):"+x[M][s].position);u=u.join("-"),(x[M].isRadial||w[M].isRadial)&&(u=u.replace("-",p))}else t=x[M].opacity+L*v*w[M].opacity,isNaN(t)&&(t=1),u="rgba("+[Rt(le(x[M].r+L*v*w[M].r)),Rt(le(x[M].g+L*v*w[M].g)),Rt(le(x[M].b+L*v*w[M].b)),t].join(",")+")";break;case"path":u=[];s=0;for(var F=x[M].length;s<F;s++){var T;u[s]=[x[M][s][0]],T=x[M][s]?x[M][s].length:0;for(var D=1;D<T;D++)u[s][D]=(+x[M][s][D]+L*v*w[M][s][D]).toFixed(4);u[s]=u[s].join(g)}u=u.join(g);break;case"transform":if(w[M].real)for(u=[],s=0,F=x[M].length;s<F;s++)for(u[s]=[x[M][s][0]],D=1,T=x[M][s].length;D<T;D++)u[s][D]=x[M][s][D]+L*v*w[M][s][D];else{var I=function(e){return+x[M][e]+L*v*w[M][e]};u=[["m",I(0),I(1),I(2),I(3),I(4),I(5)]]}break;case"csv":if("clip-rect"===M)for(u=[],s=4;s--;)u[s]=+x[M][s]+L*v*w[M][s];break;case"text-bound":u=[][b](x[M]);break;default:var O=[][b](x[M]);for(u=[],s=S.ca[M].length;s--;)u[s]=+O[s]+L*v*w[M][s]}C[M]=u}S.attr(C),N&&function(e,t,r){setTimeout((function(){(0,i["default"])("raphael.anim.frame."+e,t,r)}))}(S.id,S,l.anim)}else{if(function(e,t,r){setTimeout((function(){N&&(0,i["default"])("raphael.anim.frame."+t.id,t,r),N&&(0,i["default"])("raphael.anim.finish."+t.id,t,r),c.is(e,k)&&e.call(t)}))}(l.callback,S,l.anim),S.attr(_),delete l.el,Ot.splice(a--,1),l.repeat>1&&!l.next){for(f in _)_[m](f)&&(A[f]=l.totalOrigin[f]);l.el.attr(A),qt(l.anim,l.el,l.anim.percents[0],null,l.totalOrigin,l.repeat-1)}l.next&&!l.stop&&qt(l.anim,l.el,l.next,null,l.totalOrigin,l.repeat)}}}for(c.svg&&S&&S.paper&&S.paper.safari(),a=0,e=o.length;a<e;++a)c.getInstantAnimFrameFn()(function(e){return function(){qt.apply(null,o[e].params)}}(a));Ot.length&&(It||c.getAnimFrameFn())(Yt)},Rt=function(e){return e>255?255:e<0?0:e},jt=function(e){return e>1&&(e=1),e<0&&(e=0),e};function Bt(e,t,r,n,a,i){var o=3*t,s=3*(n-t)-o,l=1-o-s,c=3*r,u=3*(a-r)-c,h=1-c-u;function f(e){return((l*e+s)*e+o)*e}return function(e,t){var r=function(e,t){var r,n,a,i,c,u;for(a=e,u=0;u<8;u++){if(i=f(a)-e,ne(i)<t)return a;if(ne(c=(3*l*a+2*s)*a+o)<1e-6)break;a-=i/c}if(n=1,(a=e)<(r=0))return r;if(a>n)return n;for(;r<n;){if(i=f(a),ne(i-e)<t)return a;e>i?r=a:n=a,a=(n-r)/2+r}return a}(e,t);return((h*r+u)*r+c)*r}(e,1/(200*i))}function Vt(e,t){var r=[],n={};if(this.ms=t,this.times=1,e){for(var a in e)e[m](a)&&(n[Z(a)]=e[a],r.push(Z(a)));r.sort(Le)}this.anim=n,this.top=r[r.length-1],this.percents=r}c.getAnimFrameFn=function(){return It=c.requestAnimFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame||l.msRequestAnimationFrame||function(e){setTimeout(e,16)}},c.getInstantAnimFrameFn=function(){return c.instantRequestAnimFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame||l.msRequestAnimationFrame||function(e){setTimeout(e,16)}},_t.animateWith=function(e,t,r,n,a,i,o){var s,l=this,u={};for(s in o=o||{})o.hasOwnProperty(s)&&(u[s]=o[s]);if(o=u,l.removed)return i&&i.call(l),l;if(0===n)return c.is(i,k)&&setTimeout((function(){i.call(l)}),0),l.attr(r);var h=r instanceof Vt?r:c.animation(r,n,a,i);o.start=jt(o.start||0),o.end=jt(o.end||1),o.start>=o.end&&(o.start=o.end),!o.from&&o.start>.01?(e.animElements=e.animElements||new Ve((function(e,t){return t.pos-e.pos})),e.animElements.enq({pos:o.start,attr:o.start===o.end,params:[h,l,h.percents[0],null,l.attr(),undefined,e,{start:o.start,end:o.end,smartMorph:o.smartMorph,hookFn:o.hookFn},r],executeOb:{el:this,attrs:r,callback:i,hookFn:o.hookFn}})):qt(h,l,h.percents[0],null,l.attr(),undefined,e,o);for(var f=0,d=Ot.length;f<d;f++)if(Ot[f].anim===t&&Ot[f].el===e){Ot[d-1].start=Ot[f].start;break}return l},_t.onAnimation=function(e){return e?i["default"].on("raphael.anim.frame."+this.id,e):i["default"].unbind("raphael.anim.frame."+this.id),this},Vt.prototype.delay=function(e){var t=new Vt(this.anim,this.ms);return t.times=this.times,t.del=+e||0,t},Vt.prototype.repeat=function(e){var t=new Vt(this.anim,this.ms);return t.del=this.del,t.times=ee.floor(te(e,0))||1,t};function zt(e,t,r){var n,a,i=0,o=0,s=[],l=[],c={},u=0,h=[];if(e=e.constructor===Array?e[0]:e,t=t.constructor===Array?t[0]:t,n=e.split("-"),a=t.split("-"),1===n.length&&1===a.length)return[e,t];for(n=f(n),a=f(a),!n.defaultAngleSet&&a.defaultAngleSet&&(a[0]=n[0]),!a.defaultAngleSet&&n.defaultAngleSet&&(n[0]=a[0]),function e(t,r,n){t.isRadial&&!r.isRadial&&(+r[0],r[0]={f1:0,f2:0,f3:0,f4:0,f5:0,f6:p},r.isRadial=!0),n||e(r,t,!0)}(n,a),i=1,o=n.length;i<o;++i)u=n[i].position,h.push(u);for(i=1,o=a.length;i<o;++i)u=a[i].position,-1===h.indexOf(u)&&h.push(u);for(h.push(0),h.sort((function(e,t){return e-t})),s=[n[0]],i=1,o=h.length;i<o;++i)u=h[i],c=n.getColorAtPosition(u),s.push(c);for(l=[a[0]],i=1,o=h.length;i<o;++i)u=h[i],c=a.getColorAtPosition(u),l.push(c);return s.isRadial=n.isRadial,l.isRadial=a.isRadial,[s,l];function f(e){var t,n=0,a=0,i=0,o=[],s={},l=0,c=0,u=0,h=0,f=0,d=0,g={f1:.5,f2:.5};for(1===e.length&&(e[0]===C&&(e[0]="rgba(0,0,0,0)"),e.unshift(0),e.defaultAngleSet=!0),isNaN(e[0])?~"rx".indexOf(e[0].charAt(0))?(e.isRadial=!0,h=1,-1!==e[0].indexOf(")")&&(h=e[0].indexOf(")"),f=e[0].indexOf("(")+1,d=h,o=e[0].substr(f,d-f).split(","),g.f1=parseFloat(o[0])||0,g.f2=parseFloat(o[1])||0,~o[2].indexOf("%")&&(o[2]=parseFloat(o[2])/100),g.f3=parseFloat(o[2])||0,g.f4=parseFloat(o[3])||0,g.f5=parseFloat(o[4])||0,g.f6=o[5]),e[0]=e[0].substr(d+1),e.unshift(g)):e[0]=0:e[0]=+e[0],n=1,a=e.length;n<a;++n)o=e[n].split(":"),s=r(o[0]),e[n]={},e[n].r=s.r,e[n].g=s.g,e[n].b=s.b,e[n].opacity=s.opacity,e[n].opacity=+e[n].opacity,isNaN(e[n].opacity)&&(e[n].opacity=1),e[n].position=+o[1];if(e.sort((function(e,t){return"number"==typeof e||e.f1?-1:"number"==typeof t||e.f2?1:isNaN(e.position)&&isNaN(t.position)?0:isNaN(e.position)?-1:isNaN(t.position)?1:e.position-t.position})),0!=+e[1].position)if(isNaN(e[1].position))e[1].position=0;else{for(t in s={},e[1])s[t]=e[1][t];for(s.position=0,e.push({}),n=e.length-1;1!==n;--n)e[n]=e[n-1];e[1]=s}if(100!==e[a=e.length-1].position)if(isNaN(e[a].position))e[a].position=100;else{for(t in s={},e[a])s[t]=e[a][t];s.position=100,e.push(s)}for(n=2,a=e.length;n<a;++n)if(!e[n].position){for(l=e[n-1].position,u=1,i=n+1;i<a;++i)if(++u,!isNaN(e[i].position)){c=+e[i].position;break}e[n].position=l+(c-l)/u}return e.getColorAtPosition=function(e){for(var t=-1,r=this.length,n=1,a=this.length,i=0,o=p,s={r:0,g:0,b:0};n<a-1;++n)if(this[n].position<=e&&(t=n,r=n+1),!(this[n].position<e)&&this[n].position>=e){r=n;break}for(o in i=(e-this[t].position)/(this[r].position-this[t].position),isNaN(i)&&(i=0),s)s[o]=Rt((1-i)*this[t][o]+i*this[r][o]);return s.position=e,s.opacity=(1-i)*this[t].opacity+i*this[r].opacity,s},e}}function Ut(e,t){var r,n=[],a=[],i=h(e),o=h(t),s=0,l=0,c=document.createElementNS&&document.createElementNS.bind(document),u=c&&c("http://www.w3.org/2000/svg","path");if(!i||!o||!u)return[e,t];if(function(e,t){var r,n,a=p,i=p;if(u.setAttribute("d","M300 10 L300 300 C50 310,50 640,350 650C600 640,600 310,400 300 L400 10 L295 10"),r=u.getTotalLength(),n=u.getPointAtLength(10),r<1829.1||r>1829.2)return!0;if(300!==Math.round(n.x)||20!==Math.round(n.y))return!0;function o(e){for(var t=e.length;t---1&&e[t].join(p)===e[t-1].join(p);)e.pop()}function s(e){for(var t=p,r=0,n=e.length;r<n;++r)t+=e[r].join(g);return t}if(o(e),o(t),a=s(e),i=s(t),a.split(/[Mm]/).length>2||i.split(/[Mm]/).length>2)return!1;if(e.length===t.length)return!0;return!1}(e,t))return[e,t];if(!e||!t)return[e,t];if(!document.createElementNS)return[e,t];if(i=h(e),o=h(t),-1!==i.join().indexOf("undefined"))return[e,t];if(-1!==o.join().indexOf("undefined"))return[e,t];if(!u.getTotalLength||!u.getPointAtLength)return[e,t];function h(e){var t=[],r=0,n=e.length;if(typeof e===x)return e;for(r=0;r<n;++r){if(!e[r].join)return;r&&e[r+1]&&"M"===e[r+1][0]&&"M"===e[r][0]||t.push(e[r].join(g))}for(r=0,n=(t=(t=t.join(p)).split(/[Mm]/).slice(1)).length;r<n;++r)t[r]="M"+t[r];return t}for(l=Math.max(i.length,o.length),s=0;s<l;++s)r=Ht(i[s],o[s]),i[s]=r[0],o[s]=r[1];function f(e){var t,r=0,n=[];for(t=(e=e||[]).length,r=0;r<t;++r)e[r].length-1&&n.push(e[r].join(g));return n.join(p)}function d(e,t){for(var r=e.length;r---1&&e[r].slice(1).toString()===e[r-1].slice(1).toString();)e.pop();1===e.length&&t&&(e.length=0)}function m(e,t){for(var r,n=[],a=[],i=e.length,o=0,s=0,l=0,c=0,u=t-i;u>=0;)o=e.length-1,e.push(e.slice(o)[0]),--u;for(i=e.length,o=0;o<=t;++o)a.push(Math.round(o/t*i));for(o=0,r=a.length-1;o<r;++o)n.push(e.slice(a[o],a[o+1])),"M"!==n[o][0][0]&&"m"!==n[o][0][0]&&(l=n[o-1].length-1,s=n[o-1][l][1],c=n[o-1][l][2],n[o].unshift(["M",s,c]));return n}for(s=i.length;s--;)d(i[s],s),i[s].length||i.pop();for(s=o.length;s--;)d(o[s],s),o[s].length||o.pop();for(function(e){var t,r=[],n=[],a=[],s=0,l=!0;if(0!==e){for(e>0?(r=o,l=!1):(e=-e,r=i),s=0,t=r.length;s<t;++s)n.push(1);for(;e--;)--s<0&&(s=t-1),n[s]++;for(s=0;s<t;++s)1===n[s]?a.push(r[s]):a.push.apply(a,m(r[s],n[s]));l?i=a:o=a}}(i.length-o.length),l=Math.max(i.length,o.length),s=0;s<l;++s)r=Ht(f(i[s]),f(o[s])),i[s]=r[0],o[s]=r[1];for(s=0,l=i.length;s<l;++s)n=n.concat(i[s]);for(s=0,l=o.length;s<l;++s)a=a.concat(o[s]);return[n,a]}function Ht(e,t){var r,n,a,i=0,o=[],s=[];function l(e,t){var r,n,a,i,o=0,s={},l=[],c=[],u=0,h=Math.round;for((r=document.createElementNS("http://www.w3.org/2000/svg","path")).setAttribute("d",e),(n=document.createElementNS("http://www.w3.org/2000/svg","path")).setAttribute("d",t),a=r.getTotalLength(),i=n.getTotalLength(),u=.15*Math.max(a,i),(!(u=Math.ceil(u))||!isFinite(u)||u<10)&&(u=10),o=0;o<=u;++o)s=r.getPointAtLength(o/u*a),l.push([o?U:"M",h(s.x),h(s.y)]),s=n.getPointAtLength(o/u*i),c.push([o?U:"M",h(s.x),h(s.y)]);return[l,c]}for(e&&"M  "!==e||(e=t.split(g).slice(0,3).join(g).replace(/[LC]/,p)),t&&"M  "!==t||(t=e.split(g).slice(0,3).join(g).replace(/[LC]/,p)),n=function(e,t){var r,n,a,i,o=0,s=0,l=0,c=0,u={},h={},f=[],d=[],m=-1,v=-1,b=!0;function y(e){var t,r=0;for(r=0,t=(e=e.split(/[MCLmcl]/).slice(1)).length;r<t;++r)e[r]=e[r].split(g).slice(1),r||e[r].unshift("M"),r&&(2===e[r].length&&e[r].unshift(U)||e[r].unshift("C"));return e}function x(e,t){var r,n,a=0,i=e.length;for(a=0,i=e.length;a<i;++a)r=e[a].join(g),"C"===(n=e[a])[0]&&n[3]===n[5]&&n[4]===n[6]?e[a].stringValue=[U,n[3],n[4]].join(g):n.stringValue=r,t[n.stringValue]&&t[n.stringValue].push(a),t[n.stringValue]||(t[n.stringValue]=[a])}function w(e,t,r,n,a){for(var i,o=r,s=0,l=0;o<n;++o)if(i=t[e[o].stringValue])for(s=0,l=i.length;s<l;++s)if(i[s]>=a)return{index:o,mapValue:i[s],diff:o-r};return-1}function _(e){var t=e.length-1;return["M",e[t-1],e[t]].join(g)}function S(e){return e.join(p)}for(e=y(e),t=y(t),x(e,u),x(t,h),r=e.length,n=t.length,o=0,s=0;o<r&&s<n;){if(++v,f[++m]=[],d[v]=[],b=e[o].stringValue===t[s].stringValue,o&&(f[m].push(_(e[o-1])),d[v].push(_(t[s-1]))),b)for(;o<r&&s<n&&e[o].stringValue===t[s].stringValue;)f[m].push(e[o].stringValue),d[v].push(t[s].stringValue),++o,++s;else{for(a=w(e,h,o,r,s),i=w(t,u,s,n,o),l=a.index,c=a.mapValue,(!~a||a.diff>i.diff)&&(l=i.mapValue,c=i.index),~a||~i||(l=r-1,c=n-1);o<=l;)f[m].push(e[o].stringValue),++o;for(;s<=c;)d[v].push(t[s].stringValue),++s}f[m]=S(f[m]),d[v]=S(d[v])}if(o<r){for(f[++m]=[],f[m].push(_(e[o-1])),d[++v]=[],d[v].push(_(t[s-1]));o<r;)f[m].push(e[o].stringValue),++o;f[m]=S(f[m])}if(s<n){for(f[++m]=[],f[m].push(_(e[o-1])),d[++v]=[],d[v].push(_(t[s-1]));s<n;)d[v].push(t[s].stringValue),++s;d[v]=S(d[v])}return[f,d]}(e,t),i=0,r=n[0].length;i<r;++i)a=l(n[0][i],n[1][i]),i?(o=o.concat(a[0].slice(1)),s=s.concat(a[1].slice(1))):(o=o.concat(a[0]),s=s.concat(a[1]));return[o,s]}function qt(e,t,r,n,a,o,s,l){r=Z(r);var u,h,f,d,p,g,v,y,w=e.ms,_={},k={},A={};if(null!==t.type){if((l=l||{}).hookFn&&l.hookFn.call(t),l.from=l.from||{},n)for(E=0,L=Ot.length;E<L;E++){var N=Ot[E];if(N.el.id===t.id&&N.anim===e){N.percent!=r?(delete N.el.e,delete N.el,Ot.splice(E,1),f=1):h=N,t.attr(N.totalOrigin);break}}else n=+k;for(var E=0,L=e.percents.length;E<L;E++){if(e.percents[E]===r||e.percents[E]>n*e.top){r=e.percents[E],p=e.percents[E-1]||0,w=w/e.top*(r-p),d=e.percents[E+1],u=e.anim[r];break}n&&t.attr(e.anim[e.percents[E]])}if(u){if(h)h.initstatus=n,h.start=new Date-h.ms*n;else{for(var M in u)if(u[m](M))if(Ne[m](M)||t.ca[M]){switch(_[M]=l.from[M]||t.attr(M),null==_[M]&&(_[M]=Ae[M]),k[M]=u[M],y=!1,Ne[M]){case"number":((v=k[M]-_[M])||isNaN(v))&&(y=!0),A[M]=v/w;break;case"colour":if(_[M]===k[M])break;y=!0;var F=zt(_[M],k[M],c.getRGB);_[M]=F[0];var T=F[1];if(typeof T===x)_[M].toLowerCase()!==C?(_[M]=c.getRGB(_[M]),_[M].opacity||(_[M].opacity=1)):_[M]={r:0,g:0,b:0,opacity:0},k[M].toLowerCase()!==C?(T=c.getRGB(k[M])).opacity||(T.opacity=1):T={r:0,g:0,b:0,opacity:0},A[M]={r:(T.r-_[M].r)/w,g:(T.g-_[M].g)/w,b:(T.b-_[M].b)/w,opacity:(T.opacity-_[M].opacity)/w};else for(A[M]=[],E=0,L=_[M].length;E<L;++E)0===E?A[M].push(T[0]):A[M].push({r:(T[E].r-_[M][E].r)/w,g:(T[E].g-_[M][E].g)/w,b:(T[E].b-_[M][E].b)/w,opacity:(T[E].opacity-_[M][E].opacity)/w});break;case"path":var D,I=ot(_[M],k[M]);for(l.smartMorph&&(I=Ut(I[0],I[1])),D=I[1],_[M]=I[0],A[M]=[],E=0,L=_[M].length;E<L;E++){var O;A[M][E]=[0],O=_[M][E]?_[M][E].length:0;for(var P=1;P<O;P++)A[M][E][P]=(D[E][P]-_[M][E][P])/w,!y&&A[M][E][P]&&(y=!0)}break;case"transform":var R=t._,j=ut(R[M],k[M]);if(y=!0,j)for(_[M]=j.from,k[M]=j.to,A[M]=[],A[M].real=!0,E=0,L=_[M].length;E<L;E++)for(A[M][E]=[_[M][E][0]],P=1,O=_[M][E].length;P<O;P++)A[M][E][P]=(k[M][E][P]-_[M][E][P])/w;else{var B=t.matrix||new ht,V={_:{transform:R.transform},getBBox:function(){return t.getBBox(1)}};_[M]=[B.a,B.b,B.c,B.d,B.e,B.f],lt(V,k[M]),k[M]=V._.transform,A[M]=[(V.matrix.a-B.a)/w,(V.matrix.b-B.b)/w,(V.matrix.c-B.c)/w,(V.matrix.d-B.d)/w,(V.matrix.e-B.e)/w,(V.matrix.f-B.f)/w]}break;case"csv":var z=J(u[M])[S](ge),U=J(_[M])[S](ge);if("clip-rect"===M)for(_[M]=U,A[M]=[],E=U.length;E--;)((v=z[E]-_[M][E])||isNaN(v))&&(y=!0),A[M][E]=v/w;k[M]=z;break;default:for(z=[][b](u[M]),U=[][b](_[M]),A[M]=[],E=t.ca[M].length;E--;)((v=(z[E]||0)-(U[E]||0))||isNaN(v))&&(y=!0),A[M][E]=v/w}y||(delete _[M],delete k[M],delete u[M],delete A[M])}else(c._availableAttrs[m](M)||"text"===M||t.ca[M])&&(t.attr(M,u[M]),delete u[M]);var H=u.easing,q=c.easing_formulas[H];if(!q)if((q=J(H).match(be))&&5===q.length){var G=q;q=function(e){return Bt(e,+G[1],+G[2],+G[3],+G[4],w)}}else q=Me;if(g=u.start||e.start||+new Date,t.e=N={anim:e,percent:r,timestamp:g,start:g+(e.del||0),status:0,initstatus:n||0,stop:!1,ms:w,easing:q,from:_,diff:A,to:k,el:t,callback:u.callback,prev:p,next:d,repeat:o||e.times,origin:t.attr(),totalOrigin:a,parentEl:s,delayend:l&&l.end,delaystart:l&&l.start},Ot.push(N),n&&!h&&!f&&(N.stop=!0,N.start=new Date-w*n,1===Ot.length))return Pt();f&&(N.start=new Date-N.ms*n),1===Ot.length&&(It||c.getAnimFrameFn())(Pt)}(0,i["default"])("raphael.anim.start."+t.id,t,e)}}}function Gt(e){var t;void 0===e&&(e=this);for(var r=0;r<Ot.length;r++)(t=Ot[r].el.paper)&&t!==e||Ot.splice(r--,1)}c.animation=function(e,t,r,n,a){if(e instanceof Vt)return e;!c.is(r,k)&&r||(n=n||r||null,r=null),!c.stopPartialEventPropagation&&(c.stopPartialEventPropagation=a),e=Object(e),t=+t||0;var i,o,s={};for(o in e)e[m](o)&&Z(o)!=o&&Z(o)+"%"!=o&&(i=!0,s[o]=e[o]);return n&&(i=!0),i?(r&&(s.easing=r),n&&(s.callback=n),new Vt({100:s},t)):new Vt(e,t)},_t.animate=function(e,t,r,n){if(this.removed)return n&&n.call(this),this;var a=e instanceof Vt?e:c.animation(e,t,r,n);return qt(a,this,a.percents[0],null,this.attr()),this},_t.status=function(e,t){var r,n,a=[],i=0;if(null!=t)return qt(e,this,-1,re(t,1)),this;for(r=Ot.length;i<r;i++)if((n=Ot[i]).el.id===this.id&&(!e||n.anim===e)){if(e)return n.status;a.push({anim:n.anim,status:n.status})}return e?0:a},_t.pause=function(e,t){var r,n,a=+new Date;for(n=0;n<Ot.length;n++)!((r=Ot[n]).el.id===this.id||t&&r.parentEl&&r.parentEl.e.el&&r.parentEl.e.el.id===this.id)||e&&r.anim!==e||!1!==(0,i["default"])("raphael.anim.pause."+this.id,this,r.anim)&&(r.paused=!0,r.pauseStart=a);return this},_t.resume=function(e,t){var r,n,a=+new Date;for(n=0;n<Ot.length;n++)!((r=Ot[n]).el.id===this.id||t&&r.parentEl&&r.parentEl.e.el&&r.parentEl.e.el.id===this.id)||e&&r.anim!==e||!1!==(0,i["default"])("raphael.anim.resume."+this.id,this,r.anim)&&(delete r.paused,r.el.status(r.anim,r.status),r.pauseEnd=a,r.start+=(r.parentEl&&r.parentEl.e.pauseEnd||r.pauseEnd)-(r.parentEl&&r.parentEl.e.pauseStart||r.pauseStart)||0);return this},_t.stop=function(e,t,r){var n,a;if(t)for(o=Ot.length-1;o>=0;o--)!((n=Ot[o]).el.id===this.id||n.parentEl&&n.parentEl.id===this.id)||e&&Ot[o].anim!==e||(a=n.el,r&&a.attr(n.to),n.callback&&n.callback.call(a),delete a.e,delete n.el,Ot.splice(o,1));else for(var o=0;o<Ot.length;o++)(n=Ot[o]).el.id!==this.id||e&&n.anim!==e||!1!==(0,i["default"])("raphael.anim.stop."+this.id,this,n.anim)&&Ot.splice(o--,1);return this.animElements&&function(e){var t;for(;t=e.deq();)(t=t.executeOb).hookFn&&t.hookFn.call(t.el),t.el.attr(t.attrs),t.callback&&t.callback.call(t.el)}(this.animElements),this},i["default"].on("raphael.remove",Gt),i["default"].on("raphael.clear",Gt),_t.toString=function(){return"Raphaël’s object"},_t.toFront=function(){if(this.removed)return this;var e,t,r,n=this,a=c._engine.getNode(n),i=n.parent,o=n.followers;for(c._tofront(n,i)&&i.canvas.appendChild(a),t=0,r=o.length;t<r;t++)(e=o[t]).stalk&&e.el[e.stalk](n);return n},_t.toBack=function(){if(this.removed)return this;var e,t,r,n=this,a=c._engine.getNode(n),i=n.parent,o=n.followers;for(c._toback(n,i)&&i.canvas.insertBefore(a,i.canvas.firstChild),t=0,r=o.length;t<r;t++)(e=o[t]).stalk&&e.el[e.stalk](n);return n},_t.insertAfter=function(e){if(this.removed)return this;var t,r,n,a=this,i=c._engine.getNode(a),o=c._engine.getLastNode(e),s=e.parent.canvas,l=a.followers;for(o.nextSibling?s.insertBefore(i,o.nextSibling):s.appendChild(i),c._insertafter(a,e,a.parent,e.parent),r=0,n=l.length;r<n;r++)(t=l[r]).stalk&&t.el[t.stalk](e);return a},_t.insertBefore=function(e){if(this.removed)return this;var t,r,n,a=this,i=c._engine.getNode(a),o=c._engine.getNode(e),s=a.followers;for(e.parent.canvas.insertBefore(i,o),c._insertbefore(a,e,a.parent,e.parent),a.parent=e.parent,r=0,n=s.length;r<n;r++)(t=s[r]).stalk&&t.el[t.stalk](e);return this},_t.appendChild=function(e){if(this.removed||"group"!==this.type)return this;var t,r,n,a,i=this.followers;if(e.parent===this)return e.toFront(),this;for(r=c._engine.getNode(e),c._tear(e,e.parent),this.canvas.appendChild(r),e.parent=this,!this.bottom&&(this.bottom=e),e.prev=this.top,e.next=null,this.top&&(this.top.next=e),this.top=e,n=0,a=i.length;n<a;n++)(t=i[n]).stalk&&t.el[t.stalk](e);return this},_t.appendTo=function(e){return e.appendChild(this)},_t.removeChild=function(e){if(this.removed||"group"!==this.type||e.parent!==this)return this;var t=this,r=c._engine.getNode(e),n=t.paper;return c._tear(e,t),n.canvas.appendChild(r),t.parent=n,!n.bottom&&(n.bottom=t),t.prev=n.top,n.top&&(n.top.next=t),n.top=t,t.next=null,t},c.format=function(e,t){var r=(0,o.getArrayCopy)(arguments),n=c.is(t,w)?[0][b](t):r;return e&&c.is(e,x)&&n.length-1&&(e=e.replace(me,(function(e,t){return null==n[++t]?p:n[t]}))),e||p};var Wt=c.vml?.5:0;c.crispBound=(0,o.cacher)((function(e,t,r,n,a){var i,o={};return e=e||0,t=t||0,r=r||0,n=n||0,i=(a=a||0)%2/2+Wt,o.x=le(e+i)-i,o.y=le(t+i)-i,o.width=le(e+r+i)-i-o.x,o.height=le(t+n+i)-i-o.y,o["stroke-width"]=a,0===o.width&&0!==r&&(o.width=1),0===o.height&&0!==n&&(o.height=1),o}),c),_t.crisp=function(){var e,t=this,r=t.attrs,n=t.attr();for(e in n=c.crispBound(n.x,n.y,n.width,n.height,n["stroke-width"]))r[e]===n[e]&&delete n[e];return t.attr(n)},c.define=function(e,t,r,n,a,i){var s,l;if(c.is(e,w))for(s=0,l=e.length;s<l;s++)c.define(e[s]);else if(c.is(e,_))c.define(e.name,e[e.name],e.ca,e.fn,e.e,e.data);else if(e&&!c.fn[e])return c.fn[e]=function(){var i,s=(0,o.getArrayCopy)(arguments),l=t.apply(this,s);if(n&&c.is(n,_))for(i in n)l[i]=n[i];if(a&&c.is(a,_))for(i in a)l[i]&&l[i](a[i]);if(r){if(c.is(r,k))l.ca[e]=r;else for(i in r)l.ca[i]=r[i];l.ca[e]&&(c._lastArgIfGroup(s,!0),s.length&&(s[0][e]?l.attr.apply(l,s):l.attr(e,s[0])))}return l},r&&(c.fn[e].ca=r),n&&(c.fn[e].fn=n),a&&(c.fn[e].e=a),i&&(c.fn[e].data=i),c.fn[e]},function(e,t,r){null==e.readyState&&e.addEventListener&&(e.addEventListener("DOMContentLoaded",r=function(){e.removeEventListener("DOMContentLoaded",r,!1),e.readyState="complete"},!1),e.readyState="loading"),function n(){/in/.test(e.readyState)?setTimeout(n,9):c.eve("raphael.DOMload")}()}(T),i["default"].on("raphael.DOMload",(function(){u=!0})),c._preload=function(e,t){var r=F.doc,n=r.createElement("img");n.style.cssText="position:absolute;left:-9999em;top:-9999em",n.onload=function(){t.call(this),this.onload=null,r.body.removeChild(this)},n.onerror=function(){r.body.removeChild(this)},r.body.appendChild(n),n.src=e};var $t=c;t["default"]=$t}).call(this,r(6))},function(e,t,r){"use strict";(function(e){t.__esModule=!0,t["default"]=void 0;var n=r(257),a=function(e){var t,r,a="hasOwnProperty",i=/[\.\/]/,o=/\s*,\s*/,s=function(e,t){return e-t},l={n:{}},c=function(){for(var e=0,t=this.length;e<t;e++)if("undefined"!=typeof this[e])return this[e]},u=function(){for(var e=this.length;--e;)if("undefined"!=typeof this[e])return this[e]},h=Object.prototype.toString,f=String,d=Array.isArray||function(e){return e instanceof Array||"[object Array]"==h.call(e)};function p(e,a){var i,o=r,l=(0,n.getArrayCopy)(arguments),h=Array.prototype.slice.call(l,2),f=p.listeners(e),d=0,g=[],m={},v=[],b=t;v.firstDefined=c,v.lastDefined=u,t=e,r=0;for(var y=0,x=f.length;y<x;y++)"zIndex"in f[y]&&(g.push(f[y].zIndex),f[y].zIndex<0&&(m[f[y].zIndex]=f[y]));for(g.sort(s);g[d]<0;)if(i=m[g[d++]],v.push(i.apply(a,h)),r)return r=o,v;for(y=0;y<x;y++)if("zIndex"in(i=f[y]))if(i.zIndex==g[d]){if(v.push(i.apply(a,h)),r)break;do{if((i=m[g[++d]])&&v.push(i.apply(a,h)),r)break}while(i)}else m[i.zIndex]=i;else if(v.push(i.apply(a,h)),r)break;return r=o,t=b,v}return p._events=l,p.listeners=function(e){var t,r,n,a,o,s,c,u,h=d(e)?e:e.split(i),f=l,p=[f],g=[];for(a=0,o=h.length;a<o;a++){for(u=[],s=0,c=p.length;s<c;s++)for(r=[(f=p[s].n)[h[a]],f["*"]],n=2;n--;)(t=r[n])&&(u.push(t),g=g.concat(t.f||[]));p=u}return g},p.separator=function(e){e?(e="["+(e=f(e).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",i=new RegExp(e)):i=/[\.\/]/},p.on=function(e,t){if("function"!=typeof t)return function(){};for(var r=d(e)?d(e[0])?e:[e]:f(e).split(o),n=0,a=r.length;n<a;n++)!function(e){for(var r,n=d(e)?e:f(e).split(i),a=l,o=0,s=n.length;o<s;o++)a=(a=a.n).hasOwnProperty(n[o])&&a[n[o]]||(a[n[o]]={n:{}});for(a.f=a.f||[],o=0,s=a.f.length;o<s;o++)if(a.f[o]==t){r=!0;break}!r&&a.f.push(t)}(r[n]);return function(e){+e==+e&&(t.zIndex=+e)}},p.f=function(e){var t=(0,n.getArrayCopy)(arguments),r=[].slice.call(t,1);return function(){p.apply(null,[e,null].concat(r).concat([].slice.call(t,0)))}},p.stop=function(){r=1},p.nt=function(e){var r=d(t)?t.join("."):t;return e?new RegExp("(?:\\.|\\/|^)"+e+"(?:\\.|\\/|$)").test(r):r},p.nts=function(){return d(t)?t:t.split(i)},p.off=p.unbind=function(e,t){if(e){var r=d(e)?d(e[0])?e:[e]:f(e).split(o);if(r.length>1)for(var n=0,s=r.length;n<s;n++)p.off(r[n],t);else{r=d(e)?e:f(e).split(i);var c,u,h,g,m,v=[l],b=[];for(n=0,s=r.length;n<s;n++)for(g=0;g<v.length;g+=h.length-2){if(h=[g,1],c=v[g].n,"*"!=r[n])c[r[n]]&&(h.push(c[r[n]]),b.unshift({n:c,name:r[n]}));else for(u in c)c[a](u)&&(h.push(c[u]),b.unshift({n:c,name:u}));v.splice.apply(v,h)}for(n=0,s=v.length;n<s;n++)for(c=v[n];c.n;){if(t){if(c.f){for(g=0,m=c.f.length;g<m;g++)if(c.f[g]==t){c.f.splice(g,1);break}!c.f.length&&delete c.f}for(u in c.n)if(c.n[a](u)&&c.n[u].f){var y=c.n[u].f;for(g=0,m=y.length;g<m;g++)if(y[g]==t){y.splice(g,1);break}!y.length&&delete c.n[u].f}}else for(u in delete c.f,c.n)c.n[a](u)&&c.n[u].f&&delete c.n[u].f;c=c.n}e:for(n=0,s=b.length;n<s;n++){for(u in(c=b[n]).n[c.name].f)continue e;for(u in c.n[c.name].n)continue e;delete c.n[c.name]}}}else p._events=l={n:{}}},p.once=function(e,t){return p.on(e,(function r(){return p.off(e,r),t.apply(this,arguments)}))},p.version="0.5.3",p.toString=function(){return"You are running Eve 0.5.3"},p}("undefined"!=typeof window&&window);t["default"]=a}).call(this,r(6))},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(289)),i={extension:function(e){(0,a["default"])(e.getDep("redraphael","plugin"))},name:"redraphaelSvg",type:"plugin",requiresFusionCharts:!0};t["default"]=i},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=function(e){if(e.svg){var t="hasOwnProperty",r="vertical-align",a=!1,i=!1,o="function",s={visibility:"hidden","font-size":"0px"},l=String,c=parseFloat,u=parseInt,h={top:0,bottom:-1,middle:-.5},f=e._g.win.navigator,d=!!document.documentMode,p=Math,g=p.max,m=p.abs,v=p.pow,b=p.sqrt,y=/^xlink:/,x=/[, ]+/,w=/\n|<br\s*?\/?>/i,_=/&lt|&gt|&quot|&#039|&#034|<br/i,S=/&nbsp;|&#160;|&#xA0;/g,C=Array.prototype.shift,k=!(!/AppleWebKit/.test(f.userAgent)||/Chrome/.test(f.userAgent)&&!(f.appVersion.match(/Chrome\/(\d+)\./)[1]<29)),A=e.eve,N="",E=" ",L="http://www.w3.org/1999/xlink",M="http://www.w3.org/2000/svg",F=(!!f.platform&&/iPad|iPhone|iPod/.test(f.platform),{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"}),T={speed:"optimizeSpeed",crisp:"crispEdges",precision:"geometricPrecision"},D=f.userAgent.toLowerCase(),I=!(!(be=-1!=D.indexOf("msie")&&parseInt(D.split("msie")[1]))||9!==be),O=e.supportsPointer,P=e.supportsTouch,R={},j=function(t,r,n,a){e._preload(n[1],(function(){var e=this.offsetWidth,n=this.offsetHeight;re(t,{width:e,height:n}),re(r,{width:e,height:n}),a.safari()}))},B=function(e,t){if(t)for(var r in t)e[r]=t[r]},V={elementInfo:[]},z=e._g.doc,U=(e._g.win,{mouseover:"touchstart",mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove",mouseout:"touchend"}),H=function(e,t){var r,n,a,i=[],o=[],s=0,l=Q(/<under>/g,/<\/under>/g,e,"<under>","</under>"),c=Q(/<bold>/g,/<\/bold>/g,e,"<bold>","</bold>"),u=Q(/<em>/g,/<\/em>/g,e,"<em>","</em>"),h=Q(/<strike>/g,/<\/strike>/g,e,"<strike>","</strike>"),f=Q(/<sub>/g,/<\/sub>/g,e,"<sub>","</sub>"),d=Q(/<sup>/g,/<\/sup>/g,e,"<sup>","</sup>"),p=Y(/<abbr[\s]+([^>]+)>/g,/<\/abbr>/g,e,"<abbr>","</abbr>"),g=Z(/<a[\s]+([^>]+)>/g,/<\/a>/g,e,"<a>","</a>"),m=J(/<span[\s]+([^>]+)>/g,/<\/span>/g,e,"<span>","</span>");if((a=X(l,c,u,h,f,d,p,g,m)).length){for(a[0].index>s&&(n=e.substring(s,a[0].index),o=W(o,n,i,t,a),s=a[0].index+a[0].tagName.length),r=0;r<a.length;r++)void 0!==a[r+1]&&(i=G(i,a[r]),n=0===s&&0===a[r].index?e.substring(s+a[r].tagName.length,a[r+1].index):e.substring(s,a[r+1].index),o=W(o,n,i,a[r],t,a),s=a[r+1].index+a[r+1].tagName.length);s<e.length&&(n=e.substring(s,e.length),o=W(o,n,[],t,a))}return o},q={"<bold>":{action:"add",tagAttr:"font-weight",tagAttrVal:"bold"},"</bold>":{action:"remove",actionTag:"<bold>"},"<under>":{action:"add",tagAttr:"text-decoration",tagAttrVal:"underline"},"</under>":{action:"remove",actionTag:"<under>"},"<em>":{action:"add",tagAttr:"font-style",tagAttrVal:"italic"},"</em>":{action:"remove",actionTag:"<em>"},"<strike>":{action:"add",tagAttr:"text-decoration",tagAttrVal:"line-through"},"</strike>":{action:"remove",actionTag:"<strike>"},"<sub>":{action:"add",tagAttr:"baseline-shift",tagAttrVal:"sub"},"</sub>":{action:"remove",actionTag:"<sub>"},"<sup>":{action:"add",tagAttr:"baseline-shift",tagAttrVal:"super"},"</sup>":{action:"remove",actionTag:"<sup>"},"<abbr>":{action:"add",tagAttr:"text-decoration",tagAttrVal:"underline"},"</abbr>":{action:"remove",actionTag:"<abbr>"},"<a>":{action:"add"},"</a>":{action:"remove",actionTag:"<a>"},"<span>":{action:"add"},"</span>":{action:"remove",actionTag:"<span>"}},G=function(e,t){var r,n;if(t.tagName.match(/<abbr[\s]+([^>]+)>/g))n=$({tag:"<abbr>",sortedIndex:t}),e.push(n);else if(t.tagName.match(/<a[\s]+([^>]+)>/g))n=$({tag:"<a>",sortedIndex:t}),e.push(n);else if(t.tagName.match(/<span[\s]+([^>]+)>/g))n=$({tag:"<span>",sortedIndex:t}),e.push(n);else if("add"===q[t.tagName].action)n=$({tag:t.tagName,sortedIndex:t}),e.push(n);else if("remove"===q[t.tagName].action)for(r=e.length-1;r>=0;r--)if(e[r].tag===q[t.tagName].actionTag){e.splice(r,1);break}return e},W=function(t,r,o,s,l,c){var u,h,f,p,g=e._g.doc.createTextNode(r),m={},v=!1,b=!1,y=!1,x="";if((d||n.isFirefox)&&(i&&(m.dy=-6,i=!1),a&&(m.dy=6,a=!1)),o.length){for(p=0;p<o.length;p++)"<abbr>"===o[p].tag?(b=!0,x=o[p].sortedIndex.title):"<a>"===o[p].tag?(v=!0,""!==o[p].href&&(m.href=o[p].sortedIndex.href),""!==s.target&&(m.target=o[p].sortedIndex.target),""!==s.hreflang&&(m.hreflang=o[p].sortedIndex.hreflang),""!==s.referrerpolicy&&(m.referrerpolicy=o[p].sortedIndex.referrerpolicy),""!==s.rel&&(m.rel=o[p].sortedIndex.rel),h=re("a",m)):"<span>"===o[p].tag&&(y=!0,u=o[p].sortedIndex.style),q[o[p].tag].tagAttr&&q[o[p].tag].tagAttrVal&&((d||n.isFirefox)&&("<sup>"===o[p].tag?(m.dy=-6,a=!0):"<sub>"===o[p].tag&&(m.dy=6,i=!0)),m[q[o[p].tag].tagAttr]=q[o[p].tag].tagAttrVal);v?""!==r&&((f=re("tspan",m)).appendChild(g),h.appendChild(f),t.push(h),v=!1):b?""!==r&&((f=re("tspan",m)).appendChild(g),l.push({tspan:f,title:x}),t.push(f)):y?""!==r&&(m=$(m,u),(f=re("tspan",m)).appendChild(g),t.push(f)):""!==r&&((f=re("tspan",m)).appendChild(g),t.push(f))}else(f=re("tspan",m)).appendChild(g),t.push(f);return t},$=function ye(e,t){for(var r in t)try{t[r].constructor==Object?e[r]=ye(e[r],t[r]):e[r]=t[r]}catch(n){e[r]=t[r]}return e},X=function(e,t,r,n,a,i,o,s,l){var c,u,h=[e,t,r,n,a,i,o,s,l],f=[];for(u=0;u<h.length;u++)for(var d in h[u])if(h[u][d].length)for(c=0;c<h[u][d].length;c++)f.push(h[u][d][c]);return f=f.sort((function(e,t){return e.index-t.index}))},Y=function(e,t,r,n,a){for(var i,o,s,l,c=[],u=[];i=e.exec(r);)o=document.createElement("p"),s=i[0]+"Dummy</abbr>",o.innerHTML=s,l=o.childNodes[0]?o.childNodes[0].title:"",c.push({tagName:i[0],index:i.index,title:l||""});for(;i=t.exec(r);)u.push({tagName:a,index:i.index});return{tag:c,endtag:u}},K=function(e){var t={};if(!e||!e.style||!e.style.cssText)return t;for(var r=e.style.cssText.split(";"),n=0;n<r.length;++n){var a=r[n].trim();if(a){var i=a.split(":");t[i[0].trim().replace(/(?:^|[-])(\w)/g,(function(e,t){return(t="-"===e.substr(0,1)?t.toUpperCase():t)||""}))]=i[1].trim()}}return t},J=function(e,t,r,n,a){for(var i,o,s,l,c=[],u=[];i=e.exec(r);)o=document.createElement("p"),s=i[0]+"Dummy</span>",o.innerHTML=s,l=K(o.childNodes[0]),c.push({tagName:i[0],index:i.index,style:l||""});for(;i=t.exec(r);)u.push({tagName:a,index:i.index});return{tag:c,endtag:u}},Z=function(e,t,r,n,a){for(var i,o,s,l,c=[],u=[];i=e.exec(r);)o=document.createElement("p"),s=i[0]+"</a>",o.innerHTML=s,l=!!encodeURIComponent(o.childNodes[0].href).match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&=]*)/g),c.push({tagName:i[0],index:i.index,href:l?o.childNodes[0].href:"",target:o.childNodes[0].target?o.childNodes[0].target:"",hreflang:o.childNodes[0].hreflang?o.childNodes[0].hreflang:"",referrerpolicy:o.childNodes[0].referrerpolicy?o.childNodes[0].referrerpolicy:"",rel:o.childNodes[0].rel?o.childNodes[0].rel:""});for(;i=t.exec(r);)u.push({tagName:a,index:i.index});return{tag:c,endtag:u}},Q=function(e,t,r,n,a){for(var i,o=[],s=[];i=e.exec(r);)o.push({tagName:n,index:i.index});for(;i=t.exec(r);)s.push({tagName:a,index:i.index});return{tag:o,endtag:s}},ee={"accent-height":!0,accumulate:!0,additive:!0,"alignment-baseline":!0,alphabetic:!0,amplitude:!0,"arabic-form":!0,ascent:!0,azimuth:!0,"baseline-shift":!0,bbox:!0,begin:!0,bias:!0,by:!0,"cap-height":!0,"class":!0,clip:!0,"clip-path":!0,"clip-rule":!0,color:!0,"color-interpolation":!0,"color-interpolation-filters":!0,"color-profile":!0,"color-rendering":!0,cursor:!0,cx:!0,cy:!0,d:!0,decelerate:!0,descent:!0,direction:!0,display:!0,divisor:!0,"dominant-baseline":!0,dur:!0,dx:!0,dy:!0,elevation:!0,"enable-background":!0,end:!0,exponent:!0,fill:!0,"fill-opacity":!0,"fill-rule":!0,filter:!0,"flood-color":!0,"flood-opacity":!0,"font-family":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-variant":!0,"font-weight":!0,format:!0,fr:!0,from:!0,fx:!0,fy:!0,g1:!0,g2:!0,"glyph-name":!0,"glyph-orientation-horizontal":!0,"glyph-orientation-vertical":!0,hanging:!0,height:!0,"horiz-adv-x":!0,"horiz-origin-x":!0,href:!0,hreflang:!0,id:!0,ideographic:!0,"image-rendering":!0,in2:!0,"in":!0,intercept:!0,k1:!0,k2:!0,k3:!0,k4:!0,k:!0,kerning:!0,lang:!0,"letter-spacing":!0,"lighting-color":!0,local:!0,"marker-end":!0,"marker-mid":!0,"marker-start":!0,mask:!0,mathematical:!0,max:!0,media:!0,method:!0,min:!0,mode:!0,name:!0,offset:!0,opacity:!0,operator:!0,order:!0,orient:!0,orientation:!0,origin:!0,overflow:!0,"overline-position":!0,"overline-thickness":!0,"paint-order":!0,"panose-1":!0,path:!0,ping:!0,"pointer-events":!0,points:!0,r:!0,radius:!0,rel:!0,"rendering-intent":!0,restart:!0,result:!0,rotate:!0,rx:!0,ry:!0,scale:!0,seed:!0,"shape-rendering":!0,slope:!0,spacing:!0,speed:!0,stemh:!0,stemv:!0,"stop-color":!0,"stop-opacity":!0,"strikethrough-position":!0,"strikethrough-thickness":!0,string:!0,stroke:!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-miterlimit":!0,"stroke-opacity":!0,"stroke-width":!0,style:!0,tabindex:!0,target:!0,"text-anchor":!0,"text-decoration":!0,"text-rendering":!0,to:!0,transform:!0,type:!0,u1:!0,u2:!0,"underline-position":!0,"underline-thickness":!0,unicode:!0,"unicode-bidi":!0,"unicode-range":!0,"units-per-em":!0,"v-alphabetic":!0,"v-hanging":!0,"v-ideographic":!0,"v-mathematical":!0,values:!0,"vector-effect":!0,version:!0,"vert-adv-y":!0,"vert-origin-x":!0,"vert-origin-y":!0,visibility:!0,width:!0,widths:!0,"word-spacing":!0,"writing-mode":!0,x1:!0,x2:!0,x:!0,"x-height":!0,"xlink:actuate":!0,"xlink:arcrole":!0,"xlink:href":!0,"xlink:role":!0,"xlink:show":!0,"xlink:title":!0,"xlink:type":!0,"xml:base":!0,"xml:lang":!0,"xml:space":!0,y1:!0,y2:!0,y:!0,z:!0};P&&z.addEventListener(O?"pointerover":"touchstart",(function(e){if(V.srcElement&&V.srcElement!==(e.srcElement||e.target)){var t,r,n,a=(t=V.elementInfo).length;for(n=0;n<a;n++)(r=t[n]).callback.call(r.el,e)}V={elementInfo:[]}}),!0),e.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version},e._url=N;var te=function(e,t,r){void 0===r&&(r="fill");var n="fill"===r?e.gradient:e["stroke-gradient"];if(n){if(n===t)return;n.refCount--,n.refCount||n.parentNode.removeChild(n),"fill"===r?delete e.gradient:delete e["stroke-gradient"]}t&&("fill"===r?e.gradient=t:e["stroke-gradient"]=t,t.refCount++)},re=e._createNode=function(t,r){var n,a;if("string"==typeof t&&(t=e._g.doc.createElementNS(M,t)),r)for(n in r)a=I?l(r[n]):r[n],y.test(n)?t.setAttributeNS(L,n.replace(y,N),a):t.setAttribute(n,a);return t},ne={userSpaceOnUse:"userSpaceOnUse",objectBoundingBox:"objectBoundingBox"},ae={pad:"pad",redlect:"reflect",repeat:"repeat"},ie=function(t,r,n){var a;if(void 0===n&&(n="fill"),!t.paper||!t.paper.defs)return 0;var i,o,s,u,h,f,d="linear",y=t.paper,x=e.getElementID((y.id+"-"+r).replace(/[()\s%:,\xb0#]/g,"_")),w=.5,_=.5,S=t.node,C=S.style,k=e._g.doc.getElementById(x);if(!k){if(r=(r=l(r).replace(e._radial_gradient,(function(e,t){d="radial",t=t?t.split(","):[],u=t[5],h=t[6];var r,n,a=t[0],l=t[1],f=t[2],p=t[3],g=t[4],m=a&&l;return f&&(i=/%/.test(f)?f:c(f)),u===ne.userSpaceOnUse?(m&&(w=a,_=l),p&&g&&(o=p,s=g,m||(w=o,_=s)),N):(m&&(w=c(a),r=2*((_=c(l))>.5)-1,(n=v(w-.5,2))+v(_-.5,2)>.25&&n<.25&&(_=b(.25-n)*r+.5)&&.5!==_&&(_=_.toFixed(5)-1e-5*r)),p&&g&&(o=c(p),r=2*((s=c(g))>.5)-1,(n=v(o-.5,2))+v(s-.5,2)>.25&&n<.25&&(s=b(.25-n)*r+.5)&&.5!==s&&(s=s.toFixed(5)-1e-5*r),m||(w=o,_=s)),N)}))).split(/\s*-\s*/),"linear"===d){var A,E=r.shift(),L=E.match(/\((.*)\)/);if(L=L&&L[1]&&L[1].split(/\s*,\s*/),E=-c(E),isNaN(E))return null;L&&L.length?(L[0]in ne?(u=L.shift(),L[0]in ae&&(h=L.shift())):(L[4]&&(u=L[4]),L[5]&&(h=L[5])),f=[L[0]||"0%",L[1]||"0%",L[2]||"100%",L[3]||"0%"]):(f=[0,0,p.cos(e.rad(E)),p.sin(e.rad(E))],A=1/(g(m(f[2]),m(f[3]))||1),f[2]*=A,f[3]*=A,f[2]<0&&(f[0]=-f[2],f[2]=0),f[3]<0&&(f[1]=-f[3],f[3]=0))}var M=e._parseDots(r);if(!M)return null;(k=re(d+"Gradient",{id:x})).refCount=0,u in ne&&k.setAttribute("gradientUnits",l(u)),h in ae&&k.setAttribute("spreadMethod",l(h)),"radial"===d?(i!==undefined&&k.setAttribute("r",l(i)),o!==undefined&&s!==undefined&&(k.setAttribute("cx",l(o)),k.setAttribute("cy",l(s))),k.setAttribute("fx",l(w)),k.setAttribute("fy",l(_))):re(k,{x1:f[0],y1:f[1],x2:f[2],y2:f[3]});for(var F=0,T=M.length;F<T;F++)k.appendChild(re("stop",{offset:M[F].offset?M[F].offset:F?"100%":"0%","stop-color":M[F].color||"#fff","stop-opacity":M[F].opacity===undefined?1:M[F].opacity}));y.defs.appendChild(k)}return te(t,k,n),re(S,((a={})[n]="url('"+e._url+"#"+x+"')",a[n+"-opacity"]=1,a)),C.fill=N,1},oe=function(e){var t=e.getBBox(1);re(e.pattern,{patternTransform:e.matrix.invert()+" translate("+t.x+","+t.y+")"})},se=function(r,n,a){if("path"==r.type){for(var i,o,s,c,u,h=l(n).toLowerCase().split("-"),f=r.paper,d=a?"end":"start",p=r.node,g=r.attrs,m=g["stroke-width"],v=h.length,b="classic",y=3,x=3,w=5;v--;)switch(h[v]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":b=h[v];break;case"wide":x=5;break;case"narrow":x=2;break;case"long":y=5;break;case"short":y=2}if("open"==b?(y+=2,x+=2,w+=2,s=1,c=a?4:1,u={fill:"none",stroke:g.stroke}):(c=s=y/2,u={fill:g.stroke,stroke:"none"}),r._.arrows?a?(r._.arrows.endPath&&R[r._.arrows.endPath]--,r._.arrows.endMarker&&R[r._.arrows.endMarker]--):(r._.arrows.startPath&&R[r._.arrows.startPath]--,r._.arrows.startMarker&&R[r._.arrows.startMarker]--):r._.arrows={},"none"!=b){var _="raphael-marker-"+b,S="raphael-marker-"+d+b+y+x+"-obj"+r.id;e._g.doc.getElementById(_)?R[_]++:(f.defs.appendChild(re(re("path"),{"stroke-linecap":"round",d:F[b],id:_})),R[_]=1);var C,k=e._g.doc.getElementById(S);k?(R[S]++,C=k.getElementsByTagName("use")[0]):(k=re(re("marker"),{id:S,markerHeight:x,markerWidth:y,orient:"auto",refX:c,refY:x/2}),C=re(re("use"),{"xlink:href":"#"+_,transform:(a?"rotate(180 "+y/2+" "+x/2+") ":N)+"scale("+y/w+","+x/w+")","stroke-width":(1/((y/w+x/w)/2)).toFixed(4)}),k.appendChild(C),f.defs.appendChild(k),R[S]=1),re(C,u);var A=s*("diamond"!=b&&"oval"!=b);a?(i=r._.arrows.startdx*m||0,o=e.getTotalLength(g.path)-A*m):(i=A*m,o=e.getTotalLength(g.path)-(r._.arrows.enddx*m||0)),(u={})["marker-"+d]="url('"+e._url+"#"+S+"')",(o||i)&&(u.d=e.getSubpath(g.path,i,o)),re(p,u),r._.arrows[d+"Path"]=_,r._.arrows[d+"Marker"]=S,r._.arrows[d+"dx"]=A,r._.arrows[d+"Type"]=b,r._.arrows[d+"String"]=n}else a?(i=r._.arrows.startdx*m||0,o=e.getTotalLength(g.path)-i):(i=0,o=e.getTotalLength(g.path)-(r._.arrows.enddx*m||0)),r._.arrows[d+"Path"]&&re(p,{d:e.getSubpath(g.path,i,o)}),delete r._.arrows[d+"Path"],delete r._.arrows[d+"Marker"],delete r._.arrows[d+"dx"],delete r._.arrows[d+"Type"],delete r._.arrows[d+"String"];for(u in R)if(R[t](u)&&!R[u]){var E=e._g.doc.getElementById(u);E&&E.parentNode.removeChild(E)}}},le={"":["none"],none:["none"],"-":[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]},ce=function(t,r,n){if(r!==undefined){var a,i,o,s,l,c=le[r.toLowerCase&&r.toLowerCase()];if(r=c||[].concat(r),e.is(r,"array")){if(o={round:i=n["stroke-width"]||t.attrs["stroke-width"]||1,square:i,butt:0}[n["stroke-linecap"]||t.attrs["stroke-linecap"]]||0,s=r.length,l=c?i:1,"none"===r[0])a=r;else for(a=[];s--;)a[s]=r[s]*l+(s%2?1:-1)*o,a[s]<=0&&(a[s]=.01+(i<=1?o:0)),isNaN(a[s])&&(a[s]=0);return{"stroke-dasharray":a.join(",")}}}},ue=e._setFillAndStroke=function(r,a){if(r.paper.canvas){var i,o,s,c,h,f,d=r.node,p=r.attrs,v=r.paper,b={},y={},w={"clip-rect":!0};for(o in"image"===r.type&&(0,n.loadRefImage)(r,a),a)if(o in e._availableAttrs)if((s=a[o])===N&&o in p)delete p[o],d.removeAttribute("src"===o?"href":o);else if(null!==s||w[o])switch(p[o]=s,o){case"blur":r.blur(s);break;case"href":case"title":case"target":var _=d.parentNode;if("a"!==_.tagName.toLowerCase()){if(s===N)break;var S=re("a");S.raphael=!0,S.raphaelid=d.raphaelid,_.insertBefore(S,d),S.appendChild(d),_=S}"target"===o?_.setAttributeNS(L,"show","blank"===s?"new":s):_.setAttributeNS(L,o,s),d.titleNode=_;break;case"cursor":y.cursor=s;break;case"transform":r.transform(s);break;case"rotation":e.is(s,"array")?r.rotate.apply(r,s):r.rotate(s);break;case"arrow-start":se(r,s);break;case"arrow-end":se(r,s,1);break;case"clip-path":c=!0;case"clip-rect":if(f=!c&&l(s).split(x),r._.clipispath=!!c,c||4===f.length){r.clip&&r.clip.parentNode.parentNode.removeChild(r.clip.parentNode);var C=re(c?"path":"rect");(i=re("clipPath")).id=e.getElementID(e.createUUID()),re(C,c?{d:s?p["clip-path"]=e._pathToAbsolute(s):e._availableAttrs.path,fill:"none"}:{x:f[0],y:f[1],width:f[2],height:f[3],transform:r.matrix.invert()}),i.appendChild(C),v.defs.appendChild(i),b["clip-path"]="url('"+e._url+"#"+i.id+"')",r.clip=C}if(!s){var A=d.getAttribute("clip-path");if(A){var E=e._g.doc.getElementById(A.replace(/(^url\(#|\)$)/g,N));E&&E.parentNode.removeChild(E),b["clip-path"]=N,11===document.documentMode&&d.removeAttribute("clip-path"),delete r.clip}}break;case"path":"path"===r.type&&(b.d=s?p.path=e._stopabsolutePath?e.sanitizePath(s):e._pathToAbsolute(s):e._availableAttrs.path,r._.dirty=1,r._.arrows&&("startString"in r._.arrows&&se(r,r._.arrows.startString),"endString"in r._.arrows&&se(r,r._.arrows.endString,1)));break;case"width":if(b[o]=s,r._.dirty=1,!p.fx)break;o="x",s=p.x;case"x":p.fx&&(s=-p.x-(p.width||0));case"rx":if("rx"===o&&"rect"===r.type)break;case"cx":b[o]=s,r.pattern&&oe(r),r._.dirty=1;break;case"height":if(b[o]=s,r._.dirty=1,!p.fy)break;o="y",s=p.y;case"y":if("text"===r.type)break;p.fy&&(s=-p.y-(p.height||0));case"ry":if("ry"===o&&"rect"===r.type)break;case"cy":b[o]=s,r.pattern&&oe(r),r._.dirty=1;break;case"r":"rect"===r.type?b.rx=b.ry=s:b[o]=s,r._.dirty=1;break;case"src":"image"===r.type&&d.setAttributeNS(L,"href",s);break;case"stroke-width":1===r._.sx&&1===r._.sy||(s/=g(m(r._.sx),m(r._.sy))||1),v._vbSize&&(s*=v._vbSize),k&&0===s&&(s=1e-6),b[o]=s,!a["stroke-dasharray"]&&p["stroke-dasharray"]&&""!==a["stroke-dasharray"]&&B(b,ce(r,p["stroke-dasharray"],a)),r._.arrows&&("startString"in r._.arrows&&e.addArrow&&e.addArrow(r,r._.arrows.startString),"endString"in r._.arrows&&e.addArrow&&e.addArrow(r,r._.arrows.endString,1));break;case"stroke-dasharray":B(b,ce(r,s,a));break;case"fill":if(e._ISURL.test(s)){h=s.split(e._ISURL),i=re("pattern");var M=re("image");i.id=e.getElementID(e.createUUID()),re(i,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),re(M,{x:0,y:0,"xlink:href":h[1]}),i.appendChild(M),j(i,M,h,v),v.defs.appendChild(i),b.fill="url('"+e._url+h[1]+"')",r.pattern=i,r.pattern&&oe(r);break}var F=e.getRGB(s);if(F.error){if(("circle"===r.type||"ellipse"===r.type||"r"!==l(s).charAt())&&ie(r,s)){p.gradient=s;break}}else delete a.gradient,delete p.gradient,!e.is(p["fill-opacity"],"undefined")&&e.is(a["fill-opacity"],"undefined")&&(b["fill-opacity"]=p["fill-opacity"]),r.gradient&&te(r);F[t]("opacity")?(b["fill-opacity"]=F.opacity>1?F.opacity/100:F.opacity,r._.fillOpacityDirty=!0):r._.fillOpacityDirty&&e.is(p["fill-opacity"],"undefined")&&e.is(a["fill-opacity"],"undefined")&&(d.removeAttribute("fill-opacity"),delete r._.fillOpacityDirty);case"stroke":(F=e.getRGB(s)).error?"circle"!==r.type&&"ellipse"!==r.type&&"r"===l(s).charAt()||ie(r,s,"stroke"):(b[o]=F.hex,te(r,void 0,o)),"stroke"===o&&(F[t]("opacity")?(b["stroke-opacity"]=F.opacity>1?F.opacity/100:F.opacity,r._.strokeOpacityDirty=!0):r._.strokeOpacityDirty&&e.is(p["stroke-opacity"],"undefined")&&e.is(a["stroke-opacity"],"undefined")&&(d.removeAttribute("stroke-opacity"),delete r._.strokeOpacityDirty),r._.arrows&&("startString"in r._.arrows&&se(r,r._.arrows.startString),"endString"in r._.arrows&&se(r,r._.arrows.endString,1)));break;case"gradient":("circle"===r.type||"ellipse"===r.type||"r"!==l(s).charAt())&&ie(r,s);break;case"visibility":"hidden"===s?r.hide():r.show();break;case"opacity":s=s>1?s/100:s,b.opacity=s;break;case"fill-opacity":s=s>1?s/100:s,b["fill-opacity"]=s;break;case"shape-rendering":r.attrs[o]=s=T[s]||s||"auto",b[o]=s,d.style.shapeRendering=s;break;case"line-height":case"vertical-align":break;default:"font-size"===o&&(s=u(s,10)+"px"),r._.dirty=1,b[o]=s,n.dashedAttr2CSSMap[o]&&(y[n.dashedAttr2CSSMap[o]]=s)}else o in p&&(delete p[o],d.removeAttribute("src"===o?"href":o));else o in ee&&(s===N&&o in p?(delete p[o],d.removeAttribute(o)):(p[o]=s,y[o]=s));for(o in y)d.style[o]=y[o];for(o in b)d.setAttribute(o,b[o]);"text"===r.type&&!a["_do-not-tune"]&&fe(r,a)}},he=e._updateFollowers=function(){var e,t,r,a=(0,n.getArrayCopy)(arguments),i=C.call(a),o=C.call(a);for(e=0,t=i.followers.length;e<t;e++)(r=i.followers[e].el)[o].apply(r,a)},fe=function(n,a){if("text"===n.type&&(a[t]("text")||a[t]("font")||a[t]("font-size")||a[t]("x")||a[t]("y")||a[t]("line-height")||a[t](r)||a[t]("textpath"))){var i,o,u,f,p,g,m,v,b,y,x,C,k,A,L=n.attrs,M=n.paper.defs,F=n.parent,T=n.node,D=n._oldAttr=n._oldAttr||{baseLineDiff:8,valign:-.5},I=c(a["line-height"]||L["line-height"]),O=a.direction||L.direction||F&&F.attrs&&F.attrs.direction||D.direction||"initial",P=!1,R=!1,j=[],B=[],V=[],z=d||"rtl"!==O?1:2,U=!1,q=!1,G=function(e){return e&&S.test(e)},W=function(e){return e.replace(/\s+/g," ").trim().replace(S," ")};if(a[t]("textpath")){var $,X,Y,K=e.getElementID(e.createUUID()),J=a.textpath,Z=0,Q={};for(var ee in J)J.hasOwnProperty(ee)&&("path"!==ee||"href"in J?Q[ee]=J[ee]:D.textPathStr!==J[ee]?(n.textPathDef?(n.textPathDef.setAttribute("d",J[ee]||N),Q.href="#"+n.textPathDef.getAttribute("id"),Q["xlink:href"]="#"+n.textPathDef.getAttribute("id")):(n.textPathDef=M.appendChild(re("path",{id:K,d:J[ee]||N})),Q.href="#"+K,Q["xlink:href"]="#"+K),D.textPathStr=J[ee]):(Q.href="#"+n.textPathDef.getAttribute("id"),Q["xlink:href"]="#"+n.textPathDef.getAttribute("id")));if(a[t]("text")?(Y=e._g.doc.createTextNode(a.text||N),D.pathText=L.text=a.text||N):(Y=e._g.doc.createTextNode(D.pathText||D.text||N),D.pathText=D.pathText||D.text||N,delete D.text),a[t](r)?("middle"===a[r]?(Z=.3,D.valign=-.5):"bottom"===a[r]?(Z=.7,D.valign=-1):"top"===a[r]&&(D.valign=0),(X=re("tspan",{dy:Z+"em"})).appendChild(Y),D.tSpan=X):!D.tSpan||D.tSpan.textContent!==a.text&&"string"==typeof a.text?(Z=-.5===D.valign?.3:-1===D.valign?.7:0,(X=re("tspan",{dy:Z+"em"})).appendChild(Y),D.tSpan=X):X=D.tSpan,void 0!==a.text){for(delete D.x,delete D.y,T.removeAttribute("x"),T.removeAttribute("y"),($=re("textPath",Q)).appendChild(X||Y);T.firstChild;)T.removeChild(T.firstChild);T.appendChild($)}}else{if(D.direction=O,n.textPathDef&&M&&(n.textPathDef.parentNode.removeChild(n.textPathDef),delete n.textPathDef),delete D.txtNode,delete D.tSpan,delete D.textPathStr,I||(I=1.2*(i=(i=a.fontSize||a["font-size"]||L["font-size"]||F&&F.attrs&&F.attrs.fontSize)?i.toString().replace("px",N):10)),(a[t]("text")||D.pathText)&&(k=e.is(a.text,"array")?a.text.join("<br>"):null==a.text?D.pathText:a.text,delete D.pathText,(k=k.toString())!==D.text&&(q=!0,k&&_.test(k)&&(k=k.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;|&#034;/g,'"').replace(/&#039;/g,"'").replace(/&<br\/>lt;|&l<br\/>t;|&lt<br\/>;/g,"<<br/>").replace(/&<br\/>gt;|&g<br\/>t;|&gt<br\/>;/g,"><br/>")),k=k.replace(/<u>/g,"<under>").replace(/<\/u>/g,"</under>").replace(/<b>/g,"<bold>").replace(/<\/b>/g,"</bold>").replace(/<strong>/g,"<bold>").replace(/<\/strong>/g,"</bold>").replace(/<em>/g,"<em>").replace(/<\/em>/g,"</em>").replace(/<i>/g,"<em>").replace(/<\/i>/g,"</em>").replace(/<strike>/g,"<strike>").replace(/<\/strike>/g,"</strike>").replace(/<s>/g,"<strike>").replace(/<\/s>/g,"</strike>").replace(/<del>/g,"<strike>").replace(/<\/del>/g,"</strike>").replace(/<sub>/g,"<sub>").replace(/<\/sub>/g,"</sub>").replace(/<sup>/g,"<sup>").replace(/<\/sup>/g,"</sup>"),D.text=L.text=k,w.test(k)?(D.noTSpan&&(D.noTSpan=!(A=!0)),m=(b=l(k).split(w)).length):(A=!0,D.noTSpan=!0,m=1),D.lineCount!==m&&(D.lineCount=m,U=!0))),I!==D.lineHeight&&(D.lineHeight=I,D.baseLineDiff=.75*I,U=!0),A)for(;T.firstChild;)T.removeChild(T.firstChild);if(D.lineCount>1){if("pre"===T.style.whiteSpace&&(T.style.whiteSpace=""),u={},D.tspanAttr||(D.tspanAttr={},D.tspan0Attr={}),D.tspanAttr.dy!==D.lineHeight&&(D.tspanAttr.dy=u.dy=D.lineHeight,R=!0),a[t]("x")&&D.tspanAttr.x!==a.x&&(D.tspan0Attr.x=D.tspanAttr.x=u.x=L.x,R=!0),q)for(C=T.childNodes,f=0;f<m;f++){if(x=C[f*z],j=H(b[f],V),x){if(x.innerHTML=N,d)for(;x.firstChild;)x.removeChild(x.firstChild);R&&re(x,f?u:D.tspan0Attr)}else x=re("tspan",f?D.tspanAttr:D.tspan0Attr),T.appendChild(x),d||"rtl"!==O||((y=re("tspan",s)).appendChild(e._g.doc.createTextNode("i")),T.appendChild(y));if(b[f]||(x.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),b[f]=E),G(b[f])?(b[f]=W(b[f]),x.style.whiteSpace="pre"):"pre"===x.style.whiteSpace&&(x.style.whiteSpace=""),j.length)for(var te=0;te<j.length;te++)x.appendChild(j[te]);else x.appendChild(e._g.doc.createTextNode(b[f]));if(V.length)for(p=0;p<V.length;p++)(g=n.paper.text({display:"none"})).node=V[p].tspan,n.abbrArr||(n.abbrArr=[]),n.abbrArr.push({el:g,title:V[p].title})}else if(R)for(v=(C=T.childNodes).length,f=0;f<v;f+=z)re(C[f],f?u:D.tspan0Attr);if(v=m*z,T.childNodes.length>v)for(f=T.childNodes.length-1;f>=v;f-=1)T.removeChild(T.childNodes[f])}else if(q){if(G(k)?(k=W(k),T.style.whiteSpace="pre"):"pre"===T.style.whiteSpace&&(T.style.whiteSpace=""),(B=H(k,V)).length)for(var ne=0;ne<B.length;ne++)T.appendChild(B[ne]);else T.appendChild(e._g.doc.createTextNode(k));if(V.length)for(p=0;p<V.length;p++)(g=n.paper.text({display:"none"})).node=V[p].tspan,n.abbrArr||(n.abbrArr=[]),n.abbrArr.push({el:g,title:V[p].title})}a[r]&&(o=h[L[r]]||0)!==D.valign&&(D.valign=o,U=!0),U&&(D.shift=D.baseLineDiff+D.lineCount*D.lineHeight*D.valign,P=!0),!a.y&&0!==a.y||D.y===a.y||(D.y=L.y,P=!0),!P||!D.y&&0!==D.y||!D.shift&&0!==D.shift||re(T,{y:Math.round(D.y+D.shift)})}}},de=function(t,r,n){var a=this,i=n||r;
/*! dontAppend && */i.canvas&&i.canvas.appendChild(t),a.node=a[0]=t,t.raphael=!0,t.raphaelid=a.id=e._oid++,a.matrix=e.matrix(),a.realPath=null,a.attrs=a.attrs||{},a.followers=a.followers||[],a.paper=r,a.ca=a.customAttributes=a.customAttributes||new r._CustomAttributes,a._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},a.parent=i,!i.bottom&&(i.bottom=a),a.prev=i.top,i.top&&(i.top.next=a),i.top=a,a.next=null},pe=function(e,t,r){var n=r?"pageY":"pageX";return Math.abs(t[n]-e[n])},ge=e.storeHandlers=function(e,t,r){e._actualListners||(e._actualListners=[]),e._derivedListeners||(e._derivedListeners=[]),e._actualListners.push(t),e._derivedListeners.push(r)},me=function(e,t){var r,n=e._actualListners.indexOf(t);return-1!==n&&(r=e._derivedListeners[n],e._actualListners.splice(n,1),e._derivedListeners.splice(n,1)),r},ve=e.el;de.prototype=ve,ve.constructor=de,e._engine.getNode=function(e){var t=e.node||e[0].node;return t.titleNode||t},e._engine.getLastNode=function(e){var t=e.node||e[e.length-1].node;return t.titleNode||t},ve.rotate=function(e,t,r){var n,a=this;return a.removed||(he(a,"rotate",e,t,r),(e=l(e).split(x)).length-1&&(t=c(e[1]),r=c(e[2])),e=c(e[0]),null==r&&(t=r),null!=t&&null!=r||(t=(n=a.getBBox(1)).x+n.width/2,r=n.y+n.height/2),a.transform(a._.transform.concat([["r",e,t,r]]))),a},ve.scale=function(e,t,r,n){var a,i=this;return i.removed||(he(i,"scale",e,t,r,n),(e=l(e).split(x)).length-1&&(t=c(e[1]),r=c(e[2]),n=c(e[3])),e=c(e[0]),null==t&&(t=e),null==n&&(r=n),null!=r&&null!=n||(a=i.getBBox(1)),r=null==r?a.x+a.width/2:r,n=null==n?a.y+a.height/2:n,i.transform(i._.transform.concat([["s",e,t,r,n]]))),i},ve.translate=function(e,t){var r=this;return r.removed||(he(r,"translate",e,t),(e=l(e).split(x)).length-1&&(t=c(e[1])),e=c(e[0])||0,t=+t||0,r.transform(r._.transform.concat([["t",e,t]]))),r},ve.transform=function(t){var r,n=this,a=n._;return null==t?a.transform:(e._extractTransform(n,t),n.clip&&!a.clipispath&&re(n.clip,{transform:n.matrix.invert()}),n.pattern&&oe(n),n.node&&re(n.node,{transform:n.matrix}),1===a.sx&&1===a.sy||(r=n.attrs["stroke-width"])&&n.attr({"stroke-width":r}),n)},ve.hide=function(){var e=this;return he(e,"hide"),!e.removed&&e.paper.safari(e.node.style.display="none"),e},ve.show=function(){var e=this;return he(e,"show"),!e.removed&&e.paper.safari(e.node.style.display=N),e},ve.remove=function(){if(!this.removed&&this.parent.canvas){var t,r=this,n=e._engine.getNode(r),a=r.paper,i=a.defs;for(a.__set__&&a.__set__.exclude(r),A.unbind("raphael.*.*."+r.id),r.gradient&&i&&te(r),r["stroke-gradient"]&&i&&te(r,void 0,"stroke"),r.textPathDef&&i&&(r.textPathDef.parentNode.removeChild(r.textPathDef),delete r.textPathDef);t=r.followers.pop();)t.el.remove();for(;t=r.bottom;)t.remove();if(r._drag&&r.undrag(),r.events)for(;t=r.events.pop();)t.unbind();for(t in r.parent.canvas.contains(n)&&r.parent.canvas.removeChild(n),r.removeData(),delete a._elementsById[r.id],e._tear(r,r.parent),r)r[t]=typeof r[t]===o?e._removedFactory(t):null;r.removed=!0}},ve._getBBox=function(){var e,t,a,i=this,o=i.node,s={},l=i.attrs,c="text"===i.type;d&&c?e=(0,n.showRecursively)(i):"none"===o.style.display&&(i.show(),a=!0);try{s=o.getBBox(),c&&(s.x===undefined&&(s.isCalculated=!0,t=l["text-anchor"],s.x=(l.x||0)-s.width*("start"===t?0:"middle"===t?.5:1)),s.y===undefined&&(s.isCalculated=!0,t=l[r],s.y=(l.y||0)-s.height*("bottom"===t?1:"middle"===t?.5:0)))}catch(u){}finally{s=s||{}}return d&&c?e&&e():a&&i.hide(),s},ve.attr=function(r,n){if(this.removed)return this;var a,i,s,l,c,u,h,f,d=this.attrs,p={},g=this._invokedCa||(this._invokedCa={}),m=this.ca;if(null==r){var v={};for(a in d)d[t](a)&&(v[a]=d[a]);return v.gradient&&"none"===v.fill&&(v.fill=v.gradient)&&delete v.gradient,v.transform=this._.transform,v.visibility="none"===this.node.style.display?"hidden":"visible",v}if(null==n){if(e.is(r,"object"))l=r;else if(e.is(r,"string"))return"fill"===r&&"none"===d.fill&&d.gradient?d.gradient:"transform"===r?this._.transform:"visibility"===r?"none"===this.node.style.display?"hidden":"visible":r in d?d[r]:e.is(m[r],o)?m[r].def:e._availableAttrs[r]}else(l={})[r]=n;if(!e.stopPartialEventPropagation)for(a in l)A("raphael.attr."+a+"."+this.id,this,l[a],a);for(a in l)if((f=m[a])&&!g[a]&&e.is(f,o)){for(c in g[a]=!0,u=f.apply(this,[].concat(l[a])),g[a]=!1,u)p[c]=u[c];d[a]=l[a]}else p[a]=l[a];for(ue(this,p),i=0,s=this.followers.length;i<s;i++)(h=this.followers[i]).cb&&!h.cb.call(h.el,p,this)||h.el.attr(p);return this},ve.pinchstart=function(t,r){var n=this,a={},i=function(i){if(i.touches&&2===i.touches.length){var o=i.touches[0],s=i.touches[1];n._blockDrag=!0,i&&i.preventDefault(),e.makeSelectiveCopy(a,i),a.data={finger0:o,finger1:s,distanceX:pe(o,s),distanceY:pe(o,s,!0)},t.call(r||n,a)}else n._blockDrag=!1};ge(n,t,i),n.node.addEventListener("touchstart",i)},ve.unpinchstart=function(e){var t=me(this,e);this.__blockDrag=!1,this._pinchDragStarted=!1,t&&this.node.removeEventListener("touchstart",t)},ve.pinchmove=function(t,r){var n=this,a={},i=function(i){if(i.touches&&2===i.touches.length){var o=i.touches[0],s=i.touches[1];i&&i.preventDefault(),n._pinchDragStarted=!0,e.makeSelectiveCopy(a,i),a.data={finger0:o,finger1:s,distanceX:pe(o,s),distanceY:pe(o,s,!0)},t.call(r||n,a)}};ge(n,t,i),n.node.addEventListener("touchmove",i)},ve.unpinchmove=function(e){var t=me(this,e);t&&this.node.removeEventListener("touchmove",t)},ve.pinchend=function(e,t){var r=this,n=function(n){r._pinchDragStarted&&(r._pinchDragStarted=!1,e.call(t||r,n))};ge(r,e,n),r.node.addEventListener("touchend",n)},ve.unpinchend=function(e){var t=me(this,e);this._pinchDragStarted=!1,t&&this.node.removeEventListener("touchend",t)},ve.pinch=function(e,t,r){ve.pinchstart.call(this,e),ve.pinchin.call(this,t),ve.pinchend.call(this,r)},ve.unpinch=function(e,t,r){ve.unpinchstart.call(this,e),ve.unpinchin.call(this,t),ve.unpinchend.call(this,r)},ve.fcwheel=function(t,r){var n=this,a={},i=function(i){i&&i.preventDefault(),e.makeSelectiveCopy(a,i),t.call(r||n,a)};ge(n,t,i),n.node.addEventListener("wheel",i)},ve.fcunwheel=function(e){var t=me(this,e);t&&this.node.removeEventListener("wheel",t)},ve.on=function(t,r,n){if(r&&t){var a,i,o=this,s=t.match(/fc-/),l=r;if(this.removed)return this;switch(o._actualListners||(o._actualListners=[]),o._derivedListeners||(o._derivedListeners=[]),t){case"fc-dragstart":return o.drag(null,r),o;case"fc-dragmove":return o.drag(r),o;case"fc-dragend":return o.drag(null,null,r),o;case"fc-dbclick":return o.dbclick(r,n),o;case"fc-pinchstart":return o.pinchstart(r,n),o;case"fc-pinchmove":return o.pinchmove(r,n),o;case"fc-pinchend":return o.pinchend(r,n),o;case"fc-click":return o.fcclick(r,n),o;case"fc-wheel":return o.fcwheel(r,n),o}return s&&(t=t.replace(/fc-/,"")),s&&P&&(i=t,t=(O?e.safePointerEventMapping[t]:U[t])||t,"mouseout"===i&&(l=function(e){O&&P&&!e.isPrimary||(V.elementInfo.push({el:n||o,callback:r}),V.srcElement=e.srcElement||e.target)},t=O?"pointerover":"touchstart")),this._&&this._.RefImg&&("load"===t||"error"===t)?(a=this._.RefImg,l=function(e){!o.removed&&r.call(o,e)}):a=this.node,l===r&&(l=function(e){(!O||!P||e.isPrimary)&&r.call(n||o,e)}),o._actualListners.push(r),o._derivedListeners.push(l),a.addEventListener?a.addEventListener(t,l):a["on"+t]=l,this}},ve.off=function(t,r){var n,a,i,o=r,s=t.match(/fc-/);if(this.removed||!this._actualListners||!t||!r)return this;switch(t){case"fc-dragstart":return this.undragstart(r),this;case"fc-dragmove":return this.undragmove(r),this;case"fc-dragend":return this.undragend(r),this;case"fc-dbclick":return this.undbclick(r),this;case"fc-pinchstart":return this.unpinchstart(r),this;case"fc-pinchmove":return this.unpinchmove(r),this;case"fc-pinchend":return this.unpinchend(r),this;case"fc-click":return this.fcunclick(r),this;case"fc-wheel":return this.fcunwheel(r),this}return s&&(t=t.replace(/fc-/,"")),o=r,s&&P&&(n=t,t=(O?e.safePointerEventMapping[t]:U[t])||t,"mouseout"===n&&(t=O?"pointerover":"touchstart")),i=this._&&this._.RefImg?this._.RefImg:this.node,-1!==(a=this._actualListners.indexOf(o))&&(o=this._derivedListeners[a],this._actualListners.splice(a,1),this._derivedListeners.splice(a,1)),i.removeEventListener?i.removeEventListener(t,o):i["on"+t]=null,this},e._engine.path=function(e,t,r){var n=re("path"),a=new de(n,e,r);return a.type="path",t&&a.attr(t),a},e._engine.group=function(e,t,r,n){var a=re("g"),i=new de(a,e,r);return i.type="group",i.canvas=i.node,i.top=i.bottom=null,i._id=t||N,t&&(n?a.setAttribute("class","raphael-group-"+t):a.setAttribute("class","raphael-group-"+i.id+"-"+t)),i},e._engine.circle=function(e,t,r){var n=re("circle"),a=new de(n,e,r);return a.type="circle",t&&a.attr(t),a},e._engine.rect=function(e,t,r){var n=re("rect"),a=new de(n,e,r);return a.type="rect",t.rx=t.ry=t.r,t&&a.attr(t),a},e._engine.ellipse=function(e,t,r){var n=re("ellipse"),a=new de(n,e,r);return a.type="ellipse",t&&a.attr(t),a},e._engine.image=function(e,t,r){var n=re("image"),a=new de(n,e,r,!0);return a._.group=r||e,a.type="image",n.setAttribute("preserveAspectRatio","none"),t&&a.attr(t),a},e._engine.text=function(e,t,r,n){var a=re("text"),i=new de(a,e,r);return i.type="text",n&&i.css&&i.css(n,undefined,!0),t&&i.attr(t),i},e._engine.setSize=function(e,t){return this.width=e||this.width,this.height=t||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},e._engine.create=function(){var t,r=e._getContainer.apply(0,arguments),n=r&&r.container,a=r.x,i=r.y,o=r.width,s=r.height;if(!n)throw new Error("SVG container not found.");var l,c=re("svg"),u="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;vertical-align:middle;";return P&&(e.isIE10?u+="-ms-touch-action:pan-x,pan-y;":u+="touch-action:pan-x,pan-y;"),a=a||0,i=i||0,re(c,{height:s=s||342,version:1.1,width:o=o||512,xmlns:M}),1===n?(c.style.cssText=u+"position:absolute;left:"+a+"px;top:"+i+"px",(n=e._g.doc.body).appendChild(c),l=1):(c.style.cssText=u+"position:relative",n.firstChild?n.insertBefore(c,n.firstChild):n.appendChild(c)),(t=new e._Paper).width=o,t.height=s,t.canvas=c,t.container=n,re(c,{id:"raphael-paper-"+t.id}),t.clear(),t._left=t._top=0,l&&(t.renderfix=function(){}),t.renderfix(),t},e._engine.setViewBox=function(e,t,r,n,a){A("raphael.setViewBox",this,this._viewBox,[e,t,r,n,a]);var i,o,s=g(r/this.width,n/this.height),l=this.top,c=a?"meet":"xMinYMin";if(null==e?(this._vbSize&&(s=1),delete this._vbSize,i="0 0 "+this.width+E+this.height):(this._vbSize=s,i=e+E+t+E+r+E+n),re(this.canvas,{viewBox:i,preserveAspectRatio:c}),s)for(;l;)o="stroke-width"in l.attrs?l.attrs["stroke-width"]:1,l.attr({"stroke-width":o}),l._.dirty=1,l._.dirtyT=1,l=l.prev;return this._viewBox=[e,t,r,n,!!a],this},e.prototype.detachPaper=function(){!1!==this._detached&&(this.container.removeChild(this.canvas),this._detached=!0)},e.prototype.attachPaper=function(){this._detached&&(this.container.appendChild(this.canvas),this._detached=!1)},e.prototype.renderfix=function(){var e,t=this.canvas,r=t.style;try{e=t.getScreenCTM()||t.createSVGMatrix()}catch(i){e=t.createSVGMatrix()}var n=-e.e%1,a=-e.f%1;(n||a)&&(n&&(this._left=(this._left+n)%1,r.left=this._left+"px"),a&&(this._top=(this._top+a)%1,r.top=this._top+"px"))},e.prototype._desc=function(t){var r=this.desc;if(r)for(;r.firstChild;)r.removeChild(r.firstChild);else this.desc=r=re("desc"),this.canvas.appendChild(r);r.appendChild(e._g.doc.createTextNode(e.is(t,"string")?t:"Created with Red Raphaël "+e.version))},e.prototype.clear=function(){var e;for(A("raphael.clear",this);e=this.bottom;)e.remove();for(e=this.canvas;e.firstChild;)e.removeChild(e.firstChild);this.bottom=this.top=null,e.appendChild(this.desc=re("desc")),e.appendChild(this.defs=re("defs"))},e.prototype.remove=function(){var t;for(A("raphael.remove",this);t=this.bottom;)t.remove();for(t in 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),this)this[t]=typeof this[t]===o?e._removedFactory(t):null;this.removed=!0},e.prototype.setHTMLClassName=function(){}}var be};var n=r(257)},function(e,t,r){"use strict";function n(e){var t={data:{}};if(!e)return t;if("string"==typeof e)try{t.data=JSON.parse(e)}catch(r){t.error=r}else t.data=e;return t}function a(e){if(!e||!e.isRaw)return this.getChartData({format:"json",isRaw:0});if(e.isRaw&&parseInt(e.isRaw,10)){var t=parseInt(e.isRaw,10);return this.getChartData({format:"json",isRaw:t})}return this.getChartData("json")}function i(e){this.setChartData(e,"json"),this.render()}t.__esModule=!0,t["default"]=void 0;var o={extension:function(e){return e&&(e.prototype.setJSONData=i),e&&(e.prototype.getJSONData=a),{format:"json",toJSON:n,fromJSON:n}},name:"JSON",type:"transcoder",requiresFusionCharts:!0};t["default"]=o},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var r=d(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n["default"]=e,r&&r.set(e,n);return n}(r(266)),i=n(r(292)),o=n(r(293)),s=n(r(294)),l=n(r(295)),c=n(r(296)),u=n(r(297)),h=n(r(301)),f=n(r(302));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}var p={oneInAFrame:!0},g={extension:function(e){var t=e.getDep("redraphael","plugin"),r={};t.fn._elementFromEvent=function(e){if(!e||this.removed)return null;var t=e,n=t.srcElement||t.target||(t=t.originalEvent)&&(t.srcElement||t.target)||r;return"tspan"===n.nodeName&&(n=n.parentNode),this.getById(n.raphaelid)},t.requestAnimFrame=a["default"].addJob&&function(e){a["default"].addJob(e,a.priorityList.animation,p)},t.instantRequestAnimFrame=a["default"].addJob&&function(e){a["default"].addJob(e,a.priorityList.instant)},(0,h["default"])(t),(0,i["default"])(t),(0,o["default"])(t),(0,s["default"])(t),(0,l["default"])(t),(0,c["default"])(t),(0,u["default"])(t),(0,f["default"])(t)},name:"redraphaelExt",type:"plugin",requiresFusionCharts:!0};t["default"]=g},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=function(e){var t,r,a=e.eve,i=e._g,o=e.fn,s=e.el,l=/[, ]+/,c="",u=" ",h=/\B([A-Z]{1})/g,f="fusioncharts-raphael-stylesheet";(r=(t=function(e){this.styleSheet=c,this.rules={},this.ns=e||c}).prototype).getSheet=function(){var t=this.node;return this.styleSheet=r.getStyleSheet(f),this.styleSheet||((t=this.node=i.doc.createElement("style")).setAttribute("id",e.format("raphael-stylesheet-{0}",e._oid++)),t.setAttribute("type","text/css"),t.setAttribute("title",f),(i.doc.head||i.doc.getElementsByTagName("head")[0]).appendChild(this.node),this.styleSheet=r.getStyleSheet(f)),this.styleSheet},r.getStyleSheet=function(e){for(var t,r=i.doc.styleSheets,n=r.length;n--;)if((t=r[n]).title===e)return t},r.applyCSSRule=function(e,t){var r,n=this.styleSheet;if(!n){if(!e||!t)return;n=this.getSheet()}r=(n.rules||n.cssRules||{}).length||0,n.insertRule?n.insertRule(e+"{"+t+"}",r):n.addRule&&n.addRule(e,t,r)},r.removeCSS=function(e){var t,r=this.styleSheet,n=r.rules||r.cssRules||{},a=n.length||0,i=e;for(i=i||this.ns;a--;)t=n[a],new RegExp(i).test(t.selectorText)&&(r.removeRule?r.removeRule(a):r.deleteRule(a))},r.destroy=function(){this.removeCSS(),delete this.node,delete this.styleSheet,delete this.ns,delete this.rules},r.clear=function(){this.removeCSS(),this.rules={}},r.add=function(e,t,r){var n,a=c,i=this.rules[e]||(this.rules[e]={}),o=r?c:"\t",s=r?":":": ";for(n in t)(i[n]=t[n])&&(a+=o+n.replace(h,"-$1").toLowerCase()+s+i[n]+";");this.applyCSSRule(e,a)},r.render=function(){this.setCssText()},r.setCssText=function(e){var t,r,n=e?c:"\t",a=e?":":": ",i=c,o=c;for(t in this.rules){for(r in i=c,o=t.replace(/(^|\,)/g,"$1"+this.ns+u),t=this.rules[t])t[r]&&(i+=n+r.replace(h,"-$1").toLowerCase()+a+t[r]+";");this.applyCSSRule(o,i)}},a.on("raphael.new",(function(){this._stylesheet=this._stylesheet||new t,this.cssNamespace(c)})),a.on("raphael.remove",(function(){this._stylesheet&&this._stylesheet.destroy(),delete this._stylesheet})),o.cssNamespace=function(t){return arguments.length&&(this._stylesheet.ns=e.format("{0}#raphael-paper-{1}",t&&t+u||c,this.id)),this._stylesheet.ns},o.cssAddRule=function(e,t){if(1===arguments.length&&"object"==typeof e){for(var r in e)this.cssAddRule(r,e[r]);return this}return this._stylesheet.add(e,t),this},o.cssRender=function(){return e.svg&&this._stylesheet.render(),this},o.cssClear=function(){return this._stylesheet.clear(),this},e.ca["class"]=function(t){var r,n,a,i,o=this,s=t,l=o.node,h=o.paper,f="."+s,d=h._stylesheet&&h._stylesheet.rules,p=o.parent,g=o.attrs,m={};if(e.svg)s=s||c,l.setAttribute("class","group"===o.type&&o._id?"raphael-group-"+o.id+"-"+o._id+u+s:s);else if(e.vml&&(r=l.className="group"===o.type?s&&o._id+u+s||o._id:"rvml "+s,l.className=r?r+" fusioncharts-div":"fusioncharts-div",f&&d)){for(i in n=d[f])"color"===i&&"text"===o.type&&(i="fill"),!g[i]&&(m[i]=n[i]);for(;p&&p.attr;){if(a=p.attr("class"))for(i in n=d[f="."+a+u+f])"color"===i&&"text"===o.type&&(i="fill"),!g[i]&&!m[i]&&(m[i]=n[i]);p=p.parent}o.css(m)}},s.css=function(t,r,n){var i,o,s,c,u,h,f,d=t;if(this.removed)return this;if(this.styles||(this.styles={}),void 0===r&&e.is(d,"string")){for(s={},h=0,f=(i=d.split(l)).length;h<f;h++)(d=i[h])in this.styles&&(s[d]=this.styles[d]);return f-1?s:s[i[0]]}if(void 0===r&&e.is(d,"array")){for(s={},h=0,f=d.length;h<f;h++)s[d[h]]=this.styles(d[h]);return s}for(h in void 0!==r?(o={})[d]=r:d&&e.is(d,"object")&&(o=d),u={},o)c=h.replace(/\B([A-Z]{1})/g,"-$1").toLowerCase(),e._availableAttrs.hasOwnProperty(c)||"color"===c?("color"===c&&"text"===this.type&&(c="fill"),u[c]=o[h],u.dirty=!0):(a("raphael.css."+c+"."+this.id,this,o[h],c),this.node.style[c]=o[h],this.styles[c]=o[h]);for(h=0,f=this.followers.length;h<f;h++)this.followers[h].el.attr(o);return u.hasOwnProperty("dirty")&&(delete u.dirty,n&&(u["_do-not-tune"]=!0),this.attr(u)),this},s.removeCSS=function(t){var r,a,i,o=t;if(!o&&(o=n.appliedCSS),this.removed)return this;if(e.is(o,"string")&&(o=o.split(",")),e.is(o,"array"))for(i=o.length,a=0;a<i;a++)r=o[a].replace(/\B([A-Z]{1})/g,"-$1").toLowerCase(),this.node.removeAttribute(r),this.node.style[r]="";return this}};var n=r(254)},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=function(e){var t,r=window,a=Math.sqrt,i=r.parseFloat,o=r.parseInt,s="none",l="rgba(0,0,0,1)",c=r.SVGFilterElement||r.SVGFEColorMatrixElement&&2===r.SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE,u={"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",opacity:"opacity","fill-opacity":"fill-opacity"};e.svg?(c&&(e.filterShadow=function(t,r){var o,s,c,u,h=t.dx||1,f=t.dy||1,d=t.spread||3,p=t.color||"rgb(64,64,64)",g=t.paper,m=g.cacheShadows||(g.cacheShadows={}),v=t.id||"drop-shadow-"+(r?"layered":"non-layered")+"-"+[h,f,d,p].join(" ")+g.container.id,b=t.id||e.getElementID(v.replace(/[\(\)\s%:,\xb0#]/g,"_")),y=!!(t.id?e._g.doc.getElementById(b):m[v]);return g&&!y?((p=e.color(p)).error&&(p=e.color(l)),c=(0,n.pluck)(p.opacity,1),c=t.opacity||c,s=(o=g.addDefs({filter:{tagName:"filter",id:b,y:"-1000%",x:"-1000%",width:"2000%",height:"2000%",children:[{tagName:"feOffset",result:"offOut","in":"SourceGraphic",dx:i(h),dy:i(f)},{tagName:"feColorMatrix",result:"matrixOut","in":"offOut",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "+c+" 0"},{tagName:"feGaussianBlur",result:"blurOut","in":"matrixOut",stdDeviation:r?1:a(i(d))},{tagName:"feComposite","in":"SourceGraphic",in2:"blurOut",operator:"over"}]}})).filter.children,u=m[v]={use:1,hash:v,id:b,filter:o.filter.element,offset:s[0].element,matrix:s[1].element,blur:s[2].element,blend:s[3].element}):(u=m[v]).use+=1,u},e.el.dropshadow=function(r,n,a,i,o,l){var c,u,h,f,d,p,g,m,v=this,b=v._.shadowFilter,y=v.paper,x=y.cacheShadows||(y.cacheShadows={}),w="drop-shadow"+[r,n,a,i].join(" ");for(d=f=.05*o,g=1;g<=3;g++)d+=f*g*(o-d);if(u=(c=l?v.shadowElem||v.clone({fill:s,stroke:"rgb(51, 51, 51)","stroke-width":v.attr("stroke-width")||1,opacity:d},l).translate(r,n).follow(v,t,!l&&"before"):v).shadowElem&&c.shadowElem.node||c.node,r===s){if(b){if(b.use-=1,u.removeAttribute("filter"),v.shadowElem&&v.shadowElem.attr("opacity",0),!b.use){for(h in w=b.hash,b)(m=b[h]).parentNode&&m.parentNode.removeChild(m),delete b[h];m=null,delete x[w]}b=null,delete v._.shadowFilter}}else l&&!v.shadowElem&&(p=!0),l&&(v.shadowElem=c),b=b&&x[w]?x[w]:v._.shadowFilter=e.filterShadow({paper:y,dx:r,dy:n,spread:a,color:i,opacity:!l&&d},!!l),!p&&v.shadowElem&&v.shadowElem.attr("opacity",d),u.setAttribute("filter",'url("'+e._url+"#"+b.id+'")');return this}),t=function(e,t){var r,n,a=this,i={};for(n in e)switch(u[n]&&(i[n]=e[n],delete e[n]),n){case"transform":(r=t.matrix.clone()).translate(a.__shadowx,a.__shadowy),a.transform(r.toTransformString());break;case"stroke-width":e[n]=i[n]||1}for(n in a.attr(e),i)e[n]=i[n]},e.ca["drop-shadow"]=function(r,a,i,c,u,h){var f,d,p,g,m,v,b,y=this,x=y._.shadows||(y._.shadows=[]),w=r,_=a,S=c;if(y.__shadowblocked)return!1;if(w===s)for(;d=x.pop();)d.remove();else for((S=e.color(S)).error&&(S=e.color(l)),u instanceof Array?(m=u[0],v=u[1]):m=v=u,m=1/(0,n.pluck)(m,1),v=1/(0,n.pluck)(v,1),w=(0,n.pluck)(w,1)*m,_=(0,n.pluck)(_,1)*m,f=.05*(0,n.pluck)(S.opacity,1),p=o(y.attr("stroke-width")||1,10)+6,(g=y.matrix.clone()).translate(w,_),b=1;b<=3;b++)(d=(x[b-1]||y.clone().follow(y,t,!h&&"before")).attr({stroke:S.hex,"stroke-opacity":f*b,opacity:"1","stroke-width":(p-2*b)*v,transform:g.toTransformString(),"stroke-linecap":"round","stroke-linejoin":"round",fill:s})).__shadowlevel=b,d.__shadowscale=v,d.__shadowx=w,d.__shadowy=_,h&&h.appendChild(d),x.push(d);return!1},e.el.shadow=function(t,r,a,i){var o,l=t,c=r,u=a,h=i;if(u&&u.constructor===e.el.constructor&&(h=u,u=void 0),"object"==typeof l&&(c&&c.constructor===e.el.constructor&&(h=c),c=l.opacity,u=l.scalefactor,o=void 0!==l.useFilter?!!l.useFilter:!n.isIE9,l=void 0===l.apply?!!c:l.apply),void 0===c&&(c=1),this.dropshadow){if(o&&!this.ca.hasOwnProperty("drop-shadow"))return l&&this.dropshadow(1,1,3,"rgb(64,64,64)",c,h)||this.dropshadow(s),this;this._.shadowFilter&&this.dropshadow(s)}return this.attr("drop-shadow",l?[1,1,3,"rgba(64,64,64,"+c+")",u,h]:s)}):e.vml?(e.ca["drop-shadow"]=function(t,r,a,o,c,u){var h,f,d,p,g=this,m=g._.shadow,v=t,b=r,y=o;return g.isShadow||(v===s?m&&(m=g._.shadow=m.remove()):(m||(m=g._.shadow=g.clone(),u&&u.appendChild(m.follow(g))||m.follow(g,void 0,"before"),m.attr({fill:"none","fill-opacity":.5,"stroke-opacity":1}).isShadow=!0,m.attr("stroke-width")<=0&&m.attr("stroke-width",1)),f=(h=m.node.runtimeStyle).filter.replace(/ progid:\S+Blur\([^\)]+\)/g,""),(y=e.color(y)).error&&(y=e.color(l)),p=(0,n.pluck)(y.opacity,1)/5,d=c instanceof Array?c[0]:c,d=1/(0,n.pluck)(c,1),v=(0,n.pluck)(v,1)*d,b=(0,n.pluck)(b,1)*d,m.translate(v,b),h.filter=f+" progid:DXImageTransform.Microsoft.Blur(pixelRadius="+i(.4*a)+" makeShadow=True Color="+y.hex+' shadowOpacity="'+p+'");')),!1},e.el.shadow=function(t,r,n,a){var i=t,o=r,l=n,c=a;return l&&l.constructor===e.el.constructor&&(c=l,l=void 0),"object"==typeof i&&(o&&"group"===o.type&&(c=o),o=i.opacity,l=i.scalefactor,i=void 0===i.apply?!!o:i.apply),void 0===o&&(o=1),this.attr("drop-shadow",i||!o?[1,1,5,"rgba(64,64,64,"+o+")",l,c]:s)}):e.canvas&&(e.el.shadow=function(){return this})};var n=r(254)},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=function(e){e.svg?(e.createOutlineFilter=function(t){var r,n,a,i,o,s=t.paper,l=t.rgbObj,c=t.colorMapText,u=s.outlineFilterCaches;return r="text-outline-"+[c,a=s.filterColorMap[c]=function(e){var t=e.R,r=e.G,n=e.B;return(299*t+587*r+114*n)/1e3>123?"darkFilter":"brightFilter"}(l)].join(" "),n=e.getElementID(r.replace(/[\(\)\s%:,\xb0#]/g,"_")),o=(i=e.isFirefox?s.addDefs({filter:{tagName:"filter",id:n,children:[{tagName:"feMorphology",result:"DILATED","in":"SourceAlpha",operator:"dilate",radius:e.isIE11?"1.5":"1"},{tagName:"feFlood",result:"FLOOD","flood-color":"darkFilter"===a?"#000000":"#ffffff","flood-opacity":"1"},{tagName:"feComposite",result:"OUTLINE","in":"FLOOD",in2:"DILATED",operator:"in"},{tagName:"feMerge",children:[{tagName:"feMergeNode","in":"OUTLINE"},{tagName:"feMergeNode","in":"SourceGraphic"}]}]}}):s.addDefs({filter:{tagName:"filter",id:n,children:[{tagName:"feColorMatrix",result:"COLORED","in":"SourceGraphic",type:"matrix",values:"darkFilter"===a?"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0":"1 1 1 1 255 1 1 1 1 255 1 1 1 1 255 0 0 0 1 0"},{tagName:"feOffset",dx:"1",dy:"1",result:"OFFSET11","in":"COLORED"},{tagName:"feOffset",dx:"-1",dy:"-1",result:"OFFSET-1-1","in":"COLORED"},{tagName:"feOffset",dx:"-1",dy:"1",result:"OFFSET-11","in":"COLORED"},{tagName:"feOffset",dx:"1",dy:"-1",result:"OFFSET1-1","in":"COLORED"},{tagName:"feMerge",children:[{tagName:"feMergeNode","in":"OFFSET1-1"},{tagName:"feMergeNode","in":"OFFSET-1-1"},{tagName:"feMergeNode","in":"OFFSET11"},{tagName:"feMergeNode","in":"OFFSET-11"},{tagName:"feMergeNode","in":"SourceGraphic"}]}]}})).filter.children,u[a]={hash:r,id:n,filter:i.filter.element,morph:o[0].element,flood:o[1].element,composite:o[2].element,merge:o[3].element}},e.el.outlineText=function(t,r){var a;if(r&&"none"!==r){a=/(^#[0-9A-Fa-f]{6}$)|(^#[0-9A-Fa-f]{3}$)/.test(r)?(0,n.convertColor)(r):r;var i,o,s=this.node,l=this.paper,c=l.outlineFilterCaches||(l.outlineFilterCaches={}),u=l.filterColorMap||(l.filterColorMap={}),h=function(e){var t=e.split("(")[1].split(")")[0].split(",");return{R:+t[0],G:+t[1],B:+t[2]}}(a),f="rgb-"+h.R+"-"+h.G+"-"+h.B;t?(o=(i=u[f])&&c[i]?c[i]:e.createOutlineFilter({rgbObj:h,paper:l,colorMapText:f}),s.setAttribute("filter",'url("'+e._url+"#"+o.id+'")')):s.removeAttribute("filter")}}):e.el.outlineText=function(){return this}};var n=r(254)},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=function(e){var t=/rgba\([\d]+\,[\d]+\,[\d]+\,0\)$/,r=window,a=Math,i=a.cos,o=a.sin,s=a.PI,l=r.parseInt,c=r.parseFloat,u=String,h=Array.prototype.slice,f="hasOwnProperty",d="none",p="M",g="L",m="Z",v="text-bound",b=/\s*\,\s*/g;e&&e._availableAnimAttrs&&e._availableAnimAttrs.cx&&(e._availableAnimAttrs["scroll-position"]=e._availableAnimAttrs.cx);e.define&&e.define([{name:"polypath",polypath:function(){return this.path(void 0,e._lastArgIfGroup(arguments))},ca:{polypath:function(t,r,n,a,u,h){var f,d,v,b,y,x=t,w=r,_=n,S=a,C=u,k=h;if(f=[],x=l(x,10)||0,w=c(w)||0,_=c(_)||0,S=c(S)||0,C=null===C||isNaN(C)?.5*s:e.rad(C),k=null===k||isNaN(k)?0:c(k),b=C,x>2)switch(d=2*s/x,k){case 0:for(v=0;v<x;v++)f.push(g,w+S*i(-b),_+S*o(-b)),b+=d;f[0]=p,f.push(m);break;case 1:for(v=0;v<x;v++)f.push(p,w,_,g,w+S*i(-b),_+S*o(-b)),b+=d;break;default:for(y=S*i(d*=.5)*(1-k),v=0;v<x;v++)f.push(g,w+S*i(-b),_+S*o(-b)),b+=d,f.push(g,w+y*i(-b),_+y*o(-b)),b+=d;f[0]=p,f.push(m)}else 0===S?f.push(p,w,_,g,w,_,m):f.push(p,w-S,_,"A",S,S,0,0,0,w+S,_,"A",S,S,0,0,0,w-S,_,m);return{path:f}},r:function(e){var t=this.attrs.polypath;return t[3]=e,this.attr("polypath",t),!1}}}]),e.ca[v]=function(r,n,a,i,o,s,l){var c=this,u=c.paper,h=c._.textbound,f=a,p=o;if(this._origOpacity=void 0!==l?l:1,"text"===this.type)return n&&n!==d&&!t.test(n)||r&&r!==d&&!t.test(r)?(c.attrs[v]=arguments,(!f||!e.is(f,"finite"))&&(f=0),(!p||!e.is(p,"finite"))&&(p=0),!h&&(h=c._.textbound=u.rect(0,0,0,0,c.group).follow(c,e.ca[v].reposition,"before")),h.attr({stroke:n||d,"stroke-width":f,fill:r||d,"shape-rendering":1===f?"crisp":"",r:p}),void 0!==l&&h.attr("opacity",l),s&&h.attr("stroke-dasharray",s),e.ca[v].reposition.call(h,c.attr(),c),!1):(c._.textbound=h&&h.unfollow(c).remove(),!1)},e.ca[v].reposition=function(e,t){var r,a,i,o,s,l,h,d,p,g=this,m={};e[f]("visibility")&&g.attr("visibility",e.visibility),(e[f](v)||e[f]("x")||e[f]("y")||e[f]("text")||e[f]("text-anchor")||e[f]("text-align")||e[f]("font-size")||e[f]("line-height")||e[f]("vertical-align")||e[f]("transform")||e[f]("rotation")||e[f]("opacity"))&&(a=(r=t.attrs)[v],i=u(a&&a[3]||"0").split(b),o=c(i[0])||0,s=(0,n.pluck)(c(i[1]),o),d=(l=t.getBBox()).width,p=l.height,g._origOpacity=t._origOpacity||1,h=c(e.opacity||r.opacity),m.opacity=isNaN(h)?g._origOpacity:g._origOpacity*h,isNaN(d)||(m.x=l.x-o,m.y=l.y-s,m.width=Math.max(d+2*o,0),m.height=Math.max(p+2*s,0)),g.attr(m))},e.fn.symbol=function(){var t,r=this,n=arguments,a=n.length-1,i=n[a];return i&&i.constructor===e.el.constructor?n[a]=void 0:i=void 0,(t=r.path(void 0,i)).ca.symbol=e.fn.symbol.ca.symbol,n.length===!!i+0?t:t.attr("symbol",n)},e.fn.getSuggestiveRotation=function(){var e,t,r,n;return e=arguments[0],1===arguments.length?(t=e.angle,r=e.x,n=e.y):(t=e,r=arguments[1],n=arguments[2]),"r"+(t=t||0)+","+r+","+n},e.fn.symbol.cache={"":e._cacher((function(e,t,r,n){var a=r;return arguments.length>3?["M",e,t,"h",a,"v",n,"h",-a,"v",-n,"z"]:["M",e-a,t-a,"h",a*=2,"v",a,"h",-a,"v",-a,"z"]}))},e.fn.symbol.ca={symbol:function(t){var r,n,a=this,i=t,o=e.is(i,"object")&&1===arguments.length&&!e.is(i,"function")?i:arguments;o===i&&(i=o[0]),n=(r=e.is(i,"function")&&i||e.fn.symbol.cache[i]||e.fn.symbol.cache[""])&&r.apply(e,h.call(o,1)),e.is(n,"array")||e.is(n,"string")?a.attr("path",n):n&&a.attr(n)}},e.addSymbol=function(t,r){var n,a,i=r,o=e.fn.symbol.cache,s=[];for(a in n=e.is(i,"function")&&((n={})[t]=i,n)||t)i=n[a],o[a]=e.is(i,"function")&&e._cacher(i,e)||(s.push(a),i);for(a=s.pop();a;)o[a]=o[o[a]],a=s.pop()}};var n=r(254)},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=function(e){var t=function(e){return function(){e.hide();for(var t=0,r=e._.gridElem&&e._.gridElem.length;t<r;t++)e._.gridElem[t].remove();e._.gridElem=[],e._attr({src:e._._src}),setTimeout((function(){e.show()}),100)}},r=function(e,t,r){return function(){var n,i,o,s=a(e._.imageGridAttr,t),l=1,c=1,u=1;if(s.tileInfo&&(l=s.tileInfo.xCount,c=u=s.tileInfo.yCount,o=s.y,delete s.tileInfo),e._.gridElem){for(i=0;i<e._.gridElem.length;i++)e._.gridElem[i].remove();e._.gridElem.length=0}for(i=0;l&&s.width&&s.height;)u--,0===i?e.attr(r?Object.assign(s,{applysrc:e._._src}):s):(n=e.clone().attr({x:s.x,y:s.y}),e._.gridElem.push(n.follow(e,void 0,"after"))),s.y+=s.height,0===u&&(u=c,l--,s.x+=s.width,s.y=o),i++}},a=function(e,t){var r;if(e){var a=e.displayMode,i=e.vAlign,o=e.hAlign,s=e.scale,l=e.canvasBorderWidth,c=e.canvasWidth,u=e.canvasHeight,h=t.width*(s/100),f=t.height*(s/100),d=c-2*l,p=u-2*l;r=(0,n.getAlignImage)(i,o,a,h,f,c,u,l,d,p)}return r||{x:0,y:0,width:t.width,height:t.height}};e.define&&e.define([{name:"imagegrid",imagegrid:function(){var n,a,i=this,o=arguments,s=o.length-1,l=o[s];return l&&l.constructor===e.el.constructor?o[s]=void 0:l=void 0,n=new Image,(a=i.image(l))._.gridElem=[],a._.refImage=n,a._attr=a.attr,a.attr=function(e,t){var r=e,n=Array.isArray(r),i=!n&&"object"==typeof r,o="string"==typeof r;if(n&&(i="object"==typeof(r=r[0])),i){var s=Object.assign({},r),l=s&&s.src,c=s&&s.applysrc;delete s.src,delete s.applysrc,l&&delete a._._src,a._attr(s),l&&a._attr({_src:l}),c&&a._attr({src:c})}else{if(void 0===r&&void 0===t)return this.attrs;if(void 0===t)return this.attrs[r];o&&t&&("src"===r?a._attr({_src:t}):"applysrc"===r?a._attr({src:t}):a._attr({name:t}))}return this},n.onload=r(a,n,!0),n.onerror=t(a),a},ca:{imagegrid:function(e,t,n,a,i,o,s){void 0===a&&(a=100),void 0===i&&(i=0),void 0===o&&(o=0),void 0===s&&(s=0);var l=this,c=t,u=n;"tile"===e||"fill"===e||"fit"===e?("top"!==c&&"middle"!==c&&"bottom"!==c&&(c="middle"),"left"!==u&&"middle"!==u&&"right"!==u&&(u="middle")):("top"!==c&&"middle"!==c&&"bottom"!==c&&(c="top"),"left"!==u&&"middle"!==u&&"right"!==u&&(u="left")),l._.imageGridAttr={displayMode:e,vAlign:c,hAlign:u,scale:a,canvasBorderWidth:i,canvasWidth:o,canvasHeight:s},this._._src&&r(l,l._.refImage)()},_src:function(e){return this._.refImage.src=e,this._._src=e,{_src:e}}}}])};var n=r(259)},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=function(e){var t,r,n,s=window,l=s.document,c=/msie/i.test(s.navigator.userAgent)&&!s.opera,u="VML"===e.type,h={cursor:"cursor"},f={x:"left",y:"top",strokeWidth:"borderThickness","stroke-width":"borderThickness",width:"width",height:"height"},d={fill:"backgroundColor",stroke:"borderColor",color:"color"},p={left:0,top:0,padding:0,border:"none",margin:0,outline:"none","-webkit-apperance":"none",position:"absolute",zIndex:20},g=new o["default"],m=function(e,t,r,n){var a,i=l.createElement(e);for(a in t)f[a]?i.style[a]=t[a]:i.setAttribute(a,t[a]);for(a in r)i.style[a]=r[a];return n&&n.appendChild&&n.appendChild(i),i};(t=(n=function(e,t,r){var a=t;a&&a instanceof n&&(a=a.element),this.element=m(e,r,p,a),this.nodeName=e.toLowerCase(),this.added=Boolean(a),this.attrs={}}).prototype={attr:function(e){var t,r,n,a,i,o,s,p,g,m,v,b=this.element,y={};if("object"!=typeof e)return void 0!==this[e]?this[e]:function(e,t,r){var n,a;if("string"==typeof t)null!=r?e.setAttribute(t,r):e&&e.getAttribute&&(a=e.getAttribute(t));else if(null!=t&&"object"==typeof t)for(n in t)e.setAttribute(n,t[n]);return a}(b,e);for(t in e){if(n=e[t],h[t]){switch(t){case"cursor":"pointer"===n&&u&&(n="hand")}b.style[h[t]]=n,a=!0}else if(f[t])b.style[f[t]]=n+"px",a=!0;else if(d[t])b.style[d[t]]=(v=n)&&v.replace(/^#?([a-f0-9]+)/gi,"#$1")||"none",a=!0;else if(/^visibility$/i.test(t))i="hidden"===n,b.style.display=i?"none":"",this.hidden=i,a=!0;else if(/^opacity$/i.test(t))b.style.opacity=n,c&&(r=100*Number(n),b.style.filter="progid:DXImageTransform.Microsoft.Alpha(Opacity="+r+")"),a=!0;else if(/^innerhtml$/i.test(t)){if(u&&"select"===b.nodeName.toLowerCase()){for(o=n.match(/<option\s?[\s\S]*?(\/>|><\/option>|>[\s\S]*?<\/option>)/gi);b.firstChild;)b.removeChild(b.firstChild);for(p=0,g=o.length;p<g;p+=1)s=o[p],m=l.createElement("option"),/<option\s([\s\S]*[\'\"])\s*?(\/>|>[\s\S]*<\/option>)/gi.test(s)&&(m.value=s.replace(/<option\s([\s\S]*[\'\"])\s*?(\/>|>[\s\S]*<\/option>)/gi,"$1").replace(/[\s\S]*value\s*\=\s*[\'\"]([\s\S]*)[\'\"]/,"$1")),m.text=s.replace(/<option\s*[\s\S]*[\'\"]?\s*?[\/>|\>]([\s\S]*)<\/option>/gi,"$1 "),b.options.add(m)}else"input"!==b.nodeName.toLowerCase()&&void 0!==n&&(b.innerHTML=n||"");a=!0}else/^text$/i.test(t)?("input"!==b.nodeName.toLowerCase()&&(b.innerHTML="",void 0!==n&&b.appendChild(l.createTextNode(n))),a=!0):/^type$/i.test(t)&&c&&this.added&&(a=!0);a&&(y[t]=n,delete e[t],a=!1)}for(t in e)b.setAttribute(t,e[t]);for(t in y)this[t]=this.attrs[t]=e[t]=y[t],delete y[t];return this},val:function(e){var t=this.element,r=void 0===e;if("input"===this.nodeName&&"checkbox"===t.getAttribute("type"))return r?this.checked()?1:0:this.checked(e);if("select"===this.nodeName){var n=t.childNodes,a=t.selectedIndex,o=n.length;if(""===e)return;if(!r)for(var s=0;s<o;s++)if(n[s].value===e)return t.selectedIndex=s,n[s].value;return i.isIE9&&(a=0),r?n[a].value:(n[o-1].value=e,t.selectedIndex=o-1,this)}return r?t.value:(t.value=e,this)},checked:function(e){var t=this.element;return void 0===e?t.checked:(e?t.setAttribute("checked","checked"):t.removeAttribute("checked"),this)},css:function(e,t){var r,n=this.element.style;if("object"==typeof e)for(r in e)n[r]=e[r];else r&&void 0!==t&&(n[r]=t);return this},translate:function(e,t){var r=this.element;return void 0!==e&&(r.style.left=e+"px"),void 0!==t&&(r.style.top=t+"px"),this},add:function(e,t){var r=this.element,n=e.element;return t?n.insertBefore(r,n.firstChild):n.appendChild(r),this.added=!0,this},hide:function(){return this.element.style.display="none",this},show:function(){return this.element.style.display="",this},isVisible:function(){return"none"!==this.element.style.display},focus:function(){"function"==typeof this.element.focus?this.element.focus():a["default"].fire(this.element,"focus")},destroy:function(){var t,n=this.element||{};for(t in n.onclick=n.onmouseout=n.onmouseover=n.onmousemove=n.onblur=n.onfocus=null,n=function(e){r||(r=m("div")),e&&r.appendChild(e),r.innerHTML=""}(n),delete this.element,this)this[t]="function"==typeof this[t]?e._removedFactory(t):null;return this.removed=!0,null},on:function(e,t){var r=t;return g.on(this.element,e,r),this},off:function(e,t){g.off(this.element,e,t)},bind:function(e,t,r){return a["default"].listen(this.element,e,t,r),this},unbind:function(e,t){return a["default"].unlisten(this.element,e,t),this},trigger:function(e,t){return a["default"].fire(this.element,e,t),this}}).remove=t.destroy,t.constructor=n,e.fn.html=function(t,r,a,i){var o,s,l={};for(s in r&&"type"in r&&(l.type=r.type,delete r.type),o=new n(t,i,l).css(a).attr(r),l)r[s]=l[s];return o.ca=function(){return!1},o.appendTo=function(e){var t=e;this.parent=t,t&&t instanceof n&&(t=t.element),t.appendChild(this.element)},o.animateWith=e.el.animateWith,o}};var a=n(r(256)),i=r(254),o=n(r(298))},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(299)),i=n(r(300)),o={elementInfo:[]},s={mouseover:"pointerover",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup",mouseout:"pointerout"},l={mouseover:"touchstart",mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove",mouseout:"touchend"},c={blur:!0},u=window.navigator,h="ontouchstart"in document||u.maxTouchPoints||u.msMaxTouchPoints,f="onpointerover"in document,d=function(e,t,r,n){var a;switch(void 0===n&&(n=e),t){case"fc-click":return function(e,t,r){var n,a,i,o,s,l;if(void 0===r&&(r=e),!e._clickHandlerHelper){var c=function(t){e._lastEventTriggered="mousedown",o=void 0!==t.clientX?t.clientX:t.changedTouches&&t.changedTouches[0].clientX,s=void 0!==t.clientY?t.clientY:t.changedTouches&&t.changedTouches[0].clientY},u=function(t){var r=void 0!==t.clientX?t.clientX:t.changedTouches&&t.changedTouches[0].clientX,n=void 0!==t.clientY?t.clientY:t.changedTouches&&t.changedTouches[0].clientY;(Math.abs(o-r)>=2.5||Math.abs(s-n)>=2.5)&&(e._lastEventTriggered=void 0)};for(a in l=!f&&h?{touchstart:function(){e._lastEventTriggered="touchstart",e._lastEventTriggeredAt=(new Date).getTime()},touchmove:u}:f&&h?{pointerdown:c,pointermove:u}:{mousedown:c,mousemove:u})e.addEventListener?e.addEventListener(a,l[a]):e.attachEvent("on"+a,l[a]);e._clickHandlerHelper=l,e._clickEventCount=0}return++e._clickEventCount,!f&&h?(a="touchend",i=function(n){"touchstart"===e._lastEventTriggered&&(new Date).getTime()-e._lastEventTriggeredAt<=500&&setTimeout((function(){t.call(r,n)}),0)}):(a="click",i=function(n){"mousedown"===e._lastEventTriggered&&t.call(r,n)}),(n={})[a]=i,n}(e,r)}var i,u=t,d=u.match(/fc-/),p=r;return d&&(u=u.replace(/fc-/,"")),d&&h&&(i=u,u=(f?s[u]:l[u])||u,"mouseout"===i&&(p=function(e){f&&h&&!e.isPrimary||(o.elementInfo.push({el:n,callback:r}),o.srcElement=e.srcElement||e.target)},u=f?"pointerover":"touchstart")),p===r&&(p=function(e){(!f||!h||e.isPrimary||c[e.type])&&r.call(n,e)}),(a={})[u]=p,a};h&&document.addEventListener(f?"pointerover":"touchstart",(function(e){if(o.srcElement&&o.srcElement!==(e.srcElement||e.target)){var t,r,n=o.elementInfo,a=n.length;for(r=0;r<a;r++)(t=n[r]).callback.call(t.el,e)}o={elementInfo:[]}}),!0);var p=function(){function e(){this.mapper=new a["default"]}var t=e.prototype;return t.on=function(e,t,r,n){void 0===n&&(n={});var a,o,s=this.mapper,l=[e,t,r];if((0,i["default"])(l)&&!(a=s.getValue(l))){for(o in a=d(e,t,r),s.setValue(l,a),a)e.addEventListener?e.addEventListener(o,a[o]):e.attachEvent("on"+o,a[o]);return!0}return!1},t.off=function(e,t,r){var n,a,o=this.mapper,s=[e,t,r];if((0,i["default"])(s)&&(n=o.getValue(s))){for(a in function(e,t){switch(t){case"fc-click":(function(e){var t,r=e._clickHandlerHelper;if(!--e._clickEventCount){for(t in r)e.removeEventListener?e.removeEventListener(t,r[t]):e.detachEvent("on"+t,r[t]);e._clickHandlerHelper=void 0}})(e)}}(e,t),n)e.removeEventListener?e.removeEventListener(a,n[a]):e.detachEvent("on"+a,n[a]);return o.clear(s),!0}return!1},e}();t["default"]=p},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n=function(){function e(){this.map=new Map}var t=e.prototype;return t.clear=function(e){var t=this;void 0===e&&(e=[]);var r=this.map,n=e.length;e.forEach((function(a,i){r&&(i===n-1&&r["delete"]?(r["delete"](a),r.size||(e.pop(),t.clear(e))):r=r.has(a)&&r.get(a))}))},t.setValue=function(e,t){void 0===e&&(e=[]);var r=this.map,n=e.length;e.forEach((function(e,a){if(r.has(e))r=r.get(e);else if(a===n-1)r.set(e,t);else{var i=new Map;r.set(e,i),r=i}}))},t.getValue=function(e){void 0===e&&(e=[]);var t=this.map;return e.forEach((function(e){t=t&&t.get&&t.get(e)})),e.length&&t},e}();t["default"]=n},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(e){return e.filter((function(e){return!!e})).length===e.length}},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=function(e){var t=[{reg:/xmlns\=\"http\:\/\/www.w3.org\/2000\/svg\"/gi,repStr:""},{reg:/\r?\n|\r/g,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(e){return e.toLowerCase()}},{reg:/NS\d+\:href=/g,repStr:"xlink:href="}],r=function(e){var t=JSON.stringify(e);return t=t=(t=(t=(t=t.replace(/([a-z]+)([A-Z]+)([a-z]+)/g,(function(e,t,r,n){return t+"-"+r.toLowerCase()+n}))).replace(/\"\,\"/g,'";"')).replace(/\"/g," ")).replace(/\{|\}/g,"")};e.svg&&(e.fn.toSVG=function(e){var n,a="",i=0,o=t.length;if(this.canvas&&this.canvas.parentNode){for(a=this.canvas.parentNode.innerHTML;i<o;i+=1)n=t[i],a=a.replace(n.reg,n.repStr);this._stylesheet&&this._stylesheet.rules&&(a=function(e,t){var n,a,i,o,s,l,c,u=e,h=function(e){var t=e;return t=t.match(/style\s*=/)?t.replace(/(style\s*=")([^"]+)/g,(function(e,t,r){return t+o+r})):t.replace(/class\s*="[^"]*"/i,(function(e){return e+' style="'+o+'" '}))};for(n in t)if(t.hasOwnProperty(n))for(l in a=/\s+/,i=n.split(a),o=r(t[n]),i)i.hasOwnProperty(l)&&(s=i[l].trim().replace(".",""),c=new RegExp("<[^>]+("+s+")[^>]+","g"),u=u.replace(c,h));return u}(a,this._stylesheet.rules))}return e||(a=a.replace(/<image[^\>]*\>/gi,(function(e){return e.match(/href=\"data\:image/i)?e:""}))),a})}},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=function(e){e&&(e.svg?e.el.addPattern=function(t,r){void 0===t&&(t={}),void 0===r&&(r=0);if(this.patternInfo&&(this.patternInfo.element.remove(),delete this.patternInfo),r){var n=this.paper.addDefs({pattern:c({},h(t))}).pattern;this.node.setAttribute("fill",'url("'+e._url+"#"+n.id+'")'),this.patternInfo=n}}:e.el.addPattern=function(){return this})};var a=n(r(253)),i=n(r(303)),o=n(r(304)),s=n(r(305));function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){(0,a["default"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u={line:i["default"],circle:o["default"],square:s["default"]},h=function(e){var t=e.patternSize+e.patternDensity;return{tagName:"pattern",height:t,width:t,x:e.x||0,y:e.y||0,patternTransform:"rotate("+e.patternAngle+")",patternUnits:"userSpaceOnUse",children:[].concat(u[e.patternType](e))}}},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(254);t["default"]=function(e){var t=e.patternSize+e.patternDensity,r=(0,n.hashify)(e.color);return[{tagName:"rect",height:t,width:t,fill:e.patternBgColor,opacity:e.alpha/100},{tagName:"path",d:"M 0, "+t/2+" L "+t+", "+t/2,"stroke-width":e.patternSize,stroke:n.validhexcolor.test(r)?r:(0,n.rgbaToHex)(e.color),opacity:e.patternAlpha/100}]}},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(254);t["default"]=function(e){var t=e.patternSize+e.patternDensity,r=(0,n.hashify)(e.color),a=n.validhexcolor.test(r)?r:(0,n.rgbaToHex)(e.color);return[{tagName:"rect",height:t,width:t,fill:e.patternBgColor,opacity:e.alpha/100},{tagName:"circle",cx:t/2,cy:t/2,r:e.patternSize/2,stroke:a,fill:a,opacity:e.patternAlpha/100}]}},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(254);t["default"]=function(e){var t=e.patternSize+e.patternDensity,r=(0,n.hashify)(e.color),a=n.validhexcolor.test(r)?r:(0,n.rgbaToHex)(e.color);return[{tagName:"rect",height:t,width:t,fill:e.patternBgColor,opacity:e.alpha/100},{tagName:"rect",x:e.patternDensity/2,y:e.patternDensity/2,height:e.patternSize,width:e.patternSize,stroke:a,fill:a,opacity:e.patternAlpha/100}]}},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=t._mouseEvtHandler=void 0;var a=n(r(268)),i=r(254),o=r(261),s=n(r(307)),l=r(270),c=n(r(308)),u=r(262),h=n(r(309)),f=r(266),d="http://www.w3.org/2000/svg",p="M23,11.46V1.87h5.8V3.31h-4.1V6h3.48V7.46H24.71v4Zm7-2.68V4.26h1.69v4.3c0,1.19.34,1.63,1.12,1.63.63,0,1-.3,1.59-1V4.26h1.69v7.2H34.67l-.13-1.05h0a3,3,0,0,1-2.32,1.23C30.64,11.64,30,10.6,30,8.78Zm7.51,1.86.8-1.08a3.23,3.23,0,0,0,2,.8c.78,0,1.14-.36,1.14-.86s-.77-.87-1.54-1.16c-1-.35-2-.9-2-2.1s1-2.15,2.63-2.15A3.94,3.94,0,0,1,42.86,5l-.78,1a2.66,2.66,0,0,0-1.58-.62c-.72,0-1.06.34-1.06.79s.72.8,1.5,1.07c1,.37,2.06.84,2.06,2.19s-1,2.23-2.8,2.23A4.6,4.6,0,0,1,37.47,10.64ZM45.36,3a1,1,0,1,1,1-1A1,1,0,0,1,45.36,3Zm-.85,8.46V4.26H46.2v7.2Zm3.38-3.59a3.44,3.44,0,1,1,6.85,0,3.44,3.44,0,1,1-6.85,0Zm1.73,0c0,1.44.63,2.39,1.69,2.39S53,9.31,53,7.87s-.65-2.41-1.7-2.41S49.62,6.42,49.62,7.87Zm6.79,3.59V4.26H57.8l.12,1H58a3.34,3.34,0,0,1,2.36-1.14c1.54,0,2.21,1,2.21,2.86v4.51H60.87V7.17c0-1.19-.34-1.63-1.13-1.63a2.29,2.29,0,0,0-1.64.89v5ZM64.24,6.7c0-3.14,2-5,4.43-5A3.79,3.79,0,0,1,71.4,2.91L70.46,4a2.42,2.42,0,0,0-1.77-.79C67.12,3.18,66,4.5,66,6.65s1,3.51,2.64,3.51a2.57,2.57,0,0,0,2-1l.94,1.05a3.84,3.84,0,0,1-3,1.39C66.16,11.64,64.24,9.88,64.24,6.7ZM73,11.46V1.11h1.68V3.78l0,1.39A3.3,3.3,0,0,1,77,4.09c1.54,0,2.21,1,2.21,2.86v4.51H77.49V7.17c0-1.19-.34-1.63-1.13-1.63a2.33,2.33,0,0,0-1.65.89v5ZM80.9,9.53c0-1.54,1.29-2.35,4.24-2.67,0-.77-.33-1.41-1.3-1.41a4,4,0,0,0-2,.7L81.2,5a5.64,5.64,0,0,1,3-.93c1.8,0,2.68,1.1,2.68,3.1v4.27H85.45l-.13-.79h0a3.49,3.49,0,0,1-2.22,1A2,2,0,0,1,80.9,9.53Zm1.65-.14c0,.65.42.93,1,.93a2.25,2.25,0,0,0,1.57-.79V7.91C83.19,8.16,82.55,8.68,82.55,9.39Zm6.33,2.07V4.26h1.4l.11,1.28h.06a2.45,2.45,0,0,1,2-1.45,1.86,1.86,0,0,1,.82.14L93,5.7a2.46,2.46,0,0,0-.75-.12c-.57,0-1.26.4-1.7,1.48v4.4ZM94.6,9V5.6h-1V4.33l1.11-.07.21-2h1.4v2h1.84V5.6H96.3V9c0,.85.33,1.26,1,1.26a2,2,0,0,0,.74-.16l.3,1.24a4.43,4.43,0,0,1-1.47.27C95.22,11.64,94.6,10.58,94.6,9Zm4.33,1.61.79-1.08a3.26,3.26,0,0,0,2,.8c.77,0,1.14-.36,1.14-.86s-.78-.87-1.54-1.16c-.95-.35-2-.9-2-2.1s1-2.15,2.62-2.15a3.89,3.89,0,0,1,2.39.86l-.77,1A2.69,2.69,0,0,0,102,5.36c-.72,0-1,.34-1,.79s.71.8,1.49,1.07c1,.37,2.07.84,2.07,2.19s-1,2.23-2.8,2.23A4.58,4.58,0,0,1,98.93,10.64Z",g=["M111.54,4.59h-2.39V3.32h6.28V4.59H113v7h-1.5Z","M116.11,5.38h1.24l.11,1.11h0a2.15,2.15,0,0,1,1.77-1.27,1.7,1.7,0,0,1,.71.13l-.3,1.28a2.1,2.1,0,0,0-.6-.07c-.49,0-1.09.33-1.46,1.28v3.78h-1.51Z","M120.75,3.46a.9.9,0,0,1,1.8,0,.9.9,0,0,1-1.8,0Zm.13,1.92h1.51v6.24h-1.51Z","M123.89,9.94c0-1.37,1.09-2,3.65-2.33,0-.64-.27-1.17-1.11-1.17a3.6,3.6,0,0,0-1.75.58l-.53-1a4.78,4.78,0,0,1,2.56-.82c1.55,0,2.33,1,2.33,2.71v3.69h-1.22l-.12-.69h0a2.93,2.93,0,0,1-1.91.84A1.75,1.75,0,0,1,123.89,9.94Zm3.65,0V8.62c-1.69.21-2.2.59-2.2,1.22s.35.74.86.74A1.85,1.85,0,0,0,127.54,9.94Z","M130.77,10V2.66h1.51v7.4c0,.36.16.49.31.49a1,1,0,0,0,.23,0l.18,1.1a1.77,1.77,0,0,1-.79.14C131.16,11.77,130.77,11.08,130.77,10Z"],m=["M9.76,0L12.93,0L12.93,11.39,L9.76,11.39L9.76,0","M9.76,12.86L12.93,12.86L12.93,16.19L9.76,16.19L9.76,12.86"],v={x:0,y:1.63,width:3.33,height:9.76},b={x:4.8,y:6.43,width:3.41,height:4.96},y={attributes:!1,subtree:!0,characterData:!0,childList:!0},x=function(e){return String.fromCharCode(e)},w=function(e){return e.map(x).join("")},_=w([99,114,101,100,105,116,76,97,98,101,108]),S=w([99,114,101,100,105,116,103,114,111,117,112]),C=[65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122].map(x),k=function(){return C[Math.floor((e=0,t=C.length,Math.random()*(t-e)+e))];var e,t},A=function(e,t,r){var n,a,o,s,l,c,u,h,f=r.mouseTracker,d=t.originalEvent,p=e.config.datasetOrder||e.getDatasets(),g=!1,m=p.length,v=f._lastDatasetIndex,b=f._lastPointIndex;for(a=(n=(0,i.getMouseCoordinate)(e.getFromEnv("chart-container"),d,e)).chartX,o=n.chartY;m--&&!g;)(s=p[m])&&s.getState("visible")&&(l=s._getHoveredPlot&&s._getHoveredPlot(a,o))&&l.hovered&&(g=!0,l.datasetIndex=m,h=f.getMouseEvents(t,l.datasetIndex,l.pointIndex));if((!g||h&&h.fireOut)&&void 0!==v&&p[v]&&p[v]._firePlotEvent&&(h&&!h.events.length?f.mouseoutTimer=setTimeout((function(){e.mouseoutHandler(t,v,b)}),20):(e.mouseoutHandler(t,v,b),clearTimeout(f.mouseoutTimer))),g)for((u=h.events&&h.events.length)&&(f._lastDatasetIndex=l.datasetIndex,b=f._lastPointIndex=l.pointIndex),c=0;c<u;c+=1)s&&s._firePlotEvent&&s&&s._firePlotEvent&&s._firePlotEvent(h.events[c],b,t,l.datasetIndex)};t._mouseEvtHandler=A;var N=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e),t.getName=function(){return"base"};var r=t.prototype;return r.setDummyEImethods=function(e){var t=this.config,r=t._eiStore||(t._eiStore={}),n=function(e){return(h["default"][e]||[]).concat(h["default"]["*"])}(e),a=this.getFromEnv("chartInstance");n.forEach((function(e){var t;!a[e]&&(a[e]=(t=e,function(){!r[t]&&(r[t]=[]),r[t].push(arguments)}))})),a.addEventListener("renderComplete",(function(){var e=function(e){r[e].forEach((function(t){a[e].apply(a,t)}))};for(var n in r)e(n);t._eiStore={}}))},t.getType=function(){return"chartAPI"},r.mouseoutHandler=function(e,t,r){var n=this.config.datasetOrder||this.getDatasets(),a=this.getChildren("mouseTracker")[0],i=n[t];i&&i.components&&i.components.data&&i.components.data[r]?n[t]._firePlotEvent("fc-mouseout",r,e):this.getFromEnv("toolTipController").hideAll(),delete a._lastDatasetIndex,delete a._lastPointIndex},r.getName=function(){return"base"},r.getType=function(){return"chartAPI"},r._mouseEvtHandler=function(e,t){A(this,e,t)},r.getComponents=function(e,t){var r=[];return(e||this).iterateComponents((function(e){e.getType()===t&&r.push(e)})),r},r.getDatasets=function(e){var t=[];return(e||this).iterateComponents((function(e){"dataset"===e.getType()&&t.push(e)})),t},r.preConfigure=function(t){e.prototype.preConfigure.call(this,t),function(e,t){var r;for(r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}(this.getFromEnv("chartInstance"),this.eiMethods)},r.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),this.createBaseComponent()},r.createBaseComponent=function(){var e,t=this;(e=t.getFromEnv("animationManager"))?e.configure():(e=new c["default"],t.addToEnv("animationManager",e),e.addToEnv("chart",t),e.addToEnv("animationManager",e),e.configure(),t.addExtEventListener("animationstart",(function(e){var r=e.data.duration;r&&t.fireChartInstanceEvent("animationinvoked",{duration:r})}),e))},r.setChartMessage=function(e,t,r){var n,a,o=r;(0,i.componentFactory)(this,s["default"],"chartMessage"),a=this.getChildren("chartMessage")[0],o?this.addToEnv("chart-container",o):o=this.getFromEnv("chart-container"),(n=this.getFromEnv("paper"))||((n=new((0,u.getDep)("redraphael","plugin"))(o,this.getFromEnv("chartWidth"),this.getFromEnv("chartHeight"))).setHTMLClassName("fusioncharts-div"),this.addToEnv("paper",n)),n.setConfig("stroke-linecap",i.ROUND),!this.getChildContainer("messageGroup")&&this.addChildContainer("messageGroup",n.group("messageGroup")),this.config.hasChartMessage=!0,a.setData({message:e,chartObj:t,visible:!0},!0)},r.drawChartMessage=function(){this.config.hasChartMessage=!0,this._drawTexts()},r._dispose=function(){this._clearTimers&&this._clearTimers();var t=this.getFromEnv("paper");t&&t.remove&&t.remove(),e.prototype._dispose.call(this)},r.fireChartInstanceEvent=function(e,t,r,n,a){var i=this.getFromEnv("chartInstance");(0,o.triggerEvent)(e,i,t,r,n,a)},r._hideChartMessage=function(){var e=this.getChildren("chartMessage");this.config.hasChartMessage=!1,e&&e[0].setData({visible:!1},!0),this.getGraphicalElement("messageText")&&this.getGraphicalElement("messageText").hide(),this.getGraphicalElement("messageVeil")&&this.getGraphicalElement("messageVeil").hide()},r._removeWaitingJobs=function(){this.iterateComponents((function(e){return e.removeAllJobs()}))},r._drawTexts=function(){this._drawMain(!1)},r._drawMain=function(e){this._crCreate(e),e&&this._scheduleLabelCheck(e)},r._scheduleLabelCheck=function(e){var t=this;t.addJob("checker",(function(){var r,n=t.getContainer(S);!n||(r=n).node&&r.node.parentNode&&11!==r.node.parentNode.nodeType||t._crCreate(e),t._scheduleLabelCheck(e)}),f.priorityList.verification,{oneInAFrame:!0,addToTop:!1,executionDelay:300})},r._crCreate=function(e){var t,r,n=this,a=n.getFromEnv("paper"),o=+n.getFromEnv("chartHeight"),s=n.getGraphicalElement(_),l=n.getContainer("parentgroup"),c={href:i.TXT_HREF};if(e){if(n.getContainer(S)&&n.removeContainer(S),s&&n.removeGraphicalElement(s),!a||!a.group)return;t=n.addContainer(S,a.group(function(e){void 0===e&&(e=8);for(var t=i.BLANK,r=0;r<e;r++)t+=k();return t}(),!0)),l&&t.insertAfter(l),n.addGraphicalElement(_,void 0),r=this._creatingTheLogo(o-27.32),t.node.appendChild(r),n.config.observer?n.config.observer.disconnect():n.config.observer=new MutationObserver((function(){return n._crCreate(e)})),n.config.observer.observe(n.getContainer(S).node,y),t.on("fc-click",(function(){try{open(c.href)}catch(e){(top||window).location.href=c.href}}))}else void 0},r.hoverCallback=function(e){"mouseover"===e.type?this.style.fill="#373c8b":"mouseout"===e.type&&(this.style.fill="#b1b2b7")},r._creatingTheLogo=function(e){var t,r,n,a,i,o,s,l,c,u,h;return(t=document.createElementNS(d,"g")).setAttributeNS(null,"transform","translate(18,"+e+")"),t.setAttributeNS(null,"fill","#b1b2b7"),t.setAttributeNS(null,"cursor","pointer"),t.setAttributeNS(null,"pointer-events","bounding-box"),t.setAttributeNS(null,"style","transition:0.5s;"),(r=document.createElementNS(d,"path")).setAttribute("d",p),r.setAttributeNS(null,"fill",""),r.setAttributeNS(null,"stroke",""),r.setAttributeNS(null,"stroke-linecap",""),(n=document.createElementNS(d,"rect")).setAttributeNS(null,"x",v.x),n.setAttributeNS(null,"y",v.y),n.setAttributeNS(null,"width",v.width),n.setAttributeNS(null,"height",v.height),n.setAttributeNS(null,"fill",""),n.setAttributeNS(null,"stroke",""),n.setAttributeNS(null,"stroke-linecap",""),(a=document.createElementNS(d,"rect")).setAttributeNS(null,"x",b.x),a.setAttributeNS(null,"y",b.y),a.setAttributeNS(null,"width",b.width),a.setAttributeNS(null,"height",b.height),a.setAttributeNS(null,"fill",""),a.setAttributeNS(null,"stroke",""),a.setAttributeNS(null,"stroke-linecap",""),(i=document.createElementNS(d,"path")).setAttributeNS(null,"d",m[0]),i.setAttributeNS(null,"fill",""),i.setAttributeNS(null,"stroke",""),i.setAttributeNS(null,"stroke-linecap",""),(o=document.createElementNS(d,"path")).setAttributeNS(null,"d",m[1]),o.setAttributeNS(null,"fill",""),o.setAttributeNS(null,"stroke",""),o.setAttributeNS(null,"stroke-linecap",""),(s=document.createElementNS(d,"path")).setAttributeNS(null,"d",g[0]),s.setAttributeNS(null,"fill",""),s.setAttributeNS(null,"stroke",""),s.setAttributeNS(null,"stroke-linecap",""),(l=document.createElementNS(d,"path")).setAttributeNS(null,"d",g[1]),l.setAttributeNS(null,"fill",""),l.setAttributeNS(null,"stroke",""),l.setAttributeNS(null,"stroke-linecap",""),(c=document.createElementNS(d,"path")).setAttributeNS(null,"d",g[2]),c.setAttributeNS(null,"fill",""),c.setAttributeNS(null,"stroke",""),c.setAttributeNS(null,"stroke-linecap",""),(u=document.createElementNS(d,"path")).setAttributeNS(null,"d",g[3]),u.setAttributeNS(null,"fill",""),u.setAttributeNS(null,"stroke",""),u.setAttributeNS(null,"stroke-linecap",""),(h=document.createElementNS(d,"path")).setAttributeNS(null,"d",g[4]),h.setAttributeNS(null,"fill",""),h.setAttributeNS(null,"stroke",""),h.setAttributeNS(null,"stroke-linecap",""),t.appendChild(r),t.appendChild(n),t.appendChild(a),t.appendChild(i),t.appendChild(o),t.appendChild(s),t.appendChild(l),t.appendChild(c),t.appendChild(u),t.appendChild(h),t.addEventListener("mouseover",this.hoverCallback),t.addEventListener("mouseout",this.hoverCallback),t},r._hideModal=function(){this.getChildContainer("messageGroup").hide()},r.remove=function(t){var r=this.getFromEnv("animationManager");this.config.observer&&this.config.observer.disconnect(),e.prototype.remove.call(this,t),r&&r.remove(t)},t}(l.ComponentInterface);N.stringConstants={BACKGROUNDLOADED:"BackgroundLoaded",BACKGROUNDLOADERROR:"BackgroundLoadError",clipRectStr:"clip-rect"};var E=N;t["default"]=E},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=r(270),o=r(254),s=o.preDefStr.noneStr,l=function(e,t){e.on("fc-click",(function(){try{open(t)}catch(e){(top||window).location.href=t}})),e.css({cursor:"pointer",_cursor:"pointer"})},c=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"chartMessage"},r.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t);var r=this.config;for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n])},r._drawBackground=function(e,t){void 0===t&&(t={});var r,n,a,i,c=this,u=c.config,h=c.getFromEnv("paper"),f=c.getFromEnv("chart"),d=u.visible,p=c.getGraphicalElement("backgroundElement"),g=c.getGraphicalElement("backgroundImage"),m=c.getFromEnv("chartWidth"),v=c.getFromEnv("chartHeight"),b=c.getLinkedParent().getChildContainer("messageGroup").show(),y=(0,o.pluckNumber)(t.imageAlpha,100),x=0+o.COMMA+0+o.COMMA+m+o.COMMA+v,w=(0,o.getValidValue)(t.imageVAlign,o.BLANKSTRING).toLowerCase(),_=(0,o.pluck)(t.imageHAlign,o.BLANKSTRING).toLowerCase(),S=(0,o.pluckNumber)(t.imageScale,100),C=c.getFromEnv("chartInstance"),k=u.messageURL,A=(0,o.getContainerBackgroundColor)(C);h.canvas.style.backgroundColor=A,w!==o.POSITION_TOP&&w!==o.POSITION_MIDDLE&&w!==o.POSITION_BOTTOM&&(w=o.POSITION_TOP),_!==o.POSITION_LEFT&&_!==o.POSITION_MIDDLE&&_!==o.POSITION_RIGHT&&(_=o.POSITION_LEFT),n={x:0,y:0,width:m,height:v,stroke:s},p||(p=h.rect(b),c.addGraphicalElement("backgroundElement",p)),p.attr(n),p&&k&&l(p,k),u.bgImageVAlign=w,u.bgImageHAlign=_,u.bgImageScale=S,u.bgSWFAlpha=y,u.imgClipRect=x,e&&((r=g)?r.attr({src:e}):(r=c.getFromEnv("paper").image(b),c.addGraphicalElement("backgroundImage",r),r.attr({src:e}),r.on("load",(function(){if(!(!r||r&&r.removed)){var t=r._.RefImg;a=c.getFromEnv("chartConfig"),u.isImage&&(void 0===a||a.hasChartMessage)&&(i=(0,o.setImageDisplayMode)(s,u.bgImageVAlign,u.bgImageHAlign,u.bgImageScale,0,c.getFromEnv("chartWidth"),c.getFromEnv("chartHeight"),t),(0,o.extend2)(i,{opacity:.01*u.bgSWFAlpha,visibility:"visible","clip-rect":u.imgClipRect}),r.attr(i),d?r.show():r.hide(),r&&k&&l(r,k),f.fireChartInstanceEvent("backgroundloaded",{url:e,bgImageAlpha:100*u.bgSWFAlpha,bgImageDisplayMode:s,bgImageVAlign:u.bgImageVAlign,bgImageHAlign:u.bgImageHAlign,bgImageScale:u.bgImageScale,imageWidth:t.width,imageHeight:t.height}))}})),r.on("error",(function(t){r.removed||f.fireChartInstanceEvent("backgroundloaderror",{url:e,bgImageAlpha:100*u.bgSWFAlpha,error:t,bgImageDisplayMode:s,bgImageVAlign:u.bgImageVAlign,bgImageHAlign:u.bgImageHAlign,bgImageScale:u.bgImageScale},C)}))))},r.configure=function(t){e.prototype.configure.call(this,t);var r,n=this.getFromEnv("chartInstance"),a=n.options,i=n.args,s=this.config,l=s.message,c=s.chartObj;(s.strObj=(0,o.getImageURL)(void 0!==l?l:a.dataEmptyMessage)).image?(r=c?{imageHAlign:(0,o.pluck)(c._chartMessageImageStyle.imageHAlign,a.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:(0,o.pluck)(c._chartMessageImageStyle.imageVAlign,a.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:(0,o.pluckNumber)(c._chartMessageImageStyle.imageAlpha,a.baseChartMessageImageAlpha),imageScale:(0,o.pluckNumber)(c._chartMessageImageStyle.imageScale,a.baseChartMessageImageScale)}:{imageHAlign:(0,o.pluck)(i.dataEmptyMessageImageHAlign,a.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:(0,o.pluck)(i.dataEmptyMessageImageVAlign,a.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:(0,o.pluckNumber)(i.dataEmptyMessageImageAlpha,a.baseChartMessageImageAlpha),imageScale:(0,o.pluckNumber)(i.dataEmptyMessageImageScale,a.baseChartMessageImageScale)},s.chartMessageType="image"):(r=c?{"font-family":c._chartMessageStyle.fontFamily||a.baseChartMessageFont,"font-size":c._chartMessageStyle.fontSize||a.baseChartMessageFontSize,fill:c._chartMessageStyle.color||a.baseChartMessageColor}:{"font-family":i.dataEmptyMessageFont||a.baseChartMessageFont,"font-size":i.dataEmptyMessageFontSize||a.baseChartMessageFontSize,fill:i.dataEmptyMessageColor||a.baseChartMessageColor},s.chartMessageType="text"),s.messageURL=a.messageURL,s.chartMessageStyle=r},r.manageSpace=function(){var e,t,r,n=this.config,a=n.chartMessageStyle,i=this.getFromEnv("smartLabel"),s=n.strObj,l=this.getFromEnv("chartWidth"),c=this.getFromEnv("chartHeight");t=n.width=Number(l),e=n.height=Number(c),s.image?r=s.string:(i.setStyle(a),r={text:i.getSmartText((0,o.parseUnsafeString)(s.string),t,e).text,x:t/2,y:e/2}),n.chartMessageAttr=r},r.draw=function(){var e,t,r,n=this.config,a=this.getFromEnv("paper"),i=n.visible,s=n.isImage="image"===n.chartMessageType,c=n.messageURL,u=s?n.chartMessageAttr:(0,o.extend2)(n.chartMessageAttr,n.chartMessageStyle);e=this.getGraphicalElement("messageText"),r=this._graphics,t=this.getLinkedParent().getChildContainer("messageGroup").show(),s?this._drawBackground(n.chartMessageAttr,n.chartMessageStyle):e||"text"!==n.chartMessageType?(r.message=e.attr(u),i?e.show():e.hide()):e=this.addGraphicalElement("messageText",a.text(u,t)),(e||r.message)&&c&&l(e||r.message,c),this._hideOtherMessage(s)},r._hideOtherMessage=function(e){var t,r,n;e?(r=this.getGraphicalElement("messageText"))&&r.hide():(t=this.getGraphicalElement("backgroundImage"),n=this.getGraphicalElement("backgroundElement"),t&&t.hide(),n&&n.hide())},r.getType=function(){return"chartMessage"},t}(i.ComponentInterface);t["default"]=c},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a,i=n(r(272)),o=n(r(268)),s=r(254),l=r(266),c=r(270),u=r(262),h=!s.hasSVG,f={initial:1,update:0,realTimeUpdate:0,resize:0,dispose:0,legendInteraction:0,scroll:0,mouseOut:0,mouseOver:0,"default":0,slicing:.25,timenavSqueeze:0,selectedRange:0,timenavScroll:0},d={MSColumn2D:!0,MSColumn3D:!0,MSBar2D:!0,MSBar3D:!0,StackedColumn2D:!0,StackedColumn3D:!0,StackedBar2D:!0,StackedBar3D:!0,MSStackedColumn2D:!0,MSStackedBar2D:!0,ScrollColumn2D:!0,ScrollMSStackedColumn2D:!0,ScrollBar2D:!0,ScrollStackedColumn2D:!0,ScrollStackedBar2D:!0},p=["default","global","chartSpecific"],g={fadeIn:{opacity:{start:0,end:1}},fadeOut:{opacity:{start:1,end:0}}},m={fadeIn:function(){this&&this.show()},fadeOut:function(){this&&this.hide()}},v=function(e){return null===e},b=function(e,t){void 0===t&&(t="");var r=t.split(","),n=[];return r.forEach((function(t){e[t]&&e[t].animation&&n.push(e[t].animation)})),n},y=function(e,t,r){var n,a=Object.assign({},e),i=r/t;return i>.2&&(i=.2),n=a.end-a.start,a.start*=1-i,a.start+=i,a.end=a.start+(1-i)*n,a.start=Math.round(100*a.start)/100,a.end=Math.round(100*a.end)/100,a},x=function(e,t,r){var n,i=g[t],o=s.BLANKSTRING,l={};if(i&&e&&e.el&&e.el[0]){for(o in i)l[o]=e.el.attrs[o],l[o]===a&&(l[o]=null),e.attrs[o]=i[o].end,e.el.attr(o,i[o].start);n=e.callback,e.callback=function(){r&&m[t]&&m[t].call(this),n&&n.call&&n.call(this),this.attr(l)}}},w=function(e,t){var r,n=t,a=!0;if(n){for(e.attrs=e.attrs||{},~(n=n.split("-")).indexOf("nc")&&(a=!1),r=n.length;r--;)x(e,n[r],a);return e}},_=function(e,t,r,n,a,i,o,s){e.animateWith(a,i,t,o,s,r,n)},S=function(e){var t={};for(var r in e)if(e.hasOwnProperty(r)&&"__esModule"!==r){var n=e[r];C(t,n)}return t},C=function(e,t){for(var r in t)t.hasOwnProperty(r)&&(!e[r]&&(e[r]=[]),e[r].push(t[r]))},k=function(e){return"function"==typeof e};function A(e,t,r,n){var a,i,o,s,l,c=e.length,u=0,h=0,f=t;for(i=0,o=0,l=0;l<c;l+=1)(a=e[l]).hasAnimation||!1===a.collapsible?o+=1:i+=a.duration,h+=a.duration;for(i/=o,l=0;l<c;l+=1)(a=e[l]).hasAnimation&&(s=r-t,f=(u=f)+(a.duration/h+i)*s,n[a.name]={start:u,end:f,effect:a.effect,transition:a.transition},a.child&&E(a.child,u,f,n))}function N(e,t,r,n){var a,i,o;i=t+(i=e.start)*(a=r-t),o=t+(o=e.end)*a,n[e.name]={start:i,end:o,effect:e.effect,transition:e.transition},e.child&&E(e.child,i,o,n)}function E(e,t,r,n){var a,i,o=e.length;for(a=0;a<o;a++)i=e[a],Array.isArray(i)?A(i,t,r,n):N(i,t,r,n)}g.fadein=g.fadeIn,g.fadeout=g.fadeOut;var L=function(e){(0,o["default"])(r,e);var t=r.prototype;function r(){var t;t=e.call(this)||this;var r=(0,i["default"])(t);return r._removedGraphics=[],r._animCallBack=function(){if(!r.getState("removed")&&!this.removed){var e=r.getAnimationState();r._removeElems(),r.reset(),r.fireEvent("animationComplete",{currAnimState:e})}},r.startAnimation=function(){r.kickStart(),r.animate()},t}return t.getType=function(){return"animationManager"},t.getName=function(){return"animationManager"},t.stopAnimation=function(){if(this.getState("chartAnimating")){var e,t=this.config.animationObj,r=t&&t.duration;r?(e=this.getGraphicalElement().dummyObj)&&e.stop(a,!0,!0):0===r&&(this.removeJob("anim-callBack"),this._animCallBack())}},t.kickStart=function(){var e,t,r,n=this.config,i=this.getGraphicalElement(),o=this.getFromEnv("paper"),s=n.animationObj,l=n.animationeffect;t=s.duration,s.animObj=r=(0,u.getDep)("redraphael","plugin").animation({x:0},t,l,this._animCallBack,!0),s.animType=l,(e=i.dummyObj)?e.attr({x:100}):(e=o.rect({x:100,y:0,width:10,height:30}),this.addGraphicalElement("dummyObj",e),e.hide()),s.dummyObj=i.dummyObj,e.stop(a,!0,!0),this.fireEvent("animationStart",{duration:t}),this.setState("chartAnimating",!0),e.animate(r)},t.setAnimationState=function(e){void 0===e&&(e=a),e&&this.stopAnimation(),this.config.__state=e,this._setAnimDuration(e)},t.getAnimationState=function(){return this.config&&this.config.__state},t._setAnimDuration=function(e){void 0===e&&(e="default");var t=this.config,n=t.animationObj||(t.animationObj={}),a=t.animationDuration||(t.animationDuration={}),i=this.getFromEnv("chart"),o=i.config.transposeAxis&&"legendInteraction"===e&&d[i.getName()],s=i.getFromEnv("chart-attrib")||{},l=e+"AnimDuration",c=t.killSwitch?0:1e3*(a[l]||s[o?"transposeanimation":l.toLowerCase()]||(o?.25:r.getFallbackAnimDuration(e)));n&&(n[l]=c,n.duration=+c)},t.configureAttributes=function(){var e=this.getFromEnv("chart"),t=e.config,r=this.config,n=e.getFromEnv("chart-attrib")||{};r.killSwitch=!(0,s.pluckNumber)(n.animation,t.animation,1),r.animationeffect=t.animationeffect||"linear",this.invokeAnimationRules(),!r.workingRules&&(r.workingRules={}),!r.animateArr&&(r.animateArr=[]),!r.animationName&&(r.animationName=[])},t.invokeAnimationRules=function(){var e,t=this.getFromEnv("chart"),n=t.getFromEnv("chart-attrib")||{},a=t.config||{},i=this.config,o=t.getFromEnv("chartInstance").args.animation,l=t.getFromEnv("core-options").defaultTheme,c=function(e){var t,r={};for(var n in e)e.hasOwnProperty(n)&&(r[(t=e[n]).name]=t);return r}((0,u.getDepsByType)("theme")),h=(t.getFromEnv("core-options")._globalAnimationRule||[]).concat(b(c,l)),f=(o&&[o]||[]).concat(b(c,a.theme));i.animationRules={global:S(h.map((function(e){return e&&e.rule})).filter((function(e){return e}))),chartSpecific:S(f.map((function(e){return e&&e.rule})).filter((function(e){return e}))),"default":S((0,u.getDepsByType)("animationRule"))},i.animationDuration=e={},h.map((function(t){return Object.assign(e,t.duration)})),f.map((function(t){return Object.assign(e,t.duration)})),e.initialAnimDuration=(0,s.pluckNumber)(e.initialAnimDuration,n.initialanimduration,n.animationduration),this.config.slots=r.getFallbackAnimTimeSlots().concat([].concat.apply([],h.map((function(e){return e.slots}))).filter((function(e){return e}))).concat([].concat.apply([],f.map((function(e){return e.slots}))).filter((function(e){return e})))},t.reInitialize=function(){var e=this.config.animationObj.duration;this.setState("initialized",!0),e?this.addJob("start-animation",this.startAnimation,l.priorityList.animation):(this.fireEvent("animationStart",{duration:e}),this.setState("chartAnimating",!0),this.addJob("anim-callBack",this._animCallBack,l.priorityList.animation))},t.reset=function(){this.setState("initialized",!1),this.config&&this.config.animateArr&&(this.config.animateArr.length=0),this.setState("chartAnimating",!1),this.setAnimationState()},t.registerAnimObj=function(e){var t;for(t in e)this.registerAnimation(e[t],t)},t.getFinalSlots=function(){var e=this.config,t=e.slots,r=e.workingRules={};return function n(e,t){var r,a,i,o,s,l,c=!1;if(!e)return!1;for(i=0,o=e.length;i<o;i+=1)if(a=e[i],Array.isArray(a))for(s=0,l=e[i].length;s<l;s+=1)a=e[i][s],r=!1,-1!==t.indexOf(a.name)?r=!0:a.child&&(r=a.hasAnimation=n(a.child,t)),c=c||r,a.hasAnimation=r;else r=!1,-1!==t.indexOf(a.name)?r=!0:a.child&&(r=a.hasAnimation=n(a.child,t)),c=c||r,a.hasAnimation=r;return c}(t,e.animationName),E(t,0,1,r),r["default"]={start:0,end:1},r},t.registerOne=function(e,t){this.registerAnimation([{data:[e]}],t)},t.registerAnimation=function(e,t){void 0===e&&(e=[]);var r,n,a,i=!1;for(r=0,a=e.length;r<a;r+=1)(n=e[r]).data&&n.data.length&&(this.config.animateArr.push((n.component=t,n)),i=!0);i&&this.config.animationName.push(t),!this.getState("initialized")&&this.reInitialize()},t.onAnimationComplete=function(e){this.addEventListener("animationComplete",(function(t){e(),t.detachHandler()}))},r.removeOpacityFromGroup=function(e,t){t&&h&&("group"===e||"group"===e.type)&&delete t.opacity},t.setAnimation=function(e){void 0===e&&(e={});var t,n,i,o,l,c,u,h,f,d,p,g,m,v,b=this.config,y=b.animationObj,x=e.el,w=e.attr||{},_={},S={},C=function(t,r,n,a){return function(){n.callback&&n.callback.call(this),t&&this.attr(t),r&&e.callback&&e.callback.call(this),a&&this.appendTo(a)}},k=function(e,t,r){return function(){t.hookFn&&t.hookFn.call(this),e&&this.attr(e),r&&this.appendTo(r)}},A=[],N=y.duration,E=this.getState("chartAnimating"),L="object"==typeof x&&e.container&&x.parent!==e.container;if(this.getState("chartAnimating")&&b.animationObj&&b.animationObj.duration&&this.setAnimationState("default"),!E&&N&&(f=this.getAnimAttributes(e))){for(h=f.length,v=!1,p=!(d="appearing"===e.state||"string"==typeof x)&&x.attrs,u={},c=0;c<h;c++){for(o in g=c===h-1,l=A[c]={},t=(m=f[c]).finalAttr,n=m.initialAttr,r.removeOpacityFromGroup(e.el,n),r.removeOpacityFromGroup(e.el,t),n)u[o]=n[o],S[o]===a&&(S[o]=n[o]);for(o in t)u[o]=t[o],d&&S[o]===a&&(S[o]=t[o]);if(l.attrs=t,l.transition=m.transition,l.effect=m.effect,l.animConfig=[m.startEnd],m.callback&&(l.callback=m.callback),(v=L&&m.changeGroup)&&(L=!1),g){if(d)for(o in w)S[o]===a&&(S[o]=w[o]);for(o in w)i=w[o],!u[o]&&d||u[o]===i||(t&&t[o]===a?t[o]=i:_[o]=i);for(o in u)_[o]===a&&(i=(0,s.getFirstValue)(w[o],p[o]),u[o]!==i&&(t&&t[o]===a&&i!==a?t[o]=i:_[o]=i));t||(l.attrs=_),l.callback=C((t||n)&&_,g,m,L&&e.container),x=this.setAttributes(x,{attr:S,inputJSON:e})}(n||m.hookFn||v)&&(l.animConfig[0].hookFn=k((!d||c)&&n,m,v&&e.container))}for(c=0;c<h;c++)A[c].el=x.el,this.registerAnimation([{data:[A[c]]}],f[c].slot)}else E||this.registerAnimation(),x=this.setAttributes(x,{attr:w,inputJSON:e,groupChangeReq:L,immediate:!0});return x.removed?null:x.el},t._removeElems=function(){if(this.getFromEnv("paper")&&!this.getFromEnv("paper").removed){this._removedGraphics.forEach((function(e){return e.remove&&e.remove()})),this._removedGraphics.length=0}},t.removeElement=function(e,t){return t?e.remove():this._removedGraphics.push(e),null},r._ruleSelectorQueryBuilder=function(e,t){void 0===t&&(t=!0);var r=e.label,n=e.state,a=e.component,i=a.getType(),o=a.getName();if(t){var s=["*","*.*","*.*.*"],l=["*.*."+o,"*."+i+".*","*."+i+"."+o];return"*"===n?s.concat(l):s.concat(l,[n+".*",n+".*.*",n+".*."+o,n+"."+i+".*",n+"."+i+"."+o])}return[r+"."+n,r+".*","*."+n,"*.*","*"]},t._getRulesByState=function(e){var t,n,i,o,s=e.component,l=this.getAnimationState()||"*",c=r._ruleSelectorQueryBuilder(Object.assign(e,{state:l}));return(t=(o=s.getState("animRules")||{})[l])?t:(n=o[l]={},i=this.config.animationRules,p.forEach((function(e){var t=i[e];t&&c.forEach((function(e){t[e]&&(Array.isArray(t[e])?t[e].forEach((function(e){n=o[l]=v(e)?null:Object.assign(n||{},k(e)?e.call(s):e)})):n=o[l]=v(t[e])?null:Object.assign(n||{},k(t[e])?t[e].call(s):t[e]))}))})),s.setState("animRules",o),!s.getState("ruleFlushAttached")&&s.addExtEventListener("predraw",(function(){s.setState("animRules",a),s.setState("ruleFlushAttached",!0)}),s.getFromEnv("chart")),n)},r._getRulesByElement=function(e,t){var n;return r._ruleSelectorQueryBuilder(t,!1).forEach((function(t){n===a&&(n=e[t])})),n},t.getAnimAttributes=function(e){var t,n,a,i,o,s=e.component||this.getFromEnv("chart"),l=e.label||("object"==typeof e.el?e.el.type:e.el),c=e.state,u=this._getRulesByState({label:l,component:s}),h=[];if(!v(u)&&(!c&&(c="string"==typeof e.el?"appearing":e.attr?"updating":"disappearing"),t=r._getRulesByElement(u,{component:s,state:c,label:l}),!v(t))){if(!t)return r.getFallbackAnimRule(e);if(!k(t)||(t=t.call(s,e),!v(t))){for(o=t.length,i=0;i<o;i++)a={},(n=t[i]).initialAttr&&(a.initialAttr=k(n.initialAttr)?n.initialAttr.call(s,e):Object.assign({},n.initialAttr)),n.finalAttr&&(a.finalAttr=k(n.finalAttr)?n.finalAttr.call(s,e):Object.assign({},n.finalAttr)),a.startEnd=k(n.startEnd)?n.startEnd.call(s,e):n.startEnd?Object.assign({},n.startEnd):{start:0,end:1},a.slot=n.slot||"default",a.callback=n.callback,a.hookFn=n.hookFn,a.transition=n.transition,a.effect=n.effect||"linear",n.groupChange&&(a.groupChange=!0),h.push(a);return h}}},r.getFallbackAnimRule=function(e){if("appearing"===e.state||"string"==typeof e.el){if("group"!==e.el)return[{initialAttr:{opacity:0},finalAttr:{opacity:(0,s.pluckNumber)(e.attr&&e.attr.opacity,1)},startEnd:{start:0,end:1}}]}else{if("updating"===e.state||e.attr)return[{startEnd:{start:0,end:1}}];if("group"!==e.el.type)return[{initialAttr:{opacity:1},finalAttr:{opacity:0},startEnd:{start:0,end:1}}]}},r.getFallbackAnimDuration=function(e){return f[e]||0},r.getFallbackAnimTimeSlots=function(){return[{name:"_default",start:0,end:1,child:[[{name:"initial",duration:.125},{name:"middle",duration:.75,child:[[{name:"axis",duration:.25},{name:"plot",duration:.75}]]},{name:"final",duration:.125}]]}]},t.createElement=function(e,t,r){void 0===t&&(t={});var n=e,a=this.getFromEnv("paper");if(a||(a=this.getFromEnv("chart").getFromEnv("paper"),this.addToEnv("paper",a)),"group"===n)(n=a.group(r.attr&&r.attr.name||"",r.container)).attr(t);else if("html"===n)n=a.html(r.attr.type,t,r.css,r.container);else{if("text"===n&&r.css)return a[r.el](t,r.css,r.container);n=a[r.el](t,r.container)}return n},t.setAttributes=function(e,t){var r,n=e,a=t.attr,i=t.inputJSON||{};return"string"==typeof n?n=this.createElement(n,a,i):0!==Object.keys(a).length?n.attr(a):i.attr&&"disappearing"!==i.state||(r=!i.doNotRemove),r?this.removeElement(n,t.immediate):(i.css&&n.css(i.css),t.groupChangeReq&&n.appendTo(i.container),t.immediate&&i.callback&&i.callback.call(n)),{el:n,removed:r}},t.prepareAnimateArr=function(e){var t,r,n,i,o,s,l,c,u,h=this.config.preAnimArr=[];function f(e,t){var n,i,o,s={start:0,end:1};for(o in e)if(e.hasOwnProperty(o)){if(e[o].syncWith&&!r[e[o].syncWith])continue;n=e[o].syncWith,s.start=e[o].start===a?0:e[o].start,s.end=e[o].end===a?1:e[o].end,s.hookFn=e[o].hookFn||e.hookFn,s.smartMorph=e[o].smartMorph||e.smartMorph;break}return n=n&&r[n]?n:t&&r[t]?t:"default",i=r[n].end-r[n].start,s.start=r[n].start+s.start*i,s.end=r[n].start+s.end*i,s}for(r=this.getFinalSlots(),i=0,o=e.length;i<o;i+=1){for(n=(t=e[i]).component,s=0,l=t.data.length;s<l;s+=1)(c=(u=t.data[s]).transition||r[n]&&r[n].transition)&&w(u,c),u.preAnimFn&&h.push({el:u.el,fn:u.preAnimFn}),u.animConfig&&(u.animConfig=f(u.animConfig,n));t.effect||r[n]&&(t.effect=r[n].effect),t.animConfig||(t.animConfig=[{}]),t.animConfig=f(t.animConfig,n)}},t.animate=function(){var e,t,r,n,a,i,o,s,l=this.config,c=this.config.animateArr,u=l.animationObj,h=u.animObj,f=u.dummyObj,d=u.duration;for(this.prepareAnimateArr(c),function(e){var t=0,r=e.length;for(t=0;t<r;++t)e[t].fn&&e[t].fn.call(e[t].el)}(this.config.preAnimArr),a=0,i=c.length;a<i;a+=1)for(o=0,s=(t=c[a]).data.length-1;o<=s;o+=1)r=t.data[o].animConfig||t.animConfig,r=y(r,d,180),e=t.data[o].effect||t.effect||"linear",n=a===i&&t.callback||t.data[o].callback,t.data[o].preAttrs&&t.data[o].el.attr(t.data[o].preAttrs),t.data[o].el&&_(t.data[o].el,t.data[o].attrs,n||null,r,f,h,d,e)},t.remove=function(t){this.removeAllJobs(),t.instant&&this.getGraphicalElement("dummyObj")&&this.getGraphicalElement("dummyObj").remove(),e.prototype.remove.call(this,t)},r}(c.ComponentInterface);t["default"]=L},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n={pie2d:["isPlotItemSliced","addData","removeData","updateData","slicePlotItem","startingAngle"],dragcolumn2d:["getDataWithId","getData","setUpperLimit","setLowerLimit","getLowerLimit","getUpperLimit"],realtimecolumn:["feedData","setData","stopUpdate","restartUpdate","isUpdateActive","clearChart","getData","getDataForId","setDataForId","getDataJSON","showLog","hideLog","clearLog"],scrollcolumn2d:["scrollTo"],scrollbar2d:["scrollTo"],boxandwhisker2d:["scrollTo"],doughnut:["centerLabel"],zoomline:["zoomOut","zoomTo","resetChart","setZoomMode","getViewStartIndex","getViewEndIndex","scrollTo"],maps:["getMapName","getEntityList","getMapAttribute","exportMap","addMarker","updateMarker","removeMarker"],"*":["exportChart","getXML","getChartAttribute","getCSVData","getChartData","getDataAsCSV","getJSONData","getSVGString","getXMLData"]};n.pie3d=n.pie2d,n.doughnut2d=n.doughnut3d=n.doughnut.concat(n.pie2d),n.dragarea=n.dragline=n.dragnode=n.dragcolumn2d,n.realtimearea=n.realtimeline=n.realtimelinedy=n.realtimestackedarea=n.realtimestackedcolumn=n.bulb=n.angulargauge=n.hlineargauge=n.hled=n.vled=n.vbullet=n.hbullet=n.thermometer=n.cylinder=n.realtimecolumn,n.scrollarea2d=n.scrollline2d=n.scrollcombidy2d=n.scrollcombi2d=n.scrollstackedcolumn2d=n.scrollmsstackedcolumn2d=n.scrollmsstackedcolumn2dlinedy=n.scrollcolumn2d,n.zoomlinedy=n.zoomline;var a=n;t["default"]=a},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n={extension:function(){function e(){}var t=e.prototype;return t.draw=function(){},t.drawAt=function(){},t.hide=function(){},t.hideAll=function(){},t.enableToolTip=function(){},t.disableToolTip=function(){},t.setStyle=function(){},e}(),name:"ToolTipController",type:"plugin"};t["default"]=n},function(e,t,r){"use strict";r(278),r(312)},function(e,t,r){"use strict";r(276),r(275),r(277)},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(314));t.MessageLogger=a["default"];var i=n(r(317));t.linkedChartsExtension=i["default"];var o=n(r(319));t.XMLTranscoder=o["default"];var s=n(r(320));t.CSVTranscoder=s["default"];var l=n(r(340));t.JSONUrlTranscoder=l["default"];var c=n(r(343));t.XMLUrlTranscoder=c["default"];var u=n(r(344));t.IgnoreCaseExt=u["default"];var h=n(r(345));t.ThemeEngine=h["default"];var f=n(r(346));t.DefaultTheme=f["default"];var d=n(r(347));t.PlotHighlighter=d["default"];var p=n(r(349));t.ToolTipController=p["default"];var g=n(r(351));t.ConsolidatedToolTip=g["default"];var m=n(r(352));t.AlertManager=m["default"];var v=n(r(354));t.DataSkipping=v["default"];var b=n(r(358));t.Annotation=b["default"];var y=n(r(383));t.RegressionExtension=y["default"];var x=n(r(389));t.inputAdapter=x["default"];var w=n(r(418));t.LegendEventManagerLinker=w["default"];var _=n(r(419));t.exportModule=_["default"];var S=n(r(429));t.BatchExportLinker=S["default"];var C=n(r(430));t.LogoExtension=C["default"];var k=n(r(432));t.supportOldThemes=k["default"];var A=n(r(433));t.debug=A["default"];var N=n(r(434));t.CenterLabel=N["default"];var E=n(r(437));t.CrossLine=E["default"];var L=n(r(441));t.MultiCanvasCrossLine=L["default"];var M=n(r(442));t.ResourceString=M["default"];var F={name:"features",type:"package",requiresFusionCharts:!0,extension:function(e){e.addDep(i["default"]),e.addDep(o["default"]),e.addDep(s["default"]),e.addDep(l["default"]),e.addDep(c["default"]),e.addDep(u["default"]),e.addDep(h["default"]),e.addDep(d["default"]),e.addDep(f["default"]),e.addDep(p["default"]),e.addDep(g["default"]),e.addDep(m["default"]),e.addDep(a["default"]),e.addDep(v["default"]),e.addDep(b["default"]),e.addDep(_["default"]),e.addDep(y["default"]),e.addDep(x["default"]),e.addDep(w["default"]),e.addDep(S["default"]),e.addDep(C["default"]),e.addDep(k["default"]),e.addDep(A["default"]),e.addDep(N["default"]),e.addDep(E["default"]),e.addDep(L["default"]),e.addDep(M["default"])}};t["default"]=F},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(315)),i={timeseries:!0},o=function(e){var t=e.sender.getName().toLowerCase();"chartAPI"!==e.sender.getType()||i[t]||e.sender.registerFactory("messageLogger",(function(t){if(t.getChildren("messageLogger"))t.getChildren("messageLogger")[0].configure(t);else{var r=new a["default"];r.configure(t),r.addToEnv("chart-container",t.getFromEnv("chart-container")),t.attachChild(r,"messageLogger"),t.getFromEnv("chartInstance").showLog=function(){return r&&r.show&&r.show()},t.getFromEnv("chartInstance").hideLog=function(){return r&&r.hide&&r.hide()},t.getFromEnv("chartInstance").clearLog=function(){return r&&r.clearLog&&r.clearLog()},e.sender.addEventListener("realtimeDataUpdate",(function(e){e.sender.getChildren("messageLogger")&&e.sender.getChildren("messageLogger")[0].addLog(e.data)}))}}))};var s={extension:function(e){e.addEventListener("instantiated",o)},name:"messageLoggerLinker",type:"extension",requiresFusionCharts:!0};t["default"]=s},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=n(r(316)),o=r(270),s=r(254),l=Math.min,c=function(e){function t(){var t;return(t=e.call(this)||this).pIndex=1,t.linkedItems=t.linkedItems||(t.linkedItems={}),t.components=t.components||{},t.components.messages=t.components.messages||[],t.graphics=t.graphics||{},t.config=t.config||(t.config={}),t}(0,a["default"])(t,e);var r=t.prototype;return r.getType=function(){return"extension"},r.getName=function(){return"MessageLogger"},r.configure=function(e){this.linkedItems.chart=e;var t=e.getFromEnv("chart-attrib")||{},r=this.config.usemessagelog=e.getFromEnv("chartConfig").usemessagelog;this.config.messageLogWPercent=l((0,s.pluckNumber)(t.messagelogwpercent,80),100),this.config.messageLogHPercent=l((0,s.pluckNumber)(t.messageloghpercent,70),100),this.config.messageLogShowTitle=(0,s.pluckNumber)(t.messagelogshowtitle,1),this.config.messageLogTitle=(0,s.pluck)(t.messagelogtitle,"Message Log"),this.config.messageLogColor=(0,s.pluck)(t.messagelogcolor,"#fbfbfb").replace(/^#?([a-f0-9]+)/gi,"$1"),this.config.messageLogColorRgb=(0,s.HEXtoRGB)(this.config.messageLogColor),this.config.messageGoesToJS=(0,s.pluckNumber)(t.messagegoestojs,0),this.config.messageGoesToLog=(0,s.pluckNumber)(t.messagegoestolog,1),this.config.messageJSHandler=(0,s.pluck)(t.messagejshandler,""),this.config.messagePassAllToJS=(0,s.pluckNumber)(t.messagepassalltojs,0),this.config.messagePassAsObject=(0,s.pluckNumber)(t.messagepassasobject,0),this.config.messageLogIsCancelable=(0,s.pluckNumber)(t.messagelogiscancelable,1),this.config.alwaysShowMessageLogMenu=(0,s.pluckNumber)(t.alwaysshowmessagelogmenu,r),e.config.useShowLogMenu=r&&this.config.messageGoesToLog,this.config.dynamicScrolling=!1,this.config.scrollToBottom=!0},r._createMessage=function(e){var t=new i["default"](e,this);return this.graphics.container&&t.draw(),t},r.addLog=function(e){var t,r=this.components.messages,n=(0,s.pluckNumber)(e.msgGoesToLog,this.config.messageGoesToLog),a=(0,s.pluckNumber)(e.msgGoesToJS,this.config.messageGoesToJS),i=window[this.config.messageJSHandler],o=(0,s.pluck)(e.msgId,""),l=(0,s.pluck)(e.msgTitle,""),c=(0,s.pluck)(e.msgText,""),u=(0,s.pluck)(e.msgType,"literal");0!==this.config.usemessagelog&&(a&&i&&"function"==typeof i&&(this.config.messagePassAllToJS?this.config.messagePassAsObject?i(e):i(o,l,c,u):i(c)),"1"===e.clearLog&&this.clearLog(),n&&(e.msgTitle||e.msgText)&&(t=this._createMessage(e),r.push(t),1!==r.length||this.config.visible||this.show()))},r.show=function(){this.config.visible||1!==this.config.usemessagelog||(this.config.visible=!0,this.draw(),this.graphics.container||this.draw(),this.graphics.container&&this.graphics.container.show())},r.hide=function(){this.config.visible=!1,this.graphics.container&&this.graphics.container.hide()},r.clearLog=function(){var e,t=this.components.messages,r=t.length;for(e=0;e<r;e+=1)t[e]&&t[e].dispose&&t[e].dispose();t.splice(0,r)},r.isDrawn=function(){return!!this.graphics.container},r.draw=function(){var e,t,r=this.components.messages;if(0===this.config.usemessagelog)this.isDrawn()&&(this.clearLog(),this.hide());else for(this._createHTMLDialogue(),this.config.visible||this.hide(),t=r.length,e=0;e<t;e+=1)r[e]&&r[e].draw&&r[e].draw()},r._createHTMLDialogue=function(){var e,t,r,n,a=this,i=this.config,o=this.graphics,s=this.getFromEnv("paper"),l=this.linkedItems.chart.config,c=l.width,u=l.height,h=l.style,f=h&&h.inCanvasStyle,d=this.config.messageLogWPercent,p=this.config.messageLogHPercent,g=this.config.messageLogShowTitle,m=this.config.messageLogIsCancelable,v=this.config.messageLogColor,b=this.config.messageLogTitle,y=c*(d/100),x=u*(p/100),w=(c-y)/2,_=(u-x)/2,S=y-18-22,C=x-18-22,k=v,A=v,N=o.container,E=this.isDrawn()&&l.animation&&l.animation.transposeAnimDuration;N||(N=o.container=s.html("div",{fill:"transparent"},{fontSize:"10px",lineHeight:"15px"},this.getFromEnv("chart-container")),o.veil=s.html("div",{id:"veil",fill:"000000",opacity:.1},void 0,N).on("fc-click",(function(){m&&a.hide()})),b&&g&&(o.title=s.html("p",{id:"Title",innerHTML:b,x:5,y:5},{"font-weight":"bold"},N)),o.dialog=s.html("div",{id:"dialog",strokeWidth:1},{borderRadius:"5px",boxShadow:"1px 1px 3px #000000","-webkit-border-radius":"5px","-webkit-box-shadow":"1px 1px 3px #000000",filter:'progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color="#000000")'},N),o.logBackground=s.html("div",{id:"dialogBackground",x:0,y:0},void 0,o.dialog),m&&(o.closeButton=s.html("div",{id:"closeButton",x:y-11-3,y:2,innerHTML:"<b>x</b>"},{cursor:"pointer",_cursor:"hand"},o.dialog).on("fc-click",(function(){m&&a.hide()}))),o.logWrapper=s.html("div",{id:"logWrapper"},{overflow:"auto"},o.dialog).on("scroll",(function(){var e=this&&this.scrollTop,t=this&&this.scrollHeight,r=this&&this.offsetHeight;i.dynamicScrolling?i.dynamicScrolling=!1:i.scrollToBottom=t-e===r})),o.log=s.html("div",{id:"log",x:0,y:0},{},o.logWrapper)),N.css({fontFamily:f.fontFamily}),o.dialog.attr({fill:"ffffff",stroke:k}),o.logBackground.attr({fill:A}),e={width:c,height:u},t={x:w,y:_,width:y,height:x},r={width:y,height:x},n={x:(y-S)/2,y:(x-C)/2,width:S,height:C},E?(N.animate(e,E,"normal"),o.veil.animate(e,E,"normal"),o.dialog.animate(t,E,"normal"),o.logBackground.animate(r,E,"normal"),o.logWrapper.animate(n,E,"normal")):(N.attr(e),o.veil.attr(e),o.dialog.attr(t),o.logBackground.attr(r),o.logWrapper.attr(n))},t}(o.ComponentInterface);t["default"]=c},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(254),a=8===window.document.documentMode,i={},o={display:"block",paddingLeft:"10px",paddingRight:"10px","font-family":"Arial","font-size":"11px"};i.literal=i.info={title:'<span style="color: #005900">$titleVal$</span>',body:'<span">$msgVal$</span>'},i.link={title:i.info.title,body:'<a href="$msgLinkVal$">$msgVal$</a>'},i.error={title:'<span style="color: #CC0000">$titleVal$</span>',body:'<span style="color: #CC0000">$msgVal$</span>'};var s=function(){function e(e,t){this.config={},this.messageType=(e.msgType&&e.msgType.replace(/^[\r\n]+|\.|[\r\n]+$/g,"")||"").toLowerCase(),this.msgTitle=e.msgTitle,this.msgText=e.msgText,this.msgLink=e.msgLink,this.graphics={},this.linkedItems={msgLogger:t},this.msgObj=i[this.messageType]||i.literal,this.configureMsgTextAndMsgTitle()}var t=e.prototype;return t.configureMsgTextAndMsgTitle=function(){this.config.totalHTML=n.BLANKSTRING,this.msgTitle&&(this.config.titleHTML=this.msgObj.title.replace("$titleVal$",this.msgTitle),this.config.totalHTML+=this.config.titleHTML),this.msgText&&(this.config.msgHTML=this.msgObj.body.replace("$msgVal$",this.msgText),this.config.msgHTML=this.config.msgHTML.replace("$msgLinkVal$",this.msgText),this.config.totalHTML+=this.config.msgHTML)},t.draw=function(){var e,t,r,i=this.graphics.element,s=this.linkedItems.msgLogger,l=s.graphics,c=l&&l.log&&l.log.element,u=l.logWrapper&&l.logWrapper.element,h=s.config;if(!i){for(e in i=this.graphics.element=window.document.createElement("span"),o)i.style[e]=o[e];c.appendChild&&c.appendChild(i)}this.graphics.element.innerHTML=this.config.totalHTML,n.isIE&&a&&(t=c.innerHTML,c.innerHTML=t),h.scrollToBottom&&(h.dynamicScrolling=!0,r=u.scrollHeight,u.scrollTop=r)},t.dispose=function(){var e=this.linkedItems.msgLogger;e&&e.graphics&&e.graphics.log&&e.graphics.log.element&&e.graphics.log.element.removeChild&&e.graphics.log.element.removeChild(this.graphics.element),delete this.graphics.element,n.componentDispose.call(this)},e}();t["default"]=s},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n["default"]=e,r&&r.set(e,n);return n}(r(318)),i=r(261),o=r(254),s=n(r(256));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}var c=o.regex.dropHash;function u(e,t){return(e.options.containerElement===t.options.containerElement||e.options.containerElementId===t.options.containerElementId)&&e.options.insertMode===o.domInsertModes.REPLACE}function h(e){var t;e.sender.link instanceof a["default"]&&!e.sender.link.root.disposed?e.sender.link.parent instanceof this&&!(t=e.sender.link.parent.link.items)[e.sender.id]&&(t[e.sender.id]=e.sender):e.sender.link=new a["default"](e.sender)}function f(e,t){var r,n=t;if(e instanceof Array){for(r=0;r<e.length;r+=1)"object"!=typeof a.store[this.link.root.id][r]&&(a.store[this.link.root.id][r]={}),(0,o.extend2)(a.store[this.link.root.id][r],e[r],!1,!0);a.store[this.link.root.id].splice(e.length)}else"object"==typeof e?("number"!=typeof n&&(n=this.link.level),"undefined"==typeof a.store[this.link.root.id][n]&&(a.store[this.link.root.id][n]={}),(0,o.extend2)(a.store[this.link.root.id][n],e,!1,!0)):(0,i.raiseError)(this,"25081731","param","~configureLink()","Unable to update link configuration from set parameters")}function d(e){var t,r,n,a=this.jsVars,l=a.overlayButton;if(e&&e.show){for(l||(l=a.overlayButton=document.createElement("span"),s["default"].listen(l,"click",(function(){(0,i.triggerEvent)("OverlayButtonClick",a.fcObj,e)}))),n=e.message?e.message:"Back";l.firstChild;)l.removeChild(l.firstChild);for(r in l.appendChild(document.createTextNode(n)),a.overlayButtonMessage=n,t={border:"1px solid "+(e.borderColor?e.borderColor.replace(c,o.HASHSTRING):"#7f8975"),backgroundColor:e.bgColor?e.bgColor.replace(c,o.HASHSTRING):"#edefec",fontFamily:e.font?e.font:"Verdana,sans",color:e.fontColor,fontSize:(e.fontSize?e.fontSize:"10")+o.PXSTRING,padding:(e.padding?e.padding:"3")+o.PXSTRING,fontWeight:0===parseInt(e.bold,10)?o.NORMAL:o.BOLD,position:"absolute",top:"0",right:"0",cursor:o.POINTER})l.style[r]=t[r];a.hcObj.container.appendChild(l),a.overlayButtonActive=!0}else l&&(a.overlayButton=l.parentNode.removeChild(l),a.overlayButtonActive=!1,delete a.overlayButtonMessage)}var p={type:"extension",name:"LinkedChart",extension:function(e){e.prototype.configureLink=f,e.prototype.drawOverlayButton=d,e.addEventListener("beforeRender",h),e.addEventListener("beforeInitialize",h),e.addEventListener("linkedChartInvoked",(function(t,r){var n,s=t.sender,l=s.clone({dataSource:r.data,dataFormat:r.linkType,link:new a["default"](s.link.root,s,s instanceof e),clickedEntity:r.clickedEntity,clickedEntityBox:r.clickedEntityBox},!0),c=r.alias;c&&(!l.typeSource&&l.swfUrl&&(l.typeSource=l.swfUrl.replace(/(.*?)?[^\/]*\.swf.*?/gi,"$1")),l.type=c),s.args&&0!==parseInt(s.args.animate,10)&&delete l.animate,(0,o.extend2)(l,s.link.configuration(),!1,!0),(0,i.triggerEvent)("beforeLinkedItemOpen",s.link.root,{level:s.link.level},void 0,(function(){e.items[l.id]instanceof e&&e.items[l.id].dispose(),u(n=new e(l),s)||s.options.overlayButton&&s.options.overlayButton.message||("object"!=typeof s.options.overlayButton&&(s.options.overlayButton={}),s.options.overlayButton.message="Close"),n.render(),(0,i.triggerEvent)("linkedItemOpened",s.link.root,{level:s.link.level,item:n})}))})),e.addEventListener("overlayButtonClick",(function(t,r){var n,a,o,s;"LinkManager"===r.id&&(n=t.sender,a=n.link.level-1,o=n.link.parent,s=n.link.root,(0,i.triggerEvent)("beforeLinkedItemClose",s,{level:a,item:n},void 0,(function(){setTimeout((function(){e.items[n.id]&&n.dispose(),(0,i.triggerEvent)("linkedItemClosed",s,{level:a})}),0),o.disposed||o.isActive()||!u(n,o)?(o._addChartDependency("returnFromLinkedChart",{resolve:function(){return{state:3}}}),o._setState()):o.render()})))})),e.addEventListener("DrawComplete",(function(t){var r,n=t.sender;n&&"undefined"!=typeof n.link&&n.link.root!==n&&n.link.parent instanceof e&&(n.ref&&"function"==typeof n.drawOverlayButton?(r=(0,o.extend2)({show:!0,id:"LinkManager"},n.link.parent.options.overlayButton,!1,!0),(0,o.extend2)(r,n.link.parent.link.configuration().overlayButton||{},!1,!0),n.drawOverlayButton(r)):(0,i.raiseWarning)(n,"04091602","run","::LinkManager^Loaded","Unable to draw overlay button on object. -"+n.id))})),e.addEventListener("beforeDispose",(function(t){var r=t.sender;r&&r.link instanceof a["default"]&&(r&&r.link&&r.link.parent instanceof e&&r.link.parent.link&&r.link.parent.link.items&&delete r.link.parent.link.items[t.sender.id],delete a.store[r.id])}))},requiresFusionCharts:!0};t["default"]=p},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=t.store=void 0;var n={};t.store=n;var a=function(){function e(e,t,r){this.items={},this.root=e,this.parent=t,r?this.level=this.parent.link.level+1:(n[e.id]=[{}],this.level=0)}return e.prototype.configuration=function(){return n[this.root.id][this.level]||(n[this.root.id][this.level]={})},e}();t["default"]=a},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n,a=r(254),i=function(e,t,r){return"object"==typeof this.items[e][r]?this.items[e][r][t]:this.items[e][r]};function o(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}var s,l,c,u,h=(u={arr:{set:!0,node:!0,nodes:!0,link:!0,links:!0,trendlines:!0,vtrendlines:!0,line:{trendlines:!0,vtrendlines:!0},data:!0,dataset:!0,lineset:!0,categories:!0,category:!0,tasks:!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}},tag:{chart:"linkedchart",map:"linkedmap",set:"data",node:"nodes",link:"links",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"}},attr:{vline:{vline:"true"}},ins:{chart:!0,map:!0,graph:!0},dsv:{dataset:"data",categories:"category"},text:{target:"target",value:"value"},group:{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}}},s={append:function(e,t,r,n){!u.arr[r]||!0!==u.arr[r]&&!0!==u.arr[r][n]?t[r]=e:(t[r]instanceof Array||(t[r]=[]),t[r].push(e))},child:function(e,t,r,n){var i,o,l,c,h,f;for(i=0;i<t.length;i+=1)switch(o=(l=t[i]).nodeName.toLowerCase(),l.nodeType){case 1:if(c=s.attr(l.attributes),!0===(f=u.ins[o])&&(h=c,(c={})[o]=h,h=void 0),"object"==typeof(f=u.attr[o])&&(0,a.extend2)(c,f,!1,!0),f=u.tag[o])if("object"==typeof f&&"object"==typeof f[r]){for(h in h=void 0,f[r])if(n[h]){o=f[r][h];break}}else"object"==typeof f&&"string"==typeof f[r]?o=f[r]:"string"==typeof f&&(o=f);l.childNodes.length&&((f=u.group[r])&&f[o]?s.child(e,l.childNodes,o,n):s.child(c,l.childNodes,o,n)),(f=u.group[r])&&f[o]||s.append(c,e,o,r);break;case 3:(f=u.text[r])&&(o=f,c=l.data,s.append(c,e,o,r)),"string"==typeof(f=u.dsv[r])&&n.chart&&parseInt(n.chart.compactdatamode,10)&&(o=f,c=l.data,e[o]=e[o]?e[o]+c:c)}},attr:function(e){var t,r={};if(!e||!e.length)return r;for(t=0;t<e.length;t+=1)"xml"===c&&(e[t].value?e[t].value=o(e[t].value):e[t].nodeValue&&(e[t].nodeValue=o(e[t].nodeValue))),r[e[t].nodeName.toLowerCase()]=e[t].value||e[t].nodeValue;return r}},l=function(e){var t,r,i,o,c,u,h,f,d,p={},g=e;if("object"!=typeof g&&g&&"function"!=typeof g.toString)return l.errorObject=new TypeError("xml2json.parse()"),p;if(g=g.toString().replace(/<\!--[\s\S]*?-->/g,"").replace(/<\?xml[\s\S]*?\?>/gi,"").replace(/&(?!([^;\n\r]+?;))/g,"&amp;$1"),!(g=(0,a.fastTrim)(g)))return p;try{if(window.DOMParser?t=(new window.DOMParser).parseFromString(g,"text/xml"):document.body&&n.options.allowIESafeXMLParsing?((r=document.createElement("xml")).innerHTML=g,document.body.appendChild(r),t=r.XMLDocument,document.body.removeChild(r),r=null):((t=new window.ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(g)),!(t&&t.childNodes&&1===t.childNodes.length&&(i=t.childNodes[0])&&i.nodeName&&(o=i.nodeName.toLowerCase()))||"chart"!==o&&"map"!==o&&"graph"!==o)return l.errorObject=new TypeError("xml2json.parse()"),p;if("graph"===o){for(c=t.createElement("chart"),d=(h=i.attributes)&&h.length||0;d--;)c.setAttribute(h[d].name,h[d].value),h.removeNamedItem(h[d].name);for((d=(f=i.childNodes)&&f.length||0)&&(d-=1,u=i.removeChild(f[d]),c.appendChild(u));d--;)u=i.removeChild(f[d]),c.insertBefore(u,c.firstChild);t.replaceChild(c,i),i=c}}catch(m){l.errorObject=m}return i?(i.attributes&&(p[o]=s.attr(i.attributes)),i.childNodes&&s.child(p,i.childNodes,o,p),delete l.errorObject):l.errorObject=new TypeError("xml2json.parse()"),p},function(e){return delete l.errorObject,c=arguments[arguments.length-1],{data:l(e),error:l.errorObject}}),f=function(){var e,t;return e={items:{explode:{data:"set",nodes:"node",links:"link",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:i},t=function(r,n,i,o){var s,l,c,u,h=a.BLANKSTRING,f=a.BLANKSTRING,d=a.BLANKSTRING,p=a.BLANKSTRING,g=n;if(g&&"function"==typeof g.toLowerCase&&(g=g.toLowerCase()),void 0===i&&r[g])for(l in r[g])"compactdatamode"===(c=l.toLowerCase())&&(o.applyDSV=1===r[g][l]);if(r instanceof Array)for(l=0;l<r.length;l+=1)"string"==typeof r[l]?d+=(0,a.xssEncode)(r[l]):d+=t(r[l],g,i,o);else{for(l in r)c=l.toLowerCase().replace(/[`~!@#$%^&*()|+\=?;:'", <>\{\}\[\]\\\/]/gi,""),r[l]instanceof Array&&(u=e.qualify("group",c,g))?f+="<"+(s=e.qualify("tag",c,g)||c)+">"+t(r[l],u,g,o)+"</"+s+">":"object"==typeof r[l]?(u=e.qualify("attr",c,g))?(p=t(r[l],u,g,o).replace(/\s*\/\>/gi,""),g=c):f+=t(r[l],c,g,o):o.applyDSV&&(u=e.qualify("dsv",c,g))?f+=r[l]:(u=e.qualify("text",c,g))?f+="<"+(s=e.qualify("tag",c,g)||u)+">"+r[l]+"</"+s+">":"vline"===c&&Boolean(r[l])?g="vline":h+=" "+c+'="'+(0,a.xssEncode)(r[l]).toString().replace(/\"/gi,"&quot;")+'"';(u=e.qualify("explode",i,g))&&(g=u),s=g,d=(""!==p?p:"<"+s)+h+(""!==f?">"+f+"</"+s+">":" />")}return d},function(e){delete t.errorObject;var r=e;if(r&&"string"==typeof r)try{r=JSON.parse(r)}catch(a){t.errorObject=a}var n=r&&r.graph?"graph":r&&r.map?"map":"chart";return{data:t(r,n,void 0,{}),error:t.errorObject}}}(),d=function(){return this.getChartData("xml")},p=function(e){this.setChartData(e,"xml")},g={extension:function(e){return e&&(n=e,e.prototype.getXMLData=d,e.prototype.setXMLData=p),{format:"xml",toJSON:h,fromJSON:f}},name:"XML",type:"transcoder",requiresFusionCharts:!0};t["default"]=g},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(253)),i=r(261),o=r(254),s=n(r(321)),l=n(r(322));function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var u,h,f,d,p,g,m,v,b,y,x,w,_=window,S=_.parseInt,C=_.parseFloat,k=function(e){return e},A=function(){function e(e){this.data=[],this.rowCount=0,this.columnCount=0,this.configure(e)}var t=e.prototype;return t.set=function(e,t,r){var n;if(this.rowCount<=e){for(n=this.rowCount;n<=e;n+=1)this.data[n]=[];this.rowCount=e+1}this.columnCount<=t&&(this.columnCount=t+1),this.data[e][t]=r},t.setRow=function(e,t){var r;if(this.rowCount<=e){for(r=this.rowCount;r<=e;r+=1)this.data[r]=[];this.rowCount=e+1}this.columnCount<t.length&&(this.columnCount=t.length),this.data[e]=t},t.get=function(e,t){var r=this.data;return r[e]&&r[e][t]},t.configure=function(t){var r=e.decodeLiterals;this.delimiter=r(t.delimiter,","),this.qualifier=r(t.qualifier,'"'),this.eolCharacter=r(t.eolCharacter,"\r\n"),this.numberFormatted=!!S(t.numberFormatted,0)},t.clear=function(){this.data=[],this.rowCount=0,this.columnCount=0},t.toString=function(){var e,t,r=o.BLANKSTRING;for(e=0;e<this.rowCount;e+=1)r+='""'===(t=this.qualifier+this.data[e].join(this.qualifier+this.delimiter+this.qualifier)+this.qualifier)?this.eolCharacter:t+this.eolCharacter;return this.rowCount>0&&(r=r.slice(0,r.length-2)),r},e}();function N(){return this.getChartData("csv")}function E(){return this.getCSVData()}A.decodeLiterals=function(e,t){return e!==h&&null!==e&&e.toString?e.replace("{tab}","\t").replace("{quot}",'"').replace("{apos}","'"):t},p=function(e){var t={},r=[];for(var n in(0,s["default"])(e)&&e.forEach((function(e){t[e.id]=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){(0,a["default"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),!t[e.id].parent&&(t[e.id].isRootNode=!0),!t[e.id].categories&&(t[e.id].category=[])})),e.forEach((function(e){var r=t[e.id],n=!1;!r.id||r.value&&isNaN(+r.value)||(!r.parent||r.parent&&t[r.parent])&&(n=!0),n||delete t[r.id]})),t)if(t.hasOwnProperty(n)){var i=t[n];i.parent&&t[i.parent].category.push(i),i.isRootNode&&r.push(i)}return{category:r}},b=function(e,t,r){var n;if(void 0===r&&(r="category"),g.push(e.label||e.name||o.BLANKSTRING),m.push(isNaN(+e.value)?"":e.value),t.setRow(x++,g.slice()),v++,w=Math.max(w,v),e[r]!==h){for(n=0;n<e[r].length;++n)b(e[r][n],t,r);g.pop(),v--}else g.pop(),v--},y=function(e){var t,r,n,a=e,i=a.chart,o=a.data?"data":"category",s=a&&a[o]||[],l=s.length,c=[];for(x=1,w=0,v=0,n=new A({separator:i.exportdataseparator,qualifier:i.exportdataqualifier,numberFormatted:i.exportdataformattedval}),m=[],t=0;t<l;++t)r=s[t],g=[],b(r,n,o);for(t=0;t<w;++t)c.push("Label "+(t+1));for(c.push("Value"),n.setRow(0,c),t=m.length-1;t>=0;t--)n.set(t+1,w,m[t]);return{data:n.toString(),error:h,predictedFormat:{multilevel:!0}}},f=function(e,t){var r,n,a,i,o,s,c,f,d,g,m,v,b,x,w,_,S,N,E,L,M,F,T,D,I,O,P,R,j,B,V,z,U,H,q,G,W,$,X,Y,K,J,Z,Q,ee=e,te=t&&t.jsVars,re=te&&te.instanceAPI,ne=ee.chart||ee.map||ee.graph||{},ae=re&&re.getFromEnv("number-formatter"),ie=ne&&ne.forcedecimals?ne.forcedecimals:0,oe=ne&&ne.decimals!==h?Number(ne.decimals):NaN,se=ae?function(e){return ae.getCleanValue(e)}:t&&t._getCleanValue?function(e){return t._getCleanValue(e,ne)}:k,le=Boolean(ne.exporterrorcolumns||0),ce=ee.categories&&ee.categories[0]&&ee.categories[0].category||[],ue=ee.map&&!ee.chart||te&&te.instanceAPI&&"geo"===te.instanceAPI.defaultSeriesType,he=!1,fe=!1,de=!1,pe=!1,ge=!1,me=re.getChildren("BoxAndWhiskerStatisticalCalc"),ve=!1,be=!1,ye=k,xe={},we=ee.tasks?Array.isArray(ee.tasks)?ee.tasks[0].task:ee.tasks.task:h,_e=ee.processes?ee.processes.process:h,Se=ee.datatable?Array.isArray(ee.datatable)?ee.datatable[0]:ee.datatable:h,Ce=Se?Se.datacolumn:h,ke=we&&_e,Ae=0,Ne=-1,Ee="timeseries"===t.args.type,Le=re.config.defaultDatasetType,Me=0,Fe=0,Te=0,De=0;if(!Ee&&(e.category||e.data&&e.data[0].data))return y(e);if(r=new A({separator:ne.exportdataseparator,qualifier:ne.exportdataqualifier,numberFormatted:ne.exportdataformattedval}),u.formatNumber&&r.numberFormatted&&(ye=function(e,t){return u.formatNumber(e,ne,t)}),Ee){for(Z=ee.data.getSchema(),Y=ee.data.isUTCEnabled(Z[0].name),K=Z[0].format,J=Y?l["default"].utcFormatter(K):l["default"].formatter(K),d=ee.data.getData().data,o=0;o<Z.length-1;o+=1)r.set(0,o,"date"===Z[o].type?"Date Time":Z[o].name);for(c=0;c<d.length;c+=1){for(E=d[c],G=[],s=0;s<o;s+=1)0===s?(X=J.format(E[s]),G[s]=X):G[s]=(Ae+=E[s],ye(E[s]));r.setRow(c+1,G)}}else{if(ue)for(P in xe.geo=!0,O=(d=te.instanceAPI.getDatasets())&&d[0]&&d[0].components.data||[],r.setRow(0,["Id"," Short Name","Long Name","Value","Formatted Value"]),o=0,O)z=(j=(R=O[P]).config).cleanValue,!0!==R.hidden&&r.setRow(++o,[P,j.shortLabel,j.label,null===z?"":z,j.formattedValue]);else if((d=ee.dials&&ee.dials.dial||ee.pointers&&ee.pointers.pointer||ee.value)!==h)if(xe.gauge=!0,"string"==typeof d)r.set(0,0,ye(d)),xe.singlevalue=!0,"string"==typeof ee.target&&(r.set(0,1,ye(ee.target)),xe.bullet=!0);else for(r.setRow(0,["Id","Value"]),xe.multivalue=!0,o=0,c=1,s=d.length;o<s;o+=1,c+=1)r.setRow(c,[c,ye(d[o].value)]);else if(!ke&&(d=ee.dataset||!(ee.data instanceof Array)&&[])){if(xe.multiseries=!0,a=1,(g=ee.lineset)&&(d=d.concat(g),xe.lineset=!0),(m=ee.axis)&&(d=d.concat(m),xe.multiaxis=!0),!d.length&&ee.links&&(d=d.concat({data:ee.links})),x=d.length,b=ce.length,!(x=d.length)){for(o=0;o<b;o+=1)w=ce[o],r.set(o+1,0,w.label||w.name);xe.multilevel=!0}for(o=0;o<x;o+=1)for((_=d)[o].dataset?(i=0,v=(_=_[o].dataset).length):(_=d,v=(i=o)+1);i<v&&!he&&!pe&&!de;i+=1)if(S=_[i],Ne++,!(re&&(T=re.getDatasets())&&T[Ne]&&!1===T[Ne].visible)){for(q=(B=re&&T&&T[Ne])&&B.config&&B.config.parentYAxis,r.set(0,a,S.seriesname),"string"==typeof S.data&&(xe.compactdata=!0,S.data=S.data.split(ne.dataseparator||"|")),s=0,c=0,N=S.data&&S.data.length||0;s<N||s<b;s+=1){if(w=ce[s],n=c+1,(E=S.data&&S.data[c]||{}).x!==h&&E.y!==h){he=xe.xy=!0;break}if(E.from!==h&&E.to!==h){de=xe.diagram=!0;break}if(E.open!==h||E.high!==h||E.close!==h||E.low!==h){ve=xe.ohlc=!0;break}if(E.rowid!==h&&E.columnid!==h){pe=xe.heatmap=!0;break}if(Le&&"boxandwhisker2d"===Le){ge=!0;break}(s<b&&!w.vline||!w)&&(Le&&"sparkwinloss"===Le?"W"===(L=E?E.value.toUpperCase():"")?Me++:"L"===L?Fe++:"D"===L?Te++:De++:(w&&r.set(n,0,w.label||w.name),L=C(se(E?E.value:"")),L=isNaN(L)?"":ye(L,q),r.set(n,a,L)),(fe||le||E.errorvalue)&&(fe||r.set(0,a+1,"Error"),F=1,r.set(n,a+1,ye(E.errorvalue))),c+=1)}Le&&"sparkwinloss"===Le&&(r.clear(),De>0?(r.setRow(0,["Win","Loss","Draw","Error"]),r.setRow(1,[Me,Fe,Te,De])):(r.setRow(0,["Win","Loss","Draw"]),r.setRow(1,[Me,Fe,Te]))),F&&(a+=F,F=0),a+=1}g&&(d=d.slice(0,-g.length)),m&&(d=d.slice(0,-m.length))}else if(d=ee.data){for(r.set(0,1,ne.yaxisname||"Value"),xe.singleseries=!0,be="1"==ne.showsumatend,o=0,b=d.length;o<b&&(!$||!W);o+=1)(E=d[o]).vline||(L=C(se(E.value?E.value:"")),1===ie&&!isNaN(oe)&&oe>=0&&(L=L.toFixed(oe)),G=[E.label||E.name,isNaN(L)?"":(Ae+=L,ye(L))],E.id&&E.parent?($=!0,W=!0):E.parent?$=!0:E.id?W=!0:r.setRow(o+1,G));if($&&W)return y({chart:ee.chart,category:p(ee.data).category});for($?r.setRow(0,["Parent Id",ne.xaxisname||"Label","Value"]):W&&r.setRow(0,["Id",ne.xaxisname||"Label","Value"]),b=(W||$)&&d.length,o=0;o<b;o++)E=d[o],L=C(se(E.value?E.value:"")),G=[E.label||E.name,isNaN(L)?"":(Ae+=L,ye(L))],W?r.setRow(o+1,[E.id].concat(G)):$&&r.setRow(o+1,[E.parent].concat(G));be&&(xe.summation=!0,r.setRow(o+1,[ne.sumlabel||"Total",ye(Ae)]))}if(ve)for(r.clear(),r.setRow(0,["Open","Close","High","Low","Volume"]),o=0,n=1,v=(d=ee.dataset).length;o<v;o+=1)for(s=0,x=(S=d[o]&&d[o].data||[]).length;s<x;s+=1,n+=1)E=S[s]||{},r.setRow(s+1,[ye(E.open),ye(E.close),ye(E.high),ye(E.low),ye(E.volume)]);else if(he){for(r.clear(),fe=!1,F=0,U=!1,H=0,r.setRow(0,["Series","x","y"]),o=0,n=1,v=(d=ee.dataset).length;o<v;o+=1)if(!(re&&(T=re.getDatasets())&&T[o]&&!1===T[o].visible))for(s=0,x=(S=d[o]&&d[o].data||[]).length;s<x;s+=1,n+=1)(E=S[s]||{}).name&&!U&&(F?r.setRow(0,["Series","Name","x","y","z"]):r.setRow(0,["Series","Name","x","y"]),U=!0,H=s),L=U?[d[o].seriesname,ye(E.name),ye(E.x),ye(E.y)]:[d[o].seriesname,ye(E.x),ye(E.y)],E.z!==h&&(L.push(ye(E.z)),F||(U?r.setRow(0,["Series","Name","x","y","z"]):r.setRow(0,["Series","x","y","z"]),F=1)),(fe||le||E.errorvalue!==h||E.horizontalerrorvalue!==h||E.verticalerrorvalue!==h)&&(M=ye(E.errorvalue),L.push(E.errorvalue,E.horizontalerrorvalue===h?M:ye(E.horizontalerrorvalue),E.verticalerrorvalue===h?M:ye(E.verticalerrorvalue)),fe||(r.set(0,F+3,"Error"),r.set(0,F+4,"Horizontal Error"),r.set(0,F+5,"Vertical Error")),fe=xe.error=!0),r.setRow(n,L);if(U)for(n=1,s=0;s<H;s++,n++)E=S[s]||{},L=[d[o].seriesname,ye(E.name),ye(E.x),ye(E.y)],E.z!==h&&L.push(ye(E.z)),r.setRow(n,L)}else if(de)for(r.clear(),fe=!1,F=0,d=ee&&ee.links,r.setRow(0,["from","to","value"]),s=0;s<d.length;s+=1,n+=1)L=[(E=d[s]||{}).from,E.to,ye(E.value)],E.z!==h&&(L.push(ye(E.z)),F||(r.set(0,3,"z"),F=1)),(fe||le||E.errorvalue!==h||E.horizontalerrorvalue!==h||E.verticalerrorvalue!==h)&&(M=ye(E.errorvalue),L.push(E.errorvalue,E.horizontalerrorvalue===h?M:ye(E.horizontalerrorvalue),E.verticalerrorvalue===h?M:ye(E.verticalerrorvalue)),fe||(r.set(0,F+3,"Error"),r.set(0,F+4,"Horizontal Error"),r.set(0,F+5,"Vertical Error")),fe=xe.error=!0),r.setRow(n,L);else if(pe){for(r.clear(),D={},I={},o=0,s=1,f=(ce=ee.rows&&ee.rows.row||[]).length;o<f;o+=1,s+=1)(w=ce[o]).id&&(D[w.id.toLowerCase()]=s,r.set(s,0,w.label||w.id));for(o=0,s=1,f=(ce=ee.columns&&ee.columns.column||[]).length;o<f;o+=1,s+=1)(w=ce[o]).id&&(I[w.id.toLowerCase()]=s,r.set(0,s,w.label||w.id));for(S=ee.dataset&&ee.dataset[0]&&ee.dataset[0].data||[],V=re&&(T=re.getDatasets())&&T[0]&&T[0].components&&T[0].components.data||[],o=0,f=S.length;o<f;o+=1)if(n=(E=S[o]).rowid.toLowerCase(),a=E.columnid.toLowerCase(),!V[o]||!1!==V[o].visible){if(!D[n]){var Ie=r.rowCount||1;D[n]=Ie,r.set(Ie,0,E.rowid)}if(!I[a]){var Oe=r.columnCount||1;I[a]=Oe,r.set(0,Oe,E.columnid)}r.set(D[n],I[a],ye(E.value||E.displayvalue))}}else if(ke){var Pe,Re,je,Be,Ve,ze,Ue=["Task name","Start date","End date",ee.processes.headertext||"Process name"],He={};Ce&&Ce.forEach((function(e,t){Ue.push(e.headertext&&e.headertext.replace(/{br}/g," ")||"DataColumn "+t)})),r.setRow(0,Ue),we.forEach((function(e,t){e.processid?(Be=_e.filter((function(t,r){return t.id===e.processid&&(Ve=r),t.id===e.processid}))[0],Pe=Be.label||Be.name||""):(Ve=t,Pe=_e[t]&&(_e[t].label||_e[t].name)||""),je=e.start||"",ze=e.end||"",Re=e.label||e.name||"Task "+t,He={taskName:Re,taskStart:je,taskEnd:ze,processName:Pe},Ce&&Ce.forEach((function(e,t){He["datacolumn"+t]=e.text[Ve].label||""})),Object.keys(He).forEach((function(e,n){r.set(t+1,n,He[e])}))}))}else if(ge&&me){r.clear();var qe,Ge,We,$e,Xe,Ye,Ke,Je,Ze,Qe,et,tt=0,rt=["Maximum","Median","Minimum"];for(ne.showq1values&&rt.push("Q1"),ne.showq3values&&rt.push("Q3"),ne.showmean&&rt.push("Mean"),ne.showmd&&rt.push("MD"),ne.showsd&&rt.push("SD"),ne.showqd&&rt.push("QD"),o=0,f=(ce=ee.categories&&ee.categories[0].category||[]).length;o<f;o+=1)for(w=ce[o],s=0;s<x;s++){var nt=w.label+(1===x?"":"("+ee.dataset[s].seriesname+")"),at=rt.indexOf("Q1"),it=rt.indexOf("Q3"),ot=rt.indexOf("Mean"),st=rt.indexOf("MD"),lt=rt.indexOf("SD"),ct=rt.indexOf("QD"),ut=rt.indexOf("Outliers"),ht=ee.dataset[s].data[o].outliers,ft=me[0];tt+=1,r.set(0,tt,nt),ut<0&&rt.push("Outliers"),ee.dataset[s].data[o].value?(ft.setArray(ee.dataset[s].data[o].value),We=(Ye=ft.getQuartiles()).q1,$e=Ye.q3,qe=(Xe=ft.getMinMax()).min,Ge=Xe.max,et=ft.getMedian(),Ke=ft.getMean(),Je=ft.getMD(),Ze=ft.getSD(),Qe=ft.getQD()):ee.dataset[s].data[o].min&&ee.dataset[s].data[o].max&&ee.dataset[s].data[o].q1&&ee.dataset[s].data[o].q3&&ee.dataset[s].data[o].median&&(We=ee.dataset[s].data[o].q1,$e=ee.dataset[s].data[o].q3,qe=ee.dataset[s].data[o].min,Ge=ee.dataset[s].data[o].max,et=ee.dataset[s].data[o].median,Ke=ee.dataset[s].data[o].mean,Je=ee.dataset[s].data[o].md,Ze=ee.dataset[s].data[o].sd,Qe=ee.dataset[s].data[o].qd),r.set(1,tt,Ge),r.set(2,tt,et),r.set(3,tt,qe),at>-1&&r.set(at+1,tt,We),it>-1&&r.set(it+1,tt,$e),ot>-1&&r.set(ot+1,tt,Ke),st>-1&&r.set(st+1,tt,Je),lt>-1&&r.set(lt+1,tt,Ze),ct>-1&&r.set(ct+1,tt,Qe),ht&&r.set(ut>-1?ut+1:rt.length,tt,ht)}rt.forEach((function(e,t){r.set(t+1,0,e)}))}for(m=null,g=null,ce=null,d=null,r.rowCount>0&&r.get(0,0)===h&&r.set(0,0,ne.xaxisname||"Label"),o=1;o<r.rowCount;o++)if(r.data[o][0]!==h){Q=1;break}if(!Q&&xe.multiseries){var dt=[];for(o=0;o<r.rowCount;o++)for(dt.push([]),s=1;s<r.data[o].length;s++)dt[o][s-1]=r.data[o][s];for(o=1;o<r.data[0].length;o++)dt[0][o-1]===h&&(dt[0][o-1]="Value");r.data=dt}}return{data:r.toString(),error:h,predictedFormat:xe}},d=function(e,t){return(0,i.raiseError)(t,"0604111215","run","csvToJson()","fusionCharts CSV data-handler only supports encoding of data."),e};var L={extension:function(e){return e&&(u=e,e.prototype.getDataAsCSV=E,e.prototype.getCSVData=N),{format:"csv",toJSON:d,fromJSON:f}},name:"csv",type:"transcoder",requiresFusionCharts:!0};t["default"]=L},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(e){return Array.isArray(e)}},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=t.TimeConverter=void 0;var a=n(r(323)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var r=p(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n["default"]=e,r&&r.set(e,n);return n}(r(325)),o=r(333),s=r(332),l=n(r(334)),c=n(r(326)),u=n(r(335)),h=n(r(331)),f=n(r(337)),d=n(r(339));function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}var g=/^\s*\d+/,m=/^\s*Q\d+/,v=/^%/,b=/[\\^$*+?|[\]().{}]/g,y=function(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i<r?new Array(r-i+1).join(t)+a:a)},x=function(e){return e.replace(b,"\\$&")},w=function(e){return new RegExp("^(?:"+e.map(x).join("|")+")","i")},_=function(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t},S=function(e,t,r){var n=g.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1},C=function(e,t,r){var n=g.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1},k=function(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1},A=function(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1},N=function(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1},E=function(e,t,r){var n=m.exec(t.slice(r,r+2));return n?(e.m=3*(n[0][1]-1),r+n[0].length):-1},L=function(e,t,r){var n=g.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1},M=function(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1},F=function(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1},T=function(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1},D=function(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1},I=function(e,t,r){var n=g.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1},O=function(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1},P=function(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1},R=function(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1},j=function(e,t,r){var n=g.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1},B=function(e,t,r){var n=g.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1},V=function(e,t,r){var n=v.exec(t.slice(r,r+1));return n?r+n[0].length:-1},z=function(e,t,r){var n=g.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1},U=function(e,t,r){var n=g.exec(t.slice(r));return n?(e.Q=1e3*+n[0],r+n[0].length):-1},H=function(e,t){return y(e.getDate(),t,2)},q=function(e,t){return y(e.getHours(),t,2)},G=function(e,t){return y(e.getHours()%12||12,t,2)},W=function(e,t){return y(1+c["default"].count(u["default"].floor(e),e),t,3)},$=function(e,t){return y(e.getMilliseconds(),t,3)},X=function(e,t){return $(e,t)+"000"},Y=function(e,t){return y(e.getMonth()+1,t,2)},K=function(e,t){return y(e.getMinutes(),t,2)},J=function(e,t){return y(e.getSeconds(),t,2)},Z=function(e,t){return"Q"+Math.ceil((e.getMonth()+1)/3)},Q=function(e){var t=e.getDay();return 0===t?7:t},ee=function(e,t){return y(o.sunday.count(u["default"].floor(e),e),t,2)},te=function(e,t){var r=e,n=r.getDay();return r=n>=4||0===n?o.thursday.floor(r):o.thursday.ceil(r),y(o.thursday.count(u["default"].floor(r),r)+(4===u["default"].floor(r).getDay()),t,2)},re=function(e){return e.getDay()},ne=function(e,t){return y(o.monday.count(u["default"].floor(e),e),t,2)},ae=function(e,t){return y(e.getFullYear()%100,t,2)},ie=function(e,t){return y(e.getFullYear()%1e4,t,4)},oe=function(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+y(t/60|0,"0",2)+y(t%60,"0",2)},se=function(e,t){return y(e.getUTCDate(),t,2)},le=function(e,t){return y(e.getUTCHours(),t,2)},ce=function(e,t){return y(e.getUTCHours()%12||12,t,2)},ue=function(e,t){return y(1+h["default"].count(f["default"].floor(e),e),t,3)},he=function(e,t){return y(e.getUTCMilliseconds(),t,3)},fe=function(e,t){return he(e,t)+"000"},de=function(e,t){return y(e.getUTCMonth()+1,t,2)},pe=function(e,t){return y(e.getUTCMinutes(),t,2)},ge=function(e,t){return y(e.getUTCSeconds(),t,2)},me=function(e,t){return"Q"+Math.ceil((e.getUTCMonth()+1)/3)},ve=function(e){var t=e.getUTCDay();return 0===t?7:t},be=function(e,t){return y(s.utcSunday.count(f["default"].floor(e),e),t,2)},ye=function(e,t){var r=e,n=r.getUTCDay();return r=n>=4||0===n?s.utcThursday.floor(r):s.utcThursday.ceil(r),y(s.utcThursday.count(f["default"].floor(r),r)+(4===f["default"].floor(r).getUTCDay()),t,2)},xe=function(e){return e.getUTCDay()},we=function(e,t){return y(s.utcMonday.count(f["default"].floor(e),e),t,2)},_e=function(e,t){return y(e.getUTCFullYear()%100,t,2)},Se=function(e,t){return y(e.getUTCFullYear()%1e4,t,4)},Ce=function(){return"+0000"},ke=function(){return"%"},Ae=function(e){return+e},Ne=function(e){return Math.floor(+e/1e3)},Ee=function(){function e(e){var t=this,r=e.dateTime,n=e.date,o=e.time,s=e.periods,l=e.days,c=e.shortDays,u=e.months,h=e.shortMonths,f=w(s),d=_(s),p=w(l),g=_(l),m=w(c),v=_(c),b=w(u),y=_(u),x=w(h),Ee=_(h);this._formats={a:function(e){return c[e.getDay()]},A:function(e){return l[e.getDay()]},b:function(e){return h[e.getMonth()]},B:function(e){return u[e.getMonth()]},d:H,e:H,f:X,H:q,I:G,j:W,L:$,m:Y,M:K,p:function(e){return s[+(e.getHours()>=12)]},q:Z,Q:Ae,s:Ne,S:J,u:Q,U:ee,V:te,w:re,W:ne,y:ae,Y:ie,Z:oe,"%":ke},this._utcFormats={a:function(e){return c[e.getUTCDay()]},A:function(e){return l[e.getUTCDay()]},b:function(e){return h[e.getUTCMonth()]},B:function(e){return u[e.getUTCMonth()]},d:se,e:se,f:fe,H:le,I:ce,j:ue,L:he,m:de,M:pe,p:function(e){return s[+(e.getUTCHours()>=12)]},q:me,Q:Ae,s:Ne,S:ge,u:ve,U:be,V:ye,w:xe,W:we,y:_e,Y:Se,Z:Ce,"%":ke},this._parses={a:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.w=v[n[0].toLowerCase()],r+n[0].length):-1},A:function(e,t,r){var n=p.exec(t.slice(r));return n?(e.w=g[n[0].toLowerCase()],r+n[0].length):-1},b:function(e,t,r){var n=x.exec(t.slice(r));return n?(e.m=Ee[n[0].toLowerCase()],r+n[0].length):-1},B:function(e,t,r){var n=b.exec(t.slice(r));return n?(e.m=y[n[0].toLowerCase()],r+n[0].length):-1},c:null,d:D,e:D,f:B,H:O,I:O,j:I,L:j,m:T,M:P,p:function(e,t,r){var n=f.exec(t.slice(r));return n?(e.p=d[n[0].toLowerCase()],r+n[0].length):-1},Q:z,q:E,s:U,S:R,u:C,U:k,V:A,w:S,W:N,x:null,X:null,y:M,Y:L,Z:F,"%":V},this._formats.x=function(e){return new a["default"](n,t._formats).format(e)},this._formats.X=function(e){return new a["default"](o,t._formats).format(e)},this._formats.c=function(e){return new a["default"](r,t._formats).format(e)},this._utcFormats.x=function(e){return new a["default"](n,t._utcFormats).format(e)},this._utcFormats.X=function(e){return new a["default"](o,t._utcFormats).format(e)},this._utcFormats.c=function(e){return new a["default"](r,t._utcFormats).format(e)},this._parses.c=function(e,n,a){return new i["default"](r,t._parses).parseSpecifier(e,n,a)},this._parses.x=function(e,r,a){return new i["default"](n,t._parses).parseSpecifier(e,r,a)},this._parses.X=function(e,r,n){return new i["default"](o,t._parses).parseSpecifier(e,r,n)}}var t=e.prototype;return t.formatter=function(e){return void 0===e&&(e=""),new a["default"](e.toString(),this._formats)},t.utcFormatter=function(e){return void 0===e&&(e=""),new a["default"](e.toString(),this._utcFormats)},t.parser=function(e){var t=e;return new i["default"](t+="",this._parses,(function(e){var t;if(e.y>=0&&e.y<100)return(t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L)).setFullYear(e.y),t;t=new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L);var r=new Date(e.y,0).getTimezoneOffset(),n=new Date(e.y,6).getTimezoneOffset(),a=new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L).getTimezoneOffset();return n===r||r>n&&r!==a&&(t=l["default"].offset(t,1)),t}))},t.utcParser=function(e){var t=e;return new i["default"](t+="",this._parses,i.utcDate)},e}();t.TimeConverter=Ee;var Le=new Ee(d["default"]);t["default"]=Le},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(324)),i=function(){function e(e,t){this._specifier=e,this._formats=t}var t=e.prototype;return t.format=function(e){var t,r,n,i=[],o=e,s=-1,l=0,c=this._specifier,u=c.length;for(o instanceof Date||(o=new Date(+o));++s<u;)37===c.charCodeAt(s)&&(i.push(c.slice(l,s)),t=c.charAt(++s),r=a["default"][t],null==r?r="e"===t?" ":"0":t=c.charAt(++s),n=this._formats[t],n&&(t=n(o,r)),i.push(t),l=s+1);return i.push(c.slice(l,s)),i.join("")},t.toString=function(){return this._specifier},e}();t["default"]=i},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"-":"",_:" ",0:"0"}},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=t.utcDate=void 0;var a=n(r(324)),i=n(r(326)),o=n(r(331)),s=r(332),l=r(333),c=function(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}},u=function(e){if(e.y>=0&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))};t.utcDate=u;var h=function(){function e(e,t,r){this._specifier=e,this._parses=t,this._newDate=r}var t=e.prototype;return t.parseSpecifier=function(e,t,r){for(var n,i,o=0,s=this._specifier.length,l=t.length,c=r;o<s;){if(c>=l)return-1;if(37===(n=this._specifier.charCodeAt(o++))){if(n=this._specifier.charAt(o++),!(i=this._parses[n in a["default"]?this._specifier.charAt(o++):n])||(c=i(e,t,c))<0)return-1}else if(n!==t.charCodeAt(c++))return-1}return c},t.parse=function(e){var t,r,n=c(1900),a=e;if(a+="",this.parseSpecifier(n,a,0)!==a.length)return null;if("Q"in n)return new Date(n.Q);if("p"in n&&(n.H=n.H%12+12*n.p),"V"in n){if(n.V<1||n.V>53)return null;"w"in n||(n.w=1),"Z"in n?(r=(t=u(c(n.y))).getUTCDay(),t=r>4||0===r?s.utcMonday.ceil(t):s.utcMonday.floor(t),t=o["default"].offset(t,7*(n.V-1)),n.y=t.getUTCFullYear(),n.m=t.getUTCMonth(),n.d=t.getUTCDate()+(n.w+6)%7):(r=(t=this._newDate(c(n.y))).getDay(),t=r>4||0===r?l.monday.ceil(t):l.monday.floor(t),t=i["default"].offset(t,7*(n.V-1)),n.y=t.getFullYear(),n.m=t.getMonth(),n.d=t.getDate()+(n.w+6)%7)}else("W"in n||"U"in n)&&("w"in n||(n.w="u"in n?n.u%7:"W"in n?1:0),r="Z"in n?u(c(n.y)).getUTCDay():this._newDate(c(n.y)).getDay(),n.m=0,n.d="W"in n?(n.w+6)%7+7*n.W-(r+5)%7:n.w+7*n.U-(r+6)%7);return"Z"in n?(n.H+=n.Z/100|0,n.M+=n.Z%100,u(n)):this._newDate(n)},t.toString=function(){return this._specifier},e}();t["default"]=h},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.dayObj=t["default"]=void 0;var a=n(r(327)),i=r(328),o=r(329),s={name:"day",floor:function(e,t,r){return new Date(Number((0,o.getFloor)(new Date(Number(e.setHours(0,0,0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(i.date,new Date(Number(s.setDate(s.getDate()+t))),r,n):(0,o.clampUpDateWithinClip)(i.date,new Date(Number(s.setDate(s.getDate()+t))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach((function(e){a+=Number(e.to)-Number(e.from)})),(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.durationMinute)/i.durationDay-Math.floor(a/i.durationDay)},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setDate(1),s.setHours(0,0,0,0),n=(0,o.getFloor)(new Date(Number(s)),t,r),(0,o.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach((function(e){l+=Number(e.to)-Number(e.from)})),e.getDate()-n.getDate()-Math.floor(l/i.durationDay)}},l=new a["default"](s);t.dayObj=s;var c=l;t["default"]=c},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n=new Date,a=new Date,i=function(e){return null==e},o=function(){function e(e){this._name=e.name,this._floori=e.floor,this._offseti=e.offset,this._count=e.count,this._field=e.field}var t=e.prototype;return t.name=function(){return this._name},t.floor=function(e){var t=new Date(Number(e));return t=this._floori(t,this._clipDates,this._timeUniverse)},t.setClipDates=function(e){this._clipDates=e},t.setTimeUniverse=function(e){this._timeUniverse=e},t.ceil=function(e){var t=new Date(e-1);return t=this._floori(t,this._clipDates,this._timeUniverse),t=this._offseti(t,1,this._clipDates,this._timeUniverse),t=this._floori(t,this._clipDates,this._timeUniverse)},t.round=function(e){var t=this.floor(e),r=this.ceil(e);return e-t<r-e?t:r},t.offset=function(e,t){var r=new Date(Number(e));return r=this._offseti(r,i(t)?1:Math.floor(t),this._clipDates,this._timeUniverse)},t.range=function(e,t,r){var n,a=[],o=this.ceil(e),s=i(r)?1:Math.floor(r);if(!(o<t&&s>0))return a;do{n=new Date(Number(o)),a.push(n),o=this._offseti(o,s,this._clipDates,this._timeUniverse),o=this._floori(o,this._clipDates,this._timeUniverse)}while(n<o&&o<t);return a},t.filter=function(t){var r=this;return new e({name:this.name(),floor:function(e){var n=e;if(!Number.isNaN(Number(n)))for(;r._floori(n,r._clipDates,r._timeUniverse),!t(n);)n.setTime(n-1);return Number(n)},offset:function(e,n){var a=n,i=e;if(!Number.isNaN(Number(i)))if(a<0)for(;++a<=0;){0;do{i=r._offseti(i,-1,r._clipDates,r._timeUniverse)}while(!t(i))}else for(;--a>=0;)do{i=r._offseti(i,1,r._clipDates,r._timeUniverse)}while(!t(i));return Number(i)}})},t.count=function(e,t){var r=0;return this._count&&(n.setTime(Number(e)),a.setTime(Number(t)),n=this._floori(n,this._clipDates,this._timeUniverse),a=this._floori(a,this._clipDates,this._timeUniverse),r=Math.floor(this._count(n,a,this._clipDates))),r},t.every=function(e){var t=this,r=Math.floor(e);return this._count&&Number.isFinite(r)&&r>0?r>1?this.filter(this._field?function(e){return t._field(e,t._clipDates,t._timeUniverse)%r==0}:function(e){return t.count(0,e)%r==0}):this:null},e}();t["default"]=o},function(e,t,r){"use strict";t.__esModule=!0,t.durationYear=t.durationQuarter=t.durationMonth=t.durationWeek=t.durationDay=t.durationHour=t.durationMinute=t.durationSecond=void 0;t.durationYear=31536e6,t.durationQuarter=78894e5,t.durationMonth=2592e6,t.durationWeek=6048e5,t.durationDay=864e5,t.durationHour=36e5,t.durationMinute=6e4,t.durationSecond=1e3},function(e,t,r){"use strict";t.__esModule=!0,t.getClipArray=t.getClippedDatesWithin=t.getClampRangesAround=t.getValidDatesWithin=t.getFloor=t.clampDownDateWithinClip=t.clampUpDateWithinClip=void 0;var n=r(330),a=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},i=function(e,t,r,n){if(n&&Array.isArray(n)&&n.length>0){if(Number(t)>=Number(n[1]))return n[1];if(Number(t)<=Number(n[0]))return n[0]}if(!r||r.length<=0)return t;var a=t,i=r,l=o(i,e,a);return s(a,l,i,n)},o=function(e,t,r){var n=c(e,t,r),a=[];return!e||e.length<=0?a:a=u(n,a)},s=function(e,t,r,n){var a,o=t,s=l(r,e),c=e,h=0;return(o=u(s,o)).length>0&&o.forEach((function(e){h+=Number(e.to)-Number(e.from)})),a=new Date(Number(c.setTime(Number(c)+h))),Number(a)===Number(c)?c:a=i(c,a,r,n)},l=function(e,t){var r=Number(t),i=e,o=0,s=[];if(!e||e.length<=0)return s;if(Array.isArray(i))for(var l=0;l<i.length;l++){var c=i[l],u=c.from,h=c.to;if(o=h-u,c.hasOwnProperty("repeat")){var f=Number(u),d=Number(h),p=n.DatetimeUnits[a(String(c.repeat.unit))].ms*c.repeat.multiplier,g=Math.floor((r-f)/p),m=g,v=void 0,b=void 0;if("month"===String(c.repeat.unit).toLowerCase()?(v=new Date(Number(new Date(f).setMonth(new Date(f).getMonth()+m))),b=new Date(Number(new Date(d).setMonth(new Date(d).getMonth()+m)))):"year"===String(c.repeat.unit).toLowerCase()?(v=new Date(Number(new Date(f).setFullYear(new Date(f).getFullYear()+m))),b=new Date(Number(new Date(d).setFullYear(new Date(d).getFullYear()+m)))):(v=new Date(Number(f)+p*g),b=new Date(Number(v)+o)),g<0)continue;r>=v&&r<b&&s.push({from:v,to:b})}else u<=r&&h>r&&s.push(c)}return s},c=function(e,t,r){var i=+t,o=+r,s=e,l=0,c=[];if(Array.isArray(s))for(var u=0;u<s.length;u++){var h=s[u],f=h.from,d=h.to;if(l=d-f,h.hasOwnProperty("repeat")){var p=Number(f),g=Number(d),m=n.DatetimeUnits[a(String(h.repeat.unit))].ms*h.repeat.multiplier,v=Math.floor((i-p)/m),b=v,y=void 0,x=void 0;if("month"===String(h.repeat.unit).toLowerCase()?(y=new Date(Number(new Date(p).setMonth(new Date(p).getMonth()+b))),x=new Date(Number(new Date(g).setMonth(new Date(g).getMonth()+b)))):"year"===String(h.repeat.unit).toLowerCase()?(y=new Date(Number(new Date(p).setFullYear(new Date(p).getFullYear()+b))),x=new Date(Number(new Date(g).setFullYear(new Date(g).getFullYear()+b)))):(y=new Date(Number(p)+m*v),x=new Date(Number(y)+l)),v<0)continue;for(;Number(y)<Number(o);)Number(y)>Number(i)&&Number(x)<=Number(o)&&c.push({from:y,to:x}),b=Number(h.repeat.multiplier),y=+y,x=+x,"month"===String(h.repeat.unit).toLowerCase()?(y=new Date(Number(new Date(y).setMonth(new Date(y).getMonth()+b))),x=new Date(Number(new Date(x).setMonth(new Date(x).getMonth()+b)))):"year"===String(h.repeat.unit).toLowerCase()?(y=new Date(Number(new Date(y).setFullYear(new Date(y).getFullYear()+b))),x=new Date(Number(new Date(x).setFullYear(new Date(x).getFullYear()+b)))):(y=new Date(Number(y)+m),x=new Date(Number(x)+m))}else f>i&&d<=o&&c.push(h)}return c},u=function(e,t){var r,n=e,a=t;if(!e||e.length<=0)return a;var i=function(){var e=n[r];a.every((function(t){return!(e.from>=t.from&&e.to<=t.to)&&(e.from<=t.from&&e.to>=t.to?t.entryEnabled=!1:e.from>=t.from&&e.from<=t.to&&e.to>=t.to?(e.from=t.from,t.entryEnabled=!1):e.to>=t.from&&e.to<=t.to&&e.from<=t.from?(e.to=t.to,t.entryEnabled=!1):t.entryEnabled=!0,!0)}))&&(e.entryEnabled=!0,a.push(e))};for(r=0;r<n.length;r++)i();return a=a.filter((function(e){return!0===e.entryEnabled}))},h=function(e,t,r,n){if(n&&Array.isArray(n)&&n.length>0){if(Number(t)>=Number(n[1]))return n[1];if(Number(t)<=Number(n[0]))return n[0]}if(!r||r.length<=0)return t;var a=t,i=r,s=o(i,a,e);return f(a,s,i,n)},f=function(e,t,r,n){var a,i=t,o=l(r,e),s=e,c=0;return(i=u(o,i)).length>0&&i.forEach((function(e){c+=Number(e.to)-Number(e.from)})),a=new Date(Number(s.setTime(Number(s)-c))),Number(a)===Number(s)?s:a=h(s,a,r,n)};t.getFloor=function d(e,t,r){if(r&&Array.isArray(r)&&r.length>0){if(Number(e)>=Number(r[1]))return r[1];if(Number(e)<=Number(r[0]))return r[0]}if(!t||t.length<=0)return e;var n,a=e,i=l(t,e),o=[];return 0===i.length?a:(n=(o=u(i,o)).reduce((function(e,t){return e.to>t.to?+new Date(Number(e.to)):+new Date(Number(t.to))}),0),Number(n)===Number(a)?n:d(n,t,r))},t.clampUpDateWithinClip=h,t.getClipArray=u,t.getClippedDatesWithin=c,t.getClampRangesAround=l,t.getValidDatesWithin=o,t.clampDownDateWithinClip=i},function(e,t,r){"use strict";t.__esModule=!0,t.Weekdays=t.DatetimeUnits=void 0;var n=r(328),a={Millisecond:{name:"Millisecond",ms:1},Second:{name:"Second",ms:n.durationSecond},Minute:{name:"Minute",ms:n.durationMinute},Hour:{name:"Hour",ms:n.durationHour},Day:{name:"Day",ms:n.durationDay},Week:{name:"Week",ms:n.durationWeek},Month:{name:"Month",ms:n.durationMonth},Quarter:{name:"Quarter",ms:n.durationQuarter},Year:{name:"Year",ms:n.durationYear}};t.Weekdays={Sunday:{name:"Sunday",id:0},Monday:{name:"Monday",id:1},Tuesday:{name:"Tuesday",id:2},Wednesday:{name:"Wednesday",id:3},Thursday:{name:"Thursday",id:4},Friday:{name:"Friday",id:5},Saturday:{name:"Saturday",id:6}},t.DatetimeUnits=a},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.utcDayObj=t["default"]=void 0;var a=n(r(327)),i=r(328),o=r(329),s={name:"day",floor:function(e,t,r){return new Date(Number((0,o.getFloor)(new Date(Number(e.setUTCHours(0,0,0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(i.date,new Date(Number(s.setUTCDate(s.getUTCDate()+t))),r,n):(0,o.clampUpDateWithinClip)(i.date,new Date(Number(s.setUTCDate(s.getUTCDate()+t))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach((function(e){a+=Number(e.to)-Number(e.from)})),t-e-Math.floor(a/i.durationDay)},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setUTCDate(1),n=(0,o.getFloor)(new Date(Number(s)),t,r),(0,o.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach((function(e){l+=Number(e.to)-Number(e.from)})),e.getUTCDate()-n.getUTCDate()-Math.floor(l/i.durationDay)}},l=new a["default"](s);t.utcDayObj=s;var c=l;t["default"]=c},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.utcWeekObj=t.utcSaturday=t.utcFriday=t.utcThursday=t.utcWednesday=t.utcTuesday=t.utcMonday=t.utcSunday=t["default"]=void 0;var a=n(r(327)),i=r(328),o=r(329),s={name:"week",floor:function(e,t,r){return e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-0)%7),new Date(Number((0,o.getFloor)(new Date(Number(e.setUTCHours(0,0,0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(i.date,new Date(Number(s.setUTCDate(s.getUTCDate()+7*t))),r,n):(0,o.clampUpDateWithinClip)(i.date,new Date(Number(s.setUTCDate(s.getUTCDate()+7*t))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach((function(e){a+=Number(e.to)-Number(e.from)})),t-e-Math.floor(a/i.durationWeek)}},l=function(e,t){return new a["default"]({name:t,floor:function(t,r,n){return t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),new Date(Number((0,o.getFloor)(new Date(Number(t.setUTCHours(0,0,0,0))),r,n)))},offset:function(e,t,r,n){var a=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(i.date,new Date(Number(s.setUTCDate(s.getUTCDate()+7*t))),r,n):(0,o.clampUpDateWithinClip)(i.date,new Date(Number(s.setUTCDate(s.getUTCDate()+7*t))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach((function(e){a+=Number(e.to)-Number(e.from)})),t-e-Math.floor(a/i.durationWeek)}})},c=l(0,"week"),u=l(0,"sunday"),h=l(1,"monday"),f=l(2,"tuesday"),d=l(3,"wednesday"),p=l(4,"thursday"),g=l(5,"friday"),m=l(6,"saturday");t.utcSaturday=m,t.utcFriday=g,t.utcThursday=p,t.utcWednesday=d,t.utcTuesday=f,t.utcMonday=h,t.utcSunday=u,t.utcWeekObj=s;var v=c;t["default"]=v},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.weekObj=t.saturday=t.friday=t.thursday=t.wednesday=t.tuesday=t.monday=t.sunday=t["default"]=void 0;var a=n(r(327)),i=r(328),o=r(329),s={name:"week",floor:function(e,t,r){return e.setDate(e.getDate()-(e.getDay()+7-0)%7),new Date(Number((0,o.getFloor)(new Date(Number(e.setHours(0,0,0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(i.date,new Date(Number(s.setDate(s.getDate()+7*t))),r,n):(0,o.clampUpDateWithinClip)(i.date,new Date(Number(s.setDate(s.getDate()+7*t))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach((function(e){a+=Number(e.to)-Number(e.from)})),(t-e-Math.floor(a/i.durationWeek)-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.durationMinute)/i.durationWeek}},l=function(e,t){return new a["default"]({name:t,floor:function(t,r,n){return t.setDate(t.getDate()-(t.getDay()+7-e)%7),new Date(Number((0,o.getFloor)(new Date(Number(t.setHours(0,0,0,0))),r,n)))},offset:function(e,t,r,n){var a=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(i.date,new Date(Number(s.setDate(s.getDate()+7*t))),r,n):(0,o.clampUpDateWithinClip)(i.date,new Date(Number(s.setDate(s.getDate()+7*t))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach((function(e){a+=Number(e.to)-Number(e.from)})),(t-e-Math.floor(a/i.durationWeek)-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.durationMinute)/i.durationWeek}})},c=l(0,"week"),u=l(0,"sunday"),h=l(1,"monday"),f=l(2,"tuesday"),d=l(3,"wednesday"),p=l(4,"thursday"),g=l(5,"friday"),m=l(6,"saturday");t.saturday=m,t.friday=g,t.thursday=p,t.wednesday=d,t.tuesday=f,t.monday=h,t.sunday=u,t.weekObj=s;var v=c;t["default"]=v},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.hourObj=t["default"]=void 0;var a=n(r(327)),i=r(328),o=r(329),s={name:"hour",floor:function(e,t,r){var n=e.getTimezoneOffset()*i.durationMinute%i.durationHour;return n<0&&(n+=i.durationHour),new Date(Number((0,o.getFloor)(new Date(Number(e.setTime(Math.floor((Number(e)-n)/i.durationHour)*i.durationHour+n))),t,r)))},offset:function(e,t,r,n){var a=t>0,s={date:new Date(Number(e))},l=new Date(Number(s.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationHour))),r,n):(0,o.clampUpDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationHour))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach((function(e){a+=Number(e.to)-Number(e.from)})),(t-e)/i.durationHour-Math.floor(a/i.durationHour)},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setHours(0),n=(0,o.getFloor)(new Date(Number(s)),t,r),(0,o.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach((function(e){l+=Number(e.to)-Number(e.from)})),e.getHours()-n.getHours()-l/i.durationHour}},l=new a["default"](s);t.hourObj=s;var c=l;t["default"]=c},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.yearObj=t["default"]=void 0;var a=n(r(336)),i=r(328),o=r(329),s={name:"year",floor:function(e,t,r){return e.setMonth(0,1),new Date(Number((0,o.getFloor)(new Date(Number(e.setHours(0,0,0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(i.date,new Date(Number(s.setFullYear(s.getFullYear()+t))),r,n):(0,o.clampUpDateWithinClip)(i.date,new Date(Number(s.setFullYear(s.getFullYear()+t))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach((function(e){a+=Number(e.to)-Number(e.from)})),t.getFullYear()-e.getFullYear()-Math.floor(a/i.durationYear)},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setFullYear(0),n=(0,o.getFloor)(new Date(Number(s)),t,r),(0,o.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach((function(e){l+=Number(e.to)-Number(e.from)})),e.getFullYear()-n.getFullYear()-Math.floor(l/i.durationYear)}},l=new a["default"](s);t.yearObj=s;var c=l;t["default"]=c},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=n(r(327)),o=r(329),s=function(e){function t(){return e.apply(this,arguments)||this}return(0,a["default"])(t,e),t.prototype.every=function(e){var t=Math.floor(e);return this.count&&Number.isFinite(t)&&t>0?new i["default"]({name:"year",floor:function(e,r,n){return e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),new Date(Number((0,o.getFloor)(new Date(Number(e.setHours(0,0,0,0)))),r,"year",n))},offset:function(e,r,n,a){var i=r>0,s={date:new Date(Number(e))},l=new Date(Number(s.date));return new Date(Number(i?(0,o.clampDownDateWithinClip)(s.date,new Date(Number(l.setFullYear(l.getFullYear()+r*t))),n,"year",a):(0,o.clampUpDateWithinClip)(s.date,new Date(Number(l.setFullYear(l.getFullYear()+r*t))),n,"year",a)))}}):null},t}(i["default"]);t["default"]=s},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.utcYearObj=t["default"]=void 0;var a=n(r(338)),i=r(329),o=r(328),s={name:"year",floor:function(e,t,r){return e.setUTCMonth(0,1),new Date(Number((0,i.getFloor)(new Date(Number(e.setUTCHours(0,0,0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,o={date:new Date(Number(e))},s=new Date(Number(o.date));return new Date(Number(a?(0,i.clampDownDateWithinClip)(o.date,new Date(Number(s.setUTCFullYear(s.getUTCFullYear()+t))),r,n):(0,i.clampUpDateWithinClip)(o.date,new Date(Number(s.setUTCFullYear(s.getUTCFullYear()+t))),r,n)))},count:function(e,t,r){var n=(0,i.getValidDatesWithin)(r,e,t),a=0,s=(0,i.getClampRangesAround)(r,t);return(n=(0,i.getClipArray)(s,n)).forEach((function(e){a+=Number(e.to)-Number(e.from)})),t.getUTCFullYear()-e.getUTCFullYear()-Math.floor(a/o.durationYear)},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setUTCFullYear(0),n=(0,i.getFloor)(new Date(Number(s)),t,r),(0,i.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach((function(e){l+=Number(e.to)-Number(e.from)})),e.getUTCFullYear()-n.getUTCFullYear()-Math.floor(l/o.durationYear)}},l=new a["default"](s);t.utcYearObj=s;var c=l;t["default"]=c},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=n(r(327)),o=r(329),s=function(e){function t(){return e.apply(this,arguments)||this}return(0,a["default"])(t,e),t.prototype.every=function(e){var t=e;return isFinite(t=Math.floor(t))&&t>0?new i["default"]({name:"year",floor:function(e,r){return e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),new Date(Number((0,o.getFloor)(new Date(Number(e.setUTCHours(0,0,0,0))),r)))},offset:function(e,r,n){var a=r>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(i.date,new Date(Number(s.setUTCFullYear(s.getUTCFullYear()+r*t))),n):(0,o.clampUpDateWithinClip)(i.date,new Date(Number(s.setUTCFullYear(s.getUTCFullYear()+r*t))),n)))}}):null},t}(i["default"]);t["default"]=s},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n={dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};t["default"]=n},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(261),a=r(341);function i(e,t,r,i,o){(0,n.triggerEvent)("dataLoadRequested",o,{source:a.sourceName,url:e,dataFormat:"json",silent:!!i,config:t,successcallback:r},void 0,a.onDataLoadRequest,a.onDataLoadRequestCancel)}function o(e){this.setChartDataUrl(e,"jsonurl")}var s={extension:function(e){return e&&(e.prototype.setJSONUrl=o),{format:"jsonurl",toJSON:i}},name:"JSONUrl",type:"transcoder",requiresFusionCharts:!0};t["default"]=s},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.onDataLoadRequest=function(e,t){var r=e.sender,n=r.__state,i=t.url;r.options.dataSource=t.url,n.dhmXhrObj||(n.dhmXhrObj=new a["default"](l,c));n.dhmXhrObj.get("function"==typeof window.decodeURIComponent?window.decodeURIComponent(i):window.unescape(i),{obj:r,args:t})},t.onDataLoadRequestCancel=function(e,t){var r=e.sender,n=r.__state;(0,i.triggerEvent)("dataLoadRequestCancelled",r,t),n&&n.dhmXhrObj&&n.dhmXhrObj.abort()},t.sourceName=void 0;var a=n(r(342)),i=r(261);function o(e,t){e.sender.jsVars.stallLoad=!1,e.sender.setChartData(t.dataSource,t.dataFormat,t.config,t.successcallback,t.silent)}function s(e,t){(0,i.triggerEvent)("dataLoadCancelled",e.sender,t),t.xmlHttpRequestObject.abort()}function l(e,t,r,n){var a=r.args;a.dataSource=e,a.xmlHttpRequestObject=t,a.source="XmlHttpRequest",a.url=n,(0,i.triggerEvent)("dataLoadRequestCompleted",r.obj,a,void 0,o,s)}function c(e,t,r){var n=r.obj,a=r.args;a.error=e,a.httpStatus=t.xmlhttp&&t.xmlhttp.status?t.xmlhttp.status:-1,a.xmlHttpRequestObject=t,n._addChartDependency("data",{resolve:function(){return{state:1,msg:n.options.dataLoadErrorMessage,msgStyle:{image:{imageHAlign:n.args.dataLoadErrorMessageImageHAlign||n.options.baseChartMessageImageHAlign,imageVAlign:n.args.dataLoadErrorMessageImageVAlign||n.options.baseChartMessageImageVAlign,imageAlpha:n.args.dataLoadErrorMessageImageAlpha||n.options.baseChartMessageImageAlpha,imageScale:n.args.dataLoadErrorMessageImageScale||n.options.baseChartMessageImageScale},message:{color:n.args.dataLoadErrorMessageColor||n.options.baseChartMessageColor,fontFamily:n.args.dataLoadErrorMessageFont||n.options.baseChartMessageFont,fontSize:n.args.dataLoadErrorMessageFontSize||n.options.baseChartMessageFontSize}}}}}),n._setState(),(0,i.triggerEvent)("dataLoadError",n,a)}t.sourceName="XmlHttpRequest"},function(e,t,r){"use strict";(function(e){t.__esModule=!0,t["default"]=void 0;var n=r(261),a=r(254),i=window,o=parseFloat(i.navigator.appVersion.split("MSIE")[1]),s=!!(o>=5.5&&o<=7),l="file:"===i.location.protocol,c=i.ActiveXObject,u=(!c||!l)&&i.XMLHttpRequest,h={objects:0,xhr:0,requests:0,success:0,failure:0,idle:0},f=function(){var e;if(u)return(f=function(){return h.xhr++,new u})();try{e=new c("Msxml2.XMLHTTP"),f=function(){return h.xhr++,new c("Msxml2.XMLHTTP")}}catch(t){try{e=new c("Microsoft.XMLHTTP"),f=function(){return h.xhr++,new c("Microsoft.XMLHTTP")}}catch(r){e=!1}}return e},d=function(){function t(e,t){this.onSuccess=e,this.onError=t,this.open=!1,h.objects++,h.idle++}t.stats=function(e){return e?h[e]:(0,a.extend2)({},h)};var r=t.prototype;return r.transact=function(r,o,c,u){var d,p,g=this,m=g.xmlhttp,v=t.headers,b=g.onError,y=g.onSuccess,x="POST"===r,w=Object.prototype.hasOwnProperty;-1!==o.search(/^(http:\/\/|https:\/\/)/)&&i.location.hostname!==/(http:\/\/|https:\/\/)([^\/\:]*)/.exec(o)[2]?delete v["X-Requested-By"]:!w.call(v,"X-Requested-By")&&(v["X-Requested-By"]="FusionCharts"),(!m||s||a.isFirefox)&&(m=f(),g.xmlhttp=m),m.onreadystatechange=function(){try{4===m.readyState&&(!m.status&&l||m.status>=200&&m.status<300||304===m.status||1223===m.status||0===m.status?(y&&y(m.responseText,g,u,o),h.success++):b&&(b(new Error("XmlHttprequest Error"),g,u,o),h.failure++),h.idle--,g.open=!1)}catch(e){b&&b(e,g,u,o),i.FC_DEV_ENVIRONMENT&&setTimeout((function(){throw e}),0),h.failure++}};try{if(m.open(x?"POST":"GET",o,!0),m.overrideMimeType&&m.overrideMimeType("text/plain"),x)if("string"==typeof c)d=c;else{for(p in d=[],c)d.push(p+"="+(c[p]+"").replace(/\=/g,"%3D").replace(/\&/g,"%26"));d=d.join("&")}else d=null;for(p in v)m.setRequestHeader(p,v[p]);m.send(d),h.requests++,h.idle++,g.open=!0}catch(_){(0,n.raiseError)(e.core,"1110111515A","run","XmlHttprequest Error",_.message)}return m},r.get=function(e,t){return this.transact("GET",e,void 0,t)},r.post=function(e,t,r){return this.transact("POST",e,t,r)},r.abort=function(){var e=this.xmlhttp;return this.open=!1,e&&"function"==typeof e.abort&&e.readyState&&0!==e.readyState&&e.abort()},r.dispose=function(){var e=this;return e.open&&e.abort(),delete e.onError,delete e.onSuccess,delete e.xmlhttp,delete e.open,h.objects--,null},t}();d.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"};var p=d;t["default"]=p}).call(this,r(6))},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(261),a=r(341);function i(e,t,r,i,o){void 0===e&&(e=""),void 0===t&&(t={}),(0,n.triggerEvent)("dataLoadRequested",o,{source:a.sourceName,url:e,dataFormat:"xml",silent:!!i,config:t,successcallback:r},void 0,a.onDataLoadRequest,a.onDataLoadRequestCancel)}function o(e){this.setChartDataUrl(e,"xmlurl")}function s(){(0,n.raiseWarning)(this,"11171116293","run","JavaScriptRenderer~setDataURL()",'Use of deprecated "setDataURL()". Replace with "setXMLUrl()".'),this.setXMLUrl.apply(this,arguments)}var l={extension:function(e){return e&&(e.prototype.setXMLUrl=o),e&&(e.prototype.setDataURL=s),{format:"xmlurl",toJSON:i}},name:"XMLUrl",type:"transcoder",requiresFusionCharts:!0};t["default"]=l},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(254),a=["series","styledefinition"];var i={extension:function(e){e.addEventListener("beforedataupdate",(function(e,t){t.data=function r(e,t){void 0===t&&(t=!1);var i=typeof e;if("string"===i||"number"===i||"function"===i||"boolean"===i)return e;if(null===e||e===n.UNDEF)return e;if(Array.isArray(e)){for(var o=[],s=0;s<e.length;s++)o.push(r(e[s]));return o}if("object"==typeof e){var l={};for(var c in e){var u=t?c:c.toLowerCase();"data"!==u?l[u]=r(e[c],a.includes(u)):e[c]&&e[c]._dataStore?l[u]=e[c]:l[u]=r(e[c])}return l}}(t.data)}))},name:"IgnoreCaseExt",type:"extension",requiresFusionCharts:!0};t["default"]=i},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=r(270),o=r(262),s=r(261);function l(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u,h=/\s+!important$/,f=/\\!important$/,d=function(e,t){var r,n,a=t;for(n in a=(a+"").toLowerCase(),e)if(e.hasOwnProperty(n)&&a===(n+"").toLowerCase()){r=e[n];break}return r},p=function(e){var t,r;for(t=0,r=e.length;t<r;t++)if("function"==typeof e[t])return!0;return!1},g=function(e){var t,r=[];for(t in e)r[t]=e[t];return r},m=function(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},v=function(e){var t,r={};for(var n in e)e.hasOwnProperty(n)&&(r[(t=e[n]).name]=t);return r},b=function(e,t){for(var r=t.length,n=-1;r--;)if(e===t[r])return n=r;return n},y=function(e,t,r,n){void 0===n&&(n=null);var a=e;return"object"!=typeof a&&"object"!=typeof t?null:("object"!=typeof t||null===t||("object"!=typeof a&&(a=t instanceof Array?[]:{}),function i(e,t,r,n,a,o){var s,l,c,u,h,f=a,d=o;if(d?(f.push(e),d.push(t)):(f=[e],d=[t]),t instanceof Array)for(s=0;s<t.length;s+=1){try{l=e[s],c=t[s]}catch(p){continue}"object"!=typeof c?r&&void 0===c||(e[s]=c):(null!==l&&"object"==typeof l||(l=e[s]=c instanceof Array?[]:{}),-1!==(h=b(c,d))?l=e[s]=f[h]:i(l,c,r,n,f,d))}else for(s in t){try{l=e[s],c=t[s]}catch(p){continue}null!==c&&"object"==typeof c?"[object Object]"===(u=Object.prototype.toString.call(c))?(null!==l&&"object"==typeof l||(l=e[s]={}),-1!==(h=b(c,d))?l=e[s]=f[h]:"data"===s&&c._dataStore?e[s]=n?n(l,c):c:i(l,c,r,n,f,d)):"[object Array]"===u?(null!==l&&l instanceof Array||(l=e[s]=[]),-1!==(h=b(c,d))?l=e[s]=f[h]:i(l,c,r,n,f,d)):e[s]=n?n(l,c):c:e[s]=n?n(l,c):c}return e}(a,t,r,n)),a)},x=function(e){var t=e,r={important:!1,str:""};return t?(t=t.toString(),h.test(t)?(t=t.replace(h,""),r.important=!0):(t=t.replace(f,"!imporant"),r.important=!1),r.str=t,r):r},w=function(e,t){var r=x(e),n=x(t);return r.important&&!n.important?r.str:n.str},_=function(e,t){var r,n,a,i,o,s=t.getAll();for(r in s)n=r.toLowerCase(),a=s[r].toString(),i=x(a),o=x(e[n]),i.important&&!o.important?e[n]=i.str:o.important?e[n]=o.str:void 0===e[n]&&"object"!=typeof s[r]?e[n]="object"!=typeof s[r]?i.str:s[r]:"object"==typeof s[r]&&("undefined"==typeof e[n]&&(e[n]=s[r]),e[n]=y(s[r],e[n],!1,w))},S=function N(e,t){for(var r,n,a,i,o,s,c,u,h,f,d=0,m=0,v=function(e,t){for(var r,n,a=[].concat(Object.keys(e)),i=l(t.themeArray);!(n=i()).done;)r=n.value,a.push.apply(a,Object.keys(r));return Array.from(new Set(a))}(e,t),b=l(v);!(f=b()).done;)if(void 0===(n=e[r=f.value])&&(n=e[r]={}),u="timeseries"===t.type&&t.themeComponents[r]&&p(t.themeComponents[r]),n instanceof Array&&!u)for(s=n.length,o=0;o<s;o+=1)"object"==typeof(i=n[o])&&("category"===r?"true"===i.vline?(a=t.component("vline",d,i))&&(_(i,a),d+=1):(a=t.component("category",m,i,s))&&(_(i,a),m+=1):(a=t.component(r,o,i,s))&&(_(i,a),N(i,a)));else if("object"==typeof n)if(u)if(h=(a=t.component(r,null,n)).getAll(),e[r]=h,/^\d+$/.test(Object.keys(h).join("")))for(h=g(h),e[r]=h,c=0;c<e[r].length;c++)N(e[r][c],a);else N(n,a);else(a=t.component(r,null,n))&&(_(n,a),N(n,a))},C=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.configure=function(){!this.config.themeStore&&(this.config.themeStore={})},r.add=function(e){for(var t,r=0,n=e.length;r<n;r+=1)(t=e[r].name)&&(this.config.themeStore[t]=e[r])},r.themify=function(e,r,n,a,i){var l,c,u=r.jsVars,h=e.split(","),f=[],d=h.length;if(this.config.themeStore=v((0,o.getDepsByType)("theme")),d){for(c=0;c<d;c+=1)(l=this.config.themeStore[m(h[c])])&&f.push(t.evaluateThemeJSON(l.theme,r,n,i));f.length?(u.themeObject=new k(f,r,!1,a,n),t.applyTheme(r)):(0,s.raiseWarning)(r,"14051100501","run","api.themes~themify()",'The theme "'+e+'" requested has not been registered.')}},t.evaluateThemeJSON=function(e,t,r,n){var a,i,o={},s=t.jsVars,l=r,c=function(e){var t,r;for(t in e)r=e[t],o[t]=r instanceof Array?y(o[t]||[],r):"object"==typeof r?y(o[t]||{},r):r};return l=l||t.chartType(),s.themeObject&&e!==s.themeObject&&(s.themeObject.dispose(),delete s.themeObject),c(d(e,"base")),n&&(a=d(e,n)),a&&c(a),l&&(i=d(e,l)),i&&c(i),o},t.applyTheme=function(e){var t=e.jsVars.themeObject,r=t.getThemedJSONData().data;r&&S(r,t)},t}(i.ComponentInterface),k=function(e){function t(t,r,n,a,i){var o,s,l=0;for((o=e.call(this)||this).themeArray=t,o.themeComponents={},o.base={},o.type=i,o.chartInstance=r,o.isChildInstance=Boolean(n),o.themedData=n?null:a,o.length=t.length,s=t.length;l<s;l+=1)o.parse(t[l]);return o}(0,a["default"])(t,e);var r=t.prototype;return r.pushTheme=function(e,t){void 0===t&&(t=!1),e&&(this.themeArray.push(e),this.parse(e,t),this.length+=1)},r.parse=function(e,t){var r,n;if(e instanceof Array)for(r=e.length,n=0;n<r;n++)this._parseSubBlock(e[n],t);else this._parseSubBlock(e,t)},r._parseSubBlock=function(e,r){var n,a,i,o,s=this,l=s.base,c=s.type,u=s.themeComponents,h=s.chartInstance,f=s.isChildInstance;for(n in e)"string"==typeof e[n]||"number"==typeof e[n]?l[n]?(a=x(e[n]),i=x(l[n]),!a.important&&i.important||(l[n]=e[n])):l[n]=e[n]:"timeseries"===c&&f?e[n]instanceof Array&&"palettecolors"!==n&&!r?(u[n]||(u[n]=[]),u[n].push(y([],e[n]))):("object"==typeof e[n]||r)&&(l[n]=e[n]):(u[n]||(u[n]=[]),o=u[n],e[n]instanceof Array?o.push(y([],e[n])):"object"==typeof e[n]?o.push(new t([e[n]],h,!0,{},c)):"function"==typeof e[n]&&o.push(e[n]))},r.mergeWithThemeInstance=function(e){var t,r,n,a=this.base,i=e.base,o=this.themeComponents,s=e.themeComponents;for(n in i)t=x(a[n]),r=x(i[n]),t.important&&!r.important||(a[n]=i[n]);for(n in s)o[n]?o[n]=o[n].concat(s[n]):o[n]=[].concat(s[n]);this.length+=e.length},r.get=function(e){return this.base[e]},r.getAll=function(){return y({},this.base)},r.component=function(e,r,n,a){var i,o,s,l,c=this.chartInstance,u=new t([],c,!0,{},this.type);if(!(s=this.themeComponents[e]))return null;for(i=0,o=s.length;i<o;i+=1)"function"==typeof(l=s[i])?"timeseries"!==this.type?u.mergeWithThemeData(l.call(c,r,n,a),r||0,n):u.mergeWithThemeData(l.call(c,n),r,n,!0):u.mergeWithThemeData(l,r,n);return u},r.mergeWithThemeData=function(e,r,n,a){void 0===a&&(a=!1);var i,o=this,s=r;e instanceof Array?(s=s||0,(i=e[s%=e.length])instanceof t?o.mergeWithThemeInstance(i):"function"==typeof i?o.pushTheme(i.call(parent,s,n,length),a):o.pushTheme(i,a)):e instanceof t?o.mergeWithThemeInstance(e):o.pushTheme(e,a)},r.getThemedJSONData=function(){return{data:this.themedData}},r.dispose=function(){var e,t,r=this,n=r.themeComponents;for(e in n)if(t=n[e].length){for(;t--;)n[e][t].dispose&&n[e][t].dispose();delete n[e]}r.themeComponents=null,r.chartInstance=null,r.base=null,r.themeArray=null,r.isChildInstance=null,r.dataWithoutTheme=null},t}(i.ComponentInterface);(u=new C).configure();var A={extension:function(e){e.addEventListener("internal.dataSanitized",(function(t){var r,n,a,i=t.sender,s=i.getFromEnv("chartInstance"),l=v((0,o.getDepsByType)("theme")),c=i.getFromEnv("dataSource"),h=e.options.defaultTheme,f=c&&(c.chart&&c.chart.theme||c.map&&c.map.theme),d=(h||f)&&(h||"")+","+(f||""),p=d&&d.split(","),g=p&&p.length,b=!1;for(n=0;n<g;n++)a=m(p[n]),l&&""!==a&&l.hasOwnProperty(a)&&(b=!0);b?(c=y({},i.getFromEnv("dataSource")),r=s.chartType(),c.map&&(c.chart=c.map,delete c.map),u.themify(d,s,r,c,"geo"===s.apiInstance.defaultSeriesType&&"geo"),i.addToEnv("dataSource",c)):s.jsVars&&s.jsVars.themeObject&&(s.jsVars&&s.jsVars.themeObject.dispose(),s.jsVars&&delete s.jsVars.themeObject)}))},name:"ThemeEngine",type:"extension",requiresFusionCharts:!0};t["default"]=A},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(254),a={extension:{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(e){return{showLabel:e%2?0:1}},vline:{color:"#000000",thickness:2}}],dataset:[{color:"#8C3146",data:function(e,t){return 8===e&&(t.value=n.BLANKSTRING),{color:Number(t.value)<32e3?"#8C3146":"#FF0000",alpha:"100"}}}],trendlines:[{line:function(e){return e?{color:"#ff0000",thickness:3}:{color:"#ffff00",thickness:3}}}]},pie2d:{chart:{bgColor:"#FF0000"}},msline:{chart:{canvasBgColor:"#ff0000"}},geo:{chart:{canvasBgColor:"#0000ff"}},world:{chart:{canvasBgColor:"#00ff00"}}}},name:"DefaultTheme",type:"theme"};
/** !
 * @license FusionCharts JavaScript Library
 * Copyright FusionCharts, Inc.
 * License Information at <http://www.fusioncharts.com/license>
 */t["default"]=a},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a,i=r(254),o=n(r(348)),s=r(266),l=/^#?[0-9a-f]{6}/i,c=/FFFFFF/i,u=/255,255,255/,h=function(e){var t=e.replace("rgba(","").split(",");return"#"+("000000"+(t[0]<<16|t[1]<<8|t[2]).toString(16)).slice(-6)},f=function(e,t){var r,n,a=[];if("number"==typeof e)return t;for(n=e.split&&e.split(","),r=0;r<n.length;r++)a.push(t);return a.join()},d=function(e){var t;return/rgb/.test(e)?(t=e.match(/[\d\.]+\)/g),parseFloat(t&&t[0])):e.FCcolor?(0,i.getFirstAlpha)(e.FCcolor.alpha):void 0},p=function(e){e.forEach((function(e){return function t(e){e.removeStateCosmetics("highlight",t)}(e)}))},g=function(e,t,r,n,a){var o,s,l,c,u,f;o=h(n.color),l=100*d(n.color),s=a?(0,i.pluck)(r.valuefontcolor,o):o,c=a?(0,i.pluck)(r.valuefontalpha,r.alpha,l):l,o=""===n.backgroundColor?"":h(n.backgroundColor),l=""===n.backgroundColor?0:100*d(n.backgroundColor),isNaN(l)&&(l=0),u=(0,i.toRaphaelColor)({color:a?(0,i.pluck)(r.valuebgcolor,o):o,alpha:a?(0,i.pluck)(r.valuebgalpha,r.alpha,l):l}),o=""===n.borderColor?"":h(n.borderColor),l=""===n.borderColor?"":100*d(n.borderColor),isNaN(l)&&(l=0),f=(0,i.toRaphaelColor)({color:a?(0,i.pluck)(r.valuebordercolor,o):o,alpha:a?(0,i.pluck)(r.valueborderalpha,r.alpha,l):l}),t&&e.setAnimation({el:t,label:"highlightedDataLabel",attr:{fill:(0,i.toRaphaelColor)({color:s,alpha:c}),"text-bound":[u,f,n.borderThickness,n.borderPadding,n.borderRadius,n.borderDash]}})},m=function(e){var t,r,n,a,i,o=e.split(","),s={};for(t=0,r=o.length;t<r;t++)a=(n=o[t].split("="))[0],i=n[1],s[a]=i;return s},v=function(e,t,r){var n,a,o=t.color;return/rgb/.test(e)?(n=(0,i.pluck)(t.alpha,100*d(e)),/rgb/.test(o)&&(o=h(o)),a=r?(0,i.toRaphaelColor)({color:(0,i.pluck)(o,h(e)),alpha:n}):e):e.FCcolor?a=r?(0,i.toRaphaelColor)(function(e,t){var r,n,a={};for(r in e)"alpha"===r?a[r]=t.alpha?f(e[r],t.alpha):e[r]:"color"===r?(-1!==e[r].indexOf(",")&&t.color&&(n=t.color+","+e[r].substring(e[r].indexOf(",")+1)),a[r]=(0,i.pluck)(n||t.color,e[r])):a[r]=e[r];return a}(e.FCcolor,t)):(0,i.toRaphaelColor)(e.FCcolor):l.test(e.color||e)&&(a=r?(0,i.toRaphaelColor)({color:(0,i.pluck)(t.color,e.color,e),alpha:(0,i.pluck)(t.alpha,e.alpha)}):(0,i.toRaphaelColor)({color:e.color||e,alpha:e.alpha})),a},b=function(e,t,r,n,a,o){var s,l,c,u,f,p,g,m,b={},y={};a?(s=(0,i.getColumnColor)(n.color||r.upperColorArr[0].FCcolor.color,n.alpha.toString(),r.upperColorArr[0].FCcolor.ratio,r.upperColorArr[0].FCcolor.angle,o,n.bordercolor||h(r.upperBoxBorder.color),n.borderalpha&&n.borderalpha.toString()||(100*d(r.lowerBoxBorder.color)).toString()),y=(0,i.toRaphaelColor)(s[0]),l=(0,i.getColumnColor)(n.color||r.lowerColorArr[0].FCcolor.color,n.alpha.toString(),r.lowerColorArr[0].FCcolor.ratio,r.lowerColorArr[0].FCcolor.angle,o,n.bordercolor||h(r.lowerBoxBorder.color),n.borderalpha&&n.borderalpha.toString()||(100*d(r.lowerBoxBorder.color)).toString()),b=(0,i.toRaphaelColor)(l[0]),c=v(r.median.color,n,a),p=v(r.lowerQuartile.color,n,a),g=v(r.upperQuartile.color,n,a)):(y=(0,i.toRaphaelColor)(r.upperColorArr[0]),b=(0,i.toRaphaelColor)(r.lowerColorArr[0]),c=r.median.color,u=r.upperBoxBorder.color,f=r.lowerBoxBorder.color,g=r.upperQuartile.color,p=r.lowerQuartile.color),m=t.upperBoxElem,e.setAnimation({el:m,label:"highlightedBoxAnsWhiskerPlot",attr:{fill:y,"drop-shadow":m.attrs["drop-shadow"]&&"none"!==m.attrs["drop-shadow"]?[1,1,3,"rgba(64,64,64,"+d(y)+")",m.attrs[4],m.attrs["drop-shadow"][5]]:"none"}}),m=t.lowerBoxElem,e.setAnimation({el:m,label:"highlightedBoxAnsWhiskerPlot",attr:{fill:b,"drop-shadow":m.attrs["drop-shadow"]&&"none"!==m.attrs["drop-shadow"]?[1,1,3,"rgba(64,64,64,"+d(b)+")",m.attrs[4],m.attrs["drop-shadow"][5]]:"none"}}),m=t.lowerBoxBorderEle,e.setAnimation({el:m,label:"highlightedBoxAnsWhiskerPlot",attr:{stroke:f}}),t.upperBoxBorderEle&&e.setAnimation({el:t.upperBoxBorderEle,label:"highlightedBoxAnsWhiskerPlot",attr:{stroke:u}}),t.lowerQuartileEle&&e.setAnimation({el:t.lowerQuartileEle,label:"highlightedBoxAnsWhiskerPlot",attr:{stroke:p}}),t.upperQuartileEl&&e.setAnimation({el:t.upperQuartileEl,label:"highlightedBoxAnsWhiskerPlot",attr:{stroke:g}}),t.midLineElem&&e.setAnimation({el:t.midLineElem,label:"highlightedBoxAnsWhiskerPlot",attr:{stroke:c}})},y=function(e,t,r){var n,a,o,s,l,c,u,h,f,d=e.getFromEnv("chart"),p=e.getFromEnv("animationManager"),m=(d.config,d.config.dataLabelStyle),v=e._configureDataLabelStyle(),b=e.components.data;for(m.backgroundColor=""!==(null==v?void 0:v.backgroundColor)?v.backgroundColor:m.backgroundColor,m.color=""!==(null==v?void 0:v.color)?v.color:m.color,m.borderColor=""!==(null==v?void 0:v.borderColor)?v.borderColor:m.borderColor,n=0,a=b.length;n<a;n++)if(u=b[n])for(c in o=u.graphics,f=(s=u.config.anchorProps).enabled,l={fillColor:{FCcolor:{alpha:r&&f?(0,i.pluck)(t.anchorbgalpha,t.alpha,s.bgAlpha):s.bgAlpha,color:r&&f?(0,i.pluck)(t.anchorbgcolor,t.color,s.bgColor):s.bgColor}},borderColor:{FCcolor:{alpha:r&&f?(0,i.pluck)(t.borderalpha,t.alpha,s.borderAlpha):s.borderAlpha,color:r&&f?(0,i.pluck)(t.anchorbordercolor,t.color,s.borderColor):s.borderColor}},imageAlpha:r?t.alpha:s.imageAlpha,imageScale:s.imageScale},o)switch((h=!c.match(/error/gi)&&o[c])&&h.type){case"path":p.setAnimation({el:h,label:"highlightedAnchorPlot",attr:{fill:(0,i.toRaphaelColor)(l.fillColor),stroke:(0,i.toRaphaelColor)(l.borderColor)}});break;case"image":p.setAnimation({el:h,label:"highlightedAnchorImagePlot",attr:{opacity:l.imageAlpha/100}});break;case"text":g(p,h,t,m,r)}},x=function(e,t,r,n,a){var o,s=e.getStateCosmetics("default").symbol||{},f=s.fill,d=s.stroke,p=a?(0,i.pluck)(n.color,h(r.text.fill)):h(r.text.fill),g=t.legendItemLine,m=r.symbol.stroke,b=e.getFromEnv("animationManager");g&&m&&(l.test(m)?b.setAnimation({el:g,label:"highlightedLegendItem",attr:{stroke:a?(0,i.toRaphaelColor)({color:(0,i.pluck)(n.color,m),alpha:n.alpha}):m}}):(o=v(m,n,a),b.setAnimation({el:g,label:"highlightedLegendItem",attr:{stroke:o}}))),f&&(f=f.match(l)?a&&!c.test(f)?(0,i.toRaphaelColor)({color:n.color||f,alpha:n.alpha}):f:u.test(f)?f:v(f,n,a)),d&&(d=l.test(d)?a&&!c.test(d)?(0,i.toRaphaelColor)({color:n.color||d,alpha:n.alpha}):d:a&&!u.test(d)&&n.color?(0,i.toRaphaelColor)({color:n.color,alpha:n.alpha}):d),e.setStateCosmetics("highlight",{symbol:{fill:f||"none",stroke:d||"none",opacity:(a?n.alpha:100)/100},text:{fill:(0,i.toRaphaelColor)({color:p,alpha:a?n.alpha:100})}}),e.hasState("hidden")||e.setLegendState("highlight",!0)},w=function(e,t){var r=e.getFromEnv("legend").getItem(t);return r&&r.getGraphicalElement()},_={area:function(e,t,r){var n,a,o,s,l,c,u,h,f,p,g,v,b,_,S,C=this,k=C.getFromEnv("chart"),A=C.getFromEnv("animationManager"),N=k.getFromEnv("legend").getChildren("legendItem")||[],E=arguments[4],L=N.length,M=m(e),F=w(k,E),T=k.config.dataLabelStyle,D=C.getContainer("labelGroup"),I=C.config,O=I.shadow||{},P=O.opacity>0;if(!r&&C.getState("visible")){for(M.alpha=M.alpha||30,a=0;a<L&&(n=N[a]||{}).getId()!==E;a++);D&&A.setAnimation({el:D,label:"highlightedGroup",attr:{opacity:t?M.alpha/100:d(T.color)}}),s=I.plotbordercolor,f=I.plotborderalpha,_=I.plotfillalpha,o=I.plotgradientcolor,v=C.getGraphicalElement("lineElement")||C.getGraphicalElement("splineElement"),u=t?(0,i.pluck)(M.bordercolor,M.color,s):s,M.color&&(p=M.color+(o?","+o:"")),g=I.fillColor.color,l=t?(0,i.pluck)(p,g):g,b=I.plotfillangle,c=t?M.alpha:_,h=t?(0,i.pluck)(M.borderalpha,M.alpha):f,S=!!P&&(t?M.alpha/100:c/100),A.setAnimation({el:v,label:"highlightedAreaPlot",attr:{fill:(0,i.toRaphaelColor)({color:l,alpha:c,angle:b}),stroke:(0,i.toRaphaelColor)({color:u,alpha:h})}}),v.shadow(S),F&&x(n,F,n.parseLegendCosmetics(),M,t),y(C,M,t)}},bubble:function(e,t,r){var n,a,o,s,l,c,u,h,f,p,v,b,y=this,_=y.getFromEnv("chart"),S=y.getFromEnv("animationManager"),C=_.getFromEnv("legend").getChildren("legendItem")||[],k=C.length,A=arguments[4],N=_.config.dataLabelStyle,E=y.getContainer("labelGroup"),L=m(e);if(!1===r&&y.getState("visible")){for(L.alpha||(L.alpha=30),o=y.components.data||[],a=0;a<k&&(n=C[a]||{}).getId()!==A;a++);for(x(n,w(_,A),n.parseLegendCosmetics(),L,t),E&&S.setAnimation({el:E,label:"highlightedGroup",attr:{opacity:t?L.alpha/100:d(N.color)}}),a=0,k=o.length;a<k;a++)(s=o[a])&&(v=s.graphics,c=(l=s.config).colorObj,h=l.is3D,u=v.element,b=v.label,h?(p=t?(0,i.getPointColor)((0,i.pluck)(L.color,c.FCcolor.color),(0,i.pluck)(L.alpha,(0,i.getFirstAlpha)(c.alpha))):c,p=(0,i.toRaphaelColor)(p)):(p=t?(0,i.pluck)(L.color,c.color):c.color,f=t?L.alpha:c.alpha,p=(0,i.toRaphaelColor)({color:p,alpha:f})),u&&S.setAnimation({el:u,label:"highlightedBubblePlot",attr:{fill:p}}),b&&g(S,b,L,N,t))}},pie:function(e,t,r,n){var a,s,l,c,u,h,f,p,v,b,y,_,S,C,k=this,A=n.getFromEnv("chart"),N=n.getFromEnv("animationManager"),E=this,L={},M=arguments[4],F=A.getFromEnv("legend").getChildren("legendItem")||[],T=m(e);if(!1===r){for(T.alpha||(T.alpha=30),s=k.graphics.element,l=k.config,y=0,b=F.length;y<b&&(S=F[y]).getId()!==M;y++);_=w(A,M),x(S,_,S.parseLegendCosmetics(),T,t),u=l.color.color,A=(E=s.data("plotItem")).chart,a=E.style,c=90,f=A.config.is3D,(h=E.center)&&(L={cx:h[0],cy:h[1],r:E.radius}),u=t?(0,o["default"])((0,i.pluck)(T.color,u),T.alpha,c):l.color,C=t?T.alpha:u.alpha,u=(0,i.extend2)(u,L),f?s&&N.setAnimation({el:s,label:"highlightedPiePlot",attr:{color:u.color.split(",")[0],alpha:C}}):s&&N.setAnimation({el:s,label:"highlightedPiePlot",attr:{fill:(0,i.toRaphaelColor)(u)}}),p=k.graphics.label,v=k.graphics.connector,p&&g(N,p,T,a,t),v&&N.setAnimation({el:v,label:"highlightedPieConnectorPlot",attr:{opacity:t?T.alpha/100:d(a.color)}})}},line:function(e,t,r){var n,a,o,s,l,c,u,h=this,f=h.getFromEnv("chart"),p=h.getFromEnv("animationManager"),g=f.getFromEnv("legend").getChildren("legendItem")||[],v=g.length,b=arguments[4],_=f.config.dataLabelStyle,S=m(e),C=w(f,b),k=h.getContainer("labelGroup"),A=h.getContainer("errorPlotGroup"),N=h.config,E=N.linecolor,L=N.alpha||N.lineAlpha,M=N.shadow||{},F=M.opacity>0,T=h.config.lineOb,D="";if(!r&&h.getState("visible")){for(S.alpha||(S.alpha=30),l=0;l<v&&(n=g[l]||{}).getId()!==b;l++);if(A&&(a=N.errorBarColor&&d(N.errorBarColor),o=t?(0,i.pluck)(S.alpha/100,a):a,p.setAnimation({el:A,label:"highlightedGroup",attr:{opacity:o}})),k&&p.setAnimation({el:k,label:"highlightedGroup",attr:{opacity:t?S.alpha/100:d(_.color)}}),s=h.getGraphicalElement("lineElement"),E=t?(0,i.pluck)(S.color,E):E,L=t?(0,i.pluck)(S.alpha,L):L,c=!!F&&(t?S.alpha/100:L/100),s&&p.setAnimation({el:s,label:"highlightedLinePlot",attr:{stroke:(0,i.toRaphaelColor)({color:E,alpha:L})}}),s&&s.shadow(c),"object"==typeof T&&T)for(D in T)(u=T[D]&&T[D].el)&&p.setAnimation({el:u,label:"highlightedLinePlot",attr:{stroke:t?E:T[D].attr.stroke,"stroke-opacity":L/100}}),u&&u.shadow(c);C&&x(n,C,n.parseLegendCosmetics(),S,t),y(h,S,t)}},boxandwhisker2d:function(e,t,r){var n,a,i,o,s,l,c=this,u=c.getFromEnv("chart"),h=c.getFromEnv("animationManager"),f=c.config.isRoundEdges,d=arguments[4],p=w(u,d),g=c.getContainer("lowerWhiskerGroup"),v=c.getContainer("upperWhiskerGroup"),y=c.getContainer("labelGroup"),_=u.getFromEnv("legend").getChildren("legendItem")||[],S=_.length,C=m(e);if(!1===r&&c.getState("visible")){for(C.alpha||(C.alpha=30),n=0;n<S&&(a=_[n]||{}).getId()!==d;n++);for(x(a,p,a.parseLegendCosmetics(),C,t),g&&h.setAnimation({el:g,label:"highlightedGroup",attr:{opacity:t?C.alpha/100:1}}),v&&h.setAnimation({el:v,label:"highlightedGroup",attr:{opacity:t?C.alpha/100:1}}),y&&h.setAnimation({el:y,label:"highlightedGroup",attr:{opacity:t?C.alpha/100:1}}),n=0,S=(l=c.components.data).length;n<S;n++)s=(o=l[n]).config,i=o.graphics,b(h,i,s,C,t,f)}},heatmap:function(e,t,r,n){var a,o,s,l,c,u,f,p,v,b,y,_=this,S=n.getFromEnv("chart"),C=n.getFromEnv("animationManager"),k=S.config,A=k.dataLabelStyle,N=S.getFromEnv("legend"),E=arguments[4],L=m(e),M=N.getChildren("legendItem")||[];if(!r&&n.getState("visible")&&!1!==_.visible){for(L.alpha||(L.alpha=t?30:100),k=_.config,v=0,p=M.length;v<p&&(y=M[v]).getId()!==E;v++);for(u in b=w(S,E),x(y,b,y.parseLegendCosmetics(),L,t),c=h(k.color),l=d(k.color),a=t?(0,i.pluck)(L.color,c):c,o=t?L.alpha:100*l,(s=(f=_.graphics).element)&&C.setAnimation({el:s,label:"highlightedHeatmapPlot",attr:{fill:(0,i.toRaphaelColor)({color:a,alpha:o})}}),f)"text"===(s=f[u]).type&&g(C,s,L,A,t)}},funnelpyramid:function(e,t,r,n){var a,o,s,l,c,u,f,p,v,b,y,_,S,C,k,A=this,N=n.getFromEnv("chart"),E=n.getFromEnv("animationManager"),L=m(e),M=N.getFromEnv("legend").getChildren("legendItem")||[],F=arguments[4];if(!1===r){for(L.alpha||(L.alpha=30),l=A,S=0,_=M.length;S<_&&(k=M[S]).getId()!==F;S++);C=w(N,F),x(k,C,k.parseLegendCosmetics(),L,t),o=l.style,y=l.color,c=h(y),b=d(y),u=t?(0,i.pluck)(L.color,c):c,f=t?L.alpha:100*b,s=A.getGraphicalElement("graphic"),p=A.getGraphicalElement("dataLabel"),v=A.getGraphicalElement("connector"),a=A.style,s&&E.setAnimation({el:s,label:"highlightedFunnelPyramidPlot",attr:{fill:(0,i.toRaphaelColor)({color:u,alpha:f})}}),p&&g(E,p,L,a,t),v&&E.setAnimation({el:v,label:"highlightedFunnelPyramidConnectorPlot",attr:{opacity:t?L.alpha/100:d(o.color)}})}},sankey:function(e,t,r){var n,a,i=e.getLinkedParent(),o=i.getChildren("legend")[0];e.getChildren("nodes").forEach((function(e){n=o.getItem(e.config.legendItemId),e.config.legendItemId===t?(r?e.onFocusCallback():e.onFocusOutCallback(),a=!1):a=!0,a=a&&r,x(n,w(i,t),n.parseLegendCosmetics(),{alpha:30},a)}))},radialbar:function(e,t,r){var n=m(e),a=this.getFromEnv("legend").getItem(this.config.legendItemId),o=parseInt(n.alpha,10)/100*(this.config.realBarAlpha||this.config.baralpha),s=parseInt(n.alpha,10)/100*(this.config.realBarBorderAlpha||this.config.barborderalpha);x(a,w(this.getLinkedParent(),this.config.legendItemId),a.parseLegendCosmetics(),n,t&&!r),this.config.realBarAlpha=this.config.realBarAlpha||this.config.baralpha,this.config.realBarBorderAlpha=this.config.realBarBorderAlpha||this.config.barborderalpha,this.config.realColor=this.config.realColor||this.config.color,this.config.realBarBorderColor=this.config.realBarBorderColor||this.config.barbordercolor,this.config.realBorderAlpha=this.config.realBorderAlpha||this.config.borderalpha,t&&!r?this.setData({baralpha:isNaN(o)?.25:o,barborderalpha:isNaN(s)?.25:s,color:n&&n.color?(0,i.toRaphaelColor)(n.color):this.config.color,barbordercolor:n&&n.bordercolor?(0,i.toRaphaelColor)(n.bordercolor):this.config.bordercolor,borderalpha:n&&n.borderalpha?n.borderalpha:this.config.borderalpha},!0):(this.setData({baralpha:this.config.realBarAlpha,barborderalpha:this.config.realBarBorderAlpha,color:this.config.realColor,barbordercolor:this.config.realBarBorderColor,borderalpha:this.config.realBorderAlpha},!0),p([a]))},"default":function(e,t,r){var n,a,o,s,l,c,u,h,f,p,v,b,y,_,S,C=this,k=C.config,A=C.getFromEnv("chart"),N=C.getFromEnv("animationManager"),E=A.config,L=E.dataLabelStyle,M=E.useroundedges,F=A.config.is3D,T=m(e),D=arguments[4],I=w(A,D),O=C.getContainer("labelGroup"),P=C.getContainer("errorPlotGroup"),R="",j=A.getFromEnv("legend"),B=j.getChildren("legendItem")||[],V=B.length,z=k.showShadow;if(!1===r&&!0===C.getState("visible")){for(T.alpha||(T.alpha="30"),v=C.components.data||[],a=0;a<V&&(_=B[a]||{}).getId()!==D;a++);for(I&&x(_,I,_.parseLegendCosmetics(),T,t),O&&N.setAnimation({el:O,label:"highlightedGroup",attr:{opacity:t?T.alpha/100:d(L.color)}}),P&&(l=k.errorBarColor&&d(k.errorBarColor),c=t?(0,i.pluck)(T.alpha/100,l):l,N.setAnimation({el:P,label:"highlightedGroup",attr:{opacity:c}})),a=0,V=v.length;a<V;a++)(b=v[a])&&b.graphics&&(p=(E=b.config).colorArr[0],S=(o=E.colorArr[1]).FCcolor.alpha,R=-1!==(h=(n=p.FCcolor.color).indexOf(","))&&T.color?T.color+n.substring(h):(0,i.pluck)(T.color,n),f=F?S:(0,i.pluck)(T.borderalpha,T.alpha,S),0===(0,i.pluckNumber)(S)&&(f="0"),u=t?(0,i.getColumnColor)(R,T.alpha,p.FCcolor.ratio,p.FCcolor.angle,M,(0,i.pluck)(T.bordercolor,o.FCcolor.color),f,!1,F):[p,o],(s=b.graphics.element)&&(n=(0,i.toRaphaelColor)(u[0]),o=(0,i.toRaphaelColor)(u[1]),N.setAnimation({el:s,label:"highlightedDefaultPlot",attr:{stroke:o,fill:n}}),s.shadow({opacity:z?(0,i.getFirstAlpha)(u[0].alpha)/100:0})),y=b.graphics.label,g(N,y,T,L,t))}}},S=function(e,t){var r=e.sender.apiInstance;!1!==r.hasInteractiveLegend&&!1!==r.highlightEnabled&&a.applyEffect(r,t,!0,!1)},C=function(e,t){var r=e.sender.apiInstance;!1!==r.hasInteractiveLegend&&!1!==r.highlightEnabled&&a.applyEffect(r,t,!1,!0)},k=function(e,t){var r=e.sender.apiInstance;r.addJob("plothighlighteffect",(function(){r.config.showLegend&&!1!==r.hasInteractiveLegend&&!1!==r.highlightEnabled&&a.applyEffect(r,t,!0,!0)}),s.priorityList.postRender)};var A={extension:function(e){var t;(a=new(function(){function t(){this.effectStore={},this.eventHandlers={}}var r=t.prototype;return r.add=function(e){this.effectStore[e.name]=e},r.attachEventHandlers=function(t,r){this.eventHandlers[t]||(this.eventHandlers[t]={},this.eventHandlers[t].listenerFn=e.addEventListener(t,r))},r.applyEffect=function(e,t,r,n){if(t.visible||n||"sankey"===e.getName()||"RadialBar"===e.getName()){var a,o,s,l,c,u,h,f,d,g,m,v,b=this.effectStore,y=e.getFromEnv("chart-attrib"),x=e.config.defaultDatasetType,w=y.plothighlighteffect&&y.plothighlighteffect.toLowerCase(),_=e.getDatasets(),S=e.config.isSingleSeries?_[0].components.data:_,C=(0,i.pluck)(t.itemId,t.legendItemId,t.legendItemIndex),k="";if(p(e.getFromEnv("legend").getChildren("legendItem")),"funnel"===e.getName()||"Pyramid"===e.getName()?S=_[0].getChildren("data"):"RadialBar"===e.getName()&&(S=e.getChildren("plot")),e.getFromEnv("animationManager").setAnimationState("plotHighlighter"),w&&(w=w.replace(/\s+/g,"").split("|"),v=w[0],k=w[1]||""),v&&b[v])if("HeatMap"===e.getName())for(a=e.getFromEnv("colorRange"),m=function(e){var t,r,n=h.getChildren("legendItem"),a=n&&n.length;for(t=0;t<a;++t)if(n[t].config.datasetObj.code===e){r=n[t].getId();break}return r},d=(h=e.getFromEnv("legend")).getItem(C).config.datasetObj,c=0;c<S.length;c++)o=(l=S[c]).config.value,(g=a.getColorObj(o)).outOfRange||(d.code===g.code?b[v][x].call(l,k,r,!0,_[0],C):b[v][x].call(l,k,r,!1,_[0],m(g.code)));else if("sankey"===e.getName())b[v].sankey(_[0],C,r);else if("RadialBar"===e.getName())(h=e.getFromEnv("legend")).getItem(C),S.forEach((function(e){x=(x=e.getName&&e.getName()||x).toLowerCase(),b[v][x].call(e,k,r,e.config.legendItemId===C)}));else for(c=0,f=S.length;c<f;c++)l=S[c],x=(x=l.getName&&l.getName()||x).toLowerCase(),void 0!==(s=(0,i.pluck)(l.config.itemId,l.config.legendItemId))&&(u=s===C,b[v][x]?b[v][x].call(l,k,r,u,_[0],s):b[v]["default"].call(l,k,r,u,_[0],s))}},t}())).attachEventHandlers("legenditemrollover",S),a.attachEventHandlers("legenditemrollout",C),a.attachEventHandlers("legenditemclicked",k),(t={name:"fadeout",area:_.area,radar:_.area,bubble:_.bubble,pie2d:_.pie,line:_.line,spline:_.line,splinearea:_.area,pie3d:_.pie,zoomline:_.line,funnelpoint:_.funnelpyramid,pyramidpoint:_.funnelpyramid,scatter:_.line,selectscatter:_.line,dragline:_.line,dragarea:_.area,realtimearea:_.area,realtimeline:_.line,realtimelinedy:_.line,realtimestackedarea:_.area,errorline:_.line,errorscatter:_.line,stepline:_.line,doughnut2d:_.pie,doughnut3d:_.pie,heatmap:_.heatmap,boxandwhisker2d:_.boxandwhisker2d,multiaxisline:_.line,sankey:_.sankey,radialbarplot:_.radialbar,"default":_["default"]})&&a.add(t)},name:"PlotHighlighter",type:"extension",requiresFusionCharts:!0};t["default"]=A},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(254),a=function(e,t,r,a){var i,o,s,l,c,u,h=(0,n.getFirstColor)(e),f=(0,n.getFirstAlpha)(t);return r<100&&n.hasSVG?a?(c=(0,n.getDarkColor)(h,Math.floor(100*(85-.2*(100-r)))/100),u=(0,n.getLightColor)(h,Math.floor(100*(100-.5*r))/100),i={color:c+n.COMMASTRING+u+n.COMMASTRING+u+n.COMMASTRING+c,alpha:f+n.COMMASTRING+f+n.COMMASTRING+f+n.COMMASTRING+f,radialGradient:!0,gradientUnits:"userSpaceOnUse",r:r}):(o=Math.floor(.85*(100-.35*r)*100)/100,s=(0,n.getDarkColor)(h,o),l=Math.floor(.5*(100+r)*100)/100,i={color:(0,n.getLightColor)(h,l)+n.COMMASTRING+s,alpha:f+n.COMMASTRING+f,ratio:r+","+(100-r),radialGradient:!0,gradientUnits:"userSpaceOnUse"}):i={color:h+n.COMMASTRING+h,alpha:f+n.COMMASTRING+f,ratio:"0,100"},i};t["default"]=a},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(350)),i=r(254),o="__FC_tooltipText",s=function(e,t,r){var n=(0,i.getMouseCoordinate)(t.universe,(0,i.getTouchEvent)(r),t.chart),a=n.chartX,s=n.chartY;a+=11,s+=11,c._draw.call(t,a,s,this.data(o),e)},l=function(e){c._hide(e)},c=function(){function e(t,r){var n=this;n.config={},n.universe=t,this.chart=r,this.restrictWithinCanvas={left:!1,right:!1,top:!1,bottom:!1},n.toolTips={implicit:[],explicit:[]},n.hideImplicitToolTip=function(t){var r=n.lastActiveToolip;r&&t.target!==r.getData("targetElement").node&&(e._hide(r),n.config.lastActiveToolip=i.UNDEF)},n.config.positioningArr=[],n.config.canvasArr=[],t.FusionCharts.jsVars.fcObj.addEventListener("resized",n._updateAllToolTipBounds.bind(n))}var t=e.prototype;return t.setRestrictionWithinCanvas=function(e){void 0===e&&(e={}),Object.assign(this.restrictWithinCanvas,e)},t.getRestrictionWithinCanvas=function(){return this.restrictWithinCanvas},t._updateAllToolTipBounds=function(){var e,t,r=this.config,n=function(t){t.universeBounds&&t.universeBounds.canvas&&(e=r.canvasArr.indexOf(t.universeBounds.canvas)),t.setUniverseBounds(r.positioningArr[e])},a=this.toolTips;for(t in a)a[t].forEach(n)},t._setRelativePosition=function(e){var t=this.config,r=t.canvasArr,n=t.positioningArr,a=r.indexOf(e.canvas);-1===a?(r.push(e.canvas),n.push(e)):(r[a]=e.canvas,n[a]=e)},t._createToolTip=function(e,t){var r,n=this.config;return(r=new a["default"](this.universe,n.positioningArr[n.canvasArr.indexOf(t)])).setRestrictionWithinCanvas(this.restrictWithinCanvas),r.setStyle(this.config.tooltipStyle),this.toolTips[e].push(r),r},t.enableToolTip=function(e,t,r){var n,a,i,c=this,u=c.toolTips.implicit,h=u.length;if(e&&e.abbrArr&&e.abbrArr.length)for(n=0;n<e.abbrArr.length;n++)c.enableToolTip(e.abbrArr[n].el,e.abbrArr[n].title,r);return t?e.data(o)?(h>0&&u.some((function(r){return!(!(a=r).getData("active")||a.data.targetElement!==e)&&(a.show(t),!0)})),e.data(o,t),c):(a=c._getAvailableToolTip("implicit",r),c.disableToolTip(e),e.data(o,t),e.data("__FC_onTooltipMove",s.bind(e,a,c)),e.data("__FC_onTooltipOut",l.bind(e,a)),e.data("__FC_onTooltipOver",(i=e,function(t){c.draw(t,e.data(o),a),a.setData("targetElement",i),c.config.lastActiveToolip=a})),e.on("fc-mousemove",e.data("__FC_onTooltipMove")),e.on("fc-mouseout",e.data("__FC_onTooltipOut")),e.on("fc-mouseover",e.data("__FC_onTooltipOver")),c):(c.disableToolTip(e),c)},t.disableToolTip=function(e){var t=e.data("__FC_onTooltipOut"),r=e.data("__FC_onTooltipMove"),n=e.data("__FC_onTooltipOver");return r&&e.off("fc-mousemove",r),t&&e.off("fc-mouseout",t),n&&e.off("fc-mouseover",n),e.removeData(o),this},t.draw=function(t,r,n,a){var o,s,l=(0,i.getMouseCoordinate)(this.universe,(0,i.getTouchEvent)(t),this.chart),c=n&&!n.disposed?n:this._getAvailableToolTip("explicit",a);return o=l.chartX,s=l.chartY,o+=11,s+=11,e._draw.call(this,o,s,r,c),c},t.drawAt=function(t,r,n,a,i){var o=a&&!a.disposed?a:this._getAvailableToolTip("explicit",i);return e._draw.call(this,t,r,n,o),o},e.removeScriptingMethods=function(e){for(var t=["onerror","onclick","onchange","ondragover","onfocus","ondragleave","onmouseover","onmouseout"],r=[],n=e,a=0;a<t.length;a++){var i=e.indexOf(t[a]);if(-1!==i){var o=-1;if(-1!==(o=-1!==e.indexOf(t[a]+"=&#034;")?e.indexOf("&#034;",i+t[a].length+8)+5:-1!==e.indexOf(t[a]+"=&#039;")?e.indexOf("&#039;",i+t[a].length+8)+5:e.indexOf(")",i))){var s=o-i,l=e.substr(i,s+1);r.push(l)}}}return r.length>0&&r.forEach((function(e){n=n.replace(e,"")})),n},e._draw=function(t,r,n,a){var o,s=this.config,l=this.chart.getFromEnv("chartConfig").tooltipposition;(0,i.isSimilarObject)(a.previousStyle,s.tooltipStyle)||(a.setStyle(s.tooltipStyle),a.previousStyle=Object.assign({},s.tooltipStyle)),o=e.removeScriptingMethods(n),a.show(o),a.update(t,r,l)},t._getAvailableToolTip=function(e,t){for(var r,n=this.toolTips[e],a=0,i=n.length;a<i;a++)if(!1===(r=n[a]).getData("active"))return r;return this._createToolTip(e,t)},t.setStyle=function(e){var t,r=this.config;for(var n in t=r.tooltipStyle={},e)"showToolTipShadow"===n?e[n]?t.boxShadow="1px 1px 3px rgba(64,64,64,0.4)":t.boxShadow="none":t[n]=e[n]},t.hide=function(t){return e._hide(t),this},t.hideAll=function(){var t,r;for(t in this.toolTips)for(r=0;r<this.toolTips[t].length;r++)e._hide(this.toolTips[t][r])},e._hide=function(e,t){e&&(t?e.dispose():e.hide())},e}(),u={extension:c,name:"ToolTipController",type:"plugin"};t["default"]=u},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(254),a="fusioncharts-div",i="#545454",o="3px",s="10px",l="hidden",c="1px",u="#000000",h="nowrap",f="normal",d="absolute",p="solid",g="#ffffff",m="none",v="hidden",b="none",y="left, top",x="auto",w=function(e){var t=e.getBoundingClientRect();return{left:0,top:0,right:t.width||t.right-t.left,bottom:t.height||t.bottom-t.top}},_=function(){function e(e,t){this.text=n.BLANKSTRING,this.x=0,this.y=0,this.visibleWidth=0,this.universe=e,this.setUniverseBounds(t||w(e)),this.data={active:!1,target:!1},this.createElement(e),this.previousStyle={},this.restrictWithinCanvas={left:!1,right:!1,top:!1,bottom:!1}}var t=e.prototype;return t.setUniverseBounds=function(e){this.universeBounds=e||this.universe&&w(this.universe)},t.setRestrictionWithinCanvas=function(e){void 0===e&&(e={}),Object.assign(this.restrictWithinCanvas,e)},t.getRestrictionWithinCanvas=function(){return this.restrictWithinCanvas},t.createElement=function(e){var t=this.element=document.createElement("div");return t.setAttribute("class","fc__tooltip"),t.className+=" "+a,t.innerHTML=this.text,e.appendChild(this.setDefaultStyle()),t},t.setDefaultStyle=function(){var e=this.element;return e.setAttribute("style",""),e.style.color=i,e.style.padding=o,e.style.fontSize=s,e.style.overflow=l,e.style.borderWidth=c,e.style.borderColor=u,e.style.whiteSpace=h,e.style.position=d,e.style.borderStyle=p,e.style.backgroundColor=g,e.style["user-select"]=m,e.style["-ms-user-select"]=m,e.style["-moz-user-select"]=m,e.style["-webkit-user-select"]=m,e.style["-webkit-touch-callout"]=m,e.style.top=this.x+"px",e.style.left=this.y+"px",e.style.visibility=v,e.style["pointer-events"]=b,e},t.setData=function(e,t){this.data[e]=t},t.getData=function(e){return this.data[e]},t.setStyle=function(e){var t,r=this.element.style;for(t in this.setDefaultStyle(),e)r[t]=e[t]},t.show=function(e){var t=e.replace(/&lt;|&gt;|&quot;|&#034;|&#039;/g,(function(e){switch(e){case"&lt;":return"<";case"&gt;":return">";case"&quot;":case"&#034;":return'"';case"&#039;":return"'"}}));this.text!==e&&(this.text=e,this.element.innerHTML=t),this.setData("active",!0),"visible"!==this.element.style.visibility&&(this.element.style.visibility="visible"),this.element.style["will-change"]=y,this.element.style["max-width"]=this.universeBounds.right-this.universeBounds.left-12+"px"},t.update=function(e,t,r){void 0===e&&(e=this.x),void 0===t&&(t=this.y);var n=this.universeBounds,a=(this.restrictWithinCanvas.bottom?n.bottom:this.universe.clientHeight)-12,i=(this.restrictWithinCanvas.right?n.right:this.universe.clientWidth)-12,o=(this.restrictWithinCanvas.left?n.left:0)+12,s=(this.restrictWithinCanvas.top?n.top:0)+12,l=this.element,c=l.offsetWidth,u=l.offsetHeight,d=l.style,p=t-(u+10)>s,g=t+u<a;e+c<i?(d.left=e+"px",d.whiteSpace=h):c<i?e-c>=o?d.left=e-c-12+"px":(d.left=i-c+"px",d.whiteSpace=f):(d.left=n.left+"px",d.whiteSpace=f),d.top="top"===r&&p?t-(u+10)+"px":"bottom"===r&&g||t+u<a?t+"px":u<a&&t-u<=a?t-u+"px":a-u+"px"},t.hide=function(){this.y=0,this.x=0,this.x=n.BLANKSTRING,this.setData("active",!1),this.setData("target",!1),this.element.style.visibility=v,this.element.style["will-change"]=x,this.element.innerHTML=n.BLANKSTRING,this.text=n.UNDEF},t.dispose=function(){this.hide(),this.universe.removeChild(this.element),this.universe=n.UNDEF,this.disposed=!0},e}();t["default"]=_},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(254),a={treemap:!0,scatter:!0,bubble:!0,errorscatter:!0,errorline:!0,errorbar2d:!0,candlestick:!0,stackedcolumn3d:!0,stackedbar3d:!0,mscolumnline3d:!0,mscombi3d:!0,mscolumn3dlinedy:!0,stackedcolumn3dline:!0,stackedcolumn3dlinedy:!0},i=function(e,t){return e+'<div style="margin: 0;">'+t+"</div>"},o=function(e,t){return t.hovered?e+1:e},s=function(e){return e.originalPlotColor||e.plotColor||e.color||"#000000"},l=function(e,t){return t.getJSONIndex()-e.getJSONIndex()};function c(e){var t=e.sender.getFromEnv("chart"),r=t.config.tooltipgrayoutcolor,a=t.config.plotcolorintooltip,c=t.getFromEnv("toolTipController"),u=t.getDatasets().sort(l),h=t.getFromEnv("consolidated-tooltip"),f=(0,n.getMouseCoordinate)(e.sender.getFromEnv("chart-container"),e.originalEvent,t),d=f.chartX,p=f.chartY,g=!1,m=u.map((function(e){return e.getPlotInCategoryAt(d,p)})).filter(Boolean),v=m.reduce(o,0),b=m.map((function(e){var t=e.pointObj.config,i=t.finalTooltext||t.toolText,o=s(t);return v>0?!g&&e.hovered?(i='<div style="display: inline-block;">'+i+"</div>",g=!0):(o=r,i='<div style="color: '+(0,n.hashify)(r)+'; display: inline-block;">'+i+"</div>"):i='<div style="display: inline-block;">'+i+"</div>",a?'<div style="color: '+(0,n.hashify)(o)+'; display: inline-block;">&#9632&nbsp;</div>'+i:i})),y=[].concat(b).reverse().reduce(i,"");this.isWithinCanvas(d,p)&&y?h?c.draw(e.originalEvent,y,h):t.addToEnv("consolidated-tooltip",c.draw(e.originalEvent,y)):h&&c.hide(h)}function u(e){var t=e.sender.getFromEnv("chart"),r=t.getFromEnv("consolidated-tooltip");r&&t.getFromEnv("toolTipController").hide(r)}function h(e){var t=this.apiInstance,r=t.getDatasets().sort(l),a=t.config.plotcolorintooltip,o=t.getFromEnv("toolTipController"),c=t.getFromEnv("consolidated-tooltip"),u=r.map((function(t){var r=t.components.data;return r[e]&&r[e]})).filter(Boolean),h=u[0]&&{x:u[0].config._Px-u[0]._width,y:u[0].config._Py,width:u[0].config._width},f=u.map((function(e){var t=e.config,r=t.finalTooltext||t.toolText;return a?'<div style="color: '+(0,n.hashify)(s(t))+'; display: inline-block;">&#9632&nbsp;</div><div style="display: inline-block;">'+r+"</div>":'<div style="display: inline-block;">'+r+"</div>"})).reduce(i,"");f&&h?c?o.drawAt(h.x,h.y,f,c):t.addToEnv("consolidated-tooltip",o.drawAt(h.x,h.y,f)):c&&o.hide(c)}var f={extension:function(e){e.addEventListener("predraw",(function(e){var t,r;if(e.sender.getType&&"chartAPI"===e.sender.getType()&&(r=e.sender,!a[r.getName().toLowerCase()])){var n=(t=e.sender).getChildren("canvas");t.getFromEnv("chartInstance").drawConsolidatedToolTip=h,n&&n.forEach((function(e){if(!t.config.drawTrendRegion||!t.config.showtooltip)return e.removeEventListener("fc-mouseover",c),e.removeEventListener("fc-mousemove",c),e.removeEventListener("fc-mouseout",u),void e.setState("consolidatedTooltipEventListenerAttached",!1);!e.getState("consolidatedTooltipEventListenerAttached")&&t.config.showtooltip&&(e.addEventListener("fc-mouseover",c),e.addEventListener("fc-mousemove",c),e.addEventListener("fc-mouseout",u),e.setState("consolidatedTooltipEventListenerAttached",!0))}))}}))},name:"ConsolidatedToolTip",type:"extension",requiresFusionCharts:!0};t["default"]=f},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(353)),i=r(254),o=function(e){e.sender.apiInstance.getChildren("alertManager")&&e.sender.apiInstance.getChildren("alertManager")[0].processRTData(e.data)},s=function(e){if("dataset"===e.sender.getType()){var t,r,n=e.sender,a=n.config,o=a.JSONData,s=n.getFromEnv("chart").getChildren("alertManager");if(!s||!o)return;t=(0,i.pluckNumber)(o&&o.checkforalerts,1),(r=(s=s[0]).config||(s.config={})).datasetMap=r.datasetMap||{},r.datasetMap[a.index]=t}},l=function(e){"chartAPI"===e.sender.getType()&&e.sender.registerFactory("alertManager",(function(e){e.getChildren("alertManager")?e.getChildren("alertManager")[0].configure():(0,i.componentFactory)(e.getFromEnv("chart"),a["default"],"alertManager",1,[{}])}))};var c={extension:function(e){e.addEventListener("instantiated",l),e.addEventListener("updateDataReceived",o),e.addEventListener("postConfigure",s)},name:"alertManagerLinker",type:"extension",requiresFusionCharts:!0};t["default"]=c},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=r(254),o=r(270),s=function(e){function t(){var t;return(t=e.call(this)||this).pIndex=1,t.linkedItems={chart:{}},t}(0,a["default"])(t,e);var r=t.prototype;return r.getType=function(){return"extension"},r.getName=function(){return"AlertManager"},r.configure=function(){var e,t,r,n=this.getFromEnv("dataSource"),a=n&&n.alerts&&n.alerts.alert,i=this.getFromEnv("number-formatter"),o=this.config||(this.config={});if(a&&a.length)for(o.alertArr=a,e=a.length,t=0;t<e;t+=1)(r=a[t]).minvalue=i.getCleanValue(r.minvalue),r.maxvalue=i.getCleanValue(r.maxvalue);else o.alertArr=[]},r.processRTData=function(e){var t,r,n,a,i,o,s=this.config,l=this.getFromEnv("number-formatter");if(e&&e.dataset&&e.dataset.length)for(n=e.dataset.length,t=0;t<n;t+=1)if((a=e.dataset[t]).data&&a.data.length){if(s.datasetMap&&0===s.datasetMap[t])continue;for(i=a.data.length,r=0;r<i;r+=1)null!==((o=a.data[r])&&l.getCleanValue(o.value))&&this._doAlert(l.getCleanValue(o.value))}},r._doAlert=function(e){var t,r,n,a=this.getLinkedParent(),o=this.config.alertArr,s=o.length;for(r=0;r<s;r+=1)if(n=(t=o[r]).action&&t.action.toLowerCase(),t.minvalue<=e&&t.maxvalue>=e){if("1"!==t.occuronce||!t.hasOccurred){switch(t.hasOccurred=!0,t.state="1",n){case"calljs":setTimeout((0,i.pseudoEval)(t.param));break;case"showannotation":a.showAnnotation&&a.showAnnotation(t.param)}a.fireChartInstanceEvent("AlertComplete",{alertValue:e,alertMaxValue:t.maxvalue,alertMinValue:t.minvalue})}}else"showannotation"===n&&"1"===t.state&&a.hideAnnotation&&a.hideAnnotation(t.param),t.state="2"},t}(o.ComponentInterface);t["default"]=s},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(355)),i=r(357);var o={extension:function(e){e.addEventListener("preconfigure",(function(e){var t=e.sender,r=t.getFromEnv("chart");i.allowedCharts[r&&r.getName()]&&("dataset"===t.getType()&&"cartesianStackGroup"!==t.getLinkedParent().getName()?(t.setState("applySkippingOnConf",!0),a["default"].dataSkipping({component:t,datasetType:t.getName(),compType:"dataset"})):"cartesianStackGroup"===t.getName()&&(t.setState("applySkippingOnConf",!0),a["default"].dataSkipping({component:t,datasetType:t.getName(),compType:"group"})))})),e.addEventListener("preattributeprepared",(function(e){var t=e.sender.getFromEnv&&e.sender.getFromEnv("chart");if(i.allowedCharts[t&&t.getName()])if("dataset"===e.sender.getType()){var r=e.sender,n=r.getFromEnv("canvasConfig"),o=r.getFromEnv("chart").isBar?n.canvasHeight:n.canvasWidth;"cartesianStackGroup"!==r.getLinkedParent().getName()&&(r.getState("applySkippingOnConf")?r.setState("applySkippingOnConf",!1):a["default"].dataSkipping({component:r,compType:"dataset",datasetType:r.getName(),width:o}))}else if("cartesianStackGroup"===e.sender.getName()){var s=e.sender,l=s.getFromEnv("canvasConfig"),c=s.getFromEnv("chart").isBar?l.canvasHeight:l.canvasWidth,u=Object.keys(s.getChildren())[0];s.getState("applySkippingOnConf")?s.setState("applySkippingOnConf",!1):a["default"].dataSkipping({component:s,compType:"group",datasetType:s.getChildren(u)[0].getName(),width:c})}})),e.addEventListener("dataplotdragend",(function(e,t){if(e.sender.getType&&"dataset"===e.sender.getType()){var r=e.sender,n=r.getSkippingInfo&&r.getSkippingInfo();n&&n.skippingApplied&&a["default"].updateDragMap({component:r,compType:"dataset",evenType:"dataplotdragend",eventArgs:t})}}))},name:"DataSkipping",type:"extension",requiresFusionCharts:!0};t["default"]=o},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(356)),i=r(357),o=r(254),s=[],l=0,c={},u=[];function h(e){return void 0===e&&(e=[]),e.filter((function(e){return!s[e]}))}function f(e,t){for(var r=0,n=[],a=1;a<c.noOfPlotBins;++a)e(r,(r+=c.plotsPerBin)-1,t,u,n);return e(r,t.length-1,t,u,n),u=[],n}function d(e){var t,r,n,o,d,p,g,m=i.filterType[e.datasetType],v=e.component,b=v.getSkippingInfo&&v.getSkippingInfo(),y=b&&b.draw.slice(0),x=b&&(b.labelDraw||[]).slice(0),w={},_=[],S=v.getFromEnv("xAxis").getTicksLen();if((!y||!y.length)&&(void 0===(g=l)&&(g=0),y=Array.from(new Array(g),(function(e,t){return t}))),(!x||!x.length)&&(x=y),u=b&&b.dragHashMap,"cartesianStackGroup"===v.getName()){for(o=c.jsonData.length,t=0;t<S;++t){for(n=0,r=0;r<o;++r)p=c.jsonData[r].data,n+=Number(p[t]?p[t].value:0);_.push({value:n})}w.draw=f((0,a["default"])(m),_)}else w.draw=f((0,a["default"])(m),c.jsonData.data);return w.draw.forEach((function(e){s[e]=!0})),w.drawOnlyMap=s,w.hide=h(y),d=function(e){var t,r=c.labelBinSize/c.plotBinSize,n=[],a=[],i=e.length;for(t=0;t<i;t++)t%r||(n.push(e[t]),a[e[t]]=!0);return{drawableLabelIndices:n,labelHashMap:a}}(w.draw),w.labelDraw=d.drawableLabelIndices,s=w.labelDrawOnlyMap=d.labelHashMap,w.hideLabel=h(x),w.plotsPerBin=c.plotsPerBin,w.skippingApplied=!0,w.dragHashMap=[],w.prevDrawInfo=y.slice(0),w}var p={dataSkipping:function(e){void 0===e&&(e={});var t=e.component;!function(e){void 0===e&&(e={});var t,r,n,a,i,u=e.component,h=e.compType,f=u.getFromEnv("chartConfig"),d=u.getFromEnv("dataSource").chart||{},p=(0,o.pluckNumber)(d.plotbinsize,f.plotbinsize);return c.plotBinSize=p,c.labelBinSize=(0,o.pluckNumber)(d.labelbinsize,f.labelbinsize),c.jsonData=u.config.JSONData,"group"===h?(t=c.jsonData[0].data,l=u.config.stackValues&&u.config.stackValues.length||0):"dataset"===h&&(t=c.jsonData.data,l=u.components.data&&u.components.data.length||0),r=t&&t.length,s=[],c.width=i=u.getFromEnv("chart").isBar?e.height||u.getFromEnv("chartHeight"):e.width||u.getFromEnv("chartWidth"),n=r/i,a=Math.floor(n*p),n>=1.5&&a>1&&(c.plotsPerBin=a,c.noOfPlotBins=Math.ceil(r/c.plotsPerBin),!0)}(e)?t.setSkippingInfo&&t.setSkippingInfo():t.setSkippingInfo&&t.setSkippingInfo(d(e))},updateDragMap:function(e){void 0===e&&(e={});var t=e.component,r=e.eventArgs,n=t.getSkippingInfo&&t.getSkippingInfo()||{};r&&(n.dragHashMap[r.dataIndex]=r.endValue)}};t["default"]=p},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n=function(e,t,r,n,a){void 0===n&&(n=[]);for(var i,o=r[t].value,s=t,l=t-1;l>=e;--l)(i=void 0!==n[l]?n[l]:r[l].value)>o&&(o=i,s=l);return a.push(s),a},a=function(e,t,r,n,a){void 0===n&&(n=[]);for(var i,o=r[t].value,s=t,l=r[t].value,c=t,u=t-1;u>=e;--u)(i=void 0!==n[u]?n[u]:r[u].value)>o?(o=i,s=u):i<l&&(l=i,c=u);var h=c<s?[c,s]:[s,c];return c=h[0],s=h[1],a.push(c),c!==s&&a.push(s),a};t["default"]=function(e){var t={maxOnly:n,minMax:a};return t[e]||t.maxOnly}},function(e,t,r){"use strict";t.__esModule=!0,t.filterType=t.allowedCharts=void 0;t.filterType={Column:"maxOnly",line:"minMax",area:"minMax"},t.allowedCharts={Column2D:!0,Line:!0,Area2D:!0,Bar2D:!0,MSColumn2D:!0,MSLine:!0,MSBar2D:!0,MSArea:!0,StackedColumn2D:!0,StackedBar2D:!0,StackedArea2D:!0,MSStackedColumn2D:!0,MSStackedBar2D:!0,MSCombi2D:!0,StackedColumn2DLine:!0,MSCombidy2D:!0,LogMSColumn2d:!0,LogMSLine:!0,DragColumn:!0,DragLine:!0,DragArea:!0}},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(359)),i=n(r(382)),o=function(e,t){return"groups"!==t&&"items"!==t},s=function(e){var t=e.sender;(function(e){return"chartAPI"===e.getType()})(t)&&t.registerFactory("annotation",(function(e){var t=e.getFromEnv("dataSource").annotations,r=e.getChildren().annotation,n=r&&r[0];delete e.getFromEnv("chartInstance").annotations,t&&(n||(n=new a["default"]((0,i["default"])(o,t)),e.attachChild(n,"annotation"),n.config.drawn=!1),n._rawJSON=t,n.configure(t),e.getFromEnv("chartInstance").annotations=n)}))};var l={extension:function(e){e.addEventListener("instantiated",s)},name:"Annotation",type:"extension",requiresFusionCharts:!0};t["default"]=l},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=r(360),o=r(254),s=r(262),l=n(r(361)),c=n(r(362)),u=n(r(363)),h=n(r(364)),f=r(270),d=["pie2d","doughnut2d"],p=["pie3d","doughnut3d"],g=function(e,t){return e.getJSONIndex()-t.getJSONIndex()},m=function(e,t,r){void 0===t&&(t={}),void 0===r&&(r={});var n,a={};for(var i in a.annotationType="shape",a.id=e.id,a.type=e.type&&e.type.toLowerCase(),a.toolText=(0,o.pluck)(e.tooltext,e.toolText),a.animationLabel=(0,o.pluck)(e.animationlabel,e.animationLabel),a.dashed=e.dashed,a.dashLen=(0,o.pluck)(e.dashlen,e.dashLen),a.dashGap=(0,o.pluck)(e.dashgap,e.dashGap),a.thickness=e.thickness,a.showBorder=(0,o.pluck)(e.showborder,e.showBorder),a.borderColor=(0,o.pluck)(e.bordercolor,e.borderColor),a.borderAlpha=(0,o.pluck)(e.borderalpha,e.borderAlpha),a.borderThickness=(0,o.pluck)(e.borderthickness,e.borderThickness),a.alpha=e.alpha,a.color=e.color,a.fillColor=(0,o.pluck)(e.fillcolor,e.fillColor),a.fontColor=(0,o.pluck)(e.fontcolor,e.fontColor),a.fillAlpha=(0,o.pluck)(e.fillalpha,e.fillAlpha),a.fillAngle=(0,o.pluck)(e.fillangle,e.fillAngle),a.fillRatio=(0,o.pluck)(e.fillratio,e.fillRatio),a.fillPattern=(0,o.pluck)(e.fillpattern,e.fillPattern),a.sides=e.sides,a.radius=e.radius,a.yRadius=(0,o.pluck)(e.yradius,e.yRadius),a.innerRadius=(0,o.pluck)(e.innerradius,e.innerRadius),a.endAngle=(0,o.pluck)(e.endangle,e.endAngle),a.startAngle=(0,o.pluck)(e.startangle,e.startAngle),a.isVisible=!0==(n=e.visible,!(0===parseInt(n,10))),a.x=e.x,a.y=e.y,a.xPos=(0,o.pluck)(e.xpos,e.xPos),a.yPos=(0,o.pluck)(e.ypos,e.yPos),a.toY=(0,o.pluck)(e.toy,e.toY),a.toX=(0,o.pluck)(e.tox,e.toX),a.autoScale=(0,o.pluck)(e.autoscale,e.autoScale),a.path=e.path,a.css=e.css,a.wrap=e.wrap,a.text=e.text!==o.UNDEF&&null!==e.text&&e.text.toString()||o.UNDEF,a.font=(0,o.pluck)(e.font,t.font,r.basefont),a.bold=(0,o.pluck)(e.bold,e.isbold,e.bold,e.isBold),a.label=e.label,a.align=e.align,a.italic=e.italic,a.vAlign=(0,o.pluck)(e.valign,e.vAlign),a.bgColor=(0,o.pluck)(e.bgcolor,e.bgColor),a.fontSize=(0,o.pluck)(e.fontsize,e.fontSize,t.fontSize,r.basefontsize),a.wrapWidth=(0,o.pluck)(e.wrapwidth,e.wrapWidth),a.leftMargin=(0,o.pluck)(e.leftmargin,e.leftMargin),a.rotateText=(0,o.pluck)(e.rotatetext,e.rotateText),a.wrapHeight=(0,o.pluck)(e.wrapheight,e.wrapHeight),a.showShadow=(0,o.pluck)(e.showshadow,e.showShadow),a.link=e.link,a.url=e.url,a.link=e.link,a.width=e.width,a.height=e.height,a.xScale=(0,o.pluck)(e.xscale,e.xScale),a.yScale=(0,o.pluck)(e.yscale,e.yScale),a.onload=e.onload,a.onerror=e.onerror,a.outlineText=(0,o.pluckNumber)(e.outlinetext,e.outlineText,0),"object"==typeof e.component&&(a.component=e.component),a){if(a.hasOwnProperty(i))void 0===a[i]&&delete a[i]}return a},v=function(e,t){return void 0===e&&(e={groups:[]}),void 0===t&&(t={}),(e.groups||[]).map((function(r){var n,a;return n=e,(a=r).css=a.css||n.css,a.autoscale=(0,o.pluck)(a.autoscale,n.autoscale),a.animationLabel=(0,o.pluck)(a.animationLabel,n.animationLabel),a.constrainedscale=(0,o.pluck)(a.constrainedscale,n.constrainedscale),a.scaletext=(0,o.pluck)(a.scaletext,n.scaletext),a.scaleimages=(0,o.pluck)(a.scaleimages,n.scaleimages),a.xshift=(0,o.pluck)(a.xshift,n.xshift),a.yshift=(0,o.pluck)(a.yshift,n.yshift),a.grpxshift=(0,o.pluck)(a.grpxshift,n.grpxshift),a.grpyshift=(0,o.pluck)(a.grpyshift,n.grpyshift),a.origw=(0,o.pluck)(a.origw,n.origw),a.origh=(0,o.pluck)(a.origh,n.origh),a.showbelow=(0,o.pluck)(a.showbelow,n.showbelow,1),a.onAnnotationClick=n.onAnnotationClick,a.onAnnotationRollover=n.onAnnotationRollover,a.onAnnotationRollout=n.onAnnotationRollout,function(e,t){var r={},n=e.items;for(var a in n=e.items=(0,i.arrangeItems)(n),r.annotationType="group",r.id=e.id,r.showBelow="undefined"==typeof e.showbelow||null===e.showbelow?1:Number(e.showbelow),r.x=e.x,r.y=e.y,r.animationLabel=(0,o.pluck)(e.animationlabel,e.animationLabel),r.xPos=(0,o.pluck)(e.xpos,e.xPos),r.yPos=(0,o.pluck)(e.ypos,e.yPos),r.grpXShift=(0,o.pluck)(e.grpxshift,e.grpXShift),r.grpYShift=(0,o.pluck)(e.grpyshift,e.grpYShift),r.xShift=(0,o.pluck)(e.xshift,e.xShift),r.yShift=(0,o.pluck)(e.yshift,e.yShift),r.color=e.color,r.alpha=e.alpha,r.isVisible=1===Number(e.visible||1),r.font=(0,o.pluck)(e.font,t.basefont),r.link=e.link,r.fontSize=(0,o.pluck)(e.fontsize,e.fontSize,t.basefontsize),r.textAlign=(0,o.pluck)(e.textalign,e.textAlign),r.textVAlign=(0,o.pluck)(e.textvalign,e.textVAlign),r.rotateText=(0,o.pluck)(e.rotatetext,e.rotateText),r.wrapText=(0,o.pluck)(e.wraptext,e.wrapText),r.toolText=(0,o.pluck)(e.tooltext,e.toolText),r.link=e.link,r.showShadow=(0,o.pluck)(e.showshadow,e.showShadow),r.items=e.items,r.css=e.css,r.autoScale=(0,o.pluck)(e.autoscale,e.autoScale),r.scaleText=(0,o.pluck)(e.scaletext,e.scaleText),r.xScale=(0,o.pluck)(e.xscale,e.xScale),r.yScale=(0,o.pluck)(e.yscale,e.yScale),r.scaleImages=(0,o.pluck)(e.scaleimages,e.scaleImages),r.constrainedScale=(0,o.pluck)(e.constrainedscale),r.origH=(0,o.pluck)(e.origh,e.origH,t.origh),r.origW=(0,o.pluck)(e.origw,e.origW,t.origw),r.onAnnotationClick=e.onAnnotationClick,r.onAnnotationRollover=e.onAnnotationRollover,r.onAnnotationRollout=e.onAnnotationRollout,"object"==typeof e.component&&(r.component=e.component),r){if(r.hasOwnProperty(a))void 0===r[a]&&delete r[a]}return Array.isArray(n)&&(r.itemConfigs=n.map((function(e){return m(e,r,t)}))),r}(r,t)}))},b=function(e){function t(t){var r;return r=e.call(this,t)||this,(0,s.addDep)({name:"annotationAnimation",type:"animationRule",extension:l["default"]}),(0,c["default"])((0,s.getDep)("redraphael","plugin")),(0,u["default"])((0,s.getDep)("redraphael","plugin")),r.groups=[],r.config.dependencies={},r._rawJSON={groups:[]},r}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"annotation"},r.getType=function(){return"extension"},r.configureAttributes=function(e){void 0===e&&(e={groups:[]});var t=this,r=t.config;t._rawJSON=(0,o.extend2)({},t._rawJSON,e),e.groups?r.parsedConfigs=v(e,t.getFromEnv("chart").config):r.parsedConfigs=[],r.parsedConfigs.forEach((function(e){t.attachChild(h["default"],"group",e.id).configure(e)})),t.groups=t.getChildren("group")||[]},r.addItem=function(e,t,r){void 0===t&&(t={});var n,a,i,o=this._rawJSON,s=o.groups.length;for(n=0;n<s;n++)if(o.groups[n].id===e){a=o.groups[n];break}return a?a.items=a.items||[]:(a={id:e,items:[]},o.groups.push(a)),a.items.push(t),this.setData(o,!0),(i=this.retrieveGroup(e).items)[i.length-1]},r.addGroup=function(e){void 0===e&&(e={});var t=this._rawJSON;return t.groups?t.groups.push(e):t.groups=[e],this.setData(t,!0),this.groups[this.groups.length-1]},r.addCustomGroup=function(e){e&&(this.config.customGroup=e)},r.update=function(e,t){var r,n,a,i,o={};if(e){for(n in t)o[n.toLowerCase()]=t[n]&&t[n].toString();if(!(r=this.retrieveItem(e)||this.retrieveGroup(e))||!r.getElement())return;return"undefined"==typeof o.visible&&(o.visible=r.config.isVisible),a=r.rawConfig,a=Object.assign(a,o),(i=m(a)).isVisible=o.visible,r.setData(i),r}},r.destroy=function(e){var t,r,n,a,i,o,s=this._rawJSON,l=!1;if(e){for(t=0,n=s.groups.length;t<n;t++)for(r=0,a=((i=s.groups[t]).items||[]).length;r<a;r++)if((o=i.items[r])&&o.id===e){i.items.splice(r,1),l=!0;break}if(!l)for(t=0,n=s.groups.length;t<n;t++)(i=s.groups[t])&&i.id===e&&s.groups.splice(t,1)}else s=this._rawJSON={groups:[]};this.setData(s)},r.clear=function(){this.destroy()},r.retrieveItem=function(e){var t,r,n,a=this.groups.length;for(n=0;n<a;n++)if(t=this.groups[n].retrieveItem(e)){r=t;break}return r},r.retrieveGroup=function(e){var t,r;for(t=0,r=this.groups.length;t<r;t++)if(this.groups[t].getId()===e)return this.groups[t]},r.show=function(e){var t;e?(t=this.retrieveItem(e)||this.retrieveGroup(e))&&t.show():this.groups.forEach((function(e){e.show()}))},r.hide=function(e){var t;e?(t=this.retrieveItem(e)||this.retrieveGroup(e))&&t.hide():this.groups.forEach((function(e){e.hide()}))},r.draw=function(){var e,t,r,n,a,o,s,l,c,u,h,f,m,v;this.addToEnv("snapPoints",(e=this.getFromEnv("chart"),a=e.config,o=e.getChildren(),s=o.caption[0],l=o.subCaption[0],c=o.legend&&o.legend[0]||{},u=o.gLegend&&o.gLegend[0]||{},h=s.config,f=l.config,m=h.width||0,v=f.width||0,"end"===h.align?(t=h.x-m,n=h.x-v):"start"===h.align?t=n=h.x:(t=h.x-m/2,n=h.x-v/2),r=a.gLegendEnabled?u.conf:c.config,{canvasendx:a.canvasRight,canvasendy:a.canvasBottom,canvasheight:a.canvasHeight,canvasstartx:a.canvasLeft,canvasstarty:a.canvasTop,canvaswidth:a.canvasWidth,canvascenterx:a.canvasCenterX||a.canvasLeft+(a.canvasRight-a.canvasLeft)/2,canvascentery:a.canvasCenterY||a.canvasTop+(a.canvasBottom-a.canvasTop)/2,chartcenterx:a.width/2,chartcentery:a.height/2,chartstartx:0,chartstarty:0,chartendx:a.width,chartendy:a.height,chartheight:a.height,chartwidth:a.width,chartleftmargin:a.marginLeft,chartrightmargin:a.marginRight,chartbottommargin:a.marginBottom,charttopmargin:a.marginTop,captionendx:t+h.width,captionendy:h.y+h.height,captionheight:h.height,captionstartx:t,captionstarty:h.y,captionwidth:m,subcaptionendx:n+f.width,subcaptionendy:f.y+f.height,subcaptionheight:f.height,subcaptionstartx:n,subcaptionstarty:f.y,subcaptionwidth:v,legendendx:r&&r.xPos+r.width,legendendy:r&&r.yPos+r.height,legendheight:r&&r.height,legendstartx:r&&r.xPos,legendstarty:r&&r.yPos,legendwidth:r&&r.width,dataset:function(t){var r,n,a,o=t.split(i.DEFAULT_MACRO_SEPARATOR).slice(1),s=[];return e.iterateComponents((function(e){"dataset"===e.getType()&&s.push(e)})),s.sort(g),n=s[Number(o[0])],r=n.components.data[Number(o[2])],d.indexOf(n.getName().toLowerCase())>-1?(0,i.computeSliceBounds)(o[3],r.config):p.indexOf(n.getName().toLowerCase())>-1?(0,i.compute3DSliceBounds)(o[3],r.config):(a=(0,i.computePlotBounds)(r,n.getName()),(0,i.xyCalculator)(o[3],a))},xaxis:(0,i.axisMacroParser)(e,"xAxis"),yaxis:(0,i.axisMacroParser)(e,"yAxis"),gaugestartx:a.gaugeStartX,gaugestarty:a.gaugeStartY,gaugeendx:a.gaugeEndX,gaugeendy:a.gaugeEndY,gaugecenterx:a.gaugeCenterX,gaugecentery:a.gaugeCenterY,gaugestartangle:a.gaugeStartAngle,gaugeendangle:a.gaugeEndAngle,gaugeradius:a.gaugeRadius,plotwidth:a.plotWidth,plotsemiwidth:a.plotSemiWidth})),this.addGraphicalElement({el:"group",attr:{name:"upperannotations"},component:this,container:{label:"group",id:"abovePlotGroup",isParent:!0},id:"upperAnnotationGroup",label:"group"}),this.addGraphicalElement({el:"group",attr:{name:"lowerannotations"},component:this,container:{label:"group",id:"belowPlotGroup",isParent:!0},id:"lowerAnnotationGroup",label:"group"})},t}(f.SmartRenderer);t["default"]=b},function(e,t,r){"use strict";t.__esModule=!0,t.getEventData=t.getScaledVal=t.parseEquation=t.solveEquation=t.isMacro=t.trim=t.pluckBoolean=t.DEFAULT_MACRO_SEPARATOR=t.DEFAULT_MACRO_PREFIX=t.UNDERSCORE=t.xyCalculator=t.axisMacroParser=t.arrangeItems=t.cleanMacro=t.compute3DSliceBounds=t.computeSliceBounds=t.computePlotBounds=t.getQuadrant=t.polarToCartesian=t.deg2Rad=void 0;var n=r(254);t.UNDEF=n.UNDEF;var a=2*Math.PI,i=[-a,-3*a/4,-a/2,-a/4,0],o=[a,3*a/4,a/2,a/4,0],s=function(e){return e*e},l=function(e){return e*(Math.PI/180)},c=function(e,t,r,n){void 0===r&&(r=!0),void 0===n&&(n={});var a=t;return r||(a=l(t)),{x:e*Math.cos(a)+(n.x||0),y:e*Math.sin(a)+(n.y||0)}},u=function(e,t,r){return 0===e||0===t?0:e*t/Math.sqrt(s(t)*s(Math.cos(r))+s(e)*s(Math.sin(r)))},h=function(e){var t,r,o,s,l,u,h,f,d,p=e.ringpath,g=[],m=[],v=Infinity,b=Infinity,y=-Infinity,x=-Infinity;for(t=(0,n.pluckNumber)(p[2]),r=(0,n.pluckNumber)(p[3]),o=(0,n.pluckNumber)(p[4])%a,s=(0,n.pluckNumber)(p[5])%a,l=(0,n.pluckNumber)(p[0]),u=(0,n.pluckNumber)(p[1]),f=c(t,o,!0,{x:l,y:u}),d=c(t,s,!0,{x:l,y:u}),m.push(f),m.push(d),h=0;h<i.length;h++)i[h]>=o&&i[h]<=s&&g.push(h);for(h=0;h<g.length;h++)f=c(t,i[g[h]],!0,{x:l,y:u}),d=c(r,i[g[h]],!0,{x:l,y:u}),m.push(f),m.push(d);for(f=c(r,o,!0,{x:l,y:u}),d=c(r,s,!0,{x:l,y:u}),m.push(f),m.push(d),h=0;h<m.length;h++)y=Math.max(y,m[h].x),v=Math.min(v,m[h].x),x=Math.max(x,m[h].y),b=Math.min(b,m[h].y);return{x:v,y:b,width:Math.abs(y-v),height:Math.abs(b-x)}},f=function(e,t,r){var n,i,o;return o=Math.tan(r),n=e*t/Math.sqrt(t*t+e*e*o*o),i=e*t/Math.sqrt(e*e+t*t/(o*o)),r>a/4&&r<3*a/4?n*=-1:n=Math.abs(n),r>a/2&&r<a?i*=-1:i=Math.abs(i),Math.abs(n)<=1e-5&&(n=0),Math.abs(i)<=1e-5&&(i=0),{x:n,y:i}},d=function(e,t){var r,a,i,o,s,l=e.config||e;switch(t){case"column3D":case"bar2D":case"bar3D":case"paretoColumn":case"waterFall2D":case"errorBar2D":case"candlestick":case"heatMap":case"dragColumn":case"sparkColumn":case"marimekko":case"task":case"column":r={x:(a=l.props.element.attr).x+(0,n.pluckNumber)(a.xDepth,0),y:a.y-(0,n.pluckNumber)(a.yDepth,0),width:a.width,height:a.height};break;case"line":case"zoomLine":case"zoomScatter":case"scatter":case"spline":case"splinearea":case"multiaxisline":case"stepLine":case"errorScatter":case"errorLine":case"radar":case"selectScatter":case"dragLine":case"dragArea":case"kagi":case"sparkLine":case"area":i=e._xPos,o=e._yPos,r={x:i-(s=Number(l.anchorProps.radius)||0),y:o-s,width:2*s,height:2*s};break;case"bubble":r={x:(a=l.props.element.attr).cx-a.r,y:a.cy-a.r,width:2*a.r,height:2*a.r};break;case"dragNode":a=l.props.element.attr,"rect"===l.shapeType?r={x:a.x,y:a.y,width:a.width,height:a.height}:(i=l._xPos,o=l._yPos,r={x:i-(s=+l.radius||0),y:o-s,width:2*s,height:2*s});break;case"boxandwhisker2D":r={x:(a=l.props.upperBoxElem.attr).x,y:a.y,width:a.width,height:a.height};break;case"category":case"polarCategory":case"log":case"numeric":r={x:(a=l.props.label.attr).x-l.width/2,y:a.y-l.height/2,width:l.width,height:l.height},"end"===a["text-anchor"]||"left"===a["text-anchor"]?r.x=a.x-l.width:"start"!==a["text-anchor"]&&"right"!==a["text-anchor"]||(r.x=a.x),"top"===a["vertical-align"]?r.y=a.y:"bottom"===a["vertical-align"]&&(r.y=a.y-l.height);break;case"multiLevelPie":a=l.props.element.attr,r=h(a)}return r},p=function(e,t){var r=0;switch(e){case"startx":r=t.x;break;case"starty":r=t.y;break;case"x":case"middlex":case"centerx":r=t.x+t.width/2;break;case"y":case"middley":case"centery":r=t.y+t.height/2;break;case"endx":r=t.x+t.width;break;case"endy":r=t.y+t.height;break;default:r=0}return r},g=function(e,t){var r;switch(t.axis){case"x":case"toX":r=t.scaleX;break;case"y":case"toY":r=t.scaleY;break;default:r=t.scaleValue||1}return e*r};t.parseEquation=function(e,t,r,a){void 0===r&&(r=!1),void 0===a&&(a="$");var i,o,s,l,c=e.split(/([+])/),u=[],h=c.length;for(o=0;o<h;o++)if("+"!==c[o]){for(s=0,l=(i=c[o].split(/([-])/)).length;s<l;s++)"-"!==i[s]&&(u.push(i[s]),s<l-1&&u.push("-"));o<h-1&&u.push("+")}return u.map((function(e){var i,o,s,l=n.BLANKSTRING,c=n.BLANKSTRING,u=n.BLANKSTRING;if(e.charAt(0)===a){if(u=(c=e.replace(new RegExp("[\\$ ]","g"),"")).split(".")[0],!isNaN(+c))return+c;for(l in t)if(u===l){if(o=new RegExp(l,"g"),"function"==typeof t[l])try{i=u.replace(o,t[l](c))}catch(f){i=u.replace(o,0)}else i=u.replace(o,t[l]||0);break}}else{s=Number(e);var h=e;isNaN(s)?"+"!==e&&"-"!==e&&(h=0):h=r?g(s,r).toString():s.toString(),i=h}return i}))},t.getScaledVal=g,t.solveEquation=function(e){for(var t,r,n=+e[0],a=1,i=e.length;a<i;++a)if(r=e[a],a%2)t=r;else switch(t){case"+":n+=+r;break;case"-":n-=+r}return n},t.isMacro=function(e){return~e.indexOf("$")},t.trim=function(e){return e.replace(/^\s+|\s+$/g,"")},t.pluckBoolean=function(){for(var e,t,r,n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];for(t=0,r=a.length;t<r;t++)if(!0===(e=a[t])||!1===e)return e;return!1},t.getEventData=function(e,t,r){var n=r.getFromEnv("getMouseCoordinate")(r.getFromEnv("chart-container"),e,r),a=t.getLinkedParent();return{element:t.getElement(),rawConfig:t.getAttribute(),pageX:n.pageX,pageY:n.pageY,chartX:n.chartX,chartY:n.chartY,annotationId:t.getId(),groupId:a&&a.getId(),annotationOptions:t.rawConfig,groupOptions:a&&a.rawConfig}},t.axisMacroParser=function(e,t){return function(r){var n,a,i,o,s=r.split(".").slice(1),l=isNaN(Number(s[0]))?0:Number(s[0]),c=isNaN(Number(s[0]))?s[1]:s[2],u=isNaN(Number(s[0]))?s[2]:s[3];return o=(n=e.getChildren(t)[l]).components,c=Number(c),o.labelIndexArr&&(c=o.labelIndexArr[c]),a=o.labels[c].config,i=d(a,n.getName()),p(u,i)}},t.xyCalculator=p,t.arrangeItems=function(e){void 0===e&&(e=[]);var t,r,n=[],a=[];for(r=e.length,t=0;t<r;t++)"text"===e[t].type?a.push(e[t]):n.push(e[t]);return n.concat(a)},t.cleanMacro=function(e){var t,r,a=n.BLANKSTRING;for(t=0,r=e.length;t<r;t++)" "!==e[t]&&(a+=e[t]);return a},t.computePlotBounds=d,t.computeSliceBounds=function(e,t){var r,n,a,i,o,s,l=t.props.element.attr,u=l.ringpath;switch(r=u[0],n=u[1],a=u[2],o=u[4],s=u[5],e){case"slicex":case"slicemiddlex":case"slicecenterx":i=c(a,(o+s)/2).x+r;break;case"slicey":case"slicemiddley":case"slicecentery":i=c(a,(o+s)/2).y+n;break;case"slicestartx":i=c(a,s).x+r;break;case"slicestarty":i=c(a,s).y+n;break;case"sliceendx":i=c(a,o).x+r;break;case"sliceendy":i=c(a,o).y+n;break;default:i=p(e,h(l))}return i},t.compute3DSliceBounds=function(e,t){var r,i=t.props.element.attr,s=i.r,l=s*i.radiusYFactor,h=i.cx,d=i.cy,g=i.sAngle,m=i.eAngle;switch(e){case"slicex":case"slicemiddlex":case"slicecenterx":r=f(s,l,(g+m)/2).x+h;break;case"slicey":case"slicemiddley":case"slicecentery":r=f(s,l,(g+m)/2).y+d;break;case"slicestartx":r=f(s,l,g).x+h;break;case"slicestarty":r=f(s,l,g).y+d;break;case"sliceendx":r=f(s,l,m).x+h;break;case"sliceendy":r=f(s,l,m).y+d;break;default:r=p(e,function(e){var t,r,i,s,l,h,f,d,p,g=[],m=[],v=Infinity,b=Infinity,y=-Infinity,x=-Infinity;for(t=(0,n.pluckNumber)(e.r),r=(0,n.pluckNumber)(t*e.radiusYFactor),i=(0,n.pluckNumber)(e.sAngle)%a,s=(0,n.pluckNumber)(e.eAngle)%a,l=(0,n.pluckNumber)(e.cx),h=(0,n.pluckNumber)(e.cy),d=c(u(t,r,i),i,!0,{x:l,y:h}),p=c(u(t,r,s),s,!0,{x:l,y:h}),m.push(d),m.push(p),f=0;f<o.length;f++)o[f]>=i&&o[f]<=s&&g.push(f);for(f=0;f<g.length;f++)d=c(u(t,r,o[g[f]]),o[g[f]],!0,{x:l,y:h}),m.push(d);for(t=(0,n.pluckNumber)(e.innerR,0),r=(0,n.pluckNumber)(t*e.radiusYFactor,0),d=c(u(t,r,i),i,!0,{x:l,y:h}),p=c(u(t,r,s),s,!0,{x:l,y:h}),m.push(d),m.push(p),f=0;f<g.length;f++)d=c(u(t,r,o[g[f]]),o[g[f]],!0,{x:l,y:h}),m.push(d);for(f=0;f<m.length;f++)y=Math.max(y,m[f].x),v=Math.min(v,m[f].x),x=Math.max(x,m[f].y),b=Math.min(b,m[f].y);return{x:v,y:b,width:Math.abs(y-v),height:Math.abs(b-x)}}(i))}return r},t.getQuadrant=function(e,t,r){return e.x>=t?e.y<=r?0:3:e.y<=r?1:2},t.polarToCartesian=c,t.deg2Rad=l,t.DEFAULT_MACRO_SEPARATOR=".",t.DEFAULT_MACRO_PREFIX="$",t.UNDERSCORE="_"},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n=function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"}]},a={"initial.extension.annotation":function(){return{"polypath.appearing":n,"text.appearing":n,"image.appearing":n,"ellipse.appearing":n,"ringpath.appearing":n,"path.appearing":n,"rect.appearing":n,"*":null}}};t["default"]=a},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=function(e){var t=Math,r=t.cos,n=t.sin,a=t.abs,i=t.pow,o=t.PI,s=2*o,l="M",c="A",u=i(2,-24);e.define&&e.define([{name:"ringpath",ringpath:function(){return this.path(void 0,e._lastArgIfGroup(arguments))},ca:function(e,t,i,h,f,d,p,g){var m,v,b,y,x,w,_,S,C,k,A,N,E,L,M=d%s-f%s,F=d-f,T=p,D=g;return isNaN(T)&&(T=i),isNaN(D)&&(D=h),this._.ringangle=.5*(f+d),a(F)<u?(m=r(f),v=n(f),w=[l,e+i*m,t+T*v,"L",e+h*m,t+D*v,"Z"]):a(F)>u&&+(a(F)%s<u||s-a(F)%s<u)?(w=[l,e-i,t,c,i,T,0,0,0,e+i,t,c,i,T,0,0,0,e-i,t],0===h&&0===D||(w=w.concat([l,e-h,t,c,h,D,0,0,1,e+h,t,c,h,D,0,0,1,e-h,t])),w.push("Z")):(m=r(f),v=n(f),b=r(d),y=n(d),(M%=s)<0&&(M+=s),x=M<o?0:1,A=t+T*v,N=t+T*y,C=e+h*b,E=t+D*y,a((_=e+i*m)-(S=e+i*b))<.01&&a(A-N)<.01&&(_=e+i*r(f+.0001745329),A=t+T*n(f+.0001745329)),w=[l,_,A,c,i,T,0,x,1,S,N,"L",C,E],0===h&&0===D||(L=t+D*v,a(C-(k=e+h*m))<.01&&a(E-L)<.01&&(k=e+h*r(f+.0001745329),L=t+D*n(f+.0001745329)),w.push(c,h,D,0,x,0,k,L)),w.push("Z")),{path:w}}}])}},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=function(e){e.define&&e.define([{name:"arcpath",arcpath:function(){return this.path(void 0,e._lastArgIfGroup(arguments))},ca:function(e,t,r,n){var a=n,i=a-90,o=Math.PI*(i/180);return{path:["M",e,t-r,"A",r,r,0,a>180?1:0,1,e+r*Math.cos(o),t+r*Math.sin(o)]}}}])}},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=r(254),o=r(360),s=n(r(365)),l=n(r(366)),c=n(r(377)),u=n(r(378)),h=n(r(379)),f=n(r(380)),d=n(r(381)),p=n(r(273)),g={circle:l["default"],arc:l["default"],line:c["default"],path:c["default"],rectangle:u["default"],polygon:d["default"],image:h["default"],text:f["default"]},m=function(e){function t(t){var r;return(r=e.call(this,t)||this).groups=[],r.items=[],r}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"group"},r.configureAttributes=function(e){var t,r=this,n=r.config;r.rawConfig=e||{},n.id=r.rawConfig.id||r.getId("group"),n.autoScale=(0,i.pluckNumber)(r.rawConfig.autoScale,1),n.scaleText=(0,i.pluckNumber)(r.rawConfig.scaleText,0),n.scaleX=n.origScaleX=(0,i.pluckNumber)(r.rawConfig.xScale)/100,n.scaleY=n.origScaleY=(0,i.pluckNumber)(r.rawConfig.yScale)/100,n.scaleImages=(0,i.pluckNumber)(r.rawConfig.scaleImages,0),n.constrainedScale=(0,i.pluckNumber)(r.rawConfig.constrainedScale,1),n.origH=Number(r.rawConfig.origH),n.origW=Number(r.rawConfig.origW),n.link=r.rawConfig.link,n.color=r.rawConfig.color||"#FF0000",n.alpha=(0,i.pluckNumber)(parseFloat(r.rawConfig.alpha),100),n.showShadow=(0,i.pluckNumber)(r.rawConfig.showShadow,0),n.x=(0,i.pluckNumber)(r.rawConfig.x,r.rawConfig.xPos,0),n.y=(0,i.pluckNumber)(r.rawConfig.y,r.rawConfig.yPos,0),n.font=(0,i.pluck)(r.rawConfig.font,"Verdana, sans"),n.fontSize=(0,i.pluckFontSize)(r.rawConfig.fontSize,10),n.textAlign=(0,i.pluck)(r.rawConfig.textAlign),n.textVAlign=(0,i.pluck)(r.rawConfig.textVAlign),n.rotateText=(0,i.pluck)(r.rawConfig.rotateText),n.wrapText=(0,i.pluck)(r.rawConfig.wrapText),n.grpXShift=(0,i.pluckNumber)(r.rawConfig.grpXShift,0),n.grpYShift=(0,i.pluckNumber)(r.rawConfig.grpYShift,0),n.xShift=(0,i.pluckNumber)(r.rawConfig.xShift,0),n.yShift=(0,i.pluckNumber)(r.rawConfig.yShift,0),n.toolText=r.rawConfig.toolText,n.isVisible=(0,o.pluckBoolean)(r.rawConfig.isVisible,!0),n.elementType="group",n.containerConfiguration={id:r.rawConfig.showBelow?"lowerAnnotationGroup":"upperAnnotationGroup",label:"group",isParent:!0},n.animationLabel="group",r.rawConfig.customComponent instanceof p["default"]?n.customComponent=n.rawConfig.customComponent:delete n.customComponent,r.rawConfig.itemConfigs.forEach((function(e){t=e.type&&e.type.toLowerCase(),g[t]&&r.attachChild(g[t],"item",e.id).configure(e)})),r.items=r.getChildren("item")||[]},r.updateScale=function(){var e,t,r,n,a,i=this.config,o=this.getFromEnv("chart"),s=+o.getFromEnv("chartHeight"),l=+o.getFromEnv("chartWidth"),c=i.autoScale,u=i.constrainedScale;this._setConfig("origW",Number(i.origW)||l),this._setConfig("origH",Number(i.origH)||s),c?(t=l/i.origW*(Number(i.origScaleX)||1),r=s/i.origH*(Number(i.origScaleY)||1)):t=r=1,e=Math.min(t,r),this._setConfig("scaleValue",e),(c>0||isNaN(i.scaleX))&&(n=u?e:t,this._setConfig("scaleX",n)),(c>0||isNaN(i.scaleY))&&(a=u?e:r,this._setConfig("scaleY",a)),i.scaleFont=i.scaleText?Math.min(i.scaleX,i.scaleY):1,i.scaleImageX=i.scaleImages?i.scaleX:1,i.scaleImageY=i.scaleImages?i.scaleY:1,i.scaleInfo={scaleX:i.scaleX,scaleY:i.scaleY,scaleValue:i.scaleValue}},r.updateAttr=function(){var e,t,r,n=this.config,a=n.calculatedAttrs;for(e in a)a[e]&&(n[e]=a[e]);t=this.getScaledVal(n.grpXShift)+n.xShift,r=this.getScaledVal(n.grpYShift)+n.yShift,this._setConfig("attr",{transform:"T"+t+","+r})},r.retrieveItem=function(e){var t,r;for(t=0,r=this.items.length;t<r;t++)if(this.items[t].getId()===e)return this.items[t]},r.getScaledVal=function(e,t){return this?e*(t?this._getConfig("scaleX"):(!1===t?this._getConfig("scaleY"):this._getConfig("scaleValue"))||1):e},r.getScaledFont=function(e){return this?e*this._getConfig("scaleFont"):e},r.getScaledImageVal=function(e,t){return this?e*((t?this._getConfig("scaleImageX"):this._getConfig("scaleImageY"))||1):e},r.getScaleInfo=function(){return this.config.scaleInfo},r.draw=function(){var e,t,r=this._getConfig("attr")||{};this.updateScale(),this.parseAndSetAttribute(),e=this.getScaledVal(this._getConfig("grpXShift"))+this._getConfig("xShift"),t=this.getScaledVal(this._getConfig("grpYShift"))+this._getConfig("yShift"),r.name=this._getConfig("id"),r.transform=r.transform||"T"+e+","+t,r.visibility=this.config.isVisible?i.visibleStr:i.hiddenStr,this.addGraphicalElement({el:"group",attr:r,container:this.config.containerConfiguration,component:this.config.customComponent||this,label:this.config.animationLabel,id:this.config.id})},t}(s["default"]);t["default"]=m},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=r(270),o=r(254),s=r(360),l=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.getType=function(){return"shape"},r._setConfig=function(e,t){this.config[e]=t},r._getConfig=function(e){return void 0===e&&(e=""),""===e?this.config:this.config[e]},r.getElement=function(){var e=this.config;return this.getGraphicalElement(e.id,e.animationLabel)},r.getBounds=function(){return this.getElement().getBBox()},r.data=function(e,t){if(e&&"string"==typeof e){if(t===o.UNDEF)return this._data&&this._data[e];!this._data&&(this._data={}),this._data[e]=t}},r.parseAndSetAttribute=function(){var e,t,r=this.rawConfig,n=this.getFromEnv("snapPoints"),a={x:(0,o.pluck)(r.x,r.xPos,0),y:(0,o.pluck)(r.y,r.yPos,0),toX:(0,o.pluck)(r.toX),toY:(0,o.pluck)(r.toY)},i=this.config.calculatedAttrs={},l=this.getScaleInfo();for(var c in a)a.hasOwnProperty(c)&&void 0!==(t=a[c])&&(t=t.toString(),l.axis=c,(0,s.isMacro)(t)?i[c]=(0,s.solveEquation)((0,s.parseEquation)((0,s.cleanMacro)(t.toLowerCase()),n,l)):(i[c]=(0,s.solveEquation)((0,s.parseEquation)((0,s.cleanMacro)(t.toLowerCase()),n)),(0,o.pluckNumber)(r.autoscale,r.autoScale,1)&&(i[c]=(0,s.getScaledVal)(i[c],l))));"group"!==this.config.elementType&&(e=this.getLinkedParent().config.calculatedAttrs,i.x=i.x+(e.x||0),i.y=i.y+(e.y||0),isNaN(Number(i.toX))?i.toX=i.x:i.toX+=e.x||0,isNaN(Number(i.toY))||(i.toY+=e.y||0)),this.updateAttr()},r.getAttribute=function(e){return void 0===e&&(e=""),""===e?this.rawConfig:this.rawConfig[e]},r.show=function(){var e=Object.assign({},this.rawConfig);e.isVisible=!0,this.setData(e)},r.hide=function(){var e=Object.assign({},this.rawConfig);e.isVisible=!1,this.setData(e)},t}(i.SmartRenderer);t["default"]=l},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=r(254),o=n(r(367));function s(e){return e*(Math.PI/180)}var l=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"circle"},r.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var r,n=this.rawConfig,a=this.getFromEnv("chart"),o=+a.getFromEnv("chartHeight")||700,s=+a.getFromEnv("chartWidth")||350;this.config.radius=n.radius,this.config.xRadius=(0,i.pluckNumber)(parseFloat(n.radius),parseFloat(n.xRadius),Math.sqrt(Math.max(o,s))),this.config.yRadius=(0,i.pluckNumber)(parseFloat(n.yRadius),this.config.xRadius),this.config.startAngle=(0,i.pluckNumber)(parseFloat(n.startAngle),0),this.config.endAngle=(0,i.pluckNumber)(parseFloat(n.endAngle),360),this.config.innerRadius=(0,i.pluckNumber)(parseFloat(n.innerRadius),0),this.config.innerYRadius=(0,i.pluckNumber)(parseFloat(n.innerYRadius),this.config.innerRadius,0),"arc"===this.config.type||0!==(r=this.config).startAngle||360!==r.endAngle||function(e){return e.innerRadius>0||e.innerYRadius>0}(this.config)?this.config.elementType="ringpath":this.config.elementType="ellipse"},r.updateAttr=function(){var e,t=this.config,r=t.calculatedAttrs,n=this.getFromEnv("chart"),a=+n.getFromEnv("chartHeight"),o=+n.getFromEnv("chartWidth"),l=this.getScaledVal(t.xRadius),c=this.getScaledVal(t.yRadius),u=this.getScaledVal(t.innerRadius),h=this.getScaledVal(t.innerYRadius);switch((0,i.pluck)(t.radius)||(t.radius=o<a?this.getScaledVal(o):this.getScaledVal(a),t.radius*=.3,u>t.radius&&(u+=t.radius,t.radius=u-t.radius,u-=t.radius),l=c=t.radius,h=u),t.elementType){case"ringpath":e={ringpath:[(0,i.pluckNumber)(r.x,this.getScaledVal(t.x,!0)),(0,i.pluckNumber)(r.y,this.getScaledVal(t.y,!1)),l,u,s(360-t.endAngle),s(360-t.startAngle),c,h]};break;default:e={cx:(0,i.pluckNumber)(r.x,this.getScaledVal(t.x,!0)),cy:(0,i.pluckNumber)(r.y,this.getScaledVal(t.y,!1))}}this._setConfig("attr",e)},r._getAnnotationAttrs=function(){var e,t=this.config,r=this.config.attr||{},n=t.x,a=t.y,i=this.getScaledVal(t.xRadius),o=this.getScaledVal(t.yRadius);switch(t.xRadius||(i=0),t.yRadius||(o=0),r.fill=t.color,r.stroke=t.borderColor,r["stroke-width"]=t.borderThickness,r["stroke-dasharray"]=t.dashArrayStr,this.config.elementType){case"ringpath":e=[this.getScaledVal(n,!0),this.getScaledVal(a,!1),i,this.getScaledVal(t.innerRadius),s(360-t.endAngle),s(360-t.startAngle),o,this.getScaledVal(t.innerYRadius)],r.ringpath=r.ringpath||e;break;default:r.rx=i,r.ry=o,r.cx="undefined"==typeof r.cx?this.getScaledVal(n,!0):r.cx,r.cy="undefined"==typeof r.cy?this.getScaledVal(a,!1):r.cy}return r},t}(o["default"]);t["default"]=l},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=n(r(368)),o=n(r(365)),s=r(254),l=r(360),c=n(r(273)),u=function(e){return void 0===e?void 0:1},h=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.configureAttributes=function(e){var t,r,n=this,a=n.config,o=n.getFromEnv("chart"),h=n.getLinkedParent();n.groupConfig={},n.rawConfig={},null!==h&&(n.groupConfig.x=h._getConfig("x"),n.groupConfig.y=h._getConfig("y"),n.groupConfig.grpXShift=h._getConfig("grpXShift"),n.groupConfig.grpYShift=h._getConfig("grpYShift"),n.groupConfig.color=h._getConfig("color"),n.groupConfig.alpha=h._getConfig("alpha"),n.groupConfig.font=h._getConfig("font"),n.groupConfig.fontSize=h._getConfig("fontSize"),n.groupConfig.textAlign=h._getConfig("textAlign"),n.groupConfig.textVAlign=h._getConfig("textVAlign"),n.groupConfig.rotateText=h._getConfig("rotateText"),n.groupConfig.wrapText=h._getConfig("wrapText"),n.groupConfig.toolText=h._getConfig("toolText"),n.groupConfig.scaleX=h._getConfig("scaleX"),n.groupConfig.scaleY=h._getConfig("scaleY"),n.groupConfig.scaleImageX=h._getConfig("scaleImageX"),n.groupConfig.scaleImageY=h._getConfig("scaleImageY"),n.groupConfig.link=h._getConfig("link")),n.rawConfig=(0,i["default"])(n.rawConfig,e)||{},a.type=n.rawConfig.type,a.color=n._getFillColor(n.rawConfig,this.groupConfig),a.link=(0,s.pluck)(n.rawConfig.link,n.groupConfig.link),a.borderThickness=(0,s.pluckNumber)(parseFloat(n.rawConfig.borderThickness),parseFloat(n.rawConfig.thickness),2),a.showBorder=(0,s.pluckNumber)(n.rawConfig.showBorder,parseFloat(n.rawConfig.borderThickness),parseFloat(n.rawConfig.thickness),u(n.rawConfig.borderColor),u(n.rawConfig.borderAlpha),0),a.borderColor=n._getBorderColor(n.rawConfig),a.dashed=(0,s.pluckNumber)(n.rawConfig.dashed,0),a.dashLen=(0,s.pluckNumber)(n.rawConfig.dashLen,5),a.dashGap=(0,s.pluckNumber)(parseFloat(n.rawConfig.dashGap),3),a.dashArrayStr=a.dashed?(0,s.getDashStyle)(a.dashLen,a.dashGap):"none",a.x=(0,s.pluckNumber)(n.rawConfig.x,n.rawConfig.xPos,0),a.y=(0,s.pluckNumber)(n.rawConfig.y,n.rawConfig.yPos,0),a.tox=(0,s.pluckNumber)(n.rawConfig.toX,a.x,0),a.toy=(0,s.pluckNumber)(n.rawConfig.toY,a.y,0),a.toy>=0&&a.y>=0&&a.toy<a.y&&(t=[a.toy,a.y],a.y=t[0],a.toy=t[1]),a.tox>=0&&a.x>=0&&a.tox<a.x&&(r=[a.tox,a.x],a.x=r[0],a.tox=r[1]),a.showShadow=(0,s.pluckNumber)(n.rawConfig.showShadow,h.config.showShadow,0),a.toolText=(0,s.getFirstValue)(n.rawConfig.toolText,this.groupConfig.toolText,""),a.isVisible=(0,l.pluckBoolean)(n.rawConfig.isVisible,!0),a.id=(0,s.pluck)(n.rawConfig.id,n.getId(n.config.elementType)),a.containerConfiguration={id:n.getLinkedParent().config.id,label:"group",isParent:!0},n._clickHandler=n._clickHandler||function(e){n.config.link&&n.getFromEnv("linkClickFN").call({link:n.config.link},!0),n.rawConfig.onAnnotationClick instanceof Function?n.rawConfig.onAnnotationClick():h.rawConfig.onAnnotationClick instanceof Function?h.rawConfig.onAnnotationClick():o.fireChartInstanceEvent("annotationclick",(0,l.getEventData)(e,n,o),void 0,void 0,e)},n._rollOverHandler=n._rollOverHandler||function(e){n.rawConfig.onAnnotationRollover instanceof Function?n.rawConfig.onAnnotationRollover():h.rawConfig.onAnnotationRollover instanceof Function?h.rawConfig.onAnnotationRollover():o.fireChartInstanceEvent("annotationrollover",(0,l.getEventData)(e,n,o),void 0,void 0,e)},n._rollOutHandler=n._rollOutHandler||function(e){n.rawConfig.onAnnotationRollout instanceof Function?n.rawConfig.onAnnotationRollout():h.rawConfig.onAnnotationRollout instanceof Function?h.rawConfig.onAnnotationRollout():o.fireChartInstanceEvent("annotationrollout",(0,l.getEventData)(e,n,o),void 0,void 0,e)},n.rawConfig.customComponent instanceof c["default"]?a.customComponent=a.rawConfig.customComponent:delete a.customComponent},r._getBorderColor=function(e){var t="none",r={color:s.BLANKSTRING,alpha:s.BLANKSTRING};return"line"!==this.getType()&&(r.color=this.config.rawBorderColor=(0,s.pluck)(e.borderColor,e.fillColor&&e.fillColor.split(",")[0],e.color&&e.color.split(",")[0],"#000000"),0===this.config.showBorder?(r.alpha=1,this.config.borderThickness=2):r.alpha=this.config.rawBorderAlpha=(0,s.pluckNumber)(parseFloat(e.borderAlpha),parseFloat(e.alpha),100),t=(0,s.toRaphaelColor)(r)),t},r._getFillColor=function(e,t){var r=this.config.type,n={color:s.BLANKSTRING,alpha:s.BLANKSTRING,angle:s.BLANKSTRING,ratio:s.BLANKSTRING,radialGradient:"circle"===r||"arc"===r};return"line"===r||"image"===r?(n.color=e.color||t.color||"#FF0000",n.alpha=(0,s.pluckNumber)(parseFloat(e.alpha),t.alpha,100)):(n.color=e.fillColor||e.color||t.color||"#FF0000",n.alpha=(0,s.pluck)(e.fillAlpha,parseFloat(e.alpha),t.alpha,100),n.angle=360-(0,s.pluckNumber)(e.fillAngle,0),n.ratio=(0,s.pluck)(e.fillRatio),e.fillPattern&&(n.radialGradient="radial"===e.fillPattern.toLowerCase()||(0,s.pluckNumber)(e.fillPattern)),n.radialGradient&&(n.gradientUnits="objectBoundingBox",n.cx=.5,n.cy=.5,n.fx=.5,n.fy=.5)),this.config.rawColor=n.color,this.config.rawAlpha=n.alpha,this.config.rawAngle=n.angle,this.config.rawFillPattern=n.radialGradient?"radial":"linear",this.config.rawRatio=n.ratio,(0,s.toRaphaelColor)(n)},t.destroySelectionBox=function(){},r._applyAttr=function(e){var t,r=this.config.elementType,n=Object.assign({},e);("image"!==r||this.config.url)&&((t=this.rawConfig.css||{}).cursor=this.config.link?s.POINTER:"default",this.config.isVisible?n.visibility=s.visibleStr:n.visibility=s.hiddenStr,this.addEventListener("fc-click",this._clickHandler),this.addEventListener("fc-mouseover",this._rollOverHandler),this.addEventListener("fc-mouseout",this._rollOutHandler),this.config.animationLabel=this.rawConfig.animationLabel||this.getLinkedParent().config.animationLabel||r,this.addGraphicalElement({el:r,attr:n,css:t,container:this.config.containerConfiguration,component:this.config.customComponent||this,label:this.config.animationLabel,id:this.config.id,tooltext:this.config.toolText,shadow:{opacity:0!==this.config.showShadow?1:0,useFilter:"path"===r?0:1},outlineText:n.outlineText}))},r.getScaledVal=function(e,t){var r=this.getLinkedParent();return r?r.getScaledVal(e,t):e},r.getScaledFont=function(e){var t=this.getLinkedParent();return t?t.getScaledFont(e):e},r.getScaledImageVal=function(e,t){var r=this.getLinkedParent();return r?r.getScaledImageVal(e,t):e},r.getScaleInfo=function(){return this.getLinkedParent().config.scaleInfo},r.draw=function(){this.parseAndSetAttribute(),this._applyAttr(this._getAnnotationAttrs()||{})},t}(o["default"]);t["default"]=h},function(e,t,r){var n=r(369),a=r(372),i=n((function(e,t){return a((function(e,t,r){return r}),e,t)}));e.exports=i},function(e,t,r){var n=r(370),a=r(371);e.exports=function(e){return function t(r,i){switch(arguments.length){case 0:return t;case 1:return a(r)?t:n((function(t){return e(r,t)}));default:return a(r)&&a(i)?t:a(r)?n((function(t){return e(t,i)})):a(i)?n((function(t){return e(r,t)})):e(r,i)}}}},function(e,t,r){var n=r(371);e.exports=function(e){return function t(r){return 0===arguments.length||n(r)?t:e.apply(this,arguments)}}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},function(e,t,r){var n=r(373),a=r(374),i=r(375),o=n((function s(e,t,r){return i((function(t,r,n){return a(r)&&a(n)?s(e,r,n):e(t,r,n)}),t,r)}));e.exports=o},function(e,t,r){var n=r(370),a=r(369),i=r(371);e.exports=function(e){return function t(r,o,s){switch(arguments.length){case 0:return t;case 1:return i(r)?t:a((function(t,n){return e(r,t,n)}));case 2:return i(r)&&i(o)?t:i(r)?a((function(t,r){return e(t,o,r)})):i(o)?a((function(t,n){return e(r,t,n)})):n((function(t){return e(r,o,t)}));default:return i(r)&&i(o)&&i(s)?t:i(r)&&i(o)?a((function(t,r){return e(t,r,s)})):i(r)&&i(s)?a((function(t,r){return e(t,o,r)})):i(o)&&i(s)?a((function(t,n){return e(r,t,n)})):i(r)?n((function(t){return e(t,o,s)})):i(o)?n((function(t){return e(r,t,s)})):i(s)?n((function(t){return e(r,o,t)})):e(r,o,s)}}}},function(e,t){e.exports=function(e){return"[object Object]"===Object.prototype.toString.call(e)}},function(e,t,r){var n=r(373),a=r(376),i=n((function(e,t,r){var n,i={};for(n in r=r||{},t=t||{})a(n,t)&&(i[n]=a(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)a(n,r)&&!a(n,i)&&(i[n]=r[n]);return i}));e.exports=i},function(e,t){e.exports=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=r(254),o=r(360),s=n(r(367));function l(e){return e<="9"&&e>="0"||"-"===e||"."===e?0:e<="z"&&e>="a"||e<="Z"&&e>="A"?1:2}var c=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"path"},r.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var r=this.rawConfig;this.config.pathStr=(0,i.pluck)(r.path),this.config.x=(0,i.pluckNumber)(r.x,0),this.config.y=(0,i.pluckNumber)(r.y,0),this.config.tox=(0,i.pluckNumber)(r.toX,this.config.x),this.config.toy=(0,i.pluckNumber)(r.toY,this.config.y),this.config.elementType="path"},r.getScaledPath=function(){var e,t,r,n,a,s=this.config.pathStr,c=[],u=i.BLANKSTRING;for(a=s&&s.length,r=0;r<a;r++){for(n=r,t=i.BLANKSTRING,e=l(s[r]);n<a&&l(s[n])===e;)t+=s[n],n++;""!==(t=(0,o.trim)(t))&&e<2&&c.push(t),r=n===r?n:n-1}for(a=c.length,r=0;r<a;)switch(u+=c[r],c[r].toLowerCase()){case"m":case"l":case"t":u+=this.getScaledVal(Number(c[r+1]),!0).toString()+",",u+=this.getScaledVal(Number(c[r+2]),!1).toString(),r+=3;break;case"s":case"q":u+=this.getScaledVal(Number(c[r+1]),!0).toString()+",",u+=this.getScaledVal(Number(c[r+2]),!1).toString()+",",u+=this.getScaledVal(Number(c[r+3]),!0).toString()+",",u+=this.getScaledVal(Number(c[r+4]),!1).toString(),r+=5;break;case"h":u+=this.getScaledVal(Number(c[r+1]),!0).toString(),r+=2;break;case"v":u+=this.getScaledVal(Number(c[r+1]),!1).toString(),r+=2;break;case"c":u+=this.getScaledVal(Number(c[r+1]),!0).toString()+",",u+=this.getScaledVal(Number(c[r+2]),!1).toString()+",",u+=this.getScaledVal(Number(c[r+3]),!0).toString()+",",u+=this.getScaledVal(Number(c[r+4]),!1).toString()+",",u+=this.getScaledVal(Number(c[r+5]),!0).toString()+",",u+=this.getScaledVal(Number(c[r+6]),!1).toString(),r+=7;break;case"a":u+=this.getScaledVal(Number(c[r+1]),!0).toString()+",",u+=this.getScaledVal(Number(c[r+2]),!1).toString()+",",u+=this.getScaledVal(Number(c[r+3]),!0).toString()+",",u+=c[r+4]+",",u+=c[r+5]+",",u+=this.getScaledVal(Number(c[r+6]),!0).toString()+",",u+=this.getScaledVal(Number(c[r+7]),!1).toString(),r+=8;break;case"z":default:r++}return u.toString()},r.updateAttr=function(){var e,t,r=this.config,n=r.calculatedAttrs,a={};e=(0,i.pluckNumber)(n.x,this.getScaledVal(r.x,!0)),t=(0,i.pluckNumber)(n.y,this.getScaledVal(r.y,!1)),r.pathStr?(a.path=this.getScaledPath(),a.transform="T"+e+","+t):a.path="M"+e+","+t+"L"+(0,i.pluckNumber)(n.toX,e,this.getScaledVal(r.tox,!0))+","+(0,i.pluckNumber)(n.toY,t,this.getScaledVal(r.toy,!1)),this._setConfig("attr",a)},r._getAnnotationAttrs=function(){var e,t,r,n,a,i=this.config,o=this._getConfig("attr")||{},s=i.color;return o.stroke=s,this.rawConfig.color&&(o.fill=s),o["stroke-width"]=this.getScaledVal(i.borderThickness),o["stroke-dasharray"]=i.dashArrayStr,e=o.x||this.getScaledVal(i.x,!0),t=o.y||this.getScaledVal(i.y,!1),r=o.toX||this.getScaledVal(i.tox,!0),n=o.toY||this.getScaledVal(i.toy,!1),o.path||((a=this.getScaledPath())?(o.path=a,o.transform=o.transform||"T"+e+","+t):o.path=o.path||"M"+e+","+t+"L"+r+","+n),o},t}(s["default"]);t["default"]=c},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=r(254),o=n(r(367)),s=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"rect"},r.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);this.config.xRadius=(0,i.pluckNumber)(parseFloat(this.rawConfig.radius),0),this.config.elementType="rect"},r.updateAttr=function(){var e,t,r,n,a,o,s=this.config,l=s.calculatedAttrs;r=(0,i.pluckNumber)(l.x,this.getScaledVal(s.x,!0)),n=(0,i.pluckNumber)(l.y,this.getScaledVal(s.y,!1)),a=(0,i.pluckNumber)(l.toX,this.getScaledVal(s.tox,!0)),(o=(0,i.pluckNumber)(l.toY,this.getScaledVal(s.toy,!1)))>=0&&n>=0&&o<n&&(n=(e=[o,n])[0],o=e[1]),a>=0&&r>=0&&a<r&&(r=(t=[a,r])[0],a=t[1]),this._setConfig("attr",{x:r,y:n,width:Math.abs(a-r),height:Math.abs(o-n)})},r._getAnnotationAttrs=function(){var e=this.config,t=this._getConfig("attr")||{},r=this.getScaledVal(e.x),n=this.getScaledVal(e.y);return t.x="undefined"==typeof t.x?r:t.x,t.y="undefined"==typeof t.y?n:t.y,t.width="undefined"==typeof t.width?Math.abs(this.getScaledVal(e.tox)-r):t.width,t.height="undefined"==typeof t.height?Math.abs(this.getScaledVal(e.toy)-n):t.height,t.r=this.getScaledVal(e.xRadius),t.fill=e.color,t.stroke=e.borderColor,t["stroke-width"]=e.borderThickness,t["stroke-dasharray"]=e.dashArrayStr,t},t}(o["default"]);t["default"]=s},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=n(r(367)),o=r(254),s=function(e){var t=this.config,r=e.originalEvent.target,n=r.height,a=r.width,i=this._getConfig("align"),o=this._getConfig("vAlign"),s=this._getConfig("xScale"),l=n*this._getConfig("yScale"),c=a*s,u=function(e){var t=e.height,r=e.width,n=e.vAlign,a=e.align,i=e.x,o=e.y,s={x:i,y:o};switch(a){case"center":s.x=i-r/2;break;case"right":s.x=i-r}switch(n){case"middle":s.y=o-t/2;break;case"bottom":s.y=o-t}return s}({x:t.derivedX,y:t.derivedY,height:l,width:c,align:i,vAlign:o});this.config.loadedWidth=a,this.config.loadedHeight=n,t=Object.assign(this.rawConfig,{x:u.x,y:u.y,width:c,height:l,autoScale:0}),this.getGraphicalElement(this.config.id,this.config.animationLabel).attr(t),this.rawConfig.onload&&this.rawConfig.onload.call(this,{width:c,height:l}),e.detachHandler()},l=function(e){function t(t){var r;return(r=e.call(this,t)||this)._listener=s,r}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"image"},r.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var r=this.rawConfig,n=this.config;n.url=(0,o.getValidValue)(r.url),n.xScale=n.rawXScale=(0,o.pluckNumber)(r.xScale,100)/100,n.yScale=n.rawYScale=(0,o.pluckNumber)(r.yScale,100)/100,n.width=(0,o.pluckNumber)(n.loadedWidth,r.width),n.height=(0,o.pluckNumber)(n.loadedHeight,r.height),n.align=(0,o.pluck)(r.align,"left"),n.vAlign=(0,o.pluck)(r.vAlign,"top"),n.xScale=n.xScale*(this.groupConfig.scaleX||1),n.yScale=n.yScale*(this.groupConfig.scaleY||1),n.elementType="image","undefined"==typeof n.width&&"undefined"==typeof n.height&&this.addEventListener("load",this._listener)},r.updateAttr=function(){var e=this.getLinkedParent(),t=this.config,r=t.calculatedAttrs;this.config.xScale=e.config.scaleX*t.rawXScale,this.config.yScale=e.config.scaleY*t.rawYScale,this._setConfig("attr",{x:(0,o.pluckNumber)(r.x,this.getScaledVal(t.x,!0)),y:(0,o.pluckNumber)(r.y,this.getScaledVal(t.y,!1))})},r._getAnnotationAttrs=function(){var e=this.config,t=e.attr,r=(0,o.pluckNumber)(e.attr.x,e.x),n=(0,o.pluckNumber)(e.attr.y,e.y);return(0,o.pluckNumber)(this.rawConfig.autoscale,this.rawConfig.autoScale,1)||(t={x:r,y:n}),e.derivedX=t.x="undefined"==typeof t.x?this.getScaledVal(r,!0):t.x,e.derivedY=t.y="undefined"==typeof t.y?this.getScaledVal(n,!1):t.y,t.src=e.url,t.opacity=(0,o.pluckNumber)(e.rawAlpha,100)/100,"undefined"!=typeof e.width&&(t.width=e.width*e.xScale),"undefined"!=typeof e.height&&(t.height=e.height*e.yScale),t},t}(i["default"]);t["default"]=l},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=n(r(367)),o=r(254),s={left:"start",right:"end",center:"middle"},l={top:"bottom",middle:"middle",bottom:"top"},c={0:"0",1:"270",right:"90",cw:"90",left:"270",ccw:"270"};var u=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"text"},r.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var r,n=this.rawConfig,a=this.groupConfig;this.config.text=(0,o.parseUnsafeString)((0,o.pluck)(n.text,n.label,"")),this.config.font=(0,o.pluck)(n.font,a.font,"Verdana, sans"),this.config.fontSize=(0,o.pluckFontSize)(n.fontSize,a.fontSize,10),this.config.align=(0,o.pluck)(s[n.align&&n.align.toLowerCase()],s[a.textAlign&&a.textAlign.toLowerCase()],"middle"),this.config.vAlign=(0,o.pluck)(l[n.vAlign&&n.vAlign.toLowerCase()],l[a.textVAlign&&a.textVAlign.toLowerCase()],"middle"),this.config.radius=(0,o.pluckNumber)(parseFloat(n.radius),0),this.config.fontWeight=(0,o.pluckNumber)(n.bold,0)?"bold":"normal",this.config.outlineText=(0,o.pluckNumber)(t.outlineText,0),this.config.fontStyle=(0,o.pluckNumber)(n.italic,0)?"italic":"normal",this.config.bgColor=(r=n.bgColor,(/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(r)?r:/(^[0-9A-F]{6}$)|(^[0-9A-F]{3}$)/i.test(r))?n.bgColor:"none"),this.config.borderThickness=(0,o.pluckNumber)(parseFloat(this.rawConfig.borderThickness),parseFloat(this.rawConfig.thickness),1),this.config.rotateText=(0,o.pluck)(n.rotateText,a.rotateText,"0"),this.config.rotateAngle=c[this.config.rotateText&&this.config.rotateText.toLowerCase()],this.config.wrap=(0,o.pluckNumber)(n.wrap,a.wrapText,n.wrapHeight,n.wrapWidth,1),this.config.wrap&&(this.config.wrapWidth=(0,o.pluckNumber)(n.wrapWidth),this.config.wrapHeight=(0,o.pluckNumber)(n.wrapHeight)),this.config.leftMargin=(0,o.pluckNumber)(n.leftMargin,0),this.config.elementType="text"},r.getText=function(){var e=this.config,t=this.getFromEnv("smartLabel"),r=this.getLinkedParent(),n=r&&r._getConfig("scaleText"),a=n?this.getScaledVal(e.wrapWidth,!0):e.wrapWidth,i=n?this.getScaledVal(e.wrapHeight,!1):e.wrapHeight,s={fontStyle:e.fontStyle,fontFamily:e.font,fontWeight:e.fontWeight,fontSize:e.fontSize+"px","text-anchor":e.align,"vertical-align":e.vAlign};return(0,o.setLineHeight)(s),t&&t.setStyle(s),t&&e.wrap?t.getSmartText(e.text,a,i,0).text:e.text},r._getFillColor=function(e,t){var r=this.config.type,n={color:"",alpha:"",angle:"",ratio:"",radialGradient:"circle"===r||"arc"===r};return n.color=e.fontColor||e.fillColor||e.color||t.color||"#FF0000",n.alpha=(0,o.pluck)(e.fillAlpha,parseFloat(e.alpha),t.alpha,100),n.angle=360-(0,o.pluckNumber)(e.fillAngle,0),n.ratio=(0,o.pluck)(e.fillRatio),e.fillPattern&&(n.radialGradient="radial"===e.fillPattern||(0,o.pluckNumber)(e.fillPattern)),n.radialGradient&&(n.gradientUnits="objectBoundingBox",n.cx=.5,n.cy=.5,n.fx=.5,n.fy=.5),this.config.rawColor=n.color,this.config.rawAlpha=n.alpha,this.config.rawAngle=n.angle,this.config.rawFillPattern=n.radialGradient?"radial":"linear",this.config.rawRatio=n.ratio,(0,o.toRaphaelColor)(n)},r.updateAttr=function(){var e,t=this.config,r=t.calculatedAttrs,n=(0,o.pluckNumber)(r.x,this.getScaledVal(t.x,!0)),a=(0,o.pluckNumber)(r.y,this.getScaledVal(t.y,!0));"0"!==t.rotateText&&(e=(0,o.getSuggestiveRotation)(parseFloat(t.rotateAngle),n,a)),this._setConfig("attr",{x:n,y:a,transform:e})},r._getAnnotationAttrs=function(){var e,t,r=this.config,n=this._getConfig("attr")||{},a=this.getScaledVal(r.x,!0),i=this.getScaledVal(r.y,!1);return n.x=("undefined"==typeof n.x?a:n.x)+r.leftMargin/2,n.y="undefined"==typeof n.y?i:n.y,n.text=this.getText(),n.fill=r.color,n.outlineText=r.outlineText,n.text&&(e=this.rawConfig.borderColor,t=this.rawConfig.borderAlpha,e&&"none"!==e&&0!==t||this.rawConfig.bgColor)?n["text-bound"]=[(0,o.toRaphaelColor)(r.bgColor),r.borderColor,r.borderThickness,2,r.radius,r.dashArrayStr]:n["text-bound"]=[],n["font-style"]=r.fontStyle,n["font-weight"]=r.fontWeight,n["font-family"]=r.font,n["font-size"]=this.getScaledFont(r.fontSize),n["text-anchor"]=r.align,n["vertical-align"]=r.vAlign,"0"!==r.rotateText&&(n.transform=n.transform||(0,o.getSuggestiveRotation)(parseFloat(r.rotateAngle),a,i)),n},t}(i["default"]);t["default"]=u},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=n(r(367)),o=r(254),s=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"polygon"},r.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var r=this.rawConfig;this.config.sides=(0,o.pluckNumber)((0,o.clampNumber)(r.sides,3),5),this.config.startAngle=(0,o.pluckNumber)(parseFloat(r.startAngle),0),this.config.xRadius=(0,o.pluckNumber)(parseFloat(r.radius),0),this.config.elementType="polypath"},r.updateAttr=function(){var e=this.config,t=e.calculatedAttrs;this._setConfig("attr",{polypath:[e.sides,(0,o.pluckNumber)(t.x,this.getScaledVal(e.x,!0)),(0,o.pluckNumber)(t.y,this.getScaledVal(e.y,!1)),this.getScaledVal(e.xRadius),e.startAngle,0]})},r._getAnnotationAttrs=function(){var e=this.config,t=this._getConfig("attr")||{};return t.fill=e.color,t.stroke=e.borderColor,t["stroke-width"]=e.borderThickness,t["stroke-dasharray"]=e.dashArrayStr,t.polypath=t.polypath||[e.sides,this.getScaledVal(e.x,!0),this.getScaledVal(e.y,!1),this.getScaledVal(e.xRadius),e.startAngle,0],t},t}(i["default"]);t["default"]=s},function(e,t,r){var n=r(369)((function(e,t){var r={};for(var n in t)e(t[n],n,t)&&(r[n]=t[n]);return r}));e.exports=n},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(384)),i=r(254),o=r(387);function s(e){var t=e.sender;(0,o.isValidDataset)(t)&&t.registerFactory("regression",(function(e){var t=e.getFromEnv("chart").getFromEnv("dataSource").chart,r=e.config.JSONData;(0,i.componentFactory)(e,a["default"],"regression",Number((0,o.hasRegressionLine)(t,r)),[e])}))}var l={extension:function(e){e.addEventListener("instantiated",s)},name:"Regression",type:"extension",requiresFusionCharts:!0};t["default"]=l},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=r(270),o=n(r(385)),s=n(r(386)),l=r(254),c=r(387),u=r(262),h=n(r(388)),f=function(){this.hide()};(0,u.addDep)({name:"regressionLineAnimation",type:"animationRule",extension:h["default"]});var d=function(e){function t(){var t;return(t=e.call(this)||this)._config={regressionPoints:[]},t.regressionLine=[],t}(0,a["default"])(t,e);var r=t.prototype;return r.getType=function(){return"extension"},r.getName=function(){return"regression"},r.configureAttributes=function(e){var t=this.getFromEnv("dataSource").chart,r=e.config,n=r.JSONData,a=this._config;a.regressionPoints.splice(0,a.regressionPoints.length),a.showYOnX=(0,l.pluckNumber)(n.showyonx,t.showyonx,1),a.regressionLineColor=(0,l.toRaphaelColor)((0,l.pluck)(n.regressionlinecolor,t.regressionlinecolor,r.anchorbordercolor,r.lineColor,r.anchorBgColor,"fff000")),a.polynomialRegressionLineColor=(0,l.toRaphaelColor)((0,l.pluck)(n.polynomialregressionlinecolor,t.polynomialregressionlinecolor,a.regressionLineColor)),a.regressionLineThickness=(0,l.pluckNumber)(n.regressionlinethickness,t.regressionlinethickness,n.anchorborderthickness,1),a.polynomialRegressionLineThickness=(0,l.pluckNumber)(n.polynomialregressionlinethickness,t.polynomialregressionlinethickness,a.regressionLineThickness),a.regressionLineAlpha=(0,l.pluckNumber)(n.regressionlinealpha,t.regressionlinealpha,100),a.polynomialRegressionLineAlpha=(0,l.pluckNumber)(n.polynomialregressionlinealpha,t.polynomialregressionlinealpha,a.regressionLineAlpha),(0,c.createLinear)(t,n)&&a.regressionPoints.push((0,o["default"])(n.data,a.showYOnX)),(0,c.createPolynomial)(t,n)&&a.regressionPoints.push((0,s["default"])(n.data,a.showYOnX))},r.draw=function(){var e,t,r,n,a,i,o,s=this._config,c=this.getFromEnv("xAxis"),u=this.getFromEnv("yAxis"),h=this.getFromEnv("chart"),d=h.getChildren("canvas")[0].config,p=this.getContainer("regressionlinecontainer"),g=this.getFromEnv("animationManager"),m=s.regressionPoints,v=[],b=[],y=this.getGraphicalElement("regressionLineLinear"),x=this.getGraphicalElement("regressionLinePolynomial"),w=f;!this.getLinkedParent().getState("visible")&&(o="disappearing"),p=this.addContainer("regressionlinecontainer",g.setAnimation({el:p||"group",attr:{name:"regressionlinecontainer","clip-rect":[d.canvasLeft,d.canvasTop,d.canvasWidth,d.canvasHeight]},container:h.getChildContainer("abovePlotGroup"),component:this,label:"group"}));for(var _=0;_<m.length;_++){var S=l.BLANKSTRING;if(v=m[_][0],e=(b=m[_][1]).length,0===v.length&&0===b.length)n=!0,S+="M0,0";else if(0!==v.length&&0===b.length)n=!1,S+="M0,0";else if(0===v.length)n=!0,S+="M"+c.getPixel(b[0].x)+","+u.getPixel(b[0].y),S+="L"+c.getPixel(b[e-1].x)+","+u.getPixel(b[e-1].y);else{n=!1,S+="M"+c.getPixel(b[0].x)+","+u.getPixel(b[0].y),S+=" R"+c.getPixel(b[1].x)+","+u.getPixel(b[1].y);for(var C=2;C<e;C++)S+=" "+c.getPixel(b[C].x)+","+u.getPixel(b[C].y)}n?a={opacity:Number(s.regressionLineAlpha)/100,stroke:s.regressionLineColor,"stroke-width":s.regressionLineThickness,path:S}:i={opacity:Number((0,l.pluck)(s.polynomialRegressionLineAlpha,s.regressionLineAlpha))/100,stroke:(0,l.pluck)(s.polynomialRegressionLineColor,s.regressionLineColor),"stroke-width":(0,l.pluck)(s.polynomialRegressionLineThickness,s.regressionLineThickness),path:S}}"disappearing"!==o&&(y&&y.show(),x&&x.show()),t=g.setAnimation({el:y||"path",container:p,component:this,doNotRemove:!0,attr:!("disappearing"===o)&&a,callback:"disappearing"===o&&w,label:"path"}),y||this.addGraphicalElement("regressionLineLinear",t),r=g.setAnimation({el:x||"path",container:p,component:this,doNotRemove:!0,attr:!("disappearing"===o)&&i,callback:"disappearing"===o&&w,label:"path"}),x||this.addGraphicalElement("regressionLinePolynomial",r)},t}(i.ComponentInterface);t["default"]=d},function(e,t,r){"use strict";function n(e,t,r){return parseFloat(e[r])-parseFloat(t[r])}function a(e,t){return n(e,t,"x")}function i(e,t){return n(e,t,"y")}t.__esModule=!0,t["default"]=function(e,t){if(Number(t))return function(e){e.sort(a);for(var t,r,n,i,o=[],s=[],l=0,c=0,u=0,h=0,f=e.length,d=[],p=0;p<e.length;p++)n=Number(e[p].x),i=Number(e[p].y),isNaN(n)||isNaN(i)||(o.push(n),s.push(i));f=o.length;for(var g=0;g<f;g++)l+=o[g],c+=s[g];l/=f,c/=f;for(var m=0;m<f;m++)u+=(o[m]-l)*(s[m]-c),h+=(o[m]-l)*(o[m]-l);if(0===h)return[[],[]];return r=c-(t=u/h)*l,d.push({x:o[0],y:t*o[0]+r}),d.push({x:o[f-1],y:t*o[f-1]+r}),[[],d]}(e);return function(e){e.sort(i);for(var t,r,n,a,o=[],s=[],l=0,c=0,u=0,h=0,f=e.length,d=[],p=0;p<e.length;p++)n=Number(e[p].x),a=Number(e[p].y),isNaN(n)||isNaN(a)||(o.push(n),s.push(a));f=o.length;for(var g=0;g<f;g++)l+=o[g],c+=s[g];l/=f,c/=f;for(var m=0;m<f;m++)u+=(o[m]-l)*(s[m]-c),h+=(s[m]-c)*(s[m]-c);if(0===h)return[[],[]];return r=l-(t=u/h)*c,(d=[]).push({x:t*s[0]+r,y:s[0]}),d.push({x:t*s[f-1]+r,y:s[f-1]}),[[],d]}(e)}},function(e,t,r){"use strict";function n(e,t){return parseFloat(e.x)-parseFloat(t.x)}t.__esModule=!0,t["default"]=function(e,t){if(Number(t))return function(e){e.sort(n);for(var t,r,a,i,o,s,l,c,u,h,f=[],d=[],p=0,g=0,m=e.length,v=0,b=0,y=0,x=0,w=0,_=[],S=0;S<e.length;S++)u=Number(e[S].x),h=Number(e[S].y),isNaN(u)||isNaN(h)||(f.push(u),d.push(h));m=f.length;for(var C=0;C<m;C++)p+=d[C],g+=f[C]*d[C],w+=f[C]*f[C]*d[C],v+=f[C],b+=f[C]*f[C],x+=f[C]*f[C]*f[C],y+=f[C]*f[C]*f[C]*f[C];if(r=g-v*p/m,i=w-b*p/m,(t=b-v*v/m)*(o=y-b*b/m)-(a=x-b*v/m)*a==0||0===m)return[e,[]];c=p/m-(l=(r*o-i*a)/(t*o-a*a))*(v/m)-(s=(i*t-r*a)/(t*o-a*a))*(b/m);for(var k=0;k<m;k++)_.push({x:f[k],y:s*f[k]*f[k]+l*f[k]+c});return[e,_]}(e);return function(e){e.sort(n);for(var t,r,a,i,o,s,l,c,u,h,f=[],d=[],p=0,g=0,m=e.length,v=0,b=0,y=0,x=0,w=0,_=[],S=0;S<e.length;S++)u=Number(e[S].x),h=Number(e[S].y),isNaN(u)||isNaN(h)||(f.push(u),d.push(h));m=f.length;for(var C=0;C<m;C++)p+=f[C],g+=d[C]*f[C],w+=d[C]*d[C]*f[C],v+=d[C],b+=d[C]*d[C],x+=d[C]*d[C]*d[C],y+=d[C]*d[C]*d[C]*d[C];if(r=g-v*p/m,i=w-b*p/m,(t=b-v*v/m)*(o=y-b*b/m)-(a=x-b*v/m)*a==0||0===m)return[e,[]];c=p/m-(l=(r*o-i*a)/(t*o-a*a))*(v/m)-(s=(i*t-r*a)/(t*o-a*a))*(b/m);for(var k=0;k<m;k++)_.push({x:s*d[k]*d[k]+l*d[k]+c,y:d[k]});return[e,_]}(e)}},function(e,t,r){"use strict";t.__esModule=!0,t.createPolynomial=function(e,t){var r=Number(e.showpolynomialregressionline)||0;return isNaN(t.showpolynomialregressionline)&&r||Number(t.showpolynomialregressionline)},t.createLinear=function(e,t){var r=Number(e.showregressionline)||0;return isNaN(t.showregressionline)&&r||Number(t.showregressionline)},t.isInArray=function(e,t){return t.indexOf(e.toLowerCase())>-1},t.hasRegressionLine=function(e,t){return t.showregressionline||e.showregressionline||t.showpolynomialregressionline||e.showpolynomialregressionline},t.isValidDataset=void 0;var n=["scatter","bubble","errorScatter","selectScatter"];t.isValidDataset=function(e){return function(e){return"dataset"===e.getType()}(e)&&n.indexOf(e.getName())>=0}},function(e,t,r){"use strict";function n(){var e,t=this.getFromEnv("chart").getChildren("canvas")[0],r=0,n=[],a=[];for(n.push(t.config.canvasLeft),n.push(t.config.canvasTop),n.push(0),n.push(t.config.canvasHeight),e=n.length;r<e;)a.push(n[r]),r++;return a[2]=t.config.canvasWidth,[{initialAttr:function(){return{"clip-rect":n}},finalAttr:function(){return{"clip-rect":a}},effect:"linear",slot:"plot"}]}t.__esModule=!0,t["default"]=void 0;var a={"initial.extension.regression":function(){return{"path.appearing":null,"path.updating":null,"path.disappearing":null,"group.appearing":n,"*":null}}};t["default"]=a},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=r(254),i=n(r(390)),o=n(r(391)),s=n(r(409)),l=n(r(410)),c=n(r(411)),u=n(r(412)),h=n(r(413)),f=n(r(414)),d=n(r(415)),p=n(r(416)),g=r(262),m=n(r(417)),v={DragZoomIn:o["default"],ZoomResetButton:s["default"],ZoomOutButton:l["default"],DbTapZoom:u["default"],DragPin:h["default"],ZoomInButton:c["default"],DragPan:f["default"],PinchZoom:d["default"],SwipeGesture:p["default"]};var b={extension:function(e){var t,r;(0,m["default"])((0,g.getDep)("redraphael","plugin")),e.addEventListener("instantiated",(function(e){var n,o=e.sender;"canvas"===o.getType()&&o.registerFactory("inputManager",(function(e){if(r=e.getFromEnv("chart"),t=r.constructor.includeInputOptions&&r.constructor.includeInputOptions()){(0,a.componentFactory)(e,i["default"],"inputManager",1,[{}]),n=e.getChildren("inputManager")[0];for(var o=0,s=t&&t.length;o<s;o++)(0,a.componentFactory)(n,v[t[o]],t[o],1,[{}])}}))}))},name:"inputAdapter",type:"extension",requiresFusionCharts:!0};t["default"]=b},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=r(270),o=r(254),s=function(e,t,r,n){var a,i;(i=n[e])&&(i.some((function(e,n){return e.callback===t&&e.component===r&&(a=n,!0)})),a!==o.UNDEF&&i.splice(a,1))},l=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.configure=function(){var e=this.getFromEnv("chart"),t=e.getInputConfigurations;this.addToEnv("canvas",this.getLinkedParent()),this.addToEnv("inputOptions",t&&t.call(e)),this.config={controlObj:{},dependancyObj:{}}},r.addEventToChild=function(){var e=this,t=e.getChildren(),r=["zoomin","zoomout","dragzoomenabled","dragzoomdisabled","pinenabled","pindisabled","panenabled","pandisabled"],n=function(n){r.forEach((function(r){e.addExtEventListener(r,e.manageEvents.bind(e),t[n][0])}))};for(var a in t)n(a)},r.manageEvents=function(e){var t=this.config.dependancyObj,r=e.type;t[r]&&t[r].forEach((function(t){t.component!==e.sender&&t.callback.call(t.component,e)}))},r.fetchZoomableAxes=function(){if(!this.config.axesObArr){var e=this.config.axesObArr=[];this.getLinkedParent().getAxes().forEach((function(t){(t.config.zoomable||t.config.pannable)&&e.push({axis:t.axis,stack:[],isY:t.isY})})),this.addToEnv("axesObArr",e)}},r.draw=function(){this.fetchZoomableAxes(),this.addEventToChild()},r.getControl=function(e,t){var r,n=this.config.controlObj,a=this.getLinkedParent();t||e.forEach((function(e){(r=e.nativeInteraction)instanceof Array?r.forEach((function(t){(n[t]||(n[t]=[])).push({callback:e.callback,component:e.component}),e.component.addExtEventListener(t,e.callback,a)})):((n[r]||(n[r]=[])).push({callback:e.callback,component:e.component}),e.component.addExtEventListener(r,e.callback,a))}))},r.releaseControl=function(e){var t,r=this,n=r.getLinkedParent();e.forEach((function(e){(t=e.nativeInteraction)instanceof Array?t.forEach((function(t){e.component.removeExtEventListener(t,e.callback,n),s(t,e.callback,e.component,r.config.controlObj)})):(e.component.removeExtEventListener(t,e.callback,n),s(t,e.callback,e.component,r.config.controlObj))}))},r._updateControlObj=function(e,t){var r,n;(n=this.config.controlObj[e])&&(n.some((function(e,n){return e.callback===t&&(r=n,!0)})),r!==o.UNDEF&&n.splice(r,1))},r.registerDependancy=function(e){var t,r=this.config.dependancyObj;e.forEach((function(e){(t=e.derivedInteraction)instanceof Array?t.forEach((function(t){(r[t]||(r[t]=[])).push({callback:e.callback,component:e.component,derivedInteraction:t})})):(r[t]||(r[t]=[])).push(e)}))},r.removeDependancy=function(e){var t,r=this;e.forEach((function(e){(t=e.derivedInteraction)instanceof Array?t.forEach((function(t){s(t,e.callback,e.component,r.config.dependancyObj)})):s(t,e.callback,e.component,r.config.dependancyObj)}))},r.zoomOut=function(){var e=this.getChildren("ZoomOutButton");e&&e[0].zoomOut()},r.zoomTo=function(e,t){var r=this.getChildren("DragZoomIn");r&&r[0].zoomTo(e,t)},r.resetChart=function(){var e=this.getChildren("ZoomResetButton");e&&e[0].zoomOut()},r.setZoomMode=function(e){var t=this.getChildren("DragPin");t&&(e?t[0].disable():t[0].enable())},t}(i.ComponentInterface);t["default"]=l},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(272)),i=n(r(268)),o=n(r(392)),s=r(254),l=Math.min,c=Math.abs,u=function(e){function t(){var r;r=e.call(this)||this;var n=(0,a["default"])(r);return n.controlArr=[{nativeInteraction:["fc-dragstart"],callback:n.dragStart.bind(n),component:n},{nativeInteraction:["fc-dragmove"],callback:n.onDrag.bind(n),component:n},{nativeInteraction:["fc-dragend"],callback:n.onDragEnd.bind(n),component:n}],s.isFirefox&&n.controlArr.push({nativeInteraction:["fc-mousedown"],callback:t.mousedown,component:n}),n._toggle=function(){n._checkStackLen()&&n.toggle()},r}(0,i["default"])(t,e);var r=t.prototype;return r.getName=function(){return"dragZoomIn"},r.configure=function(){e.prototype.configure.call(this);var t=this.config;t.boxStyle=t.boxStyle||{"stroke-width":1,stroke:"red",fill:"#00FF00",opacity:.2,cursor:"ne-resize"},!this.config.skipGraphics&&this.setLinkedItem("button",this.createButton({icon:"zoomModeIcon",tooltext:this.config.tooltext,handlers:{click:this._toggle},state:"activated"})),this.enable("pressed"),this.getLinkedParent().registerDependancy([{derivedInteraction:["pinenabled","pindisabled","panenabled","pandisabled"],callback:this.dependancyFn,component:this}])},t.mousedown=function(e){e&&e.preventDefault()},r.setControl=function(){var e=this.getLinkedParent(),t=this.getLinkedItem("button"),r=this.controlArr;e.releaseControl(r),this.isEnabled()&&e.getControl(r),t&&t.setCurrentState(this.isEnabled()?this.config.state:"disabled")},r.getCoordinates=function(e){var t=this.getFromEnv("chart"),r=(0,s.getMouseCoordinate)(t.getFromEnv("chart-container"),e,t);return{x:r.chartX,y:r.chartY}},r.inCanvasLimit=function(e){var t=this.getFromEnv("canvas").getGraphicalElement("canvasElement").attrs,r=t.x,n=t.y,a=e.x-t.x,i=e.y-t.y,o=t.width-a,s=t.height-i;return e.x>r&&e.y>n&&e.width<o&&e.height<s},r.drawBox=function(){var e,t=this.config,r=this.getGraphicalElement("box"),n=this.getFromEnv("canvas").getGraphicalElement("canvasElement").attrs;r||(r=this.addGraphicalElement("box",this.getFromEnv("paper").rect())).attr(t.boxStyle),e=function(e,t,r,n){t.x<r.x&&(t.x=r.x),t.y<r.y&&(t.y=r.y),t.x>r.width+r.x&&(t.x=r.width+r.x),t.y>r.height+r.y&&(t.y=r.height+r.y);var a,i=t.x-e.x,o=e.y-t.y;return i>0&&o>0?a=n?"ne-resize":"e-resize":i<0&&o>0?a=n?"nw-resize":"w-resize":i<0&&o<0?a=n?"sw-resize":"w-resize":i>0&&o<0&&(a=n?"se-resize":"e-resize"),{x:l(e.x,t.x),y:l(e.y,t.y),width:i=c(i),height:o=c(o),cursor:a}}(this.dragBoxConfig.startPos,this.dragBoxConfig.currentPos,n,this.getFromEnv("chart").isXY),t.scaleX||(e.x=n.x,e.width=n.width),t.scaleY||(e.y=n.y,e.height=n.height),r.attr(e),r.show()},r.onDragEnd=function(e){var t,r,n,a,i=this.config,o=this.getFromEnv("canvas").getGraphicalElement("canvasElement").attrs,s=this.getGraphicalElement("box")||{},l=s.attrs;l&&i.dragmove&&(i.dragmove=!1,s.hide(),i.startPosX=t=(l.x-o.x)/o.width,i.endPosX=r=(l.x+l.width-o.x)/o.width,i.startPosY=n=(l.y-o.y)/o.height,i.endPosY=a=(l.y+l.height-o.y)/o.height,r-t<.01||a-n<.01||this.zoomTo(void 0,void 0,e))},r.zoomTo=function(e,t,r){var n,a,i,o,s,l,c,u,h=this,f=h.config,d=!1,p={},g=f.catZoomLimit-1;h.getFromEnv("axesObArr").forEach((function(m){var v=m.axis,b=v.getFromEnv("chart"),y=b.getChildren("scrollBar")&&b.getChildren("scrollBar")[0],x=v.getVisibleConfig(),w=m.isY?x.maxValue:x.minValue,_=x.maxValue-x.minValue;m.isY?(o=n=void 0===e?w-_*f.endPosY:e,l=a=void 0===t?w-f.startPosY*_:t):(s=n=void 0===e?w+f.startPosX*_:e,c=a=void 0===t?w+_*f.endPosX:t,p=h.constructor._getZoomInfo(s,c,v)),g&&!v.config.isVertical&&Math.round(a-n)<g&&(n=Math.round(n),a=n+g),(_>1||a-n>1)&&(f.dragendFn&&"function"==typeof f.dragendFn&&f.dragendFn(r,n,a),u=v.setVisibleConfig(n,a),b.setScrollBarDimension&&b.setScrollBarDimension(),y&&!y.getState("removed")&&y.asyncDraw(),d=d||u,m.stack.push(x),i=m.stack.length+1)})),d&&h._raiseZoomEvents("zoomin","zoomedin",Object.assign(p,{level:i,startX:s,endX:c,startY:o,endY:l},{originalEvent:r&&r.originalEvent}))},r.onDrag=function(e){var t=this.config,r=this.getCoordinates(e.originalEvent);t.dragmove=!0,this.getFromEnv("animationManager").setAnimationState("drag"),t.dragmoveFn&&"function"==typeof t.dragmoveFn&&t.dragmoveFn(e),this.dragBoxConfig.currentPos=r,this.drawBox()},r.dragStart=function(e){var t=this.config,r=this.getCoordinates(e.originalEvent);t.dragstartFn&&"function"==typeof t.dragstartFn&&t.dragstartFn(e),this.dragBoxConfig={startPos:r,currentPos:r}},r.enable=function(){!0!==this.config.enabled&&(this.config.enabled=!0,this.config.state="pressed",this.fireEvent("dragzoomenabled"),this.setControl())},r.disable=function(){!1!==this.config.enabled&&(this.config.enabled=!1,this.config.state="activated",this.fireEvent("dragzoomdisabled"),this.setControl())},r.dependancyFn=function(e){"pinenabled"===e.type||"panenabled"===e.type?this.disable():"pindisabled"!==e.type&&"pandisabled"!==e.type||this.enable()},t}(o["default"]);t["default"]=u},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=r(270),o=r(393),s=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.configure=function(){var e=this.config={},t=this.getFromEnv("inputOptions")||{};Object.assign(e,t[this.getName()])},r._checkStackLen=function(){var e=this.getFromEnv("axesObArr"),t=0;return e&&e.forEach((function(e){t+=e.stack.length})),t},t._getZoomInfo=function(e,t,r){var n={startIndex:Math.ceil(e),endIndex:Math.floor(t)};return r.getLabel&&(n.startLabel=r.getLabel(n.startIndex).label,n.endLabel=r.getLabel(n.endIndex).label),n},r._raiseZoomEvents=function(e,t,r,n){var a=this.getFromEnv("chart");e&&this.fireEvent(e),t&&a.fireChartInstanceEvent(t,r,n),t&&a.fireChartInstanceEvent("zoomed",r,n)},r.getType=function(){return"canvasInput"},r.enable=function(e){!0!==this.config.enabled&&(this.config.enabled=!0,e&&this.fireEvent(e),this.setControl())},r.disable=function(e){!1!==this.config.enabled&&(this.config.enabled=!1,e&&this.fireEvent(e),this.setControl())},r.toggle=function(e){this.isEnabled()?this.disable(e):this.enable(e)},r.isEnabled=function(){return this.config.enabled},r.setControl=function(){var e=this.getLinkedItem("button");e&&e.setCurrentState(this.isEnabled()?this.config.state:"disabled")},r.createButton=function(e){var t,r=this.getLinkedParent().getFromEnv("chart");for(var n in(t=r.getFromEnv("toolbar").attachChild(o.Tool,"tool",this.getId())).configure(Object.assign({},r.getFromEnv("tool-config"),{name:e.icon,tooltext:e.tooltext})),e.handlers)e.handlers.hasOwnProperty(n)&&t.addEventListener("fc-"+n,e.handlers[n]);return t.setLinkedItem("input",this),t},t}(i.ComponentInterface);t["default"]=s},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0;var a=r(394);t.ScrollBar=a.ScrollBar,t.Checkbox=a.Checkbox,t.Hamburger=a.Hamburger,t.Label=a.Label,t.MenuItemContainer=a.MenuItemContainer,t.Tool=a.Tool;var i=n(r(408));t.ToolBar=i["default"]},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0;var a=n(r(395));t.ScrollBar=a["default"];var i=n(r(402));t.Checkbox=i["default"];var o=n(r(403));t.Hamburger=o["default"];var s=n(r(406));t.Label=s["default"];var l=n(r(407));t.Separator=l["default"];var c=n(r(404));t.MenuItemContainer=c["default"];var u=n(r(397));t.Tool=u["default"]},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=r(254),o=n(r(396)),s=n(r(397)),l=n(r(399)),c=n(r(400)),u=n(r(401)),h=r(398),f=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.scale=1},r.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var r=this.config,n=this.getFromEnv("chart-attrib");r.conf={},r.isOpposite=t&&!t.isHorizontal?(0,o["default"])(n.scrollposition,"right"):(0,o["default"])(n.scrollposition,"top"),r.color=n.scrollcolor&&(0,i.convertColor)(n.scrollcolor),r.padding=(0,i.pluckNumber)(n.scrollpadding,0),r.height=(0,i.pluckNumber)(n.scrollheight,12),r.width=(0,i.pluckNumber)(n.scrollwidth,12),r.displayFlat=(0,i.pluckNumber)(n.flatscrollbars,0),r.scrollBar3DLighting=(0,i.pluckNumber)(n.scrollbar3dlighting,1),r.startPercent=Math.min(1,Math.max(0,parseFloat(n.scrolltoend)||0)),r.showButtons=!!(0,i.pluckNumber)(n.scrollshowbuttons,1),r.buttonPadding=(0,i.pluckNumber)(n.scrollbtnpadding,0),r.style=t.style,r.drawStripes=t.drawStripes,r.restrictScrollAnchor=(0,i.pluckNumber)(t.restrictScrollAnchor,1),this.setConfiguaration(t),r.evt={tooltext:void 0,click:i.stubFN,hover:[i.stubFN,i.stubFN]},this.createScrollItems()},r.createScrollItems=function(){var e=this.config,t=e.style||{},r=this.getChildren("scrollTrack")&&this.getChildren("scrollTrack")[0],n=this.getChildren("scrollAnchor")&&this.getChildren("scrollAnchor")[0],a=this.getChildren("scrollButtons")&&this.getChildren("scrollButtons")[0],i=this.getChildren("scrollButtons")&&this.getChildren("scrollButtons")[0];r||((r=this.attachChild(l["default"],"scrollTrack")).configure({style:{track:t.track},color:e.color,displayFlat:e.displayFlat,isHorizontal:e.isHorizontal}),r.attachEventHandlers()),n||((n=this.attachChild(c["default"],"scrollAnchor")).configure({style:{scroller:t.scroller,grip:t.grip},drawStripes:e.drawStripes,color:e.color,displayFlat:e.displayFlat,isHorizontal:e.isHorizontal}),n.attachEventHandlers()),!a&&e.showButtons&&((a=this.attachChild(u["default"],"scrollStartButton")).configure({type:"start",color:e.color,style:{button:t.button,arrow:t.arrow}}),a.attachEventHandlers()),!i&&e.showButtons&&((i=this.attachChild(u["default"],"scrollEndButton")).configure({type:"end",color:e.color,style:{button:t.button,arrow:t.arrow}}),i.attachEventHandlers())},r.getName=function(){return"scrollbar"},r.getType=function(){return"scrollbar"},r.setConfiguaration=function(e){var t=this.config;t.color||(t.color="#"+this.getFromEnv("chart").getFromEnv("color-manager").getColor("altHGridColor")),(0,h.mergeConf)(e,t)},r.getLogicalSpace=function(){var t=this.config,r=t.conf,n={};return(0,h.mergeConf)(t,n),(0,h.mergeConf)(n,r),e.prototype.getLogicalSpace.call(this)},r.setDimension=function(t){e.prototype.setDimension.call(this,t);var r=this.getLinkedParent(),n=r.getPosition&&r.getPosition()||{},a=this.getChildren("scrollTrack")[0].config;a.transLateX=n.x||0,a.transLateY=n.y||0},r.draw=function(){var e=this.config,t={};e.conf.isHorizontal?delete t.width:delete t.height,(0,h.mergeConf)(t,e,!0),this.addGraphicalElement({el:"group",attr:{name:"scrollContainer"},component:this,container:{id:"scrollbarContainer",label:"scrollbar",isParent:!0},label:"scrollbarGroup",id:"scrollbarGroup"})},r.attachEventHandlers=function(e){var t=this.config.evt;return e&&(e.scroll&&"function"==typeof e.scroll&&(t.scroll=e.scroll),e.scrollStart&&"function"==typeof e.scrollStart&&(t.scrollStart=e.scrollStart),e.scrollEnd&&"function"==typeof e.scrollEnd&&(t.scrollEnd=e.scrollEnd)),this},t}(s["default"]);f.registerSymbol=void 0,f._setConfiguaration=i.stubFN;var d=f;t["default"]=d},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(e,t){return String(e).toLowerCase()===String(t).toLowerCase()}},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=r(270),o=r(254),s=r(398),l=function(e){function t(t){var r;return(r=e.call(this,t)||this)._listeners={},r}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"button"},r.getType=function(){return"tool"},r.__setDefaultConfig=function(){var e=this.config;e.scale=1.15,e.width=o.touchEnabled?20:15,e.height=o.touchEnabled?20:15,e.radius=o.touchEnabled?4:2,e.spacing=2.5,e.marginTop=2.5,e.marginLeft=2.5,e.marginRight=2.5,e.marginBottom=2.5,e.fill="ffffff",e.fillAlpha="cccccc",e.symbolFill="ffffff",e.stroke="bbbbbb",e.symbolStroke="9a9a9a",e.strokeWidth=1,e.symbolStrokeWidth=1,e.symbolPadding=5,e.symbolHPadding=5,e.symbolVPadding=5,e.fillAlpha=100,e.stateStyle={},e.text=o.BLANKSTRING,e.marginTop=e.marginLeft=e.marginRight=e.marginBottom=2.5,e.labelFontSize=12},r.configureAttributes=function(e){void 0===e&&(e={});var t,r,n,a=this.config,i=function(e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];(r===o.UNDEF||!/tooltext/.test(t)&&""===r)&&delete e[t]}return e}(e);Object.assign(a,i),a.symbolName=a.name,this.setState("visible",!0!==a.isHidden),a.marginTop=(0,o.pluckNumber)(i.marginTop,i.spacing,a.marginTop),a.marginLeft=(0,o.pluckNumber)(i.marginLeft,i.spacing,a.marginLeft),a.marginRight=(0,o.pluckNumber)(i.marginRight,i.spacing,a.marginRight),a.marginBottom=(0,o.pluckNumber)(i.marginBottom,i.spacing,a.marginBottom),a.fill=(0,o.pluck)(i.fill,a.fill),a.fillAlpha=(0,o.pluckNumber)(i.fillAlpha,a.fillAlpha),a.labelFill=(0,o.pluck)(i.labelFill,a.labelFill),a.symbolFill=(0,o.pluck)(i.symbolFill,a.symbolFill),a.hoverFill=(0,o.pluck)(i.hoverFill,a.hoverFill),a.stroke=(0,o.pluck)(i.stroke,a.stroke),a.symbolStroke=(0,o.pluck)(i.symbolStroke,a.symbolStroke),a.strokeWidth=(0,o.pluckNumber)(i.strokeWidth,a.strokeWidth),a.symbolStrokeWidth=(0,o.pluckNumber)(i.symbolStrokeWidth,a.symbolStrokeWidth),t=a.symbolPadding=(0,o.pluckNumber)(i.symbolPadding,a.symbolPadding),a.symbolHPadding=(0,o.pluckNumber)(i.symbolHPadding,t),a.symbolVPadding=(0,o.pluckNumber)(i.symbolVPadding,t),a.hAlign=(0,o.pluck)(i.hAlign,"center").toLowerCase(),a.vAlign=(0,o.pluck)(i.vAlign,"middle").toLowerCase(),a.containerInfo=i.containerInfo||{id:"group",label:"group",isParent:!0},r=i.x,n=i.y,void 0===r||void 0===n?a.spaceNotHardCoded=!0:(a.x=r,a.y=n,a.spaceNotHardCoded=!1)},r.setDimension=function(e){void 0===e&&(e={});var t=this.config;e.x!==o.UNDEF&&(t.x=e.x),e.y!==o.UNDEF&&(t.y=e.y),e.width!==o.UNDEF&&(t.width=e.width),e.height!==o.UNDEF&&(t.height=e.height)},r.getAlignment=function(){return{hAlign:this.config.hAlign,vAlign:this.config.vAlign}},r.getLogicalSpace=function(){var e=this.config,t=e.width,r=e.height,n=e.marginTop,a=e.marginLeft,i=e.marginRight,o=e.marginBottom,s=e.scale;return t*=s,r*=s,(this.config.skipGraphics||this.getState("removed"))&&(t=r=o=a=i=n=0),{width:t,height:r,marginTop:n,marginLeft:a,marginRight:i,marginBottom:o}},r.setCurrentState=function(e){this.config.state=e,this.asyncDraw()},r.getCurrentState=function(){return this.config.state},r.draw=function(){var e,t,r,n=this.config,a=n,i=n.text,l=this.getFromEnv("tool-config");n.skipGraphics||(t={width:n.width*n.scale,height:n.height*n.scale,r:n.radius*n.scale,verticalPadding:n.symbolVPadding*n.scale,horizontalPadding:n.symbolHPadding},e=(0,o.extend2)({},n.stateStyle[n.state]||s.preConfig[n.state]||{}),"activated"!==n.state&&"disabled"!==n.state&&"pressed"!==n.state||(e.config.normal.fill=(0,o.convertColor)((0,o.pluck)(l.fill,e.config.normal.fill)),e.config.normal["symbol-stroke"]=(0,o.convertColor)((0,o.pluck)(l.symbolStroke,e.config.normal["symbol-stroke"])),e.config.normal.symbolFill=(0,o.convertColor)((0,o.pluck)(l.symbolFill,e.config.normal.symbolFill)),e.config.normal.stroke=(0,o.convertColor)((0,o.pluck)(l.stroke,e.config.normal.stroke)),e.config.normal.symbolStroke=(0,o.convertColor)((0,o.pluck)(l.symbolStroke,e.config.normal.symbolStroke)),e.config.hover.fill=(0,o.convertColor)((0,o.pluck)(l.hoverFill,e.config.hover.fill))),(r=(0,o.extend2)({button:[n.x,n.y,i,n.symbolName,t,n.labelFontSize,n.labelFontFamily],"button-label":i,"button-padding":[n.symbolHPadding,n.symbolVPadding*n.scale],"button-repaint":[a.x,a.y,n.width*n.scale,n.height*n.scale,n.radius*n.scale],fill:(0,o.convertColor)(n.fill),labelFill:(0,o.convertColor)(n.labelFill),symbolFill:(0,o.convertColor)(n.symbolFill),hoverFill:n.hoverFill,stroke:(0,o.convertColor)(n.stroke),"symbol-stroke":(0,o.convertColor)(n.symbolStroke||n.stroke),"stroke-width":n.strokeWidth,"symbol-stroke-width":(0,o.pluckNumber)(n.symbolStrokeWidth,n.strokeWidth)},e)).fill=(0,o.convertColor)((0,o.pluck)(n.fill,e.fill)),!n.isHidden&&this.addGraphicalElement({el:"button",attr:r,css:n.btnTextStyle,component:this,container:n.containerInfo,label:"button",id:"button",tooltext:n.tooltext}))},r.hide=function(){this.config.isHidden=!0,this.setState("visible",!1),this.asyncDraw()},r.show=function(){this.config.isHidden=!1,this.setState("visible",!0),this.asyncDraw()},t}(i.SmartRenderer);t["default"]=l},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.getEventHandlersFor=function(e,t){var r=function(){a["default"].listen(t,"mousemove",(function(e){e.originalEvent.stopPropagation()}))};switch(e){case"click":return function(e){a["default"].listen(t,"click",(function(t){t.target&&t.target.parentNode&&e.call(t.target)})),r()};case"hover":return function(e,n){a["default"].listen(t,"pointerhover",(function(t){t.target&&t.target.parentNode&&("start"===t.state?e:n).call(t.target)})),r()}}},t.mergeConf=function(e,t,r){var n,a;for(n in e)if((a=e[n])!==o.UNDEF&&null!==a)if(r){if(t[n])continue;t[n]=a}else t[n]=a},t.bottomPath=function(e,t,r,n,a){var i=e,o=t,s=n/2,l=Math.round(a/4+1),c=o+l+3;return["M",i-s,c,"L",i+s,c]},t.RSymbolFns=t.defaultTextStyle=t.SymbolStore=t.preConfig=t.DEFAULT_TIMEOUT=t.CLICK=t.HOVER=void 0;var a=n(r(256)),i=r(262),o=r(254),s={activated:{config:{hover:{fill:"#ffffff",labelFill:"#ffffff",symbolFill:"#ffffff",hoverFill:"#ffffff","fill-symbol":"#ffffff","stroke-width":1,stroke:"#aaaaaa","symbol-stroke":"#aaaaaa",cursor:"pointer"},normal:{fill:"#ffffff",labelFill:"#ffffff",symbolFill:"#ffffff",hoverFill:"#ffffff","fill-symbol":"#ffffff",stroke:"#c2c2c2","symbol-stroke":"#c2c2c2","stroke-width":1,cursor:"pointer"},disable:{fill:"#ffffff",labelFill:"#ffffff",symbolFill:"#ffffff",hoverFill:"#ffffff","fill-symbol":"#ffffff","stroke-width":1,stroke:"#e3e3e3","symbol-stroke":"#e3e3e3","stroke-opacity":1,cursor:"pointer"},pressed:{fill:"#efefef",labelFill:"#efefef",symbolFill:"#efefef",hoverFill:"#efefef","fill-symbol":"#efefef","stroke-width":1,stroke:"#c2c2c2","symbol-stroke":"#c2c2c2",cursor:"pointer"}},"button-disabled":!1,fill:"#ffffff",labelFill:"#ffffff",symbolFill:"#ffffff",hoverFill:"#ffffff",stroke:"#c2c2c2","symbol-stroke":"#c2c2c2","stroke-opacity":1,cursor:"pointer"},disabled:{config:{hover:{fill:"#ffffff",labelFill:"#ffffff",symbolFill:"#ffffff",hoverFill:"#ffffff","fill-symbol":"#ffffff","stroke-width":1,stroke:"#e3e3e3","symbol-stroke":"#e3e3e3",cursor:"default"},normal:{fill:"#ffffff",labelFill:"#ffffff",symbolFill:"#ffffff",hoverFill:"#ffffff","fill-symbol":"#ffffff",stroke:"#e3e3e3","symbol-stroke":"#e3e3e3","stroke-width":1,cursor:"default"},disable:{fill:"#ffffff",labelFill:"#ffffff",symbolFill:"#ffffff",hoverFill:"#ffffff","fill-symbol":"#ffffff","stroke-width":1,stroke:"#e3e3e3","symbol-stroke":"#e3e3e3","stroke-opacity":1,cursor:"default"},pressed:{fill:"#ffffff",labelFill:"#ffffff",symbolFill:"#ffffff",hoverFill:"#ffffff","fill-symbol":"#ffffff","stroke-width":1,stroke:"#e3e3e3","symbol-stroke":"#e3e3e3",cursor:"default"}},fill:"#ffffff",labelFill:"#ffffff",symbolFill:"#ffffff",hoverFill:"#ffffff","button-disabled":!1,stroke:"#e3e3e3","symbol-stroke":"#e3e3e3","stroke-opacity":1,cursor:"default"},pressed:{config:{hover:{fill:"#dcdcdc",labelFill:"#dcdcdc",symbolFill:"#ffffff",hoverFill:"#dcdcdc","fill-symbol":"#ffffff","stroke-width":1,stroke:"#b7b7b7","symbol-stroke":"#b7b7b7",cursor:"pointer"},normal:{fill:"#dcdcdc",labelFill:"#dcdcdc",symbolFill:"#ffffff",hoverFill:"#dcdcdc","fill-symbol":"#ffffff","stroke-width":1,stroke:"#b7b7b7","symbol-stroke":"#b7b7b7",cursor:"pointer"},pressed:{fill:"#dcdcdc",labelFill:"#dcdcdc",symbolFill:"#ffffff",hoverFill:"#dcdcdc","fill-symbol":"#ffffff","stroke-width":1,stroke:"#b7b7b7","symbol-stroke":"#b7b7b7",cursor:"pointer"}},fill:"#dcdcdc",labelFill:"#dcdcdc",symbolFill:"#ffffff",hoverFill:"#dcdcdc","fill-symbol":"#ffffff","stroke-width":1,stroke:"#b7b7b7","symbol-stroke":"#b7b7b7",cursor:"pointer"}};t.preConfig=s,t.CLICK="click",t.HOVER="hover",t.DEFAULT_TIMEOUT=300;var l=(0,i.getDep)("redraphael","plugin"),c={CB_NOT_CHECKED:function(e,t,r){return["M",e-r,t-r]},CB_CHECKED:function(e,t,r){var n=r/4;return["M",e-3*n,t,"L",e-n,t+r,e+r,t-r]}},u=(l.addSymbol("Internal_CB",c.CB_NOT_CHECKED),{register:function(){var e,t,r,n;if(1===arguments.length){if(null===(r=arguments[0])&&r===o.UNDEF||"object"!=typeof r)return;n=r}else{if(!(arguments.length>1))return;if(t=arguments[1],"string"!=typeof(e=arguments[0])||"function"!=typeof t)return;(n={})[e]=t}for(e in n)t=n[e],{}.hasOwnProperty.call(n,e)&&l.addSymbol(e,t)}});t.defaultTextStyle={fill:"#555555",labelFill:"#555555",symbolFill:"#555555",hoverFill:"#555555",fontFamily:"Verdana,sans",fontSize:"12px",fontStyle:"normal",fontWeight:"normal",lineHeight:"14.399999999999999px"},t.SymbolStore=u,t.RSymbolFns=c},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=n(r(397)),o=r(262),s=r(266),l=r(254),c=(0,o.getDep)("redraphael","plugin"),u=Math.max,h=function(e){function t(){var t;return(t=e.call(this)||this)._evtHandlers={},t}(0,a["default"])(t,e);var r=t.prototype;return r.configureAttributes=function(e){void 0===e&&(e={}),this.config.style={track:Object.assign({},{fill:e.displayFlat&&e.color||[90*e.isHorizontal,c.tintshade(e.color,.15).rgba,e.color].join("-"),stroke:c.tintshade(e.color,-.75).rgba},e.style.track)}},r.attachEventHandlers=function(){var e,t,r,n,a,i=this,o=i.config,l=i.getLinkedParent(),c=l.config,u=function(){c.scrollPosition>1?(c.scrollPosition=1,t=!1):(c.scrollPosition<0||isNaN(c.scrollPosition))&&(c.scrollPosition=0,t=!1),n.asyncDraw(),"function"==typeof c.evt.scroll&&c.evt.scroll(c.scrollPosition)},h=function d(){c.scrollPosition+=.01,r>=c.scrollPosition&&t&&(u(),i.addJob("dragScrollAnchorRight",d,s.priorityList.draw))},f=function p(){c.scrollPosition-=.01,r<=c.scrollPosition&&t&&(u(),i.addJob("dragScrollAnchorLeft",p,s.priorityList.draw))};i.addEventListener("fc-mousedown",i._evtHandlers.mousedown||(i._evtHandlers.mousedown=function(u){n=l.getChildren("scrollAnchor")[0],a=n.config,t=!0,e=c.isHorizontal?u.originalEvent.layerX-(a._nodeDimensions.x+o.transLateX+a._nodeDimensions.width/2):u.originalEvent.layerY-(a._nodeDimensions.y+o.transLateY+a._nodeDimensions.height/2),(r=e/a.trackLength+c.scrollPosition)>=c.scrollPosition?i.addJob("dragScrollAnchorRight",h,s.priorityList.draw):i.addJob("dragScrollAnchorLeft",f,s.priorityList.draw)})),i.addEventListener("fc-mouseup",i._evtHandlers.mouseup||(i._evtHandlers.mouseup=function(){t=!1}))},r.draw=function(){var e=this.config,t=this.getLinkedParent().config,r=(0,l.crispBound)(t.x+.5,t.y+t.padding+.5,t.width-1,t.height-1,t.strokeWidth);this.addGraphicalElement({el:"rect",attr:{x:r.x,y:r.y,width:u(r.width,0),height:u(r.height,0),r:t.roundEdges?2:0,opacity:e.style.track.opacity},css:e.style.track,container:{id:"scrollbarGroup",label:"scrollbarGroup",isParent:!0},component:this,label:"scrollbarTrack",id:"scrollbarTrack"})},t}(i["default"]);t["default"]=h},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=n(r(397)),o=r(254),s=(0,r(262).getDep)("redraphael","plugin"),l=function(e){function t(){var t;return(t=e.call(this)||this)._evtHandlers={},t}(0,a["default"])(t,e);var r=t.prototype;return r.configureAttributes=function(e){void 0===e&&(e={});var t=this.config;t.drawStripes=(0,o.pluckNumber)(e.drawStripes,0),t._nodeDimensions={},t.style={scroller:Object.assign({},{fill:e.displayFlat&&s.tintshade(e.color,-.6).rgba||[270*e.isHorizontal,s.tintshade(e.color,.3).rgba+":40",s.tintshade(e.color,-.7).rgba].join("-"),stroke:s.tintshade(e.color,-.6).rgba},e.style.scroller),grip:Object.assign({},{stroke:"#5F5F5F","stroke-linecap":"round","stroke-width":2},e.style.grip)}},r.attachEventHandlers=function(){var e,t,r,n=this,a=this.getLinkedParent().config,i=a.isHorizontal;n.addEventListener("fc-dragmove",n._evtHandlers.dragmove||(n._evtHandlers.dragmove=function(i){(r=e+i.originalEvent.data[t]/this.config.trackLength)>=1?r=1:(r<=0||isNaN(r))&&(r=0),a.scrollPosition=r,n.asyncDraw(),"function"==typeof a.evt.scroll&&a.evt.scroll(a.scrollPosition)})),n.addEventListener("fc-dragstart",n._evtHandlers.dragstart||(n._evtHandlers.dragstart=function(){t=i?0:1,e=a.scrollPosition,"function"==typeof a.evt.scrollStart&&a.evt.scrollStart(a.scrollPosition)})),n.addEventListener("fc-dragend",n._evtHandlers.dragend||(n._evtHandlers.dragend=function(){"function"==typeof a.evt.scrollEnd&&a.evt.scrollEnd(a.scrollPosition)}))},r.draw=function(){var e,t,r=this.config,n=this.getLinkedParent().config,a=n.x+.5,i=n.y+n.padding+.5,s=n.width-1,l=n.height-1<1?1:n.height-1,c=n.restrictScrollAnchor?Math.max(n.scrollRatio,.01):n.scrollRatio,u=n.isHorizontal,h=(0,o.pluckNumber)(n.scrollPosition,n.startPercent,0),f=0,d=u?s*c:l*c;h>=1?h=1:(h<=0||isNaN(h))&&(h=0),n.showButtons&&(d-=2*(f=u?Math.min(l,.5*s):Math.min(s,.5*l))*c),r.trackLength=e=u?s-2*f-d:l-2*f-d,r.trackOffset=t=u?a+f+.5:i+f+.5,r._nodeDimensions={x:u?t+e*h:a,y:u?i:t+e*h,width:u?d-1<1?1:d-1:s<1?1:s,height:u?l<1?1:l:d-1<1?1:d-1},this.addGraphicalElement({el:"rect",attr:{x:r._nodeDimensions.x,y:r._nodeDimensions.y,width:r._nodeDimensions.width,height:r._nodeDimensions.height,r:n.roundEdges?2:0,opacity:r.style.scroller.opacity},css:r.style.scroller,container:{id:"scrollbarGroup",label:"scrollbarGroup",isParent:!0},component:this,label:"scrollbarAnchor",id:"scrollbarAnchor"}),r.drawStripes&&r._nodeDimensions.width>=8&&this.addGraphicalElement({el:"path",attr:{path:["M",r._nodeDimensions.x+r._nodeDimensions.width/2-3,r._nodeDimensions.y+.2*r._nodeDimensions.height,"v",.6*r._nodeDimensions.height,"m",3,-.6*r._nodeDimensions.height,"v",.6*r._nodeDimensions.height,"m",3,-.6*r._nodeDimensions.height,"v",.6*r._nodeDimensions.height],opacity:r.style.grip.opacity},css:r.style.grip,container:{id:"scrollbarGroup",label:"scrollbarGroup",isParent:!0},component:this,label:"scrollbarAnchorStripe",id:"scrollbarAnchorStripe"})},t}(i["default"]);t["default"]=l},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=n(r(397)),o=r(262),s=r(254),l=r(266),c=(0,o.getDep)("redraphael","plugin"),u=function(e){function t(){var t;return(t=e.call(this)||this)._evtHandlers={},t}(0,a["default"])(t,e);var r=t.prototype;return r.configureAttributes=function(e){void 0===e&&(e={});var t=this.config;t.type=e.type,t.style={button:Object.assign({},{fill:s.TRACKER_FILL,stroke:"none"},e.style.button),arrow:Object.assign({},{fill:c.tintshade(e.color,-.4).rgba,stroke:"none"},e.style.arrow)}},r.attachEventHandlers=function(){var e,t,r=this,n=r.config,a=r.getLinkedParent(),i=a.config,o=a.getChildren("scrollAnchor")[0],s=function(){i.scrollPosition>=1?i.scrollPosition=1:(i.scrollPosition<=0||isNaN(i.scrollPosition))&&(i.scrollPosition=0),o.asyncDraw(),"function"==typeof i.evt.scroll&&i.evt.scroll(i.scrollPosition)},c=function u(){t=!0,"start"===n.type?i.scrollPosition-=.01:i.scrollPosition+=.01,s(),r.addJob("dragScrollAnchor",u,l.priorityList.draw)};r.addEventListener("fc-mousedown",r._evtHandlers.mousedown||(r._evtHandlers.mousedown=function(){e=setTimeout((function(){r.addJob("dragScrollAnchor",c,l.priorityList.draw)}),300)})),r.addEventListener("fc-mouseup",r._evtHandlers.mouseup||(r._evtHandlers.mouseup=function(){clearTimeout(e),r.removeJob("dragScrollAnchor"),t||("start"===n.type?i.scrollPosition-=.1:i.scrollPosition+=.1,s()),t=!1})),r.addEventListener("fc-mouseout",(function(){t&&r._evtHandlers.mouseup()}))},r.draw=function(){var e=this.config,t=this.getLinkedParent().config,r={id:"scrollbarGroup",label:"scrollbarGroup",isParent:!0},n=t.isHorizontal,a=t.x+.5,i=t.y+t.padding+.5,o=t.width-1<1?1:t.width-1,l=t.height-1<1?1:t.height-1,c=n?Math.min(l,.5*o):Math.min(o,.5*l),u=n?(0,s.polyPathToPath)([3,a+.5*c,i+.5*l,.25*c,180]):(0,s.polyPathToPath)([3,a+.5*o,i+.5*c,.25*c,90]),h=n?(0,s.polyPathToPath)([3,a+o-.5*c,i+.5*c,.25*c,0]):(0,s.polyPathToPath)([3,a+.5*o,i+l-.5*c,.25*c,-90]);this.addGraphicalElement({el:"rect",attr:{x:"start"===e.type?a:n?a+o-c:a,y:"start"===e.type||n?i:i+l-c,width:(e.type,n?c:o),height:(e.type,n?l:c),opacity:e.style.button.opacity},css:e.style.button,container:r,component:this,label:"scrollbar"+e.type+"ButtonRect",id:"scrollbar"+e.type+"ButtonRect"}),this.addGraphicalElement({el:"path",attr:{path:"start"===e.type?u:h,opacity:e.style.arrow.opacity},css:e.style.arrow,container:r,component:this,label:"scrollbar"+e.type+"ButtonPath",id:"scrollbar"+e.type+"ButtonPath"})},t}(i["default"]);t["default"]=u},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=n(r(397)),o=r(254),s=r(398),l=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var r=this.config;r.checked=!!t.isChecked,r.interPadding=3,r.symbolName="Internal_CB",r.text=(0,o.pluck)(t.text,""),r.textStyle=s.defaultTextStyle},r.check=function(){this.config.checked=!0,this.asyncDraw()},r.uncheck=function(){this.config.checked=!1,this.asyncDraw()},r.toggle=function(){this.config.checked?this.uncheck():this.check()},r.getContainer=function(){return this.getFromEnv("chart").getChildContainer("buttonGroup")},r.draw=function(){this.config.checked?s.SymbolStore.register("Internal_CB",s.RSymbolFns.CB_CHECKED):s.SymbolStore.register("Internal_CB",s.RSymbolFns.CB_NOT_CHECKED),e.prototype.draw.call(this)},t}(i["default"]);t["default"]=l},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=n(r(397)),o=r(254),s=n(r(404)),l=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var r=this.config,n=this.getFromEnv("dataSource").chart;r.baseFontFamily=(0,o.pluck)(t.baseFontFamily,n.basefont,"Verdana,sans"),r.baseFontSize=(0,o.pluckNumber)(t.baseFontSize,n.basefontsize,10),r.baseFontSize=this.computeFontSize((0,o.pluckFontSizeMaintainUnit)(t.baseFontSize,n.basefontsize,10)),r.baseFontColor=(0,o.pluck)(t.baseFontColor,n.basefontcolor,"595959"),r.skipGraphics=!0,this.createListContainer()},r.createListContainer=function(){this.attachChild(s["default"],"listContainer","listContainer").configure()},r.appendInMenu=function(e){void 0===e&&(e=[]);var t,r,n=this.getChild("listContainer");for(r=e.length,t=0;t<r;t++)n.addItem(e[t]);this.config.skipGraphics=!1},t}(i["default"]);t["default"]=l},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=r(270),o=r(254),s=n(r(405)),l=r(398),c=r(262);function u(e,t){var r,n,a,i;if(void 0===t&&(t={}),(n=e.attachChild(s["default"],"item",t.id)).configure(t),t.menu instanceof Array&&(i=t.menu.length))for(r=n.attachChild(h,"subContainer","subContainer"),e.config.hasSubMenu=!0,r.configure(),a=0;a<i;a++)r.addItem(t.menu[a])}(0,c.addDep)({name:"manuItemContainerAnimation",type:"animationRule",extension:{"*.menuItemContainer.menuItemContainer":null}});var h=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.configureAttributes=function(){var e=this.config;this.setStyle(),e.counter=0,e.hasSubMenu=!1,e._defaultStyle={position:"absolute","z-index":50,top:0+o.PXSTRING,right:"auto",left:"auto",overflow:"hidden",background:"#ffffff",border:"1px solid #646464","box-shadow":"#999999 2px 2px 5px",padding:"5px 3px",display:"none"}},r.setStyle=function(e){void 0===e&&(e={});var t=this.config;t.hoverOverStyle=e.hoverOverStyle||{background:"#333333",color:"#FFFFFF",cursor:o.POINTER},t.hoverOutStyle=e.hoverOutStyle||{background:"#FFFFFF",color:"#000000"}},r.show=function(){var e=this.getLinkedParent().config,t=(0,o.pluckNumber)(e.scale,1.5),r=e.x,n=e.y,a=e.width*t,i=e.height*t,s=+this.getFromEnv("chart").getFromEnv("chartWidth"),l=this.getGraphicalElement("menu","menu").element,c=l.style;clearTimeout(this.config.hideTimer),c.display="block",l.offsetWidth+r>s?(c.left="auto",c.right=s-r-a+o.PXSTRING):(c.left=r+o.PXSTRING,c.right="auto"),c.top=n+i+5+o.PXSTRING,c.bottom="auto",c.display="block"},r.hide=function(e){void 0===e&&(e={});var t,r=this.getGraphicalElement("menu","menu").element;e.instant?r.style.display="none":(t=(0,o.pluckNumber)(e.timeout,l.DEFAULT_TIMEOUT),this.config.hideTimer=setTimeout((function(){r.style.display="none"}),t))},r.addItem=function(e){void 0===e&&(e={}),u(this,e)},r.draw=function(){this.addGraphicalElement({el:"html",attr:{type:"div"},css:this.config._defaultStyle,component:this,label:"menu",id:"menu"}),this.addEventListener("fc-mouseover",this.show),this.addEventListener("fc-mouseout",this.hide)},r.getName=function(){return"menuItemContainer"},r.getType=function(){return"menuItemContainer"},t}(i.SmartRenderer),f=h;t["default"]=f},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=r(254),o=r(398),s=r(270);(0,r(262).addDep)({name:"manuItemAnimation",type:"animationRule",extension:{"*.menuItem.menuItem":null}});var l=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.configureAttributes=function(e){void 0===e&&(e={});var t=this.config,r=this.getLinkedParent().getLinkedParent().config;t.name=e.name,t.action=e.action&&e.action.toLowerCase()||o.CLICK,t.eventMap={},t.style={padding:"3px 8px",fontFamily:r.baseFontFamily,fontSize:r.baseFontSize+i.PXSTRING,color:"#000000",position:"static",display:"inline",float:"left",background:"#FFFFFF"},t.pointerStyle={padding:"0px 4px 3px",fontFamily:r.baseFontFamily,fontSize:r.baseFontSize+3+i.PXSTRING,color:"#000000",position:"static",float:"left"},t.itemType=e.menu instanceof Array&&e.menu.length?"subMenu":"item","item"===t.itemType?t.handler=e.handler||i.stubFN:t.handler=i.stubFN,t.hoverOverStyle=e.hoverOverStyle||{},t.hoverOutStyle=e.hoverOutStyle||{}},r.applyStyle=function(e){void 0===e&&(e="mouseover");var t=this.getLinkedParent().config,r=this.getGraphicalElement("menuItem","menuItem"),n=this.getGraphicalElement("container","container"),a=this.getGraphicalElement("menuPointer","menuPointer");switch(e){case"mouseover":r.css(t.hoverOverStyle),n.css(t.hoverOverStyle),a&&a.css(t.hoverOverStyle);break;case"mouseout":r.css(t.hoverOutStyle),n.css(t.hoverOutStyle),a&&a.css(t.hoverOutStyle)}},r.draw=function(){var e=this,t=e.config,r=e.getLinkedParent();e.addGraphicalElement({el:"html",attr:{type:"div"},css:{display:"block",position:"static",overflow:"hidden",height:"100%",width:"100%",background:"#FFFFFF"},container:{id:"menu",label:"menu",isParent:!0},component:e,label:"container",id:"container"}),r.config.hasSubMenu&&e.addGraphicalElement({el:"html",attr:{type:"div",text:"◂"},css:t.pointerStyle,container:{id:"container",label:"container"},component:e,label:"menuPointer",id:"menuPointer"},!0),e.addGraphicalElement({el:"html",attr:{type:"span",text:t.name},css:t.style,container:{id:"container",label:"container"},component:e,label:"menuItem",id:"menuItem"},!0),e._mouseOverEvent||(e._mouseOverEvent=function(){e.applyStyle("mouseover")}),e._mouseOutEvent||(e._mouseOutEvent=function(){e.applyStyle("mouseout")}),e._clickEvent||(e._clickEvent=function(){"item"===e.config.itemType&&(r.hide({instant:!0}),t.handler())}),e.addEventListener("fc-mouseover",e._mouseOverEvent),e.addEventListener("fc-mouseout",e._mouseOutEvent),e.addEventListener("fc-click",e._clickEvent)},r.getName=function(){return"menuItem"},r.getType=function(){return"menuItem"},t}(s.SmartRenderer);t["default"]=l},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=n(r(397)),o=r(254),s={left:"start",right:"end",center:"middle"},l={top:o.POSITION_TOP,middle:o.POSITION_MIDDLE,bottom:o.POSITION_BOTTOM},c={0:"0",1:"270",right:"90",cw:"90",left:"270",ccw:"270"},u=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.font="Verdana, sans",t.rotateText=0},r.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var r=this.config;r.font=(0,o.pluck)(t.font,r.font),r.fontSize=(0,o.pluckFontSize)(t["font-size"],t.fontSize,10)*r.scale,r.fontStyle=(0,o.pluck)(t["font-style"],t.fontStyle,"normal"),r.fontWeight=(0,o.pluck)(t["font-weight"],t.fontWeight,"normal"),r.rotateText=(0,o.pluckNumber)(t.rotateText,r.rotateText),r.rotateAngle=parseFloat(c[(0,o.pluck)(t.rotateAngle&&t.rotateAngle.toLowerCase(),"0")])},r.getTextBound=function(){var e=this.config,t=[];return e.showTextBound&&(t=[(0,o.convertColor)(e.fill),e.borderColor,e.borderThickness,2,e.radius]),t},r.getLogicalSpace=function(){var e,t=this.config,r=(t.width,t.height,t.marginTop),n=t.marginLeft,a=t.marginRight,i=t.marginBottom;return{width:(e=this.getFromEnv("smartLabel").getOriSize(this.config.text,!1)).width,height:e.height,marginTop:r,marginLeft:n,marginRight:a,marginBottom:i}},r.draw=function(){var e,t=this.config;t.text&&(e={x:t.x,y:t.y,text:t.text,fill:(0,o.convertColor)(t.labelFill),"text-bound":this.getTextBound(),"font-style":t.fontStyle,"font-weight":t.fontWeight,"font-family":t.font,"font-size":t.fontSize,"text-anchor":s[t.hAlign],"vertical-align":l[t.vAlign],transform:t.rotateText?(0,o.getSuggestiveRotation)(t.rotateAngle,t.x,t.y):"t0,0"},!t.isHidden&&this.addGraphicalElement({el:"text",attr:e,component:this,container:{id:"group",label:"group",isParent:!0},label:"text",id:"label"}))},t}(i["default"]);t["default"]=u},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=n(r(397)),o=r(254),s=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.isVertical=1},r.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var r=this.config;r.isVertical=(0,o.pluckNumber)(t.isVertical,r.isVertical)},r.draw=function(){var e=this.config,t=e.x,r=e.y,n=e.width,a=e.height,i={path:e.isVertical?["M",t+n/2,r,"v",a]:["M",t,r,"h",n],stroke:e.stroke,"stroke-width":e.strokeWidth,"stroke-linecap":"round"};!e.isHidden&&this.addGraphicalElement({el:"path",attr:i,component:this,container:{id:"group",label:"group",isParent:!0},css:e.css,label:"path",id:"path"})},t}(i["default"]);t["default"]=s},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=r(270),o=r(254),s=function(e){e.manageSpace&&e.manageSpace()},l=function(e){function t(t){var r;return(r=e.call(this,t)||this).props={},r}(0,a["default"])(t,e);var r=t.prototype;return r.configureAttributes=function(e){void 0===e&&(e={});var t=this.config,r=this.getFromEnv("chartConfig");this.__setDefaultConfig(),this.props.width=(0,o.pluckNumber)(e.width,0),this.props.height=(0,o.pluckNumber)(e.height,0),t.orientation=(0,o.pluck)(e.toolbarorientation,t.orientation),t.hPadding=(0,o.pluck)(e.toolbarhpadding,t.hPadding),t.vPadding=(0,o.pluck)(e.toolbarvpadding,t.vPadding),t.backgroundcolor=(0,o.pluck)(e.toolbarbackgroundcolor,t.backgroundcolor),t.backgroundalpha=(0,o.pluck)(e.toolbarbackgroundalpha,t.backgroundalpha),t.bordercolor=(0,o.pluck)(e.toolbarbordercolor,t.bordercolor),t.borderalpha=(0,o.pluck)(e.toolbarborderalpha,t.borderalpha),t.borderthickness=(0,o.pluck)(e.toolbarborderthickness,t.borderthickness),t.hDirection=(0,o.pluckNumber)(e.toolbarhdirection,"r"===r.toolbarHAlign?-1:1),t.vDirection=(0,o.pluckNumber)(e.toolbarvdirection,"b"===r.toolbarBAlign?-1:1),t.hAlign=(0,o.pluck)(e.hAlign,"center").toLowerCase(),t.vAlign=(0,o.pluck)(e.vAlign,"middle").toLowerCase(),t.marginTop=(0,o.pluckNumber)(e.marginTop,e.spacing,t.marginTop),t.marginLeft=(0,o.pluckNumber)(e.marginLeft,e.spacing,t.marginLeft),t.marginRight=(0,o.pluckNumber)(e.marginRight,e.spacing,t.marginRight),t.marginBottom=(0,o.pluckNumber)(e.marginBottom,e.spacing,t.marginBottom)},r.__setDefaultConfig=function(){var e=this.config;e.orientation="horizontal",e.hPadding=0,e.vPadding=0,e.backgroundcolor="#eeeeee",e.backgroundalpha=0,e.bordercolor="#eeeeee",e.borderalpha=0,e.borderthickness=1,e.spacing=2.5,e.marginTop=2.5,e.marginLeft=2.5,e.marginRight=2.5,e.marginBottom=2.5},r.getLogicalSpace=function(){var e=this.config,t=this.props,r=0,n=0;return this.getChildren("tool")&&this.getChildren("tool").length&&(this.getChildren("tool").forEach((function(t){if(!t.getState("removed")){var a=t.getLogicalSpace(),i=a.width,s=a.height,l=a.marginTop,c=a.marginLeft,u=a.marginRight,h=a.marginBottom;"horizontal"===e.orientation?(i!==o.UNDEF&&(r+=i+(u||0)+(c||0)),n<(s=s+(l||0)+(h||0))&&(n=s)):(s!==o.UNDEF&&(n+=s+(l||0)+(h||0)),r<(i=i+(u||0)+(c||0))&&(r=i))}})),r+=2*e.hPadding,n+=2*e.vPadding,t.width=t.width>r?t.width:r,t.height=t.height>n?t.height:n),{width:r,height:n,marginTop:e.marginTop,marginLeft:e.marginLeft,marginRight:e.marginLeft,marginBottom:e.marginLeft}},r.manageSpace=function(){var e,t=this.getChildren("tool")||[];for(var r in e="horizontal"===this.config.orientation?this._placeToolHorizontally():this._placeToolVertically())e.hasOwnProperty(r)&&this.getChild(r).setDimension(e[r]);t.forEach(s)},r._placeToolHorizontally=function(){var e,t,r,n=this,a=n.config,i=n.props,o=a.hPadding,s=i.width-a.hPadding,l={},c={left:[],right:[],center:[]},u={left:0,right:0,center:0};return n.getChildren("tool")&&n.getChildren("tool").length&&((a.hDirection>0?n.getChildren("tool"):n.getChildren("tool").slice(0).reverse()).forEach((function(e){if(!e.getState("removed")){var t=e.getAlignment().hAlign,r=e.getLogicalSpace(),o=r.width,s=r.height,h=r.marginTop,f=r.marginLeft,d=r.marginRight,p=r.marginBottom,g=e.getId();u[t]+=o+(f||0)+(d||0),c[t].push(g),l[g]={},l[g].y=n.props.y+h+a.vPadding+(i.height-2*a.vPadding-(s+p+h))/2}})),c.left.forEach((function(e){var t=n.getChild(e).getLogicalSpace(),r=t.width,i=t.marginLeft,s=t.marginRight;o+=i||0,l[e].x=n.props.x+a.hPadding+o,o+=r+(s||0)})),c.right.reverse().forEach((function(e){var t=n.getChild(e).getLogicalSpace(),r=t.width,i=t.marginLeft,o=t.marginRight;s-=r+(o||0),l[e].x=n.props.x+a.hPadding+s,s-=i||0})),e=[u.left+a.hPadding,i.width-(u.right+a.hPadding)],t=Math.abs(e[0]-e[1]),r=e[0]+t/2-u.center/2,c.center.forEach((function(e){var t=n.getChild(e).getLogicalSpace(),i=t.width,o=t.marginLeft,s=t.marginRight;r+=o||0,l[e].x=n.props.x+a.hPadding+r,r+=i+s||0}))),l},r.getAlignment=function(){return{hAlign:this.config.hAlign,vAlign:this.config.vAlign}},r._placeToolVertically=function(){var e,t,r,n=this,a=n.config,i=n.props,o=a.vPadding,s=i.height-a.vPadding,l={top:[],middle:[],bottom:[]},c={top:0,middle:0,bottom:0},u={};return n.getChildren("tool")&&n.getChildren("tool").length&&((a.vDirection>0?n.getChildren("tool"):n.getChildren("tool").reverse()).forEach((function(e){if(!e.getState("removed")){var t=e.getAlignment().vAlign,r=e.getLogicalSpace(),o=r.width,s=r.height,h=r.marginTop,f=r.marginLeft,d=r.marginRight,p=r.marginBottom,g=e.getId();c[t]+=s+(h||0)+(p||0),l[t].push(e.getId()),u[g]={},u[g].x=n.props.x+f+a.hPadding+f+(i.width-2*a.hPadding-(o+f+d))/2}})),l.top.forEach((function(e){var t=n.getChild(e).getLogicalSpace(),r=t.height,i=t.marginTop,s=t.marginBottom;o+=i||0,u[e].y=n.props.y+a.vPadding+o,o+=r+(s||0)})),l.bottom.reverse().forEach((function(e){var t=n.getChild(e).getLogicalSpace(),r=t.height,i=t.marginTop,o=t.marginBottom;s-=r+(o||0),u[e].y=n.props.y+a.vPadding+s,s-=i||0})),e=[c.top+a.vPadding,i.height-(c.bottom+a.vPadding)],t=Math.abs(e[0]-e[1]),r=e[0]+t/2-c.middle/2,l.middle.forEach((function(e){var t=n.getChild(e).getLogicalSpace(),i=t.height,o=t.marginTop,s=t.marginBottom;r+=o||0,u[e].y=n.props.y+a.vPadding+r,r+=i+s||0}))),u},r.setDimension=function(e){void 0===e&&(e={}),e.x!==o.UNDEF&&(this.props.x=e.x),e.y!==o.UNDEF&&(this.props.y=e.y),e.width!==o.UNDEF&&(this.props.width=e.width),e.height!==o.UNDEF&&(this.props.height=e.height)},r.getDimension=function(){return this.props},r.draw=function(){var e=this.config;this.addGraphicalElement({id:"group",el:"group",attr:{name:"toolbar"},container:{id:"toolbar-master",isParent:!0},component:this,label:"group"}),this.addGraphicalElement({id:"carpet",el:"rect",attr:Object.assign({fill:(0,o.toRaphaelColor)({color:e.backgroundcolor,alpha:e.backgroundalpha}),stroke:(0,o.toRaphaelColor)({color:e.bordercolor,alpha:e.borderalpha}),"stroke-width":e.borderthickness},this.getDimension()),container:{label:"group",id:"group"},component:this,label:"carpet"})},r.getName=function(){return"toolbar"},r.getType=function(){return"Toolbar"},t}(i.SmartRenderer);t["default"]=l},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(272)),i=n(r(268)),o=n(r(392)),s=function(e){function t(){var t;t=e.call(this)||this;var r=(0,a["default"])(t);return r._toggle=function(){r.isEnabled()&&r.zoomOut()},t}(0,i["default"])(t,e);var r=t.prototype;return r.getName=function(){return"zoomResetButton"},r.configure=function(){e.prototype.configure.call(this);var t=this.getLinkedParent();this.configureButton(),this.disable(),t.registerDependancy([{derivedInteraction:["zoomin","zoomout"],callback:this.dependancyFn,component:this}])},r.configureButton=function(){!this.config.skipGraphics&&this.setLinkedItem("button",this.createButton({icon:"resetIcon",handlers:{click:this._toggle},tooltext:this.config.tooltext,state:"disabled"})),this.disable()},r.enable=function(){this.config.state="activated",e.prototype.enable.call(this)},r.zoomOut=function(){var e,t,r,n,a,i,o,s=this,l=s.config.hookFn,c={};s.getFromEnv("axesObArr").forEach((function(u){e=s.getFromEnv("chart"),t=e.getChildren("scrollBar")&&e.getChildren("scrollBar")[0],(o=u.stack[0])&&(s.getFromEnv("chart").getFromEnv("animationManager").setAnimationState("zoomOut"),l&&l(o.minValue,o.maxValue),u.isY?(a=o.minValue,i=o.maxValue):(r=o.minValue,n=o.maxValue,c=s.constructor._getZoomInfo(r,n,u.axis)),u.axis.setVisibleConfig(o.minValue,o.maxValue),e.setScrollBarDimension&&e.setScrollBarDimension(),t&&!t.getState("removed")&&t.asyncDraw(),u.stack.length=0)})),s._raiseZoomEvents("zoomout","zoomreset",Object.assign(c,{level:1,startX:r,endX:n,startY:a,endY:i})),s.disable()},r.dependancyFn=function(e){"zoomin"===e.type?this.enable():"zoomout"===e.type&&(this._checkStackLen()||this.disable())},t}(o["default"]);t["default"]=s},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(272)),i=n(r(268)),o=function(e){function t(){var t;t=e.call(this)||this;var r=(0,a["default"])(t);return r._toggle=function(){r.isEnabled()&&r.zoomOut()},t}(0,i["default"])(t,e);var r=t.prototype;return r.getName=function(){return"zoomOutButton"},r.configureButton=function(){!this.config.skipGraphics&&this.setLinkedItem("button",this.createButton({icon:"zoomOutIcon",handlers:{click:this._toggle},tooltext:this.config.tooltext,state:"activated"}))},r.zoomOut=function(){var e,t,r,n,a,i,o,s,l=this,c=l.config.hookFn,u={},h=0;l.getFromEnv("axesObArr").forEach((function(f){e=l.getFromEnv("chart"),t=e.getChildren("scrollBar")&&e.getChildren("scrollBar")[0],r=f.stack.pop(),n=f.stack.length,h+=n,r&&(f.isY?(o=r.minValue,s=r.maxValue):(a=r.minValue,i=r.maxValue,u=l.constructor._getZoomInfo(a,i,f.axis)),c&&c(r.minValue,r.maxValue),f.axis.setVisibleConfig(r.minValue,r.maxValue),e.setScrollBarDimension&&e.setScrollBarDimension(),t&&!t.getState("removed")&&t.asyncDraw())})),l._raiseZoomEvents("zoomout","zoomedout",Object.assign(u,{level:n,startX:a,endX:i,startY:o,endY:s})),h||this.disable()},t}(n(r(409))["default"]);t["default"]=o},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(272)),i=n(r(268)),o=function(e){function t(){var t;t=e.call(this)||this;var r=(0,a["default"])(t);return r._toggle=function(){r.isEnabled()&&r.zoom()},t}(0,i["default"])(t,e);var r=t.prototype;return r.getName=function(){return"zoomInButton"},r.configure=function(){e.prototype.configure.call(this);var t=this.config;t.stepZoom=t.stepZoom||5.33,!t.skipGraphics&&this.setLinkedItem("button",this.createButton({icon:"zoomInIcon",handlers:{click:this._toggle},tooltext:this.config.tooltext,state:"activated"})),this.enable()},r.zoom=function(){var e,t,r,n,a,i,o,s,l,c=this,u={},h=c.config,f=h.hookFn,d=!1,p=Math.pow(10,h.zoomDecimalLimit)||1;c.getFromEnv("animationManager").setAnimationState("zoom"),c.getFromEnv("axesObArr").forEach((function(g){r=g.axis,e=r.getVisibleConfig(),(t=Math.round((e.maxValue-e.minValue)/h.stepZoom*p)/p)>Number.EPSILON&&(g.stack.push(e),g.isY?(i=e.minValue+t,o=e.maxValue-t):(n=e.minValue+t,a=e.maxValue-t,u=c.constructor._getZoomInfo(n,a,r)),s=g.stack.length+1,f&&f(e.minValue,e.maxValue),l=r.setVisibleConfig(e.minValue+t,e.maxValue-t),d=d||l)})),d&&c._raiseZoomEvents("zoomin","zoomedin",Object.assign(u,{level:s,startX:n,endX:a,startY:i,endY:o}))},t}(n(r(392))["default"]);t["default"]=o},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(272)),i=n(r(268)),o=n(r(392)),s=r(254),l=function(e){function t(){var t;t=e.call(this)||this;var r=(0,a["default"])(t);return r.controlArr=[{nativeInteraction:["fc-dbclick"],callback:r.zoom.bind(r),component:r}],t}(0,i["default"])(t,e);var r=t.prototype;return r.getName=function(){return"dbTapZoom"},r.configure=function(){e.prototype.configure.call(this),this.enable()},r.setControl=function(){var e=this.controlArr,t=this.getLinkedParent();t.releaseControl(e),this.isEnabled()&&t.getControl(e)},r.zoom=function(e){var t,r,n,a,i,o,l,c,u,h,f=this,d=f.getFromEnv("chart"),p=(0,s.getMouseCoordinate)(d.getLinkedItem("container"),e,d),g=f.config,m=g.hookFn,v={},b=!1,y=Math.pow(10,g.zoomDecimalLimit)||1;d.getFromEnv("animationManager").setAnimationState("zoom"),f.getFromEnv("axesObArr").forEach((function(e){t=e.axis,r=t.getValue(e.isY?p.chartY:p.chartX),a=t.getVisibleConfig(),n=function(e,t,r,n){var a=t-e.minValue,i=e.maxValue-t;return{min:Math.round((t-a/r*(r-1))*n)/n,max:Math.round((t+i/r*(r-1))*n)/n}}(a,r,g.stepzoom,y),e.isY?(c=n.min,u=n.max):(o=n.min,l=n.max,v=f.constructor._getZoomInfo(o,l,t)),t.getZoom()<=y&&(m&&"function"==typeof g.hookFn&&m(n.min,n.max),i=t.setVisibleConfig(n.min,n.max),b=b||i,e.stack.push(a),h=e.stack.length+1)})),b&&f._raiseZoomEvents("zoomin","zoomedin",Object.assign(v,{level:h,startX:o,endX:l,startY:c,endY:u},e.originalEvent))},t}(o["default"]);t["default"]=l},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(272)),i=n(r(268)),o=n(r(392)),s=r(254),l=r(266),c=r(262),u=Math,h=u.min,f=u.max,d=u.abs,p="rgba(255,0,0,"+(s.isIE?.002:1e-6)+")",g=function(e){function t(){var t;t=e.call(this)||this;var r=(0,a["default"])(t);return r.controlArr=[{nativeInteraction:["fc-dragstart"],callback:r.dragstart.bind(r),component:r},{nativeInteraction:["fc-dragmove"],callback:r.dragmove.bind(r),component:r},{nativeInteraction:["fc-dragend"],callback:r.dragend.bind(r),component:r}],r.toggle=r.toggle.bind(r),t}(0,i["default"])(t,e);var r=t.prototype;return r.getName=function(){return"dragPin"},r.configure=function(){e.prototype.configure.call(this);var t=this.getFromEnv("chartConfig"),r=this.getFromEnv("dataSource").chart,n=this.config;n.attr=n.attr||{stroke:"#3399ff",fill:"#b9d5f1","stroke-width":0},n.pinAttr=n.pinAttr||{"stroke-width":0,stroke:"none",fill:"#b9d5f1","shape-rendering":"crisp"},n.borderWidth=t.borderWidth||(t.borderWidth=(0,s.pluckNumber)(r.showborder,1)?(0,s.pluckNumber)(r.borderthickness,1):0),!this.config.skipGraphics&&this.setLinkedItem("button",this.createButton({icon:"pinModeIcon",tooltext:(0,s.pluckNumber)(r.showtoolbarbuttontooltext,1)?(0,s.pluck)(this.config.tooltext,"Pin mode"):"",handlers:{click:this.toggle},state:"activated"})),this.getLinkedParent().registerDependancy([{derivedInteraction:["zoomin","zoomout"],callback:this.dependancyFn,component:this}]),this.disable(void 0,!1)},r.enable=function(e,t){var r=this.config;!0!==r.enabled&&(r.enabled=!0,r.state="pressed",this.fireEvent("pinenabled"),this.setControl(),!t&&this.getFromEnv("chart").fireChartInstanceEvent("zoommodechanged",{pinModeActive:!0},e&&e.originalEvent))},r.dependancyFn=function(e){"zoomin"!==e.type&&"zoomout"!==e.type||this.disable(e)},r.draw=function(){var e,t=this,r=t.config;t.createPin(),t.config.pinElemVisible&&t.addJob("resizePinElem",(function(){e=t.getFromEnv("xAxis")[0],t.pinRangePixels(e.getPixel(r.boxStartValue),e.getPixel(r.boxEndValue))}),l.priorityList.postRender)},r._setConfig=function(){var e=this.getFromEnv("chart"),t=this.getFromEnv("chartConfig"),r=this.config,n=Object.assign({},r.attr||{}),a=n["stroke-width"]=(0,s.pluckNumber)(n.strokeWidth,n["stroke-width"],1),i=(0,s.getPosition)(e.getFromEnv("chart-container"),e);r.zoomX="horizontal"===r.orientation||"both"===r.orientation,r.zoomY="vertical"===r.orientation||"both"===r.orientation,r.canvasY=t.canvasTop,r.canvasX=t.canvasLeft,r.canvasW=t.canvasWidth,r.canvasH=t.canvasHeight,r.canvasX2=t.canvasLeft+t.canvasWidth,r.canvasY2=t.canvasTop+t.canvasHeight,r.strokeWidth=a,r.chartPosLeft=i.left,r.chartPosTop=i.top},r.disable=function(e,t){var r=this.config,n=this.getContainer("pingroup"),a=this.getGraphicalElement("pintracker");!1!==r.enabled&&(r.enabled=!1,r.state="activated",n&&n.hide(),a&&a.hide(),this.fireEvent("pindisabled"),!t&&this.getFromEnv("chart").fireChartInstanceEvent("zoommodechanged",{pinModeActive:!1},e&&e.originalEvent),this.setControl(),r.pinElemVisible=!1)},r.setControl=function(){var e=this.getLinkedParent(),t=this.controlArr,r=this.getLinkedItem("button");e.releaseControl(t),this.isEnabled()&&e.getControl(t),r&&r.setCurrentState(this.config.state)},r.createPin=function(){var e,t,r,n,a,i=this,o=i.getFromEnv("chart"),l=i.getFromEnv("chartConfig"),u=i.getFromEnv("animationManager"),h=l.canvasTop,f=l.canvasBottom,d=l.canvasHeight,g=l.canvasLeft,m=i.config.borderWidth,v=l["clip-pinrect"],b=i.getContainer("pingroup"),y=i.getContainer("pinElemGroup"),x=i.getGraphicalElement("pinrect"),w=i.getGraphicalElement("pintracker");n=l._visw=l.canvasWidth,a=l._visx=l.canvasLeft,e=(0,c.getDep)("redraphael","plugin").crispBound(0,h-f,0,d,m),v=l["clip-pinrect"]=[e.x,h,e.width,e.height],b||i.addContainer("pingroup",b=u.setAnimation({el:"group",finalAttr:{name:"zoompin"},component:i,label:"group"}).insertBefore(o.getChildContainer("plotGroup")).hide()),b.transform(l._pingrouptransform=["T",a,f]),y||i.addContainer("pinElemGroup",y=u.setAnimation({el:"group",attr:{name:"zoompinelements"},component:i,container:b,label:"group"})),i.config.pinAttr.x=0,i.config.pinAttr.y=h-f,i.config.pinAttr.width=n,i.config.pinAttr.height=d,t=u.setAnimation({el:x||"rect",attr:i.config.pinAttr,container:b,component:i}),x||i.addGraphicalElement("pinrect",t),r=u.setAnimation({el:w||"rect",attr:{transform:b.transform(),x:0,y:h-f,width:0,height:d,stroke:"none",fill:p,cursor:s.hasSVG?"ew-resize":"e-resize"},container:o.getChildContainer("trackerGroup"),component:i}).hide(),w||i.addGraphicalElement("pintracker",r),r.undrag(),r.drag((function(e){var t=e.data[0],n=a+t+this.__pindragdelta,o=this.__pinboundleft,l=this.__pinboundright,c=this.data("cliprect").slice(0);n<o?n=o:n>l&&(n=l),b.transform(["T",n,f]),r.transform(b.transform()),s.hasSVG||(c[0]=c[0]+n-a-this.__pindragdelta,u.setAnimation({el:b,attr:{"clip-rect":c},component:i})),this.__pindragoffset=t}),(function(){this.__pinboundleft=0-v[0]+a+g,this.__pinboundright=this.__pinboundleft+n-v[2],this.data("cliprect",b.attr("clip-rect")),b._.clipispath=!0}),(function(){b._.clipispath=!1,this.__pindragdelta+=this.__pindragoffset,delete this.__pindragoffset,delete this.__pinboundleft,delete this.__pinboundright}))},r.pinRangePixels=function(e,t,r){var n,a,i,o,s,l=this.getFromEnv("chart"),c=l.config,u=c.canvasLeft,h=this.getFromEnv("xAxis")[0],f=h.getLimit(),d=f.max,p=f.min,g=this.getContainer("pingroup"),m=c["clip-pinrect"],v=this.getFromEnv("animationManager"),b=c._pingrouptransform,y=[],x=t-e,w=this.getGraphicalElement("pintracker");if(l.iterateComponents((function(e){e.getType&&"dataset"===e.getType()&&y.push(e)})),g&&this.getGraphicalElement("pinrect")){for(e===t&&(g.hide(),w.hide()),s=y.length;s--;)y[s].fireEvent("createpinelements",{group:this.getContainer("pinElemGroup")});m[0]=e+u,m[2]=x,v.setAnimation({el:g,attr:{"clip-rect":m,transform:b},component:this}).show(),w.__pindragdelta=0,w.show(),v.setAnimation({el:w,attr:{transform:b,x:e,width:x},component:this}),this.config.pinElemVisible=!0,n=(n=Math.round(h.getValue(e+u,{wrtVisible:!0})))<p?p:n,a=(a=Math.round(h.getValue(t+u,{wrtVisible:!0})))>d?d:a,i=h.getLabel(n).label,o=h.getLabel(a).label,r&&l.fireChartInstanceEvent("pinned",{startIndex:n||Math.abs(n),endIndex:a||Math.abs(a),startLabel:i,endLabel:o},r.originalEvent)}},r.dragstart=function(e){this._setConfig();var t,r,n=this.getFromEnv("animationManager"),a=this.getFromEnv("chart-container"),i=this.config,o=i.attr,l=this.getGraphicalElement("resizeBox"),c=e.originalEvent,u=i.layerX=(c.pageX||c.data[0])-i.chartPosLeft,h=i.layerY=(c.pageY||c.data[1])-i.chartPosTop,f=i.canvasY,d=i.canvasX,p=i.canvasX2,g=i.canvasY2;t=(0,s.getPosition)(a),i.chartPosLeft=t.left,i.chartPosTop=t.top,i.oy=h,i.ox=u,i.allowMove=!1,o.x=0,o.y=0,o.width=0,o.height=0,r=n.setAnimation({el:l||"rect",attr:o,container:this.getFromEnv("chart").getChildContainer("trackerGroup"),component:this,callback:function(){this.show()}}),l||this.addGraphicalElement("resizeBox",r),u>d&&u<p&&h>f&&h<g&&(i.allowMove=!0),i.dragstartFn&&"function"==typeof i.dragstartFn&&i.dragstartFn(e)},r.dragmove=function(e){this._setConfig();var t=this.config,r=this.getFromEnv("animationManager"),n=e.originalEvent,a=n.pageX||n.data[2],i=n.page||n.data[3],o=t.layerX=a-t.chartPosLeft,s=t.layerY=i-t.chartPosTop,l=o-t.ox,c=s-t.oy,u=t.ox,p=t.oy,g=t.zoomX,m=t.zoomY,v=t.strokeWidth,b=t.canvasW,y=t.canvasH,x=t.canvasY,w=t.canvasX,_=t.canvasX2,S=t.canvasY2;r.setAnimationState("dragMove"),t.allowMove&&(t.isDragged||(t.isDragged=1),l=-(u-h(u-(u-f(u+l,w)),_)),c=-(p-h(p-(p-f(p+c,x)),S)),r.setAnimation({el:this.getGraphicalElement("resizeBox"),attr:{x:(g?h(u,u+l):w)+.5*v,y:(m?h(p,p+c):x)+.5*v,width:g?d(l):b,height:m?d(c):y},component:this}),t.dragmoveFn&&"function"==typeof t.dragmoveFn&&t.dragmoveFn(e))},r.dragend=function(e){this._setConfig();var t,r,n=this.getFromEnv("chart"),a=this.config,i=this.getFromEnv("xAxis")[0],o=this.getGraphicalElement("resizeBox"),s=a.bBox;n.getFromEnv("animationManager").setAnimationState("dragEnd"),s=o.getBBox(),a.isDragged&&(a.dragendFn&&"function"==typeof a.dragendFn&&a.dragendFn(e,{chart:n,selectionLeft:s.x,selectionTop:s.y,selectionHeight:s.height,selectionWidth:s.width,originalEvent:e.originalEvent}),a.isDragged=0),o.hide(),delete a.oy,delete a.ox,(t=s.x-n.config.canvasLeft)!==(r=t+s.width)&&(a.boxStartValue=i.getValue(t),a.boxEndValue=i.getValue(r),this.pinRangePixels(t,r,e))},t}(o["default"]);t["default"]=g},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(272)),i=n(r(268)),o=n(r(392)),s=r(254),l=function(e){function t(){var r;r=e.call(this)||this;var n=(0,a["default"])(r);return n.controlArr=[{nativeInteraction:["fc-dragstart","fc-dragmove"],callback:n.onDrag.bind(n),component:n},{nativeInteraction:["fc-dragend"],callback:n.onDragEnd.bind(n),component:n}],n.toggle=n.toggle.bind(n),s.isFirefox&&n.controlArr.push({nativeInteraction:["fc-mousedown"],callback:t.mousedown,component:n}),r}(0,i["default"])(t,e),t.mousedown=function(e){e&&e.preventDefault()};var r=t.prototype;return r.configure=function(){e.prototype.configure.call(this);!this.config.skipGraphics&&this.setLinkedItem("button",this.createButton({icon:"panModeIcon",tooltext:this.config.tooltext,handlers:{click:this.toggle},state:"activated"})),this.getLinkedParent().registerDependancy([{derivedInteraction:["zoomin","zoomout","dragzoomenabled","dragzoomdisabled"],callback:this.dependancyFn,component:this}]),this.disable(s.UNDEF,!1)},r.getName=function(){return"dragPan"},r.enable=function(e,t){this._checkStackLen()&&!0!==this.config.enabled&&(this.config.enabled=!0,this.config.state="pressed",this.fireEvent("panenabled"),!t&&this.getFromEnv("chart").fireChartInstanceEvent("zoommodechanged",{panModeActive:!0},e&&e.originalEvent),this.setControl())},r.disable=function(e,t){!1!==this.config.enabled&&(this.config.enabled=!1,this.config.state=this._checkStackLen()?"activated":"disabled",this.fireEvent("pandisabled"),!t&&this.getFromEnv("chart").fireChartInstanceEvent("zoommodechanged",{panModeActive:!1},e&&e.originalEvent),this.setControl())},r.setControl=function(){var e=this.getLinkedParent(),t=this.getLinkedItem("button"),r=this.controlArr;e.releaseControl(r),this.isEnabled()&&e.getControl(r),t&&t.setCurrentState(this.isEnabled()?this.config.state:"disabled")},r.setDrag=function(e){this.config.isDragging=!!e},r.isDragging=function(){return!!this.config.isDragging},r.onDragEnd=function(){this.setDrag(!1),this.getFromEnv("chart").getContainer("parentgroup").attr({cursor:"default"})},r.onDrag=function(e){var t,r,n,a,i,o,s,l,c,u,h,f=function(e){var t=e;return t.originalEvent&&(t=t.originalEvent),t.type.match(/touch/)?{x:t.touches[0].pageX,y:t.touches[0].pageY}:t.type.match(/mouse|pointer/)?{x:t.pageX,y:t.pageY}:void 0}(e.originalEvent);(function(e){return!e.touches||1===e.touches.length})(e.originalEvent)&&(this.getFromEnv("chart").getContainer("parentgroup").attr({cursor:"move"}),this.getFromEnv("animationManager").setAnimationState("drag"),this.isDragging()?this.getFromEnv("axesObArr").forEach((function(e){var d,p;if(t=e.origConfig.minValue,r=e.origConfig.maxValue,i=e.axis,o=i.config.axisRange,s=i.getScale(),l=s.getRange(),c=s.getDomain(),u=(l[1]-l[0])/(c[1]-c[0]),d=f,p=e.startCoord,h={x:d.x-p.x,y:d.y-p.y},a=r-t,(n=-(n=e.isY?h.y/u:h.x/u))>0)n=Math.min(o.max-r,n);else{if(!(n<0))return;n=-Math.min(t-o.min,-n)}r=(t+=n)+a,i.setVisibleConfig(t,r)})):(this.getFromEnv("axesObArr").forEach((function(e){e.origConfig=e.axis.getVisibleConfig(),e.startCoord=f})),this.setDrag(!0)))},r.dependancyFn=function(e){"zoomout"===e.type?!this._checkStackLen()&&this.disable():"zoomin"===e.type?this.enable(e):"dragzoomdisabled"===e.type?this._checkStackLen()&&this.enable(e):"dragzoomenabled"===e.type&&this.disable(e)},t}(o["default"]);t["default"]=l},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(272)),i=n(r(268)),o=n(r(392)),s=r(254),l=function(e){return e<0?-e:e},c=function(e){function t(){var t;t=e.call(this)||this;var r=(0,a["default"])(t);return r.controlArr=[{nativeInteraction:["fc-pinchstart"],callback:r.pinchstart.bind(r),component:r},{nativeInteraction:["fc-pinchmove"],callback:r.pinchmove.bind(r),component:r}],t}(0,i["default"])(t,e);var r=t.prototype;return r.getName=function(){return"pinchZoom"},r.configure=function(){e.prototype.configure.call(this),this.enable()},r.getCenter=function(e,t){var r=this.getFromEnv("chart"),n=(0,s.getMouseCoordinate)(r.getLinkedItem("container"),{pageX:(e.pageX+t.pageX)/2,pageY:(e.pageY+t.pageY)/2},r);return{x:n.chartX,y:n.chartY}},r.pinchmove=function(e){var t,r,n,a,i,o,s,c,u=this,h=e.originalEvent.data,f=h.distanceX,d=h.distanceY,p=u.config,g=p.touchConfig,m={},v=!1,b={},y=u.getFromEnv("chart"),x=u.getFromEnv("axesObArr"),w=Math.pow(10,p.zoomDecimalLimit)||1,_=y.getChildContainer().plotGroup;t=l(f/g.distanceX),r=l(d/g.distanceY),x.forEach((function(){_.transform(""),_.scale(t,r,g.center.x,g.center.y)})),clearTimeout(p.chartDraw),p.chartDraw=setTimeout((function(){_.transform(""),x.forEach((function(e){var l=e.axis,h=function(e,t,r,n,a){var i=e.getVisibleConfig(),o=e.getValue(t[n?"y":"x"]+e.getTranslation()),s=o-i.minValue,l=i.maxValue-o,c=e.config.axisRange;return{min:Math.round(Math.max(c.min,o-s/r)*a)/a,max:Math.round(Math.min(c.max,o+l/r)*a)/a}}(l,g.center,e.isY?r:t,e.isY,w),f=h.min,d=h.max,p=e.stack,y=l.getVisibleConfig(),x=l.getLimit(),_=p.length-1,S=p[_],C=Math.floor(f)===x.min&&Math.ceil(d)===x.max,k=l.getZoom()>=w;if(S)if(C)e.stack=[],m.zoomout=!0;else if(S.minValue>f&&S.maxValue<d){for(;S&&S.minValue>f&&S.maxValue<d;)p.pop(),S=p[--_];m.zoomout=!0}else k||(p.push(y),m.zoomin=!0);else C||k||(p.push(y),m.zoomin=!0);e.isY?(o=f,s=d):(a=f,i=d,b=u.constructor._getZoomInfo(a,i,l)),c=e.stack.length+1,n=l.setVisibleConfig(f,d),v=v||n})),v&&(m.zoomout&&u._raiseZoomEvents("zoomout","zoomedout",Object.assign(b,{level:c,startX:a,endX:i,startY:o,endY:s})),m.zoomin&&u._raiseZoomEvents("zoomin","zoomedin",Object.assign(b,{level:c,startX:a,endX:i,startY:o,endY:s}))),p.chartDraw=null}),250)},r.pinchstart=function(e){var t,r=e.originalEvent.data,n=r;this.getFromEnv("animationManager").setAnimationState("touch"),n.center=this.getCenter(r.finger0,r.finger1),this.config.touchConfig=r,this.getFromEnv("axesObArr").forEach((function(e){t=e.axis,e.visibleConfig=t.getVisibleConfig(),e.centerVal=t.getValue(e.isY?n.center.y:n.center.x)}))},r.setControl=function(){var e=this.getLinkedParent(),t=this.controlArr;e.releaseControl(t),this.isEnabled()&&e.getControl(t)},t}(o["default"]);t["default"]=c},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(272)),i=n(r(268)),o=n(r(392)),s=r(254),l=function(e){function t(){var t;t=e.call(this)||this;var r=(0,a["default"])(t);return r.controlArr=[{nativeInteraction:["fc-dragend"],callback:r.end.bind(r),component:r},{nativeInteraction:["fc-dragmove"],callback:r.move.bind(r),component:r},{nativeInteraction:["fc-dragstart"],callback:r.start.bind(r),component:r}],t}(0,i["default"])(t,e);var r=t.prototype;return r.getName=function(){return"swipeGesture"},r.configure=function(){e.prototype.configure.call(this),this.enable()},r.getPresentScrollValue=function(){var e=this.config.xAxis,t=e.getVisibleConfig(),r=e.getLimit(),n=t.maxValue-t.minValue,a=r.max-r.min;return(t.minValue-r.min)/(a-n)},r.start=function(e){var t,r,n=this.getFromEnv("chart"),a=this.config;t=(0,s.getMouseCoordinate)(n.getFromEnv("chart-container"),e.originalEvent,n),a.previousX=t.chartX,a.previousY=t.chartY,a.presentScrollValue=r=this.getPresentScrollValue(),n.fireChartInstanceEvent("scrollStart",{scrollPosition:r})},r.move=function(e){var t,r=this.config,n=this.getFromEnv("chart"),a=r.xAxis,i=n.getChildren("scrollBar")&&n.getChildren("scrollBar")[0],o=i&&i.getChildren("scrollAnchor")[0],l=a.config.axisRange,c=(0,s.getMouseCoordinate)(n.getFromEnv("chart-container"),e.originalEvent,n),u=c.chartX,h=c.chartY,f=i&&i.config&&!i.config.isHorizontal?(h-r.previousY)/r.plotDifference:(u-r.previousX)/r.plotDifference,d=a.getVisibleConfig(),p=r.previousScrollValue=r.presentScrollValue,g=d.minValue-f,m=r.axisMin,v=r.axisMax,b=d.maxValue-f;g<m&&m===d.minValue||b>v&&v===d.maxValue||(g<m?(b+=f,b-=f=d.minValue-m,g=m):v<b&&(g+=f,g+=f=v-d.maxValue,b=v),t=(g-l.min)/(l.max-l.min-(b-g)),o.config.scrollPosition=t,n.getFromEnv("animationManager").setAnimationState("scroll"),a.setVisibleConfig(g,b),n.setScrollBarDimension&&n.setScrollBarDimension(),i.asyncDraw(),n.fireChartInstanceEvent("onScroll",{scrollPosition:p}),r.previousX=u,r.previousY=h,r.presentScrollValue=this.getPresentScrollValue())},r.end=function(){var e=this.config;this.getFromEnv("chart").fireChartInstanceEvent("scrollEnd",{previousScrollPosition:e.previousScrollValue,scrollPosition:e.presentScrollValue})},r.setControl=function(){var e=this.getLinkedParent(),t=this.controlArr;e.releaseControl(t),this.isEnabled()&&e.getControl(t)},r.draw=function(){var e=this.config,t=this.getFromEnv("canvas").getAxes().filter((function(e){return!e.isY})),r=e.xAxis=t&&t[0]&&t[0].axis,n=r.config.axisRange;e.plotDifference=r.getPixel(1)-r.getPixel(0),e.axisMin=n.min,e.axisMax=n.max},t}(o["default"]);t["default"]=l},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=function(e){var t=window,r=t.navigator.userAgent,a=/msie/i.test(r)&&!t.opera,i=Math,o=i.min,s=i.round,l=t.parseFloat,c=String,u="rgba(192,192,192,"+(a?.002:1e-6)+")",h={enabled:!1,"false":!1,0:!1,disabled:!0,"true":!0,1:!0};e.define&&e.define([{name:"button",button:function(t,r,n,a,i,o){var s,l=t,c=r,h=n,f=a,d=i,p=o,g=c,m=this.group("button",g),v=l.labelFill,b=l.symbolFill,y=l.fill,x=l.button[5],w=l.button[6],_=l.hoverFill,S=l.stroke,C=l["symbol-stroke"],k=l["stroke-width"],A=l["symbol-stroke-width"],N=l.config;if("object"==typeof l&&l.button){var E=l.button;l=E[0],c=E[1],h=E[2],f=E[3],d=E[4],g=E[5]}for(s in g=g||p,m._.button={bound:this.rect(m),tracker:this.rect(m).attr({fill:u,stroke:u,cursor:"pointer"}).data("compositeButton",m)},!e.is(d,"object")&&(d={}),e.fn.button.fn)m[s]=e.fn.button.fn[s];for(s in e.fn.button.ca)m.ca[s]=e.fn.button.ca[s];return N&&m.attr({config:N}),m.attr({"button-padding":[d.horizontalPadding,d.verticalPadding],"button-label":h,"button-label-size":x,"button-label-family":w,"button-symbol":f,"button-disabled":d.disabled||"false","button-symbol-position":d.symbolPosition,"button-symbol-padding":d.symbolPadding}).attr("button-repaint",[l,c,d.width,d.height,d.r]).attr({labelFill:v,symbolFill:b,fill:y,hoverFill:_,stroke:S,"symbol-stroke":C,"stroke-width":k,"stroke-linecap":"round","symbol-stroke-width":A})},data:{hoverin:function(){var e=this,t=e._.button,r=t.hoverbackIn,n=e._hover||{};n.fill||n["fill-symbol"]||n.stroke||n["stroke-width"]||n.cursor||n.labelFill||n["symbol-stroke"]?(n.fill&&e.bottom.attr("fill",n.fill)&&!n["fill-symbol"]&&t.symbol.attr("fill",n.fill),n["fill-symbol"]&&t.symbol.attr("fill",n["fill-symbol"]),n.stroke&&e.bottom.attr("stroke",n.stroke)&&t.symbol.attr("stroke",n.stroke),n["stroke-width"]&&e.bottom.attr("stroke-width",n["stroke-width"])&&t.symbol.attr("stroke-width",n["stroke-width"]),n.cursor&&t.tracker.attr("cursor",n.cursor),n.labelFill&&t.label&&t.label.attr("fill",n.labelFill),n["symbol-stroke"]&&t.symbol.attr("stroke",n["symbol-stroke"]),r&&r()):r&&!1===r(arguments)||e.attr("fill","hover"),e.hovered=!0},hoverout:function(){var e=this,t=e._.button,r=t.hoverbackOut,n=e._normal||{};n.fill||n["fill-symbol"]||n.stroke||n["stroke-width"]||n.cursor||n.labelFill||n["symbol-stroke"]?(n.fill&&e.bottom.attr("fill",n.fill)&&!n["fill-symbol"]&&t.symbol.attr("fill",n.fill),n.stroke&&e.bottom.attr("stroke",n.stroke)&&t.symbol.attr("stroke",n.stroke),n["fill-symbol"]&&t.symbol.attr("fill",n["fill-symbol"]),n["stroke-width"]&&e.bottom.attr("stroke-width",n["stroke-width"])&&t.symbol.attr("stroke-width",n["stroke-width"]),n["symbol-stroke"]&&t.symbol.attr("stroke",n["symbol-stroke"]),n.labelFill&&t.label&&t.label.attr("fill",n.labelFill),n.cursor&&t.tracker.attr("cursor",n.cursor),r&&r()):r&&!1===r(arguments)||e.attr("fill",e.pressed||e.active?"active":"normal"),e.hovered=!1},mousedown:function(){var e=this,t=e._.button,r=e._pressed||{};r.fill||r["fill-symbol"]||r.stroke||r["stroke-width"]||r.cursor||r.labelFill||r["symbol-stroke"]?(r.fill&&e.bottom.attr("fill",r.fill)&&!r["fill-symbol"]&&t.symbol.attr("fill",r.fill),r.stroke&&e.bottom.attr("stroke",r.stroke)&&t.symbol.attr("stroke",r.stroke),r["fill-symbol"]&&t.symbol.attr("fill",r["fill-symbol"]),r["stroke-width"]&&e.bottom.attr("stroke-width",r["stroke-width"])&&t.symbol.attr("stroke-width",r["stroke-width"]),r.labelFill&&t.label&&t.label.attr("fill",r.labelFill),r["symbol-stroke"]&&t.symbol.attr("stroke",r["symbol-stroke"]),r.cursor&&t.tracker.attr("cursor",r.cursor)):e.attr("fill","active"),e.pressed=!0},mouseup:function(){var e=this,t=e._.button,r=t.callback,n=e._normal||{};n.fill||n["fill-symbol"]||n.stroke||n["stroke-width"]||n.cursor||n.labelFill||n["symbol-stroke"]?(n.fill&&e.bottom.attr("fill",n.fill)&&!n["fill-symbol"]&&t.symbol.attr("fill",n.fill),n.stroke&&e.bottom.attr("stroke",n.stroke)&&t.symbol.attr("stroke",n.stroke),n["fill-symbol"]&&t.symbol.attr("fill",n["fill-symbol"]),n["stroke-width"]&&e.bottom.attr("stroke-width",n["stroke-width"])&&t.symbol.attr("stroke-width",n["stroke-width"]),n.labelFill&&t.label&&t.label.attr("fill",n.labelFill),n["symbol-stroke"]&&t.symbol.attr("stroke",n["symbol-stroke"]),n.cursor&&t.tracker.attr("cursor",n.cursor)):e.attr("fill",(e.hovered?"hover":e.active&&"active")||"normal"),e.pressed=!1,r&&r(arguments)},mousemove:function(){var e=this,t=e._.button,r=t.mousemove;r&&r(arguments)}},fn:{tooltip:function(){return e.el.tooltip&&e.el.tooltip.apply(this._.button.tracker,arguments),this},buttonclick:function(e,t){var r=t,n=this,a=n._.button;return r=r||n,a.callback=function(){return e.apply(r,arguments)},n},labelcss:function(){var e=this._.button,t=e.label;return e.cssArg=arguments,t&&t.css.apply(t,arguments),this.attr("button-repaint",this.attrs["button-repaint"])},buttonhover:function(e,t,r,n,a,i){var o=this,s=o._.button,l=r||o,c=n||o,u=i||o;return a&&(s.mousemove=function(){return a.apply(u,arguments)}),s.hoverbackIn=function(){return e.apply(l,arguments)},s.hoverbackOut=function(){return t.apply(c,arguments)},o},remove:function(){var t,r=this,n=r._.button;for(t in r.attr("button-disabled","true"),n)n[t]&&n[t].remove&&n[t].remove(),n[t]=null;delete r._.button,e.el.remove.apply(r,arguments)}},ca:{"button-active":function(e){var t=this;t.attr("fill",(t.active=!!e)?"active":t.hovered?"hover":"normal")},"button-disabled":function(e){var t=this,r=e,n=t.paper,a=t._.button,i=a.tracker,o=t.attrs["button-disabled"],s=n.button.data,l=t._disabled||{};if(o=h[o],void 0!==(r=h[r])&&r!==o)switch(r){case!0:l.fill||l.stroke||l["stroke-width"]||l.cursor?(l.fill&&t.bottom.attr("fill",l.fill)&&a.symbol.attr("fill",l.fill),l.stroke&&t.bottom.attr("stroke",l.stroke)&&a.symbol.attr("stroke",l.stroke),l["stroke-width"]&&t.bottom.attr("stroke-width",l["stroke-width"]&&a.symbol.attr("fill",l.fill)),l.cursor&&a.tracker.attr("cursor",l.cursor)):i.attr("fill","rgba(204,204,205,.5)"),i.off("fc-mousedown",s.mousedown).off("fc-unmouseup",s.mouseup).unhover(s.hoverin,s.hoverout).unmousemove(s.mousemove);break;case!1:i.attr("fill",u).on("fc-mousedown",s.mousedown,t).on("fc-mouseup",s.mouseup,t).hover(s.hoverin,s.hoverout,t,t).mousemove(s.mousemove,t)}},"button-label":function(e){var t=this,r=t._.button,n=t.attrs,a=e,i=r.label,o=r.cssArg,s=t.attrs["button-repaint"];"none"===(a=c(a||""))?i&&(r.label=i.remove()):a&&(!i&&(i=r.label=t.paper.text(t).insertBefore(r.tracker)),i.attr({text:a,"text-anchor":"middle","vertical-align":"middle"}),o&&o.length&&i.css.apply(i,o)),s&&n["button-label"]!==a&&t.attr("button-repaint",s)},"button-label-size":function(e){var t=this,r=t._.button,n=t.attrs,a=r.label,i=t.attrs["button-label-size"];a&&a.attr({"font-size":e}),i&&n["button-label-size"]!==e&&t.attr("button-label-size",i)},"button-label-family":function(e){var t=this,r=t._.button,n=t.attrs,a=e,i=r.label,o=t.attrs["button-label-family"];i&&(void 0===a&&(a="sans-serif"),i.attr({"font-family":a}),o&&n["button-label-family"]!==a&&t.attr("button-label-family",o))},"button-symbol":function(e){var t=this,r=t._.button,n=e,a=r.symbol,i=t.attrs["button-repaint"];"none"===(n=c(n||""))?(a&&(r.symbol=a.remove()),delete r.symbol):n&&!a&&(a=r.symbol=t.paper.symbol(t).insertAfter(r.bound)),i&&t.attr("button-repaint",i)},"button-symbol-position":function(e){return{"button-symbol-position":{top:"top",right:"right",bottom:"bottom",left:"left",none:"none"}[c(e).toLowerCase()]||"none"}},"button-symbol-padding":function(e){return{"button-symbol-padding":l(e)}},"button-padding":function(e,t){var r=e,n=t;return{"button-padding":[null==r&&(r=5)||l(r),null==n&&r||l(n)]}},"button-repaint":function(t,r,a,i,l){var c,u,h,f,d,p,g,m=this._.button,v=t,b=r,y=a,x=i,w=l,_=m.bound,S=m.label,C=m.symbol,k=this.attrs,A=k["button-padding"],N=A[0],E=A[1];if(void 0===v&&(v=0),void 0===b&&(b=0),void 0!==y&&void 0!==x||(p=S&&S.getBBox()||{width:0,height:0},void 0===y&&(y=2*N+p.width),void 0===x&&(x=2*E+p.height)),(g=e.crispBound(v,b,y,x,_.attr("stroke-width"))).r=w=(0,n.pluck)(w,s(.1*o(x,y))),v=g.x,b=g.y,y=g.width,x=g.height,S&&S.attr({x:v+y/2,y:b+x/2}),C){switch(!e.is(d=k["button-symbol-padding"],"finite")&&(d=.2*x),f=.5*(h=x-E),k["button-symbol-position"]+(S?"+":"-")){case"right+":c=v+(y+=2*f+E)-f-N,u=b+.5*x,S.attr("transform",["t",-(h+d),0]);break;case"left+":y+=2*f+E,c=v+N+f,u=b+.5*x,S.attr("transform",["t",h+d,0]);break;case"top+":x+=2*f+d,c=v+.5*y,u=b+A[1]+f,S.attr("transform",["t",0,h+d]);break;case"bottom+":c=v+.5*y,u=b+(x+=2*f+d)-E-f,S.attr("transform",["t",0,-(h+d)]);break;default:c=v+.5*y,u=b+.5*x}C.attr("symbol",[k["button-symbol"],c,u,f,y,x])}m.bound.attr(g),m.tracker.attr(g)},fill:function(t,r){void 0===r&&(r=!0);var n=this,a=n._.button,i=a.bound,o=t,s={normal:a.gradient,active:a.gradientActive,hover:a.gradientHover}[o];return s||(r||((o=e.getRGB(o)).error&&(o=e.color("#cccccc")),o="opacity"in o?"rgba("+[o.r,o.g,o.b,o.opacity]+")":"rgb("+[o.r,o.g,o.b]+")"),a.gradient=r?o:[90,e.tintshade(o,-.8).rgba+":0",e.tintshade(o,.8).rgba+":100"].join("-"),a.gradientActive=[270,e.tintshade(o,-.8).rgba+":0",e.tintshade(o,.8).rgba+":100"].join("-"),s=(n.pressed||n.active)&&a.gradientActive||n.hovered&&a.gradienthover||a.gradient),i.attr("fill",s),!1},hoverFill:function(t){var r=this._.button,n=t;return n="opacity"in(n=e.getRGB(n))?"rgba("+[n.r,n.g,n.b,n.opacity]+")":"rgb("+[n.r,n.g,n.b]+")",r.gradientHover=n,!1},labelFill:function(e){var t=this._.button,r=t.label;return r&&e&&(t.labelFill=e,r.attr("fill",e)),!1},symbolFill:function(e){var t=this._.button,r=t.symbol;return r&&e&&(t.symbolFill=e,r.attr("fill",e)),!1},stroke:function(t){var r=this._.button,n=t;return(n=e.color(n)).error&&(n=e.color("#999999")),r.bound.attr("stroke",n),!1},"symbol-stroke":function(e){var t=this._.button.symbol;return t&&e&&t.attr("stroke",e),!1},"stroke-width":function(e){var t=this._.button;return t.bound.attr("stroke-width",e),t.tracker.attr("stroke-width",e),!1},"symbol-stroke-width":function(e){var t=this._.button.symbol;return t&&e&&t.attr("stroke-width",e),!1},config:function(e){var t=this;e.hover&&(t._hover={fill:e.hover.fill,stroke:e.hover.stroke,"stroke-width":e.hover["stroke-width"],cursor:e.hover.cursor,"fill-symbol":e.hover["fill-symbol"],"symbol-stroke":e.hover["symbol-stroke"],labelFill:e.hover.labelFill}),e.disabled&&(t._disabled={fill:e.disabled.fill,stroke:e.disabled.stroke,"stroke-width":e.disabled["stroke-width"],"symbol-stroke":e.disabled["symbol-stroke"],cursor:e.disabled.cursor,labelFill:e.disabled.labelFill}),e.pressed&&(t._pressed={fill:e.pressed.fill,stroke:e.pressed.stroke,"stroke-width":e.pressed["stroke-width"],cursor:e.pressed.cursor,"fill-symbol":e.pressed["fill-symbol"],"symbol-stroke":e.pressed["symbol-stroke"],labelFill:e.pressed.labelFill}),e.normal&&(t._normal={fill:e.normal.fill,stroke:e.normal.stroke,"stroke-width":e.normal["stroke-width"],cursor:e.normal.cursor,"fill-symbol":e.normal["fill-symbol"],"symbol-stroke":e.normal["symbol-stroke"],labelFill:e.normal.labelFill}),e.symbol&&(e.symbol={stroke:e.normal.stroke,"stroke-width":e.normal["stroke-width"]})}}}])};var n=r(254)},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(254),a=function(e){s(e,"legendItemClicked")},i=function(e){s(e,"legendItemRollover")},o=function(e){s(e,"legendItemRollout")},s=function(e,t){var r=e.sender,a=r.getLinkedItem("owner"),i=r.getFromEnv("chart"),o=a&&a.getEventArgs?a.getEventArgs(r):r.config.eventArguments,s=(0,n.getMouseCoordinate)(r.getFromEnv("chart-container"),e,i);/click/gi.test(t)||void 0===o.visible||(o.visible=!o.visible),"timeseries"===i.getName().toLowerCase()&&(o.visible=/click/gi.test(t)?!i.config.legendMap[r.config.label].visibility:i.config.legendMap[r.config.label].visibility),o.chartX=s.chartX,o.chartY=s.chartY,o.pageX=s.pageX,o.pageY=s.pageY,o.id=i.getId(),o.legendItemId=r.getId(),o.legendItemIndex=r.config.index,i.fireChartInstanceEvent(t,o,e)},l={extension:function(e){var t;e.addEventListener("instantiated",(function(e){var r;"legendItem"===(t=e.sender).getType()&&((r=t).addEventListener("fc-click",a),r.addEventListener("fc-mouseover",i),r.addEventListener("fc-mouseout",o))}))},name:"legendEventManagerLinker",type:"extension",requiresFusionCharts:!0};t["default"]=l},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(420));function i(e){void 0===e&&(e={});var t=this.apiInstance.getChildren("exportModule");return void 0!==(t=t&&t[0])&&(t.exportChart(e),!0)}var o={extension:function(e){e.addEventListener("instantiated",(function(e){var t=e.sender;(function(e){return"chartAPI"===e.getType()})(t)&&t.registerFactory("export",(function(e){var r;t.getFromEnv("chartInstance").exportChart=i,Number(e.getFromEnv("dataSource").chart.exportenabled)&&(e.getChildren("exportModule")?r=e.getChildren("exportModule")[0]:(r=new a["default"],e.attachChild(r,"exportModule"),r.addToEnv("chartInstance",e.getFromEnv("chartInstance")),r.addToEnv("chartMenuList",e.getFromEnv("chartMenuList"))),r.configure({chartConfig:e.getFromEnv("dataSource").chart}))}),["toolbox"])}))},name:"Export",type:"extension",requiresFusionCharts:!0};t["default"]=o},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(253)),i=n(r(268)),o=r(270),s=r(262),l=r(254),c=n(r(421)),u=r(422),h=r(425),f=r(423);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var p=/\s\bx\b=['"][^'"]+?['"]/gi,g=/\s\by\b=['"][^'"]+?['"]/gi,m=window,v=m.document,b="https:"===m.location.protocol?"https://export.api3.fusioncharts.com/":"http://export.api3.fusioncharts.com/",y="https:"===m.location.protocol?"https://export.api3.fusioncharts.com/api/v1.0/logs":"http://export.api3.fusioncharts.com/api/v1.0/logs",x=m.navigator.userAgent.match(/(iPad|iPhone|iPod)/g),w=function(e){function t(){var t;return(t=e.call(this)||this).config={exportOption:{},chartConfig:{caption:"",subcaption:"",width:"",height:""}},t}(0,i["default"])(t,e);var r=t.prototype;return r.getName=function(){return"exportModule"},r.getType=function(){return"extension"},r.configureMenuBar=function(){var e,t,r,n,i,o,c,h,f,p=this,g=p.getFromEnv("toolbar"),v=!!m.btoa,b=p.getFromEnv("chart"),y=p.getFromEnv("chart-attrib").exportformats,x=g.getChild("hamburgerMenu-"+g.getId()+"-"+b.getId()+"-0"),w=(0,s.getDep)("Excelexport"),_={PNG:"Export As "+u.EXPORTFORMAT.PNG.toUpperCase(),JPG:"Export As "+u.EXPORTFORMAT.JPG.toUpperCase(),PDF:"Export As "+u.EXPORTFORMAT.PDF.toUpperCase(),SVG:"Export As "+u.EXPORTFORMAT.SVG.toUpperCase(),CSV:"Export As "+u.EXPORTFORMAT.CSV.toUpperCase(),XLSX:"Export As "+u.EXPORTFORMAT.XLSX.toUpperCase(),XLS:"Export As "+u.EXPORTFORMAT.XLS.toUpperCase()},S=[];if(p.config.exportOption.exportenabled){if(o=function(e){return function(){p.config.exportOption.exportformat=e,p.exportChart({})}},y)for(n=0,i=(e=y.split("|")).length;n<i;n++)t=e[n].split("="),(r=(0,l.trimString)(t[0].toUpperCase())).toLowerCase()===u.EXPORTFORMAT.XLSX&&(f=!0),_[r]&&(_[r]=t[1]||_[r]),_[r]&&(h||(h={}))&&(h[r]=!0);for(r in p.config.exportOption.exportformats=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){(0,a["default"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},_),_)"XLSX"===r&&(!v||!w||w&&w.then)||h&&!h[r]||"XLS"!==r&&("CSV"!==r||v)&&(c={name:_[r],handler:o(r),action:"click"},S.push(c));x.appendInMenu(S),v&&w&&w.then&&w.then((function(){y&&!f||(x.appendInMenu([{name:_.XLSX,handler:o("XLSX"),action:"click"}]),x.asyncDraw())}))}},r.configure=function(e){var t,r,n,a=this.getFromEnv("chartInstance"),i=this.config,o=i.chartConfig,s=i.exportOption,c=e.chartConfig;c.caption&&(o.caption=(0,l.pluck)(c.caption,"")),c.subcaption&&(o.subcaption=(0,l.pluck)(c.subcaption,"")),s.exportenabled=(0,l.pluckNumber)(c.exportenabled,0),s.exportshowmenuitem=(0,l.pluckNumber)(c.exportshowmenuitem,1),s.exportformat=(0,l.pluck)(c.exportformat,u.EXPORTFORMAT.PNG),s.exporthandler=(0,l.pluck)(c.html5exporthandler,c.exporthandler,b),s.exportaction=c.exportaction&&"string"==typeof c.exportaction?(t=c.exportaction.toLowerCase(),[u.EXPORTACTION.DOWNLOAD,u.EXPORTACTION.SAVE,u.EXPORTACTION.DOWNLOADSAVE].indexOf(t)>=0?t:u.EXPORTACTION.DOWNLOAD):u.EXPORTACTION.DOWNLOAD,s.exporttargetwindow=(0,l.pluck)(c.exporttargetwindow,x?"_parent":"_self"),s.exportfilename=(0,l.pluck)(c.exportfilename,"FusionCharts"),s.exportparameters=(0,l.pluck)(c.exportparameters,""),s.exportcallback=(0,l.pluck)(c.exportcallback,""),s.exportwithimages=(0,l.pluckNumber)(c.exportwithimages,1),s.exportmode=("undefined"!=typeof c.exportatclientside&&(r={1:u.EXPORTMODE.AUTO,0:u.EXPORTMODE.AUTO}[c.exportatclientside]),r=(r=c.exportmode||r||u.EXPORTMODE.AUTO).toLowerCase()),s.logenabled=(0,l.pluckNumber)(c.logenabled,0),s.loghandler=(0,l.pluck)(c.html5loghandler,c.loghandler,y),s.logmode=void 0!==(n=c.logmode)&&"string"==typeof n&&n.toUpperCase()in u.LOGMODE?u.LOGMODE[n.toUpperCase()]:u.LOGMODE.AUTO,s.bgcolor=function(e){return e.jsVars.transparent||0===(0,l.pluckNumber)(e.options.containerBackgroundOpacity,1)?l.BLANKSTRING:e.options.containerBackgroundColor||"#FFFFFF"}(a),s.bgalpha=function(e){return e.jsVars.transparent?0:(0,l.pluckNumber)(e.options.containerBackgroundOpacity,1)+""}(a),s.exportshowmenuitem&&this.configureMenuBar()},r.exportChart=function(e){var t,r,n,a=this,i=a.getFromEnv("chartInstance"),o=a.getFromEnv("chart"),d="object"==typeof e&&function(e){var t,r={};for(t in e)r[t.toLowerCase()]=e[t];return r}(e)||{},b=(0,l.extend2)((0,l.extend2)({},a.config.exportOption),d),y=(b.exportformat||u.EXPORTFORMAT.PNG).toLowerCase(),x=b.exporthandler,w=b.exportaction,_=b.exporttargetwindow||"",S=b.exportfilename,C=b.exportparameters,k=b.exportcallback,A=b.exportwithimages,N=b.exportmode,E=b.logenabled,L=b.loghandler,M=b.logmode,F=function(e){o.fireChartInstanceEvent("exportDataReady",e)};o.fireChartInstanceEvent("beforeExport",b,void 0,(function(){var e,d,T,D,I,O,P,R,j,B=i.id,V=a.config.chartConfig.caption,z=a.config.chartConfig.subcaption,U=this.apiInstance.getFromEnv("paper"),H=this.apiInstance.getFromEnv("core-options")["export"].useCanvas,q=(0,c["default"])(o.getChildren("chartMenuBar"))?o.getChildren("chartMenuBar")[0]:o.getChildren("actionBar")[0],G=q.getChild("hamburgerMenu-"+q.getId()+"-"+o.getId()+"-0"),W={DOMId:B,height:U.height,width:U.width,fileName:S+"."+y,statusCode:void 0,statusMessage:void 0,notice:void 0},$={exportAction:w,exportTargetWindow:_,exportCallback:k,fusionCharts:i,paper:U,chartId:B,exportHandler:x,logEnabled:E,logMode:M,logHandler:L},X=function(e,t,r){var n;return n=!!E,M===u.LOGMODE.CLIENT&&(n=!1),{charttype:i.chartType(),stream_type:e||"",stream:t||"",meta_bgColor:b.bgcolor||"",meta_bgAlpha:b.bgalpha||"1",meta_DOMId:i.id,meta_width:U.width||a.config.chartConfig.width,meta_height:U.height||a.config.chartConfig.height,chart_caption:V,chart_sub_caption:z,is_single_export:!0,is_full_version:!1,version:l.PROJECT_VERSION,user_time_zone:-(new Date).getTimezoneOffset(),log_enabled:n,parameters:["exportfilename="+S,"exportformat="+y,"exportaction="+(0,u.createExportActionOldString)(w),"exportactionnew="+w,"configuredexportaction="+(r||w),"exportparameters="+C].join("|")}},Y=function(){return{chartType:i.chartType(),chartCaption:V,chartSubCaption:z,isSingleExport:!0,isFullVersion:!1,exportAction:w,userTimeZone:-(new Date).getTimezoneOffset(),exportFileName:[S,y].join("."),exportFormat:y,version:l.PROJECT_VERSION}},K=function(e){(0,f.downloadCharts)(null,null,null,X(u.EXPORTFORMAT.SVG,e),$)},J=function(e,t,r){var n;(n=v.createElement("canvas")).width=U.width,n.height=U.height,(0,f.drawSvgOnCanvas)({svg:T,canvas:n,x:0,y:0,width:U.width,height:U.height,useCanvas:H},(function(){switch(e){case u.EXPORTFORMAT.PNG:t(e,n.toDataURL("image/png"),S,r);break;case u.EXPORTFORMAT.JPEG:case u.EXPORTFORMAT.PDF:default:t(e,n.toDataURL("image/jpeg"),S,r)}}))},Z=function(t,r,n,a,i){var o=r;t===u.EXPORTFORMAT.PDF&&((0,h.addImage)(o,U.height,U.width),o=(0,h.getDataUrl)()),e=i===u.EXPORTMODE.AUTO?X("IMAGE-DATA",o):null,(0,f.downloadCharts)("url",o,n+"."+t,e,a)},Q=F,ee=function(e){e===u.LOGMODE.CLIENT&&(0,u.logCharts)(Y(),$)},te=function(r,n){if(I="undefined"!=typeof m.btoa&&("Chrome"===f.browserDetails.name||"Firefox"===f.browserDetails.name||"Safari"===f.browserDetails.name||"Edge"===f.browserDetails.name||"ie"===f.browserDetails.name),"server"!==N&&I){if(w===u.EXPORTACTION.DOWNLOAD||w===u.EXPORTACTION.DOWNLOADSAVE){if("xlsx"===y||"csv"===y)(0,f.downloadCharts)("blob",r,S+"."+y,null,$);else if("xls"===y){var a="data:application/vnd.ms-excel;base64,"+(s="<html xmlns:o='urn:schemas-microsoft-com:office:office'xmlns:x='urn:schemas-microsoft-com:office:excel'xmlns='http://www.w3.org/TR/REC-html40'><head>\x3c!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--\x3e</head><body>"+function(){var e,r,n,a,i,o;if(!t.length)return"";for(n=0,o=t.length;n<o;n+=1)if(0===n){for(e="<thead valign='top'><tr>",a=0,i=t[n].length;a<i;a+=1)e+="<th>"+t[n][a]+"</th>";e+="</tr></thead>",r="<tbody>"}else{for(r+="<tr>",a=0,i=t[n].length;a<i;a+=1)r+="<td>"+t[n][a]+"</td>";r+="</tr>"}return"<table align='center' >"+e+(r+="</tbody>")+"</table>"}()+"</body></html>",m.btoa(m.unescape(encodeURIComponent(s))));(0,f.downloadCharts)("url",a,S+"."+y,null,$)}o.fireChartInstanceEvent("exported",W)}w===u.EXPORTACTION.SAVE||w===u.EXPORTACTION.DOWNLOADSAVE?(O=w,w===u.EXPORTACTION.DOWNLOADSAVE&&(w=u.EXPORTACTION.SAVE),e=X("IMAGE-DATA",r,O),(0,f.downloadCharts)(null,null,null,e,$),ee(M)):M!==u.LOGMODE.SERVER&&(0,u.logCharts)(Y(),$)}else{var i=new FileReader;i.onload=function(e){for(var t=l.BLANKSTRING,r=new Uint8Array(e.target.result),a=r.byteLength,i=0;i<a;i++)t+=String.fromCharCode(r[i]);t=n+m.btoa(t),(0,f.downloadCharts)(null,null,null,X("IMAGE-DATA",t),$),ee(M)},i.readAsArrayBuffer(r)}var s};if("xlsx"===y||"xls"===y){if("undefined"==typeof m.btoa)return o.fireChartInstanceEvent("exportCancelled",b),!1;r=i.getCSVData(),Q(),j=0,t=[],r.replace(/[^\r\n]+/g,(function(e){t[j]=[],t[j]=e.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/).map((function(e){return e.replace(/"/g,l.BLANKSTRING)})),j+=1})),(P=(0,s.getDep)("ExcelExport"))&&P(t).then((function(e){te(e,"data:application/vnd.ms-excel;base64,")}))}else if("csv"===y){if("undefined"==typeof m.btoa)return o.fireChartInstanceEvent("exportCancelled",b),!1;r=i.getCSVData(),Q(),n=new Blob([r],{type:"text/csv;base64;"}),te(n,"data:text/csv;base64,")}else(D=G.getChild("listContainer").getLinkedParent().getGraphicalElement("button","button"))&&D.attr("visibility","hidden"),d=U.toSVG(A),T=(T=U.toSVG(A&&(0,f.isCanvasElemSupported)())).replace(/&nbsp;/gi," "),D&&D.attr("visibility","visible"),d=(d=(d=d.replace(/(\sd\s*=\s*["'])[M\s\d\.]*(["'])/gi,"$1M 0 0 L 0 0$2")).replace(/NS\d+:/gi,"xlink:")).replace(/&nbsp;/gi," "),T=(T=(T=T.replace(/NS\d+:/gi,"xlink:")).replace(/(\sd\s*=\s*["'])[M\s\d\.]*(["'])/gi,"$1M 0 0 L 0 0$2")).replace(/(xlink:title\s*=\s*)['"].*?["']/gi,""),d=(d=(d=(d=(d=(d=(d=(d=d.replace(/[\w\-]+\=\"undefined\"/gi,"")).replace(/(xlink:title\s*=\s*)['"].*?["']/gi,"")).replace(/rgba\(([^\)]+)\)/gi,(function(e){return"#"+new l.RGBtoHex(e.split(","))}))).replace(/<svg[^>]+/i,(function(e){var t=e;return t.match(/height/i)||!U.height&&!a.config.chartConfig.height||(t+=' height="'+(U.height||a.config.chartConfig.height)+'"'),t.match(/width/i)||!U.width&&!a.config.chartConfig.width||(t+=' width="'+(U.width||a.config.chartConfig.width)+'"'),t}))).replace(/(([\w]+\-)?opacity\s*=\s*)['"][\d\.]+e[\-\+][\d]+["']/gi,'$1"0.001"')).replace(/(([\w]+\-)?opacity\s*:\s*)[\d\.]+e[\-\+][\d]+/gi,"$10.001")).replace(/<text[^\>]+/gi,(function(e){var t=e;return t=(t=(t=(t=(t=(t=(t=(t=t.replace(/stroke\=[\"\']([a-z0-9\#]+)?[\"\']/gi,"")).replace(/stroke\s*\:\s*([a-z0-9\#]+)?;?/gi,"")).replace(/stroke-width\=[\"\']([a-z0-9\#]+)?[\"\']/gi,"")).replace(/stroke-width\s*\:\s*([a-z0-9\#]+)?;?/gi,"")).replace(/stroke-opacity\=[\"\']([a-z0-9\#]+)?[\"\']/gi,"")).replace(/stroke-opacity\s*\:\s*([a-z0-9\#]+)?;?/gi,"")).replace(/(<text[^\>]+fill\=)([\"\'][^\"\']+[\"\'])([^\>]+)/gi,'$1$2 stroke=$2 stroke-width="0.2"$3')).replace(/(<text[^\>]+fill-opacity\=)([\"\'][^\"\']+[\"\'])([^\>]+)/gi,"$1$2 stroke-opacity=$2 $3")}))).replace(/<(\b[^<>s\s]+\b)[^\>]+?opacity\s*=\s*['"][^1][^\>]+?(\/>|>[\s\r\n]*?<\/\1>)/gi,(function(e,t){return' opacity="1" stroke-opacity="1" fill="#cccccc" stroke-width="0" r="0" height="0.5" width="0.5" d="M 0 0 L 1 1" />',e+"<"+t+(p.exec(e)||"")+(g.exec(e)||"")+' opacity="1" stroke-opacity="1" fill="#cccccc" stroke-width="0" r="0" height="0.5" width="0.5" d="M 0 0 L 1 1" />'})),d=(0,u.makeImageUrlsAbsolute)(d),T=(0,u.makeImageUrlsAbsolute)(T),R=N===u.EXPORTMODE.SERVER,(0,u.cacheAllImages)(d,R,(function(){e=X(u.EXPORTFORMAT.SVG,d),Q(e),e=null;var t,r,n,a,i,s,l,c,p="undefined"!=typeof m.btoa&&("Chrome"===f.browserDetails.name||"Firefox"===f.browserDetails.name||"Safari"===f.browserDetails.name||"Edge"===f.browserDetails.name||"ie"===f.browserDetails.name);(N===u.EXPORTMODE.CLIENT||N===u.EXPORTMODE.AUTO&&!(0,u.hasUndownloadableImage)(d))&&p?(T=(0,u.replaceImagesWithNonDataUrl)(T),w!==u.EXPORTACTION.DOWNLOAD&&w!==u.EXPORTACTION.DOWNLOADSAVE||(i=T,s=$,l=N,y===u.EXPORTFORMAT.SVG?(c=(0,u.svgStrToDataUrl)(i),e=l===u.EXPORTMODE.AUTO?X("IMAGE-DATA",c):null,(0,f.downloadCharts)("url",c,S+"."+y,e,s)):J(y,(function(){Z(arguments[0],arguments[1],arguments[2],arguments[3],l)}),s),o.fireChartInstanceEvent("exported",W)),w===u.EXPORTACTION.SAVE||w===u.EXPORTACTION.DOWNLOADSAVE?(t=w,w===u.EXPORTACTION.DOWNLOADSAVE&&(w=u.EXPORTACTION.SAVE),function(e,t,r){var n;y===u.EXPORTFORMAT.SVG?(n=(0,u.svgStrToDataUrl)(e),r(n,t)):J(y,(function(){r(arguments[1],t)}),t)}(T,$,(function(r,n){e=X("IMAGE-DATA",r,t),(0,f.downloadCharts)(null,null,null,e,n),ee(M)})),o.fireChartInstanceEvent("exported",W)):M!==u.LOGMODE.SERVER&&(0,u.logCharts)(Y(),$)):N===u.EXPORTMODE.AUTO?(a=d,f.browserDetails.hasCanvas&&"undefined"!=typeof m.btoa?((r=v.createElement("canvas")).width=U.width,r.height=U.height,a=(0,u.embedImagesWithNonDataURL)(a),T=(0,u.replaceImagesWithNonDataUrl)(T),(0,u.hasUndownloadableImage)(a)||y===u.EXPORTFORMAT.SVG?(n=X(u.EXPORTFORMAT.SVG,a),(0,f.downloadCharts)(null,null,null,n,$)):(0,f.drawSvgOnCanvas)({svg:T,canvas:r,x:0,y:0,width:U.width,height:U.height,useCanvas:H},(function(){var e;switch(y){case u.EXPORTFORMAT.PNG:e=r.toDataURL("image/png");break;case u.EXPORTFORMAT.JPEG:e=r.toDataURL("image/jpeg");break;case u.EXPORTFORMAT.PDF:(0,h.addImage)(r.toDataURL("image/jpeg"),U.height,U.width),e=(0,h.getDataUrl)();break;default:e=r.toDataURL("image/jpeg")}n=X("IMAGE-DATA",e),(0,f.downloadCharts)(null,null,null,n,$)}))):K(a),ee(M)):N===u.EXPORTMODE.SERVER&&(K(d),ee(M))}))}),(function(){o.fireChartInstanceEvent("exportCancelled",b)}))},t}(o.ComponentInterface);t["default"]=w},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(321));t["default"]=function(e){return(0,a["default"])(e)&&e.length}},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.svgStrToDataUrl=t.logCharts=t.extractNonDataImageFromSVG=t.parseUrl=t.extractNonDataURLFromSVG=t.removeImagesWithNonDataURL=t.hasUndownloadableImage=t.replaceImagesWithNonDataUrl=t.embedImagesWithNonDataURL=t.makeImageUrlsAbsolute=t.isCacheAllImagesCompleted=t.getImageCachedDetails=t.cacheAllImages=t.objCacheFunctions=t.createExportActionOldString=t.LOGMODE=t.EXPORTFORMAT=t.EXPORTMODE=t.EXPORTACTION=void 0;var a,i=r(423),o=n(r(342)),s=r(254),l=function(e){var t,r,n,a,i,o;t=/(<image [^\>]*href=["']([^\>'"]*)["'][^\>]*\>)/g,r=/^\s*data:([a-z]+\/[a-z]+(;[a-z\-]+\=[a-z\-]+)?)?(;base64)?,[a-z0-9\!\$\&\'\,\(\)\*\+\,\;\=\-\.\_\~\:\@\/\?\%\s]*\s*$/i,n=[];do{null!==(a=t.exec(e))&&(i=a[1],o=a[2],r.test(o)||n.push(i))}while(a&&null!==a);return n},c=function(e){var t,r,n,a=e;for(t=l(a),r=0;r<t.length;r++)n=t[r],a=a.replace(n,"");return a},u=function(e,t){var r,n,a,i,o;void 0===t&&(t=!0),r=/<image [^\>]*href=["']([^\>'"]*)["'][^\>]*\>/g,n=/^\s*data:([a-z]+\/[a-z]+(;[a-z\-]+\=[a-z\-]+)?)?(;base64)?,[a-z0-9\!\$\&\'\,\(\)\*\+\,\;\=\-\.\_\~\:\@\/\?\%\s]*\s*$/i,a=[];do{if(null!==(i=r.exec(e))){if(o=i[1],n.test(o))continue;t&&(o=h(o).href),a.push(o)}}while(i&&null!==i);return a},h=function(e){var t=document.createElement("div");return t.innerHTML="<a></a>",t.firstChild.href=e,t.innerHTML=t.innerHTML,t.firstChild},f={DOWNLOAD:"download",SAVE:"save",DOWNLOADSAVE:"download-save"},d={CLIENT:"client",SERVER:"server",AUTO:"auto"},p=((a={}).cacheCompleted=!1,{cacheAllImages:function(e,t,r){var n,o,l,c;if(void 0===t&&(t=!1),n=u(e),o=n.length,(0,i.isCanvasElemSupported)()&&!t&&o)for(l=0,c=0;c<o;c++)!function(){var e,t;if((e=n[c])in a)return l++,void(o===l&&(a.cacheCompleted=!0,r()));(t=new Image).crossOrigin=s.BLANKSTRING,t.onload=function(){var n,i;(n=document.createElement("canvas")).width=t.width,n.height=t.height,n.getContext("2d").drawImage(this,0,0);try{i=n.toDataURL("image/png"),a[e]={loaded:!0,notCORS:!0,imageUri:i}}catch(s){a[e]={loaded:!0,notCORS:!1}}finally{l++,o===l&&(a.cacheCompleted=!0,r())}},t.onerror=function(){a[e]={loaded:!1},l++,o===l&&(a.cacheCompleted=!0,r())},t.src=e}();else r()},getImageCachedDetails:function(e){return a[e]},isCacheAllImagesCompleted:function(){return a.cacheCompleted}}),g=p.cacheAllImages,m=p.getImageCachedDetails,v=p.isCacheAllImagesCompleted,b=function(e){return e=e.replace(/(:href=")([^"]*)(")/gi,(function(e,t,r,n){return t+h(r).href+n}))},y=function(e){return e.replace(/<image [^\>]*\>/gi,b)},x=function(e){var t,r,n,a,i=y(e);for(t=u(i),r=0;r<t.length;r++)n=t[r],(a=m(n))!==s.UNDEF&&a.loaded&&a.notCORS&&a.imageUri&&(i=i.replace(n,a.imageUri));return i};t.svgStrToDataUrl=function(e){var t=function(e){return'<?xml version="1.0" standalone="no"?>\n      <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"\n       "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> '+e}(e);return t="data:image/svg+xml;base64,"+window.btoa(window.unescape(encodeURIComponent(t)))},t.logCharts=function(e,t){t.logEnabled&&t.logMode!==d.SERVER&&function(e,t){var r=new o["default"](s.stubFN,s.stubFN);for(var n in e)e.hasOwnProperty(n)&&(e[n]=encodeURIComponent(e[n]));r.post(t.logHandler,e)}(e,t)},t.hasUndownloadableImage=function(e){var t=x(e);return t!==c(t)},t.replaceImagesWithNonDataUrl=function(e){return c(x(e))},t.embedImagesWithNonDataURL=x,t.makeImageUrlsAbsolute=y,t.isCacheAllImagesCompleted=v,t.getImageCachedDetails=m,t.cacheAllImages=g,t.objCacheFunctions=p,t.createExportActionOldString=function(e){return{download:f.DOWNLOAD,"download-save":f.DOWNLOAD,save:f.SAVE}[e]},t.LOGMODE=d,t.EXPORTFORMAT={PNG:"png",SVG:"svg",JPEG:"jpeg",JPG:"jpg",PDF:"pdf",XLSX:"xlsx",XLS:"xls",CSV:"csv"},t.EXPORTMODE={CLIENT:"client",SERVER:"server",AUTO:"auto"},t.EXPORTACTION=f,t.parseUrl=h,t.extractNonDataURLFromSVG=u,t.removeImagesWithNonDataURL=c,t.extractNonDataImageFromSVG=l},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.isCanvasElemSupported=t.drawSvgOnCanvas=t.browserDetails=t.downloadCharts=void 0;var a=n(r(424)),i=r(254),o=r(261),s=n(r(342)),l=window,c=l.Image,u=document,h="download",f="download-save",d=function(){var e=u.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},p=function(){var e,t=l.navigator.userAgent;return-1!==(e=t.indexOf("Edge"))?{name:"Edge",version:t.substring(e+5,e+11)}:-1!==(e=t.indexOf("Chrome"))?{name:"Chrome",version:t.substring(e+7,e+11)}:-1!==(e=t.indexOf("MSIE"))||-1!==(e=t.indexOf("rv"))&&-1!==t.indexOf("Trident")?{name:"ie",version:t.substring(e+5,e+9)}:-1!==(e=t.indexOf("Firefox"))?{name:"Firefox",version:t.substring(e+8,e+12)}:-1!==(e=t.indexOf("Safari"))?{name:"Safari",version:t.substring(e+7,e+11)}:{name:"default",version:"Not Known"}},g=p(),m=function(e,t,r,n){void 0===n&&(n={});var a,i,o=p(),s=n.chartId,c=n.exportCallback,h=n.paper,f=t;"Chrome"===o.name||"Firefox"===o.name||"Safari"===o.name?("blob"===e&&(f=l.URL.createObjectURL(f)),(i=u.createElement("a")).download=r,i.href=f,u.body.appendChild(i),i.onclick=function(){c&&l[c]&&"function"==typeof l[c]&&l[c]({statusCode:1,statusMessage:"success",DOMId:s,width:h&&h.width,height:h&&h.height}),i.parentNode.removeChild(i)},i.click()):"ie"!==o.name&&"Edge"!==o.name||l.navigator.msSaveBlob&&(a="url"===e?function(e){var t,r,n,a;for(t=e.split(",")[0].indexOf("base64")>=0?l.atob(e.split(",")[1]):l.unescape(e.split(",")[1]),r=e.split(",")[0].split(":")[1].split(";")[0],n=new Uint8Array(t.length),a=0;a<t.length;a++)n[a]=t.charCodeAt(a);return new l.Blob([n],{type:r})}(f):f,l.navigator.msSaveBlob(a,r)&&c&&l[c]&&"function"==typeof l[c]&&l[c]({statusCode:1,statusMessage:"success",DOMId:s,width:h&&h.width,height:h&&h.height}))},v=function(e,t,r,n){if(t&&r)if("blob"===e){var a=new FileReader;a.readAsDataURL(t),a.onloadend=function(){var e=a.result;b(e,r)}}else b(t,r);else if(n){var i,o=n.parameters.split("|"),s=o[0].substr(o[0].indexOf("=")+1),c=o[1].substr(o[1].indexOf("=")+1),u=s+"."+c;i="svg"===c?"data:image/svg+xml;base64,"+l.btoa(l.unescape(encodeURIComponent(n.stream))):n.stream,b(i,u)}},b=function(e,t){var r={edata:e,name:t,eventName:"download"};window.webViewBridge.send(null,r)};t.drawSvgOnCanvas=function(e,t){void 0===e&&(e={});var r,n,i,s,u=e,h=u.svg,f=u.canvas,d=u.x,p=u.y,m=u.width,v=u.height,b=u.useCanvas;"ie"===g.name||"Edge"===g.name||b?new a["default"](h,f,d,p,m,v,(function(){t()})):(s=function(e){return'<?xml version="1.0" standalone="no"?>\n      <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"\n       "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> '+e}(h),i=s="data:image/svg+xml;base64,"+l.btoa(l.unescape(encodeURIComponent(s))),r=f.getContext("2d"),(n=new c).onload=function(){r.drawImage(n,d,p,m,v),t()},n.onerror=function(){(0,o.raiseWarning)(this,"","run","libSVGToCanvas:drawSvgOnCanvas","Unable to load image for canvas drawing. Aborting attempt.")},n.src=i)},t.downloadCharts=function(e,t,r,n,a){var c,d=/Android|iPhone|iPad|iPod|Mobile/i.test(navigator.userAgent),p=window.location.href.match(/:\/\/(www[0-9]?\.)?((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])(?:(?![\/:])[\s\S])+)/);d&&!p?v(e,t,r,n):!t||(c=t,g.name.toLowerCase()==="Chrome".toLowerCase()&&function(e){var t,r,n;for(t=e.length,n=e.length-1;n>=0;n--)(r=e.charCodeAt(n))>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--;return t}(c)>void 0)?n&&function(e,t){var r,n,a,c,d,p,g,m,v=t.exportAction,b=t.exportTargetWindow,y=t.exportCallback,x=t.fusionCharts.apiInstance,w=t.paper,_=t.chartId,S=t.exportHandler,C=e.parameters;if(v===h||v===f){for(r in/(webkit|gecko)/gi.test(l.navigator.userAgent)&&"_self"===b&&(b=a=_+"export_iframe",m||(m=c=(0,i.createElement)("IFRAME",{name:a,width:"1px",height:"1px"},u.body),c.style.cssText="position:absolute;left:-10px;top:-10px;")),n=(0,i.createElement)("form",{method:"POST",action:S,target:b,style:"display:none;"},u.body),e)(0,i.createElement)("input",{type:"hidden",name:r,value:e[r]},n);return n.submit(),u.body.removeChild(n),n=void 0,p=C.match(/exportfilename=([^|]+)/)[1],g=C.match(/exportformat=([^|]+)/)[1],(0,o.triggerEvent)("exported",x,{DOMId:_,height:w.height,width:w.width,fileName:p+"."+g,statusCode:void 0,statusMessage:void 0,notice:void 0}),y&&l[y]&&"function"==typeof l[y]&&l[y]({statusCode:1,statusMessage:"success",DOMId:_,width:w&&w.width,height:w&&w.height}),!0}for(r in d=new s["default"]((function(e){var t={};e.replace(new RegExp("([^?=&]+)(=([^&]*))?","g"),(function(e,r,n,a){t[r]=a})),y&&l[y]&&"function"==typeof l[y]&&l[y](t),(0,o.triggerEvent)("exported",x,t)}),(function(e){var t={statusCode:0,statusMessage:"failure",error:e,DOMId:_,width:w&&w.width,height:w&&w.height};y&&l[y]&&"function"==typeof l[y]&&l[y](t),(0,o.triggerEvent)("exported",x,t,[t])})),e)e.hasOwnProperty(r)&&(e[r]=encodeURIComponent(e[r]));d.post(S,e)}(n,a):m(e,t,r,a)},t.browserDetails=g,t.isCanvasElemSupported=d,g.hasCanvas=d(),g.hasSvg=i.hasSVG},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n,a="undefined"!=typeof window?window:null,i=a.document,o={},s={};(n=function(e,t,r,a,i,o,s){var l={svg:"",context:"",callBack:"",imageArr:[],canvas:"",dimention:{}};if(!(this instanceof n))throw new Error("This function should be used as class");this._getStore=function(e){return"undefined"!=typeof l[e]&&l[e]},this._setStore=function(e,t){"undefined"!=typeof l[e]&&(l[e]=t)},this._setStore("dimention",{x:r,y:a,width:i,height:o}),e&&this.setSVG(e),t&&this.setContext(t),s&&this.setCallback(s),this.drawOnCanvas()}).prototype.setContext=function(e){var t;if(!e.getContext||!e.getContext("2d"))throw new Error("Please provide valid canvas");t=e.getContext("2d"),this._setStore("canvas",e),this._setStore("context",t)},n.prototype.getContext=function(){return this._getStore("context")},n.prototype.setSVG=function(e){var t;if("undefined"!=typeof e.documentElement)t=e,this._setStore("svg",t);else{if("<"!==e.substr(0,1))throw new Error("Please provide valid SVG");t=s.StrToDom(e),this._setStore("svg",t)}},n.prototype.getSVG=function(){return this._getStore("svg")},n.prototype.setCallback=function(e){"function"==typeof e&&this._setStore("callBack",e)},n.prototype.getCallback=function(){return this._getStore("callBack")},n.prototype.drawOnCanvas=function(e,t,r,n,a,i,o){var l,c,u,h,f,d,p,g;e&&this.setSVG(e),t&&this.setContext(t),o&&this.setCallback(o),t=t||this._getStore("canvas"),p=this._getStore("dimention"),o=this.getCallback(),l=this.getContext(),(c=this.getSVG())&&l&&(u=(g=s.getSvgDimention(c)).width,h=g.height,r=r||p.x||0,n=n||p.y||0,a=a||u||p.width,i=i||h||p.height,f=g.width?p.width/a:1,d=g.height?p.height/i:1,s.startTransform("translate("+r+","+n+") scale("+f+","+d+")",l),l.save(),l.fillStyle="#ffffff",l.fillRect(0,0,a,i),l.restore(),s.storeImagesInArr(this),s.drawNodes([c],[],this,l,(function(){"function"==typeof o&&o(),s.resetTransform(l)})))},o.common=function(e,t,r,n,a){var i,l,c,u,h=e.childNodes,f=function(){e.attributes&&n.restore(),a&&a()};for(l in t)t.hasOwnProperty(l)&&"class"!==t[l].name&&"id"!==t[l].name&&"transform"!==t[l].name&&"clip-path"!==t[l].name&&"object"==typeof t[l]&&e.attributes&&!e.attributes[t[l].name]&&e.setAttribute([t[l].name],t[l].value);if(e.attributes&&e.attributes.style)for(l in c=e.attributes.style.value.replace(/;$/,"").split(";"))if(c.hasOwnProperty(l)&&(u=c[l].split(":")[0].trim(),!e.attributes[u]||"undefined"===e.attributes[u].value))try{e.setAttribute(u,c[l].split(":")[1].trim())}catch(d){}e.attributes&&(n.save(),e.attributes.transform&&s.startTransform(e.attributes.transform.value,n),e.attributes["clip-path"]&&s.applyClip(e.attributes["clip-path"].value,n,r)),0===h.length||1===h.length&&!h[0].tagName?"undefined"!=typeof e.tagName?(i="draw"+e.tagName,o[i]?e.attributes.display&&"none"===e.attributes.display.value?f():o[i](e,n,r,"draw",f):f()):f():s.drawNodes(h,"svg"===e.tagName?[]:e.attributes,r,n,f)},o.drawtext=function(e,t,r,n,a){this.drawtspan(e,t,r,n,a)},o.drawtspan=function(e,t,r,n,o){var l,c,u,h,f,d=e.textContent||e.innerHTML,p=e.attributes.x?e.attributes.x.value:0,g=e.attributes.y?e.attributes.y.value:0,m=e.attributes.dx?e.attributes.dx.value:0,v=e.attributes.dy?e.attributes.dy.value:0,b="serief",y="normal",x="16px",w=[];i.getElementsByTagName("body")[0]&&((l=a.getComputedStyle(i.getElementsByTagName("body")[0],null)).getPropertyValue("font-family")&&(b=l.getPropertyValue("font-family")),l.getPropertyValue("font-weight")&&(y=l.getPropertyValue("font-weight")),l.getPropertyValue("font-size")&&(x=l.getPropertyValue("font-size"))),c=e.attributes["font-family"]?e.attributes["font-family"].value:b,u=e.attributes["font-weight"]?e.attributes["font-weight"].value:y,h=e.attributes["text-anchor"]?e.attributes["text-anchor"].value:"start",f=e.attributes["font-size"]?e.attributes["font-size"].value:x,p=Number(p)+Number(m),g=Number(g)+Number(v),d=d.trim(),h="middle"===h?"center":h,t.save(),t.font=u+" "+f+" "+c,t.textAlign=h,"draw"===n&&((!e.attributes.fill||e.attributes.fill&&"none"!==e.attributes.fill.value)&&(s.applyFillEffect(e,t,r,w),t.fillText(d,p,g),s.endFillEffect(e,t)),(!e.attributes.stroke||e.attributes.stroke&&"none"!==e.attributes.stroke.value)&&(s.applyStrokeEffect(e,t,r,w),t.strokeText(d,p,g),s.endStrokeEffect(e,t))),t.restore(),"function"==typeof o&&o()},o.drawcircle=function(e,t,r,n,a){var i=Number(e.attributes.cx.value),o=Number(e.attributes.cy.value),l=Number(e.attributes.r.value),c=[];t.beginPath(),t.arc(i,o,l,0,2*Math.PI),s.bBoxFromPoint([i,1*i+1*l,1*i-1*l],[o,1*o+1*l,1*o-1*l],c),"draw"===n&&((!e.attributes.fill||e.attributes.fill&&"none"!==e.attributes.fill.value)&&(s.applyFillEffect(e,t,r,c),t.fill(),s.endFillEffect(e,t)),(!e.attributes.stroke||e.attributes.stroke&&"none"!==e.attributes.stroke.value)&&(s.applyStrokeEffect(e,t,r,c),t.stroke(),s.endStrokeEffect(e,t))),t.closePath(),"function"==typeof a&&a()},o.drawrect=function(e,t,r,n,a){var i=e.attributes.x?Number(e.attributes.x.value):0,o=e.attributes.y?Number(e.attributes.y.value):0,l=e.attributes.rx?Number(e.attributes.rx.value):0,c=e.attributes.ry?Number(e.attributes.ry.value):0,u=Number(e.attributes.height.value),h=Number(e.attributes.width.value),f=[],d=t.lineCap;t.lineCap="square",s.bBoxFromPoint([i,i+h],[o,o+u],f),t.beginPath(),t.moveTo(i+l,o),t.lineTo(i+h-l,o),t.quadraticCurveTo(i+h,o,i+h,o+c),t.lineTo(i+h,o+u-c),t.quadraticCurveTo(i+h,o+u,i+h-l,o+u),t.lineTo(i+l,o+u),t.quadraticCurveTo(i,o+u,i,o+u-c),t.lineTo(i,o+c),t.quadraticCurveTo(i,o,i+l,o),"draw"===n&&((!e.attributes.fill||e.attributes.fill&&"none"!==e.attributes.fill.value)&&(s.applyFillEffect(e,t,r,f),t.fill(),s.endFillEffect(e,t)),(!e.attributes.stroke||e.attributes.stroke&&"none"!==e.attributes.stroke.value)&&(s.applyStrokeEffect(e,t,r,f),t.stroke(),s.endStrokeEffect(e,t))),t.closePath(),t.lineCap=d,"function"==typeof a&&a()},o.drawellipse=function(e,t,r,n,a){var i=Number(e.attributes.cx.value),o=Number(e.attributes.cy.value),l=Number(e.attributes.rx.value),c=Number(e.attributes.ry.value),u=.5522848*l,h=.5522848*c,f=i+l,d=o+c,p=[];t.beginPath(),t.moveTo(i-l,o),t.bezierCurveTo(i-l,o-h,i-u,o-c,i,o-c),t.bezierCurveTo(i+u,o-c,f,o-h,f,o),t.bezierCurveTo(f,o+h,i+u,d,i,d),t.bezierCurveTo(i-u,d,i-l,o+h,i-l,o),s.bBoxFromPoint([i+l,i-l],[o+c,o-c],p),"draw"===n&&((!e.attributes.fill||e.attributes.fill&&"none"!==e.attributes.fill.value)&&(s.applyFillEffect(e,t,r,p),t.fill(),s.endFillEffect(e,t)),(!e.attributes.stroke||e.attributes.stroke&&"none"!==e.attributes.stroke.value)&&(s.applyStrokeEffect(e,t,r,p),t.stroke(),s.endStrokeEffect(e,t))),t.closePath(),"function"==typeof a&&a()},o.drawimage=function(e,t,r,n,a){var i,o=e.attributes.x?Number(e.attributes.x.value):0,s=e.attributes.y?Number(e.attributes.y.value):0,l=e.attributes.height?Number(e.attributes.height.value):0,c=e.attributes.width?Number(e.attributes.width.value):0,u=r._getStore("imageArr");t.save(),e.attributes.opacity&&(t.globalAlpha=e.attributes.opacity.value),e.attributes["xlink:href"]?(i=e.attributes["xlink:href"].value,"complete"===u[i].status?(t.drawImage(u[i].obj,o,s,c,l),t.globalAlpha=1,t.restore(),"function"==typeof a&&a()):"error"===u[i].status?(t.globalAlpha=1,t.restore(),"function"==typeof a&&a()):"progress"===u[i].status?(u[i].callback=function(){t.drawImage(u[i].obj,o,s,c,l),t.globalAlpha=1,t.restore(),"function"==typeof a&&a()},u[i].errCallback=function(){t.globalAlpha=1,t.restore(),"function"==typeof a&&a()}):(t.globalAlpha=1,t.restore(),"function"==typeof a&&a())):(t.globalAlpha=1,t.restore(),"function"==typeof a&&a())},o.drawpath=function(e,t,r,n,a){var i,o,l,c,u=e.attributes.d.value.match(/[a-z][^a-z"]*/gi),h=[],f=0,d=0,p={};for(i in t.beginPath(),u)if(u.hasOwnProperty(i))switch(o=u[i].substring(0,1),l=s.getArgsAsArray(u[i].substring(1,u[i].length)),o){case"M":f=Number(l[0]),d=Number(l[1]),t.moveTo(f,d),p.cx=f,p.cy=d;break;case"m":f+=Number(l[0]),d+=Number(l[1]),t.moveTo(f,d),p.cx=f,p.cy=d;break;case"L":for(c=0;l[c];c+=2)s.bBoxFromPoint([f,l[c]],[d,l[c+1]],h),f=Number(l[c]),d=Number(l[c+1]),t.lineTo(f,d);break;case"l":for(c=0;l[c];c+=2)s.bBoxFromPoint([f,1*f+1*l[c]],[d,1*d+1*l[c+1]],h),f+=Number(l[c]),d+=Number(l[c+1]),t.lineTo(f,d);break;case"V":for(c=0;l[c];c+=1)s.bBoxFromPoint([f],[d,l[c]],h),d=Number(l[c]),t.lineTo(f,d);break;case"v":for(c=0;l[c];c+=1)s.bBoxFromPoint([f],[d,1*d+1*l[c]],h),d+=Number(l[c]),t.lineTo(f,d);break;case"H":for(c=0;l[c];c+=1)s.bBoxFromPoint([f,l[c]],[d],h),f=Number(l[c]),t.lineTo(f,d);break;case"h":for(c=0;l[c];c+=1)s.bBoxFromPoint([f,1*f+1*l[c]],[d],h),f+=Number(l[c]),t.lineTo(f,d);break;case"Q":for(c=0;l[c];c+=4)s.qBezierBBox(f,d,l[c],l[c+1],l[c+2],l[c+3],h),t.quadraticCurveTo(Number(l[c]),Number(l[c+1]),Number(l[c+2]),Number(l[c+3])),f=Number(l[c+2]),d=Number(l[c+3]);break;case"q":for(c=0;l[c];c+=4)s.qBezierBBox(f,d,f+1*l[c],d+1*l[c+1],1*f+1*l[c+2],1*d+1*l[c+3],h),t.quadraticCurveTo(f+1*l[c],d+1*l[c+1],f+=Number(l[c+2]),d+=Number(l[c+3]));break;case"C":for(c=0;l[c];c+=6)s.cBezierBBox(f,d,l[c],l[c+1],l[c+2],l[c+3],l[c+4],l[c+5],h),t.bezierCurveTo(l[c],l[c+1],l[c+2],l[c+3],l[c+4],l[c+5]),f=Number(l[c+4]),d=Number(l[c+5]);break;case"c":for(c=0;l[c];c+=6)s.cBezierBBox(f,d,f+1*l[c],1*d+1*l[c+1],f+1*l[c+2],1*d+1*l[c+3],f+1*l[c+4],1*d+1*l[c+5],h),t.bezierCurveTo(f+Number(l[c]),d+Number(l[c+1]),f+Number(l[c+2]),d+Number(l[c+3]),f+=Number(l[c+4]),d+=Number(l[c+5]));break;case"a":case"A":for(c=0;l[c];c+=7){var g,m,v,b,y,x,w,_,S,C,k,A,N,E,L,M,F,T,D=Number(l[c]),I=Number(l[c+1]);if(g=Number(l[c+2])*(Math.PI/180),m=Number(l[c+3]),v=Number(l[c+4]),b=Number(l[c+5]),y=Number(l[c+6]),x=Math.cos(g)*(f-b)/2+Math.sin(g)*(d-y)/2,w=-Math.sin(g)*(f-b)/2+Math.cos(g)*(d-y)/2,D=D<0?-D:D,I=I<0?-I:I,(L=Math.pow(x,2)/Math.pow(D,2)+Math.pow(w,2)/Math.pow(I,2))>1&&(D*=Math.sqrt(L),I*=Math.sqrt(L)),M=D>I?D:I,F=D>I?1:D/I,T=D>I?I/D:1,_=(m===v?-1:1)*Math.sqrt((Math.pow(D,2)*Math.pow(I,2)-Math.pow(D,2)*Math.pow(w,2)-Math.pow(I,2)*Math.pow(x,2))/(Math.pow(D,2)*Math.pow(w,2)+Math.pow(I,2)*Math.pow(x,2))),isNaN(_)&&(_=0),C=I*x*-_/D,k=(S=_*(D*w)/I)*Math.cos(g)-C*Math.sin(g)+(f+b)/2,A=S*Math.sin(g)+C*Math.cos(g)+(d+y)/2,N=s.angleBetweenVectors(1,0,(x-S)/D,(w-C)/I),E=s.angleBetweenVectors((x-S)/D,(w-C)/I,(-x-S)/D,(-w-C)/I),0===v&&E>0&&(E-=Math.PI/180*360),1===v&&E<0&&(E+=Math.PI/180*360),0===D&&0===I){t.lineTo(b,y);break}t.save();var O=s.combineTransformMatrix([[1,0,k,0,1,A],[Math.cos(g),Math.sin(g),0,Math.sin(g),Math.cos(g),0],[F,0,0,0,T,0]]);t.transform(O[0],O[3],O[1],O[4],O[2],O[5]),t.arc(0,0,M,N,N+E,1-v),t.restore(),s.arcBBox(0,0,M,N,N+E,1-v,[O[0],O[3],O[1],O[4],O[2],O[5]],h),"A"===o?(f=Number(l[c+5]),d=Number(l[c+6])):(f+=Number(l[c+5]),d+=Number(l[c+6]))}break;case"Z":case"z":t.closePath(),f=p.cx,d=p.cy}"draw"===n&&((!e.attributes.fill||e.attributes.fill&&"none"!==e.attributes.fill.value)&&(s.applyFillEffect(e,t,r,h),t.fill(),s.endFillEffect(e,t)),(!e.attributes.stroke||e.attributes.stroke&&"none"!==e.attributes.stroke.value)&&(s.applyStrokeEffect(e,t,r,h),t.stroke(),s.endStrokeEffect(e,t)),a())},s.drawNodes=function(e,t,r,n,a){var i=e.length,s=-1,l=0,c=0;!function u(){var h;(s+=1)<i?((h=e[s]).tagName&&"defs"===h.tagName&&(h=e[s+=1]),h.attributes&&(h.attributes.dy&&(c=h.attributes.dy.value=1*h.attributes.dy.value+1*c),h.attributes.dx&&(l=h.attributes.dx.value=1*h.attributes.dx.value+1*l)),o.common(h,t,r,n,u)):a&&a()}()},s.getSvgDimention=function(e){var t,r={width:0,height:0};return t=e.childNodes&&e.childNodes[0]&&e.childNodes[0].attributes,r.width=Number(t.width&&t.width.value||0),r.height=Number(t.height&&t.height.value||0),r},s.storeImagesInArr=function(e){var t,r,n,a,i=e.getSVG();for(a in n=e._getStore("imageArr"),t=i.getElementsByTagName("image"))t.hasOwnProperty(a)&&t[a].attributes&&t[a].attributes["xlink:href"]&&(r=t[a].attributes["xlink:href"].value,n[r]||(n[r]=[],n[r].status="progress",n[r].callback=null,n[r].obj=new Image,n[r].obj.onload=function(e){return function(){var t=n[e].callback;t?(n[e].status="complete",t()):n[e].status="complete"}}(r),n[r].obj.onerror=function(e){return function(){var t=n[e].errCallback;t?(n[e].status="error",t()):n[e].status="error"}}(r),n[r].obj.src=r))},s.startTransform=function(e,t){var r,n,a=e.match(/[^\s][a-z,0-9.\-(\s]+\)/gi);for(n in a)a.hasOwnProperty(n)&&(a[n].indexOf("matrix")>-1&&(r=s.stringToArgs(a[n]),t.transform(r[0],r[1],r[2],r[3],r[4],r[5])),a[n].indexOf("translate")>-1&&(r=s.stringToArgs(a[n]),t.translate(r[0]||0,r[1]||0)),a[n].indexOf("rotate")>-1&&(3===(r=s.stringToArgs(a[n])).length?(t.translate(r[1],r[2]),t.rotate(r[0]*(Math.PI/180)),t.translate(-r[1],-r[2])):t.rotate(r[0]*(Math.PI/180))),a[n].indexOf("scale")>-1&&(1===(r=s.stringToArgs(a[n])).length?t.scale(r[0]||1,r[0]||1):t.scale(r[0]||1,r[1]||1)),a[n].indexOf("skewX")>-1&&(r=s.stringToArgs(a[n]),t.transform(1,0,Math.tan(r[0]*(Math.PI/180)),1,0,0)),a[n].indexOf("skewY")>-1&&(r=s.stringToArgs(a[n]),t.transform(1,Math.tan(r[0]*(Math.PI/180)),0,1,0,0)))},s.resetTransform=function(e){e.setTransform(1,0,0,1,0,0)},s.stringToArgs=function(e){var t=/\(([^)]+)/.exec(e)[1];return s.getArgsAsArray(t)},s.getArgsAsArray=function(e){var t;for(e=e.trim().split(/[\s,]+/),t=0;t<e.length;t++)e[t].trim(),0===e[t].length&&e.splice(t,1);return e},s.applyFillEffect=function(e,t,r,n){var a;e.attributes["fill-opacity"]&&"none"!==e.attributes["fill-opacity"].value?t.globalAlpha=e.attributes["fill-opacity"].value:t.globalAlpha=1,e.attributes.fill&&e.attributes.fill.value.indexOf("url(")>-1?(a=s.getFillStyleById(/url\(.*#([^)'"]+)/.exec(e.attributes.fill.value)[1],t,r,n),t.fillStyle=a):e.attributes.fill?t.fillStyle=e.attributes.fill.value:t.fillStyle="#000000"},s.endFillEffect=function(e,t){t.globalAlpha=1},s.applyStrokeEffect=function(e,t,r,n){e.attributes["stroke-opacity"]&&"none"!==e.attributes["stroke-opacity"].value&&(t.globalAlpha=e.attributes["stroke-opacity"].value),e.attributes["stroke-width"]&&(t.lineWidth=e.attributes["stroke-width"].value,"0"===e.attributes["stroke-width"].value&&(t.globalAlpha=0)),e.attributes["stroke-linecap"]&&"none"!==e.attributes["stroke-linecap"].value&&(t.lineCap=e.attributes["stroke-linecap"].value),e.attributes["stroke-linejoin"]&&"none"!==e.attributes["stroke-linejoin"].value&&(t.lineJoin=e.attributes["stroke-linejoin"].value),e.attributes["stroke-dasharray"]&&"none"!==e.attributes["stroke-dasharray"].value&&t.setLineDash&&t.setLineDash(s.getArgsAsArray(e.attributes["stroke-dasharray"].value)),e.attributes.stroke?t.strokeStyle=e.attributes.stroke.value:t.strokeStyle="#000000"},s.endStrokeEffect=function(e,t){e.attributes["stroke-opacity"]&&"none"!==e.attributes["stroke-opacity"].value&&(t.globalAlpha=1,t.setLineDash&&t.setLineDash([]),t.lineWidth=1),t.globalAlpha=1},s.applyClip=function(e,t,r){var n,a,i,l,c,u=r.getSVG();if(-1!==e.indexOf("url(")){for(l in n=/url\(.*#([^)'"]+)/.exec(e)[1],(a=u.getElementById(n)).attributes&&(t.save(),a.attributes.transform&&s.startTransform(a.attributes.transform.value,t)),i=a.childNodes)i.hasOwnProperty(l)&&i[l].tagName&&i[l].constructor!==Array&&(c="draw"+i[l].tagName,i[l].attributes&&(t.save(),i[l].attributes.transform&&s.startTransform(i[l].attributes.transform.value,t)),o[c]&&(o[c](i[l],t,r,"clip"),t.closePath()),i[l].attributes&&t.restore());a.attributes&&t.restore(),t.clip()}},s.getFillStyleById=function(e,t,r,n){var a=r.getSVG().getElementById(e);return"linearGradient"===a.tagName?s.getLinearGradient(a,t,n):"radialGradient"===a.tagName?s.getRadialGradient(a,t,n):"#FFFFFF"},s.getLinearGradient=function(e,t,r){var n,a,i,o,l,c=e.attributes.x1?s.getPercentValue(e.attributes.x1.value,r.xMax-r.xMin,r.xMin):0,u=e.attributes.y1?s.getPercentValue(e.attributes.y1.value,r.yMax-r.yMin,r.yMin):0,h=e.attributes.x2?s.getPercentValue(e.attributes.x2.value,r.xMax-r.xMin,r.xMin):0,f=e.attributes.y2?s.getPercentValue(e.attributes.y2.value,r.yMax-r.yMin,r.yMin):0;for(i in n=t.createLinearGradient(c,u,h,f),a=e.childNodes)a.hasOwnProperty(i)&&a[i].attributes&&a[i].attributes["stop-color"]&&(o=s.toRGB(a[i].attributes["stop-color"].value),l=a[i].attributes["stop-opacity"]?a[i].attributes["stop-opacity"].value:1,o.status?n.addColorStop(s.getPercentValue(a[i].attributes.offset.value,1,0),"rgba("+o.r+","+o.g+","+o.b+","+Number(l)+")"):n.addColorStop(s.getPercentValue(a[i].attributes.offset.value,1,0),a[i].attributes["stop-color"].value));return n},s.getRadialGradient=function(e,t,r){var n,a,i,o,l,c=e.attributes.cx?s.getPercentValue(e.attributes.cx.value,r.xMax-r.xMin,r.xMin):r.xMin+.5*(r.xMax-r.xMin),u=e.attributes.cy?s.getPercentValue(e.attributes.cy.value,r.yMax-r.yMin,r.yMin):r.yMin+.5*(r.yMax-r.yMin),h=e.attributes.fx?s.getPercentValue(e.attributes.fx.value,r.xMax-r.xMin,r.xMin):r.xMin+.5*(r.xMax-r.xMin),f=e.attributes.fy?s.getPercentValue(e.attributes.fy.value,r.yMax-r.yMin,r.yMin):r.yMin+.5*(r.yMax-r.yMin),d=e.attributes.r?s.getPercentValue(e.attributes.r.value,(r.yMax-r.yMin+r.xMax-r.xMin)/2,0):s.getPercentValue("50%",(r.yMax-r.yMin+r.xMax-r.xMin)/2,0);for(i in n=t.createRadialGradient(h,f,0,c,u,d),a=e.childNodes)a.hasOwnProperty(i)&&a[i].attributes&&a[i].attributes["stop-color"]&&(o=s.toRGB(a[i].attributes["stop-color"].value),l=a[i].attributes["stop-opacity"]?a[i].attributes["stop-opacity"].value:1,o.status?n.addColorStop(s.getPercentValue(a[i].attributes.offset.value,1,0),"rgba("+o.r+","+o.g+","+o.b+","+Number(l)+")"):n.addColorStop(s.getPercentValue(a[i].attributes.offset.value,1,0),a[i].attributes["stop-color"].value));return n},s.getPercentValue=function(e,t,r){var n;return-1!==e.indexOf("%")?((n=/(\d.*)%/.exec(e)[1])>100&&(n=100),n*t/100+1*r):e>1?e:e*t+1*r},s.bBoxFromPoint=function(e,t,r){"undefined"!=typeof r.xMin&&(e.push(r.xMin,r.xMax),t.push(r.yMin,r.yMax)),r.xMin=Math.min.apply(this,e),r.xMax=Math.max.apply(this,e),r.yMin=Math.min.apply(this,t),r.yMax=Math.max.apply(this,t)},s.arcBBox=function(e,t,r,n,a,i,o,s){var l,c,u,h,f,d,p,g,m,v,b;o instanceof Array&&(e=e*o[0]+e*o[2]+o[4],t=t*o[1]+t*o[3]+o[5]),b=function(e,t,r){return(e=(e+2*Math.PI)%(2*Math.PI))<=(t=(t+2*Math.PI)%(2*Math.PI))?e<=r&&r<=t:e>=t?!(e>=r&&r>=t):void 0},l=n%(2*Math.PI),c=a%(2*Math.PI),i&&(l=a%(2*Math.PI),c=n%(2*Math.PI)),u=e+r*Math.cos(l),h=t+r*Math.sin(l),m=[u,e+r*Math.cos(c)],v=[h,t+r*Math.sin(c)],b(l,c,0)&&(m.push(1*e+1*r),v.push(t)),b(l,c,.5*Math.PI)&&(m.push(e),v.push(1*t+1*r)),b(l,c,Math.PI)&&(m.push(e-1*r),v.push(t)),b(l,c,1.5*Math.PI)&&(m.push(e),v.push(t-1*r)),p=Math.max.apply(this,m),f=Math.min.apply(this,m),g=Math.max.apply(this,v),d=Math.min.apply(this,v),"undefined"!=typeof s.xMin?(s.xMin=Math.min(f,s.xMin),s.xMax=Math.max(p,s.xMax),s.yMin=Math.min(d,s.yMin),s.yMax=Math.max(g,s.yMax)):(s.xMin=f,s.xMax=p,s.yMin=d,s.yMax=g)},s.qBezierBBox=function(e,t,r,n,a,i,o){var s,l,c,u,h,f,d,p,g=1*e-2*r+1*a,m=1*t-2*n+1*i;0===g||0===m?(h=Math.max(e,a),c=Math.min(e,a),f=Math.max(t,i),u=Math.min(t,i)):(s=(e-r)/g,l=(t-n)/m,d=e*Math.pow(1-s,2)+2*r*(1-s)*s+a*Math.pow(s,2),p=t*Math.pow(1-l,2)+2*n*(1-l)*l+i*Math.pow(l,2),h=Math.max(e,a,d),c=Math.min(e,a,d),f=Math.max(t,i,p),u=Math.min(t,i,p)),"undefined"!=typeof o.xMin?(o.xMin=Math.min(c,o.xMin),o.xMax=Math.max(h,o.xMax),o.yMin=Math.min(u,o.yMin),o.yMax=Math.max(f,o.yMax)):(o.xMin=c,o.xMax=h,o.yMin=u,o.yMax=f)},s.cBezierBBox=function(e,t,r,n,a,i,o,s,l){var c,u,h,f,d,p,g,m,v,b,y,x,w;null===a&&null===i&&(a=t+2/3*(n-t),n=(r=e+2/3*(r-e))+1/3*(o-e),i=a+1/3*(s-t)),y=function(e,t,r,n,a){return e*Math.pow(1-a,3)+3*t*a*Math.pow(1-a,2)+3*r*a*a*(1-a)+n*a*a*a},d=3*o-9*a+9*r-3*e,p=6*e-12*r+6*a,g=3*r-3*e,o<(c=e)&&(c=o),o>(u=e)&&(u=o),(m=Math.pow(p,2)-4*d*g)>=0&&((v=(-p+Math.sqrt(m))/(2*d))>0&&v<1&&((x=y(e,r,a,o,v))<c&&(c=x),x>u&&(u=x)),(b=(-p-Math.sqrt(m))/(2*d))>0&&b<1&&((x=y(e,r,a,o,b))<c&&(c=x),x>u&&(u=x))),d=3*s-9*i+9*n-3*t,p=6*t-12*n+6*i,g=3*n-3*t,s<(h=t)&&(h=s),s>(f=t)&&(f=s),(m=Math.pow(p,2)-4*d*g)>=0&&((v=(-p+Math.sqrt(m))/(2*d))>0&&v<1&&((w=y(t,n,i,s,v))<h&&(h=w),w>f&&(f=w)),(b=(-p-Math.sqrt(m))/(2*d))>0&&b<1&&((w=y(t,n,i,s,b))<h&&(h=w),w>f&&(f=w))),"undefined"!=typeof l.xMin?(l.xMin=Math.min(c,l.xMin),l.xMax=Math.max(u,l.xMax),l.yMin=Math.min(h,l.yMin),l.yMax=Math.max(f,l.yMax)):(l.xMin=c,l.xMax=u,l.yMin=h,l.yMax=f)},s.combineTransformMatrix=function(e){var t,r,n=e.length-1;if(n<=0)return e[0];for(r=e[0],t=1;t<=n;t++)r[0]=r[0]*e[t][0]+r[1]*e[t][3],r[1]=r[0]*e[t][1]+r[1]*e[t][4],r[2]=r[0]*e[t][2]+r[1]*e[t][5]+1*r[2],r[3]=r[3]*e[t][0]+r[4]*e[t][3],r[4]=r[3]*e[t][1]+r[4]*e[t][4],r[5]=r[3]*e[t][2]+r[4]*e[t][5]+1*r[5];return r},s.angleBetweenVectors=function(e,t,r,n){var a=e*n<t*r?-1:1,i=e*r+t*n,o=Math.sqrt(Math.pow(e,2)+Math.pow(t,2)),s=Math.sqrt(Math.pow(r,2)+Math.pow(n,2));return a*Math.acos(i/(o*s))},s.toRGB=function(e){var t,r,n,a={r:0,g:0,b:0,status:0};return r=function(e){for(n in e)e.hasOwnProperty(n)&&(e[n]<0||isNaN(e[n])?e[n]=0:e[n]>255&&(e[n]=255));return a={r:e[0],g:e[1],b:e[2],status:1}},(e=e.trim()).match(/^rgb\(|^rgba\(/i)?(t=/\(\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})/.exec(e),r([parseInt(t[1]),parseInt(t[2]),parseInt(t[3])])):e.match(/^#/)&&(t=/(\w{2})(\w{2})(\w{2})/.exec(e),r([parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)])),a},s.StrToDom=function(e){var t;return a.DOMParser?t=(new DOMParser).parseFromString(e,"text/xml"):((t=new a.ActiveXObject("Microsoft.XMLDOM")).async=!1,t.loadXML(e)),t};var l=n;t["default"]=l},function(e,t,r){"use strict";t.__esModule=!0,t.addImage=function(e,t,r){o=t,s=r,n=void 0,a=void 0,i=void 0,n=o||500,a=s||500,i=e;var o,s},t.getDataUrl=function(){var e=new o.jsPDF("l","px",[a,n]);return e.addImage(i,"JPEG",0,0,a,n),e.output("datauristring").replace("filename=generated.pdf;","")};var n,a,i,o=r(426)},function(e,t,r){"use strict";r.r(t),function(e){r.d(t,"AcroForm",(function(){return Le})),r.d(t,"AcroFormAppearance",(function(){return ke})),r.d(t,"AcroFormButton",(function(){return be})),r.d(t,"AcroFormCheckBox",(function(){return _e})),r.d(t,"AcroFormChoiceField",(function(){return pe})),r.d(t,"AcroFormComboBox",(function(){return me})),r.d(t,"AcroFormEditBox",(function(){return ve})),r.d(t,"AcroFormListBox",(function(){return ge})),r.d(t,"AcroFormPasswordField",(function(){return Ce})),r.d(t,"AcroFormPushButton",(function(){return ye})),r.d(t,"AcroFormRadioButton",(function(){return xe})),r.d(t,"AcroFormTextField",(function(){return Se})),r.d(t,"GState",(function(){return O})),r.d(t,"ShadingPattern",(function(){return R})),r.d(t,"TilingPattern",(function(){return j})),r.d(t,"jsPDF",(function(){return B}));var n=r(427),a=r.n(n),i=r(428),o=function(){return"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:this}();function s(){o.console&&"function"==typeof o.console.log&&o.console.log.apply(o.console,arguments)}var l={log:s,warn:function(e){o.console&&("function"==typeof o.console.warn?o.console.warn.apply(o.console,arguments):s.call(null,arguments))},error:function(e){o.console&&("function"==typeof o.console.error?o.console.error.apply(o.console,arguments):s(e))}};function c(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){p(n.response,t,r)},n.onerror=function(){l.error("could not download file")},n.send()}function u(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function h(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var f,d,p=o.saveAs||("object"!==("undefined"==typeof window?"undefined":a()(window))||window!==o?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(e,t,r){var n=o.URL||o.webkitURL,a=document.createElement("a");t=t||e.name||"download",a.download=t,a.rel="noopener","string"==typeof e?(a.href=e,a.origin!==location.origin?u(a.href)?c(e,t,r):h(a,a.target="_blank"):h(a)):(a.href=n.createObjectURL(e),setTimeout((function(){n.revokeObjectURL(a.href)}),4e4),setTimeout((function(){h(a)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download","string"==typeof e)if(u(e))c(e,t,r);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout((function(){h(n)}))}else navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!==a()(t)&&(l.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,r),t)}:function(e,t,r,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeof e)return c(e,t,r);var i="application/octet-stream"===e.type,s=/constructor/i.test(o.HTMLElement)||o.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||i&&s)&&"object"===("undefined"==typeof FileReader?"undefined":a()(FileReader))){var u=new FileReader;u.onloadend=function(){var e=u.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=e:location=e,n=null},u.readAsDataURL(e)}else{var h=o.URL||o.webkitURL,f=h.createObjectURL(e);n?n.location=f:location.href=f,n=null,setTimeout((function(){h.revokeObjectURL(f)}),4e4)}});
/**
 * A class to parse color values
 * @author Stoyan Stefanov <sstoo@gmail.com>
 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
 * @license Use it if you like it
 */function g(e){var t;e=e||"",this.ok=!1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],n=0;n<r.length;n++){var a=r[n].re,i=r[n].process,o=a.exec(e);o&&(t=i(o),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),r=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),"#"+e+t+r}}
/**
 * @license
 * Joseph Myers does not specify a particular license for his work.
 *
 * Author: Joseph Myers
 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
 *
 * Modified by: Owen Leong
 */function m(e,t){var r=e[0],n=e[1],a=e[2],i=e[3];r=b(r,n,a,i,t[0],7,-680876936),i=b(i,r,n,a,t[1],12,-389564586),a=b(a,i,r,n,t[2],17,606105819),n=b(n,a,i,r,t[3],22,-1044525330),r=b(r,n,a,i,t[4],7,-176418897),i=b(i,r,n,a,t[5],12,1200080426),a=b(a,i,r,n,t[6],17,-1473231341),n=b(n,a,i,r,t[7],22,-45705983),r=b(r,n,a,i,t[8],7,1770035416),i=b(i,r,n,a,t[9],12,-1958414417),a=b(a,i,r,n,t[10],17,-42063),n=b(n,a,i,r,t[11],22,-1990404162),r=b(r,n,a,i,t[12],7,1804603682),i=b(i,r,n,a,t[13],12,-40341101),a=b(a,i,r,n,t[14],17,-1502002290),r=y(r,n=b(n,a,i,r,t[15],22,1236535329),a,i,t[1],5,-165796510),i=y(i,r,n,a,t[6],9,-1069501632),a=y(a,i,r,n,t[11],14,643717713),n=y(n,a,i,r,t[0],20,-373897302),r=y(r,n,a,i,t[5],5,-701558691),i=y(i,r,n,a,t[10],9,38016083),a=y(a,i,r,n,t[15],14,-660478335),n=y(n,a,i,r,t[4],20,-405537848),r=y(r,n,a,i,t[9],5,568446438),i=y(i,r,n,a,t[14],9,-1019803690),a=y(a,i,r,n,t[3],14,-187363961),n=y(n,a,i,r,t[8],20,1163531501),r=y(r,n,a,i,t[13],5,-1444681467),i=y(i,r,n,a,t[2],9,-51403784),a=y(a,i,r,n,t[7],14,1735328473),r=x(r,n=y(n,a,i,r,t[12],20,-1926607734),a,i,t[5],4,-378558),i=x(i,r,n,a,t[8],11,-2022574463),a=x(a,i,r,n,t[11],16,1839030562),n=x(n,a,i,r,t[14],23,-35309556),r=x(r,n,a,i,t[1],4,-1530992060),i=x(i,r,n,a,t[4],11,1272893353),a=x(a,i,r,n,t[7],16,-155497632),n=x(n,a,i,r,t[10],23,-1094730640),r=x(r,n,a,i,t[13],4,681279174),i=x(i,r,n,a,t[0],11,-358537222),a=x(a,i,r,n,t[3],16,-722521979),n=x(n,a,i,r,t[6],23,76029189),r=x(r,n,a,i,t[9],4,-640364487),i=x(i,r,n,a,t[12],11,-421815835),a=x(a,i,r,n,t[15],16,530742520),r=w(r,n=x(n,a,i,r,t[2],23,-995338651),a,i,t[0],6,-198630844),i=w(i,r,n,a,t[7],10,1126891415),a=w(a,i,r,n,t[14],15,-1416354905),n=w(n,a,i,r,t[5],21,-57434055),r=w(r,n,a,i,t[12],6,1700485571),i=w(i,r,n,a,t[3],10,-1894986606),a=w(a,i,r,n,t[10],15,-1051523),n=w(n,a,i,r,t[1],21,-2054922799),r=w(r,n,a,i,t[8],6,1873313359),i=w(i,r,n,a,t[15],10,-30611744),a=w(a,i,r,n,t[6],15,-1560198380),n=w(n,a,i,r,t[13],21,1309151649),r=w(r,n,a,i,t[4],6,-145523070),i=w(i,r,n,a,t[11],10,-1120210379),a=w(a,i,r,n,t[2],15,718787259),n=w(n,a,i,r,t[9],21,-343485551),e[0]=L(r,e[0]),e[1]=L(n,e[1]),e[2]=L(a,e[2]),e[3]=L(i,e[3])}function v(e,t,r,n,a,i){return t=L(L(t,e),L(n,i)),L(t<<a|t>>>32-a,r)}function b(e,t,r,n,a,i,o){return v(t&r|~t&n,e,t,a,i,o)}function y(e,t,r,n,a,i,o){return v(t&n|r&~n,e,t,a,i,o)}function x(e,t,r,n,a,i,o){return v(t^r^n,e,t,a,i,o)}function w(e,t,r,n,a,i,o){return v(r^(t|~n),e,t,a,i,o)}function _(e){var t,r=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)m(n,S(e.substring(t-64,t)));e=e.substring(t-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)a[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(m(n,a),t=0;t<16;t++)a[t]=0;return a[14]=8*r,m(n,a),n}function S(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}f=o.atob.bind(o),d=o.btoa.bind(o);var C="0123456789abcdef".split("");function k(e){for(var t="",r=0;r<4;r++)t+=C[e>>8*r+4&15]+C[e>>8*r&15];return t}function A(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function N(e){return _(e).map(A).join("")}var E="5d41402abc4b2a76b9719d911017c592"!=function(e){for(var t=0;t<e.length;t++)e[t]=k(e[t]);return e.join("")}(_("hello"));function L(e,t){if(E){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}return e+t&4294967295}
/**
 * @license
 * FPDF is released under a permissive license: there is no usage restriction.
 * You may embed it freely in your application (commercial or not), with or
 * without modifications.
 *
 * Reference: http://www.fpdf.org/en/script/script37.php
 */function M(e,t){var r,n,a,i;if(e!==r){for(var o=(a=e,i=1+(256/e.length>>0),new Array(i+1).join(a)),s=[],l=0;l<256;l++)s[l]=l;var c=0;for(l=0;l<256;l++){var u=s[l];c=(c+u+o.charCodeAt(l))%256,s[l]=s[c],s[c]=u}r=e,n=s}else s=n;var h=t.length,f=0,d=0,p="";for(l=0;l<h;l++)d=(d+(u=s[f=(f+1)%256]))%256,s[f]=s[d],s[d]=u,o=s[(s[f]+s[d])%256],p+=String.fromCharCode(t.charCodeAt(l)^o);return p}
/**
 * @license
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 * Author: Owen Leong (@owenl131)
 * Date: 15 Oct 2020
 * References:
 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
 * http://www.fpdf.org/en/script/script37.php
 */var F={print:4,modify:8,copy:16,"annot-forms":32};function T(e,t,r,n){this.v=1,this.r=2;var a=192;e.forEach((function(e){if(void 0!==F.perm)throw new Error("Invalid permission: "+e);a+=F[e]})),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var i=(t+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,o),this.P=-(1+(255^a)),this.encryptionKey=N(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=M(this.encryptionKey,this.padding)}function D(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",r=e.length,n=0;n<r;n++){var a=e.charCodeAt(n);t+=a<33||35===a||37===a||40===a||41===a||47===a||60===a||62===a||91===a||93===a||123===a||125===a||a>126?"#"+("0"+a.toString(16)).slice(-2):e[n]}return t}function I(e){if("object"!==a()(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,r,n){if(n=n||!1,"string"!=typeof e||"function"!=typeof r||"boolean"!=typeof n)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var a=Math.random().toString(35);return t[e][a]=[r,!!n],a},this.unsubscribe=function(e){for(var r in t)if(t[r][e])return delete t[r][e],0===Object.keys(t[r]).length&&delete t[r],!0;return!1},this.publish=function(r){if(t.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),a=[];for(var i in t[r]){var s=t[r][i];try{s[0].apply(e,n)}catch(r){o.console&&l.error("jsPDF PubSub Error",r.message,r)}s[1]&&a.push(i)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function O(e){if(!(this instanceof O))return new O(e);var t="opacity,stroke-opacity".split(",");for(var r in e)e.hasOwnProperty(r)&&t.indexOf(r)>=0&&(this[r]=e[r]);this.id="",this.objectNumber=-1}function P(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function R(e,t,r,n,a){if(!(this instanceof R))return new R(e,t,r,n,a);this.type="axial"===e?2:3,this.coords=t,this.colors=r,P.call(this,n,a)}function j(e,t,r,n,a){if(!(this instanceof j))return new j(e,t,r,n,a);this.boundingBox=e,this.xStep=t,this.yStep=r,this.stream="",this.cloneIndex=0,P.call(this,n,a)}function B(e){var t,r="string"==typeof arguments[0]?arguments[0]:"p",n=arguments[1],i=arguments[2],s=arguments[3],c=[],u=1,h=16,f="S",m=null;"object"===a()(e=e||{})&&(r=e.orientation,n=e.unit||n,i=e.format||i,s=e.compress||e.compressPdf||s,null!==(m=e.encryption||null)&&(m.userPassword=m.userPassword||"",m.ownerPassword=m.ownerPassword||"",m.userPermissions=m.userPermissions||[]),u="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(t=e.precision),void 0!==e.floatPrecision&&(h=e.floatPrecision),f=e.defaultPathOperation||"S"),c=e.filters||(!0===s?["FlateEncode"]:c),n=n||"mm",r=(""+(r||"P")).toLowerCase();var v=e.putOnlyUsedFonts||!1,b={},y={internal:{},__private__:{}};y.__private__.PubSub=I;var x="1.3",w=y.__private__.getPdfVersion=function(){return x};y.__private__.setPdfVersion=function(e){x=e};var _={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};y.__private__.getPageFormats=function(){return _};var S=y.__private__.getPageFormat=function(e){return _[e]};i=i||"a4";var C={COMPAT:"compat",ADVANCED:"advanced"},k=C.COMPAT;function A(){this.saveGraphicsState(),he(new Ge(Ae,0,0,-Ae,0,Br()*Ae).toString()+" cm"),this.setFontSize(this.getFontSize()/Ae),f="n",k=C.ADVANCED}function N(){this.restoreGraphicsState(),f="S",k=C.COMPAT}var E=y.__private__.combineFontStyleAndFontWeight=function(e,t){if("bold"==e&&"normal"==t||"bold"==e&&400==t||"normal"==e&&"italic"==t||"bold"==e&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&(e=400==t||"normal"===t?"italic"===e?"italic":"normal":700!=t&&"bold"!==t||"normal"!==e?(700==t?"bold":t)+""+e:"bold"),e};y.advancedAPI=function(e){var t=k===C.COMPAT;return t&&A.call(this),"function"!=typeof e||(e(this),t&&N.call(this)),this},y.compatAPI=function(e){var t=k===C.ADVANCED;return t&&N.call(this),"function"!=typeof e||(e(this),t&&A.call(this)),this},y.isAdvancedAPI=function(){return k===C.ADVANCED};var L,M=function(e){if(k!==C.ADVANCED)throw new Error(e+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},F=y.roundToPrecision=y.__private__.roundToPrecision=function(e,r){var n=t||r;if(isNaN(e)||isNaN(n))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return e.toFixed(n).replace(/0+$/,"")};L=y.hpf=y.__private__.hpf="number"==typeof h?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return F(e,h)}:"smart"===h?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return F(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return F(e,16)};var P=y.f2=y.__private__.f2=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return F(e,2)},V=y.__private__.f3=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f3");return F(e,3)},z=y.scale=y.__private__.scale=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.scale");return k===C.COMPAT?e*Ae:k===C.ADVANCED?e:void 0},U=function(e){return k===C.COMPAT?Br()-e:k===C.ADVANCED?e:void 0},H=function(e){return z(U(e))};y.__private__.setPrecision=y.setPrecision=function(e){"number"==typeof parseInt(e,10)&&(t=parseInt(e,10))};var q,G="00000000000000000000000000000000",W=y.__private__.getFileId=function(){return G},$=y.__private__.setFileId=function(e){return G=void 0!==e&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():G.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==m&&($t=new T(m.userPermissions,m.userPassword,m.ownerPassword,G)),G};y.setFileId=function(e){return $(e),this},y.getFileId=function(){return W()};var X=y.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),r=t<0?"+":"-",n=Math.floor(Math.abs(t/60)),a=Math.abs(t%60),i=[r,Q(n),"'",Q(a),"'"].join("");return["D:",e.getFullYear(),Q(e.getMonth()+1),Q(e.getDate()),Q(e.getHours()),Q(e.getMinutes()),Q(e.getSeconds()),i].join("")},Y=y.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),r=parseInt(e.substr(6,2),10)-1,n=parseInt(e.substr(8,2),10),a=parseInt(e.substr(10,2),10),i=parseInt(e.substr(12,2),10),o=parseInt(e.substr(14,2),10);return new Date(t,r,n,a,i,o,0)},K=y.__private__.setCreationDate=function(e){var t;if(void 0===e&&(e=new Date),e instanceof Date)t=X(e);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(e))throw new Error("Invalid argument passed to jsPDF.setCreationDate");t=e}return q=t},J=y.__private__.getCreationDate=function(e){var t=q;return"jsDate"===e&&(t=Y(q)),t};y.setCreationDate=function(e){return K(e),this},y.getCreationDate=function(e){return J(e)};var Z,Q=y.__private__.padd2=function(e){return("0"+parseInt(e)).slice(-2)},ee=y.__private__.padd2Hex=function(e){return("00"+(e=e.toString())).substr(e.length)},te=0,re=[],ne=[],ae=0,ie=[],oe=[],se=!1,le=ne,ce=function(){te=0,ae=0,ne=[],re=[],ie=[],Qe=Ke(),et=Ke()};y.__private__.setCustomOutputDestination=function(e){se=!0,le=e};var ue=function(e){se||(le=e)};y.__private__.resetCustomOutputDestination=function(){se=!1,le=ne};var he=y.__private__.out=function(e){return e=e.toString(),ae+=e.length+1,le.push(e),le},fe=y.__private__.write=function(e){return he(1===arguments.length?e.toString():Array.prototype.join.call(arguments," "))},de=y.__private__.getArrayBuffer=function(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r);t--;)n[t]=e.charCodeAt(t);return r},pe=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];y.__private__.getStandardFonts=function(){return pe};var ge=e.fontSize||16;y.__private__.setFontSize=y.setFontSize=function(e){return ge=k===C.ADVANCED?e/Ae:e,this};var me,ve=y.__private__.getFontSize=y.getFontSize=function(){return k===C.COMPAT?ge:ge*Ae},be=e.R2L||!1;y.__private__.setR2L=y.setR2L=function(e){return be=e,this},y.__private__.getR2L=y.getR2L=function(){return be};var ye,xe=y.__private__.setZoomMode=function(e){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(e))me=e;else if(isNaN(e)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(e))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+e+'" is not recognized.');me=e}else me=parseInt(e,10)};y.__private__.getZoomMode=function(){return me};var we,_e=y.__private__.setPageMode=function(e){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(e))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+e+'" is not recognized.');ye=e};y.__private__.getPageMode=function(){return ye};var Se=y.__private__.setLayoutMode=function(e){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(e))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+e+'" is not recognized.');we=e};y.__private__.getLayoutMode=function(){return we},y.__private__.setDisplayMode=y.setDisplayMode=function(e,t,r){return xe(e),Se(t),_e(r),this};var Ce={title:"",subject:"",author:"",keywords:"",creator:""};y.__private__.getDocumentProperty=function(e){if(-1===Object.keys(Ce).indexOf(e))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Ce[e]},y.__private__.getDocumentProperties=function(){return Ce},y.__private__.setDocumentProperties=y.setProperties=y.setDocumentProperties=function(e){for(var t in Ce)Ce.hasOwnProperty(t)&&e[t]&&(Ce[t]=e[t]);return this},y.__private__.setDocumentProperty=function(e,t){if(-1===Object.keys(Ce).indexOf(e))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Ce[e]=t};var ke,Ae,Ne,Ee,Le,Me={},Fe={},Te=[],De={},Ie={},Oe={},Pe={},Re=null,je=0,Be=[],Ve=new I(y),ze=e.hotfixes||[],Ue={},He={},qe=[],Ge=function zr(e,t,r,n,a,i){if(!(this instanceof zr))return new zr(e,t,r,n,a,i);isNaN(e)&&(e=1),isNaN(t)&&(t=0),isNaN(r)&&(r=0),isNaN(n)&&(n=1),isNaN(a)&&(a=0),isNaN(i)&&(i=0),this._matrix=[e,t,r,n,a,i]};Object.defineProperty(Ge.prototype,"sx",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Ge.prototype,"shy",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Ge.prototype,"shx",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Ge.prototype,"sy",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Ge.prototype,"tx",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Ge.prototype,"ty",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Ge.prototype,"a",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Ge.prototype,"b",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Ge.prototype,"c",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Ge.prototype,"d",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Ge.prototype,"e",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Ge.prototype,"f",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Ge.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ge.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ge.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ge.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Ge.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(L).join(e)},Ge.prototype.multiply=function(e){var t=e.sx*this.sx+e.shy*this.shx,r=e.sx*this.shy+e.shy*this.sy,n=e.shx*this.sx+e.sy*this.shx,a=e.shx*this.shy+e.sy*this.sy,i=e.tx*this.sx+e.ty*this.shx+this.tx,o=e.tx*this.shy+e.ty*this.sy+this.ty;return new Ge(t,r,n,a,i,o)},Ge.prototype.decompose=function(){var e=this.sx,t=this.shy,r=this.shx,n=this.sy,a=this.tx,i=this.ty,o=Math.sqrt(e*e+t*t),s=(e/=o)*r+(t/=o)*n;r-=e*s,n-=t*s;var l=Math.sqrt(r*r+n*n);return s/=l,e*(n/=l)<t*(r/=l)&&(e=-e,t=-t,s=-s,o=-o),{scale:new Ge(o,0,0,l,0,0),translate:new Ge(1,0,0,1,a,i),rotate:new Ge(e,t,-t,e,0,0),skew:new Ge(1,0,s,1,0,0)}},Ge.prototype.toString=function(e){return this.join(" ")},Ge.prototype.inversed=function(){var e=this.sx,t=this.shy,r=this.shx,n=this.sy,a=this.tx,i=this.ty,o=1/(e*n-t*r),s=n*o,l=-t*o,c=-r*o,u=e*o;return new Ge(s,l,c,u,-s*a-c*i,-l*a-u*i)},Ge.prototype.applyToPoint=function(e){var t=e.x*this.sx+e.y*this.shx+this.tx,r=e.x*this.shy+e.y*this.sy+this.ty;return new Fr(t,r)},Ge.prototype.applyToRectangle=function(e){var t=this.applyToPoint(e),r=this.applyToPoint(new Fr(e.x+e.w,e.y+e.h));return new Tr(t.x,t.y,r.x-t.x,r.y-t.y)},Ge.prototype.clone=function(){var e=this.sx,t=this.shy,r=this.shx,n=this.sy,a=this.tx,i=this.ty;return new Ge(e,t,r,n,a,i)},y.Matrix=Ge;var We=y.matrixMult=function(e,t){return t.multiply(e)},$e=new Ge(1,0,0,1,0,0);y.unitMatrix=y.identityMatrix=$e;var Xe=function(e,t){if(!Ie[e]){var r=(t instanceof R?"Sh":"P")+(Object.keys(De).length+1).toString(10);t.id=r,Ie[e]=r,De[r]=t,Ve.publish("addPattern",t)}};y.ShadingPattern=R,y.TilingPattern=j,y.addShadingPattern=function(e,t){return M("addShadingPattern()"),Xe(e,t),this},y.beginTilingPattern=function(e){M("beginTilingPattern()"),Ir(e.boundingBox[0],e.boundingBox[1],e.boundingBox[2]-e.boundingBox[0],e.boundingBox[3]-e.boundingBox[1],e.matrix)},y.endTilingPattern=function(e,t){M("endTilingPattern()"),t.stream=oe[Z].join("\n"),Xe(e,t),Ve.publish("endTilingPattern",t),qe.pop().restore()};var Ye=y.__private__.newObject=function(){var e=Ke();return Je(e,!0),e},Ke=y.__private__.newObjectDeferred=function(){return te++,re[te]=function(){return ae},te},Je=function(e,t){return t="boolean"==typeof t&&t,re[e]=ae,t&&he(e+" 0 obj"),e},Ze=y.__private__.newAdditionalObject=function(){var e={objId:Ke(),content:""};return ie.push(e),e},Qe=Ke(),et=Ke(),tt=y.__private__.decodeColorString=function(e){var t=e.split(" ");if(2!==t.length||"g"!==t[1]&&"G"!==t[1])5!==t.length||"k"!==t[4]&&"K"!==t[4]||(t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),"r"]);else{var r=parseFloat(t[0]);t=[r,r,r,"r"]}for(var n="#",a=0;a<3;a++)n+=("0"+Math.floor(255*parseFloat(t[a])).toString(16)).slice(-2);return n},rt=y.__private__.encodeColorString=function(e){var t;"string"==typeof e&&(e={ch1:e});var r=e.ch1,n=e.ch2,i=e.ch3,o=e.ch4,s="draw"===e.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof r&&"#"!==r.charAt(0)){var l=new g(r);if(l.ok)r=l.toHex();else if(!/^\d*\.?\d*$/.test(r))throw new Error('Invalid color "'+r+'" passed to jsPDF.encodeColorString.')}if("string"==typeof r&&/^#[0-9A-Fa-f]{3}$/.test(r)&&(r="#"+r[1]+r[1]+r[2]+r[2]+r[3]+r[3]),"string"==typeof r&&/^#[0-9A-Fa-f]{6}$/.test(r)){var c=parseInt(r.substr(1),16);r=c>>16&255,n=c>>8&255,i=255&c}if(void 0===n||void 0===o&&r===n&&n===i)if("string"==typeof r)t=r+" "+s[0];else switch(e.precision){case 2:t=P(r/255)+" "+s[0];break;case 3:default:t=V(r/255)+" "+s[0]}else if(void 0===o||"object"===a()(o)){if(o&&!isNaN(o.a)&&0===o.a)return["1.","1.","1.",s[1]].join(" ");if("string"==typeof r)t=[r,n,i,s[1]].join(" ");else switch(e.precision){case 2:t=[P(r/255),P(n/255),P(i/255),s[1]].join(" ");break;default:case 3:t=[V(r/255),V(n/255),V(i/255),s[1]].join(" ")}}else if("string"==typeof r)t=[r,n,i,o,s[2]].join(" ");else switch(e.precision){case 2:t=[P(r),P(n),P(i),P(o),s[2]].join(" ");break;case 3:default:t=[V(r),V(n),V(i),V(o),s[2]].join(" ")}return t},nt=y.__private__.getFilters=function(){return c},at=y.__private__.putStream=function(e){var t=(e=e||{}).data||"",r=e.filters||nt(),n=e.alreadyAppliedFilters||[],a=e.addLength1||!1,i=t.length,o=e.objectId,s=function(e){return e};if(null!==m&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==m&&(s=$t.encryptor(o,0));var l={};!0===r&&(r=["FlateEncode"]);var c=e.additionalKeyValues||[],u=(l=void 0!==B.API.processDataByFilters?B.API.processDataByFilters(t,r):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(n)?n.join(" "):n.toString());if(0!==l.data.length&&(c.push({key:"Length",value:l.data.length}),!0===a&&c.push({key:"Length1",value:i})),0!=u.length)if(u.split("/").length-1==1)c.push({key:"Filter",value:u});else{c.push({key:"Filter",value:"["+u+"]"});for(var h=0;h<c.length;h+=1)if("DecodeParms"===c[h].key){for(var f=[],d=0;d<l.reverseChain.split("/").length-1;d+=1)f.push("null");f.push(c[h].value),c[h].value="["+f.join(" ")+"]"}}he("<<");for(var p=0;p<c.length;p++)he("/"+c[p].key+" "+c[p].value);he(">>"),0!==l.data.length&&(he("stream"),he(s(l.data)),he("endstream"))},it=y.__private__.putPage=function(e){var t=e.number,r=e.data,n=e.objId,a=e.contentsObjId;Je(n,!0),he("<</Type /Page"),he("/Parent "+e.rootDictionaryObjId+" 0 R"),he("/Resources "+e.resourceDictionaryObjId+" 0 R"),he("/MediaBox ["+parseFloat(L(e.mediaBox.bottomLeftX))+" "+parseFloat(L(e.mediaBox.bottomLeftY))+" "+L(e.mediaBox.topRightX)+" "+L(e.mediaBox.topRightY)+"]"),null!==e.cropBox&&he("/CropBox ["+L(e.cropBox.bottomLeftX)+" "+L(e.cropBox.bottomLeftY)+" "+L(e.cropBox.topRightX)+" "+L(e.cropBox.topRightY)+"]"),null!==e.bleedBox&&he("/BleedBox ["+L(e.bleedBox.bottomLeftX)+" "+L(e.bleedBox.bottomLeftY)+" "+L(e.bleedBox.topRightX)+" "+L(e.bleedBox.topRightY)+"]"),null!==e.trimBox&&he("/TrimBox ["+L(e.trimBox.bottomLeftX)+" "+L(e.trimBox.bottomLeftY)+" "+L(e.trimBox.topRightX)+" "+L(e.trimBox.topRightY)+"]"),null!==e.artBox&&he("/ArtBox ["+L(e.artBox.bottomLeftX)+" "+L(e.artBox.bottomLeftY)+" "+L(e.artBox.topRightX)+" "+L(e.artBox.topRightY)+"]"),"number"==typeof e.userUnit&&1!==e.userUnit&&he("/UserUnit "+e.userUnit),Ve.publish("putPage",{objId:n,pageContext:Be[t],pageNumber:t,page:r}),he("/Contents "+a+" 0 R"),he(">>"),he("endobj");var i=r.join("\n");return k===C.ADVANCED&&(i+="\nQ"),Je(a,!0),at({data:i,filters:nt(),objectId:a}),he("endobj"),n},ot=y.__private__.putPages=function(){var e,t,r=[];for(e=1;e<=je;e++)Be[e].objId=Ke(),Be[e].contentsObjId=Ke();for(e=1;e<=je;e++)r.push(it({number:e,data:oe[e],objId:Be[e].objId,contentsObjId:Be[e].contentsObjId,mediaBox:Be[e].mediaBox,cropBox:Be[e].cropBox,bleedBox:Be[e].bleedBox,trimBox:Be[e].trimBox,artBox:Be[e].artBox,userUnit:Be[e].userUnit,rootDictionaryObjId:Qe,resourceDictionaryObjId:et}));Je(Qe,!0),he("<</Type /Pages");var n="/Kids [";for(t=0;t<je;t++)n+=r[t]+" 0 R ";he(n+"]"),he("/Count "+je),he(">>"),he("endobj"),Ve.publish("postPutPages")},st=function(e){Ve.publish("putFont",{font:e,out:he,newObject:Ye,putStream:at}),!0!==e.isAlreadyPutted&&(e.objectNumber=Ye(),he("<<"),he("/Type /Font"),he("/BaseFont /"+D(e.postScriptName)),he("/Subtype /Type1"),"string"==typeof e.encoding&&he("/Encoding /"+e.encoding),he("/FirstChar 32"),he("/LastChar 255"),he(">>"),he("endobj"))},lt=function(){for(var e in Me)Me.hasOwnProperty(e)&&(!1===v||!0===v&&b.hasOwnProperty(e))&&st(Me[e])},ct=function(e){e.objectNumber=Ye();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[L(e.x),L(e.y),L(e.x+e.width),L(e.y+e.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+e.matrix.toString()+"]"});var r=e.pages[1].join("\n");at({data:r,additionalKeyValues:t,objectId:e.objectNumber}),he("endobj")},ut=function(){for(var e in Ue)Ue.hasOwnProperty(e)&&ct(Ue[e])},ht=function(e,t){var r,n=[],a=1/(t-1);for(r=0;r<1;r+=a)n.push(r);if(n.push(1),0!=e[0].offset){var i={offset:0,color:e[0].color};e.unshift(i)}if(1!=e[e.length-1].offset){var o={offset:1,color:e[e.length-1].color};e.push(o)}for(var s="",l=0,c=0;c<n.length;c++){for(r=n[c];r>e[l+1].offset;)l++;var u=e[l].offset,h=(r-u)/(e[l+1].offset-u),f=e[l].color,d=e[l+1].color;s+=ee(Math.round((1-h)*f[0]+h*d[0]).toString(16))+ee(Math.round((1-h)*f[1]+h*d[1]).toString(16))+ee(Math.round((1-h)*f[2]+h*d[2]).toString(16))}return s.trim()},ft=function(e,t){t||(t=21);var r=Ye(),n=ht(e.colors,t),a=[];a.push({key:"FunctionType",value:"0"}),a.push({key:"Domain",value:"[0.0 1.0]"}),a.push({key:"Size",value:"["+t+"]"}),a.push({key:"BitsPerSample",value:"8"}),a.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),a.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),at({data:n,additionalKeyValues:a,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:r}),he("endobj"),e.objectNumber=Ye(),he("<< /ShadingType "+e.type),he("/ColorSpace /DeviceRGB");var i="/Coords ["+L(parseFloat(e.coords[0]))+" "+L(parseFloat(e.coords[1]))+" ";2===e.type?i+=L(parseFloat(e.coords[2]))+" "+L(parseFloat(e.coords[3])):i+=L(parseFloat(e.coords[2]))+" "+L(parseFloat(e.coords[3]))+" "+L(parseFloat(e.coords[4]))+" "+L(parseFloat(e.coords[5])),he(i+="]"),e.matrix&&he("/Matrix ["+e.matrix.toString()+"]"),he("/Function "+r+" 0 R"),he("/Extend [true true]"),he(">>"),he("endobj")},dt=function(e,t){var r=Ke(),n=Ye();t.push({resourcesOid:r,objectOid:n}),e.objectNumber=n;var a=[];a.push({key:"Type",value:"/Pattern"}),a.push({key:"PatternType",value:"1"}),a.push({key:"PaintType",value:"1"}),a.push({key:"TilingType",value:"1"}),a.push({key:"BBox",value:"["+e.boundingBox.map(L).join(" ")+"]"}),a.push({key:"XStep",value:L(e.xStep)}),a.push({key:"YStep",value:L(e.yStep)}),a.push({key:"Resources",value:r+" 0 R"}),e.matrix&&a.push({key:"Matrix",value:"["+e.matrix.toString()+"]"}),at({data:e.stream,additionalKeyValues:a,objectId:e.objectNumber}),he("endobj")},pt=function(e){var t;for(t in De)De.hasOwnProperty(t)&&(De[t]instanceof R?ft(De[t]):De[t]instanceof j&&dt(De[t],e))},gt=function(e){for(var t in e.objectNumber=Ye(),he("<<"),e)switch(t){case"opacity":he("/ca "+P(e[t]));break;case"stroke-opacity":he("/CA "+P(e[t]))}he(">>"),he("endobj")},mt=function(){var e;for(e in Oe)Oe.hasOwnProperty(e)&&gt(Oe[e])},vt=function(){for(var e in he("/XObject <<"),Ue)Ue.hasOwnProperty(e)&&Ue[e].objectNumber>=0&&he("/"+e+" "+Ue[e].objectNumber+" 0 R");Ve.publish("putXobjectDict"),he(">>")},bt=function(){$t.oid=Ye(),he("<<"),he("/Filter /Standard"),he("/V "+$t.v),he("/R "+$t.r),he("/U <"+$t.toHexString($t.U)+">"),he("/O <"+$t.toHexString($t.O)+">"),he("/P "+$t.P),he(">>"),he("endobj")},yt=function(){for(var e in he("/Font <<"),Me)Me.hasOwnProperty(e)&&(!1===v||!0===v&&b.hasOwnProperty(e))&&he("/"+e+" "+Me[e].objectNumber+" 0 R");he(">>")},xt=function(){if(Object.keys(De).length>0){for(var e in he("/Shading <<"),De)De.hasOwnProperty(e)&&De[e]instanceof R&&De[e].objectNumber>=0&&he("/"+e+" "+De[e].objectNumber+" 0 R");Ve.publish("putShadingPatternDict"),he(">>")}},wt=function(e){if(Object.keys(De).length>0){for(var t in he("/Pattern <<"),De)De.hasOwnProperty(t)&&De[t]instanceof y.TilingPattern&&De[t].objectNumber>=0&&De[t].objectNumber<e&&he("/"+t+" "+De[t].objectNumber+" 0 R");Ve.publish("putTilingPatternDict"),he(">>")}},_t=function(){if(Object.keys(Oe).length>0){var e;for(e in he("/ExtGState <<"),Oe)Oe.hasOwnProperty(e)&&Oe[e].objectNumber>=0&&he("/"+e+" "+Oe[e].objectNumber+" 0 R");Ve.publish("putGStateDict"),he(">>")}},St=function(e){Je(e.resourcesOid,!0),he("<<"),he("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),yt(),xt(),wt(e.objectOid),_t(),vt(),he(">>"),he("endobj")},Ct=function(){var e=[];lt(),mt(),ut(),pt(e),Ve.publish("putResources"),e.forEach(St),St({resourcesOid:et,objectOid:Number.MAX_SAFE_INTEGER}),Ve.publish("postPutResources")},kt=function(){Ve.publish("putAdditionalObjects");for(var e=0;e<ie.length;e++){var t=ie[e];Je(t.objId,!0),he(t.content),he("endobj")}Ve.publish("postPutAdditionalObjects")},At=function(e){Fe[e.fontName]=Fe[e.fontName]||{},Fe[e.fontName][e.fontStyle]=e.id},Nt=function(e,t,r,n,a){var i={id:"F"+(Object.keys(Me).length+1).toString(10),postScriptName:e,fontName:t,fontStyle:r,encoding:n,isStandardFont:a||!1,metadata:{}};return Ve.publish("addFont",{font:i,instance:this}),Me[i.id]=i,At(i),i.id},Et=function(e){for(var t=0,r=pe.length;t<r;t++){var n=Nt.call(this,e[t][0],e[t][1],e[t][2],pe[t][3],!0);!1===v&&(b[n]=!0);var a=e[t][0].split("-");At({id:n,fontName:a[0],fontStyle:a[1]||""})}Ve.publish("addFonts",{fonts:Me,dictionary:Fe})},Lt=function(e){return e.foo=function(){try{return e.apply(this,arguments)}catch(e){var t=e.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var r="Error in function "+t.split("\n")[0].split("<")[0]+": "+e.message;if(!o.console)throw new Error(r);o.console.error(r,e),o.alert&&alert(r)}},e.foo.bar=e,e.foo},Mt=function(e,t){var r,n,a,i,o,s,l,c,u;if(a=(t=t||{}).sourceEncoding||"Unicode",o=t.outputEncoding,(t.autoencode||o)&&Me[ke].metadata&&Me[ke].metadata[a]&&Me[ke].metadata[a].encoding&&(i=Me[ke].metadata[a].encoding,!o&&Me[ke].encoding&&(o=Me[ke].encoding),!o&&i.codePages&&(o=i.codePages[0]),"string"==typeof o&&(o=i[o]),o)){for(l=!1,s=[],r=0,n=e.length;r<n;r++)(c=o[e.charCodeAt(r)])?s.push(String.fromCharCode(c)):s.push(e[r]),s[r].charCodeAt(0)>>8&&(l=!0);e=s.join("")}for(r=e.length;void 0===l&&0!==r;)e.charCodeAt(r-1)>>8&&(l=!0),r--;if(!l)return e;for(s=t.noBOM?[]:[254,255],r=0,n=e.length;r<n;r++){if((u=(c=e.charCodeAt(r))>>8)>>8)throw new Error("Character at position "+r+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(u),s.push(c-(u<<8))}return String.fromCharCode.apply(void 0,s)},Ft=y.__private__.pdfEscape=y.pdfEscape=function(e,t){return Mt(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Tt=y.__private__.beginPage=function(e){oe[++je]=[],Be[je]={objId:0,contentsObjId:0,userUnit:Number(u),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},Ot(je),ue(oe[Z])},Dt=function(e,t){var n,a,o;switch(r=t||r,"string"==typeof e&&(n=S(e.toLowerCase()),Array.isArray(n)&&(a=n[0],o=n[1])),Array.isArray(e)&&(a=e[0]*Ae,o=e[1]*Ae),isNaN(a)&&(a=i[0],o=i[1]),(a>14400||o>14400)&&(l.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),a=Math.min(14400,a),o=Math.min(14400,o)),i=[a,o],r.substr(0,1)){case"l":o>a&&(i=[o,a]);break;case"p":a>o&&(i=[o,a])}Tt(i),pr(fr),he(_r),0!==Er&&he(Er+" J"),0!==Lr&&he(Lr+" j"),Ve.publish("addPage",{pageNumber:je})},It=function(e){e>0&&e<=je&&(oe.splice(e,1),Be.splice(e,1),je--,Z>je&&(Z=je),this.setPage(Z))},Ot=function(e){e>0&&e<=je&&(Z=e)},Pt=y.__private__.getNumberOfPages=y.getNumberOfPages=function(){return oe.length-1},Rt=function(e,t,r){var n,a=void 0;return r=r||{},e=void 0!==e?e:Me[ke].fontName,t=void 0!==t?t:Me[ke].fontStyle,n=e.toLowerCase(),void 0!==Fe[n]&&void 0!==Fe[n][t]?a=Fe[n][t]:void 0!==Fe[e]&&void 0!==Fe[e][t]?a=Fe[e][t]:!1===r.disableWarning&&l.warn("Unable to look up font label for font '"+e+"', '"+t+"'. Refer to getFontList() for available fonts."),a||r.noFallback||null==(a=Fe.times[t])&&(a=Fe.times.normal),a},jt=y.__private__.putInfo=function(){var e=Ye(),t=function(e){return e};for(var r in null!==m&&(t=$t.encryptor(e,0)),he("<<"),he("/Producer ("+Ft(t("jsPDF "+B.version))+")"),Ce)Ce.hasOwnProperty(r)&&Ce[r]&&he("/"+r.substr(0,1).toUpperCase()+r.substr(1)+" ("+Ft(t(Ce[r]))+")");he("/CreationDate ("+Ft(t(q))+")"),he(">>"),he("endobj")},Bt=y.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||Qe;switch(Ye(),he("<<"),he("/Type /Catalog"),he("/Pages "+t+" 0 R"),me||(me="fullwidth"),me){case"fullwidth":he("/OpenAction [3 0 R /FitH null]");break;case"fullheight":he("/OpenAction [3 0 R /FitV null]");break;case"fullpage":he("/OpenAction [3 0 R /Fit]");break;case"original":he("/OpenAction [3 0 R /XYZ null null 1]");break;default:var r=""+me;"%"===r.substr(r.length-1)&&(me=parseInt(me)/100),"number"==typeof me&&he("/OpenAction [3 0 R /XYZ null null "+P(me)+"]")}switch(we||(we="continuous"),we){case"continuous":he("/PageLayout /OneColumn");break;case"single":he("/PageLayout /SinglePage");break;case"two":case"twoleft":he("/PageLayout /TwoColumnLeft");break;case"tworight":he("/PageLayout /TwoColumnRight")}ye&&he("/PageMode /"+ye),Ve.publish("putCatalog"),he(">>"),he("endobj")},Vt=y.__private__.putTrailer=function(){he("trailer"),he("<<"),he("/Size "+(te+1)),he("/Root "+te+" 0 R"),he("/Info "+(te-1)+" 0 R"),null!==m&&he("/Encrypt "+$t.oid+" 0 R"),he("/ID [ <"+G+"> <"+G+"> ]"),he(">>")},zt=y.__private__.putHeader=function(){he("%PDF-"+x),he("%ºß¬à")},Ut=y.__private__.putXRef=function(){var e="0000000000";he("xref"),he("0 "+(te+1)),he("0000000000 65535 f ");for(var t=1;t<=te;t++)"function"==typeof re[t]?he((e+re[t]()).slice(-10)+" 00000 n "):void 0!==re[t]?he((e+re[t]).slice(-10)+" 00000 n "):he("0000000000 00000 n ")},Ht=y.__private__.buildDocument=function(){ce(),ue(ne),Ve.publish("buildDocument"),zt(),ot(),kt(),Ct(),null!==m&&bt(),jt(),Bt();var e=ae;return Ut(),Vt(),he("startxref"),he(""+e),he("%%EOF"),ue(oe[Z]),ne.join("\n")},qt=y.__private__.getBlob=function(e){return new Blob([de(e)],{type:"application/pdf"})},Gt=y.output=y.__private__.output=Lt((function(e,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return Ht();case"save":y.save(t.filename);break;case"arraybuffer":return de(Ht());case"blob":return qt(Ht());case"bloburi":case"bloburl":if(void 0!==o.URL&&"function"==typeof o.URL.createObjectURL)return o.URL&&o.URL.createObjectURL(qt(Ht()))||void 0;l.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var r="",n=Ht();try{r=d(n)}catch(e){r=d(unescape(encodeURIComponent(n)))}return"data:application/pdf;filename="+t.filename+";base64,"+r;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(o)){var a="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",i=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';t.pdfObjectUrl&&(a=t.pdfObjectUrl,i="");var s='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+a+'"'+i+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(t)+");<\/script></body></html>",c=o.open();return null!==c&&c.document.write(s),c}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(o)){var u='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(t.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+t.filename+'" width="500px" height="400px" /></body></html>',h=o.open();if(null!==h){h.document.write(u);var f=this;h.document.documentElement.querySelector("#pdfViewer").onload=function(){h.document.title=t.filename,h.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(f.output("bloburl"))}}return h}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(o))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var p='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",t)+'"></iframe></body></html>',g=o.open();if(null!==g&&(g.document.write(p),g.document.title=t.filename),g||"undefined"==typeof safari)return g;break;case"datauri":case"dataurl":return o.document.location.href=this.output("datauristring",t);default:return null}})),Wt=function(e){return!0===Array.isArray(ze)&&ze.indexOf(e)>-1};switch(n){case"pt":Ae=1;break;case"mm":Ae=72/25.4;break;case"cm":Ae=72/2.54;break;case"in":Ae=72;break;case"px":Ae=1==Wt("px_scaling")?.75:96/72;break;case"pc":case"em":Ae=12;break;case"ex":Ae=6;break;default:if("number"!=typeof n)throw new Error("Invalid unit: "+n);Ae=n}var $t=null;K(),$();var Xt=function(e){return null!==m?$t.encryptor(e,0):function(e){return e}},Yt=y.__private__.getPageInfo=y.getPageInfo=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Be[e].objId,pageNumber:e,pageContext:Be[e]}},Kt=y.__private__.getPageInfoByObjId=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var t in Be)if(Be[t].objId===e)break;return Yt(t)},Jt=y.__private__.getCurrentPageInfo=y.getCurrentPageInfo=function(){return{objId:Be[Z].objId,pageNumber:Z,pageContext:Be[Z]}};y.addPage=function(){return Dt.apply(this,arguments),this},y.setPage=function(){return Ot.apply(this,arguments),ue.call(this,oe[Z]),this},y.insertPage=function(e){return this.addPage(),this.movePage(Z,e),this},y.movePage=function(e,t){var r,n;if(e>t){r=oe[e],n=Be[e];for(var a=e;a>t;a--)oe[a]=oe[a-1],Be[a]=Be[a-1];oe[t]=r,Be[t]=n,this.setPage(t)}else if(e<t){r=oe[e],n=Be[e];for(var i=e;i<t;i++)oe[i]=oe[i+1],Be[i]=Be[i+1];oe[t]=r,Be[t]=n,this.setPage(t)}return this},y.deletePage=function(){return It.apply(this,arguments),this},y.__private__.text=y.text=function(e,t,r,n,i){var o,s,l,c,u,h,f,d,p,g=(n=n||{}).scope||this;if("number"==typeof e&&"number"==typeof t&&("string"==typeof r||Array.isArray(r))){var m=r;r=t,t=e,e=m}if(arguments[3]instanceof Ge==0?(l=arguments[4],c=arguments[5],"object"===a()(f=arguments[3])&&null!==f||("string"==typeof l&&(c=l,l=null),"string"==typeof f&&(c=f,f=null),"number"==typeof f&&(l=f,f=null),n={flags:f,angle:l,align:c})):(M("The transform parameter of text() with a Matrix value"),p=i),isNaN(t)||isNaN(r)||null==e)throw new Error("Invalid arguments passed to jsPDF.text");if(0===e.length)return g;var v="",y=!1,x="number"==typeof n.lineHeightFactor?n.lineHeightFactor:hr,w=g.internal.scaleFactor;function _(e){return e=e.split("\t").join(Array(n.TabLen||9).join(" ")),Ft(e,f)}function S(e){for(var t,r=e.concat(),n=[],a=r.length;a--;)"string"==typeof(t=r.shift())?n.push(t):Array.isArray(e)&&(1===t.length||void 0===t[1]&&void 0===t[2])?n.push(t[0]):n.push([t[0],t[1],t[2]]);return n}function A(e,t){var r;if("string"==typeof e)r=t(e)[0];else if(Array.isArray(e)){for(var n,a,i=e.concat(),o=[],s=i.length;s--;)"string"==typeof(n=i.shift())?o.push(t(n)[0]):Array.isArray(n)&&"string"==typeof n[0]&&(a=t(n[0],n[1],n[2]),o.push([a[0],a[1],a[2]]));r=o}return r}var N=!1,E=!0;if("string"==typeof e)N=!0;else if(Array.isArray(e)){var F=e.concat();s=[];for(var T,D=F.length;D--;)("string"!=typeof(T=F.shift())||Array.isArray(T)&&"string"!=typeof T[0])&&(E=!1);N=E}if(!1===N)throw new Error('Type of text must be string or Array. "'+e+'" is not recognized.');"string"==typeof e&&(e=e.match(/[\r?\n]/)?e.split(/\r\n|\r|\n/g):[e]);var I=ge/g.internal.scaleFactor,O=I*(x-1);switch(n.baseline){case"bottom":r-=O;break;case"top":r+=I-O;break;case"hanging":r+=I-2*O;break;case"middle":r+=I/2-O}if((h=n.maxWidth||0)>0&&("string"==typeof e?e=g.splitTextToSize(e,h):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce((function(e,t){return e.concat(g.splitTextToSize(t,h))}),[]))),o={text:e,x:t,y:r,options:n,mutex:{pdfEscape:Ft,activeFontKey:ke,fonts:Me,activeFontSize:ge}},Ve.publish("preProcessText",o),e=o.text,l=(n=o.options).angle,p instanceof Ge==0&&l&&"number"==typeof l){l*=Math.PI/180,0===n.rotationDirection&&(l=-l),k===C.ADVANCED&&(l=-l);var P=Math.cos(l),R=Math.sin(l);p=new Ge(P,R,-R,P,0,0)}else l&&l instanceof Ge&&(p=l);k!==C.ADVANCED||p||(p=$e),void 0!==(u=n.charSpace||Ar)&&(v+=L(z(u))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(d=n.horizontalScale)&&(v+=L(100*d)+" Tz\n"),n.lang;var j=-1,B=void 0!==n.renderingMode?n.renderingMode:n.stroke,V=g.internal.getCurrentPageInfo().pageContext;switch(B){case 0:case!1:case"fill":j=0;break;case 1:case!0:case"stroke":j=1;break;case 2:case"fillThenStroke":j=2;break;case 3:case"invisible":j=3;break;case 4:case"fillAndAddForClipping":j=4;break;case 5:case"strokeAndAddPathForClipping":j=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":j=6;break;case 7:case"addToPathForClipping":j=7}var U=void 0!==V.usedRenderingMode?V.usedRenderingMode:-1;-1!==j?v+=j+" Tr\n":-1!==U&&(v+="0 Tr\n"),-1!==j&&(V.usedRenderingMode=j),c=n.align||"left";var H,q=ge*x,G=g.internal.pageSize.getWidth(),W=Me[ke];u=n.charSpace||Ar,h=n.maxWidth||0,f=Object.assign({autoencode:!0,noBOM:!0},n.flags);var $=[];if("[object Array]"===Object.prototype.toString.call(e)){var X;s=S(e),"left"!==c&&(H=s.map((function(e){return g.getStringUnitWidth(e,{font:W,charSpace:u,fontSize:ge,doKerning:!1})*ge/w})));var Y,K=0;if("right"===c){t-=H[0],e=[],D=s.length;for(var J=0;J<D;J++)0===J?(Y=br(t),X=yr(r)):(Y=z(K-H[J]),X=-q),e.push([s[J],Y,X]),K=H[J]}else if("center"===c){t-=H[0]/2,e=[],D=s.length;for(var Z=0;Z<D;Z++)0===Z?(Y=br(t),X=yr(r)):(Y=z((K-H[Z])/2),X=-q),e.push([s[Z],Y,X]),K=H[Z]}else if("left"===c){e=[],D=s.length;for(var Q=0;Q<D;Q++)e.push(s[Q])}else{if("justify"!==c)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');e=[],D=s.length,h=0!==h?h:G;for(var ee=0;ee<D;ee++)X=0===ee?yr(r):-q,Y=0===ee?br(t):0,ee<D-1?$.push(L(z((h-H[ee])/(s[ee].split(" ").length-1)))):$.push(0),e.push([s[ee],Y,X])}}var te="boolean"==typeof n.R2L?n.R2L:be;!0===te&&(e=A(e,(function(e,t,r){return[e.split("").reverse().join(""),t,r]}))),o={text:e,x:t,y:r,options:n,mutex:{pdfEscape:Ft,activeFontKey:ke,fonts:Me,activeFontSize:ge}},Ve.publish("postProcessText",o),e=o.text,y=o.mutex.isHex||!1;var re=Me[ke].encoding;"WinAnsiEncoding"!==re&&"StandardEncoding"!==re||(e=A(e,(function(e,t,r){return[_(e),t,r]}))),s=S(e),e=[];for(var ne,ae,ie,oe=0,se=1,le=Array.isArray(s[0])?se:oe,ce="",ue=function(e,t,r){var a="";return r instanceof Ge?(r="number"==typeof n.angle?We(r,new Ge(1,0,0,1,e,t)):We(new Ge(1,0,0,1,e,t),r),k===C.ADVANCED&&(r=We(new Ge(1,0,0,-1,0,0),r)),a=r.join(" ")+" Tm\n"):a=L(e)+" "+L(t)+" Td\n",a},fe=0;fe<s.length;fe++){switch(ce="",le){case se:ie=(y?"<":"(")+s[fe][0]+(y?">":")"),ne=parseFloat(s[fe][1]),ae=parseFloat(s[fe][2]);break;case oe:ie=(y?"<":"(")+s[fe]+(y?">":")"),ne=br(t),ae=yr(r)}void 0!==$&&void 0!==$[fe]&&(ce=$[fe]+" Tw\n"),0===fe?e.push(ce+ue(ne,ae,p)+ie):le===oe?e.push(ce+ie):le===se&&e.push(ce+ue(ne,ae,p)+ie)}e=le===oe?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var de="BT\n/";return de+=ke+" "+ge+" Tf\n",de+=L(ge*x)+" TL\n",de+=Cr+"\n",de+=v,de+=e,he(de+="ET"),b[ke]=!0,g};var Zt=y.__private__.clip=y.clip=function(e){return he("evenodd"===e?"W*":"W"),this};y.clipEvenOdd=function(){return Zt("evenodd")},y.__private__.discardPath=y.discardPath=function(){return he("n"),this};var Qt=y.__private__.isValidStyle=function(e){var t=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(e)&&(t=!0),t};y.__private__.setDefaultPathOperation=y.setDefaultPathOperation=function(e){return Qt(e)&&(f=e),this};var er=y.__private__.getStyle=y.getStyle=function(e){var t=f;switch(e){case"D":case"S":t="S";break;case"F":t="f";break;case"FD":case"DF":t="B";break;case"f":case"f*":case"B":case"B*":t=e}return t},tr=y.close=function(){return he("h"),this};y.stroke=function(){return he("S"),this},y.fill=function(e){return rr("f",e),this},y.fillEvenOdd=function(e){return rr("f*",e),this},y.fillStroke=function(e){return rr("B",e),this},y.fillStrokeEvenOdd=function(e){return rr("B*",e),this};var rr=function(e,t){"object"===a()(t)?ir(t,e):he(e)},nr=function(e){null===e||k===C.ADVANCED&&void 0===e||(e=er(e),he(e))};function ar(e,t,r,n,a){var i=new j(t||this.boundingBox,r||this.xStep,n||this.yStep,this.gState,a||this.matrix);i.stream=this.stream;var o=e+"$$"+this.cloneIndex+++"$$";return Xe(o,i),i}var ir=function(e,t){var r=Ie[e.key],n=De[r];if(n instanceof R)he("q"),he(or(t)),n.gState&&y.setGState(n.gState),he(e.matrix.toString()+" cm"),he("/"+r+" sh"),he("Q");else if(n instanceof j){var a=new Ge(1,0,0,-1,0,Br());e.matrix&&(a=a.multiply(e.matrix||$e),r=ar.call(n,e.key,e.boundingBox,e.xStep,e.yStep,a).id),he("q"),he("/Pattern cs"),he("/"+r+" scn"),n.gState&&y.setGState(n.gState),he(t),he("Q")}},or=function(e){switch(e){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},sr=y.moveTo=function(e,t){return he(L(z(e))+" "+L(H(t))+" m"),this},lr=y.lineTo=function(e,t){return he(L(z(e))+" "+L(H(t))+" l"),this},cr=y.curveTo=function(e,t,r,n,a,i){return he([L(z(e)),L(H(t)),L(z(r)),L(H(n)),L(z(a)),L(H(i)),"c"].join(" ")),this};y.__private__.line=y.line=function(e,t,r,n,a){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||!Qt(a))throw new Error("Invalid arguments passed to jsPDF.line");return k===C.COMPAT?this.lines([[r-e,n-t]],e,t,[1,1],a||"S"):this.lines([[r-e,n-t]],e,t,[1,1]).stroke()},y.__private__.lines=y.lines=function(e,t,r,n,a,i){var o,s,l,c,u,h,f,d,p,g,m,v;if("number"==typeof e&&(v=r,r=t,t=e,e=v),n=n||[1,1],i=i||!1,isNaN(t)||isNaN(r)||!Array.isArray(e)||!Array.isArray(n)||!Qt(a)||"boolean"!=typeof i)throw new Error("Invalid arguments passed to jsPDF.lines");for(sr(t,r),o=n[0],s=n[1],c=e.length,g=t,m=r,l=0;l<c;l++)2===(u=e[l]).length?(g=u[0]*o+g,m=u[1]*s+m,lr(g,m)):(h=u[0]*o+g,f=u[1]*s+m,d=u[2]*o+g,p=u[3]*s+m,g=u[4]*o+g,m=u[5]*s+m,cr(h,f,d,p,g,m));return i&&tr(),nr(a),this},y.path=function(e){for(var t=0;t<e.length;t++){var r=e[t],n=r.c;switch(r.op){case"m":sr(n[0],n[1]);break;case"l":lr(n[0],n[1]);break;case"c":cr.apply(this,n);break;case"h":tr()}}return this},y.__private__.rect=y.rect=function(e,t,r,n,a){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||!Qt(a))throw new Error("Invalid arguments passed to jsPDF.rect");return k===C.COMPAT&&(n=-n),he([L(z(e)),L(H(t)),L(z(r)),L(z(n)),"re"].join(" ")),nr(a),this},y.__private__.triangle=y.triangle=function(e,t,r,n,a,i,o){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(a)||isNaN(i)||!Qt(o))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[r-e,n-t],[a-r,i-n],[e-a,t-i]],e,t,[1,1],o,!0),this},y.__private__.roundedRect=y.roundedRect=function(e,t,r,n,a,i,o){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(a)||isNaN(i)||!Qt(o))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return a=Math.min(a,.5*r),i=Math.min(i,.5*n),this.lines([[r-2*a,0],[a*s,0,a,i-i*s,a,i],[0,n-2*i],[0,i*s,-a*s,i,-a,i],[2*a-r,0],[-a*s,0,-a,-i*s,-a,-i],[0,2*i-n],[0,-i*s,a*s,-i,a,-i]],e+a,t,[1,1],o,!0),this},y.__private__.ellipse=y.ellipse=function(e,t,r,n,a){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||!Qt(a))throw new Error("Invalid arguments passed to jsPDF.ellipse");var i=4/3*(Math.SQRT2-1)*r,o=4/3*(Math.SQRT2-1)*n;return sr(e+r,t),cr(e+r,t-o,e+i,t-n,e,t-n),cr(e-i,t-n,e-r,t-o,e-r,t),cr(e-r,t+o,e-i,t+n,e,t+n),cr(e+i,t+n,e+r,t+o,e+r,t),nr(a),this},y.__private__.circle=y.circle=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||!Qt(n))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(e,t,r,r,n)},y.setFont=function(e,t,r){return r&&(t=E(t,r)),ke=Rt(e,t,{disableWarning:!1}),this};var ur=y.__private__.getFont=y.getFont=function(){return Me[Rt.apply(y,arguments)]};y.__private__.getFontList=y.getFontList=function(){var e,t,r={};for(e in Fe)if(Fe.hasOwnProperty(e))for(t in r[e]=[],Fe[e])Fe[e].hasOwnProperty(t)&&r[e].push(t);return r},y.addFont=function(e,t,r,n,a){var i=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==i.indexOf(arguments[3])?a=arguments[3]:arguments[3]&&-1==i.indexOf(arguments[3])&&(r=E(r,n)),a=a||"Identity-H",Nt.call(this,e,t,r,a)};var hr,fr=e.lineWidth||.200025,dr=y.__private__.getLineWidth=y.getLineWidth=function(){return fr},pr=y.__private__.setLineWidth=y.setLineWidth=function(e){return fr=e,he(L(z(e))+" w"),this};y.__private__.setLineDash=B.API.setLineDash=B.API.setLineDashPattern=function(e,t){if(e=e||[],t=t||0,isNaN(t)||!Array.isArray(e))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return e=e.map((function(e){return L(z(e))})).join(" "),t=L(z(t)),he("["+e+"] "+t+" d"),this};var gr=y.__private__.getLineHeight=y.getLineHeight=function(){return ge*hr};y.__private__.getLineHeight=y.getLineHeight=function(){return ge*hr};var mr=y.__private__.setLineHeightFactor=y.setLineHeightFactor=function(e){return"number"==typeof(e=e||1.15)&&(hr=e),this},vr=y.__private__.getLineHeightFactor=y.getLineHeightFactor=function(){return hr};mr(e.lineHeight);var br=y.__private__.getHorizontalCoordinate=function(e){return z(e)},yr=y.__private__.getVerticalCoordinate=function(e){return k===C.ADVANCED?e:Be[Z].mediaBox.topRightY-Be[Z].mediaBox.bottomLeftY-z(e)},xr=y.__private__.getHorizontalCoordinateString=y.getHorizontalCoordinateString=function(e){return L(br(e))},wr=y.__private__.getVerticalCoordinateString=y.getVerticalCoordinateString=function(e){return L(yr(e))},_r=e.strokeColor||"0 G";y.__private__.getStrokeColor=y.getDrawColor=function(){return tt(_r)},y.__private__.setStrokeColor=y.setDrawColor=function(e,t,r,n){return _r=rt({ch1:e,ch2:t,ch3:r,ch4:n,pdfColorType:"draw",precision:2}),he(_r),this};var Sr=e.fillColor||"0 g";y.__private__.getFillColor=y.getFillColor=function(){return tt(Sr)},y.__private__.setFillColor=y.setFillColor=function(e,t,r,n){return Sr=rt({ch1:e,ch2:t,ch3:r,ch4:n,pdfColorType:"fill",precision:2}),he(Sr),this};var Cr=e.textColor||"0 g",kr=y.__private__.getTextColor=y.getTextColor=function(){return tt(Cr)};y.__private__.setTextColor=y.setTextColor=function(e,t,r,n){return Cr=rt({ch1:e,ch2:t,ch3:r,ch4:n,pdfColorType:"text",precision:3}),this};var Ar=e.charSpace,Nr=y.__private__.getCharSpace=y.getCharSpace=function(){return parseFloat(Ar||0)};y.__private__.setCharSpace=y.setCharSpace=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ar=e,this};var Er=0;y.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},y.__private__.setLineCap=y.setLineCap=function(e){var t=y.CapJoinStyles[e];if(void 0===t)throw new Error("Line cap style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Er=t,he(t+" J"),this};var Lr=0;y.__private__.setLineJoin=y.setLineJoin=function(e){var t=y.CapJoinStyles[e];if(void 0===t)throw new Error("Line join style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Lr=t,he(t+" j"),this},y.__private__.setLineMiterLimit=y.__private__.setMiterLimit=y.setLineMiterLimit=y.setMiterLimit=function(e){if(e=e||0,isNaN(e))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return he(L(z(e))+" M"),this},y.GState=O,y.setGState=function(e){(e="string"==typeof e?Oe[Pe[e]]:Mr(null,e)).equals(Re)||(he("/"+e.id+" gs"),Re=e)};var Mr=function(e,t){if(!e||!Pe[e]){var r=!1;for(var n in Oe)if(Oe.hasOwnProperty(n)&&Oe[n].equals(t)){r=!0;break}if(r)t=Oe[n];else{var a="GS"+(Object.keys(Oe).length+1).toString(10);Oe[a]=t,t.id=a}return e&&(Pe[e]=t.id),Ve.publish("addGState",t),t}};y.addGState=function(e,t){return Mr(e,t),this},y.saveGraphicsState=function(){return he("q"),Te.push({key:ke,size:ge,color:Cr}),this},y.restoreGraphicsState=function(){he("Q");var e=Te.pop();return ke=e.key,ge=e.size,Cr=e.color,Re=null,this},y.setCurrentTransformationMatrix=function(e){return he(e.toString()+" cm"),this},y.comment=function(e){return he("#"+e),this};var Fr=function(e,t){var r=e||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return r},set:function(e){isNaN(e)||(r=parseFloat(e))}});var n=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return n},set:function(e){isNaN(e)||(n=parseFloat(e))}});var a="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return a},set:function(e){a=e.toString()}}),this},Tr=function(e,t,r,n){Fr.call(this,e,t),this.type="rect";var a=r||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return a},set:function(e){isNaN(e)||(a=parseFloat(e))}});var i=n||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return i},set:function(e){isNaN(e)||(i=parseFloat(e))}}),this},Dr=function(){this.page=je,this.currentPage=Z,this.pages=oe.slice(0),this.pagesContext=Be.slice(0),this.x=Ne,this.y=Ee,this.matrix=Le,this.width=Rr(Z),this.height=Br(Z),this.outputDestination=le,this.id="",this.objectNumber=-1};Dr.prototype.restore=function(){je=this.page,Z=this.currentPage,Be=this.pagesContext,oe=this.pages,Ne=this.x,Ee=this.y,Le=this.matrix,jr(Z,this.width),Vr(Z,this.height),le=this.outputDestination};var Ir=function(e,t,r,n,a){qe.push(new Dr),je=Z=0,oe=[],Ne=e,Ee=t,Le=a,Tt([r,n])},Or=function(e){if(He[e])qe.pop().restore();else{var t=new Dr,r="Xo"+(Object.keys(Ue).length+1).toString(10);t.id=r,He[e]=r,Ue[r]=t,Ve.publish("addFormObject",t),qe.pop().restore()}};for(var Pr in y.beginFormObject=function(e,t,r,n,a){return Ir(e,t,r,n,a),this},y.endFormObject=function(e){return Or(e),this},y.doFormObject=function(e,t){var r=Ue[He[e]];return he("q"),he(t.toString()+" cm"),he("/"+r.id+" Do"),he("Q"),this},y.getFormObject=function(e){var t=Ue[He[e]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},y.save=function(e,t){return e=e||"generated.pdf",(t=t||{}).returnPromise=t.returnPromise||!1,!1===t.returnPromise?(p(qt(Ht()),e),"function"==typeof p.unload&&o.setTimeout&&setTimeout(p.unload,911),this):new Promise((function(t,r){try{var n=p(qt(Ht()),e);"function"==typeof p.unload&&o.setTimeout&&setTimeout(p.unload,911),t(n)}catch(e){r(e.message)}}))},B.API)B.API.hasOwnProperty(Pr)&&("events"===Pr&&B.API.events.length?function(e,t){var r,n,a;for(a=t.length-1;-1!==a;a--)r=t[a][0],n=t[a][1],e.subscribe.apply(e,[r].concat("function"==typeof n?[n]:n))}(Ve,B.API.events):y[Pr]=B.API[Pr]);var Rr=y.getPageWidth=function(e){return(Be[e=e||Z].mediaBox.topRightX-Be[e].mediaBox.bottomLeftX)/Ae},jr=y.setPageWidth=function(e,t){Be[e].mediaBox.topRightX=t*Ae+Be[e].mediaBox.bottomLeftX},Br=y.getPageHeight=function(e){return(Be[e=e||Z].mediaBox.topRightY-Be[e].mediaBox.bottomLeftY)/Ae},Vr=y.setPageHeight=function(e,t){Be[e].mediaBox.topRightY=t*Ae+Be[e].mediaBox.bottomLeftY};return y.internal={pdfEscape:Ft,getStyle:er,getFont:ur,getFontSize:ve,getCharSpace:Nr,getTextColor:kr,getLineHeight:gr,getLineHeightFactor:vr,getLineWidth:dr,write:fe,getHorizontalCoordinate:br,getVerticalCoordinate:yr,getCoordinateString:xr,getVerticalCoordinateString:wr,collections:{},newObject:Ye,newAdditionalObject:Ze,newObjectDeferred:Ke,newObjectDeferredBegin:Je,getFilters:nt,putStream:at,events:Ve,scaleFactor:Ae,pageSize:{getWidth:function(){return Rr(Z)},setWidth:function(e){jr(Z,e)},getHeight:function(){return Br(Z)},setHeight:function(e){Vr(Z,e)}},encryptionOptions:m,encryption:$t,getEncryptor:Xt,output:Gt,getNumberOfPages:Pt,pages:oe,out:he,f2:P,f3:V,getPageInfo:Yt,getPageInfoByObjId:Kt,getCurrentPageInfo:Jt,getPDFVersion:w,Point:Fr,Rectangle:Tr,Matrix:Ge,hasHotfix:Wt},Object.defineProperty(y.internal.pageSize,"width",{get:function(){return Rr(Z)},set:function(e){jr(Z,e)},enumerable:!0,configurable:!0}),Object.defineProperty(y.internal.pageSize,"height",{get:function(){return Br(Z)},set:function(e){Vr(Z,e)},enumerable:!0,configurable:!0}),Et.call(y,pe),ke="F1",Dt(i,r),Ve.publish("initialized"),y}T.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},T.prototype.toHexString=function(e){return e.split("").map((function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)})).join("")},T.prototype.hexToBytes=function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(String.fromCharCode(parseInt(e.substr(r,2),16)));return t.join("")},T.prototype.processOwnerPassword=function(e,t){return M(N(t).substr(0,5),e)},T.prototype.encryptor=function(e,t){var r=N(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(e){return M(r,e)}},O.prototype.equals=function(e){var t,r="id,objectNumber,equals";if(!e||a()(e)!==a()(this))return!1;var n=0;for(t in this)if(!(r.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t))return!1;if(this[t]!==e[t])return!1;n++}for(t in e)e.hasOwnProperty(t)&&r.indexOf(t)<0&&n--;return 0===n},B.API={events:[]},B.version="2.5.1";var V=B.API,z=1,U=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},H=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},q=function(e){return e.toFixed(2)},G=function(e){return e.toFixed(5)};V.__acroform__={};var W=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},$=function(e){return e*z},X=function(e){var t=new he,r=ke.internal.getHeight(e)||0,n=ke.internal.getWidth(e)||0;return t.BBox=[0,0,Number(q(n)),Number(q(r))],t},Y=V.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},K=V.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},J=V.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(e&1<<t)?0:1},Z=V.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return J(e,t-1)},Q=V.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Y(e,t-1)},ee=V.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return K(e,t-1)},te=V.__acroform__.calculateCoordinates=function(e,t){var r=t.internal.getHorizontalCoordinate,n=t.internal.getVerticalCoordinate,a=e[0],i=e[1],o=e[2],s=e[3],l={};return l.lowerLeft_X=r(a)||0,l.lowerLeft_Y=n(i+s)||0,l.upperRight_X=r(a+o)||0,l.upperRight_Y=n(i)||0,[Number(q(l.lowerLeft_X)),Number(q(l.lowerLeft_Y)),Number(q(l.upperRight_X)),Number(q(l.upperRight_Y))]},re=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],r=e._V||e.DV,n=ne(e,r),a=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+a+" "+q(n.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(n.text),t.push("ET"),t.push("Q"),t.push("EMC");var i=X(e);return i.scope=e.scope,i.stream=t.join("\n"),i}},ne=function(e,t){var r=0===e.fontSize?e.maxFontSize:e.fontSize,n={text:"",fontSize:""},a=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" ");a=e.multiline?a.map((function(e){return e.split("\n")})):a.map((function(e){return[e]}));var i=r,o=ke.internal.getHeight(e)||0;o=o<0?-o:o;var s=ke.internal.getWidth(e)||0;s=s<0?-s:s;var l=function(t,r,n){if(t+1<a.length){var i=r+" "+a[t+1][0];return ae(i,e,n).width<=s-4}return!1};i++;e:for(;i>0;){t="",i--;var c,u,h=ae("3",e,i).height,f=e.multiline?o-i:(o-h)/2,d=f+=2,p=0,g=0,m=0;if(i<=0){t="(...) Tj\n",t+="% Width of Text: "+ae(t,e,i=12).width+", FieldWidth:"+s+"\n";break}for(var v="",b=0,y=0;y<a.length;y++)if(a.hasOwnProperty(y)){var x=!1;if(1!==a[y].length&&m!==a[y].length-1){if((h+2)*(b+2)+2>o)continue e;v+=a[y][m],x=!0,g=y,y--}else{v=" "==(v+=a[y][m]+" ").substr(v.length-1)?v.substr(0,v.length-1):v;var w=parseInt(y),_=l(w,v,i),S=y>=a.length-1;if(_&&!S){v+=" ",m=0;continue}if(_||S){if(S)g=w;else if(e.multiline&&(h+2)*(b+2)+2>o)continue e}else{if(!e.multiline)continue e;if((h+2)*(b+2)+2>o)continue e;g=w}}for(var C="",k=p;k<=g;k++){var A=a[k];if(e.multiline){if(k===g){C+=A[m]+" ",m=(m+1)%A.length;continue}if(k===p){C+=A[A.length-1]+" ";continue}}C+=A[0]+" "}switch(C=" "==C.substr(C.length-1)?C.substr(0,C.length-1):C,u=ae(C,e,i).width,e.textAlign){case"right":c=s-u-2;break;case"center":c=(s-u)/2;break;case"left":default:c=2}t+=q(c)+" "+q(d)+" Td\n",t+="("+U(C)+") Tj\n",t+=-q(c)+" 0 Td\n",d=-(i+2),u=0,p=x?g:g+1,b++,v=""}break}return n.text=t,n.fontSize=i,n},ae=function(e,t,r){var n=t.scope.internal.getFont(t.fontName,t.fontStyle),a=t.scope.getStringUnitWidth(e,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:t.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:a}},ie={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},oe=function(e,t){var r={type:"reference",object:e};void 0===t.internal.getPageInfo(e.page).pageContext.annotations.find((function(e){return e.type===r.type&&e.object===r.object}))&&t.internal.getPageInfo(e.page).pageContext.annotations.push(r)},se=function(e,t){if(t.scope=e,void 0!==e.internal&&(void 0===e.internal.acroformPlugin||!1===e.internal.acroformPlugin.isInitialized)){if(de.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(ie)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");z=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new fe,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",(function(){var t;(t=e).internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})),e.internal.events.subscribe("buildDocument",(function(){!function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];n.objId=void 0,n.hasAnnotation&&oe(n,e)}}(e)})),e.internal.events.subscribe("putCatalog",(function(){!function(e){if(void 0===e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(e)})),e.internal.events.subscribe("postPutPages",(function(t){!function(e,t){var r=!e;for(var n in e||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(n)){var i=e[n],o=[],s=i.Rect;if(i.Rect&&(i.Rect=te(i.Rect,t)),t.internal.newObjectDeferredBegin(i.objId,!0),i.DA=ke.createDefaultAppearanceStream(i),"object"===a()(i)&&"function"==typeof i.getKeyValueListForStream&&(o=i.getKeyValueListForStream()),i.Rect=s,i.hasAppearanceStream&&!i.appearanceStreamContent){var l=re(i);o.push({key:"AP",value:"<</N "+l+">>"}),t.internal.acroformPlugin.xForms.push(l)}if(i.appearanceStreamContent){var c="";for(var u in i.appearanceStreamContent)if(i.appearanceStreamContent.hasOwnProperty(u)){var h=i.appearanceStreamContent[u];if(c+="/"+u+" ",c+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var n in h)if(h.hasOwnProperty(n)){var f=h[n];"function"==typeof f&&(f=f.call(t,i)),c+="/"+n+" "+f+" ",t.internal.acroformPlugin.xForms.indexOf(f)>=0||t.internal.acroformPlugin.xForms.push(f)}}else"function"==typeof(f=h)&&(f=f.call(t,i)),c+="/"+n+" "+f,t.internal.acroformPlugin.xForms.indexOf(f)>=0||t.internal.acroformPlugin.xForms.push(f);c+=">>"}o.push({key:"AP",value:"<<\n"+c+">>"})}t.internal.putStream({additionalKeyValues:o,objectId:i.objId}),t.internal.out("endobj")}r&&function(e,t){for(var r in e)if(e.hasOwnProperty(r)){var n=r,i=e[r];t.internal.newObjectDeferredBegin(i.objId,!0),"object"===a()(i)&&"function"==typeof i.putStream&&i.putStream(),delete e[n]}}(t.internal.acroformPlugin.xForms,t)}(t,e)})),e.internal.acroformPlugin.isInitialized=!0}},le=V.__acroform__.arrayToPdfArray=function(e,t,r){var n=function(e){return e};if(Array.isArray(e)){for(var i="[",o=0;o<e.length;o++)switch(0!==o&&(i+=" "),a()(e[o])){case"boolean":case"number":case"object":i+=e[o].toString();break;case"string":"/"!==e[o].substr(0,1)?(void 0!==t&&r&&(n=r.internal.getEncryptor(t)),i+="("+U(n(e[o].toString()))+")"):i+=e[o].toString()}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ce=function(e,t,r){var n=function(e){return e};return void 0!==t&&r&&(n=r.internal.getEncryptor(t)),(e=e||"").toString(),"("+U(n(e))+")"},ue=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ue.prototype.toString=function(){return this.objId+" 0 R"},ue.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},ue.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter((function(e){return"content"!=e&&"appearanceStreamContent"!=e&&"scope"!=e&&"objId"!=e&&"_"!=e.substring(0,1)}));for(var r in t)if(!1===Object.getOwnPropertyDescriptor(this,t[r]).configurable){var n=t[r],a=this[n];a&&(Array.isArray(a)?e.push({key:n,value:le(a,this.objId,this.scope)}):a instanceof ue?(a.scope=this.scope,e.push({key:n,value:a.objId+" 0 R"})):"function"!=typeof a&&e.push({key:n,value:a}))}return e};var he=function(){ue.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};W(he,ue);var fe=function(){ue.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+U(t(e))+")"}},set:function(t){e=t}})};W(fe,ue);var de=function At(){ue.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(e,3))},set:function(t){!0===Boolean(t)?this.F=Q(e,3):this.F=ee(e,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute Ff supplied.');t=e}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(e){r=void 0!==e?e:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(e){r[0]=e}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(e){r[1]=e}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(e){r[2]=e}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(e){r[3]=e}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(e){switch(e){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=e;break;default:throw new Error('Invalid value "'+e+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof we)return;a="FieldObject"+At.FieldNum++}var e=function(e){return e};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+U(e(a))+")"},set:function(e){a=e.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(e){a=e}});var i="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return i},set:function(e){i=e}});var o="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return o},set:function(e){o=e}});var s=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){s=e}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===l?50/z:l},set:function(e){l=e}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(e){c=e}});var u="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!u||this instanceof we||this instanceof Se))return ce(u,this.objId,this.scope)},set:function(e){e=e.toString(),u=e}});var h=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof be==0?ce(h,this.objId,this.scope):h},set:function(e){e=e.toString(),h=this instanceof be==0?"("===e.substr(0,1)?H(e.substr(1,e.length-2)):H(e):e}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof be==1?H(h.substr(1,h.length-1)):h},set:function(e){e=e.toString(),h=this instanceof be==1?"/"+e:e}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(e){this.V=e}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof be==0?ce(f,this.objId,this.scope):f},set:function(e){e=e.toString(),f=this instanceof be==0?"("===e.substr(0,1)?H(e.substr(1,e.length-2)):H(e):e}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof be==1?H(f.substr(1,f.length-1)):f},set:function(e){e=e.toString(),f=this instanceof be==1?"/"+e:e}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var d,p=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return p},set:function(e){e=Boolean(e),p=e}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(d)return d},set:function(e){d=e}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,1))},set:function(e){!0===Boolean(e)?this.Ff=Q(this.Ff,1):this.Ff=ee(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,2))},set:function(e){!0===Boolean(e)?this.Ff=Q(this.Ff,2):this.Ff=ee(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,3))},set:function(e){!0===Boolean(e)?this.Ff=Q(this.Ff,3):this.Ff=ee(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==g)return g},set:function(e){if(-1===[0,1,2].indexOf(e))throw new Error('Invalid value "'+e+'" for attribute Q supplied.');g=e}}),Object.defineProperty(this,"textAlign",{get:function(){var e;switch(g){case 0:default:e="left";break;case 1:e="center";break;case 2:e="right"}return e},configurable:!0,enumerable:!0,set:function(e){switch(e){case"right":case 2:g=2;break;case"center":case 1:g=1;break;case"left":case 0:default:g=0}}})};W(de,ue);var pe=function(){de.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return le(t,this.objId,this.scope)},set:function(e){var r,n;n=[],"string"==typeof(r=e)&&(n=function(e,t,r){r||(r=1);for(var n,a=[];n=t.exec(e);)a.push(n[r]);return a}(r,/\((.*?)\)/g)),t=n}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,r){for(r=r||!1,e=(e=e||"").toString();-1!==t.indexOf(e)&&(t.splice(t.indexOf(e),1),!1!==r););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,18))},set:function(e){!0===Boolean(e)?this.Ff=Q(this.Ff,18):this.Ff=ee(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,19))},set:function(e){!0===this.combo&&(!0===Boolean(e)?this.Ff=Q(this.Ff,19):this.Ff=ee(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,20))},set:function(e){!0===Boolean(e)?(this.Ff=Q(this.Ff,20),t.sort()):this.Ff=ee(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,22))},set:function(e){!0===Boolean(e)?this.Ff=Q(this.Ff,22):this.Ff=ee(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=Q(this.Ff,23):this.Ff=ee(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,27))},set:function(e){!0===Boolean(e)?this.Ff=Q(this.Ff,27):this.Ff=ee(this.Ff,27)}}),this.hasAppearanceStream=!1};W(pe,de);var ge=function(){pe.call(this),this.fontName="helvetica",this.combo=!1};W(ge,pe);var me=function(){ge.call(this),this.combo=!0};W(me,ge);var ve=function(){me.call(this),this.edit=!0};W(ve,me);var be=function(){de.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,15))},set:function(e){!0===Boolean(e)?this.Ff=Q(this.Ff,15):this.Ff=ee(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,16))},set:function(e){!0===Boolean(e)?this.Ff=Q(this.Ff,16):this.Ff=ee(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,17))},set:function(e){!0===Boolean(e)?this.Ff=Q(this.Ff,17):this.Ff=ee(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=Q(this.Ff,26):this.Ff=ee(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(t).length){var r,n=[];for(r in n.push("<<"),t)n.push("/"+r+" ("+U(e(t[r]))+")");return n.push(">>"),n.join("\n")}},set:function(e){"object"===a()(e)&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){"string"==typeof e&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};W(be,de);var ye=function(){be.call(this),this.pushButton=!0};W(ye,be);var xe=function(){be.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=void 0!==t?t:[]}})};W(xe,be);var we=function(){var e,t;de.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var r,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};this.scope&&(e=this.scope.internal.getEncryptor(this.objId));var t,r=[];for(t in r.push("<<"),n)r.push("/"+t+" ("+U(e(n[t]))+")");return r.push(">>"),r.join("\n")},set:function(e){"object"===a()(e)&&(n=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(e){"string"==typeof e&&(n.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(e){r=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(e){r="/"+e}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ke.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};W(we,de),xe.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var r=this.Kids[t];r.appearanceStreamContent=e.createAppearanceStream(r.optionName),r.caption=e.getCA()}},xe.prototype.createOption=function(e){var t=new we;return t.Parent=this,t.optionName=e,this.Kids.push(t),Ae.call(this.scope,t),t};var _e=function(){be.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ke.CheckBox.createAppearanceStream()};W(_e,be);var Se=function(){de.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,13))},set:function(e){!0===Boolean(e)?this.Ff=Q(this.Ff,13):this.Ff=ee(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,21))},set:function(e){!0===Boolean(e)?this.Ff=Q(this.Ff,21):this.Ff=ee(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=Q(this.Ff,23):this.Ff=ee(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,24))},set:function(e){!0===Boolean(e)?this.Ff=Q(this.Ff,24):this.Ff=ee(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,25))},set:function(e){!0===Boolean(e)?this.Ff=Q(this.Ff,25):this.Ff=ee(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=Q(this.Ff,26):this.Ff=ee(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};W(Se,de);var Ce=function(){Se.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,14))},set:function(e){!0===Boolean(e)?this.Ff=Q(this.Ff,14):this.Ff=ee(this.Ff,14)}}),this.password=!0};W(Ce,Se);var ke={CheckBox:{createAppearanceStream:function(){return{N:{On:ke.CheckBox.YesNormal},D:{On:ke.CheckBox.YesPushDown,Off:ke.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=X(e);t.scope=e.scope;var r=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,a=e.scope.__private__.encodeColorString(e.color),i=ne(e,e.caption);return r.push("0.749023 g"),r.push("0 0 "+q(ke.internal.getWidth(e))+" "+q(ke.internal.getHeight(e))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+q(i.fontSize)+" Tf "+a),r.push("BT"),r.push(i.text),r.push("ET"),r.push("Q"),r.push("EMC"),t.stream=r.join("\n"),t},YesNormal:function(e){var t=X(e);t.scope=e.scope;var r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),a=[],i=ke.internal.getHeight(e),o=ke.internal.getWidth(e),s=ne(e,e.caption);return a.push("1 g"),a.push("0 0 "+q(o)+" "+q(i)+" re"),a.push("f"),a.push("q"),a.push("0 0 1 rg"),a.push("0 0 "+q(o-1)+" "+q(i-1)+" re"),a.push("W"),a.push("n"),a.push("0 g"),a.push("BT"),a.push("/"+r+" "+q(s.fontSize)+" Tf "+n),a.push(s.text),a.push("ET"),a.push("Q"),t.stream=a.join("\n"),t},OffPushDown:function(e){var t=X(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+q(ke.internal.getWidth(e))+" "+q(ke.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:ke.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=ke.RadioButton.Circle.YesNormal,t.D[e]=ke.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=X(e);t.scope=e.scope;var r=[],n=ke.internal.getWidth(e)<=ke.internal.getHeight(e)?ke.internal.getWidth(e)/4:ke.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var a=ke.internal.Bezier_C,i=Number((n*a).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+G(ke.internal.getWidth(e)/2)+" "+G(ke.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),r.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),r.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),r.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join("\n"),t},YesPushDown:function(e){var t=X(e);t.scope=e.scope;var r=[],n=ke.internal.getWidth(e)<=ke.internal.getHeight(e)?ke.internal.getWidth(e)/4:ke.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var a=Number((2*n).toFixed(5)),i=Number((a*ke.internal.Bezier_C).toFixed(5)),o=Number((n*ke.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+G(ke.internal.getWidth(e)/2)+" "+G(ke.internal.getHeight(e)/2)+" cm"),r.push(a+" 0 m"),r.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),r.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),r.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),r.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+G(ke.internal.getWidth(e)/2)+" "+G(ke.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),r.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),r.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),r.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(e){var t=X(e);t.scope=e.scope;var r=[],n=ke.internal.getWidth(e)<=ke.internal.getHeight(e)?ke.internal.getWidth(e)/4:ke.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var a=Number((2*n).toFixed(5)),i=Number((a*ke.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+G(ke.internal.getWidth(e)/2)+" "+G(ke.internal.getHeight(e)/2)+" cm"),r.push(a+" 0 m"),r.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),r.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),r.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),r.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join("\n"),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:ke.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=ke.RadioButton.Cross.YesNormal,t.D[e]=ke.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=X(e);t.scope=e.scope;var r=[],n=ke.internal.calculateCross(e);return r.push("q"),r.push("1 1 "+q(ke.internal.getWidth(e)-2)+" "+q(ke.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(q(n.x1.x)+" "+q(n.x1.y)+" m"),r.push(q(n.x2.x)+" "+q(n.x2.y)+" l"),r.push(q(n.x4.x)+" "+q(n.x4.y)+" m"),r.push(q(n.x3.x)+" "+q(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join("\n"),t},YesPushDown:function(e){var t=X(e);t.scope=e.scope;var r=ke.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+q(ke.internal.getWidth(e))+" "+q(ke.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+q(ke.internal.getWidth(e)-2)+" "+q(ke.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(q(r.x1.x)+" "+q(r.x1.y)+" m"),n.push(q(r.x2.x)+" "+q(r.x2.y)+" l"),n.push(q(r.x4.x)+" "+q(r.x4.y)+" m"),n.push(q(r.x3.x)+" "+q(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(e){var t=X(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+q(ke.internal.getWidth(e))+" "+q(ke.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join("\n"),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+r}};ke.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=ke.internal.getWidth(e),r=ke.internal.getHeight(e),n=Math.min(t,r);return{x1:{x:(t-n)/2,y:(r-n)/2+n},x2:{x:(t-n)/2+n,y:(r-n)/2},x3:{x:(t-n)/2,y:(r-n)/2},x4:{x:(t-n)/2+n,y:(r-n)/2+n}}}},ke.internal.getWidth=function(e){var t=0;return"object"===a()(e)&&(t=$(e.Rect[2])),t},ke.internal.getHeight=function(e){var t=0;return"object"===a()(e)&&(t=$(e.Rect[3])),t};var Ae=V.addField=function(e){if(se(this,e),!(e instanceof de))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};V.AcroFormChoiceField=pe,V.AcroFormListBox=ge,V.AcroFormComboBox=me,V.AcroFormEditBox=ve,V.AcroFormButton=be,V.AcroFormPushButton=ye,V.AcroFormRadioButton=xe,V.AcroFormCheckBox=_e,V.AcroFormTextField=Se,V.AcroFormPasswordField=Ce,V.AcroFormAppearance=ke,V.AcroForm={ChoiceField:pe,ListBox:ge,ComboBox:me,EditBox:ve,Button:be,PushButton:ye,RadioButton:xe,CheckBox:_e,TextField:Se,PasswordField:Ce,Appearance:ke},B.AcroForm={ChoiceField:pe,ListBox:ge,ComboBox:me,EditBox:ve,Button:be,PushButton:ye,RadioButton:xe,CheckBox:_e,TextField:Se,PasswordField:Ce,Appearance:ke};var Ne,Ee,Le=B.AcroForm;function Me(e){return e.reduce((function(e,t,r){return e[t]=r,e}),{})}!function(e){e.__addimage__={};var t="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},n=e.__addimage__.getImageFileTypeByImageData=function(e,n){var a,i,o,s,l,c=t;if("RGBA"===(n=n||t)||void 0!==e.data&&e.data instanceof Uint8ClampedArray&&"height"in e&&"width"in e)return"RGBA";if(C(e))for(l in r)for(o=r[l],a=0;a<o.length;a+=1){for(s=!0,i=0;i<o[a].length;i+=1)if(void 0!==o[a][i]&&o[a][i]!==e[i]){s=!1;break}if(!0===s){c=l;break}}else for(l in r)for(o=r[l],a=0;a<o.length;a+=1){for(s=!0,i=0;i<o[a].length;i+=1)if(void 0!==o[a][i]&&o[a][i]!==e.charCodeAt(i)){s=!1;break}if(!0===s){c=l;break}}return c===t&&n!==t&&(c=n),c},i=function L(e){for(var t=this.internal.write,r=this.internal.putStream,n=(0,this.internal.getFilters)();-1!==n.indexOf("FlateEncode");)n.splice(n.indexOf("FlateEncode"),1);e.objectId=this.internal.newObject();var a=[];if(a.push({key:"Type",value:"/XObject"}),a.push({key:"Subtype",value:"/Image"}),a.push({key:"Width",value:e.width}),a.push({key:"Height",value:e.height}),e.colorSpace===b.INDEXED?a.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(e.palette.length/3-1)+" "+("sMask"in e&&void 0!==e.sMask?e.objectId+2:e.objectId+1)+" 0 R]"}):(a.push({key:"ColorSpace",value:"/"+e.colorSpace}),e.colorSpace===b.DEVICE_CMYK&&a.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),a.push({key:"BitsPerComponent",value:e.bitsPerComponent}),"decodeParameters"in e&&void 0!==e.decodeParameters&&a.push({key:"DecodeParms",value:"<<"+e.decodeParameters+">>"}),"transparency"in e&&Array.isArray(e.transparency)){for(var i="",o=0,s=e.transparency.length;o<s;o++)i+=e.transparency[o]+" "+e.transparency[o]+" ";a.push({key:"Mask",value:"["+i+"]"})}void 0!==e.sMask&&a.push({key:"SMask",value:e.objectId+1+" 0 R"});var l=void 0!==e.filter?["/"+e.filter]:void 0;if(r({data:e.data,additionalKeyValues:a,alreadyAppliedFilters:l,objectId:e.objectId}),t("endobj"),"sMask"in e&&void 0!==e.sMask){var c="/Predictor "+e.predictor+" /Colors 1 /BitsPerComponent "+e.bitsPerComponent+" /Columns "+e.width,u={width:e.width,height:e.height,colorSpace:"DeviceGray",bitsPerComponent:e.bitsPerComponent,decodeParameters:c,data:e.sMask};"filter"in e&&(u.filter=e.filter),L.call(this,u)}if(e.colorSpace===b.INDEXED){var h=this.internal.newObject();r({data:A(new Uint8Array(e.palette)),objectId:h}),t("endobj")}},o=function(){var e=this.internal.collections.addImage_images;for(var t in e)i.call(this,e[t])},s=function(){var e,t=this.internal.collections.addImage_images,r=this.internal.write;for(var n in t)r("/I"+(e=t[n]).index,e.objectId,"0","R")},l=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",s))},c=function(){var e=this.internal.collections.addImage_images;return l.call(this),e},u=function(){return Object.keys(this.internal.collections.addImage_images).length},h=function(t){return"function"==typeof e["process"+t.toUpperCase()]},d=function(e){return"object"===a()(e)&&1===e.nodeType},p=function(t,r){if("IMG"===t.nodeName&&t.hasAttribute("src")){var n=""+t.getAttribute("src");if(0===n.indexOf("data:image/"))return f(unescape(n).split("base64,").pop());var a=e.loadFile(n,!0);if(void 0!==a)return a}if("CANVAS"===t.nodeName){if(0===t.width||0===t.height)throw new Error("Given canvas must have data. Canvas width: "+t.width+", height: "+t.height);var i;switch(r){case"PNG":i="image/png";break;case"WEBP":i="image/webp";break;case"JPEG":case"JPG":default:i="image/jpeg"}return f(t.toDataURL(i,1).split("base64,").pop())}},g=function(e){var t=this.internal.collections.addImage_images;if(t)for(var r in t)if(e===t[r].alias)return t[r]},m=function(e,t,r){return e||t||(e=-96,t=-96),e<0&&(e=-1*r.width*72/e/this.internal.scaleFactor),t<0&&(t=-1*r.height*72/t/this.internal.scaleFactor),0===e&&(e=t*r.width/r.height),0===t&&(t=e*r.height/r.width),[e,t]},v=function(e,t,r,n,a,i){var o=m.call(this,r,n,a),s=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,u=c.call(this);if(r=o[0],n=o[1],u[a.index]=a,i){i*=Math.PI/180;var h=Math.cos(i),f=Math.sin(i),d=function(e){return e.toFixed(4)},p=[d(h),d(f),d(-1*f),d(h),0,0,"cm"]}this.internal.write("q"),i?(this.internal.write([1,"0","0",1,s(e),l(t+n),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([s(r),"0","0",s(n),"0","0","cm"].join(" "))):this.internal.write([s(r),"0","0",s(n),s(e),l(t+n),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+a.index+" Do"),this.internal.write("Q")},b=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var y=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},x=e.__addimage__.sHashCode=function(e){var t,r,n=0;if("string"==typeof e)for(r=e.length,t=0;t<r;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;else if(C(e))for(r=e.byteLength/2,t=0;t<r;t++)n=(n<<5)-n+e[t],n|=0;return n},w=e.__addimage__.validateStringAsBase64=function(e){(e=e||"").toString().trim();var t=!0;return 0===e.length&&(t=!1),e.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(e.substr(0,e.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(e.substr(-2))&&(t=!1),t},_=e.__addimage__.extractImageFromDataUrl=function(e){var t=(e=e||"").split("base64,"),r=null;if(2===t.length){var n=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(t[0]);Array.isArray(n)&&(r={mimeType:n[1],charset:n[2],data:t[1]})}return r},S=e.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};e.__addimage__.isArrayBuffer=function(e){return S()&&e instanceof ArrayBuffer};var C=e.__addimage__.isArrayBufferView=function(e){return S()&&"undefined"!=typeof Uint32Array&&(e instanceof Int8Array||e instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)},k=e.__addimage__.binaryStringToUint8Array=function(e){for(var t=e.length,r=new Uint8Array(t),n=0;n<t;n++)r[n]=e.charCodeAt(n);return r},A=e.__addimage__.arrayBufferToBinaryString=function(e){for(var t="",r=C(e)?e:new Uint8Array(e),n=0;n<r.length;n+=8192)t+=String.fromCharCode.apply(null,r.subarray(n,n+8192));return t};e.addImage=function(){var e,r,n,i,o,s,c,u,h;if("number"==typeof arguments[1]?(r=t,n=arguments[1],i=arguments[2],o=arguments[3],s=arguments[4],c=arguments[5],u=arguments[6],h=arguments[7]):(r=arguments[1],n=arguments[2],i=arguments[3],o=arguments[4],s=arguments[5],c=arguments[6],u=arguments[7],h=arguments[8]),"object"===a()(e=arguments[0])&&!d(e)&&"imageData"in e){var f=e;e=f.imageData,r=f.format||r||t,n=f.x||n||0,i=f.y||i||0,o=f.w||f.width||o,s=f.h||f.height||s,c=f.alias||c,u=f.compression||u,h=f.rotation||f.angle||h}var p=this.internal.getFilters();if(void 0===u&&-1!==p.indexOf("FlateEncode")&&(u="SLOW"),isNaN(n)||isNaN(i))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var g=N.call(this,e,r,c,u);return v.call(this,n,i,o,s,g,h),this};var N=function(r,a,i,o){var s,l,c;if("string"==typeof r&&n(r)===t){r=unescape(r);var f=E(r,!1);(""!==f||void 0!==(f=e.loadFile(r,!0)))&&(r=f)}if(d(r)&&(r=p(r,a)),a=n(r,a),!h(a))throw new Error("addImage does not support files of type '"+a+"', please ensure that a plugin for '"+a+"' support is added.");if((null==(c=i)||0===c.length)&&(i=function(e){return"string"==typeof e||C(e)?x(e):C(e.data)?x(e.data):null}(r)),(s=g.call(this,i))||(S()&&(r instanceof Uint8Array||"RGBA"===a||(l=r,r=k(r))),s=this["process"+a.toUpperCase()](r,u.call(this),i,function(t){return t&&"string"==typeof t&&(t=t.toUpperCase()),t in e.image_compression?t:y.NONE}(o),l)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},E=e.__addimage__.convertBase64ToBinaryString=function(e,t){var r;t="boolean"!=typeof t||t;var n,a="";if("string"==typeof e){n=null!==(r=_(e))?r.data:e;try{a=f(n)}catch(e){if(t)throw w(n)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+e.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return a};e.getImageProperties=function(r){var a,i,o="";if(d(r)&&(r=p(r)),"string"==typeof r&&n(r)===t&&(""===(o=E(r,!1))&&(o=e.loadFile(r)||""),r=o),i=n(r),!h(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if(!S()||r instanceof Uint8Array||(r=k(r)),!(a=this["process"+i.toUpperCase()](r)))throw new Error("An unknown error occurred whilst processing the image");return a.fileType=i,a}}(B.API),
/**
 * @license
 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
Ne=B.API,Ee=function(e){if(void 0!==e&&""!=e)return!0},B.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),Ne.events.push(["putPage",function(e){for(var t,r,n,a=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(e.objId),s=e.pageContext.annotations,l=!1,c=0;c<s.length&&!l;c++)switch((t=s[c]).type){case"link":(Ee(t.options.url)||Ee(t.options.pageNumber))&&(l=!0);break;case"reference":case"text":case"freetext":l=!0}if(0!=l){this.internal.write("/Annots [");for(var u=0;u<s.length;u++){t=s[u];var h=this.internal.pdfEscape,f=this.internal.getEncryptor(e.objId);switch(t.type){case"reference":this.internal.write(" "+t.object.objId+" 0 R ");break;case"text":var d=this.internal.newAdditionalObject(),p=this.internal.newAdditionalObject(),g=this.internal.getEncryptor(d.objId),m=t.title||"Note";n="<</Type /Annot /Subtype /Text "+(r="/Rect ["+a(t.bounds.x)+" "+i(t.bounds.y+t.bounds.h)+" "+a(t.bounds.x+t.bounds.w)+" "+i(t.bounds.y)+"] ")+"/Contents ("+h(g(t.contents))+")",n+=" /Popup "+p.objId+" 0 R",n+=" /P "+o.objId+" 0 R",n+=" /T ("+h(g(m))+") >>",d.content=n;var v=d.objId+" 0 R";n="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+a(t.bounds.x+30)+" "+i(t.bounds.y+t.bounds.h)+" "+a(t.bounds.x+t.bounds.w+30)+" "+i(t.bounds.y)+"] ")+" /Parent "+v,t.open&&(n+=" /Open true"),n+=" >>",p.content=n,this.internal.write(d.objId,"0 R",p.objId,"0 R");break;case"freetext":r="/Rect ["+a(t.bounds.x)+" "+i(t.bounds.y)+" "+a(t.bounds.x+t.bounds.w)+" "+i(t.bounds.y+t.bounds.h)+"] ";var b=t.color||"#000000";n="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+h(f(t.contents))+")",n+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+b+")",n+=" /Border [0 0 0]",n+=" >>",this.internal.write(n);break;case"link":if(t.options.name){var y=this.annotations._nameMap[t.options.name];t.options.pageNumber=y.page,t.options.top=y.y}else t.options.top||(t.options.top=0);if(r="/Rect ["+t.finalBounds.x+" "+t.finalBounds.y+" "+t.finalBounds.w+" "+t.finalBounds.h+"] ",n="",t.options.url)n="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+h(f(t.options.url))+") >>";else if(t.options.pageNumber)switch(n="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(t.options.pageNumber).objId+" 0 R",t.options.magFactor=t.options.magFactor||"XYZ",t.options.magFactor){case"Fit":n+=" /Fit]";break;case"FitH":n+=" /FitH "+t.options.top+"]";break;case"FitV":t.options.left=t.options.left||0,n+=" /FitV "+t.options.left+"]";break;case"XYZ":default:var x=i(t.options.top);t.options.left=t.options.left||0,void 0===t.options.zoom&&(t.options.zoom=0),n+=" /XYZ "+t.options.left+" "+x+" "+t.options.zoom+"]"}""!=n&&(n+=" >>",this.internal.write(n))}}this.internal.write("]")}}]),Ne.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":t.pageContext.annotations.push(e)}},Ne.link=function(e,t,r,n,a){var i=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;i.pageContext.annotations.push({finalBounds:{x:o(e),y:s(t),w:o(e+r),h:s(t+n)},options:a,type:"link"})},Ne.textWithLink=function(e,t,r,n){var a,i,o=this.getTextWidth(e),s=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==n.maxWidth){i=n.maxWidth;var l=this.splitTextToSize(e,i).length;a=Math.ceil(s*l)}else i=o,a=s;return this.text(e,t,r,n),r+=.2*s,"center"===n.align&&(t-=o/2),"right"===n.align&&(t-=o),this.link(t,r-s,i,a,n),o},Ne.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor},
/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},a=[1570,1571,1573,1575];e.__arabicParser__={};var i=e.__arabicParser__.isInArabicSubstitutionA=function(e){return void 0!==t[e.charCodeAt(0)]},o=e.__arabicParser__.isArabicLetter=function(e){return"string"==typeof e&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},s=e.__arabicParser__.isArabicEndLetter=function(e){return o(e)&&i(e)&&t[e.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(e){return o(e)&&a.indexOf(e.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return o(e)&&i(e)&&t[e.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(e){return o(e)&&i(e)&&t[e.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(e){return o(e)&&i(e)&&t[e.charCodeAt(0)].length>=3};var u=e.__arabicParser__.arabicLetterHasMedialForm=function(e){return o(e)&&i(e)&&4==t[e.charCodeAt(0)].length},h=e.__arabicParser__.resolveLigatures=function(e){var t=0,n=r,a="",i=0;for(t=0;t<e.length;t+=1)void 0!==n[e.charCodeAt(t)]?(i++,"number"==typeof(n=n[e.charCodeAt(t)])&&(a+=String.fromCharCode(n),n=r,i=0),t===e.length-1&&(n=r,a+=e.charAt(t-(i-1)),t-=i-1,i=0)):(n=r,a+=e.charAt(t-i),t-=i,i=0);return a};e.__arabicParser__.isArabicDiacritic=function(e){return void 0!==e&&void 0!==n[e.charCodeAt(0)]};var f=e.__arabicParser__.getCorrectForm=function(e,t,r){return o(e)?!1===i(e)?-1:!c(e)||!o(t)&&!o(r)||!o(r)&&s(t)||s(e)&&!o(t)||s(e)&&l(t)||s(e)&&s(t)?0:u(e)&&o(t)&&!s(t)&&o(r)&&c(r)?3:s(e)||!o(r)?1:2:-1},d=function(e){var r=0,n=0,a=0,i="",s="",l="",c=(e=e||"").split("\\s+"),u=[];for(r=0;r<c.length;r+=1){for(u.push(""),n=0;n<c[r].length;n+=1)i=c[r][n],s=c[r][n-1],l=c[r][n+1],o(i)?(a=f(i,s,l),u[r]+=-1!==a?String.fromCharCode(t[i.charCodeAt(0)][a]):i):u[r]+=i;u[r]=h(u[r])}return u.join(" ")},p=e.__arabicParser__.processArabic=e.processArabic=function(){var e,t="string"==typeof arguments[0]?arguments[0]:arguments[0].text,r=[];if(Array.isArray(t)){var n=0;for(r=[],n=0;n<t.length;n+=1)Array.isArray(t[n])?r.push([d(t[n][0]),t[n][1],t[n][2]]):r.push([d(t[n])]);e=r}else e=d(t);return"string"==typeof arguments[0]?e:(arguments[0].text=e,arguments[0])};e.events.push(["preProcessText",p])}(B.API),B.API.autoPrint=function(e){var t;switch((e=e||{}).variant=e.variant||"non-conform",e.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}))}return this},
/**
 * @license
 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(e){r=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var n=[];Object.defineProperty(this,"childNodes",{get:function(){return n},set:function(e){n=e}});var a={};Object.defineProperty(this,"style",{get:function(){return a},set:function(e){a=e}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,t){var r;if("2d"!==(e=e||"2d"))return null;for(r in t)this.pdf.context2d.hasOwnProperty(r)&&(this.pdf.context2d[r]=t[r]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(B.API),function(e){var t={left:0,top:0,bottom:0,right:0},r=!1,n=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var e=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var r=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return r},set:function(e){r=e}});var n=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return n},set:function(e){n=e}});var a=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return a},set:function(e){a=e}});var i=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return i},set:function(e){i=e}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(e){o=e}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(e){return n.call(this),this.internal.__cell__.headerFunction="function"==typeof e?e:void 0,this},e.getTextDimensions=function(e,t){n.call(this);var r=(t=t||{}).fontSize||this.getFontSize(),a=t.font||this.getFont(),i=t.scaleFactor||this.internal.scaleFactor,o=0,s=0,l=0,c=this;if(!Array.isArray(e)&&"string"!=typeof e){if("number"!=typeof e)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");e=String(e)}var u=t.maxWidth;u>0?"string"==typeof e?e=this.splitTextToSize(e,u):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce((function(e,t){return e.concat(c.splitTextToSize(t,u))}),[])):e=Array.isArray(e)?e:[e];for(var h=0;h<e.length;h++)o<(l=this.getStringUnitWidth(e[h],{font:a})*r)&&(o=l);return 0!==o&&(s=e.length),{w:o/=i,h:Math.max((s*r*this.getLineHeightFactor()-r*(this.getLineHeightFactor()-1))/i,0)}},e.cellAddPage=function(){n.call(this),this.addPage();var e=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new o(e.left,e.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=e.cell=function(){var e;e=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),n.call(this);var a=this.internal.__cell__.lastCell,i=this.internal.__cell__.padding,s=this.internal.__cell__.margins||t,l=this.internal.__cell__.tableHeaderRow,c=this.internal.__cell__.printHeaders;return void 0!==a.lineNumber&&(a.lineNumber===e.lineNumber?(e.x=(a.x||0)+(a.width||0),e.y=a.y||0):a.y+a.height+e.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),e.y=s.top,c&&l&&(this.printHeaderRow(e.lineNumber,!0),e.y+=l[0].height)):e.y=a.y+a.height||e.y),void 0!==e.text[0]&&(this.rect(e.x,e.y,e.width,e.height,!0===r?"FD":void 0),"right"===e.align?this.text(e.text,e.x+e.width-i,e.y+i,{align:"right",baseline:"top"}):"center"===e.align?this.text(e.text,e.x+e.width/2,e.y+i,{align:"center",baseline:"top",maxWidth:e.width-i-i}):this.text(e.text,e.x+i,e.y+i,{align:"left",baseline:"top",maxWidth:e.width-i-i})),this.internal.__cell__.lastCell=e,this};e.table=function(e,r,c,u,h){if(n.call(this),!c)throw new Error("No data for PDF table.");var f,d,p,g,m=[],v=[],b=[],y={},x={},w=[],_=[],S=(h=h||{}).autoSize||!1,C=!1!==h.printHeaders,k=h.css&&void 0!==h.css["font-size"]?16*h.css["font-size"]:h.fontSize||12,A=h.margins||Object.assign({width:this.getPageWidth()},t),N="number"==typeof h.padding?h.padding:3,E=h.headerBackgroundColor||"#c8c8c8",L=h.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=C,this.internal.__cell__.margins=A,this.internal.__cell__.table_font_size=k,this.internal.__cell__.padding=N,this.internal.__cell__.headerBackgroundColor=E,this.internal.__cell__.headerTextColor=L,this.setFontSize(k),null==u)v=m=Object.keys(c[0]),b=m.map((function(){return"left"}));else if(Array.isArray(u)&&"object"===a()(u[0]))for(m=u.map((function(e){return e.name})),v=u.map((function(e){return e.prompt||e.name||""})),b=u.map((function(e){return e.align||"left"})),f=0;f<u.length;f+=1)x[u[f].name]=u[f].width*(19.049976/25.4);else Array.isArray(u)&&"string"==typeof u[0]&&(v=m=u,b=m.map((function(){return"left"})));if(S||Array.isArray(u)&&"string"==typeof u[0])for(f=0;f<m.length;f+=1){for(y[g=m[f]]=c.map((function(e){return e[g]})),this.setFont(void 0,"bold"),w.push(this.getTextDimensions(v[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),d=y[g],this.setFont(void 0,"normal"),p=0;p<d.length;p+=1)w.push(this.getTextDimensions(d[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);x[g]=Math.max.apply(null,w)+N+N,w=[]}if(C){var M={};for(f=0;f<m.length;f+=1)M[m[f]]={},M[m[f]].text=v[f],M[m[f]].align=b[f];var F=l.call(this,M,x);_=m.map((function(t){return new o(e,r,x[t],F,M[t].text,void 0,M[t].align)})),this.setTableHeaderRow(_),this.printHeaderRow(1,!1)}var T=u.reduce((function(e,t){return e[t.name]=t.align,e}),{});for(f=0;f<c.length;f+=1){"rowStart"in h&&h.rowStart instanceof Function&&h.rowStart({row:f,data:c[f]},this);var D=l.call(this,c[f],x);for(p=0;p<m.length;p+=1){var I=c[f][m[p]];"cellStart"in h&&h.cellStart instanceof Function&&h.cellStart({row:f,col:p,data:I},this),s.call(this,new o(e,r,x[m[p]],D,I,f+2,T[m[p]]))}}return this.internal.__cell__.table_x=e,this.internal.__cell__.table_y=r,this};var l=function(e,t){var r=this.internal.__cell__.padding,n=this.internal.__cell__.table_font_size,a=this.internal.scaleFactor;return Object.keys(e).map((function(n){var a=e[n];return this.splitTextToSize(a.hasOwnProperty("text")?a.text:a,t[n]-r-r)}),this).map((function(e){return this.getLineHeightFactor()*e.length*n/a+r+r}),this).reduce((function(e,t){return Math.max(e,t)}),0)};e.setTableHeaderRow=function(e){n.call(this),this.internal.__cell__.tableHeaderRow=e},e.printHeaderRow=function(e,t){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var a;if(r=!0,"function"==typeof this.internal.__cell__.headerFunction){var i=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(i[0],i[1],i[2],i[3],void 0,-1)}this.setFont(void 0,"bold");for(var l=[],c=0;c<this.internal.__cell__.tableHeaderRow.length;c+=1){a=this.internal.__cell__.tableHeaderRow[c].clone(),t&&(a.y=this.internal.__cell__.margins.top||0,l.push(a)),a.lineNumber=e;var u=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,a),this.setTextColor(u)}l.length>0&&this.setTableHeaderRow(l),this.setFont(void 0,"normal"),r=!1}}(B.API);var Fe={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Te=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],De=Me(Te),Ie=[100,200,300,400,500,600,700,800,900],Oe=Me(Ie);function Pe(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),r=function(e){return Fe[e=e||"normal"]?e:"normal"}(e.style),n=function(e){if(!e)return 400;if("number"==typeof e)return e>=100&&e<=900&&e%100==0?e:400;if(/^\d00$/.test(e))return parseInt(e);switch(e){case"bold":return 700;case"normal":default:return 400}}(e.weight),a=function(e){return"number"==typeof De[e=e||"normal"]?e:"normal"}(e.stretch);return{family:t,style:r,weight:n,stretch:a,src:e.src||[],ref:e.ref||{name:t,style:[a,r,n].join(" ")}}}function Re(e,t,r,n){var a;for(a=r;a>=0&&a<t.length;a+=n)if(e[t[a]])return e[t[a]];for(a=r;a>=0&&a<t.length;a-=n)if(e[t[a]])return e[t[a]]}var je={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Be={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Ve(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function ze(e){return e.trimLeft()}function Ue(e,t){for(var r=0;r<e.length;){if(e.charAt(r)===t)return[e.substring(0,r),e.substring(r+1)];r+=1}return null}function He(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===t?null:[t[0],e.substring(t[0].length)]}var qe,Ge,We,$e=["times"];!function(e){var t,r,n,i,o,s,c,u,h,f=function(e){return e=e||{},this.isStrokeTransparent=e.isStrokeTransparent||!1,this.strokeOpacity=e.strokeOpacity||1,this.strokeStyle=e.strokeStyle||"#000000",this.fillStyle=e.fillStyle||"#000000",this.isFillTransparent=e.isFillTransparent||!1,this.fillOpacity=e.fillOpacity||1,this.font=e.font||"10px sans-serif",this.textBaseline=e.textBaseline||"alphabetic",this.textAlign=e.textAlign||"left",this.lineWidth=e.lineWidth||1,this.lineJoin=e.lineJoin||"miter",this.lineCap=e.lineCap||"butt",this.path=e.path||[],this.transform=void 0!==e.transform?e.transform.clone():new u,this.globalCompositeOperation=e.globalCompositeOperation||"normal",this.globalAlpha=e.globalAlpha||1,this.clip_path=e.clip_path||[],this.currentPoint=e.currentPoint||new s,this.miterLimit=e.miterLimit||10,this.lastPoint=e.lastPoint||new s,this.lineDashOffset=e.lineDashOffset||0,this.lineDash=e.lineDash||[],this.margin=e.margin||[0,0,0,0],this.prevPageLastElemOffset=e.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof e.ignoreClearRect||e.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new d(this),t=this.internal.f2,r=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,s=this.internal.Point,c=this.internal.Rectangle,u=this.internal.Matrix,h=new f}]);var d=function(e){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var t=e;Object.defineProperty(this,"pdf",{get:function(){return t}});var r=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return r},set:function(e){r=Boolean(e)}});var n=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return n},set:function(e){n=Boolean(e)}});var a=0;Object.defineProperty(this,"posX",{get:function(){return a},set:function(e){isNaN(e)||(a=e)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(e){isNaN(e)||(i=e)}}),Object.defineProperty(this,"margin",{get:function(){return h.margin},set:function(e){var t;"number"==typeof e?t=[e,e,e,e]:((t=new Array(4))[0]=e[0],t[1]=e.length>=2?e[1]:t[0],t[2]=e.length>=3?e[2]:t[0],t[3]=e.length>=4?e[3]:t[1]),h.margin=t}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(e){o=e}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(e){s=e}});var l=[];Object.defineProperty(this,"pageBreaks",{get:function(){return l},set:function(e){l=e}}),Object.defineProperty(this,"ctx",{get:function(){return h},set:function(e){e instanceof f&&(h=e)}}),Object.defineProperty(this,"path",{get:function(){return h.path},set:function(e){h.path=e}});var c=[];Object.defineProperty(this,"ctxStack",{get:function(){return c},set:function(e){c=e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(e){var t;t=p(e),this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(e){var t=p(e);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(e){-1!==["butt","round","square"].indexOf(e)&&(this.ctx.lineCap=e,this.pdf.setLineCap(e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(e){isNaN(e)||(this.ctx.lineWidth=e,this.pdf.setLineWidth(e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(e){-1!==["bevel","round","miter"].indexOf(e)&&(this.ctx.lineJoin=e,this.pdf.setLineJoin(e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(e){isNaN(e)||(this.ctx.miterLimit=e,this.pdf.setMiterLimit(e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(e){this.ctx.textBaseline=e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(e){-1!==["right","end","center","left","start"].indexOf(e)&&(this.ctx.textAlign=e)}});var u=null;function d(e,t){if(null===u){var r=function(e){var t=[];return Object.keys(e).forEach((function(r){e[r].forEach((function(e){var n=null;switch(e){case"bold":n={family:r,weight:"bold"};break;case"italic":n={family:r,style:"italic"};break;case"bolditalic":n={family:r,weight:"bold",style:"italic"};break;case"":case"normal":n={family:r}}null!==n&&(n.ref={name:r,style:e},t.push(n))}))})),t}(e.getFontList());u=function(e){for(var t={},r=0;r<e.length;++r){var n=Pe(e[r]),a=n.family,i=n.stretch,o=n.style,s=n.weight;t[a]=t[a]||{},t[a][i]=t[a][i]||{},t[a][i][o]=t[a][i][o]||{},t[a][i][o][s]=n}return t}(r.concat(t))}return u}var g=null;Object.defineProperty(this,"fontFaces",{get:function(){return g},set:function(e){u=null,g=e}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(e){var t;if(this.ctx.font=e,null!==(t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(e))){var r=t[1],n=(t[2],t[3]),a=t[4],i=(t[5],t[6]),o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(a)[2];a="px"===o?Math.floor(parseFloat(a)*this.pdf.internal.scaleFactor):"em"===o?Math.floor(parseFloat(a)*this.pdf.getFontSize()):Math.floor(parseFloat(a)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(a);var s=function(e){var t,r,n=[],a=e.trim();if(""===a)return $e;if(a in Be)return[Be[a]];for(;""!==a;){switch(r=null,t=(a=ze(a)).charAt(0)){case'"':case"'":r=Ue(a.substring(1),t);break;default:r=He(a)}if(null===r)return $e;if(n.push(r[0]),""!==(a=ze(r[1]))&&","!==a.charAt(0))return $e;a=a.replace(/^,/,"")}return n}(i);if(this.fontFaces){var l=function(e,t,r){for(var n=(r=r||{}).defaultFontFamily||"times",a=Object.assign({},je,r.genericFontFamilies||{}),i=null,o=null,s=0;s<t.length;++s)if(a[(i=Pe(t[s])).family]&&(i.family=a[i.family]),e.hasOwnProperty(i.family)){o=e[i.family];break}if(!(o=o||e[n]))throw new Error("Could not find a font-family for the rule '"+Ve(i)+"' and default family '"+n+"'.");if(o=function(e,t){if(t[e])return t[e];var r=De[e],n=r<=De.normal?-1:1,a=Re(t,Te,r,n);if(!a)throw new Error("Could not find a matching font-stretch value for "+e);return a}(i.stretch,o),o=function(e,t){if(t[e])return t[e];for(var r=Fe[e],n=0;n<r.length;++n)if(t[r[n]])return t[r[n]];throw new Error("Could not find a matching font-style for "+e)}(i.style,o),!(o=function(e,t){if(t[e])return t[e];if(400===e&&t[500])return t[500];if(500===e&&t[400])return t[400];var r=Oe[e],n=Re(t,Ie,r,e<400?-1:1);if(!n)throw new Error("Could not find a matching font-weight for value "+e);return n}(i.weight,o)))throw new Error("Failed to resolve a font for the rule '"+Ve(i)+"'.");return o}(d(this.pdf,this.fontFaces),s.map((function(e){return{family:e,stretch:"normal",weight:n,style:r}})));this.pdf.setFont(l.ref.name,l.ref.style)}else{var c="";("bold"===n||parseInt(n,10)>=700||"bold"===r)&&(c="bold"),"italic"===r&&(c+="italic"),0===c.length&&(c="normal");for(var u="",h={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},f=0;f<s.length;f++){if(void 0!==this.pdf.internal.getFont(s[f],c,{noFallback:!0,disableWarning:!0})){u=s[f];break}if("bolditalic"===c&&void 0!==this.pdf.internal.getFont(s[f],"bold",{noFallback:!0,disableWarning:!0}))u=s[f],c="bold";else if(void 0!==this.pdf.internal.getFont(s[f],"normal",{noFallback:!0,disableWarning:!0})){u=s[f],c="normal";break}}if(""===u)for(var p=0;p<s.length;p++)if(h[s[p]]){u=h[s[p]];break}u=""===u?"Times":u,this.pdf.setFont(u,c)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(e){this.ctx.globalCompositeOperation=e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(e){this.ctx.globalAlpha=e}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(e){this.ctx.lineDashOffset=e,V.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(e){this.ctx.lineDash=e,V.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(e){this.ctx.ignoreClearRect=Boolean(e)}})};d.prototype.setLineDash=function(e){this.lineDash=e},d.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},d.prototype.fill=function(){S.call(this,"fill",!1)},d.prototype.stroke=function(){S.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(e,t){if(isNaN(e)||isNaN(t))throw l.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var r=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"mt",x:r.x,y:r.y}),this.ctx.lastPoint=new s(e,t)},d.prototype.closePath=function(){var e=new s(0,0),t=0;for(t=this.path.length-1;-1!==t;t--)if("begin"===this.path[t].type&&"object"===a()(this.path[t+1])&&"number"==typeof this.path[t+1].x){e=new s(this.path[t+1].x,this.path[t+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(e.x,e.y)},d.prototype.lineTo=function(e,t){if(isNaN(e)||isNaN(t))throw l.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var r=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"lt",x:r.x,y:r.y}),this.ctx.lastPoint=new s(r.x,r.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),S.call(this,null,!0)},d.prototype.quadraticCurveTo=function(e,t,r,n){if(isNaN(r)||isNaN(n)||isNaN(e)||isNaN(t))throw l.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var a=this.ctx.transform.applyToPoint(new s(r,n)),i=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"qct",x1:i.x,y1:i.y,x:a.x,y:a.y}),this.ctx.lastPoint=new s(a.x,a.y)},d.prototype.bezierCurveTo=function(e,t,r,n,a,i){if(isNaN(a)||isNaN(i)||isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw l.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var o=this.ctx.transform.applyToPoint(new s(a,i)),c=this.ctx.transform.applyToPoint(new s(e,t)),u=this.ctx.transform.applyToPoint(new s(r,n));this.path.push({type:"bct",x1:c.x,y1:c.y,x2:u.x,y2:u.y,x:o.x,y:o.y}),this.ctx.lastPoint=new s(o.x,o.y)},d.prototype.arc=function(e,t,r,n,a,i){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(a))throw l.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(i=Boolean(i),!this.ctx.transform.isIdentity){var o=this.ctx.transform.applyToPoint(new s(e,t));e=o.x,t=o.y;var c=this.ctx.transform.applyToPoint(new s(0,r)),u=this.ctx.transform.applyToPoint(new s(0,0));r=Math.sqrt(Math.pow(c.x-u.x,2)+Math.pow(c.y-u.y,2))}Math.abs(a-n)>=2*Math.PI&&(n=0,a=2*Math.PI),this.path.push({type:"arc",x:e,y:t,radius:r,startAngle:n,endAngle:a,counterclockwise:i})},d.prototype.arcTo=function(e,t,r,n,a){throw new Error("arcTo not implemented.")},d.prototype.rect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw l.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(e,t),this.lineTo(e+r,t),this.lineTo(e+r,t+n),this.lineTo(e,t+n),this.lineTo(e,t),this.lineTo(e+r,t),this.lineTo(e,t)},d.prototype.fillRect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw l.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!m.call(this)){var a={};"butt"!==this.lineCap&&(a.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(a.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(e,t,r,n),this.fill(),a.hasOwnProperty("lineCap")&&(this.lineCap=a.lineCap),a.hasOwnProperty("lineJoin")&&(this.lineJoin=a.lineJoin)}},d.prototype.strokeRect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw l.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");v.call(this)||(this.beginPath(),this.rect(e,t,r,n),this.stroke())},d.prototype.clearRect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw l.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(e,t,r,n))},d.prototype.save=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("q");if(this.pdf.setPage(t),e){this.ctx.fontSize=this.pdf.internal.getFontSize();var n=new f(this.ctx);this.ctxStack.push(this.ctx),this.ctx=n}},d.prototype.restore=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("Q");this.pdf.setPage(t),e&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var p=function(e){var t,r,n,a;if(!0===e.isCanvasGradient&&(e=e.getColor()),!e)return{r:0,g:0,b:0,a:0,style:e};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(e))t=0,r=0,n=0,a=0;else{var i=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(e);if(null!==i)t=parseInt(i[1]),r=parseInt(i[2]),n=parseInt(i[3]),a=1;else if(null!==(i=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(e)))t=parseInt(i[1]),r=parseInt(i[2]),n=parseInt(i[3]),a=parseFloat(i[4]);else{if(a=1,"string"==typeof e&&"#"!==e.charAt(0)){var o=new g(e);e=o.ok?o.toHex():"#000000"}4===e.length?(t=e.substring(1,2),t+=t,r=e.substring(2,3),r+=r,n=e.substring(3,4),n+=n):(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7)),t=parseInt(t,16),r=parseInt(r,16),n=parseInt(n,16)}}return{r:t,g:r,b:n,a:a,style:e}},m=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},v=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};d.prototype.fillText=function(e,t,r,n){if(isNaN(t)||isNaN(r)||"string"!=typeof e)throw l.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(n=isNaN(n)?void 0:n,!m.call(this)){var a=R(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;F.call(this,{text:e,x:t,y:r,scale:i,angle:a,align:this.textAlign,maxWidth:n})}},d.prototype.strokeText=function(e,t,r,n){if(isNaN(t)||isNaN(r)||"string"!=typeof e)throw l.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!v.call(this)){n=isNaN(n)?void 0:n;var a=R(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;F.call(this,{text:e,x:t,y:r,scale:i,renderingMode:"stroke",angle:a,align:this.textAlign,maxWidth:n})}},d.prototype.measureText=function(e){if("string"!=typeof e)throw l.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var t=this.pdf,r=this.pdf.internal.scaleFactor,n=t.internal.getFontSize(),a=t.getStringUnitWidth(e)*n/t.internal.scaleFactor,i=function(e){var t=(e=e||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this};return new i({width:a*=Math.round(96*r/72*1e4)/1e4})},d.prototype.scale=function(e,t){if(isNaN(e)||isNaN(t))throw l.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var r=new u(e,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(r)},d.prototype.rotate=function(e){if(isNaN(e))throw l.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var t=new u(Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},d.prototype.translate=function(e,t){if(isNaN(e)||isNaN(t))throw l.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var r=new u(1,0,0,1,e,t);this.ctx.transform=this.ctx.transform.multiply(r)},d.prototype.transform=function(e,t,r,n,a,i){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(a)||isNaN(i))throw l.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var o=new u(e,t,r,n,a,i);this.ctx.transform=this.ctx.transform.multiply(o)},d.prototype.setTransform=function(e,t,r,n,a,i){e=isNaN(e)?1:e,t=isNaN(t)?0:t,r=isNaN(r)?0:r,n=isNaN(n)?1:n,a=isNaN(a)?0:a,i=isNaN(i)?0:i,this.ctx.transform=new u(e,t,r,n,a,i)};var b=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(e,t,r,n,a,i,o,s,l){var h=this.pdf.getImageProperties(e),f=1,d=1,p=1,g=1;void 0!==n&&void 0!==s&&(p=s/n,g=l/a,f=h.width/n*s/n,d=h.height/a*l/a),void 0===i&&(i=t,o=r,t=0,r=0),void 0!==n&&void 0===s&&(s=n,l=a),void 0===n&&void 0===s&&(s=h.width,l=h.height);for(var m,v=this.ctx.transform.decompose(),x=R(v.rotate.shx),S=new u,k=(S=(S=(S=S.multiply(v.translate)).multiply(v.skew)).multiply(v.scale)).applyToRectangle(new c(i-t*p,o-r*g,n*f,a*d)),A=y.call(this,k),N=[],E=0;E<A.length;E+=1)-1===N.indexOf(A[E])&&N.push(A[E]);if(_(N),this.autoPaging)for(var L=N[0],M=N[N.length-1],F=L;F<M+1;F++){this.pdf.setPage(F);var T=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],D=1===F?this.posY+this.margin[0]:this.margin[0],I=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],O=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],P=1===F?0:I+(F-2)*O;if(0!==this.ctx.clip_path.length){var j=this.path;m=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(m,this.posX+this.margin[3],-P+D+this.ctx.prevPageLastElemOffset),C.call(this,"fill",!0),this.path=j}var B=JSON.parse(JSON.stringify(k));B=w([B],this.posX+this.margin[3],-P+D+this.ctx.prevPageLastElemOffset)[0];var V=(F>L||F<M)&&b.call(this);V&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],T,O,null).clip().discardPath()),this.pdf.addImage(e,"JPEG",B.x,B.y,B.w,B.h,null,null,x),V&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(e,"JPEG",k.x,k.y,k.w,k.h,null,null,x)};var y=function(e,t,r){var n=[];t=t||this.pdf.internal.pageSize.width,r=r||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var a=this.posY+this.ctx.prevPageLastElemOffset;switch(e.type){default:case"mt":case"lt":n.push(Math.floor((e.y+a)/r)+1);break;case"arc":n.push(Math.floor((e.y+a-e.radius)/r)+1),n.push(Math.floor((e.y+a+e.radius)/r)+1);break;case"qct":var i=j(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x,e.y);n.push(Math.floor((i.y+a)/r)+1),n.push(Math.floor((i.y+i.h+a)/r)+1);break;case"bct":var o=B(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x2,e.y2,e.x,e.y);n.push(Math.floor((o.y+a)/r)+1),n.push(Math.floor((o.y+o.h+a)/r)+1);break;case"rect":n.push(Math.floor((e.y+a)/r)+1),n.push(Math.floor((e.y+e.h+a)/r)+1)}for(var s=0;s<n.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<n[s];)x.call(this);return n},x=function(){var e=this.fillStyle,t=this.strokeStyle,r=this.font,n=this.lineCap,a=this.lineWidth,i=this.lineJoin;this.pdf.addPage(),this.fillStyle=e,this.strokeStyle=t,this.font=r,this.lineCap=n,this.lineWidth=a,this.lineJoin=i},w=function(e,t,r){for(var n=0;n<e.length;n++)switch(e[n].type){case"bct":e[n].x2+=t,e[n].y2+=r;case"qct":e[n].x1+=t,e[n].y1+=r;case"mt":case"lt":case"arc":default:e[n].x+=t,e[n].y+=r}return e},_=function(e){return e.sort((function(e,t){return e-t}))},S=function(e,t){for(var r,n,a=this.fillStyle,i=this.strokeStyle,o=this.lineCap,s=this.lineWidth,l=Math.abs(s*this.ctx.transform.scaleX),c=this.lineJoin,u=JSON.parse(JSON.stringify(this.path)),h=JSON.parse(JSON.stringify(this.path)),f=[],d=0;d<h.length;d++)if(void 0!==h[d].x)for(var p=y.call(this,h[d]),g=0;g<p.length;g+=1)-1===f.indexOf(p[g])&&f.push(p[g]);for(var m=0;m<f.length;m++)for(;this.pdf.internal.getNumberOfPages()<f[m];)x.call(this);if(_(f),this.autoPaging)for(var v=f[0],S=f[f.length-1],k=v;k<S+1;k++){this.pdf.setPage(k),this.fillStyle=a,this.strokeStyle=i,this.lineCap=o,this.lineWidth=l,this.lineJoin=c;var A=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],N=1===k?this.posY+this.margin[0]:this.margin[0],E=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],L=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],M=1===k?0:E+(k-2)*L;if(0!==this.ctx.clip_path.length){var F=this.path;r=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(r,this.posX+this.margin[3],-M+N+this.ctx.prevPageLastElemOffset),C.call(this,e,!0),this.path=F}if(n=JSON.parse(JSON.stringify(u)),this.path=w(n,this.posX+this.margin[3],-M+N+this.ctx.prevPageLastElemOffset),!1===t||0===k){var T=(k>v||k<S)&&b.call(this);T&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],A,L,null).clip().discardPath()),C.call(this,e,t),T&&this.pdf.restoreGraphicsState()}this.lineWidth=s}else this.lineWidth=l,C.call(this,e,t),this.lineWidth=s;this.path=u},C=function(e,t){if(("stroke"!==e||t||!v.call(this))&&("stroke"===e||t||!m.call(this))){for(var r,n,a=[],i=this.path,o=0;o<i.length;o++){var s=i[o];switch(s.type){case"begin":a.push({begin:!0});break;case"close":a.push({close:!0});break;case"mt":a.push({start:s,deltas:[],abs:[]});break;case"lt":var l=a.length;if(i[o-1]&&!isNaN(i[o-1].x)&&(r=[s.x-i[o-1].x,s.y-i[o-1].y],l>0))for(;l>=0;l--)if(!0!==a[l-1].close&&!0!==a[l-1].begin){a[l-1].deltas.push(r),a[l-1].abs.push(s);break}break;case"bct":r=[s.x1-i[o-1].x,s.y1-i[o-1].y,s.x2-i[o-1].x,s.y2-i[o-1].y,s.x-i[o-1].x,s.y-i[o-1].y],a[a.length-1].deltas.push(r);break;case"qct":var c=i[o-1].x+2/3*(s.x1-i[o-1].x),u=i[o-1].y+2/3*(s.y1-i[o-1].y),h=s.x+2/3*(s.x1-s.x),f=s.y+2/3*(s.y1-s.y),d=s.x,p=s.y;r=[c-i[o-1].x,u-i[o-1].y,h-i[o-1].x,f-i[o-1].y,d-i[o-1].x,p-i[o-1].y],a[a.length-1].deltas.push(r);break;case"arc":a.push({deltas:[],abs:[],arc:!0}),Array.isArray(a[a.length-1].abs)&&a[a.length-1].abs.push(s)}}n=t?null:"stroke"===e?"stroke":"fill";for(var g=!1,b=0;b<a.length;b++)if(a[b].arc)for(var y=a[b].abs,x=0;x<y.length;x++){var w=y[x];"arc"===w.type?N.call(this,w.x,w.y,w.radius,w.startAngle,w.endAngle,w.counterclockwise,void 0,t,!g):T.call(this,w.x,w.y),g=!0}else if(!0===a[b].close)this.pdf.internal.out("h"),g=!1;else if(!0!==a[b].begin){var _=a[b].start.x,S=a[b].start.y;D.call(this,a[b].deltas,_,S),g=!0}n&&E.call(this,n),t&&L.call(this)}},k=function(e){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,r=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return e-r;case"top":return e+t-r;case"hanging":return e+t-2*r;case"middle":return e+t/2-r;case"ideographic":return e;case"alphabetic":default:return e}},A=function(e){return e+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};d.prototype.createLinearGradient=function(){var e=function(){};return e.colorStops=[],e.addColorStop=function(e,t){this.colorStops.push([e,t])},e.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},e.isCanvasGradient=!0,e},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var N=function(e,t,r,n,a,i,o,s,l){for(var c=O.call(this,r,n,a,i),u=0;u<c.length;u++){var h=c[u];0===u&&(l?M.call(this,h.x1+e,h.y1+t):T.call(this,h.x1+e,h.y1+t)),I.call(this,e,t,h.x2,h.y2,h.x3,h.y3,h.x4,h.y4)}s?L.call(this):E.call(this,o)},E=function(e){switch(e){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},L=function(){this.pdf.clip(),this.pdf.discardPath()},M=function(e,t){this.pdf.internal.out(r(e)+" "+n(t)+" m")},F=function(e){var t;switch(e.align){case"right":case"end":t="right";break;case"center":t="center";break;case"left":case"start":default:t="left"}var r=this.pdf.getTextDimensions(e.text),n=k.call(this,e.y),a=A.call(this,n)-r.h,i=this.ctx.transform.applyToPoint(new s(e.x,n)),o=this.ctx.transform.decompose(),l=new u;l=(l=(l=l.multiply(o.translate)).multiply(o.skew)).multiply(o.scale);for(var h,f,d,p=this.ctx.transform.applyToRectangle(new c(e.x,n,r.w,r.h)),g=l.applyToRectangle(new c(e.x,a,r.w,r.h)),m=y.call(this,g),v=[],x=0;x<m.length;x+=1)-1===v.indexOf(m[x])&&v.push(m[x]);if(_(v),this.autoPaging)for(var S=v[0],N=v[v.length-1],E=S;E<N+1;E++){this.pdf.setPage(E);var L=1===E?this.posY+this.margin[0]:this.margin[0],M=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],F=this.pdf.internal.pageSize.height-this.margin[2],T=F-this.margin[0],D=this.pdf.internal.pageSize.width-this.margin[1],I=D-this.margin[3],O=1===E?0:M+(E-2)*T;if(0!==this.ctx.clip_path.length){var P=this.path;h=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(h,this.posX+this.margin[3],-1*O+L),C.call(this,"fill",!0),this.path=P}var R=w([JSON.parse(JSON.stringify(g))],this.posX+this.margin[3],-O+L+this.ctx.prevPageLastElemOffset)[0];e.scale>=.01&&(f=this.pdf.internal.getFontSize(),this.pdf.setFontSize(f*e.scale),d=this.lineWidth,this.lineWidth=d*e.scale);var j="text"!==this.autoPaging;if(j||R.y+R.h<=F){if(j||R.y>=L&&R.x<=D){var B=j?e.text:this.pdf.splitTextToSize(e.text,e.maxWidth||D-R.x)[0],V=w([JSON.parse(JSON.stringify(p))],this.posX+this.margin[3],-O+L+this.ctx.prevPageLastElemOffset)[0],z=j&&(E>S||E<N)&&b.call(this);z&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],I,T,null).clip().discardPath()),this.pdf.text(B,V.x,V.y,{angle:e.angle,align:t,renderingMode:e.renderingMode}),z&&this.pdf.restoreGraphicsState()}}else R.y<F&&(this.ctx.prevPageLastElemOffset+=F-R.y);e.scale>=.01&&(this.pdf.setFontSize(f),this.lineWidth=d)}else e.scale>=.01&&(f=this.pdf.internal.getFontSize(),this.pdf.setFontSize(f*e.scale),d=this.lineWidth,this.lineWidth=d*e.scale),this.pdf.text(e.text,i.x+this.posX,i.y+this.posY,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),e.scale>=.01&&(this.pdf.setFontSize(f),this.lineWidth=d)},T=function(e,t,a,i){a=a||0,i=i||0,this.pdf.internal.out(r(e+a)+" "+n(t+i)+" l")},D=function(e,t,r){return this.pdf.lines(e,t,r,null,null)},I=function(e,r,n,a,s,l,c,u){this.pdf.internal.out([t(i(n+e)),t(o(a+r)),t(i(s+e)),t(o(l+r)),t(i(c+e)),t(o(u+r)),"c"].join(" "))},O=function(e,t,r,n){for(var a=2*Math.PI,i=Math.PI/2;t>r;)t-=a;var o=Math.abs(r-t);o<a&&n&&(o=a-o);for(var s=[],l=n?-1:1,c=t;o>1e-5;){var u=c+l*Math.min(o,i);s.push(P.call(this,e,c,u)),o-=Math.abs(u-c),c=u}return s},P=function(e,t,r){var n=(r-t)/2,a=e*Math.cos(n),i=e*Math.sin(n),o=a,s=-i,l=o*o+s*s,c=l+o*a+s*i,u=4/3*(Math.sqrt(2*l*c)-c)/(o*i-s*a),h=o-u*s,f=s+u*o,d=h,p=-f,g=n+t,m=Math.cos(g),v=Math.sin(g);return{x1:e*Math.cos(t),y1:e*Math.sin(t),x2:h*m-f*v,y2:h*v+f*m,x3:d*m-p*v,y3:d*v+p*m,x4:e*Math.cos(r),y4:e*Math.sin(r)}},R=function(e){return 180*e/Math.PI},j=function(e,t,r,n,a,i){var o=e+.5*(r-e),s=t+.5*(n-t),l=a+.5*(r-a),u=i+.5*(n-i),h=Math.min(e,a,o,l),f=Math.max(e,a,o,l),d=Math.min(t,i,s,u),p=Math.max(t,i,s,u);return new c(h,d,f-h,p-d)},B=function(e,t,r,n,a,i,o,s){var l,u,h,f,d,p,g,m,v,b,y,x,w,_,S=r-e,C=n-t,k=a-r,A=i-n,N=o-a,E=s-i;for(u=0;u<41;u++)v=(g=(h=e+(l=u/40)*S)+l*((d=r+l*k)-h))+l*(d+l*(a+l*N-d)-g),b=(m=(f=t+l*C)+l*((p=n+l*A)-f))+l*(p+l*(i+l*E-p)-m),0==u?(y=v,x=b,w=v,_=b):(y=Math.min(y,v),x=Math.min(x,b),w=Math.max(w,v),_=Math.max(_,b));return new c(Math.round(y),Math.round(x),Math.round(w-y),Math.round(_-x))},V=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var e,t,r=(e=this.ctx.lineDash,t=this.ctx.lineDashOffset,JSON.stringify({lineDash:e,lineDashOffset:t}));this.prevLineDash!==r&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=r)}}}(B.API),
/**
 * @license
 * jsPDF filters PlugIn
 * Copyright (c) 2014 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){var t=function(e){var t,r,n,a,i,o,s,l,c,u;for(/[^\x00-\xFF]/.test(e),r=[],n=0,a=(e+=t="\0\0\0\0".slice(e.length%4||4)).length;a>n;n+=4)0!==(i=(e.charCodeAt(n)<<24)+(e.charCodeAt(n+1)<<16)+(e.charCodeAt(n+2)<<8)+e.charCodeAt(n+3))?(o=(i=((i=((i=((i=(i-(u=i%85))/85)-(c=i%85))/85)-(l=i%85))/85)-(s=i%85))/85)%85,r.push(o+33,s+33,l+33,c+33,u+33)):r.push(122);return function(e,t){for(var r=t;r>0;r--)e.pop()}(r,t.length),String.fromCharCode.apply(String,r)+"~>"},r=function(e){var t,r,n,a,i,o=String,s="length",l=255,c="charCodeAt",u="slice",h="replace";for(e[u](-2),e=e[u](0,-2)[h](/\s/g,"")[h]("z","!!!!!"),n=[],a=0,i=(e+=t="uuuuu"[u](e[s]%5||5))[s];i>a;a+=5)r=52200625*(e[c](a)-33)+614125*(e[c](a+1)-33)+7225*(e[c](a+2)-33)+85*(e[c](a+3)-33)+(e[c](a+4)-33),n.push(l&r>>24,l&r>>16,l&r>>8,l&r);return function(e,t){for(var r=t;r>0;r--)e.pop()}(n,t[s]),o.fromCharCode.apply(o,n)},n=function(e){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(e=e.replace(/\s/g,"")).indexOf(">")&&(e=e.substr(0,e.indexOf(">"))),e.length%2&&(e+="0"),!1===t.test(e))return"";for(var r="",n=0;n<e.length;n+=2)r+=String.fromCharCode("0x"+(e[n]+e[n+1]));return r},a=function(e){for(var t=new Uint8Array(e.length),r=e.length;r--;)t[r]=e.charCodeAt(r);return(t=Object(i.zlibSync)(t)).reduce((function(e,t){return e+String.fromCharCode(t)}),"")};e.processDataByFilters=function(e,i){var o=0,s=e||"",l=[];for("string"==typeof(i=i||[])&&(i=[i]),o=0;o<i.length;o+=1)switch(i[o]){case"ASCII85Decode":case"/ASCII85Decode":s=r(s),l.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":s=t(s),l.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":s=n(s),l.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":s=s.split("").map((function(e){return("0"+e.charCodeAt().toString(16)).slice(-2)})).join("")+">",l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":s=a(s),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+i[o]+'" is not implemented')}return{data:s,reverseChain:l.reverse().join(" ")}}}(B.API),
/**
 * @license
 * jsPDF fileloading PlugIn
 * Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){e.loadFile=function(e,t,r){return function(e,t,r){t=!1!==t,r="function"==typeof r?r:function(){};var n=void 0;try{n=function(e,t,r){var n=new XMLHttpRequest,a=0,i=function(e){var t=e.length,r=[],n=String.fromCharCode;for(a=0;a<t;a+=1)r.push(n(255&e.charCodeAt(a)));return r.join("")};if(n.open("GET",e,!t),n.overrideMimeType("text/plain; charset=x-user-defined"),!1===t&&(n.onload=function(){200===n.status?r(i(this.responseText)):r(void 0)}),n.send(null),t&&200===n.status)return i(n.responseText)}(e,t,r)}catch(e){}return n}(e,t,r)},e.loadImageFile=e.loadFile}(B.API),function(e){function t(){return(o.html2canvas?Promise.resolve(o.html2canvas):r.e(2).then(r.t.bind(null,1308,7)))["catch"]((function(e){return Promise.reject(new Error("Could not load html2canvas: "+e))})).then((function(e){return e["default"]?e["default"]:e}))}function n(){return(o.DOMPurify?Promise.resolve(o.DOMPurify):r.e(2).then(r.t.bind(null,1309,7)))["catch"]((function(e){return Promise.reject(new Error("Could not load dompurify: "+e))})).then((function(e){return e["default"]?e["default"]:e}))}var i=function(e){var t=a()(e);return"undefined"===t?"undefined":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===t?"object":"unknown"},s=function(e,t){var r=document.createElement(e);for(var n in t.className&&(r.className=t.className),t.innerHTML&&t.dompurify&&(r.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)r.style[n]=t.style[n];return r},l=function c(e){var t=Object.assign(c.convert(Promise.resolve()),JSON.parse(JSON.stringify(c.template))),r=c.convert(Promise.resolve(),t);return(r=r.setProgress(1,c,1,[c])).set(e)};(l.prototype=Object.create(Promise.prototype)).constructor=l,l.convert=function(e,t){return e.__proto__=t||l.prototype,e},l.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},l.prototype.from=function(e,t){return this.then((function(){switch(t=t||function(e){switch(i(e)){case"string":return"string";case"element":return"canvas"===e.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(e)){case"string":return this.then(n).then((function(t){return this.set({src:s("div",{innerHTML:e,dompurify:t})})}));case"element":return this.set({src:e});case"canvas":return this.set({canvas:e});case"img":return this.set({img:e});default:return this.error("Unknown source type.")}}))},l.prototype.to=function(e){switch(e){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},l.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var e={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},t=function r(e,t){for(var n=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),a=e.firstChild;a;a=a.nextSibling)!0!==t&&1===a.nodeType&&"SCRIPT"===a.nodeName||n.appendChild(r(a,t));return 1===e.nodeType&&("CANVAS"===e.nodeName?(n.width=e.width,n.height=e.height,n.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(n.value=e.value),n.addEventListener("load",(function(){n.scrollTop=e.scrollTop,n.scrollLeft=e.scrollLeft}),!0)),n}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===t.tagName&&(e.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=s("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=s("div",{className:"html2pdf__container",style:e}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(s("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},l.prototype.toCanvas=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then((function(e){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,e(this.prop.container,t)})).then((function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},l.prototype.toContext2d=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then((function(e){var t=this.opt.jsPDF,r=this.opt.fontFaces,n="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,a=Object.assign({async:!0,allowTaint:!0,scale:n,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete a.onrendered,t.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.margin=this.opt.margin,t.context2d.fontFaces=r,r)for(var i=0;i<r.length;++i){var o=r[i],s=o.src.find((function(e){return"truetype"===e.format}));s&&t.addFont(s.url,o.ref.name,o.ref.style)}return a.windowHeight=a.windowHeight||0,a.windowHeight=0==a.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):a.windowHeight,t.context2d.save(!0),e(this.prop.container,a)})).then((function(e){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},l.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=e}))},l.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},l.prototype.output=function(e,t,r){return"img"===(r=r||"pdf").toLowerCase()||"image"===r.toLowerCase()?this.outputImg(e,t):this.outputPdf(e,t)},l.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(e,t)}))},l.prototype.outputImg=function(e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(e){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+e+'" is not supported.'}}))},l.prototype.save=function(e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},l.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},l.prototype.set=function(e){if("object"!==i(e))return this;var t=Object.keys(e||{}).map((function(t){if(t in l.template.prop)return function(){this.prop[t]=e[t]};switch(t){case"margin":return this.setMargin.bind(this,e.margin);case"jsPDF":return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,e.pageSize);default:return function(){this.opt[t]=e[t]}}}),this);return this.then((function(){return this.thenList(t)}))},l.prototype.get=function(e,t){return this.then((function(){var r=e in l.template.prop?this.prop[e]:this.opt[e];return t?t(r):r}))},l.prototype.setMargin=function(e){return this.then((function(){switch(i(e)){case"number":e=[e,e,e,e];case"array":if(2===e.length&&(e=[e[0],e[1],e[0],e[1]]),4===e.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=e})).then(this.setPageSize)},l.prototype.setPageSize=function(e){function t(e,t){return Math.floor(e*t/72*96)}return this.then((function(){(e=e||B.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:t(e.inner.width,e.k),height:t(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e}))},l.prototype.setProgress=function(e,t,r,n){return null!=e&&(this.progress.val=e),null!=t&&(this.progress.state=t),null!=r&&(this.progress.n=r),null!=n&&(this.progress.stack=n),this.progress.ratio=this.progress.val/this.progress.state,this},l.prototype.updateProgress=function(e,t,r,n){return this.setProgress(e?this.progress.val+e:null,t||null,r?this.progress.n+r:null,n?this.progress.stack.concat(n):null)},l.prototype.then=function(e,t){var r=this;return this.thenCore(e,t,(function(e,t){return r.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,(function(t){return r.updateProgress(null,e),t})).then(e,t).then((function(e){return r.updateProgress(1),e}))}))},l.prototype.thenCore=function(e,t,r){r=r||Promise.prototype.then,e&&(e=e.bind(this)),t&&(t=t.bind(this));var n=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:l.convert(Object.assign({},this),Promise.prototype),a=r.call(n,e,t);return l.convert(a,this.__proto__)},l.prototype.thenExternal=function(e,t){return Promise.prototype.then.call(this,e,t)},l.prototype.thenList=function(e){var t=this;return e.forEach((function(e){t=t.thenCore(e)})),t},l.prototype["catch"]=function(e){e&&(e=e.bind(this));var t=Promise.prototype["catch"].call(this,e);return l.convert(t,this)},l.prototype.catchExternal=function(e){return Promise.prototype["catch"].call(this,e)},l.prototype.error=function(e){return this.then((function(){throw new Error(e)}))},l.prototype.using=l.prototype.set,l.prototype.saveAs=l.prototype.save,l.prototype["export"]=l.prototype.output,l.prototype.run=l.prototype.then,B.getPageSize=function(e,t,r){if("object"===a()(e)){var n=e;e=n.orientation,t=n.unit||t,r=n.format||r}t=t||"mm",r=r||"a4",e=(""+(e||"P")).toLowerCase();var i,o=(""+r).toLowerCase(),s={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":i=1;break;case"mm":i=72/25.4;break;case"cm":i=72/2.54;break;case"in":i=72;break;case"px":i=.75;break;case"pc":case"em":i=12;break;case"ex":i=6;break;default:throw"Invalid unit: "+t}var l,c=0,u=0;if(s.hasOwnProperty(o))c=s[o][1]/i,u=s[o][0]/i;else try{c=r[1],u=r[0]}catch(Ne){throw new Error("Invalid format: "+r)}if("p"===e||"portrait"===e)e="p",u>c&&(l=u,u=c,c=l);else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",c>u&&(l=u,u=c,c=l)}return{width:u,height:c,unit:t,k:i,orientation:e}},e.html=function(e,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(Pe):null;var r=new l(t);return t.worker?r:r.from(e).doCallback()}}(B.API),B.API.addJS=function(e){return We=e,this.internal.events.subscribe("postPutResources",(function(){qe=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(qe+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Ge=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+We+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==qe&&void 0!==Ge&&this.internal.out("/Names <</JavaScript "+qe+" 0 R>>")})),this},
/**
 * @license
 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){var t;e.events.push(["postPutResources",function(){var e=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=e.outline.render().split(/\r\n/),a=0;a<n.length;a++){var i=n[a],o=r.exec(i);if(null!=o){var s=o[1];e.internal.newObjectDeferredBegin(s,!1)}e.internal.write(i)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,c=[];for(a=0;a<l;a++){var u=e.internal.newObject();c.push(u);var h=e.internal.getPageInfo(a+1);e.internal.write("<< /D["+h.objId+" 0 R /XYZ null null null]>> endobj")}var f=e.internal.newObject();for(e.internal.write("<< /Names [ "),a=0;a<c.length;a++)e.internal.write("(page_"+(a+1)+")"+c[a]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+f+" 0 R"),e.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(e,t,r){var n={title:t,options:r,children:[]};return null==e&&(e=this.root),e.children.push(n),n},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(t){t.id=e.internal.newObjectDeferred();for(var r=0;r<t.children.length;r++)this.genIds_r(t.children[r])},e.outline.renderRoot=function(e){this.objStart(e),this.line("/Type /Outlines"),e.children.length>0&&(this.line("/First "+this.makeRef(e.children[0])),this.line("/Last "+this.makeRef(e.children[e.children.length-1]))),this.line("/Count "+this.count_r({count:0},e)),this.objEnd()},e.outline.renderItems=function(t){for(var r=this.ctx.pdf.internal.getVerticalCoordinateString,n=0;n<t.children.length;n++){var a=t.children[n];this.objStart(a),this.line("/Title "+this.makeString(a.title)),this.line("/Parent "+this.makeRef(t)),n>0&&this.line("/Prev "+this.makeRef(t.children[n-1])),n<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[n+1])),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1])));var i=this.count=this.count_r({count:0},a);if(i>0&&this.line("/Count "+i),a.options&&a.options.pageNumber){var o=e.internal.getPageInfo(a.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+r(0)+" 0]")}this.objEnd()}for(var s=0;s<t.children.length;s++)this.renderItems(t.children[s])},e.outline.line=function(e){this.ctx.val+=e+"\r\n"},e.outline.makeRef=function(e){return e.id+" 0 R"},e.outline.makeString=function(t){return"("+e.internal.pdfEscape(t)+")"},e.outline.objStart=function(e){this.ctx.val+="\r\n"+e.id+" 0 obj\r\n<<\r\n"},e.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},e.outline.count_r=function(e,t){for(var r=0;r<t.children.length;r++)e.count++,this.count_r(e,t.children[r]);return e.count}}])}(B.API),
/**
 * @license
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(e,r,n,a,i,o){var s,l=this.decode.DCT_DECODE,c=null;if("string"==typeof e||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=i||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,(s=function(e){for(var r,n=256*e.charCodeAt(4)+e.charCodeAt(5),a=e.length,i={width:0,height:0,numcomponents:1},o=4;o<a;o+=2){if(o+=n,-1!==t.indexOf(e.charCodeAt(o+1))){r=256*e.charCodeAt(o+5)+e.charCodeAt(o+6),i={width:256*e.charCodeAt(o+7)+e.charCodeAt(o+8),height:r,numcomponents:e.charCodeAt(o+9)};break}n=256*e.charCodeAt(o+2)+e.charCodeAt(o+3)}return i}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e)).numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}c={data:e,width:s.width,height:s.height,colorSpace:o,bitsPerComponent:8,filter:l,index:r,alias:n}}return c}}(B.API);var Xe,Ye,Ke,Je,Ze,Qe=function(){var e,t,r;function n(e){var t,r,n,a,i,o,s,l,c,u,h,f,d,p;for(this.data=e,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},o=null;;){switch(t=this.readUInt32(),c=function(){var e,t;for(t=[],e=0;e<4;++e)t.push(String.fromCharCode(this.data[this.pos++]));return t}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(t);break;case"fcTL":o&&this.animation.frames.push(o),this.pos+=4,o={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},i=this.readUInt16(),a=this.readUInt16()||100,o.delay=1e3*i/a,o.disposeOp=this.data[this.pos++],o.blendOp=this.data[this.pos++],o.data=[];break;case"IDAT":case"fdAT":for("fdAT"===c&&(this.pos+=4,t-=4),e=(null!=o?o.data:void 0)||this.imgData,f=0;0<=t?f<t:f>t;0<=t?++f:--f)e.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(n=this.palette.length/3,this.transparency.indexed=this.read(t),this.transparency.indexed.length>n)throw new Error("More transparent colors than palette size");if((u=n-this.transparency.indexed.length)>0)for(d=0;0<=u?d<u:d>u;0<=u?++d:--d)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(t)[0];break;case 2:this.transparency.rgb=this.read(t)}break;case"tEXt":s=(h=this.read(t)).indexOf(0),l=String.fromCharCode.apply(String,h.slice(0,s)),this.text[l]=String.fromCharCode.apply(String,h.slice(s+1));break;case"IEND":return o&&this.animation.frames.push(o),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(p=this.colorType)||6===p,r=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*r,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=t}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}n.prototype.read=function(e){var t,r;for(r=[],t=0;0<=e?t<e:t>e;0<=e?++t:--t)r.push(this.data[this.pos++]);return r},n.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.decodePixels=function(e){var t=this.pixelBitlength/8,r=new Uint8Array(this.width*this.height*t),n=0,a=this;if(null==e&&(e=this.imgData),0===e.length)return new Uint8Array(0);function o(i,o,s,l){var c,u,h,f,d,p,g,m,v,b,y,x,w,_,S,C,k,A,N,E,L,M=Math.ceil((a.width-i)/s),F=Math.ceil((a.height-o)/l),T=a.width==M&&a.height==F;for(_=t*M,x=T?r:new Uint8Array(_*F),p=e.length,w=0,u=0;w<F&&n<p;){switch(e[n++]){case 0:for(f=k=0;k<_;f=k+=1)x[u++]=e[n++];break;case 1:for(f=A=0;A<_;f=A+=1)c=e[n++],d=f<t?0:x[u-t],x[u++]=(c+d)%256;break;case 2:for(f=N=0;N<_;f=N+=1)c=e[n++],h=(f-f%t)/t,S=w&&x[(w-1)*_+h*t+f%t],x[u++]=(S+c)%256;break;case 3:for(f=E=0;E<_;f=E+=1)c=e[n++],h=(f-f%t)/t,d=f<t?0:x[u-t],S=w&&x[(w-1)*_+h*t+f%t],x[u++]=(c+Math.floor((d+S)/2))%256;break;case 4:for(f=L=0;L<_;f=L+=1)c=e[n++],h=(f-f%t)/t,d=f<t?0:x[u-t],0===w?S=C=0:(S=x[(w-1)*_+h*t+f%t],C=h&&x[(w-1)*_+(h-1)*t+f%t]),g=d+S-C,m=Math.abs(g-d),b=Math.abs(g-S),y=Math.abs(g-C),v=m<=b&&m<=y?d:b<=y?S:C,x[u++]=(c+v)%256;break;default:throw new Error("Invalid filter algorithm: "+e[n-1])}if(!T){var D=((o+w*l)*a.width+i)*t,I=w*_;for(f=0;f<M;f+=1){for(var O=0;O<t;O+=1)r[D++]=x[I++];D+=(s-1)*t}}w++}}return e=Object(i.unzlibSync)(e),1==a.interlaceMethod?(o(0,0,8,8),o(4,0,8,8),o(0,4,4,8),o(2,0,4,4),o(0,2,2,4),o(1,0,2,2),o(0,1,1,2)):o(0,0,1,1),r},n.prototype.decodePalette=function(){var e,t,r,n,a,i,o,s,l;for(r=this.palette,i=this.transparency.indexed||[],a=new Uint8Array((i.length||0)+r.length),n=0,e=0,t=o=0,s=r.length;o<s;t=o+=3)a[n++]=r[t],a[n++]=r[t+1],a[n++]=r[t+2],a[n++]=null!=(l=i[e++])?l:255;return a},n.prototype.copyToImageData=function(e,t){var r,n,a,i,o,s,l,c,u,h,f;if(n=this.colors,u=null,r=this.hasAlphaChannel,this.palette.length&&(u=null!=(f=this._decodedPalette)?f:this._decodedPalette=this.decodePalette(),n=4,r=!0),c=(a=e.data||e).length,o=u||t,i=s=0,1===n)for(;i<c;)l=u?4*t[i/4]:s,h=o[l++],a[i++]=h,a[i++]=h,a[i++]=h,a[i++]=r?o[l++]:255,s=l;else for(;i<c;)l=u?4*t[i/4]:s,a[i++]=o[l++],a[i++]=o[l++],a[i++]=o[l++],a[i++]=r?o[l++]:255,s=l},n.prototype.decode=function(){var e;return e=new Uint8Array(this.width*this.height*4),this.copyToImageData(e,this.decodePixels()),e};var a=function(){if("[object Window]"===Object.prototype.toString.call(o)){try{t=o.document.createElement("canvas"),r=t.getContext("2d")}catch(e){return!1}return!0}return!1};return a(),e=function(e){var n;if(!0===a())return r.width=e.width,r.height=e.height,r.clearRect(0,0,e.width,e.height),r.putImageData(e,0,0),(n=new Image).src=t.toDataURL(),n;throw new Error("This method requires a Browser with Canvas-capability.")},n.prototype.decodeFrames=function(t){var r,n,a,i,o,s,l,c;if(this.animation){for(c=[],n=o=0,s=(l=this.animation.frames).length;o<s;n=++o)r=l[n],a=t.createImageData(r.width,r.height),i=this.decodePixels(new Uint8Array(r.data)),this.copyToImageData(a,i),r.imageData=a,c.push(r.image=e(a));return c}},n.prototype.renderFrame=function(e,t){var r,n,a;return r=(n=this.animation.frames)[t],a=n[t-1],0===t&&e.clearRect(0,0,this.width,this.height),1===(null!=a?a.disposeOp:void 0)?e.clearRect(a.xOffset,a.yOffset,a.width,a.height):2===(null!=a?a.disposeOp:void 0)&&e.putImageData(a.imageData,a.xOffset,a.yOffset),0===r.blendOp&&e.clearRect(r.xOffset,r.yOffset,r.width,r.height),e.drawImage(r.image,r.xOffset,r.yOffset)},n.prototype.animate=function(e){var t,r,n,a,i,o,s=this;return r=0,o=this.animation,a=o.numFrames,n=o.frames,i=o.numPlays,(t=function(){var o,l;if(o=r++%a,l=n[o],s.renderFrame(e,o),a>1&&r/a<i)return s.animation._timeout=setTimeout(t,l.delay)})()},n.prototype.stopAnimation=function(){var e;return clearTimeout(null!=(e=this.animation)?e._timeout:void 0)},n.prototype.render=function(e){var t,r;return e._png&&e._png.stopAnimation(),e._png=this,e.width=this.width,e.height=this.height,t=e.getContext("2d"),this.animation?(this.decodeFrames(t),this.animate(t)):(r=t.createImageData(this.width,this.height),this.copyToImageData(r,this.decodePixels()),t.putImageData(r,0,0))},n}();
/**
 * @license
 *
 * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 * ====================================================================
 */
/**
 * @license
 * (c) Dean McNamee <dean@gmail.com>, 2013.
 *
 * https://github.com/deanm/omggif
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to
 * deal in the Software without restriction, including without limitation the
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 * sell copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 *
 * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
 * including animation and compression.  It does not rely on any specific
 * underlying system, so should run in the browser, Node, or Plask.
 */function et(e){var t=0;if(71!==e[t++]||73!==e[t++]||70!==e[t++]||56!==e[t++]||56!=(e[t++]+1&253)||97!==e[t++])throw new Error("Invalid GIF 87a/89a header.");var r=e[t++]|e[t++]<<8,n=e[t++]|e[t++]<<8,a=e[t++],i=a>>7,o=1<<1+(7&a);e[t++],e[t++];var s=null,l=null;i&&(s=t,l=o,t+=3*o);var c=!0,u=[],h=0,f=null,d=0,p=null;for(this.width=r,this.height=n;c&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(11!==e[t]||78==e[t+1]&&69==e[t+2]&&84==e[t+3]&&83==e[t+4]&&67==e[t+5]&&65==e[t+6]&&80==e[t+7]&&69==e[t+8]&&50==e[t+9]&&46==e[t+10]&&48==e[t+11]&&3==e[t+12]&&1==e[t+13]&&0==e[t+16])t+=14,p=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((N=e[t++])>=0))throw Error("Invalid block size");if(0===N)break;t+=N}break;case 249:if(4!==e[t++]||0!==e[t+4])throw new Error("Invalid graphics extension block.");var g=e[t++];h=e[t++]|e[t++]<<8,f=e[t++],0==(1&g)&&(f=null),d=g>>2&7,t++;break;case 254:for(;;){if(!((N=e[t++])>=0))throw Error("Invalid block size");if(0===N)break;t+=N}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var m=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,b=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,x=e[t++],w=x>>6&1,_=1<<1+(7&x),S=s,C=l,k=!1;x>>7&&(k=!0,S=t,C=_,t+=3*_);var A=t;for(t++;;){var N;if(!((N=e[t++])>=0))throw Error("Invalid block size");if(0===N)break;t+=N}u.push({x:m,y:v,width:b,height:y,has_local_palette:k,palette_offset:S,palette_size:C,data_offset:A,data_length:t-A,transparent_index:f,interlaced:!!w,delay:h,disposal:d});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return p},this.frameInfo=function(e){if(e<0||e>=u.length)throw new Error("Frame index out of range.");return u[e]},this.decodeAndBlitFrameBGRA=function(t,n){var a=this.frameInfo(t),i=a.width*a.height,o=new Uint8Array(i);tt(e,a.data_offset,o,i);var s=a.palette_offset,l=a.transparent_index;null===l&&(l=256);var c=a.width,u=r-c,h=c,f=4*(a.y*r+a.x),d=4*((a.y+a.height)*r+a.x),p=f,g=4*u;!0===a.interlaced&&(g+=4*r*7);for(var m=8,v=0,b=o.length;v<b;++v){var y=o[v];if(0===h&&(h=c,(p+=g)>=d&&(g=4*u+4*r*(m-1),p=f+(c+u)*(m<<1),m>>=1)),y===l)p+=4;else{var x=e[s+3*y],w=e[s+3*y+1],_=e[s+3*y+2];n[p++]=_,n[p++]=w,n[p++]=x,n[p++]=255}--h}},this.decodeAndBlitFrameRGBA=function(t,n){var a=this.frameInfo(t),i=a.width*a.height,o=new Uint8Array(i);tt(e,a.data_offset,o,i);var s=a.palette_offset,l=a.transparent_index;null===l&&(l=256);var c=a.width,u=r-c,h=c,f=4*(a.y*r+a.x),d=4*((a.y+a.height)*r+a.x),p=f,g=4*u;!0===a.interlaced&&(g+=4*r*7);for(var m=8,v=0,b=o.length;v<b;++v){var y=o[v];if(0===h&&(h=c,(p+=g)>=d&&(g=4*u+4*r*(m-1),p=f+(c+u)*(m<<1),m>>=1)),y===l)p+=4;else{var x=e[s+3*y],w=e[s+3*y+1],_=e[s+3*y+2];n[p++]=x,n[p++]=w,n[p++]=_,n[p++]=255}--h}}}function tt(e,t,r,n){for(var a=e[t++],i=1<<a,o=i+1,s=o+1,c=a+1,u=(1<<c)-1,h=0,f=0,d=0,p=e[t++],g=new Int32Array(4096),m=null;;){for(;h<16&&0!==p;)f|=e[t++]<<h,h+=8,1===p?p=e[t++]:--p;if(h<c)break;var v=f&u;if(f>>=c,h-=c,v!==i){if(v===o)break;for(var b=v<s?v:m,y=0,x=b;x>i;)x=g[x]>>8,++y;var w=x;if(d+y+(b!==v?1:0)>n)return void l.log("Warning, gif stream longer than expected.");r[d++]=w;var _=d+=y;for(b!==v&&(r[d++]=w),x=b;y--;)x=g[x],r[--_]=255&x,x>>=8;null!==m&&s<4096&&(g[s++]=m<<8|w,s>=u+1&&c<12&&(++c,u=u<<1|1)),m=v}else s=o+1,u=(1<<(c=a+1))-1,m=null}return d!==n&&l.log("Warning, gif stream shorter than expected."),r
/**
 * @license
  Copyright (c) 2008, Adobe Systems Incorporated
  All rights reserved.

  Redistribution and use in source and binary forms, with or without 
  modification, are permitted provided that the following conditions are
  met:

  * Redistributions of source code must retain the above copyright notice, 
    this list of conditions and the following disclaimer.
  
  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the 
    documentation and/or other materials provided with the distribution.
  
  * Neither the name of Adobe Systems Incorporated nor the names of its 
    contributors may be used to endorse or promote products derived from 
    this software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/}function rt(e){var t,r,n,a,i,o=Math.floor,s=new Array(64),l=new Array(64),c=new Array(64),u=new Array(64),h=new Array(65535),f=new Array(65535),d=new Array(64),p=new Array(64),g=[],m=0,v=7,b=new Array(64),y=new Array(64),x=new Array(64),w=new Array(256),_=new Array(2048),S=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],C=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],k=[0,1,2,3,4,5,6,7,8,9,10,11],A=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],N=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],E=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],L=[0,1,2,3,4,5,6,7,8,9,10,11],M=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],F=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function T(e,t){for(var r=0,n=0,a=new Array,i=1;i<=16;i++){for(var o=1;o<=e[i];o++)a[t[n]]=[],a[t[n]][0]=r,a[t[n]][1]=i,n++,r++;r*=2}return a}function D(e){for(var t=e[0],r=e[1]-1;r>=0;)t&1<<r&&(m|=1<<v),r--,--v<0&&(255==m?(I(255),I(0)):I(m),v=7,m=0)}function I(e){g.push(e)}function O(e){I(e>>8&255),I(255&e)}function P(e,t,r,n,a){for(var i,o=a[0],s=a[240],l=function(e,t){var r,n,a,i,o,s,l,c,u,h,f=0;for(u=0;u<8;++u){r=e[f],n=e[f+1],a=e[f+2],i=e[f+3],o=e[f+4],s=e[f+5],l=e[f+6];var p=r+(c=e[f+7]),g=r-c,m=n+l,v=n-l,b=a+s,y=a-s,x=i+o,w=i-o,_=p+x,S=p-x,C=m+b,k=m-b;e[f]=_+C,e[f+4]=_-C;var A=.707106781*(k+S);e[f+2]=S+A,e[f+6]=S-A;var N=.382683433*((_=w+y)-(k=v+g)),E=.5411961*_+N,L=1.306562965*k+N,M=.707106781*(C=y+v),F=g+M,T=g-M;e[f+5]=T+E,e[f+3]=T-E,e[f+1]=F+L,e[f+7]=F-L,f+=8}for(f=0,u=0;u<8;++u){r=e[f],n=e[f+8],a=e[f+16],i=e[f+24],o=e[f+32],s=e[f+40],l=e[f+48];var D=r+(c=e[f+56]),I=r-c,O=n+l,P=n-l,R=a+s,j=a-s,B=i+o,V=i-o,z=D+B,U=D-B,H=O+R,q=O-R;e[f]=z+H,e[f+32]=z-H;var G=.707106781*(q+U);e[f+16]=U+G,e[f+48]=U-G;var W=.382683433*((z=V+j)-(q=P+I)),$=.5411961*z+W,X=1.306562965*q+W,Y=.707106781*(H=j+P),K=I+Y,J=I-Y;e[f+40]=J+$,e[f+24]=J-$,e[f+8]=K+X,e[f+56]=K-X,f++}for(u=0;u<64;++u)h=e[u]*t[u],d[u]=h>0?h+.5|0:h-.5|0;return d}(e,t),c=0;c<64;++c)p[S[c]]=l[c];var u=p[0]-r;r=p[0],0==u?D(n[0]):(D(n[f[i=32767+u]]),D(h[i]));for(var g=63;g>0&&0==p[g];)g--;if(0==g)return D(o),r;for(var m,v=1;v<=g;){for(var b=v;0==p[v]&&v<=g;)++v;var y=v-b;if(y>=16){m=y>>4;for(var x=1;x<=m;++x)D(s);y&=15}i=32767+p[v],D(a[(y<<4)+f[i]]),D(h[i]),v++}return 63!=g&&D(o),r}function R(e){e=Math.min(Math.max(e,1),100),i!=e&&(function(e){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],r=0;r<64;r++){var n=o((t[r]*e+50)/100);n=Math.min(Math.max(n,1),255),s[S[r]]=n}for(var a=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],i=0;i<64;i++){var h=o((a[i]*e+50)/100);h=Math.min(Math.max(h,1),255),l[S[i]]=h}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,p=0;p<8;p++)for(var g=0;g<8;g++)c[d]=1/(s[S[d]]*f[p]*f[g]*8),u[d]=1/(l[S[d]]*f[p]*f[g]*8),d++}(e<50?Math.floor(5e3/e):Math.floor(200-2*e)),i=e)}this.encode=function(e,i){i&&R(i),g=new Array,m=0,v=7,O(65496),O(65504),O(16),I(74),I(70),I(73),I(70),I(0),I(1),I(1),I(0),O(1),O(1),I(0),I(0),function(){O(65499),O(132),I(0);for(var e=0;e<64;e++)I(s[e]);I(1);for(var t=0;t<64;t++)I(l[t])}(),function(e,t){O(65472),O(17),I(8),O(t),O(e),I(3),I(1),I(17),I(0),I(2),I(17),I(1),I(3),I(17),I(1)}(e.width,e.height),function(){O(65476),O(418),I(0);for(var e=0;e<16;e++)I(C[e+1]);for(var t=0;t<=11;t++)I(k[t]);I(16);for(var r=0;r<16;r++)I(A[r+1]);for(var n=0;n<=161;n++)I(N[n]);I(1);for(var a=0;a<16;a++)I(E[a+1]);for(var i=0;i<=11;i++)I(L[i]);I(17);for(var o=0;o<16;o++)I(M[o+1]);for(var s=0;s<=161;s++)I(F[s])}(),O(65498),O(12),I(3),I(1),I(0),I(2),I(17),I(3),I(17),I(0),I(63),I(0);var o=0,h=0,f=0;m=0,v=7,this.encode.displayName="_encode_";for(var d,p,w,S,T,j,B,V,z,U=e.data,H=e.width,q=e.height,G=4*H,W=0;W<q;){for(d=0;d<G;){for(T=G*W+d,B=-1,V=0,z=0;z<64;z++)j=T+(V=z>>3)*G+(B=4*(7&z)),W+V>=q&&(j-=G*(W+1+V-q)),d+B>=G&&(j-=d+B-G+4),p=U[j++],w=U[j++],S=U[j++],b[z]=(_[p]+_[w+256>>0]+_[S+512>>0]>>16)-128,y[z]=(_[p+768>>0]+_[w+1024>>0]+_[S+1280>>0]>>16)-128,x[z]=(_[p+1280>>0]+_[w+1536>>0]+_[S+1792>>0]>>16)-128;o=P(b,c,o,t,n),h=P(y,u,h,r,a),f=P(x,u,f,r,a),d+=32}W+=8}if(v>=0){var $=[];$[1]=v+1,$[0]=(1<<v+1)-1,D($)}return O(65497),new Uint8Array(g)},e=e||50,function(){for(var e=String.fromCharCode,t=0;t<256;t++)w[t]=e(t)}(),t=T(C,k),r=T(E,L),n=T(A,N),a=T(M,F),function(){for(var e=1,t=2,r=1;r<=15;r++){for(var n=e;n<t;n++)f[32767+n]=r,h[32767+n]=[],h[32767+n][1]=r,h[32767+n][0]=n;for(var a=-(t-1);a<=-e;a++)f[32767+a]=r,h[32767+a]=[],h[32767+a][1]=r,h[32767+a][0]=t-1+a;e<<=1,t<<=1}}(),function(){for(var e=0;e<256;e++)_[e]=19595*e,_[e+256>>0]=38470*e,_[e+512>>0]=7471*e+32768,_[e+768>>0]=-11059*e,_[e+1024>>0]=-21709*e,_[e+1280>>0]=32768*e+8421375,_[e+1536>>0]=-27439*e,_[e+1792>>0]=-5329*e}(),R(e)}
/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */function nt(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function at(e){function t(e){if(!e)throw Error("assert :P")}function r(e,t,r){for(var n=0;4>n;n++)if(e[t+n]!=r.charCodeAt(n))return!0;return!1}function n(e,t,r,n,a){for(var i=0;i<a;i++)e[t+i]=r[n+i]}function a(e,t,r,n){for(var a=0;a<n;a++)e[t+a]=r}function i(e){return new Int32Array(e)}function o(e,t){for(var r=[],n=0;n<e;n++)r.push(new t);return r}function s(e,t){var r=[];return function n(e,r,a){for(var i=a[r],o=0;o<i&&(e.push(a.length>r+1?[]:new t),!(a.length<r+1));o++)n(e[o],r+1,a)}(r,0,e),r}var l=function(){var e=this;function l(e,t){for(var r=1<<t-1>>>0;e&r;)r>>>=1;return r?(e&r-1)+r:e}function c(e,r,n,a,i){t(!(a%n));do{e[r+(a-=n)]=i}while(0<a)}function u(e,r,n,a,o){if(t(2328>=o),512>=o)var s=i(512);else if(null==(s=i(o)))return 0;return function(e,r,n,a,o,s){var u,f,d=r,p=1<<n,g=i(16),m=i(16);for(t(0!=o),t(null!=a),t(null!=e),t(0<n),f=0;f<o;++f){if(15<a[f])return 0;++g[a[f]]}if(g[0]==o)return 0;for(m[1]=0,u=1;15>u;++u){if(g[u]>1<<u)return 0;m[u+1]=m[u]+g[u]}for(f=0;f<o;++f)u=a[f],0<a[f]&&(s[m[u]++]=f);if(1==m[15])return(a=new h).g=0,a.value=s[0],c(e,d,1,p,a),p;var v,b=-1,y=p-1,x=0,w=1,_=1,S=1<<n;for(f=0,u=1,o=2;u<=n;++u,o<<=1){if(w+=_<<=1,0>(_-=g[u]))return 0;for(;0<g[u];--g[u])(a=new h).g=u,a.value=s[f++],c(e,d+x,o,S,a),x=l(x,u)}for(u=n+1,o=2;15>=u;++u,o<<=1){if(w+=_<<=1,0>(_-=g[u]))return 0;for(;0<g[u];--g[u]){if(a=new h,(x&y)!=b){for(d+=S,v=1<<(b=u)-n;15>b&&!(0>=(v-=g[b]));)++b,v<<=1;p+=S=1<<(v=b-n),e[r+(b=x&y)].g=v+n,e[r+b].value=d-r-b}a.g=u-n,a.value=s[f++],c(e,d+(x>>n),o,S,a),x=l(x,u)}}return w!=2*m[15]-1?0:p}(e,r,n,a,o,s)}function h(){this.value=this.g=0}function f(){this.value=this.g=0}function d(){this.G=o(5,h),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(jr,f)}function p(e,r,n,a){t(null!=e),t(null!=r),t(2147483648>a),e.Ca=254,e.I=0,e.b=-8,e.Ka=0,e.oa=r,e.pa=n,e.Jd=r,e.Yc=n+a,e.Zc=4<=a?n+a-4+1:n,A(e)}function g(e,t){for(var r=0;0<t--;)r|=E(e,128)<<t;return r}function m(e,t){var r=g(e,t);return N(e)?-r:r}function v(e,r,n,a){var i,o=0;for(t(null!=e),t(null!=r),t(4294967288>a),e.Sb=a,e.Ra=0,e.u=0,e.h=0,4<a&&(a=4),i=0;i<a;++i)o+=r[n+i]<<8*i;e.Ra=o,e.bb=a,e.oa=r,e.pa=n}function b(e){for(;8<=e.u&&e.bb<e.Sb;)e.Ra>>>=8,e.Ra+=e.oa[e.pa+e.bb]<<zr-8>>>0,++e.bb,e.u-=8;S(e)&&(e.h=1,e.u=0)}function y(e,r){if(t(0<=r),!e.h&&r<=Vr){var n=_(e)&Br[r];return e.u+=r,b(e),n}return e.h=1,e.u=0}function x(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function w(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function _(e){return e.Ra>>>(e.u&zr-1)>>>0}function S(e){return t(e.bb<=e.Sb),e.h||e.bb==e.Sb&&e.u>zr}function C(e,t){e.u=t,e.h=S(e)}function k(e){e.u>=Ur&&(t(e.u>=Ur),b(e))}function A(e){t(null!=e&&null!=e.oa),e.pa<e.Zc?(e.I=(e.oa[e.pa++]|e.I<<8)>>>0,e.b+=8):(t(null!=e&&null!=e.oa),e.pa<e.Yc?(e.b+=8,e.I=e.oa[e.pa++]|e.I<<8):e.Ka?e.b=0:(e.I<<=8,e.b+=8,e.Ka=1))}function N(e){return g(e,1)}function E(e,t){var r=e.Ca;0>e.b&&A(e);var n=e.b,a=r*t>>>8,i=(e.I>>>n>a)+0;for(i?(r-=a,e.I-=a+1<<n>>>0):r=a+1,n=r,a=0;256<=n;)a+=8,n>>=8;return n=7^a+Hr[n],e.b-=n,e.Ca=(r<<n)-1,i}function L(e,t,r){e[t+0]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=r>>0&255}function M(e,t){return e[t+0]<<0|e[t+1]<<8}function F(e,t){return M(e,t)|e[t+2]<<16}function T(e,t){return M(e,t)|M(e,t+2)<<16}function D(e,r){var n=1<<r;return t(null!=e),t(0<r),e.X=i(n),null==e.X?0:(e.Mb=32-r,e.Xa=r,1)}function I(e,r){t(null!=e),t(null!=r),t(e.Xa==r.Xa),n(r.X,0,e.X,0,1<<r.Xa)}function O(){this.X=[],this.Xa=this.Mb=0}function P(e,r,n,a){t(null!=n),t(null!=a);var i=n[0],o=a[0];return 0==i&&(i=(e*o+r/2)/r),0==o&&(o=(r*i+e/2)/e),0>=i||0>=o?0:(n[0]=i,a[0]=o,1)}function R(e,t){return e+(1<<t)-1>>>t}function j(e,t){return((4278255360&e)+(4278255360&t)>>>0&4278255360)+((16711935&e)+(16711935&t)>>>0&16711935)>>>0}function B(t,r){e[r]=function(r,n,a,i,o,s,l){var c;for(c=0;c<o;++c){var u=e[t](s[l+c-1],a,i+c);s[l+c]=j(r[n+c],u)}}}function V(){this.ud=this.hd=this.jd=0}function z(e,t){return((4278124286&(e^t))>>>1)+(e&t)>>>0}function U(e){return 0<=e&&256>e?e:0>e?0:255<e?255:void 0}function H(e,t){return U(e+(e-t+.5>>1))}function q(e,t,r){return Math.abs(t-r)-Math.abs(e-r)}function G(e,t,r,n,a,i,o){for(n=i[o-1],r=0;r<a;++r)i[o+r]=n=j(e[t+r],n)}function W(e,t,r,n,a){var i;for(i=0;i<r;++i){var o=e[t+i],s=o>>8&255,l=16711935&(l=(l=16711935&o)+((s<<16)+s));n[a+i]=(4278255360&o)+l>>>0}}function $(e,t){t.jd=e>>0&255,t.hd=e>>8&255,t.ud=e>>16&255}function X(e,t,r,n,a,i){var o;for(o=0;o<n;++o){var s=t[r+o],l=s>>>8,c=s,u=255&(u=(u=s>>>16)+((e.jd<<24>>24)*(l<<24>>24)>>>5));c=255&(c=(c+=(e.hd<<24>>24)*(l<<24>>24)>>>5)+((e.ud<<24>>24)*(u<<24>>24)>>>5)),a[i+o]=(4278255360&s)+(u<<16)+c}}function Y(t,r,n,a,i){e[r]=function(e,t,r,n,o,s,l,c,u){for(n=l;n<c;++n)for(l=0;l<u;++l)o[s++]=i(r[a(e[t++])])},e[t]=function(t,r,o,s,l,c,u){var h=8>>t.b,f=t.Ea,d=t.K[0],p=t.w;if(8>h)for(t=(1<<t.b)-1,p=(1<<h)-1;r<o;++r){var g,m=0;for(g=0;g<f;++g)g&t||(m=a(s[l++])),c[u++]=i(d[m&p]),m>>=h}else e["VP8LMapColor"+n](s,l,d,p,c,u,r,o,f)}}function K(e,t,r,n,a){for(r=t+r;t<r;){var i=e[t++];n[a++]=i>>16&255,n[a++]=i>>8&255,n[a++]=i>>0&255}}function J(e,t,r,n,a){for(r=t+r;t<r;){var i=e[t++];n[a++]=i>>16&255,n[a++]=i>>8&255,n[a++]=i>>0&255,n[a++]=i>>24&255}}function Z(e,t,r,n,a){for(r=t+r;t<r;){var i=(o=e[t++])>>16&240|o>>12&15,o=o>>0&240|o>>28&15;n[a++]=i,n[a++]=o}}function Q(e,t,r,n,a){for(r=t+r;t<r;){var i=(o=e[t++])>>16&248|o>>13&7,o=o>>5&224|o>>3&31;n[a++]=i,n[a++]=o}}function ee(e,t,r,n,a){for(r=t+r;t<r;){var i=e[t++];n[a++]=i>>0&255,n[a++]=i>>8&255,n[a++]=i>>16&255}}function te(e,t,r,a,i,o){if(0==o)for(r=t+r;t<r;)L(a,((o=e[t++])[0]>>24|o[1]>>8&65280|o[2]<<8&16711680|o[3]<<24)>>>0),i+=32;else n(a,i,e,t,r)}function re(t,r){e[r][0]=e[t+"0"],e[r][1]=e[t+"1"],e[r][2]=e[t+"2"],e[r][3]=e[t+"3"],e[r][4]=e[t+"4"],e[r][5]=e[t+"5"],e[r][6]=e[t+"6"],e[r][7]=e[t+"7"],e[r][8]=e[t+"8"],e[r][9]=e[t+"9"],e[r][10]=e[t+"10"],e[r][11]=e[t+"11"],e[r][12]=e[t+"12"],e[r][13]=e[t+"13"],e[r][14]=e[t+"0"],e[r][15]=e[t+"0"]}function ne(e){return e==Hn||e==qn||e==Gn||e==Wn}function ae(){this.eb=[],this.size=this.A=this.fb=0}function ie(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function oe(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ae,this.f.kb=new ie,this.sd=null}function se(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function le(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ce(e){return alert("todo:WebPSamplerProcessPlane"),e.T}function ue(e,t){var r=e.T,a=t.ba.f.RGBA,i=a.eb,o=a.fb+e.ka*a.A,s=va[t.ba.S],l=e.y,c=e.O,u=e.f,h=e.N,f=e.ea,d=e.W,p=t.cc,g=t.dc,m=t.Mc,v=t.Nc,b=e.ka,y=e.ka+e.T,x=e.U,w=x+1>>1;for(0==b?s(l,c,null,null,u,h,f,d,u,h,f,d,i,o,null,null,x):(s(t.ec,t.fc,l,c,p,g,m,v,u,h,f,d,i,o-a.A,i,o,x),++r);b+2<y;b+=2)p=u,g=h,m=f,v=d,h+=e.Rc,d+=e.Rc,o+=2*a.A,s(l,(c+=2*e.fa)-e.fa,l,c,p,g,m,v,u,h,f,d,i,o-a.A,i,o,x);return c+=e.fa,e.j+y<e.o?(n(t.ec,t.fc,l,c,x),n(t.cc,t.dc,u,h,w),n(t.Mc,t.Nc,f,d,w),r--):1&y||s(l,c,null,null,u,h,f,d,u,h,f,d,i,o+a.A,null,null,x),r}function he(e,r,n){var a=e.F,i=[e.J];if(null!=a){var o=e.U,s=r.ba.S,l=s==Vn||s==Gn;r=r.ba.f.RGBA;var c=[0],u=e.ka;c[0]=e.T,e.Kb&&(0==u?--c[0]:(--u,i[0]-=e.width),e.j+e.ka+e.T==e.o&&(c[0]=e.o-e.j-u));var h=r.eb;u=r.fb+u*r.A,e=kn(a,i[0],e.width,o,c,h,u+(l?0:3),r.A),t(n==c),e&&ne(s)&&Sn(h,u,l,o,c,r.A)}return 0}function fe(e){var t=e.ma,r=t.ba.S,n=11>r,a=r==Rn||r==Bn||r==Vn||r==zn||12==r||ne(r);if(t.memory=null,t.Ib=null,t.Jb=null,t.Nd=null,!Or(t.Oa,e,a?11:12))return 0;if(a&&ne(r)&&br(),e.da)alert("todo:use_scaling");else{if(n){if(t.Ib=ce,e.Kb){if(r=e.U+1>>1,t.memory=i(e.U+2*r),null==t.memory)return 0;t.ec=t.memory,t.fc=0,t.cc=t.ec,t.dc=t.fc+e.U,t.Mc=t.cc,t.Nc=t.dc+r,t.Ib=ue,br()}}else alert("todo:EmitYUV");a&&(t.Jb=he,n&&mr())}if(n&&!Fa){for(e=0;256>e;++e)Ta[e]=89858*(e-128)+Aa>>ka,Oa[e]=-22014*(e-128)+Aa,Ia[e]=-45773*(e-128),Da[e]=113618*(e-128)+Aa>>ka;for(e=Na;e<Ea;++e)t=76283*(e-16)+Aa>>ka,Pa[e-Na]=Ge(t,255),Ra[e-Na]=Ge(t+8>>4,15);Fa=1}return 1}function de(e){var r=e.ma,n=e.U,a=e.T;return t(!(1&e.ka)),0>=n||0>=a?0:(n=r.Ib(e,r),null!=r.Jb&&r.Jb(e,r,n),r.Dc+=n,1)}function pe(e){e.ma.memory=null}function ge(e,t,r,n){return 47!=y(e,8)?0:(t[0]=y(e,14)+1,r[0]=y(e,14)+1,n[0]=y(e,1),0!=y(e,3)?0:!e.h)}function me(e,t){if(4>e)return e+1;var r=e-2>>1;return(2+(1&e)<<r)+y(t,r)+1}function ve(e,t){return 120<t?t-120:1<=(r=((r=Zn[t-1])>>4)*e+(8-(15&r)))?r:1;var r}function be(e,t,r){var n=_(r),a=e[t+=255&n].g-8;return 0<a&&(C(r,r.u+8),n=_(r),t+=e[t].value,t+=n&(1<<a)-1),C(r,r.u+e[t].g),e[t].value}function ye(e,r,n){return n.g+=e.g,n.value+=e.value<<r>>>0,t(8>=n.g),e.g}function xe(e,r,n){var a=e.xc;return t((r=0==a?0:e.vc[e.md*(n>>a)+(r>>a)])<e.Wb),e.Ya[r]}function we(e,r,a,i){var o=e.ab,s=e.c*r,l=e.C;r=l+r;var c=a,u=i;for(i=e.Ta,a=e.Ua;0<o--;){var h=e.gc[o],f=l,d=r,p=c,g=u,m=(u=i,c=a,h.Ea);switch(t(f<d),t(d<=h.nc),h.hc){case 2:Wr(p,g,(d-f)*m,u,c);break;case 0:var v=f,b=d,y=u,x=c,w=(A=h).Ea;0==v&&(qr(p,g,null,null,1,y,x),G(p,g+1,0,0,w-1,y,x+1),g+=w,x+=w,++v);for(var _=1<<A.b,S=_-1,C=R(w,A.b),k=A.K,A=A.w+(v>>A.b)*C;v<b;){var N=k,E=A,L=1;for(Gr(p,g,y,x-w,1,y,x);L<w;){var M=(L&~S)+_;M>w&&(M=w),(0,Jr[N[E++]>>8&15])(p,g+ +L,y,x+L-w,M-L,y,x+L),L=M}g+=w,x+=w,++v&S||(A+=C)}d!=h.nc&&n(u,c-m,u,c+(d-f-1)*m,m);break;case 1:for(m=p,b=g,w=(p=h.Ea)-(x=p&~(y=(g=1<<h.b)-1)),v=R(p,h.b),_=h.K,h=h.w+(f>>h.b)*v;f<d;){for(S=_,C=h,k=new V,A=b+x,N=b+p;b<A;)$(S[C++],k),Zr(k,m,b,g,u,c),b+=g,c+=g;b<N&&($(S[C++],k),Zr(k,m,b,w,u,c),b+=w,c+=w),++f&y||(h+=v)}break;case 3:if(p==u&&g==c&&0<h.b){for(b=u,p=m=c+(d-f)*m-(x=(d-f)*R(h.Ea,h.b)),g=u,y=c,v=[],x=(w=x)-1;0<=x;--x)v[x]=g[y+x];for(x=w-1;0<=x;--x)b[p+x]=v[x];$r(h,f,d,u,m,u,c)}else $r(h,f,d,p,g,u,c)}c=i,u=a}u!=a&&n(i,a,c,u,s)}function _e(e,r){var n=e.V,a=e.Ba+e.c*e.C,i=r-e.C;if(t(r<=e.l.o),t(16>=i),0<i){var o=e.l,s=e.Ta,l=e.Ua,c=o.width;if(we(e,i,n,a),i=l=[l],t((n=e.C)<(a=r)),t(o.v<o.va),a>o.o&&(a=o.o),n<o.j){var u=o.j-n;n=o.j,i[0]+=u*c}if(n>=a?n=0:(i[0]+=4*o.v,o.ka=n-o.j,o.U=o.va-o.v,o.T=a-n,n=1),n){if(l=l[0],11>(n=e.ca).S){var h=n.f.RGBA,f=(a=n.S,i=o.U,o=o.T,u=h.eb,h.A),d=o;for(h=h.fb+e.Ma*h.A;0<d--;){var p=s,g=l,m=i,v=u,b=h;switch(a){case Pn:Qr(p,g,m,v,b);break;case Rn:en(p,g,m,v,b);break;case Hn:en(p,g,m,v,b),Sn(v,b,0,m,1,0);break;case jn:nn(p,g,m,v,b);break;case Bn:te(p,g,m,v,b,1);break;case qn:te(p,g,m,v,b,1),Sn(v,b,0,m,1,0);break;case Vn:te(p,g,m,v,b,0);break;case Gn:te(p,g,m,v,b,0),Sn(v,b,1,m,1,0);break;case zn:tn(p,g,m,v,b);break;case Wn:tn(p,g,m,v,b),Cn(v,b,m,1,0);break;case Un:rn(p,g,m,v,b);break;default:t(0)}l+=c,h+=f}e.Ma+=o}else alert("todo:EmitRescaledRowsYUVA");t(e.Ma<=n.height)}}e.C=r,t(e.C<=e.i)}function Se(e){var t;if(0<e.ua)return 0;for(t=0;t<e.Wb;++t){var r=e.Ya[t].G,n=e.Ya[t].H;if(0<r[1][n[1]+0].g||0<r[2][n[2]+0].g||0<r[3][n[3]+0].g)return 0}return 1}function Ce(e,r,n,a,i,o){if(0!=e.Z){var s=e.qd,l=e.rd;for(t(null!=ma[e.Z]);r<n;++r)ma[e.Z](s,l,a,i,a,i,o),s=a,l=i,i+=o;e.qd=s,e.rd=l}}function ke(e,r){var n=e.l.ma,a=0==n.Z||1==n.Z?e.l.j:e.C;if(a=e.C<a?a:e.C,t(r<=e.l.o),r>a){var i=e.l.width,o=n.ca,s=n.tb+i*a,l=e.V,c=e.Ba+e.c*a,u=e.gc;t(1==e.ab),t(3==u[0].hc),Yr(u[0],a,r,l,c,o,s),Ce(n,a,r,o,s,i)}e.C=e.Ma=r}function Ae(e,r,n,a,i,o,s){var l=e.$/a,c=e.$%a,u=e.m,h=e.s,f=n+e.$,d=f;i=n+a*i;var p=n+a*o,g=280+h.ua,m=e.Pb?l:16777216,v=0<h.ua?h.Wa:null,b=h.wc,y=f<p?xe(h,c,l):null;t(e.C<o),t(p<=i);var x=!1;e:for(;;){for(;x||f<p;){var w=0;if(l>=m){var A=f-n;t((m=e).Pb),m.wd=m.m,m.xd=A,0<m.s.ua&&I(m.s.Wa,m.s.vb),m=l+ea}if(c&b||(y=xe(h,c,l)),t(null!=y),y.Qb&&(r[f]=y.qb,x=!0),!x)if(k(u),y.jc){w=u,A=r;var N=f,E=y.pd[_(w)&jr-1];t(y.jc),256>E.g?(C(w,w.u+E.g),A[N]=E.value,w=0):(C(w,w.u+E.g-256),t(256<=E.value),w=E.value),0==w&&(x=!0)}else w=be(y.G[0],y.H[0],u);if(u.h)break;if(x||256>w){if(!x)if(y.nd)r[f]=(y.qb|w<<8)>>>0;else{if(k(u),x=be(y.G[1],y.H[1],u),k(u),A=be(y.G[2],y.H[2],u),N=be(y.G[3],y.H[3],u),u.h)break;r[f]=(N<<24|x<<16|w<<8|A)>>>0}if(x=!1,++f,++c>=a&&(c=0,++l,null!=s&&l<=o&&!(l%16)&&s(e,l),null!=v))for(;d<f;)w=r[d++],v.X[(506832829*w&4294967295)>>>v.Mb]=w}else if(280>w){if(w=me(w-256,u),A=be(y.G[4],y.H[4],u),k(u),A=ve(a,A=me(A,u)),u.h)break;if(f-n<A||i-f<w)break e;for(N=0;N<w;++N)r[f+N]=r[f+N-A];for(f+=w,c+=w;c>=a;)c-=a,++l,null!=s&&l<=o&&!(l%16)&&s(e,l);if(t(f<=i),c&b&&(y=xe(h,c,l)),null!=v)for(;d<f;)w=r[d++],v.X[(506832829*w&4294967295)>>>v.Mb]=w}else{if(!(w<g))break e;for(x=w-280,t(null!=v);d<f;)w=r[d++],v.X[(506832829*w&4294967295)>>>v.Mb]=w;w=f,t(!(x>>>(A=v).Xa)),r[w]=A.X[x],x=!0}x||t(u.h==S(u))}if(e.Pb&&u.h&&f<i)t(e.m.h),e.a=5,e.m=e.wd,e.$=e.xd,0<e.s.ua&&I(e.s.vb,e.s.Wa);else{if(u.h)break e;null!=s&&s(e,l>o?o:l),e.a=0,e.$=f-n}return 1}return e.a=3,0}function Ne(e){t(null!=e),e.vc=null,e.yc=null,e.Ya=null;var r=e.Wa;null!=r&&(r.X=null),e.vb=null,t(null!=e)}function Ee(){var t=new or;return null==t?null:(t.a=0,t.xb=ga,re("Predictor","VP8LPredictors"),re("Predictor","VP8LPredictors_C"),re("PredictorAdd","VP8LPredictorsAdd"),re("PredictorAdd","VP8LPredictorsAdd_C"),Wr=W,Zr=X,Qr=K,en=J,tn=Z,rn=Q,nn=ee,e.VP8LMapColor32b=Xr,e.VP8LMapColor8b=Kr,t)}function Le(e,r,n,s,l){var c=1,f=[e],p=[r],g=s.m,m=s.s,v=null,b=0;e:for(;;){if(n)for(;c&&y(g,1);){var x=f,w=p,S=s,A=1,N=S.m,E=S.gc[S.ab],L=y(N,2);if(S.Oc&1<<L)c=0;else{switch(S.Oc|=1<<L,E.hc=L,E.Ea=x[0],E.nc=w[0],E.K=[null],++S.ab,t(4>=S.ab),L){case 0:case 1:E.b=y(N,3)+2,A=Le(R(E.Ea,E.b),R(E.nc,E.b),0,S,E.K),E.K=E.K[0];break;case 3:var M,F=y(N,8)+1,T=16<F?0:4<F?1:2<F?2:3;if(x[0]=R(E.Ea,T),E.b=T,M=A=Le(F,1,0,S,E.K)){var I,O=F,P=E,B=1<<(8>>P.b),V=i(B);if(null==V)M=0;else{var z=P.K[0],U=P.w;for(V[0]=P.K[0][0],I=1;I<1*O;++I)V[I]=j(z[U+I],V[I-1]);for(;I<4*B;++I)V[I]=0;P.K[0]=null,P.K[0]=V,M=1}}A=M;break;case 2:break;default:t(0)}c=A}}if(f=f[0],p=p[0],c&&y(g,1)&&!(c=1<=(b=y(g,4))&&11>=b)){s.a=3;break e}var H;if(H=c)t:{var q,G,W,$=s,X=f,Y=p,K=b,J=n,Z=$.m,Q=$.s,ee=[null],te=1,re=0,ne=Qn[K];r:for(;;){if(J&&y(Z,1)){var ae=y(Z,3)+2,ie=R(X,ae),oe=R(Y,ae),se=ie*oe;if(!Le(ie,oe,0,$,ee))break r;for(ee=ee[0],Q.xc=ae,q=0;q<se;++q){var le=ee[q]>>8&65535;ee[q]=le,le>=te&&(te=le+1)}}if(Z.h)break r;for(G=0;5>G;++G){var ce=Yn[G];!G&&0<K&&(ce+=1<<K),re<ce&&(re=ce)}var ue=o(te*ne,h),he=te,fe=o(he,d);if(null==fe)var de=null;else t(65536>=he),de=fe;var pe=i(re);if(null==de||null==pe||null==ue){$.a=1;break r}var ge=ue;for(q=W=0;q<te;++q){var me=de[q],ve=me.G,be=me.H,xe=0,we=1,_e=0;for(G=0;5>G;++G){ce=Yn[G],ve[G]=ge,be[G]=W,!G&&0<K&&(ce+=1<<K);n:{var Se,Ce=ce,ke=$,Ee=pe,Me=ge,Fe=W,Te=0,De=ke.m,Ie=y(De,1);if(a(Ee,0,0,Ce),Ie){var Oe=y(De,1)+1,Pe=y(De,1),Re=y(De,0==Pe?1:8);Ee[Re]=1,2==Oe&&(Ee[Re=y(De,8)]=1);var je=1}else{var Be=i(19),Ve=y(De,4)+4;if(19<Ve){ke.a=3;var ze=0;break n}for(Se=0;Se<Ve;++Se)Be[Jn[Se]]=y(De,3);var Ue=void 0,He=void 0,qe=ke,Ge=Be,We=Ce,$e=Ee,Xe=0,Ye=qe.m,Ke=8,Je=o(128,h);a:for(;u(Je,0,7,Ge,19);){if(y(Ye,1)){var Ze=2+2*y(Ye,3);if((Ue=2+y(Ye,Ze))>We)break a}else Ue=We;for(He=0;He<We&&Ue--;){k(Ye);var Qe=Je[0+(127&_(Ye))];C(Ye,Ye.u+Qe.g);var et=Qe.value;if(16>et)$e[He++]=et,0!=et&&(Ke=et);else{var tt=16==et,rt=et-16,nt=Xn[rt],at=y(Ye,$n[rt])+nt;if(He+at>We)break a;for(var it=tt?Ke:0;0<at--;)$e[He++]=it}}Xe=1;break a}Xe||(qe.a=3),je=Xe}(je=je&&!De.h)&&(Te=u(Me,Fe,8,Ee,Ce)),je&&0!=Te?ze=Te:(ke.a=3,ze=0)}if(0==ze)break r;if(we&&1==Kn[G]&&(we=0==ge[W].g),xe+=ge[W].g,W+=ze,3>=G){var ot,st=pe[0];for(ot=1;ot<ce;++ot)pe[ot]>st&&(st=pe[ot]);_e+=st}}if(me.nd=we,me.Qb=0,we&&(me.qb=(ve[3][be[3]+0].value<<24|ve[1][be[1]+0].value<<16|ve[2][be[2]+0].value)>>>0,0==xe&&256>ve[0][be[0]+0].value&&(me.Qb=1,me.qb+=ve[0][be[0]+0].value<<8)),me.jc=!me.Qb&&6>_e,me.jc){var lt,ct=me;for(lt=0;lt<jr;++lt){var ut=lt,ht=ct.pd[ut],ft=ct.G[0][ct.H[0]+ut];256<=ft.value?(ht.g=ft.g+256,ht.value=ft.value):(ht.g=0,ht.value=0,ut>>=ye(ft,8,ht),ut>>=ye(ct.G[1][ct.H[1]+ut],16,ht),ut>>=ye(ct.G[2][ct.H[2]+ut],0,ht),ye(ct.G[3][ct.H[3]+ut],24,ht))}}}Q.vc=ee,Q.Wb=te,Q.Ya=de,Q.yc=ue,H=1;break t}H=0}if(!(c=H)){s.a=3;break e}if(0<b){if(m.ua=1<<b,!D(m.Wa,b)){s.a=1,c=0;break e}}else m.ua=0;var dt=s,pt=f,gt=p,mt=dt.s,vt=mt.xc;if(dt.c=pt,dt.i=gt,mt.md=R(pt,vt),mt.wc=0==vt?-1:(1<<vt)-1,n){s.xb=pa;break e}if(null==(v=i(f*p))){s.a=1,c=0;break e}c=(c=Ae(s,v,0,f,p,p,null))&&!g.h;break e}return c?(null!=l?l[0]=v:(t(null==v),t(n)),s.$=0,n||Ne(m)):Ne(m),c}function Me(e,r){var n=e.c*e.i,a=n+r+16*r;return t(e.c<=r),e.V=i(a),null==e.V?(e.Ta=null,e.Ua=0,e.a=1,0):(e.Ta=e.V,e.Ua=e.Ba+n+r,1)}function Fe(e,r){var n=e.C,a=r-n,i=e.V,o=e.Ba+e.c*n;for(t(r<=e.l.o);0<a;){var s=16<a?16:a,l=e.l.ma,c=e.l.width,u=c*s,h=l.ca,f=l.tb+c*n,d=e.Ta,p=e.Ua;we(e,s,i,o),An(d,p,h,f,u),Ce(l,n,n+s,h,f,c),a-=s,i+=s*e.c,n+=s}t(n==r),e.C=e.Ma=r}function Te(){this.ub=this.yd=this.td=this.Rb=0}function De(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ie(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function Oe(){this.Yb=function(){var e=[];return function t(e,r,n){for(var a=n[r],i=0;i<a&&(e.push(n.length>r+1?[]:0),!(n.length<r+1));i++)t(e[i],r+1,n)}(e,0,[3,11]),e}()}function Pe(){this.jb=i(3),this.Wc=s([4,8],Oe),this.Xc=s([4,17],Oe)}function Re(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function je(){this.ld=this.La=this.dd=this.tc=0}function Be(){this.Na=this.la=0}function Ve(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function ze(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ue(){this.uc=this.M=this.Nb=0,this.wa=Array(new je),this.Y=0,this.ya=Array(new ze),this.aa=0,this.l=new We}function He(){this.y=i(16),this.f=i(8),this.ea=i(8)}function qe(){this.cb=this.a=0,this.sc="",this.m=new x,this.Od=new Te,this.Kc=new De,this.ed=new Re,this.Qa=new Ie,this.Ic=this.$c=this.Aa=0,this.D=new Ue,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,x),this.ia=0,this.pb=o(4,Ve),this.Pa=new Pe,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new He),this.Hd=0,this.rb=Array(new Be),this.sb=0,this.wa=Array(new je),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new ze),this.L=this.aa=0,this.gd=s([4,2],je),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Ge(e,t){return 0>e?0:e>t?t:e}function We(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function $e(){var e=new qe;return null!=e&&(e.a=0,e.sc="OK",e.cb=0,e.Xb=0,na||(na=Je)),e}function Xe(e,t,r){return 0==e.a&&(e.a=t,e.sc=r,e.cb=0),0}function Ye(e,t,r){return 3<=r&&157==e[t+0]&&1==e[t+1]&&42==e[t+2]}function Ke(e,r){if(null==e)return 0;if(e.a=0,e.sc="OK",null==r)return Xe(e,2,"null VP8Io passed to VP8GetHeaders()");var n=r.data,i=r.w,o=r.ha;if(4>o)return Xe(e,7,"Truncated header.");var s=n[i+0]|n[i+1]<<8|n[i+2]<<16,l=e.Od;if(l.Rb=!(1&s),l.td=s>>1&7,l.yd=s>>4&1,l.ub=s>>5,3<l.td)return Xe(e,3,"Incorrect keyframe parameters.");if(!l.yd)return Xe(e,4,"Frame not displayable.");i+=3,o-=3;var c=e.Kc;if(l.Rb){if(7>o)return Xe(e,7,"cannot parse picture header");if(!Ye(n,i,o))return Xe(e,3,"Bad code word");c.c=16383&(n[i+4]<<8|n[i+3]),c.Td=n[i+4]>>6,c.i=16383&(n[i+6]<<8|n[i+5]),c.Ud=n[i+6]>>6,i+=7,o-=7,e.za=c.c+15>>4,e.Ub=c.i+15>>4,r.width=c.c,r.height=c.i,r.Da=0,r.j=0,r.v=0,r.va=r.width,r.o=r.height,r.da=0,r.ib=r.width,r.hb=r.height,r.U=r.width,r.T=r.height,a((s=e.Pa).jb,0,255,s.jb.length),t(null!=(s=e.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,a(s.Zb,0,0,s.Zb.length),a(s.Lb,0,0,s.Lb)}if(l.ub>o)return Xe(e,7,"bad partition length");p(s=e.m,n,i,l.ub),i+=l.ub,o-=l.ub,l.Rb&&(c.Ld=N(s),c.Kd=N(s)),c=e.Qa;var u,h=e.Pa;if(t(null!=s),t(null!=c),c.Cb=N(s),c.Cb){if(c.Bb=N(s),N(s)){for(c.Fb=N(s),u=0;4>u;++u)c.Zb[u]=N(s)?m(s,7):0;for(u=0;4>u;++u)c.Lb[u]=N(s)?m(s,6):0}if(c.Bb)for(u=0;3>u;++u)h.jb[u]=N(s)?g(s,8):255}else c.Bb=0;if(s.Ka)return Xe(e,3,"cannot parse segment header");if((c=e.ed).zd=N(s),c.Tb=g(s,6),c.wb=g(s,3),c.Pc=N(s),c.Pc&&N(s)){for(h=0;4>h;++h)N(s)&&(c.vd[h]=m(s,6));for(h=0;4>h;++h)N(s)&&(c.od[h]=m(s,6))}if(e.L=0==c.Tb?0:c.zd?1:2,s.Ka)return Xe(e,3,"cannot parse filter header");var f=o;if(o=u=i,i=u+f,c=f,e.Xb=(1<<g(e.m,2))-1,f<3*(h=e.Xb))n=7;else{for(u+=3*h,c-=3*h,f=0;f<h;++f){var d=n[o+0]|n[o+1]<<8|n[o+2]<<16;d>c&&(d=c),p(e.Jc[+f],n,u,d),u+=d,c-=d,o+=3}p(e.Jc[+h],n,u,c),n=u<i?0:5}if(0!=n)return Xe(e,n,"cannot parse partitions");for(n=g(u=e.m,7),o=N(u)?m(u,4):0,i=N(u)?m(u,4):0,c=N(u)?m(u,4):0,h=N(u)?m(u,4):0,u=N(u)?m(u,4):0,f=e.Qa,d=0;4>d;++d){if(f.Cb){var v=f.Zb[d];f.Fb||(v+=n)}else{if(0<d){e.pb[d]=e.pb[0];continue}v=n}var b=e.pb[d];b.Sc[0]=ta[Ge(v+o,127)],b.Sc[1]=ra[Ge(v+0,127)],b.Eb[0]=2*ta[Ge(v+i,127)],b.Eb[1]=101581*ra[Ge(v+c,127)]>>16,8>b.Eb[1]&&(b.Eb[1]=8),b.Qc[0]=ta[Ge(v+h,117)],b.Qc[1]=ra[Ge(v+u,127)],b.lc=v+u}if(!l.Rb)return Xe(e,4,"Not a key frame.");for(N(s),l=e.Pa,n=0;4>n;++n){for(o=0;8>o;++o)for(i=0;3>i;++i)for(c=0;11>c;++c)h=E(s,ca[n][o][i][c])?g(s,8):sa[n][o][i][c],l.Wc[n][o].Yb[i][c]=h;for(o=0;17>o;++o)l.Xc[n][o]=l.Wc[n][ua[o]]}return e.kc=N(s),e.kc&&(e.Bd=g(s,8)),e.cb=1}function Je(e,t,r,n,a,i,o){var s=t[a].Yb[r];for(r=0;16>a;++a){if(!E(e,s[r+0]))return a;for(;!E(e,s[r+1]);)if(s=t[++a].Yb[0],r=0,16==a)return 16;var l=t[a+1].Yb;if(E(e,s[r+2])){var c=e,u=0;if(E(c,(f=s)[(h=r)+3]))if(E(c,f[h+6])){for(s=0,h=2*(u=E(c,f[h+8]))+(f=E(c,f[h+9+u])),u=0,f=aa[h];f[s];++s)u+=u+E(c,f[s]);u+=3+(8<<h)}else E(c,f[h+7])?(u=7+2*E(c,165),u+=E(c,145)):u=5+E(c,159);else u=E(c,f[h+4])?3+E(c,f[h+5]):2;s=l[2]}else u=1,s=l[1];l=o+ia[a],0>(c=e).b&&A(c);var h,f=c.b,d=(h=c.Ca>>1)-(c.I>>f)>>31;--c.b,c.Ca+=d,c.Ca|=1,c.I-=(h+1&d)<<f,i[l]=((u^d)-d)*n[(0<a)+0]}return 16}function Ze(e){var t=e.rb[e.sb-1];t.la=0,t.Na=0,a(e.zc,0,0,e.zc.length),e.ja=0}function Qe(e,r){if(null==e)return 0;if(null==r)return Xe(e,2,"NULL VP8Io parameter in VP8Decode().");if(!e.cb&&!Ke(e,r))return 0;if(t(e.cb),null==r.ac||r.ac(r)){r.ob&&(e.L=0);var s=Ba[e.L];if(2==e.L?(e.yb=0,e.zb=0):(e.yb=r.v-s>>4,e.zb=r.j-s>>4,0>e.yb&&(e.yb=0),0>e.zb&&(e.zb=0)),e.Va=r.o+15+s>>4,e.Hb=r.va+15+s>>4,e.Hb>e.za&&(e.Hb=e.za),e.Va>e.Ub&&(e.Va=e.Ub),0<e.L){var l=e.ed;for(s=0;4>s;++s){var c;if(e.Qa.Cb){var u=e.Qa.Lb[s];e.Qa.Fb||(u+=l.Tb)}else u=l.Tb;for(c=0;1>=c;++c){var h=e.gd[s][c],f=u;if(l.Pc&&(f+=l.vd[0],c&&(f+=l.od[0])),0<(f=0>f?0:63<f?63:f)){var d=f;0<l.wb&&(d=4<l.wb?d>>2:d>>1)>9-l.wb&&(d=9-l.wb),1>d&&(d=1),h.dd=d,h.tc=2*f+d,h.ld=40<=f?2:15<=f?1:0}else h.tc=0;h.La=c}}}s=0}else Xe(e,6,"Frame setup failed"),s=e.a;if(s=0==s){if(s){e.$c=0,0<e.Aa||(e.Ic=za);e:{s=e.Ic,l=4*(d=e.za);var p=32*d,g=d+1,m=0<e.L?d*(0<e.Aa?2:1):0,v=(2==e.Aa?2:1)*d;if((h=l+832+(c=3*(16*s+Ba[e.L])/2*p)+(u=null!=e.Fa&&0<e.Fa.length?e.Kc.c*e.Kc.i:0))!=h)s=0;else{if(h>e.Vb){if(e.Vb=0,e.Ec=i(h),e.Fc=0,null==e.Ec){s=Xe(e,1,"no memory during frame initialization.");break e}e.Vb=h}h=e.Ec,f=e.Fc,e.Ac=h,e.Bc=f,f+=l,e.Gd=o(p,He),e.Hd=0,e.rb=o(g+1,Be),e.sb=1,e.wa=m?o(m,je):null,e.Y=0,e.D.Nb=0,e.D.wa=e.wa,e.D.Y=e.Y,0<e.Aa&&(e.D.Y+=d),t(!0),e.oc=h,e.pc=f,f+=832,e.ya=o(v,ze),e.aa=0,e.D.ya=e.ya,e.D.aa=e.aa,2==e.Aa&&(e.D.aa+=d),e.R=16*d,e.B=8*d,d=(p=Ba[e.L])*e.R,p=p/2*e.B,e.sa=h,e.ta=f+d,e.qa=e.sa,e.ra=e.ta+16*s*e.R+p,e.Ha=e.qa,e.Ia=e.ra+8*s*e.B+p,e.$c=0,f+=c,e.mb=u?h:null,e.nb=u?f:null,t(f+u<=e.Fc+e.Vb),Ze(e),a(e.Ac,e.Bc,0,l),s=1}}if(s){if(r.ka=0,r.y=e.sa,r.O=e.ta,r.f=e.qa,r.N=e.ra,r.ea=e.Ha,r.Vd=e.Ia,r.fa=e.R,r.Rc=e.B,r.F=null,r.J=0,!Fn){for(s=-255;255>=s;++s)Nn[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)En[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)Ln[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)Mn[255+s]=0>s?0:255<s?255:s;Fn=1}an=ct,on=it,ln=ot,cn=st,un=lt,sn=at,hn=Xt,fn=Yt,dn=Zt,pn=Qt,gn=Kt,mn=Jt,vn=er,bn=tr,yn=Ut,xn=Ht,wn=qt,_n=Gt,fa[0]=Ct,fa[1]=ht,fa[2]=_t,fa[3]=St,fa[4]=kt,fa[5]=Nt,fa[6]=At,fa[7]=Et,fa[8]=Mt,fa[9]=Lt,ha[0]=vt,ha[1]=dt,ha[2]=pt,ha[3]=gt,ha[4]=bt,ha[5]=yt,ha[6]=xt,da[0]=It,da[1]=ft,da[2]=Ft,da[3]=Tt,da[4]=Pt,da[5]=Ot,da[6]=Rt,s=1}else s=0}s&&(s=function(e,r){for(e.M=0;e.M<e.Va;++e.M){var o,s=e.Jc[e.M&e.Xb],l=e.m,c=e;for(o=0;o<c.za;++o){var u=l,h=c,f=h.Ac,d=h.Bc+4*o,p=h.zc,g=h.ya[h.aa+o];if(h.Qa.Bb?g.$b=E(u,h.Pa.jb[0])?2+E(u,h.Pa.jb[2]):E(u,h.Pa.jb[1]):g.$b=0,h.kc&&(g.Ad=E(u,h.Bd)),g.Za=!E(u,145)+0,g.Za){var m=g.Ob,v=0;for(h=0;4>h;++h){var b,y=p[0+h];for(b=0;4>b;++b){y=la[f[d+b]][y];for(var x=oa[E(u,y[0])];0<x;)x=oa[2*x+E(u,y[x])];y=-x,f[d+b]=y}n(m,v,f,d,4),v+=4,p[0+h]=y}}else y=E(u,156)?E(u,128)?1:3:E(u,163)?2:0,g.Ob[0]=y,a(f,d,y,4),a(p,0,y,4);g.Dd=E(u,142)?E(u,114)?E(u,183)?1:3:2:0}if(c.m.Ka)return Xe(e,7,"Premature end-of-partition0 encountered.");for(;e.ja<e.za;++e.ja){if(c=s,u=(l=e).rb[l.sb-1],f=l.rb[l.sb+l.ja],o=l.ya[l.aa+l.ja],d=l.kc?o.Ad:0)u.la=f.la=0,o.Za||(u.Na=f.Na=0),o.Hc=0,o.Gc=0,o.ia=0;else{var w,_;if(u=f,f=c,d=l.Pa.Xc,p=l.ya[l.aa+l.ja],g=l.pb[p.$b],h=p.ad,m=0,v=l.rb[l.sb-1],y=b=0,a(h,m,0,384),p.Za)var S=0,C=d[3];else{x=i(16);var k=u.Na+v.Na;if(k=na(f,d[1],k,g.Eb,0,x,0),u.Na=v.Na=(0<k)+0,1<k)an(x,0,h,m);else{var A=x[0]+3>>3;for(x=0;256>x;x+=16)h[m+x]=A}S=1,C=d[0]}var N=15&u.la,L=15&v.la;for(x=0;4>x;++x){var M=1&L;for(A=_=0;4>A;++A)N=N>>1|(M=(k=na(f,C,k=M+(1&N),g.Sc,S,h,m))>S)<<7,_=_<<2|(3<k?3:1<k?2:0!=h[m+0]),m+=16;N>>=4,L=L>>1|M<<7,b=(b<<8|_)>>>0}for(C=N,S=L>>4,w=0;4>w;w+=2){for(_=0,N=u.la>>4+w,L=v.la>>4+w,x=0;2>x;++x){for(M=1&L,A=0;2>A;++A)k=M+(1&N),N=N>>1|(M=0<(k=na(f,d[2],k,g.Qc,0,h,m)))<<3,_=_<<2|(3<k?3:1<k?2:0!=h[m+0]),m+=16;N>>=2,L=L>>1|M<<5}y|=_<<4*w,C|=N<<4<<w,S|=(240&L)<<w}u.la=C,v.la=S,p.Hc=b,p.Gc=y,p.ia=43690&y?0:g.ia,d=!(b|y)}if(0<l.L&&(l.wa[l.Y+l.ja]=l.gd[o.$b][o.Za],l.wa[l.Y+l.ja].La|=!d),c.Ka)return Xe(e,7,"Premature end-of-file encountered.")}if(Ze(e),l=r,c=1,o=(s=e).D,u=0<s.L&&s.M>=s.zb&&s.M<=s.Va,0==s.Aa)e:{if(o.M=s.M,o.uc=u,Dr(s,o),c=1,o=(_=s.D).Nb,u=(y=Ba[s.L])*s.R,f=y/2*s.B,x=16*o*s.R,A=8*o*s.B,d=s.sa,p=s.ta-u+x,g=s.qa,h=s.ra-f+A,m=s.Ha,v=s.Ia-f+A,L=0==(N=_.M),b=N>=s.Va-1,2==s.Aa&&Dr(s,_),_.uc)for(M=(k=s).D.M,t(k.D.uc),_=k.yb;_<k.Hb;++_){S=_,C=M;var F=(T=(z=k).D).Nb;w=z.R;var T=T.wa[T.Y+S],D=z.sa,I=z.ta+16*F*w+16*S,O=T.dd,P=T.tc;if(0!=P)if(t(3<=P),1==z.L)0<S&&xn(D,I,w,P+4),T.La&&_n(D,I,w,P),0<C&&yn(D,I,w,P+4),T.La&&wn(D,I,w,P);else{var R=z.B,j=z.qa,B=z.ra+8*F*R+8*S,V=z.Ha,z=z.Ia+8*F*R+8*S;F=T.ld,0<S&&(fn(D,I,w,P+4,O,F),pn(j,B,V,z,R,P+4,O,F)),T.La&&(mn(D,I,w,P,O,F),bn(j,B,V,z,R,P,O,F)),0<C&&(hn(D,I,w,P+4,O,F),dn(j,B,V,z,R,P+4,O,F)),T.La&&(gn(D,I,w,P,O,F),vn(j,B,V,z,R,P,O,F))}}if(s.ia&&alert("todo:DitherRow"),null!=l.put){if(_=16*N,N=16*(N+1),L?(l.y=s.sa,l.O=s.ta+x,l.f=s.qa,l.N=s.ra+A,l.ea=s.Ha,l.W=s.Ia+A):(_-=y,l.y=d,l.O=p,l.f=g,l.N=h,l.ea=m,l.W=v),b||(N-=y),N>l.o&&(N=l.o),l.F=null,l.J=null,null!=s.Fa&&0<s.Fa.length&&_<N&&(l.J=hr(s,l,_,N-_),l.F=s.mb,null==l.F&&0==l.F.length)){c=Xe(s,3,"Could not decode alpha data.");break e}_<l.j&&(y=l.j-_,_=l.j,t(!(1&y)),l.O+=s.R*y,l.N+=s.B*(y>>1),l.W+=s.B*(y>>1),null!=l.F&&(l.J+=l.width*y)),_<N&&(l.O+=l.v,l.N+=l.v>>1,l.W+=l.v>>1,null!=l.F&&(l.J+=l.v),l.ka=_-l.j,l.U=l.va-l.v,l.T=N-_,c=l.put(l))}o+1!=s.Ic||b||(n(s.sa,s.ta-u,d,p+16*s.R,u),n(s.qa,s.ra-f,g,h+8*s.B,f),n(s.Ha,s.Ia-f,m,v+8*s.B,f))}if(!c)return Xe(e,6,"Output aborted.")}return 1}(e,r)),null!=r.bc&&r.bc(r),s&=1}return s?(e.cb=0,s):0}function et(e,t,r,n,a){a=e[t+r+32*n]+(a>>3),e[t+r+32*n]=-256&a?0>a?0:255:a}function tt(e,t,r,n,a,i){et(e,t,0,r,n+a),et(e,t,1,r,n+i),et(e,t,2,r,n-i),et(e,t,3,r,n-a)}function rt(e){return(20091*e>>16)+e}function nt(e,t,r,n){var a,o=0,s=i(16);for(a=0;4>a;++a){var l=e[t+0]+e[t+8],c=e[t+0]-e[t+8],u=(35468*e[t+4]>>16)-rt(e[t+12]),h=rt(e[t+4])+(35468*e[t+12]>>16);s[o+0]=l+h,s[o+1]=c+u,s[o+2]=c-u,s[o+3]=l-h,o+=4,t++}for(a=o=0;4>a;++a)l=(e=s[o+0]+4)+s[o+8],c=e-s[o+8],u=(35468*s[o+4]>>16)-rt(s[o+12]),et(r,n,0,0,l+(h=rt(s[o+4])+(35468*s[o+12]>>16))),et(r,n,1,0,c+u),et(r,n,2,0,c-u),et(r,n,3,0,l-h),o++,n+=32}function at(e,t,r,n){var a=e[t+0]+4,i=35468*e[t+4]>>16,o=rt(e[t+4]),s=35468*e[t+1]>>16;tt(r,n,0,a+o,e=rt(e[t+1]),s),tt(r,n,1,a+i,e,s),tt(r,n,2,a-i,e,s),tt(r,n,3,a-o,e,s)}function it(e,t,r,n,a){nt(e,t,r,n),a&&nt(e,t+16,r,n+4)}function ot(e,t,r,n){on(e,t+0,r,n,1),on(e,t+32,r,n+128,1)}function st(e,t,r,n){var a;for(e=e[t+0]+4,a=0;4>a;++a)for(t=0;4>t;++t)et(r,n,t,a,e)}function lt(e,t,r,n){e[t+0]&&cn(e,t+0,r,n),e[t+16]&&cn(e,t+16,r,n+4),e[t+32]&&cn(e,t+32,r,n+128),e[t+48]&&cn(e,t+48,r,n+128+4)}function ct(e,t,r,n){var a,o=i(16);for(a=0;4>a;++a){var s=e[t+0+a]+e[t+12+a],l=e[t+4+a]+e[t+8+a],c=e[t+4+a]-e[t+8+a],u=e[t+0+a]-e[t+12+a];o[0+a]=s+l,o[8+a]=s-l,o[4+a]=u+c,o[12+a]=u-c}for(a=0;4>a;++a)s=(e=o[0+4*a]+3)+o[3+4*a],l=o[1+4*a]+o[2+4*a],c=o[1+4*a]-o[2+4*a],u=e-o[3+4*a],r[n+0]=s+l>>3,r[n+16]=u+c>>3,r[n+32]=s-l>>3,r[n+48]=u-c>>3,n+=64}function ut(e,t,r){var n,a=t-32,i=In,o=255-e[a-1];for(n=0;n<r;++n){var s,l=i,c=o+e[t-1];for(s=0;s<r;++s)e[t+s]=l[c+e[a+s]];t+=32}}function ht(e,t){ut(e,t,4)}function ft(e,t){ut(e,t,8)}function dt(e,t){ut(e,t,16)}function pt(e,t){var r;for(r=0;16>r;++r)n(e,t+32*r,e,t-32,16)}function gt(e,t){var r;for(r=16;0<r;--r)a(e,t,e[t-1],16),t+=32}function mt(e,t,r){var n;for(n=0;16>n;++n)a(t,r+32*n,e,16)}function vt(e,t){var r,n=16;for(r=0;16>r;++r)n+=e[t-1+32*r]+e[t+r-32];mt(n>>5,e,t)}function bt(e,t){var r,n=8;for(r=0;16>r;++r)n+=e[t-1+32*r];mt(n>>4,e,t)}function yt(e,t){var r,n=8;for(r=0;16>r;++r)n+=e[t+r-32];mt(n>>4,e,t)}function xt(e,t){mt(128,e,t)}function wt(e,t,r){return e+2*t+r+2>>2}function _t(e,t){var r,a=t-32;for(a=new Uint8Array([wt(e[a-1],e[a+0],e[a+1]),wt(e[a+0],e[a+1],e[a+2]),wt(e[a+1],e[a+2],e[a+3]),wt(e[a+2],e[a+3],e[a+4])]),r=0;4>r;++r)n(e,t+32*r,a,0,a.length)}function St(e,t){var r=e[t-1],n=e[t-1+32],a=e[t-1+64],i=e[t-1+96];L(e,t+0,16843009*wt(e[t-1-32],r,n)),L(e,t+32,16843009*wt(r,n,a)),L(e,t+64,16843009*wt(n,a,i)),L(e,t+96,16843009*wt(a,i,i))}function Ct(e,t){var r,n=4;for(r=0;4>r;++r)n+=e[t+r-32]+e[t-1+32*r];for(n>>=3,r=0;4>r;++r)a(e,t+32*r,n,4)}function kt(e,t){var r=e[t-1+0],n=e[t-1+32],a=e[t-1+64],i=e[t-1-32],o=e[t+0-32],s=e[t+1-32],l=e[t+2-32],c=e[t+3-32];e[t+0+96]=wt(n,a,e[t-1+96]),e[t+1+96]=e[t+0+64]=wt(r,n,a),e[t+2+96]=e[t+1+64]=e[t+0+32]=wt(i,r,n),e[t+3+96]=e[t+2+64]=e[t+1+32]=e[t+0+0]=wt(o,i,r),e[t+3+64]=e[t+2+32]=e[t+1+0]=wt(s,o,i),e[t+3+32]=e[t+2+0]=wt(l,s,o),e[t+3+0]=wt(c,l,s)}function At(e,t){var r=e[t+1-32],n=e[t+2-32],a=e[t+3-32],i=e[t+4-32],o=e[t+5-32],s=e[t+6-32],l=e[t+7-32];e[t+0+0]=wt(e[t+0-32],r,n),e[t+1+0]=e[t+0+32]=wt(r,n,a),e[t+2+0]=e[t+1+32]=e[t+0+64]=wt(n,a,i),e[t+3+0]=e[t+2+32]=e[t+1+64]=e[t+0+96]=wt(a,i,o),e[t+3+32]=e[t+2+64]=e[t+1+96]=wt(i,o,s),e[t+3+64]=e[t+2+96]=wt(o,s,l),e[t+3+96]=wt(s,l,l)}function Nt(e,t){var r=e[t-1+0],n=e[t-1+32],a=e[t-1+64],i=e[t-1-32],o=e[t+0-32],s=e[t+1-32],l=e[t+2-32],c=e[t+3-32];e[t+0+0]=e[t+1+64]=i+o+1>>1,e[t+1+0]=e[t+2+64]=o+s+1>>1,e[t+2+0]=e[t+3+64]=s+l+1>>1,e[t+3+0]=l+c+1>>1,e[t+0+96]=wt(a,n,r),e[t+0+64]=wt(n,r,i),e[t+0+32]=e[t+1+96]=wt(r,i,o),e[t+1+32]=e[t+2+96]=wt(i,o,s),e[t+2+32]=e[t+3+96]=wt(o,s,l),e[t+3+32]=wt(s,l,c)}function Et(e,t){var r=e[t+0-32],n=e[t+1-32],a=e[t+2-32],i=e[t+3-32],o=e[t+4-32],s=e[t+5-32],l=e[t+6-32],c=e[t+7-32];e[t+0+0]=r+n+1>>1,e[t+1+0]=e[t+0+64]=n+a+1>>1,e[t+2+0]=e[t+1+64]=a+i+1>>1,e[t+3+0]=e[t+2+64]=i+o+1>>1,e[t+0+32]=wt(r,n,a),e[t+1+32]=e[t+0+96]=wt(n,a,i),e[t+2+32]=e[t+1+96]=wt(a,i,o),e[t+3+32]=e[t+2+96]=wt(i,o,s),e[t+3+64]=wt(o,s,l),e[t+3+96]=wt(s,l,c)}function Lt(e,t){var r=e[t-1+0],n=e[t-1+32],a=e[t-1+64],i=e[t-1+96];e[t+0+0]=r+n+1>>1,e[t+2+0]=e[t+0+32]=n+a+1>>1,e[t+2+32]=e[t+0+64]=a+i+1>>1,e[t+1+0]=wt(r,n,a),e[t+3+0]=e[t+1+32]=wt(n,a,i),e[t+3+32]=e[t+1+64]=wt(a,i,i),e[t+3+64]=e[t+2+64]=e[t+0+96]=e[t+1+96]=e[t+2+96]=e[t+3+96]=i}function Mt(e,t){var r=e[t-1+0],n=e[t-1+32],a=e[t-1+64],i=e[t-1+96],o=e[t-1-32],s=e[t+0-32],l=e[t+1-32],c=e[t+2-32];e[t+0+0]=e[t+2+32]=r+o+1>>1,e[t+0+32]=e[t+2+64]=n+r+1>>1,e[t+0+64]=e[t+2+96]=a+n+1>>1,e[t+0+96]=i+a+1>>1,e[t+3+0]=wt(s,l,c),e[t+2+0]=wt(o,s,l),e[t+1+0]=e[t+3+32]=wt(r,o,s),e[t+1+32]=e[t+3+64]=wt(n,r,o),e[t+1+64]=e[t+3+96]=wt(a,n,r),e[t+1+96]=wt(i,a,n)}function Ft(e,t){var r;for(r=0;8>r;++r)n(e,t+32*r,e,t-32,8)}function Tt(e,t){var r;for(r=0;8>r;++r)a(e,t,e[t-1],8),t+=32}function Dt(e,t,r){var n;for(n=0;8>n;++n)a(t,r+32*n,e,8)}function It(e,t){var r,n=8;for(r=0;8>r;++r)n+=e[t+r-32]+e[t-1+32*r];Dt(n>>4,e,t)}function Ot(e,t){var r,n=4;for(r=0;8>r;++r)n+=e[t+r-32];Dt(n>>3,e,t)}function Pt(e,t){var r,n=4;for(r=0;8>r;++r)n+=e[t-1+32*r];Dt(n>>3,e,t)}function Rt(e,t){Dt(128,e,t)}function jt(e,t,r){var n=e[t-r],a=e[t+0],i=3*(a-n)+Tn[1020+e[t-2*r]-e[t+r]],o=Dn[112+(i+4>>3)];e[t-r]=In[255+n+Dn[112+(i+3>>3)]],e[t+0]=In[255+a-o]}function Bt(e,t,r,n){var a=e[t+0],i=e[t+r];return On[255+e[t-2*r]-e[t-r]]>n||On[255+i-a]>n}function Vt(e,t,r,n){return 4*On[255+e[t-r]-e[t+0]]+On[255+e[t-2*r]-e[t+r]]<=n}function zt(e,t,r,n,a){var i=e[t-3*r],o=e[t-2*r],s=e[t-r],l=e[t+0],c=e[t+r],u=e[t+2*r],h=e[t+3*r];return 4*On[255+s-l]+On[255+o-c]>n?0:On[255+e[t-4*r]-i]<=a&&On[255+i-o]<=a&&On[255+o-s]<=a&&On[255+h-u]<=a&&On[255+u-c]<=a&&On[255+c-l]<=a}function Ut(e,t,r,n){var a=2*n+1;for(n=0;16>n;++n)Vt(e,t+n,r,a)&&jt(e,t+n,r)}function Ht(e,t,r,n){var a=2*n+1;for(n=0;16>n;++n)Vt(e,t+n*r,1,a)&&jt(e,t+n*r,1)}function qt(e,t,r,n){var a;for(a=3;0<a;--a)Ut(e,t+=4*r,r,n)}function Gt(e,t,r,n){var a;for(a=3;0<a;--a)Ht(e,t+=4,r,n)}function Wt(e,t,r,n,a,i,o,s){for(i=2*i+1;0<a--;){if(zt(e,t,r,i,o))if(Bt(e,t,r,s))jt(e,t,r);else{var l=e,c=t,u=r,h=l[c-2*u],f=l[c-u],d=l[c+0],p=l[c+u],g=l[c+2*u],m=27*(b=Tn[1020+3*(d-f)+Tn[1020+h-p]])+63>>7,v=18*b+63>>7,b=9*b+63>>7;l[c-3*u]=In[255+l[c-3*u]+b],l[c-2*u]=In[255+h+v],l[c-u]=In[255+f+m],l[c+0]=In[255+d-m],l[c+u]=In[255+p-v],l[c+2*u]=In[255+g-b]}t+=n}}function $t(e,t,r,n,a,i,o,s){for(i=2*i+1;0<a--;){if(zt(e,t,r,i,o))if(Bt(e,t,r,s))jt(e,t,r);else{var l=e,c=t,u=r,h=l[c-u],f=l[c+0],d=l[c+u],p=Dn[112+(4+(g=3*(f-h))>>3)],g=Dn[112+(g+3>>3)],m=p+1>>1;l[c-2*u]=In[255+l[c-2*u]+m],l[c-u]=In[255+h+g],l[c+0]=In[255+f-p],l[c+u]=In[255+d-m]}t+=n}}function Xt(e,t,r,n,a,i){Wt(e,t,r,1,16,n,a,i)}function Yt(e,t,r,n,a,i){Wt(e,t,1,r,16,n,a,i)}function Kt(e,t,r,n,a,i){var o;for(o=3;0<o;--o)$t(e,t+=4*r,r,1,16,n,a,i)}function Jt(e,t,r,n,a,i){var o;for(o=3;0<o;--o)$t(e,t+=4,1,r,16,n,a,i)}function Zt(e,t,r,n,a,i,o,s){Wt(e,t,a,1,8,i,o,s),Wt(r,n,a,1,8,i,o,s)}function Qt(e,t,r,n,a,i,o,s){Wt(e,t,1,a,8,i,o,s),Wt(r,n,1,a,8,i,o,s)}function er(e,t,r,n,a,i,o,s){$t(e,t+4*a,a,1,8,i,o,s),$t(r,n+4*a,a,1,8,i,o,s)}function tr(e,t,r,n,a,i,o,s){$t(e,t+4,1,a,8,i,o,s),$t(r,n+4,1,a,8,i,o,s)}function rr(){this.ba=new oe,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new le,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function nr(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function ar(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ir(){this.ua=0,this.Wa=new O,this.vb=new O,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new d,this.yc=new h}function or(){this.xb=this.a=0,this.l=new We,this.ca=new oe,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new w,this.Pb=0,this.wd=new w,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ir,this.ab=0,this.gc=o(4,ar),this.Oc=0}function sr(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new We,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function lr(e,t,r,n,a,i,o){for(e=null==e?0:e[t+0],t=0;t<o;++t)a[i+t]=e+r[n+t]&255,e=a[i+t]}function cr(e,t,r,n,a,i,o){var s;if(null==e)lr(null,null,r,n,a,i,o);else for(s=0;s<o;++s)a[i+s]=e[t+s]+r[n+s]&255}function ur(e,t,r,n,a,i,o){if(null==e)lr(null,null,r,n,a,i,o);else{var s,l=e[t+0],c=l,u=l;for(s=0;s<o;++s)c=u+(l=e[t+s])-c,u=r[n+s]+(-256&c?0>c?0:255:c)&255,c=l,a[i+s]=u}}function hr(e,r,a,o){var s=r.width,l=r.o;if(t(null!=e&&null!=r),0>a||0>=o||a+o>l)return null;if(!e.Cc){if(null==e.ga){var c;if(e.ga=new sr,(c=null==e.ga)||(c=r.width*r.o,t(0==e.Gb.length),e.Gb=i(c),e.Uc=0,null==e.Gb?c=0:(e.mb=e.Gb,e.nb=e.Uc,e.rc=null,c=1),c=!c),!c){c=e.ga;var u=e.Fa,h=e.P,f=e.qc,d=e.mb,p=e.nb,g=h+1,m=f-1,b=c.l;if(t(null!=u&&null!=d&&null!=r),ma[0]=null,ma[1]=lr,ma[2]=cr,ma[3]=ur,c.ca=d,c.tb=p,c.c=r.width,c.i=r.height,t(0<c.c&&0<c.i),1>=f)r=0;else if(c.$a=u[h+0]>>0&3,c.Z=u[h+0]>>2&3,c.Lc=u[h+0]>>4&3,h=u[h+0]>>6&3,0>c.$a||1<c.$a||4<=c.Z||1<c.Lc||h)r=0;else if(b.put=de,b.ac=fe,b.bc=pe,b.ma=c,b.width=r.width,b.height=r.height,b.Da=r.Da,b.v=r.v,b.va=r.va,b.j=r.j,b.o=r.o,c.$a)e:{t(1==c.$a),r=Ee();t:for(;;){if(null==r){r=0;break e}if(t(null!=c),c.mc=r,r.c=c.c,r.i=c.i,r.l=c.l,r.l.ma=c,r.l.width=c.c,r.l.height=c.i,r.a=0,v(r.m,u,g,m),!Le(c.c,c.i,1,r,null))break t;if(1==r.ab&&3==r.gc[0].hc&&Se(r.s)?(c.ic=1,u=r.c*r.i,r.Ta=null,r.Ua=0,r.V=i(u),r.Ba=0,null==r.V?(r.a=1,r=0):r=1):(c.ic=0,r=Me(r,c.c)),!r)break t;r=1;break e}c.mc=null,r=0}else r=m>=c.c*c.i;c=!r}if(c)return null;1!=e.ga.Lc?e.Ga=0:o=l-a}t(null!=e.ga),t(a+o<=l);e:{if(r=(u=e.ga).c,l=u.l.o,0==u.$a){if(g=e.rc,m=e.Vc,b=e.Fa,h=e.P+1+a*r,f=e.mb,d=e.nb+a*r,t(h<=e.P+e.qc),0!=u.Z)for(t(null!=ma[u.Z]),c=0;c<o;++c)ma[u.Z](g,m,b,h,f,d,r),g=f,m=d,d+=r,h+=r;else for(c=0;c<o;++c)n(f,d,b,h,r),g=f,m=d,d+=r,h+=r;e.rc=g,e.Vc=m}else{if(t(null!=u.mc),r=a+o,t(null!=(c=u.mc)),t(r<=c.i),c.C>=r)r=1;else if(u.ic||mr(),u.ic){u=c.V,g=c.Ba,m=c.c;var y=c.i,x=(b=1,h=c.$/m,f=c.$%m,d=c.m,p=c.s,c.$),w=m*y,_=m*r,C=p.wc,A=x<_?xe(p,f,h):null;t(x<=w),t(r<=y),t(Se(p));t:for(;;){for(;!d.h&&x<_;){if(f&C||(A=xe(p,f,h)),t(null!=A),k(d),256>(y=be(A.G[0],A.H[0],d)))u[g+x]=y,++x,++f>=m&&(f=0,++h<=r&&!(h%16)&&ke(c,h));else{if(!(280>y)){b=0;break t}y=me(y-256,d);var N,E=be(A.G[4],A.H[4],d);if(k(d),!(x>=(E=ve(m,E=me(E,d)))&&w-x>=y)){b=0;break t}for(N=0;N<y;++N)u[g+x+N]=u[g+x+N-E];for(x+=y,f+=y;f>=m;)f-=m,++h<=r&&!(h%16)&&ke(c,h);x<_&&f&C&&(A=xe(p,f,h))}t(d.h==S(d))}ke(c,h>r?r:h);break t}!b||d.h&&x<w?(b=0,c.a=d.h?5:3):c.$=x,r=b}else r=Ae(c,c.V,c.Ba,c.c,c.i,r,Fe);if(!r){o=0;break e}}a+o>=l&&(e.Cc=1),o=1}if(!o)return null;if(e.Cc&&(null!=(o=e.ga)&&(o.mc=null),e.ga=null,0<e.Ga))return alert("todo:WebPDequantizeLevels"),null}return e.nb+a*s}function fr(e,t,r,n,a,i){for(;0<a--;){var o,s=e,l=t+(r?1:0),c=e,u=t+(r?0:3);for(o=0;o<n;++o){var h=c[u+4*o];255!=h&&(h*=32897,s[l+4*o+0]=s[l+4*o+0]*h>>23,s[l+4*o+1]=s[l+4*o+1]*h>>23,s[l+4*o+2]=s[l+4*o+2]*h>>23)}t+=i}}function dr(e,t,r,n,a){for(;0<n--;){var i;for(i=0;i<r;++i){var o=e[t+2*i+0],s=15&(c=e[t+2*i+1]),l=4369*s,c=(240&c|c>>4)*l>>16;e[t+2*i+0]=(240&o|o>>4)*l>>16&240|(15&o|o<<4)*l>>16>>4&15,e[t+2*i+1]=240&c|s}t+=a}}function pr(e,t,r,n,a,i,o,s){var l,c,u=255;for(c=0;c<a;++c){for(l=0;l<n;++l){var h=e[t+l];i[o+4*l]=h,u&=h}t+=r,o+=s}return 255!=u}function gr(e,t,r,n,a){var i;for(i=0;i<a;++i)r[n+i]=e[t+i]>>8}function mr(){Sn=fr,Cn=dr,kn=pr,An=gr}function vr(r,n,a){e[r]=function(e,r,i,o,s,l,c,u,h,f,d,p,g,m,v,b,y){var x,w=y-1>>1,_=s[l+0]|c[u+0]<<16,S=h[f+0]|d[p+0]<<16;t(null!=e);var C=3*_+S+131074>>2;for(n(e[r+0],255&C,C>>16,g,m),null!=i&&(C=3*S+_+131074>>2,n(i[o+0],255&C,C>>16,v,b)),x=1;x<=w;++x){var k=s[l+x]|c[u+x]<<16,A=h[f+x]|d[p+x]<<16,N=_+k+S+A+524296,E=N+2*(k+S)>>3;C=E+_>>1,_=(N=N+2*(_+A)>>3)+k>>1,n(e[r+2*x-1],255&C,C>>16,g,m+(2*x-1)*a),n(e[r+2*x-0],255&_,_>>16,g,m+(2*x-0)*a),null!=i&&(C=N+S>>1,_=E+A>>1,n(i[o+2*x-1],255&C,C>>16,v,b+(2*x-1)*a),n(i[o+2*x+0],255&_,_>>16,v,b+(2*x+0)*a)),_=k,S=A}1&y||(C=3*_+S+131074>>2,n(e[r+y-1],255&C,C>>16,g,m+(y-1)*a),null!=i&&(C=3*S+_+131074>>2,n(i[o+y-1],255&C,C>>16,v,b+(y-1)*a)))}}function br(){va[Pn]=ba,va[Rn]=xa,va[jn]=ya,va[Bn]=wa,va[Vn]=_a,va[zn]=Sa,va[Un]=Ca,va[Hn]=xa,va[qn]=wa,va[Gn]=_a,va[Wn]=Sa}function yr(e){return e&~Ma?0>e?0:255:e>>La}function xr(e,t){return yr((19077*e>>8)+(26149*t>>8)-14234)}function wr(e,t,r){return yr((19077*e>>8)-(6419*t>>8)-(13320*r>>8)+8708)}function _r(e,t){return yr((19077*e>>8)+(33050*t>>8)-17685)}function Sr(e,t,r,n,a){n[a+0]=xr(e,r),n[a+1]=wr(e,t,r),n[a+2]=_r(e,t)}function Cr(e,t,r,n,a){n[a+0]=_r(e,t),n[a+1]=wr(e,t,r),n[a+2]=xr(e,r)}function kr(e,t,r,n,a){var i=wr(e,t,r);t=i<<3&224|_r(e,t)>>3,n[a+0]=248&xr(e,r)|i>>5,n[a+1]=t}function Ar(e,t,r,n,a){var i=240&_r(e,t)|15;n[a+0]=240&xr(e,r)|wr(e,t,r)>>4,n[a+1]=i}function Nr(e,t,r,n,a){n[a+0]=255,Sr(e,t,r,n,a+1)}function Er(e,t,r,n,a){Cr(e,t,r,n,a),n[a+3]=255}function Lr(e,t,r,n,a){Sr(e,t,r,n,a),n[a+3]=255}function Ge(e,t){return 0>e?0:e>t?t:e}function Mr(t,r,n){e[t]=function(e,t,a,i,o,s,l,c,u){for(var h=c+(-2&u)*n;c!=h;)r(e[t+0],a[i+0],o[s+0],l,c),r(e[t+1],a[i+0],o[s+0],l,c+n),t+=2,++i,++s,c+=2*n;1&u&&r(e[t+0],a[i+0],o[s+0],l,c)}}function Fr(e,t,r){return 0==r?0==e?0==t?6:5:0==t?4:0:r}function Tr(e,t,r,n,a){switch(e>>>30){case 3:on(t,r,n,a,0);break;case 2:sn(t,r,n,a);break;case 1:cn(t,r,n,a)}}function Dr(e,t){var r,i,o=t.M,s=t.Nb,l=e.oc,c=e.pc+40,u=e.oc,h=e.pc+584,f=e.oc,d=e.pc+600;for(r=0;16>r;++r)l[c+32*r-1]=129;for(r=0;8>r;++r)u[h+32*r-1]=129,f[d+32*r-1]=129;for(0<o?l[c-1-32]=u[h-1-32]=f[d-1-32]=129:(a(l,c-32-1,127,21),a(u,h-32-1,127,9),a(f,d-32-1,127,9)),i=0;i<e.za;++i){var p=t.ya[t.aa+i];if(0<i){for(r=-1;16>r;++r)n(l,c+32*r-4,l,c+32*r+12,4);for(r=-1;8>r;++r)n(u,h+32*r-4,u,h+32*r+4,4),n(f,d+32*r-4,f,d+32*r+4,4)}var g=e.Gd,m=e.Hd+i,v=p.ad,b=p.Hc;if(0<o&&(n(l,c-32,g[m].y,0,16),n(u,h-32,g[m].f,0,8),n(f,d-32,g[m].ea,0,8)),p.Za){var y=l,x=c-32+16;for(0<o&&(i>=e.za-1?a(y,x,g[m].y[15],4):n(y,x,g[m+1].y,0,4)),r=0;4>r;r++)y[x+128+r]=y[x+256+r]=y[x+384+r]=y[x+0+r];for(r=0;16>r;++r,b<<=2)y=l,x=c+ja[r],fa[p.Ob[r]](y,x),Tr(b,v,16*+r,y,x)}else if(y=Fr(i,o,p.Ob[0]),ha[y](l,c),0!=b)for(r=0;16>r;++r,b<<=2)Tr(b,v,16*+r,l,c+ja[r]);for(r=p.Gc,y=Fr(i,o,p.Dd),da[y](u,h),da[y](f,d),b=v,y=u,x=h,255&(p=r>>0)&&(170&p?ln(b,256,y,x):un(b,256,y,x)),p=f,b=d,255&(r>>=8)&&(170&r?ln(v,320,p,b):un(v,320,p,b)),o<e.Ub-1&&(n(g[m].y,0,l,c+480,16),n(g[m].f,0,u,h+224,8),n(g[m].ea,0,f,d+224,8)),r=8*s*e.B,g=e.sa,m=e.ta+16*i+16*s*e.R,v=e.qa,p=e.ra+8*i+r,b=e.Ha,y=e.Ia+8*i+r,r=0;16>r;++r)n(g,m+r*e.R,l,c+32*r,16);for(r=0;8>r;++r)n(v,p+r*e.B,u,h+32*r,8),n(b,y+r*e.B,f,d+32*r,8)}}function Ir(e,n,a,i,o,s,l,c,u){var h=[0],f=[0],d=0,p=null!=u?u.kd:0,g=null!=u?u:new nr;if(null==e||12>a)return 7;g.data=e,g.w=n,g.ha=a,n=[n],a=[a],g.gb=[g.gb];e:{var m=n,b=a,y=g.gb;if(t(null!=e),t(null!=b),t(null!=y),y[0]=0,12<=b[0]&&!r(e,m[0],"RIFF")){if(r(e,m[0]+8,"WEBP")){y=3;break e}var x=T(e,m[0]+4);if(12>x||4294967286<x){y=3;break e}if(p&&x>b[0]-8){y=7;break e}y[0]=x,m[0]+=12,b[0]-=12}y=0}if(0!=y)return y;for(x=0<g.gb[0],a=a[0];;){e:{var _=e;b=n,y=a;var S=h,C=f,k=m=[0];if((E=d=[d])[0]=0,8>y[0])y=7;else{if(!r(_,b[0],"VP8X")){if(10!=T(_,b[0]+4)){y=3;break e}if(18>y[0]){y=7;break e}var A=T(_,b[0]+8),N=1+F(_,b[0]+12);if(2147483648<=N*(_=1+F(_,b[0]+15))){y=3;break e}null!=k&&(k[0]=A),null!=S&&(S[0]=N),null!=C&&(C[0]=_),b[0]+=18,y[0]-=18,E[0]=1}y=0}}if(d=d[0],m=m[0],0!=y)return y;if(b=!!(2&m),!x&&d)return 3;if(null!=s&&(s[0]=!!(16&m)),null!=l&&(l[0]=b),null!=c&&(c[0]=0),l=h[0],m=f[0],d&&b&&null==u){y=0;break}if(4>a){y=7;break}if(x&&d||!x&&!d&&!r(e,n[0],"ALPH")){a=[a],g.na=[g.na],g.P=[g.P],g.Sa=[g.Sa];e:{A=e,y=n,x=a;var E=g.gb;S=g.na,C=g.P,k=g.Sa,N=22,t(null!=A),t(null!=x),_=y[0];var L=x[0];for(t(null!=S),t(null!=k),S[0]=null,C[0]=null,k[0]=0;;){if(y[0]=_,x[0]=L,8>L){y=7;break e}var M=T(A,_+4);if(4294967286<M){y=3;break e}var D=8+M+1&-2;if(N+=D,0<E&&N>E){y=3;break e}if(!r(A,_,"VP8 ")||!r(A,_,"VP8L")){y=0;break e}if(L[0]<D){y=7;break e}r(A,_,"ALPH")||(S[0]=A,C[0]=_+8,k[0]=M),_+=D,L-=D}}if(a=a[0],g.na=g.na[0],g.P=g.P[0],g.Sa=g.Sa[0],0!=y)break}a=[a],g.Ja=[g.Ja],g.xa=[g.xa];e:if(E=e,y=n,x=a,S=g.gb[0],C=g.Ja,k=g.xa,A=y[0],_=!r(E,A,"VP8 "),N=!r(E,A,"VP8L"),t(null!=E),t(null!=x),t(null!=C),t(null!=k),8>x[0])y=7;else{if(_||N){if(E=T(E,A+4),12<=S&&E>S-12){y=3;break e}if(p&&E>x[0]-8){y=7;break e}C[0]=E,y[0]+=8,x[0]-=8,k[0]=N}else k[0]=5<=x[0]&&47==E[A+0]&&!(E[A+4]>>5),C[0]=x[0];y=0}if(a=a[0],g.Ja=g.Ja[0],g.xa=g.xa[0],n=n[0],0!=y)break;if(4294967286<g.Ja)return 3;if(null==c||b||(c[0]=g.xa?2:1),l=[l],m=[m],g.xa){if(5>a){y=7;break}c=l,p=m,b=s,null==e||5>a?e=0:5<=a&&47==e[n+0]&&!(e[n+4]>>5)?(x=[0],E=[0],S=[0],v(C=new w,e,n,a),ge(C,x,E,S)?(null!=c&&(c[0]=x[0]),null!=p&&(p[0]=E[0]),null!=b&&(b[0]=S[0]),e=1):e=0):e=0}else{if(10>a){y=7;break}c=m,null==e||10>a||!Ye(e,n+3,a-3)?e=0:(p=e[n+0]|e[n+1]<<8|e[n+2]<<16,b=16383&(e[n+7]<<8|e[n+6]),e=16383&(e[n+9]<<8|e[n+8]),1&p||3<(p>>1&7)||!(p>>4&1)||p>>5>=g.Ja||!b||!e?e=0:(l&&(l[0]=b),c&&(c[0]=e),e=1))}if(!e)return 3;if(l=l[0],m=m[0],d&&(h[0]!=l||f[0]!=m))return 3;null!=u&&(u[0]=g,u.offset=n-u.w,t(4294967286>n-u.w),t(u.offset==u.ha-a));break}return 0==y||7==y&&d&&null==u?(null!=s&&(s[0]|=null!=g.na&&0<g.na.length),null!=i&&(i[0]=l),null!=o&&(o[0]=m),0):y}function Or(e,t,r){var n=t.width,a=t.height,i=0,o=0,s=n,l=a;if(t.Da=null!=e&&0<e.Da,t.Da&&(s=e.cd,l=e.bd,i=e.v,o=e.j,11>r||(i&=-2,o&=-2),0>i||0>o||0>=s||0>=l||i+s>n||o+l>a))return 0;if(t.v=i,t.j=o,t.va=i+s,t.o=o+l,t.U=s,t.T=l,t.da=null!=e&&0<e.da,t.da){if(!P(s,l,r=[e.ib],i=[e.hb]))return 0;t.ib=r[0],t.hb=i[0]}return t.ob=null!=e&&e.ob,t.Kb=null==e||!e.Sd,t.da&&(t.ob=t.ib<3*n/4&&t.hb<3*a/4,t.Kb=0),1}function Pr(e){if(null==e)return 2;if(11>e.S){var t=e.f.RGBA;t.fb+=(e.height-1)*t.A,t.A=-t.A}else t=e.f.kb,e=e.height,t.O+=(e-1)*t.fa,t.fa=-t.fa,t.N+=(e-1>>1)*t.Ab,t.Ab=-t.Ab,t.W+=(e-1>>1)*t.Db,t.Db=-t.Db,null!=t.F&&(t.J+=(e-1)*t.lb,t.lb=-t.lb);return 0}function Rr(e,t,r,n){if(null==n||0>=e||0>=t)return 2;if(null!=r){if(r.Da){var a=r.cd,o=r.bd,s=-2&r.v,l=-2&r.j;if(0>s||0>l||0>=a||0>=o||s+a>e||l+o>t)return 2;e=a,t=o}if(r.da){if(!P(e,t,a=[r.ib],o=[r.hb]))return 2;e=a[0],t=o[0]}}n.width=e,n.height=t;e:{var c=n.width,u=n.height;if(e=n.S,0>=c||0>=u||!(e>=Pn&&13>e))e=2;else{if(0>=n.Rd&&null==n.sd){s=o=a=t=0;var h=(l=c*Ua[e])*u;if(11>e||(o=(u+1)/2*(t=(c+1)/2),12==e&&(s=(a=c)*u)),null==(u=i(h+2*o+s))){e=1;break e}n.sd=u,11>e?((c=n.f.RGBA).eb=u,c.fb=0,c.A=l,c.size=h):((c=n.f.kb).y=u,c.O=0,c.fa=l,c.Fd=h,c.f=u,c.N=0+h,c.Ab=t,c.Cd=o,c.ea=u,c.W=0+h+o,c.Db=t,c.Ed=o,12==e&&(c.F=u,c.J=0+h+2*o),c.Tc=s,c.lb=a)}if(t=1,a=n.S,o=n.width,s=n.height,a>=Pn&&13>a)if(11>a)e=n.f.RGBA,t&=(l=Math.abs(e.A))*(s-1)+o<=e.size,t&=l>=o*Ua[a],t&=null!=e.eb;else{e=n.f.kb,l=(o+1)/2,h=(s+1)/2,c=Math.abs(e.fa),u=Math.abs(e.Ab);var f=Math.abs(e.Db),d=Math.abs(e.lb),p=d*(s-1)+o;t&=c*(s-1)+o<=e.Fd,t&=u*(h-1)+l<=e.Cd,t=(t&=f*(h-1)+l<=e.Ed)&c>=o&u>=l&f>=l,t&=null!=e.y,t&=null!=e.f,t&=null!=e.ea,12==a&&(t&=d>=o,t&=p<=e.Tc,t&=null!=e.F)}else t=0;e=t?0:2}}return 0!=e||null!=r&&r.fd&&(e=Pr(n)),e}var jr=64,Br=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Vr=24,zr=32,Ur=8,Hr=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];B("Predictor0","PredictorAdd0"),e.Predictor0=function(){return 4278190080},e.Predictor1=function(e){return e},e.Predictor2=function(e,t,r){return t[r+0]},e.Predictor3=function(e,t,r){return t[r+1]},e.Predictor4=function(e,t,r){return t[r-1]},e.Predictor5=function(e,t,r){return z(z(e,t[r+1]),t[r+0])},e.Predictor6=function(e,t,r){return z(e,t[r-1])},e.Predictor7=function(e,t,r){return z(e,t[r+0])},e.Predictor8=function(e,t,r){return z(t[r-1],t[r+0])},e.Predictor9=function(e,t,r){return z(t[r+0],t[r+1])},e.Predictor10=function(e,t,r){return z(z(e,t[r-1]),z(t[r+0],t[r+1]))},e.Predictor11=function(e,t,r){var n=t[r+0];return 0>=q(n>>24&255,e>>24&255,(t=t[r-1])>>24&255)+q(n>>16&255,e>>16&255,t>>16&255)+q(n>>8&255,e>>8&255,t>>8&255)+q(255&n,255&e,255&t)?n:e},e.Predictor12=function(e,t,r){var n=t[r+0];return(U((e>>24&255)+(n>>24&255)-((t=t[r-1])>>24&255))<<24|U((e>>16&255)+(n>>16&255)-(t>>16&255))<<16|U((e>>8&255)+(n>>8&255)-(t>>8&255))<<8|U((255&e)+(255&n)-(255&t)))>>>0},e.Predictor13=function(e,t,r){var n=t[r-1];return(H((e=z(e,t[r+0]))>>24&255,n>>24&255)<<24|H(e>>16&255,n>>16&255)<<16|H(e>>8&255,n>>8&255)<<8|H(e>>0&255,n>>0&255))>>>0};var qr=e.PredictorAdd0;e.PredictorAdd1=G,B("Predictor2","PredictorAdd2"),B("Predictor3","PredictorAdd3"),B("Predictor4","PredictorAdd4"),B("Predictor5","PredictorAdd5"),B("Predictor6","PredictorAdd6"),B("Predictor7","PredictorAdd7"),B("Predictor8","PredictorAdd8"),B("Predictor9","PredictorAdd9"),B("Predictor10","PredictorAdd10"),B("Predictor11","PredictorAdd11"),B("Predictor12","PredictorAdd12"),B("Predictor13","PredictorAdd13");var Gr=e.PredictorAdd2;Y("ColorIndexInverseTransform","MapARGB","32b",(function(e){return e>>8&255}),(function(e){return e})),Y("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(e){return e}),(function(e){return e>>8&255}));var Wr,$r=e.ColorIndexInverseTransform,Xr=e.MapARGB,Yr=e.VP8LColorIndexInverseTransformAlpha,Kr=e.MapAlpha,Jr=e.VP8LPredictorsAdd=[];Jr.length=16,(e.VP8LPredictors=[]).length=16,(e.VP8LPredictorsAdd_C=[]).length=16,(e.VP8LPredictors_C=[]).length=16;var Zr,Qr,en,tn,rn,nn,an,on,sn,ln,cn,un,hn,fn,dn,pn,gn,mn,vn,bn,yn,xn,wn,_n,Sn,Cn,kn,An,Nn=i(511),En=i(2041),Ln=i(225),Mn=i(767),Fn=0,Tn=En,Dn=Ln,In=Mn,On=Nn,Pn=0,Rn=1,jn=2,Bn=3,Vn=4,zn=5,Un=6,Hn=7,qn=8,Gn=9,Wn=10,$n=[2,3,7],Xn=[3,3,11],Yn=[280,256,256,256,40],Kn=[0,1,1,1,0],Jn=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Zn=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Qn=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ea=8,ta=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ra=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],na=null,aa=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],ia=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],oa=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],sa=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],la=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],ca=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],ua=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ha=[],fa=[],da=[],pa=1,ga=2,ma=[],va=[];vr("UpsampleRgbLinePair",Sr,3),vr("UpsampleBgrLinePair",Cr,3),vr("UpsampleRgbaLinePair",Lr,4),vr("UpsampleBgraLinePair",Er,4),vr("UpsampleArgbLinePair",Nr,4),vr("UpsampleRgba4444LinePair",Ar,2),vr("UpsampleRgb565LinePair",kr,2);var ba=e.UpsampleRgbLinePair,ya=e.UpsampleBgrLinePair,xa=e.UpsampleRgbaLinePair,wa=e.UpsampleBgraLinePair,_a=e.UpsampleArgbLinePair,Sa=e.UpsampleRgba4444LinePair,Ca=e.UpsampleRgb565LinePair,ka=16,Aa=1<<ka-1,Na=-227,Ea=482,La=6,Ma=(256<<La)-1,Fa=0,Ta=i(256),Da=i(256),Ia=i(256),Oa=i(256),Pa=i(Ea-Na),Ra=i(Ea-Na);Mr("YuvToRgbRow",Sr,3),Mr("YuvToBgrRow",Cr,3),Mr("YuvToRgbaRow",Lr,4),Mr("YuvToBgraRow",Er,4),Mr("YuvToArgbRow",Nr,4),Mr("YuvToRgba4444Row",Ar,2),Mr("YuvToRgb565Row",kr,2);var ja=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ba=[0,2,8],Va=[8,7,6,4,4,2,2,2,1,1,1,1],za=1;this.WebPDecodeRGBA=function(e,r,n,a,i){var o=Rn,s=new rr,l=new oe;s.ba=l,l.S=o,l.width=[l.width],l.height=[l.height];var c=l.width,u=l.height,h=new se;if(null==h||null==e)var f=2;else t(null!=h),f=Ir(e,r,n,h.width,h.height,h.Pd,h.Qd,h.format,null);if(0!=f?c=0:(null!=c&&(c[0]=h.width[0]),null!=u&&(u[0]=h.height[0]),c=1),c){l.width=l.width[0],l.height=l.height[0],null!=a&&(a[0]=l.width),null!=i&&(i[0]=l.height);e:{if(a=new We,(i=new nr).data=e,i.w=r,i.ha=n,i.kd=1,r=[0],t(null!=i),(0==(e=Ir(i.data,i.w,i.ha,null,null,null,r,null,i))||7==e)&&r[0]&&(e=4),0==(r=e)){if(t(null!=s),a.data=i.data,a.w=i.w+i.offset,a.ha=i.ha-i.offset,a.put=de,a.ac=fe,a.bc=pe,a.ma=s,i.xa){if(null==(e=Ee())){s=1;break e}if(function(e,r){var n=[0],a=[0],i=[0];t:for(;;){if(null==e)return 0;if(null==r)return e.a=2,0;if(e.l=r,e.a=0,v(e.m,r.data,r.w,r.ha),!ge(e.m,n,a,i)){e.a=3;break t}if(e.xb=ga,r.width=n[0],r.height=a[0],!Le(n[0],a[0],1,e,null))break t;return 1}return t(0!=e.a),0}(e,a)){if(a=0==(r=Rr(a.width,a.height,s.Oa,s.ba))){t:{a=e;r:for(;;){if(null==a){a=0;break t}if(t(null!=a.s.yc),t(null!=a.s.Ya),t(0<a.s.Wb),t(null!=(n=a.l)),t(null!=(i=n.ma)),0!=a.xb){if(a.ca=i.ba,a.tb=i.tb,t(null!=a.ca),!Or(i.Oa,n,Bn)){a.a=2;break r}if(!Me(a,n.width))break r;if(n.da)break r;if((n.da||ne(a.ca.S))&&mr(),11>a.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=a.ca.f.kb.F&&mr()),a.Pb&&0<a.s.ua&&null==a.s.vb.X&&!D(a.s.vb,a.s.Wa.Xa)){a.a=1;break r}a.xb=0}if(!Ae(a,a.V,a.Ba,a.c,a.i,n.o,_e))break r;i.Dc=a.Ma,a=1;break t}t(0!=a.a),a=0}a=!a}a&&(r=e.a)}else r=e.a}else{if(null==(e=new $e)){s=1;break e}if(e.Fa=i.na,e.P=i.P,e.qc=i.Sa,Ke(e,a)){if(0==(r=Rr(a.width,a.height,s.Oa,s.ba))){if(e.Aa=0,n=s.Oa,t(null!=(i=e)),null!=n){if(0<(c=0>(c=n.Md)?0:100<c?255:255*c/100)){for(u=h=0;4>u;++u)12>(f=i.pb[u]).lc&&(f.ia=c*Va[0>f.lc?0:f.lc]>>3),h|=f.ia;h&&(alert("todo:VP8InitRandom"),i.ia=1)}i.Ga=n.Id,100<i.Ga?i.Ga=100:0>i.Ga&&(i.Ga=0)}Qe(e,a)||(r=e.a)}}else r=e.a}0==r&&null!=s.Oa&&s.Oa.fd&&(r=Pr(s.ba))}s=r}o=0!=s?null:11>o?l.f.RGBA.eb:l.f.kb.y}else o=null;return o};var Ua=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(e,t){for(var r="",n=0;n<4;n++)r+=String.fromCharCode(e[t++]);return r}function u(e,t){return(e[t+0]<<0|e[t+1]<<8|e[t+2]<<16)>>>0}function h(e,t){return(e[t+0]<<0|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}new l;var f=[0],d=[0],p=[],g=new l,m=e,v=function(e,t){var r={},n=0,a=!1,i=0,o=0;if(r.frames=[],!
/** @license
       * Copyright (c) 2017 Dominik Homberger
      Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
      The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
      https://webpjs.appspot.com
      WebPRiffParser dominikhlbg@gmail.com
      */
function(e,t,r,n){for(var a=0;a<4;a++)if(e[t+a]!="RIFF".charCodeAt(a))return!0;return!1}(e,t)){var s,l;for(h(e,t+=4),t+=8;t<e.length;){var f=c(e,t),d=h(e,t+=4);t+=4;var p=d+(1&d);switch(f){case"VP8 ":case"VP8L":void 0===r.frames[n]&&(r.frames[n]={}),(v=r.frames[n]).src_off=a?o:t-8,v.src_size=i+d+8,n++,a&&(a=!1,i=0,o=0);break;case"VP8X":(v=r.header={}).feature_flags=e[t];var g=t+4;v.canvas_width=1+u(e,g),g+=3,v.canvas_height=1+u(e,g),g+=3;break;case"ALPH":a=!0,i=p+8,o=t-8;break;case"ANIM":(v=r.header).bgcolor=h(e,t),g=t+4,v.loop_count=(s=e)[(l=g)+0]<<0|s[l+1]<<8,g+=2;break;case"ANMF":var m,v;(v=r.frames[n]={}).offset_x=2*u(e,t),t+=3,v.offset_y=2*u(e,t),t+=3,v.width=1+u(e,t),t+=3,v.height=1+u(e,t),t+=3,v.duration=u(e,t),t+=3,m=e[t++],v.dispose=1&m,v.blend=m>>1&1}"ANMF"!=f&&(t+=p)}return r}}(m,0);v.response=m,v.rgbaoutput=!0,v.dataurl=!1;var b=v.header?v.header:null,y=v.frames?v.frames:null;if(b){b.loop_counter=b.loop_count,f=[b.canvas_height],d=[b.canvas_width];for(var x=0;x<y.length&&0!=y[x].blend;x++);}var w=y[0],_=g.WebPDecodeRGBA(m,w.src_off,w.src_size,d,f);w.rgba=_,w.imgwidth=d[0],w.imgheight=f[0];for(var S=0;S<d[0]*f[0]*4;S++)p[S]=_[S];return this.width=d,this.height=f,this.data=p,this}!function(e){var t=function(t,n,c,u){var h=4,f=o;switch(u){case e.image_compression.FAST:h=1,f=a;break;case e.image_compression.MEDIUM:h=6,f=s;break;case e.image_compression.SLOW:h=9,f=l}t=r(t,n,c,f);var d=Object(i.zlibSync)(t,{level:h});return e.__addimage__.arrayBufferToBinaryString(d)},r=function(e,t,r,n){for(var a,i,o,s=e.length/t,l=new Uint8Array(e.length+s),c=u(),f=0;f<s;f+=1){if(o=f*t,a=e.subarray(o,o+t),n)l.set(n(a,r,i),o+f);else{for(var d,p=c.length,g=[];d<p;d+=1)g[d]=c[d](a,r,i);var m=h(g.concat());l.set(g[m],o+f)}i=a}return l},n=function(e){var t=Array.apply([],e);return t.unshift(0),t},a=function(e,t){var r,n=[],a=e.length;n[0]=1;for(var i=0;i<a;i+=1)r=e[i-t]||0,n[i+1]=e[i]-r+256&255;return n},o=function(e,t,r){var n,a=[],i=e.length;a[0]=2;for(var o=0;o<i;o+=1)n=r&&r[o]||0,a[o+1]=e[o]-n+256&255;return a},s=function(e,t,r){var n,a,i=[],o=e.length;i[0]=3;for(var s=0;s<o;s+=1)n=e[s-t]||0,a=r&&r[s]||0,i[s+1]=e[s]+256-(n+a>>>1)&255;return i},l=function(e,t,r){var n,a,i,o,s=[],l=e.length;s[0]=4;for(var u=0;u<l;u+=1)n=e[u-t]||0,a=r&&r[u]||0,i=r&&r[u-t]||0,o=c(n,a,i),s[u+1]=e[u]-o+256&255;return s},c=function(e,t,r){if(e===t&&t===r)return e;var n=Math.abs(t-r),a=Math.abs(e-r),i=Math.abs(e+t-r-r);return n<=a&&n<=i?e:a<=i?t:r},u=function(){return[n,a,o,s,l]},h=function(e){var t=e.map((function(e){return e.reduce((function(e,t){return e+Math.abs(t)}),0)}));return t.indexOf(Math.min.apply(null,t))};e.processPNG=function(r,n,a,o){var s,l,c,u,h,f,d,p,g,m,v,b,y,x,w,_=this.decode.FLATE_DECODE,S="";if(this.__addimage__.isArrayBuffer(r)&&(r=new Uint8Array(r)),this.__addimage__.isArrayBufferView(r)){if(r=(c=new Qe(r)).imgData,l=c.bits,s=c.colorSpace,h=c.colors,-1!==[4,6].indexOf(c.colorType)){if(8===c.bits){g=(p=32==c.pixelBitlength?new Uint32Array(c.decodePixels().buffer):16==c.pixelBitlength?new Uint16Array(c.decodePixels().buffer):new Uint8Array(c.decodePixels().buffer)).length,v=new Uint8Array(g*c.colors),m=new Uint8Array(g);var C,k=c.pixelBitlength-c.bits;for(x=0,w=0;x<g;x++){for(y=p[x],C=0;C<k;)v[w++]=y>>>C&255,C+=c.bits;m[x]=y>>>C&255}}if(16===c.bits){g=(p=new Uint32Array(c.decodePixels().buffer)).length,v=new Uint8Array(g*(32/c.pixelBitlength)*c.colors),m=new Uint8Array(g*(32/c.pixelBitlength)),b=c.colors>1,x=0,w=0;for(var A=0;x<g;)y=p[x++],v[w++]=y>>>0&255,b&&(v[w++]=y>>>16&255,y=p[x++],v[w++]=y>>>0&255),m[A++]=y>>>16&255;l=8}o!==e.image_compression.NONE&&"function"==typeof i.zlibSync?(r=t(v,c.width*c.colors,c.colors,o),d=t(m,c.width,1,o)):(r=v,d=m,_=void 0)}if(3===c.colorType&&(s=this.color_spaces.INDEXED,f=c.palette,c.transparency.indexed)){var N=c.transparency.indexed,E=0;for(x=0,g=N.length;x<g;++x)E+=N[x];if((E/=255)==g-1&&-1!==N.indexOf(0))u=[N.indexOf(0)];else if(E!==g){for(p=c.decodePixels(),m=new Uint8Array(p.length),x=0,g=p.length;x<g;x++)m[x]=N[p[x]];d=t(m,c.width,1)}}var L=function(t){var r;switch(t){case e.image_compression.FAST:r=11;break;case e.image_compression.MEDIUM:r=13;break;case e.image_compression.SLOW:r=14;break;default:r=12}return r}(o);return _===this.decode.FLATE_DECODE&&(S="/Predictor "+L+" "),S+="/Colors "+h+" /BitsPerComponent "+l+" /Columns "+c.width,(this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r))&&(r=this.__addimage__.arrayBufferToBinaryString(r)),(d&&this.__addimage__.isArrayBuffer(d)||this.__addimage__.isArrayBufferView(d))&&(d=this.__addimage__.arrayBufferToBinaryString(d)),{alias:a,data:r,index:n,filter:_,decodeParameters:S,transparency:u,palette:f,sMask:d,predictor:L,width:c.width,height:c.height,bitsPerComponent:l,colorSpace:s}}}}(B.API),function(e){e.processGIF89A=function(t,r,n,a){var i=new et(t),o=i.width,s=i.height,l=[];i.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:o,height:s},u=new rt(100).encode(c,100);return e.processJPEG.call(this,u,r,n,a)},e.processGIF87A=e.processGIF89A}(B.API),nt.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:a,green:n,blue:r,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},nt.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(e){l.log("bit decode error:"+e)}},nt.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),r=t%4;for(e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,a=0;a<t;a++)for(var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+8*a*4,s=0;s<8&&8*a+s<this.width;s++){var l=this.palette[i>>7-s&1];this.data[o+4*s]=l.blue,this.data[o+4*s+1]=l.green,this.data[o+4*s+2]=l.red,this.data[o+4*s+3]=255}0!==r&&(this.pos+=4-r)}},nt.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,a=0;a<e;a++){var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+2*a*4,s=i>>4,l=15&i,c=this.palette[s];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*a+1>=this.width)break;c=this.palette[l],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}0!==t&&(this.pos+=4-t)}},nt.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var a=this.datav.getUint8(this.pos++,!0),i=r*this.width*4+4*n;if(a<this.palette.length){var o=this.palette[a];this.data[i]=o.red,this.data[i+1]=o.green,this.data[i+2]=o.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}0!==e&&(this.pos+=4-e)}},nt.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,a=0;a<this.width;a++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(i&t)/t*255|0,s=(i>>5&t)/t*255|0,l=(i>>10&t)/t*255|0,c=i>>15?255:0,u=n*this.width*4+4*a;this.data[u]=l,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=c}this.pos+=e}},nt.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var a=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,l=(o>>5&r)/r*255|0,c=(o>>11)/t*255|0,u=a*this.width*4+4*i;this.data[u]=c,this.data[u+1]=l,this.data[u+2]=s,this.data[u+3]=255}this.pos+=e}},nt.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*r;this.data[o]=i,this.data[o+1]=a,this.data[o+2]=n,this.data[o+3]=255}this.pos+=this.width%4}},nt.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*r;this.data[s]=i,this.data[s+1]=a,this.data[s+2]=n,this.data[s+3]=o}},nt.prototype.getData=function(){return this.data},
/**
 * @license
 * Copyright (c) 2018 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){e.processBMP=function(t,r,n,a){var i=new nt(t,!1),o=i.width,s=i.height,l={data:i.getData(),width:o,height:s},c=new rt(100).encode(l,100);return e.processJPEG.call(this,c,r,n,a)}}(B.API),at.prototype.getData=function(){return this.data},
/**
 * @license
 * Copyright (c) 2019 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){e.processWEBP=function(t,r,n,a){var i=new at(t,!1),o=i.width,s=i.height,l={data:i.getData(),width:o,height:s},c=new rt(100).encode(l,100);return e.processJPEG.call(this,c,r,n,a)}}(B.API),B.API.processRGBA=function(e,t,r){for(var n=e.data,a=n.length,i=new Uint8Array(a/4*3),o=new Uint8Array(a/4),s=0,l=0,c=0;c<a;c+=4){var u=n[c],h=n[c+1],f=n[c+2],d=n[c+3];i[s++]=u,i[s++]=h,i[s++]=f,o[l++]=d}var p=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:p,index:t,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},B.API.setLanguage=function(e){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]&&(this.internal.languageSettings.languageCode=e,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},Xe=B.API,Ye=Xe.getCharWidthsArray=function(e,t){var r,n,i=(t=t||{}).font||this.internal.getFont(),o=t.fontSize||this.internal.getFontSize(),s=t.charSpace||this.internal.getCharSpace(),l=t.widths?t.widths:i.metadata.Unicode.widths,c=l.fof?l.fof:1,u=t.kerning?t.kerning:i.metadata.Unicode.kerning,h=u.fof?u.fof:1,f=!1!==t.doKerning,d=0,p=e.length,g=0,m=l[0]||c,v=[];for(r=0;r<p;r++)n=e.charCodeAt(r),"function"==typeof i.metadata.widthOfString?v.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(n))+s*(1e3/o)||0)/1e3):(d=f&&"object"===a()(u[n])&&!isNaN(parseInt(u[n][g],10))?u[n][g]/h:0,v.push((l[n]||m)/c+d)),g=n;return v},Ke=Xe.getStringUnitWidth=function(e,t){var r=(t=t||{}).fontSize||this.internal.getFontSize(),n=t.font||this.internal.getFont(),a=t.charSpace||this.internal.getCharSpace();return Xe.processArabic&&(e=Xe.processArabic(e)),"function"==typeof n.metadata.widthOfString?n.metadata.widthOfString(e,r,a)/r:Ye.apply(this,arguments).reduce((function(e,t){return e+t}),0)},Je=function(e,t,r,n){for(var a=[],i=0,o=e.length,s=0;i!==o&&s+t[i]<r;)s+=t[i],i++;a.push(e.slice(0,i));var l=i;for(s=0;i!==o;)s+t[i]>n&&(a.push(e.slice(l,i)),s=0,l=i),s+=t[i],i++;return l!==i&&a.push(e.slice(l,i)),a},Ze=function(e,t,r){r||(r={});var n,a,i,o,s,l,c,u=[],h=[u],f=r.textIndent||0,d=0,p=0,g=e.split(" "),m=Ye.apply(this,[" ",r])[0];if(l=-1===r.lineIndent?g[0].length+2:r.lineIndent||0){var v=Array(l).join(" "),b=[];g.map((function(e){(e=e.split(/\s*\n/)).length>1?b=b.concat(e.map((function(e,t){return(t&&e.length?"\n":"")+e}))):b.push(e[0])})),g=b,l=Ke.apply(this,[v,r])}for(i=0,o=g.length;i<o;i++){var y=0;if(n=g[i],l&&"\n"==n[0]&&(n=n.substr(1),y=1),f+d+(p=(a=Ye.apply(this,[n,r])).reduce((function(e,t){return e+t}),0))>t||y){if(p>t){for(s=Je.apply(this,[n,a,t-(f+d),t]),u.push(s.shift()),u=[s.pop()];s.length;)h.push([s.shift()]);p=a.slice(n.length-(u[0]?u[0].length:0)).reduce((function(e,t){return e+t}),0)}else u=[n];h.push(u),f=p+l,d=m}else u.push(n),f+=d+p,d=m}return c=l?function(e,t){return(t?v:"")+e.join(" ")}:function(e){return e.join(" ")},h.map(c)},Xe.splitTextToSize=function(e,t,r){var n,a=(r=r||{}).fontSize||this.internal.getFontSize(),i=function(e){if(e.widths&&e.kerning)return{widths:e.widths,kerning:e.kerning};var t=this.internal.getFont(e.fontName,e.fontStyle);return t.metadata.Unicode?{widths:t.metadata.Unicode.widths||{0:1},kerning:t.metadata.Unicode.kerning||{}}:{font:t.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,r);n=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/a;i.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/a:0,i.lineIndent=r.lineIndent;var s,l,c=[];for(s=0,l=n.length;s<l;s++)c=c.concat(Ze.apply(this,[n[s],o,i]));return c},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",r={},n={},i=0;i<t.length;i++)r[t[i]]="0123456789abcdef"[i],n["0123456789abcdef"[i]]=t[i];var o=function(e){return"0x"+parseInt(e,10).toString(16)},s=e.__fontmetrics__.compress=function(e){var t,r,i,l,c=["{"];for(var u in e){if(t=e[u],isNaN(parseInt(u,10))?r="'"+u+"'":(u=parseInt(u,10),r=(r=o(u).slice(2)).slice(0,-1)+n[r.slice(-1)]),"number"==typeof t)t<0?(i=o(t).slice(3),l="-"):(i=o(t).slice(2),l=""),i=l+i.slice(0,-1)+n[i.slice(-1)];else{if("object"!==a()(t))throw new Error("Don't know what to do with value type "+a()(t)+".");i=s(t)}c.push(r+i)}return c.push("}"),c.join("")},l=e.__fontmetrics__.uncompress=function(e){if("string"!=typeof e)throw new Error("Invalid argument passed to uncompress.");for(var t,n,a,i,o={},s=1,l=o,c=[],u="",h="",f=e.length-1,d=1;d<f;d+=1)"'"==(i=e[d])?t?(a=t.join(""),t=void 0):t=[]:t?t.push(i):"{"==i?(c.push([l,a]),l={},a=void 0):"}"==i?((n=c.pop())[0][n[1]]=l,a=void 0,l=n[0]):"-"==i?s=-1:void 0===a?r.hasOwnProperty(i)?(u+=r[i],a=parseInt(u,16)*s,s=1,u=""):u+=i:r.hasOwnProperty(i)?(h+=r[i],l[a]=parseInt(h,16)*s,s=1,a=void 0,h=""):h+=i;return o},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},h={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(e){var t=e.font,r=h.Unicode[t.postScriptName];r&&(t.metadata.Unicode={},t.metadata.Unicode.widths=r.widths,t.metadata.Unicode.kerning=r.kerning);var n=u.Unicode[t.postScriptName];n&&(t.metadata.Unicode.encoding=n,t.encoding=n.codePages[0])}])}(B.API),
/**
 * @license
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){var t=function(e){for(var t=e.length,r=new Uint8Array(t),n=0;n<t;n++)r[n]=e.charCodeAt(n);return r};e.API.events.push(["addFont",function(r){var n=void 0,a=r.font,i=r.instance;if(!a.isStandardFont){if(void 0===i)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");if("string"!=typeof(n=!1===i.existsFileInVFS(a.postScriptName)?i.loadFile(a.postScriptName):i.getFileFromVFS(a.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");!function(r,n){n=/^\x00\x01\x00\x00/.test(n)?t(n):t(f(n)),r.metadata=e.API.TTFFont.open(n),r.metadata.Unicode=r.metadata.Unicode||{encoding:{},kerning:{},widths:[]},r.metadata.glyIdsUsed=[0]}(a,n)}}])}(B),
/** @license
 * Copyright (c) 2012 Willow Systems Corporation, https://github.com/willowsystems
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 * ====================================================================
 */
function(e){function t(){return(o.canvg?Promise.resolve(o.canvg):r.e(2).then(r.bind(null,1310)))["catch"]((function(e){return Promise.reject(new Error("Could not load canvg: "+e))})).then((function(e){return e["default"]?e["default"]:e}))}B.API.addSvgAsImage=function(e,r,n,a,i,o,s,c){if(isNaN(r)||isNaN(n))throw l.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(a)||isNaN(i))throw l.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=a,u.height=i;var h=u.getContext("2d");h.fillStyle="#fff",h.fillRect(0,0,u.width,u.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return t().then((function(t){return t.fromString(h,e,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(e){return e.render(f)})).then((function(){d.addImage(u.toDataURL("image/jpeg",1),r,n,a,i,s,c)}))}}(),B.API.putTotalPages=function(e){var t,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),r=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var a=0;a<this.internal.pages[n].length;a++)this.internal.pages[n][a]=this.internal.pages[n][a].replace(t,r);return this},B.API.viewerPreferences=function(e,t){var r;e=e||{},t=t||!1;var n,i,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},l=Object.keys(s),c=[],u=0,h=0,f=0;function d(e,t){var r,n=!1;for(r=0;r<e.length;r+=1)e[r]===t&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,"reset"===e||!0===t){var p=l.length;for(f=0;f<p;f+=1)r[l[f]].value=r[l[f]].defaultValue,r[l[f]].explicitSet=!1}if("object"===a()(e))for(i in e)if(o=e[i],d(l,i)&&void 0!==o){if("boolean"===r[i].type&&"boolean"==typeof o)r[i].value=o;else if("name"===r[i].type&&d(r[i].valueSet,o))r[i].value=o;else if("integer"===r[i].type&&Number.isInteger(o))r[i].value=o;else if("array"===r[i].type){for(u=0;u<o.length;u+=1)if(n=!0,1===o[u].length&&"number"==typeof o[u][0])c.push(String(o[u]-1));else if(o[u].length>1){for(h=0;h<o[u].length;h+=1)"number"!=typeof o[u][h]&&(n=!1);!0===n&&c.push([o[u][0]-1,o[u][1]-1].join(" "))}r[i].value="["+c.join(" ")+"]"}else r[i].value=r[i].defaultValue;r[i].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var e,t=[];for(e in r)!0===r[e].explicitSet&&("name"===r[e].type?t.push("/"+e+" /"+r[e].value):t.push("/"+e+" "+r[e].value));0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},
/** ====================================================================
 * @license
 * jsPDF XMP metadata plugin
 * Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 * ====================================================================
 */
function(e){var t=function(){var e='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',t=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),r=unescape(encodeURIComponent(e)),n=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),a=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),i=unescape(encodeURIComponent("</x:xmpmeta>")),o=r.length+n.length+a.length+t.length+i.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+o+" >>"),this.internal.write("stream"),this.internal.write(t+r+n+a+i),this.internal.write("endstream"),this.internal.write("endobj")},r=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(e,n){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:e,namespaceuri:n||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",t)),this}}(B.API),function(e){var t=e.API,r=t.pdfEscape16=function(e,t){for(var r,n=t.metadata.Unicode.widths,a=["","0","00","000","0000"],i=[""],o=0,s=e.length;o<s;++o){if(r=t.metadata.characterToGlyph(e.charCodeAt(o)),t.metadata.glyIdsUsed.push(r),t.metadata.toUnicode[r]=e.charCodeAt(o),-1==n.indexOf(r)&&(n.push(r),n.push([parseInt(t.metadata.widthOfGlyph(r),10)])),"0"==r)return i.join("");r=r.toString(16),i.push(a[4-r.length],r)}return i.join("")},n=function(e){var t,r,n,a,i,o,s;for(i="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",n=[],o=0,s=(r=Object.keys(e).sort((function(e,t){return e-t}))).length;o<s;o++)t=r[o],n.length>=100&&(i+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar",n=[]),void 0!==e[t]&&null!==e[t]&&"function"==typeof e[t].toString&&(a=("0000"+e[t].toString(16)).slice(-4),t=("0000"+(+t).toString(16)).slice(-4),n.push("<"+t+"><"+a+">"));return n.length&&(i+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar\n"),i+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};t.events.push(["putFont",function(t){!function(t){var r=t.font,a=t.out,i=t.newObject,o=t.putStream;if(r.metadata instanceof e.API.TTFFont&&"Identity-H"===r.encoding){for(var s=r.metadata.Unicode.widths,l=r.metadata.subset.encode(r.metadata.glyIdsUsed,1),c="",u=0;u<l.length;u++)c+=String.fromCharCode(l[u]);var h=i();o({data:c,addLength1:!0,objectId:h}),a("endobj");var f=i();o({data:n(r.metadata.toUnicode),addLength1:!0,objectId:f}),a("endobj");var d=i();a("<<"),a("/Type /FontDescriptor"),a("/FontName /"+D(r.fontName)),a("/FontFile2 "+h+" 0 R"),a("/FontBBox "+e.API.PDFObject.convert(r.metadata.bbox)),a("/Flags "+r.metadata.flags),a("/StemV "+r.metadata.stemV),a("/ItalicAngle "+r.metadata.italicAngle),a("/Ascent "+r.metadata.ascender),a("/Descent "+r.metadata.decender),a("/CapHeight "+r.metadata.capHeight),a(">>"),a("endobj");var p=i();a("<<"),a("/Type /Font"),a("/BaseFont /"+D(r.fontName)),a("/FontDescriptor "+d+" 0 R"),a("/W "+e.API.PDFObject.convert(s)),a("/CIDToGIDMap /Identity"),a("/DW 1000"),a("/Subtype /CIDFontType2"),a("/CIDSystemInfo"),a("<<"),a("/Supplement 0"),a("/Registry (Adobe)"),a("/Ordering ("+r.encoding+")"),a(">>"),a(">>"),a("endobj"),r.objectNumber=i(),a("<<"),a("/Type /Font"),a("/Subtype /Type0"),a("/ToUnicode "+f+" 0 R"),a("/BaseFont /"+D(r.fontName)),a("/Encoding /"+r.encoding),a("/DescendantFonts ["+p+" 0 R]"),a(">>"),a("endobj"),r.isAlreadyPutted=!0}}(t)}]),t.events.push(["putFont",function(t){!function(t){var r=t.font,a=t.out,i=t.newObject,o=t.putStream;if(r.metadata instanceof e.API.TTFFont&&"WinAnsiEncoding"===r.encoding){for(var s=r.metadata.rawData,l="",c=0;c<s.length;c++)l+=String.fromCharCode(s[c]);var u=i();o({data:l,addLength1:!0,objectId:u}),a("endobj");var h=i();o({data:n(r.metadata.toUnicode),addLength1:!0,objectId:h}),a("endobj");var f=i();a("<<"),a("/Descent "+r.metadata.decender),a("/CapHeight "+r.metadata.capHeight),a("/StemV "+r.metadata.stemV),a("/Type /FontDescriptor"),a("/FontFile2 "+u+" 0 R"),a("/Flags 96"),a("/FontBBox "+e.API.PDFObject.convert(r.metadata.bbox)),a("/FontName /"+D(r.fontName)),a("/ItalicAngle "+r.metadata.italicAngle),a("/Ascent "+r.metadata.ascender),a(">>"),a("endobj"),r.objectNumber=i();for(var d=0;d<r.metadata.hmtx.widths.length;d++)r.metadata.hmtx.widths[d]=parseInt(r.metadata.hmtx.widths[d]*(1e3/r.metadata.head.unitsPerEm));a("<</Subtype/TrueType/Type/Font/ToUnicode "+h+" 0 R/BaseFont/"+D(r.fontName)+"/FontDescriptor "+f+" 0 R/Encoding/"+r.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(r.metadata.hmtx.widths)+">>"),a("endobj"),r.isAlreadyPutted=!0}}(t)}]);var a=function(e){var t,n=e.text||"",a=e.x,i=e.y,o=e.options||{},s=e.mutex||{},l=s.pdfEscape,c=s.activeFontKey,u=s.fonts,h=c,f="",d=0,p="",g=u[h].encoding;if("Identity-H"!==u[h].encoding)return{text:n,x:a,y:i,options:o,mutex:s};for(p=n,h=c,Array.isArray(n)&&(p=n[0]),d=0;d<p.length;d+=1)u[h].metadata.hasOwnProperty("cmap")&&(t=u[h].metadata.cmap.unicode.codeMap[p[d].charCodeAt(0)]),t||p[d].charCodeAt(0)<256&&u[h].metadata.hasOwnProperty("Unicode")?f+=p[d]:f+="";var m="";return parseInt(h.slice(1))<14||"WinAnsiEncoding"===g?m=l(f,h).split("").map((function(e){return e.charCodeAt(0).toString(16)})).join(""):"Identity-H"===g&&(m=r(f,u[h])),s.isHex=!0,{text:m,x:a,y:i,options:o,mutex:s}};t.events.push(["postProcessText",function(e){var t=e.text||"",r=[],n={text:t,x:e.x,y:e.y,options:e.options,mutex:e.mutex};if(Array.isArray(t)){var i=0;for(i=0;i<t.length;i+=1)Array.isArray(t[i])&&3===t[i].length?r.push([a(Object.assign({},n,{text:t[i][0]})).text,t[i][1],t[i][2]]):r.push(a(Object.assign({},n,{text:t[i]})).text);e.text=r}else e.text=a(Object.assign({},n,{text:t})).text}])}(B),
/**
 * @license
 * jsPDF virtual FileSystem functionality
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){var t=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]},e.addFileToVFS=function(e,r){return t.call(this),this.internal.vFS[e]=r,this},e.getFileFromVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]?this.internal.vFS[e]:null}}(B.API),
/**
 * @license
 * Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
 * MIT License
 */
function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(e){var r,n,a,i,o,s,l,c=t,u=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],f={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},d={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],g=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),m=!1,v=0;this.__bidiEngine__={};var b=function(e){var t=e.charCodeAt(),r=t>>8,n=d[r];return void 0!==n?c[256*n+(255&t)]:252===r||253===r?"AL":g.test(r)?"L":8===r?"R":"N"},y=function(e){for(var t,r=0;r<e.length;r++){if("L"===(t=b(e.charAt(r))))return!1;if("R"===t)return!0}return!1},x=function(e,t,o,s){var l,c,u,h,f=t[s];switch(f){case"L":case"R":m=!1;break;case"N":case"AN":break;case"EN":m&&(f="AN");break;case"AL":m=!0,f="R";break;case"WS":f="N";break;case"CS":s<1||s+1>=t.length||"EN"!==(l=o[s-1])&&"AN"!==l||"EN"!==(c=t[s+1])&&"AN"!==c?f="N":m&&(c="AN"),f=c===l?c:"N";break;case"ES":f="EN"===(l=s>0?o[s-1]:"B")&&s+1<t.length&&"EN"===t[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===o[s-1]){f="EN";break}if(m){f="N";break}for(u=s+1,h=t.length;u<h&&"ET"===t[u];)u++;f=u<h&&"EN"===t[u]?"EN":"N";break;case"NSM":if(a&&!i){for(h=t.length,u=s+1;u<h&&"NSM"===t[u];)u++;if(u<h){var d=e[s],p=d>=1425&&d<=2303||64286===d;if(l=t[u],p&&("R"===l||"AL"===l)){f="R";break}}}f=s<1||"B"===(l=t[s-1])?"N":o[s-1];break;case"B":m=!1,r=!0,f=v;break;case"S":n=!0,f="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"BN":f="N"}return f},w=function(e,t,r){var n=e.split("");return r&&_(n,r,{hiLevel:v}),n.reverse(),t&&t.reverse(),n.join("")},_=function(e,t,a){var i,o,s,l,c,d=-1,p=e.length,g=0,y=[],w=v?h:u,_=[];for(m=!1,r=!1,n=!1,o=0;o<p;o++)_[o]=b(e[o]);for(s=0;s<p;s++){if(c=g,y[s]=x(e,_,y,s),i=240&(g=w[c][f[y[s]]]),g&=15,t[s]=l=w[g][5],i>0)if(16===i){for(o=d;o<s;o++)t[o]=1;d=-1}else d=-1;if(w[g][6])-1===d&&(d=s);else if(d>-1){for(o=d;o<s;o++)t[o]=l;d=-1}"B"===_[s]&&(t[s]=0),a.hiLevel|=l}n&&function(e,t,r){for(var n=0;n<r;n++)if("S"===e[n]){t[n]=v;for(var a=n-1;a>=0&&"WS"===e[a];a--)t[a]=v}}(_,t,p)},S=function(e,t,n,a,i){if(!(i.hiLevel<e)){if(1===e&&1===v&&!r)return t.reverse(),void(n&&n.reverse());for(var o,s,l,c,u=t.length,h=0;h<u;){if(a[h]>=e){for(l=h+1;l<u&&a[l]>=e;)l++;for(c=h,s=l-1;c<s;c++,s--)o=t[c],t[c]=t[s],t[s]=o,n&&(o=n[c],n[c]=n[s],n[s]=o);h=l}h++}}},C=function(e,t,r){var n=e.split(""),a={hiLevel:v};return r||(r=[]),_(n,r,a),function(e,t,r){if(0!==r.hiLevel&&l)for(var n,a=0;a<e.length;a++)1===t[a]&&(n=p.indexOf(e[a]))>=0&&(e[a]=p[n+1])}(n,r,a),S(2,n,t,r,a),S(1,n,t,r,a),n.join("")};return this.__bidiEngine__.doBidiReorder=function(e,t,r){if(function(e,t){if(t)for(var r=0;r<e.length;r++)t[r]=r;void 0===i&&(i=y(e)),void 0===s&&(s=y(e))}(e,t),a||!o||s)if(a&&o&&i^s)v=i?1:0,e=w(e,t,r);else if(!a&&o&&s)v=i?1:0,e=C(e,t,r),e=w(e,t);else if(!a||i||o||s){if(a&&!o&&i^s)e=w(e,t),i?(v=0,e=C(e,t,r)):(v=1,e=C(e,t,r),e=w(e,t));else if(a&&i&&!o&&s)v=1,e=C(e,t,r),e=w(e,t);else if(!a&&!o&&i^s){var n=l;i?(v=1,e=C(e,t,r),v=0,l=!1,e=C(e,t,r),l=n):(v=0,e=C(e,t,r),e=w(e,t),v=1,l=!1,e=C(e,t,r),l=n,e=w(e,t))}}else v=0,e=C(e,t,r);else v=i?1:0,e=C(e,t,r);return e},this.__bidiEngine__.setOptions=function(e){e&&(a=e.isInputVisual,o=e.isOutputVisual,i=e.isInputRtl,s=e.isOutputRtl,l=e.isSymmetricSwapping)},this.__bidiEngine__.setOptions(e),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],r=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(e){var t=e.text,n=(e.x,e.y,e.options||{}),a=(e.mutex,n.lang,[]);if(n.isInputVisual="boolean"!=typeof n.isInputVisual||n.isInputVisual,r.setOptions(n),"[object Array]"===Object.prototype.toString.call(t)){var i=0;for(a=[],i=0;i<t.length;i+=1)"[object Array]"===Object.prototype.toString.call(t[i])?a.push([r.doBidiReorder(t[i][0]),t[i][1],t[i][2]]):a.push([r.doBidiReorder(t[i])]);e.text=a}else e.text=r.doBidiReorder(t);r.setOptions({isInputVisual:!0})}])}(B),B.API.TTFFont=function(){function e(e){var t;if(this.rawData=e,t=this.contents=new ot(e),this.contents.pos=4,"ttcf"===t.readString(4))throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new kt(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new st(this.contents),this.head=new ut(this),this.name=new vt(this),this.cmap=new ft(this),this.toUnicode={},this.hhea=new dt(this),this.maxp=new bt(this),this.hmtx=new yt(this),this.post=new gt(this),this.os2=new pt(this),this.loca=new Ct(this),this.glyf=new wt(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var e,t,r,n,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,r,n,a;for(a=[],t=0,r=(n=this.bbox).length;t<r;t++)e=n[t],a.push(Math.round(e*this.scaleFactor));return a}.call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),0!=(32768&(t=n>>16))&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(a=this.familyClass)||2===a||3===a||4===a||5===a||7===a,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(e){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[e]:void 0)||0},e.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},e.prototype.widthOfString=function(e,t,r){var n,a,i,o;for(i=0,a=0,o=(e=""+e).length;0<=o?a<o:a>o;a=0<=o?++a:--a)n=e.charCodeAt(a),i+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/t)||0;return i*(t/1e3)},e.prototype.lineHeight=function(e,t){var r;return null==t&&(t=!1),r=t?this.lineGap:0,(this.ascender+r-this.decender)/1e3*e},e}();var it,ot=function(){function e(e){this.data=null!=e?e:[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(e){return this.data[this.pos++]=e},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},e.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},e.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},e.prototype.readString=function(e){var t,r;for(r=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)r[t]=String.fromCharCode(this.readByte());return r.join("")},e.prototype.writeString=function(e){var t,r,n;for(n=[],t=0,r=e.length;0<=r?t<r:t>r;t=0<=r?++t:--t)n.push(this.writeByte(e.charCodeAt(t)));return n},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(e){return this.writeInt16(e)},e.prototype.readLongLong=function(){var e,t,r,n,a,i,o,s;return e=this.readByte(),t=this.readByte(),r=this.readByte(),n=this.readByte(),a=this.readByte(),i=this.readByte(),o=this.readByte(),s=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^a)+65536*(255^i)+256*(255^o)+(255^s)+1):72057594037927940*e+281474976710656*t+1099511627776*r+4294967296*n+16777216*a+65536*i+256*o+s},e.prototype.writeLongLong=function(e){var t,r;return t=Math.floor(e/4294967296),r=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(e){return this.writeInt32(e)},e.prototype.read=function(e){var t,r;for(t=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)t.push(this.readByte());return t},e.prototype.write=function(e){var t,r,n,a;for(a=[],r=0,n=e.length;r<n;r++)t=e[r],a.push(this.writeByte(t));return a},e}(),st=function(){var e;function t(e){var t,r,n;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},r=0,n=this.tableCount;0<=n?r<n:r>n;r=0<=n?++r:--r)t={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var r,n,a,i,o,s,l,c,u,h,f,d,p;for(p in f=Object.keys(t).length,s=Math.log(2),u=16*Math.floor(Math.log(f)/s),i=Math.floor(u/s),c=16*f-u,(n=new ot).writeInt(this.scalarType),n.writeShort(f),n.writeShort(u),n.writeShort(i),n.writeShort(c),a=16*f,l=n.pos+a,o=null,d=[],t)for(h=t[p],n.writeString(p),n.writeInt(e(h)),n.writeInt(l),n.writeInt(h.length),d=d.concat(h),"head"===p&&(o=l),l+=h.length;l%4;)d.push(0),l++;return n.write(d),r=2981146554-e(n.data),n.pos=o+8,n.writeUInt32(r),n.data},e=function(e){var t,r,n,a;for(e=xt.call(e);e.length%4;)e.push(0);for(n=new ot(e),r=0,t=0,a=e.length;t<a;t=t+=4)r+=n.readUInt32();return 4294967295&r},t}(),lt={}.hasOwnProperty,ct=function(e,t){for(var r in t)lt.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};it=function(){function e(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var ut=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ct(t,it),t.prototype.tag="head",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},t.prototype.encode=function(e){var t;return(t=new ot).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},t}(),ht=function(){function e(e,t){var r,n,a,i,o,s,l,c,u,h,f,d,p,g,m,v,b;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),u=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=e.readByte();break;case 4:for(f=e.readUInt16(),h=f/2,e.pos+=6,a=function(){var t,r;for(r=[],s=t=0;0<=h?t<h:t>h;s=0<=h?++t:--t)r.push(e.readUInt16());return r}(),e.pos+=2,p=function(){var t,r;for(r=[],s=t=0;0<=h?t<h:t>h;s=0<=h?++t:--t)r.push(e.readUInt16());return r}(),l=function(){var t,r;for(r=[],s=t=0;0<=h?t<h:t>h;s=0<=h?++t:--t)r.push(e.readUInt16());return r}(),c=function(){var t,r;for(r=[],s=t=0;0<=h?t<h:t>h;s=0<=h?++t:--t)r.push(e.readUInt16());return r}(),n=(this.length-e.pos+this.offset)/2,o=function(){var t,r;for(r=[],s=t=0;0<=n?t<n:t>n;s=0<=n?++t:--t)r.push(e.readUInt16());return r}(),s=m=0,b=a.length;m<b;s=++m)for(g=a[s],r=v=d=p[s];d<=g?v<=g:v>=g;r=d<=g?++v:--v)0===c[s]?i=r+l[s]:0!==(i=o[c[s]/2+(r-d)-(h-s)]||0)&&(i+=l[s]),this.codeMap[r]=65535&i}e.pos=u}return e.encode=function(e,t){var r,n,a,i,o,s,l,c,u,h,f,d,p,g,m,v,b,y,x,w,_,S,C,k,A,N,E,L,M,F,T,D,I,O,P,R,j,B,V,z,U,H,q,G,W,$;switch(L=new ot,i=Object.keys(e).sort((function(e,t){return e-t})),t){case"macroman":for(p=0,g=function(){var e=[];for(d=0;d<256;++d)e.push(0);return e}(),v={0:0},a={},M=0,I=i.length;M<I;M++)null==v[q=e[n=i[M]]]&&(v[q]=++p),a[n]={old:e[n],"new":v[e[n]]},g[n]=v[e[n]];return L.writeUInt16(1),L.writeUInt16(0),L.writeUInt32(12),L.writeUInt16(0),L.writeUInt16(262),L.writeUInt16(0),L.write(g),{charMap:a,subtable:L.data,maxGlyphID:p+1};case"unicode":for(N=[],u=[],b=0,v={},r={},m=l=null,F=0,O=i.length;F<O;F++)null==v[x=e[n=i[F]]]&&(v[x]=++b),r[n]={old:x,"new":v[x]},o=v[x]-n,null!=m&&o===l||(m&&u.push(m),N.push(n),l=o),m=n;for(m&&u.push(m),u.push(65535),N.push(65535),k=2*(C=N.length),S=2*Math.pow(Math.log(C)/Math.LN2,2),h=Math.log(S/2)/Math.LN2,_=2*C-S,s=[],w=[],f=[],d=T=0,P=N.length;T<P;d=++T){if(A=N[d],c=u[d],65535===A){s.push(0),w.push(0);break}if(A-(E=r[A]["new"])>=32768)for(s.push(0),w.push(2*(f.length+C-d)),n=D=A;A<=c?D<=c:D>=c;n=A<=c?++D:--D)f.push(r[n]["new"]);else s.push(E-A),w.push(0)}for(L.writeUInt16(3),L.writeUInt16(1),L.writeUInt32(12),L.writeUInt16(4),L.writeUInt16(16+8*C+2*f.length),L.writeUInt16(0),L.writeUInt16(k),L.writeUInt16(S),L.writeUInt16(h),L.writeUInt16(_),U=0,R=u.length;U<R;U++)n=u[U],L.writeUInt16(n);for(L.writeUInt16(0),H=0,j=N.length;H<j;H++)n=N[H],L.writeUInt16(n);for(G=0,B=s.length;G<B;G++)o=s[G],L.writeUInt16(o);for(W=0,V=w.length;W<V;W++)y=w[W],L.writeUInt16(y);for($=0,z=f.length;$<z;$++)p=f[$],L.writeUInt16(p);return{charMap:r,subtable:L.data,maxGlyphID:b+1}}},e}(),ft=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ct(t,it),t.prototype.tag="cmap",t.prototype.parse=function(e){var t,r,n;for(e.pos=this.offset,this.version=e.readUInt16(),n=e.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)t=new ht(e,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},t.encode=function(e,t){var r,n;return null==t&&(t="macroman"),r=ht.encode(e,t),(n=new ot).writeUInt16(0),n.writeUInt16(1),r.table=n.data.concat(r.subtable),r},t}(),dt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ct(t,it),t.prototype.tag="hhea",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},t}(),pt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ct(t,it),t.prototype.tag="OS/2",t.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var t,r;for(r=[],t=0;t<10;++t)r.push(e.readByte());return r}(),this.charRange=function(){var t,r;for(r=[],t=0;t<4;++t)r.push(e.readInt());return r}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var t,r;for(r=[],t=0;t<2;t=++t)r.push(e.readInt());return r}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},t}(),gt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ct(t,it),t.prototype.tag="post",t.prototype.parse=function(e){var t,r,n;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:break;case 131072:var a;for(r=e.readUInt16(),this.glyphNameIndex=[],a=0;0<=r?a<r:a>r;a=0<=r?++a:--a)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],n=[];e.pos<this.offset+this.length;)t=e.readByte(),n.push(this.names.push(e.readString(t)));return n;case 151552:return r=e.readUInt16(),this.offsets=e.read(r);case 196608:break;case 262144:return this.map=function(){var t,r,n;for(n=[],a=t=0,r=this.file.maxp.numGlyphs;0<=r?t<r:t>r;a=0<=r?++t:--t)n.push(e.readUInt32());return n}.call(this)}},t}(),mt=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},vt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ct(t,it),t.prototype.tag="name",t.prototype.parse=function(e){var t,r,n,a,i,o,s,l,c,u,h;for(e.pos=this.offset,e.readShort(),t=e.readShort(),o=e.readShort(),r=[],a=0;0<=t?a<t:a>t;a=0<=t?++a:--a)r.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+o+e.readShort()});for(s={},a=c=0,u=r.length;c<u;a=++c)n=r[a],e.pos=n.offset,l=e.readString(n.length),i=new mt(l,n),null==s[h=n.nameID]&&(s[h]=[]),s[n.nameID].push(i);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(e){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},t}(),bt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ct(t,it),t.prototype.tag="maxp",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},t}(),yt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ct(t,it),t.prototype.tag="hmtx",t.prototype.parse=function(e){var t,r,n,a,i,o,s;for(e.pos=this.offset,this.metrics=[],t=0,o=this.file.hhea.numberOfMetrics;0<=o?t<o:t>o;t=0<=o?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var r,a;for(a=[],t=r=0;0<=n?r<n:r>n;t=0<=n?++r:--r)a.push(e.readInt16());return a}(),this.widths=function(){var e,t,r,n;for(n=[],e=0,t=(r=this.metrics).length;e<t;e++)a=r[e],n.push(a.advance);return n}.call(this),r=this.widths[this.widths.length-1],s=[],t=i=0;0<=n?i<n:i>n;t=0<=n?++i:--i)s.push(this.widths.push(r));return s},t.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},t}(),xt=[].slice,wt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ct(t,it),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(e){var t,r,n,a,i,o,s,l,c,u;return e in this.cache?this.cache[e]:(a=this.file.loca,t=this.file.contents,r=a.indexOf(e),0===(n=a.lengthOf(e))?this.cache[e]=null:(t.pos=this.offset+r,i=(o=new ot(t.read(n))).readShort(),l=o.readShort(),u=o.readShort(),s=o.readShort(),c=o.readShort(),this.cache[e]=-1===i?new St(o,l,u,s,c):new _t(o,i,l,u,s,c),this.cache[e]))},t.prototype.encode=function(e,t,r){var n,a,i,o,s;for(i=[],a=[],o=0,s=t.length;o<s;o++)n=e[t[o]],a.push(i.length),n&&(i=i.concat(n.encode(r)));return a.push(i.length),{table:i,offsets:a}},t}(),_t=function(){function e(e,t,r,n,a,i){this.raw=e,this.numberOfContours=t,this.xMin=r,this.yMin=n,this.xMax=a,this.yMax=i,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),St=function(){function e(e,t,r,n,a){var i,o;for(this.raw=e,this.xMin=t,this.yMin=r,this.xMax=n,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;o=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readUInt16()),32&o;)i.pos+=1&o?4:2,128&o?i.pos+=8:64&o?i.pos+=4:8&o&&(i.pos+=2)}return e.prototype.encode=function(){var e,t,r;for(t=new ot(xt.call(this.raw.data)),e=0,r=this.glyphIDs.length;e<r;++e)t.pos=this.glyphOffsets[e];return t.data},e}(),Ct=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ct(t,it),t.prototype.tag="loca",t.prototype.parse=function(e){var t,r;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,n;for(n=[],r=0,t=this.length;r<t;r+=2)n.push(2*e.readUInt16());return n}.call(this):function(){var t,n;for(n=[],r=0,t=this.length;r<t;r+=4)n.push(e.readUInt32());return n}.call(this)},t.prototype.indexOf=function(e){return this.offsets[e]},t.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},t.prototype.encode=function(e,t){for(var r=new Uint32Array(this.offsets.length),n=0,a=0,i=0;i<r.length;++i)if(r[i]=n,a<t.length&&t[a]==i){++a,r[i]=n;var o=this.offsets[i],s=this.offsets[i+1]-o;s>0&&(n+=s)}for(var l=new Array(4*r.length),c=0;c<r.length;++c)l[4*c+3]=255&r[c],l[4*c+2]=(65280&r[c])>>8,l[4*c+1]=(16711680&r[c])>>16,l[4*c]=(4278190080&r[c])>>24;return l},t}(),kt=function(){function e(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var e,t,r,n,a;for(t in n=this.font.cmap.tables[0].codeMap,e={},a=this.subset)r=a[t],e[t]=n[r];return e},e.prototype.glyphsFor=function(e){var t,r,n,a,i,o,s;for(n={},i=0,o=e.length;i<o;i++)n[a=e[i]]=this.font.glyf.glyphFor(a);for(a in t=[],n)(null!=(r=n[a])?r.compound:void 0)&&t.push.apply(t,r.glyphIDs);if(t.length>0)for(a in s=this.glyphsFor(t))r=s[a],n[a]=r;return n},e.prototype.encode=function(e,t){var r,n,a,i,o,s,l,c,u,h,f,d,p,g,m;for(n in r=ft.encode(this.generateCmap(),"unicode"),i=this.glyphsFor(e),f={0:0},m=r.charMap)f[(s=m[n]).old]=s["new"];for(d in h=r.maxGlyphID,i)d in f||(f[d]=h++);return c=function(e){var t,r;for(t in r={},e)r[e[t]]=t;return r}(f),u=Object.keys(c).sort((function(e,t){return e-t})),p=function(){var e,t,r;for(r=[],e=0,t=u.length;e<t;e++)o=u[e],r.push(c[o]);return r}(),a=this.font.glyf.encode(i,p,f),l=this.font.loca.encode(a.offsets,p),g={cmap:this.font.cmap.raw(),glyf:a.table,loca:l,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},e}();B.API.PDFObject=function(){var e;function t(){}return e=function(e,t){return(Array(t+1).join("0")+e).slice(-t)},t.convert=function(r){var n,a,i,o;if(Array.isArray(r))return"["+function(){var e,a,i;for(i=[],e=0,a=r.length;e<a;e++)n=r[e],i.push(t.convert(n));return i}().join(" ")+"]";if("string"==typeof r)return"/"+r;if(null!=r?r.isString:void 0)return"("+r+")";if(r instanceof Date)return"(D:"+e(r.getUTCFullYear(),4)+e(r.getUTCMonth(),2)+e(r.getUTCDate(),2)+e(r.getUTCHours(),2)+e(r.getUTCMinutes(),2)+e(r.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(r)){for(a in i=["<<"],r)o=r[a],i.push("/"+a+" "+t.convert(o));return i.push(">>"),i.join("\n")}return""+r},t}(),t["default"]=B}.call(this,r(6))},function(e,t){function r(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=r=function(e){return typeof e},e.exports["default"]=e.exports,e.exports.__esModule=!0):(e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports["default"]=e.exports,e.exports.__esModule=!0),r(t)}e.exports=r,e.exports["default"]=e.exports,e.exports.__esModule=!0},function(e,t,r){"use strict";r.r(t),r.d(t,"Deflate",(function(){return ye})),r.d(t,"AsyncDeflate",(function(){return xe})),r.d(t,"deflate",(function(){return we})),r.d(t,"deflateSync",(function(){return _e})),r.d(t,"Inflate",(function(){return Se})),r.d(t,"AsyncInflate",(function(){return Ce})),r.d(t,"inflate",(function(){return ke})),r.d(t,"inflateSync",(function(){return Ae})),r.d(t,"Gzip",(function(){return Ne})),r.d(t,"AsyncGzip",(function(){return Ee})),r.d(t,"gzip",(function(){return Le})),r.d(t,"gzipSync",(function(){return Me})),r.d(t,"Gunzip",(function(){return Fe})),r.d(t,"AsyncGunzip",(function(){return Te})),r.d(t,"gunzip",(function(){return De})),r.d(t,"gunzipSync",(function(){return Ie})),r.d(t,"Zlib",(function(){return Oe})),r.d(t,"AsyncZlib",(function(){return Pe})),r.d(t,"zlib",(function(){return Re})),r.d(t,"zlibSync",(function(){return je})),r.d(t,"Unzlib",(function(){return Be})),r.d(t,"AsyncUnzlib",(function(){return Ve})),r.d(t,"unzlib",(function(){return ze})),r.d(t,"unzlibSync",(function(){return Ue})),r.d(t,"compress",(function(){return Le})),r.d(t,"AsyncCompress",(function(){return Ee})),r.d(t,"compressSync",(function(){return Me})),r.d(t,"Compress",(function(){return Ne})),r.d(t,"Decompress",(function(){return He})),r.d(t,"AsyncDecompress",(function(){return qe})),r.d(t,"decompress",(function(){return Ge})),r.d(t,"decompressSync",(function(){return We})),r.d(t,"strToU8",(function(){return Xe})),r.d(t,"strFromU8",(function(){return Ye})),r.d(t,"zip",(function(){return tt})),r.d(t,"zipSync",(function(){return rt})),r.d(t,"unzip",(function(){return nt})),r.d(t,"unzipSync",(function(){return at}));var n={},a=Uint8Array,i=Uint16Array,o=Uint32Array,s=new a([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),l=new a([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),c=new a([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=function(e,t){for(var r=new i(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];var a=new o(r[30]);for(n=1;n<30;++n)for(var s=r[n];s<r[n+1];++s)a[s]=s-r[n]<<5|n;return[r,a]},h=u(s,2),f=h[0],d=h[1];f[28]=258,d[258]=28;for(var p=u(l,0),g=p[0],m=p[1],v=new i(32768),b=0;b<32768;++b){var y=(43690&b)>>>1|(21845&b)<<1;y=(61680&(y=(52428&y)>>>2|(13107&y)<<2))>>>4|(3855&y)<<4,v[b]=((65280&y)>>>8|(255&y)<<8)>>>1}var x=function(e,t,r){for(var n=e.length,a=0,o=new i(t);a<n;++a)++o[e[a]-1];var s,l=new i(t);for(a=0;a<t;++a)l[a]=l[a-1]+o[a-1]<<1;if(r){s=new i(1<<t);var c=15-t;for(a=0;a<n;++a)if(e[a])for(var u=a<<4|e[a],h=t-e[a],f=l[e[a]-1]++<<h,d=f|(1<<h)-1;f<=d;++f)s[v[f]>>>c]=u}else for(s=new i(n),a=0;a<n;++a)s[a]=v[l[e[a]-1]++]>>>15-e[a];return s},w=new a(288);for(b=0;b<144;++b)w[b]=8;for(b=144;b<256;++b)w[b]=9;for(b=256;b<280;++b)w[b]=7;for(b=280;b<288;++b)w[b]=8;var _=new a(32);for(b=0;b<32;++b)_[b]=5;var S=x(w,9,0),C=x(w,9,1),k=x(_,5,0),A=x(_,5,1),N=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},E=function(e,t,r){var n=t/8>>0;return(e[n]|e[n+1]<<8)>>>(7&t)&r},L=function(e,t){var r=t/8>>0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>>(7&t)},M=function(e){return(e/8>>0)+(7&e&&1)},F=function(e,t,r){(null==t||t<0)&&(t=0),(null==r||r>e.length)&&(r=e.length);var n=new(e instanceof i?i:e instanceof o?o:a)(r-t);return n.set(e.subarray(t,r)),n},T=function(e,t,r){var n=e.length,i=!t||r,o=!r||r.i;r||(r={}),t||(t=new a(3*n));var u=function(e){var r=t.length;if(e>r){var n=new a(Math.max(2*r,e));n.set(t),t=n}},h=r.f||0,d=r.p||0,p=r.b||0,m=r.l,v=r.d,b=r.m,y=r.n,w=8*n;do{if(!m){r.f=h=E(e,d,1);var _=E(e,d+1,3);if(d+=3,!_){var S=e[(z=M(d)+4)-4]|e[z-3]<<8,k=z+S;if(k>n){if(o)throw"unexpected EOF";break}i&&u(p+S),t.set(e.subarray(z,k),p),r.b=p+=S,r.p=d=8*k;continue}if(1==_)m=C,v=A,b=9,y=5;else{if(2!=_)throw"invalid block type";var T=E(e,d,31)+257,D=E(e,d+10,15)+4,I=T+E(e,d+5,31)+1;d+=14;for(var O=new a(I),P=new a(19),R=0;R<D;++R)P[c[R]]=E(e,d+3*R,7);d+=3*D;var j=N(P),B=(1<<j)-1;if(!o&&d+I*(j+7)>w)break;var V=x(P,j,1);for(R=0;R<I;){var z,U=V[E(e,d,B)];if(d+=15&U,(z=U>>>4)<16)O[R++]=z;else{var H=0,q=0;for(16==z?(q=3+E(e,d,3),d+=2,H=O[R-1]):17==z?(q=3+E(e,d,7),d+=3):18==z&&(q=11+E(e,d,127),d+=7);q--;)O[R++]=H}}var G=O.subarray(0,T),W=O.subarray(T);b=N(G),y=N(W),m=x(G,b,1),v=x(W,y,1)}if(d>w)throw"unexpected EOF"}i&&u(p+131072);for(var $=(1<<b)-1,X=(1<<y)-1,Y=b+y+18;o||d+Y<w;){var K=(H=m[L(e,d)&$])>>>4;if((d+=15&H)>w)throw"unexpected EOF";if(!H)throw"invalid length/literal";if(K<256)t[p++]=K;else{if(256==K){m=null;break}var J=K-254;if(K>264){var Z=s[R=K-257];J=E(e,d,(1<<Z)-1)+f[R],d+=Z}var Q=v[L(e,d)&X],ee=Q>>>4;if(!Q)throw"invalid distance";d+=15&Q;W=g[ee];if(ee>3){Z=l[ee];W+=L(e,d)&(1<<Z)-1,d+=Z}if(d>w)throw"unexpected EOF";i&&u(p+131072);for(var te=p+J;p<te;p+=4)t[p]=t[p-W],t[p+1]=t[p+1-W],t[p+2]=t[p+2-W],t[p+3]=t[p+3-W];p=te}}r.l=m,r.p=d,r.b=p,m&&(h=1,r.m=b,r.d=v,r.n=y)}while(!h);return p==t.length?t:F(t,0,p)},D=function(e,t,r){r<<=7&t;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8},I=function(e,t,r){r<<=7&t;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},O=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var o=r.length,s=r.slice();if(!o)return[new a(0),0];if(1==o){var l=new a(r[0].s+1);return l[r[0].s]=1,[l,1]}r.sort((function(e,t){return e.f-t.f})),r.push({s:-1,f:25001});var c=r[0],u=r[1],h=0,f=1,d=2;for(r[0]={s:-1,f:c.f+u.f,l:c,r:u};f!=o-1;)c=r[r[h].f<r[d].f?h++:d++],u=r[h!=f&&r[h].f<r[d].f?h++:d++],r[f++]={s:-1,f:c.f+u.f,l:c,r:u};var p=s[0].s;for(n=1;n<o;++n)s[n].s>p&&(p=s[n].s);var g=new i(p+1),m=P(r[f-1],g,0);if(m>t){n=0;var v=0,b=m-t,y=1<<b;for(s.sort((function(e,t){return g[t.s]-g[e.s]||e.f-t.f}));n<o;++n){var x=s[n].s;if(!(g[x]>t))break;v+=y-(1<<m-g[x]),g[x]=t}for(v>>>=b;v>0;){var w=s[n].s;g[w]<t?v-=1<<t-g[w]++-1:++n}for(;n>=0&&v;--n){var _=s[n].s;g[_]==t&&(--g[_],++v)}m=t}return[new a(g),m]},P=function it(e,t,r){return-1==e.s?Math.max(it(e.l,t,r+1),it(e.r,t,r+1)):t[e.s]=r},R=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new i(++t),n=0,a=e[0],o=1,s=function(e){r[n++]=e},l=1;l<=t;++l)if(e[l]==a&&l!=t)++o;else{if(!a&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(a),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(a);o=1,a=e[l]}return[r.subarray(0,n),t]},j=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},B=function(e,t,r){var n=r.length,a=M(t+2);e[a]=255&n,e[a+1]=n>>>8,e[a+2]=255^e[a],e[a+3]=255^e[a+1];for(var i=0;i<n;++i)e[a+i+4]=r[i];return 8*(a+4+n)},V=function(e,t,r,n,a,o,u,h,f,d,p){D(t,p++,r),++a[256];for(var g=O(a,15),m=g[0],v=g[1],b=O(o,15),y=b[0],C=b[1],A=R(m),N=A[0],E=A[1],L=R(y),M=L[0],F=L[1],T=new i(19),P=0;P<N.length;++P)T[31&N[P]]++;for(P=0;P<M.length;++P)T[31&M[P]]++;for(var V=O(T,7),z=V[0],U=V[1],H=19;H>4&&!z[c[H-1]];--H);var q,G,W,$,X=d+5<<3,Y=j(a,w)+j(o,_)+u,K=j(a,m)+j(o,y)+u+14+3*H+j(T,z)+(2*T[16]+3*T[17]+7*T[18]);if(X<=Y&&X<=K)return B(t,p,e.subarray(f,f+d));if(D(t,p,1+(K<Y)),p+=2,K<Y){q=x(m,v,0),G=m,W=x(y,C,0),$=y;var J=x(z,U,0);D(t,p,E-257),D(t,p+5,F-1),D(t,p+10,H-4),p+=14;for(P=0;P<H;++P)D(t,p+3*P,z[c[P]]);p+=3*H;for(var Z=[N,M],Q=0;Q<2;++Q){var ee=Z[Q];for(P=0;P<ee.length;++P){var te=31&ee[P];D(t,p,J[te]),p+=z[te],te>15&&(D(t,p,ee[P]>>>5&127),p+=ee[P]>>>12)}}}else q=S,G=w,W=k,$=_;for(P=0;P<h;++P)if(n[P]>255){te=n[P]>>>18&31;I(t,p,q[te+257]),p+=G[te+257],te>7&&(D(t,p,n[P]>>>23&31),p+=s[te]);var re=31&n[P];I(t,p,W[re]),p+=$[re],re>3&&(I(t,p,n[P]>>>5&8191),p+=l[re])}else I(t,p,q[n[P]]),p+=G[n[P]];return I(t,p,q[256]),p+G[256]},z=new o([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),U=new a(0),H=function(e,t,r,n,c,u){var h=e.length,f=new a(n+h+5*(1+Math.floor(h/7e3))+c),p=f.subarray(n,f.length-c),g=0;if(!t||h<8)for(var v=0;v<=h;v+=65535){var b=v+65535;b<h?g=B(p,g,e.subarray(v,b)):(p[v]=u,g=B(p,g,e.subarray(v,h)))}else{for(var y=z[t-1],x=y>>>13,w=8191&y,_=(1<<r)-1,S=new i(32768),C=new i(_+1),k=Math.ceil(r/3),A=2*k,N=function(t){return(e[t]^e[t+1]<<k^e[t+2]<<A)&_},E=new o(25e3),L=new i(288),T=new i(32),D=0,I=0,O=(v=0,0),P=0,R=0;v<h;++v){var j=N(v),H=32767&v,q=C[j];if(S[H]=q,C[j]=H,P<=v){var G=h-v;if((D>7e3||O>24576)&&G>423){g=V(e,p,0,E,L,T,I,O,R,v-R,g),O=D=I=0,R=v;for(var W=0;W<286;++W)L[W]=0;for(W=0;W<30;++W)T[W]=0}var $=2,X=0,Y=w,K=H-q&32767;if(G>2&&j==N(v-K))for(var J=Math.min(x,G)-1,Z=Math.min(32767,v),Q=Math.min(258,G);K<=Z&&--Y&&H!=q;){if(e[v+$]==e[v+$-K]){for(var ee=0;ee<Q&&e[v+ee]==e[v+ee-K];++ee);if(ee>$){if($=ee,X=K,ee>J)break;var te=Math.min(K,ee-2),re=0;for(W=0;W<te;++W){var ne=v-K+W+32768&32767,ae=ne-S[ne]+32768&32767;ae>re&&(re=ae,q=ne)}}}K+=(H=q)-(q=S[H])+32768&32767}if(X){E[O++]=268435456|d[$]<<18|m[X];var ie=31&d[$],oe=31&m[X];I+=s[ie]+l[oe],++L[257+ie],++T[oe],P=v+$,++D}else E[O++]=e[v],++L[e[v]]}}g=V(e,p,u,E,L,T,I,O,R,v-R,g),u||(g=B(p,g,U))}return F(f,0,n+M(g)+c)},q=function(){for(var e=new o(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(1&r&&3988292384)^r>>>1;e[t]=r}return e}(),G=function(){var e=4294967295;return{p:function(t){for(var r=e,n=0;n<t.length;++n)r=q[255&r^t[n]]^r>>>8;e=r},d:function(){return 4294967295^e}}},W=function(){var e=1,t=0;return{p:function(r){for(var n=e,a=t,i=r.length,o=0;o!=i;){for(var s=Math.min(o+5552,i);o<s;++o)a+=n+=r[o];n%=65521,a%=65521}e=n,t=a},d:function(){return(e>>>8<<16|(255&t)<<8|t>>>8)+2*((255&e)<<23)}}},$=function(e,t,r,n,a){return H(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,r,n,!a)},X=function(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r},Y=function(e,t,r){for(var n=e(),a=e.toString(),i=a.slice(a.indexOf("[")+1,a.lastIndexOf("]")).replace(/ /g,"").split(","),o=0;o<n.length;++o){var s=n[o],l=i[o];if("function"==typeof s){t+=";"+l+"=";var c=s.toString();if(s.prototype)if(-1!=c.indexOf("[native code]")){var u=c.indexOf(" ",8)+1;t+=c.slice(u,c.indexOf("(",u))}else for(var h in t+=c,s.prototype)t+=";"+l+".prototype."+h+"="+s.prototype[h].toString();else t+=c}else r[l]=s}return[t,r]},K=[],J=function(e,t,r,s){var l;if(!K[r]){for(var c="",u={},h=e.length-1,f=0;f<h;++f)c=(l=Y(e[f],c,u))[0],u=l[1];K[r]=Y(e[h],c,u)}var d=X({},K[r][1]);return function(e,t,r,a,i){var o=n[t]||(n[t]=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))),s=new Worker(o);return s.onerror=function(e){return i(e.error,null)},s.onmessage=function(e){return i(null,e.data)},s.postMessage(r,a),s}(K[r][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",r,d,function(e){var t=[];for(var r in e)(e[r]instanceof a||e[r]instanceof i||e[r]instanceof o)&&t.push((e[r]=new e[r].constructor(e[r])).buffer);return t}(d),s)},Z=function(){return[a,i,o,s,l,c,f,g,C,A,v,x,N,E,L,M,F,T,Ae,ae,ie]},Q=function(){return[a,i,o,s,l,c,d,m,S,w,k,_,v,z,U,x,D,I,O,P,R,j,B,V,M,F,H,$,_e,ae]},ee=function(){return[fe,ge,he,G,q]},te=function(){return[de,pe]},re=function(){return[me,he,W]},ne=function(){return[ve]},ae=function(e){return postMessage(e,[e.buffer])},ie=function(e){return e&&e.size&&new a(e.size)},oe=function(e,t,r,n,i,o){var s=J(r,n,i,(function(e,t){s.terminate(),o(e,t)}));return t.consume||(e=new a(e)),s.postMessage([e,t],[e.buffer]),function(){s.terminate()}},se=function(e){return e.ondata=function(e,t){return postMessage([e,t],[e.buffer])},function(t){return e.push(t.data[0],t.data[1])}},le=function(e,t,r,n,a){var i,o=J(e,n,a,(function(e,r){e?(o.terminate(),t.ondata.call(t,e)):(r[1]&&o.terminate(),t.ondata.call(t,e,r[0],r[1]))}));o.postMessage(r),t.push=function(e,r){if(i)throw"stream finished";if(!t.ondata)throw"no stream handler";o.postMessage([e,i=r],[e.buffer])},t.terminate=function(){o.terminate()}},ce=function(e,t){return e[t]|e[t+1]<<8},ue=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+2*(e[t+3]<<23)},he=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},fe=function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&he(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var n=0;n<=r.length;++n)e[n+10]=r.charCodeAt(n)}},de=function(e){if(31!=e[0]||139!=e[1]||8!=e[2])throw"invalid gzip data";var t=e[3],r=10;4&t&&(r+=e[10]|2+(e[11]<<8));for(var n=(t>>3&1)+(t>>4&1);n>0;n-=!e[r++]);return r+(2&t)},pe=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16)+2*(e[t-1]<<23)},ge=function(e){return 10+(e.filename&&e.filename.length+1||0)},me=function(e,t){var r=t.level,n=0==r?0:r<6?1:9==r?3:2;e[0]=120,e[1]=n<<6|(n?32-2*n:1)},ve=function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"};function be(e,t){return t||"function"!=typeof e||(t=e,e={}),this.ondata=t,e}var ye=function(){function e(e,t){t||"function"!=typeof e||(t=e,e={}),this.ondata=t,this.o=e||{}}return e.prototype.p=function(e,t){this.ondata($(e,this.o,0,0,!t),t)},e.prototype.push=function(e,t){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=t,this.p(e,t||!1)},e}(),xe=function(){return function(e,t){le([Q,function(){return[se,ye]}],this,be.call(this,e,t),(function(e){var t=new ye(e.data);onmessage=se(t)}),6)}}();function we(e,t,r){if(r||(r=t,t={}),"function"!=typeof r)throw"no callback";return oe(e,t,[Q],(function(e){return ae(_e(e.data[0],e.data[1]))}),0,r)}function _e(e,t){return void 0===t&&(t={}),$(e,t,0,0)}var Se=function(){function e(e){this.s={},this.p=new a(0),this.ondata=e}return e.prototype.e=function(e){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var t=this.p.length,r=new a(t+e.length);r.set(this.p),r.set(e,t),this.p=r},e.prototype.c=function(e){this.d=this.s.i=e||!1;var t=this.s.b,r=T(this.p,this.o,this.s);this.ondata(F(r,t,this.s.b),this.d),this.o=F(r,this.s.b-32768),this.s.b=this.o.length,this.p=F(this.p,this.s.p/8>>0),this.s.p&=7},e.prototype.push=function(e,t){this.e(e),this.c(t)},e}(),Ce=function(){return function(e){this.ondata=e,le([Z,function(){return[se,Se]}],this,0,(function(){var e=new Se;onmessage=se(e)}),7)}}();function ke(e,t,r){if(r||(r=t,t={}),"function"!=typeof r)throw"no callback";return oe(e,t,[Z],(function(e){return ae(Ae(e.data[0],ie(e.data[1])))}),1,r)}function Ae(e,t){return T(e,t)}var Ne=function(){function e(e,t){this.c=G(),this.l=0,this.v=1,ye.call(this,e,t)}return e.prototype.push=function(e,t){ye.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){this.c.p(e),this.l+=e.length;var r=$(e,this.o,this.v&&ge(this.o),t&&8,!t);this.v&&(fe(r,this.o),this.v=0),t&&(he(r,r.length-8,this.c.d()),he(r,r.length-4,this.l)),this.ondata(r,t)},e}(),Ee=function(){return function(e,t){le([Q,ee,function(){return[se,ye,Ne]}],this,be.call(this,e,t),(function(e){var t=new Ne(e.data);onmessage=se(t)}),8)}}();function Le(e,t,r){if(r||(r=t,t={}),"function"!=typeof r)throw"no callback";return oe(e,t,[Q,ee,function(){return[Me]}],(function(e){return ae(Me(e.data[0],e.data[1]))}),2,r)}function Me(e,t){void 0===t&&(t={});var r=G(),n=e.length;r.p(e);var a=$(e,t,ge(t),8),i=a.length;return fe(a,t),he(a,i-8,r.d()),he(a,i-4,n),a}var Fe=function(){function e(e){this.v=1,Se.call(this,e)}return e.prototype.push=function(e,t){if(Se.prototype.e.call(this,e),this.v){var r=de(this.p);if(r>=this.p.length&&!t)return;this.p=this.p.subarray(r),this.v=0}if(t){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Se.prototype.c.call(this,t)},e}(),Te=function(){return function(e){this.ondata=e,le([Z,te,function(){return[se,Se,Fe]}],this,0,(function(){var e=new Fe;onmessage=se(e)}),9)}}();function De(e,t,r){if(r||(r=t,t={}),"function"!=typeof r)throw"no callback";return oe(e,t,[Z,te,function(){return[Ie]}],(function(e){return ae(Ie(e.data[0]))}),3,r)}function Ie(e,t){return T(e.subarray(de(e),-8),t||new a(pe(e)))}var Oe=function(){function e(e,t){this.c=W(),this.v=1,ye.call(this,e,t)}return e.prototype.push=function(e,t){ye.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){this.c.p(e);var r=$(e,this.o,this.v&&2,t&&4,!t);this.v&&(me(r,this.o),this.v=0),t&&he(r,r.length-4,this.c.d()),this.ondata(r,t)},e}(),Pe=function(){return function(e,t){le([Q,re,function(){return[se,ye,Oe]}],this,be.call(this,e,t),(function(e){var t=new Oe(e.data);onmessage=se(t)}),10)}}();function Re(e,t,r){if(r||(r=t,t={}),"function"!=typeof r)throw"no callback";return oe(e,t,[Q,re,function(){return[je]}],(function(e){return ae(je(e.data[0],e.data[1]))}),4,r)}function je(e,t){void 0===t&&(t={});var r=W();r.p(e);var n=$(e,t,2,4);return me(n,t),he(n,n.length-4,r.d()),n}var Be=function(){function e(e){this.v=1,Se.call(this,e)}return e.prototype.push=function(e,t){if(Se.prototype.e.call(this,e),this.v){if(this.p.length<2&&!t)return;this.p=this.p.subarray(2),this.v=0}if(t){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Se.prototype.c.call(this,t)},e}(),Ve=function(){return function(e){this.ondata=e,le([Z,ne,function(){return[se,Se,Be]}],this,0,(function(){var e=new Be;onmessage=se(e)}),11)}}();function ze(e,t,r){if(r||(r=t,t={}),"function"!=typeof r)throw"no callback";return oe(e,t,[Z,ne,function(){return[Ue]}],(function(e){return ae(Ue(e.data[0],ie(e.data[1])))}),5,r)}function Ue(e,t){return T((ve(e),e.subarray(2,-4)),t)}var He=function(){function e(e){this.G=Fe,this.I=Se,this.Z=Be,this.ondata=e}return e.prototype.push=function(e,t){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(e,t);else{if(this.p&&this.p.length){var r=new a(this.p.length+e.length);r.set(this.p),r.set(e,this.p.length)}else this.p=e;if(this.p.length>2){var n=this,i=function(){n.ondata.apply(n,arguments)};this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(i):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(i):new this.Z(i),this.s.push(this.p,t),this.p=null}}},e}(),qe=function(){function e(e){this.G=Te,this.I=Ce,this.Z=Ve,this.ondata=e}return e.prototype.push=function(e,t){He.prototype.push.call(this,e,t)},e}();function Ge(e,t,r){if(r||(r=t,t={}),"function"!=typeof r)throw"no callback";return 31==e[0]&&139==e[1]&&8==e[2]?De(e,t,r):8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31?ke(e,t,r):ze(e,t,r)}function We(e,t){return 31==e[0]&&139==e[1]&&8==e[2]?Ie(e,t):8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31?Ae(e,t):Ue(e,t)}var $e=function ot(e,t,r,n){for(var i in e){var o=e[i],s=t+i;o instanceof a?r[s]=[o,n]:Array.isArray(o)?r[s]=[o[0],X(n,o[1])]:ot(o,s+"/",r,n)}};function Xe(e,t){var r=e.length;if(!t&&"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var n=new a(e.length+(e.length>>>1)),i=0,o=function(e){n[i++]=e},s=0;s<r;++s){if(i+5>n.length){var l=new a(i+8+(r-s<<1));l.set(n),n=l}var c=e.charCodeAt(s);c<128||t?o(c):c<2048?(o(192|c>>>6),o(128|63&c)):c>55295&&c<57344?(o(240|(c=65536+(1047552&c)|1023&e.charCodeAt(++s))>>>18),o(128|c>>>12&63),o(128|c>>>6&63),o(128|63&c)):(o(224|c>>>12),o(128|c>>>6&63),o(128|63&c))}return F(n,0,i)}function Ye(e,t){var r="";if(!t&&"undefined"!=typeof TextDecoder)return(new TextDecoder).decode(e);for(var n=0;n<e.length;){var a=e[n++];a<128||t?r+=String.fromCharCode(a):a<224?r+=String.fromCharCode((31&a)<<6|63&e[n++]):a<240?r+=String.fromCharCode((15&a)<<12|(63&e[n++])<<6|63&e[n++]):(a=((15&a)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536,r+=String.fromCharCode(55296|a>>10,56320|1023&a))}return r}var Ke=function(e,t){return t+30+ce(e,t+26)+ce(e,t+28)},Je=function(e,t,r){var n=ce(e,t+28),a=Ye(e.subarray(t+46,t+46+n),!(2048&ce(e,t+8))),i=t+46+n,o=r?Ze(e,i):[ue(e,t+20),ue(e,t+24),ue(e,t+42)],s=o[0],l=o[1],c=o[2];return[ce(e,t+10),s,l,a,i+ce(e,t+30)+ce(e,t+32),c]},Ze=function(e,t){for(;1!=ce(e,t);t+=4+ce(e,t+2));return[ue(e,t+12),ue(e,t+4),ue(e,t+20)]},Qe=function(e,t,r,n,a,i,o,s,l,c){var u=i.length,h=n.length;he(e,t,null!=l?33639248:67324752),t+=4,null!=l&&(e[t]=20,t+=2),e[t]=20,t+=2,e[t++]=8==c&&(1==s.level?6:s.level<6?4:9==s.level?2:0),e[t++]=o&&8,e[t]=c,t+=2;var f=new Date(s.mtime||Date.now()),d=f.getFullYear()-1980;if(d<0||d>119)throw"date not in range 1980-2099";he(e,t,2*(d<<24)|f.getMonth()+1<<21|f.getDate()<<16|f.getHours()<<11|f.getMinutes()<<5|f.getSeconds()>>>1),he(e,t+=4,r),he(e,t+4,h),he(e,t+8,a),he(e,t+12,u),t+=16,null!=l&&(he(e,t+=10,l),t+=4),e.set(i,t),t+=u,null==l&&e.set(n,t)},et=function(e,t,r,n,a){he(e,t,101010256),he(e,t+8,r),he(e,t+10,r),he(e,t+12,n),he(e,t+16,a)};function tt(e,t,r){if(r||(r=t,t={}),"function"!=typeof r)throw"no callback";var n={};$e(e,"",n,t);var i=Object.keys(n),o=i.length,s=0,l=0,c=o,u=new Array(o),h=[],f=function(){for(var e=0;e<h.length;++e)h[e]()},d=function(){var e=new a(l+22),t=s,n=l-s;l=0;for(var i=0;i<c;++i){var o=u[i];try{Qe(e,l,o.c,o.d,o.m,o.n,o.u,o.p,null,o.t),Qe(e,s,o.c,o.d,o.m,o.n,o.u,o.p,l,o.t),s+=46+o.n.length,l+=30+o.n.length+o.d.length}catch(h){return r(h,null)}}et(e,s,u.length,n,t),r(null,e)};o||d();for(var p=function(e){var t=i[e],a=n[t],c=a[0],p=a[1],g=G(),m=c.length;g.p(c);var v=Xe(t),b=v.length,y=0==p.level?0:8,x=function(n,a){if(n)f(),r(n,null);else{var i=a.length;u[e]={t:y,d:a,m:m,c:g.d(),u:t.length!=i,n:v,p:p},s+=30+b+i,l+=76+2*b+i,--o||d()}};if(v.length>65535&&x("filename too long",null),y)if(m<16e4)try{x(null,_e(c,p))}catch(w){x(w,null)}else h.push(we(c,p,x));else x(null,c)},g=0;g<c;++g)p(g);return f}function rt(e,t){void 0===t&&(t={});var r={},n=[];$e(e,"",r,t);var i=0,o=0;for(var s in r){var l=r[s],c=l[0],u=l[1],h=0==u.level?0:8,f=Xe(s),d=f.length;if(f.length>65535)throw"filename too long";var p=h?_e(c,u):c,g=p.length,m=G();m.p(c),n.push({t:h,d:p,m:c.length,c:m.d(),u:s.length!=d,n:f,o:i,p:u}),i+=30+d+g,o+=76+2*d+g}for(var v=new a(o+22),b=i,y=o-i,x=0;x<n.length;++x){var w=n[x];Qe(v,w.o,w.c,w.d,w.m,w.n,w.u,w.p,null,w.t),Qe(v,i,w.c,w.d,w.m,w.n,w.u,w.p,w.o,w.t),i+=46+w.n.length}return et(v,i,n.length,y,b),v}function nt(e,t){if("function"!=typeof t)throw"no callback";for(var r=[],n=function(){for(var e=0;e<r.length;++e)r[e]()},i={},o=e.length-22;101010256!=ue(e,o);--o)if(!o||e.length-o>65558)return void t("invalid zip file",null);var s=ce(e,o+8);s||t(null,{});var l=s,c=ue(e,o+16),u=4294967295==c;if(u){if(o=ue(e,o-12),101075792!=ue(e,o))throw"invalid zip file";l=s=ue(e,o+32),c=ue(e,o+48)}for(var h=function(l){var h=Je(e,c,u),f=h[0],d=h[1],p=h[2],g=h[3],m=h[4],v=h[5],b=Ke(e,v);c=m;var y=function(e,r){e?(n(),t(e,null)):(i[g]=r,--s||t(null,i))};if(f)if(8==f){var x=e.subarray(b,b+d);if(d<32e4)try{y(null,Ae(x,new a(p)))}catch(o){y(o,null)}else r.push(ke(x,{size:p},y))}else y("unknown compression type "+f,null);else y(null,F(e,b,b+d))},f=0;f<l;++f)h();return n}function at(e){for(var t={},r=e.length-22;101010256!=ue(e,r);--r)if(!r||e.length-r>65558)throw"invalid zip file";var n=ce(e,r+8);if(!n)return{};var i=ue(e,r+16),o=4294967295==i;if(o){if(r=ue(e,r-12),101075792!=ue(e,r))throw"invalid zip file";n=ue(e,r+32),i=ue(e,r+48)}for(var s=0;s<n;++s){var l=Je(e,i,o),c=l[0],u=l[1],h=l[2],f=l[3],d=l[4],p=l[5],g=Ke(e,p);if(i=d,c){if(8!=c)throw"unknown compression type "+c;t[f]=Ae(e.subarray(g,g+u),new a(h))}else t[f]=F(e,g,g+u)}return t}},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n,a,i=r(423),o=r(425),s=r(254),l=r(422),c=r(261),u=window,h=Math.max,f=u.Image,d=u.navigator.userAgent.match(/(iPad|iPhone|iPod)/g),p="https:"===u.location.protocol?"https://export.api3.fusioncharts.com/api/v1.0/logs":"http://export.api3.fusioncharts.com/api/v1.0/logs",g="https:"===u.location.protocol?"https://export.api3.fusioncharts.com/":"http://export.api3.fusioncharts.com/",m=function(e){return!e.match(/http:\/\/|https:\/\//)||!/(http:\/\/|https:\/\/)([^\/\:]*)/.exec(e)[2]||u.location.hostname===/(http:\/\/|https:\/\/)([^\/\:]*)/.exec(e)[2]},v=function(e,t,r,n){var a=e,i=t;return isNaN(a)&&(a=(0,s.pluckNumber)(t,n)*(r/n)),isNaN(i)&&(i=(0,s.pluckNumber)(e,r)*(n/r)),{width:a,height:i}},b=function(){(0,c.triggerEvent)("exportcancelled")};function y(){var e,t,r,y,x,w,_,S,C,k,A,N,E,L=arguments[0],M=L||{},F=0,T=!1,D={exportTargetWindow:(0,s.pluck)(M.exportTargetWindow,d?"_parent":"_self"),exportAction:M.exportAction&&"string"==typeof M.exportAction?(N=M.exportAction.toLowerCase(),[l.EXPORTACTION.DOWNLOAD,l.EXPORTACTION.SAVE,l.EXPORTACTION.DOWNLOADSAVE].indexOf(N)>=0?N:l.EXPORTACTION.DOWNLOAD):l.EXPORTACTION.DOWNLOAD,exportFileName:(0,s.pluck)(M.exportFileName,"FusionCharts"),exportHandler:(0,s.pluck)(M.exportHandler,g),exportParameters:(0,s.pluck)(M.exportParameters,""),exportFormat:(0,s.pluck)(M.exportFormat,l.EXPORTFORMAT.PNG),exportCallback:(0,s.pluck)(M.exportCallback,""),exportAtClientSide:(0,s.pluckNumber)(M.exportAtClientSide,1),exportMode:("undefined"!=typeof M.exportAtClientSide&&(A={1:l.EXPORTMODE.AUTO,0:l.EXPORTMODE.SERVER}[M.exportAtClientSide]),A=(A=M.exportMode||A||l.EXPORTMODE.AUTO).toLowerCase()),logEnabled:(0,s.pluckNumber)(M.logEnabled,0),logMode:(k=M.logMode,void 0!==k&&"string"==typeof k&&k.toUpperCase()in l.LOGMODE?l.LOGMODE[k.toUpperCase()]:l.LOGMODE.AUTO),logHandler:(0,s.pluck)(M.logHandler,p)},I=D.exportFormat.toLowerCase(),O=0,P=0,R=10,j=R/2,B=a.items,V=v,z=function(e,t,r){var n;return n=!!D.logEnabled,D.logMode===l.LOGMODE.CLIENT&&(n=!1),{charttype:"combined",stream_type:e||"",stream:t||"",is_single_export:!1,is_full_version:!1,version:s.PROJECT_VERSION,user_time_zone:-(new Date).getTimezoneOffset(),log_enabled:n,parameters:["exportfilename="+D.exportFileName,"exportformat="+D.exportFormat,"exportaction="+(0,l.createExportActionOldString)(D.exportAction),"exportactionnew="+D.exportAction,"configuredexportaction="+(r||D.exportAction),"exportparameters="+D].join("|")}},U=function(){return{chartType:"combined",isSingleExport:!1,isFullVersion:!1,exportAction:D.exportAction,userTimeZone:-(new Date).getTimezoneOffset(),exportFileName:[D.exportFileName,D.exportFormat].join("."),exportFormat:D.exportFormat,version:s.PROJECT_VERSION}},H=function(e){e===l.LOGMODE.CLIENT&&(0,l.logCharts)(U(),D)},q=function(e){var t,r,a;(0,c.triggerEvent)("beforeexport",n,n,n,(function(){r="undefined"!=typeof u.btoa&&("Chrome"===i.browserDetails.name||"Firefox"===i.browserDetails.name||"Safari"===i.browserDetails.name||"Edge"===i.browserDetails.name||"ie"===i.browserDetails.name),D.exportMode===l.EXPORTMODE.CLIENT||D.exportMode===l.EXPORTMODE.AUTO&&r?(D.exportAction!==l.EXPORTACTION.DOWNLOAD&&D.exportAction!==l.EXPORTACTION.DOWNLOADSAVE||(t=D.exportMode===l.EXPORTMODE.AUTO?z("IMAGE-DATA",e):null,(0,i.downloadCharts)("url",e,D.exportFileName+"."+I,t,D),(0,c.triggerEvent)("exported",n,{fileName:D.exportFileName+"."+I})),D.exportAction===l.EXPORTACTION.SAVE||D.exportAction===l.EXPORTACTION.DOWNLOADSAVE?(a=D.exportAction,D.exportAction===l.EXPORTACTION.DOWNLOADSAVE&&(D.exportAction=l.EXPORTACTION.SAVE),t=z("IMAGE-DATA",e,a),D.paper={width:n,height:n},D.fusionCharts={},(0,i.downloadCharts)(null,null,null,t,D),delete D.paper,delete D.fusioncharts,H(D.logMode)):D.logMode!==l.LOGMODE.SERVER&&(0,l.logCharts)(U(),D)):(t=z("IMAGE-DATA",e),D.paper={width:n,height:n},D.fusionCharts={},(0,i.downloadCharts)(null,null,null,t,D),delete D.paper,delete D.fusioncharts,H(D.logMode))}),b)},G=function(){if(0===(F-=1)&&T)switch(I){case"png":q(r.toDataURL("image/png"));break;case"jpeg":q(r.toDataURL("image/jpeg"));break;case"pdf":(0,o.addImage)(r.toDataURL("image/jpeg"),O,P),q((0,o.getDataUrl)());break;default:q(r.toDataURL("image/png"))}},W=function(){var e=this;(0,i.drawSvgOnCanvas)({svg:arguments[0],canvas:r,x:e.x,y:e.y,width:e.width,height:e.height,useCanvas:arguments[1]},G)},$=function(e){var t=M.background;(r=u.document.createElement("canvas")).id="newCanvas",r.width=P,r.height=O,r.style.border="1px solid black",(y=r.getContext("2d")).fillStyle=t&&t.bgColor||"#ffffff",y.fillRect(0,0,P,O),t&&t.bgImage&&m(t.bgImage)?((_=new f).src=t.bgImage,_._userData=t,y.globalAlpha=(0,s.pluckNumber)(t.bgImageAlpha,100)/100,_.onload=function(){var t=this._userData,r=(0,s.pluckNumber)(t.bgImageX,0),n=(0,s.pluckNumber)(t.bgImageY,0),a=V(Number(t.bgImageWidth),Number(t.bgImageHeight),this.width,this.height);try{y.drawImage(this,r,n,a.width,a.height)}finally{y.globalAlpha=1,e()}},_.onerror=function(){e()}):e()},X=function(t,r){var n,i;(e=a.items[t]).jsVars.instanceAPI&&(x=(x=(x=(x=e.jsVars.instanceAPI.getFromEnv("paper").toSVG(!0)).replace(/NS\d+:/gi,"xlink:")).replace(/(\sd\s*=\s*["'])[M\s\d\.]*(["'])/gi,"$1M 0 0 L 0 0$2")).replace(/(xlink:title\s*=\s*)['"].*?["']/gi,""),F+=1,n=x,i=a.options["export"].useCanvas,(0,l.cacheAllImages)(n,!1,(function(){n=(0,l.replaceImagesWithNonDataUrl)(n),W.call(r||e,n,i)})))},Y=function(){var e,r,n,a,i,o,s=M.charts;if(t=[],s)for(n in s)s.hasOwnProperty(n)&&(e=B[s[n].id])&&(r=s[n],i=e.width,o=e.height,isNaN(Number(i))&&(i=e.apiInstance.getFromEnv("chartWidth")),isNaN(Number(o))&&(o=e.apiInstance.getFromEnv("chartHeight")),a=V(Number(r.width),Number(r.height),i,o),t.push({id:e.id,width:a.width,height:a.height,x:r.x,y:r.y}));else for(n in B)B.hasOwnProperty(n)&&(i=(e=B[n]).width,o=e.height,isNaN(Number(i))&&(i=e.apiInstance.getFromEnv("chartWidth")),isNaN(Number(o))&&(o=e.apiInstance.getFromEnv("chartHeight")),t.push({id:e.id,width:i,height:o}))};if((E={})[l.EXPORTMODE.CLIENT]=1,E[l.EXPORTMODE.AUTO]=0,E[l.EXPORTMODE.SERVER]=0,D.exportatclientside=E[D.exportMode],i.browserDetails.hasCanvas){for(Y(),C=0,w=t.length;C<w;C+=1)(S=t[C]).x=(0,s.pluckNumber)(S.x,j),S.y=(0,s.pluckNumber)(S.y,O+j),S.height=(0,s.pluckNumber)(S.height),S.width=(0,s.pluckNumber)(S.width),O=h(O,S.y+S.height),P=h(P,S.x+S.width);O=M.imageHeight||O+j,P=M.imageWidth||P+j,$((function(){for(C=0,w=t.length;C<w;C+=1)S=t[C],C===w-1&&(T=!0),X(S.id,S)}))}}var x={extension:function(e){e.batchExport=y,a=e},name:"batchExportLinker",type:"extension",requiresFusionCharts:!0};t["default"]=x},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(431)),i=r(254),o=function(e){var t=e.sender;(function(e,t){return e.getType()===t})(t,"chartAPI")&&t.registerFactory("logo",(function(e){var t=e.getFromEnv("chart-attrib");(0,i.componentFactory)(e,a["default"],"logo",(0,i.getValidValue)(t.logourl,"")?1:0,[t])}))},s={extension:function(e){e.addEventListener("instantiated",o)},name:"LogoExtension",type:"extension",requiresFusionCharts:!0};t["default"]=s},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(272)),i=n(r(268)),o=r(270),s=r(254),l={vAlign:"top",hAlign:"left"},c={link:{cursor:"pointer",_cursor:"pointer"},normal:{cursor:"default",_cursor:"normal"}},u={tr:{vAlign:"top",hAlign:"right"},bl:{vAlign:"bottom",hAlign:"left"},br:{vAlign:"bottom",hAlign:"right"},cc:{vAlign:"middle",hAlign:"middle"}},h=!(!window.SVGAngle&&!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")),f=function(e){function t(){var t;t=e.call(this)||this;var r=(0,a["default"])(t);return r.config._context={},r.config.handler=function(e){var t=e.config;return{load:function(){var r,n=e.getGraphicalElement("logoImage"),a=e.getFromEnv("chartConfig"),i=a.borderWidth||0,o=t.logoPosition,l=t.logoScale,c=t.logoLeftMargin,u=t.logoTopMargin,f=t.logoURL,d=t.logoAlpha,p=t.logoPositionSTR,g=t.logoLink;n.show(),r=(0,s.setImageDisplayMode)("none",o.vAlign,o.hAlign,l,i,a.width,a.height,n._.RefImg),h&&(r.w=r.width||0,r.h=r.height||0),r.transform="T"+c+","+u,n.attr(r),e.getFromEnv("chart").fireChartInstanceEvent("LogoLoaded",{logoURL:f,logoAlpha:d,logoPosition:p,logoScale:l,logoLink:g})},error:function(r){var n=t.logoURL,a=t.logoAlpha,i=t.logoPositionSTR,o=t.logoScale,s=t.logoLink;e.getFromEnv("chart").fireChartInstanceEvent("LogoLoadError",{logoURL:n,logoAlpha:a,logoPosition:i,logoScale:o,logoLink:s,error:r})},mouseover:function(r){var n=(0,s.getMouseCoordinate)(e.getFromEnv("chartInstance").ref,r),a=t.logoURL,i=t.logoAlpha,o=t.logoPositionSTR,l=t.logoScale,c=t.logoLink;e.getFromEnv("chart").fireChartInstanceEvent("LogoRollover",{logoURL:a,logoAlpha:i,logoPosition:o||"tl",logoScale:l,logoLink:c,chartX:n.chartX,chartY:n.chartY,pageX:n.pageX,pageY:n.pageY})},mouseout:function(r){var n=(0,s.getMouseCoordinate)(e.getFromEnv("chartInstance").ref,r),a=t.logoURL,i=t.logoAlpha,o=t.logoPositionSTR,l=t.logoScale,c=t.logoLink;e.getFromEnv("chart").fireChartInstanceEvent("LogoRollout",{logoURL:a,logoAlpha:i,logoPosition:o||"tl",logoScale:l,logoLink:c,chartX:n.chartX,chartY:n.chartY,pageX:n.pageX,pageY:n.pageY})},click:function(r){var n=(0,s.getMouseCoordinate)(e.getFromEnv("chartInstance").ref,r),a=t.logoURL,i=t.logoAlpha,o=t.logoPositionSTR,l=t.logoScale,c=t.logoLink;e.getFromEnv("chart").fireChartInstanceEvent("LogoClick",{logoURL:a,logoAlpha:i,logoPosition:o||"tl",logoScale:l,logoLink:c,chartX:n.chartX,chartY:n.chartY,pageX:n.pageX,pageY:n.pageY},void 0,t.linkClickFN)}}}(r),r.config.linkClickFN=function(){var e=r.config.logoLink;e&&r.getFromEnv("linkClickFN").call({link:e},!0)},t}(0,i["default"])(t,e);var r=t.prototype;return r.configureAttributes=function(){var e=this.config,t=this.getFromEnv("chart-attrib");e.logoURL=(0,s.getValidValue)(t.logourl,""),e.logoPositionSTR=(0,s.pluck)(t.logoposition,"tl").toLowerCase(),e.logoPosition=u[e.logoPositionSTR]||l,e.logoAlpha=(0,s.pluckNumber)(t.logoalpha,100),e.logoLink=(0,s.getValidValue)(t.logolink),e.logoScale=(0,s.pluckNumber)(t.logoscale,100),e.logoLeftMargin=(0,s.pluckNumber)(t.logoleftmargin,0),e.logoTopMargin=(0,s.pluckNumber)(t.logotopmargin,0),this.setState("dirty",!0)},r._contextChanged=function(){var e,t=this.config,r=this.getFromEnv("chartConfig"),n=r.borderWidth,a=r.width,i=r.height;return n!==t._context.chartBorderWidth&&(t._context.chartBorderWidth=n,e=!0),a!==t._context.chartWidth&&(t._context.chartWidth=a,e=!0),i!==t._context.chartHeight&&(t._context.chartHeight=i,e=!0),e},r.draw=function(){var e=this.config,t=this.getGraphicalElement("logoImage"),r=e.logoURL,n=!this.getState("removed");(!n||this.getState("dirty")||this._contextChanged())&&r&&n&&(t=this.getFromEnv("animationManager").setAnimation({el:t||"image",attr:{opacity:.01*e.logoAlpha||1,src:r},component:this,container:this.getLinkedParent().getChildContainer("logoGroup")}),this.getGraphicalElement("logoImage")||(this.addGraphicalElement("logoImage",t),t.on("load",e.handler.load),t.on("error",e.handler.error),t.on("fc-click",e.handler.click),t.on("fc-mouseover",e.handler.mouseover),t.on("fc-mouseout",e.handler.mouseout)),t.css(c[e.logoLink?"link":"normal"]))},t}(o.ComponentInterface);t["default"]=f},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n={extension:function(e){e.addEventListener("register",(function(t,r){var n,a=r[0],i=r[1];if(a&&"string"==typeof a&&"theme"===a&&i&&"object"==typeof i){if(i instanceof Array)for(n=0;n<i.length;n++)e.addDep({extension:i[n],name:i[n].name+"Theme",type:"theme"});else e.addDep({extension:i,name:i.name+"Theme",type:"theme"});t.preventDefault()}}))},name:"ThemeEngine",type:"extension",requiresFusionCharts:!0};t["default"]=n},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n,a=r(261);(n={outputHelpers:{text:function(e,t){n.outputTo("#"+e.eventId+" ["+(e.sender.id||e.sender).toString()+'] fired "'+e.eventType+'" event. '+("error"===e.eventType||"warning"===e.eventType?t.message:""))},event:function(e,t){this.outputTo(e,t)},verbose:function(e,t){n.outputTo(e.eventId,e.sender.id,e.eventType,t)}},outputHandler:function(e,t){"function"==typeof n.outputTo&&n.currentOutputHelper(e,t)},currentOutputHelper:void 0,outputTo:void 0,enabled:!1}).currentOutputHelper=n.outputHelpers.text;var i={extension:function(e){e["debugger"]={outputFormat:function(e){var t=e;return!(!t||"function"!=typeof t.toLowerCase||"function"!=typeof n.outputHelpers[t=t.toLowerCase()])&&(n.currentOutputHelper=n.outputHelpers[t],!0)},outputTo:function(t){"function"==typeof t?n.outputTo=t:null===t&&(e["debugger"].enable(!1),delete n.outputTo)},enable:function(t,r,i){var o,s=t,l=r,c=i;return"object"==typeof s&&1===arguments.length&&(s=(o=s).state,l=o.outputTo,c=o.outputFormat),"function"==typeof s&&("string"!=typeof l||2!==arguments.length&&!o||(c=l),l=s,s=!0),"boolean"==typeof s&&s!==n.enabled&&(n.enabled=s,n.enabled?(0,a.addListener)("*",n.outputHandler):(0,a.removeListener)("*",n.outputHandler)),"function"==typeof l&&(n.outputTo=l),e["debugger"].outputFormat(c),n.enabled}}},name:"Debugger",type:"extension",requiresFusionCharts:!0};t["default"]=i},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(435)),i=r(254),o=r(266),s=0;function l(e,t){var r=this.apiInstance,n=e||void 0,l=t||void 0,c=r.getChildren("dataset")[0],u=c.getChildren(),h=u.centerLabel&&u.centerLabel[0],f=r.config;void 0===h&&((0,i.componentFactory)(c,a["default"],"centerLabel",1,[f]),h=u.centerLabel&&u.centerLabel[0]),r.addJob("eiMethods-center-lebel"+s++,(function(){var e,t,a=r.getDatasets()[0],i=a.config.piePlotOptions.innerSize;if(e=h.config,"object"!=typeof l)l=e;else{for(t in e)void 0===l[t]&&(l[t]=e[t]);e=Object.assign(e,l)}l.label=n,e.label=n,a.centerLabelConfig=e,i&&h&&h.draw(n||"")}),o.priorityList.postRender)}var c={extension:function(e){e.addEventListener("instantiated",(function(e){var t=e.sender;(function(e){var t=e.getName().toLowerCase();return("doughnut2d"===t||"multilevelpie"===t)&&"dataset"===e.getType()})(t)&&t.registerFactory("centerLabel",(function(){var e=t.getFromEnv("chartConfig"),r=!(!e.centerlabel&&!e.defaultcenterlabel);t.getFromEnv("chartInstance").centerLabel=l,(0,i.componentFactory)(t,a["default"],"centerLabel",r?1:0,[e])}))}))},name:"CenterLabelExtension",type:"extension",requiresFusionCharts:!0};t["default"]=c},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=r(270),o=r(254),s=r(262),l=n(r(436));(0,s.addDep)({name:"centerLabelAnimation",type:"animationRule",extension:l["default"]});var c=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"centerLabel"},r.getType=function(){return"centerLabel"},r.configure=function(e){var t=this.getFromEnv("chart-attrib"),r=this.getFromEnv("number-formatter"),n=e.dataLabelStyle,a=this;a.config={label:(0,o.parseUnsafeString)((0,o.pluck)(t.defaultcenterlabel,"")),font:(0,o.pluck)(t.centerlabelfont,n.fontFamily),fontSize:(0,o.pluckNumber)(t.centerlabelfontsize,parseInt(n.fontSize,10)),color:(0,o.getFirstColor)((0,o.pluck)(t.centerlabelcolor,t.valuefontcolor,e.style.inCanvasStyle.color,"555555")),alpha:(0,o.pluckNumber)(t.centerlabelalpha,100),bold:(0,o.pluckNumber)(t.centerlabelbold,n.fontWeight),italic:(0,o.pluckNumber)(t.centerlabelitalic,n.style),bgColor:(0,o.pluck)(t.centerlabelbgcolor,""),bgAlpha:(0,o.pluckNumber)(t.centerlabelbgalpha,100),borderColor:(0,o.pluck)(t.centerlabelbordercolor,n.borderColor),borderAlpha:(0,o.pluckNumber)(t.centerlabelborderalpha,100),borderThickness:(0,o.pluckNumber)(t.centerlabelborderthickness,n.borderThickness),borderRadius:(0,o.pluckNumber)(t.centerlabelborderradius,n.borderRadius),textPadding:(0,o.pluckNumber)(t.centerlabeltextpadding,n.borderPadding),padding:(0,o.pluckNumber)(t.centerlabelpadding,2),bgOval:(0,o.pluckNumber)(t.centerlabelbgoval,0),shadow:(0,o.pluckNumber)(t.showcenterlabelshadow,0),hoverColor:t.centerlabelhovercolor&&(0,o.getFirstColor)((0,o.pluck)(t.centerlabelhovercolor)),hoverAlpha:(0,o.pluckNumber)(t.centerlabelhoveralpha),toolText:(0,o.parseUnsafeString)((0,o.pluck)(t.centerlabeltooltext,o.BLANKSTRING),!1)},a.addExtEventListener("datasetrollover",(function(e){var t=e.data,n=(0,o.pluck)(function(e,t,r){var n=e;if(n)for(var a,i=t.length||0;i--;)a=new RegExp(t[i],"gi"),n=n.replace(a,r[i]);return n}((0,o.parseUnsafeString)(e.sender.getFromEnv("dataSource").chart.centerlabel),["\\$value","\\$percentValue","\\$displayValue","\\$label"],[r.scale(t.value),t.pValue,t.displayValue,t.label]),"");a.draw(n,!1)}),this.getFromEnv("chart").getDatasets()[0]),a.addExtEventListener("datasetrollout",(function(e){a.draw((0,o.pluck)(e.sender.config.label,""),!1)}),this.getFromEnv("chart").getDatasets()[0])},r.draw=function(e){var t,r,n=this,a=n.getFromEnv("chart"),i=a.config.canvasLeft+.5*a.config.canvasWidth,s=a.config.canvasTop+.5*a.config.canvasHeight,l=a.getDatasets()[0].config.innerSize,c=a.getDatasets()[0].config.innerSize,u=a.getDatasets()[0].config,h=this.config,f=n.getFromEnv("animationManager"),d=n.getFromEnv("smartLabel"),p=this.getGraphicalElement("centerLabel"),g=p,m=this.getGraphicalElement("centerLabelBg"),v=a.getChildContainer("plotGroup"),b=h.padding,y=2*h.textPadding,x={fontFamily:h.font,fontSize:h.fontSize+"px",lineHeight:1.2*h.fontSize+"px",fontWeight:h.bold?"bold":"",fontStyle:h.italic?"italic":""},w=1.414*(.5*l-b)-y,_=1.414*(.5*c-b)-y,S=n.getFromEnv("toolTipController");t=(0,o.pluck)(e,h.label),d.setStyle(x),d.useEllipsesOnOverflow(a.config.useEllipsesWhenOverflow),r=d.getSmartText(t,w,_),t?(h.bgOval&&(m=f.setAnimation({el:m||"circle",attr:{cx:i,cy:s,r:.5*l-b,visibility:"visible",container:v,fill:(0,o.hashify)(h.bgColor),"fill-opacity":h.bgAlpha/100,stroke:(0,o.hashify)(h.borderColor),"stroke-width":h.borderThickness,"stroke-opacity":h.borderAlpha/100},component:n})),g=f.setAnimation({el:p||"text",component:n,container:v,css:x,attr:{x:i,y:s,text:r.text,visibility:"visible",direction:a.config.textDirection,fill:(0,o.toRaphaelColor)({FCcolor:{color:h.color,alpha:h.alpha}}),"text-bound":h.bgOval?"none":[(0,o.toRaphaelColor)({FCcolor:{color:h.bgColor,alpha:h.bgAlpha}}),(0,o.toRaphaelColor)({FCcolor:{color:h.borderColor,alpha:h.borderAlpha}}),h.borderThickness,h.textPadding,h.borderRadius]},label:"text"}),S.enableToolTip(g,h.toolText||r.tooltext)):(g&&f.setAnimation({el:g,attr:{visibility:"hidden"},component:n}),m&&f.setAnimation({el:m,attr:{visibility:"hidden"},component:n})),p?g.attr("text")!==t&&n.centerLabelChange(t):(n.addEventListener("fc-mouseover",(function(){n._centerLabelRollover(a)})),n.addEventListener("fc-mouseout",(function(){n._centerLabelRollout(a)})),n.addEventListener("fc-click",(function(){n._centerLabelClick(a)})),n.addGraphicalElement("centerLabel",g),n.addGraphicalElement("centerLabelBg",m)),u.lastCenterLabelConfig=h,u.centerLabelConfig=h},r.centerLabelChange=function(e){var t=this.getFromEnv("chart"),r=t.config,n=this.getFromEnv("chartInstance"),a={height:r.height,width:r.width,pixelHeight:t.getFromEnv("chartWidth"),pixelWidth:t.getFromEnv("chartHeight"),id:n.id,renderer:n.args.renderer,container:n.options.containerElement,centerLabelText:e};t.fireChartInstanceEvent("centerLabelChanged",a)},r._centerLabelRollover=function(e){var t=e.config,r=e.getFromEnv("chartInstance"),n=this.config,a={height:t.height,width:t.width,pixelHeight:e.getFromEnv("chartWidth"),pixelWidth:e.getFromEnv("chartHeight"),id:r.id,renderer:r.args.renderer,container:r.options.containerElement,centerLabelText:n&&n.label};this.getFromEnv("paper").attr("text")&&e.fireChartInstanceEvent("centerLabelRollover",a,void 0,this.hoverOnCenterLabel.bind(this,e))},r._centerLabelRollout=function(e){var t=e.config,r=e.getFromEnv("chartInstance"),n=this.config,a={height:t.height,width:t.width,pixelHeight:e.getFromEnv("chartWidth"),pixelWidth:e.getFromEnv("chartHeight"),id:r.id,renderer:r.args.renderer,container:r.options.containerElement,centerLabelText:n&&n.label};this.getFromEnv("paper").attr("text")&&e.fireChartInstanceEvent("centerLabelRollout",a,void 0,this.hoverOffCenterLabel.bind(this,e))},r._centerLabelClick=function(e){var t,r=e.config,n=e.getFromEnv("chartInstance"),a={height:r.height,width:r.width,pixelHeight:e.getFromEnv("chartWidth"),pixelWidth:e.getFromEnv("chartHeight"),id:n.id,renderer:n.args.renderer,container:n.options.containerElement};t=this.config,a.centerLabelText=t&&t.label,this.getFromEnv("paper").attr("text")&&e.fireChartInstanceEvent("centerLabelClick",a)},r.hoverOnCenterLabel=function(e){var t=e.getChildren("dataset")[0].config.lastCenterLabelConfig;(t.hoverColor||t.hoverAlpha)&&this.getGraphicalElement("centerLabel").attr({fill:(0,o.toRaphaelColor)({FCcolor:{color:t.hoverColor||t.color,alpha:t.hoverAlpha||t.alpha}})})},r.hoverOffCenterLabel=function(e){var t=e.getChildren("dataset")[0].config.lastCenterLabelConfig;(t.hoverColor||t.hoverAlpha)&&this.getGraphicalElement("centerLabel").attr({fill:(0,o.toRaphaelColor)({FCcolor:{color:t.color,alpha:t.alpha}})})},t}(i.ComponentInterface);t["default"]=c},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.centerLabel.centerLabel.text.appearing":function(e){if(e.attr)return[{initialAttr:{x:e.attr.x,y:e.attr.y}}]}}},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=r(254),i=n(r(438)),o=n(r(440)),s={dragnode:!0,hlineargauge:!0,column3d:!0,mscolumn3d:!0,bar3d:!0,pareto3d:!0,msbar3d:!0,stackedcolumn3d:!0,stackedbar3d:!0,mscombi3d:!0,mscolumnline3d:!0,stackedcolumn3dline:!0,mscolumn3dlinedy:!0,stackedcolumn3dlinedy:!0,realtimearea:!0,realtimecolumn:!0,realtimeline:!0,realtimestackedarea:!0,realtimestackedcolumn:!0,angulargauge:!0,realtimelinedy:!0,kagi:!0,treemap:!0,heatmap:!0,boxandwhisker2d:!0,scatter:!0,timeseries:!0,bubble:!0,errorscatter:!0,sparkwinloss:!0,zoomscatter:!0,zoomline:!0,zoomlinedy:!0,chord:!0},l=function(e){if("chartAPI"===e.sender.getType()){var t=e.sender,r=t.getFromEnv("chartInstance");r.drawCrossline=function(e){r.drawConsolidatedToolTip(e),t.iterateComponents((function(t){"crossline-manager"===t.getType()&&(e!==a.UNDEF?t.show({value:e}):t.hide())}))}}},c=function(e){var t,r,n,a=e.sender.apiInstance.getChildren("canvas");for(n=0;n<a.length;n++)(t=(t=a[n].getChildren("crosslineManagerBand"))&&t[0])&&(r=t._handlerAPI,t.config.axisScrolling=!0,r.onhoverout(e))},u=function(e){var t,r,n=e.sender.apiInstance.getChildren("canvas");for(r=0;r<n.length;r++)(t=n[r].getChildren("crosslineManagerBand"))&&t[0]&&(t[0].config.axisScrolling=!1)},h=function(e){if("canvas"===e.sender.getName()){var t,r,n=e.sender;n.registerFactory("crossLineManager",(function(){var l=e.sender.getFromEnv("chart"),c=l&&l.getName();c&&!s[c.toLowerCase()]&&((0,a.componentFactory)(n,o["default"],"crosslineManagerBand"),t=n.getChildren("crosslineManagerBand")[0],r=t._handlerAPI,t.configure(),(0,a.componentFactory)(t,i["default"],"crossline"),t.addExtEventListener("fc-mouseover",r.onhover,n),t.addExtEventListener("fc-mousemove",r.onhover,n),t.addExtEventListener("fc-mouseout",r.onhoverout,n))}))}},f={extension:function(e){e.addEventListener("preconfigure",l),e.addEventListener("scrollstart",c),e.addEventListener("scrollend",u),e.addEventListener("instantiated",h)},name:"crossline-manager",type:"extension",requiresFusionCharts:!0};t["default"]=f},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=r(270),o=r(254),s=r(262),l=n(r(439)),c=function(e){function t(){var t;return t=e.call(this)||this,(0,s.addDep)({name:"crosslineAnimation",type:"animationRule",extension:l["default"]}),t}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"crossline"},r.getType=function(){return"crossline"},r.show=function(e){void 0===e&&(e={});var t=!!e.onTop,r=e.type;t!==this.config.prevRenderedOnTop&&this.hide(),!this[r]&&(r="band"),this[r](e),this.config.prevRenderedOnTop=t},r.band=function(e){void 0===e&&(e={});var t,r,n=e.managerId,a=e.x1,i=e.y1,s=e.x2,l=e.y2,c=(0,o.toRaphaelColor)({color:(0,o.pluck)(e.fillcolor,"#EEEEEE"),alpha:(0,o.pluckNumber)(e.alpha,50)}),u=this.getLinkedParent().getLinkedParent().getEffectiveDimensions(),h=[u.left,u.top,u.width,u.height].toString(),f=this.getLinkedParent().getChildContainer("crosslineBottom"),d=this.getLinkedParent().getChildContainer("crosslineTop");r=e.onTop?d:f,(t=this.getGraphicalElement("crosslineBand"+n))?e.animDuration?t.animate({path:["M",a,i,"L",s,l]},e.animDuration,"ease-in"):t.attr({path:["M",a,i,"L",s,l],"clip-rect":h}):this.addGraphicalElement("crosslineBand"+n,this.getFromEnv("paper").path({path:["M",a,i,"L",s,l],"clip-rect":h,stroke:c,fill:c,"stroke-width":e.thickness,"stroke-linecap":"butt"},r))},r.hide=function(){for(var e=this.getGraphicalElement(),t=Object.keys(e),r=t.length-1;r>-1;r--)e[t[r]].stop(o.UNDEF,!0,!0),e[t[r]].remove(),delete e[t[r]]},t}(i.ComponentInterface);t["default"]=c},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={crossline:{crossline:{path:{updating:function(e){return[{initialAttr:{path:e.el.attr("path")},finalAttr:{path:e.attr.path}}]}}}}}},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(272)),i=n(r(268)),o=r(254),s=r(270),l=o.hasSVG?0:.5,c=function(e,t,r){return r.getFromEnv("animationManager").setAnimation({el:"group",attr:{name:e},container:t,state:"appearing",component:r,label:"group"})},u=function(e){function t(){var t,r;return(t=e.call(this)||this)._handlerAPI=(r=(0,a["default"])(t),{onhover:function(e,t){!r.config.axisScrolling&&r.show(t.axes?{axesInfo:t.axes}:{event:e})},onhoverout:function(e){r.hide({event:e})}}),t.mouseOutTimer=o.UNDEF,t}(0,i["default"])(t,e);var r=t.prototype;return r.getAttachedAxisInfo=function(e){void 0===e&&(e={});var t,r,n,a,i=this.getLinkedParent().getAxes(),s=e.originalEvent&&(0,o.getMouseCoordinate)(this.getLinkedParent().getFromEnv("chart-container"),e.originalEvent,this.getFromEnv("chart")),l=s&&s.chartX||0,c=s&&s.chartY||0;for(t=i.length-1;t>=0;t--)if(r=i[t].axis,!i[t].isY)return n=!!r.config.isVertical,a=r.getTranslation(),{value:n?r.getValue(c+a):r.getValue(l+a),axis:r,isVertical:n,isY:!1}},r.configure=function(){var e=this.config,t=this.getFromEnv("chartConfig"),r=this.getFromEnv("chart-attrib");e.drawCrossLine=(0,o.pluckNumber)(r.drawcrossline,t.drawcrossline,1),e.bandStyle={fillcolor:(0,o.pluck)(r.crosslinecolor,t.crosslinecolor,"#EEEEEE"),alpha:(0,o.pluckNumber)(r.crosslinealpha,t.crosslinealpha,50),thickness:(0,o.pluckNumber)(t.defaultcrosslinethickness),managerId:this.getId(),onTop:(0,o.pluckNumber)(r.drawcrosslineontop,t.drawcrosslineontop,0),cursor:"pointer",animDuration:(0,o.pluckNumber)(r.crosslineanimation,0)&&1e3*(0,o.pluckNumber)(r.crosslineanimationduration,.09)}},r.createGroup=function(){var e=this.getLinkedParent().getChildContainer("crosslineBottom"),t=this.getLinkedParent().getChildContainer("crosslineTop");!this.getChildContainer("crosslineTop")&&this.addChildContainer("crosslineTop",c("crosslineTop",t,this)),!this.getChildContainer("crosslineBottom")&&this.addChildContainer("crosslineBottom",c("crosslineBottom",e,this))},r.show=function(e){void 0===e&&(e={});var t=e.event;clearTimeout(this.mouseOutTimer),this.config.attachedCanvasAxisInfo=this.getAttachedAxisInfo(t),this._setAptAxesInfo(e.axesInfo,e.value),this._show(t)},r._setAptAxesInfo=function(e,t){void 0===e&&(e=[]);var r,n,a=e.length,i=this.config.attachedCanvasAxisInfo;if(e.length)for(n=0;n<a;n++)if((r=e[n]).axis===i.axis){i.value=r.value;break}t!==o.UNDEF&&(i.value=t)},r._show=function(e){var t,r,n,a,i,s,c=this.config,u=this.getFromEnv("chartConfig"),h=this.getChildren("crossline")[0],f=c.attachedCanvasAxisInfo,d=f.axis,p=d.getLimit().max-d.config.endPad,g=Math.round(f.value),m=f.axis.getPixel(g)-f.axis.getTranslation(),v=Object.assign({},c.bandStyle),b=this.getFromEnv("canvasConfig"),y=b.canvasTop,x=b.canvasLeft;g<0||g>p||this.config.lastIndex!==g&&c.drawCrossLine&&((n=v.thickness)===o.UNDEF&&(!1===u._hascolumn?n=1:(t=d.getPixel(0),r=d.getPixel(1),n=Math.abs(r-t))),i=m,s=n,a=Math.round(i+(s%2/2+l))-(s%2/2+l),this.createGroup(),v.thickness=n,v=f.isVertical?Object.assign(v,{x1:x,y1:a,x2:x+b.canvasWidth,y2:a}):Object.assign(v,{x1:a,y1:y,x2:a,y2:y+b.canvasHeight}),h.show(v),this.getFromEnv("chart").fireChartInstanceEvent("onChangeCrossLine",{currentIndex:g,lastIndex:this.config.lastIndex,source:e?"mouse interaction":"public API"}),this.config.lastIndex=g)},r.hide=function(e){var t=this;void 0===e&&(e={});var r=this;this.mouseOutTimer=setTimeout((function(){r.getFromEnv("chart").fireChartInstanceEvent("onChangeCrossLine",{lastIndex:r.config.lastIndex,source:e.event?"mouse interaction":"public API"}),delete t.config.lastIndex,t.getChildren("crossline")[0].hide()}),20)},r.getType=function(){return"crossline-manager"},r.getName=function(){return"crossline-manager-band-category-axis"},t}(s.ComponentInterface);t["default"]=u},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(272)),i=n(r(268)),o=r(270),s=r(254),l={candlestick:!0},c=function(e){if(e.sender.getType&&"chartAPI"===e.sender.getType()&&l[e.sender.getName&&e.sender.getName()]){var t,r,n=e.sender;n.registerFactory("multiCanvasCrossline",(function(){(0,s.componentFactory)(n,u,"multiCanvasCrosslineManager"),t=n.getChildren("multiCanvasCrosslineManager")[0],r=t._handlers,n.iterateComponents((function(e){"canvas"===e.getName()&&(e.addEventListener("fc-mouseover",r.onhover),e.addEventListener("fc-mousemove",r.onhover),e.addEventListener("fc-mouseout",r.onhoverout))}))}),["canvas"])}},u=function(e){function t(){var t,r;return(t=e.call(this)||this)._handlers=(r=(0,a["default"])(t),{onhover:function(e){e.originalEvent&&r.show(e)},onhoverout:function(e){e.originalEvent&&r.hide(e)}}),t}(0,i["default"])(t,e);var r=t.prototype;return r.getAxesInfo=function(e,t){void 0===e&&(e={});var r,n,a,i,o=t.getAxes(),l=[],c=(0,s.getMouseCoordinate)(this.getFromEnv("chart-container"),e.originalEvent,this.getFromEnv("chart")),u=c.chartX||0,h=c.chartY||0;for(r=o.length-1;r>=0;r--)n=o[r].axis,a=o[r].isY,i=!!n.config.isVertical,l.push({value:i?n.getValue(h):n.getValue(u),axis:n,isVertical:i,isY:a});return l},r.getName=function(){return"multiCanvasCrosslineManager"},r.getType=function(){return"multiCanvasCrosslineManager"},r.show=function(e){var t=this,r=e.sender;this.getFromEnv("chart").iterateComponents((function(n){"canvas"===n.getName()&&n!==r&&n.fireEvent("fc-mousemove",{axes:t.getAxesInfo(e,r)})}))},r.hide=function(e){var t=e.sender,r=(0,s.getMouseCoordinate)(t.getFromEnv("chart-container"),e&&e.originalEvent,t.getFromEnv("chart"));t.isWithinCanvas(r.chartX,r.chartY)||this.getFromEnv("chart").iterateComponents((function(e){"canvas"===e.getName()&&e!==t&&e.fireEvent("fc-mouseout")}))},t}(o.ComponentInterface),h={extension:function(e){e.addEventListener("instantiated",c)},name:"multi-canvas-crossline-manager",type:"extension",requiresFusionCharts:!0};t["default"]=h},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=r(443),i=n(r(444)),o=function(){function e(e){this.alternateTexts=i["default"]}var t=e.prototype;return t.buildAriaTexts=function(e,t,r){var n=this,a=e&&this.alternateTexts&&this.alternateTexts[e]||{},i=function(e){for(var t in n.alternateTexts["default"]&&n.alternateTexts["default"][e])a.hasOwnProperty(t)||(a[t]=n.alternateTexts["default"][e][t])};return r&&i(r),t&&i(t),i("base"),a},t.setAlternateTexts=function(e){this.alternateTexts=(0,a.mergeDeep)(this.alternateTexts,e)},t.getAlternateTexts=function(e){return this.alternateTexts},e}(),s={extension:function(e){var t=new o(e),r={setAlternateTexts:t.setAlternateTexts.bind(t),getAlternateTexts:t.getAlternateTexts.bind(t)};e.accesibilityTexts=t,e.Accessibility=r},name:"ResourceString",type:"extension",requiresFusionCharts:!0};t["default"]=s},function(e,t,r){"use strict";t.__esModule=!0,t.mergeDeep=function a(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];if(!r.length)return e;var o=r.shift();if(n(e)&&n(o))for(var s in o){var l,c;if(n(o[s]))e[s]||Object.assign(e,((l={})[s]={},l)),a(e[s],o[s]);else Object.assign(e,((c={})[s]=o[s],c))}return a.apply(void 0,[e].concat(r))};var n=function(e){return e&&"object"==typeof e&&!Array.isArray(e)}},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n={"default":{base:{chart:"This is a {chartType} chart created with FusionCharts Suite XT. Title of the chart is {caption}. {xAxisName} is plotted on x-axis and {yAxisName} is plotted on y-axis",legendItem:"Toggle the visibility of {legendText}.",exportMenu:"View export options",exportMenuItems:["Export to PNG","Export to JPG","Export to PDF","Export to SVG","Export to XLS"]},singleSeries:{plot:"{yAxisName} for {xAxisName} {label} is {formattedValue}. Plot {plotIndex} of {totalPlots}."},multiSeries:{plot:"{yAxisName} of {seriesName} for {xAxisName} {label} is {formattedValue}. Plot {plotIndex} of {totalPlots}. Series {seriesIndex} of {totalSeries}",exportMenu:"View export options",exportMenuItems:["Export to PNG","Export to JPG","Export to PDF","Export to SVG","Export to XLS"]},nonCartesian:{chart:"This is a {chartType} chart created with FusionCharts Suite XT. {caption} for {subcaption} is plotted.",plot:"{plotIndex}. {label} {formattedValue}.",legendItem:"Toggle the slicing of {legendText}"},scatter:{plot:"X Value : {xValue}, Y Value : {yValue} for {seriesName}. Plot {plotIndex} of {totalPlots}. Series {seriesIndex} of {totalSeries}"},bubble:{plot:"X Value : {xValue}, Y Value : {yValue}, Z Value : {zValue}, Name of the bubble : {bubbleName}, Series : {seriesName}. Plot {plotIndex} of {totalPlots}. Series {seriesIndex} of {totalSeries}"},funnel:{chart:"This is a {chartType} chart created with FusionCharts Suite XT. Title of the chart is {caption}. {plot-0-label} is {plot-0-value}"},heatmap:{plot:"{xAxisLabel} for {yAxisLabel} is {formattedValue}.",upperRange:"Change the upper limit to filter the data. Current range is {currentStartValue} to {currentEndValue}",lowerRange:"Change the lower limit to filter the data. Current range is {currentStartValue} to {currentEndValue}"}}};t["default"]=n},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(446)),i=r(453);t.getConfig=i.getConfig,t.setConfig=i.setConfig;var o=a["default"];t["default"]=o},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(447))["default"];t["default"]=a},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(448)),i=r(455),o=r(449),s=function(){function e(e,t,r){this.dataTables={},this._defaultDataTable=null,this._id=+new Date+"",e&&t&&e.constructor===Array&&t.constructor===Array&&this.createDataTable(e,t,r)}var t=e.prototype;return t.createDataTable=function(e,t,r,n){if(!e||!t)throw new Error("Both data and schema must be provided to build DataTable");if(e.constructor!==Array)throw new Error("Data must be provided in 2D array format or array of json objects");if(t.constructor!==Array||0===t.length)throw new Error("Input schema is not in a correct format - schema must be an array of column configurations");var i,s,l={},c=n;if(s=Object.keys(this.dataTables),c){if(s.includes(c))throw new Error("A table with the id "+c+" already exists in the DataStore. Please use a different id.")}else c=(0,o.createTableID)(s);return Object.assign(l,{enableIndex:!0,enableUTC:!1},r),i=new a["default"](this,(0,o.parseAndIndexData)(e,t,l),t,l,null,null,c),0===s.length&&(this._defaultDataTable=i),this.dataTables[c]=i,i},t.appendRows=function(e,t){var r,n,a,i=this.getDataTable(t),s=i.getSchema();a=(0,o.buildDateColumnsFormatter)(s),n=(0,o.parseData)(e,s,a),(r=i._data).push.apply(r,n),(0,o.indexData)(i._data,s,i._config,a),i.flushResults(),this.trigger("itemsAdded",{rows:e,parsedRows:n,tableID:t})},t.deleteRows=function(e,t){var r=this.getDataTable(t),n=r.query(e),a=n.getData().data,i=r.indexOf("_row_id"),o=n.indexOf("_row_id"),s=a.map((function(e){return e[o]}));r._data=r._data.filter((function(e){return!s.includes(e[i])})),r.flushResults(),this.trigger("itemsRemoved",{rows:a,tableID:t}),n.dispose()},t.getDataTable=function(e){if(e){if(!this.dataTables[e])throw new Error("DataTable with id "+e+" is not found in the DataStore.");return this.dataTables[e]}return this._defaultDataTable},t.on=function(e,t){(0,i.addHandler)(e,t,this)},t.off=function(e,t){(0,i.removeHandler)(e,t,this)},t.trigger=function(e,t){(0,i.triggerEvent)(e,this,t)},t.dispose=function(){var e=this;for(var t in e.dataTables)e.dataTables.hasOwnProperty(t)&&(e.dataTables[t].dispose(),delete e.dataTables[t]);delete e._id,delete e.dataTables,delete e._defaultDataTable,this.trigger("disposed"),e=null},t._propagate=function(e){for(var t in this.trigger("payloadReceived",e),this.dataTables)this.dataTables.hasOwnProperty(t)&&this.dataTables[t]._payloadReceiver(e)},e}();t["default"]=s},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=r(449),i=r(455),o=n(r(456)),s=function(){function e(e,t,r,n,a,i,o){this._dataStore=e,this._parentTable=a,this._children=[],this._childrenTableIDs=[],this._opsFunnel=i,this._data=t||[],this._schema=r,this._config=n,this._id=o;var s,l=1;if(this._id||(s=this._parentTable&&this._parentTable._id?this._parentTable._id:"table_1",this._id=s+"_"+l),this._parentTable){for(;this._parentTable._childrenTableIDs.includes(this._id);)this._id=s?s+"_"+ ++l:this._id+"_1";this._parentTable._children.push(this),this._parentTable._childrenTableIDs.push(this._id)}this._result=null}var t=e.prototype;return t.count=function(){return this._executeFunnel().data.length},t.getSchema=function(){return this._executeFunnel().schema},t.getID=function(){return this._id},t.getDataStore=function(){return this._dataStore},t.getChildren=function(e){if(e){for(var t=0;t<this._children.length;t++)if(this._children[t]._id===e)return this._children[t];return null}return this._children},t.getData=function(e,t){var r,n=e,a=t;return n=n||0,a=a&&("string"==typeof a||a instanceof String)||null===a?void 0:a,{data:(r=this._executeFunnel()).data&&r.data.slice(n,a&&a>0?n+a:a),schema:r.schema}},t.dispose=function(){var e=this;if(e._parentTable&&e._parentTable._children){var t;for(t=0;t<e._parentTable._children.length&&("undefined"==typeof e._id||e._id!==e._parentTable._children[t]._id);t++);t!==e._parentTable._children.length&&e._parentTable._children.splice(t,1)}delete e._dataStore,delete e._parentTable,delete e._opsFunnel,delete e._data,delete e._schema,delete e._config,delete e._result,delete e._id,e.disposeChildren(),delete e._children,delete e._childrenTableIDs,e._trigger("disposed"),delete e._evtHandlers,e.disposed=!0,e=null},t.disposeChildren=function(){for(var e=(this._children&&this._children.length||0)-1;e>=0;e--)this._children[e].dispose();this._children=[],this._childrenTableIDs=[]},t.min=function(e){var t=this.getData();return(0,a.columnMinValue)(e,t.data,t.schema)},t.max=function(e){var t=this.getData();return(0,a.columnMaxValue)(e,t.data,t.schema)},t.unique=function(e){var t=this.getData();return(0,a.columnUnique)(e,t.data,t.schema)},t.extents=function(e){var t=this.getData();return(0,a.columnExtents)(e,t.data,t.schema)},t.addColumns=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,a=t.length,i=[],s=0;s<a;s++)(0,o["default"])(t[s])&&i.push(t[s]);n=i.length,this._calcColumns=this._calcColumns||[];for(var l=0;l<n;l++){if(!i[l].name)throw new Error("name is required in column "+(l+1));if(i[l].calcFn&&!(i[l].calcFn instanceof Function))throw new Error("calcFn must be a function in column "+(l+1));i[l].calcFn||(i[l].calcFn=function(){}),this._calcColumns.push(Object.assign({},i[l]))}this._trigger("updated",i)},t.query=function(t){var r=t;return r&&r.constructor!==Array&&(r=[r]),new e(this._dataStore,this._data,this._schema,this._config,this,r)},t.indexOf=function(e){var t=this._executeFunnel();return(0,a.columnIndexOf)(e,t.schema)},t.on=function(e,t){(0,i.addHandler)(e,t,this)},t.off=function(e,t){(0,i.removeHandler)(e,t,this)},t._trigger=function(e,t){(0,i.triggerEvent)(e,this,t)},t._executeFunnel=function(){if(!this._result)if(this._opsFunnel){var e,t,r,n,i;t=(e=this._parentTable._executeFunnel()).data.slice(0),r=e.schema.slice(0),n=Object.assign({},e.config),i=this._opsFunnel.length;for(var o=0;o<i;o++)if(this._opsFunnel[o]&&this._opsFunnel[o].fn){var s=this._opsFunnel[o].fn(t,r,n);t=s.generatorFn?s.generatorFn():s.data,r=s.schema,void 0===(n=Object.assign(n,s.config)).indexBy&&(n.enableIndex=!1)}this._result={data:t,schema:r,config:n}}else this._result={data:this._data,schema:this._schema,config:this._config};if(this._calcColumns&&this._calcColumns.length>0){var l=(0,a.addColumnsSchema)(this._result.schema,this._calcColumns);this._result.schema=l.schema,this._result.data=(0,a.addColumnsData)(this._result.data,this._result.schema,l.calcColumns),delete this._calcColumns}return this._result},t.flushResults=function(){var e=this._result&&this._result.schema.length||0,t=this._children&&this._children.length||0;e&&(this._calcColumns=[]);for(var r=0;r<e;r++)this._result.schema[r].calcFn&&this._calcColumns.push(this._result.schema[r]);this._result&&(this._result=null);for(var n=0;n<t;n++)this._children[n].flushResults()},t.propagate=function(e){this.getDataStore()._propagate({trigger:this,payload:e})},t._payloadReceiver=function(e){var t=this._children&&this._children.length||0;e&&e.trigger&&e.trigger!==this&&this._trigger("payloadReceived",e);for(var r=0;r<t;r++)this._children[r]._payloadReceiver(e)},t.getMinDiff=function(e){var t=this.getData();return(0,a.columnMinDiff)(e,t.data,t.schema,this._config.indexBy)},t.isUTCEnabled=function(e){return(0,a.isUTCEnabled)(e,this.getSchema())},e}();t["default"]=s},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.columnIndexOf=u,t.columnMinValue=function(e,t,r){var n,i;if(null===(n=u(e,r))||-1===n)return null;if(t&&t.length>0){var o;i=Number.POSITIVE_INFINITY;for(var s=0;s<t.length;s++)o="interval"===r[n].type?t[s][n]?t[s][n].start:null:t[s][n],(0,a.isNumber)(o)&&o<i&&(i=o)}return i},t.columnMaxValue=function(e,t,r){var n,i;if(null===(n=u(e,r))||-1===n)return null;if(t&&t.length>0){var o;i=Number.NEGATIVE_INFINITY;for(var s=0;s<t.length;s++)o="interval"===r[n].type?t[s][n]?t[s][n].end:null:t[s][n],(0,a.isNumber)(o)&&o>i&&(i=o)}return i},t.columnMinDiff=function(e,t,r,n){var o,s,l=t,c=t.length;if(null===(o=u(e,r))||-1===o)return null;if(r[o]&&["date","number"].indexOf(r[o].type)<0)throw new Error("Operation valid only on date or number columns");n&&e===n||(l=t.slice(0)).sort((function(e,t){return(0,i.numberComparator)(e[o],t[o])}));if(l&&c>0){var h,f,d;s=Number.POSITIVE_INFINITY;for(var p=0;p<l.length-1&&(f=l[p][o],d=l[p+1][o],(0,a.isNumber)(d)&&(0,a.isNumber)(f))&&(h=d-f,0!==(s=(0,a.isNumber)(h)&&h>=0&&h<s?h:s));p++);}return s===Number.POSITIVE_INFINITY?null:s},t.columnExtents=function(e,t,r){var n,i=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,s=u(e,r);if(null===s||-1===s)return null;if(t&&t.length>0)for(var l=0;l<t.length;l++)n="interval"===r[s].type?t[l][s]?t[l][s].start:null:t[l][s],(0,a.isNumber)(n)&&n<i&&(i=n),n="interval"===r[s].type?t[l][s]?t[l][s].end:null:t[l][s],(0,a.isNumber)(n)&&n>o&&(o=n);return{min:i,max:o}},t.columnUnique=function(e,t,r){var n,a=u(e,r),i=[];if(null===a||-1===a)return[];for(var o=0;o<t.length;o++)i.push(t[o][a]);if(t&&t.length>0)return 1===(n=Array.from(new Set(i))).length&&"undefined"==typeof n[0]?[]:n;return[]},t.addColumnsSchema=function(e,t){for(var r=t.length,n=e.slice(0),a=0;a<r;a++){var i=n.length;t[a].originalName=t[a].name;for(var o=0;o<i;o++)t[a].name===n[o].name&&(t[a].i=t[a].i&&++t[a].i||1,t[a].name=t[a].originalName+" "+t[a].i),t[a].type&&-1!==["string","number","date"].indexOf(t[a].type)||(t[a].type="string");delete t[a].originalName,delete t[a].i,n.push({name:t[a].name,type:t[a].type||"string"}),t[a].calcFn&&(n[n.length-1].calcFn=t[a].calcFn),t[a].format&&(n[n.length-1].format=t[a].format),t[a].enableUTC&&(n[n.length-1].enableUTC=t[a].enableUTC),t[a].columnIndex=n.length-1}return{schema:n,calcColumns:t}},t.addColumnsData=function(e,t,r){for(var n,a=e.length,i=r.length,o=t.length,s={},l=f(r),c=0;c<o;c++)s[t[c].name]=c;for(var u=0;u<a;u++)for(var d=0;d<i;d++)r[d].calcFn&&(n=r[d].calcFn(e[u],s,u),n=h(r[d],n,l),e[u][r[d].columnIndex]=n);return e},t.parseAndIndexData=function(e,t,r){var n=f(t),a=d(e,t,n);return p(a,t,r,n),a},t.createTableID=function(e){var t=e.length+1;for(;e.includes("table-"+t);)t++;return"table-"+t},t.buildDateColumnsFormatter=f,t.parseData=d,t.indexData=p,t.isUTCEnabled=function(e,t){var r;if(null===(r=u(e,t))||-1===r||"date"!==t[r].type&&"interval"!==t[r].type)return null;return void 0!==t[r].enableUTC?t[r].enableUTC:(0,s.getConfig)("enableUTC")};var a=r(450),i=r(451),o=n(r(452)),s=r(453),l=n(r(322)),c=n(r(454));function u(e,t){if(!t||!e)return null;for(var r=0;r<t.length;r++)if(t[r]&&t[r].hasOwnProperty("name")&&t[r].name===e)return r;return-1}function h(e,t,r){return void 0!==r[e.name]&&t?r[e.name]?+r[e.name].parse(t):+new Date(t):"number"===e.type?(0,a.isNumber)(t)?t:t?parseFloat(t):null:t}function f(e){for(var t={},r=0;r<e.length;r++){if(!e[r].name)throw new Error("Input schema is not in a correct format - each column must have a name");e[r].type&&"date"===e[r].type&&(t[e[r].name]=e[r].format?(void 0!==e[r].enableUTC?e[r].enableUTC:(0,s.getConfig)("enableUTC"))?l["default"].utcParser(e[r].format):l["default"].parser(e[r].format):null)}return t}function d(e,t,r){var n=[];if(e.length>0){var a,i=r,o=t.findIndex((function(e){return"_row_id"===e.name}));i||(i=f(t)),-1===o&&(o=t.push({name:"_row_id",type:"string"})-1);for(var s=0;s<e.length;s++)e[s][o]=(0,c["default"])();try{for(var l,u,d,p=t.length,g=0;g<e.length;g++){if(l=[],(u=e[g]).constructor===Array)for(d=Math.min(p,u.length),a=0;a<d;a++)l[a]=h(t[a],u[a],i);else{if("object"!=typeof u)continue;for(a=0;a<p;a++)u[t[a].name]&&(l[a]=h(t[a],u[t[a].name],i))}n.push(l)}}catch(m){throw new Error("Error while parsing the data - "+m)}}return n}function p(e,t,r,n){if(r.enableIndex){var a,s,l;if(!r.indexBy){(l=n)||(l=f(t));var c=Object.keys(l);if(c.length>0)r.indexBy=c[0];else{for(a=0;a<t.length;a++)if(t[a].type&&"number"===t[a].type){r.indexBy=t[a].name;break}a===t.length&&(r.indexBy=t[0].name)}}for(a=0;a<t.length&&(!t[a]||t[a].name!==r.indexBy);a++);if(a===t.length)throw new Error("Index column is not found in schema");switch(t[a].type){case"number":case"date":s=i.numberComparator;break;default:s=i.stringComparator}(0,o["default"])(e,(function(e,t){return s(e[a],t[a])}))}}},function(e,t,r){"use strict";t.__esModule=!0,t.isNumber=void 0;t.isNumber=function(e){return"number"==typeof e&&!isNaN(e-e)}},function(e,t,r){"use strict";t.__esModule=!0,t.stringComparator=t.numberComparator=void 0;var n=r(450);t.stringComparator=function(e,t){return null==e?t===e?0:1:(0,n.isNumber)(t)?(0,n.isNumber)(e)?e-t:-1:e===t?0:e<t?-1:1},t.numberComparator=function(e,t){return null==e?t===e?0:1:(0,n.isNumber)(t)?e-t:isNaN(e)&&isNaN(t)?0:-1}},function(e,t,r){"use strict";function n(e,t,r,n,a){var i=r||0,o=n||e.length,s=a||i+1,l=t;for(l||(l=function(e,t){return e-t}),i===s&&++s;s<o;++s){var c=i,u=s,h=e[u];do{var f=c+(u-c>>1);l(h,e[f])<0?u=f:c=f+1}while(c<u);for(var d=s;d>c;--d)e[d]=e[d-1];e[c]=h}}t.__esModule=!0,t.binaryInsertionSort=n,t.mergeSort=function c(e,t){var r,n,a,i=t;if(e.constructor!==Array)throw new TypeError("Merge sort can only be applied on Array.");if(1===e.length)return e;i||(i=function(e,t){return e-t});return r=Math.floor(e.length/2),n=e.slice(0,r),a=e.slice(r),function(e,t,r){var n=[],a=0,i=0;for(;a<e.length&&i<t.length;)r(e[a],t[i])<=0?(n.push(e[a]),a++):(n.push(t[i]),i++);return n.concat(e.slice(a)).concat(t.slice(i))}(c(n,i),c(a,i),i)},t["default"]=void 0;function a(e,t,r,n){var a=r+1;if(a===n)return 1;if(t(e[a++],e[r])<0){for(;a<n&&t(e[a],e[a-1])<0;)a++;!function(e,t,r){var n=r,a=t;for(--n;a<n;){var i=e[a];e[a++]=e[n],e[n--]=i}}(e,r,a)}else for(;a<n&&t(e[a],e[a-1])>=0;)a++;return a-r}function i(e,t,r,n,a,i){var o,s,l=0,c=0,u=1;if(i(e,t[r+a])>0){for(c=n-a;u<c&&i(e,t[r+a+u])>0;)l=u,(u=1+(u<<1))<=0&&(u=c);u>c&&(u=c),l+=a,u+=a}else{for(c=a+1;u<c&&i(e,t[r+a-u])<=0;)l=u,(u=1+(u<<1))<=0&&(u=c);u>c&&(u=c),o=l,l=a-u,u=a-o}for(l++;l<u;)i(e,t[r+(s=l+(u-l>>>1))])>0?l=s+1:u=s;return u}function o(e,t,r,n,a,i){var o,s,l=0,c=0,u=1;if(i(e,t[r+a])<0){for(c=a+1;u<c&&i(e,t[r+a-u])<0;)l=u,(u=1+(u<<1))<=0&&(u=c);u>c&&(u=c),o=l,l=a-u,u=a-o}else{for(c=n-a;u<c&&i(e,t[r+a+u])>=0;)l=u,(u=1+(u<<1))<=0&&(u=c);u>c&&(u=c),l+=a,u+=a}for(l++;l<u;)i(e,t[r+(s=l+(u-l>>>1))])<0?u=s:l=s+1;return u}var s=function(){function e(e,t){this.arr=e,this.comparer=t,this.length=e.length,this.tmpStorageLen=this.length<512?this.length>>>1:256,this.tmp=new Array(this.tmpStorageLen),this.runBaseArr=new Array(40),this.runLenArr=new Array(40),this.minGallop=7,this.stackSize=0}var t=e.prototype;return t.pushRun=function(e,t){this.runBaseArr[this.stackSize]=e,this.runLenArr[this.stackSize]=t,this.stackSize++},t.mergeCollapse=function(){for(var e;this.stackSize>1;){if((e=this.stackSize-2)>=1&&this.runLenArr[e-1]<=this.runLenArr[e]+this.runLenArr[e+1]||e>=2&&this.runLenArr[e-2]<=this.runLenArr[e]+this.runLenArr[e-1])this.runLenArr[e-1]<this.runLenArr[e+1]&&e--;else if(this.runLenArr[e]>this.runLenArr[e+1])break;this.mergeAt(e)}},t.mergeForceCollapse=function(){for(var e;this.stackSize>1;)(e=this.stackSize-2)>0&&this.runLenArr[e-1]<this.runLenArr[e+1]&&e--,this.mergeAt(e)},t.mergeAt=function(e){var t,r=this.comparer,n=this.arr,a=this.runBaseArr[e],s=this.runLenArr[e],l=this.runBaseArr[e+1],c=this.runLenArr[e+1];this.runLenArr[e]=s+c,e===this.stackSize-3&&(this.runBaseArr[e+1]=this.runBaseArr[e+2],this.runLenArr[e+1]=this.runLenArr[e+2]),this.stackSize--,a+=t=o(n[l],n,a,s,0,r),0!==(s-=t)&&0!==(c=i(n[a+s-1],n,l,c,c-1,r))&&(s<=c?this.mergeLo(a,s,l,c):this.mergeHi(a,s,l,c))},t.mergeLo=function(e,t,r,n){var a,s,l,c,u=0,h=0,f=r,d=e,p=t,g=n;for(u=0;u<p;u++)this.tmp[u]=this.arr[e+u];if(this.arr[d++]=this.arr[f++],0!=--g)if(1!==p){for(a=this.minGallop;;){s=0,l=0,c=!1;do{if(this.comparer(this.arr[f],this.tmp[h])<0){if(this.arr[d++]=this.arr[f++],l++,s=0,0==--g){c=!0;break}}else if(this.arr[d++]=this.tmp[h++],s++,l=0,1==--p){c=!0;break}}while((s|l)<a);if(c)break;do{if(0!==(s=o(this.arr[f],this.tmp,h,p,0,this.comparer))){for(u=0;u<s;u++)this.arr[d+u]=this.tmp[h+u];if(d+=s,h+=s,(p-=s)<=1){c=!0;break}}if(this.arr[d++]=this.arr[f++],0==--g){c=!0;break}if(0!==(l=i(this.tmp[h],this.arr,f,g,0,this.comparer))){for(u=0;u<l;u++)this.arr[d+u]=this.arr[f+u];if(d+=l,f+=l,0===(g-=l)){c=!0;break}}if(this.arr[d++]=this.tmp[h++],1==--p){c=!0;break}a--}while(s>=7||l>=7);if(c)break;a<0&&(a=0),a+=2}if(this.minGallop=a,a<1&&(this.minGallop=1),1===p){for(u=0;u<g;u++)this.arr[d+u]=this.arr[f+u];this.arr[d+g]=this.tmp[h]}else for(u=0;u<p;u++)this.arr[d+u]=this.tmp[h+u]}else{for(u=0;u<g;u++)this.arr[d+u]=this.arr[f+u];this.arr[d+g]=this.tmp[h]}else for(u=0;u<p;u++)this.arr[d+u]=this.tmp[h+u]},t.mergeHi=function(e,t,r,n){var a,s,l,c,u=0,h=t,f=n,d=e+h-1,p=f-1,g=r+f-1,m=0,v=0;for(u=0;u<f;u++)this.tmp[u]=this.arr[r+u];if(this.arr[g--]=this.arr[d--],0!=--h)if(1!==f){for(a=this.minGallop;;){s=0,l=0,c=!1;do{if(this.comparer(this.tmp[p],this.arr[d])<0){if(this.arr[g--]=this.arr[d--],s++,l=0,0==--h){c=!0;break}}else if(this.arr[g--]=this.tmp[p--],l++,s=0,1==--f){c=!0;break}}while((s|l)<a);if(c)break;do{if(0!==(s=h-o(this.tmp[p],this.arr,e,h,h-1,this.comparer))){for(h-=s,v=(g-=s)+1,m=(d-=s)+1,u=s-1;u>=0;u--)this.arr[v+u]=this.arr[m+u];if(0===h){c=!0;break}}if(this.arr[g--]=this.tmp[p--],1==--f){c=!0;break}if(0!==(l=f-i(this.arr[d],this.tmp,0,f,f-1,this.comparer))){for(f-=l,v=(g-=l)+1,m=(p-=l)+1,u=0;u<l;u++)this.arr[v+u]=this.tmp[m+u];if(f<=1){c=!0;break}}if(this.arr[g--]=this.arr[d--],0==--h){c=!0;break}a--}while(s>=7||l>=7);if(c)break;a<0&&(a=0),a+=2}if(this.minGallop=a,a<1&&(this.minGallop=1),1===f){for(v=(g-=h)+1,m=(d-=h)+1,u=h-1;u>=0;u--)this.arr[v+u]=this.arr[m+u];this.arr[g]=this.tmp[p]}else for(m=g-(f-1),u=0;u<f;u++)this.arr[m+u]=this.tmp[u]}else{for(v=(g-=h)+1,m=(d-=h)+1,u=h-1;u>=0;u--)this.arr[v+u]=this.arr[m+u];this.arr[g]=this.tmp[p]}else for(m=g-(f-1),u=0;u<f;u++)this.arr[m+u]=this.tmp[u]},e}();var l=function(e,t,r,i){var o,l,c,u,h,f=r,d=i,p=t;if(e.constructor!==Array)throw new TypeError("Sorting can only be applied on arrays.");if(f=f||0,p||(p=function(e,t){return e-t}),!((o=(d=d||e.length)-f)<2))if(o<64)n(e,p,f,d,f+(l=a(e,p,f,d)));else{c=function(e){for(var t=0,r=e;r>=64;)t|=1&r,r>>=1;return r+t}(o),u=new s(e,p);do{(l=a(e,p,f,f+o))<c&&(n(e,p,f,f+(h=o<=c?o:c),f+l),l=h),u.pushRun(f,l),u.mergeCollapse(),o-=l,f+=l}while(0!==o);u.mergeForceCollapse()}};t["default"]=l},function(e,t,r){"use strict";t.__esModule=!0,t.getConfig=function(e){if(!e)throw new Error("configName is missing");return n[e]},t.setConfig=function(e,t){if(!e)throw new Error("configName is missing");n[e]=t};var n={enableUTC:!1}},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n=0,a=function(e){return void 0===e&&(e=""),e+""+n++};t["default"]=a},function(e,t,r){"use strict";function n(e,t){if("string"!=typeof e)throw new Error("eventName must be a non-empty string");if(!(t instanceof Object))throw new Error("sender must be an object");return t._evtHandlers&&t._evtHandlers[e]||[]}t.__esModule=!0,t.addHandler=function a(e,t,r){var n;if(t instanceof Array){for(var i=[],o=t.length,s=0;s<o;s+=1)i.push(a(e,t[s],r));return i}if(!e||"string"!=typeof e)throw new Error("eventName must be a non-empty string");if("function"!=typeof t)throw new Error("handler must be a function");if(!(r instanceof Object))throw new Error("sender must be an object");r._evtHandlers=r._evtHandlers||{},r._evtHandlers[e]&&r._evtHandlers[e]instanceof Array||(r._evtHandlers[e]=[]);n=r._evtHandlers[e].length;for(var l=0;l<n;l++)if(r._evtHandlers[e][l]===t)return!1;return r._evtHandlers[e].push(t),!0},t.getHanlders=n,t.removeHandler=function i(e,t,r){var a,o;if(t instanceof Array){for(var s=[],l=t.length,c=0;c<l;c+=1)s.push(i(e,t[c],r));return s}if(!e||"string"!=typeof e)throw new Error("eventName must be a non-empty string");if(t&&"function"!=typeof t)throw new Error("handler must be a function");if(!(r instanceof Object))throw new Error("sender must be an object");if(!((a=n(e,r))instanceof Array)||0===a.length)return;if(!t)return delete r._evtHandlers[e],!0;o=a.length;for(var u=0;u<o;u++)a[u]===t&&a.splice(u,1);return!0},t.triggerEvent=function(e,t,r){var a,i,o;if(!e||"string"!=typeof e)throw new Error("eventName must be a non-empty string");if(!(t instanceof Object))throw new Error("sender must be an object");if(a=n(e,t),o={eventName:e,sender:t,data:r},!(a instanceof Array)||0===a.length)return;i=a.length;for(var s=0;s<i;s++)a[s](o);return!0}},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}},function(e,t,r){"use strict";t.__esModule=!0;var n=r(458);t.between=n.between,t.equals=n.equals,t.less=n.less,t.lessEquals=n.lessEquals,t.greater=n.greater,t.greaterEquals=n.greaterEquals,t.filter=n.filter,t.select=n.select,t.groupBy=n.groupBy,t.pipe=n.pipe,t.sort=n.sort,t.pivot=n.pivot},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0;var a=r(459);t.indexColBetween=a.indexColBetween,t.between=a.between,t.indexColEquals=a.indexColEquals,t.equals=a.equals,t.indexColLess=a.indexColLess,t.less=a.less,t.indexColLessEquals=a.indexColLessEquals,t.lessEquals=a.lessEquals,t.indexColGreater=a.indexColGreater,t.greater=a.greater,t.indexColGreaterEquals=a.indexColGreaterEquals,t.greaterEquals=a.greaterEquals;var i=r(462);t.filter=i.filter,t.select=i.select;var o=n(r(463));t.groupBy=o["default"];var s=n(r(482));t.pipe=s["default"];var l=n(r(483));t.sort=l["default"];var c=n(r(484));t.pivot=c["default"]},function(e,t,r){"use strict";t.__esModule=!0,t.indexColBetween=s,t.between=function(e,t,r){var n=t,o=r;return{ops:"between",type:i.OperatorTypes.GenericFilter,_updateArgs:function(e,t){n=e,o=t},fn:function(t,r,i,l){var c,u,h=t;if(l&&(h=l.call()),(c=(0,a.columnIndexOf)(e,r))>=0)return u=d(r,c),i&&i.indexBy===e?s(c,n,o,u).fn(h,r,i):{data:h,schema:r,config:i,generatorFn:function(){return h.filter((function(e){return u(e,n)>=0&&u(e,o)<=0}))}};throw new Error("Column '"+e+"' is not found in the schema.")}}},t.indexColEquals=l,t.equals=function(e,t){var r=t;return{ops:"equals",type:i.OperatorTypes.GenericFilter,_updateArgs:function(e){r=e},fn:function(t,n,i,o){var s,c,u=t;if(o&&(u=o.call()),(s=(0,a.columnIndexOf)(e,n))>=0)return c=d(n,s),i&&i.indexBy===e?l(s,r,c).fn(u,n,i):{data:u,schema:n,config:i,generatorFn:function(){return u.filter((function(e){return 0===c(e,r)}))}};throw new Error("Column '"+e+"' is not found in the schema.")}}},t.indexColLess=c,t.less=function(e,t){var r=t;return{ops:"less",type:i.OperatorTypes.GenericFilter,_updateArgs:function(e){r=e},fn:function(t,n,i,o){var s,l,u=t;if(o&&(u=o.call()),(s=(0,a.columnIndexOf)(e,n))>=0)return l=d(n,s),i&&i.indexBy===e?c(s,r,l).fn(u,n,i):{data:u,schema:n,config:i,generatorFn:function(){return u.filter((function(e){return l(e,r)<0}))}};throw new Error("Column '"+e+"' is not found in the schema.")}}},t.indexColLessEquals=u,t.lessEquals=function(e,t){var r=t;return{ops:"lessEquals",type:i.OperatorTypes.GenericFilter,_updateArgs:function(e){r=e},fn:function(t,n,i,o){var s,l,c=t;if(o&&(c=o.call()),(s=(0,a.columnIndexOf)(e,n))>=0)return l=d(n,s),i&&i.indexBy===e?u(s,r,l).fn(c,n,i):{data:c,schema:n,config:i,generatorFn:function(){return c.filter((function(e){return l(e,r)<=0}))}};throw new Error("Column '"+e+"' is not found in the schema.")}}},t.indexColGreater=h,t.greater=function(e,t){var r=t;return{ops:"greater",type:i.OperatorTypes.GenericFilter,_updateArgs:function(e){r=e},fn:function(t,n,i,o){var s,l,c=t;if(o&&(c=o.call()),(s=(0,a.columnIndexOf)(e,n))>=0)return l=d(n,s),i&&i.indexBy===e?h(s,r,l).fn(c,n,i):{data:c,schema:n,config:i,generatorFn:function(){return c.filter((function(e){return null!==e[s]&&"undefined"!=typeof e[s]&&l(e,r)>0}))}};throw new Error("Column '"+e+"' is not found in the schema.")}}},t.indexColGreaterEquals=f,t.greaterEquals=function(e,t){var r=t;return{ops:"greaterEquals",type:i.OperatorTypes.GenericFilter,_updateArgs:function(e){r=e},fn:function(t,n,i,o){var s,l,c=t;if(o&&(c=o.call()),(s=(0,a.columnIndexOf)(e,n))>=0)return l=d(n,s),i&&i.indexBy===e?f(s,r,l).fn(c,n,i):{data:c,schema:n,config:i,generatorFn:function(){return c.filter((function(e){return null!==e[s]&&"undefined"!=typeof e[s]&&l(e,r)>=0}))}};throw new Error("Column '"+e+"' is not found in the schema.")}}};var n=r(460),a=r(449),i=r(461),o=r(451);function s(e,t,r,a){var s=t,l=r,c=a;return{ops:"indexColBetween",type:i.OperatorTypes.IndexOpsFilter,_updateArgs:function(e,t){s=e,l=t},fn:function(t,r,a,i){var u,h,f,p=t;return i&&(p=i.call()),c||(c=d(r,e)),f="interval"===r[e].type?function(t,r){return(0,o.numberComparator)(t[e].end,r)}:c,u=(0,n.leftMostExactOrGreater)(s,p,c,0,p.length),h=(0,n.rightMostExactOrLesser)(l,p,f,u,p.length),{data:p,schema:r,config:a,generatorFn:function(){return p.slice(u,h+1)}}}}}function l(e,t,r){var a=t,o=r;return{ops:"indexColEquals",type:i.OperatorTypes.IndexOpsFilter,_updateArgs:function(e){a=e},fn:function(t,r,i,s){var l,c,u=t;return s&&(u=s.call()),o||(o=d(r,e)),(l=(0,n.leftMostExactOrGreater)(a,u,o,0,u.length))>=u.length||0!==o(u[l],a)?{data:[],schema:r,config:i}:(c=(0,n.rightMostExactOrLesser)(a,u,o,l,u.length),{data:u,schema:r,config:i,generatorFn:function(){return u.slice(l,c+1)}})}}}function c(e,t,r){var a=t,o=r;return{ops:"indexColLess",type:i.OperatorTypes.IndexOpsFilter,_updateArgs:function(e){a=e},fn:function(t,r,i,s){var l,c=t;return s&&(c=s.call()),o||(o=d(r,e)),l=(0,n.leftMostExactOrGreater)(a,c,o,0,c.length),{data:c,schema:r,config:i,generatorFn:function(){return c.slice(0,l)}}}}}function u(e,t,r){var a=t,o=r;return{ops:"indexColLessEquals",type:i.OperatorTypes.IndexOpsFilter,_updateArgs:function(e){a=e},fn:function(t,r,i,s){var l,c=t;return s&&(c=s.call()),o||(o=d(r,e)),l=(0,n.rightMostExactOrLesser)(a,c,o,0,c.length),{data:c,schema:r,config:i,generatorFn:function(){return c.slice(0,l+1)}}}}}function h(e,t,r){var a=t,o=r;return{ops:"indexColGreater",type:i.OperatorTypes.IndexOpsFilter,_updateArgs:function(e){a=e},fn:function(t,r,i,s){var l,c,u=t;return s&&(u=s.call()),o||(o=d(r,e)),l=(0,n.rightMostExactOrLesser)(a,u,o,0,u.length),c=(0,n.leftMostExactOrGreater)(null,u,o,l,u.length),{data:u,schema:r,config:i,generatorFn:function(){return u.slice(l+1,c)}}}}}function f(e,t,r){var a=t,o=r;return{ops:"indexColGreaterEquals",type:i.OperatorTypes.IndexOpsFilter,_updateArgs:function(e){a=e},fn:function(t,r,i,s){var l,c,u=t;return s&&(u=s.call()),o||(o=d(r,e)),l=(0,n.leftMostExactOrGreater)(a,u,o,0,u.length),c=(0,n.leftMostExactOrGreater)(null,u,o,l,u.length),{data:u,schema:r,config:i,generatorFn:function(){return u.slice(l,c)}}}}}var d=function(e,t){switch(e[t].type){case"interval":return function(e,r){return(0,o.numberComparator)(e[t].start,r)};case"number":case"date":return function(e,r){return(0,o.numberComparator)(e[t],r)};default:return function(e,r){return(0,o.stringComparator)(String(e[t]).toLowerCase(),String(r).toLowerCase())}}}},function(e,t,r){"use strict";t.__esModule=!0,t.leftMostExactOrGreater=function(e,t,r,n,a){var i=n,o=a;for(;i<o;){var s=i+Math.floor((o-i)/2);r(t[s],e)<0?i=s+1:o=s}return i},t.rightMostExactOrLesser=function(e,t,r,n,a){var i=n,o=a;for(;i<o;){var s=i+Math.floor((o-i)/2);r(t[s],e)>0?o=s:i=s+1}return i-1}},function(e,t,r){"use strict";t.__esModule=!0,t.OperatorTypes=void 0;t.OperatorTypes={IndexOpsFilter:0,GenericFilter:1,GroupBy:2,Sort:3,Select:4}},function(e,t,r){"use strict";t.__esModule=!0,t.select=function(e,t){var r=e,i=t;return r=r&&r.constructor!==Array?[r]:r,{ops:"select",type:n.OperatorTypes.Select,fn:function(e,t,n,o){var s,l,c=[],u=[];if(r)if((i=i||{exclude:!1}).exclude)for(s=0;s<t.length;s++)r.includes(t[s].name)||(c.push(t[s]),u.push(s));else for(s=0;s<r.length;s++)(l=(0,a.columnIndexOf)(r[s],t))>-1&&!u.includes(l)&&(c.push(t[l]),u.push(l));else c=t;return{data:e,schema:c,config:n,generatorFn:function(){var t=u.length;if(t>0){var r,n,a,i=[];for(r=0;r<e.length;r++){for(a=[],n=0;n<t;n++)a[n]=e[r][u[n]];i[r]=a}return i}return e.slice(0)}}}}},t.filter=function(e){var t=this;return{ops:"filter",type:n.OperatorTypes.GenericFilter,fn:function(r,n,a,i){var o=r;return{data:o,schema:n,config:a,generatorFn:function(){i&&(o=i.call());for(var r={},a=0;a<n.length;a++)r[n[a].name]=a;return o.filter((function(n){return e.call(t,n,r)}))}}}}};var n=r(461),a=r(449)},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t._singleSortedAddRow=g,t._singleSortedAddRowDate=m,t["default"]=void 0;var a=r(449),i=r(464),o=r(477),s=r(478),l=n(r(479)),c=r(453),u=r(461),h=r(460),f=r(451),d=n(r(481));function p(e,t,r,n){var a,i,o,s,c,u=[],h=t,f=r,p=h.length,g=f.length;for(h=h instanceof Array?h:[h],f=f instanceof Array?f:[f],o=0;o<p;o++)a=n(h[o].column,e),c={name:h[o].outputAs||h[o].column,type:"date"===a.type?"interval":a.type},void 0!==a.enableUTC&&(c.enableUTC=a.enableUTC),u.push(c);for(o=0;o<g;o++){if(s=f[o].operation||"avg",a=n(f[o].column,e),!l["default"].resolve(s))throw new Error(s+" is not a defined operation");switch(s){case"first":case"last":i=a.type;break;case"count":i="number";break;default:if("number"!==a.type)throw new Error(s+" can apply only on numbers");i="number"}u.push({name:f[o].outputAs||f[o].column+(s?d["default"]+s:""),type:i})}return u}function g(e,t,r){var n=t;return n&&r===n[0]||(n=[r],e.push(n)),n}function m(e,t,r,n,a){var o=t;if(r>=o[0].end){var l;switch(n.duration.Unit){case"Month":case"Quarter":case"Year":l=(0,i.getDateStart)(r,n.duration,n.enableUTC,n.weekStartFrom,a);break;default:l=r-(r-a)%n.duration.ms}o=[(0,s.interval)(l,n)],e.push(o)}return o}function v(){var e={};return function(t,r,n){if(!e[t]){var i=(0,a.columnIndexOf)(t,r),o=r[i];if(void 0===o)throw new Error("incorrect column name in config - "+t);e[t]=o,e[t].column=t,e[t].index=i,"date"===o.type&&n&&(e[t].peaks=(0,a.columnExtents)(t,n,r))}return e[t]}}function b(e,t,r,n,a,o,l,c,u,h){var f,d,p,g,m="",v=[],b=r.length,x=c;if(e.length>0){for(f=0;f<b;f++)if("date"===(d=a(r[f].column,t)).type){if(o[f].startValFloorVal>e[d.index])return x;switch(r[f].timeUnit.name){case"Month":case"Quarter":case"Year":o[f].value=(0,i.getDateStart)(e[d.index],o[f].intervalConfig.duration,o[f].intervalConfig.enableUTC,o[f].intervalConfig.weekStartFrom,o[f].startValFloorVal);break;default:o[f].value=e[d.index]-(e[d.index]-o[f].startValFloorVal)%o[f].intervalConfig.duration.ms}m+=o[f].value+"-"}else v[f]=e[d.index],m+=e[d.index]+"-";if(l[m=m.slice(0,-1)]>=0)v=u[l[m]],p=l[m];else{for(var w in l[m]=x++,o)g=(0,s.interval)(o[w].value,o[w].intervalConfig),v[w]=g;u.push(v),p=u.length-1}return h[p]=h[p]||{},v&&y(e,t,v,b,n,a,h[p]),x}}function y(e,t,r,n,a,i,o){var s,c,u,h,f=a.length;for(h=0;h<f;h++)if(void 0!==e[(s=i(a[h].column,t)).index]&&null!==e[s.index]){switch(c=a[h].operation||"avg"){case"sum":case"min":case"max":case"first":case"last":u=null;break;default:u=o[h]=o[h]&&o[h]+1||1}r[n+h]="count"===c?u:l["default"].resolve(c)(void 0!==r[n+h]?r[n+h]:null,e[s.index],u)}}var x=function(e,t){var r=e,n=t;return{ops:"groupBy",type:u.OperatorTypes.GroupBy,_updateArgs:function(e,t){r=e,n=t},fn:function(e,t,l,u){var d=e;if(u&&(d=u.call()),!r||0===r.length)throw new Error("groupConfigArray cannot be empty");if(!n||0===n.length)throw new Error("aggrConfigArray cannot be empty");return!(r instanceof Array)&&r instanceof Object&&(r=[r]),!(n instanceof Array)&&n instanceof Object&&(n=[n]),1===r.length&&l&&r[0].column===l.indexBy?function(e,t,r,n,l){var u,d,b,x,w,_,S,C,k,A=[],N=e.length,E=0,L=v(),M=[];if((d=L(n.column,t)).outputAs=n.outputAs,u=p(t,[d],l,L),N>0){if(C=d.enableUTC||(0,c.getConfig)("enableUTC"),"date"===d.type){var F,T,D;if(x=(0,o.duration)(n.timeUnit,Math.abs(n.binSize)||1),e[0]&&e[0][d.index]&&e[N-1]&&e[N-1][d.index]||(F=(0,a.columnExtents)(n.column,e,t,r.indexBy)),T=e[0]&&e[0][d.index]||F.min,(D=n.startValue&&parseInt(n.startValue,10))&&"Week"!==n.timeUnit.name)if(D>=T){w=(0,i.getDateStart)(D,(0,o.duration)(n.timeUnit,1),C,n.weekStartFrom),E=(0,h.leftMostExactOrGreater)(w,e,(function(e,t){return(0,f.numberComparator)(e[d.index],t)}),0,e.length)}else w=(0,i.getDateStart)(T,x,C,n.weekStartFrom,D);else w=(0,i.getDateStart)(T,(0,o.duration)(n.timeUnit,1),C,n.weekStartFrom);b=e[N-1]&&e[N-1][d.index]||F.max}if(void 0===w||w<=b){var I={duration:x,outputFormat:n.outputFormat,enableUTC:C,weekStartFrom:n.weekStartFrom};for(void 0!==w&&(_=[(0,s.interval)(w,I)],A.push(_)),k=E;k<N;k++)e[k].length>0&&("date"===d.type?_=m(A,_,e[k][d.index],I,w):"string"!==d.type&&"number"!==d.type||(_=g(A,_,e[k][d.index])),S=A.length-1,M[S]=M[S]||{},_&&y(e[k],t,_,1,l,L,M[S]))}}return{data:A,schema:u,config:{indexBy:n.outputAs||n.column}}}(d,t,l,r[0],n):function(e,t,r,n,a){var s,l,u,h,f,d=[],g=[],m=!0,y=e.length,x=n.length,w={},_=[],S=v(),C={},k=0;for(f=0;f<x;f++)(l=S(n[f].column,t,e)).outputAs=n[f].outputAs,"date"===l.type&&(w[f]||(n[f].startValue>=l.peaks.max&&(m=!1),w[f]=Object.assign({},l),w[f].intervalConfig={duration:(0,o.duration)(n[f].timeUnit,Math.abs(n[f].binSize)||1),outputFormat:n[f].outputFormat,enableUTC:l.enableUTC||(0,c.getConfig)("enableUTC"),weekStartFrom:n[f].weekStartFrom},u=parseInt(n[f].startValue,10)||l.peaks.min,w[f].startValFloorVal=u&&(0,i.getDateStart)(u,(0,o.duration)(n[f].timeUnit,1),w[f].intervalConfig.enableUTC,w[f].intervalConfig.weekStartFrom,parseInt(n[f].startValue,10)),w[f].max=l.peaks.max)),g[f]=l,h||n[f].column!==r.indexBy||(h=n[f].outputAs||n[f].column);if(s=p(t,g,a,S),m&&y>0)for(f=0;f<y;f++)k=b(e[f],t,n,a,S,w,C,k,d,_);return{data:d,schema:s,config:{indexBy:h}}}(d,t,l,r,n)}}};t["default"]=x},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.getDefaultOutputFormat=function(e){switch(e){case"Millisecond":case"Second":case"Minute":case"Hour":case"Day":case"Month":case"Year":return u[e];case"Week":return u.Day;case"Quarter":return u.Month}},t.dateIntervalToString=function(){var e,t=this.config;switch(e="undefined"!=typeof t.enableUTC&&t.enableUTC?s["default"].utcFormatter(t.outputFormat):s["default"].formatter(t.outputFormat),t.duration.Unit){case"Millisecond":case"Second":case"Minute":case"Hour":case"Day":case"Month":case"Year":return e.format(new Date(this.start))+(t.duration.number>1?" - "+e.format(new Date(this.end-1)):"");case"Week":case"Quarter":return e.format(new Date(this.start))+" - "+e.format(new Date(this.end-1))}},t.dateRangeCaclulator=function(e,t,r,n,a){void 0===a&&(a=!1);var i,o,s;i=e,a&&((s=Object.assign({},t)).number=1,i=d(i,s,r,n));return o=p(i,t.Unit,t.number,r,n),{startDate:i,endDate:o}},t.getDateStart=d,t.getDateOffset=p;var a=c(r(465)),i=c(r(472)),o=r(330),s=n(r(322));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n["default"]=e,r&&r.set(e,n),n}var u={Year:"%Y",Month:"%b %Y",Day:"%b %d, %Y",Hour:"%b %d, %Y %H hrs",Minute:"%b %d, %Y %H:%M",Second:"%b %d, %Y %H:%M:%S",Millisecond:"%b %d, %Y %H:%M:%S:%L"},h={Millisecond:a.timeMillisecond,Second:a.timeSecond,Minute:a.timeMinute,Hour:a.timeHour,Day:a.timeDay,Week:{0:a.timeSunday,1:a.timeMonday,2:a.timeTuesday,3:a.timeWednesday,4:a.timeThursday,5:a.timeFriday,6:a.timeSaturday},Month:a.timeMonth,Quarter:a.timeQuarter,Year:a.timeYear},f={Millisecond:i.utcMillisecond,Second:i.utcSecond,Minute:i.utcMinute,Hour:i.utcHour,Day:i.utcDay,Week:{0:i.utcSunday,1:i.utcMonday,2:i.utcTuesday,3:i.utcWednesday,4:i.utcThursday,5:i.utcFriday,6:i.utcSaturday},Month:i.utcMonth,Quarter:i.utcQuarter,Year:i.utcYear};function d(e,t,r,n,a){var i,s=void 0!==r&&r?f[t.Unit]:h[t.Unit],l=n;if(l&&!o.Weekdays[l.name])throw new Error("Invalid weekStartFrom provided: "+l);return 1===t.number?"Week"===t.Unit?+s[(l=l||o.Weekdays.Sunday).id].floor(new Date(e)):+s.floor(new Date(e)):a?"Week"===t.Unit?(i=s[(l=l||o.Weekdays.Sunday).id].count(a,e)%t.number)?p(+s[l.id].floor(e),t.Unit,-i,r,l):+s[l.id].floor(e):(i=s.count(a,e)%t.number)?p(+s.floor(e),t.Unit,-i,r,l):+s.floor(e):"Week"===t.Unit?+s[(l=l||o.Weekdays.Sunday).id].every(t.number).floor(new Date(e)):+s.every(t.number).floor(new Date(e))}function p(e,t,r,n,a){switch(t){case"Month":case"Quarter":case"Year":return+(void 0!==n&&n?f[t]:h[t]).offset(new Date(e),r);default:return e+o.DatetimeUnits[t].ms*r}}},function(e,t,r){"use strict";t.__esModule=!0;var n=d(r(466));t.timeMillisecond=n["default"],t.millisecondObj=n.millisecondObj;var a=d(r(468));t.timeSecond=a["default"],t.secondObj=a.secondObj;var i=d(r(469));t.timeMinute=i["default"],t.minuteObj=i.minuteObj;var o=d(r(334));t.timeHour=o["default"],t.hourObj=o.hourObj;var s=d(r(326));t.timeDay=s["default"],t.dayObj=s.dayObj;var l=d(r(333));t.timeWeek=l["default"],t.timeSunday=l.sunday,t.timeMonday=l.monday,t.timeTuesday=l.tuesday,t.timeWednesday=l.wednesday,t.timeThursday=l.thursday,t.timeFriday=l.friday,t.timeSaturday=l.saturday,t.weekObj=l.weekObj;var c=d(r(470));t.timeQuarter=c["default"],t.quarterObj=c.quarterObj;var u=d(r(471));t.timeMonth=u["default"],t.monthObj=u.monthObj;var h=d(r(335));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function d(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var r=f(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n["default"]=e,r&&r.set(e,n),n}t.timeYear=h["default"],t.yearObj=h.yearObj},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.millisecondObj=t["default"]=void 0;var a=n(r(467)),i=r(329),o={name:"millisecond",floor:function(e){return e},offset:function(e,t,r,n){var a=t>0,o={date:new Date(Number(e))},s=new Date(Number(o.date));return new Date(Number(a?(0,i.clampDownDateWithinClip)(o.date,new Date(Number(s.setTime(Number(s)+Number(t)))),r,n):(0,i.clampUpDateWithinClip)(o.date,new Date(Number(s.setTime(Number(s)+Number(t)))),r,n)))},count:function(e,t,r){var n=(0,i.getValidDatesWithin)(r,e,t),a=0,o=(0,i.getClampRangesAround)(r,t);return(n=(0,i.getClipArray)(o,n)).forEach((function(e){a+=Number(e.to)-Number(e.from)})),t-e-a}},s=new a["default"](o);t.millisecondObj=o;var l=s;t["default"]=l},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=n(r(268)),i=n(r(327)),o=r(329),s=function(e){function t(){return e.apply(this,arguments)||this}return(0,a["default"])(t,e),t.prototype.every=function(e){var t=Math.floor(e);return this.count&&Number.isFinite(t)&&t>0?t>1?new i["default"]({name:"millisecond",floor:function(e,r,n){return new Date(Number((0,o.getFloor)(new Date(Number(e.setTime(Math.floor(e/t)*t))),r,n)))},offset:function(e,r,n,a){var i=r>0,s={date:new Date(Number(e))},l=new Date(Number(s.date));return new Date(Number(i?(0,o.clampDownDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+r*t))),n,a):(0,o.clampUpDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+r*t))),n,a)))},count:function(e,r,n){var a=(0,o.getValidDatesWithin)(n,e,r),i=0,s=(0,o.getClampRangesAround)(n,r);return(a=(0,o.getClipArray)(s,a)).forEach((function(e){i+=Number(e.to)-Number(e.from)})),r-e-Math.floor(i/t)}}):this:null},t}(i["default"]);t["default"]=s},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.secondObj=t["default"]=void 0;var a=n(r(327)),i=r(328),o=r(329),s={name:"second",floor:function(e,t,r){return new Date(Number((0,o.getFloor)(new Date(Number(e.setTime(Math.floor(e/i.durationSecond)*i.durationSecond))),t,r)))},offset:function(e,t,r,n){var a=t>0,s={date:new Date(Number(e))},l=new Date(Number(s.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationSecond))),r,n):(0,o.clampUpDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationSecond))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach((function(e){a+=Number(e.to)-Number(e.from)})),(t-e)/i.durationSecond-Math.floor(a/i.durationSecond)},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setUTCSeconds(0),n=(0,o.getFloor)(new Date(Number(s)),t,r),(0,o.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach((function(e){l+=Number(e.to)-Number(e.from)})),e.getUTCSeconds()-n.getUTCSeconds()-l/i.durationSecond}},l=new a["default"](s);t.secondObj=s;var c=l;t["default"]=c},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.minuteObj=t["default"]=void 0;var a=n(r(327)),i=r(328),o=r(329),s={name:"minute",floor:function(e,t,r){return new Date(Number((0,o.getFloor)(new Date(Number(e.setTime(Math.floor(e/i.durationMinute)*i.durationMinute))),t,r)))},offset:function(e,t,r,n){var a=t>0,s={date:new Date(Number(e))},l=new Date(Number(s.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationMinute))),r,n):(0,o.clampUpDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationMinute))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach((function(e){a+=Number(e.to)-Number(e.from)})),(t-e)/i.durationMinute-Math.floor(a/i.durationMinute)},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setMinutes(0),n=(0,o.getFloor)(new Date(Number(s)),t,r),(0,o.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach((function(e){l+=Number(e.to)-Number(e.from)})),e.getMinutes()-n.getMinutes()-Math.floor(l/i.durationMinute)}},l=new a["default"](s);t.minuteObj=s;var c=l;t["default"]=c},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.quarterObj=t["default"]=void 0;var a=n(r(327)),i=r(329),o=r(328),s={name:"quarter",floor:function(e,t,r){return e.setMonth(e.getMonth()-(e.getMonth()+3)%3,1),new Date(Number((0,i.getFloor)(new Date(Number(e.setHours(0,0,0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,o={date:new Date(Number(e))},s=new Date(Number(o.date));return new Date(Number(a?(0,i.clampDownDateWithinClip)(o.date,new Date(Number(s.setMonth(s.getMonth()+3*t))),r,n):(0,i.clampUpDateWithinClip)(o.date,new Date(Number(s.setMonth(s.getMonth()+3*t))),r,n)))},count:function(e,t,r){var n=(0,i.getValidDatesWithin)(r,e,t),a=0,s=(0,i.getClampRangesAround)(r,t);return(n=(0,i.getClipArray)(s,n)).forEach((function(e){a+=Number(e.to)-Number(e.from)})),(t.getMonth()-(t.getMonth()+3)%3-(e.getMonth()-(e.getMonth()+3)%3)-Math.floor(a/o.durationMonth))/3+4*(t.getFullYear()-e.getFullYear())},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setMonth(0),n=(0,i.getFloor)(new Date(Number(s)),t,r),(0,i.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach((function(e){l+=Number(e.to)-Number(e.from)})),Math.floor((e.getMonth()-n.getMonth()-Math.floor(l/o.durationMonth))/3)}},l=new a["default"](s);t.quarterObj=s;var c=l;t["default"]=c},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.monthObj=t["default"]=void 0;var a=n(r(327)),i=r(329),o=r(328),s={name:"month",floor:function(e,t,r){return e.setDate(1),new Date(Number((0,i.getFloor)(new Date(Number(e.setHours(0,0,0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,o={date:new Date(Number(e))},s=new Date(Number(o.date));return new Date(Number(a?(0,i.clampDownDateWithinClip)(o.date,new Date(Number(s.setMonth(s.getMonth()+t))),r,n):(0,i.clampUpDateWithinClip)(o.date,new Date(Number(s.setMonth(s.getMonth()+t))),r,n)))},count:function(e,t,r){var n=(0,i.getValidDatesWithin)(r,e,t),a=0,s=(0,i.getClampRangesAround)(r,t);return(n=(0,i.getClipArray)(s,n)).forEach((function(e){a+=Number(e.to)-Number(e.from)})),t.getMonth()-e.getMonth()-Math.floor(a/o.durationMonth)+12*(t.getFullYear()-e.getFullYear())},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setMonth(0),n=(0,i.getFloor)(new Date(Number(s)),t,r),(0,i.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach((function(e){l+=Number(e.to)-Number(e.from)})),e.getMonth()-n.getMonth()-Math.floor(l/o.durationMonth)}},l=new a["default"](s);t.monthObj=s;var c=l;t["default"]=c},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n=d(r(466));t.utcMillisecond=n["default"],t.millisecondObj=n.millisecondObj;var a=d(r(468));t.utcSecond=a["default"],t.secondObj=a.secondObj;var i=d(r(473));t.utcMinute=i["default"],t.utcMinuteObj=i.utcMinuteObj;var o=d(r(474));t.utcHour=o["default"],t.utcHourObj=o.utcHourObj;var s=d(r(331));t.utcDay=s["default"],t.utcDayObj=s.utcDayObj;var l=d(r(332));t.utcWeek=l["default"],t.utcSunday=l.utcSunday,t.utcMonday=l.utcMonday,t.utcTuesday=l.utcTuesday,t.utcWednesday=l.utcWednesday,t.utcThursday=l.utcThursday,t.utcFriday=l.utcFriday,t.utcSaturday=l.utcSaturday,t.utcWeekObj=l.utcWeekObj;var c=d(r(475));t.utcQuarter=c["default"],t.utcQuarterObj=c.utcQuarterObj;var u=d(r(476));t.utcMonth=u["default"],t.utcMonthObj=u.utcMonthObj;var h=d(r(337));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function d(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var r=f(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n["default"]=e,r&&r.set(e,n),n}t.utcYear=h["default"],t.utcYearObj=h.utcYearObj;var p={getInterval:function(e){switch(e+""){case"millisecond":return n["default"];case"second":return a["default"];case"minute":return i["default"];case"hour":return o["default"];case"day":return s["default"];case"week":return l["default"];case"sunday":return l.utcSunday;case"monday":return l.utcMonday;case"tuesday":return l.utcTuesday;case"wednesday":return l.utcWednesday;case"thursday":return l.utcThursday;case"friday":return l.utcFriday;case"saturday":return l.utcSaturday;case"quarter":return c["default"];case"month":return u["default"];case"year":return h["default"]}}};t["default"]=p},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.utcMinuteObj=t["default"]=void 0;var a=n(r(327)),i=r(328),o=r(329),s={name:"minute",floor:function(e,t,r){return new Date(Number((0,o.getFloor)(new Date(Number(e.setUTCSeconds(0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,s={date:new Date(e)},l=new Date(Number(s.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationMinute))),r,n):(0,o.clampUpDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationMinute))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach((function(e){a+=Number(e.to)-Number(e.from)})),(t-e)/i.durationMinute-Math.floor(a/i.durationMinute)},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setUTCMinutes(0),n=(0,o.getFloor)(new Date(Number(s)),t,r),(0,o.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach((function(e){l+=Number(e.to)-Number(e.from)})),e.getUTCMinutes()-n.getUTCMinutes()-Math.floor(l/i.durationMinute)}},l=new a["default"](s);t.utcMinuteObj=s;var c=l;t["default"]=c},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.utcHourObj=t["default"]=void 0;var a=n(r(327)),i=r(328),o=r(329),s={name:"hour",floor:function(e,t,r){return new Date(Number((0,o.getFloor)(new Date(Number(e.setUTCMinutes(0,0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,s={date:new Date(Number(e))},l=new Date(Number(s.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationHour))),r,n):(0,o.clampUpDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationHour))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach((function(e){a+=Number(e.to)-Number(e.from)})),(t-e)/i.durationHour-Math.floor(a/i.durationHour)},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setUTChours(0),n=(0,o.getFloor)(new Date(Number(s)),t,r),(0,o.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach((function(e){l+=Number(e.to)-Number(e.from)})),e.getUTCHours()-n.getUTCHours()-Math.floor(l/i.durationHour)}},l=new a["default"](s);t.utcHourObj=s;var c=l;t["default"]=c},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.utcQuarterObj=t["default"]=void 0;var a=n(r(327)),i=r(329),o=r(328),s={name:"quarter",floor:function(e,t,r){return e.setUTCMonth(e.getUTCMonth()-(e.getUTCMonth()+3)%3,1),new Date(Number((0,i.getFloor)(new Date(Number(e.setUTCHours(0,0,0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,o={date:new Date(Number(e))},s=new Date(Number(o.date));return new Date(Number(a?(0,i.clampDownDateWithinClip)(o.date,new Date(Number(s.setUTCMonth(s.getUTCMonth()+3*t))),r,n):(0,i.clampUpDateWithinClip)(o.date,new Date(Number(s.setUTCMonth(s.getUTCMonth()+3*t))),r,n)))},count:function(e,t,r){var n=(0,i.getValidDatesWithin)(r,e,t),a=0,s=(0,i.getClampRangesAround)(r,t);return(n=(0,i.getClipArray)(s,n)).forEach((function(e){a+=Number(e.to)-Number(e.from)})),(t.getUTCMonth()-(t.getUTCMonth()+3)%3-(e.getUTCMonth()-(e.getUTCMonth()+3)%3)-Math.floor(a/o.durationMonth))/3+4*(t.getUTCFullYear()-e.getUTCFullYear())},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setUTCMonth(0),n=(0,i.getFloor)(new Date(Number(s)),t,r),(0,i.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach((function(e){l+=Number(e.to)-Number(e.from)})),Math.floor(e.getUTCMonth()-n.getUTCMonth()-Math.floor(l/o.durationMonth))}},l=new a["default"](s);t.utcQuarterObj=s;var c=l;t["default"]=c},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.utcMonthObj=t["default"]=void 0;var a=n(r(327)),i=r(328),o=r(329),s={name:"month",floor:function(e,t,r){return e.setUTCDate(1),new Date(Number((0,o.getFloor)(new Date(Number(e.setUTCHours(0,0,0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(i.date,new Date(Number(s.setUTCMonth(s.getUTCMonth()+t))),r,n):(0,o.clampUpDateWithinClip)(i.date,new Date(Number(s.setUTCMonth(s.getUTCMonth()+t))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach((function(e){a+=Number(e.to)-Number(e.from)})),t.getUTCMonth()-e.getUTCMonth()-Math.floor(a/i.durationMonth)+12*(t.getUTCFullYear()-e.getUTCFullYear())},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setUTCMonth(0),n=(0,o.getFloor)(new Date(Number(s)),t,r),(0,o.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach((function(e){l+=Number(e.to)-Number(e.from)})),e.getUTCMonth()-n.getUTCMonth()-Math.floor(l/i.durationMonth)}},l=new a["default"](s);t.utcMonthObj=s;var c=l;t["default"]=c},function(e,t,r){"use strict";t.__esModule=!0,t.duration=function(e,t){var r=t;if(!e||!n.DatetimeUnits[e.name])throw new Error("Invalid Unit provided: "+e);return r=Math.abs(r)||1,{Unit:e.name,number:r,ms:e.ms*r}};var n=r(330)},function(e,t,r){"use strict";t.__esModule=!0,t.interval=function(e,t,r){void 0===r&&(r=!1);if(t.duration.ms){var i=(0,a.dateRangeCaclulator)(e,t.duration,t.enableUTC,t.weekStartFrom||n.Weekdays.Sunday,r),o=i.startDate,s=i.endDate;return t.outputFormat=t.outputFormat||(0,a.getDefaultOutputFormat)(t.duration.Unit),{start:o,end:s,config:t,toString:a.dateIntervalToString}}};var n=r(330),a=r(464)},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(480),a={store:{},_defaultAggregators:{sum:n.sum,avg:n.avg,count:n.count,min:n.min,max:n.max,first:n.first,last:n.last,variance:n.variance,stddev:n.stddev},register:function(e,t){return this.store[e]=t,this},getRegisteredAggregations:function(){return Object.assign(this.store)},getDefaultAggregations:function(){return Object.assign(this._defaultAggregators)},resolve:function(e){return this._defaultAggregators[e]||this.store[e]}};t["default"]=a},function(e,t,r){"use strict";t.__esModule=!0,t.stddev=t.variance=t.last=t.first=t.max=t.min=t.count=t.avg=t.sum=void 0;var n=function(e,t,r){return((r-1)*e+t)/r},a=function(e,t,r){var a,i=t,o=0;return e&&(i=e.avg,o=e.variance),a=i,r>1&&(o=(o*(r-2)+(t-(i=n(i,t,r)))*(t-a))/(r-1)),{avg:i,variance:o}};t.stddev=function(e,t,r){var n,i;return e&&(n={avg:e.avg,variance:e.stddev*e.stddev}),{avg:(i=a(n,t,r)).avg,stddev:Math.sqrt(i.variance)}},t.variance=a,t.last=function(e,t){return t},t.first=function(e,t){return null===e?t:e},t.max=function(e,t){return null!==e?e<t?t:e:t},t.min=function(e,t){return null!==e?e>t?t:e:t},t.count=function(e){return e+1},t.avg=n,t.sum=function(e,t){return e+t}},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=" --fcsep-- "},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=function(){for(var e,t=[],r=[],i=[],o=function(e,t){for(var r=[],n=e.length,i=0;i<n;i++)t[i]||r.push(e[i]);return r&&r.length>0&&(0,a.binaryInsertionSort)(r,(function(e,t){return e.type-t.type})),r},s=function(e){var t=[],r=e.length;(0,a.binaryInsertionSort)(e,(function(e,t){return e.type-t.type})),t.push(e[0]);for(var n=1;n<r;n++)e[n].type>=3&&e[n].type===t[t.length-1].type&&t.pop(),t.push(e[n]);return t},l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];e=c.length;for(var h=0;h<e;h++)switch(c[h].type){case n.OperatorTypes.IndexOpsFilter:case n.OperatorTypes.GenericFilter:t.push(c[h]),r.push(!1);break;case n.OperatorTypes.Select:case n.OperatorTypes.Sort:t.push(c[h]),r.push(!0);break;case n.OperatorTypes.GroupBy:i=i.concat(o(t,r),c[h]),t=[],r=[]}return i=i.concat(s(t))};var n=r(461),a=r(452)},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=r(461),i=r(449),o=r(451),s=n(r(452));var l=function(e){var t=e;return{ops:"sort",type:a.OperatorTypes.Sort,_updateArgs:function(e){t=e},fn:function(e,r,n,a){var l=e;return{data:l,schema:r,config:t.constructor===Array&&t.length?{indexBy:t[0].column}:t.constructor===Object?{indexBy:t.column}:void 0,generatorFn:function(){var e;if(a&&(l=a.call()),t.constructor===Function)e=t;else{t.constructor!==Array&&(t=[t]);var n,c,u,h=[],f=[];for(n=0;n<t.length;n++)if(t[n].column){if(c=(0,i.columnIndexOf)(t[n].column,r),f.push(c),-1===c)throw new Error("Sort column is not found in schema - "+t[n].column);switch(r[c].type){case"number":case"interval":case"date":h.push(o.numberComparator);break;default:h.push(o.stringComparator)}}e=function(e,a){for(n=0;n<t.length;n++){if(0!==(u="interval"===r[f[n]].type?"desc"===t[n].order?h[n](a[f[n]].start,e[f[n]].start):h[n](e[f[n]].start,a[f[n]].start):"desc"===t[n].order?h[n](a[f[n]],e[f[n]]):h[n](e[f[n]],a[f[n]])))return u;if(n===t.length-1)return 0}}}return(0,s["default"])(l,e),l}}}}};t["default"]=l},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t["default"]=void 0;var a=r(449),i=r(464),o=r(477),s=r(478),l=n(r(479)),c=r(453),u=r(461),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var r=g(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n["default"]=e,r&&r.set(e,n);return n}(r(463)),f=r(451),d=r(460),p=n(r(481));function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(g=function(e){return e?r:t})(e)}function m(e,t,r,n,a,i,o,s,c){var u,h,f,d,g,m=a.length;for(d=0;d<m;d++)if(void 0!==e[u=s(a[d].column,t)]&&null!==e[u]){switch(h=a[d].operation||"avg",g=o[e[i]+p["default"]+(a[d].outputAs||a[d].column+(h?p["default"]+h:""))],h){case"sum":case"min":case"max":case"first":case"last":f=null;break;default:f=c[g]=c[g]&&c[g]+1||1}r[n+g]="count"===h?f:l["default"].resolve(h)(void 0!==r[n+g]?r[n+g]:null,e[u],f)}}var v=function(e,t,r){var n=e,g=t,v=r;return{ops:"pivot",type:u.OperatorTypes.GroupBy,_updateArgs:function(e,t,r){n=e,g=t,v=r},fn:function(e,t,r,u){if(0===n.length)throw new Error("groupConfigArray cannot be empty");if(0===v.length)throw new Error("aggrConfigArray cannot be empty");if(!g)throw new Error("pivotCol cannot be empty");return!(n instanceof Array)&&n instanceof Object&&(n=[n]),!(v instanceof Array)&&v instanceof Object&&(v=[v]),1===n.length&&r&&n[0].column===r.indexBy?function(e,t,r,n,u,g){var v,b,y,x,w,_,S,C,k,A,N,E,L,M,F,T=[],D=e.length,I=0,O=(R={},function(e,t){return R[e]||(R[e]=(0,a.columnIndexOf)(e,t)),R[e]}),P=[];var R;if(-1===(x=(0,a.columnIndexOf)(n.column,t)))throw new Error("incorrect column name in groupConfigArr - "+n);if(-1===(_=(0,a.columnIndexOf)(g,t)))throw new Error("incorrect pivot column name");if(w=t[x],S=t[_],(k=Object.assign({},n)).type=w.type,k.outputAs=n.outputAs,y=function(e,t,r,n,i){var o,s,c,u,h,d,g,m,v,b,y,x,w,_=[],S={},C=0,k=r,A=n;for(k=k instanceof Array?k:[k],A=A instanceof Array?A:[A],u=k.length,h=A.length,b=0;b<u;b++){if(d=(0,a.columnIndexOf)(k[b].column,t),g=t[d],-1===d)throw new Error("incorrect column name in groupConfigArr - "+k[b].column);w={name:k[b].outputAs||k[b].column,type:"date"===g.type?"interval":g.type},void 0!==g.enableUTC&&(w.enableUTC=g.enableUTC),_.push(w)}switch(i.type){case"number":case"date":o=f.numberComparator;break;default:o=f.stringComparator}for((s=(0,a.columnUnique)(i.name,e,t)).sort((function(e,t){return o(e,t)})),c=s.length,b=0;b<h;b++){if(x=A[b].operation||"avg",d=(0,a.columnIndexOf)(A[b].column,t),g=t[d],-1===d)throw new Error("incorrect column name in aggrConfigArr - "+A[b].column);if(!l["default"].resolve(x))throw new Error(x+" is not a defined operation");switch(x){case"first":case"last":m=g.type;break;case"count":m="number";break;default:if("number"!==g.type)throw new Error(x+" can apply only on numbers");m="number"}for(y=0;y<c;y++)v=s[y]+p["default"]+(A[b].outputAs||A[b].column+(x?p["default"]+x:"")),S[v]=C++,_.push({name:v,type:m})}return{schema:_,pivots:S}}(e,t,k,u,S),v=y.schema,b=y.pivots,D>0){if(M=w.enableUTC||(0,c.getConfig)("enableUTC"),"date"===w.type){var j,B,V;if(A=(0,o.duration)(n.timeUnit,Math.abs(n.binSize)||1),e[0]&&e[0][x]&&e[D-1]&&e[D-1][x]||(j=(0,a.columnExtents)(n.column,e,t,r.indexBy)),B=e[0]&&e[0][x]||j.min,(V=n.startValue&&parseInt(n.startValue,10))&&"Week"!==n.timeUnit.name)if(V>=B){N=(0,i.getDateStart)(V,(0,o.duration)(n.timeUnit,1),M,n.weekStartFrom),I=(0,d.leftMostExactOrGreater)(N,e,(function(e,t){return(0,f.numberComparator)(e[x],t)}),0,e.length)}else N=(0,i.getDateStart)(B,A,M,n.weekStartFrom,V);else N=(0,i.getDateStart)(B,(0,o.duration)(n.timeUnit,1),M,n.weekStartFrom);C=e[D-1]&&e[D-1][x]||j.max}if(void 0===N||N<=C){var z={duration:A,outputFormat:n.outputFormat,enableUTC:M,weekStartFrom:n.weekStartFrom};for(void 0!==N&&(E=[(0,s.interval)(N,z)],T.push(E)),F=I;F<D;F++)e[F].length>0&&("date"===w.type?E=(0,h._singleSortedAddRowDate)(T,E,e[F][x],z,N):"string"!==w.type&&"number"!==w.type||(E=(0,h._singleSortedAddRow)(T,E,e[F][x])),L=T.length-1,P[L]=P[L]||{},E&&m(e[F],t,E,1,u,_,b,O,P[L]))}}return{data:T,schema:v,config:{indexBy:n.outputAs||n.column}}}(e,t,r,n[0],v,g):function(e,t,r,n,i,o,s){var l,c,u,d,g,m,v,b,y,x,w={},_={},S=function(e){return _.hasOwnProperty(e)?_[e]:-1},C=function(e,t){_[e]=t},k=function(e,t,r,n){return e+p["default"]+(t||r+(n?p["default"]+n:""))},A=function(){for(var e,t=[],r=function(r){if(y.includes(m[r].name))t.push(m[r]),w[m[r].name]=r;else{e=o.filter((function(e){return(e.outputAs||e.column+(e.operation?p["default"]+e.operation:""))===m[r].name}))[0];for(var n=0;n<g.length;n++)t.push({name:k(g[n],e.outputAs,e.column,e.operation),type:m[r].type})}},n=0;n<b;n++)r(n);return t},N=[];switch(l=(0,h["default"])(i.concat({column:s}),o),c=l.fn(e,t,r,n),d=(0,a.columnUnique)(s,e,t),v=(0,a.columnIndexOf)(s,c.schema),c.schema[v].type){case"number":case"date":u=f.numberComparator;break;default:u=f.stringComparator}g=d&&d.sort((function(e,t){return u(e,t)}))||[],m=c.schema.filter((function(e){return e.name!==s})),b=m.length,y=i.map((function(e){return e.outputAs||e.column})),x=A(),c.data.length>0&&(N=function(e){var t,r,n,a,i,l=[],u=e.length,h={},f={},d="";for(t=0;t<u;t++)h[e[t].name]=t;for(t=0;t<c.data.length;t++){for(f={},d="",r=0;r<c.schema.length;r++)w.hasOwnProperty(c.schema[r].name)?(f[h[c.schema[r].name]]=c.data[t][r],"interval"===c.schema[r].type?d+=c.data[t][r].start:d+=c.data[t][r]):c.schema[r].name!==s&&(a=o.filter((function(e){return(e.outputAs||e.column+(e.operation?p["default"]+e.operation:""))===c.schema[r].name}))[0],(i=h[k(c.data[t][v],a.outputAs,a.column,a.operation)])&&(f[i]=c.data[t][r]));if((n=S(d))>-1){var g=l[n];for(var m in f)g[m]=f[m]}else{var b=new Array(u);for(var y in f)b[y]=f[y];l.push(b),C(d,l.length-1)}}return l}(x));return{data:N,schema:x,config:{indexBy:c.config.indexBy===s?void 0:c.config.indexBy}}}(e,t,r,u,n,v,g)}}};t["default"]=v},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0;var a=n(r(479));t.aggregatorStore=a["default"]},function(e,t,r){"use strict";t.__esModule=!0;var n=r(487);t.before=n.before,t.after=n.after;var a=r(488);t.parseDate=a.parseDate,t.formatDate=a.formatDate;var i=r(477);t.duration=i.duration;var o=r(330);t.DatetimeUnits=o.DatetimeUnits,t.Weekdays=o.Weekdays},function(e,t,r){"use strict";t.__esModule=!0,t.before=function(e,t,r,i){if(!e)throw new Error("duration is missing");if(t&&(isNaN(t)||isNaN(+new Date(t))))throw new Error("timestamp is incorrect");return(0,n.getDateOffset)(isNaN(t)||null===t?+new Date:t,e.Unit,-e.number,r,i||a.Weekdays.Sunday)},t.after=function(e,t,r,i){if(!e)throw new Error("duration is missing");if(t&&(isNaN(t)||isNaN(+new Date(t))))throw new Error("timestamp is incorrect");return(0,n.getDateOffset)(isNaN(t)||null===t?+new Date:t,e.Unit,e.number,r,i||a.Weekdays.Sunday)};var n=r(464),a=r(330)},function(e,t,r){"use strict";var n=r(249);t.__esModule=!0,t.parseDate=function(e,t,r){var n,i;t&&(n=void 0!==r&&r?a["default"].utcParser(t):a["default"].parser(t),i=(i=n.parse(e))&&i.getTime());i||(i=void 0!==r&&r?+new Date(e+"Z"):+new Date(e));if(!i)throw new Error("Incorrect string or format provided");return i},t.formatDate=function(e,t,r){var n,i,o=t;if(isNaN(parseInt(e,10)))throw new Error("Timestamp must be a number: "+e);o||(o="%a, %-d %b %Y, %H:%M:%S:%L");if(n=void 0!==r&&r?a["default"].utcFormatter(o):a["default"].formatter(o),!(i=n.format(new Date(e))))throw new Error("Incorrect format provided: "+o);return i};var a=n(r(322))},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={column2d:"charts",column3d:"charts",bar2d:"charts",bar3d:"charts",pie2d:"charts",pie3d:"charts",line:"charts",area2d:"charts",doughnut2d:"charts",doughnut3d:"charts",pareto2d:"charts",pareto3d:"charts",mscolumn2d:"charts",mscolumn3d:"charts",msline:"charts",msarea:"charts",msbar2d:"charts",msbar3d:"charts",stackedcolumn2d:"charts",marimekko:"charts",stackedcolumn3d:"charts",stackedarea2d:"charts",stackedcolumn2dline:"charts",stackedcolumn3dline:"charts",stackedbar2d:"charts",stackedbar3d:"charts",msstackedcolumn2d:"charts",msstackedbar2d:"charts",mscombi2d:"charts",mscombi3d:"charts",mscolumnline3d:"charts",mscombidy2d:"charts",mscombidy3d:"charts",mscolumn3dlinedy:"charts",stackedcolumn2dlinedy:"charts",stackedarea2dlinedy:"charts",stackedcolumn3dlinedy:"charts",msstackedcolumn2dlinedy:"charts",scatter:"charts",bubble:"charts",ssgrid:"charts",scrollbar2d:"charts",scrollcolumn2d:"charts",scrollcolumn3d:"charts",scrollline2d:"charts",scrollarea2d:"charts",scrollstackedcolumn2d:"charts",scrollstackedbar2d:"charts",scrollcombi2d:"charts",scrollmsstackedcolumn2d:"charts",scrollmsstackedcolumn2dlinedy:"charts",scrollcombidy2d:"charts",spline:"charts",splinearea:"charts",msspline:"charts",mssplinearea:"charts",mssplinedy:"charts",multiaxisline:"powercharts",multilevelpie:"powercharts",sunburst:"powercharts",waterfall2d:"powercharts",msstepline:"powercharts",inversemsline:"powercharts",inversemscolumn2d:"powercharts",inversemsarea:"powercharts",errorbar2d:"powercharts",errorscatter:"powercharts",errorline:"powercharts",logmsline:"powercharts",logmscolumn2d:"powercharts",logstackedcolumn2d:"powercharts",radar:"powercharts",chord:"powercharts",dragnode:"powercharts",candlestick:"powercharts",selectscatter:"powercharts",dragcolumn2d:"powercharts",dragline:"powercharts",dragarea:"powercharts",boxandwhisker2d:"powercharts",kagi:"powercharts",heatmap:"powercharts",sankey:"powercharts",angulargauge:"widgets",bulb:"widgets",cylinder:"widgets",drawingpad:"widgets",funnel:"widgets",hbullet:"widgets",hled:"widgets",hlineargauge:"widgets",vlineargauge:"widgets",pyramid:"widgets",realtimearea:"widgets",realtimecolumn:"widgets",realtimeline:"widgets",realtimelinedy:"widgets",realtimestackedarea:"widgets",realtimestackedcolumn:"widgets",sparkcolumn:"widgets",sparkline:"widgets",sparkwinloss:"widgets",thermometer:"widgets",vbullet:"widgets",vled:"widgets",radialbar:"widgets",zoomline:"zoomline",zoomlinedy:"zoomline",gantt:"gantt",treemap:"treemap",zoomscatter:"zoomscatter",overlappedbar2d:"overlappedbar2d",overlappedcolumn2d:"overlappedcolumn2d",msstackedcolumn2dsplinedy:"msstackedcolumn2dsplinedy",timeseries:"timeseries"}},function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(254),a={};var i=function(e){var t=e;if(!a[t]){var r=document.getElementsByTagName("head")[0],i=document.createElement("script"),o=setTimeout((function(){i.onerror({type:"timeout",target:i})}),12e4);i.charset="utf-8",i.timeout=12e4,a[t]=new Promise((function(e,t){i.onreadystatechange=function(){"loaded"===i.readyState&&i.onload({})},i.onload=function(t){i.onerror=i.onload=null,clearTimeout(o),e(t)},i.onerror=function(e){i.onerror=i.onload=null,clearTimeout(o),t(e)}})),(0,n.isXSSSafe)(t,!1)||(t="function"==typeof window.encodeURIComponent?window.encodeURIComponent(t):window.escape(t)),i.src=t,r.appendChild(i)}return a[t]};t["default"]=i},function(e,t){(function(t){e.exports=t}).call(this,{})}])["default"]}));
//# sourceMappingURL=http://localhost:3052/3.21.1/map/eval/fusioncharts.js.map
(window.webpackJsonpFusionCharts=window.webpackJsonpFusionCharts||[]).push([[2],Array(495).concat([function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=n(A(496)),a=n(A(571)),o=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("dataset",a["default"],["vCanvas"]),t}(0,i["default"])(t,e),t.getName=function(){return"SSCartesian"};var A=t.prototype;return A.getName=function(){return"SSCartesian"},A.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.hasLegend=!1,t.linethickness=4},A._checkInvalidSpecificData=function(){var e=this.getFromEnv("dataSource").data;if(!e||!e.length)return!0},A._setCategories=function(){var e=this.getFromEnv("dataSource"),t=this.getChildren("xAxis"),A=e.dataset,n=e.data||A&&A[0].data;t[0].setTickValues(n)},t}(r["default"]);t["default"]=o},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=n(A(497)),a=A(254),o=n(A(512)),s=n(A(513)),l=n(A(564)),c=n(A(567)),u=n(A(569)),h=n(A(396)),d=A(394),g=Math.max,p=Math.min,f=function(e,t){return e<t&&t>0?t-e:0},m=function(e){var t=e.sender,A=e.data.scrollPosition,n=t.getChildren("xAxis")[0],i=n.config,r=n.getVisibleConfig(),a=r.maxValue-r.minValue,s=i.axisRange.max-a,l=(0,o["default"])(i.axisRange.min,s),c=i.isReverse?l(1-A):l(A);n.setVisibleConfig(c,c+a)},v={wrtVisible:!0},b=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("axis",s["default"],["canvas"]),t.registerFactory("canvas",l["default"]),t.registerFactory("vCanvas",c["default"],["axis"]),t.registerFactory("mouseTracker",u["default"],["canvas"]),t.addEventListener("onScroll",m),t}(0,i["default"])(t,e),t.getName=function(){return"Cartesian"};var A=t.prototype;return A.getName=function(){return"Cartesian"},A.getType=function(){return"chartAPI"},A._allocateXAxisLabelSpace=function(e){var t,A=this.config,n=e.getAxisEndLabelDisplaySpace(),i=n.left,r=n.right,a=n.top,o=n.bottom,s=A.availableWidth,l=A.availableHeight,c=A.canvasLeft,u=A.canvasRight,h=A.canvasTop,d=A.canvasBottom,g=A.width,p=A.height;a+o>l&&(a=l*a/(t=a+o),o=l*o/t),i+r>s&&(i=s*i/(t=i+r),r=s*r/t),i=f(c,i),r=f(g-u,r),a=f(h,a),o=f(p-d,o),this._allocateSpace({left:i,right:r,top:a,bottom:o})},A._setCategories=function(){var e=this.getFromEnv("dataSource"),t=this.getChildren("xAxis"),A=e.categories&&e.categories.length&&e.categories[0].category;t&&t[0].setTickValues(A)},A._feedAxesRawData=function(){var e,t,A=this.config,n=this.getFromEnv("dataSource");return e=this.getSpecificxAxisConf(),t=this.getSpecificyAxisConf(),e.vtrendlines=(0,a.extend2)([],n.vtrendlines),t.trendlines=(0,a.extend2)([],n.trendlines),A.isstacked&&(t.isPercent=(0,a.pluckNumber)(A.stack100percent,0)),{yAxisConf:[t],xAxisConf:[e]}},A.allocatePosition=function(){this.setScrollBarDimension()},A.setScrollBarDimension=function(){this.getChildren("scrollBar")&&this.getChildren("scrollBar")[0]&&this.getChildren("scrollBar")[0].setDimension(this.getScrollbarDimension())},A.getSpecificxAxisConf=function(){var e=this.getFromEnv("chart-attrib"),t=this.config,A=this.config.is3D,n=this.getBasexAxisConf();return n.isReverse=t.reverseXAxis,n.axisLineColor=(0,a.pluck)(e.xaxislinecolor,e.axislinecolor,"#000000"),n.showAlternateGridColor=(0,a.pluckNumber)(e.showalternatevgridcolor,0),n.numDivLines=(0,a.pluckNumber)(e.numvdivlines,t.numVDivLines),n.axisName=e.xaxisname,n.setAdaptiveMin=(0,a.pluckNumber)(e.setadaptivexmin,t.setadaptivexmin,t.setadaptivexmin),n.showLimits=(0,a.pluckNumber)(e.showvlimits,t.showvlimits),n.showDivLineValues=(0,a.pluckNumber)(e.showvdivlinevalues,e.showvdivlinevalues,t.showvdivlinevalues),n.zeroPlaneThickness=(0,a.pluckNumber)(e.vzeroplanethickness,e.vdivlinethickness,t.zeroplanethickness,2),n.zeroPlaneAlpha=(0,a.pluckNumber)(e.vzeroplanealpha,e.vdivlinealpha,t.zeroplanealpha),n.showZeroPlaneValue=(0,a.pluckNumber)(e.showvzeroplanevalue,t.showzeroplanevalue),n.showAxisLine=A?0:(0,a.pluckNumber)(e.showxaxisline,e.showaxislines,e.drawAxisLines,t.showxaxisline,0),n.maxLabelHeight=e.maxlabelheight,n.showZeroPlane=(0,a.pluckNumber)(e.showvzeroplane,t.showzeroplane),n},A.getSpecificyAxisConf=function(){var e=this.getFromEnv("chart-attrib"),t=this.config,A=this.config.is3D,n=A?a.chartPaletteStr.chart3D:a.chartPaletteStr.chart2D,i=t.isInverse,r=this.getFromEnv("color-manager"),o=(0,a.pluckNumber)(e.showzeroplane,t.showzeroplane,1),s=(0,a.pluckNumber)(e.showzeroplanevalue,t.showzeroplanevalue),l=(0,a.pluckFontSizeMaintainUnit)(e.outcnvbasefontsize,e.basefontsize,10);return o||void 0!==s||(s=0),{isVertical:!0,isReverse:!i,isOpposit:(0,h["default"])(e.yaxisposition,"right"),outCanfontFamily:(0,a.pluck)(e.outcnvbasefont,e.basefont,"Verdana,sans"),outCanfontSize:this.computeFontSize(l),outCanfontSizeWithUnit:l,outCancolor:(0,a.pluck)(e.outcnvbasefontcolor,e.basefontcolor,r.getColor(n.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),axisBreaks:e.yaxisbreaks,axisNamePadding:e.yaxisnamepadding,axisValuePadding:e.yaxisvaluespadding,axisNameFont:e.yaxisnamefont,axisNameFontSize:this.computeFontSize(e.yaxisnamefontsize),axisNameFontSizeWithUnit:e.yaxisnamefontsize,axisNameFontColor:e.yaxisnamefontcolor,axisNameFontBold:e.yaxisnamefontbold,axisNameFontItalic:e.yaxisnamefontitalic,axisNameBgColor:e.yaxisnamebgcolor,axisNameBorderColor:e.yaxisnamebordercolor,axisNameAlpha:e.yaxisnamealpha,axisNameFontAlpha:e.yaxisnamefontalpha,axisNameBgAlpha:e.yaxisnamebgalpha,axisNameBorderAlpha:e.yaxisnameborderalpha,axisNameBorderPadding:e.yaxisnameborderpadding,axisNameBorderRadius:e.yaxisnameborderradius,axisNameBorderThickness:e.yaxisnameborderthickness,axisNameBorderDashed:e.yaxisnameborderdashed,axisNameBorderDashLen:e.yaxisnameborderdashlen,axisNameBorderDashGap:e.yaxisnameborderdashgap,axisNameWidth:e.yaxisnamewidth,useEllipsesWhenOverflow:e.useellipseswhenoverflow,rotateAxisName:(0,a.pluckNumber)(e.rotateyaxisname,1),axisName:e.yaxisname,divLineColor:(0,a.pluck)(e.divlinecolor,r.getColor(n.divLineColor)),divLineAlpha:(0,a.pluck)(e.divlinealpha,A?r.getColor("divLineAlpha3D"):r.getColor("divLineAlpha")),divLineThickness:(0,a.pluckNumber)(e.divlinethickness,1),divLineIsDashed:Boolean((0,a.pluckNumber)(e.divlinedashed,e.divlineisdashed,0)),divLineDashLen:(0,a.pluckNumber)(e.divlinedashlen,4),divLineDashGap:(0,a.pluckNumber)(e.divlinedashgap,2),showAlternateGridColor:(0,a.pluckNumber)(e.showalternatehgridcolor,1),alternateGridColor:(0,a.pluck)(e.alternatehgridcolor,r.getColor("altHGridColor")),alternateGridAlpha:(0,a.pluck)(e.alternatehgridalpha,r.getColor("altHGridAlpha")),numDivLines:(0,a.pluckNumber)(e.numdivlines,t.numDivLines),axisMinValue:t.yRangeMin||e.yaxisminvalue,axisMaxValue:t.yRangeMax||e.yaxismaxvalue,setAdaptiveMin:(0,a.pluckNumber)(e.setadaptivesymin,e.setadaptiveymin,t.setAdaptiveMin),adjustDiv:e.adjustdiv,labelStep:e.yaxisvaluesstep,showAxisValues:(0,a.pluckNumber)(e.showyaxisvalues,e.showyaxisvalue,t.showyaxisvalues),showLimits:(0,a.pluckNumber)(e.showyaxislimits,e.showlimits,this.showLimits),showDivLineValues:(0,a.pluckNumber)(e.showdivlinevalues,e.showdivlinevalue,t.showdivlinevalues),showZeroPlane:o,zeroPlaneColor:e.zeroplanecolor,zeroPlaneThickness:(0,a.pluckNumber)(e.zeroplanethickness,e.divlinethickness,t.zeroplanethickness,2),zeroPlaneAlpha:(0,a.pluckNumber)(e.zeroplanealpha,e.divlinealpha,t.zeroplanealpha),showZeroPlaneValue:s,showZeroPlaneOnTop:t.showzeroplaneontop,trendlineColor:e.trendlinecolor,trendlineToolText:e.trendlinetooltext,trendlineThickness:e.trendlinethickness,trendlineAlpha:e.trendlinealpha,showTrendlinesOnTop:e.showtrendlinesontop,showAxisLine:A?0:(0,a.pluckNumber)(e.showyaxisline,e.showaxislines,e.drawAxisLines,t.showyaxisline,0),axisLineThickness:(0,a.pluckNumber)(e.yaxislinethickness,e.axislinethickness,1),axisLineAlpha:(0,a.pluckNumber)(e.yaxislinealpha,e.axislinealpha,100),axisLineColor:(0,a.pluck)(e.yaxislinecolor,e.axislinecolor,"#000000"),forceTrendBelow:!!t.is3D,labelFont:e.yaxisvaluefont,labelFontSize:this.computeFontSize(e.yaxisvaluefontsize),labelFontSizeWithUnit:e.yaxisvaluefontsize,labelFontColor:e.yaxisvaluefontcolor,labelAlpha:e.yaxisvaluealpha,labelFontBold:e.yaxisvaluefontbold,labelFontItalic:e.yaxisvaluefontitalic,labelBdrColor:e.yaxisvaluebordercolor,labelBdrAlpha:e.yaxisvalueborderalpha,labelBgAlpha:e.yaxisvaluebgalpha,labelLink:e.yaxisvaluelink,labelBgColor:e.yaxisvaluebgcolor,labelBdrThickness:e.yaxisvalueborderthickness,labelBdrPadding:e.yaxisvalueborderpadding,labelBdrRadius:e.yaxisvalueborderradius,labelBdrDashed:e.yaxisvalueborderdashed,labelBdrDashLen:e.yaxisvalueborderdashlen,labelBdrDashGap:e.yaxisvalueborderdashgap}},A.getBasexAxisConf=function(){var e=this.getFromEnv("chart-attrib"),t=this.config.is3D,A=t?a.chartPaletteStr.chart3D:a.chartPaletteStr.chart2D,n=this.getFromEnv("color-manager"),i=(0,a.pluckFontSizeMaintainUnit)(e.outcnvbasefontsize,e.basefontsize,10);return{isVertical:!1,isOpposit:(0,h["default"])(e.xaxisposition,"top"),outCanfontFamily:(0,a.pluck)(e.outcnvbasefont,e.basefont,"Verdana,sans"),outCanfontSize:this.computeFontSize(i),outCanfontSizeWithUnit:i,outCancolor:(0,a.pluck)(e.outcnvbasefontcolor,e.basefontcolor,n.getColor(A.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),axisNamePadding:e.xaxisnamepadding,axisValuePadding:e.labelpadding,axisNameFont:e.xaxisnamefont,axisNameFontSize:this.computeFontSize(e.xaxisnamefontsize),axisNameFontSizeWithUnit:e.xaxisnamefontsize,axisNameFontColor:e.xaxisnamefontcolor,axisNameFontBold:e.xaxisnamefontbold,axisNameFontItalic:e.xaxisnamefontitalic,axisNameBgColor:e.xaxisnamebgcolor,axisNameBorderColor:e.xaxisnamebordercolor,axisNameAlpha:e.xaxisnamealpha,axisNameFontAlpha:e.xaxisnamefontalpha,axisNameBgAlpha:e.xaxisnamebgalpha,axisNameBorderAlpha:e.xaxisnameborderalpha,axisNameBorderPadding:e.xaxisnameborderpadding,axisNameBorderRadius:e.xaxisnameborderradius,axisNameBorderThickness:e.xaxisnameborderthickness,axisNameBorderDashed:e.xaxisnameborderdashed,axisNameBorderDashLen:e.xaxisnameborderdashlen,axisNameBorderDashGap:e.xaxisnameborderdashgap,useEllipsesWhenOverflow:e.useellipseswhenoverflow,divLineColor:(0,a.pluck)(e.vdivlinecolor,e.divlinecolor,n.getColor(A.divLineColor)),divLineAlpha:(0,a.pluck)(e.vdivlinealpha,e.divlinealpha,t?n.getColor("divLineAlpha3D"):n.getColor("divLineAlpha")),divLineThickness:(0,a.pluckNumber)(e.vdivlinethickness,e.divlinethickness,1),divLineIsDashed:Boolean((0,a.pluckNumber)(e.vdivlinedashed,e.vdivlineisdashed,e.divlinedashed,e.divlineisdashed,0)),divLineDashLen:(0,a.pluckNumber)(e.vdivlinedashlen,e.divlinedashlen,4),divLineDashGap:(0,a.pluckNumber)(e.vdivlinedashgap,e.divlinedashgap,2),alternateGridColor:(0,a.pluck)(e.alternatevgridcolor,n.getColor("altVGridColor")),alternateGridAlpha:(0,a.pluck)(e.alternatevgridalpha,n.getColor("altVGridAlpha")),labelFont:e.labelfont,labelFontSize:this.computeFontSize(e.labelfontsize),labelFontSizeWithUnit:e.labelfontsize,labelFontColor:e.labelfontcolor,labelAlpha:e.labelalpha,labelFontBold:e.labelfontbold,labelFontItalic:e.labelfontitalic,labelBdrColor:e.labelbordercolor,labelBdrAlpha:e.labelborderalpha,labelLink:e.labellink,labelBgColor:e.labelbgcolor,labelBdrThickness:e.labelborderthickness,labelBdrPadding:e.labelborderpadding,labelBdrRadius:e.labelborderradius,labelBdrDashed:e.labelborderdashed,labelBgAlpha:e.labelbgalpha,labelBdrDashLen:e.labelborderdashlen,labelBdrDashGap:e.labelborderdashgap,axisMinValue:e.xaxisminvalue,axisMaxValue:e.xaxismaxvalue,adjustDiv:e.adjustvdiv,labelDisplay:e.labeldisplay,showLabels:e.showlabels,rotateLabels:e.rotatelabels,slantLabel:(0,a.pluckNumber)(e.slantlabels,e.slantlabel),labelStep:(0,a.pluckNumber)(e.labelstep,e.xaxisvaluesstep),showAxisValues:(0,a.pluckNumber)(e.showxaxisvalues,e.showxaxisvalue),zeroPlaneColor:e.vzeroplanecolor,trendlineColor:e.trendlinecolor,trendlineToolText:e.trendlinetooltext,trendlineThickness:e.trendlinethickness,trendlineAlpha:e.trendlinealpha,showTrendlinesOnTop:e.showtrendlinesontop,axisLineThickness:(0,a.pluckNumber)(e.xaxislinethickness,e.axislinethickness,1),axisLineAlpha:(0,a.pluckNumber)(e.xaxislinealpha,e.axislinealpha,100)}},A.getConfig=function(e){return e?this.config[e]:this.config},A._getSumValueSpace=function(e){var t,A={},n=this.config,i=this.isBar,r=this.getFromEnv("dataSource").chart,o=n.showSum=(0,a.pluckNumber)(r.showsum,n.showSum,0),s=(0,a.pluckNumber)(n.stack100percent),l=n.isstacked,c=0,u=[],h=0;if(this.iterateComponents((function(e){"cartesianStackGroup"!==e.getName()&&"marimekkoStackgroup"!==e.getName()||u.push(e)})),o&&s&&l&&u.length){for(t=u.length-1;t>=0;t--)A=u[t].getMaxSumValueSpace(),i?c=Math.max(c,A.maxWidth):h=Math.max(h,A.maxHeight);h>e&&(h=e),c>e&&(c=e)}return{top:h,right:c}},A.setAxisDimention=function(){var e,t,A=this.getChildren("xAxis")&&this.getChildren("xAxis")[0],n=this.getChildren("yAxis")&&this.getChildren("yAxis")[0],i=this.getChildren("scrollBar")&&this.getChildren("scrollBar")[0]&&this.getChildren("scrollBar")[0].config,r=this.config,o=r.xDepth||0,s=this.getFromEnv("chart-attrib"),l=(0,a.pluckNumber)(s.canvasleftpadding),c=(0,a.pluckNumber)(s.canvasrightpadding),u=this.getChildren("canvas")&&this.getChildren("canvas")[0].config,h=u&&u.canvasBorderWidth,d=this.isScrollEnabled(),g=(d||r.is3D)&&r.shift||0,p=u.canvasPadding,f=u.canvasLeft,m=f+u.canvasWidth,v=u.canvasPaddingLeft,b=u.canvasPaddingRight,B=u.canvasTop,C=r.sumValueSpace&&r.sumValueSpace.top||0,w=u.canvasPaddingTop;e=null==l?Math.max(v,p):l,t=null==c?Math.max(b,p):c,A&&A.setAxisConfig({canvasPaddingLeft:e,canvasPaddingRight:t}),A&&A.setAxisDimention({x:f+o+e,y:A.config.isOpposit?B-h-(d&&+i.isOpposite===A.config.isOpposit?g:0)-C:r.canvasBottom+(r.is3D||d&&+i.isOpposite===A.config.isOpposit?g:0)+h,opposite:A.config.isOpposit?r.canvasBottom+g+h:B-h-g,axisLength:u.canvasWidth-o-e-t}),n&&n.setAxisDimention({x:n.config.isOpposit?m+h:f-h,y:B+w,opposite:n.config.isOpposit?f-h:m+h,axisLength:u.canvasHeight-w-u.canvasPaddingBottom})},A._getTrendLineMinMax=function(e,t){var A,n,i,r,a,o=t,s="v"===e?this.getFromEnv("dataSource").vtrendlines:this.getFromEnv("dataSource").trendlines,l={max:-Infinity,min:Infinity};if(o=o||"p",s)for(n=0,r=s.length;n<r;n+=1)for(i=0,a=s[n].line?s[n].line.length:0;i<a;i+=1)A=s[n].line[i],"s"===o&&"s"!==A.parentyaxis||"s"!==o&&"s"===A.parentyaxis||(l.max=g(A.startvalue||-Infinity,A.endvalue||-Infinity,l.max),l.min=p(A.startvalue||Infinity,A.endvalue||Infinity,l.min));return l},A.setScrollType=function(e){"none"!==e&&"smart"!==e&&"always"!==e||(this.config.scrollType=e,"none"===e?this.disableScroll():this.enableScroll())},A.getScrollType=function(){return this.config.scrollType},A._createScrollBar=function(){var e,t=this,A=t.getFromEnv("animationManager"),n=t.getChildren("scrollBar")&&t.getChildren("scrollBar")[0];n||(n=t.attachChild(new d.ScrollBar,"scrollBar")),n.configure({isHorizontal:!t.isBar}),n.attachEventHandlers({scrollStart:function(A){e=A,t.fireChartInstanceEvent("scrollstart",{scrollPosition:A})},scroll:function(e){A.setAnimationState("scroll"),t.fireChartInstanceEvent("onScroll",{scrollPosition:e}),t.fireEvent("onScroll",{scrollPosition:e})},scrollEnd:function(A){t.fireChartInstanceEvent("scrollend",{scrollPosition:A,prevScrollPosition:e})}})},A._disposeScrollBar=function(){var e=this.getChildren("scrollBar")&&this.getChildren("scrollBar")[0];e&&e.remove()},A.getScrollbarDimension=function(){var e,t,A,n,i,r,o,s,l,c,u,h,d,g,p,f,m,b=this.getChildren("xAxis")[0],B=b.config,C=B.axisRange,w=B.scrollOptions||(B.scrollOptions={}),y=C.max,x=C.min,F=w.vxLength,E=this.getChildren("scrollBar")[0],S=this.getChildren("canvas")[0].config;if(E)return e=E.config,t=S.canvasLeft,A=S.canvasTop,n=S.canvasHeight,i=S.canvasWidth,r=S.canvasBorderWidth,o=B.showAxisLine&&B.axisLineThickness||0,s=(0,a.pluckNumber)(r,B.lineStartExtension),l=(0,a.pluckNumber)(r,B.lineEndExtension),w.viewPortMin=x,w.viewPortMax=y,c=(p=(d=b.getVisibleConfig()).maxValue-(g=d.minValue))/(f=C.max-C.min),m=(g-C.min)/(f-p),u=w.windowedCanvasWidth=b.getPixel(F,v),h=w.fullCanvasWidth=b.getPixel(y-x,v)-u,e.scrollRatio=c,e.roundEdges=S.isRoundEdges,e.fullCanvasWidth=h,e.windowedCanvasWidth=u,e.scrollPosition=m,e.isHorizontal?(e.scrollPosition=m,{x:t-s,y:e.isOpposite?A-r-o-(this.config.shift||0)-(e.padding||0):A+n+r+o,width:i+s+l}):(e.scrollPosition=B.isReverse?1-m:m,{x:e.isOpposite?t+i+r+(e.padding||0):t-this.config.shift-r,y:A-r-(e.padding||0),height:n+2*r})},A.enableScroll=function(){this._createScrollBar()},A.disableScroll=function(){this._disposeScrollBar()},A.isScrollEnabled=function(){var e=this.getChildren("scrollBar");return!(!e||!e[0]||e[0].getState("removed"))},A.decideScroll=function(){var e=this.getScrollType();"always"===e||"smart"===e&&1!==this.getFromEnv("axis").getZoom()?this.enableScroll():this.disableScroll()},t}(r["default"]);t["default"]=b},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=n(A(498)),a=A(254),o=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var A=t.prototype;return A._spaceManager=function(){var e,t,A,n,i,r,o,s,l,c,u,h,d,g,p=this.config,f=this.getChildren("xAxis")&&this.getChildren("xAxis")[0],m=p.legendposition?p.legendposition.split("-"):[],v=p.xDepth,b=p.yDepth,B=p.canvasBgDepth,C=p.canvasBaseDepth,w=p.canvasBasePadding,y=this.getChildren("canvas")[0],x=y.config.canvasBorderWidth,F=p.realTimeConfig&&p.realTimeConfig.showRTValue,E=p.borderWidth,S=p.canvasMarginTop,Q=p.canvasMarginBottom,k=p.canvasMarginLeft,L=p.canvasMarginRight,U=p.minCanvasHeight,I=p.minCanvasWidth,T=p.minChartWidth,N=p.minChartHeight,D=p.height,P=p.width,M=!1,O=!1,H=p.origCanvasTopMargin,_=p.origCanvasBottomMargin,R=p.origCanvasLeftMargin,V=p.origCanvasRightMargin;p.canvasWidth-2*E<T&&(c=(p.canvasWidth-T)/2),p.canvasHeight-2*E<N&&(l=(p.canvasHeight-N)/2),this._allocateSpace({top:l||E,bottom:l||E,left:c||E,right:c||E}),this._manageYAxisSpace(),this._allocateSpace(this._manageActionBarSpace&&this._manageActionBarSpace(.225*p.availableHeight)||{}),this._manageLegendSpace&&p.showLegend&&this._manageLegendSpace(void 0),e=m[0]===a.POSITION_TOP||m[0]===a.POSITION_BOTTOM?.6*p.availableHeight:.6*p.availableWidth,b&&(this._allocateSpace({bottom:b}),p.shift=v+w+C),B&&this._allocateSpace({right:B}),p.canvasWidth-2*x<I&&(h=(p.canvasWidth-I)/2),this._allocateSpace({left:h||x,right:h||x}),I>P-k-L&&(O=!0,t=p.canvasWidth-I,g=k+L,k=p.canvasMarginLeft=t*k/g,L=p.canvasMarginRight=t*L/g),i=k>p.canvasLeft?k-p.canvasLeft:0,r=L>P-p.canvasRight?L+p.canvasRight-P:0,this._allocateSpace({left:i,right:r}),O&&(g=R+V,(s=p.canvasWidth)>I&&(i=(t=s-I)*R/g,r=t*V/g),this._allocateSpace({left:i,right:r})),p.actualCanvasMarginRight=r,p.actualCanvasMarginBottom=n,this._manageChartMenuBar(e),e=.2*p.availableHeight,this._getSumValueSpace?(p.sumValueSpace=this._getSumValueSpace(e),this._allocateSpace(p.sumValueSpace)):p.sumValueSpace={top:0,right:0},e=.3*p.availableHeight,p.realtimeEnabled&&(F?this._allocateSpace(this._realTimeValuePositioning(e)):this._hideRealTimeValue()),this._resetViewPortConfig&&this._resetViewPortConfig(),this._setAxisScale&&this._setAxisScale(),e=.6*p.availableHeight,f&&this._calculateChartShift("xAxis"),p.xAxisSpaceAllocation=d=f&&f.placeAxis(e),f&&this._allocateSpace(d),p.canvasHeight-2*x<U&&(u=(p.canvasHeight-U)/2),this._allocateSpace({top:u||x,bottom:u||x}),this._allocateSpace({bottom:C}),U>D-S-Q&&(M=!0,t=p.canvasHeight-U,g=S+Q,S=p.canvasMarginTop=t*S/g,Q=p.canvasMarginBottom=t*Q/g),A=S>p.canvasTop?S-p.canvasTop:0,n=Q>D-p.canvasBottom?Q+p.canvasBottom-D:0,this._allocateSpace({top:A,bottom:n}),M&&(g=H+_,(o=p.canvasHeight)>U&&(A=(t=o-U)*H/g,n=t*_/g),this._allocateSpace({top:A,bottom:n})),p.actualCanvasMarginTop=A,p.actualCanvasMarginLeft=i,y.setDimension({top:p.canvasTop,left:p.canvasLeft,width:p.canvasWidth,height:p.canvasHeight})},A._manageYAxisSpace=function(){var e,t,A,n=this.config,i=this.getChildren("yAxis"),r=[];for(t=0;t<(i&&i.length);t++)(e=i[t])&&this._calculateChartShift("yAxis"),A=e&&e.placeAxis(.7*n.availableWidth)||{},r.push({axisIndex:t,spaceTaken:A}),e&&this._allocateSpace(A);n.yAxisSpaceAllocation=r},A._postSpaceManagement=function(){var e,t=this.config,A=this.getChildren(),n=A.xAxis&&A.xAxis[0],i=A.legend&&A.legend[0],r=t.xDepth,a=this.getChildren("canvas");for(this.setAxisDimention&&this.setAxisDimention(),n&&this._allocateXAxisLabelSpace(n),n&&n.shiftLabels(-r,0),i&&i.postSpaceManager(),e=0;e<(a&&a.length);e++)a[e].setCanvasPadding();this.setAxisDimention&&this.setAxisDimention(),this.allocateDimensionOfChartMenuBar()},A._calculateChartShift=function(e){var t,A=this.getChildren("scrollBar")&&this.getChildren("scrollBar")[0],n=this.getChildren(e)&&this.getChildren(e)[0],i=A&&A.config,r=n.config.isVertical,a={};A&&!A.getState("removed")&&(t=A.getLogicalSpace())&&(r&&!i.isHorizontal?(this.config.shift=t.width+i.conf.padding,a[i.isOpposite?"right":"left"]=this.config.shift,this._allocateSpace(a)):!r&&i.isHorizontal&&(this.config.shift=t.height+i.conf.padding,a[i.isOpposite?"top":"bottom"]=this.config.shift,this._allocateSpace(a)))},t}(r["default"]);t["default"]=o},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t._drawDataset=P,t.configurer=M,t["default"]=void 0;var i=n(A(268)),r=n(A(306)),a=n(A(499)),o=n(A(502)),s=A(262),l=n(A(503)),c=A(393),u=n(A(505)),h=n(A(507)),d=n(A(509)),g=n(A(284)),p=A(261),f=n(A(511)),m=A(254),v=n(A(256)),b=["line","circle","square"],B=(0,s.getDep)("redraphael","plugin"),C="VML"===B.type,w=Math.max,y=Math.min,x=Math.round,F={datalabelclick:!0,connectorclick:!0,categoryclick:!0,processclick:!0,milestoneclick:!0,labelclick:!0,dataplotclick:!0},E=m.preDefStr.SEVENTYSTRING,S=m.preDefStr.AUTOSTRING,Q="onpointerover"in window.document,k=function(e,t,A){return A.getFromEnv("animationManager").setAnimation({el:"group",attr:e,container:t,state:"appearing",component:A,label:"group"})},L=function(e){var t=e.data.config;t._containerMouseState="mousedown",t._mdx1=e.clientX!==m.UNDEF?e.clientX:e.changedTouches&&e.changedTouches[0].clientX,t.mdy1=e.clientY!==m.UNDEF?e.clientY:e.changedTouches&&e.changedTouches[0].clientY,"touchstart"===e.type&&(t._touchStartedAt=(new Date).getTime())},U=function(e){var t=e.data.config,A=e.clientX!==m.UNDEF?e.clientX:e.changedTouches&&e.changedTouches[0].clientX,n=e.clientY!==m.UNDEF?e.clientY:e.changedTouches&&e.changedTouches[0].clientY;(Math.abs(t._mdx1-A)>=2.5||Math.abs(t.mdy1-n)>=2.5)&&(e.data.config._containerMouseState=m.UNDEF)},I=function(e){(new Date).getTime()-e.data.config._touchStartedAt<500&&setTimeout((function(){T(e)}))},T=function(e){var t,A=e.data,n=A.getFromEnv("chartInstance"),i=e.originalEvent,r=A.config,a=(0,m.getMouseCoordinate)(A.getFromEnv("chart-container"),i,A);n.ref&&"mousemove"!==r._containerMouseState&&(t=(0,m.extend2)({height:n.args.height,width:n.args.width,pixelHeight:A.getFromEnv("chartHeight"),pixelWidth:A.getFromEnv("chartWidth"),id:n.args.id,renderer:n.args.renderer,container:n.options.containerElement},a),A.fireChartInstanceEvent("chartclick",t),r.link&&(!r.hotElemClicked||r.clickURLOverridesPlotLinks)&&A.getFromEnv("linkClickFN").call({link:r.link}),r.hotElemClicked=!1)},N=function(e){var t=e.type,A=e.data,n=A.getFromEnv("eventListeners");if("mouseover"!==t&&"touchstart"!==t||!1!==A.config.mouseStateIn)"mouseout"!==t&&"touchend"!==t||(A.config.posOb=!1);else{if(O.hoverChart){var i=O.hoverChart;i.forceRollOut=!0,O.winMouseHover(i)}A.config.mouseStateIn=!0,O.onContainerRollOver(e),n.push(v["default"].listen(C?document:window,"mouseover",O.winMouseHover,A)),O.hoverChart=e}};function D(){var e,t,A,n,i=this,r=i,a=i.config,o="t"===a.toolbarVAlign?"chartMenuBar":"actionBar",s=i.getFromEnv("tool-config");e=i.getChildren(o)[0],t=a.printOption.enabled,A=r.config.realTimeConfig||{},n=e.attachChild(c.Hamburger,"tool","hamburgerMenu-"+e.getId()+"-"+i.getId()+"-0"),i.addToEnv("hamburger",n),n.configure(Object.assign({},s,{name:"ContextIcon"})),n._mouseOutEvent||(n._mouseOutEvent=function(){this.getChild("listContainer").hide()}),n._mouseOverEvent||(n._mouseOverEvent=function(){this.getChild("listContainer").show()}),n.addEventListener("fc-mouseover",n._mouseOverEvent),n.addEventListener("fc-mouseout",n._mouseOutEvent),t&&n.appendInMenu([{name:"Print",action:"click",handler:function(){i.getFromEnv("chartInstance").print()}}]),r._setRTmenu&&r._setRTmenu(A.showRTmenuItem,A.useMessageLog)}function P(){this.getChildren("canvas")[0]._mapChildren((function(e){e.syncDraw()}))}function M(e){this.config.skipConfigureIteration={},this.parseChartAttr(e),this.createComponent(e),this.setTooltipStyle(),this.configureChildren()}(0,s.addDep)({name:"commonAnimation",type:"animationRule",extension:f["default"]});var O=function(e){(0,i["default"])(A,e),A.getName=function(){return"CommonAPI"};var t=A.prototype;function A(){var t;return(t=e.call(this)||this).addToEnv("stringConstants",{COMPONENT:"component",CANVAS:"canvas",CAPTION:"caption"}),t.addToEnv("getMouseCoordinate",m.getMouseCoordinate),t._drawDataset=P,t.config.mouseStateIn=!1,t.registerFactory("toolbox",o["default"]),t.registerFactory("canvas",a["default"]),t._firstConfigure=!0,t}return t.plotEventHandler=function(e,t,A,n){void 0===t&&(t={});var i,r,a=t.type,o=A,s=(0,m.getMouseCoordinate)(this.getFromEnv("chart-container"),t,this),l=e&&e.data("eventArgs")||n,c=(0,m.extend2)(s,l),u=this.fireGroupEvent,h=e&&e.data("groupId"),d=function(e,A){t.FusionChartsPreventEvent=!0};"index"in c&&!("dataIndex"in c)&&(c.dataIndex=c.index),"value"in c&&!("dataValue"in c)&&(c.dataValue=c.value),"dataplotrollover"===(o=(0,m.pluck)(o,"dataplotclick").toLowerCase())?(t.FusionChartsPreventEvent=!1,u?(0,p.raiseEventGroup)(h,o,c,this.getFromEnv("chartInstance"),m.UNDEF,m.UNDEF,d):this.fireChartInstanceEvent(o,c,m.UNDEF,m.UNDEF,d)):u&&!F[o]?(0,p.raiseEventGroup)(h,o,c,this.getFromEnv("chartInstance")):this.fireChartInstanceEvent(o,c),"fc-click"!==a&&"click"!==a&&"mouseup"!==a&&"touchend"!==a||!/click/i.test(o)||(r=(i=this.getFromEnv())&&i.linkClickFN,c.link&&r&&r.call({link:c.link},!0))},t.getName=function(){return"Cartesian"},t.preConfigure=function(t){var A=this.getFromEnv("number-formatter");this.addToEnv("chart-attrib",t.chart),A?A.configure():this.addToEnv("number-formatter",new g["default"](this)),e.prototype.preConfigure.call(this,t)},t.postConfigure=function(t){e.prototype.postConfigure.call(this,t),this._firstConfigure=!1},t.setDefaults=function(){e.prototype.setDefaults.call(this);var t=this.getFromEnv("number-formatter");t&&t.setDefaults&&t.setDefaults()},t.getType=function(){return"chartAPI"},t.parseChartAttr=function(e){var t,A,n,i,r,a,o,s,l,c,u,h,g,p,f,v=e||this.getFromEnv("dataSource"),B=this.config.is3D,C=B?m.chartPaletteStr.chart3D:m.chartPaletteStr.chart2D,x=this.isBar,F=this.getFromEnv("color-manager");F||(F=new d["default"](this),this.addToEnv("color-manager",F)),v.chart=v.chart||v.graph||v.map||{},delete v.map,delete v.graph,!(t=v.chart)&&(t=v.chart={}),A=this.config||(this.config={}),(0,m.parseConfiguration)(t,A,{},{showvalues:!0,crosslinecolor:!0,drawcrosslineontop:!0,crosslinealpha:!0,drawcrossline:!0}),A.showValues=(0,m.pluckNumber)(t.showvalues,A.showvalues),A.viewPortConfig={scaleY:1,scaleX:1,x:0,y:0},this.addToEnv("tool-config",function(){for(var e=arguments.length,t=new Array(e),A=0;A<e;A++)t[A]=arguments[A];var n=t[0],i=t.slice(1);return i.forEach((function(e){for(var t in e)e.hasOwnProperty(t)&&e[t]!==m.UNDEF&&(n[t]=e[t])})),n}({},{scale:t.toolbarbuttonscale,width:t.toolbarbuttonwidth,height:t.toolbarbuttonheight,radius:t.toolbarbuttonradius,spacing:t.toolbarbuttonspacing,marginTop:t.toolbarbuttonmargintop,marginLeft:t.toolbarbuttonmarginleft,marginRight:t.toolbarbuttonmarginright,marginBottom:t.toolbarbuttonmarginbottom,fill:t.toolbarbuttoncolor,labelFill:t.toolbarlabelcolor,symbolFill:t.toolbarsymbolcolor,hoverFill:t.toolbarbuttonhovercolor,stroke:t.toolbarbuttonbordercolor,symbolStroke:t.toolbarsymbolbordercolor,strokeWidth:t.toolbarbuttonborderthickness,symbolStrokeWidth:t.toolbarsymbolborderthickness,bSymbolPadding:t.toolbarsymbolpadding,symbolHPadding:t.toolbarsymbolhpadding,symbolVPadding:t.toolbarsymbolvpadding,hAlign:t.toolbarhalign,vAlign:t.toolbarvalign})),B&&(x?(A.xDepth=5,A.yDepth=5):(A.xDepth=10,A.yDepth=10),A.showCanvasBase=f=Boolean((0,m.pluckNumber)(t.showcanvasbase,1)),A.canvasBasePadding=(0,m.pluckNumber)(t.canvasbasepadding,2),A.canvasBaseDepth=f?(0,m.pluckNumber)(t.canvasbasedepth,10):0,A.canvasBgDepth=(0,m.pluckNumber)(t.canvasbgdepth,3)),F&&F.configure(),A.placeAxisLabelsOnTop=(0,m.pluckNumber)(t.placexaxislabelsontop,0),A.enableAnimation=(0,m.pluckNumber)(t.animation,t.defaultanimation,1),A.showToolTip=(0,m.pluckNumber)(t.showtooltip,1),A.printOption={enabled:(0,m.pluckNumber)(t.printshowbutton,t.showprintmenuitem,0)},A.drawCrossLineOnTop=(0,m.pluckNumber)(t.drawcrosslineontop,1),s=A.style={},this.addToEnv("style",s),A.textDirection="1"===t.hasrtltext?"rtl":m.BLANKSTRING,s.inCanfontFamily=n=(0,m.pluck)(t.basefont,"Verdana,sans"),s.inCanfontSize=i=(0,m.pluckFontSize)(this.computeFontSize(t.basefontsize),10),s.inCanfontSizeWithUnit=r=(0,m.pluckFontSizeMaintainUnit)(t.basefontsize,10),s.inCancolor=a=(0,m.pluck)(t.basefontcolor,F.getColor(C.baseFontColor)),s.outCanfontFamily=(0,m.pluck)(t.outcnvbasefont,n),s.fontSize=o=(0,m.pluckFontSize)(this.computeFontSize(t.outcnvbasefontsize),i),s.fontSizeWithUnit=(0,m.pluckFontSizeMaintainUnit)(t.outcnvbasefontsize,r),s.outCanfontSize=o+m.PXSTRING,s.outCanfontSizeWithUnit=(0,m.pluckFontSizeMaintainUnit)(t.outcnvbasefontsize,r),s.outCancolor=(0,m.pluck)(t.outcnvbasefontcolor,a).replace(/^#? ([a-f0-9]+)/gi,"#$1"),s.baseFontSize=i,s.inCanfontSize=i+m.PXSTRING,s.inCancolor=a.replace(/^#? ([a-f0-9]+)/gi,"#$1"),s.inCanvasStyle=u={fontFamily:n,fontSize:i,fontSizeWithUnit:r,color:a},A.valueFontAlpha=(0,m.pluckNumber)(t.valuefontalpha,t.valuealpha,100),A.valueBgAlpha=(0,m.pluckNumber)(t.valuebgalpha,t.valuealpha,100),A.valueBorderAlpha=(0,m.pluckNumber)(t.valueborderalpha,t.valuealpha,100),A.valueFontColor=(0,m.pluck)(t.valuefontcolor,a),A.valueBgColor=(0,m.pluck)(t.valuebgcolor)||m.BLANKSTRING,s.inCanLineHeight=h=(0,m.setLineHeight)(u),p=(0,m.getFirstValue)(t.valuebordercolor,m.BLANKSTRING),p=A.valueBorderColor=p?(0,m.convertColor)(p,A.valueBorderAlpha):m.BLANKSTRING,A.reverseXAxis=this.config.allowreversexaxis&&(0,m.pluckNumber)(t.reversexaxis,0),A.showBorder=(0,m.pluckNumber)(t.showborder,A.showBorder,B?0:1),A.borderWidth=w(A.showBorder?(0,m.pluckNumber)(t.borderthickness,1):0,0),A.usePattern=(0,m.pluckNumber)(t.usepattern,A.usePattern),A.is3D&&(A.usePattern=0),A.patternType=b.includes(t.patterntype)?t.patterntype:A.patternType,A.patternDensity=(0,m.pluckNumber)(t.patterndensity,A.patternDensity),A.patternAlpha=(0,m.pluckNumber)(t.patternalpha,A.patternAlpha),A.patternBgColor=(0,m.pluck)(t.patternbgcolor,A.patternBgColor),A.useplotgradientcolor=(0,m.pluckNumber)(t.plotgradientcolor,A.useplotgradientcolor,0),A.useplotgradientcolor=A.usePattern?0:A.useplotgradientcolor,A.plotfillalpha=(0,m.pluck)(t.plotfillalpha,A.usePattern?m.HUNDREDSTRING:A.plotfillalpha),A.showplotborder=(0,m.pluckNumber)(t.showplotborder,A.usePattern?1:A.showplotborder),A.usePattern&&(A.showhovereffect=0,A.plothovereffect=0),A.valuefontbold=(0,m.pluckNumber)(t.valuefontbold,A.valuefontbold),A.dataLabelStyle=g={fontFamily:(0,m.pluck)(t.valuefont,n),fontSize:(0,m.pluck)(this.computeFontSize(t.valuefontsize),(0,m.pInt)(i,10))+m.PXSTRING,fontSizeWithUnit:(0,m.pluckFontSizeMaintainUnit)(t.valuefontsize,r),lineHeight:h,color:(0,m.convertColor)((0,m.pluck)(t.valuefontcolor,a),A.valueFontAlpha),fontWeight:A.valuefontbold?"bold":"normal",fontStyle:(0,m.pluckNumber)(t.valuefontitalic)?"italic":"normal",border:p||t.valuebgcolor?(0,m.pluckNumber)(t.valueborderthickness,1)+"px solid":m.BLANKSTRING,borderColor:p,borderThickness:(0,m.pluckNumber)(t.valueborderthickness,1),borderPadding:(0,m.pluckNumber)(t.valueborderpadding,2),borderRadius:(0,m.pluckNumber)(t.valueborderradius,0),backgroundColor:t.valuebgcolor?(0,m.convertColor)(t.valuebgcolor,A.valueBgAlpha):m.BLANKSTRING,borderDash:(0,m.pluckNumber)(t.valueborderdashed,0)?(0,m.getDashStyle)((0,m.pluckNumber)(t.valueborderdashlen,4),(0,m.pluckNumber)(t.valueborderdashgap,2)):m.DASH_DEF},(0,m.setLineHeight)(g),A.legendposition=(0,m.pluck)(t.legendposition,m.POSITION_BOTTOM),A.alignLegendWithCanvas=(0,m.pluckNumber)(t.alignlegendwithcanvas,1),A.origMarginTop=(0,m.pluckNumber)(t.charttopmargin,this.chartTopMargin,15),A.origMarginLeft=(0,m.pluckNumber)(t.chartleftmargin,this.chartLeftMargin,15),A.origMarginBottom=(0,m.pluckNumber)(t.chartbottommargin,this.chartBottomMargin,37),A.origMarginRight=(0,m.pluckNumber)(t.chartrightmargin,this.chartRightMargin,15),A.origCanvasLeftMargin=(0,m.pluckNumber)(t.canvasleftmargin,0),A.origCanvasRightMargin=(0,m.pluckNumber)(t.canvasrightmargin,0),A.origCanvasTopMargin=(0,m.pluckNumber)(t.canvastopmargin,0),A.origCanvasBottomMargin=(0,m.pluckNumber)(t.canvasbottommargin,0),A.minChartWidthPercent=(0,m.pluckNumber)(t.minchartwidth,this.minChartWidth,50)/100,A.minChartHeightPercent=(0,m.pluckNumber)(t.minchartheight,this.minChartHeight,50)/100,A.minCanvasWidthPercent=(0,m.pluckNumber)(t.mincanvaswidth,this.minCanvasWidth,60)/100,A.minCanvasHeightPercent=(0,m.pluckNumber)(t.mincanvasheight,this.minCanvasHeight,30)/100,l=(0,m.pluck)(t.zeroplanecolor,t.divlinecolor,F.getColor(C.divLineColor)),c=(0,m.pluck)(t.zeroplanealpha,t.divlinealpha,F.getColor("divLineAlpha")),A.zeroPlaneColor=(0,m.convertColor)(l,c),A.zeroPlaneBorderColor=(0,m.convertColor)((0,m.pluck)(t.zeroplanebordercolor,l),(0,m.pluckNumber)(t.zeroplaneshowborder,1)?c:0),A.zeroPlaneShowBorder=(0,m.pluckNumber)(t.zeroplaneshowborder,1),A.realtimeEnabled=(0,m.pluckNumber)(t.realtimeenabled,this.isRealTime),A.showLegend=(0,m.pluckNumber)(t.showlegend,this.showLegend,1),A.link=t.clickurl,A.transposeAxis=(0,m.pluckNumber)(this.transposeAxis,t.transposeaxis,0),A.useEllipsesWhenOverflow=(0,m.pluckNumber)(t.useellipseswhenoverflow,t.useellipsewhenoverflow,1),A.drawTrendRegion=(0,m.pluckNumber)(t.drawcrossline,1),A.plotcolorintooltip=(0,m.pluckNumber)(t.plotcolorintooltip,this.config.singleseries?0:1),A.plotbinsize=y((0,m.pluckNumber)(t.plotbinsize,this.plotbinsize,.5),1),A.labelbinsize=y((0,m.pluckNumber)(t.labelbinsize,1),1),A.labelbinsize=A.plotbinsize>A.labelbinsize?A.plotbinsize:A.labelbinsize,A.enableMouseOutEvent=(0,m.pluckNumber)(t.enablemouseoutevent,this.enableMouseOutEvent,1),A.plotSpacePercent=Math.max((0,m.pluckNumber)(t.plotspacepercent,this.plotSpacePercent),0),A.maxColWidth=Math.abs((0,m.pluckNumber)(t.maxcolwidth,50)),A.maxBarHeight=Math.abs((0,m.pluckNumber)(t.maxbarheight,50)),A.overlapColumns=(0,m.pluckNumber)(t.overlapcolumns,t.overlapbars,A.is3D?0:1),A.plotPaddingPercent=t.plotpaddingpercent,A.tooltipgrayoutcolor=(0,m.pluck)(t.tooltipgrayoutcolor,m.preDefStr.colors.AAAAAA),A.clickURLOverridesPlotLinks=(0,m.pluckNumber)(t.clickurloverridesplotlinks,0),A.toolbarX=(0,m.pluckNumber)(t.toolbarx),A.toolbarY=(0,m.pluckNumber)(t.toolbary),A.toolbarPosition=function(e){var t=e;switch(t){case"tr":case"rt":case"top right":case"right top":t="tr";break;case"br":case"rb":case"bottom right":case"right bottom":t="br";break;case"tl":case"lt":case"top left":case"left top":t="tl";break;case"bl":case"lb":case"bottom left":case"left bottom":t="bl";break;default:t="tr"}return t}((0,m.pluck)(t.toolbarposition,"tr").toLowerCase()),A.toolbarHAlign="left"===(m.BLANKSTRING+t.toolbarhalign).toLowerCase()?"l":A.toolbarPosition.charAt(1),A.toolbarVAlign="bottom"===(m.BLANKSTRING+t.toolbarvalign).toLowerCase()?"b":A.toolbarPosition.charAt(0),A.toolbarVMargin=(0,m.pluckNumber)(t.toolbarvmargin,6),A.toolbarHMargin=(0,m.pluckNumber)(t.toolbarhmargin,10),this.addToEnv("chartConfig",A),this.addToEnv("linkClickFN",(0,m.getLinkAction)(this.getFromEnv("dataSource"),this)),this.addToEnv("dataLabelStyle",g)},t.createComponent=function(){var e;e=this.config.skipConfigureIteration,this.createBaseComponent(),this.getFromEnv("animationManager").setAnimationState(this._firstConfigure?"initial":"update"),(0,m.componentFactory)(this,l["default"],"caption"),e.caption=!0,(0,m.componentFactory)(this,u["default"],"subCaption"),e.subCaption=!0,(0,m.componentFactory)(this,h["default"],"background"),e.background=!0,this._createConfigurableComponents&&this._createConfigurableComponents(),this.config.realtimeEnabled&&this._realTimeConfigure&&this._realTimeConfigure()},t.configureChildren=function(){var e=this;e._mapChildren((function(t){!t.getState("removed")&&e.config.skipConfigureIteration[t.getName()]&&t.configure&&t.configure()}))},t.attachMenuButtons=function(){D.call(this)},t.configureAttributes=function(e){M.call(this,e)},t.setTooltipStyle=function(){var e=this.config;this.getFromEnv("toolTipController").setStyle({backgroundColor:m.hasSVG?(0,m.convertColor)(e.tooltipbgcolor||"FFF",e.tooltipbgalpha||100):(e.tooltipbgcolor||"FFF").replace(/\s+/g,"").replace(/^#?([a-f0-9]+)/gi,"#$1"),color:(e.tooltipcolor||e.basefontcolor||"545454").replace(/\s+/g,"").replace(/^#?([a-f0-9]+)/gi,"#$1"),borderColor:m.hasSVG?(0,m.convertColor)(e.tooltipbordercolor||"666",e.tooltipborderalpha||100):(e.tooltipbordercolor||"666").replace(/\s+/g,"").replace(/^#?([a-f0-9]+)/gi,"#$1"),borderWidth:(0,m.pluckNumber)(e.tooltipborderthickness,1)+"px",showToolTipShadow:(0,m.pluckNumber)(e.showtooltipshadow,e.showshadow,1),borderRadius:(0,m.pluckNumber)(e.tooltipborderradius,0)+"px",fontSize:(0,m.pluckNumber)(this.computeFontSize(e.basefontsize),10)+"px",fontFamily:e.basefont||this.getFromEnv("style").inCanfontFamily,padding:(0,m.pluckNumber)(e.tooltippadding||3)+"px"})},t.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.valuefontbold=0,t.stickytracking=1,t.usemessagelog=0,t.zeroplanethickness=m.UNDEF,t.animationeffect="linear",t.showshadow=1,t.showhovereffect=m.UNDEF,t.plothovereffect=m.UNDEF,t.anchorhovereffect=m.UNDEF,t.plotborderdashed=m.UNDEF,t.stack100percent=m.UNDEF,t.showpercentvalues=m.UNDEF,t.showpercentintooltip=m.UNDEF,t.plotbordercolor=m.UNDEF,t.showtooltip=1,t.seriesnameintooltip=1,t.rotatevalues=0,t.minimizetendency=0,t.plotfillangle=270,t.valuepadding=2,t.useplotgradientcolor=1,t.plotborderthickness=1,t.plotfillalpha=E,t.showvalues=1,t.valueposition=S,t.drawcrossline=m.UNDEF,t.tooltipsepchar=", ",t.usedataplotcolorforlabels=0,t.placevaluesinside=0,t.showplotborder=1,t.use3dlighting=1,t.useroundedges=0,t.plotspacepercent=20,t.plotpaddingpercent=m.UNDEF,t.plotfillratio=m.UNDEF,t.maxcolwidth=50,t.plotborderdashlen=5,t.plotborderdashgap=4,t.useScaleRecursively=!0,t.formatnumberscale=1,t.decimals=2,t.decimalprecision=10,t.tooltipbgcolor="FFF",t.tooltipcolor=m.UNDEF,t.tooltipbordercolor="666",t.tooltipbgalpha=100,t.tooltipborderthickness=1,t.showtooltipshadow=m.UNDEF,t.basefontsize=10,t.basefont="Verdana, sans",t.tooltipborderradius=0,t.tooltippadding=3,t.tooltipborderalpha=100,t.origw=m.UNDEF,t.origh=m.UNDEF,t.showBorder=m.UNDEF,t.usePattern=0,t.patternType=b[0],t.patternDensity=6,t.patternAlpha=100,t.patternBgColor=m.TRACKER_FILL},t.configure=function(t){var A=t;this.sanitizeData(A),this.addToEnv("dataSource",A),this.fireEvent("internal.dataSanitized",{}),A=this.getFromEnv("dataSource"),e.prototype.configure.call(this,A)},t._checkInvalidData=function(){var e=this.getFromEnv("dataSource"),t=this.getFromEnv("chartInstance");if(!(this.isWidget||this.isMap||e.data&&0!==e.data.length||e.dataset||e.value||e.lineset||e.annotations||e.category||e.tasks||e.process||e.axis))return t.__state.dataReady=!1,t.jsVars.hasNativeMessage=!0,t.jsVars.drawCount+=1,!0},t._checkInvalidSpecificData=function(){var e=this.getFromEnv("dataSource"),t=e.dataset,A=e.categories;if(!t||!A||0===A.length||!A[0].category)return!0},t.sanitizeData=function(e){e.chart=e.chart||e.graph||e.map||{}},t.setChartEvents=function(){var e=this.getFromEnv("eventListeners"),t=this.getFromEnv("dataSource"),n=t&&t.chart,i=this.getFromEnv("paper")&&this.getFromEnv("paper").canvas,r=this.getFromEnv("chart-container"),a=n&&(0,m.pluckNumber)(n.enablechartmousemoveevent,0);(n||i)&&(v["default"].unlisten(r,Q?"click":"touchend",Q?T:I),e.push(v["default"].listen(r,"mousedown touchstart",L,this)),e.push(v["default"].listen(r,"mousemove touchmove",U,this)),e.push(v["default"].listen(r,Q?"click":"touchend",Q?T:I,this)),v["default"].unlisten(i,"mouseover",N,this),v["default"].unlisten(i,"touchstart",N,this),v["default"].unlisten(i,"mouseout",N,this),v["default"].unlisten(i,"touchend",N,this),e.push(v["default"].listen(i,"mouseover touchstart mouseout touchend",N,this)),v["default"].unlisten(r,"mousemove",A.onContainerMouseMove,this),v["default"].unlisten(r,"touchmove",A.onContainerMouseMove,this),a&&e.push(v["default"].listen(r,"mousemove touchmove",A.onContainerMouseMove,this)))},t.get=function(e,t){var A=this[e];return t?A&&A[t]:A},t.prepareAttributes=function(){this.config.hasChartMessage||e.prototype.prepareAttributes.call(this)},t.disposeChartStyleSheet=function(){var e=this.getFromEnv("paper");e&&e.cssClear()},t.createChartStyleSheet=function(){this.getFromEnv("paper").cssRender()},t._dispose=function(){var t=this.getFromEnv("eventListeners"),n=t&&t.length;for(A.hoverChart=m.UNDEF;n--;)t[n].unlisten();e.prototype._dispose.call(this)},t._allocateSpace=function(e){var t,A,n=this.getChildren("canvas"),i=n&&n[0].config,r=this.config,a=r.canvasHeight,o=r.canvasWidth,s=r.availableHeight,l=r.availableWidth;A=r.canvasLeft+=e.left||0,t=r.canvasTop+=e.top||0,o=r.canvasWidth=w(o-((e.left||0)+(e.right||0)),0),a=r.canvasHeight=w(a-((e.top||0)+(e.bottom||0)),0),r.availableHeight=w(s-((e.top||0)+(e.bottom||0)),0),r.availableWidth=w(l-((e.left||0)+(e.right||0)),0),r.canvasRight=A+o,r.canvasBottom=t+a,i&&(i.canvasPaddingLeft=w(i.canvasPaddingLeft,e.paddingLeft||0),i.canvasPaddingRight=w(i.canvasPaddingRight,e.paddingRight||0),i.canvasPaddingTop=w(i.canvasPaddingTop,e.paddingTop||0),i.canvasPaddingBottom=w(i.canvasPaddingBottom,e.paddingBottom||0)),n&&n[0].setDimension({top:t,left:A,width:o,height:a})},t._fetchCaptionPos=function(e){var t=this.config,A=t.width,n=this.getChildren("chartMenuBar")&&this.getChildren("chartMenuBar")[0],i=(n?n.getLogicalSpace():{}).width||0,r=(this.getChildren("caption")&&this.getChildren("caption")[0]).config,a=r.width,o="l"===t.toolbarHAlign,s=t.width-e,l=o?e:s,c=t.origMarginRight,u=t.origMarginLeft,h=o?u:c;return r.align===m.POSITION_MIDDLE?l-a/2-h-i:"start"===r.align?o?-1:A-t.canvasLeft-h-a-i+r.horizontalPadding:o?A-(c+u+i+a):-1},t._manageCaptionSpacing=function(e,t){return this.getChildren("caption")[0].manageSpace(e,t)},t._manageChartMenuBar=function(e){var t,A,n,i=this.config,r=this.getChildren("chartMenuBar")&&this.getChildren("chartMenuBar")[0],a=i.toolbarY!==m.UNDEF,o=r?r.getLogicalSpace():{height:0,width:0},s=(this.getChildren("caption")&&this.getChildren("caption")[0]).config,l=s.isOnTop,c=i.width/2,u=i.canvasRight,h=this.getFromEnv("gLegend")||{},d=!!(h.conf||{}).showLegend,g=0,p=u?(i.canvasLeft+u)/2:c,f=0,v=s.alignWithCanvas?p:c;return a&&(o.height=0),r&&r.setDimension({x:i.toolbarX!==m.UNDEF?i.toolbarX:(0,m.pluckNumber)("l"===i.toolbarHAlign?0:+i.width),y:i.toolbarY!==m.UNDEF?i.toolbarY:(0,m.pluckNumber)("t"===i.toolbarVAlign?0:+i.height),width:o.width,height:o.height}),delete s._offsetHeight,n=s.alignWithCanvas?i.canvasWidth:i.width-i.origMarginLeft-i.origMarginRight,l?(t=this._manageCaptionSpacing(e,n),f=this._fetchCaptionPos(v),s._offsetHeight=f<0?o.height:0,t.top=f<0?(0,m.pluckNumber)(t.top,0)+o.height:w(t.top,o.height),this._allocateSpace(t)):(this._allocateSpace({top:o.height}),t=this._manageCaptionSpacing(e,n),this._allocateSpace(t)),d&&this.config.gLegendEnabled&&(g=h.getCalculatedLogicalSpace().width-h.getLogicalSpace().width,"left"===(A=h.conf.legendPosition?h.conf.legendPosition.split("-"):[])[0]?this._allocateSpace({left:-g}):"right"===A[0]&&this._allocateSpace({right:-g})),{top:o?w(o.height,t.top):t.top,bottom:t.bottom}},t._manageSpace=function(){var e,t,A,n,i,r,a,o,s,l,c,u,h=this.getChildren("canvas")&&this.getChildren("canvas")[0],d=h&&h.config,g=this.config,p=this.getFromEnv("chartWidth"),f=this.getFromEnv("chartHeight");g.width=p,g.height=f,g.minChartHeight=s=g.minChartHeightPercent*f,g.minChartWidth=l=g.minChartWidthPercent*p,g.minCanvasWidth=e=g.minCanvasWidthPercent*l,g.minCanvasHeight=t=g.minCanvasHeightPercent*s,g.marginTop=A=g.origMarginTop,g.marginLeft=n=g.origMarginLeft,g.marginBottom=i=g.origMarginBottom,g.marginRight=r=g.origMarginRight,g.canvasMarginTop=g.origCanvasTopMargin,g.canvasMarginLeft=g.origCanvasLeftMargin,g.canvasMarginBottom=g.origCanvasBottomMargin,g.canvasMarginRight=g.origCanvasRightMargin,g.canvasHeight=a=g.height-g.marginTop-g.marginBottom,g.canvasWidth=o=g.width-g.marginLeft-g.marginRight,g.availableHeight=a-t,g.availableWidth=o-e,a<s&&(c=f-s,g.canvasHeight=s,u=A+i,g.marginTop=c*A/u,g.marginBottom=c*i/u,g.availableHeight=s-t),o<l&&(c=p-l,u=r+n,g.canvasWidth=l,g.marginLeft=c*n/u,g.marginRight=c*r/u,g.availableWidth=l-e),g.canvasLeft=g.marginLeft,g.canvasTop=g.marginTop,d&&(d.canvasPaddingLeft=y(d.origCanvasLeftPad,x(.1*g.height)),d.canvasPaddingRight=y(d.origCanvasRightPad,x(.1*g.height)),d.canvasPaddingTop=y(d.origCanvasTopPad,x(.1*g.height)),d.canvasPaddingBottom=y(d.origCanvasBottomPad,x(.1*g.height))),this._spaceManager()},t._preDraw=function(){this._mapChildren((function(e){e.getState("removed")||e.preDraw&&e.preDraw()})),this._setAxisLimits&&this._setAxisLimits(),this._createToolBoxGantt&&this._createToolBoxGantt()},t._clearTimers=function(){var e,t=this.config&&this.config.realTimeConfig,A=this.config.timers,n=A&&A.setTimeout,i=A&&A.setInterval;for(e in t&&(t.refreshIntervalFlag=!1),n)clearTimeout(n[e]);for(e in i)clearInterval(i[e])},t.setChartCursor=function(){var e=this.config.link,t=this.getFromEnv("paper").canvas.style;B.svg?t.cursor=e?m.POINTER:"default":this.getFromEnv("paper").canvas.style.cursor=e?m.HAND:"default"},t._createLayers=function(){var e,t=this.getFromEnv("animationManager");e=this.getContainer("parentgroup")||this.addContainer("parentgroup",t.setAnimation({el:"group",attr:{name:"parentgroup"},component:this})),!this.getChildContainer("backgroundGroup")&&this.addChildContainer("backgroundGroup",k({name:"background"},e,this)),!this.getChildContainer("axisBottomGroup")&&this.addChildContainer("axisBottomGroup",k({name:"axisbottom"},e,this)),!this.getChildContainer("belowPlotGroup")&&this.addChildContainer("belowPlotGroup",k({name:"belowplot"},e,this)),!this.getChildContainer("plotGroup")&&this.addChildContainer("plotGroup",k({name:"plots"},e,this)),!this.getChildContainer("scrollbarContainer")&&this.addChildContainer("scrollbarContainer",k({name:"scrollbar-container"},e,this)),!this.getChildContainer("axisTopGroup")&&this.addChildContainer("axisTopGroup",k({name:"axistop"},e,this)),!this.getChildContainer("sumLabelsLayer")&&this.addChildContainer("sumLabelsLayer",k({name:"sumlabels","class":"fusioncharts-datalabels"},e,this)),!this.getChildContainer("datalabelsGroup")&&this.addChildContainer("datalabelsGroup",k({name:"datalabel"},e,this)),!this.getChildContainer("abovePlotGroup")&&this.addChildContainer("abovePlotGroup",k({name:"aboveplot"},e,this)),!this.getChildContainer("captionGroup")&&this.addChildContainer("captionGroup",k({name:"caption"},e,this)),!this.getChildContainer("defaultGroup")&&this.addChildContainer("defaultGroup",k({name:"chartdefault"},e,this)),!this.getChildContainer("defaultShadowGroup")&&this.addChildContainer("defaultShadowGroup",k({name:"chartdefault-shadow"},e,this)),!this.getChildContainer("trackerGroup")&&this.addChildContainer("trackerGroup",k({name:"tracker"},e,this)),!this.getChildContainer("logoGroup")&&this.addChildContainer("logoGroup",k({name:"logo"},e,this)),!this.getChildContainer("selectorGroup")&&this.addChildContainer("selectorGroup",k({name:"selectorGroup"},e,this)),this.getChildren("legend")!==m.UNDEF&&!this.getChildContainer("legendGroup")&&this.addChildContainer("legendGroup",k({name:"legend"},e,this)),!this.getChildContainer("toolbar-master")&&this.addChildContainer("toolbar-master",k({name:"toolbar-master"},e,this))},t._setDataLabelStyle=function(){var e=this.config.dataLabelStyle,t={fontFamily:e.fontFamily,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle};this.getChildContainer("datalabelsGroup").css(t)},t._manageCaptionPosition=function(){var e,t,A,n=this.config,i=this.getChildren(),r=i.caption&&i.caption[0],a=i.subCaption&&i.subCaption[0],o=r.config,s=o.widgetValueHeight||0,l=a.config,c=n.canvasWidth,u=o.align,h=o.text,d=o.alignWithCanvas,g=o.horizontalPadding,p=n.width,f=n.canvasLeft,v=n.canvasRight,b=n.marginRight,B=n.marginLeft,C=n.marginTop,w=(x(f)||0)+(0,m.pluckNumber)(c,p)/2,y=o.height,F=l.height,E=i.legend&&i.legend[0]&&i.legend[0].config||{},S=E.height||0,Q=E.legendPadding||0,k=n.legendposition?n.legendposition.toLowerCase().split("-"):[],L=this.getFromEnv("gLegend")||{},U=0,I=!!(L.conf||{}).showLegend,T=this.config.borderWidth,N=i.actionBar,D=0;switch(E.isActive||(S=0),I&&this.config.gLegendEnabled&&(U=L.getCalculatedLogicalSpace().height),u){case"end":e=d?v-g:p-g;break;case"start":e=d?f+g:g;break;default:e=d?w:B+.5*(p-B-b)||p/2}o.isOnTop?t=(T||0)+(C||0):("left"!==k[0]&&"right"!==k[0]&&"top"!==k[0]&&"absolute"!==k[0]||(Q=0,S=0,U=0),N&&N.length&&((D=(N[0].getLogicalSpace&&N[0].getLogicalSpace()||{}).height)===m.UNDEF||D===Infinity||D<0)&&(D=0),t=this.config.height-this.config.marginBottom-y-(F||0)-(T||0)-(Q||0)-(S||0)-U-s-D),t+=o._offsetHeight||0,r.setDimention({x:e,y:t}),A=h?t+y+2:t||C||0,a.setDimention({x:e,y:A})},t.resizeCanvas=function(){var e=this.getFromEnv("paper"),t=this.config,A=this.getFromEnv("animationManager"),n=this.getFromEnv("chartWidth"),i=this.getFromEnv("chartHeight");m.hasSVG||!t._prevWidth&&!t._prevHeight||e.setSize(t._prevWidth,t._prevHeight),A.setAnimation({el:e,attr:{width:n,height:i},component:this})},t._updateVisuals=function(){var e=this.getFromEnv("core-options"),t=this.getFromEnv("paper"),A=this.config,n=this.getFromEnv("chartWidth"),i=this.getFromEnv("chartHeight");e&&!e._SVGDefinitionURLUpdated&&(/^\s*absolute\s*$/i.test(e.SVGDefinitionURL)&&(B._url=(B._g&&B._g.win||window).location.href.replace(/#.*?$/,m.BLANKSTRING)),e._SVGDefinitionURLUpdated=!0),t?this.resizeCanvas():((t=new B(this.getFromEnv("chart-container"),n,i)).setHTMLClassName("fusioncharts-div"),this.addToEnv("paper",t),t.setConfig("stroke-linecap",m.ROUND),this.setChartEvents()),A._prevWidth=n,A._prevHeight=i,this.setChartCursor(),this._createLayers(),this._setDataLabelStyle()},t.allocateDimensionOfChartMenuBar=function(){var e=this.config,t=this.getFromEnv("toolbar"),A=t.config,n=A.hDirection,i=A.vDirection,r=t.getLogicalSpace(),a=t.getDimension(),o=a.y,s=a.x;"t"===e.toolbarVAlign?(o+=e.toolbarVMargin*i+y(0,r.height*i),s+=e.toolbarHMargin*n-w(0,r.width*n),s="l"===e.toolbarHAlign?s+r.width:s-r.width):(o=e.height-e.marginBottom-r.height,s="b"===e.toolbarVAlign&&"r"===e.toolbarHAlign?e.width-e.marginRight-r.width:e.marginLeft),e.toolbarX!==m.UNDEF&&(s=e.toolbarX),e.toolbarY!==m.UNDEF&&(o=e.toolbarY),t.setDimension({x:s,y:o,width:r.width,height:r.height}),t.manageSpace()},t.draw=function(){var e=this.getFromEnv("chartInstance");this.config.hasChartMessage?(this._hide(),this.resizeCanvas(),this.drawChartMessage(),this.fireChartInstanceEvent("nodatatodisplay",{},[e.id]),e.jsVars.drawCount+=1,e.__state.dataReady=!1,e.jsVars.hasNativeMessage=!0):(this._hideChartMessage(),this._clearTimers&&this._clearTimers(),this.config.plotOverFlow=!1,this._show(),this._updateVisuals(),this.setState("initiated",!0),e.jsVars.drawCount+=1,e.jsVars.hasNativeMessage=!1)},t.manageSpace=function(){var e,t,A,n=this.config,i=n.style,r=n.dataLabelStyle;n.hasChartMessage?this.getChildren("chartMessage")[0].manageSpace():(i.inCanfontSize=t=this.computeFontSize(i.inCanfontSizeWithUnit),i.fontSize=e=this.computeFontSize(i.fontSizeWithUnit),i.outCanfontSize=e+m.PXSTRING,i.baseFontSize=t,i.inCanfontSize=t+m.PXSTRING,i.inCanvasStyle.fontSize=t,i.inCanLineHeight=A=(0,m.setLineHeight)(i.inCanvasStyle),r.fontSize=this.computeFontSize(r.fontSizeWithUnit)+m.PXSTRING,r.lineHeight=A,(0,m.setLineHeight)(r),this.setTooltipStyle(),this._preDraw(),this.addToolbar&&this.addToolbar(),this._manageSpace(),this._postSpaceManagement&&this._postSpaceManagement())},t._show=function(){this.getContainer("parentgroup")&&this.getContainer("parentgroup").show()},t._manageActionBarSpace=function(){var e=this.config,t=this.getChildren("actionBar"),A=(t&&t[0]&&t[0].getLogicalSpace()||{}).height||0;return e.actionBarHeight=A,{bottom:A}},t._hide=function(){this.getContainer("parentgroup")&&this.getContainer("parentgroup").hide()},A.onContainerMouseMove=function(e){var t,A=e.data,n=A.getFromEnv("chartInstance"),i=e.originalEvent,r=(0,m.getMouseCoordinate)(A.getFromEnv("chart-container"),i,A);n.ref&&(t=(0,m.extend2)({height:n.args.height,width:n.args.width,pixelHeight:A.getFromEnv("chartHeight"),pixelWidth:A.getFromEnv("chartWidth"),id:n.args.id,renderer:n.args.renderer,container:n.options.containerElement},r),A.fireChartInstanceEvent("chartMouseMove",t))},A.onContainerRollOver=function(e){var t,A=e.data,n=A.getFromEnv("chartInstance"),i=e.originalEvent,r=(0,m.getMouseCoordinate)(A.getFromEnv("chart-container"),i,A);n.ref&&(t=(0,m.extend2)({height:n.args.height,width:n.args.width,pixelHeight:A.getFromEnv("chartHeight"),pixelWidth:A.getFromEnv("chartWidth"),id:n.args.id,renderer:n.args.renderer,container:n.options.containerElement},r),A.fireChartInstanceEvent("chartRollOver",t))},A.onContainerRollOut=function(e){var t,A=e.chart,n=A.getFromEnv("chartInstance"),i=e.event,r=(0,m.getMouseCoordinate)(A.getFromEnv("chart-container"),i,A);n.ref&&(t=(0,m.extend2)({height:n.args.height,width:n.args.width,pixelHeight:A.getFromEnv("chartHeight"),pixelWidth:A.getFromEnv("chartWidth"),id:n.args.id,renderer:n.args.renderer,container:n.options.containerElement},r),A.fireChartInstanceEvent("chartRollOut",t))},A.winMouseHover=function(e){var t=e.originalEvent,n=t.target||t.originalTarget||t.srcElement||t.relatedTarget||t.fromElement,i=e.data,r=i.getFromEnv("paper"),a={chart:i,event:e.originalEvent};C?r.getById(n.parentNode.raphaelid)||(A.onContainerRollOut(a),i.config.mouseStateIn=!1,v["default"].unlisten(document,"mouseover",A.winMouseHover)):n.viewportElement&&!e.forceRollOut||(i.config.mouseStateIn=!1,A.onContainerRollOut(a),A.hoverChart=m.UNDEF,v["default"].unlisten(window,"mouseover",A.winMouseHover),e.forceRollOut=!1)},A}(r["default"]);O.hoverChart=void 0;var H=O;t["default"]=H},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=function(e){var t;(0,r.componentFactory)(e,i["default"],"canvas",e.config.showVolumeChart?2:1),t=e.getChildren("canvas");for(var A=0,n=t.length;A<n;A++)t[A].configure()};var i=n(A(500)),r=A(254)},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(272)),r=n(A(268)),a=A(270),o=A(254),s=A(262),l=n(A(501)),c=Math.max,u=o.preDefStr.miterStr,h=o.preDefStr.noneStr,d=o.preDefStr.ROUND,g=function(e,t,A){return A.getFromEnv("animationManager").setAnimation({el:"group",attr:{name:e},container:t,component:A,label:"group"})};(0,s.addDep)({name:"canvasAnimation",type:"animationRule",extension:l["default"]});var p=function(e){function t(){var t;t=e.call(this)||this;var A=(0,i["default"])(t);return A.config={},A.config.axes=A.config.axes||[],A.setLinkedItem("axes",[]),A.setLinkedItem("primaryAxis",{}),A.addToEnv("canvasConfig",t.config),t}(0,r["default"])(t,e);var A=t.prototype;return A.getName=function(){return"canvas"},A.getType=function(){return"canvas"},A.createGroup=function(){var e=this.config,t=this.getFromEnv("chart"),A=t.getChildContainer(),n=t.getContainer("parentgroup"),i=this.getEffectiveDimensions(),r=this.getFromEnv("chart-attrib"),a=(0,o.pluckNumber)(r.areaovercolumns,1),s=this.getChildContainer("axisReferenceVisualsFloor"),l=this.getChildContainer("axisReferenceVisualsBottom"),c=this.getChildContainer("axisReferenceVisualsMiddle"),u=this.getChildContainer("axisReferenceVisualsTop"),h=this.getChildContainer("axisReferenceVisualsCeil"),d=this.getChildContainer("areaGroup"),p=this.getChildContainer("areaShadowGroup"),f=this.getChildContainer("columnGroup"),m=this.getChildContainer("columnShadowGroup"),v=A.plotGroup,b=[i.left,i.top,i.width,i.height].toString();!this.getContainer("canvasGroup")&&this.addContainer("canvasGroup",g("canvas",n,this)).insertAfter(A.backgroundGroup),l||(l=this.addChildContainer("axisReferenceVisualsBottom",g("axisReferenceVisualsBottom",n,this)).insertAfter(A.axisBottomGroup)),l.attr({"clip-rect":e.canvasBorderWidth>0?b:null}),s||(s=this.addChildContainer("axisReferenceVisualsFloor",g("axisReferenceVisualsFloor",n,this)).insertAfter(A.axisBottomGroup)),s.attr({"clip-rect":b}),!this.getChildContainer("crossline")&&this.addChildContainer("crossline",g("crossline",n,this)).insertBefore(A.plotGroup),!this.getChildContainer("crosslineBottom")&&this.addChildContainer("crosslineBottom",g("crosslineBottom",n,this)).insertBefore(A.plotGroup),!this.getChildContainer("crosslineTop")&&this.addChildContainer("crosslineTop",g("crosslineTop",n,this)).insertBefore(A.abovePlotGroup),!this.getChildContainer("datalabelsGroup")&&this.addChildContainer("datalabelsGroup",g("canvasdatalabel",t.getChildContainer("datalabelsGroup"),this)),c||(c=this.addChildContainer("axisReferenceVisualsMiddle",g("axisReferenceVisualsMiddle",n,this)).insertBefore(A.plotGroup)),c.attr({"clip-rect":b}),u||(u=this.addChildContainer("axisReferenceVisualsTop",g("axisReferenceVisualsTop",n,this)).insertBefore(A.datalabelsGroup)),!this.getChildContainer("quadrantGroup")&&this.addChildContainer("quadrantGroup",g("quadrant",n,this)).insertAfter(c),h||this.addChildContainer("axisReferenceVisualsCeil",g("axisReferenceVisualsCeil",n,this)).insertBefore(A.datalabelsGroup),!this.getChildContainer("sumLabelsLayer")&&this.addChildContainer("sumLabelsLayer",A.sumLabelsLayer),m||(m=this.addChildContainer("columnShadowGroup",g("column-shadow-group",v,this))),f||(f=this.addChildContainer("columnGroup",g("column",v,this))),p||(p=this.addChildContainer("areaShadowGroup",g("area-shadow-group",v,this))),d||(d=this.addChildContainer("areaGroup",g("area",v,this))),a?(m.insertBefore(p),f.insertBefore(p)):(p.insertBefore(m),d.insertBefore(m)),!this.getChildContainer("lineShadowGroup")&&this.addChildContainer("lineShadowGroup",g("line-shadow-group",v,this)),!this.getChildContainer("lineGroup")&&this.addChildContainer("lineGroup",g("line",v,this)),!this.getChildContainer("defaultShadowGroup")&&this.addChildContainer("defaultShadowGroup",g("default-shadow-group",v,this)),!this.getChildContainer("defaultGroup")&&this.addChildContainer("defaultGroup",g("default",v,this))},A.isWithinCanvas=function(e,t){var A=this.config,n=A.canvasLeft,i=n+A.canvasWidth,r=A.canvasTop,a=r+A.canvasHeight;return e>=n&&e<=i&&t>=r&&t<=a},A.setCanvasPadding=function(){var e,t=this.config;e=this.getCanvasPadding(),t.canvasPaddingLeft=c(t.canvasPaddingLeft,e.paddingLeft||0),t.canvasPaddingRight=c(t.canvasPaddingRight,e.paddingRight||0),t.canvasPaddingTop=c(t.canvasPaddingTop,e.paddingTop||0),t.canvasPaddingBottom=c(t.canvasPaddingBottom,e.paddingBottom||0)},A.getEffectiveDimensions=function(){var e=this.config;return{left:e.canvasLeft,top:e.canvasTop,width:e.canvasWidth,height:e.canvasHeight,paddingLeft:e.canvasPaddingLeft,paddingTop:e.canvasPaddingTop,paddingRight:e.canvasPaddingRight,paddingBottom:e.canvasPaddingBottom}},A.setDimension=function(e){var t=this.config;t.canvasTop=e.top,t.canvasLeft=e.left,t.canvasWidth=e.width,t.canvasHeight=e.height},A.getCanvasPadding=function(){var e,t,A,n,i=this.getFromEnv("chartConfig").canvasWidth,r=this.config.maxPaddingPercent*i/100,a={paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0};return this._mapChildren((function(A){for(t in e=A.getCanvasPadding&&A.getCanvasPadding()||{})e.hasOwnProperty(t)&&(a[t]=c(e[t],a[t]))})),A=a.paddingLeft||0,n=a.paddingRight||0,r<A&&(a.paddingLeft=r),r<n&&(a.paddingRight=r),a},A.configureAttributes=function(e){void 0===e&&(e={});var t,A,n,i,r,a=this.getLinkedParent(),s=this.getFromEnv("chartConfig"),l=this.config,u=this.getFromEnv("chart-attrib"),h=this.getFromEnv("color-manager"),d=s.is3D,g=d?o.chartPaletteStr.chart3D:o.chartPaletteStr.chart2D,p=l.isRoundEdges=(0,o.pluckNumber)(u.useroundedges,0),f=(0,o.pluckNumber)(u.showxaxisline,u.showyaxisline,u.showaxislines,0)?0:1;l.canvasBorderRadius=(0,o.pluckNumber)(u.plotborderradius,p?2:0),n=l.showCanvasBorder=Boolean((0,o.pluckNumber)(u.showcanvasborder,f,t,p?0:1)),r=l.oriCanvasBorderThickness=c((0,o.pluckNumber)(u.canvasborderthickness,p?0:(0,o.pluckNumber)(a.config.canvasborderthickness,2),0)),t=l.canvasBorderWidth=d?0:n?r:0,l.canvasBorderColor=(0,o.convertColor)((0,o.pluck)(u.canvasbordercolor,h.getColor(o.canvasBorderColorStr)),(0,o.pluck)(u.canvasborderalpha,h.getColor("canvasBorderAlpha"))),A=l.canBGAlpha=(0,o.pluck)(u.canvasbgalpha,h.getColor(o.canvasBGAlphaStr)),l.canBGColor={FCcolor:{color:(0,o.pluck)(u.canvasbgcolor,h.getColor(g.canvasBgColor)),alpha:(0,o.pluck)(u.canvasbgalpha,100),angle:(0,o.pluck)(u.canvasbgangle,0),ratio:(0,o.pluck)(u.canvasbgratio)}},i=l.shadow=(0,o.pluckNumber)(u.showshadow,p,0)&&p?{enabled:!0,opacity:A/100}:0,l.shadowOnCanvasFill=i&&i.enabled,l.canvasPadding=(0,o.pluckNumber)(u.canvaspadding,0),l.origCanvasTopPad=(0,o.pluckNumber)(u.canvastoppadding,0),l.origCanvasBottomPad=(0,o.pluckNumber)(u.canvasbottompadding,0),l.origCanvasLeftPad=(0,o.pluckNumber)(u.canvasleftpadding,0),l.origCanvasRightPad=(0,o.pluckNumber)(u.canvasrightpadding,0),Object.assign(l,e),this.config.inputComponents=[],this.config.maxPaddingPercent=12.5,this._mapChildren((function(e){e.getState("removed")||e.getType&&"dataset"===e.getType()||"axisRefVisuals"===e.getType()||e.configure&&e.configure()}))},A.disposeAllInputs=function(){this.config.inputComponents.forEach((function(e){e.dispose()})),this.config.inputComponents.length=0},A.axisExists=function(e){var t,A,n=this.getLinkedItem("axes"),i=!1;for(t=0,A=n.length;t<A;t++)if(n[t].axis===e){i=!0;break}return i},A.attachAxis=function(e,t,A){var n=this.getLinkedItem("axes"),i=t?"yAxis":"xAxis",r=this.getFromEnv(i)||[];return this.axisExists(e)||(n.push({axis:e,isY:t,config:A||{}}),r.push(e),this.addToEnv(i,r)),this},A.setPrimaryAxis=function(e,t){this.getLinkedItem("primaryAxis")[e]=this.getLinkedItem("axes").find((function(e){return e.axis===t}))},A.getAxes=function(){var e;return Object.keys(e=this.getLinkedItem("primaryAxis")).length?[e.xAxis,e.yAxis]:this.getLinkedItem("axes").slice(0)},A.detachAxis=function(e,t){var A=this.getLinkedItem("axes"),n=Infinity;return t?A.splice(t,1):(A.forEach((function(t,A){t.axis===e&&(n=A)})),A.splice(n,1))},A.preDraw=function(){this._mapChildren((function(e){e.getState("removed")||e.preDraw&&e.preDraw()}))},A.draw=function(){this.createGroup(),!this.getFromEnv("chart").config.skipCanvasDrawing&&this.drawCanvas()},A.drawCanvas=function(){var e,t,A,n,i,r,a,s=this,l=s.getFromEnv("chart"),g=l.isBar,p=s.getFromEnv("chart-attrib"),f=s.getFromEnv("animationManager"),m=l.config,v=s.config,b=v.clip={},B=l.getChildContainer("plotGroup"),C=l.getChildContainer("datalabelsGroup"),w=s.getGraphicalElement("canvasBorderElement"),y=s.getGraphicalElement("canvasElement"),x=v.canvasLeft||(v.canvasLeft=m.canvasLeft),F=v.canvasTop||(v.canvasTop=m.canvasTop),E=v.canvasWidth||(v.canvasWidth=m.canvasWidth),S=v.canvasHeight||(v.canvasHeight=m.canvasHeight),Q=v.xDepth=m.xDepth||0,k=v.yDepth=m.yDepth||0,L=s.getContainer("canvasGroup"),U=s.getChildContainer("quadrantGroup"),I=v.canvasBorderRadius,T=v.canvasBorderWidth,N=.5*T,D=v.canvasBorderColor,P=v.canBGColor,M=v.canBGAlpha,O=v.shadow,H=v.showCanvasBG=Boolean((0,o.pluckNumber)(p.showcanvasbg,1)),_=v.shadowOnCanvasFill,R=v.showCanvasBorder;n=P,i={x:x-N,y:F-N,width:E+T,height:S+T,r:I,"stroke-width":T,stroke:D,"stroke-linejoin":T>2?d:u},R?(w&&w.show(),t=f.setAnimation({el:w||"rect",component:s,attr:{x:x-N,y:F-N,width:E+T,height:S+T,r:I,"stroke-width":T,stroke:D,"stroke-linejoin":T>2?d:u},label:"rect",container:L}).shadow(O),w||s.addGraphicalElement("canvasBorderElement",t)):w&&(s.removeGraphicalElement(w),f.setAnimation({el:w,component:s,callback:function(){w.hide()}})),r=R?0:v.oriCanvasBorderThickness,b["clip-canvas"]=[c(0,x-Q-r),c(0,F-k-r),c(1,E+2*Q+2*r),c(1,S+k+2*r)],b["clip-sum-value"]=[c(0,x-Q),g?F:0,c(1,g?m.width-x:E+2*Q),c(1,g?S+k:F+S)],b["clip-canvas-init"]=[c(0,x-Q),c(0,F-k),1,c(1,S+2*k)],e=b["clip-canvas"].slice(0),a=function(e,t){f.setAnimation({el:e,attr:{"clip-rect":t},label:"container",component:s,state:e.attrs["clip-rect"]?"updating":"appearing"})},m.skipClipping||(a(B,e),a(C,e),a(U,e),a(s.getChildContainer("sumLabelsLayer"),b["clip-sum-value"])),H?(i={x:x,y:F,width:E,height:S,r:I,"stroke-width":0,stroke:h,fill:(0,o.toRaphaelColor)(n)},y&&y.show(),A=f.setAnimation({el:y||"rect",attr:i,label:"rect",container:L,component:s}),y||s.addGraphicalElement("canvasElement",A),_?A.shadow({opacity:M/100}):A.shadow(!1)):y&&f.setAnimation({el:y,component:s,callback:function(){y.hide()}})},t}(a.ComponentInterface);t["default"]=p},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.canvas.canvas":function(){return{"rect.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"}]},"*":null}},"update.canvas.canvas":{"rect.updating":[{slot:"middle"}]}}},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=function(e){var t,A=e,o=A.config,s=A.getFromEnv("chart-attrib"),l="t"===o.toolbarVAlign?"chartMenuBar":"actionBar",c="t"===o.toolbarVAlign?"actionBar":"chartMenuBar";(0,n.componentFactory)(A,i.ToolBar,c,0,[s]),(0,n.componentFactory)(A,i.ToolBar,l,1,[s]),t=A.getChildren(l)[0],A.addToEnv("toolbar",t),r.SymbolStore.register("ContextIcon",(function(e,t,A){var n=e,i=t,r=2*A,o=a(r/4),s=.7*a(r/2),l=n-s,c=n+s,u=i+o,h=i-o;return["M",l,i,"L",c,i,"M",l,u,"L",c,u,"M",l,h,"L",c,h]})),A.attachMenuButtons()};var n=A(254),i=A(393),r=A(398),a=Math.round},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=A(254),a=A(270),o=A(262),s=n(A(504)),l=Math.max,c=Math.min,u=Math.ceil;(0,o.addDep)({name:"captionAnimation",type:"animationRule",extension:s["default"]});var h=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var A=t.prototype;return A.getType=function(){return"caption"},A.getName=function(){return"caption"},A.configure=function(){var e=this.getFromEnv("chart"),t=e.getFromEnv("chart-attrib"),A=this.config||{},n=e.getFromEnv("style"),i=n.outCanfontFamily,a=n.outCancolor,o=["top","center"];switch(this.config.text=(0,r.parseUnsafeString)(t.caption),A.style={fontFamily:(0,r.pluck)(t.captionfont,i),color:(0,r.convertColor)((0,r.pluck)(t.captionfontcolor,a).replace(/^#? ([a-f0-9]+)/gi,"#$1")),fontSize:(0,r.pluckNumber)(this.computeFontSize(t.captionfontsize),this.computeFontSize(n.fontSizeWithUnit)+3)+"px",fontWeight:0===(0,r.pluckNumber)(t.captionfontbold)?r.NORMAL:r.BOLD},A.align||(A.align=r.BLANKSTRING),A.align=(0,r.pluck)(t.captionposition,t.captionalignment,"center"),A.align&&((o=A.align.split("-"))[0]&&(o[0]=o[0].toLowerCase()),o[1]&&(o[1]=o[1].toLowerCase()),o.length<2&&(o[1]=o[0])),o[0]){case"top":A.isOnTop=1;break;case"bottom":A.isOnTop=0;break;default:A.isOnTop=(0,r.pluckNumber)(t.captionontop,1)}switch(o[1]){case"right":A.align="end";break;case"left":A.align="start";break;default:A.align="middle"}A.isOnLeft=!(0,r.pluckNumber)(t.captiononright,0),A.captionPosition=(0,r.getValidValue)(t.captionposition,"top").toLowerCase(),A.alignWithCanvas=(0,r.pluckNumber)(t.aligncaptionwithcanvas,e.config.alignCaptionWithCanvas,1),A.horizontalPadding=(0,r.pluckNumber)(t.captionhorizontalpadding,A.alignWithCanvas?0:15),A.drawCaption=!0,(0,r.setLineHeight)(A.style)},A.allocatePosition=function(){this.getFromEnv("chart")._manageCaptionPosition()},A.draw=function(){var e,t=this.getFromEnv("chart"),A=t.config,n=t.getFromEnv("animationManager"),i=t.config.textDirection,a=t.getChildContainer().captionGroup,o=t.getFromEnv("smartLabel"),s=this.getGraphicalElement("captionElement"),l=this.getFromEnv("toolTipController"),c=this.config,u=c.style,h=c.text,d=c.x,g=c.align;h?(e={text:c.text,fill:u.color,x:d,y:c.y,"text-anchor":g||"middle","vertical-align":c.verticalAlign||"top",visibility:c.drawCaption?r.visibleStr:r.hiddenStr,direction:i},(s=this.addGraphicalElement("captionElement",n.setAnimation({el:s||"text",attr:e,container:a,state:void 0,component:this,label:"text"}))).css(u),A.showtooltip?l.enableToolTip(s,c.originalText):l.disableToolTip(s),o&&(o.useEllipsesOnOverflow(A.useEllipsesWhenOverflow),o.setStyle(u))):s&&n.setAnimation({el:s,component:this,callback:function(){this.hide()},doNotRemove:!0}),A.savedCaption=s},A.manageSpace=function(e,t){var A,n,i,a,o,s=this.getFromEnv("chart"),h=s.config,d=s.getChildren("caption")[0],g=s.getChildren("subCaption")[0],p=s.getFromEnv("style").fontSizeWithUnit,f=d.config,m=g.config,v=f.style,b=m.style,B=s.getFromEnv("dataSource").chart,C=s.getFromEnv("smartLabel"),w=e,y=(0,r.parseUnsafeString)(B.caption),x=(0,r.parseUnsafeString)(B.subcaption),F=(0,r.pluckNumber)(B.captionpadding,10),E=F,S=!1,Q=0,k=0,L=0,U=0,I=0,T=s.getChildren("canvas"),N=l(T&&T[0].config.canvasBorderThickness,0),D=0,P=0;return v.fontSize=(0,r.pluckNumber)(this.computeFontSize(B.captionfontsize),this.computeFontSize(p)+3)+"px",(0,r.setLineHeight)(v),b.fontSize=(0,r.pluckNumber)(this.computeFontSize(B.subcaptionfontsize),(0,r.pluckNumber)(l((0,r.pluckNumber)(this.computeFontSize(B.captionfontsize))-3,-1),this.computeFontSize(p))+(0,r.pluckNumber)(s.subTitleFontSizeExtender,1))+"px",(0,r.setLineHeight)(b),w>3?(F<N&&(F=N+2),y!==r.BLANKSTRING&&(i=f.style,U=u((0,r.pluckNumber)(parseFloat(i.fontHeight,10),parseFloat(i.lineHeight,10),12))),x!==r.BLANKSTRING&&(o=m.style,I=(0,r.pluckNumber)(parseInt(o.fontHeight,10),parseInt(o.lineHeight,10),12)),U>0||I>0?((Q=U+I+F)>(w=l(w,0))?(S=!0,(k=Q-w)<F?F=l(k,5):(k-=F,F=0,I>k?(L=I-k+10,I=0,m._originalText=m.text,m.text=r.BLANKSTRING):(k-=I,I=0,U>k&&(L=U-k)))):L=w-Q,C.useEllipsesOnOverflow(h.useEllipsesWhenOverflow),U>0&&(C.setStyle(i),L=(U+=L)-(A=C.getSmartText(y,t,U)).height,f.height=U=A.height,f.text=A.text,f.originalText=!!A.tooltext&&A.tooltext,D=A.width),I>0&&(C.setStyle(o),L=(I+=L)-(n=C.getSmartText(x,t,I)).height,I=n.height,m.text=n.text,m.height=n.height,m.originalText=!!n.tooltext&&n.tooltext,P=n.width),S&&L>0&&(F+=c(E-F,L)),f.captionPadding=F,f.height=U,f.width=D,m.width=P,m.height=I,Q=U+I+F):(f.height=0,m.height=0),Q>h.canvasHeight?(Q=0,f.drawCaption=!1):f.drawCaption=!0,a=f.isOnTop?{top:Q}:{bottom:Q,top:5}):(a={bottom:0,top:0},f.drawCaption=!1),a},A.setDimention=function(e){var t=this.config;t.x=e.x,t.y=e.y},t}(a.ComponentInterface);t["default"]=h},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.caption.caption":function(){return{"text.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"}]}}}}},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=A(254),a=n(A(503)),o=A(262),s=n(A(506)),l=Math.max;(0,o.addDep)({name:"subcaptionAnimation",type:"animationRule",extension:s["default"]});var c=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var A=t.prototype;return A.getType=function(){return"caption"},A.getName=function(){return"subCaption"},A.configure=function(){var e=this.getFromEnv("chart"),t=e.getFromEnv("chart-attrib"),A=this.config||{},n=e.getFromEnv("style"),i=e.getChildren("caption")[0],a=n.outCanfontFamily,o=n.outCancolor,s=n.fontSizeWithUnit,c=["top","center"];switch(A.text=(0,r.parseUnsafeString)(t.subcaption),A.align||(A.align=r.BLANKSTRING),A.align=(0,r.pluck)(t.captionposition,t.captionalignment,"center"),i.config.align&&((c=i.config.align.split("-"))[0]&&(c[0]=c[0].toLowerCase()),c[1]&&(c[1]=c[1].toLowerCase()),c.length<2&&(c[1]=c[0])),c[0]){case"top":A.isOnTop=1;break;case"bottom":A.isOnTop=0;break;default:A.isOnTop=(0,r.pluckNumber)(t.captionontop,1)}A.alignWithCanvas=(0,r.pluckNumber)(e.aligncaptionwithcanvas,t.aligncaptionwithcanvas,1),A.horizontalPadding=(0,r.pluckNumber)(t.captionhorizontalpadding,i.config.alignWithCanvas?0:15),A.style={fontFamily:(0,r.pluck)(t.subcaptionfont,t.captionfont,a),color:(0,r.convertColor)((0,r.pluck)(t.subcaptionfontcolor,t.captionfontcolor,o).replace(/^#? ([a-f0-9]+)/gi,"#$1")),fontSize:(0,r.pluckNumber)(this.computeFontSize(t.subcaptionfontsize),(0,r.pluckNumber)(l((0,r.pluckNumber)(this.computeFontSize(t.captionfontsize))-3,-1),this.computeFontSize(s))+(0,r.pluckNumber)(e.subTitleFontSizeExtender,1))+"px",fontWeight:0===(0,r.pluckNumber)(t.subcaptionfontbold,e.subTitleFontWeight,t.captionfontbold)?r.NORMAL:r.BOLD},(0,r.setLineHeight)(A.style)},A.draw=function(){var e,t=this.getFromEnv("chart"),A=t.getFromEnv("animationManager"),n=t.getChildren("caption")[0],i=t.config,a=i.textDirection,o=t.getChildContainer().captionGroup,s=this.getGraphicalElement("subCaptionElement"),l=this.getFromEnv("toolTipController"),c=this.config,u=c.style,h=c.text,d=n.config.align;h?(e={text:c.text,fill:u.color,x:c.x,y:c.y,"text-anchor":d||"middle","vertical-align":"top",direction:a,visibility:n.config.drawCaption?r.visibleStr:r.hiddenStr},(s=this.addGraphicalElement("subCaptionElement",A.setAnimation({el:s||"text",attr:e,container:o,state:void 0,component:this,hookFn:function(){this.css(u)},label:"text"}))).css(u),i.showtooltip?l.enableToolTip(s,c.originalText):l.disableToolTip(s)):s&&this.removeGraphicalElement(s),i.savedSubCaption=s},A.setDimention=function(e){this.config.x=e.x,this.config.y=e.y},t}(a["default"]);t["default"]=c},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i={"initial.caption.subCaption":n(A(504))["default"]["initial.caption.caption"]};t["default"]=i},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(272)),r=n(A(268)),a=A(270),o=A(254),s=A(262),l=n(A(508)),c="BackgroundLoaded",u="BackgroundLoadError",h="none";(0,s.addDep)({name:"backgroundAnimation",type:"animationRule",extension:l["default"]});var d=function(e){function t(){var t,A,n;return(t=e.call(this)||this).config.handler=(A=(0,i["default"])(t),n=A.config,{load:function(){var e=n.bgImageDisplayMode,t=n.bgImageVAlign,i=n.bgImageHAlign,r=n.bgImageScale,a=n.bgSWFAlpha,o=n.bgSWF,s=A.getGraphicalElement("backgroundImage")._.RefImg;A.getFromEnv("chart").fireChartInstanceEvent(c,{url:o,bgImageAlpha:a,bgImageDisplayMode:e,bgImageVAlign:t,bgImageHAlign:i,bgImageScale:r,imageheight:s.height,imagewidth:s.width})},error:function(e){var t=n.bgImageDisplayMode,i=n.bgImageVAlign,r=n.bgImageHAlign,a=n.bgImageScale,o=n.bgSWFAlpha,s=n.bgSWF;A.getFromEnv("chart").fireChartInstanceEvent(u,{url:s,bgImageAlpha:o,error:e,bgImageDisplayMode:t,bgImageVAlign:i,bgImageHAlign:r,bgImageScale:a})}}),t}(0,r["default"])(t,e);var A=t.prototype;return A.getName=function(){return"background"},A.getType=function(){return"background"},A._getBackgroundCosmetics=function(){var e=this.getFromEnv("chart-attrib"),t=this.getFromEnv("color-manager"),A=this.getFromEnv("chartConfig").is3D?o.chartPaletteStr.chart3D:o.chartPaletteStr.chart2D;return{FCcolor:{color:(0,o.pluck)(e.bgcolor,t.getColor(A.bgColor)),alpha:(0,o.pluck)(e.bgalpha,t.getColor(A.bgAlpha)),angle:(0,o.pluck)(e.bgangle,t.getColor(A.bgAngle)),ratio:(0,o.pluck)(e.bgratio,t.getColor(A.bgRatio))}}},A.configureAttributes=function(){var e,t,A,n=this.config,i=this.getFromEnv("chart-attrib"),r=this.getFromEnv("chartConfig"),a=r.is3D,s=this.getFromEnv("color-manager"),l=n.bgImageDisplayMode=(0,o.pluck)(i.bgimagedisplaymode,"none").toLowerCase();n.bgSWF=(0,o.pluck)(i.bgimage,i.bgswf),n.bgSWFAlpha=(0,o.pluckNumber)(i.bgimagealpha,i.bgswfalpha,100),e=n.showBorder=(0,o.pluckNumber)(i.showborder,r.showBorder,a?0:1),n.borderWidth=Math.max(e?(0,o.pluckNumber)(i.borderthickness,1):0,0),n.borderRadius=(0,o.pluckNumber)(i.borderradius,0),n.borderDashStyle=(0,o.pluckNumber)(i.borderdashed,0)?(0,o.getDashStyle)((0,o.pluckNumber)(i.borderdashlen,4),(0,o.pluckNumber)(i.borderdashgap,2),void 0):h,n.borderAlpha=(0,o.pluck)(i.borderalpha,a?"100":s&&s.getColor("borderAlpha")),n.borderColor=(0,o.convertColor)((0,o.pluck)(i.bordercolor,a?"#666666":s&&s.getColor("borderColor")),n.borderAlpha),n.bgImageVAlign=t=(0,o.getValidValue)(i.bgimagevalign,"").toLowerCase(),n.bgImageHAlign=A=(i.bgimagehalign||"").toLowerCase(),n.bgImageScale=(0,o.pluckNumber)(i.bgimagescale,100),n.containerBackgroundColor=(0,o.getContainerBackgroundColor)(this.getFromEnv("chartInstance")),n.backgroundColor=this._getBackgroundCosmetics(),"tile"===l||"fill"===l||"fit"===l?("top"!==t&&"middle"!==t&&"bottom"!==t&&(n.bgImageVAlign="middle"),"left"!==A&&"middle"!==A&&"right"!==A&&(n.bgImageHAlign="middle")):("top"!==t&&"middle"!==t&&"bottom"!==t&&(n.bgImageVAlign="top"),"left"!==A&&"middle"!==A&&"right"!==A&&(n.bgImageHAlign="left"))},A.draw=function(){var e,t,A,n,i,r,a=this.getFromEnv("paper"),s=this.getGraphicalElement("backgroundElement"),l=this.getGraphicalElement("borderElement"),c=this.config,u=this.getFromEnv("chart"),h=this.getFromEnv("chartConfig"),d=c.backgroundColor,g=this.getFromEnv("animationManager"),p=this.getGraphicalElement("backgroundImage"),f=c.bgSWF,m=u.getChildContainer("backgroundGroup"),v=h.width,b=h.height,B=c.borderWidth||0,C=c.borderRadius,w=c.borderDashStyle,y=c.borderColor,x=c.bgSWFAlpha,F=B+","+B+","+(v-2*B)+","+(b-2*B),E=c.bgImageDisplayMode,S=c.bgImageVAlign,Q=c.bgImageHAlign,k=c.bgImageScale;a.canvas.style.backgroundColor=c.containerBackgroundColor,A={x:B,y:B,width:(r=v-2*B)<0?0:r,height:(i=b-2*B)>0?i:0,stroke:o.preDefStr.noneStr,fill:(0,o.toRaphaelColor)(d)},(e=g.setAnimation({el:s||"rect",attr:A,container:m,component:this,label:"rect"})).show(),s||this.addGraphicalElement("backgroundElement",e),A={x:B/2,y:B/2,width:(r=v-B)<0?0:r,height:(i=b-B)>0?i:0,stroke:y,"stroke-width":B,"stroke-dasharray":w,fill:o.preDefStr.noneStr,r:C||0},(t=g.setAnimation({el:l||"rect",attr:A,container:m,component:this,label:"rect"})).show(),l||this.addGraphicalElement("borderElement",t),f&&!this.getState("removed")?((n=g.setAnimation({el:p||"imagegrid",attr:{imagegrid:[E,S,Q,k,B,v,b],src:f,opacity:.01*x,"clip-rect":F},container:m,component:this,label:"imagegrid"})).show(),p||(this.addGraphicalElement("backgroundImage",n),n.on("load",c.handler.load),n.on("error",c.handler.error))):p&&this.removeGraphicalElement(p)},t}(a.ComponentInterface);t["default"]=d},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.background.background":function(){return{"rect.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"}]}}}}},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=A(254),r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var A=o(t);if(A&&A.has(e))return A.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=e[r]}n["default"]=e,A&&A.set(e,n);return n}(A(510)),a=n(A(321));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,A=new WeakMap;return(o=function(e){return e?A:t})(e)}function s(e,t){var A,n,r,a,o,s,l,c,h,d,g,p=u.stringConstants,f=t.replace(/\s/g,p.BLANK).toLowerCase(),m=[];if(f===p.BLANK||null==f)m=[e];else for(r=f.split(p.COMMASTRING),a=e.split(p.COMMASTRING),o=Math.max(r.length,a.length,1),s=r[0],l=a[0],d=/[\{\}]/gi,g=0;g<o;g++)c=(r[g]||s).replace(d,""),h=a[g]||l,"color"===c?m.push(h):"light"===c.substr(0,5)?(n=100-(n=-1===(A=c.indexOf("-"))?1:c.substr(A+1,c.length-A)),m.push((0,i.getLightColor)(h,n))):"dark"===c.substr(0,4)?(n=100-(n=-1===(A=c.indexOf("-"))?1:c.substr(A+1,c.length-A)),m.push((0,i.getDarkColor)(h,n))):m.push(c);return m}function l(e,t){var A,n,r=e.toString().split(u.stringConstants.COMMASTRING),a=[],o=100;for(n=0;n<t;n++)A=(0,i.pluckNumber)(r[n]),u.defined(A)&&(o=A),a[n]=o;return a.join()}function c(e,t){var A,n,i=e.split(u.stringConstants.COMMASTRING),r=[],a=0;for(n=0;n<t;n++)A=i[n],A=(A=isNaN(A)||void 0===A?0:Math.abs(Number(A)))>100?100:A,r[n]=A,a+=A;if(a=a>100?100:a,i.length<t)for(n=i.length;n<t;n++)r[n]=(100-a)/(t-i.length);return r[-1]=0,r.join()}var u=function(){function e(e){this.parseColorMix=s,this.parseAlphaList=l,this.parseRatioList=c,this.linkedItems={iapi:e},this.configure(),this.paletteColors=["AFD8F8","F6BD0F","8BBA00","FF8E46","008E8E","D64646","8E468E","588526","B3AA00","008ED6","9D080D","A186BE","CC6600","FDC689","ABA000","F26D7D","FFF200","0054A6","F7941C","CC3300","006600","663300","6DCFF6"]}var t=e.prototype;return t.configure=function(){var t=this,A=e.stringConstants,n=t.linkedItems.iapi,o=n.getFromEnv("dataSource").chart||{},s=t.paletteOptions=(0,i.extend2)((0,i.extend2)({},r),n.defaultPaletteOptions||{},!1,!0),l=t.themeEnabled=o.palettethemecolor;t.paletteIndex=(o.palette>0&&o.palette<6?o.palette:(0,i.pluckNumber)(n.paletteIndex,1))-1,t.iterator=0,t.paletteColors=s.paletteColors[t.themeEnabled?0:t.paletteIndex],e.defined(o.palettecolors)&&o.palettecolors!==A.BLANK&&(t.paletteColors=(0,a["default"])(o.palettecolors)?o.palettecolors.slice():o.palettecolors.split(/\s*\,\s*/)),t.paletteLen=t.paletteColors.length,t.useFlatColors=(0,i.pluckNumber)(o.useflatdataplotcolor,n.useFlatColor,0),l&&(t.paletteIndex=5,s.bgColor[5]=(0,i.getLightColor)(l,35)+A.COMMASTRING+(0,i.getLightColor)(l,10),s.bgAngle[5]=270,s.bgRatio[5]=A.BGRATIOSTRING,s.bgAlpha[5]="50,50",s.canvasBgColor[5]=A.COLOR_WHITE,s.canvasBgAngle[5]=0,s.canvasBgAlpha[5]=A.HUNDREDSTRING,s.canvasBgRatio[5]=A.BLANK,s.canvasBorderColor[5]=(0,i.getDarkColor)(l,80),s.canvasBorderAlpha[5]=100,s.showShadow[5]=1,s.divLineColor[5]=(0,i.getDarkColor)(l,20),s.divLineAlpha[5]=40,s.altHGridColor[5]=(0,i.getLightColor)(l,20),s.altHGridAlpha[5]=15,s.altVGridColor[5]=(0,i.getLightColor)(l,80),s.altVGridAlpha[5]=10,s.anchorBgColor[5]=A.COLOR_WHITE,s.toolTipBgColor[5]=A.COLOR_WHITE,s.toolTipBorderColor[5]=(0,i.getDarkColor)(l,80),s.baseFontColor[5]=l.split&&l.split(A.COMMASTRING)[0],s.borderColor[5]=(0,i.getDarkColor)(l,60),s.borderAlpha[5]=50,s.legendBgColor[5]=A.COLOR_WHITE,s.legendBorderColor[5]=(0,i.getDarkColor)(l,80),s.plotGradientColor[5]=A.COLOR_WHITE,s.plotBorderColor[5]=(0,i.getDarkColor)(l,85),s.plotFillColor[5]=(0,i.getDarkColor)(l,85),s.bgColor3D[5]=A.COLOR_WHITE,s.bgAlpha3D[5]=A.HUNDREDSTRING,s.bgAngle3D[5]=90,s.bgRatio3D[5]=A.BLANK,s.canvasBgColor3D[5]=(0,i.getLightColor)(l,20),s.canvasBaseColor3D[5]=(0,i.getLightColor)(l,40),s.divLineColor3D[5]=(0,i.getDarkColor)(l,20),s.divLineAlpha3D[5]=40,s.legendBgColor3D[5]=A.COLOR_WHITE,s.legendBorderColor3D[5]=(0,i.getDarkColor)(l,80),s.toolTipbgColor3D[5]=A.COLOR_WHITE,s.toolTipBorderColor3D[5]=(0,i.getDarkColor)(l,80),s.baseFontColor3D[5]=l.split&&l.split(A.COMMASTRING)[0],s.anchorBgColor3D[5]=A.COLOR_WHITE,s.tickColor&&(s.tickColor[5]=(0,i.getDarkColor)(l,90)),s.trendDarkColor&&(s.trendDarkColor[5]=(0,i.getDarkColor)(l,90)),s.trendLightColor&&(s.trendLightColor[5]=(0,i.getLightColor)(l,s.TrendLightShadeOffset)),s.msgLogColor&&(s.msgLogColor[5]=(0,i.getLightColor)(l,80)),s.dialColor&&(s.dialColor[5]=(0,i.getDarkColor)(l,95)+",FFFFFF,"+(0,i.getDarkColor)(l,95)),s.dialBorderColor&&(s.dialBorderColor[5]=(0,i.getDarkColor)(l,95)+",FFFFFF,"+(0,i.getDarkColor)(l,95)),s.pivotColor&&(s.pivotColor[5]=(0,i.getLightColor)(l,95)+",FFFFFF,"+(0,i.getLightColor)(l,95)),s.pivotBorderColor&&(s.pivotBorderColor[5]=(0,i.getDarkColor)(l,95)+",FFFFFF,"+(0,i.getDarkColor)(l,95)),s.pointerBorderColor&&(s.pointerBorderColor[5]=(0,i.getDarkColor)(l,75)),s.pointerBgColor&&(s.pointerBgColor[5]=(0,i.getDarkColor)(l,75)),s.thmBorderColor&&(s.thmBorderColor[5]=(0,i.getDarkColor)(l,90)),s.thmFillColor&&(s.thmFillColor[5]=(0,i.getLightColor)(l,55)),s.gaugeBorderColor&&(s.gaugeBorderColor[5]=(0,i.getDarkColor)(l,90)),s.gaugeFillColor&&(s.gaugeFillColor[5]=(0,i.getLightColor)(l,55)),s.cylFillColor&&(s.cylFillColor[5]=(0,i.getLightColor)(l,55)),s.periodColor&&(s.periodColor[5]=(0,i.getLightColor)(l,10)),s.winColor&&(s.winColor[5]="666666"),s.lossColor&&(s.lossColor[5]="CC0000"),s.drawColor&&(s.drawColor[5]="666666"),s.scorelessColor&&(s.scorelessColor[5]="FF0000"),s.gridColor&&(s.gridColor[5]=(0,i.getLightColor)(l,30)),s.categoryBgColor&&(s.categoryBgColor[5]=(0,i.getLightColor)(l,10)),s.dataTableBgColor&&(s.dataTableBgColor[5]=(0,i.getLightColor)(l,10)),s.gridResizeBarColor&&(s.gridResizeBarColor[5]=(0,i.getDarkColor)(l,90)),s.scrollBarColor&&(s.scrollBarColor[5]=(0,i.getLightColor)(l,50)))},t.getColor=function(e){return this.paletteOptions[e][this.paletteIndex]},t.getPlotColor=function(e){var t=this,A=t.paletteColors,n=t.useFlatColors?t.getColor("plotFillColor"):A[e%t.paletteLen];return n||(t.iterator===t.paletteLen&&(t.iterator=0),n=A[t.iterator],t.iterator+=1),n},e}();u.stringConstants={BLANK:"",COMMASTRING:",",BGRATIOSTRING:"0,100",COLOR_WHITE:"FFFFFF",HUNDREDSTRING:"100"},u.defined=function(e){return null!=e};var h=u;t["default"]=h},function(e,t,A){"use strict";t.__esModule=!0,t.anchorBgColor3D=t.baseFontColor3D=t.toolTipBorderColor3D=t.toolTipbgColor3D=t.legendBorderColor3D=t.legendBgColor3D=t.divLineAlpha3D=t.divLineColor3D=t.canvasBaseColor3D=t.canvasBgColor3D=t.bgRatio3D=t.bgAngle3D=t.bgAlpha3D=t.bgColor3D=t.plotFillColor=t.plotBorderColor=t.plotGradientColor=t.legendBorderColor=t.legendBgColor=t.borderAlpha=t.borderColor=t.baseFontColor=t.toolTipBorderColor=t.toolTipBgColor=t.anchorBgColor=t.altVGridAlpha=t.altVGridColor=t.altHGridAlpha=t.altHGridColor=t.divLineAlpha=t.divLineColor=t.showShadow=t.canvasBorderAlpha=t.canvasBorderColor=t.canvasBgRatio=t.canvasBgAlpha=t.canvasBgAngle=t.canvasBgColor=t.bgAlpha=t.bgRatio=t.bgAngle=t.bgColor=t.paletteColors=void 0;var n=["AFD8F8","F6BD0F","8BBA00","FF8E46","008E8E","D64646","8E468E","588526","B3AA00","008ED6","9D080D","A186BE","CC6600","FDC689","ABA000","F26D7D","FFF200","0054A6","F7941C","CC3300","006600","663300","6DCFF6"],i=[n,n,n,n,n],r=[270,270,270,270,270],a=["0,100","0,100","0,100","0,100","0,100"],o=["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],s=["100","100","100","100","100"],l=["","","","",""],c=[100,100,100,90,100],u=["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],h=["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],d=["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],g=["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],p=["333333","8A8A8A","FFFFFF","FFFFFF","FFFFFF"],f=["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],m=["100","100","100","100","100"],v=["","","","",""],b=[100,100,100,100,100],B=["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],C=["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"];t.anchorBgColor3D=C,t.baseFontColor3D=["49563A","4A4A4A","49351D","48505A","681C09"],t.toolTipBorderColor3D=["49563A","666666","49351D","576373","681C09"],t.toolTipbgColor3D=B,t.legendBorderColor3D=["C6CFB8","C8C8C8","DFC29C","CFD5DA","FAD1C7"],t.legendBgColor3D=["F0F3ED","F3F3F3","F7F0E8","EEF0F2","FEF8F5"],t.divLineAlpha3D=b,t.divLineColor3D=["ACBB99","A4A4A4","BE9B6B","7C8995","D49B8B"],t.canvasBaseColor3D=["ACBB99","BCBCBD","C8A06C","96A4AF","FAC7BC"],t.canvasBgColor3D=["DDE3D5","D8D8D7","EEDFCA","CFD2D8","FEE8E0"],t.bgRatio3D=v,t.bgAngle3D=[90,90,90,90,90],t.bgAlpha3D=m,t.bgColor3D=f,t.plotFillColor=["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],t.plotBorderColor=p,t.plotGradientColor=g,t.legendBorderColor=["545454","545454","415D6F","845001","D55979"],t.legendBgColor=d,t.borderAlpha=[50,50,50,50,50],t.borderColor=["767575","545454","415D6F","845001","68001B"],t.baseFontColor=["555555","60634E","025B6A","A15E01","68001B"],t.toolTipBorderColor=["545454","545454","415D6F","845001","68001B"],t.toolTipBgColor=h,t.anchorBgColor=u,t.altVGridAlpha=[10,20,10,15,10],t.altVGridColor=["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],t.altHGridAlpha=[50,35,10,20,15],t.altHGridColor=["EEEEEE","D8DCC5","99C4CD","DEC49C","FEC1D0"],t.divLineAlpha=[40,45,65,40,30],t.divLineColor=["717170","7B7D6D","92CDD6","965B01","68001B"],t.showShadow=[0,1,1,1,1],t.canvasBorderAlpha=c,t.canvasBorderColor=["545454","545454","415D6F","845001","68001B"],t.canvasBgRatio=l,t.canvasBgAlpha=s,t.canvasBgAngle=[0,0,0,0,0],t.canvasBgColor=o,t.bgAlpha=["50,50","60,50","40,20","20,10","30,30"],t.bgRatio=a,t.bgAngle=r,t.bgColor=["CBCBCB,E9E9E9","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],t.paletteColors=i},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"*.*.*":{"*.disappearing":[{finalAttr:{opacity:0},slot:"initial",callback:function(){this.hide()}}]}}},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n=function(e,t){var A=Number(e),n=Number(t)-A;return function(e){return n*e+A}};t["default"]=n},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=function(e){var t,A,n=e.getChildren("canvas")[0],o=n.getChildren("axisRefVisualCartesian")[0],s={zoomable:!0,pannable:!0},l=e._feedAxesRawData(),c=function(e){var t=e.sender;o.addexplicitDrawItems(t.getId(),t),o.asyncDraw()};(0,i.componentFactory)(e,r["default"],"yAxis",1,l.yAxisConf),(0,i.componentFactory)(e,a["default"],"xAxis",1,l.xAxisConf),t=e.getChildren("yAxis")[0],A=e.getChildren("xAxis")[0],t.setLinkedItem("canvas",n),A.setLinkedItem("canvas",n),o.setLinkedItem(t.getId(),t),o.setLinkedItem(A.getId(),A),o.addExtEventListener("visiblerangeset",c,A),o.addExtEventListener("visiblerangeset",c,t),n.attachAxis(A,!1,e.zoomX?s:{}),n.attachAxis(t,!0,e.zoomY?s:{}),e._setCategories()};var i=A(254),r=n(A(514)),a=n(A(562))},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=n(A(515)),a=n(A(518)),o=n(A(540)),s=n(A(541)),l=n(A(542)),c=A(549),u=A(254),h=function(e){function t(){var t;return(t=e.call(this)||this).config.scale=new a["default"],t}(0,i["default"])(t,e);var A=t.prototype;return A.getName=function(){return"numeric"},A.generateTicks=function(){var e,t,A,n=this.getScale(),i=this.config,r=i.numDivLines+1,a=n.getDomain(),l=a[0],c=a[1],u=i.axisRange,h=u.min,d=u.max,g=i.dataLimit;return l===h&&c===d?((0,s["default"])(g.min,g.max,n,i),i.ticks):(e=n.ticks(r),t=Math.abs(e[1]-e[0]),l===h&&-1===e.indexOf(h)&&e.unshift(h),c===d&&-1===e.indexOf(d)&&e.push(d),(A=Math.abs(h%t))&&(h-=A),(A=Math.abs(d%t))&&(d-=A),i._allTicks=(0,o["default"])(h,d,t).concat(d),u.tickInterval=t,e)},A.setTickValues=function(e){this.config.userTicks=e||[],this.config.tickValues={tickValue:[]}},A._parseTickValues=function(e){var t,A,n,i,r=this.getFromEnv("chart"),a=this.config,o=e&&e.length,s=0;for(a.tickValues={},t=a.tickValues.tickValue=[],n=0;n<o;n+=1)if(A=(0,u.extend2)({},e[n]),i=Number(A.x),!A.vline){if((0,c.extractStyleInfo)(A,r),!i&&0!==i)continue;A.x=i,a.irregularCatAxis=!0,t.push(A),t[s].label=(0,u.parseUnsafeString)(t[s].label),s+=1}a.oriCatLen=s},A.calculateTicksOnLabelMode=function(){var e,t,A,n,i,r,a,o=this.config,s=o.xAxisLabelMode,l=Object.assign([],o.userTicks),c=this.getFromEnv("number-formatter");if("mixed"===s||"auto"===s){if(t=[],e=c.xAxis,"mixed"===s)for(A=0,i=l.length;A<i;A+=1)t[l[A].x||l[A].y||A]=!0;else l=[];for(a=this.getAxisConfig(),r=o.ticks,n=0;n<r.length;++n)t[A=r[n]]||l.push({label:u.BLANKSTRING+e.call(c,A),x:A,showverticalline:0===A?a.showZeroPlane:1,isNumeric:!0,linecolor:0===A?a.zeroPlaneColor:a.divLineColor,linealpha:0===A?a.zeroPlaneAlpha:a.divLineAlpha,linethickness:0===A?a.zeroPlaneThickness:a.divLineThickness,linedashed:a.divLineIsDashed,linedashLen:a.divLineDashLen,linedashgap:a.divLineDashGap})}this._parseTickValues(l)},A.getInterval=function(){return this.config.axisRange.tickInterval},A._setAxisRange=function(e){var t,A,n,i=e.min,a=e.max,o=this.config,l=o.axisRange,c=o.dataLimit,u=o.dependentInfo;if(!(i>a))if(c.min===i&&c.max===a||(A=!0),void 0===o.visibleMin||o.setPadding||A){var h=(0,r["default"])([i,a,c.min,c.max]);if(i=h[0],a=h[1],c.min=i,c.max=a,this.fireEvent("dataLimitSet",Object.assign({},c)),u){if(u.limit){if(!(t=u.dataLimit))return;var d=(0,r["default"])([i,a,t.min,t.max]);i=d[0],a=d[1],o.isDataLimitSet=!0}if(u.count&&void 0===u.numDivLines)return}(0,s["default"])(i,a,this.getScale(),o),n=o.isZeroTickForced?3:2,this.fireEvent("divlinesSet",o.ticks.length-n),o.tickValues&&this.calculateTicksOnLabelMode(),this.setVisibleConfig(l.min,l.max)}else o.setPadding=!1},A.getTicks=function(){return this.config.ticks},t}(l["default"]);h.prototype.setDataLimit=c.setDataLimit;var d=h;t["default"]=d},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(516)),r=n(A(517)),a=function(e,t){return void 0===e&&(e=[]),[(0,i["default"])(e,t),(0,r["default"])(e,t)]};t["default"]=a},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n=function(e,t){void 0===e&&(e=[]);var A,n,i=e.length,r=-1;if("function"==typeof t){for(;++r<i;)if(null!=(A=t(e[r],r,e))&&A<=A)for(n=A;++r<i;)null!=(A=t(e[r],r,e))&&A<n&&(n=A)}else for(;++r<i;)if(null!=(A=e[r])&&A<=A)for(n=A;++r<i;)null!=(A=e[r])&&A<n&&(n=A);return n};t["default"]=n},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n=function(e,t){void 0===e&&(e=[]);var A,n,i=e.length,r=-1;if("function"==typeof t){for(;++r<i;)if(null!=(A=t(e[r],r,e))&&A>=A)for(n=A;++r<i;)null!=(A=t(e[r],r,e))&&A>n&&(n=A)}else for(;++r<i;)if(null!=(A=e[r])&&A>=A)for(n=A;++r<i;)null!=(A=e[r])&&A>n&&(n=A);return n};t["default"]=n},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=c(A(519)),a=c(A(535)),o=n(A(512)),s=A(536);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,A=new WeakMap;return(l=function(e){return e?A:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var A=l(t);if(A&&A.has(e))return A.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=e[r]}return n["default"]=e,A&&A.set(e,n),n}var u=function(e){function t(){return e.call(this,r.deInterpolateLinear,o["default"])||this}(0,i["default"])(t,e);var A=t.prototype;return A.ticks=function(e){void 0===e&&(e=7);var t=this.getDomain();return this.majorTicks=(0,a["default"])(t[0],t[t.length-1],e)},A.tickFormat=function(e,t){return(0,s.tickFormat)(this.getDomain(),e,t,this._localeConverter)},A.nice=function(e){void 0===e&&(e=7);var t,A=this.getDomain(),n=0,i=A.length-1,r=A[n],o=A[i];return o<r&&(t=r,r=o,o=t,t=n,n=i,i=t),(t=(0,a.tickIncrement)(r,o,e))>0?(r=Math.floor(r/t)*t,o=Math.ceil(o/t)*t,t=(0,a.tickIncrement)(r,o,e)):t<0&&(r=Math.ceil(r*t)/t,o=Math.floor(o*t)/t,t=(0,a.tickIncrement)(r,o,e)),t>0?(A[n]=Math.floor(r/t)*t,A[i]=Math.ceil(o/t)*t,this.setDomain(A)):t<0&&(A[n]=Math.ceil(r*t)/t,A[i]=Math.floor(o*t)/t,this.setDomain(A)),this},A.copy=function(){return(0,r.copyScale)(this,new t)},A.minorTicks=function(e,t){void 0===e&&(e=4),void 0===t&&(t=this.majorTicks||this.ticks());var A,n,i,r,a=t.length,o=t[1]-t[0],s=[];for(r=0;r<a-1;++r)for(i=t[r],n=o/(Number(e)+1),A=1;A<=e;A+=1)s.push(i+n*A);return s},A.contextTicks=function(){return this.contextTicksArr||[]},A.getType=function(){return"linear"},t}(r["default"]);t["default"]=u},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t.copyScale=function(e,t){return t.setInterpolate(e.getInterpolate()).setClamp(e.getClamp()).setDomain(e.getDomain()).setRange(e.getRange())},t.deInterpolateLinear=h,t.bimap=u,t["default"]=void 0;var i=n(A(520)),r=n(A(522)),a=n(A(521)),o=n(A(523)),s=A(524),l=0,c=[0,1];function u(e,t,A,n){var i,r;return e[0]>e[1]?(i=A(e[1],e[0]),r=n(t[1],t[0])):(i=A(e[0],e[1]),r=n(t[0],t[1])),function(e){return r(i(e))}}function h(e,t){var A=Number(e),n=Number(t)-A;return n?function(e){return(e-A)/n}:(0,a["default"])(n)}var d=function(){function e(e,t){this.domain=c,this.range=c,this.deInterpolate=e,this.reInterpolate=t,this.interpolate=i["default"],this.clamp=!1,this.input=null,this.output=null,this.locale=o["default"],this._localeConverter=new s.NumberConverter(o["default"]),this._rescale(),this._id="scale_"+l++}var t=e.prototype;return t._rescale=function(){return this.input=null,this.output=null,this},t.setDomain=function(e){return void 0===e&&(e=c),this.domain=e.map(Number),this._rescale()},t.getDomain=function(){return this.domain.slice()},t.setRange=function(e){return void 0===e&&(e=c),this.range=e.slice(),this._rescale()},t.getRange=function(){return this.range.slice()},t.setInterpolate=function(e){return void 0===e&&(e=i["default"]),this.interpolate=e,this._rescale()},t.getInterpolate=function(){return this.interpolate},t.setClamp=function(e){return void 0===e&&(e=!1),this.clamp=!!e,this._rescale()},t.getClamp=function(){return this.clamp},t.rangeRound=function(e){return void 0===e&&(e=c),this.range=e.slice(),this.interpolate=r["default"],this._rescale()},t.getRangeValue=function(e){var t=null!==e?e:void 0,A=this.getClamp()?function(e){return function(t,A){var n=Number(t),i=Number(A),r=e(n,i);return function(e){return e<=n?0:e>=i?1:r(e)}}}(this.deInterpolate):this.deInterpolate;return this.output||(this.output=u(this.getDomain(),this.getRange(),A,this.interpolate)),this.output(Number(t))},t.getDomainValue=function(e){var t=this.getClamp()?function(e){return function(t,A){var n=Number(t),i=Number(A),r=e(n,i);return function(e){return e<=0?n:e>=1?i:r(e)}}}(this.reInterpolate):this.reInterpolate;return this.input||(this.input=u(this.getRange(),this.getDomain(),h,t)),this.input(Number(e))},t.setLocale=function(e){return void 0===e&&(e=o["default"]),this.locale=e,this._localeConverter=new s.NumberConverter(e),this},t.getLocale=function(){return this.locale},t.getId=function(){return this._id},e}();t["default"]=d},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(512)),r=n(A(521));function a(e){return null!=e}var o=function(e,t){var A=i["default"];return a(t)&&a(e)&&"boolean"!=typeof t?A(e,t):(0,r["default"])(t)};t["default"]=o},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n=function(e){return function(){return e}};t["default"]=n},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n=function(e,t){var A=Number(e),n=Number(t)-A;return function(e){return Math.round(n*e+A)}};t["default"]=n},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n={decimal:".",thousands:",",grouping:[3],prefix:"$",suffix:""};t["default"]=n},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=t.NumberConverter=void 0;var i=n(A(523)),r=n(A(525)),a=n(A(527)),o=n(A(533)),s=n(A(534)),l=n(A(528)),c=function(e){return e},u=function(){function e(e){this.localeInfo={group:e.grouping&&e.thousands?(0,o["default"])(e.grouping,e.thousands):c,prefix:e.prefix,suffix:e.suffix,decimal:e.decimal,numerals:e.numerals?(0,s["default"])(e.numerals):c,percent:e.percent||"%",prefixes:e.prefixes||["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]}}var t=e.prototype;return t.formatter=function(e){return new a["default"](e,this.localeInfo)},t.formatPrefix=function(e,t){var A=new l["default"](e);A.type="f";var n=this.localeInfo.prefix,i=this.localeInfo.suffix,o=Object.assign({},this.localeInfo,{prefix:"",suffix:""}),s=new a["default"](A,o),c=3*Math.max(-8,Math.min(8,Math.floor((0,r["default"])(t)/3))),u=Math.pow(10,-c),h=this.localeInfo.prefixes[8+c/3];return{format:function(e){return n+s.format(u*e)+h+i},setCustomPrefix:function(e){return s.setCustomPrefix(e),this},getCustomPrefix:function(e){return s.getCustomPrefix(e)},setCustomSuffix:function(e){return s.setCustomSuffix(e),this},getCustomSuffix:function(e){return s.getCustomSuffix(e)}}},e}();t.NumberConverter=u;var h=new u(i["default"]);t["default"]=h},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(526)),r=function(e){var t=(0,i["default"])(Math.abs(e));return t?t[1]:NaN};t["default"]=r},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n=function(e,t){var A,n,i;return(A=(i=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0?null:[(n=i.slice(0,A)).length>1?n[0]+n.slice(2):n,+i.slice(A+1)]};t["default"]=n},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(528)),r=n(A(529)),a=n(A(532)),o=A(530),s=function(e){return null==e},l=function(){function e(e,t){this.specifier=new i["default"](e),this.localeInfo=t;var A=this.specifier.symbol;this.fill=this.specifier.fill,this.align=this.specifier.align,this.sign=this.specifier.sign,this.zero=this.specifier.zero,this.width=this.specifier.width,this.comma=this.specifier.comma,this.precision=this.specifier.precision,this.trim=this.specifier.trim,this.type=this.specifier.type,"n"===this.type?(this.comma=!0,this.type="g"):r["default"][this.type]||(s(this.precision)&&(this.precision=12),this.trim=!0,this.type="g"),(this.zero||"0"===this.fill&&"="===this.align)&&(this.zero=!0,this.fill="0",this.align="="),"$"===A?this.prefix=this.localeInfo.prefix:"#"===A&&/[boxX]/.test(this.type)?this.prefix="0"+this.type.toLowerCase():this.prefix="","$"===A?this.suffix=this.localeInfo.suffix:/[%p]/.test(this.type)?this.suffix=this.localeInfo.percent:this.suffix="",this.formatType=r["default"][this.type],this.mayHaveSuffix=/[defgprs%]/.test(this.type),s(this.precision)?this.precision=6:/[gprs]/.test(this.type)?this.precision=Math.max(1,Math.min(21,this.precision)):this.precision=Math.max(0,Math.min(20,this.precision)),this.setCustomPrefix(""),this.setCustomSuffix("")}var t=e.prototype;return t.format=function(e){var t,A,n,i,r,s,l=this.prefix,c=this.suffix,u=this.formatType,h=e;if("c"===this.type)c=u(h)+c,h="";else if(t=(h=+h)<0,h=u(Math.abs(h),this.precision),this.trim&&(h=(0,a["default"])(h)),t&&0==+h&&(t=!1),l=t?("("===this.sign?this.sign:"-")+l:"-"===this.sign||"("===this.sign?""+l:this.sign+l,c="s"===this.type?this.localeInfo.prefixes[8+o.prefixExponent/3]+c:""+c,c+=t&&"("===this.sign?")":"",this.mayHaveSuffix)for(i=-1,r=h.length;++i<r;)if((s=h.charCodeAt(i))<48||s>57){c=(46===s?this.localeInfo.decimal+h.slice(i+1):h.slice(i))+c,h=h.slice(0,i);break}switch(this.comma&&!this.zero&&(h=this.localeInfo.group(h,Infinity)),n=(A=l.length+h.length+c.length)<this.width?new Array(this.width-A+1).join(this.fill):"",this.comma&&this.zero&&(h=this.localeInfo.group(n+h,n.length?this.width-c.length:Infinity),n=""),this.align){case"<":h=l+h+c+n;break;case"=":h=l+n+h+c;break;case"^":A=n.length/2,h=n.slice(0,A)+l+h+c+n.slice(A);break;default:h=n+l+h+c}return this.getCustomPrefix()+this.localeInfo.numerals(h)+this.getCustomSuffix()},t.setCustomPrefix=function(e){return this._customPrefix=e+"",this},t.getCustomPrefix=function(){return this._customPrefix},t.setCustomSuffix=function(e){return this._customSuffix=e+"",this},t.getCustomSuffix=function(){return this._customSuffix},t.toString=function(){return this.specifier.toString()},e}();t["default"]=l},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i,i=function(e){return null==e},r=function(){function e(e){var t=n.exec(e);if(!t)throw new Error("Invalid number format specifier: "+e);this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=Boolean(t[5]),this.width=t[6]&&Number(t[6]),this.comma=Boolean(t[7]),this.precision=t[8]&&Number(t[8].slice(1)),this.trim=Boolean(t[9]),this.type=t[10]||""}return e.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(i(this.width)?"":Math.max(1,0|this.width))+(this.comma?",":"")+(i(this.precision)?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type},e}();t["default"]=r},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(530)),r=n(A(531)),a={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return(0,r["default"])(100*e,t)},r:r["default"],s:i["default"],X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};t["default"]=a},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=t.prefixExponent=void 0;var i,r=n(A(526));t.prefixExponent=i;var a=function(e,A){var n,a,o,s,l=(0,r["default"])(e,A);return l?(n=l[0],(o=(a=l[1])-(t.prefixExponent=i=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1)===(s=n.length)?n:o>s?n+new Array(o-s+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+(0,r["default"])(e,Math.max(0,A+o-1))[0]):e+""};t["default"]=a},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(526)),r=function(e,t){var A,n,r=(0,i["default"])(e,t);return r?(A=r[0],n=r[1],Number(n)<0?"0."+new Array(-n).join("0")+A:A.length>n+1?A.slice(0,n+1)+"."+A.slice(n+1):A+new Array(n-A.length+2).join("0")):e+""};t["default"]=r},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n=function(e){for(var t,A=e.length,n=1,i=-1;n<A;++n)if("."===e[n])i=t=n;else if("0"===e[n])0===i&&(i=n),t=n;else if(i>0){if(!+e[n])break;i=0}return i>0?e.slice(0,i)+e.slice(t+1):e};t["default"]=n},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n=function(e,t){return function(A,n){for(var i=A.length,r=[],a=0,o=e[0],s=0;i>0&&o>0&&(s+o+1>n&&(o=Math.max(1,n-s)),r.push(A.substring(i-=o,i+o)),!((s+=o+1)>n));)o=e[a=(a+1)%e.length];return r.reverse().join(t)}};t["default"]=n},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n=function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}};t["default"]=n},function(e,t,A){"use strict";t.__esModule=!0,t.tickIncrement=o,t.tickStep=function(e,t,A){void 0===e&&(e=0);void 0===t&&(t=1);void 0===A&&(A=7);var a=Math.abs(t-e)/Math.max(0,A),o=Math.floor(Math.log(a)/Math.LN10),s=Math.pow(10,o),l=a/s;l>=n?s*=10:l>=i?s*=5:l>=r&&(s*=2);return t<e?-s:s},t["default"]=void 0;var n=Math.sqrt(50),i=Math.sqrt(10),r=Math.sqrt(2);function a(e){return e>=n?10:e>=i?5:e>=r?2:1}function o(e,t,A){void 0===e&&(e=0),void 0===t&&(t=1),void 0===A&&(A=7);var n=(t-e)/Math.max(0,A),i=Math.floor(Math.log(n)/Math.LN10),r=n/Math.pow(10,i);return i>=0?a(r)*Math.pow(10,i):-Math.pow(10,-i)/a(r)}var s=function(e,t,A){void 0===e&&(e=0),void 0===t&&(t=1),void 0===A&&(A=7);var n,i,r,a=-1,s=[],l=+t,c=+e,u=+A;if(c===l&&u>0)return[c];if((n=l<c)&&(i=c,c=l,l=i),0===(r=o(c,l,u))||!isFinite(r))return[];if(r>0)for(c=Math.ceil(c/r),l=Math.floor(l/r),i=Math.ceil(l-c+1);++a<i;)s[a]=(c+a)*r;else for(c=Math.floor(c*r),l=Math.ceil(l*r),i=Math.ceil(c-l+1);++a<i;)s[a]=(c-a)/r;return n&&s.reverse(),s};t["default"]=s},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t.tickIncrement=g,t.tickStep=p,t.tickFormat=function(e,t,A,n){void 0===n&&(n=i["default"]);var l,c,u,d=e[0],g=e[e.length-1],f=p(d,g,h(t)?7:t);switch((u=new o["default"](h(A)?",f":A)).type){case"s":return c=Math.max(Math.abs(d),Math.abs(g)),l=(0,s["default"])(f,c),h(u.precision)&&!isNaN(l)&&(u.precision=l),function(e){return n.formatPrefix(u,c).format(e)};case"":case"e":case"g":case"p":case"r":l=(0,a["default"])(f,Math.max(Math.abs(d),Math.abs(g))),h(u.precision)&&!isNaN(l)&&(u.precision=l-("e"===u.type));break;case"f":case"%":l=(0,r["default"])(f),h(u.precision)&&!isNaN(l)&&(u.precision=l-2*("%"===u.type))}return function(e){return n.formatter(u).format(e)}},t["default"]=void 0;var i=n(A(524)),r=n(A(537)),a=n(A(538)),o=n(A(528)),s=n(A(539)),l=Math.sqrt(50),c=Math.sqrt(10),u=Math.sqrt(2),h=function(e){return null==e};function d(e){return e>=l?10:e>=c?5:e>=u?2:1}function g(e,t,A){void 0===e&&(e=0),void 0===t&&(t=1),void 0===A&&(A=7);var n=(t-e)/Math.max(0,A),i=Math.floor(Math.log(n)/Math.LN10),r=n/Math.pow(10,i);return i>=0?d(r)*Math.pow(10,i):-Math.pow(10,-i)/d(r)}function p(e,t,A){void 0===e&&(e=0),void 0===t&&(t=1),void 0===A&&(A=7);var n=Math.abs(t-e)/Math.max(0,A),i=Math.floor(Math.log(n)/Math.LN10),r=Math.pow(10,i),a=n/r;return a>=l?r*=10:a>=c?r*=5:a>=u&&(r*=2),t<e?-r:r}var f=function(e,t,A){void 0===e&&(e=0),void 0===t&&(t=1),void 0===A&&(A=7);var n,i,r,a,o,s,l=-1,c=[];if(s=+A,(a=+e)===(o=+t)&&s>0)return[a];if((n=o<a)&&(i=a,a=o,o=i),0===(r=g(a,o,s))||!isFinite(r))return[];if(r>0)for(a=Math.ceil(a/r),o=Math.floor(o/r),i=Math.ceil(o-a+1);++l<i;)c[l]=(a+l)*r;else for(a=Math.floor(a*r),o=Math.ceil(o*r),i=Math.ceil(a-o+1);++l<i;)c[l]=(a-l)/r;return n&&c.reverse(),c};t["default"]=f},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(525)),r=function(e){return Math.max(0,-(0,i["default"])(Math.abs(e)))};t["default"]=r},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(525)),r=function(e,t){var A=Math.abs(e),n=Math.abs(t)-A;return Math.max(0,(0,i["default"])(n)-(0,i["default"])(A))+1};t["default"]=r},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(525)),r=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,i["default"])(t)/3)))-(0,i["default"])(Math.abs(e)))};t["default"]=r},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n=function(){var e,t,A,n,i,r=[];if(arguments.length>2?(e=arguments.length<=0?undefined:arguments[0],t=arguments.length<=1?undefined:arguments[1],A=arguments.length<=2?undefined:arguments[2]):1===arguments.length?(e=0,t=arguments.length<=0?undefined:arguments[0],A=1):(e=arguments.length<=0?undefined:arguments[0],t=arguments.length<=1?undefined:arguments[1],A=1),n=Math.floor(Math.max(0,Math.ceil((t-e)/A))),isFinite(n))for(i=0;i<n;++i)r.push(A*i+e);return r};t["default"]=n},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(540)),r=A(519),a=n(A(512)),o=n(A(516)),s=A(254),l=(0,r.bimap)([2,100],[80,20],r.deInterpolateLinear,a["default"]),c=function(e,t,A,n){var r,a,c,u,h,d,g,p,f,m,v,b,B,C,w,y,x,F,E,S,Q,k,L,U=t,I=e,T=n.isPercent?0:n.axisMinValue,N=n.isPercent?100:n.axisMaxValue,D=!!n.adjustDiv,P=n.numDivLines,M=!!n.setAdaptiveMin,O=n.axisRange,H=Math.pow(2,-24),_=!0,R=.2,V=!0,G=n.xAxisLabelMode,K=n.dependentInfo;if(r=n.majorTMNumber!==s.UNDEF?Math.max(0,P-2):P,K&&K.count&&!K.limit&&K.numDivLines!==s.UNDEF&&(r=P=K.numDivLines,D=!1),a=r+1,I===s.UNDEF&&U===s.UNDEF&&(I=0,U=1,_=!1),U===I&&0===U&&(U=1,_=!1),"categories"!==G&&"mixed"!==G||(_=!1),_?(u=Math.floor(Math.log(Math.abs(U))/Math.LN10),c=Math.floor(Math.log(Math.abs(I))/Math.LN10),h=Math.max(c,u),d=Math.pow(10,h),Math.abs(U)/d<2&&Math.abs(I)/d<2&&(h--,d=Math.pow(10,h)),b=Math.floor(Math.log(U-I)/Math.LN10),B=Math.pow(10,b),U-I>0&&d/B>=10&&(d=B,h=b),p=(Math.floor(U/d)+1)*d,f=I<0?(Math.floor(Math.abs(I/d))+1)*d*-1:M?(f=Math.floor(Math.abs(I/d)-1)*d)<0?0:f:0,!M&&U<=0&&(p=0),m=!(!N&&0!==N),v=!(!T&&0!==T),n.freezeLimit||(!1===m||!0===m&&Number(N)<U&&U-Number(N)>H?(U=p,m=!1):U=Number(N),!1===v||!0===v&&Number(T)>I&&Number(T)-I>H?(I=f,v=!1):I=Number(T))):(v=!(!T&&0!==T),!0===(m=!(!N&&0!==N))&&(Number(N)>=U||t===s.UNDEF)?U=Number(N):m=!1,!0===v&&(Number(T)<=I||e===s.UNDEF)?I=Number(T):v=!1),v&&!m&&t===s.UNDEF&&(U=I<0?0:I+1),m&&!v&&e===s.UNDEF&&(I=U>0?0:U-1),x=[I,U],A.setDomain(x),D&&!n.freezeLimit)m||v?(Q=(C=(S=function(e,t,A,n,i,r){for(var a,o,l,c,u,h,d,g,p,f,m,v,b=t-e,B=e,C=Math.ceil(A*(1-n)),w=Math.floor(A*(1+n)),y=[],x=-1,F=function(e){return function(e){var t,A,n=[10,5,2,1],i=n.length;for(t=0;t<i;++t)if(e%n[t]%1==0){A=!0;break}return A}(a=b/(e+1))?e:s.UNDEF};!(f&&m||((v=A+ ++x)>=w&&(m=!0),c=F(v))||((v=A-x)<=C&&(f=!0),c=F(v))););for(e<0&&t>0&&i&&(l=!0),o=0;o<c;o++)l&&B<0&&B+a>0&&(y.push(0),u=!0),B+=a,y.push(B);return c===s.UNDEF&&i&&((d=(y=r.ticks(A)).length)>1?(h=.2*(a=Math.abs(y[0]-y[1])),g=y[0],p=y[d-1],Math.abs(e-g)<=h&&0!==g&&y.shift(),Math.abs(t-p)<=h&&0!==p&&y.pop(),0!==g&&0!==p||(u=!0)):0===y[0]&&(u=!0)),l&&!u&&-1===y.indexOf(0)&&(e<0&&y[0]>0?y=[0].concat(y):t>0&&y[y.length-1]<0?y.push(0):y=[0],u=!0),{output:y,interval:a,isZeroTickForced:u}}(I,U,r,R=(L=r)>=100?.2:L<=1?0:l(L)/100,n.forceZeroTick,A)).output).length,k=S.isZeroTickForced,Math.abs((r-Q+(k?1:0))/r)>R?g=(U-I)/a:(g=0===Q||1===Q&&k?U-I:S.interval,n.isZeroTickForced=k,n.ticks=k&&0===I?C.concat(U):[I].concat(C,U),V=!1)):(n.ticks=r?A.nice(a).ticks(a):A.getDomain(),g=Math.abs(n.ticks[1]-n.ticks[0]),V=!1);else if(m||v||n.freezeLimit)g=(U-I)/a;else{var z=A.nice(a).getDomain();((y=(w=z[0])+(g=function(e){if(e<=1)return 1;var t=[],A=Math.ceil(e);return t[2]=A%2,t[5]=A%5,t[10]=A%10,(0,o["default"])(t)+A}(d=((y=z[1])-w)/a))*a)-U)/U>R||(w-I)/I>R?(A.setDomain([I,U]),g=(U-I)/a):(I=w,U=y,A.setDomain([I,U]))}V&&(I<0&&U>0&&n.forceZeroTick?(0===(E=(F=(0,i["default"])(I,0,g))[F.length-1]+g)?E+=g:n.isZeroTickForced=!0,n.ticks=F.concat(0,(0,i["default"])(E,U,g),U)):n.ticks=(0,i["default"])(I,U,g).concat(U));var W=A.getDomain();I=W[0],U=W[1],n._allTicks=n.ticks.slice(),O.tickInterval=g,O.min=I,O.max=U};t["default"]=c},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var A=l(t);if(A&&A.has(e))return A.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=e[r]}n["default"]=e,A&&A.set(e,n);return n}(A(543)),a=A(254),o=A(549),s=n(A(517));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,A=new WeakMap;return(l=function(e){return e?A:t})(e)}var c=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var A=t.prototype;return A._getHMaxLabelDimention=function(e){var t,A,n,i,o,l,c,u,h,d,g,p,f,m,v,b,B,C,w,y,x,F,E,S,Q,k,L,U,I,T,N,D,P,M,O,H=this,_=e,R=H.config,V=H.getFromEnv("chart"),G=V.config,K=V.getFromEnv("smartLabel"),z=R.axisRange,W=R.labels,j=R.labelDisplay,X=R.slantLabel,Y=W.style,J=R.maxLabelHeight,q=H.getInterval(),Z=R.staggerLines,$=R.labelStep,ee=G.canvasLeft,te=G.canvasRight,Ae=Z-2,ne=z.max,ie=z.min,re=0,ae=R.tickValues&&R.tickValues.tickValue,oe=ae&&ae.length,se=V.distributedColumns,le=0,ce={text:a.UNDEF,width:0,style:a.UNDEF},ue=0,he=4,de=a.stubFN,ge=a.stubFN,pe=a.stubFN,fe={},me=0,ve=!1,be=0,Be=!1,Ce=Number.POSITIVE_INFINITY,we=R.ticks,ye=Number.POSITIVE_INFINITY;if(se)for(b=0;b<oe;b++)ae[b+1]?ae[b].x&&(ae[b].plotWidth=H.getPixel(ae[b+1].x-ae[b].x)-H.getPixel(0)):ae[b].plotWidth=H.getPixel(G.canvasRight-ae[b].x)-H.getPixel(0);if(R.tickValues&&(!ae||0===ae.length))return{width:0,height:0};function xe(e,t){switch(t.toLowerCase()){case"left":return Math.abs(H._getCustomPixel(e));case"right":return Math.abs(G.width-H._getCustomPixel(e))}}if("rotate"===j&&(R.rotateLabels=1),R.tickValues||(R.irregularCatAxis=!1),R.sWidthAdjstFactor=A=0===Ae?1:1===Ae?1.5:Ae,K.useEllipsesOnOverflow(G.useEllipsesWhenOverflow),K.setStyle({fontSize:Y.fontSize,fontFamily:Y.fontFamily,lineHeight:Y.lineHeight,fontWeight:Y.fontWeight}),R.irregularCatAxis){for(ae.sort((function(e,t){return e.x-t.x})),b=0,le=ae.length;b<le;b++){if(o=ae[b],void 0!==F){if(ye=Math.abs(o.x-F),S=Math.abs(H._getCustomPixel(ie)-H._getCustomPixel(ie+ye)),K.setStyle(Object.assign({},o.style)),S<1.2*K.getOriSize("W").width){o.label=a.BLANKSTRING,ye=Ce;continue}Q._individualIWR=S,o._individualIWL=S,Ce=ye}Q=o,F=o.x}for(ye===Number.POSITIVE_INFINITY&&(ye=Math.floor(Math.min(o.x,ne-o.x)),ye=Math.max(ye,4)),b=0,le=ae.length;b<le;b++)o=ae[b],b||(o._individualIWL=Infinity),b===le-1&&(o._individualIWR=Infinity),o.individualIW=Math.min(o._individualIWL,o._individualIWR);c=Math.abs(H._getCustomPixel(ie)-H._getCustomPixel(ie+ye)),c=Math.min(2*xe(ae[0].x,"left"),2*xe(ae[le-1].x,"right"),c)}else c=Math.abs(H._getCustomPixel(ie)-H._getCustomPixel(ie+q));if(_=J||_,fe.__root__={getHeight:function(e){var t=ae[e]._ovrStyle.lineHeight;return parseInt(t.replace(/(\d+)px/,"$1"),10)},getWidth:function(){return _},getCalculatedLabelStep:function(e){var t,A,n,i,r,o,h,d,g,p,f,m=0,v=e.length,b=Number.NEGATIVE_INFINITY,B={},C=0,w=R.rotateLabels,y="wrap"===j||"auto"===j;for(m=0;m<v;m++)(i=e[m]).style=i.style||{};if(R.irregularCatAxis)return R.labelStep;for(m=0;m<v;m++)(i=e[m])&&(i.label||(i.label=""),r=i.oriLabel||i.label,l={fontSize:Y.fontSize,fontFamily:Y.fontFamily,lineHeight:Y.lineHeight,fontWeight:Y.fontWeight},C++,i.style=i.style||{},(0,a.extend2)(l,i.style),B[t=l.fontSize+l.fontFamily+l.lineHeight+l.fontWeight]?r.length>B[t].label.length&&(B[t].label=r):B[t]={label:r,style:l});for(o in B)B.hasOwnProperty(o)&&(A=B[o].style,n=B[o].label,A.lineHeight=(0,a.setLineHeight)(A),K.setStyle(A),w&&(g=parseInt(A.lineHeight,10)),u=K.getSmartText(n,a.UNDEF,g),(d=0===w?u.width>60?60:u.width:u.height)>b&&(b=d,p=B[o]));if((y&&(b=Math.min(M,b)),h=Math.floor(Math.abs(H._getCustomPixel(ne)-H._getCustomPixel(ie))/b),f=Math.max(Math.ceil(C/h),R.labelStep),c=Math.abs(H._getCustomPixel(ie)-H._getCustomPixel(ie+f)),y&&0===w)&&(K.setStyle(p.style),(0,s["default"])(Object.values(K.getOriSize(p.label).detailObj))>c-2*he))return f+=1,c=Math.abs(H._getCustomPixel(ie)-H._getCustomPixel(ie+f)),f;return C<=h?R.labelStep:f}},fe._inProp={},fe.getCopyById=function(e){var t,A=this._inProp,n=this.__root__,i=A.copyStore;return(t=(i=i||{})[e])||(0,a.extend2)(t=i[e]={},n),t},R.tickValues){switch(j){case"rotate":W.rotation=X?300:270,g=fe.getCopyById("rotate");break;case"stagger":(g=fe.getCopyById("stagger")).getHeight=function(e){var t,A;return A=(t=R.tickValues.tickValue[e])&&t.style||(t.style={}),l={fontSize:Y.fontSize,fontFamily:Y.fontFamily,lineHeight:Y.lineHeight,fontWeight:Y.fontWeight},(0,a.extend2)(l,A),K.setStyle(l),K.getOriSize(t.label).height},g.getWidth=function(e){return he=1,e.individualIW?e.individualIW:2*c*A-he},pe=function(e){var t,A,n,i,r,a,o=e.length,s=0;if(K.setStyle(Y),n=K.getOriSize("WWW").height,A=e[o-1],Math.floor(A._cumulativeSum)<=Math.ceil(o*(n+2)))r=Math.floor(_/n),Z=r-Z<0?r:Z;else{r=Math.floor(_/(n+4));do{for(s=0,i=(a=r)-1,o=e.length;i<o;){if(o-i<r&&(i=o-1),~~((t=e[i])._cumulativeSum-s)>-~_){ve=!0;break}ve=!1,s=t._cumulativeSum,i+=a}}while(r--&&ve);r++,Z=Math.min(Z,r)}R.drawnStaggerLines=Z},de=function(e){var t,A,i,r,a=0;for(r=0,A=e.length;r<A;r++)(t=e[r]).stepSkipped||((i=(t&&t.style||{}).lineHeight)||(i=Y.lineHeight),n=a++%Z,t.labelPadding=n?i.replace(/px/i,"")*n:0)};break;case"none":(g=fe.getCopyById("none")).getHeight=a.stubFN,g.getWidth=a.stubFN,ge=a.stubFN,R.rotateLabels&&(W.rotation=X?300:270,E=_),g.getCalculatedLabelStep=function(){return R.labelStep};break;default:(g=fe.getCopyById("auto")).getHeight=function(){return _},g.getWidth=function(e){return e.individualIW?e.individualIW:c-2*he},K.setStyle(ce.style),O=K.getOriSize("WWW"),M=O.width,ge=function(e,t){var A,n,i,r;if(!R.irregularCatAxis&&(K.setStyle(e),O=K.getOriSize("WWW"),(M=O.width)>=c&&0!==R.rotateLabels)){for(W.rotation=X?300:270,W.forceRotate=!0,g=fe.getCopyById("rotate"),h=g.getWidth,d=g.getHeight,ce.width=0,A=0,n=t.length;A<n;A++)(i=t[A])&&(i.label||i.oriLabel)&&0!==(0,a.pluckNumber)(i.showlabel,R.showLabels,1)&&!0!==i.stepSkipped&&(r=i._ovrStyle,K.setStyle({fontSize:r.fontSize,fontFamily:r.fontFamily,lineHeight:r.lineHeight,fontWeight:r.fontWeight}),u=K.getSmartText(i.oriLabel,h(i),d(A)),i.label=u.text,i.labelTooltext=u.tooltext,i._sLabel=u,ce.width<u.width&&(ce.text=u.text,ce.width=u.width,ce.height=u.height,ce.style=r));p=ce.text}}}for(h=g.getWidth,d=g.getHeight,$=R.labels.step=R.labelStep=R._oriLabelStep,$=R.labels.step=R.labelStep=g.getCalculatedLabelStep(ae),b=(0,r.minimumEnquiry)(ae),f=0,B=0,le=ae.length;b<le;b++,f++)(o=ae[b])&&(o.label||o.oriLabel)&&0!==(0,a.pluckNumber)(o.showlabel,R.showLabels,1)&&(Be=!0,l={fontSize:Y.fontSize,fontFamily:Y.fontFamily,lineHeight:Y.lineHeight,fontWeight:Y.fontWeight},(0,a.extend2)(l,o.style),l.lineHeight=(0,a.setLineHeight)(l),(N=l.fontSize+l.fontFamily+l.lineHeight+l.fontWeight)!==T&&(K.setStyle(l),T=N),f%$?(o.stepSkipped=!0,o.appliedSmartLabel=!1,be++):(o.appliedSmartLabel=!0,o.stepSkipped=!1,o._ovrStyle=l,ae[b].plotWidth?t=Math.max("rotate"===j?ae[b].plotWidth-6:0,d(b)):("rotate"===j?b<le-1&&(i=H.getPixel(b+1)-H.getPixel(b)-10):i=0,"rotate"===j&&isNaN(+i)&&(i=G.canvasWidth/H.getVisibleLength()-3),t=Math.max(i,d(b))),me+=(u=K.getSmartText(o.oriLabel||o.label,h(o),t)).height+2,H.components.labels[B++]={config:{width:u.width,height:u.height,props:{label:{}}}},o._cumulativeSum=me,o.oriLabel=o.oriLabel||o.label,o.label=u.text,o.labelTooltext=u.tooltext,o._sLabel=u,ce.width<u.width&&((0,a.extend2)(ce,u),ce.style=l),ue<u.height&&(ue=u.height)));if(!Be)return{height:0,width:0};if(pe(ae,be),de(ae,be),ge(ce.style,ae),p=ce.text||"","mixed"===R.xAxisLabelMode)for(y=R.isPercent?V.getFromEnv("number-formatter").percentValue:V.getFromEnv("number-formatter").xAxis,re=p.length,b=0,D=we&&we.length;b<D;++b)w=we[b],(C=""+y.call(V.getFromEnv("number-formatter"),w,R.axisIndex)).length>re&&(p=C,re=C.length);for(ce.height=Math.max(ue,ce.height||0),U=ae.length,b=0,le=ae.length;b<le&&!(k=ae[b])._sLabel;b++);for(b=(le=ae.length)-1;b>=0&&!(L=ae[b])._sLabel;b--);I=1!==H.getZoom(),W.rotation||I||!k._sLabel?(R.axisEndLabelDisplaySpace.left=0,R.axisEndLabelDisplaySpace.right=0):(R.axisEndLabelDisplaySpace.left=Math.max(ee-(H._getCustomPixel(k.x||0)-k._sLabel.width/2),0),R.axisEndLabelDisplaySpace.right=Math.max(H._getCustomPixel(L.x||U-1)+L._sLabel.width/2-te,0)),x=ce}else{for(y=R.numberFormatterFn?V.getFromEnv("number-formatter")[R.numberFormatterFn]:R.isPercent?V.getFromEnv("number-formatter").percentValue:V.getFromEnv("number-formatter").xAxis,b=0,D=we&&we.length;b<D;++b)P=we[b],w=(0,a.toPrecision)(P,10),C=""+y.call(V.getFromEnv("number-formatter"),w,R.axisIndex),P===ie&&(m=C),P===ne&&(v=C),x=K.getOriSize(C),H.components.labels[b]={config:{width:x.width,height:x.height,props:{label:{}}}},C.length>re&&(p=C,re=C.length);K.setStyle({fontSize:Y.fontSize,fontFamily:Y.fontFamily,lineHeight:Y.lineHeight,fontWeight:Y.fontWeight}),x=K.getOriSize(p||""),"rotate"===j&&(W.rotation=270),R.rotateLabels&&(W.rotation=X?300:270),W.rotation||(m=K.getOriSize(m||""),v=K.getOriSize(v||""),R.axisEndLabelDisplaySpace.left=m.width/2+2,R.axisEndLabelDisplaySpace.right=v.width/2+2)}return R.tickValues&&"stagger"===j&&(x.height=Z*ce.height),x.width=E?Math.min(E,x.width):x.width,x.width=(0,a.pluckNumber)(x.width),x.maxWidth=(0,a.pluckNumber)(x.maxWidth),x},A._getVMaxLabelDimention=function(e){var t,A,n,i,r,o,s,l,c,u,h,d,g,p,f=e,m=this.config,v=this.getFromEnv("chart"),b=v.config,B=v.getFromEnv("smartLabel"),C=m.labels.style,w=m.useEllipsesWhenOverflow,y=m.maxLabelWidthPercent,x=m.minLabelWidthPercent,F=0,E=v.getFromEnv("dataSource").categories,S={height:0,width:0},Q=m.ticks,k={};if(B.useEllipsesOnOverflow(b.useEllipsesWhenOverflow),B.setStyle({fontSize:C.fontSize,fontFamily:C.fontFamily,lineHeight:C.lineHeight,fontWeight:C.fontWeight}),m.tickValues){for(E&&(k={fontFamily:E[0].font,fontSize:E[0].fontsize,color:E[0].fontcolor}),y&&(A=y/100*b.width)<f&&(f=A),x&&(n=x/100*b.width)>f&&(f=n),i=0,c=(l=m.tickValues.tickValue).length;i<c;i++)if(u=l[i],0!==(0,a.pluckNumber)(u.showlabel,m.showLabels)){g={fontFamily:(0,a.pluck)(u.font,u.labelfont,k.fontFamily,C.fontFamily),fontSize:(0,a.pluck)(this.computeFontSize(u.fontsize),u.labelfontsize,k.fontSize,C.fontSize).toString().replace(/px/i,"")+"px",fontWeight:"normal"===C.fontWeight?(0,a.pluckNumber)(u.fontbold,u.labelfontbold,0)?"bold":"normal":C.fontWeight,fontStyle:"normal"===C.fontStyle?(0,a.pluckNumber)(u.fontitalic,u.labelfontitalic,0)?"italic":"normal":C.fontStyle},(p={fontFamily:(0,a.pluck)(g.fontFamily,k.fontFamily,C.fontFamily),fontSize:(0,a.pluck)(g.fontSize,k.fontSize,C.fontSize),fontWeight:(0,a.pluck)(g.fontWeight,C.fontWeight),fontStyle:(0,a.pluck)(g.fontStyle,C.fontStyle)}).lineHeight=(0,a.setLineHeight)(p);var L=B.setStyle(p),U=L&&L.style&&L.style.lineHeight?L.style.lineHeight:C.lineHeight;h=B.getSmartText(u.oriLabel||u.label,f,U.toString().replace(/px/i,""),w),this.components.labels[i]={config:{width:h.width,height:h.height,props:{label:{}}}},u.oriLabel=u.oriLabel||u.label,u.label=s=h.text,u.labelTooltext=h.tooltext,h.width>F&&(S=h,F=h.width)}return S}for(d=m.numberFormatterFn?v.getFromEnv("number-formatter")[m.numberFormatterFn]:m.isPercent?v.getFromEnv("number-formatter").yAxisPercentValue:v.getFromEnv("number-formatter").yAxis,i=0,r=Q&&Q.length;i<r;++i)o=(0,a.toPrecision)(Q[i],10),s=""+d.call(v.getFromEnv("number-formatter"),o,m.axisIndex),h=B.getSmartText(s),this.components.labels[i]={config:{width:h.width,height:h.height,props:{label:{}}}},s.length>F&&(t=s,F=s.length);return B.getOriSize(t)},A.getCleanValue=function(e,t){return this.getFromEnv("number-formatter").getCleanValue(e,t)},A.generateMinorTicks=function(){if(this)return[]},A.setCanvas=function(e){this.config.canvas=e},A._adjustNumberFormatter=function(e){var t,A,n=this.config,i=n.axisIndex,r=n.isVertical,o=this.getFromEnv("chart").getFromEnv("number-formatter"),s=n._defaultDecimalPrecision,l=n._defaultForceDecimal,c=0;A=r||"yAxis"===n.numberFormatterFn?(o.Y[i]||o.Y[0]).yAxisLabelConf:o.paramX,s!==a.UNDEF?A.decimalprecision=s:n._defaultDecimalPrecision=A.decimalprecision,l!==a.UNDEF?A.forcedecimals=l:n._defaultForceDecimal=A.forcedecimals,parseInt(e,10)>0||(t=e.toString().split(".")[1])&&((c=t.match(/^[0]*/)[0].length+1)>A.decimalprecision&&(A.forcedecimals=1),A.decimalprecision=Math.max(c,A.decimalprecision))},A.setLabelConfig=function(e){var t,A=this.config.labels;for(t in e)e.hasOwnProperty(t)&&(A[t]=e[t])},t}(r["default"]);c.prototype._parseLabel=o._parseLabel,c.prototype._drawLabel=o._drawLabel,c.prototype.getTrendLineLimits=o.getTrendLineLimits,c.prototype.setAxisPadding=o.setAxisPadding,c.prototype.getLabel=o.getLabel;var u=c;t["default"]=u},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t.minimumEnquiry=t.getCrispPath=t["default"]=void 0;var i=n(A(268)),r=n(A(544)),a=A(254),o=n(A(545)),s=n(A(546)),l=n(A(547)),c=A(262),u=A(549),h=function(e,t){var A,n,i=!1,r=t%2;return e[1]===e[4]&&(A=e[1],n=Math.round(A),e[1]=e[4]=r?n>A?n-.5:n+.5:n,i=!0),e[2]===e[5]&&(A=e[2],n=Math.round(A),e[2]=e[5]=r?n>A?n-.5:n+.5:n,i=!0),{path:e,isCrisped:i}},d=function(e){return function(t,A){return!!(e.minValue<=t&&e.maxValue>=t||e.minValue<=A&&e.maxValue>=A)}},g=function(e){return function(t){return!!(e.minValue<=t&&e.maxValue>=t)}},p={wrtVisible:!0},f=function(e){for(var t=0,A=e.length;t<A;t++)if(e[t].label||e[t].oriLabel)return t};t.minimumEnquiry=f,t.getCrispPath=h,(0,c.addDep)({name:"cartesianAxisAnimation",type:"animationRule",extension:o["default"]});var m=function(e){function t(){var t;return(t=e.call(this)||this).config.referenceInfo=[],t.config.prevTicks=[],t.config.prevIntervalArr=[],t.config.prevTrendLabels=[],t.config.prevCategoryIntervalArr=[],t}(0,i["default"])(t,e);var A=t.prototype;return A.placeAxis=function(e){var t=this.getScale(),A=this.getFromEnv("chart"),n=this.config,i=n.isVertical,r=n.isReverse,o=A.config,s=o.dataLabelStyle,l=n.name.style,c=n.trend.trendStyle,u=n.labels.style,h=n.parsedTrendLabels||[],d=n.parsedVlineInfo||[];return l.fontSize=this.computeFontSize(l.fontSizeWithUnit),l.lineHeight=(0,a.setLineHeight)(l),c.fontSize=this.computeFontSize(c.fontSizeWithUnit),c.lineHeight=(0,a.setLineHeight)(c),u.fontSize=this.computeFontSize(u.fontSizeWithUnit),u.lineHeight=(0,a.setLineHeight)(u),s.fontSize=this.computeFontSize(s.fontSizeWithUnit),(0,a.setLineHeight)(s),h.forEach((function(e){e.css.fontSize=c.fontSize,e.css.lineHeight=c.lineHeight})),d.forEach((function(e){e.text&&(e.text.css.fontSize=o.style.inCanfontSize,e.text.css.lineHeight=o.style.inCanLineHeight)})),i?(r?t.setRange([o.canvasBottom,o.canvasTop]):t.setRange([o.canvasTop,o.canvasBottom]),this._placeVerticalAxis(e)):(r?t.setRange([o.canvasRight,o.canvasLeft]):t.setRange([o.canvasLeft,o.canvasRight]),this._placeHorizontalAxis(e))},A._placeVerticalAxis=function(e){var t,A,n,i,r,o,s,l,c,u,h,d,g,p,f,m,v,b,B=e,C=this.config,w=this.getFromEnv("chart"),y=w.config,x=w.getFromEnv("smartLabel"),F=C.axisRange,E=C.minLabelWidthPercent,S=C.name,Q=C.isOpposit,k=this.getFromEnv("number-formatter"),L=y.canvasHeight,U=C.labelPadding=(0,a.pluckNumber)(C.rawAttr.axisValuePadding,4),I=(0,a.pluckNumber)(C.rawAttr.axisNamePadding,5),T=C.useEllipsesWhenOverflow,N=C.name.style,D=C.trend.trendStyle,P=C.axisName,M=C.trendLines,O=C.drawLabelsOpposit,H=C.drawAxisNameOpposit,_=0,R=0,V=0,G=0,K=0,z=0,W={left:0,right:0},j=a.BLANKSTRING,X=a.BLANKSTRING,Y=0,J=-1;if(E&&(J=E/100*y.width),C.oriCanvasHeight=L,U<0&&(C.labelPadding=2),m=C.drawTick&&C.tickLength?C.axisLineThickness+C.tickLength:C.axisLineThickness,C.showAxisLine?(C.labelPadding=(0,a.pluckNumber)(U,2)+m,C.labelPadding<0&&(C.labelPadding=(C.axisLineThickness<0?0:m)+2),B-=C.axisLineThickness):(C.labelPadding=(0,a.pluckNumber)(U,2),C.labelPadding<0&&(C.labelPadding=2)),c=F.max,u=F.min,C.name.rotation=0,C.labels.step=C.labelStep,C.labels.isDraw=1,C.labels.drawNormalVal=C.showDivLineValues,C.labels.drawLimitVal=C.showLimits,Y=N.lineHeight,Y=Number(Y.replace(/px/i,"")),P&&Y<B&&(B-=Y),1!==C.showLimits&&1!==C.showDivLineValues&&(C.labels.isDraw=0),((d=C.drawLabels?this._getVMaxLabelDimention(B-C.labelPadding):{width:0,height:0}).width+C.labelPadding>B&&!C.tickValues||0===d.width)&&(C.labels.isDraw=0),C.labels.isDraw&&(C.labelMaxW=d.width>J?d.width:J,C.labelMaxH=d.height,V=_=C.labelMaxW+C.labelPadding),C.drawTrendLines&&C.drawTrendLabels&&M&&M.length){for(i=C.isPercent?k.percentValue:C.isVertical?k.yAxis:k.xAxis,x.useEllipsesOnOverflow(y.useEllipsesWhenOverflow),x.setStyle({fontSize:D.fontSize,fontFamily:D.fontFamily,lineHeight:D.lineHeight,fontWeight:D.fontWeight}),t=0,A=M.length;t<A;t+=1)for(l=0,g=M[t].line&&M[t].line.length;l<g;l+=1)p=M[t].line[l],v=k.getCleanValue((0,a.pluck)(p.startvalue,p.value,0)),b=(0,a.pluckNumber)(p.endvalue,v),v<=c&&v>=u&&b<=c&&b>=u&&(s=1===(f=(0,a.pluckNumber)(p.valueonright,Q?1:0))?p.endvalue||p.startvalue:p.startvalue||p.endvalue,(h=(0,a.parseUnsafeString)(p.origText||p.displayvalue||s||""))===s&&(h=""+i.call(k,h)),f?h.length>X.length&&(X=h):h.length>j.length&&(j=h));for(z=(d=x.getOriSize(X)).width?d.width+C.labelPadding:0,K=(d=x.getOriSize(j)).width?d.width+C.labelPadding:0,Q?(z>V&&z>B&&(z=B),K>B-(V=Math.max(V,z+C.labelPadding))&&(K=Math.min(K,B-V))):(K>V&&K>B&&(K=B),z>B-(V=Math.max(V,K+C.labelPadding))&&(z=Math.min(z,B-V))),t=0,A=M.length;t<A;t+=1)for(l=0,g=M[t].line&&M[t].line.length;l<g;l+=1)p=M[t].line[l],v=k.getCleanValue((0,a.pluck)(p.startvalue,p.value,0)),b=(0,a.pluckNumber)(p.endvalue,v),h=1===Number(p.valueonright)?p.origText||p.displayvalue||""+b||"":p.origText||p.displayvalue||""+v||"",(h=(0,a.parseUnsafeString)(""+h))!==p.endvalue&&h!==p.startvalue||(h=""+i.call(k,h)),p.origText=h,o=(f=(0,a.pluckNumber)(p.valueonright,Q?1:0))?x.getSmartText(h,z,w.config.canvasHeight,T):x.getSmartText(h,K,w.config.canvasHeight,T),(n=C.parsedTrendLabels[R++])&&(n.attr.text=p.displayvalue=o.text),o.tooltext?(p.valueToolText=o.tooltext,n&&(n.valueToolText=p.valueToolText)):(delete p.valueToolText,n&&delete n.valueToolText)}return B+=Y,!C.drawAxisName||B-V-z<=0||""===P?(S.isDraw=!1,S.value=a.BLANKSTRING):(x.setStyle({fontSize:N.fontSize,fontFamily:N.fontFamily,lineHeight:N.lineHeight,fontWeight:N.fontWeight}),S.isDraw=!0,C.rotateAxisName?(C.name.rotation=Q?90:270,r=x.getSmartText(P,L,B-V-z),S.value=P,C.nameMaxW=Math.min(r.height),G=C.nameMaxW+I):(r=x.getSmartText(P,B-V-z,L),S.value=P,C.nameMaxW=Math.min(r.width,B-V),C.nameMaxH=r.height,C.axisNameWidth>=0&&(C.nameMaxW=Math.min(C.nameMaxW,C.axisNameWidth)),G=C.nameMaxW+I)),Q?(O?(W.left+=Math.max(_,K),W.right+=z):(W.left+=K,W.right+=Math.max(_,z)),H?(C.axisNamePadding=W.left+I,W.left+=G):(C.axisNamePadding=W.right+I,W.right+=G)):(O?(W.left+=K,W.right+=Math.max(_,z)):(W.left+=Math.max(_,K),W.right+=z),H?(C.axisNamePadding=W.right+I,W.right+=G):(C.axisNamePadding=W.left+I,W.left+=G)),S.isDraw&&C.axisNamePadding+C.nameMaxW>B&&(C.axisNamePadding=B-C.nameMaxW,G=C.nameMaxW+C.axisNamePadding-V),W},A._placeHorizontalAxis=function(e){var t,A,n,i,r,o,s,l,c,u,h,d,g,p,f,m,v,b,B=e,C=this.config,w=this.getFromEnv("chart"),y=w.config,x=w.getFromEnv("smartLabel"),F=C.axisRange,E=C.name,S=C.isOpposit,Q=w.getFromEnv("number-formatter"),k=C.drawLabelsOpposit,L=C.drawAxisNameOpposit,U=0,I=y.canvasWidth,T=C.labelPadding=(0,a.pluckNumber)(C.rawAttr.axisValuePadding,4),N=(0,a.pluckNumber)(C.rawAttr.axisNamePadding,5),D=C.useEllipsesWhenOverflow,P=C.name.style,M=C.trend.trendStyle,O=C.axisName,H=C.vTrendLines,_=0,R=0,V=0,G={top:0,bottom:0},K=0,z=0;if(T<0&&(C.labelPadding=2),m=C.drawTick&&C.tickLength?C.axisLineThickness+C.tickLength:C.axisLineThickness,C.showAxisLine?(C.labelPadding=(0,a.pluckNumber)(T,2)+m,C.labelPadding<0&&(C.labelPadding=(C.axisLineThickness<0?0:m)+2),B-=C.axisLineThickness):(C.labelPadding=(0,a.pluckNumber)(T,2),C.labelPadding<0&&(C.labelPadding=2)),s=F.max,l=F.min,C.labels.rotation=0,C.labels.step=C.labelStep,C.labels.isDraw=1,C.labels.drawNormalVal=C.showDivLineValues,C.labels.drawLimitVal=C.showLimits,z=P.lineHeight,z=Number(z.replace(/px/i,"")),O&&z<B&&(B-=z),C.rotateLabels&&"stagger"!==C.labelDisplay&&"none"!==C.labelDisplay&&(C.labelDisplay="rotate"),1!==C.showLimits&&1!==C.showDivLineValues&&(C.labels.isDraw=0),p=C.drawLabels?this._getHMaxLabelDimention(B-C.labelPadding):{width:0,height:0},C.labels.rotation?p.width+C.labelPadding>B&&!C.tickValues&&(C.labels.isDraw=0):p.height+C.labelPadding>B&&!C.tickValues&&(C.labels.isDraw=0),C.labels.isDraw&&(C.labels.rotation?(C.labelMaxW=p.height,C.labelMaxH=p.width,U=p.width+C.labelPadding):(C.labelMaxW=p.width,C.labelMaxH=p.height,U=p.height+C.labelPadding),_=U),h=(_=Math.max(_,C.labelPadding))<=B?B-_:B,C.drawTrendLines&&C.drawTrendLabels&&H&&C.isActive)for(f=C.isPercent?this.getFromEnv("number-formatter").percentValue:C.isVertical?this.getFromEnv("number-formatter").yAxis:this.getFromEnv("number-formatter").xAxis,x.useEllipsesOnOverflow(y.useEllipsesWhenOverflow),x.setStyle({fontSize:M.fontSize,fontFamily:M.fontFamily,lineHeight:M.lineHeight,fontWeight:M.fontWeight}),A=0,n=H.length;A<n;A+=1)for(o=0,u=H[A].line&&H[A].line.length;o<u;o+=1)d=H[A].line[o],v=Q.getCleanValue((0,a.pluck)(d.startvalue,d.value,0)),b=(0,a.pluckNumber)(d.endvalue,v),v<=s&&v>=l&&b<=s&&b>=l&&(t=1===(0,a.pluckNumber)(d.valueonright,0)?d.endvalue||d.startvalue:d.startvalue||d.endvalue,(c=(0,a.parseUnsafeString)(d.origText||d.displayvalue||t||""))===t&&(c=""+f.call(w.getFromEnv("number-formatter"),c)),d.origText=c,h-((g=x.getSmartText(c,w.canvasWidth,M.lineHeight,D)).height+2)<0?d.displayvalue=a.BLANKSTRING:((i=C.parsedTrendLabels[R++])&&(i.attr.text=d.displayvalue=g.text),K=K<g.height?g.height:K),g.tooltext?(d.valueToolText=g.tooltext,i&&(i.valueToolText=d.valueToolText)):(delete d.valueToolText,i&&delete i.valueToolText));return h-=K,_+=S?0:K,h+=z,B+=z,!C.drawAxisName||h<=0||""===O?(E.isDraw=!1,E.value=a.BLANKSTRING):(x.setStyle({fontSize:P.fontSize,fontFamily:P.fontFamily,lineHeight:P.lineHeight,fontWeight:P.fontWeight}),E.isDraw=!0,r=x.getSmartText(O,I,h),E.value=O,C.nameMaxW=I,C.nameMaxH=r.height,V=r.height+N,C.axisNamePadding=N+_,C.axisNamePadding+r.height>B&&(C.axisNamePadding=B-r.height,V=r.height+C.axisNamePadding-_)),S?(k?G.bottom+=U+K:(G.top+=U,G.bottom+=K),C.trendBottomPadding=G.bottom-K+2,L?G.bottom+=V:G.top+=V):(k?(G.top+=U,G.bottom+=K):G.bottom+=U+K,C.trendBottomPadding=G.bottom-K+2,L?G.top+=V:G.bottom+=V),G},A._parseCategoryPlotLine=function(){var e,t,A,n=this.config,i=n.axisRange,r=n.tickValues.tickValue,o=(0,a.convertColor)(n.divLineColor,n.divLineAlpha),s=n.divLineThickness,l=n.divLineIsDashed?(0,a.getDashStyle)(n.divLineDashLen,n.divLineDashGap,s):a.DASH_DEF,c=g(this.getVisibleConfig()),u=n._allTicks,h=u.length;if(e={stroke:o,"stroke-width":s,"stroke-dasharray":l},(!r[0]||r[0].x===a.UNDEF&&r[0].y===a.UNDEF)&&n.lines.isDraw&&n.categoryNumDivLines)for(t=0;t<h;++t)c(A=u[t])&&A!==i.min&&A!==i.max&&this.setReferenceInfo({from:A,type:"line",layer:1,attr:e})},A._drawComponents=function(){var e=this.config;e.drawAxisName&&this._drawAxisName(),e.drawAxisLine&&this._drawAxisLine(),e.tickValues?e.drawLabels&&this._drawCategory():e.drawLabels&&this._drawLabel(),e.drawTrendLines&&this.drawTrendLabel()},A.drawTrendLabel=function(){var e,t,A,n,i,r,o,s,c,u,h,d,g,f,m,v,b=this.config,B=b.parsedTrendLabels,C=this.getFromEnv("animationManager"),w=this.getFromEnv("toolTipController"),y=b.axisTrendLabelContainer,x=b.isOpposit,F=b.labelPadding,E=b.vTrendLines,S=b.trendLines,Q=b.axisDimention,k=this.getVisibleConfig(),L=k.minValue,U=k.maxValue,I=!0;for(m=0,v=B.length;m<v;m++)B[m].id=m+"_trend";for(E?n=x?Q.opposite+(b.trendBottomPadding||0):Q.y+(b.trendBottomPadding||0):(n=x?Q.opposite-(F||0):Q.x-(F||0),i=x?Q.x+(F||0):Q.opposite+(F||0)),m=0,v=(g=(0,l["default"])((function(e,t){return e.attr.text===t.attr.text}),b.prevTrendLabels,B)).length;m<v;m++)(d=this.getGraphicalElement(g[m].id))&&this.removeGraphicalElement(d);if(b.prevTrendLabels=(0,a.extend2)([],B),b.drawTrendLabels)for(m=0,v=B.length;m<v;m++)t=B[m],A=this.getGraphicalElement(m+"_trend"),o=+t.from,c=+t.to,I=!0,(f=!isNaN(c))?(L>(s=o+(c-o)/2)||U<s)&&(I=!1):(L>o||U<o)&&(I=!1),I?(E?(u=this.getPixel(o,p),h=f?this.getPixel(c,p):0,r=(0,a.pluckNumber)(t.isTrendZone,b.isTrendZone,1),f&&c!==o&&r?(t.attr.x=u+(h-u)/2,t.attr.y=n):(t.attr.x=f?h:u,t.attr.y=n)):S&&(u=this.getPixel(o,p),h=f?this.getPixel(c,p):0,e=(0,a.pluckNumber)(t.valueOnRight,b.isOpposit?1:0),r=(0,a.pluckNumber)(t.isTrendZone,b.isTrendZone,0),f&&c!==o&&r?(t.attr.x=e?i:n,t.attr.y=u+(h-u)/2):(t.attr.x=e?i:n,t.attr.y=f&&e?h:u)),A=this.addGraphicalElement(m+"_trend",C.setAnimation({container:y,el:A||"text",attr:t.attr,css:t.css,data:{value:s||o},component:this,label:"text"})),b.showTooltip&&t.valueToolText?w.enableToolTip(A,t.valueToolText):w.disableToolTip(A)):A&&this.removeGraphicalElement(A);else for(m=0,v=B.length;m<v;m++)(d=this.getGraphicalElement(B[m].id))&&this.removeGraphicalElement(d)},A._drawAxisName=function(){var e,t,A,n,i,r,o=this.config,s=this.getFromEnv("toolTipController"),l=this.getLinkedItem("canvas").getEffectiveDimensions(),c=this.getFromEnv("animationManager"),u=l.left,h=l.top,d=l.width,g=l.height,p=h+g,f=u+d,m=this.getFromEnv("chart").config,v=o.name.style,b=o.name.value,B=o.isOpposit,C=o.isVertical,w=this.getFromEnv("smartLabel"),y=o.axisNameContainer,x=o.axisNamePadding,F=o.nameMaxH,E=o.nameMaxW,S=o.axisDimention,Q=C?S.x:S.y,k=S.opposite,L=this.getGraphicalElement("axisName"),U=(0,a.pluckNumber)(o.name.rotation,C?90:270),I=this.getFromEnv("paper"),T={fontFamily:v.fontFamily,fontSize:v.fontSize,lineHeight:v.lineHeight,fontWeight:v.fontWeight,fontStyle:v.fontStyle},N=this.getFromEnv("chart-attrib");if(o.name.isDraw){if(e={fontFamily:v.fontFamily,fill:v.color,"vertical-align":"middle","font-size":v.fontSize,"line-height":v.lineHeight},w.useEllipsesOnOverflow(m.useEllipsesWhenOverflow),w.setStyle({fontSize:v.fontSize,fontFamily:v.fontFamily,lineHeight:v.lineHeight,fontWeight:v.fontWeight}),o.drawAxisNameOpposit&&(B=!B,Q=k),C){if(x=Math.max(x,function(e,t){var A=0;return e.relativeAxis&&e.relativeAxis.config&&e.relativeAxis.config.axisNamePadding&&(A=Math.max(e.relativeAxis.config.axisNamePadding,A)),e.isOpposit&&t.canvasMarginRight&&(A=Math.max(A,t.canvasMarginRight-t.marginLeft-e.nameMaxW)),!e.isOpposit&&t.canvasMarginLeft&&(A=Math.max(A,t.canvasMarginLeft-t.marginRight-e.nameMaxW)),A}(o,m)),n=o.axisNameAlignCanvas||m.captionalignment&&"left"===m.captionalignment?g:Math.max(g,o.oriCanvasHeight||0),U?(A=(t=w.getSmartText(b,n,E)).tooltext,i=t.width):(A=(t=w.getSmartText(b,E,n)).tooltext,i=t.height),o.drawAxisNameFromBottom)r=p-i/2;else{var D=m.height/2;N.orientedtextalign&&"right"===N.orientedtextalign&&(e["text-anchor"]="end",D=h/4),N.orientedtextalign&&"left"===N.orientedtextalign&&(e["text-anchor"]="start",D=h+g+80,i-=20),r=i>g?D:h+g/2}e.text=t.text;var P=E/2;0===o.rotateAxisName&&(N.orientedtextalign&&"right"===N.orientedtextalign&&(e["text-anchor"]="end",P=0),N.orientedtextalign&&"left"===N.orientedtextalign&&(e["text-anchor"]="start",P=E)),e.x=B?(Q||f)+x+E/2:(Q||u)-x-P,e.y=r}else{A=(t=w.getSmartText(b,d,F)).tooltext,B&&m.canvasMarginTop&&(x=Math.max(x,m.canvasMarginTop-m.marginTop-F)),!B&&m.canvasMarginBottom&&(x=Math.max(x,m.canvasMarginBottom-m.marginBottom-F)),e.text=t.text;var M=u+d/2;0===o.rotateAxisName&&(N.orientedtextalign&&"right"===N.orientedtextalign&&(e["text-anchor"]="end",M=u+d),N.orientedtextalign&&"left"===N.orientedtextalign&&(e["text-anchor"]="start",M=u)),e.x=M,e.y=B?(Q||h)-x-F/2:(Q||p)+x+F/2}e["text-bound"]=""===t.text?[]:[v.backgroundColor,v.borderColor,v.borderColor?v.borderThickness:0,v.borderPadding,v.borderRadius,v.borderDash],e.transform=I.getSuggestiveRotation(C?U:0,e.x,e.y),L=this.addGraphicalElement("axisName",c.setAnimation({css:T,el:L||"text",attr:e,container:y,component:this,label:"text"})),o.showTooltip?s.enableToolTip(L,A):s.disableToolTip(L)}else L&&this.removeGraphicalElement(L)},A._drawAxisLine=function(){var e,t,A,n,i,r,o,l,c,u,d,g,f,m,v,b,B,C,w=this.config,y=w.isVertical,x=w.isOpposit,F=this.getFromEnv("chart"),E=this.getLinkedItem("canvas").getEffectiveDimensions(),S=this.getFromEnv("animationManager"),Q=E.top,k=E.left,L=Q+E.height,U=k+E.width,I=w.axisDimention,T=y?I.x:I.y,N=w.drawAxisLineWRTCanvas,D=F.getFromEnv("chart-attrib"),P=w.axisAxisLineContainerBottom,M=this.getGraphicalElement("axisLine"),O=[];if(n=1===(0,a.pluckNumber)(D.showyaxisline,D.showyaxisline)?(0,a.pluckNumber)(D.yaxislinethickness,D.pyaxislinethickness,1):0,w.showAxisLine){if(y?(i=x?(T=N?U:T)+w.axisLineThickness/2:(T=N?k:T)-w.axisLineThickness/2,A=(b=h(["M",i,L,"L",i,Q],w.axisLineThickness)).path):(i=x?(T=N?Q:T)-w.axisLineThickness/2:(T=N?L:T)+w.axisLineThickness/2,A=(b=h(["M",k-n,i,"L",U,i],w.axisLineThickness)).path),l={path:A,stroke:w.axisLineColor,"stroke-linecap":"butt","stroke-width":w.axisLineThickness,"shape-rendering":b.isCrisped?"crisp":a.UNDEF},w.drawTick&&w.tickLength)for(e={stroke:w.tickColor,"stroke-width":w.tickWidth},r=y?x?i+w.tickLength:i-w.tickLength:x?i-w.tickLength:i+w.tickLength,v=0,C=(B=w.tickValues?w.tickValues.tickValue.map((function(e){return y?e.y:e.x})):w.ticks).length;v<C;v+=1)f=(g=B[v])+"_tick",u=this.getGraphicalElement(f),o=this.getPixel(g,p),e.path=h(y?["M",i,o,"L",r,o]:["M",o,i,"L",o,r],w.tickWidth).path,c=S.setAnimation({el:u||"path",attr:e,data:{value:g,path:e.path},container:P,component:this,label:"path"}),u||this.addGraphicalElement(f,c),O.push(f);t=S.setAnimation({el:M||"path",attr:l,container:P,component:this,label:"path"}),M||this.addGraphicalElement("axisLine",t),O.push("axisLine")}for(v=0,C=(m=(0,s["default"])(w.prevTicks,O)).length;v<C;v++)(d=this.getGraphicalElement(m[v]))&&this.removeGraphicalElement(d);w.prevTicks=O},A._parseCategory=function(){var e,t,A,n,i,r,o,s,l,c,u,h,d,g,f,m,v,b,B,C,w,y,x,F,E,S,Q,k,L,U=this.config,I=U.axisDimention||{},T=this.getFromEnv("chart"),N=T.getFromEnv("smartLabel"),D=this.components,P=D.labels,M=this.getLinkedItem("canvas").getEffectiveDimensions(),O=T.config,H=U.isOpposit,_=U.labels,R=_.style,V=U.isVertical,G=M.top,K=M.left,z=G+M.height,W=K+M.width,j=U.labelPadding,X=V?I.x:I.y,Y=I.opposite,J=T.getFromEnv("dataSource").categories,q={},Z=U.tickValues.tickValue,$=U.axisRange.min,ee=U.drawnStaggerLines,te=(U.labelStep!==U.labels.step||1!==this.getZoom())&&"stagger"===U.labelDisplay;if(U.labels.isDraw)for(V&&(E=Math.abs(this.getPixel(0,p)-this.getPixel(0+U.axisRange.tickInterval,p)),U.labelMaxH>E&&(w=Math.ceil(U.labelMaxH/E)),w>U.labels.step&&(U.labels.step=w)),te&&(F=2*Math.abs(this.getPixel($,p)-this.getPixel($+U.labels.step,p))*U.sWidthAdjstFactor-1),Q=(n=U.labels.rotation)?U.labelMaxH:U.labelMaxW,k=n?U.labelMaxW:U.labelMaxH,U.drawLabelsOpposit&&(H=!H,X=Y),J&&J[0]&&"auto"!==U.xAxisLabelMode&&(q.fontFamily=J[0].font,q.fontSize=J[0].fontsize,q.color=J[0].fontcolor),U.ParentCss=d={fontFamily:(0,a.pluck)(q.fontFamily,R.fontFamily),fontSize:(0,a.pluck)(q.fontSize,this.computeFontSize(R.fontSizeWithUnit)+a.PXSTRING),fontWeight:(0,a.pluck)(R.fontWeight),fontStyle:(0,a.pluck)(R.fontStyle)},d.lineHeight=(0,a.setLineHeight)(d),B=this._getCategoryArr(),D.labelIndexArr=[],e=0,C=B.length;e<C;e+=1)t=Z[L=B[e].index],v=B[e].value,D.labelIndexArr.push(L),l=(0,a.pluck)(t.font,t.labelfont),c=(0,a.pluck)(this.computeFontSize(t.fontsize),t.labelfontsize),u=(0,a.pluck)(t.fontbold,t.labelfontbold)?(0,a.pluckNumber)(t.fontbold,t.labelfontbold,0)?"bold":a.NORMAL:a.UNDEF,h=(0,a.pluck)(t.fontitalic,t.labelfontitalic)?(0,a.pluckNumber)(t.fontitalic,t.labelfontitalic,0)?"italic":a.NORMAL:a.UNDEF,f=(0,a.convertColor)((0,a.pluck)(t.fontcolor,t.labelfontcolor,q.color,R.color),(0,a.pluckNumber)(t.labelalpha,U.rawAttr.labelAlpha,T.config.singleseries?a.UNDEF:t.alpha,100)),l||c||u||h?(s={},l&&(s.fontFamily=l),c&&(s.fontSize=c),u&&(s.fontWeight=u),h&&(s.fontStyle=h),s.lineHeight=c?(0,a.setLineHeight)(s):d.lineHeight):s=a.UNDEF,(s||d)&&-1!==(r=(s||d).lineHeight).indexOf("px")&&(i=r.replace(/px/i,""),i=parseFloat(i)),!1===t.appliedSmartLabel&&(N.setStyle(t._ovrStyle||d),S=N.getSmartText(t.oriLabel||t.label,Q,k),t.oriLabel=t.oriLabel||t.label,t.label=S.text,t.labelTooltext=S.labelTooltext,t.appliedSmartLabel=!0),m=this.getPixel(v,p),V?(A=t.label||"",o=Number(t.labelPadding)||0,g={fill:f,"line-height":i,opacity:1,"text-anchor":H?a.POSITION_START:a.POSITION_END,text:A,cursor:!O.singleseries&&t.link||t.labellink||R.labelLink?a.POINTER:"",x:H?(X||W)+j:(X||K)-j,y:o?m+o:m}):(A=t.label||"",o=Number(t.labelPadding)||0,g={fill:f,"line-height":i,opacity:1,text:A,cursor:!O.singleseries&&t.link||t.labellink||R.labelLink?a.POINTER:"",x:m,y:H?(X||G)-j:(X||z)+j},n?(g["text-anchor"]=H?a.POSITION_START:a.POSITION_END,g["vertical-align"]=a.POSITION_MIDDLE):(g["text-anchor"]=a.POSITION_MIDDLE,g["vertical-align"]=H?a.POSITION_BOTTOM:a.POSITION_TOP),te?((y=t.labelCount%ee)&&((i=t.style.lineHeight)||(i=U.labels.style.lineHeight),x=i.replace(/px/i,"")*y,g.y=H?g.y-x:g.y+x),N.setStyle(t._ovrStyle||d),S=N.getSmartText(t.oriLabel||t.label,F,k),t.oriLabel=t.oriLabel||t.label,g.text=t.label=S.text,t.labelTooltext=S.labelTooltext,t.appliedSmartLabel=!0):o&&(H?g.y-=o:g.y+=o)),b={label:t.label,lineHeight:r,border:(0,a.pluckNumber)(t.borderthickness,t.labelborderthickness)?(0,a.pluckNumber)(t.borderthickness,t.labelborderthickness,1)+"px solid":"",borderColor:t.bordercolor||t.labelbordercolor?(0,a.convertColor)(t.bordercolor||t.labelbordercolor,(0,a.pluckNumber)(t.borderalpha,t.labelborderalpha,t.alpha,t.labelalpha,100)):a.BLANKSTRING,borderThickness:(0,a.pluckNumber)(t.borderthickness,t.labelborderthickness),borderPadding:(0,a.pluckNumber)(t.borderpadding,t.labelborderpadding),borderRadius:(0,a.pluckNumber)(t.borderradius,t.labelborderradius),backgroundColor:t.bgcolor||t.labelbgcolor?(0,a.convertColor)(t.bgcolor||t.labelbgcolor,(0,a.pluckNumber)(t.bgalpha,t.labelbgalpha,t.alpha,t.labelalpha,U.rawAttr.labelAlpha,100)):a.BLANKSTRING,borderDash:(0,a.pluckNumber)(t.borderdashed,t.labelborderdashed,0)?(0,a.getDashStyle)((0,a.pluckNumber)(t.borderdashlen,t.labelborderdashlen,4),(0,a.pluckNumber)(t.borderdashgap,t.labelborderdashgap,2)):0===(0,a.pluckNumber)(t.borderdashed,t.labelborderdashed)?a.DASH_DEF:R.borderDash},t.label?g["text-bound"]=[(0,a.pluck)(b.backgroundColor,R.backgroundColor),(0,a.pluck)(b.borderColor,R.borderColor),(0,a.pluck)(b.borderThickness,R.borderThickness),(0,a.pluck)(b.borderPadding,R.borderPadding),(0,a.pluck)(b.borderRadius,R.borderRadius),(0,a.pluck)(b.borderDash,R.borderDash)]:g["text-bound"]=[],_.shiftX&&(g.x+=_.shiftX),_.shiftY&&(g.y+=_.shiftY),g.transform=(0,a.getSuggestiveRotation)(n,g.x,g.y),P[L]=P[L]||{config:{props:{label:{}}}},P[L].config.props.label.attr=g,P[L].config.props.label.css=s},A.allocatePosition=function(){var e=this.config;e.tickValues?e.drawLabels&&this._parseCategory():e.drawLabels&&this._parseLabel()},A._drawCategory=function(){var e,t,A,n,i,r,o,s,c,u,h,d=this.config,g=this.getFromEnv("chart"),p=g.config,f=d.labels,m=this.getFromEnv("animationManager"),v=f.style,b=this.getFromEnv("toolTipController"),B=d.axisContainer,C=this.config.categoryLabel||(this.config.categoryLabel=[]),w=function(e){return function(t){g.plotEventHandler(this,t,e)}},y=d.tickValues.tickValue,x=[];if(d.labels.isDraw){for(B.css(d.ParentCss),r=this._getCategoryArr(),e=0,s=(i=(0,l["default"])((function(e,t){return e.value===t.value}),d.prevCategoryIntervalArr,r)).length;e<s;e++)(u=this.getGraphicalElement(i[e].value+"_label"))&&this.removeGraphicalElement(u);for(d.prevCategoryIntervalArr=(0,a.extend2)([],r),e=0,s=r.length;e<s;e+=1)x[e]=r[e].value+"_label";for(e=0,s=r.length;e<s;e+=1)t=y[h=r[e].index],n=(c=this.components.labels[h].config).props.label.attr,o=this.getGraphicalElement(x[e]),A=m.setAnimation({el:o||"text",attr:n,container:B,data:{value:void 0},component:this,label:"text",css:c.props.label.css}),o||(this.addGraphicalElement(x[e],A),A.on("fc-click",w("dataLabelClick")).hover(w("dataLabelRollOver"),w("dataLabelRollOut"))),A.data("eventArgs",{link:!p.singleseries&&t.link||t.labellink||v.labelLink,text:n.text,index:h}),t.labelTooltext||A.abbrArr?b.enableToolTip(A,t.labelTooltext):b.disableToolTip(A),C[h]=A}else for(e=0,s=d.prevCategoryIntervalArr.length;e<s;e++)(u=this.getGraphicalElement(d.prevCategoryIntervalArr[e].value+"_label"))&&this.removeGraphicalElement(u)},A._getCategoryArr=function(){var e,t,A,n,i,r,o,s,l,c,u=this.config,h=u.isVertical,d=0,g=0,m=[];for(e=u.tickValues.tickValue,n=f(e),A=e?e.length-1:0,h&&(l=Math.abs(this.getPixel(0,p)-this.getPixel(1,p)),u.labelMaxH>l&&(d=Math.ceil(u.labelMaxH/l)),d>u.labels.step&&(u.labels.step=d)),s=u.labels.step>0?u.labels.step:1,c=1!==this.getZoom(),r=this.getVisibleConfig(),t=n;t<=A;t+=s)(i=e[t])&&(o=(0,a.pluckNumber)(i.x,i.y,t),0!==(0,a.pluckNumber)(i.showlabel,u.showLabels,1)&&(c&&(o<r.minValue||o>r.maxValue)?i.labelCount=g++:("auto"!==u.xAxisLabelMode&&"mixed"!==u.xAxisLabelMode||0!==u.showZeroPlane&&0!==u.showZeroPlaneValue||0!==o)&&(u.labels.drawNormalVal||u.labels.drawLimitVal&&(t===n||t===A))&&(u.labels.drawNormalVal||t===n||t===A)&&(u.labels.drawLimitVal||t!==n&&t!==A)&&(i.labelCount=g++,m.push({index:t,value:o}))));return m},A.getValue=function(e,t){void 0===t&&(t={wrtVisible:!1});var A=this.getScale(),n=this.getTranslation();return A.getDomainValue(t.wrtVisible?e:e-n)},A.getPixel=function(e,t){void 0===t&&(t={wrtVisible:!1});var A=this.getScale(),n=this.getTranslation(),i=A.getRangeValue(e);return t.wrtVisible?i:i+n},A._getCustomPixel=function(e,t,A){if(void 0===A&&(A={wrtVisible:!1}),!t)return this.getPixel(e,A);var n=this.getScale().copy(),i=n.getRange(),r=i[0],a=i[1],o=Math.min(r,a),s=n.getRangeValue(e),l=this.getTranslation();return n.setRange([o,o+t]),A.wrtVisible?s:s+l},A.getTranslation=function(){return this.config.translation||0},A.setVisibleConfig=function(e,t){var A,n=this.config,i=this.getZoom(),r=this.getScale();return!(e>=t||e<n.axisRange.min||t>n.axisRange.max)&&(A=r.setDomain([e,t]).getDomain(),n.visibleMin=A[0],n.visibleMax=A[1],n.zoom=this._computeZoom(),n.translation=this._computeTranslation(),1===i&&1===this.getZoom()||(n.ticks=this.generateTicks(),n.minorTicks=this.generateMinorTicks(),n.tickValues&&this.calculateTicksOnLabelMode&&this.calculateTicksOnLabelMode()),this.clearReferenceInfo(),this._parseReferenceVisuals(),this.fireEvent("visiblerangeset",{minValue:e,maxValue:t}),this.asyncDraw(),!0)},A.hide=function(){var e=this.config;e.axisContainer&&(e.axisLabelContainerTop.hide(),e.axisContainer.hide(),e.axisNameContainer.hide(),e.axisTrendLabelContainer.hide(),e.axisAxisLineContainer.hide(),e.axisAxisLineContainerBottom.hide())},A.show=function(){var e=this.config;e.axisContainer&&(e.axisLabelContainerTop.show(),e.axisContainer.show(),e.axisNameContainer.show(),e.axisTrendLabelContainer.show(),e.axisAxisLineContainer.show(),e.axisAxisLineContainerBottom.show())},A.getZoom=function(){return this.config.zoom||1},A._computeTranslation=function(){var e=this.config,t=this.getVisibleConfig(),A=(0,a.pluckNumber)(t.minValue,e.axisRange.min,0),n=(0,a.pluckNumber)(e.axisRange.min,t.minValue,0);return this.getPixel(A)-this.getPixel(n)},A._computeZoom=function(){var e=this.config,t=this.getVisibleConfig(),A=(0,a.pluckNumber)(t.minValue,e.axisRange.min,0),n=(0,a.pluckNumber)(t.maxValue,e.axisRange.max,1),i=(0,a.pluckNumber)(e.axisRange.min,t.minValue,0),r=(0,a.pluckNumber)(e.axisRange.max,t.maxValue,1),o=e.maxZoomLimit,s=(r-i)/(n-A);return s>o?o:s},A.getTickValues=function(){var e=this.config.tickValues;return e&&e.tickValue||[]},A.dataLabels=function(e){var t=this.config.axisIndex;return this.getFromEnv("number-formatter").dataLabels(e,t)},A.getAxisBase=function(){var e=this.getVisibleConfig(),t=e.minValue,A=e.maxValue;return t<0&&A>0?0:A<=0?A:t},A._parseReferenceVisuals=function(){var e,t,A=this.config,n=this.getTickValues(),i=n.length,r=this.getFromEnv("chartConfig").is3D;A.isActive||(e=A.lines.isDraw,t=A.band.isDraw,A.lines.isDraw=0,A.band.isDraw=0),A.tickValues?A.drawLabels&&this._parseCategoryLine(n,0,i):A.drawPlotlines&&this._parsePlotLine(),A.tickValues&&"auto"!==A.xAxisLabelMode?(A.drawPlotlines&&!r&&this._parseCategoryPlotLine(),A.drawPlotBands&&!r&&this._parseCategoryPlotBand(),"mixed"===A.xAxisLabelMode&&A.drawPlotBands&&!r&&this._parsePlotBand()):A.drawPlotBands&&!r&&this._parsePlotBand(),A.isActive||(A.lines.isDraw=e,A.band.isDraw=t),A.drawTrendLines&&this._parseTrendLine()},A._parseCategoryPlotBand=function(){var e,t,A,n,i,r=this.config,o=r.tickValues.tickValue,s=r.showAlternateGridColor,l=r.alternateGridColor,c=r.alternateGridAlpha,u=r._allTicks,h=this.getLimit(),g=h.min,p=h.max,f=d(this.getVisibleConfig());if((!o[0]||o[0].x===a.UNDEF&&o[0].y===a.UNDEF)&&s&&r.band.isDraw&&r.categoryNumDivLines)for(e={fill:(0,a.toRaphaelColor)((0,a.convertColor)(l,c)),"stroke-width":0},t=0,i=0;i<u.length;++t,++i)f(u[i],u[i+1])&&(A=u[i],t%2==0&&(n=u[i+1])!==a.UNDEF&&(A===g&&(A="canvasStart"),n===p&&(n="canvasEnd"),this.setReferenceInfo({from:A,to:n,layer:0,type:"band",attr:e})))},A._parseTrendLine=function(){var e,t,A,n,i,r,o,s,l,c,u,h,d,g,p,f,m,v,b,B,C=this.config,w=C.isVertical,y=C.axisIndex,x=this.getFromEnv("chart-attrib"),F=this.getFromEnv("number-formatter"),E=C.axisRange,S=E.max,Q=E.min,k=C.trend.trendStyle,L={fontFamily:k.fontFamily,fontSize:k.fontSize,lineHeight:k.lineHeight,fontWeight:k.fontWeight,fontStyle:k.fontStyle},U=C.vTrendLines,I=C.trendLines,T=0;if(o=I||U)for(A=0,n=o.length;A<n;A+=1)for(e=0,t=o[A].line&&o[A].line.length;e<t;e+=1)u=o[A].line[e],m=C.isPercent?"yAxisPercentValue":w?"yAxis":"xAxis",u.startvalue||u.value||0,g=F.getCleanValue((0,a.pluck)(u.startvalue,u.value,0)),p=isNaN(u.endvalue)||""===u.endvalue?a.UNDEF:u.endvalue,i=(0,a.getValidValue)((0,a.parseUnsafeString)((0,a.pluck)(o[A].line[e].tooltext,o[0].tooltext,C.trendlineToolText),!1)),i=(0,a.parseTooltext)(i,[7,15,16,17,18,19],{startValue:g,startDataValue:F[m](g,y),endValue:p||g,endDataValue:F[m](p||g,y),axisName:C.axisName},u),g>S||g<Q||p>S||p<Q||(U?(h=(0,a.parseUnsafeString)(u.displayvalue||""),s=(0,a.pluckNumber)(u.istrendzone,C.isTrendZone,1),p!==a.UNDEF&&""!==p&&p!==g&&s?(l={fill:(0,a.convertColor)((0,a.pluck)(u.color,C.trendlineColor),(0,a.pluck)(u.alpha,C.trendlineAlpha,40)),"stroke-width":0},c={fill:(0,a.convertColor)((0,a.pluck)(u.color,k.color),(0,a.pluck)(u.valuealpha,x.trendvaluealpha,u.alpha,C.trendlineAlpha,99)),"vertical-align":a.POSITION_TOP,text:h}):(f=(0,a.pluckNumber)(u.thickness,C.trendlineThickness,1),l={stroke:(0,a.convertColor)((0,a.pluck)(u.color,C.trendlineColor),(0,a.pluck)(u.alpha,C.trendlineAlpha,99)),"stroke-width":f,"stroke-dasharray":(0,a.pluck)(u.dashed,C.trendlinesAreDashed)===a.ONESTRING?(0,a.getDashStyle)((0,a.pluckNumber)(u.dashlen,C.trendlinesDashLen),(0,a.pluckNumber)(u.dashgap,C.trendlinesDashGap)):a.DASH_DEF},c={fill:(0,a.convertColor)((0,a.pluck)(u.color,k.color),(0,a.pluck)(u.valuealpha,x.trendvaluealpha,u.alpha,C.trendlineAlpha,99)),"vertical-align":a.POSITION_TOP,text:h})):I&&(h=(0,a.pluck)((0,a.parseUnsafeString)(u.displayvalue),u.startvalue,""),d=(0,a.pluckNumber)(u.valueonright,C.isOpposit?1:0),s=(0,a.pluckNumber)(u.istrendzone,C.isTrendZone,0),p!==a.UNDEF&&""!==p&&p!==g&&s?(l={fill:(0,a.convertColor)((0,a.pluck)(u.color,C.trendlineColor),(0,a.pluck)(u.alpha,C.trendlineAlpha,40)),"stroke-width":0},c={"text-anchor":d?a.POSITION_START:a.POSITION_END,fill:(0,a.convertColor)((0,a.pluck)(u.color,k.color),(0,a.pluck)(u.valuealpha,x.trendvaluealpha,u.alpha,C.trendlineAlpha,99)),text:h}):(f=(0,a.pluckNumber)(u.thickness,C.trendlineThickness,1),l={stroke:(0,a.convertColor)((0,a.pluck)(u.color,C.trendlineColor),(0,a.pluck)(u.alpha,C.trendlineAlpha,99)),"stroke-width":f,"stroke-dasharray":(0,a.pluck)(u.dashed,C.trendlinesAreDashed)===a.ONESTRING?(0,a.getDashStyle)((0,a.pluckNumber)(u.dashlen,C.trendlinesDashLen),(0,a.pluckNumber)(u.dashgap,C.trendlinesDashGap)):a.DASH_DEF},c={"text-anchor":d?a.POSITION_START:a.POSITION_END,fill:(0,a.convertColor)((0,a.pluck)(u.color,k.color),(0,a.pluck)(u.valuealpha,x.trendvaluealpha,u.alpha,C.trendlineAlpha,99)),text:h})),c["text-bound"]=c.text?[k.backgroundColor,k.borderColor,k.borderThickness,k.borderPadding,k.borderRadius,k.borderDash]:[],C.showTooltip&&i||(i=a.BLANKSTRING),r=C.forceTrendBelow?0:(0,a.pluckNumber)(u.showontop,x.showtrendlinesontop,0),w?(v=g,B=p!==a.UNDEF?p:g):(v=p!==a.UNDEF?p:g,B=g),b=s&&v!==B?"band":"line",v!==a.UNDEF&&this.setReferenceInfo({from:v,to:B,toolText:i,attr:l,layer:r?3:2,type:b,id:"trend"+T+b}),C.parsedTrendLabels.push({css:L,valueOnRight:d,isTrendZone:s,from:g,to:p,attr:c}),T+=1)},A._parsePlotLine=function(){var e,t,A,n,i,r=this.config,o=r.axisRange,s=o.max,l=o.min,c=g(this.getVisibleConfig()),u=r.showCanvasBorder,h=(0,a.convertColor)(r.divLineColor,r.divLineAlpha),d=r.divLineThickness,p=r.divLineIsDashed?(0,a.getDashStyle)(r.divLineDashLen,r.divLineDashGap):a.DASH_DEF,f=(0,a.convertColor)(r.zeroPlaneColor,r.zeroPlaneAlpha),m=r.zeroPlaneThickness,v=r._allTicks,b=v.length,B=r.showZeroPlaneOnTop,C=r.minorTicks,w=C&&C.length;if(r.lines.isDraw)for(t=0;t<b;++t)c(e=v[t])&&(n={"stroke-dasharray":p},0===r.showZeroPlane&&0===e||u&&(e===s||e===l)||(0===e&&e!==l&&e!==s?(n.stroke=f,n["stroke-width"]=m,B=r.showZeroPlaneOnTop):(B=0,n.stroke=h,n["stroke-width"]=d),this.setReferenceInfo({type:"line",from:e,layer:0===e&&B?3:1,attr:n})));for(i={stroke:r.minorDivlinecolor,"stroke-width":r.minorDivLineThickness,"stroke-dasharray":p},t=0;t<w;++t)A=C[t],this.setReferenceInfo({type:"line",from:A,layer:1,attr:i})},A._parseCategoryLine=function(e,t,A){var n,i,r,o,s,l,c=t,u=A,h=this.config,d=this.getFromEnv("color-manager"),g=this.getFromEnv("chartInstance").getJSONData().categories,p={};if(c=c||0,u=u||e?e.length-1:0,h.drawPlotlines)for(l=1!==this.getZoom(),r=this.getVisibleConfig(),g&&g[0]&&(p.verticalLineColor=g[0].verticallinecolor,p.verticalLineAlpha=g[0].verticallinealpha,p.verticalLineThickness=g[0].verticallinethickness,p.verticalLineDashed=g[0].verticallinedashed,p.verticalLineDashLen=g[0].verticallinedashlen,p.verticalLineDashGap=g[0].verticallinedashgap),n=c;n<=u;n+=1)(i=e[n])&&(s=(0,a.pluckNumber)(i.x,i.y,n),1===Number(i.showverticalline)&&(l&&(s<r.minValue||s>r.maxValue)||((o={stroke:(0,a.convertColor)((0,a.pluck)(i.linecolor,p.verticalLineColor,h.divLineColor,d.getColor("divLineColor")),(0,a.pluck)(i.linealpha,p.verticalLineAlpha,d.getColor("divLineAlpha"))),"stroke-width":(0,a.pluckNumber)(i.linethickness,p.verticalLineThickness,1)})["stroke-dasharray"]=(0,a.pluckNumber)(i.linedashed,p.verticalLineDashed,0)?(0,a.getDashStyle)((0,a.pluckNumber)(i.linedashLen,p.verticalLineDashLen,4),(0,a.pluckNumber)(i.linedashgap,p.verticalLineDashGap,2),o["stroke-width"]):a.DASH_DEF,this.setReferenceInfo({type:"line",from:s,layer:1,attr:o}))))},A._parsePlotBand=function(){var e,t,A,n,i,r,o=this.config,s=o.showAlternateGridColor,l=o.alternateGridColor,c=o.alternateGridAlpha,u=o._allTicks,h=d(this.getVisibleConfig()),g=o.isReverse;if(s&&o.band.isDraw)for(t=1,e={fill:(0,a.toRaphaelColor)((0,a.convertColor)(l,c)),"stroke-width":0},n=0,A=u.length;n<A;++n,++t)h(u[n],u[n+1])&&t%2==0&&u[n+1]!==a.UNDEF&&(r=g?Math.max(u[n],u[n+1]):Math.min(u[n],u[n+1]),i=g?Math.min(u[n],u[n+1]):Math.max(u[n],u[n+1]),this.setReferenceInfo({from:r,to:i,type:"band",layer:0,attr:e}))},A.getReferenceInfo=function(){return this.config.referenceInfo},A.setReferenceInfo=function(e){this.config.referenceInfo.push(e)},A.clearReferenceInfo=function(){var e=this.config;e.referenceInfo=[],e.parsedTrendLabels=[],e.parsedVlineInfo=[]},A.resetStoredLimits=function(){this.config.dataLimit={}},A.getAxisDimension=function(){var e=this.config.axisDimention;return{x:e.x,y:e.y,opposite:e.opposite,axisLength:e.axisLength}},t}(r["default"]);m.prototype.setAxisDimention=u.setAxisDimention,m.prototype.shiftLabels=u.shiftLabels,m.prototype._createContainer=u._createContainer;var v=m;t["default"]=v},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=A(270),a=A(254),o=function(e,t){return e<t?t:e},s=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var A=t.prototype;return A.getType=function(){return"axis"},A.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.components={labels:[]};var t=this.config;t.setAdaptiveMin=0,t.adjustDiv=1,t.axisNameWidth=a.UNDEF,t.rotateAxisName=0,t.useEllipsesWhenOverflow=1,t.divLineColor=a.UNDEF,t.divLineAlpha=a.UNDEF,t.divLineThickness=a.UNDEF,t.divLineIsDashed=a.UNDEF,t.divLineDashLen=a.UNDEF,t.divLineDashGap=a.UNDEF,t.showAlternateGridColor=a.UNDEF,t.alternateGridColor=a.UNDEF,t.alternateGridAlpha=a.UNDEF,t.showZeroPlane=1,t.zeroPlaneAlpha=80,t.showZeroPlaneValue=1,t.showZeroPlaneOnTop=1,t.showAxisLine=a.UNDEF,t.axisLineThickness=a.UNDEF,t.axisLineAlpha=a.UNDEF,t.tickLength=0,t.trendlineToolText=a.UNDEF,t.trendlineColor="333333",t.trendlineThickness=1,t.trendlineAlpha=a.UNDEF,t.showTrendlinesOnTop=0,t.trendlinesAreDashed=0,t.trendlinesDashLen=5,t.trendlinesDashGap=2,t.isTrendZone=a.UNDEF,t.showTrendlines=1,t.showTrendlineLabels=1,t.showLabels=1,t.maxLabelHeight=a.UNDEF,t.rotateLabels=a.UNDEF,t.slantLabel=0,t.showAxisValues=1,t.showTooltip=1,t.isActive=!0,t.drawLabels=!0,t.drawOnlyCategoryLine=!1,t.drawLabelsOpposit=!1,t.drawPlotlines=!0,t.drawAxisLine=!0,t.drawPlotBands=!0,t.drawAxisName=!0,t.drawAxisNameOpposit=!1,t.axisNameAlignCanvas=!1,t.drawAxisNameFromBottom=!1,t.drawTrendLines=!0,t.drawTrendLabels=!0,t.drawTick=!0,t.drawTickMinor=!0,t.animateAxis=!0,t.drawAxisLineWRTCanvas=!0,t.isRelativeAxisInverse=!1,t.axisIndex=0,t.uniqueClassName=0,t.viewPortRatio={},t.canvas={},t.axisRange={},t.drawnStaggerLines=a.UNDEF,t.axisDimention={},t.forceZeroTick=!0,t.isZeroTickForced=!1,t.extremeLabels={firstLabel:{},lastLabel:{}},t._setRangeAgain=!1,t._defaultForceDecimal=a.UNDEF,t._defaultDecimalPrecision=a.UNDEF,t.rangeChanged=!1,t.dimensionChanged=!1,t.apparentScrollPos=0,t.visibleMin=a.UNDEF,t.visibleMax=a.UNDEF,t.setPadding=!1,t.trendLimits=a.UNDEF},A.configureAttributes=function(e){var t,A,n,i,r=this.config,s=this.getFromEnv("chart"),l=this.getFromEnv("dataSource"),c=s.config.is3D,u=l.chart,h=this.getFromEnv("number-formatter");t=r.rawAttr=e,r.referenceInfo=[],r.parsedTrendLabels=[],r.parsedVlineInfo=[],r.trendLines=t.trendlines,r.vTrendLines=t.vtrendlines,(0,a.parseConfiguration)(t,r),r.axisName=(0,a.parseUnsafeString)(t.axisName),r.axisValuePadding=r.axisNamePadding||(0,a.pluckNumber)(t.axisValuePadding,4),r.axisNamePadding=r.axisNamePadding||(0,a.pluckNumber)(t.axisNamePadding,5),r.maxLabelWidthPercent=(0,a.pluckNumber)(t.maxLabelWidthPercent),r.maxLabelWidthPercent=Math.abs(r.maxLabelWidthPercent),r.minLabelWidthPercent=Math.abs((0,a.pluckNumber)(t.minLabelWidthPercent)),r.numDivLines=(0,a.pluckNumber)(t.numDivLines,4),r.numDivLines=o(r.numDivLines,0),r.categoryNumDivLines=(0,a.pluckNumber)(t.numDivLines,0),r.axisValuePadding=o(r.axisValuePadding,0),r.isReverse=(0,a.pluckNumber)(t.isReverse,0),r.isOpposit=(0,a.pluckNumber)(t.isOpposit,0),r.isVertical=(0,a.pluckNumber)(t.isVertical,0),r.categoryDivLinesFromZero=1,r.axisMinValue=h.getCleanValue(t.axisMinValue),r.axisMaxValue=h.getCleanValue(t.axisMaxValue),r.zeroPlaneColor=(0,a.pluck)(t.zeroPlaneColor,t.divLineColor),r.zeroPlaneThickness=(0,a.pluck)(t.zeroPlaneThickness,t.divLineThickness),r.axisLineColor=(0,a.convertColor)(t.axisLineColor,t.axisLineAlpha),r.tickAlpha=(0,a.pluckNumber)(t.tickAlpha,r.axisLineAlpha),r.tickColor=(0,a.convertColor)((0,a.pluck)(t.tickColor,t.axisLineColor),r.tickAlpha),r.tickWidth=(0,a.pluckNumber)(t.tickWidth,r.axisLineThickness),r.maxZoomLimit=(0,a.pluckNumber)(u.maxzoomlimit,s.maxzoomlimit,1e3),r.showVLines=(0,a.pluckNumber)(u.showvlines,1),r.showVLinesOnTop=(0,a.pluckNumber)(u.showvlinesontop,0),r.showVLineLabels=(0,a.pluckNumber)(u.showvlinelabels,this.showVLineLabels,1),r.showVLineLabelBorder=(0,a.pluckNumber)(u.showvlinelabelborder,1),r.rotateVLineLabels=(0,a.pluckNumber)(u.rotatevlinelabels,0),r.vLineColor=(0,a.pluck)(u.vlinecolor,"333333"),r.vLineLabelColor=(0,a.pluck)(u.vlinelabelcolor),r.vLineThickness=(0,a.pluck)(u.vlinethickness,1),r.vLineAlpha=(0,a.pluckNumber)(u.vlinealpha,80),r.vLineLabelBgColor=(0,a.pluck)(u.vlinelabelbgcolor,"ffffff"),r.vLineLabelBgAlpha=(0,a.pluckNumber)(u.vlinelabelbgalpha,c?50:100),r.staggerLines=Math.max((0,a.pluckNumber)(u.staggerlines,2),2),r.staggerLines=o(r.staggerLines,1),r.trendlineValuesOnOpp=(0,a.pluck)(t.trendlineValuesOnOpp,t.trendlineValuesOnOpp,0),r.labelDisplay=(0,a.pluck)(t.labelDisplay,"auto").toLowerCase(),r.labelStep=(0,a.pluckNumber)(t.labelStep,1),r.labelStep=Math.round(r.labelStep),r.labelStep=o(r.labelStep,1),r.startPad=0,r.endPad=0,r._oriLabelStep=r.labelStep,r.showLimits=(0,a.pluckNumber)(t.showLimits,r.showAxisValues),r.showUpperLimit=t.showLimits,r.showDivLineValues=(0,a.pluckNumber)(t.showDivLineValues,r.showAxisValues),r.showCanvasBorder=s.getChildren("canvas")[0].config.showCanvasBorder?1:0,r.axisBreak=t.axisBreaks,r.isBreak=!!r.axisBreak,r.isBreak&&this._processAxisBreak(),A=(A=(0,a.getFirstValue)(t.axisNameBorderColor,a.BLANKSTRING))?(0,a.convertColor)(A,(0,a.pluckNumber)(t.axisNameBorderAlpha,t.axisNameAlpha,100)):a.BLANKSTRING,r.name=r.name||{},r.name.style={fontFamily:(0,a.pluck)(t.axisNameFont,t.outCanfontFamily),fontSize:(0,a.pluck)(t.axisNameFontSize,(0,a.pInt)(t.outCanfontSize))+a.PXSTRING,fontSizeWithUnit:(0,a.pluckFontSizeMaintainUnit)(t.axisNameFontSizeWithUnit,t.outCanfontSizeWithUnit),color:(0,a.convertColor)((0,a.pluck)(t.axisNameFontColor,t.outCancolor),(0,a.pluckNumber)(t.axisNameFontAlpha,t.axisNameAlpha,100)),fontWeight:(0,a.pluckNumber)(t.axisNameFontBold,1)?"bold":a.NORMAL,fontStyle:(0,a.pluckNumber)(t.axisNameFontItalic)?"italic":a.NORMAL,border:A||t.axisNameBgColor?(0,a.pluckNumber)(t.axisNameBorderThickness,1)+"px solid":a.UNDEF,borderColor:A,borderThickness:(0,a.pluckNumber)(t.axisNameBorderThickness,1),borderPadding:(0,a.pluckNumber)(t.axisNameBorderPadding,2),borderRadius:(0,a.pluckNumber)(t.axisNameBorderRadius,0),backgroundColor:t.axisNameBgColor?(0,a.convertColor)(t.axisNameBgColor,(0,a.pluckNumber)(t.axisNameBgAlpha,t.axisNameAlpha,100)):a.BLANKSTRING,borderDash:(0,a.pluckNumber)(t.axisNameBorderDashed,0)?(0,a.getDashStyle)((0,a.pluckNumber)(t.axisNameBorderDashLen,4),(0,a.pluckNumber)(t.axisNameBorderDashGap,2)):a.DASH_DEF},r.name.style.lineHeight=(0,a.setLineHeight)(r.name.style),n=(n=(0,a.getFirstValue)(u.trendvaluebordercolor,a.BLANKSTRING))?(0,a.convertColor)(n,(0,a.pluckNumber)(u.trendvalueborderalpha,u.trendvaluealpha,100)):a.BLANKSTRING,r.trend=r.trend||{},r.trend.trendStyle={fontFamily:(0,a.pluck)(u.trendvaluefont,t.outCanfontFamily),color:(0,a.pluck)(u.trendvaluefontcolor,t.trendlineColor,t.outCancolor,"333333"),valueAlpha:u.trendvaluealpha,fontSize:(0,a.pluckFontSize)(this.computeFontSize(u.trendvaluefontsize),(0,a.pInt)(t.outCanfontSize))+a.PXSTRING,fontSizeWithUnit:(0,a.pluckFontSizeMaintainUnit)(u.trendvaluefontsize,t.outCanfontSizeWithUnit),fontWeight:(0,a.pluckNumber)(u.trendvaluefontbold)?"bold":a.NORMAL,fontStyle:(0,a.pluckNumber)(u.trendvaluefontitalic)?"italic":a.NORMAL,border:n||u.trendvaluebgcolor?(0,a.pluckNumber)(u.trendvalueborderthickness,1)+"px solid":"",borderColor:n,borderThickness:(0,a.pluckNumber)(u.trendvalueborderthickness,1),borderPadding:(0,a.pluckNumber)(u.trendvalueborderpadding,2),borderRadius:(0,a.pluckNumber)(u.trendvalueborderradius,0),backgroundColor:u.trendvaluebgcolor?(0,a.convertColor)(u.trendvaluebgcolor,(0,a.pluckNumber)(u.trendvaluebgalpha,u.trendvaluealpha,100)):a.BLANKSTRING,borderDash:(0,a.pluckNumber)(u.trendvalueborderdashed,0)?(0,a.getDashStyle)((0,a.pluckNumber)(u.trendvalueborderdashlen,4),(0,a.pluckNumber)(u.trendvalueborderdashgap,2)):a.DASH_DEF},r.trend.trendStyle.lineHeight=(0,a.setLineHeight)(r.trend.trendStyle),r.labels=r.labels||{},r.lines=r.lines||{},r.band=r.band||{},i=(i=(0,a.getFirstValue)(t.labelBdrColor,a.BLANKSTRING))?(0,a.convertColor)(i,(0,a.pluckNumber)(t.labelBdrAlpha,t.labelAlpha,100)):a.BLANKSTRING,r.labels.style={fontFamily:(0,a.pluck)(t.labelFont,t.outCanfontFamily),fontSize:(0,a.pluckNumber)(t.labelFontSize,(0,a.pInt)(t.outCanfontSize))+a.PXSTRING,fontSizeWithUnit:(0,a.pluckFontSizeMaintainUnit)(t.labelFontSizeWithUnit,t.outCanfontSizeWithUnit),fontWeight:(0,a.pluckNumber)(t.labelFontBold)?"bold":a.NORMAL,fontStyle:(0,a.pluckNumber)(t.labelFontItalic)?"italic":a.NORMAL,color:(0,a.convertColor)((0,a.pluck)(t.labelFontColor,t.outCancolor),(0,a.pluckNumber)(t.labelAlpha,100)),labelLink:t.labelLink,border:i||t.labelBgColor?(0,a.pluckNumber)(t.labelBdrThickness,1)+"px solid":"",borderColor:i,borderThickness:(0,a.pluckNumber)(t.labelBdrThickness,1),borderPadding:(0,a.pluckNumber)(t.labelBdrPadding,2),borderRadius:(0,a.pluckNumber)(t.labelBdrRadius,0),backgroundColor:t.labelBgColor?(0,a.convertColor)(t.labelBgColor,(0,a.pluckNumber)(t.labelBgAlpha,t.labelAlpha,100)):a.BLANKSTRING,borderDash:(0,a.pluckNumber)(t.labelBdrDashed,0)?(0,a.getDashStyle)((0,a.pluckNumber)(t.labelBdrDashLen,4),(0,a.pluckNumber)(t.labelBdrDashGap,2)):a.DASH_DEF},r.labels.style.lineHeight=(0,a.setLineHeight)(r.labels.style),r.numberFormatterFn=(0,a.pluck)(t.numberFormatterFn),r.apparentScrollPos=t.apparentScrollPos||r.apparentScrollPos,r.axisRange={},r.dataLimit={},r.axisEndLabelDisplaySpace={left:0,right:0,top:0,bottom:0},r.isConfigured=!0,r._defaultForceDecimal=a.UNDEF,r._defaultDecimalPrecision=a.UNDEF,r.lines.isDraw=(0,a.pluckNumber)(t.lines&&t.lines.isDraw,1),r.band.isDraw=(0,a.pluckNumber)(t.band&&t.band.isDraw,1)},A.createContainer=function(e,t,A){var n=this.getFromEnv("animationManager");return this.addContainer(e,n.setAnimation({container:A,attr:t,el:this.getContainer(e)||"group",component:this,label:"group"}))},A.createGroup=function(e,t,A,n){return void 0===n&&(n="group"),this.getFromEnv("animationManager").setAnimation({container:A,attr:t,el:this.config[e]||"group",component:this,label:n})},A.getValuePadding=function(){var e=this.config;return{left:e.startPad,right:e.endPad}},A.draw=function(){var e,t,A,n,i=this.config,r=this.getFromEnv("chart").config,a=i.isVertical,o=r.viewPortConfig,s=this.getChildren().limitUpdater,l=i.viewPortRatio||{};this._createContainer(),A=o.y*o.scaleY,n=o.x*o.scaleX,l.scaleX&&l.scaleY&&(l.scaleX!==o.scaleX||l.scaleY!==o.scaleY)?(l.scaleX=o.scaleX,l.scaleY=o.scaleY,this._drawComponents()):(a?(t=A-o.y*o.scaleY,i.axisContainer.transform("t0,"+t),i.axisLabelContainerTop.transform("t0,"+t)):(e=n-o.x*o.scaleX,i.axisContainer.transform("t"+e+",0"),i.axisLabelContainerTop.transform("t"+e+",0")),this._drawComponents()),this.addExtEventListener("animationcomplete",(function(){s&&s.forEach((function(e){e.draw()}))}),this.getFromEnv("animationmanager")),this.addToEnv("prevScale",this.getScale().copy())},A.setScale=function(e){this.config.scale=e},A.getScale=function(){return this.config.scale},A.getLimit=function(){var e=this.config.axisRange;return{min:e.min,max:e.max,tickInterval:e.tickInterval}},A.getVisibleConfig=function(){var e=this.config;return{minValue:e.visibleMin,maxValue:e.visibleMax}},A.setAxisConfig=function(e){var t,A=this.config;for(t in e)e.hasOwnProperty(t)&&(A[t]=e[t])},A.getAxisConfig=function(e){var t=this.config;return e?t[e]:t},A.getVisibleLength=function(){var e=this.getVisibleConfig();return Math.abs(e.maxValue-e.minValue)},A.getAxisEndLabelDisplaySpace=function(){return this.config.axisEndLabelDisplaySpace||{}},A.getTicksLen=function(){var e=this.config.tickValues;return e&&e.tickValue.length||0},t}(r.ComponentInterface);t["default"]=s},function(e,t,A){"use strict";t.__esModule=!0,t.axisAnimationFinal=t.axisAnimationAxis=t.appearingFinal=t.appearingAxis=t["default"]=void 0;var n=[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"axis"}],i=[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}],r={"text.appearing":i,"path.appearing":i,"rect.appearing":i},a={"text.appearing":n,"path.appearing":n,"rect.appearing":n,"scrollbar.appearing":n};t.axisAnimationAxis=a,t.axisAnimationFinal=r,t.appearingFinal=i,t.appearingAxis=n;var o={"initial.axis.numeric":a,"initial.axis.category":a,"initial.axis.log":a,"update.axis.numeric":r,"update.axis.category":r,"update.axis.log":r};t["default"]=o},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n=function(e,t){return e.filter((function(e){return t.indexOf(e)<0}))};t["default"]=n},function(e,t,A){var n=A(548),i=A(373)((function(e,t,A){for(var i=[],r=0,a=t.length;r<a;)n(e,t[r],A)||n(e,t[r],i)||i.push(t[r]),r+=1;return i}));e.exports=i},function(e,t){e.exports=function(e,t,A){for(var n=0,i=A.length;n<i;){if(e(t,A[n]))return!0;n+=1}return!1}},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t._parseLabel=t.extractStyleInfo=t.getLabel=t.setAxisPadding=t._createContainer=t.shiftLabels=t.setTickValues=t._drawLabel=t.getPixel=t.getTrendLineLimits=t.setDataLimit=t.setAxisDimention=void 0;var i=n(A(550)),r=n(A(515)),a=A(254),o={wrtVisible:!0},s=function(e,t){var A,n,i,r,o,s,l,c={labelfont:["fontFamily"],labelfontcolor:["fontColor"],labelfontsize:["fontSize",function(e){return e?(0,a.pluckNumber)(e)+"px":a.UNDEF}],labelfontbold:["fontWeight",function(e){return e?"bold":"normal"}],labelfontitalic:["fontStyle",function(e){return e?"italic":"normal"}],labelfontalpha:["fontAlpha"]},u=t.getFromEnv("dataSource").categories,h=u&&u[0]||{},d=function(e){return e},g=!1,p={};for(A in h)"category"===A||A in e||(n=h[A],e[A]=n);for(A in c)o=(r=c[A])[0],s=r[1]||d,n=e[A],i=e[o.toLowerCase()],n===a.UNDEF&&i===a.UNDEF||(l=s(n))===a.UNDEF&&(l=s(i))===a.UNDEF||(p[o]=l,g=!0),g&&(e.style=p)};t.getLabel=function(e){var t=this.config,A=t.tickValues&&t.tickValues.tickValue[e],n={};return A&&A.tooltext&&(n.label=A.label,A.tooltext=(0,a.parseTooltext)(A.tooltext,[3],n)),{label:A&&(A.oriLabel||A.label),tooltext:A&&A.tooltext}},t.setAxisPadding=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var A,n=this.config,i=e,r=t,a=this.getScale().getDomain(),o=a[0],s=a[1];1===n.oriCatLen&&(0===i&&(i=.5),0===r&&(r=.5)),A=i-n.startPad,n.startPad=Math.max(n.startPad,i),n.endPad=Math.max(n.endPad,r),A>0&&(n.setPadding=!0,this._setAxisRange({min:o-A,max:s+A})),n.tickValues||n.originalMax&&n.originalMin&&this.setDataLimit(n.originalMax,n.originalMin)},t._createContainer=function(){var e,t,A,n,i,r=this.config,a=r.isVertical,o=this.getLinkedParent().getChildContainer(),s=o.axisBottomGroup,l=o.axisTopGroup,c=-this.getTranslation(),u=a?"T0,"+c:"T"+c+",0";t=this.createContainer("axisNameGroup",{name:"dataset-Name-group"},s),e=this.createContainer("axisLineGroup",{name:"axis-Line-group"},l),A=this.createContainer("axisTrendGroupTop",{name:"dataset-Trend-group-top"},l),n=this.createContainer("axisLabelGroup",{name:"dataset-Label-group"},s),i=this.createContainer("axisLabelGroupTop",{name:"dataset-Label-group"},l),r.axisContainer=this.createGroup("axisContainer",{name:"dataset-axis",transform:u},n),r.axisLabelContainerTop=this.createGroup("axisLabelContainerTop",{name:"dataset-top-label",transform:u},i),r.axisAxisLineContainer=this.createGroup("axisAxisLineContainer",{name:"axis-line-tick"},e),r.axisTrendLabelContainer=this.createGroup("axisTrendLabelContainer",{name:"dataset-axis-trend-label"},A),r.axisNameContainer=this.createGroup("axisNameContainer",{name:"dataset-axis-name"},t),r.axisAxisLineContainerBottom=this.createGroup("axisAxisLineContainerBottom",{name:"axis-line-tick-bottom"},s)},t.shiftLabels=function(e,t){var A=this.config.labels;A.shiftX=e,A.shiftY=t},t.setTickValues=function(e){var t,A,n,i=e&&e.length,r=this.config,o=r.startPad||0,l=this.getFromEnv("chart"),c=0,u=r.tickValues={},h=u.tickValue=[],d=u.vline=[],g=u.tickIdMap={},p=r.endPad||0;for(r.hasCategory=1,t=0;t<i;t+=1)(n=(A=(0,a.extend2)({},e[t])).id||""===A.id)&&(g[A.id.toLowerCase()]={tickObj:A,index:c}),(r.mapTickValuesById&&n||!r.mapTickValuesById)&&!A.vline&&(s(A,l),h.push(A),h[c].label=(0,a.parseUnsafeString)(h[c].label),c+=1),A.vline&&(A.startIndex=h.length-1,d.push(A));r.oriCatLen=c,this._setAxisRange({max:Number((0,a.toPrecision)(c-1+p,10)),min:Number((0,a.toPrecision)(0-o,10)),tickInterval:Number((0,a.toPrecision)(1,10))})},t._parseLabel=function(){var e,t,A,n,i,r,s,l,c,u,h,d,g,p,f,m,v=this,b=v.config,B=v.getLinkedItem("canvas").getEffectiveDimensions(),C=b.axisDimention,w=v.getFromEnv("chart"),y=w.config,x=b.axisRange,F=b.isOpposit,E=b.labels,S=v.components,Q=S.labels,k=E.style,L=w.getFromEnv("smartLabel"),U=b.isVertical,I=x.max,T=x.min,N=v.getFromEnv("number-formatter"),D=B.top,P=B.left,M=D+B.height,O=P+B.width,H=b.labelPadding,_=b.extremeLabels,R=U?C.x:C.y,V=C.opposite,G=b.labelMaxH,K=b.labelMaxW,z=x.tickInterval,W=Math.abs(v.getPixel(T,o)-v.getPixel(T+z,o)),j=[],X=b.ticks,Y=0,J=b.isReverse,q=(0,a.pluckNumber)(v.getFromEnv("chart-attrib").showzeroplanevalue),Z=!0,$=v.getLimit();if(k.fontSize=this.computeFontSize(k.fontSizeWithUnit),k.lineHeight=(0,a.setLineHeight)(k),L.useEllipsesOnOverflow(y.useEllipsesWhenOverflow),L.setStyle({fontSize:k.fontSize,fontFamily:k.fontFamily,lineHeight:k.lineHeight,fontWeight:k.fontWeight}),(n=k.lineHeight)&&-1!==n.indexOf("px")&&(n=parseFloat(n.replace("px",""))),0===q&&(Z=!1),b.labels.isDraw){var ee;if(b.drawLabelsOpposit&&(F=!F,R=V),c={fill:k.color,"line-height":n,"font-size":k.fontSize,opacity:1,cursor:k.labelLink?"pointer":""},A=b.labels.rotation,U?(b.labelMaxH>W&&!b.tickValues&&(s=Math.ceil(b.labelMaxH/W)),c["text-anchor"]=F?a.POSITION_START:a.POSITION_END):(b.labelMaxW>W&&!b.tickValues&&(s=Math.ceil(b.labelMaxW/W)),A?(c["text-anchor"]=F?a.POSITION_START:a.POSITION_END,c["vertical-align"]="middle"):c["vertical-align"]=F?a.POSITION_BOTTOM:a.POSITION_TOP,h=P,d=y.width-O),s>b.labels.step&&(b.labels.step=s),l=b.numberFormatterFn?N[b.numberFormatterFn]:b.isPercent?N.yAxisPercentValue:U?N.yAxis:N.xAxis,_.firstLabel={},_.lastLabel={},m=X.filter((function(e,t,A){return 0!==e||b.showZeroPlaneValue?!(!U&&(b.isReverse?0!==t:t!==A.length-1)&&v.getPixel(e,o)+b.labelMaxW>O)&&!(t%b.labels.step!=0&&(!b.labels.drawLimitVal||0!==t&&t!==A.length-1)||(j[Y++]=t,0)):!(!Z||Z&&$.max!==e&&$.min!==e)&&(j[Y++]=t,!0)})),b.isZeroTickForced&&-1!==m.indexOf(0))Y=0,j=[],f=v.getPixel(0),m=m.filter((function(e,t,A){return ee=v.getPixel(e),0===A[t+1]||0===A[t-1]?U?!(ee+G>=f&&f>=ee-G)&&(j[Y++]=t,!0):!(ee+K>=f&&f>=ee-K)&&(j[Y++]=t,!0):(j[Y++]=t,!0)}));for(i=(U?K:W/2)*b.labels.step,r=U?W/2:G,S.labelIndexArr=j.slice(),e=0,t=m.length;e<t;e+=1)g=m[e],Q[j[e]]=Q[j[e]]||{config:{props:{label:{}}}},u=Object.assign({},c),p=a.UNDEF,(b.labels.drawNormalVal||g===T||g===I)&&(b.labels.drawLimitVal||g!==T&&g!==I)?g===T&&b.lowerLimitDisplay&&b.labels.drawLimitVal?(p=L.getSmartText(b.lowerLimitDisplay,i,r+n/2),u.text=p.text,u.tooltext=p.tooltext):g===I&&b.upperLimitDisplay&&b.labels.drawLimitVal?(p=L.getSmartText(b.upperLimitDisplay,i,r+n/2),u.text=p.text,u.tooltext=p.tooltext):(u.text=a.BLANKSTRING+l.call(N,g,b.axisIndex),p=L.getOriSize(u.text)):u.text=a.BLANKSTRING,U?(u.x=F?(R||O)+H:(R||P)-H,u.y=v.getPixel(g,o),(J&&g===T&&b.lowerLimitDisplay||!J&&g===I&&b.upperLimitDisplay)&&p&&p.height>n&&(u["vertical-align"]=a.POSITION_BOTTOM),(J&&g===I&&b.upperLimitDisplay||!J&&g===T&&b.lowerLimitDisplay)&&p&&p.height>n&&(u["vertical-align"]=a.POSITION_TOP),b.placeValuesInside&&(u["text-anchor"]=F?a.POSITION_END:a.POSITION_START)):(u.x=v.getPixel(g,o),u.y=F?(R||D)-H:(R||M)+H,(!J&&g===T||J&&g===I)&&p&&p.width>2*h&&(u["text-anchor"]=a.POSITION_START),(!J&&g===I||J&&g===T)&&p&&p.width>2*d&&(u["text-anchor"]=a.POSITION_END),b.placeValuesInside?u["vertical-align"]=F?a.POSITION_TOP:a.POSITION_BOTTOM:u["vertical-align"]=F?a.POSITION_BOTTOM:a.POSITION_TOP),u["text-bound"]=void 0===g?[]:[(0,a.pluck)(k.backgroundColor,a.BLANKSTRING),(0,a.pluck)(k.borderColor,a.BLANKSTRING),(0,a.pluck)(k.borderThickness,a.BLANKSTRING),(0,a.pluck)(k.borderPadding,0),(0,a.pluck)(k.borderRadius,0),(0,a.pluck)(k.borderDash,"none")],E.shiftX&&(u.x+=E.shiftX),E.shiftY&&(u.y+=E.shiftY),u.transform=(0,a.getSuggestiveRotation)(A,u.x,u.y),Q[j[e]].config.props.label.attr=u}},t._drawLabel=function(){var e,t,A,n,r,a,o,s,l,c,u,h=this.config,d=this.getFromEnv("animationManager"),g=this.getFromEnv("toolTipController"),p=h.axisRange,f=h.labels.style,m=this.components,v=p.max,b=p.min,B=h.axisContainer,C=h.extremeLabels,w=h.ticks,y=[],x={fontFamily:f.fontFamily,fontSize:f.fontSize,fontWeight:f.fontWeight,fontStyle:f.fontStyle,lineHeight:f.lineHeight};if(h.labels.isDraw)for(u=m.labels,c=m.labelIndexArr,B.css(x),t=0,A=c&&c.length;t<A;t+=1)r=(s=w[e=c[t]])+"_label",n=this.getGraphicalElement(r),o=u[e].config.props.label.attr,n=this.addGraphicalElement(r,d.setAnimation({el:n||"text",attr:o,container:B,data:{value:s},component:this,label:"text"})),o.tooltext||n.abbrArr?g.enableToolTip(n,o.tooltext):g.disableToolTip(n),s===v?C.lastLabel.graphic=n:s===b&&(C.firstLabel.graphic=n),y.push(r);for(e=0,A=(l=(0,i["default"])(h.prevIntervalArr,y)).length;e<A;e++)(a=this.getGraphicalElement(l[e]))&&this.removeGraphicalElement(a);h.prevIntervalArr=y},t.getPixel=function(e){return this.getScale().getRangeValue(e)},t.getTrendLineLimits=function(){var e,t,A,n,i=this.config,o=i.trendLines||i.vTrendLines||i.trendPoints,s=o&&o[0]&&o[0].line||o&&o.point;if(i.trendLimits)return i.trendLimits;var l=(0,r["default"])(s,(function(e){return""===e.startvalue?a.UNDEF:Number(e.startvalue)}));e=l[0],t=l[1];var c=(0,r["default"])(s,(function(e){return""===e.endvalue?a.UNDEF:Number(e.endvalue)}));return A=c[0],n=c[1],i.trendLimits=(0,r["default"])([e,t,A,n],(function(e){return Number(e)})),i.trendLimits},t.setDataLimit=function(e,t){var A,n,i,o,s=e,l=t,c=this.config,u=this.getFromEnv("dataSource").categories,h=u&&u[0]&&u[0].category,d=c.startPad||0,g=c.endPad||0,p=c.xAxisLabelMode;if("categories"===p||"mixed"===p){var f=(0,r["default"])(h,(function(e){return Number(e.x)}));A=f[0],n=f[1]}var m=this.getTrendLineLimits();i=m[0],o=m[1];var v=(0,r["default"])([i,o,A,n,l,s],(function(e){return Number(e)}));l=v[0],s=v[1],c.originalMax=s,c.originalMin=l,s=c.isPercent?100:s+g,l=c.isPercent?0:l-d,this._setAxisRange({min:l,max:s}),c.axisRange.tickInterval!==a.UNDEF&&this._adjustNumberFormatter(c.axisRange.tickInterval)},t.setAxisDimention=function(e){var t=this.getScale(),A=this.config,n=this.getFromEnv("chart").config,i=A.axisDimention||(A.axisDimention={}),r=A.isReverse;i.opposite=(0,a.pluckNumber)(e.opposite,i.opposite),i.x=(0,a.pluckNumber)(e.x,i.x,n.canvasLeft),i.y=(0,a.pluckNumber)(e.y,i.y,n.canvasTop),i.axisLength=(0,a.pluckNumber)(e.axisLength,i.axisLength),A.isVertical?r?t.setRange([i.y+i.axisLength,i.y]):t.setRange([i.y,i.y+i.axisLength]):r?t.setRange([i.x+i.axisLength,i.x]):t.setRange([i.x,i.x+i.axisLength]),A.translation=this._computeTranslation()},t.extractStyleInfo=s},function(e,t,A){var n=A(369),i=A(551),r=n((function(e,t){for(var A=[],n=0,r=e.length,a=t.length,o=new i,s=0;s<a;s+=1)o.add(t[s]);for(;n<r;)o.add(e[n])&&(A[A.length]=e[n]),n+=1;return A}));e.exports=r},function(e,t,A){var n=A(552),i=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!r(e,!0,this)},e.prototype.has=function(e){return r(e,!1,this)},e}();function r(e,t,A){var i,r=typeof e;switch(r){case"string":case"number":return 0===e&&1/e==-Infinity?!!A._items["-0"]||(t&&(A._items["-0"]=!0),!1):null!==A._nativeSet?t?(i=A._nativeSet.size,A._nativeSet.add(e),A._nativeSet.size===i):A._nativeSet.has(e):r in A._items?e in A._items[r]||(t&&(A._items[r][e]=!0),!1):(t&&(A._items[r]={},A._items[r][e]=!0),!1);case"boolean":if(r in A._items){var a=e?1:0;return!!A._items[r][a]||(t&&(A._items[r][a]=!0),!1)}return t&&(A._items[r]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==A._nativeSet?t?(i=A._nativeSet.size,A._nativeSet.add(e),A._nativeSet.size===i):A._nativeSet.has(e):r in A._items?!!n(e,A._items[r])||(t&&A._items[r].push(e),!1):(t&&(A._items[r]=[e]),!1);case"undefined":return!!A._items[r]||(t&&(A._items[r]=!0),!1);case"object":if(null===e)return!!A._items["null"]||(t&&(A._items["null"]=!0),!1);default:return(r=Object.prototype.toString.call(e))in A._items?!!n(e,A._items[r])||(t&&A._items[r].push(e),!1):(t&&(A._items[r]=[e]),!1)}}e.exports=i},function(e,t,A){var n=A(553);e.exports=function(e,t){return n(t,e,0)>=0}},function(e,t,A){var n=A(554);e.exports=function(e,t,A){var i,r;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(i=1/t;A<e.length;){if(0===(r=e[A])&&1/r===i)return A;A+=1}return-1}if(t!=t){for(;A<e.length;){if("number"==typeof(r=e[A])&&r!=r)return A;A+=1}return-1}return e.indexOf(t,A);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,A);case"object":if(null===t)return e.indexOf(t,A)}for(;A<e.length;){if(n(e[A],t))return A;A+=1}return-1}},function(e,t,A){var n=A(369),i=A(555),r=n((function(e,t){return i(e,t,[],[])}));e.exports=r},function(e,t,A){var n=A(556),i=A(548),r=A(557),a=A(376),o=A(558),s=A(559),l=A(561);function c(e,t,A,r){var a=n(e),o=n(t);function s(e,t){return u(e,t,A.slice(),r.slice())}return!i((function(e,t){return!i(s,t,e)}),o,a)}function u(e,t,A,n){if(o(e,t))return!0;var i=l(e);if(i!==l(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(i){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===r(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!o(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!o(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var h=A.length-1;h>=0;){if(A[h]===e)return n[h]===t;h-=1}switch(i){case"Map":return e.size===t.size&&c(e.entries(),t.entries(),A.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&c(e.values(),t.values(),A.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var d=s(e);if(d.length!==s(t).length)return!1;var g=A.concat([e]),p=n.concat([t]);for(h=d.length-1;h>=0;){var f=d[h];if(!a(f,t)||!u(t[f],e[f],g,p))return!1;h-=1}return!0}e.exports=u},function(e,t){e.exports=function(e){for(var t,A=[];!(t=e.next()).done;)A.push(t.value);return A}},function(e,t){e.exports=function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}},function(e,t){e.exports="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,A){var n=A(370),i=A(376),r=A(560),a=!{toString:null}.propertyIsEnumerable("toString"),o=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],s=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),l=function(e,t){for(var A=0;A<e.length;){if(e[A]===t)return!0;A+=1}return!1},c="function"!=typeof Object.keys||s?n((function(e){if(Object(e)!==e)return[];var t,A,n=[],c=s&&r(e);for(t in e)!i(t,e)||c&&"length"===t||(n[n.length]=t);if(a)for(A=o.length-1;A>=0;)i(t=o[A],e)&&!l(n,t)&&(n[n.length]=t),A-=1;return n})):n((function(e){return Object(e)!==e?[]:Object.keys(e)}));e.exports=c},function(e,t,A){var n=A(376),i=Object.prototype.toString,r=function(){return"[object Arguments]"===i.call(arguments)?function(e){return"[object Arguments]"===i.call(e)}:function(e){return n("callee",e)}}();e.exports=r},function(e,t,A){var n=A(370)((function(e){return null===e?"Null":e===undefined?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));e.exports=n},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=n(A(542)),a=n(A(540)),o=n(A(563)),s=A(254),l=A(549),c=s.preDefStr.POSITION_START,u=s.preDefStr.POSITION_MIDDLE,h=s.preDefStr.POSITION_TOP,d=s.preDefStr.POSITION_BOTTOM,g=s.preDefStr.POSITION_END,p={wrtVisible:!0},f=function(e){function t(){var t;return(t=e.call(this)||this).config.scale=new o["default"],t}(0,i["default"])(t,e);var A=t.prototype;return A.getName=function(){return"category"},A.getCategoryFromId=function(e){var t=this.config.tickValues;return(t&&t.tickIdMap)[e]||{}},A.generateTicks=function(){var e=this.getScale(),t=this.config,A=e.getDomain(),n=t.categoryNumDivLines+1,i=(A[1]-A[0])/n,r=t.axisRange,o=r.min,s=r.max,l=(s-o)/n;return t._allTicks=(0,a["default"])(o,s,l).concat(s),r.tickInterval=l,(0,a["default"])(A[0],A[1],i).concat(A[1])},A._parseCategoryVline=function(){var e,t,A,n,i,r,a,o,l,p,f,m,v,b,B,C,w,y,x,F,E,S,Q,k,L,U,I,T,N,D,P=this.config,M=P.axisRange,O=M.min,H=M.max,_=this.getFromEnv("chart").config,R=_.style||{},V=P.isVertical,G={fontFamily:_.style.inCanfontFamily,fontSize:_.style.inCanfontSize,color:_.style.inCancolor,lineHeight:_.style.inCanLineHeight};for(A=(t=P.tickValues.vline).length,I=1!==this.getZoom(),T=this.getVisibleConfig(),r=0;r<A;r++)n=t[r],i=(0,s.parseUnsafeString)(n.label),a=Boolean((0,s.pluckNumber)(n.showlabelborder,P.showVLineLabelBorder,1)),e=Boolean((0,s.pluckNumber)(n.showlabelbackground,1)),"center"===(o=(0,s.pluck)(n.labelhalign,V?c:u))?o=u:"left"===o?o=c:"right"===o&&(o=g),(l=(0,s.pluck)(n.labelvalign,V?u:d).toLowerCase())===u?l=u:l===h?l=d:l===d&&(l=h),p=(0,s.pluckNumber)(n.labelposition,0),f=(0,s.pluckNumber)(n.lineposition,.5),m=(0,s.pluckNumber)(n.showvlines,P.showVLines,1),v=(0,s.pluckNumber)(n.alpha,P.vLineAlpha,80),b=(0,s.pluck)(n.color,P.vLineColor).replace(/^#?/,"#"),B=e?(0,s.pluck)(n.labelbgcolor,P.vLineLabelBgColor,"333333").replace(/^#?/,"#"):s.BLANKSTRING,k=(0,s.pluck)(n.labelcolor,P.vLineLabelColor,n.color,R.inCancolor,P.vLineColor).replace(/^#?/,"#"),C=(0,s.pluckNumber)(n.thickness,P.vLineThickness,1),2,w=Boolean(Number((0,s.pluck)(n.dashed,0))),y=(0,s.pluckNumber)(n.dashlen,5),F=(0,s.pluckNumber)(n.dashgap,2),x=G.fontSize,x=parseInt(x.replace(/px/i,""),10),L=(0,s.pluckNumber)(n.rotatelabel,P.rotateVLineLabels)?270:0,f=f<0||f>1?.5:f,p=p<0||p>1?0:p,b=(0,s.convertColor)(b,m?v:"0"),D=n.animate&&!V?n.startIndex+1:n.startIndex,U=this._getVlinePos(D,f)-(n.animate?n.leftShift:0),I&&(U<T.minValue||U>T.maxValue)||U<O||U>H||(E={opacity:1,stroke:b,"stroke-width":C,"stroke-dasharray":w?(0,s.getDashStyle)(y,F):"none"},Q={opacity:1,text:i,"text-anchor":o,"vertical-align":l,"text-bound":[]},S={fontSize:G.fontSize,fontFamily:G.fontFamily,lineHeight:G.lineHeight},N={from:U,layer:(0,s.pluckNumber)(n.showontop,P.showVLinesOnTop,0)?3:2,attr:E,type:"line",startIndex:n.startIndex,linePosition:f},i&&(Q["text-bound"]=[B,m&&a?b:s.BLANKSTRING,m&&a?1:0,2,s.UNDEF,m&&a?"solid":s.BLANKSTRING],Q.fill=m?k:b,N.text={label:i,attr:Q,layer:4,labelRotation:L,labelPosition:p,css:S}),this.setReferenceInfo(N),this.config.parsedVlineInfo.push(N))},A._parseReferenceVisuals=function(){e.prototype._parseReferenceVisuals.call(this),this.config.drawPlotlines&&this._parseCategoryVline()},A.categoryInsert=function(e,t,A){var n,i,r,a,o,l=e,c=this.config,u=c.axisRange.min,h=t.length,d=c.endPad||0;for(n=c.tickValues.tickValue,r=c.tickValues.tickIdMap,i=c.tickValues.vline,a=0;a<h;a+=1)"true"!==(o=(0,s.extend2)({},t[a])).vline&&!0!==o.vline&&1!==o.vline&&"1"!==o.vline?(o.id&&(r[o.id]={tickObj:o,i:l}),n.splice(l,0,o),l+=1):(o.startIndex=l-2,i.push(o));A&&this._setAxisRange({min:u,max:Number((0,s.toPrecision)(n.length-1+d,10))})},A.categoryDelete=function(e,t,A){var n,i,r,a=this.config,o=a.axisRange,s=o.min;for(i=0,r=(n=a.tickValues.vline).length;i<r;i++)n[i].animate=!0,n[i].leftShift=t;a.tickValues.tickValue.splice(e,t),this._shiftVline(e,t,"left"),A&&this._setAxisRange({min:s,max:o.max-t})},A._shiftVline=function(e,t,A){var n,i,r=this.config,a=r.tickValues.vline,o=r.tickValues.tickValue.length,s=a.length;for(n=0;n<s;n+=1)(i=a[n]).startIndex>=e&&("right"===A?i.startIndex+=t:i.startIndex-=t,(i.startIndex<0||i.startIndex>=o)&&(a.splice(n,1),s-=1,n-=1))},A.categoryTranslate=function(e){var t,A=e,n=this.config;A=(A||0)*(this.getPixel(1,p)-this.getPixel(0,p)),n.isReverse&&(A=-A),t=["T",A,",","0"].join(""),this.realTimeTranslatableGroups=[{group:n.axisContainer,translationStr:t},{group:n.axisTrendLabelContainer,translationStr:t}]},A.updateTicksValues=function(e,t){var A,n,i,r,a,o,s,l=this.config,c=l.parsedVlineInfo;if((A=l.tickValues.tickValue)[e])for(s in t)t.hasOwnProperty(s)&&("x"===s&&(n=!0),A[e][s]=t[s]);if(n)for(r=0,a=c.length;r<a;++r)if((o=(i=c[r]).startIndex)===e)i.from=this._getVlinePos(o,i.linePosition);else if(o+1===e){i.from=this._getVlinePos(o,i.linePosition);break}},A._getVlinePos=function(e,t){var A,n,i,r=this.getTickValues(),a=this.config,o=this.getLimit(),l=o.min,c=o.max,u=r[e],h=r[e+1];return u?h||(A=r[0]&&r[0].x?c:a.oriCatLen-1,i=!0):(A=r[0]&&r[0].x?l:-1,i=!0),n=i?t:((A=(0,s.pluckNumber)(u.x,u.y,e))-(0,s.pluckNumber)(h.x,h.y,e+1))*t,A+Math.abs(n)},A.getInterval=function(){if(this)return 1},A._setAxisRange=function(e){var t,A,n=e.min,i=e.max,r=this.config,o=r.axisRange,l=r.periodLength,c=r.dataLimit,u=c.max,h=c.min;n>i||(u===i&&h===n||(t=!0),r.visibleMin===s.UNDEF||r.setPadding||t?(c.max=i,c.min=n,l&&(r.categoryNumDivLines=(i-n)/l-1),A=(i-n)/(r.categoryNumDivLines+1),this.getScale().setDomain([n,i]),r.ticks=(0,a["default"])(n,i,A).concat(i),r._allTicks=r.ticks.slice(),o.min=n,o.max=i,o.tickInterval=A,this.setVisibleConfig(o.min,o.max)):r.setPadding=!1)},t}(r["default"]);f.prototype.setTickValues=l.setTickValues;var m=f;t["default"]=m},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var A=o(t);if(A&&A.has(e))return A.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=e[r]}n["default"]=e,A&&A.set(e,n);return n}(A(519)),a=n(A(512));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,A=new WeakMap;return(o=function(e){return e?A:t})(e)}var s=function(e){function t(){return e.call(this,r.deInterpolateLinear,a["default"])||this}return(0,i["default"])(t,e),t.prototype.copy=function(){return(0,r.copyScale)(this,new t)},t}(r["default"]);t["default"]=s},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=function(e){var t,A=e._parseCanvasCosmetics&&e._parseCanvasCosmetics();if((0,a.componentFactory)(e,i["default"],"canvas",e.config.showVolumeChart?2:1),t=e.getChildren("canvas"))for(var n=0,o=t.length;n<o;n++)t[n].configure(A),(0,a.componentFactory)(t[n],r["default"],"axisRefVisualCartesian")};var i=n(A(500)),r=n(A(565)),a=A(254)},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=A(270),a=n(A(512)),o=n(A(546)),s=A(543),l=n(A(566)),c=A(262);(0,c.addDep)({name:"cartesianAxisRefAnimation",type:"animationRule",extension:l["default"]});var u=function(e){function t(){var t;return(t=e.call(this)||this).config.map={},t.config.explicitDrawItems={},t}(0,i["default"])(t,e);var A=t.prototype;return A.getType=function(){return"axisRefVisuals"},A.getName=function(){return"axisRefVisualsCartesian"},A.draw=function(){var e,t,A,n,i,r,a,o=this.getDrawingInfo(),s=this.getexplicitDrawItems(),l=this.config,c=l.map,u={},h=this.getLinkedParent(),d=h.getAxes(),g=[],p=h.getChildContainer("axisReferenceVisualsFloor"),f=h.getChildContainer("axisReferenceVisualsBottom"),m=h.getChildContainer("axisReferenceVisualsMiddle"),v=h.getChildContainer("axisReferenceVisualsTop"),b=h.getChildContainer("axisReferenceVisualsCeil");for(h.config.trendlines=[],h.config.vtrendlines=[],t=0;t<d.length;++t)g.push(d[t].axis.getId());for(n in l.containers=[p,f,m,v,b],o)if(o.hasOwnProperty(n)&&(i=this.getLinkedItem(n),g.indexOf(i.getId())>=0))for((r=u[n])||(r=u[n]=[]),e=o[n],t=0;t<e.length;++t)"band"===(A=(a=e[t]).type)?r.push.apply(r,this.createBand(a,i)):"line"===A&&r.push.apply(r,this.createLine(a,i));if(l.isSmartDrawing)for(n in c)c.hasOwnProperty(n)&&!s[n]&&this.getLinkedItem(n)&&(u[n]=c[n]);this.resetexplicitDrawItems(),this.removeExtraElements(u)},A.getDrawingInfo=function(){var e,t,A={},n=this.getexplicitDrawItems(),i=this.isCanvasChnaged(),r=(this.config.isSmartDrawing=Object.keys(n).length&&!i)?n:this.getLinkedItem();for(e in r)r.hasOwnProperty(e)&&(t=r[e],A[e]=t.getReferenceInfo());return A},A.createLine=function(e,t){var A,n,i,r,o=this.config.containers,l=o[e.layer],c=t.config,u=this.getFromEnv("paper"),h=this.getFromEnv("chart").getName(),d=this.getLinkedParent(),g=this.getFromEnv("animationManager"),p=this.getFromEnv("toolTipController"),f=d.config,m=f.trendlines,v=c.isVertical,b=f.canvasLeft,B=f.canvasTop,C=B+f.canvasHeight,w=b+f.canvasWidth,y=(0,a["default"])(b,w),x=(0,a["default"])(B,C),F=t.getScale(),E=F.getRangeValue(e.from),S=void 0!==e.to&&F.getRangeValue(e.to)||E,Q=v?["M",b,E,"L",w,S]:["M",E,C,"L",S,B],k=e.attr,L=e.text,U=L&&L.attr,I=L&&L.labelPosition||0,T=t.getId(),N=e.id||e.from,D=T+"_"+N,P=this.getGraphicalElement(D),M=e.handlers,O={start:e.from,end:e.to};for(i in k.path=(0,s.getCrispPath)(Q,(r=k["stroke-width"],null!==r?k["stroke-width"]:1)).path.toString(),/trend/.test(e.id)&&m.push({x1:Q[1],y1:Q[2],x2:Q[4],y2:Q[5],tooltext:e.toolText,tolerance:k["stroke-width"]<5?2.5:k["stroke-width"]/2}),k["stroke-linecap"]="butt",(P=this.addGraphicalElement(D,g.setAnimation({container:l,el:P||"path",attr:k,component:this,axis:t,data:{value:O,path:Q},label:"path"}))).data("data",O),L&&(A=T+"_"+N+U.text,n=this.getGraphicalElement(A),v?(U.x=y(I),U.y=E):(U.x=E,U.y=x(I)),U.text=L.label,U.transform=u.getSuggestiveRotation(L.labelRotation,U.x,U.y),(n=this.addGraphicalElement(A,g.setAnimation({container:o[L.layer],el:n||"text",attr:U,component:this,axis:t,data:{value:e.from},label:"text",css:L.css}))).data("data",e.from)),/zoomscatter/i.test(h)||(e.toolText?p.enableToolTip(P,e.toolText):p.disableToolTip(P)),M)M.hasOwnProperty(i)&&(P.on(i,M[i].bind(t)),n&&n.on(i,M[i].bind(t)));return L?[D,A]:[D]},A.createBand=function(e,t){var A,n,i,r,a,o,s=this.config.containers[e.layer],l=t.config,c=this.getFromEnv("animationManager"),u=this.getFromEnv("toolTipController"),h=this.getLinkedParent(),d=this.getFromEnv("chart").getName(),g=h.config,p=l.isVertical,f=g.canvasLeft,m=g.canvasTop,v=m+g.canvasHeight,b=f+g.canvasWidth,B=t.getScale(),C=e.from,w=void 0!==e.to?e.to:C,y=t.getId(),x=e.attr,F=e.handlers;for(a in A="canvasStart"===C?p?m:f:B.getRangeValue(C),n="canvasEnd"===w?p?v:b:B.getRangeValue(w),o=Math.abs(A-n),p?(x.x=f,x.y=Math.min(A,n),x.width=b-f,x.height=o):(x.x=Math.min(A,n),x.y=m,x.width=o,x.height=v-m),i=y+"_"+(e.id||x.x+"_"+x.y),r=this.getGraphicalElement(i),/trend/.test(e.id)&&h.config.vtrendlines.push({x1:x.x,y1:x.y,x2:x.x+x.width,y2:x.y+x.height,tooltext:e.toolText,tolerance:x["stroke-width"]<5?2.5:x["stroke-width"]/2,isTrendZone:1}),r=this.addGraphicalElement(i,c.setAnimation({container:s,el:r||"rect",attr:x,component:this,label:"rect"})),/zoomscatter/i.test(d)||(e.toolText?u.enableToolTip(r,e.toolText):u.disableToolTip(r)),F)F.hasOwnProperty(a)&&r.on(a,F[a].bind(t));return[i]},A.removeExtraElements=function(e){var t,A,n,i,r,a,s=this.config.map;for(t in s)if(e[t])for(i=(a=(0,o["default"])(s[t],e[t])).length,n=0;n<i;++n)(r=this.getGraphicalElement(a[n]))&&this.removeGraphicalElement(r);else for(i=(A=s[t]).length,n=0;n<i;++n)(r=this.getGraphicalElement(A[n]))&&this.removeGraphicalElement(r);this.config.map=e},A.setLinkedItem=function(t,A){e.prototype.setLinkedItem.call(this,t,A);var n,i=this;"axis"===A.getType()&&i.addExtEventListener("predraw",(function(e){(n=e.sender).getState("removed")&&(i.removeLinkedItem(n.getId()),i.asyncDraw())}),A)},A.addexplicitDrawItems=function(e,t){this.config.explicitDrawItems[e]=t},A.getexplicitDrawItems=function(){return this.config.explicitDrawItems},A.resetexplicitDrawItems=function(){this.config.explicitDrawItems={}},A.isCanvasChnaged=function(){var e,t=this.getLinkedParent().getEffectiveDimensions(),A=this.config;return e=JSON.stringify(t)!==JSON.stringify(A.canvasDim),A.canvasDim=t,e},t}(r.ComponentInterface);t["default"]=u},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n=A(545),i={"initial.axisRefVisuals.axisRefVisualsCartesian":n.axisAnimationAxis,"update.axisRefVisuals.axisRefVisualsCartesian":n.axisAnimationFinal};t["default"]=i},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=function(e){var t,A,n,a,o,s,l,c=e.getChildren("canvas"),u=c.length,h=[],d=[];for(a=0;a<u;a++,h=[],d=[])if(!(t=c[a]).getState("removed")){for(n=t.getFromEnv("xAxis"),s=0;s<(n&&n.length);s++)n[s].getState("removed")||h.push(n[s]);for(n=t.getFromEnv("yAxis"),s=0;s<(n&&n.length);s++)n[s].getState("removed")||d.push(n[s]);for((0,r.componentFactory)(t,i["default"],"vCanvas",h.length*d.length),A=t.getChildren("vCanvas"),o=0,s=0;o<(h&&h.length);o++)for(l=0;l<(d&&d.length);l++,s++)A[s].xAxis(h[o]).yAxis(d[l]).canvas(t),A[s].configure(),A[s].addToEnv("vCanvas",A[s])}};var i=n(A(568)),r=A(254)},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=A(270),a=A(254),o=function(e,t){var A=e;return A="comp_"+A,t&&(this.config[A]=t),(t||!this.config[A])&&this||this.config[A]},s=function(e,t){return["T",e,",",t].join("")},l=function(e){return-e.getTranslation()},c=function(e,t){return{h:e,v:t}},u=["columnShadowVcanvasGroup","columnVcanvasGroup","areaShadowVcanvasGroup","areaVcanvasGroup","lineShadowVcanvasGroup","lineVcanvasGroup","defaultShadowVcanvasGroup","defaultVcanvasGroup","sumLabelsLayer","vcanvasLabelGroup"],h=function(e,t,A){return A.getFromEnv("animationManager").setAnimation({el:"group",attr:{name:e},container:t,state:"appearing",component:A,label:"group"})},d=function(e){return!/category/i.test(e.getName())},g=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var A=t.prototype;return A.getName=function(){return"virtualCanvas"},A.getType=function(){return"canvas"},A.xAxis=function(e){var t=o.call(this,"xAxis",e);return e&&this.listenToAxis(e),e&&this.addToEnv("xAxis",e),t},A.yAxis=function(e){var t=o.call(this,"yAxis",e);return e&&this.listenToAxis(e),e&&this.addToEnv("yAxis",e),t},A.paper=function(e){return o.call(this,"paper",e)},A.canvas=function(e){return o.call(this,"canvas",e)},A.configure=function(e){void 0===e&&(e={});var t=this.getFromEnv("chartConfig"),A=this.config;Object.assign(A,e),A.transposeAxis=t.transposeAxis,this._mapChildren((function(e){e.getState("removed")||"dataset"===e.getType()||e.configure&&e.configure()}))},A.getHorizontalVerticalAxes=function(){var e=this.xAxis(),t=this.yAxis();return t.config.isVertical?c(e,t):c(t,e)},A.preDraw=function(){this._mapChildren((function(e){e.getState("removed")||"dataset"===e.getType()||e.setVisibility&&e.setVisibility()}));var e,t=this.config.transposeAxis,A=this.getFromEnv("chart"),n=this.getAxisValuePadding(),i=n.left,r=n.right,a=n.top,o=n.bottom;(e=this.getDataLimits(!t)).min!==Infinity||e.max!==-Infinity?(this._setYAxisLimits(e.min,e.max),A._storeIntialLimit&&A._storeIntialLimit(e.min,e.max)):(this._setYAxisLimits(void 0,void 0),A._storeIntialLimit&&A._storeIntialLimit(void 0,void 0)),this._setXAxisLimits(e.xMin,e.xMax),this._setAxisValuePadding(i,r,a,o)},A.childChanged=function(e){void 0===e&&(e={});var t,A=this.config,n=A.transposeAxis;!1!==e.dataLimitChanged&&(t=this.getDataLimits(!n),!n||t.min===A.range.min&&t.max===A.range.max||(A.range.min=t.min,A.range.max=t.max,this.getFromEnv("yAxis").resetStoredLimits(),t.min!==Infinity||t.max!==-Infinity?this._setYAxisLimits(t.min,t.max):this._setYAxisLimits(void 0,void 0)),t.xMin===A.range.xMin&&t.xMax===A.range.xMax||(A.range.xMin=t.xMin,A.range.xMax=t.xMax,this.getFromEnv("xAxis").resetStoredLimits(),this._setXAxisLimits(t.xMin,t.xMax)),t.xMin!==Infinity&&t.xMax!==-Infinity||this._changeXAxisCordinates()),this.asyncDraw()},A._setAxisValuePadding=function(e,t,A,n){this.getFromEnv("xAxis").setAxisPadding(e,t),A&&n&&this.getFromEnv("yAxis").setAxisPadding(e,t)},A.getAxisValuePadding=function(){var e={},t=-Infinity,A=-Infinity,n=-Infinity,i=-Infinity;return this._mapChildren((function(r){r.getState("removed")||(e=r.getAxisValuePadding&&r.getAxisValuePadding()||{},t=Math.max(t,e.left||-Infinity),A=Math.max(A,e.right||-Infinity),n=Math.max(n,e.top||-Infinity),i=Math.max(i,e.bottom||-Infinity))})),t===-Infinity&&(t=0),A===-Infinity&&(A=0),n===-Infinity&&(n=0),i===-Infinity&&(i=0),this.config.padding||(this.config.padding={},this.config.padding.left=t,this.config.padding.right=A,this.config.padding.top=n,this.config.padding.bottom=i),{left:t,right:A,top:n,bottom:i}},A._setYAxisLimits=function(e,t){var A=this.getFromEnv("yAxis");d(A)&&A.setDataLimit(t,e)},A._setXAxisLimits=function(e,t){var A=this.getFromEnv("xAxis");d(A)&&(t!==-Infinity||e!==+Infinity?A.setDataLimit(t,e):A.setDataLimit(void 0,void 0))},A.getDataLimits=function(e){var t,A,n,i=this.getFromEnv("chart"),r=-Infinity,o=+Infinity,s=r,l=o,c=o,u=r;return this._mapChildren((function(i){var h;i.getDataLimits&&!i.getState("removed")&&(e||i.getState("visible"))&&(t=i.getDataLimits(e),h=t,A=(0,a.pluck)(h.xMax,r),n=(0,a.pluck)(h.xMin,o),s=Math.max(s,h.max),l=Math.min(l,h.min),u=Math.max(u,A),c=Math.min(c,n))})),this.config.range||(this.config.range={},this.config.range.min=l,this.config.range.max=s,this.config.range.xMin=c,this.config.range.xMax=u),i.config.yMax=s,i.config.yMin=l,{min:l,max:s,xMin:c,xMax:u}},A.listenToAxis=function(e){var t,A=this;t=function(){A.getState("drawn")&&A.asyncDraw()},this.getState("visiblerangeset"+e.getId())||(this.setState("visiblerangeset"+e.getId(),!0),A.addExtEventListener("visiblerangeset",t,e))},A.createContainer=function(){var e=this.getLinkedParent();!this.getChildContainer("columnShadowVcanvasGroup")&&this.addChildContainer("columnShadowVcanvasGroup",h("vcanvas-column-shadow",e.getChildContainer("columnShadowGroup"),this)),!this.getChildContainer("columnVcanvasGroup")&&this.addChildContainer("columnVcanvasGroup",h("vcanvas-column-plot",e.getChildContainer("columnGroup"),this)),!this.getChildContainer("areaShadowVcanvasGroup")&&this.addChildContainer("areaShadowVcanvasGroup",h("vcanvas-area-shadow",e.getChildContainer("areaShadowGroup"),this)),!this.getChildContainer("areaVcanvasGroup")&&this.addChildContainer("areaVcanvasGroup",h("vcanvas-area-plot",e.getChildContainer("areaGroup"),this)),!this.getChildContainer("lineShadowVcanvasGroup")&&this.addChildContainer("lineShadowVcanvasGroup",h("vcanvas-line-shadow",e.getChildContainer("lineShadowGroup"),this)),!this.getChildContainer("lineVcanvasGroup")&&this.addChildContainer("lineVcanvasGroup",h("vcanvas-line-plot",e.getChildContainer("lineGroup"),this)),!this.getChildContainer("defaultShadowVcanvasGroup")&&this.addChildContainer("defaultShadowVcanvasGroup",h("vcanvas-default-shadow",e.getChildContainer("defaultShadowGroup"),this)),!this.getChildContainer("defaultVcanvasGroup")&&this.addChildContainer("defaultVcanvasGroup",h("vcanvas-default-plot",e.getChildContainer("defaultGroup"),this)),!this.getChildContainer("vcanvasLabelGroup")&&this.addChildContainer("vcanvasLabelGroup",h("vcanvas-label",e.getChildContainer("datalabelsGroup"),this)),!this.getChildContainer("columnTrendGroup")&&this.addChildContainer("columnTrendGroup",h("columnTrendGroup",this.getChildContainer("columnVcanvasGroup"),this)),!this.getChildContainer("sumLabelsLayer")&&this.addChildContainer("sumLabelsLayer",h("vcanvas-sumLabelsLayer",e.getChildContainer("sumLabelsLayer"),this))},A.applyTranslation=function(){var e=this,t=function(e){return s(l(e.h),l(e.v))}(e.getHorizontalVerticalAxes());e.createContainer(),u.forEach((function(A){var n;n=A,(n=e.getChildContainer(n)).attr({transform:t})}))},A.draw=function(){this.applyTranslation(),this.setState("drawn",!0)},A.getCanvasPadding=function(){var e,t,A={paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0};return this._mapChildren((function(n){if(n.getCanvasPadding&&!n.getState("removed")&&n.getState("visible"))for(t in e=n.getCanvasPadding()||{})e.hasOwnProperty(t)&&(A[t]=Math.max(e[t],A[t]))})),A},A.rtShiftAnim=function(e,t){var A,n=this,i=e,r=t,a=n.getFromEnv("xAxis"),o=n.getFromEnv("yAxis"),l=a.getPixel(1)-a.getPixel(0),c=o.getPixel(1)-o.getPixel(0),h=n.getFromEnv("animationManager");A=s(i=(i||0)*l,r=(r||0)*c),u.forEach((function(e){n.getChildContainer(e).attr({transform:A}),h.setAnimation({el:n.getChildContainer(e),attrs:{transform:"T0,0"}})}))},A._changeXAxisCordinates=function(){var e=this;if("marimekko"===this.getLinkedParent().getLinkedParent().config.defaultDatasetType){var t=[],A=this.getChildContainer("areaVcanvasGroup");if(A&&A.node&&A.node.lastElementChild&&A.node.lastElementChild.childNodes){var n=[];this.addEventListener("visualupdated",(function(i){A.node.lastElementChild.childNodes.forEach((function(e,t){e.childNodes&&e.childNodes[t]&&e.childNodes[t].style&&"none"!==e.childNodes[t].style.display&&(n=e.childNodes)})),n.length&&(n.forEach((function(e){var A=e.attributes.x.value,n=e.attributes.width.value;t.push(Number(A)+Number(n)/2)})),e.getFromEnv("xAxis").components.labels.forEach((function(e,A){e.config.props.label.attr.x=t[A],e.config.props.label.attr.transform="r270,"+t[A]+","+e.config.props.label.attr.y})),e.getFromEnv("xAxis")._drawCategory())}))}}},t}(r.ComponentInterface);t["default"]=g},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=function(e){var t;e.config.enablemousetracking?((0,r.componentFactory)(e,i["default"],"mouseTracker"),t=e.getChildren("mouseTracker")[0],e.config.mouseTrackerEventAdded||(t.addEvents(),e.config.mouseTrackerEventAdded=!0)):((t=e.getChildren("mouseTracker")&&e.getChildren("mouseTracker")[0])&&t._removeListners(),e.config.mouseTrackerEventAdded=!1)};var i=n(A(570)),r=A(254)},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(272)),r=n(A(268)),a=A(270),o=function(e){function t(){var t,A;return(t=e.call(this)||this).pIndex=1,t.handler=(A=(0,i["default"])(t),function(e){e.originalEvent&&A.getFromEnv("chart")._mouseEvtHandler(e,A.config.evtData)}),t.eventsList=["fc-mousedown","fc-mouseup","fc-mousemove","fc-click","fc-mouseover"],t.config={},t.config.evtData={},t}(0,r["default"])(t,e);var A=t.prototype;return A.getMouseEvents=function(e,t,A){var n=this._lastDatasetIndex,i=this._lastPointIndex,r={fireOut:!1,events:[]};switch(e.type){case"fc-click":r.events.push("fc-click");break;case"fc-mousemove":n===t&&i===A?(clearTimeout(this.mouseoutTimer),r.events.push("fc-mousemove")):(r.events.push("fc-mouseover"),r.fireOut=!0);break;case"fc-mousedown":n===t&&i===A||(r.fireOut=!0,r.events.push("fc-mouseover")),r.events.push("fc-mousedown");break;case"fc-mouseover":n===t&&i===A?clearTimeout(this.mouseoutTimer):(r.fireOut=!0,r.events.push("fc-mouseover"));break;case"fc-mouseup":this.hasTouchEvent=!1,r.events.push("fc-mouseup");break;case"fc-mouseout":r.fireOut=!0}return r},A.addEvents=function(){var e,t,A,n=this.getFromEnv("chart"),i=n.getChildren("canvas"),r=this.config.evtData,a=this.eventsList;for(n.config.enableMouseOutEvent&&a.push("fc-mouseout"),this._removeListners(),r.chart=n,r.mouseTracker=this,t=0;t<i.length;t++)for(A in e=i[t],a)e.addEventListener(a[A],this.handler)},A._removeListners=function(){var e,t,A,n=this.getFromEnv("chart").getChildren("canvas"),i=this.eventsList;for(A=0;A<n.length;A++)for(t in e=n[A],i)e.removeEventListener(i[t],this.handler);this._removeDocEvents()},A._removeDocEvents=function(){this.eventOutput&&this.eventOutput.unlisten(),this.eventOutput=void 0},A._dispose=function(){this._removeListners(),e.prototype._dispose.call(this)},t}(a.ComponentInterface);t["default"]=o},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=function(e){var t,A,n=e.getChildren(),i=n.canvas&&n.canvas[0],o=i&&i.getChildren("vCanvas"),c=o&&o[0]||i||e,u=e.getFromEnv("dataSource"),h=u.dataset,d=(0,a["default"])(h)&&h[0].data,g=u.data||d;A=d?s(s({},h[0]),l(g)):l(g);if(!g||0===g.length)return void e.setChartMessage();t=e.getDSdef(),(0,r.datasetFactory)(c,t,"dataset",1,[A])};var i=n(A(253)),r=A(254),a=n(A(421));function o(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,n)}return A}function s(e){for(var t=1;t<arguments.length;t++){var A=null!=arguments[t]?arguments[t]:{};t%2?o(Object(A),!0).forEach((function(t){(0,i["default"])(e,t,A[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(A)):o(Object(A)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(A,t))}))}return e}var l=function(e){var t=[],A=[];return(0,r.fcEach)(e,(function(e,n){"true"!==e.vline&&!0!==e.vline&&1!==e.vline&&"1"!==e.vline?t.push(e):A.push({index:n,data:e})})),{catData:A,data:t}}},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=t.PATTERN_TYPES=t._removePlots=void 0;var i=n(A(272)),r=n(A(268)),a=A(254),o=A(270),s=A(262),l=n(A(573)),c=A(266),u=["line","circle","square"];t.PATTERN_TYPES=u;var h,d=a.hasTouch?a.TOUCH_THRESHOLD_PIXELS:a.HOVER_THRESHOLD_PIXELS,g=a.regex.dropHash,p=a.preDefStr.DEFAULT,f=a.preDefStr.showHoverEffectStr,m=a.preDefStr.setRolloverAttrStr,v=a.preDefStr.setRolloutAttrStr,b=Math,B=b.min,C=b.max,w=b.abs,y={top:!0},x={right:!0},F={left:!0},E={bottom:!0},S=b.ceil,Q=b.round,k=function(e,t){if(void 0===e&&(e={}),"function"==typeof t){var A=function(A){if(e.hasOwnProperty(A)){var n=e[A];Array.isArray(n)?n.forEach((function(e){return t(e,A)})):e[A]&&t(e[A],A)}};for(var n in e)A(n)}},L=function(e,t,A){return A.getFromEnv("animationManager").setAnimation({el:"group",attr:{name:e},container:t,state:"appearing",component:A,label:"group"})},U=function(e,t){void 0===e&&(e=[]),e.forEach((function(e){return k(e&&e.graphics,t)})),e.length=0};t._removePlots=U,(0,s.addDep)({name:"columnAnimation",type:"animationRule",extension:l["default"]});var I=function(e){function t(){var t;t=e.call(this)||this;var A=(0,i["default"])(t);return A.components={},A.components.removeDataArr=[],A.__hideElem=function(e,t){A._setRemoveAnim(e,"label"===t?"plotLabel":"rect")},A.__removeElem=function(e,t){A.__hideElem(e,t)},A.config.primitiveType="column",t}(0,r["default"])(t,e);var A=t.prototype;return A.getType=function(){return"dataset"},A.getName=function(){return"column"},A.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.showvalues=h,t.includeinlegend=1,t.plotfillalpha=h,t.plotfillangle=h,t.ratio=h,t.patternBgColor=a.TRACKER_FILL},A.preConfigure=function(t){if(!t)return!1;this.trimData(t),this.config.JSONData=t,e.prototype.preConfigure.call(this,t)},A.setSkippingInfo=function(e){this.addToEnv("skipInfo",e||{plotsPerBin:1,drawOnlyMap:[],draw:[],hide:[],skippingApplied:!1,dragHashMap:[]})},A.getSkippingInfo=function(){return this.getFromEnv("skipInfo")||{plotsPerBin:1,drawOnlyMap:[],draw:[],hide:[],skippingApplied:!1,dragHashMap:[]}},A.configure=function(t){if(!t)return!1;e.prototype.configure.call(this,t)},A.configureAttributes=function(){var e=this.getFromEnv("chart"),t=this.config;this.parseAttributes(),this._setConfigure(),this.getState("visible")&&!1===t.oldVisible&&(t.appearing=!0),t.oldVisible=this.getState("visible"),this._realTimeConfigure&&this._realTimeConfigure(),!1!==e.config.hasLegend&&e.config.showLegend&&this._addLegend(),this.ErrorValueConfigure&&this.ErrorValueConfigure(),this.config.YForStackUpdated=!1,this.setState("dirty",!0)},A.parseAttributes=function(){var e,t,A,n=this.getFromEnv("chart"),i=n.getChildren("yAxis")[0].config.isReverse,r=this.config,o=this.config.JSONData,s=n.config,l=s.singleseries,c=n.getFromEnv("chart-attrib"),h=this.getFromEnv("color-manager"),d=this.getJSONIndex(),g=r.plotColor=h.getPlotColor(d),p=(0,a.pluckNumber)(o.dashed,c.plotborderdashed,0),f=(0,a.pluckNumber)(s.useplotgradientcolor,1),m=n.isBar,v=s.is3D,b=s.isdual;r.showTextOutline=(0,a.pluckNumber)(c.textoutline,0),r.dashed=p,r.parentYAxis=b&&"s"===(0,a.pluck)(o.parentyaxis&&o.parentyaxis.toLowerCase(),"p")?1:0,r.maxValue=-Infinity,r.minValue=Infinity,r.minAbsNonZeroValue=Infinity,r.minAbsNonZeroData={},r.defaultPadding={left:.5,right:.5},(0,a.parseConfiguration)(o,r,s,{data:!0}),r.seriesname=(0,a.parseUnsafeString)(o.seriesname),r.showValues=(0,a.pluckNumber)(o.showvalues,c.showvalues,1),r.minplotheightforvalue=(0,a.pluckNumber)(o.minplotheightforvalue,c.minplotheightforvalue,0),r.showplotborder=(0,a.pluckNumber)(c.showplotborder,v?0:1),e=s.plotborderdashlen,t=s.plotborderdashgap,r.plotfillangle=(0,a.pluckNumber)(360-c.plotfillangle,m?180:i?90:270),r.plotfillalpha=A=(0,a.pluck)(o.alpha,c.plotfillalpha,a.HUNDREDSTRING),r.plotColor=g=(0,a.pluck)(o.color,g),r.legendSymbolColor=(0,a.getFirstColor)(r.plotColor),r.plotgradientcolor=(0,a.getDefinedColor)(c.plotgradientcolor,h.getColor("plotGradientColor")),!f&&(r.plotgradientcolor=""),r.plotborderalpha=(0,a.pluck)(c.plotborderalpha,A,a.HUNDREDSTRING),r.plotbordercolor=(0,a.pluck)(c.plotbordercolor,v&&!l?"#ffffff":h.getColor("plotBorderColor")),r.plotborderdashstyle=p?(0,a.getDashStyle)(e,t,void 0):"none",r.showShadow=v?(0,a.pluckNumber)(c.showshadow,1):(0,a.pluckNumber)(c.showshadow,h.getColor("showShadow")),r.definedGroupPadding=C(s.plotSpacePercent,0),r.includeinlegend=(0,a.pluckNumber)(o.includeinlegend,r.seriesname?1:0),this.setState("visible",1===(0,a.pluckNumber)(o.visible,!Number(o.initiallyhidden),1)),!0===this.getState("visible")?this._conatinerHidden=!1:this._containerHidden=!0,r.legendInteractivity=!1,this.setState("visible",1===(0,a.pluckNumber)(this.getState("visible"),r.JSONData.visible,!Number(r.JSONData.initiallyhidden),1)),r.usePattern=(0,a.pluckNumber)(s.usePattern,0),r.patternType=u.includes(o.patterntype)?o.patterntype:s.patternType,r.patternAngle=(0,a.pluckNumber)(o.patternangle,c.patternangle,r.patternType===u[0]?40:0),r.patternDensity=(0,a.pluckNumber)(o.patterndensity,s.patternDensity),r.patternSize=(0,a.pluckNumber)(o.patternsize,r.patternType===u[0]?2:4),r.patternAlpha=(0,a.pluckNumber)(o.patternalpha,s.patternAlpha),r.patternBgColor=(0,a.pluck)(o.patternbgcolor,r.patternBgColor)},A.trimData=function(e){if(this.components||!this.components.data||!this.components.data.length){var t,A,n=this.components,i=this.config,r=i&&i.context,a=this.getFromEnv("chart").isRealTime,o=r&&r.prevCatlen,s=this.getFromEnv("xAxis"),l=a?0:s.getTicksLen(),c=o-l,u=n&&n.data,h=u&&u.length,d=e.data&&e.data.length||0,g=h-d;c>g?(t=c,A=l):(t=g,A=d),t>0&&this.removeData(A,t,!1)}},A.hidePlots=function(){var e,t=this,A=t.components.data,n=t.getSkippingInfo(),i=n.hide,r=n.hideLabel;i.forEach((function(n){(e=A[n])&&e.graphics&&(k(e.graphics,t.__removeElem),e&&(e.graphics={}))})),r.forEach((function(n){(e=A[n])&&e.graphics&&(k(e.graphics,t.__removeElem),e&&(e.graphics={}))}))},A._setConfigure=function(e,t){var A,n,i,r,o,s,l,u,g=this,p=g.getFromEnv("chart"),f=p.config,m=g.config,v=g.getFromEnv("xAxis"),b=p.isRealTime,B=f.realTimeConfig&&f.realTimeConfig.numDisplaySets,C=g.getFromEnv("dataSource").categories&&g.getFromEnv("dataSource").categories[0]&&g.getFromEnv("dataSource").categories[0].category,w=m.initCatLen=b?C&&Array.isArray(C)&&C.filter((function(e){return!e.vline})).length||0:v.getTicksLen(),y=m.JSONData||[],x=e||y.data,F=e&&e.data.length,E=m.showplotborder,S=f.plotborderthickness,Q=g.components.data,k=f.isDrag,L=g.getSkippingInfo&&g.getSkippingInfo(),U=L&&L.draw||[],I=L&&L.skippingApplied;for(l=F===h&&w>B?w-B:0,A=b?(0,a.pluckNumber)(F,w):Math.min(w,x&&x.length),f.dragTolerance=k?(E&&S>5?S/2+1:5)+d:0,Q||(Q=g.components.data=[]),I&&(A=U.length),s=l;s<A;s++)o=U[s]||s,e?(n=e&&e.data[o]||{},r=t!==h?Q[u=t+o]:Q[u=Q.length-A+o],i=u):(n=x&&x[o]||{},r=Q[o-=l],i=o),r||(r=Q[i]={}),r.config||(r.config={},r.graphics={}),g._plotConfigure(i,n,F),u&&u++;I&&g.addJob("configureRestID",(function(){g._configureRestData()}),c.priorityList.postRender)},A._configureRestData=function(){var e,t,A,n,i,r=this.config,o=this.config.JSONData,s=o.data,l=this.getFromEnv("chart-attrib"),c=this.getFromEnv("xAxis").getTicksLen(),u=(this.getSkippingInfo&&this.getSkippingInfo()).drawOnlyMap,d=this.components.data;for(d||(d=this.components.data=[]),r.maxValue=-Infinity,r.minValue=Infinity,n=0;n<c;n++)u[n]||(A=d[n],t=n,(e=s&&s[n]||{}).tooltext!==h&&(e.tooltext=(0,a.parseTooltext)(e.tooltext,[3],{label:e.label},e,l,o)),A||(A=d[n]={}),A.config||(d[n].config={}),this._plotConfigure(t,e),i&&i++)},A._plotConfigure=function(e,t,A){var n,i,r,o,s,l,c,d,g,p,f,m,v,b,w,y,x,F,E,S,Q,k,L,U,I,T,N,D,P,M,O,H,_,R,V=this.getFromEnv("chart"),G=V.config,K=this.config,z=K.JSONData,W=V.config.singleseries,j=this.getFromEnv("yAxis"),X=this.getFromEnv("xAxis"),Y=this.components.data[e],J=V.getFromEnv("dataSource").chart,q=this.getFromEnv("color-manager"),Z=K.showplotborder,$=K.plotColor,ee=G.showtooltip,te=G.yaxisname,Ae=G.xaxisname,ne=G.tooltipsepchar,ie=G.seriesnameintooltip,re=G.plotborderdashlen,ae=G.plotborderdashgap,oe=G.plotborderthickness,se=(0,a.pluckNumber)(G.useroundedges,0),le=G.plothovereffect,ce=K.plotfillangle,ue=K.plotborderdashstyle,he=Y.config,de=V.isBar,ge=V.config.is3D,pe=G.use3dlighting,fe=G.realTimeConfig&&G.realTimeConfig.numDisplaySets,me=fe-K.initCatLen,ve=fe&&me>=0?me:0,be=G.usedataplotcolorforlabels;V.isRealTime||(Z=(0,a.pluck)((0,a.pluckNumber)(z.data[e].showplotborder,z.showplotborder),Z),oe=(0,a.pluck)((0,a.pluckNumber)(z.data[e].plotborderthickness,z.plotborderthickness),oe)),R=X.getLabel(A?e-A:ve+e),he.origLabel=_=(0,a.getValidValue)((0,a.parseUnsafeString)(R.label)),v=he.label=(0,a.getValidValue)((0,a.parseUnsafeString)(R.tooltext))||_,t.tooltext!==h&&(t.tooltext=(0,a.parseTooltext)(t.tooltext,[3],{label:R.label},t,J,z)),he.dataLabelStyle=this._configureDataLabelStyle(t),he.minplotheightforvalue=(0,a.pluckNumber)(t.minplotheightforvalue,K.minplotheightforvalue),he.showValue=(0,a.pluckNumber)(t.showvalue,K.showValues),he.givenPlotShowValue=(0,a.pluckNumber)(t.showvalue),he.setValue=m=j.getCleanValue(t.value,(0,a.pluckNumber)(G.stack100percent)),he.setLink=(0,a.pluck)(t.link),he.toolTipValue=D=j.dataLabels(m),he.setDisplayValue=P=(0,a.parseUnsafeString)(t.displayvalue),he.displayValue=(0,a.pluck)(P,D),he.dashed=M=(0,a.pluckNumber)(t.dashed,K.dashed),O=(0,a.pluckNumber)(t.dashlen,re),H=ae=(0,a.pluckNumber)(t.dashgap,ae),he.valuePadding=(0,a.pluckNumber)(t.valuepadding,z.valuepadding,G.valuepadding),null!==m&&(K.maxValue=C(K.maxValue,m),K.minValue=B(K.minValue,m),0!==m&&K.minAbsNonZeroValue>Math.abs(m)&&(K.minAbsNonZeroValue=Math.abs(m),K.minAbsNonZeroData=he)),he.plotBorderDashStyle=f=1===M?(0,a.getDashStyle)(O,H):0===M?"none":ue,W?($=q.getPlotColor((0,a.pluckNumber)(e-A,e)),$=(0,a.pluck)(t.color,$),be&&X.updateTicksValues(e,{labelfontcolor:(0,a.convertColor)($)}),p=(0,a.pluck)((0,a.pluckNumber)(z.data[e].plotborderalpha),t.alpha,t.borderalpha,K.plotborderalpha,d).toString(),he.id=t.id?(0,a.pluck)(t.id,he.id):(0,a.getValidValue)((0,a.parseUnsafeString)(R.label))):($=(0,a.pluck)(t.color,K.plotColor),p=V.isRealTime?(0,a.pluck)(t.alpha,K.plotborderalpha,d).toString():(0,a.pluck)((0,a.pluckNumber)(z.data[e].plotborderalpha,z.plotborderalpha),t.alpha,K.plotborderalpha,d).toString(),he.id=t.id?(0,a.pluck)(t.id,he.id):(0,a.getValidValue)((0,a.parseUnsafeString)(R.label))+"-"+(z.seriesname?z.seriesname:this.getJSONIndex())),$=(0,a.hashify)($),g=(0,a.pluck)(t.ratio,K.ratio),d=(0,a.pluck)(t.alpha,K.plotfillalpha),he.plotFillAlpha=d,he.plotBorderAlpha=p,he.shadow={opacity:K.showShadow?d/100:0},m<0&&!se&&(l=K.plotfillangle,ce=de?180-ce:360-ce),V.isRealTime?he.plotbordercolor=(0,a.pluck)(z.plotbordercolor,K.plotbordercolor):he.plotbordercolor=(0,a.pluck)(z.data[e].plotbordercolor,z.plotbordercolor,K.plotbordercolor),("inherit"===he.plotbordercolor||K.usePattern&&!he.plotbordercolor)&&(he.plotbordercolor=$),he.colorArr=b=(0,a.getColumnColor)($+","+K.plotgradientcolor,d,g,ce,se,he.plotbordercolor,p,de?1:0,!!ge),he.originalPlotColor=$,he.patternType=u.includes(t.patterntype)?t.patterntype:K.patternType,he.patternAngle=(0,a.pluckNumber)(t.patternangle,z.patternangle,J.patternangle,he.patternType===u[0]?40:0),he.patternDensity=(0,a.pluckNumber)(t.patterndensity,K.patternDensity),he.patternSize=(0,a.pluckNumber)(t.patternsize,z.patternsize,he.patternType===u[0]?2:4),he.patternAlpha=(0,a.pluckNumber)(t.patternalpha,K.patternAlpha),he.patternBgColor=(0,a.pluck)(t.patternbgcolor,K.patternBgColor),0!==le&&(w=(0,a.pluck)(t.hovercolor,z.hovercolor,J.plotfillhovercolor,J.columnhovercolor,$),y=(0,a.pluck)(t.hoveralpha,z.hoveralpha,J.plotfillhoveralpha,J.columnhoveralpha,d),!(x=(0,a.pluck)(t.hovergradientcolor,z.hovergradientcolor,J.plothovergradientcolor,K.plotgradientcolor))&&(x=""),F=(0,a.pluck)(t.hoverratio,z.hoverratio,J.plothoverratio,g),E=(0,a.pluckNumber)(360-t.hoverangle,360-z.hoverangle,360-J.plothoverangle,ce),S=(0,a.pluck)(t.borderhovercolor,z.borderhovercolor,J.plotborderhovercolor,he.plotbordercolor),Q=(0,a.pluck)(t.borderhoveralpha,z.borderhoveralpha,J.plotborderhoveralpha,J.plotfillhoveralpha,J.columnhoveralpha,p,d),k=(0,a.pluckNumber)(t.borderhoverthickness,z.borderhoverthickness,J.plotborderhoverthickness,Z&&oe),L=t.borderhoverdashed||z.borderhoverdashed||J.plotborderhoverdashed,U=(0,a.pluckNumber)(t.borderhoverdashgap,z.borderhoverdashgap,J.plotborderhoverdashgap,re),I=(0,a.pluckNumber)(t.borderhoverdashlen,z.borderhoverdashlen,J.plotborderhoverdashlen,ae),T=L!==h?Number(L)?(0,a.getDashStyle)(I,U):"":f,(G.drawTrendRegion&&!ge||1===le&&w===$)&&(w=(0,a.getLightColor)(w,70)),N=(0,a.getColumnColor)(w+","+x,y,F,E,se,S,Q.toString(),de?1:0,!!ge),he.setRolloutAttr={fill:ge?[(0,a.toRaphaelColor)(b[0]),!pe]:(0,a.toRaphaelColor)(b[0]),stroke:Z?(0,a.toRaphaelColor)(b[1]):a.TRACKER_FILL,"stroke-width":Z?oe:0,"stroke-dasharray":f},he.setRolloverAttr={fill:ge?[(0,a.toRaphaelColor)(N[0]),!pe]:(0,a.toRaphaelColor)(N[0]),stroke:S?(0,a.toRaphaelColor)(N[1]):a.TRACKER_FILL,"stroke-width":k,"stroke-dasharray":T},he.hoverColor=w,he.hoverAlpha=y,he.hoverBorderColor=S,he.hoverBorderAlpha=Q),n=he.toolTipValue,he.origToolText=r=(0,a.getValidValue)((0,a.parseUnsafeString)((0,a.pluck)(t.tooltext,z.plottooltext,J.plottooltext),!1)),ee?null===n?c=!1:r!==h?(s=[1,2,3,4,5,6,7],i={yaxisName:te,xaxisName:Ae,formattedValue:n,label:v},c=(0,a.parseTooltext)(r,s,i,t,J,z)):(ie&&(o=(0,a.getFirstValue)(z&&z.seriesname)),c=o?o+ne:"",c+=v?v+ne:""):c=!1,he.toolText=c,he.setTooltext=c,l&&(ce=l),he._x=e,he._y=m},A.updateYForStack=function(){var e,t,A,n,i,r,o=this.getFromEnv("chartConfig"),s=(0,a.pluckNumber)(o.showpercentvalues),l=(0,a.pluckNumber)(o.showpercentintooltip),c=this.config.JSONData,u=this.getFromEnv("chart-attrib"),d=this.getFromEnv("xAxis").getTicksLen(),g=this.components.data,p=this.getFromEnv("stackValues"),f=s||l?-1:1,m=this.getSkippingInfo&&this.getSkippingInfo(),v=m&&m.skippingApplied,b=m&&m.draw||[],B=b&&b.length;for(v&&(d=B),n=0;n<d;n++)t=(e=g[A=b[n]||n])&&e.config,e!==h&&(i=(0,a.getValidValue)((0,a.parseUnsafeString)((0,a.pluck)(t.origToolText,c.plottooltext,u.plottooltext),!1)),r=p[A]&&p[A].positive+f*p[A].negative||0,t._b=this._parseValues(A,t._b,r,i),o.stack100percent&&(t._y=t.value+t._b))},A._parseValues=function(e,t,A,n){var i,r,o=t,s=this.getFromEnv("chartConfig"),l=this.components.data[e].config,c=(0,a.pluckNumber)(s.showpercentvalues),u=(0,a.pluckNumber)(s.showpercentintooltip),h=this.getState("visible"),d=l.setValue,g=(0,a.pluckNumber)(s.stack100percent),p=this.getFromEnv("number-formatter"),f=this.getFromEnv("yAxis"),m=l.setDisplayValue;return r=(h&&d||0)/(A||1)*100,i=p.percentValue(r),g&&(l.value=r,o=(o||0)/(A||1)*100),u&&(l.toolTipValue=i),c&&!m&&(l.displayValue=i),n&&(l.toolText=(0,a.parseTooltext)(l.setTooltext,[14,24,25,112],{percentValue:i,sum:f.dataLabels(A),unformattedSum:A})),o},A._addLegend=function(){var e,t,A,n=this.getFromEnv("chart").isBar,i=this.getFromEnv("chart-attrib"),r=this.config.JSONData||{},o=this.config,s=(0,a.getFirstColor)(o.legendSymbolColor),l=this.getFromEnv("legend"),c=!o.usePattern&&(0,a.pluckNumber)(i.use3dlighting,i.useplotgradientcolor,1),u=(0,a.getLightColor)(s,60).replace(g,a.HASHSTRING);o.includeinlegend?(e=c?{FCcolor:{color:s+","+s+","+(0,a.getLightColor)(s,40)+","+s+","+s,ratio:"0,30,30,30,10",angle:n?0:270,alpha:"100,100,100,100,100"}}:{FCcolor:{color:s,angle:n?0:270,ratio:"0",alpha:"100"}},A=l.getItem(this.config.legendItemId),t={type:this.getName(),index:this.getJSONIndex(),label:(0,a.getFirstValue)(this.config.JSONData.seriesname),usePattern:o.usePattern,legendIconAlpha:(0,a.pluckNumber)(r.legendiconalpha),patternAttr:{patternType:o.patternType,patternAngle:o.patternAngle,patternDensity:o.patternDensity,patternSize:o.patternSize,color:o.plotColor,patternAlpha:o.patternAlpha,patternBgColor:o.patternBgColor,alpha:o.plotfillalpha}},A||(this.config.legendItemId=l.createItem(this),A=l.getItem(this.config.legendItemId),this.addExtEventListener("fc-click",(function(){A.itemClickFn()}),A)),A.configure(t),A.setStateCosmetics("default",{symbol:{fill:(0,a.toRaphaelColor)(e),bgAlpha:(0,a.pluckNumber)(r.legendiconbgalpha,r.legendiconalpha,i.legendiconbgalpha,i.legendiconalpha,o.plotfillalpha),borderAlpha:(0,a.pluckNumber)(r.legendiconborderalpha,r.legendiconalpha,i.legendiconborderalpha,i.legendiconalpha,"100"),rawFillColor:s,stroke:(0,a.toRaphaelColor)(u)}}),this.getState("visible")?A.removeLegendState("hidden"):A.setLegendState("hidden")):this.config.legendItemId&&l.disposeItem(this.config.legendItemId)},A.legendInteractivity=function(e){var t=e.getLinkedParent().getFromEnv("chart"),A=this.getState("visible"),n=this.config;if(t.getFromEnv("animationManager").setAnimationState("legendInteraction"),n.legendInteractivity=!0,A?this.hide():this.show(),a.isFirefox){var i=t.getChildContainer("plotGroup");i.attrs["clip-rect"]&&i.attr({"clip-rect":i.attrs["clip-rect"]})}n.drawnEvtListenerAttached||(n.drawnEvtListenerAttached=!0,this.addEventListener("drawn",(function(){n.legendInteractivity=!1})))},A.createPinElem=function(){var e,t,A,n=this,i=n.getFromEnv("chart"),r=arguments[1].group,a=n.components.data,o=n.graphics.pinElems||(n.graphics.pinElems=[]),s=n.getLinkedParent().getChildContainer().columnVcanvasGroup;for(e=o.length-1;e>=0;e--)o[e].remove(),o.pop();if(n.getState("visible"))for(e=n.config.scrollMinVal;e<n.config.scrollMaxVal;e++)(A=a[e])&&A.graphics&&(t=A.graphics.element.clone().attr({transform:["T",-(i.config._visx+w(s.transform()[0][1])),-i.config.canvasBottom]}),r.appendChild(t),o.push(t))},A._checkPointerOverColumn=function(e,t,A){var n,i,r,a,o,s,l,c,u,g=this.getFromEnv("chart").config,p=g.plotborderthickness,f=g.showplotborder,m=this.components.data,v=m&&m.length,b=0,B=0,C=g.dragTolerance||0,w=(this.getSkippingInfo&&this.getSkippingInfo()).plotsPerBin;for(l=u=(u=(c=(S(e/w)-1)*w+1)+w-1)<v?u:v;l>=c;l--){if(!(n=m[l]))return;if(n._height<d&&(b=d),n._width<d&&(B=d),(n._xPos||n._yPos)&&(i=n.config.setValue,f&&p!==h?s=p/2:p=s=0,null!==i&&(r=t-n._xPos+s,a=A-n._yPos+s+(i>=0?C:0),o=r>=-B/2&&r<=(B||n._width)+p&&a>=-b/2&&a<=(b||n._height)+p+(i<0?2*C:C))))return{pointIndex:l,hovered:o,pointObj:m[l]}}},A._getHoveredPlot=function(e,t){var A,n,i=e,r=t,a=this.getFromEnv("chart").isBar,o=this.getFromEnv("xAxis");return a?r+=o.getTranslation():i+=o.getTranslation(),A=o.getValue(a?r:i),(n=Math.round(A))-A>0?this._checkPointerOverColumn(n,i,r)||this._checkPointerOverColumn(n-1,i,r):this._checkPointerOverColumn(n+1,i,r)||this._checkPointerOverColumn(n,i,r)},A.getPlotInCategoryAt=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var A,n,i,r,a=this.components.data,o=this.getFromEnv("xAxis"),s=this.getFromEnv("yAxis"),l=o.getTranslation()||0,c=s.getTranslation()||0,u=this.getState("visible"),h=e+l,d=t+c;if("category"===o.getName()&&o.config.hasCategory)n=o;else{if("category"!==s.getName()||!s.config.hasCategory)return!1;n=s}return null!=(i=n.config.isVertical)&&(A=a[Math.round(n.getValue(i?d:h))],r=this._getHoveredPlot(e,t),u&&r?r:!(!u||!A)&&{pointIndex:A._index,hovered:!1,pointObj:A})},A._decideTooltipType=function(e,t){var A=this.getFromEnv("chart").config.drawTrendRegion,n=this.components,i=this.getFromEnv("toolTipController"),r=n.data[e],a=r&&(r.config.finalTooltext||r.config.toolText),o=this.config.currentToolTip,s=t.originalEvent;a&&!A&&(o?s.target&&"tspan"===s.target.nodeName&&r.graphics&&r.graphics.label&&r.graphics.label.abbrArr&&r.graphics.label.abbrArr.length?i.hide(o):i.draw(s,a,o):o=this.config.currentToolTip=i.draw(s,a))},A._firePlotEvent=function(e,t,A){var n,i=this.getFromEnv("chart"),r=this.components,a=this.getFromEnv("toolTipController"),o=r.data[t],s=o.graphics&&o.graphics.element,l=o.graphics&&o.graphics.label,c=this.config.currentToolTip;if(s)switch(n=o.config.setLink,e){case"fc-mouseover":this._decideTooltipType(t,A),function(e,t,A,n,i){var r=t.graphics,a=r&&r.element,o=e.getFromEnv("animationManager"),s=a&&a.getData();!0!==s.draged&&(a&&0!==s.showHoverEffect&&a.getData&&(o.setAnimationState("mouseOver"),o.setAnimation({el:a,label:"rect",component:i,attr:a.getData().setRolloverAttr})),!n&&a&&e.plotEventHandler(a,A,"DataPlotRollOver"))}(i,o,A,h,this),n&&(s.css({cursor:"pointer"}),l&&l.css({cursor:"pointer"}));break;case"fc-mouseout":a.hide(c),function(e,t,A,n,i){var r=t.graphics,a=r&&r.element,o=e.getFromEnv("animationManager"),s=a&&a.getData();!0!==s.draged&&(a&&0!==s.showHoverEffect&&(o.setAnimationState("mouseOut"),o.setAnimation({el:a,label:"rect",component:i,attr:a.getData().setRolloutAttr})),!n&&a&&e.plotEventHandler(a,A,"DataPlotRollOut"))}(i,o,A,h,this),n&&(s.css({cursor:p}),l&&l.css({cursor:p}));break;case"fc-click":i.plotEventHandler(s,A);break;case"fc-mousemove":this._decideTooltipType(t,A)}},A.createContainer=function(){var e,t,A,n,i,r=this.getType(),a=this.getFromEnv("chart"),o=this.getLinkedParent(),s=this.config.primitiveType||r;!o.getChildContainer(s+"VcanvasGroup")&&(s="default"),e=o.getChildContainer(s+"VcanvasGroup"),i=o.getChildContainer(s+"ShadowVcanvasGroup"),t=o.getChildContainer("commonElemGroup")||e,n=o.getChildContainer("commonElemGroupLine"),A=o.getChildContainer("anchorGroup")||e,!this.getContainer("shadowGroup")&&this.addContainer("shadowGroup",L("shadow-group",i,this)),!this.getContainer("errorShadowGroup")&&this.addContainer("errorShadowGroup",L("error-shadow-group",i,this)),!this.getContainer("commonElemsGroup")&&this.addContainer("commonElemsGroup",L("common-elems-group",t,this)),n?!this.getContainer("commonElemsGroupLine")&&this.addContainer("commonElemsGroupLine",L("common-elems-group",n,this)):this.removeContainer("commonElemsGroupLine"),!this.getContainer("plotGroup")&&this.addContainer("plotGroup",L("plot-group",A,this)),!this.getContainer("errorPlotGroup")&&this.addContainer("errorPlotGroup",L("error-plot-group",e,this)),a.hasAnchor&&this.getContainer("errorPlotGroup").insertBefore(this.getContainer("plotGroup")),!this.getContainer("labelGroup")&&this.addContainer("labelGroup",L("label-group",o.getChildContainer("vcanvasLabelGroup"),this).attr("class","fusioncharts-datalabels"))},A.createCoordinates=function(){var e,t,A,n,i,r,a,o,s,l,c=this.config,u=this.components.data,d=this.getFromEnv("chart"),g=d.isBar,p=this.getFromEnv("yAxis"),f=this.getFromEnv("xAxis"),m=p.getAxisBase(),v=p.getPixel(m),b=f.config.isVertical,B=d.config.xDepth||0,C=d.config.yDepth||0,w=u.length,y=this.components,x=this.getLinkedParent(),F=x.getstackConf&&x.getstackConf(),E=y.data,S=this.getSkippingInfo&&this.getSkippingInfo(),Q=S&&S.skippingApplied,k=S&&S.draw||[],L=k&&k.length;for(!g&&(B=-B),g&&(C=-C),Q&&(w=L),i=0;i<w;i++)t=(e=E[n=k[i]||i])&&e.config,e!==h&&(A=t._b,s=f.getPixel(F&&F[n]&&F[n].x||t._x),r=(isFinite(s)?s:0)+B,l=p.getPixel(t._y),a=(isFinite(l)?l:0)+C,o=(A?p.getPixel(A):v)+C,b?(t._Px=a,t._Py=r,t._Pby=r,t._Pbx=o):(t._Px=r,t._Py=a,t._Pby=o,t._Pbx=r),0===t.givenPlotShowValue?t.showValue=0:1===t.givenPlotShowValue?t.showValue=1:1!==t.givenPlotShowValue&&c.showValues&&(Math.sqrt((o-a)*(o-a))<t.minplotheightforvalue?t.showValue=0:t.showValue=1),this.getLineShift&&(t._Py+=this.getLineShift("y")))},A.setContainerVisibility=function(e){var t,A=this.getContainer();for(t in A)A.hasOwnProperty(t)&&(!1!==this.getState("visible")||!1!==this._conatinerHidden&&this._conatinerHidden!==h||e?(A[t].show(),this._conatinerHidden=!1):(A[t].hide(),this._conatinerHidden=!0))},A.plotAnimManager=function(e,t,A,n,i){void 0===i&&(i={});var r,a,o,s,l,c,u=this.getFromEnv("chart"),h=u.getFromEnv("animationManager"),d=u.config.is3D,g=u.config,p=this.getState("visible"),f=t.x,m=this.getSkippingInfo&&this.getSkippingInfo(),v=m&&m.draw||[],b=this.getFromEnv("plotGroup3d");c=((o=e&&e.config)&&o.setValue)<0,l=d?(a=c?b.negativeGroupArray:b.positiveGroupAarray)[u.isBar?a.length-1-A:A]:this.getContainer("plotGroup"),s={el:(r=e.graphics.element)||(d?"cubepath":"rect"),container:l,attr:p&&t,doNotRemove:!0,props:{originalIndex:v[A]||A},index:A,length:n,component:this,label:"rect"},p||(s.callback=function(){this.hide()}),e.graphics.element=r=h.setAnimation(s),d&&(r.appendTo(l),(g.isstacked&&c||!g.isstacked&&u.isBar)&&r.toBack()),r.addPattern(i,this.config.usePattern),null!==e.config.setValue?this.getState("visible")&&r.show():(r.remove(),delete e.graphics.element),o._oldPx=o._Px,o._oldX=f,p&&(e.oldPrevDataObj=e.prevDataObj)},A.flushOnScroll=function(e,t){for(var A,n=this.components.data,i=e,r=t-1;i<=r;i++)(A=n[i])&&A.graphics&&(k(A.graphics,this.__removeElem),A.graphics={})},A.removingDraw=function(){var t=this;t.components.data.forEach((function(e){k(e.graphics,t.__removeElem),delete e.graphics})),e.prototype.removingDraw.call(this)},A._contextChanged=function(){var e;this.config.context||(this.config.context={});var t,A=this.config.context,n=A.shift,i=this.getFromEnv("xAxis"),r=this.getFromEnv("yAxis"),a=A.axisLimit,o=!1,s={yAxis:{limit:r.getVisibleConfig()},xAxis:{limit:i.getVisibleConfig()}};return s.yAxis.limitPixel={min:r.getPixel(s.yAxis.limit.minValue),max:r.getPixel(s.yAxis.limit.maxValue)},s.xAxis.limitPixel={min:i.getPixel(s.xAxis.limit.minValue),max:i.getPixel(s.xAxis.limit.maxValue)},a!==(t=JSON.stringify(s))&&(A.axisLimit=t,o=!0),n!==this.getFromEnv("shift")&&(A.shift=this.getFromEnv("shift"),o=!0),A.prevColNum!==this.getFromEnv("numOfColumns")&&(A.prevColNum=this.getFromEnv("numOfColumns"),o=!0),i.getProcessLen?e=i.getProcessLen():i.getTicksLen&&(e=i.getTicksLen()),A.prevCatlen!==e&&(A.prevCatlen=e,o=!0),!!this.getFromEnv("chart").isRealTime||o},A.calculateScrollRange=function(){var e,t=this.config,A=this.getFromEnv("xAxis"),n=A.getTicksLen(),i=this.getSkippingInfo&&this.getSkippingInfo()||{},r=i.skippingApplied,a=i.draw||[],o=i.labelDraw||[],s=a.length;e=r?s-1:n,t.scrollMinVal=C(Q(A.getVisibleConfig().minValue),0)-1,t.scrollMaxVal=B(Q(A.getVisibleConfig().maxValue)+1,e)+1,e=r?o.length-1:n,t.scrollMinValForLabel=C(Q(A.getVisibleConfig().minValue),0)-1,t.scrollMaxValForLabel=B(Q(A.getVisibleConfig().maxValue)+1,e)+1},A.drawPlots=function(){var e,t,A,n,i,r,a,o,s,l=this.getFromEnv("chart"),c=this.config,u=l.config.plothovereffect,h=this.components.data,d=this.getContainer("shadowGroup"),g=c._oldStartIndex,p=c._oldEndIndex,b=this.getSkippingInfo&&this.getSkippingInfo(),B=b&&b.draw;for(a=c.scrollMinVal,o=c.scrollMaxVal,a>g&&this.flushOnScroll(g,a>p?p:a),o<p&&this.flushOnScroll(o<g?g:o,p),c._oldStartIndex=a,c._oldEndIndex=o,e=a,s=o-1;e<o;e++,s--)(t=h[B[e]||e])&&(r=(n=t.config).props.element.attr,this.plotAnimManager(t,r,e,o,n.props.element.patternAttr),i=t.trackerConfig,(A=t.graphics.element)&&(A.shadow(n.shadow,d).data("BBox",void 0),l.config.enablemousetracking&&A.data("eventArgs",i.eventArgs).data(f,u).data(m,n.setRolloverAttr||{}).data(v,n.setRolloutAttr||{})))},A.setColumnPosition=function(){var e,t;if((e=this.getFromEnv("plotWidth"))===h){var A,n,i=this.getFromEnv("xAxis"),r=this.getFromEnv("chartConfig"),o=this.getSkippingInfo().plotsPerBin,s=C(r.plotSpacePercent,0),l=C((0,a.pluckNumber)(s,20)%100,0),c=1===o?l/200:0,u=i.getPixel(0),d=i.getPixel(o),g=this.getFromEnv("chart"),p=g.isBar?g.config.maxBarHeight:g.config.maxColWidth,f=w(d-u),m=!0;e=(A=(1-.01*s)*f||B(f*(1-2*c),1*p))/1,d-(n=A/2)-(u-n+A)<4&&(m=!1),0===l&&(m=!0),this.addToEnv("isCrisp",m)}this.addToEnv("columnWidth",e),t=this.getFromEnv("shift")||0,this.addToEnv("columnXShift",t-this.getFromEnv("columnWidth")/2)},A.addDatasetSpecificEvtArgs=function(e){var t=this.config,A=e,n=A.config,i=this.getFromEnv("chart").config,r=A.trackerConfig.eventArgs;Object.assign(r,{color:n.originalPlotColor,gradientColor:t.plotgradientcolor,alpha:n.plotFillAlpha,borderColor:n.plotbordercolor||t.plotbordercolor,borderAlpha:n.plotBorderAlpha,borderThickness:i.plotborderthickness,borderDashed:n.dashed,hoverColor:n.hoverColor,hoverAlpha:n.hoverAlpha,borderHoverColor:n.hoverBorderColor,borderHoverAlpha:n.hoverBorderAlpha}),t.usePattern?(r.pattern={patternType:n.patternType,patternColor:n.color,patternBgColor:n.patternBgColor===a.TRACKER_FILL?h:n.patternBgColor},delete r.color):delete r.pattern},A.parsePlotAttributes=function(e,t){var A,n,i,r,o,s,l,c,u,h,g,p,f,m,v,b,C,S,Q,k,L,U,I,T,N=this.config,D=this.config.JSONData,P=this.getFromEnv("chart"),M=P.getFromEnv("dataSource").chart,O=P.config.isstacked,H=this.config,_=this.groupManager,R=this.getJSONIndex(),V=t,G=this.getState("visible"),K=P.config,z=P.config.is3D,W=P.isBar,j=K.xDepth||0,X=K.yDepth||0,Y=this.getFromEnv("yAxis"),J=this.getFromEnv("xAxis"),q=K.showtooltip,Z=!1!==this.getState("visible"),$=this.components.data,ee=e.config,te=Y.getAxisBase(),Ae=Y.yBasePos=Y.getPixel(te),ne=(0,a.pluckNumber)(H.plotborderthickness,K.plotborderthickness),ie=(0,a.pluckNumber)(K.useroundedges,0),re=H.use3dlighting,ae=_&&_.stackConf,oe=this.getFromEnv("columnXShift"),se=P.config.viewPortConfig,le=se.x,ce=se.scaleX,ue=(0,a.pluckNumber)(K.showplotborder);if(P.isRealTime||(ue=(0,a.pluckNumber)((0,a.pluck)(D.data[t].showplotborder,D.showplotborder),ue),ne=(0,a.pluck)((0,a.pluckNumber)(D.data[t].plotborderthickness,D.plotborderthickness),ne)),f=ee.setLink,v=ee.colorArr||[],J.config.isVertical?(c=this.getFromEnv("columnWidth"),l=oe):(o=this.getFromEnv("columnWidth"),s=oe),e.graphics||($[V].graphics={}),m=ee.displayValue,!Z&&(ee._Py=ee._Pby),Q=B(ee._Px,ee._Pbx)+(s||0)+le*ce,k=B(ee._Py,ee._Pby)+(l||0),ae&&(Q-=o/2),L=o||w(ee._Px-ee._Pbx),U=c||w(ee._Py-ee._Pby),A=W?ee._Px-ee._Pbx>0?x:F:ee._Py-ee._Pby>0?E:y,p=(0,a.getValidValue)((0,a.parseUnsafeString)((0,a.pluck)(ee.origToolText,D.plottooltext,M.plottooltext),!1)),this.fineTunePlotDimension&&(Q=(T=this.fineTunePlotDimension(Q,k,U,L,V)).xPos,k=T.yPos,L=T.width,U=T.height),n=Q,i=k,u=L,h=U,r=J.getPixel(1)-J.getPixel(0)-(W?h:u),!isFinite(h)&&(h=0),G){if(r<5&&this.getFromEnv("columnWidth")<5||(C=(0,a.crispBound)(Q,k,u,h,ne,A,O,W)),C?(n=C.x,i=C.y,ne=C["stroke-width"],u=C.width,h=C.height):(n=Q,i=k),J.config.isVertical){if(0===u){var he=N.minAbsNonZeroData,de=w(he._Px-he._Pbx);u=de<.5?de:.5}}else if(0===h){var ge=N.minAbsNonZeroData,pe=w(ge._Py-ge._Pby);h=pe>0&&pe<.5?pe:.5,i===Ae&&(i-=h)}ee.setRolloutAttr&&(ee.setRolloutAttr["stroke-width"]=ue?ne:0)}g=ee.finalTooltext=!1!==ee.toolText?ee.toolText+(p?"":ee.toolTipValue):"",b=ee.plotBorderDashStyle,(S=e.trackerConfig={}).eventArgs={index:V,link:f,value:ee.setValue,displayValue:m,categoryLabel:ee.origLabel,toolText:g,id:ee.id,datasetIndex:R,datasetName:D.seriesname,visible:G},this.addDatasetSpecificEvtArgs(e),I=Ae===i+0,ee.props={element:{attr:{x:n||0,width:u||0,height:h||0,y:i||0,r:ie,stroke:ue?H.usePattern?ee.originalPlotColor:(0,a.toRaphaelColor)(v[1])||"":a.TRACKER_FILL,"stroke-width":ue?ne:0,"stroke-dasharray":b,"stroke-linejoin":"miter",visibility:G,cursor:f?"pointer":""}}},H.usePattern?delete ee.props.element.attr.fill:ee.props.element.attr.fill=(0,a.toRaphaelColor)(v[0])||"",ee.props.element.patternAttr={patternType:ee.patternType,patternAngle:ee.patternAngle,patternDensity:ee.patternDensity,patternSize:ee.patternSize,color:ee.originalPlotColor,patternAlpha:ee.patternAlpha,patternBgColor:ee.patternBgColor,alpha:ee.plotFillAlpha,x:ee.props.element.attr.x,y:ee.props.element.attr.y},z&&(ee.props.element.attr.noGradient=!re,ee.props.element.attr.xDepth=j,ee.props.element.attr.yDepth=X),e._xPos=n+j,e._width=u,e._yPos=i-X,e._height=h,e._index=V,e._plotBorderThickness=ne,(f||q)&&(h<d&&(i-=(d-h)/2,h=d),S.attr={x:n,y:i,width:u,height:h,r:ie,cursor:f?"pointer":"",stroke:a.TRACKER_FILL,"stroke-width":ue?ne:0,fill:a.TRACKER_FILL,visibility:G}),ee.oldValue=void 0,e._oldYBaseTouched=I},A.parseLabelAttributes=function(e){var t,A,n,i,r,a,o,s,l,c,u,d,g,p=this.getFromEnv("chart"),f=p.config,m=p.getFromEnv("smartLabel"),v=p.config.dataLabelStyle,b=this.config.legendInteractivity,B=this.getState("visible"),C=f.rotatevalues?270:0;if(c=(u=e&&e.config)&&u.setValue,e===h||c===h||null===c||!0===u.labelSkip)return u&&delete u.labelSkip,void((g=e&&e.graphics)&&g.label&&g.label.hide());(r=e.graphics)&&(s=e._yPos,l=e._xPos,n=u.displayValue,u.showValue&&null!==c?(b&&u._state||(m.setStyle(v),i=m.getOriSize(n),u._state=C?{labelWidth:i.height,labelHeight:i.width}:{labelWidth:i.width,labelHeight:i.height}),o=(d=this._getValuePosition({labelWidth:u._state.labelWidth,labelHeight:u._state.labelHeight,width:e._width,height:e._height,yPos:s,xPos:l,value:c,valuePadding:u.valuePadding})).textX,a=d.textY,u.props||(u.props={}),t=u.dataLabelStyle,u.props.label={attr:{x:o,y:a,text:n,"text-bound":[t.backgroundColor,t.borderColor,v.borderThickness,v.borderPadding,v.borderRadius,v.borderDash],opacity:B?1:0}},A=u.props.label.attr,b||(A["line-height"]=v.lineHeight,A.fill=t.color)):r.label&&(r.label.attr({"text-bound":[]}),r.label.hide()))},A.allocatePosition=function(){var e,t,A,n,i,r,a,o,s=this.getFromEnv("chart"),l=s.config,c=this.config,u=this.components.data.length,h=this.getFromEnv("yAxis"),d=this.components.data,g=l.isstacked,p=this.getSkippingInfo&&this.getSkippingInfo(),f=p&&p.draw;for(this.deleteFromEnv("columnWidth"),this.setColumnPosition(),this.calculateScrollRange(),g&&this.updateYForStack(),this.createCoordinates(),n=h.getLimit(),a=h.getPixel(n.max),o=h.getPixel(n.min),i=c.scrollMinVal,r=c.scrollMaxVal,a>o?(c.yAxisMaxPixel=a,c.yAxisMinPixel=o):(c.yAxisMaxPixel=o,c.yAxisMinPixel=a),t=0;t<u;t++)e=f[t]||t,s.hasScroll&&(e<i||e>r)||(A=d[e])&&(this.parsePlotAttributes(A,e),this.parseLabelAttributes(A))},A.draw=function(){var e,t,A=this,n=A.config,i=A.getState("visible"),r=A.getFromEnv("xAxis"),a=r.getPixel(0),o=r.getPixel(1),s=A.getFromEnv("groupMaxWidth"),l=A.getFromEnv("chart").config.xDepth||0,u=A.getFromEnv("yAxis"),h=n.drawn,d=u.getLimit(),g=d.max,p=d.min,f=g>0&&p<0,m=A._contextChanged(),v=(A.getSkippingInfo&&A.getSkippingInfo()||{}).skippingApplied;s||(s=w(o-a),A.addToEnv("groupMaxWidth",s)),(A.getState("removed")||A.getState("dirty")||m&&i)&&(!h&&A.createContainer(),A.setContainerVisibility(!0),v&&A.hidePlots(),A.drawPlots(),A.drawCommonElements&&!A.config.skipCommonElements&&A.drawCommonElements(),e=n.scrollMinValForLabel,t=n.scrollMaxValForLabel,n.drawn?A.drawLabel(e,t):A.addJob("labelDrawID",(function(){A.drawLabel(e,t)}),c.priorityList.label),n.drawn=!0,n.appearing&&(n.appearing=!1),A.removePlots(),n.oldGroupMaxWidth=s,n.oldDataIsPositiveNegative=f,n.oldZeroAxisPos=u.getPixel(u.getAxisBase())+l,A.drawErrorValue&&A.drawErrorValue(),n.prevVisible=i,n.catDiff=0)},A.show=function(){var e=this.getLinkedParent(),t=this.getFromEnv("legend");t&&t.getItem(this.config.legendItemId)&&t.getItem(this.config.legendItemId).removeLegendState("hidden"),this.setState("visible",!0),this.config.appearing=!0,this._conatinerHidden=!1,this.setState("dirty",!0),e.childChanged(),this.asyncDraw()},A.hide=function(){var e=this.getLinkedParent(),t=this.getFromEnv("legend");t&&t.getItem(this.config.legendItemId)&&t.getItem(this.config.legendItemId).setLegendState("hidden"),this.setState("dirty",!0),this.setState("visible",!1),e.childChanged(),this.asyncDraw()},A.drawLabel=function(e,t){var A,n,i,r,o,s,l,c,u,d,g,p,f=this.getFromEnv("chart"),m=this.getFromEnv("animationManager"),v=this.getFromEnv("toolTipController"),b=f.config,B=this.getFromEnv("xAxis"),C=this.getFromEnv("paper"),w=this.getState("visible"),y=f.getFromEnv("smartLabel"),x=f.config.dataLabelStyle,F=this.config,E=B.getTicksLen(),S=this.components,Q=S.data,k=S.pool,L=b.rotatevalues?270:0,U=F.labelDrawn,I=this.getSkippingInfo&&this.getSkippingInfo(),T=I&&I.skippingApplied,N=I&&I.labelDraw||[],D=N.length,P=(0,a.pluckNumber)(e,0),M=(0,a.pluckNumber)(t,T?D:E),O=D===Math.abs(M-(P+1)),H=function(){this.attr({"text-bound":[]}),this.hide()};for((p=this.getContainer("labelGroup")).css({fontFamily:x.fontFamily,fontSize:x.fontSize,fontWeight:x.fontWeight,fontStyle:x.fontStyle}),p.show(),y.useEllipsesOnOverflow(f.config.useEllipsesWhenOverflow),y.setStyle(x),r=P;r<M;r++)l=(c=(A=Q[i=T&&O?N[r]:r])&&A.config)&&c.setValue,A!==h&&l!==h&&null!==l&&!0!==c.labelSkip?(o=A.graphics)&&(c.showValue&&null!==l?(n=c.props.label.attr,s=A._xPos,!o.label&&U&&f.isRealTime&&((u=(0,a.extend2)({},n)).x=n.x-s+(A._newXPos||0),u.transform=C.getSuggestiveRotation(L,u.x,n.y),k&&k.label[0]&&(o.label=k.label[0],k.label.splice(0,1))),n.transform=C.getSuggestiveRotation(L,n.x,n.y),(d=o.label)||k&&k.label[0]&&(d=o.label=k.label[0],k.label.splice(0,1)),d=m.setAnimation({el:o.label||"text",attr:n,component:this,label:"plotLabel",index:i,container:p,callback:!w&&H}),b.showtooltip&&d.abbrArr&&d.abbrArr.length&&v.enableToolTip(d,h),d&&d.show(),d&&d.outlineText(F.showTextOutline,n.fill),o.label||(o.label=this.addGraphicalElement("plotLabel",d,!0))):o.label&&(o.label.attr({"text-bound":[]}),o.label.hide())):(c&&delete c.labelSkip,(g=A&&A.graphics)&&g.label&&g.label.hide());F.labelDrawn=!0},A._getValuePosition=function(e){var t,A,n,i,r,o,s,l,c,u=this.getFromEnv("chart"),h=u.getChildren(),d=u.config,g=h.yAxis[0],p=d.xDepth||0,f=d.yDepth||0,m=d.canvasTop,v=d.canvasHeight+f,b=e.yPos,w=u.config.is3D,y=u.config.isstacked,x=e.valuePadding+2,F=e.height,E=e.width,S=d.placevaluesinside,Q=e.labelHeight,k=g.getAxisConfig("isReverse"),L=e.value;return k||(l=!(L<0)),o=c=Q+x,i=F,n=b-(s=.5*c+x),A=e.xPos+.5*E,(r=(0,a.pluck)(l,L<0))?(t=m+v-(b+F+f),n=b):t=b-m,y?(n=B(m+v-.5*o,n=b+.5*F+(f||0)),n=C(m+.5*o,n),A-=p):S?i>=o?(n=b+(r?F-s:s),w&&(A-=p,n+=f)):t>=o?(n=b+(r?F+s:-s),w&&r&&(A-=p,n+=f)):(n=b+(r?F-s:s),w&&(A-=p,n+=f)):t>=o?(n=b+(r?F+s:-s),w&&(r?(A-=p,n+=f):A-=p/2)):(n=b+(r?F-s:s),w&&(A-=p,n+=f)),{textX:A,textY:n}},A.getDataLimits=function(){return{max:this.config.maxValue,min:this.config.minValue}},A.addData=function(e,t,A){var n,i=this.components,r=i.data,a=e.data.length;for(i.addDataArr=e.data,0===t?this.startPosition=!0:t+a!==r.length&&t!==h||(this.startPosition=!1),n=0;n<a;n++)t!==h?r.splice(t+n,0,{config:{}}):r.push({config:{}});this._setConfigure(e,t),A&&this.asyncDraw()},A.removeData=function(e,t,A){var n,i,r=e,a=t,o=this.getFromEnv("chart"),s=this.components,l=s.data,c=s.removeDataArr||(s.removeDataArr=[]);for(a===h&&(a=1),(r=r||0)+a!==l.length&&o.isRealTime?0!==r&&r!==h||(this.endPosition=!1):this.endPosition=!0,s.removeDataArr=c=c.concat(l.splice(r,a)),n=(i=c.length)-1;n>=0;n--)c[n]||c.splice(n,1);this.removeDataLen=i,A&&this.asyncDraw()},A.updateData=function(e,t,A){var n=this.config,i=n.maxValue,r=n.prevMin,a=this.getFromEnv("chart"),o=this.groupManager||this,s=a.getFromEnv("xAxis"),l=a.getFromEnv("yAxis");this._setConfigure(e,t),this.getDataLimits(),n.maxValue===i&&n.minValue===r||(this.maxminFlag=!0),A&&(a._setAxisLimits(),s&&s[0].asyncDraw(),l&&l[0].asyncDraw(),o.asyncDraw())},A.removePlots=function(){var e=this.components,t=e&&e.removeDataArr;U(t,this.__removeElem)},A.removeGraphicElem=function(e,t){this.__removeElem(e,t)},A.getAxisValuePadding=function(){return this.config.defaultPadding},A.getCanvasPadding=function(){var e,t,A,n,i,r,o=this.config||(this.config={}),s=this.components||{},l=this.getFromEnv("chart"),c=l.config.rotatevalues,u=this.getFromEnv("xAxis"),d=this.getFromEnv("yAxis"),g=l.config.dataLabelStyle,p=this.getSkippingInfo(),f=p.skippingApplied,m=p.draw,v=s.data||[],b=f?m[0]:0,B=f?m[m.length-1]:v.length-1,w=o.leftMostData||v[b],y=o.rightMostData||v[B],x={},F={},E=0,S=0,Q=0,k=u.getPixel(0),L=this.getFromEnv("smartLabel"),U={paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0},I=0,T=u.getValuePadding(),N=o.topMostData,D=o.bottomMostData;return this.setColumnPosition(),r={xPosOffset:this.getFromEnv("columnXShift"),columnWidth:this.getFromEnv("columnWidth"),height:h},w&&(n=(e=w.config).showValue,A=e&&e.anchorProps||{},n&&(t=e.displayValue,L.useEllipsesOnOverflow(l.config.useEllipsesWhenOverflow),L.setStyle(g),F=L.getOriSize(t),I=c?F.height:F.width),null!==e.setValue&&(i=u.getPixel(T.left),(Q=(E=A.enabled&&(0,a.pluckNumber)(A.radius,0)+(0,a.pluckNumber)(A.borderThickness,0)/2||0)-(i-k))<0&&(Q=0),(S=(I||0)/2-(i-k)-(r&&r.xPosOffset+r.columnWidth/2||0))<0&&(S=0)),U.paddingLeft=C(Q,S)),Q=S=0,y&&(n=(e=y.config).showValue,A=e&&e.anchorProps||{},n&&!c&&(t=e.displayValue,L.setStyle(g),x=L.getOriSize(t),I=c?x.height:x.width),null!==e.setValue&&(i=u.getPixel(T.right),(Q=(E=A.enabled&&(0,a.pluckNumber)(A.radius,0)+(0,a.pluckNumber)(A.borderThickness,0)/2||0)-(i-k))<0&&(Q=0),(S=(I||0)/2-(i-k)+(r&&r.xPosOffset+r.columnWidth/2||0))<0&&(S=0)),U.paddingRight=C(Q,S)),N&&(n=(e=N.config).showValue,A=e&&e.anchorProps||{},null!==e.setValue&&(E=(0,a.pluckNumber)(A.radius,0)+(0,a.pluckNumber)(A.borderThickness,0)/2,S=Math.max(E-(d.getPixel(e.setValue.y)-d.getPixel(d.getLimit().max)),0)),U.paddingTop=S),D&&(A=(e=D.config)&&e.anchorProps||{},null!==e.setValue&&(E=(0,a.pluckNumber)(A.radius,0)+(0,a.pluckNumber)(A.borderThickness,0)/2,S=Math.max(E-(d.getPixel(d.getLimit().min)-d.getPixel(e.setValue.y)),0)),U.paddingBottom=S),U},A.getEventArgs=function(){var e=this.config||{};return{datasetName:(this.config.JSONData||{}).seriesname,datasetIndex:this.getJSONIndex(),id:e.userID,visible:!this.getState("visible")}},A.getData=function(){return this.components.data},A.setJSONIndex=function(e){this.config.index=e},A.getJSONIndex=function(){return this.config.index||0},A.remove=function(t){var A=this.config.legendItemId,n=this.getFromEnv("chart").getChildren("legend"),i=this.getFromEnv("legend");n&&n.length&&i&&A&&i.disposeItem(A),e.prototype.remove.call(this,t)},A.setMaxMin=function(e){var t,A,n,i=this.components,r=i.data,a=i.removeDataArr,o=this.config,s=r.length,l=-Infinity,c=+Infinity,u=o.maxValue,d=o.minValue,g=a.length,p=!1;if(e)p=u===e.startValue||d===e.startValue||u<e.config.setValue||d>e.config.setValue;else if(g)for(t=0;t<g;++t)if(u===(n=a[t]&&a[t].config&&a[t].config.setValue)||d===n){p=!0;break}if(p){for(t=0;t<s;t++)r[t]&&(A=r[t].config.setValue)!==h&&(l=C(l,A),c=B(c,A));o.maxValue=l,o.minValue=c}},t}(o.ComponentInterface);I.prototype._configureDataLabelStyle=a.configureDataLabelStyle;var T=I;t["default"]=T},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n=A(254),i={"initial.dataset.column":function(){var e=this,t=e.getFromEnv("chart"),A=t.config.yDepth||0,i="y",r="height",a="x",o="width",s=e.getFromEnv("yAxis"),l=e.getFromEnv("xAxis"),c=function(n,l){var c,u,h,d,g=e.config,p=l&&l.graphics&&l.graphics.element,f=n.attr,m=s.getPixel(s.getAxisBase())+(t.isBar?-A:A),v={},b=g.oldZeroAxisPos;if(c=p.attr(),v[i]=u=c[i],v[r]=c[r],v[a]=c[a],v[o]=c[o],h=c[i]+c[r],m!==b&&(b-m>=0?(u>m&&u<=b+.7&&(v[i]=m,h>b&&(v[r]=h-v[i])),h>m&&h<=b+.7&&(v[r]=m-(v[i]||0===v[i]?v[i]:u))):(u<m&&u>=b-.7&&(v[i]=m,h>m&&(v[r]=h-v[i])),h<m&&h>=b-.7&&(v[r]=m-(v[i]||0===v[i]?v[i]:u))),d=!0),e.config.catDiff&&(v[a]=f[a],v[o]=f[o],d=!0),l._plot_1Start=v,d)return{finalAttr:v,slot:"axis"}};return{"rect.appearing":function(c){var u,h,d,g,p=s.getPixel(s.getAxisBase())+(t.isBar?-A:A),f=c.props&&c.props.originalIndex||c.index,m=e.components.data[f],v=c.attr;return l.config.isVertical&&(i="x",r="width",a="y",o="height"),u=v[i],h=v[r],g=Math.sign(u+h/2-p),d=1===g?u:u+h,m._posWRT0=g,[{initialAttr:function(){var e={};return e[i]=d,e.opacity=0,e[r]=0,e},finalAttr:{opacity:1},startEnd:function(){var t=c.length;return n.animHelperFN.getTimeByValue(n.animHelperFN.animByWeight(c.index,t,.6),{startPx:p,endPx:1===g?e.config.yAxisMaxPixel:e.config.yAxisMinPixel},{startPx:d,endPx:1===g?v[i]+v[r]:v[i]})},hookFn:function(){this.attr({opacity:1})},effect:"linear",slot:"plot"}]},"rect.updating":function(n){var u,h,d,g,p,f,m,v,b,B,C,w,y,x,F,E,S,Q,k,L,U,I,T,N,D,P,M,O,H=[],_=e.components.data[n.props&&n.props.originalIndex||n.index],R=n.attr,V=_&&_.graphics&&_.graphics.element,G=s.getPixel(s.getAxisBase())+(t.isBar?-A:A),K=0,z=e.getFromEnv("numColDiff");return l.config.isVertical&&(i="x",r="width",a="y",o="height"),(O=c(n,_))&&H.push(O),y=(w=_.prevDataObj)&&w._plot_1Start,k=w&&w._plot_1End,x=w&&w._plot_2Start,F=_.oldPrevDataObj,E=_.oldPrevDataObj&&_.oldPrevDataObj._plot_1End,d=(u=(v=_._plot_1Start)[i])+(h=v[r]),g=u+h/2,m=(p=R[i])+(f=R[r])/2,S=(d+(p+f))/2,L=Math.sign(g-G),U=Math.sign(m-G),(C={})[i]=(B={})[i]=(u+p)/2,C[r]=B[r]=(h+f)/2,h?L!==U?(C[r]=B[r]=0,B[i]=F&&F._oldPosWRT0===L?E[i]+(1===L?E[r]:0):G,C[i]=x?x[i]+(1===U?x[r]:0):G,Q=b=!0):w!==F&&(T=(I=E||!(!k||Math.sign(k[i]+k[r]/2-G)!==L)&&k)?I[i]+(1===L?I[r]:0):G,1===L?(C[i]=B[i]=T,C[r]=B[r]=S-B[i]):C[r]=B[r]=T-B[i],b=!0):w&&w._oldPosWRT0===U||0===e.stackIndex?((P={})[r]=0,P[i]=y?y[i]+(w._posWRT0>0?y[r]:0):G,_._posWRT0=U,_._plot_1Start=P,C[i]=B[i]=(P[i]+p)/2,C[r]=B[r]=f/2):g===G&&(U!==_._posWRT0?K=.5:(b=!0,B[i]=1===U?G:G-B[r])),z<0?(B[a]=R[a],B[o]=R[o],b=!0):z>0?K=.5:v[a]===R[a]&&v[o]===R[o]||(.5===K?((P={})[a]=R[a],P[o]=R[o],N=function(){Q&&V.attr(C),V.attr(P)}):(B[a]=R[a],B[o]=R[o],b=!0,N&&(D=function(){V.attr(P)},N=void 0))),b&&(H.push({finalAttr:B,startEnd:{start:0,end:.5},hookFn:D,slot:"plot"}),K=.5),!N&&(N=function(){Q&&V.attr(C)}),H.push({effect:"linear",startEnd:{start:K,end:1},finalAttr:{x:R.x,y:R.y,width:R.width,height:R.height},callback:function(){null!==_.config.setValue&&void 0!==_.config.setValue||this.hide()},hookFn:N,slot:"plot"}),delete(M=Object.assign({},R)).x,delete M.y,delete M.width,delete M.height,H.push({finalAttr:M,effect:"linear",slot:"plot"}),_._plot_1End=B,_._plot_2Start=C,_._oldPosWRT0=_._posWRT0,_._posWRT0=U,H},"rect._disappearing":function(n){var a,o,l,u,h,d=s.getPixel(s.getAxisBase())+(t.isBar?-A:A),g=e.components.removeDataArr,p=g&&g[n.props&&n.props.originalIndex||n.index]||e.components.data[n.props&&n.props.originalIndex||n.index],f=p&&p.graphics&&p.graphics.element,m=p.oldPrevDataObj&&p.oldPrevDataObj._plot_1End,v=[];if(f)return(u=c(n,p))&&v.push(u),s.config.isVertical||(i="x",r="width"),a=(o=(h=p._plot_1Start)[i])+h[r]/2>d?m?m[i]+m[r]:o:m?m[i]:d,(l={})[i]=a,l[r]=0,l.width=p._width,l.x=p._xPos,v.push({startEnd:{start:0,end:e.getFromEnv("numOfColumns")<1?1:.5},finalAttr:l,slot:"plot"}),p._plot_1End=n.finalAttr,v},"plotLabel.appearing":[{initialAttr:{opacity:0},slot:"final"}],"plotLabel._disappearing":[{hookFn:function(){this.hide()},slot:"initial"}],"plotLabel.updating":[{hookFn:function(){this.hide()},slot:"initial"},{hookFn:function(){this.show()},initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}],"group.appearing":function(e){return"label-group"===e.attr.name?[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]:[{initialAttr:{opacity:1},finalAttr:{opacity:1},slot:"final"}]},"*":null}},"legendInteraction.dataset.column":function(){var e=function(e){return null==e},t=this,A=t.getFromEnv("chart"),n=A.config.yDepth||0,i=t.getFromEnv("yAxis"),r=t.getFromEnv("xAxis"),a="y",o="height",s="x",l="width";return{"rect.disappearing":function(c){var u,h,d,g,p,f,m,v=c.props&&c.props.originalIndex||c.index,b=t.components.data[v],B=t.getFromEnv("updatedIndex"),C=t.getFromEnv("stackIndex"),w=i.getFromEnv("prevScale");if(r.config.isVertical&&(a="x",o="width",s="y",l="height"),e(C)?h=t.getFromEnv("numOfColumns"):(d=t.getFromEnv("numOfColumns"),h=e(B)?d:t.getLinkedParent().getLinkedParent().getFromEnv("numOfColumns")),!e(C)&&d)m=0,f=i.getPixel(b.config._b)+(A.isBar?-n:n);else if(0===h)m=0,f=w.getRangeValue(i.getAxisBase())+(A.isBar?-n:n);else{g=r.getPixel(v)-t.getFromEnv("groupNetWidth")/2+B*(t.getFromEnv("plotWidth")+t.getFromEnv("plotPadding")+t.getFromEnv("plotPadding")/2),p=0}return[{finalAttr:(u={},u[l]=p,u[a]=f,u[o]=m,u[s]=g,u)}]},"rect.updating":function(c){var u,h,d,g,p,f,m=c.props&&c.props.originalIndex||c.index,v=t.components.data[m],b=t.getFromEnv("updatedIndex"),B=t.getFromEnv("stackIndex"),C=i.getFromEnv("prevScale"),w={};if(!t.config.appearing)return[{}];if(r.config.isVertical&&(a="x",o="width",s="y",l="height"),e(B)?u=t.getFromEnv("numOfColumns"):(h=t.getFromEnv("numOfColumns"),u=e(b)?h:t.getLinkedParent().getLinkedParent().getFromEnv("numOfColumns")),e(B)||e(h)||1===h)if(1===u)f=0,g=C.getRangeValue(i.getAxisBase())+(A.isBar?-n:n);else{d=r.getPixel(m)-t.getFromEnv("oldGroupNetWidth")/2+b*(t.getFromEnv("oldPlotWidth")+t.getFromEnv("oldPlotPadding")+t.getFromEnv("oldPlotPadding")/2),p=0}else f=0,g=C.getRangeValue(v.config._b)+(A.isBar?-n:n);return w[s]=e(d)?c.attr[s]:d,w[a]=e(g)?c.attr[a]:g,w[o]=e(f)?c.attr[o]:f,w[l]=e(p)?c.attr[l]:p,[{initialAttr:w}]},"plotLabel.updating":function(){return!t.config.appearing&&t.getState("visible")?[{}]:[{initialAttr:{opacity:0},finalAttr:{opacity:0}}]},"*":null}}};t["default"]=i},,,,,,,,,,,,,,,,function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=n(A(590)),a=A(254),o=A(262),s=n(A(592)),l=Math.abs;(0,o.addDep)({name:"lineAnimation",type:"animationRule",extension:s["default"]});var c=function(e){function t(){var t;return(t=e.call(this)||this).updateYForStack=a.stubFN,t.config.primitiveType="line",t}(0,i["default"])(t,e);var A=t.prototype;return A.getType=function(){return"dataset"},A.getName=function(){return"line"},A.createPinElem=function(){var e,t,A,n=this,i=n.getFromEnv("chart"),r=arguments[1].group,a=n.config.lineOb,o=n.getGraphicalElement("pinElems")||n.addGraphicalElement("pinElems",[]),s=n.getFromEnv("paper"),c=n.getLinkedParent().getChildContainer("lineVcanvasGroup");for(t=o.length-1;t>=0;t--)o[t].remove(),o.pop();if(n.getState("visible"))for(A in a)e=a[A].el,o.push(s.path(r).attr({path:e.attrs.path,transform:["T",-(i.config._visx+l(c.transform()[0][1])),-i.config.canvasBottom]}).attr(n.config.pin))},A._addLegend=function(){var e,t,A,n=this.getFromEnv("chart"),i=this.config,r=this.getFromEnv("chart-attrib"),o=n.getChildren("legend")[0],s=(0,a.pluckNumber)(i.drawanchors,1),l=this.config.JSONData||{};i.includeinlegend?(A={enabled:i.includeinlegend,type:this.getName(),drawLine:(0,a.pluck)(i.drawLine,!0),index:this.getJSONIndex(),anchorSide:s?i.anchorsides:0,label:(0,a.getFirstValue)(this.config.JSONData.seriesname),legendIconAlpha:(0,a.pluckNumber)(l.legendiconalpha)},(e=o.getItem(this.config.legendItemId))||(this.config.legendItemId=o.createItem(this),e=o.getItem(this.config.legendItemId),this.addExtEventListener("fc-click",(function(){e.itemClickFn()}),e)),t={symbol:{fill:(0,a.toRaphaelColor)({color:i.anchorbgcolor,alpha:i.anchorbgalpha}),bgAlpha:(0,a.pluckNumber)(l.legendiconalpha,l.legendiconbgalpha,l.alpha),borderAlpha:(0,a.pluckNumber)(l.legendiconborderalpha,l.legendiconalpha,r.legendiconborderalpha,r.legendiconalpha,"100"),rawFillColor:i.anchorbgcolor,rawStrokeColor:i.anchorbordercolor,stroke:(0,a.toRaphaelColor)({color:i.anchorbordercolor,alpha:"100"}),"stroke-width":i.anchorborderthickness,lineWidth:i.linethickness}},e.setStateCosmetics("default",t),this.getState("visible")?e.removeLegendState("hidden"):e.setLegendState("hidden"),e.configure(A)):this.config.legendItemId&&o.disposeItem(this.config.legendItemId)},A._getDataLimits=function(){var e=this.config,t=this.getFromEnv("chart").config,A=e.maxValue,n=e.minValue,i=-Infinity,r=+Infinity,a=t.transposeAxis;return!1===this.getState("visible")&&a&&(A=i,n=r),{max:A,min:n}},A._drawCommonElementsHelper=function(e){var t,A,n,i=this,r=a.BLANKSTRING,o={},s=i.getFromEnv("animationManager"),l=i.config,c=l.shadow,u=l.linethickness,h=i.getContainer("commonElemsGroup"),d=function(){!1===i.getState("visible")&&this.hide()};for(r in e){for(t=["M0,0"],A=0,n=(o=e[r]).path&&o.path.length;A<n;++A)t=t.concat(o.path[A].getPathArr());i.config.drawLine?(o.el=s.setAnimation({el:o.el||"path",container:h,component:i,attr:!1!==i.getState("visible")&&Object.assign({path:t},o.attr),label:"line",callback:d}),i.getState("visible")&&o.el&&o.el.show()):o.el&&(o.el=s.setAnimation({el:o.el,component:i,doNotRemove:!0,callback:function(){this.hide()}})),!o.used&&delete e[r],o.el&&(u?o.el.shadow(c,h):o.el.shadow({opacity:0},h),o.el.toFront()),o.old=!0,o.used=!1,o.prevPath=o.path,o.attrs=void 0,o.path=void 0}},A.getLineShift=function(e){var t=this.getFromEnv("chart"),A=t.config.is3D,n=t.config.use3dlineshift;return"y"===e?A?n?0:-10:0:A?10:0},A.drawCommonElements=function(){var e,t,A,n,i,r,o,s,l,c,u=this.components.data,h=this.config,d=this.getFromEnv("xAxis"),g=this.getFromEnv("yAxis"),p=h.lineDashStyle,f=h.linethickness,m={color:h.linecolor,alpha:h.alpha},v=[(0,a.toRaphaelColor)(m),p].join(":"),b=v,B={x:d.getLimit(),y:g.getLimit()},C=u.length,w=this.config.lineOb||{},y=0,x=!1,F=this.getSkippingInfo&&this.getSkippingInfo(),E=F&&F.draw||[],S=E.length,Q=F&&F.skippingApplied,k=function(e,t,A){var n=w[e];n||(n=w[e]={}),e!==b&&(n.hasDifferentColor=!0),n.used=!0,n.pathWithNull=A,n.path=n.path||[],n.stroke=e.split(":")[0],n.dashStyle=e.split(":")[1],n.path.push(t),n.dashStyle=n.dashStyle&&n.dashStyle.split(","),n.attr={"stroke-dasharray":n.dashStyle,"stroke-width":f,stroke:n.stroke,"stroke-linecap":"round","stroke-linejoin":f>2?"round":"miter"}},L=[];for(B.x.minPixel=d.getPixel(B.x.min),B.x.maxPixel=d.getPixel(B.x.max),B.y.minPixel=g.getPixel(B.y.min),B.y.maxPixel=g.getPixel(B.y.max),B.y.base=g.getPixel(0),B.x.base=d.getPixel(0),Q&&(C=S),n=0;n<C;++n)(i=u[A=E[n]||n])&&((o=i.config||{})._Pbx=void 0,o._Pby=void 0,L[A]={config:{_Px:o._Px,_Py:o._Py,setValue:o.setValue}},t={color:o.setColor,alpha:o.setAlpha},e=o.dashStyle,v!==(r=[(0,a.toRaphaelColor)({color:(0,a.pluck)(t.color,m.color),alpha:(0,a.pluck)(t.alpha,m.alpha)}),e||p].join(":"))&&null!==i._yVal&&(x=!0,s=A,l=this.getLinePath(u,{begin:y,end:s+1}),c=this.getLinePath(u,{begin:y,end:s+1},void 0),o.connStartIndex=y,o.connEndIndex=s,k(v,l,c.getPathArr()),v=r,y=A,s=null),null!==i._yVal&&(v=r));r||(r=a.BLANKSTRING),h.pathStartIndex=y,h.pathEndIndex=s,k(r,l=this.getLinePath(u,{begin:x?y:h.scrollMinVal,end:x?s:h.scrollMaxVal}),(c=this.getLinePath(u,{begin:y,end:s},void 0)).getPathArr()),this._drawCommonElementsHelper(w),this.config.lineOb=w,h.prevLim=B,h.prevDataStore=L},A.show=function(){e.prototype.show.call(this),this.fireEvent("datasetVisibilityChanged",{dataset:this,state:"show"})},A.hide=function(){e.prototype.hide.call(this),this.fireEvent("datasetVisibilityChanged",{dataset:this,state:"hide"})},t}(r["default"]);t["default"]=c},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(272)),r=n(A(268)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var A=h(t);if(A&&A.has(e))return A.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=e[r]}n["default"]=e,A&&A.set(e,n);return n}(A(572)),o=A(254),s=A(266),l=A(262),c=n(A(591)),u=n(A(321));function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,A=new WeakMap;return(h=function(e){return e?A:t})(e)}var d,g=!o.hasSVG,p="DataPlotRollOver",f="DataPlotRollOut",m="L",v="Z",b=o.hasTouch?o.TOUCH_THRESHOLD_PIXELS:o.CLICK_THRESHOLD_PIXELS,B=o.preDefStr.DEFAULT,C=o.preDefStr.setRolloverAttrStr,w=o.preDefStr.setRolloutAttrStr,y=function(e){void 0===e&&(e="full");var t=this.pathMap,A=this.path2Map,n=[],i=[],r=!0;switch(e){case"detailed":for(var a in t)if(t.hasOwnProperty(a)&&(n.push(t[a]),A[a].length)){var o=t[a],s=Object.assign([],A[a]);if(s[s.length-1]===v&&s.pop(),s.length){var l=Object.assign([],o[o.length-1]),c=Object.assign([],o[0]);l[0]="M",c[0]=m,s.unshift(l),s.push(c)}i.push(s)}return(n=n.flat()).length?{top:n,bottom:i.flat()}:{top:["M0,0"],bottom:["M0,0"]};case"top":r=!1;default:for(var u in t)t.hasOwnProperty(u)&&(n.push(t[u]),r&&n.push(A[u]));return(n=n.flat()).length?n:["M0,0"]}},x=function(e){return e!==d&&null!==e&&""!==e},F=Math,E=F.min,S=F.max,Q=F.ceil,k=function(e,t){var A,n,i,r,a,s,l,c,u,h,d,p,f,m,v,b,B=e.getFromEnv("chart").config,y=t.config,x=t.graphics,F=x.image||x.element,Q=y.eventArgs,k=F._.RefImg,L=t._xPos,U=t._yPos,I=y.anchorProps,T=e.getContainer("shadowGroup"),N=y.hoverEffects,D=y.setLink,P=I.imageScale,M=I.imageAlpha,O=N.imageHoverAlpha,H=N.imageHoverScale,_=k.height*P*.01,R=k.width*P*.01,V=k.width*H*.01,G=k.height*H*.01;m=I.isAnchorRadius,I.markerRadius=n=I.radius=m?I.radius:E(R,_)/2,g?(p={x:L-k.width*P*.005,y:U-k.height*P*.005,width:R,height:_},d={x:L-k.width*H*.005,y:U-k.height*H*.005,width:V,height:k.height*H*.01,alpha:O},y.isAnchorsDrawn=!0,B.dragTolerance=B.dragTolerance<_?_+.5:B.dragTolerance,F.data("alwaysInvisible",!P).data("setRolloverProperties",N).data("hoverEnabled",N).data(C,d).data(w,p).data("imgRef",k).data("anchorRadius",P).data("anchorHoverRadius",H),F.attr(p),p.alpha=M):(A=I.symbol[1],v=N.isAnchorHoverRadius,i=I.shadow,c=I.imagePadding,N.radius=v?N.anchorRadius:n+1,a=N.radius-c-.5*N.anchorBorderThickness,l=n-c-.5*I.borderThickness,d=p={},B.dragTolerance=B.dragTolerance<n?n+.5:B.dragTolerance,b={fill:(0,o.toRaphaelColor)({color:I.bgColor,alpha:I.bgAlpha}),"stroke-width":I.borderThickness,stroke:(0,o.toRaphaelColor)({color:I.borderColor,alpha:I.borderAlpha})},p=(0,o.extend2)({path:(0,o.polyPathToPath)([A||2,L,U,n,I.startAngle,void 0])},b),N&&(d={path:(0,o.polyPathToPath)([N.anchorSides||2,L,U,N.radius,N.startAngle,N.dip]),fill:(0,o.toRaphaelColor)({color:N.anchorColor,alpha:N.anchorBgAlpha}),"stroke-width":N.anchorBorderThickness,stroke:(0,o.toRaphaelColor)({color:N.anchorBorderColor,alpha:N.anchorBorderAlpha})},O>(h=S(N.anchorAlpha,N.anchorBorderAlpha))&&(O=h)),I.bgAlpha&&I.borderAlpha&&M>(u=S(I.bgAlpha,I.borderAlpha))&&(M=u),(f=x.element).attr(Object.assign(b,{path:p.path})),f.attr({cursor:D?"pointer":""}).data("alwaysInvisible",!n).data("setRolloverProperties",N).data("hoverEnabled",N.enabled).data(C,d).data(w,p).data("anchorRadius",n).data("anchorHoverRadius",N&&N.radius).data("eventArgs",Q).shadow(i,T),s=(0,o.polyPathToPath)([A||2,L,U,l>0?l:0,I.startAngle,void 0]),r=(0,o.polyPathToPath)([A||2,L,U,a>0?a:0,N.startAngle,N.dip]),I.imgRefWidth=k.width,I.imgRefHeight=k.height,I.imgRefScale=P,I.rolloutClipRadius=l,p={x:L-k.width*P*.005,y:U-k.height*P*.005,width:R,height:_,"clip-path":s},d={x:L-k.width*H*.005,y:U-k.height*H*.005,width:V,height:G,alpha:O,"clip-path":r},F.attr({x:p.x,y:p.y,width:p.width,height:p.height,"clip-path":p["clip-path"]}).data("alwaysInvisible",!P).data("setRolloverProperties",N).data(C,d).data(w,p).data("anchorRadius",P).data("imgRef",k).data("anchorHoverRadius",H),y.isAnchorsDrawn=!0,n=S(n,N&&N.anchorRadius||0,2)),t._xPos=L,t._yPos=U,e.parseLabelAttributes(t,t._index)};(0,l.addDep)({name:"areaAnimation",type:"animationRule",extension:c["default"]});var L=function(e){function t(){var t;t=e.call(this)||this;var A=(0,i["default"])(t);return A.__removeElem=function(e,t){A._setRemoveAnim(e,"element"===t||"image"===t?"anchor":"label")},A.config.primitiveType="area",t}(0,r["default"])(t,e);var A=t.prototype;return A.getType=function(){return"dataset"},A.getName=function(){return"area"},A.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.valueposition=d,t.plotborderdashlen=d,t.plotborderdashgap=d,t.plotborderdashstyle=d,t.plotborderthickness=d,t.linethickness=d,t.linedashlen=d,t.linedashgap=d,t.dashed=d,t.linedashstyle=d,t.linecolor=d,t.linealpha=d,t.anchorbgcolor=d,t.anchorbordercolor=d,t.anchorradius=d,t.anchoralpha=d,t.anchorimageurl=d,t.anchorsides=d,t.anchorbgalpha=d,t.anchorborderthickness=d,t.anchorshadow=d,t.anchorstartangle=d,t.anchorimagealpha=d,t.anchorimagescale=d,t.anchorimagepadding=d,t.alpha=d,t.parentyaxis=d,t.inheritplotbordercolor=d},A._getHoveredPlot=function(e,t){var A,n,i,r,a,o,s=e,l=this.getFromEnv("xAxis"),c=this.components.data,u=c.length,h=this.config,d=this.getFromEnv("chartConfig").viewPortConfig.step||1,g=h&&h.radius||0,p=(this.getSkippingInfo&&this.getSkippingInfo()).plotsPerBin;for(s+=l.getTranslation(),n=Math.floor(Math.max(l.getValue(s-g),0)),i=Math.ceil(Math.min(l.getValue(s+g),u-1)),a+p-1,p>1&&(n=a=(Q(n/p)-1)*p+1,i=Q(i/p)*p),o=i;o>=n&&(!(A=c[o])||o%d||!(r=this.isWithinShape(A,o,s,t)));o--);return r},A.getClip=function(e){var t=this.getFromEnv("xAxis"),A=this.getFromEnv("yAxis"),n=A.getLimit(),i=t.getLimit(),r=t.getPixel(i.min),a=A.getPixel(n.min),o=A.getPixel(n.max),s=Math.abs(t.getPixel(i.max)-r),l=a-o,c=[];return c.push(r),c.push(l<0?a:o),"init"===e?c.push(0):"canvas"===e&&c.push(s),c.push(Math.abs(l)),c},A.isWithinShape=function(e,t,A,n,i){var r,a,s,l,c,u,h,d,g,p,f,m,v,B,C=i;if(e&&((C=e.config.setValue)||0===C))return r=e.config.anchorProps,a=e.config,l=r&&r.borderThickness,this,c=this.getFromEnv("chart").config.viewPortConfig,u=this.components.data,h=(0,o.pluckNumber)(a.dragTolerance,0),B=c?c.x*c.scaleX:0,d=e._xPos-B,null!==(g=e._yPos)?(v=e.config.hoverEffects,(s=Math.max(r&&r.radius,v&&v.anchorRadius||0,b)+l/2)||(s=3),p=A-d,f=n-g,((m=Math.sqrt(Math.pow(p,2)+Math.pow(f,2)))<=s||m<=h)&&{pointIndex:t,hovered:!0,pointObj:u[t]}):void 0},A._parseShadowOptions=function(){var e=this.getFromEnv("chart"),t=this.config,A=e.getFromEnv("dataSource").chart,n=this.getFromEnv("color-manager"),i=(0,o.pluckNumber)(e.defaultPlotShadow,n.getColor("showShadow"));return{opacity:(0,o.pluckNumber)(A.showshadow,i)?t.alpha/100:0}},A._firePlotEvent=function(e,t,A){var n,i,r,a=this.getFromEnv("chart"),o=this.components,s=this.getFromEnv("toolTipController"),l=o.data[t]||{},c=this.getGraphicalElement("sharedAnchor"),u=l.graphics&&l.graphics.element||(l.config&&l.config.setValue)!==d&&c,h=this.config.currentToolTip,g=a.getFromEnv("paper").canvas.style;if(u)switch(r=(n=l.config).setLink,i=n.eventArgs,e){case"fc-mouseover":this._decideTooltipType(t,A),this._rolloverResponseSetter(a,l,A),r&&(g.cursor="pointer");break;case"fc-mouseout":s.hide(h),this._rolloutResponseSetter(a,l,A),g.cursor=B;break;case"fc-click":a.plotEventHandler(u,A,"dataplotclick",i);break;case"fc-mousemove":this._decideTooltipType(t,A)}},A._rolloverResponseSetter=function(e,t,A,n){var i=t.graphics,r=i&&(i.element||this.getAnchor(t)),a=r&&r.data("draged"),o=r&&r.data("hoverEnabled");!0!==a&&(this._hoverFunc(t,p,o,e.getFromEnv("dataSource").chart),!n&&r&&e.plotEventHandler(r,A,p))},A._rolloutResponseSetter=function(e,t,A,n){var i=t.graphics,r=i&&(i.element||this.getAnchor(t)),a=r&&r.data("draged"),o=r&&r.data("hoverEnabled"),s=this.type,l=t.config,c=l.anchorProps,u=c.radius&&c.anchorAlpha;!0!==a&&(this._hoverFunc(t,f,o,e.getFromEnv("dataSource").chart),!n&&r&&e.plotEventHandler(r,A,f)),l.isAnchorsDrawn&&!u&&"area"===s&&r&&r.hide()},A.getAnchor=function(e){void 0===e&&(e={});var t,A,n,i,r,a,o,s,l,c=this.getFromEnv("animationManager"),u=this.getGraphicalElement("sharedAnchor"),h=e.config;return u?(t=h.anchorProps,A=h.eventArgs,(a=(r=h.hoverEffects).enabled)&&(n=r.attrs&&r.attrs.setRolloutAttr,i=r.attrs&&r.attrs.setRolloverAttr),o=t.radius,s=t.shadow,l=this.getFromEnv("chartConfig").prevAnchorHovered,r.anchorAnimation=0,e._index!==l&&(u.shadow(s,this.getContainer("shadowGroup")).data("anchorRadius",o).data("anchorHoverRadius",r.anchorRadius).data("hoverEnabled",a).data("eventArgs",A),a&&u.data(C,i).data(w,n)),this.getFromEnv("chartConfig").prevAnchorHovered=e._index,u):(u=c.setAnimation({el:"path",container:this.getContainer("plotGroup"),label:"anchor",doNotRemove:!0,component:this}),this.addGraphicalElement("sharedAnchor",u),u)},A.configureAttributes=function(e){if(!e)return!1;this.trimData(e);var t=this.getFromEnv("chart");this.config.JSONData=e,this.parseAttributes(),this._setConfigure(),this._realTimeConfigure&&this._realTimeConfigure(),!1!==t.config.hasLegend&&t.config.showLegend&&this._addLegend(),this.setState("dirty",!0)},A.parseAttributes=function(){var e,t,A=this.getFromEnv("chart"),n=A.config,i=this.config,r=this.getName(),s=this.config.JSONData,l=A.getFromEnv("chart-attrib"),c=A.config.singleseries,u=this.getFromEnv("color-manager"),h=Math.floor(this.getJSONIndex()),g=(0,o.pluckNumber)(s.showplotborder,l.showplotborder||1),p=(0,o.getFirstColor)(!c||(0,o.getValidValue)(l.palettecolors)?u.getPlotColor(h):u.getColor("plotFillColor").split(/\s*\,\s*/)[0]),f=n.isdual,m=n.haslineset;i.showTextOutline=(0,o.pluckNumber)(l.textoutline,0),i.maxValue=-Infinity,i.minValue=Infinity,(0,o.parseConfiguration)(s,i,A.config,{data:!0}),i.inheritplotbordercolor=(0,o.pluckNumber)(s.inheritplotbordercolor,l.inheritplotbordercolor,0),i.showValues=(0,o.pluckNumber)(s.showvalues,l.showvalues,"radar"===r?0:1),i.anchorimageurl=(0,o.pluck)(s.anchorimageurl,l.anchorimageurl,d),i.plotColor=p,i.parentYAxis=f&&(m||"s"===(0,o.pluck)(s.parentyaxis&&s.parentyaxis.toLowerCase(),"p"))?1:0,i.valueposition=i.valueposition.toLowerCase(),i.plotfillcolor=(0,o.pluck)(s.color,l.plotfillcolor,p),i.seriesname=(0,o.parseUnsafeString)(s.seriesname),e=n.useplotgradientcolor,i.plotgradientcolor=0!==e?(0,o.getDefinedColor)(l.plotgradientcolor,u.getColor("plotGradientColor")):"",i.usePattern=(0,o.pluckNumber)(n.usePattern,0),i.patternType=a.PATTERN_TYPES.includes(s.patterntype)?s.patterntype:n.patternType,i.patternDensity=(0,o.pluckNumber)(s.patterndensity,n.patternDensity),i.patternAlpha=(0,o.pluckNumber)(s.patternalpha,n.patternAlpha),i.patternBgColor=(0,o.pluck)(s.patternbgcolor,n.patternBgColor,i.patternBgColor),i.patternAngle=(0,o.pluckNumber)(s.patternangle,l.patternangle,i.patternType===a.PATTERN_TYPES[0]?40:0),i.patternSize=(0,o.pluckNumber)(s.patternsize,l.patternsize,i.patternType===a.PATTERN_TYPES[0]?2:4),i.plotfillalpha=(0,o.pluckNumber)(s.alpha,n.plotfillalpha),i.fillColor={color:i.plotfillcolor+(i.plotgradientcolor?","+i.plotgradientcolor:""),alpha:i.plotfillalpha,angle:i.plotfillangle},i.plotborderalpha=g?(0,o.pluck)(s.plotborderalpha,l.plotborderalpha,s.alpha,i.inheritplotbordercolor?"100":l.plotfillalpha,"95"):0,i.plotbordercolor=(0,o.pluck)(s.plotbordercolor,l.plotbordercolor,l.areabordercolor,i.usePattern?i.plotfillcolor:i.inheritplotbordercolor?i.fillColor.color:c?(0,o.getValidValue)(l.palettecolors)?u.getPlotColor(0):u.getColor("plotBorderColor").split(/\s*\,\s*/)[0]:"666666"),i.plotborderColorObject={color:i.plotbordercolor,alpha:i.plotborderalpha,angle:i.plotfillangle},i.drawLine=(0,o.pluckNumber)(s.drawline,l.drawlines,1),i.plotborderdashstyle=i.dashed?(0,o.getDashStyle)(i.plotborderdashlen,i.plotborderdashgap):"none",i.linecolor=(0,o.pluck)(s.color,l.linecolor,i.plotColor),i.legendSymbolColor="line"===this.type?i.linecolor:i.plotfillcolor,i.includeinlegend=(0,o.pluckNumber)(s.includeinlegend,i.seriesname?1:0),t=(0,o.getDashStyle)(i.linedashlen,i.linedashgap),i.lineDashStyle=i.dashed?t:"none",i.defaultPadding={left:0,right:0},i.shadow=this._parseShadowOptions(),i.drawanchors=(0,o.pluckNumber)(s.drawanchors,s.showanchors,l.showanchors,l.drawanchors),i.anchorbgcolor=(0,o.getFirstColor)((0,o.pluck)("inherit"===s.anchorbgcolor?i.linecolor:s.anchorbgcolor,"inherit"===l.anchorbgcolor?i.linecolor:n.anchorbgcolor,u.getColor("anchorBgColor"))),i.anchorbordercolor=(0,o.getFirstColor)((0,o.pluck)("inherit"===s.anchorbordercolor?i.linecolor:s.anchorbordercolor,"inherit"===l.anchorbordercolor?i.linecolor:n.anchorbordercolor,i.linecolor,i.plotColor)),this.setState("visible",1===(0,o.pluckNumber)(s.visible,!Number(s.initiallyhidden),1)&&i.drawLine)},A._setConfigure=function(e,t){var A,n,i,r,a,l,c,u,h,g=this.getFromEnv("chart"),p=this.config,f=g.config,m=this.config.JSONData||[],v=this.getFromEnv("xAxis"),B=g.isRealTime,C=f.realTimeConfig&&f.realTimeConfig.numDisplaySets,w=this.getFromEnv("dataSource").categories&&this.getFromEnv("dataSource").categories[0]&&this.getFromEnv("dataSource").categories[0].category,y=p.initCatLen=B?w&&Array.isArray(w)&&w.filter((function(e){return!e.vline})).length||0:v.getTicksLen(),x=e||m.data,F=e&&e.data.length,E=f.isDrag,S=this.getSkippingInfo&&this.getSkippingInfo(),Q=S&&S.draw||[],k=Q.length,L=S&&S.skippingApplied;for(h=F===d&&y>C?y-C:0,i=B?(0,o.pluckNumber)(F,y):Math.min(y,x&&x.length),p.imageCount=0,(r=this.components.data)||(r=this.components.data=[]),p.maxRadius=-Infinity,f.dragTolerance=f.dragTolerance||-Infinity,L&&(i=k),l=h;l<i;l++)a=Q[l]||l,e?(A=e&&e.data[a]||{},n=t!==d?r[u=t+a]:r[u=r.length-i+a],c=u):(A=x&&x[a]||{},n=r[a-=h],c=a),n||(n=r[c]={}),n.config||(n.config={}),n.graphics||(n.graphics={}),this._plotConfigure(c,A,F),u&&u++;L&&this.addJob("configureRestID",this._configureRestData.bind(this),s.priorityList.postRender),f.dragTolerance=E?(f.dragTolerance>5?f.dragTolerance:5.5)+b:0,this.ErrorValueConfigure&&this.ErrorValueConfigure()},A._configureRestData=function(){var e,t,A,n,i,r,a=this.getFromEnv("chart"),o=this.config,s=a.config,l=this.config.JSONData.data||[],c=(this.getSkippingInfo&&this.getSkippingInfo()).drawOnlyMap,u=this.getFromEnv("xAxis").getTicksLen();for(o.imageCount=0,(A=this.components.data)||(A=this.components.data=[]),o.maxRadius=-Infinity,s.dragTolerance=s.dragTolerance||-Infinity,o.maxValue=-Infinity,o.minValue=Infinity,n=0;n<u;n++)c[n]||(t=A[n],e=l&&l[n]||{},i=n,t||(t=A[n]={}),t.config||(A[n].config={}),t.graphics||(t.graphics={}),this._plotConfigure(i,e),r&&r++)},A._plotConfigure=function(e,t,A){var n,i,r,a,s,l,c,u,h,g,p=this.getFromEnv("chart"),f=p.config.singleseries,m=this.config,v=p.config,B=this.config.JSONData,C=p.getFromEnv("dataSource").chart,w=this.components.data[e],y=this.getFromEnv("xAxis"),x=this.getFromEnv("yAxis"),F=v.isDrag,Q=w&&w.config,k=(0,o.parseUnsafeString)(v.yaxisname),L=(0,o.parseUnsafeString)(v.xaxisname),U=v.tooltipsepchar,I=m.dashed,T=v.realTimeConfig&&v.realTimeConfig.numDisplaySets,N=T-m.initCatLen,D=T&&N>=0?N:0;h=y.getLabel(A?e-A:D+e),Q.label=(0,o.getValidValue)((0,o.parseUnsafeString)(h.tooltext||h.label)),t.tooltext!==d&&(t.tooltext=(0,o.parseTooltext)(t.tooltext,[3],{label:h.label},t,C,B)),Q.id=f?t.id?(0,o.pluck)(t.id,Q.id):(0,o.getValidValue)((0,o.parseUnsafeString)(h.label)):t.id?(0,o.pluck)(t.id,Q.id):(0,o.getValidValue)((0,o.parseUnsafeString)(h.label))+"-"+(B.seriesname?B.seriesname:this.getJSONIndex()),Q.dataLabelStyle=this._configureDataLabelStyle(t),Q.setValue=r=x.getCleanValue(t.value,m.stack100percent),Q.setLink=(0,o.pluck)(t.link),Q.valuePadding=(0,o.pluckNumber)(t.valuepadding,B.valuepadding,v.valuepadding),Q.dragTolerance=F?(g<6?5.5:g+.5)+b:0,Q.label=(0,o.getValidValue)((0,o.parseUnsafeString)(h.tooltext||h.label)),Q.showValue=(0,o.pluckNumber)(t.showvalue,m.showValues),Q.givenPlotShowValue=(0,o.pluckNumber)(t.showvalue),Q.dashed=(0,o.pluckNumber)(t.dashed,I),Q.dashStyle=Q.dashed?(0,o.getDashStyle)(m.linedashlen,m.linedashgap):"none",Q.color=(0,o.pluck)(t.color,m.linecolor),Q.setColor=t.color,Q.setAlpha=t.alpha,Q.setDashed=t.dashed,Q.alpha=(0,o.pluck)(t.alpha,t.linealpha,m.alpha,m.linealpha),Q.origLabel=(0,o.getValidValue)((0,o.parseUnsafeString)(h.label)),Q.anchorProps=this._parseAnchorProperties(e),m.maxRadius=S(Q.anchorProps.radius+Q.anchorProps.borderThickness/2,m.maxRadius),g=Q.anchorProps.radius+Q.anchorProps.borderThickness/2,null!==r&&(m.maxValue=S(m.maxValue,r),m.minValue=E(m.minValue,r)),Q.setTooltext=(0,o.parseUnsafeString)(t.toolText,!1),Q.toolTipValue=i=x.dataLabels(r),Q.setDisplayValue=a=(0,o.parseUnsafeString)(t.displayvalue),Q.displayValue=(0,o.pluck)(a,i),Q.formatedVal=c=Q.toolTipValue,Q.setTooltext=(0,o.getValidValue)((0,o.parseUnsafeString)((0,o.pluck)(t.tooltext,B.plottooltext,C.plottooltext),!1)),Q.valuePosition=(0,o.pluck)(t.valueposition,m.valueposition),Q.valuePosition&&(Q.valuePosition=Q.valuePosition.toLowerCase()),v.showtooltip?null===c?n=!1:Q.setTooltext!==d?(s=[1,2,3,4,5,6,7],l={yaxisName:k,xaxisName:L,formattedValue:c,label:Q.label},n=(0,o.parseTooltext)(Q.setTooltext,s,l,t,C,B)):(v.seriesnameintooltip&&(u=(0,o.getFirstValue)(B&&B.seriesname)),n=u?u+U:"",n+=Q.label?Q.label+U:"",n+=Q.setTooltext?"":Q.toolTipValue):n=!1,Q.toolText=n,Q.setTooltext=n,Q.setLevelTooltext=Q.setTooltext,Q._x=t.index===d?e:t.index,Q._y=r,Q.finalTooltext=Q.setTooltext=n,Q.hoverEffects=this._parseHoverEffectOptions(w,t),Q.anchorProps.isAnchorHoverRadius=Q.hoverEffects.anchorRadius,v.dragTolerance=S(v.dragTolerance,m.maxRadius,Q.hoverEffects.anchorRadius)},A.drawCommonElements=function(){var e,t,A,n,i,r,a,s,l,c,h,g,p,f=this,m=f.components.data,v=f.getFromEnv("chart"),b=f.config,B=v.config,C=f.getLinkedParent(),w=f.getJSONIndex(),y=C.config.firstDataSetIndex,x=f.getFromEnv("xAxis"),F=f.getFromEnv("yAxis"),E=b.scrollMinVal,S=b.scrollMaxVal,Q=!B.drawfullareaborder,k=b.plotborderColorObject,L=b.plotborderdashstyle,U=b.plotborderthickness,I=b.fillColor,T=f.getFromEnv("animationManager"),N={x:x.getLimit(),y:F.getLimit()},D=[],P=0,M=0,O="",H=b.shadow,_=f.getContainer("shadowGroup"),R=x.getState("scrolling"),V=f.getSkippingInfo&&f.getSkippingInfo(),G=V&&V.draw||[],K=G.length,z=V&&V.skippingApplied;for(N.x.minPixel=x.getPixel(N.x.min),N.x.maxPixel=x.getPixel(N.x.max),N.y.minPixel=F.getPixel(N.y.min),N.y.maxPixel=F.getPixel(N.y.max),N.y.base=F.getPixel(0),N.x.base=x.getPixel(0),z&&(E=0,S=K),g=E;g<S;g++)m[h=G[g]||g]&&m[h].config&&(D[h]={config:{_Px:m[h].config._Px,_Pbx:m[h].config._Pbx,_Py:m[h].config._Py,_Pby:m[h].config._Pby,setValue:m[h].config.setValue}});if(p={begin:E,end:S},r={path:(A=this.getLinePath(m,R?p:null,!f.getState("visible")&&"base")).getPathArr(),stroke:"none",fill:(0,o.toRaphaelColor)(I)},t=f.getGraphicalElement("lineElement"),e=T.setAnimation({el:t||"path",container:f.getContainer("commonElemsGroup"),attr:f.getState("visible")&&r,component:f,doNotRemove:!0,label:"line",callback:function(){!f.getState("visible")&&this.hide()}}),"string"==typeof r.path?O=r.path:(0,u["default"])(r.path)&&"string"==typeof r.path[0]&&(O=r.path[0]),O){var W=O.split(",");P=parseFloat(W[0].split("M")[1],10),M=parseFloat(W[1],10)}else r.path.length&&(P=r.path[0][1],M=r.path[0][2]);if(e.addPattern({patternType:b.patternType,patternAngle:b.patternAngle,patternDensity:b.patternDensity,patternSize:b.patternSize,color:r.fill,patternAlpha:b.patternAlpha,patternBgColor:b.patternBgColor,alpha:b.plotfillalpha,x:P,y:M},b.usePattern),!t&&e&&f.addGraphicalElement("lineElement",e),f.getState("visible")&&e&&e.show(),f.getState("visible")&&!R&&e.shadow(H,_),a=f.getGraphicalElement("connector"),c=f.getGraphicalElement("bottomConnector"),f.getState("visible")&&a&&a.show(),Q)n=A.getPathArr("top"),i="topBorderPath";else if(y===d||w===y)n=A.getPathArr(),i="line";else{var j=A.getPathArr("detailed");n=j.top,s=j.bottom,i="topBorderPath",f.getState("visible")&&c&&c.show(),l=f.addGraphicalElement("bottomConnector",T.setAnimation({attr:{path:s,stroke:(0,o.toRaphaelColor)(k),"stroke-width":U,"stroke-linecap":"round","stroke-linejoin":U>2?"round":"miter","stroke-dasharray":L},el:c||"path",container:f.getContainer("commonElemsGroup"),component:f,label:"bottomPath",callback:function(){!f.getState("visible")&&this.hide()}}))}c&&!l&&f.removeGraphicalElement(c),a=f.addGraphicalElement("connector",T.setAnimation({attr:{path:n,stroke:(0,o.toRaphaelColor)(k),"stroke-width":U,"stroke-linecap":"round","stroke-linejoin":U>2?"round":"miter","stroke-dasharray":L},el:a||"path",container:f.getContainer("commonElemsGroupLine")||f.getContainer("commonElemsGroup"),component:f,label:i,callback:function(){!f.getState("visible")&&this.hide()}})),b.prevLim=N,b.prevDataStore=D,"realTimeUpdate"===v.state&&(f.realTimeUpdated=!0),B.connectnulldataOld=B.connectnulldata},A.addDatasetSpecificEvtArgs=function(e){var t=this.config,A=e.config,n=A.anchorProps,i=A.eventArgs,r=A.hoverEffects;Object.assign(i,{color:A.color,alpha:A.alpha,anchorBgColor:n.bgColor,anchorBgAlpha:n.anchorBgAlpha,anchorAlpha:n.anchorAlpha,anchorBorderColor:n.borderColor,anchorBorderThickness:n.borderThickness,anchorRadius:n.radius,anchorSides:n.sides,anchorStartAngle:n.startAngle,anchorHoverColor:r.anchorColor,anchorHoverAlpha:r.anchorAlpha,anchorHoverSides:r.anchorSides,dashed:A.dashed,valuePosition:A.valuePosition}),this.config.usePattern?(i.pattern={patternType:t.patternType,patternColor:t.plotfillcolor,patternBgColor:t.patternBgColor===o.TRACKER_FILL?d:t.patternBgColor},delete i.color):delete i.pattern},A.parsePlotAttributes=function(e,t){var A,n,i,r,a,s,l,c,u,h,d,g=this.getJSONIndex(),p=this.getState("visible"),f=this.config,m=this.config.JSONData,v=t,b={},B={},y={};c=(d=e.config)._Px,u=d._Py,A=d._x,n=d._y,r=d.setLink,i=d.setValue,b=d.anchorProps,h=d.displayValue,l=d.hoverEffects,s=d.finalTooltext=d.toolText,d.eventArgs={index:v,link:r,value:i,displayValue:h,categoryLabel:d.origLabel,toolText:s,id:d.id,datasetIndex:g||0,datasetName:m.seriesname,visible:p},this.addDatasetSpecificEvtArgs(e),a=b.symbol,e._xPos=c,e._yPos=u,e._xVal=A,e._yVal=n,e._index=v,null!==n&&null!==A?(d.eventArgs.x=A,d.eventArgs.y=n,l.enabled&&(y={path:(0,o.polyPathToPath)([l.anchorSides||2,c,u,l.anchorRadius,l.startAngle,l.dip?l.dip:+("spoke"===f.dip)]),fill:(0,o.toRaphaelColor)({color:l.anchorColor,alpha:l.anchorBgAlpha}),stroke:(0,o.toRaphaelColor)({color:l.anchorBorderColor,alpha:l.anchorBorderAlpha}),"stroke-width":l.anchorBorderThickness},B={path:(0,o.polyPathToPath)([a[1]||2,c,u,b.radius,b.startAngle,d.dip||0]),fill:(0,o.toRaphaelColor)({color:b.bgColor,alpha:b.bgAlpha}),stroke:(0,o.toRaphaelColor)({color:b.borderColor,alpha:b.borderAlpha}),"stroke-width":b.borderThickness},l.attrs={hoverEnabled:l.enabled,anchorRadius:b.radius,anchorHoverRadius:l.anchorRadius},l.attrs[C]=y,l.attrs[w]=B,b.isAnchorHoverRadius=l.attrs.anchorRadius),b.imageUrl&&(d.anchorImageLoaded=!1),d.props={element:{attr:{path:(0,o.polyPathToPath)([a[1]||2,c,u,b.radius,b.startAngle,d.dip||0]),fill:(0,o.toRaphaelColor)({color:b.bgColor,alpha:b.bgAlpha}),stroke:(0,o.toRaphaelColor)({color:b.borderColor,alpha:b.borderAlpha}),"stroke-width":b.borderThickness}}}):i&&(i.isNull=!0)},A.parseLabelAttributes=function(e,t){var A,n,i,r,a,o,s,l,c,u,h,g,p,f,m,v,b,B,C,w,y,F,E,S,Q=this.getFromEnv("chart"),k=Q.config,L=this.getFromEnv("smartLabel"),U=Q.config.dataLabelStyle,I=this.components.data,T=k.stack100percent,N=k.rotatevalues?270:0,D=k.canvasTop,P=k.canvasHeight,M=Q.config.isstacked,O=t;if(F=(f=e&&e.config)&&f.setValue,e!==d&&F!==d&&null!==F&&!0!==f.labelSkip){switch(u=f.anchorProps,v=e._yPos||e.config._Py,m=e._xPos||e.config._Px,y=u.markerRadius||u.radius-3,i=f.valuePadding+2+y,f.valuePosition){case"above":h=0;break;case"below":h=1;break;default:b=I[O-1]&&I[O-1].config||{},M&&T?(B=b.value,C=f.value):(B=b.setValue,C=f.setValue),h=O&&B>C?1:0}if(A=f.displayValue,w=f.showValue,n=f.dataLabelStyle,x(A)&&""!==A&&null!==C&&w){if(S={text:A,fill:n.color,"text-bound":[n.backgroundColor,n.borderColor,U.borderThickness,U.borderPadding,U.borderRadius,U.borderDash]},r=L.getOriSize(A),f._state=f._state||{},N?(f._state.labelWidth=r.height,f._state.labelHeight=r.width,f._rotated=!0):(f._state.labelWidth=r.width,f._state.labelHeight=r.height,f._rotated=!1),a=o=f._state.labelHeight,c=.5*o+i,g=v-D,p=D+P-v,s=v,l=m,E=(a+=i)+4,h?p>E?(s+=c,f._valueBelowPoint=1):g>E&&(s-=c,f._valueBelowPoint=0):g>E?(s-=c,f._valueBelowPoint=0):p>E&&(s+=c,f._valueBelowPoint=1),this.getFromEnv("useImprovedLabelPlacement")&&k.showSum&&!T){var H=a+2;s<D+H+a/2?s=D+H+a/2:s>D+P-H-a/2+c&&(s=D+P-H-a/2+c)}S.x=l,S.y=s}f.props=f.props||{},f.props.label={attr:S}}else f&&delete f.labelSkip},A.allocatePosition=function(){var e,t,A,n=this,i=n.config,r=n.getFromEnv("chart"),a=r.config,o=n.components,s=o.data,l=n.getFromEnv("xAxis"),c=0,u=0,h=a.isstacked,g=a.viewPortConfig.step||1,p=r.hasScroll,f=n.getSkippingInfo&&n.getSkippingInfo(),m=f&&f.labelDraw||[],v=f&&f.draw||[];for(t=o.animAttrs=[],n.calculateScrollRange(),l.getState("scrolling")||h&&n.updateYForStack(),n.createCoordinates(),u=i.scrollMinVal;u<i.scrollMaxVal;u+=g)c=v[u]||u,p&&!a.skipAttr&&(c<void 0||c>void 0)||((e=s[c])&&e.config?n.parsePlotAttributes(e,c):t[c]=d);for(g>1&&i.skipIgnorerIndices.map((function(e){return s[e]})).filter((function(e){return e||e.config})).forEach((function(e){return n.parsePlotAttributes(e,c)})),u=i.scrollMinValForLabel;u<i.scrollMaxValForLabel;u+=g){if(c=m[u]||u,e=s[c],"Multi-series Line Chart"===a.friendlyName){if(a.cleandatapoints&&a.cleandatapoints.groupingvalues)if(a.cleandatapoints.singlegroupval&&e)for(var b=r._env.chartInstance.args.dataSource.dataset,B=0;B<b.length;B++){var C=e.config.setValue,w=parseInt(b[B].data[c].value,10),y=e.config.eventArgs.datasetName,x=b[B].seriesname;C<=w&&y!==x&&(e.config.displayValue=null)}else for(var F=r._env.chartInstance.args.dataSource.dataset,E=0;E<F.length&&e;E++){var S=e.config.setValue,Q=parseInt(F[E].data[c].value,10),k=e.config.eventArgs.datasetName,L=F[E].seriesname,U=a.height;S-Q>=-1e6/U&&S-Q<=1e6/U&&k>L&&(e.config.displayValue=null)}e&&a.cleandatapoints&&a.cleandatapoints.groupingvalues&&(A=void 0,A=a.cleandatapoints.bggroupopacity||.3,0===a.cleandatapoints.bggroupopacity&&(A=0),e.config.dataLabelStyle.backgroundColor=function(e){if(e){var t;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(e))return 3===(t=e.substring(1).split("")).length&&(t=[t[0],t[0],t[1],t[1],t[2],t[2]]),"rgba("+[(t="0x"+t.join(""))>>16&255,t>>8&255,255&t].join(",")+","+A+")";throw new Error("Bad Hex")}return""}(a.cleandatapoints.bggroupcolor)||"",a.dataLabelStyle.borderPadding=a.cleandatapoints.bggrouppadding||2)}n.parseLabelAttributes(e,c)}},A.drawPlot=function(e,t){var A,n,i,r=this.config,a=e.config,o=e.graphics,s=a.anchorProps,l=this.getState("visible"),c=s.radius,u=s.shadow,h=s.anchorAlpha,g=c&&h,p=this.getContainer("plotGroup"),f=this.getContainer("shadowGroup"),m=this.getFromEnv("animationManager");null!==a._y&&null!==a._x?(s.imageUrl?this.drawAnchorImage(e):(A=o.element,(i=o.image)&&i.remove(),delete o.image,(r.drawanchors||g)&&l&&null!==e.config.setValue?(A=o.element=m.setAnimation({el:A||"path",container:p,attr:a.props.element.attr,index:t,length:length,callback:function(){this.show()},component:this,label:"anchor"})).shadow(u,f):A&&(this.__removeElem(o.element,"element"),delete o.element,A=d)),n=a.hoverEffects,A&&(n.enabled?A.data("hoverEnabled",n.attrs.hoverEnabled).data("anchorRadius",n.attrs.anchorRadius).data("anchorHoverRadius",n.attrs.anchorHoverRadius).data(C,n.attrs[C]).data(w,n.attrs[w]):A.data("hoverEnabled",!1),A.data("eventArgs",a&&a.eventArgs))):o.element&&(o.element=m.setAnimation({el:o.element,component:this}))},A.drawPlots=function(){var e,t,A,n=this,i=n.getFromEnv("chart").config,r=n.components,a=n.config,o=r.data,s=0,l=0,c=r.animAttrs,u=a._oldStartIndex,h=a._oldEndIndex,g=n.getGraphicalElement("sharedAnchor"),p=i.viewPortConfig.step||1,f=n.getSkippingInfo&&n.getSkippingInfo(),m=f&&f.draw||[];for(c=r.animAttrs=[],t=a.scrollMinVal,A=a.scrollMaxVal,t>u&&n.flushOnScroll(u,t>h?h:t),A<h&&n.flushOnScroll(A<u?u:A,h),a._oldStartIndex=t,a._oldEndIndex=A,n.hideAllAnchors&&n.hideAllAnchors(),l=t;l<A;l+=p)s=m[l]||l,(e=o[s])&&e.config?n.drawPlot(e,s):c[s]=d;p>1&&a.skipIgnorerIndices.map((function(e){return o[e]})).filter((function(e){return e||e.config})).forEach((function(e){return n.drawPlot(e,s)})),0===s||a.drawanchors?g&&g.hide():g?g.hide():n.getAnchor()},A.drawAnchorImage=function(e){var t,A=this.getContainer("plotGroup"),n=e.graphics,i=this.getFromEnv("animationManager"),r=g?n.element:n.image,a=e.config.anchorProps,o=a.anchorAlpha&&a.radius,s=a.imageAlpha;this.getState("visible")&&o?(g||(n.element=i.setAnimation({el:n.element||"path",container:A,attr:e.config.props.element.attr,label:"anchor",component:this}).show()),e.config.props.element.attr.opacity=.01*s,t=i.setAnimation({el:r||"image",container:A,component:this,label:"anchor",attr:{opacity:.01*s}}),g?n.element=t:n.image=t,r?t.attrs.src!==a.imageUrl?t.attr("src",a.imageUrl):t._.RefImg&&k(this,e):(t.on("load",this._onAnchorImageLoad(e)),t.attr("src",a.imageUrl)),t.show()):(n.image&&i.setAnimation({el:n.image,state:"disappearing",component:this,doNotRemove:!0,callback:function(){this.hide()}}),n.element&&i.setAnimation({el:n.element,state:"disappearing",component:this,doNotRemove:!0,callback:function(){this.hide()}}))},A.getLineSegment=function(e,t,A){var n=t._Px,i=t._Py,r=t._Pbx,a=t._Pby,o=this.getFromEnv("yAxis").getPixel(0),s=t.setValue,l="path-"+e.pathCount,c=this.getFromEnv("chart").config.connectnulldata;return"zero"===A?(i=o,a=o):"base"===A&&(i=t._Pby),e.pathMap[l]||(e.pathMap[l]=[]),e.path2Map[l]||(e.path2Map[l]=[]),null===s||s.isNull?c||(e.pointsJoined>0&&e.path2Map[l][e.path2Map[l].length-1]!==v&&a!==d&&e.path2Map[l].push(v),e.temp=[],e.temp2=[],e.lastValidValue=!1):e.lastValidValue?(e.temp.length&&(e.pathMap[l]=e.pathMap[l].concat(e.temp),r!==d&&(e.path2Map[l]=e.temp2,e.temp2=[]),e.temp=[],e.pointsJoined++),e.pathMap[l].push([m,n,i]),a!==d&&e.path2Map[l].unshift([m,n,a])):(e.temp.push(["M",n,i]),a!==d&&e.temp2.push([m,r,a]),e.pointsJoined=0,e.lastValidValue=!0,e.pathCount++),e},A.getLinePath=function(e,t,A){var n,i,r,a,o,s,l,c,u,h=this,g=h.getFromEnv("chart").config,p=e.length,f=t&&t.begin||0,m=h.getState("visible")?t&&t.end||p:0,b=g.viewPortConfig.step||1,B=(h.removeDataLen,[]),C=h.getSkippingInfo&&h.getSkippingInfo(),w=C&&C.draw||[],x=w.length,F=C&&C.skippingApplied,E=h.config.skipIgnorerIndices,S=[],Q={},k=0;for(0,B=B.concat(e),F&&(f=0,m=x),i=f+0;i<m+0;i+=b)if(o=B[n=w[i]||i])if((r=o.config).setValue===d||r&&!0===r.isSkipped)r&&delete r.isSkipped;else{if(b>1)for(;E[k]<i;)(l=B[E[k]])&&((c=l.config).setValue===d||c&&!0===c.isSkipped?c&&delete c.isSkipped:(S=S.concat(c),k++));S=S.concat(r),a=r._Pby,s=i}if(b>1)for(n=s+1;n<=i;n++)(o=B[w[n]||n])&&((r=o.config).setValue===d||r&&!0===r.isSkipped?r&&delete r.isSkipped:E.includes(n)&&(S=S.concat(r),a=r._Pby));return u="path-"+(Q=S.reduce((function(e,t){return h.getLineSegment(e,t,A)}),{temp:[],temp2:[],pathMap:{},path2Map:{},pointsJoined:0,lastValidValue:!1,getPathArr:y,pathCount:0})).pathCount,Q.path2Map[u]&&Q.path2Map[u][Q.path2Map[u].length-1]!==v&&Q.pointsJoined>0&&a!==d&&Q.path2Map[u].push(v),Q},A._removeDataVisuals=function(e){var t,A,n,i,r=this.components.pool||(this.components.pool={});if(e)for(A in n=e.graphics)t=r[A]||(r[A]=[]),(i=n[A])&&i.hide&&"function"==typeof i.hide&&(i.attr({"text-bound":[]}),i.hide(),i.shadow&&i.shadow(!1)),t.push(n[A])},A._parseAnchorProperties=function(e,t){var A,n,i,r=this.config,a=this.getName(),s=this.getFromEnv("chart"),l=s.config.anchoralpha,c=this.components.data[e],u=c&&c.config,h=!s.config.anchoralpha&&/area/gi.test(a)?0:1,g=r.JSONData,p=s.getFromEnv("dataSource").chart,f=(t||g.data||[])[e]||{},m={};return n=(0,o.pluck)(f.anchorstartangle,g.anchorstartangle,p.anchorstartangle,f.anchorimagealpha,g.anchorimagealpha,p.anchorimagealpha,f.anchorimagescale,g.anchorimagescale,p.anchorimagescale,f.anchorimagepadding,g.anchorimagepadding,p.anchorimagepadding,f.anchorimageurl,g.anchorimageurl,p.anchorimageurl,f.anchorradius,g.anchorradius,p.anchorradius,f.anchorbgcolor,g.anchorbgcolor,p.anchorbgcolor,f.anchorbordercolor,g.anchorbordercolor,p.anchorbordercolor,f.anchoralpha,g.anchoralpha,p.anchoralpha,f.anchorsides,g.anchorsides,p.anchorsides,f.anchorborderthickness,g.anchorborderthickness,p.anchorborderthickness,d)!==d,i=(0,o.pluckNumber)(f.drawanchors,r.drawanchors),m.enabled=n?(0,o.pluckNumber)(i,n):(0,o.pluckNumber)(i,h),m.startAngle=(0,o.pluckNumber)(f.anchorstartangle,r.anchorstartangle),m.imageAlpha=(0,o.pluckNumber)("inherit"===f.anchorimagealpha?u.alpha:f.anchorimagealpha,"inherit"===g.anchorimagealpha?u.alpha:g.anchorimagealpha,"inherit"===p.anchorimagealpha?u.alpha:p.anchorimagealpha,r.anchorimagealpha),m.imageScale=(0,o.pluckNumber)(f.anchorimagescale,r.anchorimagescale),m.imagePadding=(0,o.pluckNumber)(f.anchorimagepadding,r.anchorimagepadding),m.imagePadding<0&&(m.imagePadding=0),m.imageUrl=(0,o.pluck)(f.anchorimageurl,r.anchorimageurl),m.imageUrl&&r.imageCount++,m.radius=m.enabled?(0,o.pluckNumber)(f.anchorradius,r.anchorradius):0,m.isAnchorRadius=(0,o.pluck)(f.anchorradius,g.anchorradius,p.anchorradius),m.bgColor=(0,o.pluck)("inherit"===f.anchorbgcolor?u.color:f.anchorbgcolor,"inherit"===g.anchorbgcolor?u.color:g.anchorbgcolor,"inherit"===p.anchorbgcolor?u.color:r.anchorbgcolor),l=m.enabled?(0,o.getFirstAlpha)((0,o.pluck)("inherit"===f.anchoralpha?u.alpha:f.anchoralpha,"inherit"===g.anchoralpha?u.alpha:g.anchoralpha,"inherit"===p.anchoralpha?u.alpha:p.anchoralpha,r.anchoralpha,m.enabled?o.HUNDREDSTRING:"0")):0,m.anchorAlpha=l,m.anchorBgAlpha=(0,o.pluckNumber)("inherit"===f.anchorbgalpha?u.alpha:f.anchorbgalpha,"inherit"===g.anchorbgalpha?u.alpha:g.anchorbgalpha,"inherit"===p.anchorbgalpha?u.alpha:p.anchorbgalpha,r.anchorbgalpha,l),m.bgAlpha=(0,o.getFirstAlpha)(m.anchorBgAlpha)*l/100,m.imageAlpha=m.imageAlpha*l/100,m.borderColor=(0,o.pluck)("inherit"===f.anchorbordercolor?u.color:f.anchorbordercolor,"inherit"===g.anchorbordercolor?u.color:g.anchorbordercolor,"inherit"===p.anchorbordercolor?u.color:r.anchorbordercolor),m.borderAlpha=l,m.sides=(0,o.pluck)(f.anchorsides,r.anchorsides),m.borderThickness=(0,o.pluck)(f.anchorborderthickness,r.anchorborderthickness),m.symbol=(0,o.mapSymbolName)(m.sides).split("_"),A=(0,o.pluckNumber)(f.anchorshadow,r.anchorshadow)&&m.radius>=1,m.shadow={opacity:A?l/100:0},m},A._hideGraphics=function(e){var t,A;for(A in e)if(e.hasOwnProperty(A)){if(!(t=e[A]))continue;t.hide?t.hide():this._hideGraphics(t)}},A._parseHoverEffectOptions=function(e,t){var A=t,n=this.config.JSONData,i=this.getFromEnv("chart"),r=i.getFromEnv("dataSource").chart,a=i.config,s=e.config,l=this.config,c=s.anchorProps||{},u=a.plothovereffect,h=l.drawanchors,g={enabled:!1};return A=A||{},0!==u&&0!==h&&(g.enabled=(0,o.pluck)(A.hovercolor,A.anchorhovercolor,A.hovercolor,n.hovercolor,A.anchorbghovercolor,n.anchorbghovercolor,r.anchorbghovercolor,n.anchorhovercolor,r.anchorhovercolor,A.hoveralpha,A.anchorhoveralpha,n.anchorhoveralpha,r.anchorhoveralpha,A.bghoveralpha,A.anchorbghoveralpha,n.anchorbghoveralpha,r.anchorbghoveralpha,A.anchorborderhovercolor,A.borderhovercolor,n.anchorborderhovercolor,r.anchorborderhovercolor,A.anchorborderhoverthickness,A.borderhoverthickness,n.anchorborderhoverthickness,r.anchorborderhoverthickness,A.anchorborderhoveralpha,A.borderhoveralpha,n.anchorborderhoveralpha,r.anchorborderhoveralpha,A.hoverdip,A.anchorhoverdip,n.anchorhoverdip,r.anchorhoverdip,A.anchorhoverstartangle,n.anchorhoverstartangle,r.anchorhoverstartangle,A.hoversides,A.anchorhoversides,n.anchorhoversides,r.anchorhoversides,A.hoverradius,A.anchorhoverradius,n.anchorhoverradius,r.anchorhoverradius,n.plotfillhovercolor,r.plotfillhovercolor,a.plothovereffect,d)!==d,g.startAngle=(0,o.pluckNumber)(A.anchorhoverstartangle,n.anchorhoverstartangle,r.anchorhoverstartangle,c.startAngle),g.hoverColor=(0,o.pluck)(A.hovercolor,A.anchorhovercolor,n.hovercolor,A.anchorbghovercolor,n.anchorbghovercolor,r.anchorbghovercolor,n.anchorhovercolor,r.anchorhovercolor,r.plotfillhovercolor),g.hoverAlpha=(0,o.pluck)(A.hoveralpha,A.anchorhoveralpha,n.anchorhoveralpha,r.anchorhoveralpha,A.bghoveralpha,A.anchorbghoveralpha,n.anchorbghoveralpha,r.anchorbghoveralpha,n.hoveralpha,r.plotfillhoveralpha),g.anchorSides=(0,o.pluckNumber)(A.hoversides,A.anchorhoversides,n.anchorhoversides,r.anchorhoversides,c.sides),g.anchorRadius=(0,o.pluckNumber)(A.anchorhoverradius,n.anchorhoverradius,r.anchorhoverradius),g.isAnchorHoverRadius=g.anchorRadius,g.anchorRadius=(0,o.pluckNumber)(g.anchorRadius,c.radius+(u?2:0)),g.anchorScale=(0,o.pluck)(A.hoverscale,n.anchorscale,r.anchorscale),g.imageHoverScale=(0,o.pluckNumber)(A.anchorimagehoverScale,n.anchorimagehoverscale,r.anchorimagehoverscale,110),g.imageHoverAlpha=(0,o.pluckNumber)(A.anchorimagehoveralpha,n.anchorimaghoverealpha,r.anchorimagehoveralpha),g.anchorAlpha=(0,o.pluck)(A.anchorhoveralpha,A.hoveralpha,n.anchorhoveralpha,r.anchorhoveralpha,c.anchorAlpha),g.anchorColor=(0,o.getFirstColor)((0,o.pluck)(A.hovercolor,A.anchorhovercolor,A.hoverColor,A.anchorbghovercolor,n.anchorbghovercolor,n.anchorhovercolor,n.hovercolor,r.anchorbghovercolor,r.anchorhovercolor,r.plotfillhovercolor,c.bgColor)),g.anchorBgAlpha=(0,o.pluck)(A.bghoveralpha,A.anchorbghoveralpha,n.anchorbghoveralpha,r.anchorbghoveralpha,r.plotfillhoveralpha,c.bgAlpha),g.anchorBgAlpha=g.anchorBgAlpha*g.anchorAlpha/100,g.anchorBorderColor=(0,o.pluck)(A.borderhovercolor,A.anchorborderhovercolor,n.anchorborderhovercolor,r.anchorborderhovercolor,c.borderColor),g.anchorBorderAlpha=(0,o.pluck)(A.borderhoveralpha,A.anchorborderhoveralpha,n.anchorborderhoveralpha,r.anchorborderhoveralpha,g.anchorAlpha,c.borderAlpha),g.anchorBorderThickness=(0,o.pluckNumber)(A.borderhoverthickness,A.anchorborderhoverthickness,n.anchorborderhoverthickness,r.anchorborderhoverthickness,r.anchorBorderThickness,c.borderThickness),g.dip=(0,o.pluck)(A.hoverdip,A.anchorhoverdip,n.anchorhoverdip,r.anchorhoverdip,c.dip),g.anchorAnimation=(0,o.pluckNumber)(A.anchorhoveranimation,n.anchorhoveranimation,r.anchorhoveranimation,1)),g},A._hoverPlotAnchor=function(e,t){var A,n,i,r,a,o=this.getFromEnv("smartLabel"),s=this.getFromEnv("chart").getChildren("canvas")[0].getEffectiveDimensions(),l=s.top,c=l+s.height,u=e.config._Py,h=this.getFromEnv("animationManager"),d=this.getGraphicalElement("sharedAnchor"),m=e.graphics.element||d,v=e.graphics.label,b=e.config||{},B=b.anchorProps.anchorAlpha,y=b&&b.anchorProps.imageUrl,x=g&&y?e.graphics.element:e.graphics.image,F="image"===m.type,E=m.data("anchorRadius"),S=m.data("anchorHoverRadius"),Q=m.data(C)||{},k=m.data(w)||{},L=v&&(v.data("isBelow")?1:-1)*(F?.5*(Q.height-k.height):S-E),U=t===p?Q:k,I=!0,T={path:U.path},N={fill:U.fill,"stroke-width":U["stroke-width"],stroke:U.stroke},D=v&&v.data("rotation")||"";u-3*(A=o.getOriSize(b.displayValue).height)/2+L<l?L=l-u+3*A/2:u+3*A/2+L>c&&(L=c-u-3*A/2),a={transform:"T0,"+(t===p?L:0)+D},h.setAnimationState(t===p?"mouseOver":"mouseOut"),x&&(i=x.data(C),r=x.data(w),(n=t===p?i:r).alpha*=.01),F?T.alpha*=.01:Object.assign(T,N),(t===p&&!S||t===f&&!E)&&(I=!1),h.setAnimation({el:m,label:"anchor",component:this,doNotRemove:!0,callback:function(){!I&&m.hide()},attr:I&&T}),I&&m.show(),x&&(h.setAnimation({el:x,label:"anchor",component:this,attr:I&&n}),I&&x.show()),(e.graphics&&e.graphics.element||d&&d.element)&&B&&v&&h.setAnimation({el:v,label:"label",component:this,doNotRemove:!0,attr:a})},A.drawLabel=function(e,t){var A,n,i,r,a,s,l,c,u,h,g,p,f=this.config,m=this.getFromEnv("chart"),v=m.config,b=this.getFromEnv("smartLabel"),B=m.config.dataLabelStyle,C=this.getFromEnv("toolTipController"),w=this.components.data,y=this.getFromEnv("paper"),F=this.getFromEnv("animationManager"),E="",S=v.rotatevalues?270:0,Q=this.getContainer("labelGroup"),k=this.getState("visible"),L=w.length,U=this.getSkippingInfo&&this.getSkippingInfo(),I=U&&U.skippingApplied,T=U&&U.labelDraw||[],N=T.length,D=(0,o.pluckNumber)(e,0),P=(0,o.pluckNumber)(t,I?N:L),M=N===Math.abs(P-(D+1));for(l={"font-weight":B.fontWeight,"font-style":B.fontStyle,"font-family":B.fontFamily,"font-size":B.fontSize,"line-height":B.lineHeight},b.setStyle(l),u=D;u<P;u++)h=(r=(c=w[I&&M?T[u]:u])&&c.config)&&r.setValue,c!==d&&h!==d&&null!==h&&!0!==r.labelSkip?(A=c.graphics,E=r.displayValue,a=r.showValue,s=A.label,g=r.props.label.attr,x(E)&&a&&k?(i=r.props.label.attr.x,n=r.props.label.attr.y,g.transform=y.getSuggestiveRotation(S,i,n),A.label=s=F.setAnimation({el:s||"text",container:Q,component:this,attr:g,label:"label"}),s.data("isBelow",r._valueBelowPoint),s.data("rotation",g.transform),s&&s.outlineText(f.showTextOutline,g.fill),v.showtooltip&&s.abbrArr&&s.abbrArr.length&&C.enableToolTip(s,d)):s&&(A.label=F.setAnimation({el:s,component:this,label:"label"}))):(r&&delete r.labelSkip,(p=c&&c.graphics)&&p.label&&(p.label=F.setAnimation({el:p.label,component:this})))},A.getAxisValuePadding=function(){return this.config.defaultPadding},A._hoverFunc=function(e,t,A,n){if(A)return this._hoverPlotAnchor(e,t,n)},A._onAnchorImageLoad=function(e){var t=this;return function(){var A=e._index;k(t,e),t.config.drawn?t.drawLabel(A,A+1):t.addJob("labelUpdateOnImageLoadID"+A,(function(){t.drawLabel(A,A+1)}),s.priorityList.label)}},t}(a["default"]);t["default"]=L},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n=function(e){var t=e.component,A=t.components.data,n=t.getFromEnv("chartConfig").isstacked,i=t.getLinePath(A).getPathArr("detailed").bottom,r=t.getState("_total"),a=t.config._childIndex;if(i.length&&Array.isArray(i[0])){var o=i.length;i[0]=Object.assign([],i[1]),i[0][0]="M",i[o-1]=Object.assign([],i[o-2])}return[{initialAttr:{opacity:0,path:i},finalAttr:{opacity:1,path:e.attr.path},startEnd:{start:n?.5/r*a:0,end:n?.5/r*(a+1):.5},slot:"plot",hookFn:function(){this.attr({opacity:1})}}]},i=function(e){var t=e.component,A=t.components.data,n=t.getFromEnv("chartConfig").isstacked,i=t.getFromEnv("chartConfig").is3D,r=t.getLinePath(A,null,n||i?"base":"zero").getPathArr("top"),a=e.attr,o=t.getState("_total"),s=t.config._childIndex;return[{initialAttr:{opacity:0,path:r},finalAttr:{opacity:1,path:a.path},startEnd:{start:n?.5/o*s:0,end:n?.5/o*(s+1):.5},slot:"plot",hookFn:function(){this.attr({opacity:1})}}]},r=function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]},a=function(e){return"label-group"===e.attr.name?[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]:"plot-group"===e.attr.name?[{initialAttr:{opacity:0},finalAttr:{opacity:1},startEnd:{start:.5,end:1},slot:"plot"}]:[{initialAttr:{opacity:1},finalAttr:{opacity:1},slot:"final"}]},o=function(e){var t=e.component,A=t.components.data,n=t.getFromEnv("chartConfig").isstacked,i=t.getFromEnv("chartConfig").is3D,r=t.getLinePath(A,null,n||i?"base":"zero"),a=e.attr,o=t.getState("_total"),s=t.config._childIndex;return[{initialAttr:{opacity:0,path:r.getPathArr()},finalAttr:{opacity:1,path:a.path},startEnd:{start:n?.5/o*s:0,end:n?.5/o*(s+1):.5},slot:"plot",hookFn:function(){this.attr({opacity:1})}}]},s={"*.dataset.area":function(){return{"anchor.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},startEnd:{start:.5,end:1},slot:"plot"}],"anchor.updating":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}],"anchor.disappearing":[{finalAttr:{opacity:0,"fill-opacity":0,"stroke-opacity":0},slot:"final"}],"line.appearing":o,"topBorderPath.appearing":i,"bottomPath.appearing":n,"label.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}],"label.updating":r,"group.appearing":a,"*":null}}};t["default"]=s},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"*.dataset.line":function(){var e=this.getClip("canvas"),t=this.getClip("init");return{"anchor.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]},"anchor.updating":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"plot"}]},"anchor.disappearing":function(){return[{finalAttr:{opacity:0,"fill-opacity":0,"stroke-opacity":0},slot:"plot"}]},"line.appearing":function(){return[{initialAttr:{"clip-rect":t},finalAttr:{"clip-rect":e},slot:"middle",callback:function(){this.attr({"clip-rect":null})}}]},"line.updating":function(){return[{initialAttr:{opacity:1,"clip-rect":t},finalAttr:{opacity:1,"clip-rect":e},slot:"plot"}]},"label.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}],"group.appearing":function(e){return"label-group"===e.attr.name?[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]:"plot-group"===e.attr.name?[{initialAttr:{opacity:0},finalAttr:{opacity:1},startEnd:{start:.5,end:1},slot:"plot"}]:[{initialAttr:{opacity:1},finalAttr:{opacity:1},slot:"final"}]},"*":null}}}},,,,,,function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t.__feedAxesRawData=l,t.__spaceManager=c,t.__postSpaceManagement=u,t["default"]=void 0;var i=n(A(268)),r=n(A(599)),a=n(A(572)),o=A(254),s=n(A(396));function l(){var e,t,A=this.config,n=this.getFromEnv("color-manager"),i=this.getFromEnv("dataSource"),r=i.chart,a=this.config.is3D,l=a?o.chartPaletteStr.chart3D:o.chartPaletteStr.chart2D,c=(0,o.pluckFontSizeMaintainUnit)(r.outcnvbasefontsize,r.basefontsize,10);return e={isVertical:!0,isReverse:!1,isOpposit:(0,s["default"])(r.xaxisposition,"right"),outCanfontFamily:(0,o.pluck)(r.outcnvbasefont,r.basefont,"Verdana,sans"),outCanfontSize:this.computeFontSize(c),outCanfontSizeWithUnit:c,outCancolor:(0,o.pluck)(r.outcnvbasefontcolor,r.basefontcolor,n.getColor(l.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),axisNamePadding:r.xaxisnamepadding,maxLabelWidthPercent:r.maxlabelwidthpercent,minLabelWidthPercent:r.minlabelwidthpercent,axisValuePadding:r.labelpadding,axisNameFont:r.xaxisnamefont,axisNameFontSize:this.computeFontSize(r.xaxisnamefontsize),axisNameFontSizeWithUnit:r.xaxisnamefontsize,axisNameFontColor:r.xaxisnamefontcolor,axisNameFontBold:r.xaxisnamefontbold,axisNameFontItalic:r.xaxisnamefontitalic,axisNameBgColor:r.xaxisnamebgcolor,axisNameBorderColor:r.xaxisnamebordercolor,axisNameAlpha:r.xaxisnamealpha,axisNameFontAlpha:r.xaxisnamefontalpha,axisNameBgAlpha:r.xaxisnamebgalpha,axisNameBorderAlpha:r.xaxisnameborderalpha,axisNameBorderPadding:r.xaxisnameborderpadding,axisNameBorderRadius:r.xaxisnameborderradius,axisNameBorderThickness:r.xaxisnameborderthickness,axisNameBorderDashed:r.xaxisnameborderdashed,axisNameBorderDashLen:r.xaxisnameborderdashlen,axisNameBorderDashGap:r.xaxisnameborderdashgap,axisNameWidth:r.xaxisnamewidth,useEllipsesWhenOverflow:r.useellipseswhenoverflow,divLineColor:(0,o.pluck)(r.vdivlinecolor,r.divlinecolor,n.getColor(l.divLineColor)),divLineAlpha:(0,o.pluck)(r.vdivlinealpha,r.divlinealpha,a?n.getColor("divLineAlpha3D"):n.getColor("divLineAlpha")),divLineThickness:(0,o.pluckNumber)(r.vdivlinethickness,r.divlinethickness,1),divLineIsDashed:Boolean((0,o.pluckNumber)(r.vdivlinedashed,r.vdivlineisdashed,r.divlinedashed,r.divlineisdashed,0)),divLineDashLen:(0,o.pluckNumber)(r.vdivlinedashlen,r.divlinedashlen,4),divLineDashGap:(0,o.pluckNumber)(r.vdivlinedashgap,r.divlinedashgap,2),showAlternateGridColor:0,alternateGridColor:(0,o.pluck)(r.alternatehgridcolor,n.getColor("altHGridColor")),alternateGridAlpha:(0,o.pluck)(r.alternatehgridalpha,n.getColor("altHGridAlpha")),numDivLines:r.numvdivlines,labelFont:r.labelfont,labelFontSize:this.computeFontSize(r.labelfontsize),labelFontSizeWithUnit:r.labelfontsize,labelFontColor:r.labelfontcolor,labelAlpha:r.labelalpha,labelFontBold:r.labelfontbold,labelFontItalic:r.labelfontitalic,labelBdrColor:r.labelbordercolor,labelBdrAlpha:r.labelborderalpha,labelLink:r.labellink,labelBgColor:r.labelbgcolor,labelBgAlpha:r.labelbgalpha,labelBdrThickness:r.labelborderthickness,labelBdrPadding:r.labelborderpadding,labelBdrRadius:r.labelborderradius,labelBdrDashed:r.labelborderdashed,labelBdrDashLen:r.labelborderdashlen,labelBdrDashGap:r.labelborderdashgap,axisName:r.xaxisname,axisMinValue:r.xaxisminvalue,axisMaxValue:r.xaxismaxvalue,setAdaptiveMin:r.setadaptivexmin,adjustDiv:r.adjustvdiv,labelDisplay:r.labeldisplay,showLabels:r.showlabels,rotateLabels:r.rotatelabels,slantLabel:(0,o.pluckNumber)(r.slantlabels,r.slantlabel),labelStep:(0,o.pluckNumber)(r.labelstep,r.xaxisvaluesstep),showAxisValues:(0,o.pluckNumber)(r.showxaxisvalues,r.showxaxisvalue),showLimits:r.showvlimits,showDivLineValues:(0,o.pluckNumber)(r.showvdivlinevalues,r.showvdivlinevalues),zeroPlaneColor:r.vzeroplanecolor,zeroPlaneThickness:(0,o.pluckNumber)(r.vzeroplanethickness,r.vdivlinethickness,2),zeroPlaneAlpha:(0,o.pluckNumber)(r.vzeroplanealpha,r.vdivlinealpha,A.zeroplanealpha),showZeroPlaneValue:r.showvzeroplanevalue,trendlineColor:r.trendlinecolor,trendlineToolText:r.trendlinetooltext,trendlineThickness:r.trendlinethickness,rotateAxisName:(0,o.pluckNumber)(r.rotatexaxisname,1),trendlineAlpha:r.trendlinealpha,showTrendlinesOnTop:r.showtrendlinesontop,showAxisLine:a?0:(0,o.pluckNumber)(r.showxaxisline,r.showaxislines,r.drawAxisLines,0),axisLineThickness:(0,o.pluckNumber)(r.xaxislinethickness,r.axislinethickness,1),axisLineAlpha:(0,o.pluckNumber)(r.xaxislinealpha,r.axislinealpha,100),axisLineColor:(0,o.pluck)(r.xaxislinecolor,r.axislinecolor,"#000000")},(t={isVertical:!1,isReverse:!1,isOpposit:(0,s["default"])(r.yaxisposition,"top"),outCanfontFamily:(0,o.pluck)(r.outcnvbasefont,r.basefont,"Verdana,sans"),outCanfontSize:c,outCanfontSizeWithUnit:c,outCancolor:(0,o.pluck)(r.outcnvbasefontcolor,r.basefontcolor,n.getColor(l.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),axisNamePadding:r.yaxisnamepadding,axisValuePadding:r.yaxisvaluespadding,axisNameFont:r.yaxisnamefont,axisNameFontSize:this.computeFontSize(r.yaxisnamefontsize),axisNameFontSizeWithUnit:r.yaxisnamefontsize,axisNameFontColor:r.yaxisnamefontcolor,axisNameFontBold:r.yaxisnamefontbold,axisNameFontItalic:r.yaxisnamefontitalic,axisNameBgColor:r.yaxisnamebgcolor,axisNameBorderColor:r.yaxisnamebordercolor,axisNameAlpha:r.yaxisnamealpha,axisNameFontAlpha:r.yaxisnamefontalpha,axisNameBgAlpha:r.yaxisnamebgalpha,axisNameBorderAlpha:r.yaxisnameborderalpha,axisNameBorderPadding:r.yaxisnameborderpadding,axisNameBorderRadius:r.yaxisnameborderradius,axisNameBorderThickness:r.yaxisnameborderthickness,axisNameBorderDashed:r.yaxisnameborderdashed,axisNameBorderDashLen:r.yaxisnameborderdashlen,axisNameBorderDashGap:r.yaxisnameborderdashgap,axisNameWidth:r.yaxisnamewidth,useEllipsesWhenOverflow:r.useellipseswhenoverflow,axisName:r.yaxisname,divLineColor:(0,o.pluck)(r.divlinecolor,n.getColor(l.divLineColor)),divLineAlpha:(0,o.pluck)(r.divlinealpha,a?n.getColor("divLineAlpha3D"):n.getColor("divLineAlpha")),divLineThickness:(0,o.pluckNumber)(r.divlinethickness,1),divLineIsDashed:Boolean((0,o.pluckNumber)(r.divlinedashed,r.divlineisdashed,0)),divLineDashLen:(0,o.pluckNumber)(r.divlinedashlen,4),divLineDashGap:(0,o.pluckNumber)(r.divlinedashgap,2),showAlternateGridColor:(0,o.pluckNumber)(r.showalternatevgridcolor,1),alternateGridColor:(0,o.pluck)(r.alternatevgridcolor,n.getColor("altVGridColor")),alternateGridAlpha:(0,o.pluck)(r.alternatevgridalpha,n.getColor("altVGridAlpha")),numDivLines:r.numdivlines,axisMinValue:r.yaxisminvalue,axisMaxValue:r.yaxismaxvalue,setAdaptiveMin:r.setadaptiveymin,adjustDiv:r.adjustdiv,labelStep:r.yaxisvaluesstep,showAxisValues:(0,o.pluckNumber)(r.showyaxisvalues,r.showyaxisvalue),showLimits:(0,o.pluckNumber)(r.showyaxislimits,r.showlimits,this.showLimits),showDivLineValues:(0,o.pluckNumber)(r.showdivlinevalues,r.showdivlinevalue),zeroPlaneColor:r.zeroplanecolor,zeroPlaneThickness:(0,o.pluckNumber)(r.zeroplanethickness,r.divlinethickness,2),zeroPlaneAlpha:(0,o.pluckNumber)(r.zeroplanealpha,r.divlinealpha,A.zeroplanealpha),showZeroPlaneValue:r.showzeroplanevalue,trendlineColor:r.trendlinecolor,trendlineToolText:r.trendlinetooltext,trendlineThickness:r.trendlinethickness,trendlineAlpha:r.trendlinealpha,isTrendZone:0,showTrendlinesOnTop:r.showtrendlinesontop,showAxisLine:a?0:(0,o.pluckNumber)(r.showyaxisline,r.showaxislines,r.drawAxisLines,0),axisLineThickness:(0,o.pluckNumber)(r.yaxislinethickness,r.axislinethickness,1),axisLineAlpha:(0,o.pluckNumber)(r.yaxislinealpha,r.axislinealpha,100),axisLineColor:(0,o.pluck)(r.yaxislinecolor,r.axislinecolor,"#000000"),numberFormatterFn:"yAxis",showZeroPlaneOnTop:A.showzeroplaneontop,forceTrendBelow:!!A.is3D,labelFont:r.yaxisvaluefont,labelFontSize:this.computeFontSize(r.yaxisvaluefontsize),labelFontSizeWithUnit:r.yaxisvaluefontsize,labelFontColor:r.yaxisvaluefontcolor,labelAlpha:r.yaxisvaluealpha,labelFontBold:r.yaxisvaluefontbold,labelFontItalic:r.yaxisvaluefontitalic,labelBdrColor:r.yaxisvaluebordercolor,labelBdrAlpha:r.yaxisvalueborderalpha,labelBgAlpha:r.yaxisvaluebgalpha,labelLink:r.yaxisvaluelink,labelBgColor:r.yaxisvaluebgcolor,labelBdrThickness:r.yaxisvalueborderthickness,labelBdrPadding:r.yaxisvalueborderpadding,labelBdrRadius:r.yaxisvalueborderradius,labelBdrDashed:r.yaxisvalueborderdashed,labelBdrDashLen:r.yaxisvalueborderdashlen,labelBdrDashGap:r.yaxisvalueborderdashgap}).vtrendlines=i.trendlines,e.trendlines=i.vtrendlines,A.isstacked&&(t.isPercent=(0,o.pluckNumber)(A.stack100percent,0),t.isPercent&&delete t.numberFormatterFn),{xAxisConf:[e],yAxisConf:[t]}}function c(){var e,t,A,n,i,r,a,s,l,c,u,h,d,g,p,f,m,v,b,B=this.config,C=this.getChildren(),w=C.yAxis&&C.yAxis[0],y=C.xAxis&&C.xAxis||[],x=o.preDefStr.POSITION_BOTTOM,F=o.preDefStr.POSITION_TOP,E=B.legendposition?B.legendposition.split("-"):[],S=B.xDepth,Q=B.yDepth,k=C.canvas[0],L=B.canvasBgDepth,U=B.canvasBaseDepth,I=B.canvasBasePadding,T=C.canvas[0].config.canvasBorderWidth,N=B.realTimeConfig&&B.realTimeConfig.showRTValue,D=B.borderWidth,P=B.canvasMarginTop,M=B.canvasMarginBottom,O=B.canvasMarginLeft,H=B.canvasMarginRight,_=B.minCanvasHeight,R=B.minCanvasWidth,V=B.minChartWidth,G=B.minChartHeight,K=B.height,z=B.width,W=!1,j=!1,X=B.origCanvasTopMargin,Y=B.origCanvasBottomMargin,J=B.origCanvasLeftMargin,q=B.origCanvasRightMargin;B.canvasWidth-2*D<V&&(h=(B.canvasWidth-V)/2),B.canvasHeight-2*D<G&&(u=(B.canvasHeight-G)/2),this._allocateSpace({top:u||D,bottom:u||D,left:h||D,right:h||D}),A=y[0],this._resetViewPortConfig&&this._resetViewPortConfig(),this._setAxisScale&&this._setAxisScale(),e=.7*B.availableWidth,this._calculateChartShift("yAxis"),B.yAxisSpaceAllocation=m=A&&A.placeAxis(e),A&&this._allocateSpace(m),p=.225*B.availableHeight,g=this._manageActionBarSpace&&this._manageActionBarSpace(p)||{},this._allocateSpace(g),this._manageLegendSpace&&this._manageLegendSpace(),t=E[0]===x||E[0]===F?.6*B.availableHeight:.6*B.availableWidth,Q&&(this._allocateSpace({left:Q}),B.shift=S+I+U),L&&this._allocateSpace({top:L}),B.canvasWidth-2*T<R&&(f=(B.canvasWidth-R)/2),this._allocateSpace({left:f||T,right:f||T}),R>z-O-H&&(j=!0,n=B.canvasWidth-R,b=O+H,O=B.canvasMarginLeft=n*O/b,H=B.canvasMarginRight=n*H/b),a=O>B.canvasLeft?O-B.canvasLeft:0,s=H>z-B.canvasRight?H+B.canvasRight-z:0,this._allocateSpace({left:a,right:s}),this._allocateSpace({left:U}),j&&(b=J+q,(c=B.canvasWidth)>R&&(a=(n=c-R)*J/b,s=n*q/b),this._allocateSpace({left:a,right:s})),B.actualCanvasMarginRight=s,B.actualCanvasMarginBottom=r,this._manageChartMenuBar(t),t=.2*B.availableHeight,B.sumValueSpace=this._getSumValueSpace(t),this._allocateSpace(B.sumValueSpace),t=.3*B.availableHeight,B.realtimeEnabled&&(N?this._allocateSpace(this._realTimeValuePositioning(t)):this._hideRealTimeValue()),t=.6*B.availableHeight,this._calculateChartShift("xAxis"),B.xAxisSpaceAllocation=v=w&&w.placeAxis(t),w&&this._allocateSpace(v),t=.3*B.availableHeight,this._manageScrollbarPosition&&this._manageScrollbarPosition(t),B.canvasHeight-2*T<_&&(d=(B.canvasHeight-_)/2),this._allocateSpace({top:d||T,bottom:d||T}),_>K-P-M&&(W=!0,n=B.canvasHeight-_,b=P+M,P=B.canvasMarginTop=n*P/b,M=B.canvasMarginBottom=n*M/b),i=P>B.canvasTop?P-B.canvasTop:0,r=M>K-B.canvasBottom?M+B.canvasBottom-K:0,this._allocateSpace({top:i,bottom:r}),W&&(b=X+Y,(l=B.canvasHeight)>_&&(i=(n=l-_)*X/b,r=n*Y/b),this._allocateSpace({top:i,bottom:r})),B.actualCanvasMarginTop=i,B.actualCanvasMarginLeft=a,k.setDimension({top:B.canvasTop,left:B.canvasLeft,width:B.canvasWidth,height:B.canvasHeight})}function u(){var e,t,A,n,i=this.config,r=this.getChildren(),a=r.xAxis&&r.xAxis[0],o=r.yAxis&&r.yAxis[0],s=r.scrollBar&&r.scrollBar[0]&&r.scrollBar[0].config,l=r.legend&&r.legend[0],c=i.xDepth||0,u=r.canvas[0].config,h=u.canvasBorderWidth,d=u.canvasPadding,g=u.canvasTop,p=u.canvasLeft,f=g-h,m=g+u.canvasHeight+h,v=p-(i.shift||0)-h,b=p+u.canvasWidth+h+i.sumValueSpace.right;o&&this._allocateXAxisLabelSpace(o),e=u.canvasPaddingLeft,t=u.canvasPaddingRight,A=u.canvasPaddingTop,n=u.canvasPaddingBottom,o&&o.setAxisDimention({x:u.canvasLeft+e,y:o.config.isOpposit?f:m,opposite:o.config.isOpposit?m:f,axisLength:u.canvasWidth-e-t}),a&&a.setAxisDimention({x:(a.config.isOpposit?b:v)+(this.isScrollEnabled()&&s.isOpposite&&i.shift||0),y:g+c+Math.max(A,d),opposite:a.config.isOpposit?v:b,axisLength:u.canvasHeight-c-Math.max(A,d)-Math.max(n,d)}),l&&l.postSpaceManager(),this.allocateDimensionOfChartMenuBar()}var h=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var A=t.prototype;return A.getName=function(){return"MSBarCartesian"},t.getName=function(){return"MSBarCartesian"},A.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.enablemousetracking=!0},A._feedAxesRawData=function(){return l.call(this)},A._spaceManager=function(){c.call(this)},A._postSpaceManagement=function(){u.call(this)},A.getDSdef=function(){return a["default"]},A.getDSGroupdef=function(){},t}(r["default"]);t["default"]=h},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=n(A(496)),a=A(600),o=n(A(601)),s=n(A(602)),l=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("dataset",o["default"],["vCanvas"]),t.registerFactory("legend",s["default"]),t}(0,i["default"])(t,e),t.getName=function(){return"MSCartesian"};var A=t.prototype;return A.getName=function(){return"MSCartesian"},A.getType=function(){return"chartAPI"},A._manageLegendSpace=function(){a._manageLegendSpace.call(this)},A.manageGradientLegendSpace=function(e){return a.manageGradientLegendSpace.call(this,e)},t}(r["default"]);t["default"]=l},function(e,t,A){"use strict";t.__esModule=!0,t._manageLegendSpace=function(){var e,t,A,i,r=this.config,a=this.getChildren("legend")&&this.getChildren("legend")[0],o=this.getChildren("gLegend")&&this.getChildren("gLegend")[0],s=this.getFromEnv("dataSource").colorrange,l=r.hasLegend,c={},u=this.hasGradientLegend,h=this.getFromEnv("dataSource").chart,d=(0,n.pluckNumber)(h.mapbycategory,0);u&&s&&(0,n.pluckNumber)(s.gradient)&&!d?(e=o.conf,u=!0,r.gLegendEnabled=!0,t=e.legendPosition?e.legendPosition.split("-"):[],i=t[0]===n.POSITION_RIGHT||t[0]===n.POSITION_LEFT?.4:.5):(e=a&&a.config,u=!1,r.gLegendEnabled=!1,t=e&&e.legendPos?e.legendPos.split("-"):[n.POSITION_BOTTOM],i=t[0]===n.POSITION_RIGHT||t[0]===n.POSITION_LEFT?.8:.4);A=t[0]===n.POSITION_ABSOLUTE?.4*r.availableHeight:t[0]===n.POSITION_RIGHT||t[0]===n.POSITION_LEFT?r.availableWidth*i:r.availableHeight*i;u?c=this.manageGradientLegendSpace(A):!1!==l&&a&&!a.getState("removed")&&(c=a&&a._manageLegendPosition(A));c&&this._allocateSpace(c)},t.manageGradientLegendSpace=function(e){var t,A,i,r=this.config,a=this.getFromEnv("gLegend"),o=a&&a.conf,s={top:0,bottom:0,left:0,right:0};r.gLegendPadding=(0,n.pluckNumber)(this.getFromEnv("chart-attrib").legendpadding,10),A=Math.min(r.gLegendPadding,.5*e),o&&(t=o.legendPosition?o.legendPosition.split("-"):[],i=a.getLogicalSpace(e),t[0]===n.POSITION_BOTTOM?s.bottom=(i.height||0)+A:t[0]===n.POSITION_TOP?s.top=(i.height||0)+A:t[0]===n.POSITION_LEFT?s.left=(i.width||0)+A:t[0]!==n.POSITION_ABSOLUTE&&(s.right=(i.width||0)+A));return s};var n=A(254)},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=function(e){var t,A,i,r,a=e.getFromEnv("dataSource").dataset,o=e.getChildren().canvas[0],s=t=o.getChildren("vCanvas")[0],l=e.config.defaultDatasetType||"";if(!a)return void e.setChartMessage();(i=e.getDSGroupdef())&&((0,n.componentFactory)(t,i,"datasetGroup_"+l,1,[a]),r=t.getChildren("datasetGroup_"+l));r&&(s=r[0]),A=e.getDSdef(),(0,n.datasetFactory)(s,A,"dataset",a.length,a)};var n=A(254)},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=function(e){var t;(0,i.componentFactory)(e,r["default"],"legend"),(t=e.getChildren("legend")[0]).configure(),e.addToEnv("legend",t),e.config.showLegend||t.remove()};var i=A(254),r=n(A(603))},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(253)),r=n(A(272)),a=n(A(268)),o=A(254),s=A(270),l=n(A(604)),c=A(262),u=A(393),h=n(A(606)),d=A(266),g=A(607);function p(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,n)}return A}function f(e){for(var t=1;t<arguments.length;t++){var A=null!=arguments[t]?arguments[t]:{};t%2?p(Object(A),!0).forEach((function(t){(0,i["default"])(e,t,A[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(A)):p(Object(A)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(A,t))}))}return e}var m,v={left:o.POSITION_START,right:o.POSITION_END,center:o.POSITION_MIDDLE},b=Math,B=b.min,C=b.max,w=b.floor,y=b.ceil,x=o.preDefStr.NORMAL,F={fontWeight:{1:o.preDefStr.BOLD,0:x},fontStyle:{1:"italic",0:x},textDecoration:{1:"underline",0:o.preDefStr.noneStr}};(0,c.addDep)({name:"legendAnimation",type:"animationRule",extension:h["default"]});var E=function(e){return Array(e).fill()},S=function(e){function t(){var t;t=e.call(this)||this;var A=(0,r["default"])(t);return A._stateCosmetics={},A._legendState=[],A.dragDraw=function(){A.draw()},A.drawScroll=function(){A.createItemGroup(),A.createCaptionGroup()},A.config.handlers=function(e){var t,A;return{dragstart:function(){t=e.config.xL||e.config.xPos,A=e.config.yL||e.config.yPos},dragmove:function(n){var i,r,a=n.originalEvent.data[0],o=n.originalEvent.data[1],s=e.config,l=e.getFromEnv("chartConfig"),c=(s.borderWidth||0)+2;i=B(C(t+a,c),l.width-s.width-c),r=B(C(A+o,c),l.height-s.height-c),s.xPos=s.xL=i,s.yPos=s.yL=r,e.addJob("draw",e.dragDraw,d.priorityList&&d.priorityList.draw)}}}(A),t}(0,a["default"])(t,e);var A=t.prototype;return A.createItem=function(e){var t;return t=new l["default"],this.attachChild(t,"legendItem"),t.setLinkedItem("owner",e),t.addEventListener("mouseover",(function(){t.setLegendState("hover",!0)})),t.addEventListener("mouseout",(function(){t.removeLegendState("hover")})),t.getId()},A.getItem=function(e){var t=this.getChildren().legendItem;if(void 0===e)return!1;if(t)for(var A=0;A<t.length;A++)if(t[A].getId()===e)return t[A]},A.getSortedLegendItems=function(){var e,t,A=this.getChildren("legendItem")||[],n=this.config.reverselegend,i={},r=[];for(e=0,t=A.length;e<t;e++)void 0===A[e].config.index?i[t+e]=A[e]:i[A[e].config.index]=A[e];return Object.keys(i).sort((function(e,t){return n?t-e:e-t})).forEach((function(e){r.push(i[e])})),r},A.disposeItem=function(e){var t=this.getItem(e);t&&t.remove()},A.getName=function(){return"legend"},A.getType=function(){return"legend"},A.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.enabled=!0,t.symbolWidth=12,t.borderRadius=1,t.lastScrollPos=0,t.oriSymbolPadding=3,t.textPadding=4,t.scrollY=0,t.scrollX=0,t.backgroundColor="#ffffff",t.initialItemX=0,t.title={text:o.BLANKSTRING,x:0,y:0,padding:2},t.scroll={},t.horizontalScroll={},t.itemStyle={}},A.createLegendGroup=function(){var e,t=this.config,A=this.getFromEnv("chart"),n=A.config,i=this.getFromEnv("animationManager"),r=.5*(t.borderWidth||0)+2,a=this.getContainer("legendGroup");t.xL&&(t.xL=B(C(t.xL,r),n.width-t.width-r)),t.yL&&(t.yL=B(C(t.yL,r),n.height-t.height-r)),e=i.setAnimation({el:a||"group",attr:{name:"legendGroup",transform:["T",t.xL||t.xPos,t.yL||t.yPos]},container:A.getChildContainer("legendGroup"),component:this}),a||this.addContainer("legendGroup",e)},A.drawDualScrollRect=function(){var e=this.getGraphicalElement("dualScrollRect"),t=this.getGraphicalElement("scrollbarContainer"),A=this.getFromEnv("animationManager");this.config.scroll.enabled&&this.config.horizontalScroll.enabled?(e=A.setAnimation({el:e||"rect",attr:{x:this.config.width-12,y:this.config.height-12,height:12,width:12,fill:this.config.legendScrollBgColor,stroke:"none"},component:this,container:t}),e=this.addGraphicalElement("dualScrollRect",e)):e&&e.remove()},A.draw=function(){this.createLegendGroup(),this.drawLegendBox(),this.createItemGroup(),this.createCaptionGroup(),this.drawCaption(),this.createScrollGroup(),this.decideScroll(),this.drawDualScrollRect()},A.decideScroll=function(){var e=this.getFromEnv("chart-attrib"),t=!1;if(e.disablelegendscroll&&"1"===e.disablelegendscroll&&(t=!0),!t){var A=this.config,n=A.scroll.enabled,i=A.horizontalScroll.enabled;n?this.createScrollBar():A.hasScroll&&(this.getChildren("legendScrollBar")[0].remove(),A.hasScroll=!1),i?this.createScrollBar(i):A.hasHorizontalScroll&&(this.getChildren("legendHorizontalScrollBar")[0].remove(),A.hasHorizontalScroll=!1)}},A.createCaptionGroup=function(){var e,t=this.getChildContainer("captionGroup"),A=this.getFromEnv("animationManager"),n=this.getContainer("legendGroup"),i=(0,o.pluckNumber)(this.config.padding,4),r=.5*i,a=C(this.config.height-i,0),s=C(this.config.width-i,0),l=","+(this.config.horizontalScroll.enabled?s:this.config.width)+","+(this.config.scroll.enabled?a:this.config.height);this.config.horizontalScroll.enabled?(e=this.addChildContainer("captionGroup",A.setAnimation({el:t&&null!==t[0]?t:"group",attr:{name:"captionGroup",transform:["T",0,this.config.scrollY||0]},container:n,component:this})),this.config.scroll.enabled?e.attr({"clip-rect":"0,"+r+l}):e.attr({"clip-rect":null})):t&&t.remove()},A.createItemGroup=function(){var e,t=this.getFromEnv("animationManager"),A=this.getContainer("legendGroup"),n=this.getChildContainer("itemGroup"),i=(0,o.pluckNumber)(this.config.padding,4),r=.5*i,a=C(this.config.height-i,0),s=C(this.config.width-i,0),l=","+(this.config.horizontalScroll.enabled?s:this.config.width)+","+(this.config.scroll.enabled?a:this.config.height);return e=t.setAnimation({el:n||"group",attr:{name:"item",transform:["T",this.config.scrollX||0,this.config.scrollY||0]},container:A,component:this}),n||this.addChildContainer("itemGroup",e),this.config.scroll.enabled||this.config.horizontalScroll.enabled?e.attr({"clip-rect":"0,"+r+l}):e.attr({"clip-rect":null}),e},A.createScrollGroup=function(){var e=this.getFromEnv("animationManager"),t=this.getChildContainer("scrollGroup"),A=this.getContainer("legendGroup");!this.config.scroll.enabled&&!this.config.horizontalScroll.enabled||this.getGraphicalElement("scrollbarContainer")||this.addGraphicalElement("scrollbarContainer",e.setAnimation({el:t||"group",attr:{name:"scrollGroup"},container:A,component:this,label:"scrollbar"}))},A.createScrollBar=function(e){void 0===e&&(e=!1);var t,A,n,i,r,a,s,l,c=this,h=c.config,g=c.getFromEnv("chart-attrib"),p=e?"legendHorizontalScrollBar":"legendScrollBar",f=c.getChildren(p)&&c.getChildren(p)[0],v=h.borderWidth||0,b=.5*v,B=(0,o.pluckNumber)(h.padding,4),w=h.width,y=h.height;t={conf:{isHorizontal:e},handler:{scroll:function(t){function A(e){e.preventDefault(),document.removeEventListener("touchmove",A,{passive:!1})}document.addEventListener("touchmove",A,{passive:!1}),h.lastScrollPos=t,e?h.scrollX=(i-h.totalWidth)*t:h.scrollY=(n-h.totalHeight)*t,c.addJob("scrollDraw",c.drawScroll,d.priorityList&&d.priorityList.draw),m&&clearTimeout(m),m=setTimeout((function(){document.removeEventListener("touchmove",A)}),250)},mousedown:function(e){e.preventDefault(),e.stopPropagation()}}},g.legendscrollbgcolor&&(t.conf.color=(0,o.convertColor)(g.legendscrollbgcolor)),f||(f=c.attachChild(new u.ScrollBar,p),e?this.config.hasHorizontalScroll=!0:this.config.hasScroll=!0),f.configure(t.conf),f.attachEventHandlers(t.handler),A=f.config,e?(r=b,a=y-f.getLogicalSpace().height-v+.5*B,l=w-v,this.config.scroll.enabled&&this.config.horizontalScroll.enabled&&(l-=12),l=C(l,0),i=C(w-B,0),A.scrollRatio=(i+B)/h.totalWidth):(n=C(y-B,0),r=w-f.getLogicalSpace().width-v+.5*B,a=b,s=y-v,this.config.scroll.enabled&&this.config.horizontalScroll.enabled&&(s-=12),s=C(s,0),A.scrollRatio=(n+B)/h.totalHeight),A.startPercent=0,A.scrollPosition=h.lastScrollPos,A.parentLayer=c.getChildContainer("scrollGroup"),f.setDimension({x:r,y:a,height:s,width:l})},A.drawCaption=function(){var e,t,A,n,i=this.getGraphicalElement("caption"),r=this.config.horizontalScroll.enabled?this.getChildContainer("captionGroup"):this.getChildContainer("itemGroup"),a=this.getFromEnv("animationManager"),s=this.config,l=(0,o.pluckNumber)(s.padding,4),c=s.scroll.enabled,u=s.width;if(s.title&&s.title.text!==o.BLANKSTRING&&s.validLegendItem){switch(s.title.align){case o.POSITION_START:A=l;break;case o.POSITION_END:A=u-l-(c?10:0);break;default:A=.5*u}t=s.title.style,e={text:s.title.text,title:s.title.originalText||o.BLANKSTRING,x:A,y:l,fill:s.title.style.color,direction:s.textDirection,"line-height":t.lineHeight,"vertical-align":o.POSITION_TOP,"text-anchor":s.title.align,opacity:1},n={"font-weight":t.fontWeight,"font-style":t.fontStyle,"font-family":t.fontFamily,"font-size":t.fontSize},i&&i.show(),i&&i[0]?a.setAnimation({el:i,attr:e,component:this,container:r,css:n}):(i=a.setAnimation({el:"text",attr:e,component:this,container:r,css:n}),i=this.addGraphicalElement("caption",i)),this.getFromEnv("toolTipController").enableToolTip(i,s.title.originalText)}else i&&a.setAnimation({el:i,component:this,doNotRemove:!0,callback:function(){i.hide()}})},A.drawLegendBox=function(){var e,t=this.getFromEnv("animationManager"),A=this.config,n=this.getContainer("legendGroup"),i=A.width,r=this.getGraphicalElement("box"),a=A.height,o=A.borderRadius,s=A.backgroundColor,l=A.borderColor,c=A.borderAlpha,u=A.backgroundAlpha,h=A.borderWidth||0;return e=t.setAnimation({el:r||"rect",attr:{x:0,y:0,width:i,height:a,r:o,stroke:l,"stroke-width":h,fill:s||"none","stroke-opacity":c/100,"fill-opacity":u/100,cursor:A.legendAllowDrag?"move":"default"},container:n,component:this,label:"legendGroup"}),r||(this.addGraphicalElement("box",e),e.shadow(A.shadow)),e},A._calculateTopPosition=function(e){var t=this.getFromEnv("chart"),A=t.config,n=e,i=t.getChildren("caption")&&t.getChildren("caption")[0],r=t.getChildren("subCaption")&&t.getChildren("subCaption")[0],a=t.getChildren("chartMenuBar")&&t.getChildren("chartMenuBar")[0],s=A.oriTopSpace;return!A.toolbarY&&a&&a.props&&a.props.height&&(s>a.props.height+a.props.y||(n=a.props.y+a.props.height)),i&&i.config&&i.config.text&&i.config.text!==o.BLANKSTRING&&i.config.height&&1===i.config.isOnTop&&(n=i.config.height+i.config.y+i.config.captionPadding),r&&r.config&&r.config.height&&1===r.config.isOnTop&&(n=r.config.y+r.config.height+(i&&i.config&&i.config.captionPadding||0)),C(n,e)},A.getPosition=function(){var e,t,A,n,i,r,a,s,l,c,u=this.getFromEnv("chart"),h=u.config,d=this.config,g=u.getChildren("canvas"),p=g&&g.length>1?h.height-g[0].config.canvasBottom:h.height-h.canvasBottom,f=h.canvasLeft,m=h.canvasRight,v=h.canvasWidth,b=d.chartMarginLeft||0,B=d.chartMarginRight||0,C=d.chartMarginTop||0,w=d.chartMarginBottom||0,y=h.actionBarHeight||0,x=d.actualCanvasMarginLeft||0,F=h.actualCanvasMarginTop||0,E=h.actualCanvasMarginBottom||0,S=h.actualCanvasMarginRight||0,Q=d.alignLegendWithCanvas,k=h.height,L=h.canvasTop,U=d.width||0,I=d.height||0,T=h.borderWidth,N=h.oriCanvasLeft,D=h.oriCanvasRight,P=h.oriTopSpace,M=h.oriBottomSpace,O=0,H=0,_=d.borderWidth||0,R=d.legendPos?d.legendPos.split("-"):[],V=u.getChildren("caption")&&u.getChildren("caption")[0],G=u.getChildren("subCaption")&&u.getChildren("subCaption")[0];return R[0]!==o.POSITION_LEFT&&R[0]!==o.POSITION_RIGHT||(d.align=R[0],d.verticalAlign=o.POSITION_MIDDLE,l=d.layout="vertical"),R[0]===o.POSITION_ABSOLUTE?(e=d.legendXPosition,t=d.legendYPosition,e>(A=h.width-U-T)&&(e=A),t>(n=h.height-I-T)&&(t=n)):l?(R[0]===o.POSITION_LEFT?e=b+x+T:R[0]===o.POSITION_RIGHT&&(e=h.width-B-S-U-T),O=(0,o.pluckNumber)(P,L),H=(0,o.pluckNumber)(M,p),R[1]===o.POSITION_TOP?(t=O+(d.y||0),t=this._calculateTopPosition(t)):R[1]===o.POSITION_BOTTOM?(t=k-H-I+(d.y||0),(c=H-(T+w+y+(V&&0===V.config.isOnTop&&V.config.height?V.config.height+V.config.captionPadding:0)+(G&&0===V.config.isOnTop?G.config.height:0)))<0&&(t+=c)):t=O+.5*(k-H-O-I)+(d.y||0)):(a=h.width-(b+x+(B+S)),s=Q?v-U:a-U,i=Q?(0,o.pluckNumber)(N,f):b+x,r=Q?h.width-(0,o.pluckNumber)(D,m):B+S,e=R[1]===o.POSITION_LEFT?i:R[1]===o.POSITION_RIGHT?h.width-(U+r):i+s/2,R[0]===o.POSITION_TOP?(t=C+F,t=this._calculateTopPosition(t)):t=k-I-E-w-y),(0,o.crispBound)(e,t,U,I,_)},A.setTranslation=function(e,t){var A=this.config;A._translateX=e,A._translateY=t,A.translate="t"+e+","+t},A.allocatePosition=function(){var e,t=this.config;e=t.translate?(0,o.crispBound)(t._translateX,t._translateY,t.width,t.height,t.borderWidth):this.getPosition(),t.xPos=e.x,t.yPos=e.y,t.width=e.width,t.height=e.height},A._manageLegendPosition=function(e){var t,A=this.config,n=A.legendPos?A.legendPos.split("-"):[],i={left:0,right:0,top:0,bottom:0};return A.padding=4,A.textPadding=4,t=n[0]===o.POSITION_ABSOLUTE?this._placeLegendBlockBottom(e,.6):n[0]===o.POSITION_LEFT||n[0]===o.POSITION_RIGHT?this._placeLegendBlockRight(e):this._placeLegendBlockBottom(e),n[0]===o.POSITION_LEFT?i.left=t&&t.right||0:n[0]===o.POSITION_RIGHT?i.right=t&&t.right||0:n[0]===o.POSITION_TOP?i.top=t&&t.bottom||0:n[0]!==o.POSITION_ABSOLUTE&&(i.bottom=t&&t.bottom||0,i.right=t&&t.right||0),i},A.setDimension=function(e){var t,A,n,i,r,a,s,l,c,u,h,d,p,m,v,b,x,F,S,Q,k,L,U,I,T,N,D=this.config,P=this.getSortedLegendItems(),M=this.getFromEnv("chart-attrib"),O=P.length,H=(0,o.pluckNumber)(M.legendwidth,e.width),_=e.height,R=_,V=0,G=0,K=0,z=0,W=0,j=0,X=0,Y=[],J=D.padding,q=D.textPadding,Z=this.getFromEnv("smartLabel"),$=this.getStateCosmetics("default"),ee=this.computeFontSize(D.legendFontSizeWithUnit),te=parseInt((0,o.setLineHeight)({fontSize:ee+"px"}),10),Ae=parseInt($.text["font-size"],10)||10,ne=D.title,ie=ne.padding,re=0,ae=D.minimiseWrappingInLegend,oe=D.legendPadding,se=D.legendScale,le=D.alignLegendWithCanvas,ce=D.numColumns,ue=D.numRows,he=D.oriSymbolPadding,de=Number.MAX_SAFE_INTEGER,ge=H,pe=!1,fe=!!ue,me=0;for(h={width:2*J,height:2*J},M.disablelegendscroll&&"1"===M.disablelegendscroll&&(H=e.width,ge=e.width),this.setStateCosmetics("default",{text:{fill:$.text.fill,"font-family":$.text["font-family"],cursor:$.text.cursor,"font-size":$.text["font-size"],"line-height":$.text["line-height"],"vertical-align":o.POSITION_TOP,"text-anchor":o.POSITION_START,direction:$.text.direction,"font-weight":$.text["font-weight"]},symbol:{bgColor:$.symbol.bgColor,cursor:$.symbol.cursor,borderColor:$.symbol.borderColor,bgAlpha:$.symbol.bgAlpha,borderAlpha:$.symbol.borderAlpha,borderThickness:$.symbol.borderThickness,startAngle:$.symbol.startAngle,sides:$.symbol.sides}}),(u=Ae+1)<=0&&(u=1),H=Math.max(H-.5*J,0),he*=se,(u=B(u*=se,H))<=0&&(he=u=0),D.symbolWidth=u,D.textPadding=4,D.legendHeight=c=u+2*he,D.rowHeight=a=C(parseInt($.text["line-height"],10)||12,c),r=q+he+J,Z.setStyle((0,o.extend2)({},$.text)),s=oe+D.borderWidth/2+1,s=C(B(s,_-te-8),0),oe=.05*a,D.initialItemY=0,D.initialItemX=0,I=c+oe+q+he+2*J,d=0;d<O;d+=1)A=t=(i=P[d]).config||(i.config={}),(n=t.name=(0,o.parseUnsafeString)(A.label))===o.BLANKSTRING||0===A.enabled||!1===A.enabled||i.getState("removed")?t.enabled=0:(t.enabled=1,K+=1,Q=!0,k=Z.getOriSize(n),V=C(V,B(k.width,H-I)),j=C(j,B(k.height,R)),t._selfTotalWidth=k.width+I,G+=k.width);if(D.validLegendItem=Q,z=G/K,G+=I*K,D.x=!le&&G>ge?0:D.x,Q){if(z+=I,V+=I,ne.oriText!==o.BLANKSTRING&&(pe=!0,Z.setStyle(ne.style),k=Z.getSmartText(ne.oriText,H-2*J),ne.text=k.text,k.tooltext&&(ne.originalText=k.tooltext),re=k.width+2*J,X=k.height+ie),m=V,ue?!ce&&ue?(me=1,K<ue&&(ue=K),ce=y(K/ue)):y(K/ce)<ue&&y(K/ue)<ce||K>ce*ue?ue=y(K/ce):ce===y(K/ue)&&(me=1):G<=H?m=1===(ue=y(K/(ce=ce||K)))?G/K:V:!ce&&H>V&&(ae||1.5*z>V)?(K<(ce=w(H/V))&&(ce=K),m=V):ce&&H/ce>z?(m=H/ce)>V&&(m=V):!ce&&H>=2*z?(K<(ce=w(H/z))&&(ce=K),(m=w(H/ce))>V&&(m=V)):ce||(ce=1,m=H),W=fe?V:m,!fe&&1.5*z<V&&(m=z),ue&&!ae){var ve,be,Be=W;V>1.5*z&&(Be=z),be=B(K,w(H/Be)),ve=y(K/be),D.numRows&&ve!==ue||D.numColumns&&be!==ce||1===ue&&1!==ve||(W=Be,ce=be,ue=ve)}for(Z.setStyle((0,o.extend2)({},$.text)),d=0;d<O;d++)t=P[d].config,1===ue&&(W=V>2.5*z?z:t._selfTotalWidth),0===(l=Math.ceil(W-I))?(t.name=o.BLANKSTRING,t._totalWidth=u+he,t._selfTotalWidth=t._totalWidth,t._selfTotalHeight=a):(k=Z.getSmartText(t.name,l<t._selfTotalWidth-I?l+q:void 0),t.name=k.text,t._textHeight=k.height,k.tooltext&&(t.originalText=k.tooltext),t._selfTotalHeight=k.height+q>a?q+k.height:a,t._totalWidth=u+r+k.width,t._selfTotalWidth=I+k.width,t._legendTestY=a>k.height?(a-k.height)/2:0,j=C(j,t._textHeight),de=C(1,B(de,t._textHeight)));if(v={style:{display:"grid",justifyItems:"center",alignItems:"start"}},b=[],pe&&b.push({style:{width:re,height:X,gridRowStart:1,gridRowEnd:2,gridColumnStart:1,gridColumnEnd:2}}),b.push({style:{display:"grid",justifyItems:"start",alignItems:"start",width:B(G,H,W*ce),paddingEnd:J,paddingTop:J,gridRowStart:b.length+1,gridRowEnd:b.length+2,gridColumnStart:1,gridColumnEnd:2}}),x=[],fe||1===ue)for(p=0,d=1;p<O;p++)1===(t=(i=P[p]).config).enabled&&(0===me?(T=y(d/ce),N=d%ce==0?ce:d%ce):(T=d%ue==0?ue:d%ue,N=y(d/ue)),x.push({style:{width:1===ue||N===ce?t._selfTotalWidth:W,height:t._selfTotalHeight,gridRowStart:T,gridRowEnd:T+1,gridColumnStart:N,gridColumnEnd:N+1}}),d+=1);else{for(ue=0,de=C(de,a),p=0;p<O;p++)1===(t=(i=P[p]).config).enabled&&(ue+=Math.ceil(t._selfTotalHeight/de));0===ue&&(ue=Math.max(1,Math.ceil(K/ce))),Y=E(ue).map((function(){return E(ce)}));var Ce,we=0,ye=0;for(p=0,d=1;p<O;p++)if(1===(t=(i=P[p]).config).enabled){for(;we<ue;){for(;ye<ce;){if(void 0===Y[we][ye]){N=ye+1,T=we+1,Ce=1===ce?1:+(t._selfTotalHeight/de).toFixed(0),Y[we][ye]=!0;for(var xe=we;xe<we+Ce;xe++)Y[xe][ye]=!0}if(ye++,Y[we][ye-1])break}if(ye>=ce&&(ye=0,we++),Ce)break}x.push({style:{width:N===ce?t._selfTotalWidth:m,height:t._selfTotalHeight,gridRowStart:T,gridRowEnd:T+Ce,gridColumnStart:N,gridColumnEnd:N+1}}),d+=1,Ce=void 0}for(d=ue=0;d<Y.length;d++)for(p=0;p<ce;p++)if(Y[d][p]){ue++;break}ce>1&&(b[b.length-1].style.gridTemplateRows=(de+" ").repeat(ue).slice(0,-1))}for(b[b.length-1].children=x,F=(0,g.computeLayout)(f(f({},v),{},{children:b})),D.itemWidth=W,(l=y(W-I))<0&&(he=l=q=0),D.symbolPadding=he,D.textPadding=q,D.width=D.totalWidth=Math.floor(C(F.layout.width,F.children[F.children.length-1].layout.width)),Z.setStyle((0,o.extend2)({},$.text)),p=0,d=0;p<O;p++)t=(i=P[p]).config,1===ue&&(l=t._selfTotalWidth)<0&&(he=l=q=0),1===t.enabled&&(0===l&&(t.name=o.BLANKSTRING,t._totalWidth=u+he),t._legendX=F.children[F.children.length-1].children[d].layout.x,t._legendY=F.children[F.children.length-1].children[d].layout.y,t._legendH=F.children[F.children.length-1].children[d].layout.height,d+=1);if(S=ue,h.height+=S*a+X,D.height=D.totalHeight=F.layout.height+2*J,D.rowHeight=a,D.legendNumColumns=ce,D.initialItemX=pe&&re>F.children[F.children.length-1].layout.width&&H>D.width?F.children[F.children.length-1].layout.x:0,D.initialItemY=F.children[F.children.length-1].layout.y,D.height-2*he>_?(D.height=_,(L=D.scroll||(D.scroll={})).enabled=!0,L.flatScrollBars=D.flatScrollBars,L.scrollBar3DLighting=D.scrollBar3DLighting,D.width=D.width+12>H?D.width:D.width+12):D.scroll.enabled=!1,D.width>H&&D.scroll.enabled?(D.width=H,(U=D.horizontalScroll||(D.horizontalScroll={})).enabled=!0,U.flatScrollBars=D.flatScrollBars,U.scrollBar3DLighting=D.scrollBar3DLighting,D.height+12<=_?D.height=D.height+12:(D.height=_,D.totalHeight+=4,(L=D.scroll||(D.scroll={})).enabled=!0,L.flatScrollBars=D.flatScrollBars,L.scrollBar3DLighting=D.scrollBar3DLighting,D.scroll.enabled=!0)):D.horizontalScroll.enabled=!1,D.totalWidth>D.width&&D.totalWidth-D.width<=4){for(p=0,d=0;p<O;p++)1===(t=(i=P[p]).config).enabled&&(F.children[F.children.length-1].children[d].style.gridColumnStart%ce!=1&&(t._legendX+=4,1===F.children[F.children.length-1].children[d].style.gridRowStart&&(D.totalWidth+=4)),d+=1);D.totalHeight+=4}s+=D.height,D.isActive=!0,D.enabled=!0}else D.enabled=!1,D.width=0,s=0;return{width:D.width,height:s}},A._placeLegendBlockBottom=function(e,t){void 0===t&&(t=1);var A,n,i,r,a,s=this.getFromEnv("chart"),l=s.config,c=s.getFromEnv("chartWidth"),u=s.getFromEnv("chartHeight"),h=l.canvasLeft,d=l.width-(l.canvasRight||0),g=s.getFromEnv("smartLabel"),p=this.config,f=p.chartMarginLeft,m=p.chartMarginRight,v=p.chartMarginTop,b=p.alignLegendWithCanvas,B=this.getSortedLegendItems().length,C=p.legendPadding,w=l.canvasMarginRight,y=l.canvasMarginLeft,x=s.getChildren("yAxis"),F=x&&x[0].config.isVertical?x:s.getChildren("xAxis"),E=F&&F[0],S=F&&F[1],Q=E&&E.config||{},k=S&&S.config||{},L=Q.nameMaxW,U=k.nameMaxW,I=Q.name&&Q.name.style||{},T=k.name&&k.name.style||{},N=Q.axisName||o.BLANKSTRING,D=k.axisName||o.BLANKSTRING,P=l.canvasWidth-l.canvasMarginLeft-l.canvasMarginRight,M=l.width,O=l.height,H=p.legendPos?p.legendPos.split("-"):[];return p.paddingBottom=l.height-l.canvasBottom,g.useEllipsesOnOverflow(l.useEllipsesWhenOverflow),g.setStyle(I),r=g.getOriSize(N),g.setStyle(T),a=g.getOriSize(D),P<C&&(p.padding=C=P=0),(r||a)&&(n=(0,o.pluckNumber)(r.height,0)>(0,o.pluckNumber)(a.height,0)?(i=L)&&r.width:(i=U)&&a.width),P=b?P:c-(n+v>u-e?2*i+m+f+w+y:m+f+y+w),H[0]===o.POSITION_ABSOLUTE&&(P=M,p.legendMaxWidth<M?P=p.legendMaxWidth:P*=t),p.showLegend&&0!==B?(p.x=(h-f-d+m)/2,A=this.setDimension({width:P,height:H[0]===o.POSITION_ABSOLUTE?p.legendMaxHeight<O?p.legendMaxHeight:O:e}).height):(A=0,p.height=0,p.width=0),{bottom:A,right:0}},A._placeLegendBlockRight=function(e){var t,A=e,n=this.config,i=this.getFromEnv("chart"),r=i.config,a=i.getFromEnv("smartLabel"),s=n.legendPadding,l=this.getStateCosmetics("default"),c=r.canvasHeight,u={},h=this.getSortedLegendItems().length;return A<s&&(n.padding=s=A=0),a.useEllipsesOnOverflow(r.useEllipsesWhenOverflow),a.setStyle((0,o.extend2)({},l.text)),n.numColumns||n.numRows||(n.numColumns=1),n.showLegend&&0!==h?(t=this.setDimension({width:A-s,height:c}).width,u.right=t+s,u.right+10<=A&&(u.right+=10)):(u.right=0,n.height=0,n.width=0),u},A.postSpaceManager=function(){var e=this.config,t=e.legendPos?e.legendPos.split("-"):[],A=this.getFromEnv("chart").config.canvasHeight;t[0]!==o.POSITION_RIGHT&&t[0]!==o.POSITION_LEFT||(e.totalHeight>A?(e.totalHeight<=e.height&&(e.scroll.enabled=!0,e.scroll.flatScrollBars=e.flatScrollBars,e.scroll.scrollBar3DLighting=e.scrollBar3DLighting,e.width+=(e.scroll.scrollBarWidth=10)+(e.scroll.scrollBarPadding=2)),e.height=A):e.scroll.enabled=!1)},A.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var A,n,i,r,a,s=this.config,l=this.getFromEnv("chart"),c=l.config,u=this.getFromEnv("style"),h=l.getFromEnv("chart-attrib"),d=l.config.is3D,g=this.getFromEnv("color-manager"),p=d?o.chartPaletteStr.chart3D:o.chartPaletteStr.chart2D,f=s.interactiveLegend=!1!==l.hasInteractiveLegend&&Boolean((0,o.pluckNumber)(h.interactivelegend,1)),m=(0,o.pluckNumber)(h.useroundedges,0),b=u.outCancolor,B=t.style&&t.style.text,w=(0,o.pluck)(h.legenditemfont,B&&B["font-family"],u.outCanfontFamily),y=(0,o.pluckNumber)(h.legendiconscale,1),x=(0,o.pluckFontSize)(h.legenditemfontsize,B&&B["font-size"],u.fontSize)+"px",E=(0,o.pluck)(h.legenditemfontcolor,B&&B.color,b).replace(/^#?([a-f0-9]+)/gi,"#$1"),S=(0,o.getFirstColor)((0,o.pluck)(h.legenditemhoverfontcolor,E));s.isActive=!1,s.chartMarginTop=c.origMarginTop,s.chartMarginRight=c.origMarginRight,s.chartMarginBottom=c.origMarginBottom,s.chartMarginLeft=c.origMarginLeft,s.reverselegend=(0,o.pluckNumber)(h.reverselegend,0),s.showLegend=(0,o.pluckNumber)(h.showlegend,!l.dontShowLegendByDefault,1),s.legendFontSizeWithUnit=(0,o.pluckFontSizeMaintainUnit)(h.legenditemfontsize,u.fontSizeWithUnit||u.fontSize),A=(0,o.setLineHeight)({fontSize:x}),s.legendPos=(0,o.pluck)(h.legendposition,l.legendposition,t.legendPosition,o.POSITION_BOTTOM).toLowerCase(),s.numColumns=(0,o.pluckNumber)(Math.floor(h.legendnumcolumns)),s.numRows=(0,o.pluckNumber)(Math.floor(h.legendnumrows)),s.numColumns<0&&(s.numColumns=void 0),s.numRows<0&&(s.numRows=void 0),s.legendXPosition=C((0,o.pluckNumber)(h.legendxposition,l.legendxposition,t.legendXPosition,0),0),s.legendYPosition=C((0,o.pluckNumber)(h.legendyposition,l.legendyposition,t.legendYPosition,0),0),s.legendMaxWidth=(0,o.pluckNumber)(h.legendmaxwidth,l.legendmaxwidth,t.legendMaxWidth),s.legendMaxHeight=(0,o.pluckNumber)(h.legendmaxheight,l.legendmaxheight,t.legendMaxHeight),s.legendMaxWidth<0&&(s.legendMaxWidth=void 0),s.legendMaxHeight<0&&(s.legendMaxHeight=void 0),s.xL=s.yL=0,(y<=0||y>5)&&(y=1),s.drawCustomLegendIcon=(0,o.pluckNumber)(h.drawcustomlegendicon,t.drawcustomlegendicon,0),s.legendScale=y,s.legendPadding=(0,o.pluckNumber)(h.legendpadding,7),s.alignLegendWithCanvas=(0,o.pluckNumber)(t.alignlegendwithcanvas,c.alignLegendWithCanvas),s.title.style={fontFamily:(0,o.pluck)(h.legendcaptionfont,w),fontSize:(0,o.pluckFontSize)(h.legendcaptionfontsize,u.fontSize)+"px",color:(0,o.pluck)(h.legendcaptionfontcolor,b).replace(/^#?([a-f0-9]+)/gi,"#$1"),fontWeight:F.fontWeight[(0,o.pluckNumber)(h.legendcaptionfontbold,1)]||o.BLANKSTRING},a=h.legendcaptionalignment?h.legendcaptionalignment.toLowerCase():v.center,s.title.align=v[a]||v.center,s.title.style["text-anchor"]=s.title.align,s.padding=4,n=(0,o.pluck)(h.legendbordercolor,g.getColor(p.legendBorderColor)),i=s.borderAlpha=(0,o.pluckNumber)(h.legendborderalpha,100),s.borderColor=(0,o.convertColor)(n,i),s.borderWidth=(0,o.pluckNumber)(h.legendborderthickness,t.legendborderthickness,!m||h.legendbordercolor?1:0),s.borderRadius=(0,o.pluckNumber)(m,0),s.backgroundAlpha=r=(0,o.pluckNumber)(h.legendbgalpha,t.legendbgalpha,100),s.backgroundColor=(0,o.convertColor)((0,o.pluck)(h.legendbgcolor,g.getColor(p.legendBgColor)),r),s.symbol3DLighting=Boolean((0,o.pluckNumber)(h.use3dlighting,h.useplotgradientcolor,1)),s.symbol3DLighting=!c.usePattern&&s.symbol3DLighting,s.shadow=Boolean((0,o.pluckNumber)(h.legendshadow,1)),s.shadow&&(s.shadow={enabled:s.shadow,opacity:C(i,r)/100}),s.prevReversed=Boolean((0,o.pluckNumber)(s.reversed,0)),s.reversed=Boolean((0,o.pluckNumber)(h.reverselegend,0)),s.lineWidth=(0,o.pluckNumber)(h.linethickness,2),s.borderRadius=(0,o.pluckNumber)(h.legendborderradius,m?3:0),s.legendAllowDrag=Boolean((0,o.pluckNumber)(h.legendallowdrag,0)),s.title.oriText=(0,o.parseUnsafeString)((0,o.getFirstValue)(h.legendcaption,o.BLANKSTRING)),s.legendScrollBgColor=(0,o.getFirstColor)((0,o.pluck)(h.legendscrollbgcolor,h.scrollcolor,g.getColor("altHGridColor"))),s.legendScrollBarColor=(0,o.pluck)(h.legendscrollbarcolor,n),s.legendScrollBtnColor=(0,o.pluck)(h.legendscrollbtncolor,n),s.minimiseWrappingInLegend=(0,o.pluckNumber)(h.minimisewrappinginlegend,0),s.flatScrollBars=(0,o.pluckNumber)(h.flatscrollbars,0),s.scrollBar3DLighting=(0,o.pluckNumber)(h.scrollbar3dlighting,1),s.orderReversed=!1,this.setStateCosmetics("hidden",{symbol:{fill:(0,o.convertColor)((0,o.pluck)(h.legenditemhiddencolor,"cccccc").replace(/^#?([a-f0-9]+)/gi,"#$1")),stroke:(0,o.convertColor)((0,o.pluck)(h.legenditemhiddencolor,"cccccc").replace(/^#?([a-f0-9]+)/gi,"#$1"))},text:{fill:(0,o.convertColor)((0,o.pluck)(h.legenditemhiddencolor,"cccccc").replace(/^#?([a-f0-9]+)/gi,"#$1"))}}),this.setStateCosmetics("default",{text:{fill:(0,o.convertColor)(E),"font-family":w,cursor:f?o.preDefStr.POINTER:"default","font-size":x,"line-height":A,"vertical-align":o.POSITION_TOP,"text-anchor":o.POSITION_START,direction:"rtl"===c.textDirection?"rtl":"initial","font-weight":F.fontWeight[(0,o.pluckNumber)(h.legenditemfontbold,0)]||o.BLANKSTRING},symbol:{bgColor:(0,o.pluck)(h.legendiconbgcolor),cursor:f?o.preDefStr.POINTER:"default",borderColor:(0,o.pluck)(h.legendiconbordercolor),bgAlpha:(0,o.pluckNumber)(h.legendiconbgalpha,h.legendiconalpha,100),borderAlpha:(0,o.pluckNumber)(h.legendiconborderalpha,h.legendiconalpha,100),borderThickness:(0,o.pluckNumber)(h.legendiconborderthickness),startAngle:(0,o.pluckNumber)(h.legendiconstartangle,45),sides:(0,o.pluckNumber)(h.legendiconsides,t.legendiconsides,4)}}),this.setStateCosmetics("hover",(function(e,t){return t.hasState("hidden")||(e.text||(e.text={}),e.text.fill=(0,o.convertColor)(S.replace(/^#?([a-f0-9]+)/gi,"#$1")),e.text.cursor="inherit"),e})),s.legendAllowDrag&&!s._dragEvtListenerBinded?(this.addEventListener("fc-dragstart",s.handlers.dragstart),this.addEventListener("fc-dragmove",s.handlers.dragmove),s._dragEvtListenerBinded=!0):!s.legendAllowDrag&&s._dragEvtListenerBinded&&(this.removeEventListener("fc-dragstart",s.handlers.dragstart),this.removeEventListener("fc-dragmove",s.handlers.dragmove),s._dragEvtListenerBinded=!1)},A.getLegendState=function(){return this._legendState},A.hasState=function(e){var t,A,n=this.getLegendState();for(t=0,A=n.length;t<A;t++)if(n[t]===e)return!0;return!1},A.setLegendState=function(e,t){this.hasState(e)||(t?this._legendState.push(e):this._legendState.unshift(e)),this.asyncDraw()},A.removeLegendState=function(e){var t,A,n=1;if(e)for(t=0,A=this._legendState.length;t<A&&n;t++)e===this._legendState[t]&&(this._legendState.splice(t,1),n=0);else this._legendState.length=0;this.asyncDraw()},A.setStateCosmetics=function(e,t){this._stateCosmetics[e]=t},A.removeStateCosmetics=function(e){delete this._stateCosmetics[e]},A.getStateCosmetics=function(e){return this._stateCosmetics[e]},A.hide=function(){var e=this.getFromEnv("chart").getChildContainer("legendGroup");e&&e.hide()},t}(s.ComponentInterface);t["default"]=S},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(253)),r=n(A(268)),a=A(254),o=A(270),s=A(262),l=n(A(605));function c(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,n)}return A}function u(e){for(var t=1;t<arguments.length;t++){var A=null!=arguments[t]?arguments[t]:{};t%2?c(Object(A),!0).forEach((function(t){(0,i["default"])(e,t,A[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(A)):c(Object(A)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(A,t))}))}return e}var h=a.preDefStr.POINTER,d="M",g="L",p="Z",f="A",m=function(e,t,A,n,i){var r,a,o,s,l,c,u,h,m,v=[d];switch(i){case"column":case"dragColumn":case"column3D":case"realtimeColumn":case"errorBar2D":a=.5*(r=.25*A),o=.7*n,s=.4*n,v=v.concat([e,t+n,"l",0,-o,r,0,0,o,"z","m",r+a,0,"l",0,-n,r,0,0,n,"z","m",r+a,0,"l",0,-s,r,0,0,s,"z"]);break;case"bar2D":case"bar3D":r=.3*A,a=.6*A,s=(o=n/4)/2,v=v.concat([e,t,g,e+a,t,e+a,t+o,e,t+o,p,d,e,t+o+s,g,e+A,t+o+s,e+A,t+o+s+o,e,t+2*o+s,p,d,e,t+2*(o+s),g,e+r,t+2*(o+s),e+r,t+n,e,t+n,p]);break;case"area":case"area3d":case"areaspline":case"dragArea":case"realTimeArea":case"splinearea":r=.3*A,a=.6*A,o=.6*n,s=.2*n,l=.8*n,v=v.concat([e,t+l,g,e,t+o,e+r,t+s,e+a,t+o,e+A,t+s,e+A,t+l,p]);break;case"pie2D":case"pie3d":case"doughnut2D":case"doughnut3D":a=.9*(r=.5*A),1,1,c=e+r+1,h=t+r-1,u=e+r-1,m=t+r+1,v=v.concat([c,h,g,c,h-a+1,f,a-1,a-1,0,0,1,c+a-1,h,p,d,u,m,g,u,m-a,f,a,a,0,1,0,u+a,m,p]);break;case"boxandwhisker2d":v=v.concat([e,t,g,e+A,t,e+A,t+n,e,t+n,p]);break;case"radialBar":a=e+A,h=t+(r=.5*A),v=v.concat([e,h,f,r,r,0,0,0,a,h,f,r,r,0,0,0,e,h]);break;default:v=v.concat([e,t,g,e+A,t,e+A,t+n,e,t+n,p])}return{path:v}},v=function(e,t){var A=e.config,n=e.getLinkedParent().config,i=.5*n.symbolWidth,r=(n.initialItemX||0)+A._legendX,o=(n.initialItemY||0)+A._legendY,s=r+n.symbolPadding+i,l=o+(A._markerYGutter||0)+n.symbolPadding+i,c=(0,a.mapSymbolName)(A.anchorSide),u=A.symbol=c&&c.split("_")||[],d="spoke"===u[0]?1:0;return("line"===A.type||A.drawLine)&&(i*=.6),{path:(0,a.polyPathToPath)([u[1]||2,s,l,i,A.startAngle,A.spoke||d]),cursor:t.cursor||h,stroke:t.stroke,fill:t.fill,"stroke-width":t["stroke-width"]||.5}};(0,s.addDep)({name:"legendItemAnimation",type:"animationRule",extension:l["default"]});var b=function(e){function t(){var t;return(t=e.call(this)||this)._stateCosmetics={},t._legendState=[],t}(0,r["default"])(t,e);var A=t.prototype;return A.getName=function(){return"legendItem"},A.parseLegendCosmetics=function(){var e,t,A,n=this.getLinkedParent(),i=n.getLegendState(),r=this.getLegendState(),o=["default"],s={};for(o=o.concat(i,r),A=0;A<o.length;A++)e=n.getStateCosmetics(o[A]),t=this.getStateCosmetics(o[A]),e&&("function"==typeof e?s=e(s,this):(0,a.extend2)(s,e)),t&&("function"==typeof t?s=t(s,this):(0,a.extend2)(s,t));return s},A.getType=function(){return"legendItem"},A.configure=function(e){var t,A,n=this.config;for(t in e)if(e.hasOwnProperty(t))if("object"!=typeof e[t])n[t]=e[t];else{var i=n[t]?n[t]:{};for(A in e[t])i[A]=e[t][A];n[t]=i}},A.itemClickFn=function(){var e=this.getFromEnv("chart-attrib"),t=(0,a.pluckNumber)(e.interactivelegend,1),A=this.getLinkedItem("owner");t&&A.legendInteractivity(this)},A.dispose=function(){this.removeEventListener("fc-click",this.click),this.removeEventListener("fc-mouseover",this.mouseover),this._dispose()},A.getLegendState=function(){return this._legendState},A.hasState=function(e){var t,A,n=this.getLegendState();for(t=0,A=n.length;t<A;t++)if(n[t]===e)return!0;return!1},A.setLegendState=function(e,t){this.hasState(e)||(t?this._legendState.push(e):this._legendState.unshift(e)),this.asyncDraw()},A.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.eventArguments={}},A.removeLegendState=function(e){var t,A,n=1;if(e)for(t=0,A=this._legendState.length;t<A&&n;t++)e===this._legendState[t]&&(this._legendState.splice(t,1),n=0);else this._legendState.length=0;this.asyncDraw()},A.removeStateCosmetics=function(e){delete this._stateCosmetics[e]},A.setStateCosmetics=function(e,t){this._stateCosmetics[e]=t},A.getStateCosmetics=function(e){return this._stateCosmetics[e]},A.draw=function(){var e,t,A,n,i,r,o,s,l,c,p,f,b,B,C,w,y,x,F,E,S,Q,k,L,U,I,T,N,D,P,M,O,H,_,R,V,G,K,z,W,j,X=this.getLinkedParent(),Y=X.getFromEnv("chart").config,J=this.getFromEnv("animationManager"),q=this.config,Z=X.config,$=Z.legendHeight,ee=Z.symbolPadding,te=Z.symbolWidth,Ae=Z.interactiveLegend,ne=Z.textPadding||2,ie=2,re=Z.itemHoverStyle,ae=X.getChildContainer("itemGroup"),oe=Z.drawCustomLegendIcon,se=this.hasState("hidden"),le={};A=(e=this.parseLegendCosmetics()).symbol,n=Z.initialItemX||0,i=Z.initialItemY||0,l=q.type,S=e.symbol.stroke||"000000",Q=e.symbol.fill,t=e.symbol.lineWidth||Z.lineWidth,L=q.anchorSide,U=q.drawLine,c=n+q._legendX,p=i+q._legendY,H=this.getGraphicalElement("legendItemBackground"),s=this.getGraphicalElement("legendItemText"),f=this.getGraphicalElement("legendItemLine"),C=this.getGraphicalElement("legendItemSymbol"),w=this.getGraphicalElement("legendItemIcon"),!(Ae=(0,a.pluck)(q.interactiveLegend,Ae))&&(e.cursor="default"),_=e.text,W=c+$+ne-2,j=p+(q._legendTestY||0),_.text=q.name,_.x=W,_.y=j,o=J.setAnimation({el:s||"text",attr:_,component:this,container:ae,label:"icon"}),s||(o=this.addGraphicalElement("legendItemText",o)),o.data("legendItem",q),w&&this.removeGraphicalElement("legendItemIcon"),R=!1,e.symbol.bgAlpha=(0,a.pluckNumber)(e.symbol.bgAlpha,Y.legendiconalpha,Y.legendiconbgalpha,Y.plotfillalpha),e.symbol.bgAlpha=e.symbol.bgAlpha>100||e.symbol.bgAlpha<0?1:e.symbol.bgAlpha,"radialBar"===l&&q.showIcon?G={src:q.iconUrl,x:c+ee,y:p+(q._markerYGutter||0)+ee,width:te,height:te}:oe&&!1!==q.customLegendIcon?(N=!se&&A.borderColor,D=(0,a.pluck)(A.borderAlpha),I=!se&&A.bgColor,T=(0,a.pluck)(A.bgAlpha,"100"),P=e.symbol.rawFillColor,Q=se?e.symbol.fill:I||P,Q=(0,a.convertColor)(Q,T),M=e.symbol.rawStrokeColor,S=se?e.symbol.stroke:N||M||P,S=(0,a.convertColor)(S,D),y=c+ee+(x=.5*te),r=p+(q._markerYGutter||0)+ee+x,F="spoke"===(E=(0,a.mapSymbolName)(A.sides)&&(0,a.mapSymbolName)(A.sides).split("_")||[])[0]?1:0,V={path:(0,a.polyPathToPath)([E[1]||2,y,r,x,A.startAngle||0,F]),cursor:e.symbol.cursor||h,stroke:S,"stroke-width":(0,a.pluckNumber)(A.borderThickness,1)},q.usePattern?delete V.fill:V.fill=Q):"line"===l||U?(L&&(V=v(this,e.symbol),ie=q.anchorSide>1&&q.anchorSide<10?4:7),r=p+(q._markerYGutter||0)+ee+.5*te,z={path:[d,c+ee,r,g,c+ee+te/ie,r,d,c+ee+te-te/ie,r,g,c+ee+te,r]},R=!0,le={opacity:(0,a.pluckNumber)(e.symbol.bgAlpha,1),"stroke-width":t,stroke:S,cursor:e.cursor||h}):L?V=v(this,e.symbol):"radialBar"!==l||q.showIcon?"line"!==l&&(S=q.symbolStroke||S,V={path:m(c+ee,p+(q._markerYGutter||0)+ee,te,te,l).path,"stroke-width":.5,stroke:S,fill:Q,cursor:e.cursor||h}):(S=q.symbolStroke||S,V={path:m(c+ee,p+(q._markerYGutter||0)+ee,te,te,l).path,"stroke-width":.5,stroke:S,fill:Q,cursor:e.cursor||h}),z&&R?(Object.assign(z,le),f=J.setAnimation({el:f||"path",attr:z,component:this,callback:function(){this.show()},container:ae}),this.getGraphicalElement("legendItemLine")||(f=this.addGraphicalElement("legendItemLine",f))):f&&f.hide(),G?(B=J.setAnimation({el:w||"image",attr:G,component:this,callback:function(){this.show()},container:ae,label:"icon"}),w&&w.node||(B=this.addGraphicalElement("legendItemIcon",B)),B.data("legendItem",q)):w&&this.removeGraphicalElement(w),V?(V.opacity=(0,a.pluckNumber)(e.symbol.bgAlpha,1),b=J.setAnimation({el:C||"path",attr:V,component:this,callback:function(){this.show()},container:ae,label:"icon"}),q.usePattern&&q.patternAttr&&b.addPattern(u(u({},q.patternAttr),{},{color:se?V.stroke:q.patternAttr.color,x:c,y:p}),q.usePattern),C&&C.node||(b=this.addGraphicalElement("legendItemSymbol",b)),b.data("legendItem",q)):C&&C.hide(),k=e.background&&e.background.legendBackgroundColor?(0,a.convertColor)(e.background.legendBackgroundColor,e.background.alpha):a.TRACKER_FILL,K={x:c,y:p,width:q._totalWidth,height:q._legendH,r:0,fill:k,opacity:1,"stroke-width":1,stroke:"none",cursor:e.symbol.cursor||h},O=J.setAnimation({el:H||"rect",attr:K,css:void 0,component:this,label:"background",container:ae}),H||this.addGraphicalElement("legendItemBackground",O),O.data("legendItem",this).data("interactive",Ae).data("itemHoverStyle",re).data("itemStyle",e)},t}(o.ComponentInterface);t["default"]=b},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n=A(254),i={"*.legendItem.legendItem":function(){return{"icon.appearing":function(e){return[{initialAttr:{opacity:0},slot:"plot",startEnd:{start:.5,end:1},finalAttr:{opacity:(0,n.pluckNumber)(e.attr.opacity,1)}}]},"background.appearing":function(e){return[{initialAttr:{opacity:0},slot:"plot",startEnd:{start:.5,end:1},finalAttr:{opacity:e.attr.opacity}}]},"icon.disappearing":function(){return[{finalAttr:{opacity:0},slot:"initial"}]}}}};t["default"]=i},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n=[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"plot"}],i=[{slot:"plot",startEnd:{start:0,end:.5}}],r=[{slot:"intial"}],a={"*.legend.legend":function(){return{"legendGroup.appearing":n,"legendGroup.updating":i,"legendGroup.disappearing":r,"scrollbar.appearing":n,"scrollbar.updating":i,"scrollbar.disappearing":r}}};t["default"]=a},function(e,t,A){"use strict";t.__esModule=!0,t.computeLayout=void 0;var n=A(608),i=A(609),r=A(610),a=function(){function e(){this.gridLayoutEngine=r.computeGridLayout}return e.prototype.compute=function(e){switch((0,n.getDisplayProperty)(e)){case i.DISPLAY_GRID:case i.DISPLAY_FLEX:default:return this.gridLayoutEngine(e)}},e}();t.computeLayout=function(e){var t,A=new a,i=(0,n.cloneObject)(e);return i.root=!0,t=A.compute(i),(0,n.attachLayoutInformation)(e,t),e}},function(e,t,A){"use strict";t.__esModule=!0,t.pluckNumber=t.getDisplayProperty=t.attachLayoutInformation=t.cloneObject=void 0;var n=A(609);t.pluckNumber=function(){var e,t,A;for(t=0,A=arguments.length;t<A;t+=1)if(((e=arguments[t])||!1===e||0===e)&&!isNaN(e=Number(e)))return e},t.attachLayoutInformation=function i(e,t){var A,n;for(void 0===e&&(e={}),void 0===t&&(t={}),e.layout=t.layout,A=0,n=(e.children||[]).length;A<n;A++)i(e.children[A],t.children[A])},t.cloneObject=function r(e){if(n.ATOMIC_DATA_TYPE.indexOf(typeof e)>-1||null===e)return e;if(Array.isArray(e)){var t,A,i=[];for(t=0,A=e.length;t<A;t++)i.push(r(e[t]));return i}if("object"==typeof e){var a,o={};for(a in e)o[a]=r(e[a]);return o}},t.getDisplayProperty=function(e){return e.style&&e.style.display}},function(e,t,A){"use strict";t.__esModule=!0,t.ATOMIC_DATA_TYPE=t.STRETCH=t.END=t.START=t.CENTER=t.DISPLAY_FLEX=t.DISPLAY_GRID=void 0;t.ATOMIC_DATA_TYPE=["string","number","function","boolean","undefined"],t.STRETCH="stretch",t.END="end",t.START="start",t.CENTER="center",t.DISPLAY_FLEX="flex",t.DISPLAY_GRID="grid"},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t.computeGridLayout=function(e,t){void 0===t&&(t=1);var A,n,i,a,o=e.style;if(!e||!e.style)return;e.userGivenStyles||(e.style.width=isNaN(e.style.width)?"auto":e.style.width,e.style.height=isNaN(e.style.height)?"auto":e.style.height,o.paddingStart=(0,r.pluckNumber)(o.paddingStart,o.padding,0),o.paddingEnd=(0,r.pluckNumber)(o.paddingEnd,o.padding,0),o.paddingTop=(0,r.pluckNumber)(o.paddingTop,o.padding,0),o.paddingBottom=(0,r.pluckNumber)(o.paddingBottom,o.padding,0),e.userGivenStyles={gridTemplateColumns:e.style.gridTemplateColumns,gridTemplateRows:e.style.gridTemplateRows,width:e.style.width,height:e.style.height});for(e.unResolvedChildren=[],A=0,n=e.children&&e.children.length;A<n;A++)i=e.children[A],(0,r.getDisplayProperty)(i)&&(p(i)?this.compute(i):e.unResolvedChildren.push(i));(a=new B).set("domTree",e).set("parent",this).compute(),t<2&&this.gridLayoutEngine(function(e,t){var A,n,i,a,o,s,l,c,u,h,d=e.style,g=t.getConfig("rowTracks"),p=t.getConfig("colTracks"),f=t.getConfig("mapping"),m=d.gridTemplateRows,v=d.gridTemplateColumns;for(e.style.gridTemplateRows=C(m,g),e.style.gridTemplateColumns=C(v,p),n=0,a=(e.children||[]).length;n<a;n++)if(A=e.children[n],(0,r.getDisplayProperty)(A)){if(A.style.gridTemplateColumns=A.userGivenStyles.gridTemplateColumns,A.style.gridTemplateRows=A.userGivenStyles.gridTemplateRows,isNaN(A.userGivenStyles.width)){for(u=A.style.gridColumnStart,h=A.style.gridColumnEnd,u=f.col.nameToLineMap[u],h=f.col.nameToLineMap[h],i=u,s=0;i<h;i++)s+=p[i].calculatedStyle.baseSize;A.style.width=s}if(isNaN(A.userGivenStyles.height)){for(l=A.style.gridRowStart,c=A.style.gridRowEnd,l=f.row.nameToLineMap[l],c=f.row.nameToLineMap[c],i=l,o=0;i<c;i++)o+=g[i].calculatedStyle.baseSize;A.style.height=o}}return e}(e,a),2);return e};var i=n(A(253)),r=A(608),a=n(A(611)),o=A(609),s=A(612);function l(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,n)}return A}function c(e){for(var t=1;t<arguments.length;t++){var A=null!=arguments[t]?arguments[t]:{};t%2?l(Object(A),!0).forEach((function(t){(0,i["default"])(e,t,A[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(A)):l(Object(A)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(A,t))}))}return e}var u=["auto","none"],h=/minmax/,d=/(?:[^\s[\]()]+|\[[^[\]]*\]|\([^()]*\))+/g,g=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},p=function(e){var t=e.style||{},A=t.gridTemplateColumns,n=t.gridTemplateRows;return!/repeat\(/g.test(A)&&!/repeat\(/g.test(n)},f=function(e){return e.split(/\(|\)/g)[1].split(",").map((function(e){return e&&e.trim()}))},m=function(e,t){var A,n,i=g(t),a="width"===t?"col":"row";return e.map((function(e){return A=e.style["gridTemplate"+g("col"===a?"columns":"rows")],n="grid"===(0,r.getDisplayProperty)(e)&&/repeat\(/g.test(A)?f(A)[1]:e.style["min"+i+"Contribution"]||e.style[t]||"auto",{start:e[a+"Start"],end:e[a+"End"],size:n}}))},v=function(e,t,A){var n,i;for(n=t.x;n<A.x;n++)for(i=t.y;i<A.y;i++)e[n][i]=!0},b=function(e,t){var A=e.gridRowStart,n=e.gridRowEnd,i=e.gridColumnStart,r=e.gridColumnEnd;if(e.gridColumn){var a=e.gridColumn.split("/").map((function(e){return e.trim()}));i=a[0],r=a[1],i=t?t.col.nameToLineMap[i]:1,/span\s+\d+/g.test(r)&&(r=i+ +r.match(/span\s+(\d+)/)[1]),r=t?t.col.nameToLineMap[r]:1}if(e.gridRow){var o=e.gridRow.split("/").map((function(e){return e.trim()}));A=o[0],n=o[1],A=t?t.row.nameToLineMap[A]:1,/span\s\d+/g.test(n)&&(n=A+ +n.match(/span\s(\d+)/)[1]),n=t?t.row.nameToLineMap[n]:1}return{gridRowStart:A,gridRowEnd:n,gridColumnStart:i,gridColumnEnd:r}},B=function(){function e(){this.setup()}var t=e.prototype;return t.setup=function(){return this._tsa=new a["default"],this.props={},this._config={mapping:{}},this},t.set=function(e,t){return this.props[e]=t,this},t.getProps=function(e){return this.props[e]},t.getConfig=function(e){return this._config[e]},t.compute=function(e){var t=e||this.props.domTree;this._sanitizeTracks(t)._sanitizeItems(t)._inflateTracks()._assignCoordinatesToCells(t)},t._sanitizeTracks=function(e){void 0===e&&(e={});var t,A=e.style,n=A.gridTemplateRows,i=A.gridTemplateColumns,r=this._config,a=function(e){var t,A=1,n=1;return e.forEach((function(e){t=b(e.style),n=Math.max(isNaN(+t.gridColumnStart)?0:+t.gridColumnStart,n,isNaN(+t.gridColumnEnd-1)?0:+t.gridColumnEnd-1),A=Math.max(isNaN(+t.gridRowStart)?0:+t.gridRowStart,A,isNaN(+t.gridRowEnd-1)?0:+t.gridRowEnd-1)})),{maxRow:A,maxColumn:n}}(e.children),o=a.maxColumn,s=a.maxRow;return this.set("maxTracks",s),t=this._fetchTrackInformation(n),r.mapping.row={nameToLineMap:t.nameToLineMap,lineToNameMap:t.lineToNameMap},r.rowTracks=t.tracks,this.set("maxTracks",o),t=this._fetchTrackInformation(i),r.mapping.col={nameToLineMap:t.nameToLineMap,lineToNameMap:t.lineToNameMap},r.colTracks=t.tracks,this},t._fetchTrackInformation=function(e){void 0===e&&(e="none");var t,A,n,i,r,a,o=e.match(d),s=[{}],l={},c={};for(n=o.filter((function(e){return!e||"string"!=typeof e||!e.length||(A=e.length,"["===e[0]&&"]"===e[A-1])})),i=o.filter((function(e){return!!e&&(A=(e+"").toLowerCase().replace(/px|fr/,""),!(!(u.indexOf(A)>=0||h.test(A))&&isNaN(A)))})).map((function(e){return function(e){if("auto"===(e=e.trim()))return e;if(!isNaN(+e))return+e;if(h.test(e)){var t=e.split(/\(|\)/g)[1].split(",");return[t[0].trim(),t[1].trim()]}return e}(e)})),A=i.length,"none"===e&&(A=this.getProps("maxTracks")),t=0;t<A;t++)r=n[t]&&n[t].replace(/\[|\]/g,"").split(" ").filter((function(e){return e.length})).map((function(e){return e.trim()}))||[t+1+""],a=n[t+1]&&n[t+1].replace(/\[|\]/g,"").split(" ").filter((function(e){return e.length})).map((function(e){return e.trim()}))||[t+2+""],s.push({start:t+1,end:t+2,size:i[t]||"auto"}),c[t+1]=r,c[t+2]=a,r.forEach((function(e){return l[e]=t+1})),a.forEach((function(e){return l[e]=t+2})),l[t+1]=t+1,l[t+2]=t+2;return{tracks:s,nameToLineMap:l,lineToNameMap:c}},t._sanitizeItems=function(e){var t,A,n,i,r,a,o,s=e||this.props.domTree,l=s.children||[],u=this._config.mapping,h=s.style.gridAutoFlow||"row",d=Object.keys(u.row.lineToNameMap).length,g=Object.keys(u.col.lineToNameMap).length,p=[],f=[],m=[[]],B=[];for(r=1;r<=d;r++)m.push([]);for(r=0,o=l.length;r<o;r++)t=b(l[r].style,u),p.push(c(c({},l[r]),{},{rowStart:u.row.nameToLineMap[t.gridRowStart],rowEnd:u.row.nameToLineMap[t.gridRowEnd],colStart:u.col.nameToLineMap[t.gridColumnStart],colEnd:u.col.nameToLineMap[t.gridColumnEnd]})),n=p[r],v(m,{x:n.rowStart,y:n.colStart},{x:n.rowEnd,y:n.colEnd});if((f=p.filter((function(e){return!e.colStart||!e.rowStart})))&&"row"===h){for(r=1;r<d;r++)for(a=1;a<g;a++)m[r][a]||B.push({row:r,col:a});for(;f.length&&B.length;)n=f.shift(),A=B.shift(),n.rowStart=A.row,n.colStart=A.col,n.rowEnd=A.row+1,n.colEnd=A.col+1;if(i=Math.ceil(f.length/g)){for(;i--;)s.style.gridTemplateRows+="auto ",u.row.nameToLineMap[d+1]=d+1,u.row.nameToLineMap[d+2]=d+2,d++,m.push([]);for(s.style.gridTemplateRows=s.style.gridTemplateRows.trim(),B=[],r=1;r<=d;r++)for(a=1;a<=g;a++)m[r][a]||B.push({row:r,col:a});for(;f.length;)n=f.shift(),A=B.shift(),n.rowStart=A.row,n.colStart=A.col,n.rowEnd=A.row+1,n.colEnd=A.col+1}}return this._config.sanitizedItems=p,this},t._inflateTracks=function(){var e,t=this._config,A=t.sanitizedItems,n=t.colTracks,i=t.rowTracks,r=0,o=0,s=this.props.domTree,l=s.style||{},c=l.paddingStart,u=l.paddingEnd,h=l.paddingTop,d=l.paddingBottom,g=l.width,p=l.height,f=new a["default"];return isNaN(+g)||(g-=c+u),e=f.clear().set("tracks",n).set("items",m(A,"width")).set("containerSize",g||"auto").resolveTracks(),n.forEach((function(t,A){t.calculatedStyle=e[A],o+=e[A].baseSize||0})),this._solveUnresolvedChildren(),isNaN(+p)||(p-=h+d),e=f.clear().set("tracks",i).set("items",m(A,"height")).set("containerSize",p||"auto").resolveTracks(),i.forEach((function(t,A){t.calculatedStyle=e[A],r+=e[A].baseSize||0})),s.style.minHeightContribution=r,s.style.minWidthContribution=o,this},t._solveUnresolvedChildren=function(e){var t,A,n,i,r,a,o,l,c=((e||this.props.domTree).unResolvedChildren||[]).filter((function(e){return/repeat\(/g.test(e.style.gridTemplateColumns)||/repeat\(/g.test(e.style.gridTemplateRows)})),u=this._config,h=u.colTracks,d=u.mapping,g=this.getProps("parent"),p=[0];if(!c.length)return this;for(A=1,n=h.length;A<n;A++)p[A]=p[A-1]+h[A].calculatedStyle.baseSize;return c.forEach((function(e){a=f(e.style.gridTemplateColumns)[1],o=d.col.nameToLineMap[e.style.gridColumnStart],l=d.col.nameToLineMap[e.style.gridColumnEnd],i=p[l-1]-p[o-1],r={itemWidth:a,width:i},t=(0,s.repeatResolver)(e,r),e.style.gridTemplateColumns=t.gridTemplateColumns,e.style.gridTemplateRows=t.gridTemplateRows,g.gridLayoutEngine(e)})),this},t._assignCoordinatesToCells=function(e){var t,A,n,i,a,s,l,c,u,h=e||this.props.domTree,d=this._config,g=d.sanitizedItems,p=d.rowTracks,f=d.colTracks,m=h.style,v=m.justifyItems,b=m.alignItems,B=m.paddingStart,C=m.paddingTop,w=[B],y=[C];for(n=1,A=p.length;n<A;n++)w[n]=w[n-1]+p[n].calculatedStyle.baseSize;for(n=1,A=f.length;n<A;n++)y[n]=y[n-1]+f[n].calculatedStyle.baseSize;return h.layout={x:0,y:0,width:isNaN(h.style.width)?y[y.length-1]:h.style.width,height:isNaN(h.style.height)?w[w.length-1]:h.style.height},(h.children||[]).forEach((function(e,A){switch(t=g[A],i=y[t.colEnd-1]-y[t.colStart-1],a=w[t.rowEnd-1]-w[t.rowStart-1],s=isNaN(+e.style.width)?i:+e.style.width,l=isNaN(+e.style.height)?a:+e.style.height,v||e.style.justifySelf){case o.CENTER:c=y[t.colStart-1]+i/2-s/2;break;case o.END:c=y[t.colEnd-1]-s;break;case o.STRETCH:s=i,c=y[t.colStart-1];break;default:c=y[t.colStart-1]}switch(b||e.style.alignSelf){case o.CENTER:u=w[t.rowStart-1]+a/2-l/2;break;case o.END:u=w[t.rowEnd-1]-l;break;case o.STRETCH:l=a,u=w[t.rowStart-1];break;default:u=w[t.rowStart-1]}c+=(0,r.pluckNumber)(t.style.paddingStart,t.style.padding,0),u+=(0,r.pluckNumber)(t.style.paddingTop,t.style.padding,0),e.layout={x:c,y:u,x2:c+s,y2:u+l,width:s,height:l}})),this},e}(),C=function(e,t){void 0===e&&(e="");var A=(e.match(d)||[]).filter((function(e){return e&&!!e.trim()})),n="",i=1;return A.length&&!/repeat\(/.test(e)?A.forEach((function(e){u.indexOf(e)>-1||/[0-9]fr/.test(e)||h.test(e)||!isNaN(e)?(n+=t[i].calculatedStyle.baseSize+" ",i++):n+=e+" "})):t.forEach((function(e){isNaN(e.calculatedStyle.baseSize)||(n+=e.calculatedStyle.baseSize+" ")})),n.trim()}},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(253));function r(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,n)}return A}function a(e){for(var t=1;t<arguments.length;t++){var A=null!=arguments[t]?arguments[t]:{};t%2?r(Object(A),!0).forEach((function(t){(0,i["default"])(e,t,A[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(A)):r(Object(A)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(A,t))}))}return e}var o=function(e){return+e.replace(/fr/,"")},s=function(){function e(e,t,A){return void 0===e&&(e=[]),void 0===t&&(t=[]),void 0===A&&(A=600),this.clear(),this.set("tracks",e),this.set("items",t),this.set("containerSize",A),this}var t=e.prototype;return t.set=function(e,t){switch(this.props[e]=t,e){case"tracks":this._initTrackSize();break;case"items":this._initItems();break;case"containerSize":this.props[e]=isNaN(+t)?0:+t}return this},t.get=function(e){return this.props[e]},t._initTrackSize=function(e){var t,A,n,i,r,s,l,c=e||this.props.tracks||[],u=this._config,h=[{}];for(u.frTracks=[],u.intrinsicTracks=[],t=1,A=c.length;t<A;t++)n=c[t].size,r=1,Array.isArray(n)?(s=+n[0]||0,n[1].indexOf("fr")>0||n[0].indexOf("fr")>0?(l=Infinity,u.frTracks.push(t),i="minmax"):"auto"===n[1]||"auto"===n[0]?(l=Infinity,u.intrinsicTracks.push(t),i="minmax"):isNaN(+n[0])||isNaN(+n[1])||(l=Math.max(+n[0],+n[1]),s=Math.min(+n[0],+n[1]),u.intrinsicTracks.push(t),i="minmax")):isNaN(+n)?n.indexOf("fr")>0?(s=0,l=Infinity,u.frTracks.push(t),i="flex",r=o(n)):(s=0,l=Infinity,i="intrinsic",u.intrinsicTracks.push(t)):(s=l=+n,i="fixed"),h.push(a(a({},c[t]),{},{type:i,multiplier:r,baseSize:s,growthLimit:l}));return u.sanitizedTracks=h},t._initItems=function(e){var t,A,n,i,r=e||this.props.items||[],o=this._config,s=[],l=0;for(n=0,i=r.length;n<i;n++)isNaN(r[n].start)||isNaN(r[n].end)?o.autoFlow.push(r[n]):(s.push(a({},r[n])),A=s[l],l++,A.size=isNaN(A.size)?this._getParentSize(A):+A.size);for(s.sort((function(e,t){var A=e.end-e.start,n=t.end-t.start;return A===n?e.start-t.start:A-n})),n=0,t=i=s.length;n<i;n++)if(s[n].end-s[n].start>1){t=n;break}return this._config.nonSpanningItemStartIndex=t,this._config.sanitizedItems=s},t._getParentSize=function(e){var t=this._config.sanitizedTracks,A=0;return t.filter((function(t){return t.start>=e.start&&t.end<=e.end})).forEach((function(e){return A+=e.baseSize})),A||0},t.resolveTracks=function(){return this._placeNonSpanningItems()._placeSpanningItems()._distributeFreeSpace(),this._config.sanitizedTracks},t._placeNonSpanningItems=function(){var e,t,A=this._config,n=A.sanitizedItems,i=A.sanitizedTracks,r=A.nonSpanningItemStartIndex;return n.slice(0,r).forEach((function(A){t=A.start,"fixed"!==(e=i[t]).type&&(e.baseSize=Math.max(e.baseSize,A.size),e.growthLimit=Math.max(e.growthLimit,e.baseSize))})),this},t._placeSpanningItems=function(){var e,t,A,n,i,r,a,o=this._config,s=o.sanitizedItems,l=o.sanitizedTracks,c=o.nonSpanningItemStartIndex,u=o.frTracks,h=s.slice(c),d=[0];if(!h.length)return this;for(r=1,a=l.length;r<a;r++)d[r]=d[r-1]+(l[r].baseSize||0);return h.forEach((function(a){if(e=d[a.end-1]-d[a.start-1],t=Math.max(0,a.size-e)){for(r=a.start,i=!1,n=0;r<a.end;r++)u.indexOf(r)>=0&&(i=!0),"fixed"!==l[r].type&&n++;if(n&&!i)for(A=t/n,r=a.start;r<a.end;r++)"fixed"!==l[r].type&&(l[r].baseSize+=A)}})),this},t._distributeFreeSpace=function(){var e=this._config,t=e.frTracks,A=e.intrinsicTracks,n=e.sanitizedTracks,i=this.props.containerSize,r=0;return n.forEach((function(e){return r+=e.baseSize||0})),r<i&&(t.length?(t.forEach((function(e,A){t[A]=n[e]})),t.forEach((function(e){return r-=e.baseSize})),function a(e,t,A){var n,i,r=0;if(e.length){if(e.forEach((function(e){return r+=e.multiplier})),n=(A-t)/r,(i=e.filter((function(e){return e.baseSize<=e.multiplier*n}))).length<e.length)return e.filter((function(e){return e.baseSize>e.multiplier*n})).forEach((function(e){return t+=e.baseSize})),a(i,t,A);i.forEach((function(e){return e.baseSize=e.multiplier*n}))}}(t,r,i)):A.length&&(A.forEach((function(e,t){A[t]=n[e]})),function(e,t,A){var n,i,r,a,o,s,l,c=0;if(e.length){for(n=A-t,(o=e.filter((function(e){return"minmax"===e.type&&e.growthLimit!==Infinity}))).sort((function(e,t){return e.growthLimit-e.baseSize-(t.growthLimit-t.baseSize)})),a=o.length;c<a&&n;)for(i=n/(o.length-c||1),r=0,a=o.length;r<a;r++)s=o[r].growthLimit,n-=(l=Math.min(i+o[r].baseSize,s))-o[r].baseSize,o[r].baseSize=l,s!==l||o[r].frozen||(o[r].frozen=!0,c++);e=e.filter((function(e){return"minmax"===e.type&&e.growthLimit===Infinity||"minmax"!==e.type})),i=n/e.length,e.forEach((function(e){return e.baseSize+=i}))}}(A,r,i))),this},t.clear=function(){return this.props={},this._config={frTracks:[],intrinsicTracks:[],autoFlow:[]},this},e}();t["default"]=s},function(e,t,A){"use strict";t.__esModule=!0,t.repeatResolver=function(e,t){var A,n,i,r=e.children,a=0,o=0,s="",l="",c=0,u=t.itemWidth,h=t.width;for(h=isNaN(+h)?0:+h,r.forEach((function(e){return c=Math.max(c,+e.style.height||0)})),a+=u=+u,s+=u+" ",o=1,n=1,i=r.length;n<i&&!(a+u>h);n++)a+=u,s+=u+" ";for(o=n,A=Math.ceil(i/o);A--;)l+=c+" ";return{gridTemplateColumns:s.trim(),gridTemplateRows:l.trim()}}},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=t.drawLabel=void 0;var i=n(A(268)),r=n(A(572)),a=A(254),o=A(262),s=n(A(614)),l=a.preDefStr.visibleStr,c=a.preDefStr.hiddenStr,u=a.preDefStr.POSITION_MIDDLE,h=a.preDefStr.POSITION_START,d=a.preDefStr.POSITION_END,g=Math,p=g.min,f=g.max,m=function(e,t){var A,n,i,r,o,s,g,m,v,b,B,C,w,y,x,F,E,S,Q,k,L,U,I,T,N=this.getFromEnv("chart"),D=this.getFromEnv("toolTipController"),P=N.config,M=this.config,O=M.JSONData,H=this.getFromEnv("animationManager"),_=N.getChildren("canvas")[0].config,R=N.config.dataLabelStyle,V=O.data,G=N.config.categories,K=N.config.is3D,z=N.config.isstacked,W=G&&G.length,j=V&&V.length,X=this.getData(),Y=N.getFromEnv("smartLabel"),J=_.yDepth,q=_.xDepth,Z=N.getFromEnv("number-formatter"),$=a.BLANKSTRING,ee=P.placevaluesinside,te=P.canvasWidth,Ae=P.canvasLeft,ne=this.getContainer("labelGroup"),ie=this.getSkippingInfo&&this.getSkippingInfo(),re=ie&&ie.skippingApplied,ae=ie&&ie.labelDraw||[],oe=ae.length,se=(0,a.pluckNumber)(e,0),le=(0,a.pluckNumber)(t,re?oe:W<j?W:j),ce=oe===Math.abs(le-(se+1)),ue=this.getState("visible"),he=function(){this.hide()};for(ue&&ne.show(),Y.setStyle(R),o=se;o<le;o++)E=(L=(n=X[r=re&&ce?ae[o]:o])&&n.config)&&L.setValue,void 0!==n&&null!=E&&!0!==L.labelSkip?(g=n.graphics)&&(s=V[r],y=n._yPos,x=n._xPos,E=Z.getCleanValue(s.value),w=(0,a.pluckNumber)(E)<0,m=n._height,F=n._width,v=L.valuePadding+2,S=z?u:w?ee?h:d:ee?d:h,$=L.displayValue,I=g.label,L.showValue&&null!=$&&$!==a.BLANKSTRING&&null!==E?(i={text:$,fill:(A=L.dataLabelStyle).color,"text-bound":[A.backgroundColor,A.borderColor,R.borderThickness,R.borderPadding,R.borderRadius,R.borderDash],"line-height":R.lineHeight,visibility:this.getState("visible")?l:c},Q=Y.getOriSize($).width,Q+=v,k=v,b=y+.5*m,B=x+(w?0:F),C=w?x-Ae:Ae+te-(x+F),z?(B=f(Ae+.5*Q,B+=.5*(w?F:-F)),B=p(Ae+te-.5*Q,B),B-=K?q:0,b+=K?J:0):ee?F>=Q?(B+=w?k:-k,K&&(b+=J,B-=q)):Q<C?(B+=w?-k:k,S=w?d:h,K&&w&&(B-=q)):(w?(B=x+F+f(Q-x-F+Ae,0)-k,S=d):(B=x-f(Q-(Ae+te-x),0)+k,S=h),K&&(B-=q,b+=J)):C>=Q?(B+=w?-k:k,K&&w&&(B-=q,b+=q)):(B+=w?k+Q:-(k+Q),K&&(B-=q,b+=J)),(B>Ae+te||B<Ae)&&(B=Ae+4,S=h),i["text-anchor"]=S,i.x=B,i.y=b,i.opacity=ue?1:0,(U=H.setAnimation({el:I||"text",container:ne,component:this,attr:i,callback:!ue&&he,label:"plotLabel"})).outlineText(M.showTextOutline,i.fill),P.showtooltip&&U.abbrArr&&U.abbrArr.length&&D.enableToolTip(U,void 0),I||(g.label=U)):g.label&&(g.label=H.setAnimation({el:g.label,component:this}))):((T=n&&n.graphics)&&T.label&&T.label.hide(),L&&delete L.labelSkip);this.config.labelDrawn=!0};t.drawLabel=m,(0,o.addDep)({name:"barAnimation",type:"animationRule",extension:s["default"]});var v=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var A=t.prototype;return A.getType=function(){return"dataset"},A.getName=function(){return"bar2D"},A.drawLabel=function(){var e=this.config;m.call(this,e.scrollMinValForLabel,e.scrollMaxValForLabel)},t}(r["default"]);t["default"]=v},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=A(254),r={"initial.dataset.bar2D":function(){var e=this,t=e.getFromEnv("chart"),A=t.config.yDepth||0,n=e.getFromEnv("yAxis");return{"rect.appearing":function(r){var a,o,s,l,c=n.getPixel(n.getAxisBase())+(t.isBar?-A:A),u=r.index,h=e.components.data[u],d=r.attr;return a=d.x,o=d.width,l=Math.sign(a+o/2-c),s=1===l?a:a+o,h._posWRT0=l,[{initialAttr:function(){var e={};return e.x=s,e.width=0,e.opacity=0,e},finalAttr:{opacity:1},startEnd:function(){var t=r.length;return i.animHelperFN.getTimeByValue(i.animHelperFN.animByWeight(u,t,.6),{startPx:c,endPx:1===l?e.config.yAxisMaxPixel:e.config.yAxisMinPixel},{startPx:s,endPx:1===l?d.x+d.width:d.x})},hookFn:function(){this.attr({opacity:1})},effect:"linear",slot:"plot"}]},"plotLabel.appearing":function(){return[{initialAttr:{opacity:0},slot:"final"}]},"*":null}},"legendInteraction.dataset.bar2D":n(A(573))["default"]["legendInteraction.dataset.column"]};t["default"]=r},,,,,,,,function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t.trimData=Y,t.hideFn=t.plotClickHandler=t.labelClickFn=t.plotGraphicClick=t["default"]=void 0;var i,r=n(A(253)),a=n(A(272)),o=n(A(268)),s=n(A(590)),l=A(572),c=A(254),u=A(262),h=n(A(623)),d=n(A(362)),g=A(266),p=n(A(348)),f=A(624);function m(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,n)}return A}function v(e){for(var t=1;t<arguments.length;t++){var A=null!=arguments[t]?arguments[t]:{};t%2?m(Object(A),!0).forEach((function(t){(0,r["default"])(e,t,A[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(A)):m(Object(A)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(A,t))}))}return e}var b=(0,u.getDep)("redraphael","plugin"),B=window,C=B.document,w=!c.hasSVG,y="createTouch"in C,x=y&&!(B.navigator.maxTouchPoints||B.navigator.msMaxTouchPoints),F=Math,E=F.atan2,S=F.sin,Q=F.cos,k=F.max,L=F.min,U=F.abs,I=F.floor,T=F.PI,N=180/F.PI,D=2*T,P=function(e){var t,A,n,i=[[],[],[],[]];for(t=0,A=e.length;t<A;t++)n=(0,f.getCleanAngle)(e[t].point.config.angle),i[(0,f.getQuadrant)(n)].push({point:e[t].point,angle:n});return i},M=function(e,t,A){return A.getFromEnv("animationManager").setAnimation({el:"group",attr:{name:e},container:t,component:A,label:"group"})},O=function(e,t){var A=t?1:i;return(0,c.toRaphaelColor)({color:(0,c.getFirstColor)(e.color,A),alpha:(0,c.getFirstAlpha)(e.alpha,A)})},H=function(e,t,A,n,i){return E((t-A[1]-n.top)/i,e-A[0]-n.left)},_=function(e,t){return function(A){!t.data("plotItem").seriesData.isRotating&&e.plotGraphicClick.call(t,A)}},R=function(e){return function(t){var A,n,i,r,a,o,s,l,c,u,h,d,g,p=this.element||this,f=p.plotItem||p.data("plotItem"),m=p.data("eventArgs")||{},v=f.chart,b=e.getFromEnv("animationManager"),B=f.index,C=e.config,w=C.enableMultiSlicing,F=e.components.data[B],E=F.graphics,S=F.config,Q=S.doNotSlice,k=S.slicedTranslation;if(!C.isRotating&&t&&v.plotEventHandler(p,t),!(C.isRotating||C.singletonCase||Q)&&v.config&&(n=!w&&e.sliceInOtherPies(B),!(o=S.sliced)||!n)){if(y&&!x){if(h=(new Date).getTime(),f.lastSliceTimeStamp&&h-f.lastSliceTimeStamp<400)return;f.lastSliceTimeStamp=h}return i=E.element,c=E.connector,r=E.label||E.dataLabel,a=E.innerLabel,k="object"==typeof k?"t"+k:k,u=S.connectorPath,s=(o?-1:1)*S.transX,l=(o?-1:1)*S.transY,d=i.data("eventArgs")||i.data("eventArgs",{}),v.fireChartInstanceEvent("slicingStart",{slicedState:o,dataIndex:"index"in m&&m.index,data:e.getPlotData(B,o)}),b.setAnimationState("slicing"),b.setAnimation({el:i,attr:{transform:o?"t0,0":k},component:e,label:"slice",callback:function(){v.fireChartInstanceEvent("slicingEnd",{slicedState:o,dataIndex:"index"in m&&m.index,data:e.getPlotData(B,!o)})}}),r&&r.x&&((A=r.data("textPos"))||(A=r.data("textPos",{x:r.x,y:r.y})),b.setAnimation({el:r,attr:{x:r.x+(o?0:s),y:r.y+(o?0:l)},label:"label-sliced",component:e}),A.x=r.x+(o?0:s)),a&&b.setAnimation({el:a,attr:{x:a.x+(o?0:s),y:a.y+(o?0:l)},label:"label-sliced",component:e}),c&&u&&((g=u.slice(0))[1]+=s,g[2]+=l,g[4]+=s,g[5]+=l,g[6]+=s,g[7]+=l,b.setAnimation({el:c,attr:{path:g},label:"connector-sliced",component:e}),S.connectorPath=g),d.isSliced=o=S.sliced=!o,o}}},V=function(e){var t=e.getFromEnv("animationManager");return{plotDragMove:function(t){var A,n=this.data("plotItem"),i=n.chart,r=t.data,a=r[0],o=r[1],s=r[2],l=r[3],c=n.seriesData,u=e.config;isNaN(a)||isNaN(o)||!u.enableRotation||c.singletonCase||c.isRightClicked||(A=H.call(t,s,l,c.pieCenter,c.chartPosition,1),c.dragStartAngle===A||c.isRotating||(c.isRotating=!0,i.fireChartInstanceEvent("RotationStart",{startingAngle:c._rotationalStartAngle=i._startingAngle()})),u.startAngle+=A-c.dragStartAngle,c.dragStartAngle=A,c.moveDuration=0,u.updateInited||(u.updateInited=!0,i.addJob("pie_batch_rotate",i._batchRotate||(i._batchRotate=function(){e._rotate(),u.updateInited=!1}),g.priorityList.draw,{oneInAFrame:!0})))},plotDragStart:function(t){var A,n=this.data("plotItem"),i=n.chart,r=n.seriesData,a=e.config,o=(0,c.pluckNumber)(t.button,t.originalEvent.button),s=-a.startAngle*N,l=t.data[0],u=t.data[1];r.isRightClicked=!(c.touchEnabled||0===o||1===o),a.enableRotation&&!r.isRightClicked&&(r.isRotating=!1,r.chartPosition=function(e,t){var A,n={left:0,top:0},i=e;if(i.getBoundingClientRect)A=i.getBoundingClientRect(),n.top=A.top+(B.pageYOffset||C.scrollTop||0)-(C.clientTop||0),n.left=A.left+(B.pageXOffset||C.scrollLeft||0)-(C.clientLeft||0);else for(;i;)n.left+=i.offsetLeft||0,n.top+=i.offsetTop||0,i===C.body||i===C.documentElement||t||(n.left-=i.scrollLeft||0,n.top-=i.scrollTop||0),i=i.offsetParent;return n}(i.getFromEnv("chart-container")),A=H.call(t,l,u,r.pieCenter,r.chartPosition,1),r.dragStartAngle=A,r.startingAngleOnDragStart=s)},plotDragEnd:function(){var t=this.data("plotItem"),A=t.chart,n=A.getChildren("dataset")[0].config,i=A.config,r=t.seriesData,a=-n.startAngle*N;r.isRightClicked||(i.clicked=!0,A.disposed||e._rotate(),delete i.clicked,r.isRotating&&(setTimeout((function(){r.isRotating=!1}),0),A.fireChartInstanceEvent("RotationEnd",{startingAngle:(0,c.normalizeAngle)(a,!0),changeInAngle:a-n.startingAngleOnDragStart})),!r.isHovered&&e.config.handlersAPI.onPlotHover(this,!1))},plotRollOver:function(e){var t=this.plotItem||this.data("plotItem"),A=t.chart,n=t.seriesData,i=A.getDatasets()[0],r=i.getFromEnv("animationManager");n.isRotating||(A.plotEventHandler(this,e,"DataPlotRollOver"),i.config.handlersAPI.onPlotHover(this,!0,r)),i.fireEvent("datasetrollover",t),n.isHovered=!0},plotRollOut:function(e){var t=this.plotItem||this.data("plotItem"),A=t.chart,n=t.seriesData,i=A.getDatasets()[0];n.isRotating||(A.plotEventHandler(this,e,"DataPlotRollOut"),i.config.handlersAPI.onPlotHover(this,!1)),i.fireEvent("datasetrollout",t),n.isHovered=!1},onPlotHover:function(A,n){var i=A.data("plotItem"),r=i.center,a=i.rolloverProperties||{},o=n?a.color:i.color,s=n?a.borderWidth:i.borderWidth,l=n?a.borderColor:i.borderColor;o&&(n&&(o.cx=r[0],o.cy=r[1],o.r=i.radius),a.enabled&&t.setAnimation({el:i.graphic,component:e,attr:{fill:(0,c.toRaphaelColor)(o),"stroke-width":s,stroke:l}}))}}},G=function(e,t){return e.point.config.value-t.point.config.value},K=function(e,t){return e.angle-t.angle},z=function(e,t){t&&e.getFromEnv("linkClickFN")&&e.getFromEnv("linkClickFN").call({link:t},!0)},W=function(){this.remove()},j=[1,1,-1,-1],X=[1,-1,-1,1];function Y(e){if(this.config.JSONData){var t,A,n,i,r=this.getFromEnv("legend"),a=this.config.JSONData,o=a.data&&a.data.length,s=e.data&&e.data.length||0,l=o-s;for(l>0&&this.removeData(s,l,!1),t=0,A=(n=this.components.removeDataArr||[]).length;t<A;t++)(i=n[t].config).legendItemId&&r.disposeItem(i.legendItemId)}}t.hideFn=function(){this.hide()},t.labelClickFn=z,t.plotGraphicClick=R,t.plotClickHandler=_,(0,u.addDep)({name:"pie2dAnimation",type:"animationRule",extension:h["default"]}),(0,d["default"])(b);var J=function(e){function t(){var t;return(t=e.call(this)||this).plotGraphicClick=R((0,a["default"])(t)),t}(0,o["default"])(t,e);var A=t.prototype;return A.getType=function(){return"dataset"},A.getName=function(){return"pie2D"},A.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.doughnutradius=0},A.configureAttributes=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,A,n,r,a,o=this.getFromEnv("chart"),s=o.config,u=this.config,h=this.config.JSONData,d=this.getFromEnv("chart-attrib"),g=o.config.is3D,p=/pie/.test(this.getName());u.handlersAPI=V(this),this.setState("visible",1===(0,c.pluckNumber)(this.config.JSONData.visible,!Number(this.config.JSONData.initiallyhidden),1)),(0,c.parseConfiguration)({},this.config,o&&o.config),a=u.enableAnimation=(0,c.pluckNumber)(d.animation,d.defaultanimation,1),u.animation=!!a&&{duration:1e3*(0,c.pluckNumber)(d.animationduration,d.moveduration,1)},u.transposeAnim=!(!a&&!(0,c.pluckNumber)(u.transposeanimation,1))&&{duration:1e3*(0,c.pluckNumber)(d.transposeanimduration,.2)},u.showPlotBorder=(0,c.pluckNumber)(d.showplotborder,1),u.usePattern=(0,c.pluckNumber)(s.usePattern,0),u.patternType=l.PATTERN_TYPES.includes(h.patterntype)?h.patterntype:s.patternType,u.patternDensity=(0,c.pluckNumber)(h.patterndensity,s.patternDensity),u.patternAlpha=(0,c.pluckNumber)(h.patternalpha,s.patternAlpha),u.patternBgColor=(0,c.pluck)(h.patternbgcolor,u.patternBgColor),u.showHoverEffect=(0,c.pluckNumber)(d.plothovereffect,d.showhovereffect,i),u.usePattern&&(u.showHoverEffect=0),u.showTooltip=(0,c.pluckNumber)(d.showtooltip,1),u.toolText=(0,c.getValidValue)((0,c.parseUnsafeString)((0,c.pluck)(h.plottooltext,d.plottooltext),!1)),r=u.enableMultiSlicing=(0,c.pluckNumber)(d.enablemultislicing,1),A=u.use3DLighting=(0,c.pluckNumber)(d.use3dlighting,1),u.usePattern&&(A=u.use3DLighting=0),t=u.radius3D=A?(0,c.pluckNumber)(d.radius3d,90):100,u.showZeroPies=(0,c.pluckNumber)(d.showzeropies,1),u.showPercentInToolTip=(0,c.pluckNumber)(d.showpercentintooltip,1),u.showLabels=(0,c.pluckNumber)(d.showlabels,1),u.showTextOutline=(0,c.pluckNumber)(d.textoutline,0),u.labelFontColor=(0,c.pluck)(h.labelfontcolor,d.labelfontcolor,s.labelfontcolor),u.labelFont=(0,c.pluck)(h.labelfont,d.labelfont,s.basefont),u.showValues=(0,c.pluckNumber)(h.showvalues,d.showvalues,1),u.showPercentValues=(0,c.pluckNumber)(d.showpercentvalues,d.showpercentagevalues,0),n=u.toolTipSepChar=(0,c.pluck)(d.tooltipsepchar,d.hovercapsepchar,c.COMMASPACE),u.labelSepChar=(0,c.parseUnsafeString)((0,c.pluck)(d.labelsepchar,n)),u.pieBorderColor=(0,c.pluck)(d.plotbordercolor,d.piebordercolor),u.pieBorderAlpha=(0,c.pluckNumber)(d.plotborderalpha,d.pieborderalpha),u.pieBorderThickness=u.showPlotBorder?(0,c.pluckNumber)(d.plotborderthickness,d.pieborderthickness,s.plotborderthickness,1):0,u.plotDashLen=(0,c.pluckNumber)(d.plotborderdashlen,5),u.plotDashGap=(0,c.pluckNumber)(d.plotborderdashgap,4),u.showValueInLegend=(0,c.pluckNumber)(d.showvalueinlegend,0),u.showLabelInLegend=(0,c.pluckNumber)(d.showlabelinlegend,1),u.valueBeforeLabelInLegend=(0,c.pluckNumber)(d.valuebeforelabelinlegend,0),u.showValueAsPercentInLegend=(0,c.pluckNumber)(d.showvalueaspercentinlegend,1),u.showValuesInLegend=(0,c.pluckNumber)(d.showvaluesinlegend,1),u.legendSepChar=(0,c.pluck)(d.legendsepchar,", "),u.showvalues=(0,c.pluckNumber)(d.showvalues,1),u.chartPosition=(0,c.getPosition)(o.getFromEnv("chart-container"),o),u.timerThreshold=30,t>100&&(t=100),t<0&&(t=0),u.showLegend=(0,c.pluckNumber)(d.showlegend,0),u.reverselegend=!(0,c.pluckNumber)(d.reverselegend,0),o.config.is3D=g,u.pieYScale=(0,c.pluckNumber)(d.pieyscale,40),u.pieYScale<1&&(u.pieYScale=1),u.pieYScale>=100&&(u.pieYScale=80),u.pieYScale/=100,u.pieSliceDepth=(0,c.pluckNumber)(d.pieslicedepth,15),u.pieSliceDepth<1&&(u.pieSliceDepth=1),u.managedPieSliceDepth=u.pieSliceDepth,u.enableMultiSlicing=!!r,u.startAngle=(0,c.pluckNumber)(d.startingangle,0)%360*(-T/180),u.usePerPointLabelColor=d.colorlabelsfromplot===c.ONESTRING,u.reversePlotOrder=(0,c.pluckNumber)(d.reverseplotorder,0),u.animateClockWise=(0,c.pluckNumber)(d.animateclockwise,u.reversePlotOrder),u.showShadow=(0,c.pluckNumber)(d.showshadow,1),u.innerLabelRadiusPercent=(0,c.pluckNumber)(d.innerlabelradiuspercent,67)/100,u.minAngleForValue=(0,c.pluckNumber)(d.minangleforvalue,0)*(T/180),u.minAngleForLabel=(0,c.pluckNumber)(d.minangleforlabel,0)*(T/180),u.singletonCase=1===h.data.length,u.labelPosition=(0,c.pluck)(d.labelposition,u.singletonCase&&p?"inside":"outside").toLowerCase(),u.valuePosition=(0,c.pluck)(d.valueposition,u.singletonCase&&p?"inside":"outside").toLowerCase(),u.valueTotal=0,this._setConfigure(),s.showLegend&&this._addLegend()},A.trimData=function(e){Y.call(this,e)},A._parseDisplayProperties=function(e,t){var A,n,r,a,o,s,l,u,h,d,g,p,f=c.BLANKSTRING,m=this.getFromEnv("chart"),v=this.getFromEnv("number-formatter"),b=m.getFromEnv("chart-attrib"),B=this.config,C=(0,c.pluckNumber)(t.y,v.getCleanValue(e.value,!0)),w=B.valueTotal,y=B.showLabels,x=(0,c.parseUnsafeString)((0,c.pluck)(t.seriesName,e.label,e.name,c.BLANKSTRING)),F=B.showPercentValues,E=B.showPercentInToolTip,S=B.labelSepChar,Q=B.toolTipSepChar,k=B.showTooltip;A=(0,c.getValidValue)((0,c.parseUnsafeString)((0,c.pluck)(e.tooltext,B.toolText),!1)),n=t.pValue=v.percentValue(C/w*100),a=t.value=v.dataLabels(C)||c.BLANKSTRING,h=t.showLabel=(0,c.pluckNumber)(e.showlabel,y),d=t.showValue=(0,c.pluckNumber)(e.showvalue,B.showValues),t.labelFontColor=(0,c.pluck)(e.labelfontcolor,B.labelFontColor),t.labelFont=(0,c.pluck)(e.labelfont,B.labelFont),o=t.labelText=1===h?x:c.BLANKSTRING,s=t.valueText=1===d?1===F?n:a:c.BLANKSTRING,t.legendValueText=1===B.showValuesInLegend?1===B.showValueAsPercentInLegend?n:a:c.BLANKSTRING,r=E?n:a,l=(0,c.getValidValue)((0,c.parseUnsafeString)(e.displayvalue)),t.labelPosition=(0,c.pluck)(e.labelposition,B.labelPosition).toLowerCase(),t.valuePosition=(0,c.pluck)(e.valueposition,B.valuePosition).toLowerCase(),g=(0,c.pluckNumber)(e.minangleforlabel),isNaN(g)?t.minAngleForLabel=B.minAngleForLabel:t.minAngleForLabel=g%360*(T/180),p=(0,c.pluckNumber)(e.minangleforvalue),isNaN(p)?t.minAngleForValue=B.minAngleForValue:t.minAngleForValue=p%360*(T/180),t.innerLabelRadiusPercent=(0,c.pluckNumber)(e.innerlabelradiuspercent,B.innerLabelRadiusPercent),u=(0,c.pluck)(l,x+S+(F?n:a),c.BLANKSTRING),l!==i&&d?(s=t.labelText=l,t.valueText=c.BLANKSTRING):s=s!==c.BLANKSTRING&&o!==c.BLANKSTRING?o+S+s:(0,c.pluck)(o,s),k&&(f=A!==i?(0,c.parseTooltext)(A,[1,2,3,5,6,7,14,24,25],{formattedValue:a,label:x,yaxisName:(0,c.parseUnsafeString)(b.yaxisname),xaxisName:(0,c.parseUnsafeString)(b.xaxisname),percentValue:n,sum:v.dataLabels(w),unformattedSum:w},e,b):(f=x)!==c.BLANKSTRING?f+Q+r:r),t.displayValue=s,t.displayValueArgs=u,t.toolText=f,t.seriesName=x,t.categoryLabel=x,t.id=e.id?e.id:x},A._isStyled=function(e){if(this.getFromEnv("chart").config.usedataplotcolorforlabels||e.labelbordercolor||e.labelbgcolor||e.labelborderthickness||e.labelborderalpha||e.labelalpha||e.labelfont||e.labelfontsize||e.labelfontcolor||e.labelfontalpha||e.labelalpha||e.labelfontbold||e.labelfontitalic||e.labelborderpadding||e.labelborderradius||e.labelbgalpha||e.labelborderdashed||e.labelborderdashlen||e.labelborderdashgap)return!0},A._setConfigure=function(e,t){var A,n,r,a,o,s,u,h,d,g,f,m,v,b,B,C,w,y,x,F=this.components,E=F.removeDataArr=F.removeDataArr||[],S=this.getFromEnv("chart"),Q=S.getFromEnv("dataSource").chart,L=S.config,U=this.config,I=this.config.JSONData,T=(e||I).data,N=T&&T.length,D=U.showZeroPies,P=U.valueTotal||0,M=[],O=(0,c.pluckNumber)(Q.plotborderdashed,0),H=this.components.data||(this.components.data=[]),_=this.getFromEnv("number-formatter"),R=this.getFromEnv("color-manager"),V=U.labelInLeg,G=U.valInLeg,K=U.pieBorderThickness,z=U.reversePlotOrder,W=U.radius3D,j=U.enableMultiSlicing,X=U.lastSlicedid||0,Y=(0,c.pluckNumber)(Q.plotBorderDashed,5),J=(0,c.pluckNumber)(Q.plotborderdashgap,4),q=(0,c.pluckNumber)(Q.valuebeforelabelinlegend,0),Z=(0,c.pluckNumber)(Q.showvalueaspercentinlegend,1),$=0,ee=[],te=(0,c.pluck)(Q.legendsepchar,", ");for(L.dataLabelStyle=c.parsexAxisStyles.apply(this,[{},{},Q,L.dataLabelStyle,r]),A=0;A<N;A+=1)b=T[A],null===(w=_.getCleanValue(b.value,!0))||!D&&0===w?$+=1:(M.push(b),ee.push(A),P+=w);if(!U.singletonCase&&(U.singletonCase=N-$==1),$&&H.length>N-$)for(A=H.length-1;$>0;A-=1,$-=1)H[A]&&(y=(b=H[A]).config,E.push(b),y.y=null);for(0===P&&(M=[]),U.valueTotal=P,U.dataLabelCounter=0,L.allPlotSliceEnabled=L.enableslicing,A=(N=M.length)-1;A>=0;A-=1)B=A,e?(x=M[A],b=t!==i?H[B=t+A]:H[B=H.length-N+A]):(b=H[A]||(H[A]={graphics:{},config:{}}),x=M[A]),(C=b&&b.config)||(C=H[B].config={}),b.graphics||(H[B].graphics={}),C.y=w=_.getCleanValue(x.value,!0),C.seriesName=n=(0,c.parseUnsafeString)((0,c.pluck)(x.label,x.name,c.BLANKSTRING)),C.labellink=(0,c.pluck)(x.labellink,Q.labellink),r=(0,c.pluck)(x.color,R.getPlotColor(ee[A])),r=(0,c.hashify)(r),a=(0,c.pluck)(x.alpha,Q.plotfillalpha,c.HUNDREDSTRING),s=(o=C.borderConfig=this._parseBorderConfig(r,a,x)).setPlotBorderColor,u=o.setPlotBorderAlpha,h={opacity:k(a,u)/100},(f=Boolean((0,c.pluckNumber)(x.issliced,Q.issliced,0)))&&(j||(-1!==X&&(H[H.length-X-1].sliced=!1),U.lastSlicedid=A),U.preSliced=f),C.patternType=l.PATTERN_TYPES.includes(x.patterntype)?x.patterntype:U.patternType,C.patternAngle=(0,c.pluckNumber)(x.patternangle,Q.patternangle,C.patternType===l.PATTERN_TYPES[0]?40:0),C.patternDensity=(0,c.pluckNumber)(x.patterndensity,U.patternDensity),C.patternSize=(0,c.pluckNumber)(x.patternsize,C.patternType===l.PATTERN_TYPES[0]?2:4),C.patternAlpha=(0,c.pluckNumber)(x.patternalpha,U.patternAlpha),C.patternBgColor=(0,c.pluck)(x.patternbgcolor,U.patternBgColor),v=(m=(0,c.pluckNumber)(x.dashed,O))?(0,c.getDashStyle)((0,c.pluck)(x.dashlen,Y),(0,c.pluck)(x.dashgap,J),K):"none",this._parseDisplayProperties(x,C),d=V?n:c.BLANKSTRING,G&&(g=Z?_.legendPercentValue(w/P*100):_.legendValue(w),d=q?g+(d&&te+d):(d&&d+te)+g),U.dataLabelCounter+=1,this._isStyled(x)?C.style=c.parsexAxisStyles.apply(this,[x,{},Q,L.dataLabelStyle,r]):C.style&&delete C.style,C.showInLegend=d!==c.BLANKSTRING,C.isVisible=!0,C.name=d,C.shadow=h,C.setColor=r,C.setAlpha=a,C.color=(0,p["default"])(r,a,W,U.doughnutradius),C._3dAlpha=a,C.borderColor=(0,c.convertColor)(s,u),C.borderWidth=K,C.link=(0,c.getValidValue)(x.link),C.sliced=f,C.dashStyle=v,C.setBorderDashed=m,(C.doNotSlice=(0,c.pluck)(x.enableslicing,L.enableslicing)!==c.ONESTRING)||L.allPlotSliceEnabled!==c.ZEROSTRING||(L.allPlotSliceEnabled=c.ONESTRING),this._parseHoverEffectOptions(A),C.centerLabelConfig=void 0,C.radius3D=W;z&&H&&H.reverse(),U.dataArr=M,U.enableRotation=H.length>1?(0,c.pluckNumber)(Q.enablerotation,1):0},A._parseHoverEffectOptions=function(e){var t,A,n,r,a,o,s,l,u,h,d=this.getFromEnv("chart").getFromEnv("dataSource").chart,g=this.config,p=this.components.data[e].config,f=this.config.JSONData,m=f.data[e],v=p.setColor,b=p._3dAlpha,B=g.radius3D,C=p.borderConfig,w=C.setPlotBorderAlpha,y=C.setPlotBorderColor,x=g.setBorderWidth,F=g.usePattern?0:(0,c.pluckNumber)(p.hovereffect,g.showHoverEffect),E=p.hoverEffects={enabled:F};if(F!==i||g.usePattern||(F=E.enabled=(0,c.pluck)(m.hovercolor,f.hovercolor,d.plotfillhovercolor,m.hoveralpha,f.hoveralpha,d.plotfillhoveralpha,m.borderhovercolor,f.borderhovercolor,d.plotborderhovercolor,m.borderhoveralpha,f.borderhoveralpha,d.plotborderhoveralpha,d.plotfillhoveralpha,m.borderhoverthickness,f.borderhoverthickness,d.plotborderhoverthickness,i)!==i),F){if(t=(0,c.pluckNumber)(m.highlightonhover,f.highlight,d.highlight,1),(A=(0,c.pluck)(m.hovercolor,f.hovercolor,d.plotfillhovercolor))&&t&&(t=0),A=(0,c.pluck)(A,v),n=(0,c.pluck)(m.hoveralpha,f.hoveralpha,d.plotfillhoveralpha,b),r=(0,c.pluck)(m.borderhovercolor,f.borderhovercolor,d.plotborderhovercolor,y),p.hoverBorderColor=r,a=(0,c.pluck)(m.borderhoveralpha,f.borderhoveralpha,d.plotborderhoveralpha,d.plotfillhoveralpha,w),o=(0,c.pluckNumber)(m.borderhoverthickness,f.borderhoverthickness,d.plotborderhoverthickness,x),A.replace(/,+?$/,""),1===t){for(u=(l=(s="string"==typeof A)?A.split(/\s{0,},\s{0,}/):A.color.split(/\s{0,},\s{0,}/)).length,h=0;h<u;h++)l[h]=(0,c.getLightColor)(l[h],70);s?A=l.join(","):A.color=l.join(",")}this._setHoverColor(E,A,n,B),E.hoverColor=A,E.alpha=n,E.borderColor=(0,c.convertColor)(r,a),E.borderAlpha=a,E.borderWidth=o}else E.enabled=!1},A.organizeDatalabels=function(){var e,t,A,n,i,r=this.config,a=this.components.data,o=[],s=[],l=a.length;for(e=0;e<l;e++)n=(t=a[e].config).labelPosition,i=t.valuePosition,null!==t.y&&"undefined"!=typeof t.y&&!1!==t.isVisible&&("outside"===n&&"outside"===i?o.push({point:a[e]}):("inside"===n&&"inside"===i||o.push({point:a[e]}),s.push({point:a[e]})));A=P(o),r.labelsPlacedOutside=this.skipOverlappingLabels(A),r.labelsPlacedInside=s,this.rotateDataLabels()},A.skipOverlappingLabels=function(e){var t,A,n,i,r,a,o=e,s=this.config,l=s.dataLabelOptions,c=l.distance+s.pieMinRadius,u=[];for(r=s.labelLineHeight=parseInt(l.style.fontSize,10),s.labelsMaxInQuadrant=a=I(c/r),A=0;A<4;A++)if(l.skipOverlapLabels&&(t=o[A].length-a)>0)for(o[A].sort(G),n=0,i=(t=o[A].splice(0,t)).length;n<i;n++)this.disposeLabelAndConnector(t[n].point.graphics,[{el:"label",animLabel:"label"},{el:"innerLabel",animLabel:"label"},{el:"connector",animLabel:"connector"}]);for(A=0;A<4;A++)for(n=0,i=o[A].length;n<i;n++)u.push(o[A][n]);return u},A.rotateDataLabels=function(){this.rotateOuterLabels(),this.rotateInnerLabels()},A.rotateOuterLabels=function(){var e,t,A,n,r,a,o,s,l,u,h,d,g,p,m,b,B,C,w,y,x,F,E,I,T,N=this.config,D=this.getFromEnv("chart"),M=D.getFromEnv("animationManager"),O=D.getChildren("legend")[0],H=O&&O.config||{},R=this.getFromEnv("smartLabel"),V=D.config,G=N.dataLabelOptions,W=N.labelLineHeight,Y=N.pieMinRadius,J=D.config,q=J.canvasLeft,Z=J.canvasWidth,$=J.useEllipsesWhenOverflow,ee=G.connectorPadding,te=G.manageLabelOverflow,Ae=G.distance,ne=G.enableSmartLabels,ie=P(N.labelsPlacedOutside),re=Ae+Y,ae=k(ie[0].length,ie[1].length,ie[2].length,ie[3].length),oe=q+.5*Z,se=V.canvasTop+.5*V.canvasHeight,le=N.handlersAPI,ce=le.plotDragStart,ue=le.plotDragEnd,he=le.plotDragMove,de=le.plotRollOver,ge=le.plotRollOut,pe=[],fe=[],me=this.getFromEnv("toolTipController"),ve=this.getContainer("label-group");for(t=k(L(ae,N.labelsMaxInQuadrant)*W,re+W),A=0;A<4;A++)ie[A].sort(K);for(ie[0].reverse(),ie[2].reverse(),n=0;n<4;n++){for(y=t,w=ie[n].length*W,pe=[],A=0,r=ie[n].length;A<r;A++)B=ie[n][A],(o=U(t*S(B.angle)))>y?o=y:o<w&&(o=w),w-=W,y=o-W,pe.push(o);for(w=0,y=t-(r-1)*W,fe=[],A=ie[n].length-1;A>=0;A--)B=ie[n][A],(o=U(t*S(B.angle)))<w?o=w:o>y&&(o=y),w=o+W,y+=W,fe.push(o);for(A=0;A<r;A++)o=L(t,(pe[A]+fe[r-1-A])/2),s=t*Q(Math.asin(o/t)),g=(a=(B=ie[n][A]).point).config,p=a.graphics,m=g.props.connector.attr,d=c.BLANKSTRING,(x=Object.assign({},g.props.label.attr))["text-anchor"]=0===n||3===n?"start":"end",x.y=u=se+j[n]*o,x.x=l=oe+X[n]*(s+2*ee),g.sliced&&(x.y+=g.transY,x.x+=g.transX),"outside"===g.labelPosition&&"outside"===g.valuePosition?this.disposeLabelAndConnector(p,[{el:"innerLabel",animLabel:"label"}]):x.text="outside"===g.labelPosition?g.labelText:g.valueText,x.text?(C={x:oe+Y*Q(B.angle),y:se+Y*S(B.angle)},b=g.connectorPath=(0,f.getConnectorPath)(C,{x:oe+X[n]*s,y:se+j[n]*o},{isSlanted:G.isSmartLineSlanted,padding:ee,quadrant:n,transX:g.sliced?g.transX:0,transY:g.sliced?g.transY:0}),te&&(h=1===n||2===n?x.x-q:q+Z-x.x,"right"!==H.align&&"left"!==H.align||(h-=H.symbolWidth+2*H.borderWidth),R.useEllipsesOnOverflow($),R.setStyle(g.style),e=R.getSmartText(x.text,h,parseFloat(R.style.lineHeight)),x.text=e.text,d=e.tooltext),T=p.label,p.label=I=M.setAnimation({el:T||"text",attr:x,css:g.props.label.css,component:this,container:ve,label:"label"}),I.outlineText(N.showTextOutline,x.fill),V.showtooltip&&I.abbrArr&&I.abbrArr.length&&me.enableToolTip(I,i),T||I.on("fc-dragstart",ce).on("fc-dragmove",he).on("fc-dragend",ue).on("fc-click",z.bind(I,D,g.labellink)).on("fc-click",_(this,I)).on("fc-mouseover",de).on("fc-mouseout",ge),d?d&&me.enableToolTip(I,d):me.disableToolTip(I),I.x=l,I.y=u,I&&I.data("textPos",{x:x.x,y:x.y}).data("plotItem",g.plotItem).data("eventArgs",g.eventArgs),E=p.connector,ne?(p.connector=F=M.setAnimation({el:E||"path",attr:v({path:b},m),container:ve,component:this,label:"connector"}),E||F.on("fc-dragstart",ce).on("fc-dragmove",he).on("fc-dragend",ue).on("fc-mouseover",de).on("fc-mouseout",ge),F.data("connectorPath",{path:b}).data("plotItem",g.plotItem).data("eventArgs",g.eventArgs)):E&&this.disposeLabelAndConnector(p,[{el:"connector",animLabel:"connector"}])):this.disposeLabelAndConnector(p,[{el:"label",animLabel:"label"},{el:"connector",animLabel:"connector"}])}},A.rotateInnerLabels=function(){var e,t,A,n,r,a,o,s,l,u,h,d,g,p,m=this.config,v=this.getFromEnv("chart").config,b=this.getFromEnv("toolTipController"),B=m.labelsPlacedInside,C=m.pieCenter,w=this.getFromEnv("animationManager"),y=C[0],x=C[1],F=B.length,E=this.components.data.length,k=m.handlersAPI,L=k.plotDragStart,I=k.plotDragEnd,T=k.plotDragMove,N=k.plotRollOver,D=k.plotRollOut;for(A=0;A<F;A++)r=(n=B[A].point).config,a=n.graphics,d=Object.assign({},r.props.label.attr),h=U(r.startAngle-r.endAngle),l=r.minAngleForLabel,u=r.minAngleForValue,"inside"===r.valuePosition&&"inside"===r.labelPosition?(this.disposeLabelAndConnector(a,[{el:"label",animLabel:"label"},{el:"connector",animLabel:"connector"}]),h>=u&&h<l?d.text=r.valueText:h<u&&h>=l?d.text=r.labelText:h<u&&h<l&&(d.text=c.BLANKSTRING)):"inside"===r.valuePosition?d.text=h>=u?r.valueText:c.BLANKSTRING:d.text=h>=l?r.labelText:c.BLANKSTRING,d.text?(s=m.pieMinRadius*r.innerLabelRadiusPercent,o=(0,f.getCleanAngle)(r.angle),d.x=e=y+(E>1?s*Q(o):0),d.y=t=x+(E>1?s*S(o):0),r.sliced&&(d.y+=r.transY,d.x+=r.transX),d["text-anchor"]="middle",p=a.innerLabel,a.innerLabel=g=w.setAnimation({el:p||"text",attr:d,css:r.props.label.css,component:this,container:this.getContainer("label-group"),label:"label"}),g.outlineText(m.showTextOutline,d.fill),v.showtooltip&&g.abbrArr&&g.abbrArr.length&&b.enableToolTip(g,i),p||g.on("fc-dragstart",L).on("fc-dragmove",T).on("fc-dragend",I).on("fc-click",z.bind(g,this.getFromEnv("chart"),r.labellink)).on("fc-click",_(this,g)).on("fc-mouseover",N).on("fc-mouseout",D),g.x=e,g.y=t,g&&g.data("textPos",{x:d.x,y:d.y}).data("plotItem",r.plotItem).data("eventArgs",r.eventArgs)):this.disposeLabelAndConnector(a,[{el:"innerLabel",animLabel:"label"}])},A.disposeLabelAndConnector=function(e,t){void 0===t&&(t=[]);var A,n,i,r=this.getFromEnv("animationManager"),a=t.length;for(A=0;A<a;A++)e[i=(n=t[A]).el]&&(e[i]=r.setAnimation({el:e[i],component:this,label:n.animLabel})),delete e[i]},A._setHoverColor=function(e,t,A,n){n?e.color=(0,p["default"])(t,A,n,this.config.doughnutradius):(e.color=t,e.alpha=A)},A.updateData=function(){var t=this,A=t.config,n=t.components.data;A.valueTotal-=n[arguments[1]].config.y,e.prototype.updateData.call(this,arguments)},A._rotate=function(){var e,t,A,n,r,a,o,s,l,u=this.getFromEnv("chart"),h=this.config,d=this.components.data,g=u.config,p=h.piePlotOptions,f=(h.startAngle||0)%D,m=h.slicingDistance,v=h.valueTotal,b=D/v,B=g.canvasLeft+.5*g.canvasWidth,C=g.canvasTop+.5*g.canvasHeight,w=h.pieMinRadius,y=.5*(p.innerSize||0);for(r=a=f,l=0;l<d.length;l+=1)o=d[l].config,s=d[l].graphics,null!==(A=o.y)&&A!==i&&(a=r,n=.5*((r-=h.singletonCase?D:A*b)+a),o.angle=n,o.transX=Q(n)*m,o.transY=S(n)*m,o.slicedTranslation="t"+Q(n)*m+c.COMMASTRING+S(n)*m,(t=o._rotateAttrs)||(t=o._rotateAttrs={ringpath:[],transform:c.BLANKSTRING}),(e=t.ringpath)[0]=B,e[1]=C,e[2]=w,e[3]=y,e[4]=r,e[5]=a,s.element.attr({ringpath:t.ringpath,transform:o.sliced?o.slicedTranslation:""}));this.organizeDatalabels()},A._parsePiePlotOptions=function(){var e=this.config;return{size:e.pieMinRadius,slicedOffset:e.slicingDistance}},A._parseDataLabelOptions=function(){return{style:this.getFromEnv("chart").config.dataLabelStyle}},A._addLegend=function(){var e,t,A,n,r,a,o,s=this.config,l=this.getFromEnv("chart-attrib"),u=this.getFromEnv("legend"),h=this.config.JSONData.data||{},d=this.getFromEnv("toolTipController"),g=this.components.data,p=function(e){var t;null!=e&&null!=(t=e.sender)&&t.config&&(r=e.sender.getLinkedParent(),(a=r?r.getChildContainer():i)&&(o=e.sender.config.label,e.sender.config.tooltipText&&(o=e.sender.config.tooltipText),d.enableToolTip(a.itemGroup,o)))};for(e=0;e<g.length;e++)if(null!==(t=g[e].config).y&&t.seriesName)n={index:e,type:this.getName(),label:t.legendValueText+" "+t.seriesName,enabled:(0,c.pluckNumber)(t.includeInLegend,1),usePattern:s.usePattern,legendIconAlpha:(0,c.pluckNumber)(h[e].legendiconalpha),patternAttr:{patternType:t.patternType,patternAngle:t.patternAngle,patternDensity:t.patternDensity,patternSize:t.patternSize,color:t.setColor,patternAlpha:t.patternAlpha,patternBgColor:t.patternBgColor,alpha:t.setAlpha}},(A=u.getItem(t.legendItemId))||(t.legendItemId=u.createItem(this),A=u.getItem(t.legendItemId),this.addExtEventListener("fc-click",A.itemClickFn,A),"1"===(null==l?void 0:l.disablelegendscroll)&&this.addExtEventListener("fc-mouseover",p,A)),A.configure(n),A.setStateCosmetics("default",{symbol:{fill:(0,c.toRaphaelColor)(t.setColor),bgAlpha:(0,c.pluckNumber)(h[e].legendiconbgalpha,h[e].legendiconalpha,l.legendiconbgalpha,l.legendiconalpha,t.setAlpha),borderAlpha:(0,c.pluckNumber)(h[e].legendiconborderalpha,h[e].legendiconalpha,l.legendiconborderalpha,l.legendiconalpha,"100"),rawFillColor:t.setColor,stroke:(0,c.toRaphaelColor)(t.borderColor)}}),t.displayValue&&"1"===(null==l?void 0:l.disablelegendscroll)&&(A.config.tooltipText=A.config.label,A.config.label=t.displayValue+" <b>...</b>");else{if(!t.legendItemId)continue;(A=u.getItem(t.legendItemId))&&u.disposeItem(A.getId()),delete t.legendItemId}},A.getPlotData=function(e,t){var A,n,i,r=this.components.data[e].config,a=this.config.userData||(this.config.userData=[]);if(a[e])A=a[e];else{for(i in A=a[e]={},r)"object"!=typeof(n=r[i])&&"function"!=typeof n&&0!==i.indexOf("_")&&(A[i]=n);A.value=A.y,A.categoryLabel=A.label=A.seriesName,delete A.y,delete A.total,delete A.doNotSlice,delete A.name,delete A.seriesName,delete A.centerAngle,delete A.showInLegend,delete A.angle,delete A.endAngle,delete A.isVisible,delete A.setColor,delete A.slicedTranslation,delete A.startAngle,delete A.transX,delete A.transY,delete A.pValue}return A.sliced=t,A},A._parseBorderConfig=function(e,t,A){var n=this.config,i=n.pieBorderColor,r=this.getFromEnv("chart").getFromEnv("dataSource").chart,a=(0,c.pluck)(A.bordercolor,i),o=(0,c.pluck)(A.borderalpha,r.plotborderalpha,r.pieborderalpha);return n.usePattern&&(a||(a=e),o||0===o||(o=t)),{setPlotBorderColor:a=(0,c.pluck)(a,(0,c.getLightColor)(e,25)).split(c.COMMASTRING)[0],setPlotBorderAlpha:o=r.showplotborder===c.ZEROSTRING?c.ZEROSTRING:(0,c.pluck)(o,t,"80")}},A.legendInteractivity=function(e){var t,A,n,i=this.components.data,r=e.getId();for(A=0,t=i.length;A<t;A++)i[A].config.legendItemId===r&&(n=i[A].graphics,this.plotGraphicClick.call(n.element))},A._createContainer=function(){var e,t,A,n,i=this.getName(),r=this.groupName,a=this.getLinkedParent(),o=r||this.dsGroup||i;!a.getChildContainer(o+"Group")&&(o="default"),e=a.getChildContainer("datalabelsGroup"),t=this.getContainer("pie-groups")||this.addContainer("pie-groups",M("pie",e,this)),A=this.getContainer("pie-plot-groups")||this.addContainer("pie-plot-groups",M("pie-plot",t,this)),n=this.getContainer("pie-label-groups")||this.addContainer("pie-label-groups",M("pie-label",t,this)),this.getContainer("plot-group")||this.addContainer("plot-group",M("plots",A,this)),this.getContainer("plot-shadow-group")||this.addContainer("plot-shadow-group",M("plot-shadows",A,this).toBack()),this.getContainer("label-group")||this.addContainer("label-group",M("labels",n,this)),this.getContainer("connector-shadow-group")||this.addContainer("connector-shadow-group",M("connector-shadows",n,this)),this.getContainer("anchor-shadow-group")||this.addContainer("anchor-shadow-group",M("anchor-shadows",n,this))},A.allocatePosition=function(){var e,t,A=this.components.data,n=A.length;for(e=0;e<n;e++)t=A[e],this.parsePlotAttributes(t,e),this.parseLabelAttributes(t,e)},A.parsePlotAttributes=function(e,t){var A,n,r,a,o,s,l,u,h,d,g,p,f,m,v=this.components.data,b=this.getFromEnv("chart"),B=b.config,C=this.config,y=t,x=v.length,F=B.canvasWidth,E=B.canvasHeight,k=B.canvasLeft+.5*F,L=B.canvasTop+.5*E,U=C.valueTotal,I=C.piePlotOptions=this._parsePiePlotOptions(),T=I.slicedOffset,N=I.size,P=.5*(C.innerSize||0),M=(C.startAngle||0)%D,H=M-D,_=C.animateClockWise;f=U&&D/U,C.pieCenter=[k,L],a=M,o=M,t>0&&(a=v[t-1].config.startAngle,o=v[t-1].config.endAngle),l=(s=e.config).y,u=s.displayValue,h=s.sliced,A=s.toolText,n=!!s.link,null!==l&&l!==i&&!1!==s.isVisible&&((d=s.color).r=N,d.cx=k,d.cy=L,o=a,g=.5*((a-=C.singletonCase?D:l*f)+o),_?H:M,p=C.previousData={cx:k,cy:L,r:N,r2:P},r=this.config.drawn?[p.cx,p.cy,p.r,p.r2,a,o]:[k,L,N,P,a,o],h&&(s.slicedTranslation="t"+Q(g)*T+","+S(g)*T),m={"stroke-width":s.borderWidth,stroke:s.borderColor,fill:w?O(s.color,C.doughnutradius):(0,c.toRaphaelColor)(s.color),transform:h?s.slicedTranslation:"","stroke-dasharray":s.dashStyle,redrawDataLabels:M,ringpath:r,cursor:n?"pointer":""},s.props={element:{attr:m}},s.props.element.patternAttr={patternType:s.patternType,patternAngle:s.patternAngle,patternDensity:s.patternDensity,patternSize:s.patternSize,color:s.setColor,patternAlpha:s.patternAlpha,patternBgColor:s.patternBgColor,alpha:s.setAlpha,x:r[0],y:r[1]},s.eventArgs={index:C.reversePlotOrder?x-1-y:y,link:s.link,value:s.y,displayValue:s.displayValueArgs,categoryLabel:s.categoryLabel,isSliced:h,toolText:A,pValue:s.pValue,color:s.setColor,alpha:s.setAlpha,borderColor:s.borderConfig.setPlotBorderColor,borderAlpha:s.borderConfig.setPlotBorderAlpha,dashed:s.setBorderDashed,showLabel:s.showLabel,showValue:s.showValue,labelPosition:s.labelPosition,valuePosition:s.valuePosition,labelFont:s.labelFont,labelFontColor:s.labelFontColor||"#555555",labelLink:s.labellink,hoverColor:s.hoverEffects.hoverColor,hoverAlpha:s.hoverEffects.alpha,borderHoverColor:s.hoverBorderColor,borderHoverAlpha:s.hoverEffects.borderAlpha,id:s.id},C.usePattern&&(s.eventArgs.pattern={patternType:s.patternType,patternColor:s.setColor,patternBgColor:s.patternBgColor===c.TRACKER_FILL?i:s.patternBgColor},delete s.eventArgs.color),s.plotItem={chart:b,index:y,seriesData:C,value:l,pValue:s.pValue,displayValue:s.displayValue||"",angle:s.angle=g,angle1:s.startAngle=a,angle2:s.endAngle=o,slicedX:Q(g)*T,slicedY:S(g)*T,sliced:h,labelText:u,toolText:A,name:s.name,link:s.link,percentage:U?l*U/100:0,originalIndex:x-y-1,style:s.style,color:(0,c.toRaphaelColor)(s.color),borderColor:s.borderColor,borderWidth:s.borderWidth,rolloverProperties:s.hoverEffects,radius:N,center:[k,L],innerDiameter:2*P,centerLabelConfig:s.centerLabelConfig,isVisible:s.isVisible,label:s.seriesName,connector:void 0,transX:s.transX=Q(g)*T,transY:s.transY=S(g)*T,slicedTranslation:s.slicedTranslation="t"+Q(g)*T+","+S(g)*T})},A.parseLabelAttributes=function(e){var t,A,n,r,a,o=this.getFromEnv("chart").config,s=o.dataLabelStyle,l=this.config,u=o.style,h=o.textDirection,d=l.dataLabelOptions;(r=(t=e.config)._textAttrs)||(r=t._textAttrs={}),A=t.y,n=t.displayValue,u=t.style,null!==A&&A!==i&&!1!==t.isVisible&&(n!==i?(u&&((a=t._textCss)||(a=t._textCss={}),u.fontSize=this.computeFontSize(u.fontSizeWithUnit),u.lineHeight=(0,c.setLineHeight)(u),a.fontFamily=u.fontFamily,a.fontSize=u.fontSize,a.lineHeight=u.lineHeight,a.fontWeight=u.fontWeight,a.fontStyle=u.fontStyle),t.plotItem.style=t.style=u||(u=s),r.text=n,r.fill=u.color||"#000000",r.cursor=e.config.link?"pointer":"",r["text-bound"]=[u.backgroundColor,u.borderColor,u.borderThickness,u.borderPadding,u.borderRadius,u.borderDash],r.direction=h,r["line-height"]=u.lineHeight):r.text=c.BLANKSTRING,t.props.label={attr:r,css:a},t.props.connector={attr:{"stroke-width":d.connectorWidth,stroke:d.connectorColor||"#606060"}})},A.draw=function(){var e,t,A,n,r,a,o,s,l,u,h,d,g,p,f,m,v,b=this.getFromEnv("animationManager"),B=this.getFromEnv("chart").config,C=B.dataLabelStyle,w=this.config,y=w.showShadow,x=this.components,F=x.removeDataArr=x.removeDataArr||[],E=this.getState("visible"),S=x.data||[],Q=S.length,k=B.canvasWidth,L=B.canvasHeight,I=B.canvasLeft+.5*k,T=B.canvasTop+.5*L,N=w.handlersAPI.plotDragStart,D=w.handlersAPI.plotDragEnd,P=w.handlersAPI.plotDragMove,M=w.handlersAPI.plotRollOver,O=w.handlersAPI.plotRollOut,H=function(){var e=w.pieCenter||[],t=w.piePlotOptions||[],A={cx:e[0],cy:e[1],r:t.size,r2:.5*(w.innerSize||0)};return function(e){var t,n=!1;for(t in e)if(U(e[t]-A[t])>5){n=!0;break}return n}}(),R=(w.piePlotOptions=this._parsePiePlotOptions()).size,V=.5*(w.innerSize||0),G=this.getFromEnv("toolTipController");for(this.getContainer("pie-groups")||this._createContainer(),s=this.getContainer("plot-group"),l=this.getContainer("plot-shadow-group"),u=this.getContainer("label-group"),h=this.getContainer("connector-shadow-group"),d=this.getContainer("anchor-shadow-group"),this.config.drawn&&(e=H({cx:I,cy:T,r:R,r2:V})&&!1),u.css(C),v=w.valueTotal,E&&v?(s.show(),l.show(),u.show(),h.show(),d.show()):(s.hide(),l.hide(),u.hide(),h.hide(),d.hide()),F.length&&this.removeElement(),t=0;t<Q;t+=1)g=(A=S[t]).graphics,f=(p=A.config).y,n=p.toolText,null!==f&&f!==i&&!1!==p.isVisible&&(a=g.element,(r=b.setAnimation({el:a||"ringpath",attr:p.props.element.attr,label:"ringpath",props:{startAngle:this.config.startAngle},container:s,component:this})).addPattern(p.props.element.patternAttr,w.usePattern),a||(g.element=r,r.on("fc-dragstart",N).on("fc-dragmove",P).on("fc-dragend",D).on("fc-click",_(this,r)).on("fc-mouseover",M).on("fc-mouseout",O)),m=p.plotItem,o=p.eventArgs,m.graphic=r,r.show().shadow(y&&p.shadow,l).data("plotItem",m).data("dataset",this).data("eventArgs",o),G.enableToolTip(r,n));this.organizeDatalabels(),!this.config.__attachRestoreColor&&this.addExtEventListener("animationComplete",(function(){var t,A;if(e)for(t=0;t<Q;t+=1)(A=S[t]).graphics.element&&A.graphics.element.attr({fill:(0,c.toRaphaelColor)(A.config.color)})}),b),this.config.__attachRestoreColor=!0,this.config.drawn=!0},A.sliceInOtherPies=function(e){var t,A=this.components.data,n=A.length,i=0;for(this.enableMultiSlicing=!0;n--;)n!==e&&(t=A[n]).config.sliced&&++i&&this.plotGraphicClick.call(t.graphics);return this.enableMultiSlicing=!1,!!i},A.removeElement=function(){var e,t,A,n,i=this.getFromEnv("animationManager"),r=this.getFromEnv("chart").config,a=this.components.removeDataArr||[],o=a.length,s=this.config,l=r.canvasWidth,c=r.canvasHeight,u=r.canvasLeft+.5*l,h=r.canvasTop+.5*c,d=s.pieMinRadius,g=.5*(s.innerSize||0),p=s.startAngle-D;for(n=0;n<o;n++){for(t in A=a[0].graphics)if(A.hasOwnProperty(t)){if(!(e=A[t]))continue;"element"===t?(i.setAnimation({el:e,attr:{ringpath:[u,h,d,g,p,p+.01],transform:""},callback:W,component:this}),delete A[t]):this.disposeLabelAndConnector(A,[{el:"label",animLabel:"label"},{el:"innerLabel",animLabel:"label"},{el:"connector",animLabel:"connector"}])}a.splice(0,1)}},A.getEventArgs=function(e){var t=e.config.index,A=this.components.data[t].config||{};return{datasetName:A.seriesName,datasetIndex:t,id:A.id,visible:A.isVisible,label:A.seriesName,value:A.value,percentValue:A.pValue,tooltext:A.toolText,link:A.link,sliced:A.sliced}},A.remove=function(t){var A=this.config.legendItemId,n=this.getFromEnv("legend");n&&A&&n.disposeItem(A),e.prototype.remove.call(this,t)},t}(s["default"]);t["default"]=J},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n={"initial.dataset.pie2D":function(){return{"group.appearing":function(e){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:e.component.getFromEnv("chartConfig").alphaanimation?"plot":"initial"}]},"ringpath.appearing":function(e){var t=e.component,A=e.attr.ringpath.slice(0),n=e.attr.ringpath.slice(0),i=e.props.startAngle,r=e.component.config,a=t.getFromEnv("chartConfig"),o=r.animateClockWise;return a.alphaanimation?[{}]:(o&&(n[4]+=2*Math.PI,n[5]+=2*Math.PI),A[4]=i,A[5]=i,[{initialAttr:{ringpath:A},finalAttr:{ringpath:n,transform:""},startEnd:{start:0,end:.75},effect:"linear",slot:"plot"},{initialAttr:{transform:"",ringpath:n},finalAttr:{ringpath:n},startEnd:{start:.75,end:1},effect:"linear",slot:"plot"}])},"label.appearing":[{initialAttr:{opacity:"0"},finalAttr:{opacity:"1"},slot:"final"}],"connector.appearing":function(e){return[{initialAttr:{path:e.attr.path,opacity:"0"},finalAttr:{opacity:"1"},slot:"final"}]},"label.updating":function(e){return[{initialAttr:{x:e.el.attrs.x},slot:"plot"}]}}},"slicing.dataset.pie2D":function(){return{"slice.updating":function(e){return"t0,0"!==(e.attr&&e.attr.transform)?[{initialAttr:{transform:"t0,0"},slot:"plot"}]:[{finalAttr:{transform:"t0,0"},slot:"plot"}]}}}};t["default"]=n},function(e,t,A){"use strict";t.__esModule=!0,t.getConnectorPath=t.getQuadrant=t.getCleanAngle=void 0;var n=Math.PI,i=n/2,r=3*n/2,a=2*n,o=function(e){var t=e%a;return t<0?t+a:t};t.getConnectorPath=function(e,t,A){void 0===A&&(A={});var n=A,i=n.isSlanted,r=n.quadrant,a=n.padding,o=n.transX,s=n.transY,l=e.x+o,c=e.y+s,u=t.x+o,h=t.y+s;return["M",l,c,"L",i?u:l,h,u+(1===r||2===r?-1:1)*(a||0),h]},t.getQuadrant=function(e){var t=o(e);return t>=0&&t<i?0:t<n?1:t<r?2:3},t.getCleanAngle=o},,,,,,,,function(e,t,A){"use strict";t.__esModule=!0,t["default"]=function(e){var t,A,n,i=window.parseFloat,r=e._createNode,a=e._setFillAndStroke,o=e.el.constructor,s={Q:"L",Z:"X",q:"l",z:"x",",":" "},l=/,?([achlmqrstvxz]),?/gi,c=function(){return this.join(",").replace(l,t)};e.svg?(t="$1",A=function(){var A=this,n=e.is(arguments[0],"array")?arguments[0]:Array.prototype.slice.call(arguments);n?"string"==typeof n?n=n.replace(l,t):n.toString=c:n="M0,0",A.node.setAttribute("d",n.toString())},e._engine.litepath=function(t,A,n,i,s){var l,c=r("path");return(i||A).canvas.appendChild(c),(l=new o(c,A,i)).type="litepath",l.id=c.raphaelid=e._oid++,c.raphael=!0,a(l,s||{fill:"none",stroke:"#000"}),l},e._getPath.litepath=function(t){return e.parsePathString(t.node.getAttribute("d"))}):e.vml&&(t=function(e,t){return s[t]||t},n=function(){var e=this;return e._transform.apply(e,arguments),e._.bcoord&&(e.node.coordsize=e._.bcoord),e},A=function(e){var A=e;return A?"string"==typeof A?A=A.replace(l,t):A.toString=c:A="M0,0",this.node.path=A,this},e._engine.litepath=function(t,A,a,s,l){var c,u=r("shape"),h=u.style,d=new o(u,A,s),g=l||{fill:"none",stroke:"#000"},p=a;return h.cssText="position:absolute;left:0;top:0;width:21600px;height:21600px;",p=i(p),isNaN(p)?u.coordsize="21600 21600":(d._.bzoom=p,h.width="1px",h.height="1px",u.coordsize=d._.bcoord=p+" "+p),u.coordorigin=A.coordorigin,d.type="litepath",d.id=u.raphaelid=e._oid++,u.raphael=!0,d._transform=d.transform,d.transform=n,e._setFillAndStroke(d,g),(s||A).canvas.appendChild(u),(c=r("skew")).on=!0,u.appendChild(c),d.skew=c,d},e._getPath.litepath=function(t){return e.parsePathString(t.node.path||"")});e.fn.litepath=function(t,n,i){var r,a,s,l=t,c=n,u=i;return"object"==typeof l&&l.constructor!==o&&(r=l,a=(l=l.litepath).zoom,u=l.group),c&&c.constructor===o?(u=c,a=void 0):a=c,l&&l.constructor===o&&(u=l,l=""),(s=e._engine.litepath(l,this,a,u,r)).ca.litepath=A,l&&s.attr("litepath",e.is(l,"array")?[l]:l),this.__set__&&this.__set__.push(s),this._elementsById[s.id]=s}}},,,,,,,,,function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=t.setAxisDimention=t.getSpecificyAxisConf=t.getSpecificxAxisConf=t._feedAxesRawData=void 0;var i,r,a,o,s=n(A(268)),l=n(A(599)),c=n(A(642)),u=A(254),h=n(A(643)),d=n(A(396)),g=n(A(517)),p=Math.max;t.setAxisDimention=o,t.getSpecificyAxisConf=a,t.getSpecificxAxisConf=r,t._feedAxesRawData=i;var f=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("axis",c["default"],["canvas"]),t.registerFactory("dataset",h["default"],["vCanvas"]),t}(0,s["default"])(t,e),t.getName=function(){return"MSDyBaseCartesian"};var A=t.prototype;return A.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.syncaxislimits=0},A._feedAxesRawData=function(){var e,t,A,n,i,r,a,o,s,l=this.config,c=this.getFromEnv("color-manager"),h=this.getFromEnv("dataSource"),g=this.getFromEnv("chart-attrib"),p=this.config.is3D,f=p?u.chartPaletteStr.chart3D:u.chartPaletteStr.chart2D,m=l.primaryAxisOnleft=(0,u.pluckNumber)(g.primaryaxisonleft,1),v=(0,u.pluckNumber)(g.syncaxislimits,0),b=[{line:[]}],B=[{line:[]}],C=h.trendlines||[],w=(0,u.pluckNumber)(g.showzeroplane,1),y=(0,u.pluckNumber)(g.showzeroplanevalue),x=(0,u.pluckFontSizeMaintainUnit)(g.outcnvbasefontsize,g.basefontsize,10);for(w||y!==u.UNDEF||(y=0),e=this.getSpecificxAxisConf(),t=this.getSpecificyAxisConf(),l.isstacked&&(t.isPercent=(0,u.pluckNumber)(l.stack100percent,0),"stackedcolumn2dlinedy"!==this.getName().toLowerCase()&&"stackedcolumn3dlinedy"!==this.getName().toLowerCase()||(t.isPercent=0)),A={isActive:!1,isPercent:this.isPercentage,axisIndex:1,uniqueClassName:1,outCanfontFamily:(0,u.pluck)(g.outcnvbasefont,g.basefont,"Verdana,sans"),outCanfontSize:this.computeFontSize(x),outCanfontSizeWithUnit:x,outCancolor:(0,u.pluck)(g.outcnvbasefontcolor,g.basefontcolor,c.getColor(f.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),axisNamePadding:g.yaxisnamepadding,axisValuePadding:g.yaxisvaluespadding,axisNameFont:g.syaxisnamefont,axisNameFontSize:g.syaxisnamefontsize,axisNameFontSizeWithUnit:g.syaxisnamefontsize,axisNameFontColor:g.syaxisnamefontcolor,axisNameFontBold:g.syaxisnamefontbold,axisNameFontItalic:g.syaxisnamefontitalic,axisNameBgColor:g.syaxisnamebgcolor,axisNameBorderColor:g.syaxisnamebordercolor,axisNameAlpha:g.syaxisnamealpha,axisNameFontAlpha:g.syaxisnamefontalpha,axisNameBgAlpha:g.syaxisnamebgalpha,axisNameBorderAlpha:g.syaxisnameborderalpha,axisNameBorderPadding:g.syaxisnameborderpadding,axisNameBorderRadius:g.syaxisnameborderradius,axisNameBorderThickness:g.syaxisnameborderthickness,axisNameBorderDashed:g.syaxisnameborderdashed,axisNameBorderDashLen:g.syaxisnameborderdashlen,axisNameBorderDashGap:g.syaxisnameborderdashgap,axisNameWidth:g.syaxisnamewidth,useEllipsesWhenOverflow:g.useellipseswhenoverflow,rotateAxisName:(0,u.pluckNumber)(g.rotateyaxisname,1),axisName:g.syaxisname,divLineColor:(0,u.pluck)(g.divlinecolor,c.getColor(f.divLineColor)),divLineAlpha:(0,u.pluck)(g.divlinealpha,c.getColor("divLineAlpha")),divLineThickness:(0,u.pluckNumber)(g.divlinethickness,1),divLineIsDashed:Boolean((0,u.pluckNumber)(g.divlinedashed,g.divlineisdashed,0)),divLineDashLen:(0,u.pluckNumber)(g.divlinedashlen,4),divLineDashGap:(0,u.pluckNumber)(g.divlinedashgap,2),showAlternateGridColor:(0,u.pluckNumber)(g.showalternatehgridcolor,1),alternateGridColor:(0,u.pluck)(g.alternatehgridcolor,c.getColor("altHGridColor")),alternateGridAlpha:(0,u.pluck)(g.alternatehgridalpha,c.getColor("altHGridAlpha")),numDivLines:g.numdivlines,axisMinValue:v?(0,u.pluckNumber)(g.syaxisminvalue,g.pyaxisminvalue,g.yaxisminvalue):g.syaxisminvalue,axisMaxValue:v?(0,u.pluckNumber)(g.syaxismaxvalue,g.pyaxismaxvalue,g.yaxismaxvalue):g.syaxismaxvalue,setAdaptiveMin:g.setadaptivesymin||g.setadaptiveymin,adjustDiv:g.adjustdiv,labelStep:g.yaxisvaluesstep,showAxisValues:(0,u.pluckNumber)(g.showsyaxisvalues,g.showsyaxisvalue,g.showyaxisvalues,g.showyaxisvalue),showLimits:(0,u.pluckNumber)(g.showsecondarylimits,g.showyaxislimits,g.showlimits),showDivLineValues:(0,u.pluckNumber)(g.showdivlinesecondaryvalue,g.showyaxisvalues,g.showyaxisvalue,1),showZeroPlane:w,zeroPlaneColor:g.zeroplanecolor,zeroPlaneThickness:(0,u.pluckNumber)(g.zeroplanethickness,g.divlinethickness,2),zeroPlaneAlpha:g.zeroplanealpha,showZeroPlaneValue:y,trendlineColor:g.trendlinecolor,trendlineToolText:g.trendlinetooltext,trendlineThickness:g.trendlinethickness,trendlineAlpha:g.trendlinealpha,showTrendlinesOnTop:g.showtrendlinesontop,showAxisLine:p?0:(0,u.pluckNumber)(g.showsyaxisline,g.showaxislines,g.drawAxisLines,0),axisLineThickness:(0,u.pluckNumber)(g.syaxislinethickness,g.axislinethickness,1),axisLineAlpha:(0,u.pluckNumber)(g.syaxislinealpha,g.axislinealpha,100),axisLineColor:(0,u.pluck)(g.syaxislinecolor,g.axislinecolor,"#000000"),labelFont:g.yaxisvaluefont,labelFontSize:this.computeFontSize(g.yaxisvaluefontsize),labelFontSizeWithUnit:g.yaxisvaluefontsize,labelFontColor:g.yaxisvaluefontcolor,labelAlpha:g.yaxisvaluealpha,labelFontBold:g.yaxisvaluefontbold,labelFontItalic:g.yaxisvaluefontitalic,labelBdrColor:g.yaxisvaluebordercolor,labelBdrAlpha:g.yaxisvalueborderalpha,labelBgAlpha:g.yaxisvaluebgalpha,labelLink:g.yaxisvaluelink,labelBgColor:g.yaxisvaluebgcolor,labelBdrThickness:g.yaxisvalueborderthickness,labelBdrPadding:g.yaxisvalueborderpadding,labelBdrRadius:g.yaxisvalueborderradius,labelBdrDashed:g.yaxisvalueborderdashed,labelBdrDashLen:g.yaxisvalueborderdashlen,labelBdrDashGap:g.yaxisvalueborderdashgap},e.vtrendlines=(0,u.extend2)([],h.vtrendlines),o=0,a=C.length;o<a;o++)for(r=(n=C[o]&&C[o].line||[]).length,s=0;s<r;s++)i=n[s]||{},(0,d["default"])(i.parentyaxis,"s")?b[0].line.push(i):B[0].line.push(i);return t.trendlines=(0,u.extend2)([],B),A.trendlines=(0,u.extend2)([],b),1===m?(t.isVertical=!0,t.isReverse=!0,t.isOpposit=!1,A.isVertical=!0,A.isReverse=!0,A.isOpposit=!0):(t.isVertical=!0,t.isReverse=!0,t.isOpposit=!0,A.isVertical=!0,A.isReverse=!0,A.isOpposit=!1),{yAxisConf:[t,A],xAxisConf:[e]}},A.getSpecificxAxisConf=function(){var e=this.getFromEnv("chart-attrib"),t=this.config.is3D,A=this.getBasexAxisConf(),n=this.config;return A.zeroPlaneThickness=(0,u.pluckNumber)(e.vzeroplanethickness,e.vdivlinethickness,2),A.zeroPlaneAlpha=(0,u.pluckNumber)(e.vzeroplanealpha,e.vdivlinealpha,n.zeroplanealpha),A.showZeroPlaneValue=e.showvzeroplanevalue,A.showAxisLine=t?0:(0,u.pluckNumber)(e.showxaxisline,e.showaxislines,e.drawAxisLines,0),A.axisLineColor=(0,u.pluck)(e.xaxislinecolor,e.axislinecolor,"#000000"),A.isReverse=!1,A.showAlternateGridColor=(0,u.pluckNumber)(e.showalternatevgridcolor,0),A.numDivLines=e.numvdivlines,A.maxLabelHeight=e.maxlabelheight,A.axisName=e.xaxisname,A.setAdaptiveMin=e.setadaptivexmin,A.showLimits=e.showvlimits,A.showDivLineValues=(0,u.pluckNumber)(e.showvdivlinevalues,e.showvdivlinevalues),A},A.getSpecificyAxisConf=function(){var e=this.getFromEnv("chart-attrib"),t=this.config.is3D,A=t?u.chartPaletteStr.chart3D:u.chartPaletteStr.chart2D,n=this.config,i=this.getFromEnv("color-manager"),r=(0,u.pluckNumber)(e.syncaxislimits,0),a=(0,u.pluckNumber)(e.showzeroplane,1),o=(0,u.pluckNumber)(e.showzeroplanevalue),s=(0,u.pluckFontSizeMaintainUnit)(e.outcnvbasefontsize,e.basefontsize,10);return a||o!==u.UNDEF||(o=0),{outCanfontFamily:(0,u.pluck)(e.outcnvbasefont,e.basefont,"Verdana,sans"),outCanfontSize:this.computeFontSize(s),outCanfontSizeWithUnit:s,outCancolor:(0,u.pluck)(e.outcnvbasefontcolor,e.basefontcolor,i.getColor(A.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),axisNamePadding:(0,u.pluckNumber)(e.pyaxisnamepadding,e.yaxisnamepadding),axisValuePadding:(0,u.pluckNumber)(e.pyaxisvaluespadding,e.yaxisvaluespadding),axisNameFont:(0,u.pluck)(e.pyaxisnamefont,e.yaxisnamefont),axisNameFontSize:(0,u.pluckNumber)(e.pyaxisnamefontsize,this.computeFontSize(e.yaxisnamefontsize)),axisNameFontSizeWithUnit:(0,u.pluckFontSizeMaintainUnit)(e.pyaxisnamefontsize,e.yaxisnamefontsize),axisNameFontColor:(0,u.pluck)(e.pyaxisnamefontcolor,e.yaxisnamefontcolor),axisNameFontBold:(0,u.pluckNumber)(e.pyaxisnamefontbold,e.yaxisnamefontbold),axisNameFontItalic:(0,u.pluckNumber)(e.pyaxisnamefontitalic,e.yaxisnamefontitalic),axisNameBgColor:(0,u.pluck)(e.pyaxisnamebgcolor,e.yaxisnamebgcolor),axisNameBorderColor:(0,u.pluck)(e.pyaxisnamebordercolor,e.yaxisnamebordercolor),axisNameAlpha:(0,u.pluckNumber)(e.pyaxisnamealpha,e.yaxisnamealpha),axisNameFontAlpha:(0,u.pluckNumber)(e.pyaxisnamefontalpha,e.yaxisnamefontalpha),axisNameBgAlpha:(0,u.pluckNumber)(e.pyaxisnamebgalpha,e.yaxisnamebgalpha),axisNameBorderAlpha:(0,u.pluckNumber)(e.pyaxisnameborderalpha,e.yaxisnameborderalpha),axisNameBorderPadding:(0,u.pluckNumber)(e.pyaxisnameborderpadding,e.yaxisnameborderpadding),axisNameBorderRadius:(0,u.pluckNumber)(e.pyaxisnameborderradius,e.yaxisnameborderradius),axisNameBorderThickness:(0,u.pluckNumber)(e.pyaxisnameborderthickness,e.yaxisnameborderthickness),axisNameBorderDashed:(0,u.pluckNumber)(e.pyaxisnameborderdashed,e.yaxisnameborderdashed),axisNameBorderDashLen:(0,u.pluckNumber)(e.pyaxisnameborderdashlen,e.yaxisnameborderdashlen),axisNameBorderDashGap:(0,u.pluckNumber)(e.pyaxisnameborderdashgap,e.yaxisnameborderdashgap),axisNameWidth:(0,u.pluckNumber)(e.pyaxisnamewidth,e.yaxisnamewidth),useEllipsesWhenOverflow:e.useellipseswhenoverflow,rotateAxisName:(0,u.pluckNumber)(e.rotateyaxisname,1),axisName:(0,u.pluck)(e.pyaxisname,e.yaxisname),divLineColor:(0,u.pluck)(e.divlinecolor,i.getColor(A.divLineColor)),divLineAlpha:(0,u.pluck)(e.divlinealpha,i.getColor("divLineAlpha")),divLineThickness:(0,u.pluckNumber)(e.divlinethickness,1),divLineIsDashed:Boolean((0,u.pluckNumber)(e.divlinedashed,e.divlineisdashed,0)),divLineDashLen:(0,u.pluckNumber)(e.divlinedashlen,4),divLineDashGap:(0,u.pluckNumber)(e.divlinedashgap,2),showAlternateGridColor:(0,u.pluckNumber)(e.showalternatehgridcolor,1),alternateGridColor:(0,u.pluck)(e.alternatehgridcolor,i.getColor("altHGridColor")),alternateGridAlpha:(0,u.pluck)(e.alternatehgridalpha,i.getColor("altHGridAlpha")),numDivLines:e.numdivlines,axisMinValue:r?(0,u.pluckNumber)(e.syaxisminvalue,e.pyaxisminvalue,e.yaxisminvalue):(0,u.pluckNumber)(e.pyaxisminvalue,e.yaxisminvalue),axisMaxValue:r?(0,u.pluckNumber)(e.syaxismaxvalue,e.pyaxismaxvalue,e.yaxismaxvalue):(0,u.pluckNumber)(e.pyaxismaxvalue,e.yaxismaxvalue),setAdaptiveMin:e.setadaptiveymin,adjustDiv:e.adjustdiv,labelStep:e.yaxisvaluesstep,showAxisValues:(0,u.pluckNumber)(e.showyaxisvalues,e.showyaxisvalue),showLimits:(0,u.pluckNumber)(e.showyaxislimits,e.showlimits,this.showLimits),showDivLineValues:(0,u.pluckNumber)(e.showdivlinevalues,e.showdivlinevalue),showZeroPlane:a,zeroPlaneColor:e.zeroplanecolor,zeroPlaneThickness:(0,u.pluckNumber)(e.zeroplanethickness,e.divlinethickness,n.zeroplanethickness,2),zeroPlaneAlpha:(0,u.pluckNumber)(e.zeroplanealpha,e.divlinealpha,n.zeroplanealpha),showZeroPlaneValue:o,showZeroPlaneOnTop:n.showzeroplaneontop,trendlineColor:e.trendlinecolor,trendlineToolText:e.trendlinetooltext,trendlineThickness:e.trendlinethickness,trendlineAlpha:e.trendlinealpha,showTrendlinesOnTop:e.showtrendlinesontop,showAxisLine:t?0:(0,u.pluckNumber)(e.showyaxisline,e.showaxislines,e.drawAxisLines,0),axisLineThickness:(0,u.pluckNumber)(e.yaxislinethickness,e.axislinethickness,1),axisLineAlpha:(0,u.pluckNumber)(e.yaxislinealpha,e.axislinealpha,100),axisLineColor:(0,u.pluck)(e.yaxislinecolor,e.axislinecolor,"#000000"),forceTrendBelow:!!n.is3D,labelFont:e.yaxisvaluefont,labelFontSize:this.computeFontSize(e.yaxisvaluefontsize),labelFontSizeWithUnit:e.yaxisvaluefontsize,labelFontColor:e.yaxisvaluefontcolor,labelAlpha:e.yaxisvaluealpha,labelFontBold:e.yaxisvaluefontbold,labelFontItalic:e.yaxisvaluefontitalic,labelBdrColor:e.yaxisvaluebordercolor,labelBgAlpha:e.yaxisvaluebgalpha,labelBdrAlpha:e.yaxisvalueborderalpha,labelLink:e.yaxisvaluelink,labelBgColor:e.yaxisvaluebgcolor,labelBdrThickness:e.yaxisvalueborderthickness,labelBdrPadding:e.yaxisvalueborderpadding,labelBdrRadius:e.yaxisvalueborderradius,labelBdrDashed:e.yaxisvalueborderdashed,labelBdrDashLen:e.yaxisvalueborderdashlen,labelBdrDashGap:e.yaxisvalueborderdashgap}},A.setAxisDimention=function(){var e,t,A=this.config,n=this.getChildren(),i=this.getChildren("scrollBar")&&this.getChildren("scrollBar")[0]&&this.getChildren("scrollBar")[0].config,r=n.yAxis,a=n.xAxis&&n.xAxis[0],o=r[0],s=r[1],l=A.xDepth||0,c=n.canvas[0].config,u=c.canvasBorderWidth,h=c.canvasPadding,d=c.canvasPaddingLeft,g=c.canvasPaddingRight,f=c.canvasPaddingTop,m=this&&this.isScrollEnabled(),v=A.shift&&(A.is3D||m&&+i.isOpposite===a.config.isOpposit)?A.shift:0,b=A.sumValueSpace&&A.sumValueSpace.top||0,B=A.primaryAxisOnleft,C=c.canvasPaddingBottom,w=p(d,h);a&&a.setAxisDimention({x:A.canvasLeft+l+w,y:a.config.isOpposit?A.canvasTop-u-(A.is3D?0:v)-b:A.canvasBottom+v+u,opposite:a.config.isOpposit?A.canvasBottom+v+u:A.canvasTop-u,axisLength:A.canvasWidth-l-w-p(g,h)}),B?(A.yAxisStartXPos=A.canvasLeft-u,A.sYAxisStartXPos=A.canvasRight+u):(A.yAxisStartXPos=A.canvasRight+u,A.sYAxisStartXPos=A.canvasLeft-u),e=A.yAxisStartXPos,t=A.sYAxisStartXPos,o&&o.setAxisDimention({x:e,y:A.canvasTop+f,opposite:t,axisLength:A.canvasHeight-f-C}),s&&s.setAxisDimention({x:t,y:A.canvasTop+f,opposite:e,axisLength:A.canvasHeight-f-C})},A._manageYAxisSpace=function(){var e,t,A,n=this.config,i=this.getChildren("yAxis"),r=[],a=0;for(t=0;t<(i&&i.length);t++)A=(e=i[t])&&e.placeAxis(.7*(n.availableWidth-a))||{},0===t&&(a=A.left),r.push({axisIndex:t,spaceTaken:A});i&&i[0]&&this._allocateSpace({left:(0,g["default"])(r,(function(e){return e.spaceTaken.left})),right:(0,g["default"])(r,(function(e){return e.spaceTaken.right}))}),n.yAxisSpaceAllocation=r},t}(l["default"]);t._feedAxesRawData=i=f.prototype._feedAxesRawData,t.getSpecificxAxisConf=r=f.prototype.getSpecificxAxisConf,t.getSpecificyAxisConf=a=f.prototype.getSpecificyAxisConf,t.setAxisDimention=o=f.prototype.setAxisDimention;var m=f;t["default"]=m},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=function(e){var t,A,n,o=e.getChildren("canvas")[0],s=function(e,t){return JSON.stringify(e)!==JSON.stringify(t)},l={zoomable:!0,pannable:!0},c=!!Number(e.config.syncaxislimits),u=o.getChildren("axisRefVisualCartesian")[0],h=e._feedAxesRawData(),d=function(e){var t=e.sender;u.addexplicitDrawItems(t.getId(),t),u.asyncDraw()};(0,i.componentFactory)(e,a["default"],"xAxis",1,h.xAxisConf),(0,i.componentFactory)(e,r["default"],"yAxis",2,h.yAxisConf),t=e.getChildren(),A=t.xAxis[0],(n=t.yAxis).forEach((function(t){t.setLinkedItem("canvas",o),u.setLinkedItem(t.getId(),t),u.addExtEventListener("visiblerangeset",d,t),o.attachAxis(t,!0,e.zoomY?l:{})})),A.setLinkedItem("canvas",o),u.setLinkedItem(A.getId(),A),n[1].setAxisConfig({dependentInfo:{id:n[0].getId(),count:!0,limit:c}}),n[1].getState("divlineEventAdded")||(n[1].addExtEventListener("divlinesSet",(function(e){var t=n[1].config.dependentInfo;e.sender.getId()===t.id&&(t.numDivLines=e.data)}),n[0]),n[1].setState("divlineEventAdded",!0));c&&(n[1].getState("dataLimitEventAdded")||(n[1].addExtEventListener("dataLimitSet",(function(e){var t=n[1].config.dependentInfo;e.sender.getId()===t.id&&s(t.dataLimit,e.data)&&(t.dataLimit=e.data,n[1].config.isDataLimitSet&&n[1].setDataLimit())}),n[0]),n[1].setState("dataLimitEventAdded",!0)),n[0].setAxisConfig({dependentInfo:{id:n[1].getId(),limit:!0}}),n[0].getState("dataLimitEventAdded")||(n[0].addExtEventListener("dataLimitSet",(function(e){var t=n[0].config.dependentInfo;e.sender.getId()===t.id&&s(t.dataLimit,e.data)&&(t.dataLimit=e.data,n[0].setDataLimit())}),n[1]),n[0].setState("dataLimitEventAdded",!0)));u.addExtEventListener("visiblerangeset",d,A),o.attachAxis(A,!1,e.zoomX?l:{}),e._setCategories()};var i=A(254),r=n(A(514)),a=n(A(562))},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=function(e){var t,A,r,a,o,s,l,c,u,h,d=e.getFromEnv("dataSource").dataset,g=e.getChildren().canvas[0].getChildren("vCanvas"),p=g[0],f=g[1],m=e.getFromEnv("chartConfig").isdual,v={vCanvasDatasetsDef0:{},vCanvasDatasetsDef1:{}},b={vCanvas0:{},vCanvas1:{}};d||e.setChartMessage();for(A=0;A<d.length;A++)t=d[A],"s"===(c=t.parentyaxis||"").toLowerCase()&&m?(l=(0,n.pluck)(t.renderas,e.config.sDefaultDatasetType),u=f,h=b.vCanvas1,a=v.vCanvasDatasetsDef1):(l=(0,n.pluck)(t.renderas,e.config.defaultDatasetType),u=p,h=b.vCanvas0,a=v.vCanvasDatasetsDef0),l=e.getDSType(l,"s"===c.toLowerCase()),(s=e.getDSGroupdef(l,"s"===c.toLowerCase()))&&((0,n.componentFactory)(u,s,"multiseriesColumnManager"),h[s.getName().toLowerCase()]=!0),h[l.toLowerCase()]=!0,a[l]?(a[l].conf.push(t),a[l].indices.push(A)):(a[l]={},a[l].indices=[A],a[l].classDef=e.getDSdef(l),a[l].conf=[t],a[l].pYAxis=c.toLowerCase(),a[l].parent=s?u.getChildren("multiseriesColumnManager")[0]:u);for(var B in e.config._hascolumn=!1,v)if(v.hasOwnProperty(B))for(l in a=v[B])a.hasOwnProperty(l)&&("group"===(o=a[l]).parent.getType()&&o.parent.configure(o.conf),(0,n.datasetFactory)(o.parent,o.classDef,"dataset_"+l,o.conf.length,o.conf,o.indices),"column"===l&&(e.config._hascolumn=!0));(r=e.getDatasets()).sort((function(e,t){var A=e.getName(),n=t.getName(),i={line:1,area:2,column:3};return i[A]>i[n]?-1:i[A]<i[n]?1:0})),e.config.datasetOrder=r,(0,i.removeComponents)(g[0],Object.keys(b.vCanvas0)),(0,i.removeComponents)(g[1],Object.keys(b.vCanvas1))};var n=A(254),i=A(644)},function(e,t,A){"use strict";t.__esModule=!0,t.removeComponents=void 0;t.removeComponents=function(e,t){e&&e.iterateComponents((function(e){-1!==t.indexOf(e.getName().toLowerCase())||e.getLinkedParent().getState("removed")||e.remove()}))}},,,,,,,,,,,,function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=n(A(590)),a=A(254),o=n(A(657)),s=A(262),l=A(658),c=n(A(659)),u=a.preDefStr.setRolloverAttrStr,h=a.preDefStr.setRolloutAttrStr;(0,s.addDep)({name:"mssplineareaAnimation",type:"animationRule",extension:c["default"]});var d=function(e){function t(){var t;return(t=e.call(this)||this).drawCommonElements=a.stubFN,t}(0,i["default"])(t,e);var A=t.prototype;return A.getType=function(){return"dataset"},A.configureAttributes=function(t){e.prototype.configureAttributes&&e.prototype.configureAttributes.call(this,t),o["default"].call(this)},A.getDataLimits=function(){return{max:this.config.maxValue,min:this.config.minValue}},A.drawPlots=function(){var e,t,A,n,i,r,o,s,c,d,g,p,f,m,v,b,B,C,w,y,x,F,E,S,Q,k=this.config,L=this.getFromEnv("chart"),U=L.config,I=this.getFromEnv("xAxis"),T=null,N=[],D=this.components.data,P=U.connectnulldata,M=U.minimizetendency,O=k.plotBorderDashStyle,H=k.plotborderthickness,_=this.getContainer(),R=[],V=this.getGraphicalElement("splineElement"),G=k.fillColor,K=this.components.removeDataArr||[],z=K.length,W=_&&_.shadowGroup,j=k.shadow,X=this.getState("visible"),Y={},J=!U.drawfullareaborder,q=k.plotborderColorObject,Z=this.getGraphicalElement("connector"),$=this.getFromEnv("animationManager"),ee=k._oldStartIndex,te=k._oldEndIndex,Ae=this.config.JSONData.renderas||L.config.defaultDatasetType,ne=/area/gi.test(Ae);for(k.imagesLoaded=0,D||(D=this.components.data),e=I.getTicksLen(),S=k.scrollMinVal,Q=k.scrollMaxVal,S>ee&&this.flushOnScroll(ee,S>te?te:S),Q<te&&this.flushOnScroll(Q<ee?ee:Q,te),k._oldStartIndex=S,k._oldEndIndex=Q,t=S;t<Q;t++)(c=D[t])&&(p=(s=c&&c.config).setValue,w=(Y=s.anchorProps).shadow,d=c.graphics.element,g=c.graphics.hotElement,x=c.graphics.image,null===p?(d&&d.hide(),g&&g.hide(),x&&x.hide(),P||(T=null)):(i=s._Py,n=s._Px,!1===X&&(i=s._Pby),N.push({x:n,y:i,lastXPos:r,lastYPos:T}),r=n,T=i,v=Y.anchorAlpha,C=Y.radius&&v,m=s.hoverEffects,B=d?X&&C?"updating":"disappearing":"appearing",Y.imageUrl?this.drawAnchorImage(c):(b=Object.assign({},s.props.element.attr),"disappearing"!==B&&X||(b=a.UNDEF),d=c.graphics.element=$.setAnimation({el:d||"path",attr:b,container:_.plotGroup,component:this,label:"anchor"}),x&&x.hide(),d&&d.show().shadow(w,_.anchorShadowGroup).data("anchorRadius",Y.radius).data("anchorHoverRadius",m.anchorRadius).data("eventArgs",s.eventArgs),m.enabled&&d&&d.data("anchorRadius",Y.radius).data("anchorHoverRadius",m.anchorRadius).data("hoverEnabled",m.enabled).data(u,m.attrs.setRolloverAttr).data(h,m.attrs.setRolloutAttr))));for(A=e,F={path:R=(R=(o=(0,l.getSplinePath)(N,s&&s._Pby,M,ne,A)).closedPath).join(),stroke:(0,a.toRaphaelColor)(q),"stroke-width":J?0:H,fill:(0,a.toRaphaelColor)(G),"stroke-linecap":"round","stroke-linejoin":H>2?"round":"miter","stroke-dasharray":O},this.getState("visible")||(F=a.UNDEF),(f=$.setAnimation({el:V||"path",attr:F,container:_.commonElemsGroup,component:this,label:"line"}))&&f.addPattern({patternType:k.patternType,patternAngle:k.patternAngle,patternDensity:k.patternDensity,patternSize:k.patternSize,color:k.plotfillcolor,patternAlpha:k.patternAlpha,patternBgColor:k.patternBgColor,alpha:k.plotfillalpha,x:0,y:0},k.usePattern),!f&&V&&this.removeGraphicalElement(V),V||this.addGraphicalElement("splineElement",f),""!==R&&this.getState("visible")?f.show().shadow(j,W):f&&f.hide(),J?(E={path:o.openPath.join(),stroke:(0,a.toRaphaelColor)(q),"stroke-width":H,"stroke-linecap":"round","stroke-linejoin":H>2?"round":"miter","stroke-dasharray":O,name:"connector"},y=$.setAnimation({el:Z||"path",attr:E,container:_.commonElemsGroup,state:Z?this.getState("visible")?"updating":"disappearing":"appearing",component:this,label:"connectorLine"}),Z||this.addGraphicalElement("connector",y)):y&&this.removeGraphicalElement(y),t=0;t<z;t++)this._removeDataVisuals(K.shift())},A.getName=function(){return"splinearea"},t}(r["default"]);t["default"]=d},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n=A(254),i=function(e,t,A){var n,i,a,o,s={};for(i=0;i<e.length;++i)s["D"+e[i].index]=0;for(n=0;n<10;++n)for(i=0;i<e.length;++i)a=0===i?(3*(e[i+1].y-e[i].y)-s["D"+e[i+1].index])/2:i===e.length-1?(3*(e[i].y-e[i-1].y)-s["D"+e[i-1].index])/2:(3*(e[i+1].y-e[i-1].y)-s["D"+e[i+1].index]-s["D"+e[i-1].index])/4,s["D"+e[i].index]=a;for(o=Math.round(t/(e.length-1)),i=1;i<e.length;++i)r(i,e,s,A,o)},r=function(e,t,A,n,i){var r,a,o,s,l,c,u,h,d,g,p,f,m=t,v=e;for(r=A["D"+m[0].index],a=A["D"+m[v].index],o=m[0].y,s=r,l=3*(m[v].y-m[0].y)-2*r-a,c=2*(m[0].y-m[v].y)+r+a,u=n.max,h=n.min,d=0,g=i;d<=g;d++)(f=o+s*(p=d/g)+l*p*p+c*p*p*p)<h&&(h=f),f>u&&(u=f);n.max=u,n.min=h},a=function(){var e,t=this.config,A=this.getFromEnv("chart"),r=this.getFromEnv("chartConfig"),a=A.config.origRenderWidth,o=r.connectnulldata,s=r.minimizetendency,l=this.components.data,c=Number.MIN_VALUE,u=Number.MAX_VALUE;0===s&&(e=function h(e,t,A,n,r){var a=[],o=!1,s=n||0,l=r;for(l=l||{max:Number.MIN_VALUE,min:Number.MAX_VALUE};s<e.length;++s)if(o){if(isNaN(e[s].config.setValue)||null===e[s].config.setValue){if(A)continue;break}a.push({index:s,y:e[s].config.setValue})}else{if(isNaN(e[s].config.setValue)||null===e[s].config.setValue)continue;o=!0,a.push({index:s,y:e[s].config.setValue})}return a.length>2&&i(a,t,l),s<e.length&&!A&&h(e,t,A,s,l),l}(l,a,o),t.maxValue=Math.max(t.maxValue,e.max),t.minValue=Math.min(t.minValue,e.min),t.maxValue===u&&(t.maxValue=n.UNDEF),t.minValue===c&&(t.minValue=n.UNDEF))};t["default"]=a},function(e,t,A){"use strict";t.__esModule=!0,t.getSplinePath=function(e,t,A,a,o){var s,g,p,f,m,v,b,B,C,w,y,x,F,E,S,Q,k,L,U,I,T,N,D,P=[null],M=[],O=[];for(N=0,D=e.length;N<D;N+=1)y=e[N],I=e[N-1]||{},T=e[N+1]||{},v=y.x,p=y.y,b=I.x,f=I.y,B=T.x,m=T.y,C=y.lastYPos,y.lastXPos,M.length,O.length,null!==C?(g=L,N===e.length-1?(Q=P[N-k-1],S=c(E=x=(v+b)/2,Q,b,f),(f>p&&S<p||f<p&&S>p)&&(E=u(S=p,Q,b,f)),L.push(E,S,x,(p+f)/2,v,p),M.push(L),O.push(L),a&&d(M,!0,U,t),a&&d(O,!1)):(Q=P[N-k-1],f>p&&m>=p||f<p&&m<=p?(w=0,x=h(b,f,v,p),F=p,N-k!=1?(S=c(E=x,Q,b,f),(f>p&&S<p||f<p&&S>p)&&(E=u(S=p,Q,b,f)),L.push(E,S,x,F,v,p)):L.push((v+b)/2,(p+f)/2,x,F,v,p)):f===p?(w=0,L.push(b,f,v,p,v,p)):(f>p&&p>m||f<p&&p<m)&&(w=l(b,f,B,m),x=h(b,f,v,p),F=c(x,w,v,p),(f>p&&F>f||f<p&&F<f)&&(x=u(F=f,w,v,p)),N-k!=1?(S=c(E=x,Q,b,f),(f>p&&S<p||f<p&&S>p)&&(E=u(S=p,Q,b,f)),L.push(E,S,x,F,v,p)):L.push((v+b)/2,(p+f)/2,x,F,v,p)),P.push(w))):null===C&&0!==N?(g||(g=[]),g[0]===r&&(M.push(L),O.push(L),a&&d(M,!0,U,t),a&&d(O,!1)),M.push([n,v,p]),O.push([n,v,p]),U=v,L=[r],k=N,P=[null]):(M.push([n,v,p]),O.push([n,v,p]),U=v,L=[r],k=N);g=M[M.length-1],a&&g&&(s=g.length,"Z"===g[s-1]||g[0]!==i&&g[0]!==r||(d(M,!0,U,t),d(O,!1)));a||(M=M).length>=2&&d(M,!1);return{closedPath:M,openPath:O}};var n="M",i="R",r="C",a=Math,o=a.sqrt,s=a.abs,l=function(e,t,A,n){return(n-t)/(A-e)},c=function(e,t,A,n){return(e-A)*t+n},u=function(e,t,A,n){return(e-n)/t+A},h=function(e,t,A,n){var i=(n-t)/o((A-e)*(A-e)+(n-t)*(n-t)),r=s(.5*i);return e*r+A*(1-r)},d=function(e,t,A,n){var a=e.length,o=e[a-1],s=o.length,l=o[0],c=o[s-2];s<3||(l!==i&&l!==r||3!==s||(e[a-1][0]="L"),t&&e.push(["L",c,n,A,n,"Z"]))}},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n=A(254);function i(e){var t,A,i,r=e.length,a=[],o=!1,s=!0;for(i=0;i<r;++i)t=e[i],s?(a.push(t),A=(0,n.extend2)([],t),s=!1):"Z"!==t?o||(a.push(t),t.toString()===e[i-1].toString()&&(o=!0)):(s=!0,o=!1,A[0]="L",a.push(A,"Z"));return a}function r(e){var t=e.component,A=t.components.data,n=t.getLinePath(A,null,"zero"),i=n.getPathArr().slice(0,n.getPathArr().length/2),r=e.attr;return[{initialAttr:{opacity:0,path:i},finalAttr:{opacity:1,path:r&&r.path},startEnd:{start:0,end:.5},slot:"plot",hookFn:function(){this.attr({opacity:1})}}]}function a(e){return"label-group"===e.attr.name?[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]:"plot-group"===e.attr.name?[{initialAttr:{opacity:0},finalAttr:{opacity:1},startEnd:{start:.5,end:1},slot:"plot"}]:[{initialAttr:{opacity:1},finalAttr:{opacity:1},slot:"final"}]}function o(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]}function s(e){var t=e.component,A=t.components.data,n=t.getLinePath(A,null,"zero"),r=e.attr;return[{initialAttr:{opacity:0,path:i(n.getPathArr())},finalAttr:{opacity:1,path:r&&r.path},startEnd:{start:0,end:.5},slot:"plot",hookFn:function(){this.attr({opacity:1})}}]}var l={"*.dataset.splinearea":function(){return{"anchor.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},startEnd:{start:.5,end:1},slot:"plot"}],"anchor.updating":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}],"anchor.disappearing":[{finalAttr:{opacity:0,"fill-opacity":0,"stroke-opacity":0},slot:"final"}],"line.appearing":s,"label.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}],"label.updating":o,"group.appearing":a,"connectorLine.appearing":r}}};t["default"]=l},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=n(A(589)),a=A(254),o=n(A(657)),s=A(262),l=A(658),c=n(A(661));(0,s.addDep)({name:"mssplineAnimation",type:"animationRule",extension:c["default"]});var u=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var A=t.prototype;return A.getType=function(){return"dataset"},A.getName=function(){return"spline"},A.configureAttributes=function(t){e.prototype.configureAttributes&&e.prototype.configureAttributes.call(this,t),o["default"].call(this)},A.getDataLimits=function(){return{max:this.config.maxValue,min:this.config.minValue}},A.drawCommonElements=function(){var e,t,A,n,i,r=this.components.data,o=this.config,s=Number(this.getFromEnv("chartConfig").connectnulldata),c=this.getFromEnv("xAxis"),u=this.getFromEnv("yAxis"),h=o.lineDashStyle,d=o.linethickness,g=[],p=null,f={color:o.linecolor,alpha:o.alpha},m={x:c.getLimit(),y:u.getLimit()},v=this.getState("visible")?r.length:0,b=o.lineOb||{},B=[],C=this.getFromEnv("chart"),w=/area/gi.test(C.defaultDatasetType);for(m.x.minPixel=c.getPixel(m.x.min),m.x.maxPixel=c.getPixel(m.x.max),m.y.minPixel=u.getPixel(m.y.min),m.y.maxPixel=u.getPixel(m.y.max),m.y.base=u.getPixel(0),m.x.base=c.getPixel(0),t=0;t<v;++t)(A=r[t])&&(i=(n=A.config||{}).setValue,n._Pbx=void 0,n._Pby=void 0,B[t]={config:{_Px:n._Px,_Py:n._Py,setValue:n.setValue}},null!=i?(g.push({x:n._Px,y:n._Py,lastYPos:p,lastXPos:e}),p=n._Py,e=n._Px):s||(p=null));o.pathStartIndex=0,o.pathEndIndex=void 0,b["default"]=b["default"]||{},b["default"].used=!0,b["default"].path=[{pathArr:(0,l.getSplinePath)(g,u.getPixel(u.getAxisBase()),C.config.minimizetendency,w).closedPath,path2Arr:[],getPathArr:function(){var e=this.pathArr,t=this.path2Arr;return e.length||t.length?e.concat(t):[]}}],b["default"].attr={"stroke-dasharray":h,"stroke-width":d,stroke:(0,a.toRaphaelColor)(f),"stroke-linecap":"round"},this._drawCommonElementsHelper(b),this.config.lineOb=b,o.prevLim=m,o.prevDataStore=B},t}(r["default"]);t["default"]=u},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i={"*.dataset.spline":n(A(592))["default"]["*.dataset.line"]};t["default"]=i},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=A(270),a=A(254),o=Math,s=o.min,l=o.max,c=o.abs,u=function(e){function t(){var t;return(t=e.call(this)||this).setState("visible",!0),t}(0,i["default"])(t,e);var A=t.prototype;return A.getType=function(){return"group"},t.getName=function(){return"columnMultiSeriesgroup"},A.getName=function(){return"columnMultiSeriesgroup"},A.preConfigure=function(t){if(!t)return!1;this.config.JSONData=t,e.prototype.preConfigure.call(this,t)},A.configure=function(t){if(!t)return!1;e.prototype.configure.call(this,t)},A.setVisibility=function(){var e=0;this._mapChildren((function(e){e.setVisibility&&e.setVisibility()})),this._mapChildren((function(t){t.getState("visible")&&e++})),this.setState("visible",!!e)},A.createContainer=function(){var e,t,A=this.getFromEnv("animationManager"),n=this.getLinkedParent().getChildContainer();for(e in n)t=n[e],!this.getChildContainer(e)&&this.addChildContainer(e,A.setAnimation({el:"group",attr:{name:"manager-"+e},component:this,container:t}))},A.allocatePosition=function(){this.setColumnPosition()},A.draw=function(){this.createContainer()},A.getCanvasPadding=function(){var e,t,A={paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0};return this.setColumnPosition(),this._mapChildren((function(n){for(t in e=!n.getState("removed")&&n.getState("visible")&&n.getCanvasPadding&&n.getCanvasPadding()||{})e.hasOwnProperty(t)&&(A[t]=Math.max(e[t],A[t]))})),A},A.setColumnPosition=function(){var e,t,A,n,i,r=this.getFromEnv("chartConfig"),o=this.getFromEnv("chart-attrib"),u=this.getFromEnv("xAxis"),h=this.getFromEnv("numOfColumns"),d=r.plotSpacePercent,g=l((0,a.pluckNumber)(d,20)%100,0),p=g/200,f=u.getPixel(0),m=u.getPixel(1),v=this.getFromEnv("chart").isBar?r.maxBarHeight:r.maxColWidth,b=c(m-f),B=r.plotPaddingPercent,C=!0,w=r.overlapColumns,y=0,x=0,F=0;this.addToEnv("groupMaxWidth",b),this._mapChildren((function(e){e.getState("removed")||!1===e.getState("visible")||(x++,e.addToEnv("updatedIndex",F++))})),this.addToEnv("numOfColumns",x),this.addToEnv("numColDiff",(0,a.pluckNumber)(h-x,0)),e=(1-.01*d)*b||s(b*(1-2*p),v*(x||1)),void 0===o.plotspacepercent&&e>=r.canvasWidth/2&&(e=b-v/2),n=s((t=0===x?e:e/x)-1,x>1?w||void 0!==B?B>0?t*B/100:0:4:0),this.addToEnv("oldPlotWidth",this.getFromEnv("plotWidth")),this.addToEnv("plotWidth",t-n),this.addToEnv("oldPlotPadding",this.getFromEnv("plotPadding")),this.addToEnv("plotPadding",n),A=-(x/2*t-t/2),this.addToEnv("oldGroupNetWidth",this.getFromEnv("groupNetWidth")),this.addToEnv("groupNetWidth",e),this._mapChildren((function(e){!e.getState("removed")&&e.getState("visible")&&(e.addToEnv("shift",A+y*t+n/2),y++)})),m-(i=e/2)-(f-i+e)<4&&(C=!1),0===g&&(C=!0),this.addToEnv("isCrisp",C)},A.childChanged=function(e){void 0===e&&(e={});var t,A,n=this.config,i=this.getLinkedParent(),r=0,a=this.getState("visible"),o={};this._mapChildren((function(e){e.getState("visible")&&r++})),this.setState("visible",!!r),a!==!!r&&(A=!0),!1!==e.dataLimitChanged&&((t=this.getDataLimits()).min===n.range.min&&t.max===n.range.max||(n.range.min=t.min,n.range.max=t.max,o.dataLimitChanged=!0,A=!0)),A?i.childChanged&&i.childChanged(o):this.asyncDraw()},A.getAxisValuePadding=function(){var e={},t=-Infinity,A=-Infinity;return this._mapChildren((function(n){n.getState("removed")||(e=n.getAxisValuePadding&&n.getAxisValuePadding()||{},t=Math.max(t,e.left||-Infinity),A=Math.max(A,e.right||-Infinity))})),t===-Infinity&&(t=0),A===-Infinity&&(A=0),this.config.padding||(this.config.padding={},this.config.padding.left=t,this.config.padding.right=A),{left:t,right:A}},A.getDataLimits=function(e){var t,A=+Infinity,n=-Infinity,i=0,r=function(e){n=Math.max(n,e.max),A=Math.min(A,e.min)};return this._mapChildren((function(A){A.getState("removed")||(!1!==A.getState("visible")?(i++,t=A.getDataLimits(e),r(t)):e&&(t=A.getDataLimits(e),r(t)))})),i?this.setState("visible",!0):this.setState("visible",!1),this.config.range||(this.config.range={},this.config.range.min=this.config.dataMin,this.config.range.max=this.config.dataMax),{max:n,min:A}},A.isVisible=function(){return!this.isNotVisible},t}(r.ComponentInterface);t["default"]=u},function(e,t,A){"use strict";t.__esModule=!0,t.scrollTo=function(e){var t=this.apiInstance;t.addJob("scrollToAPoint",(function(){if(e>=0&&e<=1){var A=t.getChildren&&t.getChildren(),n=A.xAxis[0],i=A.scrollBar&&A.scrollBar[0],r=i&&i.getChildren("scrollAnchor")[0],a=n.getLimit&&n.getLimit(),o=n.getVisibleConfig&&n.getVisibleConfig(),s=o.maxValue-o.minValue,l=a.max-a.min,c=e*(l-s)+a.min,u=c+s,h=(o.minValue-a.min)/(l-s);r.config.scrollPosition=e,t.fireChartInstanceEvent("scrollStart",{scrollPosition:h}),n.setVisibleConfig(c,u),t.fireChartInstanceEvent("scrollEnd",{previousScrollPosition:h,scrollPosition:e})}}),n.priorityList.postRender)},t.setAxisScale=function(e){void 0===e&&(e="column");var t,A,n,a,o,s=this.config,l=this.getChildren("xAxis")[0],c=l.getTicksLen(),u="bar2d"===e,h=u?"bar2D":e,d=this.getFromEnv("dataSource").chart,g=u?s.height:s.width,p=0,f=s.scrollToEnd,m=(0,i.pluckNumber)(d.numvisibleplot,r(g/s.avgScrollPointWidth));s.isstacked?this.iterateComponents((function(e){"cartesianStackGroup"===e.getName()&&!e.getState("removed")&&p++})):this.iterateComponents((function(e){e.getType&&"dataset"===e.getType()&&e.getName&&e.getName().toLowerCase()===h&&!e.getState("removed")&&p++}));n=c*(p=p||1);var v=l.getVisibleConfig();A=v.maxValue,t=v.minValue,m>=2&&m<n?(a=m/p,this.setScrollType("always"),f?t=A-a:A=t+a,0===t&&(A-=1),l.setVisibleConfig(t,A)):(o=l.getLimit(),l.setVisibleConfig(o.min,o.max),this.setScrollType("none"))},t.resetViewPortConfig=function(){this.config.viewPortConfig={scaleX:1,scaleY:1,x:0,y:0}},t.configurer=function(){var e,t=this.getFromEnv("dataSource").chart;(e=this.config).scrollToEnd=(0,i.pluckNumber)(t.scrolltoend,0),e.lastScrollPosition=void 0};var n=A(266),i=A(254),r=Math.floor},,,,,function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=n(A(599)),a=n(A(572)),o=n(A(662)),s=function(e){(0,i["default"])(A,e),A.getName=function(){return"MSColumn2D"};var t=A.prototype;function A(){var t;return(t=e.call(this)||this).eiMethods={},t}return t.getName=function(){return"MSColumn2D"},t.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.friendlyName="Multi-series Column Chart",this.config.defaultDatasetType="column",this.config.enablemousetracking=!0},t.getDSdef=function(){return a["default"]},t.getDSGroupdef=function(){return o["default"]},A}(r["default"]);t["default"]=s},,,function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=A(270),a=A(254),o=A(262),s=n(A(672)),l=a.preDefStr.visibleStr,c=Math,u=c.min,h=c.max;(0,o.addDep)({name:"cartesianStackAnimation",type:"animationRule",extension:s["default"]});var d=function(e){function t(){var t;return(t=e.call(this)||this).setState("visible",!0),t}(0,i["default"])(t,e);var A=t.prototype;return A.getType=function(){return"group"},t.getName=function(){return"cartesianStackGroup"},A.getName=function(){return"cartesianStackGroup"},A.preConfigure=function(t){if(!t)return!1;this.config.JSONData=t,e.prototype.preConfigure.call(this,t)},A.configure=function(t){if(!t)return!1;e.prototype.configure.call(this,t)},A.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t);var A=this.config,n=this.getFromEnv("chartConfig"),i=this.getFromEnv("chart-attrib");A.showTextOutline=(0,a.pluckNumber)(i.textoutline,0),A.showSum=(0,a.pluckNumber)(i.showsum,n.showSum,0),A.sumInside=0},A.setSkippingInfo=function(e){this.addToEnv("skipInfo",e||{drawOnlyMap:[],plotsPerBin:1,draw:[],hide:[],skippingApplied:!1,dragHashMap:[],prevDrawArray:[]})},A.getSkippingInfo=function(){return this.getFromEnv("skipInfo")||{drawOnlyMap:[],plotsPerBin:1,draw:[],hide:[],skippingApplied:!1,dragHashMap:[],prevDrawArray:[]}},A.setVisibility=function(){var e=0;this._mapChildren((function(t){t.getState("visible")&&e++})),this.setState("visible",!!e)},A.createContainer=function(){var e,t,A=this.getFromEnv("animationManager"),n=this.getLinkedParent(),i=n.getChildContainer();for(e in i)t=i[e],!this.getChildContainer(e)&&this.addChildContainer(e,A.setAnimation({el:"group",attr:{name:"manager-"+e},container:t,component:this}));!this.getContainer("sumLabelsLayer")&&this.addContainer("sumLabelsLayer",A.setAnimation({el:"group",attr:{name:"manager-sumLabelsLayer","class":"fusioncharts-datalabels"},label:"group",container:n.getChildContainer("sumLabelsLayer"),component:this})),!this.getChildContainer("commonElemGroupLine")&&this.addChildContainer("commonElemGroupLine",A.setAnimation({el:"group",attr:{name:"manager-common-elem-group"},label:"group",container:n.getChildContainer("lineVcanvasGroup"),component:this})),!this.getChildContainer("commonElemGroup")&&this.addChildContainer("commonElemGroup",A.setAnimation({el:"group",attr:{name:"manager-common-elem-group"},label:"group",container:n.getChildContainer("areaVcanvasGroup"),component:this})),!this.getChildContainer("anchorGroup")&&this.addChildContainer("anchorGroup",A.setAnimation({el:"group",attr:{name:"manager-anchor-group"},label:"group",container:this.getFromEnv("useLinePlotGroupForAnchorPlacement")?n.getChildContainer("lineVcanvasGroup"):n.getChildContainer("areaVcanvasGroup"),component:this}))},A.draw=function(){this.createContainer(),this.getFirstDataSet(),this.drawSumValue()},A._setStackPosition=function(){var e,t=+Infinity,A=-Infinity,n=this.getFromEnv("numOfColumns"),i=0,r=[],o=[],s=this.getSkippingInfo&&this.getSkippingInfo()||{},l=s.draw||[],c=l.length,d=s.skippingApplied,g=0;this._mapChildren((function(n){if(!n.getState("removed")&&!1!==n.getState("visible")){n.addToEnv("stackIndex",g++),i++;var a,s,p,f,m=n.getData(),v=0,b=m&&m.length,B=0;for(d&&(b=c),p=0;p<b;p++)(a=m[s=l[p]||p])&&a.config&&void 0!==a.config.setValue&&(r[s]||(r[s]={}),f=a.config.setValue,e=a.config.setLink,r[s].positive||(r[s].positive=0),r[s].negative||(r[s].negative=0),f>=0?(v=f+(B=r[s].positive),r[s].positive=v):f<0&&(v=f+(B=r[s].negative),r[s].negative=v),null!==f&&(r[s].isNotNull=!0),o[s]=e,A=h(v,A),t=u(v,t),a.config._y=v,a.config._b=B)}})),this.config.setLink=o,this.config.stackValues=r,this.config.dataMin=t,this.config.dataMax=A,i?this.setState("visible",!0):this.setState("visible",!1),this.addToEnv("stackValues",r),this.addToEnv("numOfColumns",i),this.addToEnv("numColDiff",(0,a.pluckNumber)(n-i,0))},A.allocatePosition=function(){this._setStackPosition()},A._getXpos=function(e){var t=this.getFromEnv("shift")||0;return this.getFromEnv("xAxis").getPixel(e)+t},A.drawSumValue=function(e,t){void 0===e&&(e=0);var A,n,i,r,o,s,c,u,h,d,g,p,f,m,v,b,B=this.config,C=this.getFromEnv("yAxis"),w=this.getFromEnv("paper"),y=this.getFromEnv("animationManager"),x=this.getFromEnv("chart"),F=x.isBar,E=this.getFromEnv("smartLabel"),S=x.config,Q=S.canvasRight,k=(0,a.pluckNumber)(S.stack100percent),L=S.rotatevalues?270:0,U=B.stackValues,I=B.setLink,T=t||U&&U.length,N=S.dataLabelStyle,D=this.getContainer("sumLabelsLayer"),P=this.getGraphicalElement("sumLabels");if(this.config.showSum){if(D.css(N),E.setStyle(N),(m=P&&P.length)>(v=U.length))for(;m>=v;)b=P[m],m--,b&&(b.hide(),this.removeGraphicalElement(b));for(A=e;A<T;A++)c=Array.isArray(P)&&P[A],U[A]&&U[A].isNotNull?(g=(f=(h=U[A].positive)+(d=U[A].negative))<0?d:h,(p=C.dataLabels(f))&&(r=N.backgroundColor,o=N.borderColor,s=E.getOriSize(p),F?(i=this._getXpos(A),n=C.getPixel(k?100:g),k?n+=s.width/2:n-=n+s.width>Q?n+s.width-Q:0):(n=this._getXpos(A),i=C.getPixel(k?100:g)),(u=this.getSumValuePosition(s,{stack100percent:k,rotateValues:L,xPos:n,yPos:i,offsetY:g,index:A})).text=p,u.cursor=I[A]&&1===this.config.sumInside?a.POINTER:"",u.fill=N.color,u["text-bound"]=[r,o,N.borderThickness,N.borderPadding,N.borderRadius,N.borderDash],u["line-height"]=N.lineHeight,u.visibility=l,u.transform=w.getSuggestiveRotation(L,u.x,u.y),u["text-anchor"]&&delete u["text-bound"],D&&D.show(),(c=y.setAnimation({el:c||"text",attr:u,label:"text",container:D,component:this})).show(),c.outlineText(B.showTextOutline,u.fill),Array.isArray(P)&&P[A]||this.addGraphicalElement("sumLabels",c,!0))):c&&c.hide()}else D.hide()},A.getSumValuePosition=function(e,t){var A,n,i,r,a,o,s,l=this.getFromEnv("chart"),c=l.config,u=this.getFromEnv("xAxis"),h=l.getChildren("scrollBar")&&l.getChildren("scrollBar")[0],d=c.canvasBottom,g=c.canvasTop,p=l.config.is3D,f=l.isBar,m=t.stack100percent,v=c.yDepth,b=c.xDepth,B=t.yPos,C=t.xPos,w=this.getFromEnv("canvasConfig").canvasBorderWidth,y=t.offsetY;if(t.rotateValues?(o=e.width,s=e.height):(o=e.height,s=e.width),r=(r=A=o)/2+2,a=(a=n=s)/2+2,m)if(g<=A)B=r;else{var x=u.getAxisConfig("isOpposit"),F=p?0:x?u.getAxisConfig("axisLineThickness"):0,E=h&&h.config.isOpposite,S=l.isScrollEnabled()&&E?l.config.shift:0;B=f?t.yPos:g-r-w-S-F,C+=f?w+F+S:0}else y>=0&&(f?((i=c.canvasLeft+c.canvasWidth-C)<n?(C=C-a+i,this.config.sumInside=1):C+=a,p&&(B+=v/2)):(i=B-g)<A?(this.config.sumInside=1,B=B+r-i):(B-=f?0:r,C+=f?2:0,this.getFromEnv("useImprovedLabelPlacement")&&(B=this._adjustSumValuePosition(t.index,!0,B,r))-r<g&&(B=g+r))),y<0&&(f?C=(i=C-c.canvasLeft)<n?C+a+2-i:C-a-2:(i=d-B)<A?B-=r:(B+=r,this.getFromEnv("useImprovedLabelPlacement")&&(B=this._adjustSumValuePosition(t.index,!1,B,r))+r>d&&(B=d-r)),p&&(C-=b,B+=v));return{x:C,y:B}},A.childChanged=function(e){void 0===e&&(e={});var t,A,n=this.config,i=this.getLinkedParent(),r=this.getState("visible"),a=0,o={};this._mapChildren((function(e){e.getState("visible")&&a++})),this.setState("visible",!!a),r!==!!a&&(A=!0),!1!==e.dataLimitChanged&&((t=this.getDataLimits()).min===n.range.min&&t.max===n.range.max||(n.range.min=t.min,n.range.max=t.max,o.dataLimitChanged=!0,A=!0)),A?i.childChanged&&i.childChanged(o):this.asyncDraw()},A.getAxisValuePadding=function(){var e={},t=-Infinity,A=-Infinity;return this._mapChildren((function(n){n.getState("removed")||(e=n.getAxisValuePadding&&n.getAxisValuePadding()||{},t=Math.max(t,e.left||-Infinity),A=Math.max(A,e.right||-Infinity))})),t===-Infinity&&(t=0),A===-Infinity&&(A=0),this.config.padding||(this.config.padding={},this.config.padding.left=t,this.config.padding.right=A),{left:t,right:A}},A.getDataLimits=function(e){return this._setStackPosition(),this.config.range||(this.config.range||(this.config.range={}),this.config.range.min=this.config.dataMin,this.config.range.max=this.config.dataMax),e?this._getStackLimit():{max:this.config.dataMax,min:this.config.dataMin}},A._getStackLimit=function(){var e=+Infinity,t=-Infinity,A=[],n=this.getSkippingInfo&&this.getSkippingInfo()||{},i=n.draw||[],r=i.length,a=n.skippingApplied;return this._mapChildren((function(n){if(!n.getState("removed")){var o,s,l,c,d=n.getData(),g=0,p=d&&d.length;for(a&&(p=r),l=0;l<p;l++)(o=d[s=i[l]||l])&&o.config&&void 0!==o.config.setValue&&null!==o.config.setValue&&(A[s]||(A[s]={}),c=o.config.setValue,A[s].positive||(A[s].positive=0),A[s].negative||(A[s].negative=0),c>0?(g=c+A[s].positive,A[s].positive=g):c<0&&(g=c+A[s].negative,A[s].negative=g),t=h(g,t),e=u(g,e))}})),{max:t,min:e}},A.isVisible=function(){return!this.isNotVisible},A.getMaxSumValueSpace=function(){var e,t,A,n,i,r=this.config.stackValues,a=this.getFromEnv("chart"),o={},s=r&&r.length,l=this.getFromEnv("number-formatter"),c=0,u=0,d=this.getFromEnv("smartLabel"),g=a.config.dataLabelStyle;for(d.useEllipsesOnOverflow(a.config.useEllipsesWhenOverflow),d.setStyle(g),e=0;e<s;e++)r[e]&&(i=r[e].positive+r[e].negative,t=l.dataLabels(i),A=(o=d.getOriSize(t)).width,n=o.height,u=h(u,A),c=h(c,n));return{maxWidth:u,maxHeight:c}},A.getCanvasPadding=function(){var e,t,A,n,i,r=this.getSkippingInfo(),a=r.skippingApplied,o=r.draw,s=this.config.stackValues,l=s[a?o[0]:0],c=s[a?o[o.length-1]:s.length-1],u=this.getFromEnv("xAxis"),d=this.getFromEnv("yAxis"),g=this.getFromEnv("chartConfig"),p=this.getFromEnv("smartLabel"),f=u.getValuePadding(),m=0,v=u.getPixel(0),b=g.rotatevalues,B={paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0};return this._setStackPosition(),this._mapChildren((function(A){for(t in e=A.getCanvasPadding&&A.getCanvasPadding()||{})e.hasOwnProperty(t)&&(B[t]=Math.max(e[t],B[t]))})),this.config.showSum&&(l&&(A=d.dataLabels(l.positive+l.negative),p.useEllipsesOnOverflow(g.useEllipsesWhenOverflow),p.setStyle(g.dataLabelStyle),n=p.getOriSize(A),i=b?n.height:n.width,l.isNotNull&&(m=(i||0)/2-(u.getPixel(f.left)-v))<0&&(m=0),B.paddingLeft=h(B.paddingLeft,m)),m=0,c&&(A=d.dataLabels(c.positive+c.negative),p.setStyle(g.dataLabelStyle),n=p.getOriSize(A),i=b?n.height:n.width,c.isNotNull&&(m=(i||0)/2-(u.getPixel(f.right)-v))<0&&(m=0),B.paddingRight=h(B.paddingRight,m))),B},A.getFirstDataSet=function(){var e=this.getChildren("dataset");if(e)for(var t=0;t<e.length;t++){var A=e[t];if(A.getState("visible")&&!A.getState("removed")){this.config.firstDataSetIndex=t;break}this.config.firstDataSetIndex=null}},A._adjustSumValuePosition=function(e,t,A,n){var i,r,a=[],o=A,s=this.getChildren();for(i in s)s.hasOwnProperty(i)&&(r=s[i],a=a.concat(r.filter((function(e){return"dataset"===e.getType()}))));return a.forEach((function(A){var i,r,a=A.components.data[e],s=a&&a.config,c=s&&s._state,u=s&&s.props&&s.props.label&&s.props.label.attr;!A.getState("removed")&&A.getState(l)&&u&&c&&(i={y:u.y,height:c.labelHeight},r={y:o,height:n},(i.y<=r.y&&r.y<=i.y+i.height||i.y<=r.y+r.height&&r.y+r.height<=i.y+i.height)&&(o=t?u.y-.6*c.labelHeight-.6*n:u.y+.6*c.labelHeight+.6*n))})),o},t}(r.ComponentInterface);t["default"]=d},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n=function(){return[{initialAttr:{opacity:1},finalAttr:{opacity:1},slot:"plot"}]},i=function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]},r={"initial.group.cartesianStackGroup":function(){return{"group.appearing":n,"text.appearing":i,"*":null}},"legendInteraction.group.cartesianStackGroup":{"text.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:0}}]},"initial.group.marimekkoStackgroup":function(){return{"text.appearing":i,"*":null}}};t["default"]=r},,,function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t._checkInvalidSpecificData=t["default"]=void 0;var i=n(A(268)),r=n(A(599)),a=n(A(572)),o=n(A(671)),s=n(A(676)),l=function(){var e,t=this.getFromEnv("dataSource"),A=t.dataset,n=t.categories;if(!A||!n)return!0;if(e=A.length)for(;e--;)if(!A[e].dataset)return!0};t._checkInvalidSpecificData=l;var c=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("dataset",s["default"],["vCanvas"]),t}(0,i["default"])(t,e),t.getName=function(){return"MSStackedColumn2D"};var A=t.prototype;return A._checkInvalidSpecificData=function(){return l.call(this)},A.getName=function(){return"MSStackedColumn2D"},A.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Multi-series Stacked Column Chart",t.defaultDatasetType="column",t.isstacked=!0,t.showSum=0,t.enablemousetracking=!0},A.getDSdef=function(){return a["default"]},A.getDSGroupdef=function(){return o["default"]},t}(r["default"]);t["default"]=c},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=function(e){var t,A,n,a,o,s,l=e.getFromEnv("dataSource").dataset,c=l&&l.length,u=0,h=e.getChildren("canvas")[0].getChildren("vCanvas")[0],d=[];if(!l)return void e.setChartMessage();for((0,i.componentFactory)(h,r["default"],"multiSeriesGroup_column"),s=h.getChildren("multiSeriesGroup_column")[0],t=0;t<c;t++)d.push(l[t].dataset);for((0,i.componentFactory)(s,e.getDSGroupdef(),"stackedGroup_column",c,d),o=s.getChildren("stackedGroup_column"),t=0;t<o.length;t++)if(!0!==o[t].getState("removed")){if(!(n=l[t].dataset))return void e.setChartMessage();A=n&&n.length,a=Array(A).fill(u).map((function(e,t){return e+t})),(0,i.datasetFactory)(o[t],e.getDSdef(),"dataset_column",A,n,a),u+=A}e.config._lastDatasetIndex=a[a.length-1]};var i=A(254),r=n(A(662))},,,function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=A(254),a=n(A(641)),o=A(675),s=n(A(589)),l=n(A(572)),c=n(A(671)),u=n(A(680)),h=r.preDefStr.SEVENTYSTRING,d=function(e){function t(){var t;return(t=e.call(this)||this).stack100percent=0,t.hasLineSet=!0,t.lineset=!0,t.registerFactory("dataset",u["default"],["vCanvas"]),t}(0,i["default"])(t,e),t.getName=function(){return"MSStackedColumn2DLineDy"};var A=t.prototype;return A.getName=function(){return"MSStackedColumn2DLineDy"},A.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.sDefaultDatasetType="line",t.friendlyName="Multi-series Dual Y-Axis Stacked Column and Line Chart",t.defaultDatasetType="column",t.isdual=!0,t.haslineset=!0,t.isstacked=!0,t.enablemousetracking=!0,t.anchorborderthickness=1,t.anchorimageurl=void 0,t.anchorimagepadding=1,t.anchorsides=1,t.anchoralpha=void 0,t.anchorbgalpha=r.HUNDREDSTRING,t.anchorimagealpha=r.HUNDREDSTRING,t.anchorimagescale=100,t.anchorstartangle=90,t.anchorshadow=0,t.anchorbgcolor=void 0,t.anchorbordercolor=void 0,t.anchorradius=3,t.showvalues=1,t.plotfillalpha=h,t.linedashlen=5,t.linedashgap=4,t.linedashed=void 0,t.linealpha=r.HUNDREDSTRING,t.linethickness=2,t.drawfullareaborder=1,t.connectnulldata=0,t.showSum=0},A._checkInvalidSpecificData=function(){return o._checkInvalidSpecificData.call(this)},A.getDSdef=function(e){return"line"===e?s["default"]:l["default"]},A.getDSGroupdef=function(){return c["default"]},t}(a["default"]);t["default"]=d},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=function(e){var t,A,n=e.getFromEnv("dataSource"),a=n.dataset,o=n.lineset,s=e.getChildren("canvas")[0].getChildren("vCanvas")[1];if(!a&&0===o.length)return void e.setChartMessage();(0,i["default"])(e),t=e.config._lastDatasetIndex+1,o&&o.length?(A=Array(o.length).fill(t).map((function(e,t){return e+t})),(0,r.datasetFactory)(s,e.getDSdef("line"),"dataset_line",o.length,o,A)):function(e){var t,A=e.getChildren("dataset_line");for(t=A&&A.length-1;t>-1;t--)A[t].remove()}(s)};var i=n(A(676)),r=A(254)},,,,,,,,,,,,function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=n(A(668)),a=n(A(693)),o=n(A(695)),s=n(A(602)),l=A(254),c=function(e,t,A){var n,i,r,a,o,s,l,c,u,h,d=A&&A.length,g=e,p=t;if(d)for(n=d-1;n>=0;n--)if(l=(r=A[n]).x1,c=r.y1,u=r.x2,h=r.y2,r.isTrendZone){if(g>=l&&g<=u&&p>=c&&p<=h)return r}else if(c!==h&&l!==u?(a=i=(c-h)/(l-u),-1,o=c-i*l,s=Math.abs(a*g+-1*p+o)/Math.sqrt(Math.pow(a,2)+Math.pow(-1,2))):l===u?s=Math.abs(l-g):c===h&&(s=Math.abs(c-p)),s<=r.tolerance)return r},u=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("axis",o["default"],["canvas"]),t.registerFactory("legend",s["default"]),t.registerFactory("quadrant",(function(e){var t,A=e.getChildren("canvas")[0],n=e.getChildren(),i=function(){return t.asyncDraw()};(0,l.componentFactory)(A,a["default"],"quadrant"),(t=A.getChildren("quadrant")[0]).addExtEventListener("visiblerangeset",i,n.xAxis[0]),t.addExtEventListener("visiblerangeset",i,n.yAxis[0]),t.configure()}),["dataset"]),t}(0,i["default"])(t,e),t.getName=function(){return"ScatterBase"};var A=t.prototype;return A.mouseoutHandler=function(e,t,A){var n=this.config.datasetOrder||this.getDatasets(),i=this.getChildren("mouseTracker")[0];n[t]&&n[t].components.data[A]?n[t]._firePlotEvent("fc-mouseout",A,e):this.getFromEnv("toolTipController").hideAll(),delete i._lastDatasetIndex,delete i._lastPointIndex},A.parseChartAttr=function(t){e.prototype.parseChartAttr.call(this,t),this.config.drawTrendRegion=0},A.__setDefaultConfig=function(){var t=this.config;e.prototype.__setDefaultConfig&&e.prototype.__setDefaultConfig.call(this),t.valuefontbold=0,t.stickytracking=1,t.usemessagelog=0,t.animationeffect="linear",t.showshadow=1,t.showhovereffect=void 0,t.plothovereffect=void 0,t.anchorhovereffect=void 0,t.plotborderdashed=void 0,t.stack100percent=void 0,t.showpercentvalues=void 0,t.showpercentintooltip=void 0,t.plotbordercolor=void 0,t.showtooltip=1,t.seriesnameintooltip=1,t.rotatevalues=0,t.minimizetendency=0,t.plotfillangle=270,t.valuepadding=2,t.useplotgradientcolor=1,t.plotborderthickness=1,t.plotfillalpha="70",t.showvalues=1,t.valueposition="auto",t.tooltipsepchar=", ",t.usedataplotcolorforlabels=0,t.placevaluesinside=0,t.showplotborder=1,t.use3dlighting=1,t.useroundedges=0,t.plotspacepercent=20,t.plotpaddingpercent=void 0,t.plotfillratio=void 0,t.maxcolwidth=50,t.plotborderdashlen=5,t.plotborderdashgap=4,t.useScaleRecursively=!0,t.zeroplanethickness=1,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.setadaptivexmin=1},A._drawTrendTooltip=function(e,t){var A=this.getFromEnv("toolTipController"),n=this.config.currentTrendToolTip,i=e.tooltext,r=t.originalEvent;n?A.draw(r,i,n):n=this.config.currentTrendToolTip=A.draw(r,i)},A._mouseEvtHandler=function(e,t){var A,n,i,r,a,o,s,u,h,d,g=this,p=t.mouseTracker,f=g.getChildren("canvas")[0],m=g.getFromEnv("toolTipController"),v=e.originalEvent,b=g.config,B=b.canvasBaseDepth||0,C=b.canvasLeft-(b.toleranceLeft||0),w=b.canvasRight+(b.toleranceRight||0),y=b.canvasBottom+(b.toleranceBottom||0),x=b.canvasTop-(b.toleranceTop||0),F=b.datasetOrder||g.getDatasets(),E=!1,S=F.length,Q=p._lastDatasetIndex,k=p._lastPointIndex;if(r=(i=(0,l.getMouseCoordinate)(g.getFromEnv("chart-container"),v,g)).chartX,a=i.chartY,r>C-B&&r<w&&a>x&&a<y+B){for(;S--&&!E;)(o=F[S])&&o.getState("visible")&&((s=o._getHoveredPlot&&o._getHoveredPlot(r,a))&&s.hovered||A)&&(E=!0,s.datasetIndex=S,d=p.getMouseEvents(e,s.datasetIndex,s.pointIndex));A=c(r,a,f.config.vtrendlines),n=c(r,a,f.config.trendlines)}if((!E||d&&d.fireOut)&&void 0!==Q&&F[Q]&&F[Q]._firePlotEvent&&(d&&!d.events.length?p.mouseoutTimer=setTimeout((function(){g.mouseoutHandler(e,Q,k)}),20):(g.mouseoutHandler(e,Q,k),clearTimeout(p.mouseoutTimer))),E)for(g.config.currentTrendToolTip&&m.hide(g.config.currentTrendToolTip),(h=d.events&&d.events.length)&&(p._lastDatasetIndex=s.datasetIndex,k=p._lastPointIndex=s.pointIndex),u=0;u<h;u+=1)o&&o._firePlotEvent&&o._firePlotEvent(d.events[u],k,e,s.datasetIndex);else A&&A.tooltext?g._drawTrendTooltip(A,e):n&&n.tooltext?g._drawTrendTooltip(n,e):g.config.currentTrendToolTip&&m.hide(g.config.currentTrendToolTip)},A._setCategories=function(){var e=this.getFromEnv("dataSource"),t=this.getChildren("xAxis"),A=String((0,l.pluck)(e.chart.xaxislabelmode,"categories")).toLowerCase(),n=e.categories,i=n&&n[0]&&n[0].category;t[0].setAxisConfig({xAxisLabelMode:"categories"}),"auto"!==A&&"mixed"!==A&&i&&i.length>0?t[0].setTickValues(i):"auto"!==A?(t[0].setTickValues(i),t[0].setAxisConfig({xAxisLabelMode:"mixed"})):(t[0].setTickValues(i),t[0].setAxisConfig({xAxisLabelMode:"auto"}))},A._allocateSpace=function(e){var t=this.getChildren("canvas"),A=t&&t[0].config,n=this.config,i=n.canvasHeight,r=n.canvasWidth,a=n.availableHeight,o=n.availableWidth;n.canvasLeft+=e.left||0,n.canvasTop+=e.top||0,r=n.canvasWidth=Math.max(r-((e.left||0)+(e.right||0)),0),i=n.canvasHeight=Math.max(i-((e.top||0)+(e.bottom||0)),0),n.availableHeight=Math.max(a-((e.top||0)+(e.bottom||0)),0),n.availableWidth=Math.max(o-((e.left||0)+(e.right||0)),0),n.canvasRight=n.canvasLeft+r,n.canvasBottom=n.canvasTop+i,A&&(A.canvasPaddingLeft=Math.max(A.canvasPaddingLeft,e.paddingLeft||0),A.canvasPaddingRight=Math.max(A.canvasPaddingRight,e.paddingRight||0),A.canvasPaddingTop=Math.max(A.canvasPaddingTop,e.paddingTop||0),A.canvasPaddingBottom=Math.max(A.canvasPaddingBottom,e.paddingBottom||0)),t[0].setDimension({top:n.canvasTop,left:n.canvasLeft,width:n.canvasWidth,height:n.canvasHeight})},A._postSpaceManagement=function(){var e,t=this.config,A=this.getChildren(),n=A.xAxis&&A.xAxis[0],i=A.legend&&A.legend[0],r=t.xDepth,a=this.getChildren("canvas");for(this.setAxisDimention(),n&&this._allocateXAxisLabelSpace(n),n&&n.shiftLabels(-r,0),i&&i.postSpaceManager(),e=0;e<(a&&a.length);e++)a[e].setCanvasPadding();this.setAxisDimention(),this.allocateDimensionOfChartMenuBar()},A._checkInvalidSpecificData=function(){if(!this.getFromEnv("dataSource").dataset)return!0},t}(r["default"]);t["default"]=u},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(272)),r=n(A(268)),a=A(270),o=A(254),s=A(262),l=n(A(694)),c=o.preDefStr.POSITION_START,u=o.preDefStr.POSITION_TOP,h=o.preDefStr.POSITION_BOTTOM,d=o.preDefStr.POSITION_END;(0,s.addDep)({name:"quadrantAnimation",type:"animationRule",extension:l["default"]});var g=function(e){function t(){var t;t=e.call(this)||this;var A=(0,i["default"])(t);return A.pIndex=1,A.components={},A.conf={},A.graphics={},t}(0,r["default"])(t,e);var A=t.prototype;return A.getType=function(){return"canvas"},A.getName=function(){return"quadrant"},A.configure=function(){var e,t,A,n,i,r,a,s,l,c,u,h,d,g,p,f,m,v,b,B,C,w,y,x,F=this.conf,E=this.getFromEnv("chart"),S=E.config,Q=E.getFromEnv("dataSource").chart,k=E.getChildren("canvas")[0].config,L=S.dataLabelStyle,U=E.getFromEnv("smartLabel");(F.enabled=(0,o.pluckNumber)(Q.drawquadrant,0))&&(m=(0,o.pluckNumber)(Q.quadrantxval),v=(0,o.pluckNumber)(Q.quadrantyval),b=(0,o.convertColor)((0,o.pluck)(Q.quadrantlinecolor,k.canvasBorderColor),(0,o.pluck)(Q.quadrantlinealpha,Q.quadrantlinealpha,o.HUNDREDSTRING)),B=(0,o.pluckNumber)(Q.quadrantlinethickness,k.canvasBorderThickness),w=(0,o.pluckNumber)(Q.quadrantlinedashed,Q.quadrantlineisdashed,0),C=(0,o.pluckNumber)(Q.quadrantlinedashlen,4),y=(0,o.pluckNumber)(Q.quadrantlinedashgap,2),x=w?(0,o.getDashStyle)(C,y):"none",F.xVal=m,F.yVal=v,F.quadrantLineColor=b,F.quadrantLineThickness=B,F.dashStyle=x,d=(0,o.parseUnsafeString)((0,o.getValidValue)(Q.quadrantlabeltl,"")),g=(0,o.parseUnsafeString)((0,o.getValidValue)(Q.quadrantlabeltr,"")),p=(0,o.parseUnsafeString)((0,o.getValidValue)(Q.quadrantlabelbl,"")),f=(0,o.parseUnsafeString)((0,o.getValidValue)(Q.quadrantlabelbr,"")),F.quadrantLabelPadding=(0,o.pluckNumber)(Q.quadrantlabelpadding,3),U.useEllipsesOnOverflow(S.useEllipsesWhenOverflow),U.setStyle(L),""!==d?(r=(0,o.getFirstValue)(Q.quadrantlabeltlbordercolor,Q.quadrantlabelbordercolor,""),a=(0,o.pluck)(Q.quadrantlabeltlbgcolor,Q.quadrantlabelbgcolor),s=(0,o.pluckNumber)(Q.quadrantlabeltlborderthickness,Q.quadrantlabelborderthickness,1),r=r?(0,o.convertColor)(r,(0,o.pluckNumber)(Q.quadrantlabeltlborderalpha,Q.quadrantlabelborderalpha,Q.quadrantlabeltlalpha,Q.quadrantlabelalpha,100)):"",(l=F.tlConfig)||(l=F.tlConfig={enabled:!0,styleObj:{}}),l.label=d,l.styleObj.fontSize=(0,o.pluck)((0,o.pluckNumber)(Q.quadrantlabeltlfontsize,Q.quadrantlabelfontsize),parseInt(L.fontSize,10))+"px",l.styleObj.fontSizeWithUnit=(0,o.pluckFontSizeMaintainUnit)((0,o.pluckNumber)(Q.quadrantlabeltlfontsize,Q.quadrantlabelfontsize),L.fontSizeWithUnit),l.styleObj.lineHeight=L.lineHeight,l.styleObj.fontFamily=(0,o.pluck)(Q.quadrantlabeltlfont,Q.quadrantlabelfont,L.fontFamily),l.styleObj.color=(0,o.convertColor)((0,o.pluck)(Q.quadrantlabeltlfontcolor,Q.quadrantlabelfontcolor,L.color),(0,o.pluckNumber)(Q.quadrantlabeltlfontalpha,Q.quadrantlabelfontalpha,100)),l.styleObj.fontWeight=(0,o.pluckNumber)(Q.quadrantlabeltlfontbold,Q.quadrantlabelfontbold)?"bold":"normal",l.styleObj.fontStyle=(0,o.pluckNumber)(Q.quadrantlabeltlfontitalic,Q.quadrantlabelfontitalic)?"italic":"normal",(0,o.setLineHeight)(l.styleObj),e=r,t=(0,o.pluckNumber)(Q.quadrantlabeltlborderpadding,Q.quadrantlabelborderpadding,2),A=(0,o.pluckNumber)(Q.quadrantlabeltlborderradius,Q.quadrantlabelborderradius,0),n=a?(0,o.convertColor)(a,(0,o.pluckNumber)(Q.quadrantlabeltlbgalpha,Q.quadrantlabelbgalpha,Q.quadrantlabeltlalpha,Q.quadrantlabelalpha,100)):"",i=(0,o.pluckNumber)(Q.quadrantlabeltlborderdashed,Q.quadrantlabelborderdashed,0)?(0,o.getDashStyle)((0,o.pluckNumber)(Q.quadrantlabeltlborderdashlen,Q.quadrantlabelborderdashlen,4),(0,o.pluckNumber)(Q.quadrantlabeltlborderdashgap,Q.quadrantlabelborderdashgap,2)):"none",l["text-bound"]=[n,e,s,t,A,i]):F.tlConfig&&(F.tlConfig.label=d),""!==g?(r=(0,o.getFirstValue)(Q.quadrantlabeltrbordercolor,Q.quadrantlabelbordercolor,""),a=(0,o.pluck)(Q.quadrantlabeltrbgcolor,Q.quadrantlabelbgcolor),s=(0,o.pluckNumber)(Q.quadrantlabeltrborderthickness,Q.quadrantlabelborderthickness,1),r=r?(0,o.convertColor)(r,(0,o.pluckNumber)(Q.quadrantlabeltrborderalpha,Q.quadrantlabelborderalpha,Q.quadrantlabeltralpha,Q.quadrantlabelalpha,100)):"",(c=F.trConfig)||(c=F.trConfig={enabled:!0,styleObj:{}}),c.label=(0,o.parseUnsafeString)((0,o.getValidValue)(Q.quadrantlabeltr,"")),c.styleObj.fontSize=(0,o.pluck)((0,o.pluckNumber)(Q.quadrantlabeltrfontsize,Q.quadrantlabelfontsize),parseInt(L.fontSize,10))+"px",c.styleObj.fontSizeWithUnit=(0,o.pluckFontSizeMaintainUnit)((0,o.pluckNumber)(Q.quadrantlabeltrfontsize,Q.quadrantlabelfontsize),L.fontSizeWithUnit),c.styleObj.lineHeight=L.lineHeight,c.styleObj.fontFamily=(0,o.pluck)(Q.quadrantlabeltrfont,Q.quadrantlabelfont,L.fontFamily),c.styleObj.color=(0,o.convertColor)((0,o.pluck)(Q.quadrantlabeltrfontcolor,Q.quadrantlabelfontcolor,L.color),(0,o.pluckNumber)(Q.quadrantlabeltrfontalpha,Q.quadrantrabelfontalpha,100)),c.styleObj.fontWeight=(0,o.pluckNumber)(Q.quadrantlabeltrfontbold,Q.quadrantlabelfontbold)?"bold":"normal",c.styleObj.fontStyle=(0,o.pluckNumber)(Q.quadrantlabeltrfontitalic,Q.quadrantlabelfontitalic)?"italic":"normal",(0,o.setLineHeight)(c.styleObj),e=r,t=(0,o.pluckNumber)(Q.quadrantlabeltrborderpadding,Q.quadrantlabelborderpadding,2),A=(0,o.pluckNumber)(Q.quadrantlabeltrborderradius,Q.quadrantlabelborderradius,0),n=a?(0,o.convertColor)(a,(0,o.pluckNumber)(Q.quadrantlabeltrbgalpha,Q.quadrantlabelbgalpha,Q.quadrantlabeltralpha,Q.quadrantlabelalpha,100)):"",i=(0,o.pluckNumber)(Q.quadrantlabeltrborderdashed,Q.quadrantlabelborderdashed,0)?(0,o.getDashStyle)((0,o.pluckNumber)(Q.quadrantlabeltrborderdashlen,Q.quadrantlabelborderdashlen,4),(0,o.pluckNumber)(Q.quadrantlabeltrborderdashgap,Q.quadrantlabelborderdashgap,2)):"none",c["text-bound"]=[n,e,s,t,A,i]):F.trConfig&&(F.trConfig.label=g),""!==p?(r=(0,o.getFirstValue)(Q.quadrantlabelblbordercolor,Q.quadrantlabelbordercolor,""),a=(0,o.pluck)(Q.quadrantlabelblbgcolor,Q.quadrantlabelbgcolor),s=(0,o.pluckNumber)(Q.quadrantlabelblborderthickness,Q.quadrantlabelborderthickness,1),r=r?(0,o.convertColor)(r,(0,o.pluckNumber)(Q.quadrantlabelblborderalpha,Q.quadrantlabelborderalpha,Q.quadrantlabelblalpha,Q.quadrantlabelalpha,100)):"",(u=F.blConfig)||(u=F.blConfig={enabled:!0,styleObj:{}}),u.label=p,u.styleObj.fontSize=(0,o.pluck)((0,o.pluckNumber)(Q.quadrantlabelblfontsize,Q.quadrantlabelfontsize),parseInt(L.fontSize,10))+"px",u.styleObj.fontSizeWithUnit=(0,o.pluckFontSizeMaintainUnit)((0,o.pluckNumber)(Q.quadrantlabelblfontsize,Q.quadrantlabelfontsize),L.fontSizeWithUnit),u.styleObj.lineHeight=L.lineHeight,u.styleObj.fontFamily=(0,o.pluck)(Q.quadrantlabelblfont,Q.quadrantlabelfont,L.fontFamily),u.styleObj.color=(0,o.convertColor)((0,o.pluck)(Q.quadrantlabelblfontcolor,Q.quadrantlabelfontcolor,L.color),(0,o.pluckNumber)(Q.quadrantlabelblfontalpha,Q.quadrantlabelfontalpha,100)),u.styleObj.fontWeight=(0,o.pluckNumber)(Q.quadrantlabelblfontbold,Q.quadrantlabelfontbold)?"bold":"normal",u.styleObj.fontStyle=(0,o.pluckNumber)(Q.quadrantlabelblfontitalic,Q.quadrantlabelfontitalic)?"italic":"normal",(0,o.setLineHeight)(u.styleObj),e=r,t=(0,o.pluckNumber)(Q.quadrantlabelblborderpadding,Q.quadrantlabelborderpadding,2),A=(0,o.pluckNumber)(Q.quadrantlabelblborderradius,Q.quadrantlabelborderradius,0),n=a?(0,o.convertColor)(a,(0,o.pluckNumber)(Q.quadrantlabelblbgalpha,Q.quadrantlabelbgalpha,Q.quadrantlabelblalpha,Q.quadrantlabelalpha,100)):"",i=(0,o.pluckNumber)(Q.quadrantlabelblborderdashed,Q.quadrantlabelborderdashed,0)?(0,o.getDashStyle)((0,o.pluckNumber)(Q.quadrantlabelblborderdashlen,Q.quadrantlabelborderdashlen,4),(0,o.pluckNumber)(Q.quadrantlabelblborderdashgap,Q.quadrantlabelborderdashgap,2)):"none",u["text-bound"]=[n,e,s,t,A,i]):F.blConfig&&(F.blConfig.label=p),""!==f?(r=(0,o.getFirstValue)(Q.quadrantlabelbrbordercolor,Q.quadrantlabelbordercolor,""),a=(0,o.pluck)(Q.quadrantlabelbrbgcolor,Q.quadrantlabelbgcolor),s=(0,o.pluckNumber)(Q.quadrantlabelbrborderthickness,Q.quadrantlabelborderthickness,1),r=r?(0,o.convertColor)(r,(0,o.pluckNumber)(Q.quadrantlabelbrborderalpha,Q.quadrantlabelborderalpha,Q.quadrantlabelbralpha,Q.quadrantlabelalpha,100)):"",(h=F.brConfig)||(h=F.brConfig={enabled:!0,styleObj:{}}),h.label=(0,o.parseUnsafeString)((0,o.getValidValue)(Q.quadrantlabelbr,"")),h.styleObj.fontSize=(0,o.pluck)((0,o.pluckNumber)(Q.quadrantlabelbrfontsize,Q.quadrantlabelfontsize),parseInt(L.fontSize,10))+"px",h.styleObj.fontSizeWithUnit=(0,o.pluckFontSizeMaintainUnit)((0,o.pluckNumber)(Q.quadrantlabelbrfontsize,Q.quadrantlabelfontsize),L.fontSizeWithUnit),h.styleObj.lineHeight=L.lineHeight,h.styleObj.fontFamily=(0,o.pluck)(Q.quadrantlabelbrfont,Q.quadrantlabelfont,L.fontFamily),h.styleObj.color=(0,o.convertColor)((0,o.pluck)(Q.quadrantlabelbrfontcolor,Q.quadrantlabelfontcolor,L.color),(0,o.pluckNumber)(Q.quadrantlabelbrfontalpha,Q.quadrantrabelfontalpha,100)),h.styleObj.fontWeight=(0,o.pluckNumber)(Q.quadrantlabelbrfontbold,Q.quadrantlabelfontbold)?"bold":"normal",h.styleObj.fontStyle=(0,o.pluckNumber)(Q.quadrantlabelbrfontitalic,Q.quadrantlabelfontitalic)?"italic":"normal",(0,o.setLineHeight)(h.styleObj),n=a?(0,o.convertColor)(a,(0,o.pluckNumber)(Q.quadrantlabelbrbgalpha,Q.quadrantlabelbgalpha,Q.quadrantlabelbralpha,Q.quadrantlabelalpha,100)):"",e=r,t=(0,o.pluckNumber)(Q.quadrantlabelbrborderpadding,Q.quadrantlabelborderpadding,2),A=(0,o.pluckNumber)(Q.quadrantlabelbrborderradius,Q.quadrantlabelborderradius,0),i=(0,o.pluckNumber)(Q.quadrantlabelbrborderdashed,Q.quadrantlabelborderdashed,0)?(0,o.getDashStyle)((0,o.pluckNumber)(Q.quadrantlabelbrborderdashlen,Q.quadrantlabelborderdashlen,4),(0,o.pluckNumber)(Q.quadrantlabelbrborderdashgap,Q.quadrantlabelborderdashgap,2)):"none",h["text-bound"]=[n,e,s,t,A,i]):F.brConfig&&(F.brConfig.label=f))},A._preDraw=function(){var e,t,A,n,i,r,a=this.conf,s=this.getFromEnv("chart"),l=s.getChildren("xAxis")[0],c=s.getChildren("yAxis")[0],u=l.getLimit(),h=c.getLimit(),d=u.max,g=h.max,p=u.min,f=h.min,m=s.config,v=m.canvasWidth,b=m.canvasHeight,B=a.quadrantLabelPadding,C=a.tlConfig,w=a.trConfig,y=a.blConfig,x=a.brConfig;return C&&(C.styleObj.fontSize=this.computeFontSize(C.styleObj.fontSizeWithUnit),(0,o.setLineHeight)(C.styleObj)),w&&(w.styleObj.fontSize=this.computeFontSize(w.styleObj.fontSizeWithUnit),(0,o.setLineHeight)(w.styleObj)),y&&(y.styleObj.fontSize=this.computeFontSize(y.styleObj.fontSizeWithUnit),(0,o.setLineHeight)(y.styleObj)),x&&(x.styleObj.fontSize=this.computeFontSize(x.styleObj.fontSizeWithUnit),(0,o.setLineHeight)(x.styleObj)),e=a.xVal||(a.xVal=(p+d)/2),(t=a.yVal||(a.yVal=(f+g)/2))>=f&&t<=g&&e>=p&&e<=d?(n=v-(A=v/(d-p)*(e-p)),i=b-(r=b/(g-f)*(t-f)),A-=B,n-=B,r-=B,((i-=B)<0||A<0)&&(C.enabled=!1),(i<0||n<0)&&(w.enabled=!1),(r<0||A<0)&&(y.enabled=!1),(r<0||A<0)&&(x.enabled=!1),a.enabled&&(a.drawQuadrant=!0)):a.drawQuadrant=!1,this},A._createGroups=function(){var e,t=this.getFromEnv("chart"),A=t.getFromEnv("animationManager"),n=t.getChildren("canvas")[0].getChildContainer("quadrantGroup"),i=this.getContainer("quadrantChildContainer"),r=this.getContainer("quadrantLineGroup"),a=this.getContainer("quadrantTLGroup"),o=this.getContainer("quadrantTRGroup"),s=this.getContainer("quadrantBLGroup"),l=this.getContainer("quadrantBRGroup");e=A.setAnimation({el:i||"group",attr:{name:"quadrant-child-container"},container:n,component:this,label:"group"}),i||this.addContainer("quadrantChildContainer",e),this.addContainer("quadrantLineGroup",A.setAnimation({el:r||"group",attr:{name:"quadrantLineGroup"},container:e,component:this,label:"group"})),this.addContainer("quadrantTLGroup",A.setAnimation({el:a||"group",attr:{name:"quadrantTLGroup"},container:e,component:this,label:"group"})),this.addContainer("quadrantTRGroup",A.setAnimation({el:o||"group",attr:{name:"quadrantTRGroup"},container:e,component:this,label:"group"})),this.addContainer("quadrantBLGroup",A.setAnimation({el:s||"group",attr:{name:"quadrantBLGroup"},container:e,component:this,label:"group"})),this.addContainer("quadrantBRGroup",A.setAnimation({el:l||"group",attr:{name:"quadrantBRGroup"},container:e,component:this,label:"group"}))},A.draw=function(){var e,t,A,n,i,r,a,o=this._preDraw(),s=o.conf,l=o.getFromEnv("chart"),g=l.config,p=g.reverseXAxis,f={wrtVisible:!0},m=o.getFromEnv("smartLabel"),v=o.getFromEnv("animationManager"),b=o.graphics,B=b.tlLabel,C=b.trLabel,w=b.blLabel,y=b.brLabel,x=g.textDirection,F=l.getChildren("xAxis")[0],E=l.getChildren("yAxis")[0],S=s.tlConfig||{},Q=s.trConfig||{},k=s.blConfig||{},L=s.brConfig||{},U=S.enabled&&S.label,I=Q.enabled&&Q.label,T=k.enabled&&k.label,N=L.enabled&&L.label,D=g.canvasLeft,P=g.canvasTop,M=s.quadrantLabelPadding,O=F.getLimit(),H=E.getLimit(),_=p?O.min:O.max,R=p?O.max:O.min,V=H.max,G=H.min,K=F.getPixel(R,f)+M,z=F.getPixel(_,f)-M,W=E.getPixel(G,f)-M,j=E.getPixel(V,f)+M,X=F.getPixel(s.xVal,f),Y=E.getPixel(s.yVal,f),J=X-K,q=z-X,Z=Y-j,$=W-Y,ee=b.horizontalQuadLine,te=b.verticalQuadLine,Ae=function(){this.hide()};o._createGroups(),t=o.getContainer("quadrantChildContainer"),A=o.getContainer("quadrantLineGroup"),n=o.getContainer("quadrantTLGroup"),i=o.getContainer("quadrantTRGroup"),r=o.getContainer("quadrantBLGroup"),a=o.getContainer("quadrantBRGroup"),s.enabled&&s.drawQuadrant?(t.show(),b.horizontalQuadLine=v.setAnimation({el:ee||"path",container:A,attr:{path:"M"+D+" "+Y+"h"+g.canvasWidth,stroke:s.quadrantLineColor,"stroke-dasharray":s.dashStyle,"stroke-width":s.quadrantLineThickness,"stroke-linecap":"butt"},component:o,label:"path"}),b.verticalQuadLine=v.setAnimation({el:te||"path",container:A,attr:{path:"M"+X+" "+P+"v"+g.canvasHeight,stroke:s.quadrantLineColor,"stroke-width":s.quadrantLineThickness,"stroke-dasharray":s.dashStyle,"stroke-linecap":"butt"},component:o,label:"path"}),U?(m.useEllipsesOnOverflow(g.useEllipsesWhenOverflow),m.setStyle(s.tlConfig.styleObj),e=m.getSmartText(U,J,Z),(B=b.tlLabel=v.setAnimation({el:B||"text",attr:{"text-anchor":c,"vertical-align":u,x:K,y:j,text:e.text,direction:x,"text-bound":s.tlConfig["text-bound"]},container:n,component:o,label:"text"})).css(s.tlConfig.styleObj)):B&&v.setAnimation({el:B,callback:Ae,component:this,label:"text"}),I?(m.setStyle(s.trConfig.styleObj),e=m.getSmartText(I,q,Z),(C=b.trLabel=v.setAnimation({el:C||"text",attr:{"text-anchor":d,"vertical-align":u,direction:x,x:z,y:j,text:e.text,"text-bound":s.trConfig["text-bound"]},container:i,component:o,label:"text"})).css(s.trConfig.styleObj)):C&&v.setAnimation({el:C,callback:Ae,component:this,label:"text"}),T?(m.setStyle(s.blConfig.styleObj),e=m.getSmartText(T,J,$),(w=b.blLabel=v.setAnimation({el:w||"text",attr:{"text-anchor":c,"vertical-align":h,direction:x,x:K,y:W,text:e.text,"text-bound":s.blConfig["text-bound"]},container:r,component:o,label:"text"})).css(s.blConfig.styleObj)):w&&v.setAnimation({el:w,callback:Ae,component:this,label:"text"}),N?(m.setStyle(s.brConfig.styleObj),e=m.getSmartText(N,q,$),(y=b.brLabel=v.setAnimation({el:y||"text",attr:{"text-anchor":d,"vertical-align":h,direction:x,x:z,y:W,text:e.text,"text-bound":s.brConfig["text-bound"]},container:a,component:o,label:"text"})).css(s.brConfig.styleObj)):y&&v.setAnimation({el:y,callback:Ae,component:this,label:"text"})):t&&v.setAnimation({el:t,component:o,doNotRemove:!0,callback:function(){this.hide()},label:"group"})},t}(a.ComponentInterface);t["default"]=g},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.canvas.quadrant":function(){return{"path.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"axis"}]},"text.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"plot"}]}}}}},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=function(e){var t,A,n=e.getChildren("canvas")[0],a=n.getChildren("axisRefVisualCartesian")[0],o={zoomable:!0,pannable:!0},s=e._feedAxesRawData(),l=function(e){var t=e.sender;a.addexplicitDrawItems(t.getId(),t),a.asyncDraw()};(0,i.componentFactory)(e,r["default"],"yAxis",1,s.yAxisConf),(0,i.componentFactory)(e,r["default"],"xAxis",1,s.xAxisConf),t=e.getChildren("yAxis")[0],A=e.getChildren("xAxis")[0],t.setLinkedItem("canvas",n),A.setLinkedItem("canvas",n),a.setLinkedItem(t.getId(),t),a.setLinkedItem(A.getId(),A),a.addExtEventListener("visiblerangeset",l,A),a.addExtEventListener("visiblerangeset",l,t),n.attachAxis(A,!1,e.zoomX?o:{}),n.attachAxis(t,!0,e.zoomY?o:{}),e._setCategories()};var i=A(254),r=n(A(514))},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=n(A(589)),a=A(254),o=A(262),s=n(A(697)),l=n(A(698)),c=n(A(699)),u=Math,h=u.max,d=u.min,g=u.round;(0,o.addDep)({name:"scatterAnimation",type:"animationRule",extension:l["default"]});var p=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var A=t.prototype;return A.getType=function(){return"dataset"},A.setupHoverTracker=function(){var e,t,A,n,i,r,a,o=this.config.searchDataArr=[],l=this.components.data,c={},u=this.getSkippingInfo&&this.getSkippingInfo(),h=u&&u.draw||[],d=h.length,g=u&&u.skippingApplied;for(A=l.length,g&&(A=d),t=0;t<A;t++)(r=l[e=h[t]||[t]])&&(n=(a=r.config)._Px,i=a._Py,c=a.anchorProps,o.push({x:n,y:i,index:e,data:r,r:c.radius||0}));this.config.dataTree=(new s["default"]).buildKdTree(o)},A.getName=function(){return"scatter"},A.addDatasetSpecificEvtArgs=function(e){var t=e.config,A=t.anchorProps,n=t.eventArgs;Object.assign(n,{showValue:t.showValue,hoverColor:!0===t.hoverEffects.enabled?t.hoverEffects.hoverColor||A.bgColor:void 0,hoverAlpha:!0===t.hoverEffects.enabled?t.hoverEffects.hoverAlpha||"100":void 0,anchorBgColor:A.bgColor,anchorBgAlpha:A.anchorBgAlpha,anchorAlpha:A.anchorAlpha,anchorBorderColor:A.borderColor,anchorBorderThickness:A.borderThickness,anchorRadius:A.radius,anchorSides:A.sides,anchorStartAngle:A.startAngle,anchorHoverSides:t.hoverEffects.anchorSides})},A.configureAttributes=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,A,n,i,r,o=this.getFromEnv("chart"),s=this.config,l=s.JSONData,c=o.areaAlpha,u=o.getFromEnv("dataSource").chart,h=this.getFromEnv("color-manager"),d=(0,a.pluckNumber)(l.showplotborder,u.showplotborder||1),g=h.getPlotColor(this.index),p=s.lineDashed=(0,a.pluckNumber)(l.linedashed,l.dashed,u.linedashed,0),f=this.isLineSet;s.plotColor=g,i=(0,a.pluckNumber)(o.defaultPlotShadow,h.getColor("showShadow")),s.toolTipSepChar=(0,a.pluck)(u.tooltipsepchar,", "),s.legendFillColor=(0,a.pluck)(u.legendfillcolor,1),s.defaultValuePadding={left:0,right:0},s.parentYAxis=A=f||"s"===(0,a.pluck)(l.parentyaxis&&l.parentyaxis.toLowerCase(),"p")?1:0,this.config.yAxis=this.getFromEnv("yAxis")[A],s.connectNullData=(0,a.pluckNumber)(u.connectnulldata,0),s.seriesname=(0,a.parseUnsafeString)(l.seriesname),s.includeinlegend=(0,a.pluckNumber)(l.includeinlegend,s.seriesname?1:0),s.showTextOutline=(0,a.pluckNumber)(u.textoutline,0),s.enableAnimation=n=(0,a.pluckNumber)(u.animation,u.defaultanimation,1),s.animation=!!n&&{duration:1e3*(0,a.pluckNumber)(u.animationduration,1)},s.transposeanimation=(0,a.pluckNumber)(u.transposeanimation,n),s.transposeanimduration=1e3*(0,a.pluckNumber)(u.transposeanimduration,.2),s.showvalues=(0,a.pluckNumber)(l.showvalues,u.showvalues),s.valuePadding=(0,a.pluckNumber)(u.valuepadding,2),s.valuePosition=(0,a.pluck)(l.valueposition,u.valueposition,"auto"),s.showTooltip=(0,a.pluckNumber)(u.showtooltip,1),s.seriesNameInTooltip=(0,a.pluckNumber)(u.seriesnameintooltip,1),s.plotFillColor=s.plotfillcolor=(0,a.pluck)(l.color,u.plotfillcolor,g),s.plotFillAngle=s.plotFillAngle=(0,a.pluck)(u.plotfillangle,270),s.plotFillAlpha=s.plotfillalpha=(0,a.pluck)(l.alpha,u.plotfillalpha,c,"100"),r=(0,a.pluckNumber)(u.useplotgradientcolor,1),s.plotGradientColor=s.plotgradientcolor=0!==r?(0,a.getDefinedColor)(u.plotgradientcolor,h.getColor("plotGradientColor")):"",s.fillColor=s.fillcolor={color:s.plotfillcolor+(s.plotgradientcolor?","+s.plotgradientcolor:a.BLANKSTRING),alpha:s.plotfillalpha,angle:s.plotFillAngle},s.plotBorderAlpha=s.plotborderalpha=d?(0,a.pluck)(l.plotborderalpha,u.plotborderalpha,l.alpha,"95"):0,s.plotBorderColor=s.plotbordercolor=(0,a.pluck)(l.plotbordercolor,u.plotbordercolor,u.areabordercolor,"666666"),s.dashed=t=(0,a.pluckNumber)(l.dashed,u.plotborderdashed),s.plotBorderDashLen=s.plotborderdashlen=(0,a.pluck)(l.plotborderdashlen,u.plotborderdashlen,5),s.plotBorderDashGap=s.plotborderdashgap=(0,a.pluck)(l.plotborderdashgap,u.plotborderdashgap,4),s.plotBorderThickness=s.plotborderthickness=(0,a.pluckNumber)(l.plotborderthickness,u.plotborderthickness,1),s.plotBorderDashStyle=s.plotborderdashstyle=t?(0,a.getDashStyle)(s.plotborderdashlen,s.plotborderdashgap):"none",s.showHoverEffect=s.showhovereffect=(0,a.pluckNumber)(u.plothovereffect,u.anchorhovereffect,u.showhovereffect,void 0),s.rotateValues=(0,a.pluckNumber)(u.rotatevalues)?270:0,s.drawLine=(0,a.pluckNumber)(l.drawline,u.drawlines,0),s.lineThickness=s.linethickness=(0,a.pluckNumber)(l.linethickness,u.linethickness,2),s.lineDashLen=s.linedashlen=(0,a.pluckNumber)(l.linedashlen,u.linedashlen,5),s.lineDashGap=s.linedashgap=(0,a.pluckNumber)(l.linedashgap,u.linedashgap,4),s.lineAlpha=s.linealpha=(0,a.pluckNumber)(l.linealpha,u.linealpha,l.alpha,a.HUNDREDSTRING),s.lineColor=s.linecolor=(0,a.pluck)(l.linecolor,u.linecolor,l.color,s.plotColor),s.lineDashStyle=s.linedashstyle=(0,a.getDashStyle)(s.linedashlen,s.linedashgap),s.lineDashStyle=s.linedashstyle=p?s.linedashstyle:"none",s.shadow={opacity:(0,a.pluckNumber)(u.showshadow,i)?s.linealpha/100:0},s.drawanchors=(0,a.pluckNumber)(l.drawanchors,l.showanchors,u.drawanchors,u.showanchors),s.anchorbgcolor=(0,a.getFirstColor)((0,a.pluck)(l.anchorbgcolor,u.anchorbgcolor,h.getColor("anchorBgColor"))),s.anchorbordercolor=(0,a.getFirstColor)((0,a.pluck)(l.anchorbordercolor,l.color,u.anchorbordercolor,s.linecolor)),s.anchorradius=(0,a.pluckNumber)(l.anchorradius,u.anchorradius,3),s.anchoralpha=(0,a.pluck)(l.anchoralpha,l.alpha,u.anchoralpha,a.HUNDREDSTRING),s.anchorbgalpha=(0,a.pluck)(l.anchorbgalpha,l.alpha,u.anchorbgalpha,a.HUNDREDSTRING),s.anchorborderthickness=(0,a.pluck)(l.anchorborderthickness,u.anchorborderthickness,1),s.anchorsides=(0,a.pluckNumber)(l.anchorsides,u.anchorsides,s.index+3),s.anchorimageurl=(0,a.pluck)(l.anchorimageurl,u.anchorimageurl),s.anchorimagealpha=(0,a.pluckNumber)(l.anchorimagealpha,u.anchorimagealpha,100),s.anchorimagescale=(0,a.pluckNumber)(l.anchorimagescale,u.anchorimagescale,100),s.anchorimagepadding=(0,a.pluckNumber)(l.anchorimagepadding,u.anchorimagepadding,1),s.anchorstartangle=(0,a.pluckNumber)(l.anchorstartangle,u.anchorstartangle,90),s.anchorshadow=(0,a.pluckNumber)(l.anchorshadow,u.anchorshadow,0),s.plotToolText=(0,a.getValidValue)((0,a.parseUnsafeString)((0,a.pluck)(l.plottooltext,u.plottooltext),!1)),this.setState("visible",1===(0,a.pluckNumber)(l.visible,!Number(l.initiallyhidden),1)),this._setConfigure(),!1!==o.config.hasLegend&&o.config.showLegend&&this._addLegend(),this.setState("dirty",!0)},A.calculateScrollRange=function(){var e=this.config,t=this.getFromEnv("chart"),A=this.getFromEnv("xAxis"),n=t.hasScroll,i=this.components.data.length;e.scrollMinVal=n?h(g(A.getVisibleConfig().minValue)-1,0):0,e.scrollMaxVal=n?d(g(A.getVisibleConfig().maxValue)+2,i):i,e.scrollMinValForLabel=e.scrollMinVal,e.scrollMaxValForLabel=e.scrollMaxVal},A._setConfigure=function(){var e,t,A,n,i,r,o,s,l,u,h,d,g=-Infinity,p=+Infinity,f=g,m=p,v=p,b=g,B=this.components.data||(this.components.data=[]),C=this.getFromEnv("chart"),w=this.config,y=w.JSONData,x=C.getFromEnv("dataSource").chart,F=y.data||[],E=F.length,S=this.getFromEnv("number-formatter"),Q=(0,a.parseUnsafeString)(x.yaxisname),k=(0,a.parseUnsafeString)(x.xaxisname),L=w.lineDashed,U=w.linedashstyle,I=w.parentYAxis,T=w.toolTipSepChar,N=w.seriesname;for(w.imageCount=0,e=0;e<E;e+=1)n=F[e],(t=(A=B[e]||(B[e]={})).config||(A.config={})).setValue=i={x:S.getCleanValue(n.x),y:S.getCleanValue(n.y)},null!==i.x&&null!==i.y&&(i.x>b&&(b=i.x,w.rightMostData=A),i.x<v&&(v=i.x,w.leftMostData=A),i.y>f&&(f=i.y,w.topMostData=A),i.y<m&&(m=i.y,w.bottomMostData=A)),t._x=i.x,t._y=i.y,t.dataLabelStyle=this._configureDataLabelStyle(n),t.setLink=(0,a.pluck)(n.link),t.anchorProps=this._parseAnchorProperties(e),t.showValue=(0,a.pluckNumber)(n.showvalue,w.showvalues),t.dashed=(0,a.pluckNumber)(n.dashed,L),t.color=(0,a.pluck)(n.color,w.linecolor),t.alpha=(0,a.pluck)(n.alpha,w.linealpha),t.valuePadding=(0,a.pluckNumber)(n.valuepadding,y.valuepadding,C.config.valuepadding),t.dashStyle=t.dashed?U:"none",t.toolTipValue=o=S.dataLabels(i.y,I),t.setDisplayValue=d=(0,a.parseUnsafeString)(n.displayvalue),u=t.formatedVal=(0,a.pluck)(n.toolTipValue,S.dataLabels(i.y,I)),h=S.xAxis(i.x),t.displayValue=(0,a.pluck)(d,o),t.setTooltext=(0,a.getValidValue)((0,a.parseUnsafeString)((0,a.pluck)(n.tooltext,w.plotToolText),!1)),w.showTooltip?void 0!==t.setTooltext?(s=[4,5,6,7,8,9,10,11],l={yaxisName:Q,xaxisName:k,yDataValue:u,xDataValue:h},r=(0,a.parseTooltext)(t.setTooltext,s,l,n,x,y)):null===u?r=!1:(r=N?N+T:a.BLANKSTRING,(0,c["default"])(i.x)?r+=a.BLANKSTRING:r+=h+T,r+=o):r=!1,t.toolText=r,A?A.graphics||(B[e].graphics={}):A=B[e]={graphics:{}},t.hoverEffects=this._parseHoverEffectOptions(A,n),t.anchorProps.isAnchorHoverRadius=t.hoverEffects.anchorRadius;w.xMax=b,w.xMin=v,w.yMin=m,w.yMax=f,this.ErrorValueConfigure&&this.ErrorValueConfigure()},A._getHoveredPlot=function(e,t){var A=this.config.dataTree.getNeighbour({x:e,y:t},!0);if(A)return{pointIndex:A.index||A.i,hovered:!0,pointObj:A.data}},A.drawPlots=function(){e.prototype.drawPlots.call(this),this.setupHoverTracker()},A.getRegressionPoints=function(){var e,t,A,n,i,r,a,o,s=this.getChildren("regression"),l=-Infinity,c=Infinity,u=-Infinity,h=Infinity;if(s&&s.length&&!s[0].getState("removed")){for(a=(e=s[0]._config.regressionPoints||[]).length,t=0;t<a;t++)for(i=e[t],A=0;A<i.length;A++)for(o=(r=i[A]||[]).length,n=0;n<o;n++)l=Math.max(l,r[n].x),c=Math.min(c,r[n].x),u=Math.max(u,r[n].y),h=Math.min(h,r[n].y);return{max:u,min:h,xMax:l,xMin:c}}},A.getDataLimits=function(){var e=this.config,t=this.getFromEnv("chart").config,A=e.yMax,n=e.yMin,i=e.xMax,r=e.xMin,a=-Infinity,o=+Infinity,s=t.transposeAxis,l=this.getRegressionPoints();return!1===this.getState("visible")&&s&&(A=a,n=o,i=a,r=o),l&&(A=Math.max(A,l.max),n=Math.min(n,l.min),i=Math.max(i,l.xMax),r=Math.min(r,l.xMin)),{max:A,min:n,xMax:i,xMin:r}},A.getAxisValuePadding=function(){return this.config.defaultValuePadding},A.getCanvasPadding=function(){var e,t,A,n,i,r,o,s,l,c,u,g,p,f,m,v,b,B=this.config||(this.config={}),C=this.components||{},w=this.getFromEnv("chartConfig"),y=w.rotatevalues,x=this.getFromEnv("xAxis"),F=this.getFromEnv("yAxis"),E=x.config.isReverse,S=this.getFromEnv("dataLabelStyle"),Q=C.data||[],k=Q.length,L=B.leftMostData||Q[0],U=B.rightMostData||Q[Q.length-1],I=B.topMostData,T=B.bottomMostData,N=d(w.canvasHeight,w.canvasWidth)/8,D=x.getValue(0),P=1,M=1,O=w.zMax,H=B.bubbleScale,_={},R={},V=0,G=0,K=x.config.axisRange,z=K.min,W=K.max,j=F.config.axisRange,X=j.min,Y=j.max,J=x.getPixel(z),q=x.getPixel(W),Z=this.getFromEnv("smartLabel"),$={paddingLeft:0,paddingRight:0},ee=0;for(e=N/Math.sqrt(O),l=0;l<k;l++)t=Q[l].config,A=L.config,n=U.config,o=Math.sqrt(t.z),f=Math.round(o*e)*H||0,m=x.getValue(f)-D,c=t.x-m/2,1===P&&(o=Math.sqrt(A.z),f=Math.round(o*e)*H||0,m=x.getValue(f)-D,u=A.x-m/2),1===M&&(o=Math.sqrt(n.z),f=Math.round(o*e)*H||0,m=x.getValue(f)-D,g=n.x-m/2),P=0,M=0,u>c&&(L=Q[l],P=1),g<c&&(U=Q[l],M=1);return L&&(r=(i=L.config).anchorProps.radius,(v=i.showValue)&&(p=i.displayValue,Z.useEllipsesOnOverflow(w.useEllipsesWhenOverflow),Z.setStyle(S),R=Z.getOriSize(p),ee=y?R.height:R.width),null!==i.setValue&&(c=x.getPixel(i.setValue.x),G=E?q-(s=c-.5*ee):J-(s=c-.5*ee),V=!E&&c-r<=J||E&&c-r<=q?E?q-(c-r):J-(c-r):0),$.paddingLeft=h(G,V)),U&&(v=(i=U.config).showValue,r=i.anchorProps.radius,v&&(p=i.displayValue,Z.setStyle(S),_=Z.getOriSize(p),ee=y?_.height:_.width),null!==i.setValue&&(G=(s=(c=x.getPixel(i.setValue.x))-J+.5*ee)-q+J,E&&(G=s),V=!E&&c+r>=q||E&&c+r>=J?E?c+r-J:c+r-q:0),$.paddingRight=h(G,V)),I&&(r=(i=I.config).anchorProps.radius||0,Y=F.getPixel(Y),null!==i.setValue&&(b=F.getPixel(i.setValue.y),V=(0,a.pluckNumber)(r,0)+(0,a.pluckNumber)(i.anchorProps.borderThickness,0)/2),$.paddingTop=Y-(b-V)>0?Y-(b-V):0),T&&(r=(i=T.config).anchorProps.radius||0,X=F.getPixel(X),null!==i.setValue&&(b=F.getPixel(i.setValue.y),V=(0,a.pluckNumber)(r,0)+(0,a.pluckNumber)(i.anchorProps.borderThickness,0)/2),$.paddingBottom=b+V-X>0?b+V-X:0),$},A._addLegend=function(){var e,t,A,n,i,r,o,s,l,c=this.getFromEnv("chart"),u=this.getFromEnv("chart-attrib"),h=this.config,d=this.config.JSONData||{},g=c.getChildren("legend")[0],p=(0,a.pluckNumber)(h.drawanchors,1),f={fillColor:(r=h.anchorbgcolor,o=h.plotFillAlpha,s=r,l=o,s=(0,a.getFirstColor)(s),l=(0,a.getFirstAlpha)(l),{FCcolor:{gradientUnits:"objectBoundingBox",cx:.4,cy:.4,r:"100%",color:(0,a.getLightColor)(s,70)+","+(0,a.getDarkColor)(s,50),alpha:l+","+l,ratio:a.BGRATIOSTRING,radialGradient:!0}}),lineColor:{FCcolor:{color:h.anchorbordercolor,alpha:h.anchoralpha}},lineWidth:h.anchorborderthickness};g.config.symbol3DLighting?f.fillcolor&&f.fillcolor.FCcolor?(e=(0,a.extend2)({},f.fillcolor)).FCcolor.alpha=h.plotFillAlpha:e=(0,a.pluck)(f.fillColor):e={FCcolor:{color:(0,a.pluck)((t=f.fillColor)&&(t.FCcolor&&t.FCcolor.color.split(",")[0]||t)),angle:0,ratio:"0",alpha:"100"}},n={enabled:h.includeInLegend,type:this.type,drawLine:(0,a.pluck)(h.drawLine,!0),anchorSide:p?h.anchorsides:0,label:(0,a.getFirstValue)(this.config.JSONData.seriesname),legendIconAlpha:(0,a.pluckNumber)(d.legendiconalpha)},h.includeinlegend?((i=g.getItem(this.config.legendItemId))?i.configure({style:g.config.itemStyle,hiddenStyle:g.config.itemHiddenStyle,datasetVisible:g.config.datasetVisible,hoverStyle:g.config.itemHoverStyle}):(this.config.legendItemId=g.createItem(this),i=g.getItem(this.config.legendItemId),this.addExtEventListener("fc-click",(function(){i.itemClickFn()}),i)),i.configure(n),i.setStateCosmetics("default",{symbol:{fill:h.legendFillColor?h.anchorbgcolor:(0,a.toRaphaelColor)(e),bgAlpha:(0,a.pluckNumber)(d.legendiconbgalpha,d.legendiconalpha,u.legendiconbgalpha,u.legendiconalpha,h.plotFillAlpha),borderAlpha:(0,a.pluckNumber)(d.legendiconborderalpha,d.legendiconalpha,u.legendiconborderalpha,u.legendiconalpha,"100"),rawFillColor:h.anchorbgcolor,rawStrokeColor:h.lineColor,stroke:(0,a.toRaphaelColor)((0,a.pluck)((A=f.lineColor)&&(A.FCcolor&&A.FCcolor.color.split(",")[0]||A))),"stroke-width":h.anchorborderthickness}}),this.getState("visible")?i.removeLegendState("hidden"):i.setLegendState("hidden")):this.config.legendItemId&&g.disposeItem(this.config.legendItemId)},A.getDSGroupdef=function(){},A.trimData=function(e){if(this.config.JSONData){var t,A,n=this.config,i=n&&n.context,r=i&&i.prevCatlen,a=this.getFromEnv("xAxis").getTicksLen(),o=r-a,s=n.JSONData,l=s.data&&s.data.length,c=e.data&&e.data.length||0,u=l-c;o>u?(t=o,A=a):(t=u,A=c),t>0&&this.removeData(A,t,!1)}},t}(r["default"]);t["default"]=p},function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;
/** !
 * @license FusionCharts JavaScript Library - KDtree
 * Copyright FusionCharts, Inc.
 * License Information at <http://www.fusioncharts.com/license>
 *
 * @version //? write(JSON.parse(require('fs').readFileSync('./package.json')).version);
 */
var n=function(e,t,A,n,i){return Math.pow(A-e,2)+Math.pow(n-t,2)<=Math.pow(i,2)},i=Math.PI,r=Math.cos,a=Math.sin,o=Math.max,s=Math.min,l=i/180,c=function(e,t,A,n,i,r){var a,o,s;return a=(n-t)*(i-A),o=(A-e)*(r-n),isNaN(a)&&(a=0),isNaN(o)&&(o=0),0===(s=a-o)?0:s>0?1:2},u=function(e,t,A,n,i,r){return A<=o(e,i)&&A>=s(e,i)&&n<=o(t,r)&&n>=s(t,r)},h=function(e,t,A,n,i,r,a,o){var s=c(e,t,A,n,i,r),l=c(e,t,A,n,a,o),h=c(i,r,a,o,e,t),d=c(i,r,a,o,A,n);return s!==l&&h!==d||(!(0!==s||!u(e,t,i,r,A,n))||(!(0!==l||!u(e,t,a,o,A,n))||(!(0!==h||!u(i,r,e,t,a,o))||!(0!==d||!u(i,r,A,n,a,o)))))},d=function(e,t,A,o,s,d,g){var p,f,m,v,b,B,C,w=Infinity,y=0,x=!1;if(n(e,t,A,o,s)&&d>=3){for(f=void 0===g?.5*i:g%360*l,C=2*i/d,m=A+s*r(-f),B=o+s*a(-f),p=0;p<d;p++){if(v=A+s*r(-(f+=C)),b=o+s*a(-f),h(m,B,v,b,e,t,w,t)){if(0===c(m,B,e,t,v,b))return u(m,B,e,t,v,b);y++}m=v,B=b}x=y%2!=0}return x},g=function(e,t){return!e||e&&t&&t.i>e.i?t:e};var p=function(){function e(e){this.configure(e)}var t=e.prototype;return t.configure=function(e){this.validatorFn=e?this.shapeValidator():this.defaultValidator()},t.defaultValidator=function(){var e=this;return function(t){var A=e.mousePoint;return!!(t&&Math.pow((t.x-A.x)/e.xLimit,2)+Math.pow((t.y-A.y)/e.yLimit,2)<=1)}},t.shapeValidator=function(){var e=this;return function(t){var A,i,r,a,o,s,l,c,u=e.mousePoint,h=t&&t.shapeInfo,g=!1,p=u.x,f=u.y;switch(h&&h.type){case"circle":i=h.radius,g=n(p,f,t.x,t.y,i);break;case"arc":A=h.innerradius,i=h.radius,g=!n(p,f,t.x,t.y,A)&&n(p,f,t.x,t.y,i);break;case"polygon":i=h.radius,a=h.startAngle,r=h.sides,g=d(p,f,t.x,t.y,i,r,a);break;case"rect":case"rectangle":o=t.x,l=t.y,s=o+(h.width||0),c=l+(h.height||0),g=p>=o&&p<=s&&f>=l&&f<=c;break;case"default":g=!1}return g}},t.buildKdTree=function(e){return this.kdTree=function(e){var t,A,n,i=e,r=i&&i[0]&&i[0].r||5,a=Math.max,o=Math.floor,s=Math.sqrt,l=Math.min,c=Math.log,u=Math.exp,h=Math.pow;function d(e,t,A){var n=e[t];e[t]=e[A],e[A]=n}for(A=function(e,t,n,i){for(var r,h,g,p,f,m,v,b,B,C,w=n,y=i;y>w;){for(y-w>600&&(h=t-w+1,g=c(r=y-w+1),p=.5*u(2*g/3),f=.5*s(g*p*(r-p)/r)*(h-r/2<0?-1:1),m=a(w,o(t-h*p/r+f)),v=l(y,o(t+(r-h)*p/r+f)),A(e,t,m,v)),b=e[t],B=w,C=y,d(e,w,t),e[y].x>b.x&&d(e,w,y);B<C;){for(d(e,B,C),B++,C--;e[B].x<b.x;)B++;for(;e[C].x>b.x;)C--}e[w].x===b.x?d(e,w,C):d(e,++C,y),C<=t&&(w=C+1),t<=C&&(y=C-1)}},n=function(e,t,A,i){for(var r,h,g,p,f,m,v,b,B,C,w=A,y=i,x=e;y>w;){for(y-w>600&&(h=t-w+1,g=c(r=y-w+1),p=.5*u(2*g/3),f=.5*s(g*p*(r-p)/r)*(h-r/2<0?-1:1),m=a(w,o(t-h*p/r+f)),v=l(y,o(t+(r-h)*p/r+f)),n(x,t,m,v)),b=x[t],B=w,C=y,d(x,w,t),x[y].y>b.y&&d(x,w,y);B<C;){for(d(x,B,C),B++,C--;x[B].y<b.y;)B++;for(;x[C].y>b.y;)C--}x[w].y===b.y?d(x,w,C):d(x,++C,y),C<=t&&(w=C+1),t<=C&&(y=C-1)}},t=(i=i||[]).length;t--;)i[t].r>r&&(r=i[t].r),i[t].i=t,i[t].x=+i[t].x,i[t].y=+i[t].y;return{tree:0===i.length?{}:function g(e,t,i,r){var a,o={},s=r?"y":"x";return t===i?(o.point=e[t],o):i-t==1?(e[t][s]>e[i][s]?(o.point=e[t],o.left={point:e[i]}):(o.point=e[i],o.left={point:e[t]}),o):(a=t+i>>1,r?n(e,a,t,i):A(e,a,t,i),o.point=e[a],o.left=g(e,t,a-1,!r),o.right=g(e,a+1,i,!r),o)}(i,0,i.length-1,!1),search:function(e,t,A,n){var i,a,o,l=this.tree,c=n,u=e-r,d=e+r,g=t-r,p=t+r,f=!1,m=0;function v(e,t,A,n){return s(h(e-A,2)+h(t-n,2))}function b(n,i){return"circle"===A?v(n,i,e,t)<=u:n>=u&&n<=d&&i>=g&&i<=p}function B(e,t,A){return e>=t&&e<=A}function C(A){var n=B(e,A.x1,A.x2)&&B(t,A.y1,A.y2),r=v(e,t,A.point.x,A.point.y);if(!i)return i=A,f=n,void(m=r);n?f?A.point.i>i.point.i&&(i=A,f=n,m=r):(i=A,f=n,m=r):f||r<m&&(i=A,f=n,m=r)}function w(n,i){"circle"===A?u=n:(u=e-n||0,d=e+n||0,g=t-i||0,p=t+i||0)}return c=c||{},o=function(e){e&&e.point&&(w(c.rx||e.point.r,c.ry||e.point.r),b(e.point.x,e.point.y)&&C(e),g<=e.point.y&&a(e.left),p>=e.point.y&&a(e.right))},(a=function(e){e&&e.point&&(w(c.rx||e.point.r,c.ry||e.point.r),b(e.point.x,e.point.y)&&C(e),u<=e.point.x&&o(e.left),d>=e.point.x&&o(e.right))})(l),i&&i.point||i}}}(e),this.tree=this.kdTree.tree,this},t.getNeighbour=function(e,t,A){var n=this.tree,i=this.validatorFn;return this.mousePoint=e,t?this.kdTree&&this.kdTree.search(e.x,e.y,A,e.options):n?this._searchBtwnLimit(n,!0,i):void 0},t._searchBtwnLimit=function(e,t,A){var n,i,r=t?"x":"y",a={x1:e.point.x-e.point.shapeInfo.width,x2:e.point.x+e.point.shapeInfo.width,y1:e.point.y-e.point.shapeInfo.height,y2:e.point.y+e.point.shapeInfo.height},o=t?a.x1:a.y1,s=t?a.x2:a.y2;if(void 0!==(n=e&&e.point&&e.point[r]))return A(e.point)&&(i=e.point),n>=o&&e.left&&(i=g(i,this._searchBtwnLimit(e.left,!t,A))),n<=s&&e.right&&(i=g(i,this._searchBtwnLimit(e.right,!t,A))),i},t._setSearchLimit=function(e,t){this.xLimit=e,this.yLimit=t},e}();p.prototype.constructor=p;var f=p;t["default"]=f},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i={"*.dataset.scatter":n(A(592))["default"]["*.dataset.line"]};t["default"]=i},function(e,t,A){var n=A(370)((function(e){return null==e}));e.exports=n},,,,,,,,,,,,,function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=n(A(590)),a=n(A(713)),o=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=0,t}(0,i["default"])(t,e),t.getName=function(){return"MSArea"};var A=t.prototype;return A.getName=function(){return"MSArea"},A.getDSdef=function(){return r["default"]},A.getDSGroupdef=function(){},A.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Multi-series Area Chart",t.defaultDatasetType="area",t.defaultcrosslinethickness=1},t}(a["default"]);t["default"]=o},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t._setDefaultConfig=t["default"]=void 0;var i=n(A(268)),r=n(A(668)),a=A(254),o=a.preDefStr.SEVENTYSTRING,s=function(){var e=this.config;e.anchorborderthickness=1,e.anchorimageurl=void 0,e.anchorimagepadding=1,e.anchorsides=1,e.anchoralpha=void 0,e.anchorbgalpha=a.HUNDREDSTRING,e.anchorimagealpha=a.HUNDREDSTRING,e.anchorimagescale=100,e.anchorstartangle=90,e.anchorshadow=0,e.anchorbgcolor=void 0,e.anchorbordercolor=void 0,e.anchorradius=3,e.showvalues=1,e.plotfillalpha=o,e.linedashlen=5,e.linedashgap=4,e.linedashed=void 0,e.linealpha=a.HUNDREDSTRING,e.linethickness=2,e.drawfullareaborder=1,e.connectnulldata=0};t._setDefaultConfig=s;var l=function(e){function t(){return e.apply(this,arguments)||this}return(0,i["default"])(t,e),t.getName=function(){return"AreaBase"},t.prototype.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),s.call(this)},t}(r["default"]);t["default"]=l},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=n(A(713)),a=n(A(589)),o=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=1,t.axisPaddingLeft=0,t.axisPaddingRight=0,t}(0,i["default"])(t,e),t.getName=function(){return"MSLine"};var A=t.prototype;return A.getName=function(){return"MSLine"},A.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Multi-series Line Chart",t.defaultDatasetType="line",t.zeroplanethickness=1,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1},A.getDSdef=function(){return a["default"]},A.getDSGroupdef=function(){},t}(r["default"]);t["default"]=o},,,function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(760))["default"];t["default"]=i},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(761))["default"];t["default"]=i},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=A(713),a=n(A(660)),o=n(A(495)),s=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=1,t}(0,i["default"])(t,e),t.getName=function(){return"Spline"};var A=t.prototype;return A.getName=function(){return"Spline"},A.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Spline Chart",t.singleseries=!0,t.defaultDatasetType="msspline",t.minimizetendency=0,t.zeroplanethickness=1,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1,r._setDefaultConfig.call(this)},A.getDSdef=function(){return a["default"]},t}(o["default"]);t["default"]=s},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(763))["default"];t["default"]=i},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=n(A(761)),a=A(713),o=n(A(656)),s=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=0,t}(0,i["default"])(t,e),t.getName=function(){return"SplineArea"};var A=t.prototype;return A.getName=function(){return"SplineArea"},A.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;a._setDefaultConfig.call(this),t.friendlyName="Spline Area Chart",t.singleseries=!0,t.hasLegend=!1,t.defaultDatasetType="mssplinearea",t.anchoralpha="100",t.minimizetendency=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1,t.showzeroplaneontop=1,t.inheritplotbordercolor=0},A.getDSdef=function(){return o["default"]},A.getDSGroupdef=function(){},t}(r["default"]);t["default"]=s},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(765))["default"];t["default"]=i},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(766))["default"];t["default"]=i},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=A(713),a=n(A(660)),o=n(A(599)),s=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=1,t}(0,i["default"])(t,e),t.getName=function(){return"MSSpline"};var A=t.prototype;return A.getName=function(){return"MSSpline"},A.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Multi-series Spline  Chart",t.defaultDatasetType="msspline",t.minimizetendency=0,t.zeroplanethickness=1,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1,r._setDefaultConfig.call(this)},A.getDSdef=function(){return a["default"]},A.getDSGroupdef=function(){},t}(o["default"]);t["default"]=s},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(768))["default"];t["default"]=i},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=A(713),a=n(A(641)),o=n(A(660)),s=function(e){function t(){var t;return(t=e.call(this)||this).isDual=!0,t}(0,i["default"])(t,e),t.getName=function(){return"MSSplineDy"};var A=t.prototype;return A.getName=function(){return"MSSplineDy"},A.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Multi-series Dual Y-Axis Spline Chart",t.defaultDatasetType="msspline",t.minimizetendency=0,t.zeroplanethickness=1,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1,t.isdual=!0,r._setDefaultConfig.call(this)},A.getDSdef=function(){return o["default"]},A.getDSGroupdef=function(){},A.getDSType=function(){return"spline"},t}(a["default"]);t["default"]=s},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(770))["default"];t["default"]=i},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=n(A(766)),a=A(713),o=n(A(656)),s=function(e){function t(){var t;return(t=e.call(this)||this).friendlyName="Multi-series Spline Area Chart",t.defaultPlotShadow=0,t}(0,i["default"])(t,e),t.getName=function(){return"MSSplineArea"};var A=t.prototype;return A.getName=function(){return"MSSplineArea"},A.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;a._setDefaultConfig.call(this),t.defaultDatasetType="mssplinearea",t.minimizetendency=0,t.zeroplanethickness=2,t.zeroplanealpha=80,t.showzeroplaneontop=1,t.enablemousetracking=!0,t.defaultcrosslinethickness=1},A.getDSdef=function(){return o["default"]},A.getDSGroupdef=function(){},t}(r["default"]);t["default"]=s},,,,,,,,,function(e,t,A){"use strict";A.r(t);var n=A(780),i=A(783),r=A(786),a=A(789),o=A(799),s=Object(n["default"])(Object(i["default"])(["fantasy-land/chain","chain"],a["default"],(function(e,t){return"function"==typeof t?function(A){return e(t(A))(A)}:Object(r["default"])(!1)(Object(o["default"])(e,t))})));t["default"]=s},function(e,t,A){"use strict";A.r(t),A.d(t,"default",(function(){return r}));var n=A(781),i=A(782);function r(e){return function t(A,r){switch(arguments.length){case 0:return t;case 1:return Object(i["default"])(A)?t:Object(n["default"])((function(t){return e(A,t)}));default:return Object(i["default"])(A)&&Object(i["default"])(r)?t:Object(i["default"])(A)?Object(n["default"])((function(t){return e(t,r)})):Object(i["default"])(r)?Object(n["default"])((function(t){return e(A,t)})):e(A,r)}}}},function(e,t,A){"use strict";A.r(t),A.d(t,"default",(function(){return i}));var n=A(782);function i(e){return function t(A){return 0===arguments.length||Object(n["default"])(A)?t:e.apply(this,arguments)}}},function(e,t,A){"use strict";function n(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}A.r(t),A.d(t,"default",(function(){return n}))},function(e,t,A){"use strict";A.r(t),A.d(t,"default",(function(){return r}));var n=A(784),i=A(785);function r(e,t,A){return function(){if(0===arguments.length)return A();var r=arguments[arguments.length-1];if(!Object(n["default"])(r)){for(var a=0;a<e.length;){if("function"==typeof r[e[a]])return r[e[a]].apply(r,Array.prototype.slice.call(arguments,0,-1));a+=1}if(Object(i["default"])(r)){var o=t.apply(null,Array.prototype.slice.call(arguments,0,-1));return o(r)}}return A.apply(this,arguments)}}},function(e,t,A){"use strict";A.r(t),t["default"]=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,A){"use strict";function n(e){return null!=e&&"function"==typeof e["@@transducer/step"]}A.r(t),A.d(t,"default",(function(){return n}))},function(e,t,A){"use strict";A.r(t),A.d(t,"default",(function(){return i}));var n=A(787);function i(e){return function t(A){for(var i,r,a,o=[],s=0,l=A.length;s<l;){if(Object(n["default"])(A[s]))for(a=0,r=(i=e?t(A[s]):A[s]).length;a<r;)o[o.length]=i[a],a+=1;else o[o.length]=A[s];s+=1}return o}}},function(e,t,A){"use strict";A.r(t);var n=A(781),i=A(784),r=A(788),a=Object(n["default"])((function(e){return!!Object(i["default"])(e)||!!e&&("object"==typeof e&&(!Object(r["default"])(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));t["default"]=a},function(e,t,A){"use strict";function n(e){return"[object String]"===Object.prototype.toString.call(e)}A.r(t),A.d(t,"default",(function(){return n}))},function(e,t,A){"use strict";A.r(t),A.d(t,"default",(function(){return r}));var n=A(790),i=A(798);function r(e){return function(t){return Object(i["default"])(e)(Object(n["default"])(t))}}},function(e,t,A){"use strict";A.r(t);var n=A(791),i=A(787),r=A(792),a=A(793),o=A(797),s="@@transducer/init",l="@@transducer/step",c=function(){function e(e){this.xf=e}return e.prototype[s]=o["default"].init,e.prototype["@@transducer/result"]=o["default"].result,e.prototype[l]=function(e,t){var A=this.xf[l](e,t);return A["@@transducer/reduced"]?Object(n["default"])(A):A},e}(),u=function(){function e(e){this.xf=new c(e)}return e.prototype[s]=o["default"].init,e.prototype["@@transducer/result"]=o["default"].result,e.prototype[l]=function(e,t){return Object(i["default"])(t)?Object(a["default"])(this.xf,e,t):Object(r["default"])(this.xf,e,[t])},e}();t["default"]=function(e){return new u(e)}},function(e,t,A){"use strict";function n(e){return{"@@transducer/value":e,"@@transducer/reduced":!0}}A.r(t),A.d(t,"default",(function(){return n}))},function(e,t,A){"use strict";function n(e,t,A){for(var n=0,i=A.length;n<i;){if((t=e["@@transducer/step"](t,A[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}A.r(t),A.d(t,"default",(function(){return n}))},function(e,t,A){"use strict";A.r(t);var n=A(794),i=A(792),r=A(795);function a(e,t,A){for(var n=A.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=A.next()}return e["@@transducer/result"](t)}function o(e,t,A,n){return e["@@transducer/result"](A[n](Object(r["default"])(e["@@transducer/step"],e),t))}var s=Object(n["default"])(i["default"],o,a);t["default"]=s},function(e,t,A){"use strict";A.r(t),A.d(t,"default",(function(){return r}));var n=A(787),i="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function r(e,t,A){return function(r,a,o){if(Object(n["default"])(o))return e(r,a,o);if(null==o)return a;if("function"==typeof o["fantasy-land/reduce"])return t(r,a,o,"fantasy-land/reduce");if(null!=o[i])return A(r,a,o[i]());if("function"==typeof o.next)return A(r,a,o);if("function"==typeof o.reduce)return t(r,a,o,"reduce");throw new TypeError("reduce: list must be array or iterable")}}},function(e,t,A){"use strict";A.r(t);var n=A(796),i=A(780),r=Object(i["default"])((function(e,t){return Object(n["default"])(e.length,(function(){return e.apply(t,arguments)}))}));t["default"]=r},function(e,t,A){"use strict";function n(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,A){return t.apply(this,arguments)};case 3:return function(e,A,n){return t.apply(this,arguments)};case 4:return function(e,A,n,i){return t.apply(this,arguments)};case 5:return function(e,A,n,i,r){return t.apply(this,arguments)};case 6:return function(e,A,n,i,r,a){return t.apply(this,arguments)};case 7:return function(e,A,n,i,r,a,o){return t.apply(this,arguments)};case 8:return function(e,A,n,i,r,a,o,s){return t.apply(this,arguments)};case 9:return function(e,A,n,i,r,a,o,s,l){return t.apply(this,arguments)};case 10:return function(e,A,n,i,r,a,o,s,l,c){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}A.r(t),A.d(t,"default",(function(){return n}))},function(e,t,A){"use strict";A.r(t),t["default"]={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},function(e,t,A){"use strict";A.r(t);var n=A(797),i=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=n["default"].init,e.prototype["@@transducer/result"]=n["default"].result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();t["default"]=function(e){return function(t){return new i(e,t)}}},function(e,t,A){"use strict";A.r(t);var n=A(800),i=A(780),r=A(783),a=A(801),o=A(798),s=A(802),l=A(804),c=Object(i["default"])(Object(r["default"])(["fantasy-land/map","map"],o["default"],(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Object(s["default"])(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return Object(n["default"])((function(A,n){return A[n]=e(t[n]),A}),{},Object(l["default"])(t));default:return Object(a["default"])(e,t)}})));t["default"]=c},function(e,t,A){"use strict";function n(e,t,A){for(var n=0,i=A.length;n<i;)t=e(t,A[n]),n+=1;return t}A.r(t),A.d(t,"default",(function(){return n}))},function(e,t,A){"use strict";function n(e,t){for(var A=0,n=t.length,i=Array(n);A<n;)i[A]=e(t[A]),A+=1;return i}A.r(t),A.d(t,"default",(function(){return n}))},function(e,t,A){"use strict";A.r(t);var n=A(796),i=A(781),r=A(780),a=A(803),o=Object(r["default"])((function(e,t){return 1===e?Object(i["default"])(t):Object(n["default"])(e,Object(a["default"])(e,[],t))}));t["default"]=o},function(e,t,A){"use strict";A.r(t),A.d(t,"default",(function(){return r}));var n=A(796),i=A(782);function r(e,t,A){return function(){for(var a=[],o=0,s=e,l=0,c=!1;l<t.length||o<arguments.length;){var u;l<t.length&&(!Object(i["default"])(t[l])||o>=arguments.length)?u=t[l]:(u=arguments[o],o+=1),a[l]=u,Object(i["default"])(u)?c=!0:s-=1,l+=1}return!c&&s<=0?A.apply(this,a):Object(n["default"])(Math.max(0,s),r(e,a,A))}}},function(e,t,A){"use strict";A.r(t);var n=A(781),i=A(805),r=A(806),a=!{toString:null}.propertyIsEnumerable("toString"),o=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],s=function(){return arguments.propertyIsEnumerable("length")}(),l=function(e,t){for(var A=0;A<e.length;){if(e[A]===t)return!0;A+=1}return!1},c="function"!=typeof Object.keys||s?Object(n["default"])((function(e){if(Object(e)!==e)return[];var t,A,n=[],c=s&&Object(r["default"])(e);for(t in e)!Object(i["default"])(t,e)||c&&"length"===t||(n[n.length]=t);if(a)for(A=o.length-1;A>=0;)t=o[A],Object(i["default"])(t,e)&&!l(n,t)&&(n[n.length]=t),A-=1;return n})):Object(n["default"])((function(e){return Object(e)!==e?[]:Object.keys(e)}));t["default"]=c},function(e,t,A){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(t,e)}A.r(t),A.d(t,"default",(function(){return n}))},function(e,t,A){"use strict";A.r(t);var n=A(805),i=Object.prototype.toString,r=function(){return"[object Arguments]"===i.call(arguments)?function(e){return"[object Arguments]"===i.call(e)}:function(e){return Object(n["default"])("callee",e)}}();t["default"]=r},function(e,t,A){"use strict";A.r(t);var n=A(808),i=A(781),r=Object(i["default"])((function(e){return null!=e&&"function"==typeof e.clone?e.clone():Object(n["default"])(e,!0)}));t["default"]=r},function(e,t,A){"use strict";A.r(t),A.d(t,"default",(function(){return r}));var n=A(809),i=A(810);function r(e,t,A){if(A||(A=new a),s=typeof(o=e),null==o||"object"!=s&&"function"!=s)return e;var o,s,l=function(n){var i=A.get(e);if(i)return i;for(var a in A.set(e,n),e)Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=t?r(e[a],!0,A):e[a]);return n};switch(Object(i["default"])(e)){case"Object":return l(Object.create(Object.getPrototypeOf(e)));case"Array":return l([]);case"Date":return new Date(e.valueOf());case"RegExp":return Object(n["default"])(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var a=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var A=this.hash(e),n=this.map[A];n||(this.map[A]=n=[]),n.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var A in e)t.push(Object.prototype.toString.call(e[A]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var A=this.map[t],n=0;n<A.length;n+=1){var i=A[n];if(i[0]===e)return i[1]}else{var r=this.hash(e),a=this.map[r];if(a)for(var o=0;o<a.length;o+=1){var s=a[o];if(s[0]===e)return s[1]}}},e}()},function(e,t,A){"use strict";function n(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}A.r(t),A.d(t,"default",(function(){return n}))},function(e,t,A){"use strict";A.r(t);var n=A(781),i=Object(n["default"])((function(e){return null===e?"Null":e===undefined?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));t["default"]=i},function(e,t,A){"use strict";A.r(t);var n=A(812),i=A(814),r=Object(i["default"])(n["default"]);t["default"]=r},function(e,t,A){"use strict";A.r(t);var n=A(781),i=A(813),r=Object(n["default"])(i["default"]);t["default"]=r},function(e,t,A){"use strict";function n(e){return e}A.r(t),A.d(t,"default",(function(){return n}))},function(e,t,A){"use strict";A.r(t);var n=A(815),i=A(780),r=A(783),a=A(824),o=Object(i["default"])(Object(r["default"])([],a["default"],(function(e,t){for(var A,i,r=new n["default"],a=[],o=0;o<t.length;)A=e(i=t[o]),r.add(A)&&a.push(i),o+=1;return a})));t["default"]=o},function(e,t,A){"use strict";A.r(t);var n=A(816),i=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!r(e,!0,this)},e.prototype.has=function(e){return r(e,!1,this)},e}();function r(e,t,A){var i,r=typeof e;switch(r){case"string":case"number":return 0===e&&1/e==-Infinity?!!A._items["-0"]||(t&&(A._items["-0"]=!0),!1):null!==A._nativeSet?t?(i=A._nativeSet.size,A._nativeSet.add(e),A._nativeSet.size===i):A._nativeSet.has(e):r in A._items?e in A._items[r]||(t&&(A._items[r][e]=!0),!1):(t&&(A._items[r]={},A._items[r][e]=!0),!1);case"boolean":if(r in A._items){var a=e?1:0;return!!A._items[r][a]||(t&&(A._items[r][a]=!0),!1)}return t&&(A._items[r]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==A._nativeSet?t?(i=A._nativeSet.size,A._nativeSet.add(e),A._nativeSet.size===i):A._nativeSet.has(e):r in A._items?!!Object(n["default"])(e,A._items[r])||(t&&A._items[r].push(e),!1):(t&&(A._items[r]=[e]),!1);case"undefined":return!!A._items[r]||(t&&(A._items[r]=!0),!1);case"object":if(null===e)return!!A._items["null"]||(t&&(A._items["null"]=!0),!1);default:return(r=Object.prototype.toString.call(e))in A._items?!!Object(n["default"])(e,A._items[r])||(t&&A._items[r].push(e),!1):(t&&(A._items[r]=[e]),!1)}}t["default"]=i},function(e,t,A){"use strict";A.r(t),A.d(t,"default",(function(){return i}));var n=A(817);function i(e,t){return Object(n["default"])(t,e,0)>=0}},function(e,t,A){"use strict";A.r(t),A.d(t,"default",(function(){return i}));var n=A(818);function i(e,t,A){var i,r;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(i=1/t;A<e.length;){if(0===(r=e[A])&&1/r===i)return A;A+=1}return-1}if(t!=t){for(;A<e.length;){if("number"==typeof(r=e[A])&&r!=r)return A;A+=1}return-1}return e.indexOf(t,A);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,A);case"object":if(null===t)return e.indexOf(t,A)}for(;A<e.length;){if(Object(n["default"])(e[A],t))return A;A+=1}return-1}},function(e,t,A){"use strict";A.r(t);var n=A(780),i=A(819),r=Object(n["default"])((function(e,t){return Object(i["default"])(e,t,[],[])}));t["default"]=r},function(e,t,A){"use strict";A.r(t),A.d(t,"default",(function(){return u}));var n=A(820),i=A(821),r=A(822),a=A(805),o=A(823),s=A(804),l=A(810);function c(e,t,A,r){var a=Object(n["default"])(e),o=Object(n["default"])(t);function s(e,t){return u(e,t,A.slice(),r.slice())}return!Object(i["default"])((function(e,t){return!Object(i["default"])(s,t,e)}),o,a)}function u(e,t,A,n){if(Object(o["default"])(e,t))return!0;var i=Object(l["default"])(e);if(i!==Object(l["default"])(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(i){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===Object(r["default"])(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Object(o["default"])(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Object(o["default"])(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var h=A.length-1;h>=0;){if(A[h]===e)return n[h]===t;h-=1}switch(i){case"Map":return e.size===t.size&&c(e.entries(),t.entries(),A.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&c(e.values(),t.values(),A.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var d=Object(s["default"])(e);if(d.length!==Object(s["default"])(t).length)return!1;var g=A.concat([e]),p=n.concat([t]);for(h=d.length-1;h>=0;){var f=d[h];if(!Object(a["default"])(f,t)||!u(t[f],e[f],g,p))return!1;h-=1}return!0}},function(e,t,A){"use strict";function n(e){for(var t,A=[];!(t=e.next()).done;)A.push(t.value);return A}A.r(t),A.d(t,"default",(function(){return n}))},function(e,t,A){"use strict";function n(e,t,A){for(var n=0,i=A.length;n<i;){if(e(t,A[n]))return!0;n+=1}return!1}A.r(t),A.d(t,"default",(function(){return n}))},function(e,t,A){"use strict";function n(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}A.r(t),A.d(t,"default",(function(){return n}))},function(e,t,A){"use strict";A.r(t),t["default"]="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,A){"use strict";A.r(t),A.d(t,"default",(function(){return a}));var n=A(815),i=A(797),r=function(){function e(e,t){this.xf=t,this.f=e,this.set=new n["default"]}return e.prototype["@@transducer/init"]=i["default"].init,e.prototype["@@transducer/result"]=i["default"].result,e.prototype["@@transducer/step"]=function(e,t){return this.set.add(this.f(t))?this.xf["@@transducer/step"](e,t):e},e}();function a(e){return function(t){return new r(e,t)}}},function(e,t,A){"use strict";A.r(t);var n=A(780),i=Object(n["default"])((function(e,t){for(var A,n=0,i=e.length,r=t.length,a=[];n<i;){for(A=0;A<r;)a[a.length]=[e[n],t[A]],A+=1;n+=1}return a}));t["default"]=i},function(e,t,A){"use strict";A.r(t);var n=A(827),i=A(781),r=A(802),a=Object(i["default"])((function(e){return Object(r["default"])(e.length,(function(){var t=0,A=arguments[0],i=arguments[arguments.length-1],r=Array.prototype.slice.call(arguments,0);return r[0]=function(){var e=A.apply(this,Object(n["default"])(arguments,[t,i]));return t+=1,e},e.apply(this,r)}))}));t["default"]=a},function(e,t,A){"use strict";function n(e,t){var A;t=t||[];var n=(e=e||[]).length,i=t.length,r=[];for(A=0;A<n;)r[r.length]=e[A],A+=1;for(A=0;A<i;)r[r.length]=t[A],A+=1;return r}A.r(t),A.d(t,"default",(function(){return n}))},,,,,,,,,,,,function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=n(A(521)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var A=l(t);if(A&&A.has(e))return A.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=e[r]}n["default"]=e,A&&A.set(e,n);return n}(A(519)),o=n(A(840)),s=n(A(260));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,A=new WeakMap;return(l=function(e){return e?A:t})(e)}var c=function(e,t){var A=t,n=e;return(A=Math.log(A/n))?function(e){return Math.log(e/n)/A}:(0,r["default"])(A)},u=function(e,t){return e<0?function(A){return-Math.pow(-t,A)*Math.pow(-e,1-A)}:function(A){return Math.pow(t,A)*Math.pow(e,1-A)}},h=function(e){return isFinite(e)?+("1e"+e):e<0?0:e},d=function(e){return 10===e?h:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}},g=function(e){return e===Math.E?Math.log:10===e?Math.log10:2===e?Math.log2:function(t){return Math.log(t)/Math.log(e)}},p=function(e){return function(t){return-e(-t)}},f=function(e){function t(){var t;return(t=e.call(this,c,u)||this).setDomain([1,10]),t.base=10,t.logs=g(t.base),t.pows=d(t.base),t}(0,i["default"])(t,e);var A=t.prototype;return A._rescaleLog=function(){return this.logs=g(this.base),this.pows=d(this.base),this.getDomain()[0]<0&&(this.logs=p(this.logs),this.pows=p(this.pows)),this},A.setBase=function(e){return void 0===e&&(e=10),this.base=Number(e),this._rescaleLog()},A.getBase=function(){return this.base},A.setDomain=function(t){return void 0===t&&(t=[1,10]),e.prototype.setDomain.call(this,t),this._rescaleLog()},A.nice=function(){var e,t,A=this.getDomain(),n=A[0],i=A[1],r=this.base;return n===i&&(n-=n/100),e=Math.log(n)/Math.log(r),t=Math.log(i)/Math.log(r),(e%1||t%1)&&(n<=i?(n=this.pows(Math.floor(e)),i=this.pows(Math.ceil(t))):(n=this.pows(Math.ceil(e)),i=this.pows(Math.floor(t))),this.setDomain([n,i])),this},A.tickFormat=function(e,t){var A=this.base,n=t,i=e;return null==n&&(n=10===A?".0e":","),"function"!=typeof n&&(n=this._localeConverter.formatter(n)),null==i&&(i=10),function(e){return n.format(e)}},A.ticks=function(){var e,t,A,n,i,r,a=this.getDomain(),o=a[0],s=a[1],l=1,c=0,u=[],h=this.base;if(o<=0||s<=0)return u;if(o>s){var d=this.getDomain();s=d[0],o=d[1],l=0}for(h>1?(t=e=Math.ceil(Math.log(s)/Math.log(h)),A=Math.floor(Math.log(o)/Math.log(h))):h>0&&h<1&&(e=Math.floor(Math.log(s)/Math.log(h)),t=Math.ceil(Math.log(o)/Math.log(h)),A=e),i=e,r=t;r>=A;--r)o<=(n=this.pows(i))&&s>=n&&(u[c++]=n),h>1?i--:i++;return this.majorTicks=l?u.reverse():u},A.copy=function(){return(0,a.copyScale)(this,(new t).setBase(this.base))},A.minorTicks=function(e,t){void 0===t&&(t=this.majorTicks||this.ticks());var A,n,i,r,a,l=this.base,c=(0,o["default"])(t),u=[],h=Math.log(l)/Math.log(10),d=l>1?-1:1,g=e;return g=(0,s["default"])(Number(g),h%1?4:8),c.forEach((function(e){var t=e[0],o=e[1];for(l>1?n=Math.ceil(Math.log(o)/Math.log(l)):l>0&&l<1&&(n=Math.floor(Math.log(o)/Math.log(l))),r=Math.pow(l,n)-Math.pow(l,n+d),i=r/(g+1),A=1;A<=g;++A)t<=(a=Math.pow(l,n+d)+i*A)&&o>=a&&u.push(a)})),u},A.contextTicks=function(){return this.contextTicksArr||[]},A.getType=function(){return"log"},t}(a["default"]);t["default"]=f},function(e,t,A){"use strict";function n(e,t){return[e,t]}t.__esModule=!0,t["default"]=void 0;var i=function(e,t){var A=t,i=0,r=e.length-1,a=e[0],o=new Array(r<0?0:r);for(null==A&&(A=n);i<r;)o[i]=A(a,a=e[++i]);return o};t["default"]=i},,,,,,,,,,,,,,,function(e,t,A){"use strict";A.r(t);var n=A(856),i=A(780),r=Object(i["default"])((function(e,t){return Object(n["default"])({},e,t)}));t["default"]=r},function(e,t,A){"use strict";A.r(t);var n=A(805);t["default"]="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),A=1,i=arguments.length;A<i;){var r=arguments[A];if(null!=r)for(var a in r)Object(n["default"])(a,r)&&(t[a]=r[a]);A+=1}return t}},,,,,,,,,,,,,,,,,,,,,,,function(e,t,A){"use strict";A.r(t);var n=A(781),i=Object(n["default"])((function(e){for(var t=0,A=[];t<e.length;){for(var n=e[t],i=0;i<n.length;)"undefined"==typeof A[i]&&(A[i]=[]),A[i].push(n[i]),i+=1;t+=1}return A}));t["default"]=i},,,function(e,t,A){"use strict";A.r(t);var n=A(780),i=A(883),r=Object(n["default"])((function(e,t){return Object(i["default"])((function(e,t,A){return A}),e,t)}));t["default"]=r},function(e,t,A){"use strict";A.r(t);var n=A(884),i=A(885),r=A(886),a=Object(n["default"])((function o(e,t,A){return Object(r["default"])((function(t,A,n){return Object(i["default"])(A)&&Object(i["default"])(n)?o(e,A,n):e(t,A,n)}),t,A)}));t["default"]=a},function(e,t,A){"use strict";A.r(t),A.d(t,"default",(function(){return a}));var n=A(781),i=A(780),r=A(782);function a(e){return function t(A,a,o){switch(arguments.length){case 0:return t;case 1:return Object(r["default"])(A)?t:Object(i["default"])((function(t,n){return e(A,t,n)}));case 2:return Object(r["default"])(A)&&Object(r["default"])(a)?t:Object(r["default"])(A)?Object(i["default"])((function(t,A){return e(t,a,A)})):Object(r["default"])(a)?Object(i["default"])((function(t,n){return e(A,t,n)})):Object(n["default"])((function(t){return e(A,a,t)}));default:return Object(r["default"])(A)&&Object(r["default"])(a)&&Object(r["default"])(o)?t:Object(r["default"])(A)&&Object(r["default"])(a)?Object(i["default"])((function(t,A){return e(t,A,o)})):Object(r["default"])(A)&&Object(r["default"])(o)?Object(i["default"])((function(t,A){return e(t,a,A)})):Object(r["default"])(a)&&Object(r["default"])(o)?Object(i["default"])((function(t,n){return e(A,t,n)})):Object(r["default"])(A)?Object(n["default"])((function(t){return e(t,a,o)})):Object(r["default"])(a)?Object(n["default"])((function(t){return e(A,t,o)})):Object(r["default"])(o)?Object(n["default"])((function(t){return e(A,a,t)})):e(A,a,o)}}}},function(e,t,A){"use strict";function n(e){return"[object Object]"===Object.prototype.toString.call(e)}A.r(t),A.d(t,"default",(function(){return n}))},function(e,t,A){"use strict";A.r(t);var n=A(884),i=A(805),r=Object(n["default"])((function(e,t,A){var n,r={};for(n in A=A||{},t=t||{})Object(i["default"])(n,t)&&(r[n]=Object(i["default"])(n,A)?e(n,t[n],A[n]):t[n]);for(n in A)Object(i["default"])(n,A)&&!Object(i["default"])(n,r)&&(r[n]=A[n]);return r}));t["default"]=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,A){"use strict";A.r(t);var n=A(780),i=A(783),r=A(927),a=Object(n["default"])(Object(i["default"])(["all"],r["default"],(function(e,t){for(var A=0;A<t.length;){if(!e(t[A]))return!1;A+=1}return!0})));t["default"]=a},function(e,t,A){"use strict";A.r(t),A.d(t,"default",(function(){return a}));var n=A(928),i=A(797),r=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=i["default"].init,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=Object(n["default"])(this.xf["@@transducer/step"](e,!1))),e},e}();function a(e){return function(t){return new r(e,t)}}},function(e,t,A){"use strict";function n(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}A.r(t),A.d(t,"default",(function(){return n}))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n=function(){var e,t,A,n,i,r=this.getChildren(),a=this.getDatasets(),o=r.xAxis&&r.xAxis[0]||r.scale,s=[],l=0;if(a){for(e=a.length,t=0;t<e;t++)l=Math.max(l,a[t].components.data.length);for(t=0;t<l;t++)for((i=s[t]=[])[0]=o.getLabel(t).label,A=1;A<=e;A++)n=a[A-1].components.data[t],i[A]=n&&n.config.setValue;return s}};t["default"]=n},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=function(e){!function(e){var t=e.getChildren("colorManager");if(!e.getFromEnv("dataSource").colorrange)return t&&(t[0].config.legendItemIds=[]),void e.deleteFromEnv("colorManager");if(t)return e.addToEnv("colorManager",t[0]),void t[0].configure();t=new i["default"],e.attachChild(t,"colorManager"),e.addToEnv("colorManager",t),t.configure()}(e)};var i=n(A(1094))},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=A(270),a=n(A(1095)),o=n(A(1096)),s=A(254);function l(e){var t=e||d;return(0,s.getValidColor)(t)||d}var c,u,h="rgba(192,192,192,"+(s.isIE?.002:1e-6)+")",d="#000000",g=((u={}).legendCarpetConf={spreadFactor:.85,allowDrag:!1,captionAlignment:"center",padding:{v:3,h:3},style:{fill:"#e4d9c1",stroke:"#c4b89d"}},u.legendCaptionConf={spreadFactor:.2,padding:{v:2,h:2},style:{fill:"#786B50",fontFamily:"sans-serif",fontSize:"12px",fontWeight:"bold",fontStyle:"normal"},bound:{style:{stroke:"none"}}},u.legendBodyConf={spreadFactor:.8,padding:{v:2,h:2},bound:{style:{stroke:"none"}}},u.legendAxisConf={legendAxisHeight:11,spreadFactor:.4,padding:{v:1,h:1},style:{stroke:"none","stroke-opacity":0,"stroke-width":1},line:{grooveLength:3,offset:8,style:{stroke:"rgba(255, 255, 255, 0.65)","stroke-width":1.5}},shadow:{style:{stroke:"none",fill:(0,s.toRaphaelColor)({FCcolor:{alpha:"25,0,0",angle:360,color:"000000,FFFFFF,FFFFFF",ratio:"0,30,40"}})}},bound:{style:{stroke:"none"}}},u.sliderGroupConf={showTooltip:1,outerCircle:{rFactor:1.4,style:{fill:h,stroke:"#757575","stroke-width":3}},innerCircle:{rFactor:.65,style:{fill:h,stroke:"#FFFFFF"}}},u.axisTextItemConf={spreadFactor:.3,padding:{v:1,h:1},style:{fill:"#786B50",fontFamily:"sans-serif",fontSize:"12px",fontWeight:"normal",fontStyle:"normal"}},{init:function(e){c=e.chart},legacyDataParser:function(e,t){var A,n,i,r,a,o,u,h,d,g,p,f,m,v={},b=c.getFromEnv("number-formatter"),B=c.getFromEnv("dataSource"),C=B.data,w=t||{};if(!e)return!1;for("maps"!==c.defaultDatasetType||void 0!==w.min&&void 0!==w.max?"HeatMap"!==c.getName()||void 0!==w.min&&void 0!==w.max||(w={min:Infinity,max:-Infinity},B.dataset.forEach((function(e){e.data&&e.data.forEach((function(e){w.min=Math.min(w.min,(0,s.pluckNumber)(e.value,w.min)),w.max=Math.max(w.max,(0,s.pluckNumber)(e.value,w.max))}))}))):(w={min:Infinity,max:-Infinity},C&&C.forEach((function(e){w.min=Math.min(w.min,(0,s.pluckNumber)(e.value,w.min)),w.max=Math.max(w.max,(0,s.pluckNumber)(e.value,w.min))}))),v.mapByPercent=p=!!(0,s.pluckNumber)(e.mapbypercent,0),A=e.color||[],void 0===e.minvalue&&(e.minvalue=void 0!==w.min?p?0:w.min:0),void 0===e.maxvalue&&(e.maxvalue=void 0!==w.max?p?100:w.max:100),e.maxvalue!==e.minvalue&&w.min!==Infinity&&w.max!==-Infinity||(e.minvalue=0,e.maxvalue=100),f=!1,a=0,u=A.length;a<u;a++)if(A[a].maxvalue){f=!0;break}for(f||(A=[]),i=e.code,h=v.colorRange=[],v.gradient=!!(0,s.pluckNumber)(e.gradient,1),A.length?i=l(i):(i?(r=l(i),i=l()):(i=l(),m=i,r=(0,s.getLightColor)(m,1)),A.push({code:r,maxvalue:e.maxvalue,label:void 0})),function(e){var t,A,n,i=c.getFromEnv("number-formatter");for(t=0,A=e.length;t<A;t++)(n=e[t].maxvalue)&&(e[t].maxvalue=i.getCleanValue(n))}(A),A=A.sort((function(e,t){return e.maxvalue-t.maxvalue})),d=g=e.minvalue&&b.getCleanValue(e.minvalue),g=(void 0!==d||null!==d)&&(p?d+"%":b.legendValue(d)),h.push({code:(0,s.dehashify)(i),value:d,displayValue:g,label:e.startlabel}),a=0,u=A.length;a<u;a++)o=l((n=A[a]).code||n.color),d=g=n.maxvalue,isNaN(parseInt(d,10))||(g=(void 0!==d||null!==d)&&(p?d+"%":b.legendValue(d)),h.push({code:(0,s.dehashify)(o),value:d,displayValue:g,label:n.label||n.displayvalue}));return h[h.length-1].label=e.endlabel||n.label,v},getDefaultConf:function(e){return u[e]}}),p=function(e){function t(){var t;return(t=e.call(this)||this).datasource={},t.config.legendItemIds=[],t}(0,i["default"])(t,e);var A=t.prototype;return A.configure=function(){var e,t,A=this.getFromEnv("chart"),n=this.getFromEnv("dataSource").chart.mapbycategory,i=A.config.showLegend,r=A.getChildren("colorRange")&&A.getChildren("colorRange")[0];switch(A.addToEnv("colorManager",this),this.datasource=A.getFromEnv("dataSource"),e=this.datasource.colorrange,r&&r.remove({instant:!0}),i||(this.config.legendItemIds=[]),"maps"===A.defaultDatasetType?e.gradient&&Number(e.gradient)?"gradient":e.color?"icon":"none":"TreeMap"===A.getName()||e.gradient&&"0"!==e.gradient&&!Number(n)?"gradient":"icon"){case"gradient":g.init({chart:A}),t=g.legacyDataParser(e),(0,s.componentFactory)(A,o["default"],"colorRange",1,[t]),r=A.getChildren("colorRange")[0],A.addToEnv("colorRange",r),t||(r._dontPlot=!0),this.config.legendItemIds=[],this._configureGradientLegend(r);break;case"icon":(0,s.componentFactory)(A,a["default"],"colorRange",1,[{colorRange:e,sortLegend:0,mapByCategory:(0,s.pluckNumber)(n,0),defaultColor:"cccccc",numberFormatter:A.getFromEnv("number-formatter")}]),A.addToEnv("colorRange",A.getChildren("colorRange")[0]),i&&this._addLegendItems();break;case"none":A.deleteFromEnv("colorManager"),this.config.legendItemIds=[]}},A._configureGradientLegend=function(e){var t=this,A=t.getFromEnv("chart").getFromEnv("gLegend");A&&(A.setColorRange(e),t.addExtEventListener("rangeUpdated",(function(e,A){t.fireEvent("legendUpdate",{"original-event":e,maxMinArray:A,component:"gradientlegend"})}),A))},A._addLegendItems=function(){var e,t,A,n,i,r=this.config,a=this.getFromEnv("chart"),o=a.getChildren("legend")[0],l=a.getFromEnv("colorRange").colorArr,c=l.length;for(n=0;n<c;n++)i={label:(0,s.pluck)(l[n].label,l[n].displayvalue),datasetObj:l[n],index:n},t=(0,s.getLightColor)(l[n].code,40),e={FCcolor:{color:l[n].code+","+l[n].code+","+t,ratio:"0,70,30",angle:270,alpha:"100,100,100"}},(A=o.getItem(r.legendItemIds[n]))||(r.legendItemIds.push(o.createItem(this)),(A=o.getItem(r.legendItemIds[n])).addEventListener("fc-click",A.itemClickFn)),A.removeLegendState("hidden"),l[n].legendItemId=A&&A.getId(),A.configure(i),A.setStateCosmetics("default",{symbol:{fill:(0,s.toRaphaelColor)(e),rawFillColor:l[n].code}});for(n=c;n<r.legendItemIds.length;n++)o.disposeItem(r.legendItemIds[n]);r.legendItemIds.splice(c)},A.legendInteractivity=function(e){var t=this.getFromEnv("colorRange").colorArr[e.config.index];this.fireEvent("legendUpdate",{legendItem:e,colorObj:t,component:"legend"})},A.getColor=function(e){return!Number(this.datasource.chart.mapbycategory)&&Number(this.datasource.colorrange.gradient)?{code:this.getColorByValue(e),label:this.getLabelByValue(e)}:this.getColorObj(e)},A.getValueRatio=function(){return this.getFromEnv("colorRange").getValueRatio()},A.getCumulativeValueRatio=function(){return this.getFromEnv("colorRange").getCumulativeValueRatio()},A.getBoxFill=function(e){return this.getFromEnv("colorRange").getBoxFill(e)},A.getColorByValue=function(e){return this.getFromEnv("colorRange").getColorByValue(e)},A.getColorObj=function(e){return this.getFromEnv("colorRange").getColorObj(e)},A.getLabelByValue=function(e){return this.getFromEnv("colorRange").getLabelByValue(e)},t}(r.ComponentInterface);t["default"]=p},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(272)),r=n(A(268)),a=A(254),o=A(270),s=function(e,t){return+e.minvalue==+t.minvalue?e.maxvalue-t.maxvalue:e.minvalue-t.minvalue},l=function(e,t,A){var n=e[0],i=e[1],r=e[2],o=n+(t[0]-n)*A,s=i+(t[1]-i)*A,l=r+(t[2]-r)*A;return{hex:(a.COLOR_BLACK+(o<<16|s<<8|l).toString(16)).slice(-6),rgb:[o,s,l]}},c=function(e){function t(){var t;t=e.call(this)||this;var A=(0,i["default"])(t);return A.mapByCategory=!1,A.colorArr=[],A.noValidRange=!0,A.sortLegend=!1,t}(0,r["default"])(t,e);var A=t.prototype;return A.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.defaultObj={code:"CCCCCC",alpha:"100"}},A.getType=function(){return"colorComponent"},A.getName=function(){return"colorBucket"},A.configure=function(e){if(e){var t,A,n,i,r,o,l,c,u,h,d,g=this.mapByCategory,p=e.numberFormatter,f=e.colorRange||{},m=(0,a.extend2)([],f.color),v=this.getLinkedParent(),b=Math.min(Math.max((0,a.pluckNumber)(this.getFromEnv("dataSource").chart.palette,0)-1,0),4),B=v.defaultPaletteOptions&&v.defaultPaletteOptions.paletteColors[b],C=(0,a.pluckNumber)(p.getCleanValue(f.maxvalue),Infinity),w=(0,a.pluckNumber)(p.getCleanValue(f.minvalue),-Infinity),y=this.colorArr;if(void 0!==e.mapByCategory&&(g=this.mapByCategory=!!Number(e.mapByCategory)),(m=g?m.filter((function(e){return e.code||e.color})):m.filter((function(e){return e.minvalue||e.maxvalue}))).forEach((function(e){e.minvalue&&e.maxvalue&&+e.maxvalue<+e.minvalue&&(c=e.maxvalue,e.maxvalue=e.minvalue,e.minvalue=c),e.minvalue?e.maxvalue?(h=p.getCleanValue(e.minvalue),u=p.getCleanValue(e.maxvalue),e.rangeLabel=p.dataLabels(h)+"-"+p.dataLabels(u)):(h=p.getCleanValue(e.minvalue),e.maxvalue=u=C,e.rangeLabel=u===Infinity?">"+p.dataLabels(h):p.dataLabels(h)+"-"+p.dataLabels(u)):(e.minvalue=h=w,u=p.getCleanValue(e.maxvalue),e.rangeLabel=h===-Infinity?"<"+p.dataLabels(u):p.dataLabels(h)+"-"+p.dataLabels(u))})),m.sort(s),m&&(t=m.length)){for(y.length=0,A=0;A<t;A+=1)l=m[A],n=(0,a.pluck)(l.color,l.code,B&&B[A]),i=(0,a.pluck)(l.alpha),o=(0,a.pluck)(l.bordercolor),r=(0,a.pluck)(l.borderalpha,100),u=(0,a.pluckNumber)(l.maxvalue),h=(0,a.pluckNumber)(l.minvalue),d=(0,a.pluck)(l.label,l.displayvalue,l.rangeLabel),(n&&u>=h||g&&d)&&y.push({code:n,alpha:i||"100",oriAlpha:i,maxvalue:u,minvalue:h,label:(0,a.parseUnsafeString)(d),labelId:d.toLowerCase(),bordercolor:o,borderAlpha:r,name:l.name,tllabelfont:l.tllabelfont,tllabelfontsize:l.tllabelfontsize,tllabelfontcolor:l.tllabelfontcolor,trlabelfont:l.trlabelfont,trlabelfontsize:l.trlabelfontsize,trlabelfontcolor:l.trlabelfontcolor,bllabelfont:l.bllabelfont,bllabelfontsize:l.bllabelfontsize,bllabelfontcolor:l.bllabelfontcolor,brlabelfont:l.brlabelfont,brlabelfontsize:l.brlabelfontsize,brlabelfontcolor:l.brlabelfontcolor});this.sortedColorArr=this.colorArr.slice(0)}else this.noValidRange=!0,this.colorArr=[],this.sortedColorArr=[]}},A.getColorObj=function(e){if(void 0===e)return{outOfRange:!0};var t,A,n,i=this.sortedColorArr,r=this.gradient?1:0,o=i[r],s=e;if(this.mapByCategory){for(s=(0,a.parseUnsafeString)(s).toLowerCase()||s.toString().toLowerCase();o;){if(o.labelId===s||o.maxvalue>=s&&o.minvalue<=s)return{code:o.code,alpha:o.alpha||"100",oriAlpha:o.oriAlpha,seriesIndex:r,legendItemId:o.legendItemId,tlLabelFont:o.tllabelfont,tlLabelFontSize:o.tllabelfontsize,tlLabelFontColor:o.tllabelfontcolor,trLabelFont:o.trlabelfont,trLabelFontSize:o.trlabelfontsize,trLabelFontColor:o.trlabelfontcolor,blLabelFont:o.bllabelfont,blLabelFontSize:o.bllabelfontsize,blLabelFontColor:o.bllabelfontcolor,brLabelFont:o.brlabelfont,brLabelFontSize:o.brlabelfontsize,brLabelFontColor:o.brlabelfontcolor};o=i[r+=1]}return{outOfRange:!0}}if(this.gradient){if(this.scaleMin<=s&&this.scaleMax>=s){for(;o&&o.maxvalue<s;)o=i[r+=1];return n=(s-o.minvalue)/o.range,{code:l(i[r-1].codeRGB,o.codeRGB,n).hex}}return{outOfRange:!0}}for(;o;){if(s<o.minvalue&&!t&&(A=0===r?{code:o.code,alpha:o.alpha||"100",oriAlpha:o.oriAlpha,seriesIndex:r,name:o.name,label:o.label,outOfRange:!0,bordercolor:o.bordercolor,borderalpha:o.borderAlpha}:{code:i[r-1].code,alpha:i[r-1].alpha||"100",oriAlpha:i[r-1].oriAlpha,seriesIndex:r,name:i[r-1].name,label:i[r-1].label,outOfRange:!0,bordercolor:i[r-1].bordercolor,borderalpha:i[r-1].borderAlpha}),s>o.maxvalue&&r===i.length-1&&(A={code:o.code,alpha:o.alpha||"100",oriAlpha:o.oriAlpha,seriesIndex:r,name:o.name,label:o.label,outOfRange:!0,bordercolor:o.bordercolor,borderalpha:o.borderAlpha}),o.maxvalue>s&&o.minvalue<=s?A={code:o.code,alpha:o.alpha||"100",oriAlpha:o.oriAlpha,seriesIndex:r,name:o.name,label:o.label,bordercolor:o.bordercolor,borderalpha:o.borderAlpha}:s===o.maxvalue&&(t={code:o.code,alpha:o.alpha||"100",oriAlpha:o.oriAlpha,seriesIndex:r,name:o.name,label:o.label,bordercolor:o.bordercolor,borderalpha:o.borderAlpha,tlLabelFont:o.tllabelfont,tlLabelFontSize:o.tllabelfontsize,tlLabelFontColor:o.tllabelfontcolor,trLabelFont:o.trlabelfont,trLabelFontSize:o.trlabelfontsize,trLabelFontColor:o.trlabelfontcolor,blLabelFont:o.bllabelfont,blLabelFontSize:o.bllabelfontsize,blLabelFontColor:o.bllabelfontcolor,brLabelFont:o.brlabelfont,brLabelFontSize:o.brlabelfontsize,brLabelFontColor:o.brlabelfontcolor}),r===i.length-1&&t)return t;if(A)return A.tlLabelFont=o.tllabelfont,A.tlLabelFontSize=o.tllabelfontsize,A.tlLabelFontColor=o.tllabelfontcolor,A.trLabelFont=o.trlabelfont,A.trLabelFontSize=o.trlabelfontsize,A.trLabelFontColor=o.trlabelfontcolor,A.blLabelFont=o.bllabelfont,A.blLabelFontSize=o.bllabelfontsize,A.blLabelFontColor=o.bllabelfontcolor,A.brLabelFont=o.brlabelfont,A.brLabelFontSize=o.brlabelfontsize,A.brLabelFontColor=o.brlabelfontcolor,A;o=i[r+=1]}return i.length?void 0:{outOfRange:!0}},A.getColorRangeArr=function(e,t){var A,n,i,r,o,s,l,c,u=[],h=e,d=t;if(!this.defaultAsigned&&(h>d&&(A=h,h=d,d=A),h<d&&(r=this.getColorObj(h),s=this.getColorObj(d),r&&s))){for(o=h,n=r.seriesIndex,i=s.seriesIndex;n<=i;n+=1)(l=(0,a.extend2)({},this.colorArr[n])).minvalue!==o&&(l.minvalue=o),u.push(l),c=l,o=l.maxvalue;c&&(c.maxvalue=d)}return u},t}(o.ComponentInterface);t["default"]=c},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=A(270),a=A(254),o=function(e){function t(){var t;return(t=e.call(this)||this).colorRange={},t.valueRatio={},t.data={},t.mapByPercent=a.UNDEF,t}(0,i["default"])(t,e);var A=t.prototype;return A.getType=function(){return"colorComponent"},A.getName=function(){return"gradientColorRange"},A.configure=function(e){if(e){var t,A,n;for(this.data=e,this.appender=a.BLANKSTRING,n=this.colorRange=e.colorRange.sort((function(e,t){return e.value-t.value})),this.valueRatio=a.UNDEF,this.values=[],t=0,A=n.length;t<A;t++)this.values.push(n[t].value)}},A.getValueRatio=function(){var e,t,A=this.colorRange,n=A.length,i=this.valueRatio,r=A[n-1].value,a=A[0].value,o=r-a,s=0;if(i)return i;for(i=this.valueRatio=[],e=0;e<n;e++)t=(A[e].value-a)/o,i.push(100*(t-s)),s=t;return i},A.getCumulativeValueRatio=function(){var e,t,A=this.colorRange,n=A.length,i=A[0].value,r=A[n-1].value,a=[];for(t=0;t<n;t++)e=A[t],a.push((e.value-i)/(r-i)*100);return a},A.getBoxFill=function(e){var t,A,n,i=this.colorRange,r=i.length,o=[];for(n=e?90:0,A=0;A<r;A++)t=i[A],o.push(t.code);return(0,a.toRaphaelColor)({FCcolor:{alpha:"100,100,100",angle:n,color:o.join(","),ratio:this.getValueRatio().join(",")}})},A.getColorByValue=function(e){var t,A,n,i,r=this.values,o=this.colorRange;if(e!==a.UNDEF&&null!==e){for(A=0,t=r.length;A<t;A++){if(e===r[A]){i=o[A].code;break}if(!A&&e<r[A]){n=!0;break}if(A===t-1&&e>r[A]){n=!0;break}if(e>r[A]&&e<r[A+1]){s=o[A],l=o[A+1],c=e,u=void 0,h=void 0,d=void 0,g=void 0,h=s.value,d=(0,a.HEXtoRGB)(s.code),g=(0,a.HEXtoRGB)(l.code),u=l.value-h,i=(0,a.RGBtoHex)([Math.round(d[0]+(g[0]-d[0])/u*(c-h)),Math.round(d[1]+(g[1]-d[1])/u*(c-h)),Math.round(d[2]+(g[2]-d[2])/u*(c-h))]);break}}var s,l,c,u,h,d,g;if(!n)return i}},A.getLabelByValue=function(e){var t,A,n,i,r=this.values,o=this.colorRange;if(e!==a.UNDEF&&null!==e){for(A=0,t=r.length;A<t;A++){if(e===r[A]){i=o[A].label;break}if(!A&&e<r[A]){n=!0;break}if(A===t-1&&e>r[A]){n=!0;break}if(e>r[A]&&e<r[A+1]){i=o[A].label;break}}if(!n)return i}},t}(r.ComponentInterface);t["default"]=o},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=function(e){!function(e){var t,A=e.getFromEnv("dataSource").colorrange,n=e.getFromEnv("dataSource").chart.mapbycategory,o="maps"===e.defaultDatasetType,s="TreeMap"===e.getName(),l=e.getFromEnv("legend"),c=e.getFromEnv("gLegend");t=A&&e.config.showLegend?o?A.gradient&&Number(A.gradient)?"gradient":A.color?"icon":"none":s?A.gradient&&"0"!==A.gradient?"gradient":"none":A.gradient&&"0"!==A.gradient&&!Number(n)?"gradient":"icon":"none";switch(t){case"gradient":e.deleteFromEnv("legend"),l&&l.remove(),(0,i.componentFactory)(e,r["default"],"gLegend",1),(c=e.getChildren("gLegend")[0]).configure(),e.addToEnv("gLegend",c);break;case"icon":e.deleteFromEnv("gLegend"),c&&c.remove(),(0,i.componentFactory)(e,a["default"],"legend",1,{showLegend:!0}),(l=e.getChildren("legend")[0]).configure(),e.addToEnv("legend",l);break;case"none":e.deleteFromEnv("gLegend"),e.deleteFromEnv("legend"),c&&c.remove(),l&&l.remove()}}(e)};var i=A(254),r=n(A(1098)),a=n(A(603))},function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i,r,a,o,s,l=n(A(272)),c=n(A(268)),u=A(254),h=A(270),d={},g="rgba(192,192,192,"+(u.isIE?.002:1e-6)+")",p={}.hasOwnProperty,f="M",m="L";function v(e,t){return function A(e,t){var n,r;for(r in e)p.call(e,r)&&(n=e[r],t[r]===i?t[r]=n:"object"==typeof n&&null!==n&&A(n,t[r]))}(e,t),t}function b(e){var t=e||"#000000";return(0,u.getValidColor)(t)||"#000000"}function B(e){var t,A=e.fontSize+"";return A?(t=A.replace(/(\d+)(px)*/,"$1px"),e.fontSize=t,e):e}function C(e){return!(e!==i&&null!=e&&!isNaN(e))}d.CAPTION="CAPTION",d.LEGEND_BODY="LEGEND_BODY",d.AXIS_LABEL="LEGEND_LABEL",d.LEGEND_AXIS="LEGEND_AXIS",d.RANGE="RANGE",d.AXIS_VALUE="AXIS_VALUE",(s={}).legendCarpetConf={spreadFactor:.85,allowDrag:!1,captionAlignment:"center",padding:{v:3,h:3},style:{fill:"#e4d9c1",stroke:"#c4b89d"}},s.legendCaptionConf={spreadFactor:.2,padding:{v:2,h:2},style:{fill:"#786B50",fontFamily:"sans-serif",fontSize:"12px",fontWeight:"bold",fontStyle:"normal"},bound:{style:{stroke:"none"}}},s.legendBodyConf={spreadFactor:.8,padding:{v:2,h:2},bound:{style:{stroke:"none"}}},s.legendAxisConf={legendAxisHeight:11,spreadFactor:.4,padding:{v:1,h:1},style:{stroke:"none","stroke-opacity":0,"stroke-width":1},line:{grooveLength:3,offset:8,style:{stroke:"rgba(255, 255, 255, 0.65)","stroke-width":1.5}},shadow:{style:{stroke:"none",fill:(0,u.toRaphaelColor)({FCcolor:{alpha:"25,0,0",angle:360,color:"000000,FFFFFF,FFFFFF",ratio:"0,30,40"}})}},bound:{style:{stroke:"none"}}},s.sliderGroupConf={showTooltip:1,outerCircle:{rFactor:1.4,style:{fill:g,stroke:"#757575","stroke-width":3}},innerCircle:{rFactor:.65,style:{fill:g,stroke:"#FFFFFF"}}},s.axisTextItemConf={spreadFactor:.3,padding:{v:1,h:1},style:{fill:"#786B50",fontFamily:"sans-serif",fontSize:"12px",fontWeight:"normal",fontStyle:"normal"}},r={init:function(e){o=e.chart},legacyDataParser:function(e,t){var A,n,r,a,s,l,c,h,d,g,p,f,m,v={},B=o.getFromEnv("number-formatter");if(!e)return!1;for(v.mapByPercent=p=!!(0,u.pluckNumber)(e.mapbypercent,0),A=e.color||[],e.minvalue===i&&(e.minvalue=t.min!==i?p?0:t.min:0),e.maxvalue===i&&(e.maxvalue=t.max!==i?p?100:t.max:100),f=!1,s=0,c=A.length;s<c;s++)if(A[s].maxvalue){f=!0;break}for(f||(A=[]),r=e.code,h=v.colorRange=[],v.gradient=!!(0,u.pluckNumber)(e.gradient,1),A.length?r=b(r):(r?(a=b(r),r=b()):(r=b(),m=r,a=(0,u.getLightColor)(m,1)),A.push({code:a,maxvalue:e.maxvalue,label:i})),function(e){var t,A,n,i=o.getFromEnv("number-formatter");for(t=0,A=e.length;t<A;t++)(n=e[t].maxvalue)&&(e[t].maxvalue=i.getCleanValue(n))}(A),A=A.sort((function(e,t){return e.maxvalue-t.maxvalue})),d=g=e.minvalue&&B.getCleanValue(e.minvalue),g=(d!==i||null!==d)&&(p?d+"%":B.legendValue(d)),h.push({code:(0,u.dehashify)(r),value:d,displayValue:g,label:e.startlabel}),s=0,c=A.length;s<c;s++)l=b((n=A[s]).code||n.color),d=g=n.maxvalue,isNaN(parseInt(d,10))||(g=(d!==i||null!==d)&&(p?d+"%":B.legendValue(d)),h.push({code:(0,u.dehashify)(l),value:d,displayValue:g,label:(0,u.parseUnsafeString)(n.label||n.displayvalue)}));return h[h.length-1].label=(0,u.parseUnsafeString)(e.endlabel||n.label),v},getDefaultConf:function(e){return s[e]}};var w=function(e){(0,c["default"])(A,e);var t=A.prototype;function A(){var t;return t=e.call(this)||this,a=(0,l["default"])(t),t.enabled=!1,t.drawOptions={},t.components={},t}return t.getType=function(){return"gradientLegend"},t.getName=function(){return"gLegend"},t.setColorRange=function(e){var t=this.drawOptions.colorRange=e;t&&t._preparationGoneWrong&&(this._dontPlot=!0)},t.configureAttributes=function(){var e,t,A,n,a,o,s,l,c,h,d,g,p=this.getFromEnv("chart"),f=this.getFromEnv("dataSource").chart,m=this.conf={},v=f.outcnvbasefont,b=this.computeFontSize(f.outcnvbasefontsize),B=f.outcnvbasefontcolor,C=p.config.dataLabelStyle;r.init({chart:p}),this.data=this.getFromEnv("dataSource").colorrange,this._dontPlot||(this.drawOptions={smartLabel:this.getFromEnv("smartLabel"),gLegend:this},this._dontPlot=!1,this._recalculateLogicalSpace=!0,m.caption=(0,u.parseUnsafeString)((0,u.pluck)(f.legendcaption)),m.legendPosition=(0,u.pluck)(f.legendposition,"bottom").toLowerCase(),m.legendXPosition=(0,u.pluckNumber)(f.legendxposition,0),m.legendYPosition=(0,u.pluckNumber)(f.legendyposition,0),m.legendMaxHeight=(0,u.pluckNumber)(f.legendmaxheight,0),m.legendMaxWidth=(0,u.pluckNumber)(f.legendmaxwidth,0),m.legendVertical="string"==typeof f.legendorientation&&"vertical"===f.legendorientation.toLowerCase(),m.showLegend=(0,u.pluckNumber)(f.showlegend,1),m.interactiveLegend=(0,u.pluckNumber)(f.interactivelegend,1),m.showLegendLabels=(0,u.pluckNumber)(f.showlegendlabels,1),e=f.legenditemfontcolor||B,t=f.legenditemfont||v,A=f.legenditemfontsize||b,n=(0,u.pluckFontSizeMaintainUnit)(f.legenditemfontsize,f.outcnvbasefontsize),a=(0,u.pluckNumber)(f.legenditemfontbold,0),o=f.legendcaptionfontcolor||B,s=f.legendcaptionfont||v,l=f.legendcaptionfontsize||b,c=(0,u.pluckFontSizeMaintainUnit)(f.legendcaptionfontsize,f.outcnvbasefontsize),h=(0,u.pluckNumber)(f.legendcaptionfontbold,1),g=(d=f.legendaxisbordercolor?(0,u.hashify)((0,u.dehashify)(f.legendaxisbordercolor)):i)?(0,u.pluckNumber)(f.legendaxisborderalpha,100)/100:i,m.axisTextItemConf={style:{fill:e?(0,u.convertColor)((0,u.pluck)(e)):C.color,fontFamily:t?(0,u.pluck)(t):C.fontFamily,fontSize:A?(0,u.pluckNumber)(A):C.fontSize.match(/\d+/)[0],fontSizeWithUnit:(0,u.pluckFontSizeMaintainUnit)(n,C.fontSize.match(/\d+/)[0]),fontWeight:a?"bold":C.fontWeight}},m.legendCaptionConf={style:{fill:o?(0,u.convertColor)((0,u.pluck)(o)):C.color,fontFamily:s?(0,u.pluck)(s):C.fontFamily,fontSize:l?(0,u.pluckNumber)(l):C.fontSize.match(/\d+/)[0],fontSizeWithUnit:(0,u.pluckFontSizeMaintainUnit)(c,C.fontSize.match(/\d+/)[0]),fontWeight:h?"bold":C.fontWeight,fontStyle:"normal"}},m.legendAxisConf={legendAxisHeight:11,style:{stroke:d,"stroke-opacity":g},line:{style:{stroke:(0,u.convertColor)((0,u.pluck)(f.legendscalelinecolor,"FFF8E9"),(0,u.pluckNumber)(f.legendscalelinealpha,100)),"stroke-width":(0,u.pluckNumber)(f.legendscalelinethickness)}}},m.sliderGroupConf={showTooltip:(0,u.pluckNumber)(f.showtooltip,1),outerCircle:{rFactor:(0,u.pluckNumber)(f.sliderdiameterfactor),style:{stroke:(0,u.convertColor)((0,u.pluck)(f.legendpointerbordercolor,"757575"),(0,u.pluckNumber)(f.legendpointerborderalpha,100))}},innerCircle:{rFactor:(0,u.pluckNumber)(f.sliderholediameterfactor),style:{stroke:(0,u.convertColor)((0,u.pluck)(f.legendpointercolor,"FFFFFF"),(0,u.pluckNumber)(f.legendpointeralpha,100))}}},m.legendCarpetConf={spreadFactor:(0,u.pluckNumber)(f.legendspreadfactor),allowDrag:!!(0,u.pluckNumber)(f.legendallowdrag,0),captionAlignment:(0,u.pluck)(f.legendcaptionalignment,"center"),style:{fill:(0,u.convertColor)((0,u.pluck)(f.legendbgcolor,"e4d9c1"),(0,u.pluckNumber)(f.legendbgalpha,100)),stroke:(0,u.convertColor)((0,u.pluck)(f.legendbordercolor,"c4b89d"),(0,u.pluckNumber)(f.legendborderalpha,100)),"stroke-width":(0,u.pluckNumber)(f.legendborderthickness,1)}})},t.postConfigureInit=function(){var e,t,A,n,i,a,o,s,l,c,u,h=this.conf,g=h.legendPosition?h.legendPosition.split("-"):[];this.elem={},h.interactiveLegend?(n=v(r.getDefaultConf("sliderGroupConf"),h.sliderGroupConf),this.sGroup?((A=this.elem.sGroup=this.sGroup).configure(n),this.elem.sGroup.gLegend=this):(this.sGroup=this.elem.sGroup=A=new L(n),A.configure(n),this.elem.sGroup.gLegend=this)):(this.sGroup&&this.sGroup.dispose(),this.sGroup&&delete this.sGroup),(n=v(r.getDefaultConf("legendCarpetConf"),h.legendCarpetConf)).legendPosition="absolute"===g[0]&&!h.legendVertical||"top"===g[0]||"bottom"===g[0]?"bottom":"right",u=r.getDefaultConf("legendBodyConf"),"absolute"===g[0]&&!h.legendVertical||"top"===g[0]||"bottom"===g[0]?(this.drawOptions.refSideKey="canvasWidth",this.drawOptions.refOffsetKey="canvasLeft",i=v(r.getDefaultConf("axisTextItemConf"),h.axisTextItemConf),u.legendPosition="bottom",(c=v(r.getDefaultConf("legendAxisConf"),h.legendAxisConf)).legendPosition="bottom",i.legendPosition="bottom"):(this.drawOptions.refSideKey="canvasHeight",this.drawOptions.refOffsetKey="canvasTop",i=v(r.getDefaultConf("axisTextItemConf"),h.axisTextItemConf),u.legendPosition="right",(c=v(r.getDefaultConf("legendAxisConf"),h.legendAxisConf)).legendPosition="right",i.legendPosition="right"),Object.keys(this.components).length||(this.components.LegendCarpet=new x,this.components.LegendBody=new E,this.components.LegendAxis=new Q,this.components.LegendValues=new U,h.showLegendLabels&&(this.components.LegendLabels=new S)),t=this.components.LegendAxis,s=this.components.LegendValues,e=this.components.LegendCarpet,a=this.components.LegendBody,h.showLegendLabels&&(o=this.components.LegendLabels),this.components.LegendCarpet.configure(n),this.components.LegendValues.configure(i),this.components.LegendAxis.configure(c),this.components.LegendBody.configure(this.drawOptions.colorRange,u,i),h.showLegendLabels&&o.configure(i),h.caption?(l=v(r.getDefaultConf("legendCaptionConf"),h.legendCaptionConf),this.componentCaption&&Object.keys(this.componentCaption).length?this.componentCaption.configure(h.caption,l):(this.componentCaption=new F).configure(h.caption,l),e.addCompositions(this.componentCaption,d.CAPTION)):(e.removeCompositions(d.CAPTION),this.componentCaption&&this.componentCaption.dispose(),delete this.componentCaption),A&&t.addCompositions(A,d.RANGE),o&&a.addCompositions(o,d.AXIS_LABEL),a.addCompositions(t,d.LEGEND_AXIS),a.addCompositions(s,d.AXIS_VALUE),e.addCompositions(a,d.LEGEND_BODY),this.elem.gl=new y(e)},t.getValueRange=function(){var e,t,A=this.elem&&this.elem.sGroup,n=A.sliders,i=A.extremes;return e=n["false"].currPos,t=i[1]-i[0]+n["true"].currPos,[{min:A.getValueFormPixel(e),max:A.getValueFormPixel(t)}]},t._dispose=function(){this.elem&&this.elem.gl&&this.elem.gl.dispose(),this.elem={},e.prototype._dispose.call(this)},t.getCalculatedLogicalSpace=function(){return this._logicalArea},t.setCalculatedLogicalSpace=function(e){this._logicalArea=e},t.getLogicalSpace=function(e){var t,A,n,i,r,a=this.conf,o={height:0,width:0},s=this.drawOptions,l=this.getFromEnv("chartConfig"),c="absolute"===a.legendPosition.split("-")[0];return this._recalculateLogicalSpace?this._dontPlot?o:(this._recalculateLogicalSpace=!1,this.postConfigureInit(),a.showLegend?(A=s.refSideKey,n=s.refOffsetKey,this.drawOptions.refSide=l[A],this.drawOptions.refOffset=l[n],this.drawOptions.maxOtherSide=e||this.drawOptions.maxOtherSide,this.elem.gl&&(t=this.elem.gl.getLogicalSpace(this.drawOptions,!0),this.elem.gl&&this.setCalculatedLogicalSpace(t)),this.getCalculatedLogicalSpace()):o):(A=s.refSideKey,n=s.refOffsetKey,this.drawOptions.refSide=l[A],c?(i=a.legendMaxHeight<=0?.8*l.height:a.legendMaxHeight<=l.height?a.legendMaxHeight:l.height,r=a.legendMaxWidth<=0?.8*l.width:a.legendMaxWidth<=l.width?a.legendMaxWidth:l.width,a.legendVertical?(this.drawOptions.refSide=i,this.drawOptions.maxOtherSide=r):(this.drawOptions.refSide=r,this.drawOptions.maxOtherSide=i)):(this.drawOptions.refOffset=l[n],this.drawOptions.maxOtherSide=e||this.drawOptions.maxOtherSide),t=this.elem.gl.getLogicalSpace(this.drawOptions,!0),this.setCalculatedLogicalSpace(t),this.getCalculatedLogicalSpace()||o)},t.resetLegend=function(){var e;(e=this.elem&&this.elem.sGroup)&&e.reset()},t._calculateTopPosition=function(e){var t=this.getFromEnv("chart"),A=t.config,n=e,i=t.getChildren("caption")&&t.getChildren("caption")[0],r=t.getChildren("subCaption")&&t.getChildren("subCaption")[0],a=t.getChildren("chartMenuBar")&&t.getChildren("chartMenuBar")[0],o=A.oriTopSpace;return!A.toolbarY&&a&&a.props&&a.props.height&&(o>a.props.height+a.props.y||(n=a.props.y+a.props.height)),i&&i.config&&i.config.text&&i.config.text!==u.BLANKSTRING&&i.config.height&&1===i.config.isOnTop&&(n=i.config.height+i.config.y+i.config.captionPadding),r&&r.config&&r.config.height&&1===r.config.isOnTop&&(n=r.config.y+r.config.height+(i&&i.config&&i.config.captionPadding||0)),n>e?n:e},t.allocatePosition=function(){var e,t,A,n,i,r,a,o,s=this.getFromEnv("chart"),l=s.config,c=this.conf||{},u=c.legendPosition.split("-"),h=l.canvasLeft,d=l.canvasTop,g=l.canvasWidth,p=l.canvasHeight,f=l.marginTop,m=l.marginBottom,v=l.marginRight,b=l.marginLeft;c.axisTextItemConf.style.fontSize=this.computeFontSize(c.axisTextItemConf.style.fontSizeWithUnit),c.legendCaptionConf.style.fontSize=this.computeFontSize(c.legendCaptionConf.style.fontSizeWithUnit),s.config.gLegendEnabled&&(e=this.getCalculatedLogicalSpace(),A=c.width=e.width,n=c.height=e.height,"absolute"===u[0]?(a=l.width-A,o=l.height-n,i=c.legendXPosition<0?0:c.legendXPosition>a?a:c.legendXPosition,r=c.legendYPosition<0?0:c.legendYPosition>o?o:c.legendYPosition):"top"===u[0]||"bottom"===u[0]?(t=g-A,i="left"===u[1]?h:"right"===u[1]?h+(t>0?t:0):h+(t<0?0:t/2),r="top"===u[0]?this._calculateTopPosition(f):l.height-e.height-m-(l.actionBarHeight||0)):(t=p-n,r="top"===u[1]?d:"bottom"===u[1]?d+t:d+(t<0?0:t/2),i="left"===u[0]?b:l.width-e.width-v),c.xPos=i,c.yPos=r)},t.draw=function(){var e=this.getFromEnv("chart"),t=e.getFromEnv("dataSource").colorrange,A=this.conf||{},n=e.hasGradientLegend;e.config.gLegendEnabled&&t&&n&&this.drawLegendComponent(A.xPos,A.yPos,{parentGroup:e.getContainer("parentgroup"),animationManager:e.getFromEnv("animationManager")})},t.drawLegendComponent=function(e,t,A){var n,i=this.conf;this._dontPlot||(i.showLegend?(this.drawOptions.animationManager=A.animationManager,this.drawOptions.parentGroup=A.parentGroup,this.drawOptions.x=e,this.drawOptions.y=t,this.drawOptions.maxOtherSide=this.drawOptions.maxOtherSide||A.maxOtherSide,n=this.elem.gl.draw(this.drawOptions).getBBox(),i.xPos=n.x,i.yPos=n.y,i.height=n.height,i.width=n.width,this.enabled=!0):this.enabled=!1)},A}(h.ComponentInterface),y=function(){function e(e){this.carpet=e}var t=e.prototype;return t.draw=function(e){return this.carpet.draw(e)},t.getLogicalSpace=function(e,t){return this.carpet.getLogicalSpace(e,t)},t.dispose=function(){this.carpet&&this.carpet.group&&this.carpet.group.remove()},e}(),x=function(){function e(e){this.conf=e,this._id="GL_CARPET",this.compositionsByCategory={},this.node=i,this.group=i,this._lSpace=i,this.autoRecalculate=!1,this.groupName="fc-gradient-legend",this.moveInstructions={}}var t=e.prototype;return t.configure=function(e){this.conf=e},t.getName=function(){return"LegendCarpet"},t.getType=function(){return"legend"},t.addCompositions=function(e,t){this.compositionsByCategory[t]=e},t.removeCompositions=function(e){delete this.compositionsByCategory[e]},t.getBoundingBox=function(e){var t,A,n=this.conf,r=n.spreadFactor,a=e.refSide,o=e.alignment,s=e.refOffset,l=e.x,c=e.y;return"bottom"===this.conf.legendPosition?(t=n.width=a*r,A=e.maxOtherSide,!o||l!==i&&null!==l||(l=(s+a)/2-t/2)):(A=n.height=a*r,t=e.maxOtherSide,!o||c!==i&&null!==c||(c=(s+a)/2-A/2)),{width:t,height:A,x:l,y:c}},t.getPostCalcDecisionsH=function(e,t){var A,n=this.conf.padding,i=0;for(A in this.moveInstructions={},t)i+=t[A].height||0;e.height=i+2*n.v},t.getLogicalSpace=function(e,t){var A,n,i,r,a,o=this._lSpace,s=["CAPTION","LEGEND_BODY"],l=this.conf.padding,c=this.compositionsByCategory,u=0,h={},d=0;if(o&&!t)return o.isImpure=!0,o;(C((o=this._lSpace=n=this.getBoundingBox(e)).x)||C(o.y)||C(o.height)||C(o.width))&&(this.autoRecalculate=!0),(i=v(n,{})).height-=2*l.v,i.width-=2*l.h,i.x+=l.h,i.y+=l.v;for(var g=0;g<s.length;g++)(A=c[s[g]])&&((a=v(i,{})).y+=u,u=i.height*A.conf.spreadFactor,a.height=u+d,r=A.getLogicalSpace(v(a,{}),e,t),d=a.height-r.height,h[s[g]]=r,u=r.height);return this.getPostCalcDecisions(n,h),this._lSpace=n,n},t.setupDragging=function(){var e=this.group,t=0,A=0,n=0,i=0;e.css({cursor:"move"}),e.drag((function(r,a){t=r,A=a,e.attr({transform:"t"+(n+t)+","+(i+A)})}),(function(){n+=t,i+=A}),u.stubFN)},t.draw=function(e){var t,A,n,i=this.conf,r=["CAPTION","LEGEND_BODY"],o=this.compositionsByCategory,s=e.animationManager,l=e.parentGroup;this.getLogicalSpace(e,this.autoRecalculate),n=this._lSpace,this.group=t=s.setAnimation({el:this.group||"group",attr:{name:this.groupName},component:a,container:l,label:"carpetGroup"}),this.node=s.setAnimation({el:this.node||"rect",attr:n,css:i.style,component:a,container:t,label:"rect"});for(var c=0;c<r.length;c++)(A=o[r[c]])&&A.draw(i.captionAlignment,n,{animationManager:s,colorRange:e.colorRange,numberFormatter:e.numberFormatter,parentLayer:t,smartLabel:e.smartLabel,moveInstructions:this.moveInstructions[void 0],gLegend:e.gLegend});return i.allowDrag&&this.setupDragging(),this.node},t.getPostCalcDecisions=function(e,t){return"bottom"===this.conf.legendPosition?this.getPostCalcDecisionsH(e,t):this.getPostCalcDecisionsV(e,t)},t.getPostCalcDecisionsV=function(e,t){var A,n,i,r=this.conf.padding,a=Number.NEGATIVE_INFINITY,o=this.moveInstructions;for(n in this.getPostCalcDecisionsH(e,t),t)a=a<(A=t[n].width)?A:a;for(n in e.width=a+2*r.h,t)(i=a-(A=t[n].width))&&(o[n]="t"+i/2+",0")},e}(),F=function(){function e(e,t){this.rawText=e,this.conf=t,this._id="GL_CAPTION",this.node=i,this.bound=i,this._lSpace=i,this.LegendCaption={},this.LegendCaption.LEFT={x:function(e,t){return t.x+e.width/2+2}},this.LegendCaption.RIGHT={x:function(e,t){return t.x+t.width-e.width/2-2}},this.LegendCaption.CENTER={x:function(){var e=arguments[1];return e.x+e.width/2}}}var t=e.prototype;return t.configure=function(e,t){this.rawText=e,this.conf=t},t.getName=function(){return"LegendCaption"},t.getType=function(){return"caption"},t.getLogicalSpace=function(e,t,A){var n,r,a,o,s=this.conf.padding,l=this._lSpace,c=this.rawText,u=t.gLegend.getFromEnv("chartConfig");return l&&!A?(l.isImpure=!0,l):(l=this._lSpace={bound:{height:0,width:0},node:{logicArea:i,smartText:i}},n=t.smartLabel,c?((r=v(e,{})).height-=2*s.v,r.width-=2*s.h,r.x+=s.h,r.y+=s.v,n.useEllipsesOnOverflow(u.useEllipsesWhenOverflow),B(o=v(this.conf.style,{})),n.setStyle(this._metaStyle=o),a=n.getSmartText(c,r.width,r.height),r.height=a.height,r.width=a.width,e.height=a.height+2*s.v,e.width=a.width+2*s.h,l.node.smartText=a,l.node.logicArea=r,l.bound=e,e):l.bound)},t.draw=function(){var e,t,A,n,i,r,o,s,l,c,u,h=this.conf,d=h.bound||{};return arguments.length>=3?(o=arguments[0],s=arguments[1],l=arguments[2]):arguments.length>=2&&(o=arguments[0],l=arguments[1]),e=l.parentLayer,u=l.animationManager,this.group=t=u.setAnimation({el:this.group||"group",attr:{name:"legend-caption"},css:h.style,component:a,container:e}),this.getLogicalSpace(s,l),c=(i=this._lSpace).node,n=i.bound,this.bound=A=u.setAnimation({el:this.bound||"rect",attr:n,css:d.style,container:t,component:a}),r="string"==typeof o?this.LegendCaption[o.toUpperCase()].x(c.smartText,s||c.logicArea):o,this.node=u.setAnimation({el:this.node||"text",attr:{text:c.smartText.text,x:r,y:c.logicArea.y+c.smartText.height/2,lineHeight:this._metaStyle.lineHeight,fill:h.style.fill},container:t,component:a}),{group:t,bound:A,node:this.node}},t.dispose=function(){this.group.remove(),this.bound.remove(),this.node.remove()},e}(),E=function(){function e(e,t,A){this.colorRange=e,this.conf=t,this.childTextConf=A,this._id="GL_BODY",this.bound=i,this.group=i,this.compositionsByCategory={},this._lSpace=i,this.SC_STACK=[d.AXIS_LABEL,d.LEGEND_AXIS,d.AXIS_VALUE],this.DARW_STACK=[d.AXIS_VALUE,d.LEGEND_AXIS,d.AXIS_LABEL]}var t=e.prototype;return t.configure=function(e,t,A){this.colorRange=e,this.conf=t,this.childTextConf=A,this.compositionsByCategory={}},t.getName=function(){return"LegendBody"},t.getType=function(){return"legend"},t.addCompositions=function(e,t){this.compositionsByCategory[t]=e},t.getSpaceTaken=function(e){return"bottom"===this.conf.legendPosition?e.height:e.width},t.getLogicalSpace=function(e,t,A){var n,r,a,o,s,l,c,u=this._lSpace,h=this.conf.padding,d=this.compositionsByCategory,g=0;if(u&&!A)return u.isImpure=!0,u;for(u=this._lSpace={bound:{height:0,width:0},node:{logicArea:i}},(o=v(e,{})).height-=2*h.v,o.width-=2*h.h,o.x+=h.h,o.y+=h.v,s=this.getCompositionPlotAreaFor(o),t.colorRange=this.colorRange,l=0,c=this.SC_STACK.length;l<c;l++)(n=d[this.SC_STACK[l]])&&(r=s(a,n.conf.spreadFactor),a=n.getLogicalSpace(v(r,{}),t,A),g+=this.getSpaceTaken(a));return this.updateEffectivePlotArea(e,o,g),u.node.logicArea=o,u.bound=e,e},t.draw=function(){var e,t,A,n,i,r,o,s,l,c,u=this.childTextConf,h=this.conf,d=h.bound.style||{},g=this.compositionsByCategory;for(arguments.length>=3?(r=arguments[1],s=arguments[2]):arguments.length>=2&&(s=arguments[1]),t=s.parentLayer,e=s.animationManager,this.getLogicalSpace(r,s),o=this._lSpace,this.group=i=e.setAnimation({el:this.group||"group",attr:{name:"legend-body",transform:"t0,0"},css:u.style,container:t,component:a}),this.bound=A=e.setAnimation({el:this.bound||"rect",attr:o.bound,css:d,container:i,component:a}),s.colorRange=this.colorRange,s.parentLayer=i,l=0,c=this.DARW_STACK.length;l<c;l++)(n=g[this.DARW_STACK[l]])&&n.draw(s);return s.moveInstructions&&i.attr({transform:s.moveInstructions}),{bound:A,group:i}},t.getCompositionPlotAreaFor=function(e){var t,A="bottom"===this.conf.legendPosition;return t=v(e,{}),function(n,i){var r=n;return r=r||{},A?(t.y+=r.height||0,t.height=e.height*i):(t.x+=r.width||0,t.width=e.width*i),t}},t.updateEffectivePlotArea=function(e,t,A){var n=this.conf.padding;"bottom"===this.conf.legendPosition?(t.height=A,e.height=A+2*n.v):(t.width=A,e.width=A+2*n.h)},e}(),S=function(){function e(e){this.conf=e,this.node=[],this._id="GL_LABELS"}var t=e.prototype;return t.configure=function(e){this.conf=e},t.getType=function(){return"label"},t.getName=function(){return"LegendLabel"},t.getEffectivePlotArea=function(e){var t=this.conf.padding;return e.height-=2*t.v,e.width-=2*t.h,e.x+=t.h,e.y+=t.v,e},t.getLogicalSpace=function(e,t,A){var n,r,a,o,s,l,c,h,d,g,p,f,m,b,C,w,y,x,F,E,S,Q,k,L="bottom"===this.conf.legendPosition,U=this._lSpace,I=this.conf,T=I.padding,N=[],D=t.gLegend.getFromEnv("chartConfig"),P=[];if(U&&!A)return U.isImpure=!0,U;for(n=t.colorRange,r=t.smartLabel,g=n.getCumulativeValueRatio(),a=n.colorRange,m=(U=this._lSpace={bound:{height:0,width:0},node:{logicArea:i,smartTexts:[]}}).node.smartTexts,h=v(e,{}),C=this.getEffectivePlotArea(h),k=L?C.width:C.height,r.useEllipsesOnOverflow(D.useEllipsesWhenOverflow),Q=v(I.style,{}),B(this._metaStyle=Q),r.setStyle(Q),w=r.getSmartText("W"),o=0,s=a.length;o<s;o++)(d=(0,u.parseUnsafeString)(a[o].label))?P.push({oriIndex:o,label:d}):m[o]=i;if(0===(s=P.length))return{height:0,width:0};for(f=p=s>1?(g[P[s-1].oriIndex]-g[P[0].oriIndex])/2*k/100:Math.max(g[P[0].oriIndex],100-g[P[0].oriIndex])/2*k/100,L?((E=r.getSmartText(P[0].label,f,C.height)).x=g[P[0].oriIndex]*C.width/100,l=E.x+E.width):((E=r.getSmartText(P[0].label,f,C.width)).y=g[P[0].oriIndex]*C.height/100,l=E.y+E.width),N.push(E.height),m[P[0].oriIndex]=E,L?((E=r.getSmartText(P[s-1].label,f,C.height)).x=g[P[s-1].oriIndex]*C.width/100,c=E.x-E.width):((E=r.getSmartText(P[s-1].label,f,C.width)).y=g[P[s-1].oriIndex]*C.height/100,c=E.y-E.width),N.push(E.height),m[P[s-1].oriIndex]=E,F=l,o=1;o<s-1;o++)d=P[o].label,S=P[o].oriIndex,E=i,y=o+1===s-1?c:g[P[o+1].oriIndex]*k/100,x=g[P[o].oriIndex]*k/100,(p=Math.min(x-F,y-x))>2*w.width&&(L?(E=r.getSmartText(d,p,C.height)).x=g[S]*C.width/100:(E=r.getSmartText(d,p,C.width)).y=g[S]*C.height/100,F=p,N.push(E.height)),m[P[o].oriIndex]=E;return b=Math.max.apply(Math,N),L?(C.height=b,e.height=b+2*T.v):(C.width=b,e.width=b+2*T.v),U.node.logicArea=C,U.bound=e,e},t.draw=function(){var e,t,A,n,i,r,o,s,l,c,u,h,d="bottom"===this.conf.legendPosition,g=this.conf,p=g.bound&&g.bound.style||{stroke:"none"},f={};arguments.length>=2&&arguments[1]?(n=arguments[0],o=arguments[1]):arguments.length>=1&&(o=arguments[0]),h=o.animationManager,e=o.parentLayer,this.getLogicalSpace(n,o),l=(r=this._lSpace).node.logicArea,c=r.node.smartTexts,this.group=A=h.setAnimation({el:this.group||"group",attr:{name:"legend-labels"},container:e,component:a}),this.bound=t=h.setAnimation({el:this.bound||"rect",attr:r.bound,css:p,container:A,component:a});for(var m=0;m<this.node.length;m++)this.node[m].remove();for(this.node=[],s=0,u=c.length;s<u;s++)(i=c[s])&&(d?(f.y=l.y+i.height/2,f.x=s===u-1?l.x+i.x-i.width/2:s?l.x+i.x:l.x+i.x+i.width/2):(f.x=l.x+i.height/2,f.y=s===u-1?l.y+i.y-i.width/2:s?l.y+i.y:l.y+i.y+i.width/2),this.node.push(h.setAnimation({el:"text",attr:{text:i.text,x:f.x,y:f.y,lineHeight:this._metaStyle.lineHeight,fill:g.style.fill,transform:d?"R0":"R270,"+f.x+","+f.y},container:A,component:a})));return{group:A,bound:t,node:this.node}},e}(),Q=function(){function e(e){this.conf=e,this._id="FL_AXIS",this.node=i,this.group=i,this.shadow=i,this.markerLine=i,this.compositionsByCategory={}}var t=e.prototype;return t.configure=function(e){this.conf=e},t.getName=function(){return"LegendAxis"},t.getType=function(){return"axis"},t.addCompositions=function(e,t){this.compositionsByCategory[t]=e},t.getLogicalSpace=function(){var e,t,A,n,r,a,o="bottom"===this.conf.legendPosition,s=arguments[0],l=arguments[2],c=this._lSpace,u=this.conf,h=u.padding,g=u.legendAxisHeight,p=this.compositionsByCategory,f=0;return c&&!l?(c.isImpure=!0,c):(c=this._lSpace={bound:{height:0,width:0},node:{logicArea:i}},(r=v(s,{})).height-=2*h.v,r.width-=2*h.h,r.x+=h.h,r.y+=h.v,e=g/2+u.line.offset,t=g/2,(n=p[d.RANGE])&&(a=n.sliders["false"].conf.outerCircle.rFactor*g,t+=f=Math.max(a/2-g/2,0)),o?(r.y+=f,r.height=A=t+e+f,s.height=A+2*h.v):(r.x+=f,r.width=A=t+e+f,s.width=A+2*h.v),c.node.logicArea=r,c.bound=s,s)},t.getDrawableAxisArea=function(e){var t=this.conf,A="bottom"===this.conf.legendPosition;return{x:e.x,y:e.y,width:A?e.width:t.legendAxisHeight,height:A?t.legendAxisHeight:e.height,r:t.legendAxisHeight/2}},t.preDrawingRangeParamV=function(e){return{x:e.x+e.width/2,calculationBase:e.width,rangeStart:e.y,rangeEnd:e.y+e.height,prop:"x"}},t.preDrawingRangeParamH=function(e){return{y:e.y+e.height/2,calculationBase:e.height,rangeStart:e.x,rangeEnd:e.x+e.width,prop:"y"}},t.preDrawingRangeParam=function(e){return"bottom"===this.conf.legendPosition?this.preDrawingRangeParamH(e):this.preDrawingRangeParamV(e)},t.getScaleMarkerPathStrH=function(e,t){var A,n,i,r,a,o=v(e,{}),s=this.conf.line,l=u.BLANKSTRING,c=u.BLANKSTRING;for(o.x+=o.r,o.width-=2*o.r,a=o.y+o.height,A=0,n=t.length;A<n;A++)i=t[A],r=o.x+i*o.width/100,l+=f+r+","+(a-s.grooveLength)+m+r+","+(a+s.offset);return l+(c+=f+o.x+","+(a+s.offset)+m+(o.x+o.width)+","+(a+s.offset))},t.getColorGradientH=function(e){return{axis:e.getBoxFill(),shadow:(0,u.toRaphaelColor)({FCcolor:{alpha:"25,0,0",angle:90,color:"000000,FFFFFF,FFFFFF",ratio:"0,30,40"}})}},t.draw=function(){var e,t,A,n,i,r,o,s,l,c,u,h,g,p,f=this.conf,m=f.bound||{},v=f.line,b=m.style||{},B=this.compositionsByCategory;for(A in arguments.length>=2?(t=arguments[0],h=arguments[1]):arguments.length>=1&&(h=arguments[0]),g=h.animationManager,e=h.parentLayer,i=(n=h.colorRange).getCumulativeValueRatio(),this.getLogicalSpace(t,h),u=this._lSpace,this.group=o=g.setAnimation({el:this.group||"group",attr:{name:"legend-axis"},container:e,component:a}),this.bound=g.setAnimation({el:this.bound||"rect",attr:u.bound,css:b,component:a,container:o}),c=this.getDrawableAxisArea(u.node.logicArea),l=this.getColorGradient(n),f.style.fill=l.axis,f.shadow.style.fill=l.shadow,this.node=g.setAnimation({el:this.node||"rect",attr:c,css:f.style,container:o,component:a}),this.shadow=g.setAnimation({el:this.shadow||"rect",attr:c,css:f.shadow.style,container:o,component:a}),p=this.getScaleMarkerPathStr(c,i),this.path=g.setAnimation({el:this.path||"path",attr:{path:p},css:v.style,container:o,component:a}),B)switch(r=B[A],A){case d.RANGE:h[(s=this.preDrawingRangeParam(c)).prop]=s[s.prop],h.key=s.prop,h.rCalcBase=s.calculationBase,h.parentLayer=o,r.draw(s.rangeStart,s.rangeEnd,h)}},t.getScaleMarkerPathStr=function(e,t){return"bottom"===this.conf.legendPosition?this.getScaleMarkerPathStrH(e,t):this.getScaleMarkerPathStrV(e,t)},t.getColorGradient=function(e){return"bottom"===this.conf.legendPosition?this.getColorGradientH(e):this.getColorGradientV(e)},t.getScaleMarkerPathStrV=function(e,t){var A,n,i,r,a,o=v(e,{}),s=this.conf.line,l=u.BLANKSTRING,c=u.BLANKSTRING;for(o.y+=o.r,o.height-=2*o.r,r=o.x+o.width,A=0,i=t.length;A<i;A++)n=t[A],a=o.y+n*o.height/100,l+=f+(r-s.grooveLength)+","+a+m+(r+s.offset)+","+a;return l+(c+=f+(r+s.offset)+","+o.y+m+(r+s.offset)+","+(o.y+o.height))},t.getColorGradientV=function(e){return{axis:e.getBoxFill(!0),shadow:(0,u.toRaphaelColor)({FCcolor:{alpha:"25,0,0",angle:360,color:"000000,FFFFFF,FFFFFF",ratio:"0,30,40"}})}},e}(),k=function(){function e(e,t,A){this.conf=t.conf,this.sliderIndex=e,this.rangeGroup=t.sliderGroup,this._id=A,this.node=i,this.tracker=i,this.currPos=0,this.swing=[]}var t=e.prototype;return t.configure=function(e,t,A){this.conf=t.conf,this.sliderIndex=e,this.rangeGroup=t.sliderGroup,this._id=A,this.currPos=0,this.swing=[]},t.getType=function(){return"slider"},t.getName=function(){return"Slider"},t.updateSwingRange=function(e,t){this.swing[+e]=t},t.draw=function(e,t,A,n){var i,r,o,s,l,c,u,h=n.parentLayer,d=n.animationManager,p=this.conf,f=p.outerCircle,m=p.innerCircle,v=d.getFromEnv("chart").config,b=Math.ceil(f.rFactor*n.rCalcBase/2),B=Math.ceil(m.rFactor*n.rCalcBase/2),C=b-B,w=n.gLegend.getFromEnv("toolTipController"),y=this.sliderIndex;return p.outerRadius=b,p.innerRadius=B,this._scaleVal=t,m.style["stroke-width"]=C,B+=s=Math.ceil(f.style["stroke-width"]/2),r=this.node=d.setAnimation({el:this.node||"group",attr:{name:"fc-gl-slider",cursor:"pointer",transform:"t0,0"},container:h,component:a}),"x"===n.key?(l=A,c=e,c+=y?-B:+B):(l=e,c=A,l+=y?-B:+B),this.oCircle=d.setAnimation({el:this.oCircle||"circle",attr:{cx:l,cy:c,r:b},css:f.style,container:r,component:a}),this.iCircle=d.setAnimation({el:this.iCircle||"circle",attr:{cx:l,cy:c,r:B},css:m.style,container:r,component:a}),u=this.tracker=d.setAnimation({el:this.tracker||"circle",attr:{cx:l,cy:c,r:b+5,fill:g,stroke:g,cursor:"pointer"},container:r,component:a}),r.attr({transform:"x"===n.key?"t0,"+this.currPos:"t"+this.currPos+",0"}),i=v.showToolTip?t:"",w.enableToolTip(u,i),this._dragAPI=o=this.getDragAPI("x"===n.key),u.undrag(),u.drag(o.dragging,o.dragStart,o.dragEnd),{translateAscending:b+s}},t.getDragAPI=function(e){var t,A,n,i,r=this,a=r.node,o=r.sliderIndex,s=r.rangeGroup,l=r.conf.innerRadius;return{dragging:function(c){var u,h,d,g,p;return c.stopPropagation(),d=e?c.data[1]:c.data[0],o?(u=t[0]-t[1]+l,h=0):(u=0,h=t[1]-t[0]-l),(p=r.currPos+d)<u?d+=u-p:p>h&&(d-=p-h),a.attr({transform:e?"t0,"+(r.currPos+d):"t"+(r.currPos+d)+",0"}),A=d,n&&clearTimeout(n),n=setTimeout((function(){s.updateWhenInRest(r,r.currPos+d)}),100),g=s.updateWhenInMove(r,r.currPos+d),r.conf.showTooltip&&r.tracker.data("__FC_tooltipText",g),i=!0,!0},dragStart:function(e){e.stopPropagation(),t=r.swing,i=!1,s.dragStarted(r)},dragEnd:function(){var e;s.dragCompleted(r,i,r.currPos+A),i&&(n&&clearTimeout(n),n=setTimeout((function(){s.updateWhenInRest(r,r.currPos)}),100),r.currPos+=A,e=t[+o]+r.currPos,s.updateRange(r,e))}}},t.dispose=function(){this.node.remove(),this.oCircle.remove(),this.iCircle.remove(),this.tracker.remove()},e}(),L=function(){function e(e){var t=e,A={};this._id="GL_SG1",this.conf=e,A.conf=t,this.extremes=[],this.sliders={},this.min=i,this.max=i,A.sliderGroup=this,this.valueRange=[],this.callbacks=[],this.sliders[!1]=new k(!1,A,this._id+"_0"),this.sliders[!0]=new k(!0,A,this._id+"_1")}var t=e.prototype;return t.configure=function(e){var t=e,A={};this.min=i,this.max=i,this.conf=e,A.conf=t,A.sliderGroup=this,this.sliders[!1].configure(!1,A,this._id+"_0"),this.sliders[!0].configure(!0,A,this._id+"_1")},t.getType=function(){return"slider"},t.getName=function(){return"SliderGroup"},t.initRange=function(e,t){var A=e.sliderIndex;this.extremes[+A]=t},t.updateRange=function(e,t){var A=e.sliderIndex;this.sliders[!A].updateSwingRange(A,t)},t.reset=function(){var e={};e.conf=this.conf,e.sliderGroup=this,this.min=i,this.max=i,this.sliders[!1].configure(!1,e,this._id+"_0"),this.sliders[!0].configure(!0,e,this._id+"_1"),this.draw.apply(this,this._drawParams)},t.draw=function(e,t,A){var n,i,r,a,o,s,l=this.sliders,c=l[!1],u=l[!0],h=A.colorRange,d=h.colorRange,g=h.data.mapByPercent,p=A.gLegend.getFromEnv("number-formatter");return this._fcChart=A.gLegend.getFromEnv("chart"),this.getValueFormPixel=function(e,t,A,n){var i=(t-e)/(n-A);this.getValueFormPixel=function(t){return e+i*t}},this.updateWhenInMove=function(e,t){this.updateWhenInMove=function(A,n){var i,r,a=this.extremes;return i=A.sliderIndex?a[1]-a[0]+n:n,r=this.getValueFormPixel(i),r=t?parseFloat(r).toFixed(2)+"%":e.legendValue(r)}},this._drawParams=[e,t,A],this.updateWhenInMove(p,g),r=c.conf.outerCircle,i=c.conf.innerCircle,a=Math.ceil(i.rFactor*A.rCalcBase/2),a+=Math.ceil(r.style["stroke-width"]/2),this.extremes[0]=e+a,this.extremes[1]=t-a,o=this.extremes[1]-this.extremes[0],this.min=this.min?this.min:d[0].value,this.max=this.max?this.max:d[d.length-1].value,s=d[d.length-1].value-d[0].value,c.currPos=o*(this.min-d[0].value)/s,u.currPos=o*(this.max-d[0].value)/s-o,c.draw(e,g?p.legendPercentValue(this.min):p.legendValue(this.min),A[A.key],A),n=u.draw(t,g?p.legendPercentValue(this.max):p.legendValue(this.max),A[A.key],A),c.swing=this.extremes.slice(0),u.swing=this.extremes.slice(0),c.swing[1]+=u.currPos,u.swing[0]+=c.currPos,this.getValueFormPixel(d[0].value,d[d.length-1].value,this.extremes[0],this.extremes[1]),n},t.updateWhenInRest=function(e,t){var A,n,i=this.sliders,r=this.extremes,a=e.sliderIndex;a?(A=i[!a].currPos,n=r[1]-r[0]+t):(A=t,n=r[1]-r[0]+i[!a].currPos),this.min=Number(this.getValueFormPixel(A).toFixed(2)),this.max=Number(this.getValueFormPixel(n).toFixed(2)),this.gLegend.fireEvent("rangeUpdated",[{min:this.min,max:this.max}])},t.dragStarted=function(e){var t=this.sliders,A=this.extremes,n=e.conf,i=this._fcChart;i.fireChartInstanceEvent("legendpointerdragstart",{pointerIndex:+e.sliderIndex,pointers:[{value:this.getValueFormPixel(t["false"].currPos)},{value:this.getValueFormPixel(A[1]-A[0]+t["true"].currPos)}],legendPointerHeight:n.outerRadius,legendPointerWidth:n.innerRadius,outerRadius:n.outerRadius,innerRadius:n.innerRadius},[i.id])},t.dragCompleted=function(e,t,A){var n,i,r=this.sliders,a=this.extremes,o=e.conf,s=this.getValueFormPixel(r["false"].currPos),l=this.getValueFormPixel(a[1]-a[0]+r["true"].currPos),c=this._fcChart;e.sliderIndex?(n=s,i=this.getValueFormPixel(a[1]-a[0]+A)):(n=this.getValueFormPixel(A),i=l),t&&c.fireChartInstanceEvent("legendrangeupdated",{previousMinValue:s,previousMaxValue:l,minValue:n,maxValue:i},[c.id]),c.fireChartInstanceEvent("legendpointerdragstop",{pointerIndex:+e.sliderIndex,pointers:[{value:n},{value:i}],legendPointerHeight:o.outerRadius,legendPointerWidth:o.innerRadius,outerRadius:o.outerRadius,innerRadius:o.innerRadius},[c.id])},t.dispose=function(){this.sliders[!1].dispose(),this.sliders[!0].dispose()},e}(),U=function(e){function t(){var t;return(t=e.call(this,arguments[0])||this)._id="GL_VALUES",t.node=[],t}(0,c["default"])(t,e);var A=t.prototype;return A.configure=function(e){this.conf=e},A.getName=function(){return"LegendValues"},A.getType=function(){return"legend"},A.getLogicalSpace=function(e,t,A){var n,r,a,o,s,l,c,u,h,d,g,p,f,m,b,C,w,y,x,F,E,S,Q,k,L,U="bottom"===this.conf.legendPosition,I=this._lSpace,T=this.conf,N=T.padding,D=t.gLegend.getFromEnv("chartConfig"),P=[],M=[];if(I&&!A)return I.isImpure=!0,I;for(n=t.colorRange,r=t.smartLabel,a=n.colorRange,c=n.getCumulativeValueRatio(),L=(I=this._lSpace={bound:{height:0,width:0},node:{logicArea:i,smartTexts:[]}}).node.smartTexts,(F=v(e,{})).height-=2*N.v,F.width-=2*N.h,F.x+=N.h,F.y+=N.v,r.useEllipsesOnOverflow(D.useEllipsesWhenOverflow),k=v(T.style,{}),B(this._metaStyle=k),r.setStyle(k),Q=r.getSmartText("W"),l=a.length,U?(g=u=(c[l-1]-c[0])/2*F.width/100,S=a[0].displayValue,(o=r.getSmartText("string"!=typeof S&&S!==i&&S.toString()||S,g,F.height)).x=c[0]*F.width/100,p=o.x+o.width,P.push(o.height)):(g=u=(c[l-1]-c[0])/2*F.height/100,(o=r.getSmartText(a[0].displayValue,F.width,g)).y=c[0]*F.height/100,b=o.y+o.width,M.push(o.width)),L[0]=o,U?((o=r.getSmartText(a[l-1].displayValue,g,F.height)).x=c[l-1]*F.width/100,m=o.x-o.width,P.push(o.height),f=p):((o=r.getSmartText(a[l-1].displayValue,F.width,g)).y=c[l-1]*F.height/100,w=o.y-o.height,M.push(o.width),C=b),L[l-1]=o,s=1;s<l-1;s++)o=i,E=a[s].displayValue,U?(h=s+1===l-1?m:c[s+1]*F.width/100,d=c[s]*F.width/100,(u=Math.min(d-f,h-d))>1.5*Q.width&&((o=r.getSmartText(E,2*u,F.height)).x=c[s]*F.width/100,f=u,P.push(o.height))):(h=s+1===l-1?w:c[s+1]*F.height/100,d=c[s]*F.height/100,(u=Math.min(d-C,h-d))>2*Q.height&&((o=r.getSmartText(E,F.width,2*u)).y=c[s]*F.height/100,C=u,M.push(o.width))),L[s]=o;return U?(y=Math.max.apply(Math,P),F.height=y,e.height=y+2*N.v):(x=Math.max.apply(Math,M),F.width=x,e.width=x+2*N.h),I.node.logicArea=F,I.bound=e,e},A.draw=function(){var e,t,A,n,i,r,o,s,l,c,u,h,d,g=this.conf,p="bottom"===g.legendPosition,f=g.bound&&g.bound.style||{stroke:"none"},m={};arguments.length>=2&&arguments[1]?(n=arguments[0],o=arguments[1]):arguments.length>=1&&(o=arguments[0]),d=o.animationManager,e=o.parentLayer,s=o.colorRange.getCumulativeValueRatio(),this.getLogicalSpace(n,o),r=(i=this._lSpace).node.logicArea,u=i.node.smartTexts,this.group=A=d.setAnimation({el:this.group||"group",attr:{name:"legend-values"},container:e,component:a}),this.bound=t=d.setAnimation({el:this.bound||"rect",attr:i.bound,css:f,container:A,component:a});for(var v=0;v<this.node.length;v++)this.node[v].remove();for(this.node=[],l=0,c=s.length;l<c;l++)(h=u[l])&&(p?(m.y=r.y+h.height/2,m.x=l===c-1?r.x+h.x-h.width/2:l?r.x+h.x:r.x+h.x+h.width/2):(m.x=r.x+h.width/2,m.y=l===c-1?r.y+h.y-h.height/2:l?r.y+h.y:r.y+h.y+h.height/2),this.node.push(d.setAnimation({el:"text",attr:{text:h.text,x:m.x,y:m.y,lineHeight:this._metaStyle.lineHeight,fill:g.style.fill},container:A,component:a})));return{group:A,bound:t}},t}(S),I=w;t["default"]=I},,,,,function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t.radiansInAngle=t.changeAngleBase=t.findArc=t.normaliseAngle=t.pointOnCircleFromCenter=t.getCoordinates=t.getPlotFromPixel=t.polarToCartesian=t.cartesianToPolar=t.rad2Deg=t.deg2Rad=void 0;var i=n(A(260)),r=function(e){return e*(Math.PI/180)},a=function(e){return e*(180/Math.PI)},o=function(e,t){var A,n;return A=Math.sqrt(e*e+t*t),n=a(Math.atan(t/e)),e<0&&t>=0||e<0&&t<0?n+=180:e>0&&t<0&&(n+=360),{radius:A,theta:r(n)}},s=function(e,t,A){void 0===A&&(A=!0);var n=t;return A||(n=r(n)),{x:e*Math.cos(n),y:e*Math.sin(n)}};t.radiansInAngle=function(e,t){return e/t*(180/Math.PI)},t.changeAngleBase=function(e){return e>=0&&e<90?Math.abs(180-e):e>90&&e<=180?Math.abs(e-180):e>180&&e<270||e>270&&e<360?Math.abs(360-e+180):360===e?180:e},t.findArc=function(e,t){var A;return(A=t>360?t%360:t<0?360+t:t)>e?A-e:360-(e-A)},t.normaliseAngle=function(e){return e-90},t.pointOnCircleFromCenter=function(e,t,A,n){var i=(n-90)*Math.PI/180;return{x:e+A*Math.cos(i),y:t+A*Math.sin(i)}},t.getPlotFromPixel=function(e,t){var A,n,i=e.x,r=e.y,s=t.getScale();return n=o(i,r),A=s.getDomainValue(n.theta),a(A)},t.getCoordinates=function(e,t){var A,n,r=t.getScale(),a=e.radius,o=t.config,l=o.axisDimention.centerX,c=o.axisDimention.centerY;return a=(0,i["default"])(a,o.radius,0),A=r.getRangeValue(e.theta),(n=s(a,A)).x+=l,n.y+=c,n},t.polarToCartesian=s,t.cartesianToPolar=o,t.rad2Deg=a,t.deg2Rad=r},,,,function(e,t,A){"use strict";t.__esModule=!0,t["default"]=void 0;var n=[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"axis"}];t["default"]=n},,,,,,,,,,,,,,,,function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(437))["default"];t["default"]=i},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,A){"use strict";t.__esModule=!0,t.symbolList=void 0;var n,i=(0,A(262).getDep)("redraphael","plugin"),r=Math.cos,a=Math.sin,o=Math.PI;t.symbolList=n,t.symbolList=n={pinModeIcon:function(e,t,A){var n=.5*A,i=e-A,r=e+A,a=e-n,o=e+n,s=e+.5,l=s+1,c=s+1.5,u=t-A,h=t+n,d=t-n,g=t+(A-n);return["M",i,u,"L",a,d,a,g,i,h,e-.5,h,e,t+A+.5,s,h,r,h,o,g,o,d,r,u,c,u,c,d,c,g,l,g,l,d,c,d,c,u,"Z"]},zoomOutIcon:function(e,t,A){var n=e-.2*A,o=t-.2*A,s=.8*A,l=i.rad(43),c=i.rad(48),u=n+s*r(l),h=o+s*a(l),d=n+s*r(c),g=o+s*a(c),p=A,f=i.rad(45);return["M",u,h,"A",s,s,0,1,0,d,g,"Z","M",u+1,h+1,"L",u+p*r(f),h+p*a(f),d+p*r(f),g+p*a(f),d+1,g+1,"Z","M",n-2,o,"L",n+2,o,"Z"]},resetIcon:function(e,t,A){var n=A,i=e-n,s=t,l=(o/2+o)/2,c=e+n*r(l),u=t+n*a(l),h=2*n/3;return["M",i,s,"A",n,n,0,1,1,c,u,"L",c+h,u-1,c+2,u+h-.5,c,u]},zoomInIcon:function(e,t,A){var n=e-.2*A,o=t-.2*A,s=.8*A,l=i.rad(43),c=i.rad(48),u=n+s*r(l),h=o+s*a(l),d=n+s*r(c),g=o+s*a(c),p=A,f=i.rad(45);return["M",u,h,"A",s,s,0,1,0,d,g,"Z","M",u+1,h+1,"L",u+p*r(f),h+p*a(f),d+p*r(f)-1,g+p*a(f)-1,d+1,g+1,"Z","M",n-2,o,"L",n+2,o,"Z","M",n,o-2,"L",n,o+2,"Z"]},zoomModeIcon:function(e,t,A){var n=[],o=e-.2*A,s=t-.2*A,l=.8*A,c=i.rad(43),u=i.rad(48),h=o+l*r(c),d=s+l*a(c),g=o+l*r(u),p=s+l*a(u),f=A,m=i.rad(45),v=h+f*r(m),b=d+f*a(m),B=g+f*r(m)-1,C=p+f*a(m)-1;return n=n.concat(["M",h,d,"A",l,l,0,1,0,g,p,"Z","M",h+1,d+1,"L",v,b,B,C,B+1,C-1,B+1.5,C+1.5,B-1,C+1,B,C,g+1,p+1,"Z","M",o-2,s,"L",o+2,s,"Z","M",o,s-2,"L",o,s+2,"Z"])},panModeIcon:function(e,t,A){var n,i=A;return[].concat(["M",(n=e)-(i*=2.5)/16,t-i/8,"L",n+i/16,t-i/8,"L",n+i/16,t-i/3.2,"L",n+6*i/32,t-10*i/32,"L",n,t-i/2,"L",n-6*i/32,t-10*i/32,"L",n-i/16,t-i/3.2,"Z","M",n+4*i/32,t-2*i/32,"L",n+10*i/32,t-2*i/32,"L",n+10*i/32,t-6*i/32,"L",n+16*i/32,t,"L",n+10*i/32,t+6*i/32,"L",n+10*i/32,t+2*i/32,"L",n+4*i/32,t+2*i/32,"Z","M",n+2*i/32,t+5*i/32,"L",n+2*i/32,t+10*i/32,"L",n+6*i/32,t+10*i/32,"L",n,t+16*i/32,"L",n-6*i/32,t+10*i/32,"L",n-2*i/32,t+10*i/32,"L",n-2*i/32,t+5*i/32,"Z","M",n-4*i/32,t-2*i/32,"L",n-10*i/32,t-2*i/32,"L",n-10*i/32,t-6*i/32,"L",n-16*i/32,t,"L",n-10*i/32,t+6*i/32,"L",n-10*i/32,t+2*i/32,"L",n-4*i/32,t+2*i/32,"Z"])}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,A){"use strict";var n=A(249);t.__esModule=!0,t["default"]=void 0;var i=n(A(268)),r=n(A(662)),a=A(254),o=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var A=t.prototype;return A.getType=function(){return"group"},A.getName=function(){return"columnOverlappedGroup"},A.setColumnPosition=function(){var e,t=this.getFromEnv("chart-attrib"),A=this.getFromEnv("xAxis"),n=this.getFromEnv("chart"),i=this.getFromEnv("numOfColumns"),r=Math.max((0,a.pluckNumber)(t.plotspacepercent),0),o=Math.max((0,a.pluckNumber)(r,20)%100,0),s=o/200,l=A.getPixel(0),c=A.getPixel(1),u=n.isBar?n.config.maxBarHeight:n.config.maxColWidth,h=Math.abs(c-l),d=!0,g=0,p=0;this.addToEnv("groupMaxWidth",h),this._mapChildren((function(e){e.getState("removed")||!1===e.getState("visible")||p++})),this.addToEnv("numOfColumns",p),this.addToEnv("numColDiff",(0,a.pluckNumber)(i-p,0)),void 0===(e=this.getFromEnv("plotWidth"))&&(e=(1-.01*r)*h||Math.min(h*(1-2*s),u*(p||1))),this._mapChildren((function(t){t.getState("removed")||!1===t.getState("visible")||(t.addToEnv("plotWidth",e-e/p*g),g++)})),c-NaN-(l-NaN+void 0)<4&&(d=!1),0===o&&(d=!0),this.addToEnv("isCrisp",d)},t}(r["default"]);t["default"]=o},,,,,,,,,,function(e,t,A){"use strict";(function(e){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <http://feross.org>
 * @license  MIT
 */
var n=A(1281),i=A(1282),r=A(1283);function a(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=s.prototype:(null===e&&(e=new s(t)),e.length=t),e}function s(e,t,A){if(!(s.TYPED_ARRAY_SUPPORT||this instanceof s))return new s(e,t,A);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return u(this,e)}return l(this,e,t,A)}function l(e,t,A,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,A,n){if(t.byteLength,A<0||t.byteLength<A)throw new RangeError("'offset' is out of bounds");if(t.byteLength<A+(n||0))throw new RangeError("'length' is out of bounds");t=A===undefined&&n===undefined?new Uint8Array(t):n===undefined?new Uint8Array(t,A):new Uint8Array(t,A,n);s.TYPED_ARRAY_SUPPORT?(e=t).__proto__=s.prototype:e=h(e,t);return e}(e,t,A,n):"string"==typeof t?function(e,t,A){"string"==typeof A&&""!==A||(A="utf8");if(!s.isEncoding(A))throw new TypeError('"encoding" must be a valid string encoding');var n=0|g(t,A),i=(e=o(e,n)).write(t,A);i!==n&&(e=e.slice(0,i));return e}(e,t,A):function(e,t){if(s.isBuffer(t)){var A=0|d(t.length);return 0===(e=o(e,A)).length||t.copy(e,0,0,A),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?o(e,0):h(e,t);if("Buffer"===t.type&&r(t.data))return h(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function u(e,t){if(c(t),e=o(e,t<0?0:0|d(t)),!s.TYPED_ARRAY_SUPPORT)for(var A=0;A<t;++A)e[A]=0;return e}function h(e,t){var A=t.length<0?0:0|d(t.length);e=o(e,A);for(var n=0;n<A;n+=1)e[n]=255&t[n];return e}function d(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function g(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var A=e.length;if(0===A)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return A;case"utf8":case"utf-8":case undefined:return _(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*A;case"hex":return A>>>1;case"base64":return R(e).length;default:if(n)return _(e).length;t=(""+t).toLowerCase(),n=!0}}function p(e,t,A){var n=!1;if((t===undefined||t<0)&&(t=0),t>this.length)return"";if((A===undefined||A>this.length)&&(A=this.length),A<=0)return"";if((A>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return k(this,t,A);case"utf8":case"utf-8":return E(this,t,A);case"ascii":return S(this,t,A);case"latin1":case"binary":return Q(this,t,A);case"base64":return F(this,t,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,A);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function f(e,t,A){var n=e[t];e[t]=e[A],e[A]=n}function m(e,t,A,n,i){if(0===e.length)return-1;if("string"==typeof A?(n=A,A=0):A>2147483647?A=2147483647:A<-2147483648&&(A=-2147483648),A=+A,isNaN(A)&&(A=i?0:e.length-1),A<0&&(A=e.length+A),A>=e.length){if(i)return-1;A=e.length-1}else if(A<0){if(!i)return-1;A=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:v(e,t,A,n,i);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,A):Uint8Array.prototype.lastIndexOf.call(e,t,A):v(e,[t],A,n,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,A,n,i){var r,a=1,o=e.length,s=t.length;if(n!==undefined&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,A/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(r=A;r<o;r++)if(l(e,r)===l(t,-1===c?0:r-c)){if(-1===c&&(c=r),r-c+1===s)return c*a}else-1!==c&&(r-=r-c),c=-1}else for(A+s>o&&(A=o-s),r=A;r>=0;r--){for(var u=!0,h=0;h<s;h++)if(l(e,r+h)!==l(t,h)){u=!1;break}if(u)return r}return-1}function b(e,t,A,n){A=Number(A)||0;var i=e.length-A;n?(n=Number(n))>i&&(n=i):n=i;var r=t.length;if(r%2!=0)throw new TypeError("Invalid hex string");n>r/2&&(n=r/2);for(var a=0;a<n;++a){var o=parseInt(t.substr(2*a,2),16);if(isNaN(o))return a;e[A+a]=o}return a}function B(e,t,A,n){return V(_(t,e.length-A),e,A,n)}function C(e,t,A,n){return V(function(e){for(var t=[],A=0;A<e.length;++A)t.push(255&e.charCodeAt(A));return t}(t),e,A,n)}function w(e,t,A,n){return C(e,t,A,n)}function y(e,t,A,n){return V(R(t),e,A,n)}function x(e,t,A,n){return V(function(e,t){for(var A,n,i,r=[],a=0;a<e.length&&!((t-=2)<0);++a)A=e.charCodeAt(a),n=A>>8,i=A%256,r.push(i),r.push(n);return r}(t,e.length-A),e,A,n)}function F(e,t,A){return 0===t&&A===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,A))}function E(e,t,A){A=Math.min(e.length,A);for(var n=[],i=t;i<A;){var r,a,o,s,l=e[i],c=null,u=l>239?4:l>223?3:l>191?2:1;if(i+u<=A)switch(u){case 1:l<128&&(c=l);break;case 2:128==(192&(r=e[i+1]))&&(s=(31&l)<<6|63&r)>127&&(c=s);break;case 3:r=e[i+1],a=e[i+2],128==(192&r)&&128==(192&a)&&(s=(15&l)<<12|(63&r)<<6|63&a)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:r=e[i+1],a=e[i+2],o=e[i+3],128==(192&r)&&128==(192&a)&&128==(192&o)&&(s=(15&l)<<18|(63&r)<<12|(63&a)<<6|63&o)>65535&&s<1114112&&(c=s)}null===c?(c=65533,u=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=u}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var A="",n=0;for(;n<t;)A+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return A}(n)}t.Buffer=s,t.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},t.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=e.TYPED_ARRAY_SUPPORT!==undefined?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}(),t.kMaxLength=a(),s.poolSize=8192,s._augment=function(e){return e.__proto__=s.prototype,e},s.from=function(e,t,A){return l(null,e,t,A)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(e,t,A){return function(e,t,A,n){return c(t),t<=0?o(e,t):A!==undefined?"string"==typeof n?o(e,t).fill(A,n):o(e,t).fill(A):o(e,t)}(null,e,t,A)},s.allocUnsafe=function(e){return u(null,e)},s.allocUnsafeSlow=function(e){return u(null,e)},s.isBuffer=function(e){return!(null==e||!e._isBuffer)},s.compare=function(e,t){if(!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var A=e.length,n=t.length,i=0,r=Math.min(A,n);i<r;++i)if(e[i]!==t[i]){A=e[i],n=t[i];break}return A<n?-1:n<A?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!r(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);var A;if(t===undefined)for(t=0,A=0;A<e.length;++A)t+=e[A].length;var n=s.allocUnsafe(t),i=0;for(A=0;A<e.length;++A){var a=e[A];if(!s.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},s.byteLength=g,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},s.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?E(this,0,e):p.apply(this,arguments)},s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",A=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,A).match(/.{2}/g).join(" "),this.length>A&&(e+=" ... ")),"<Buffer "+e+">"},s.prototype.compare=function(e,t,A,n,i){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(t===undefined&&(t=0),A===undefined&&(A=e?e.length:0),n===undefined&&(n=0),i===undefined&&(i=this.length),t<0||A>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=A)return 0;if(n>=i)return-1;if(t>=A)return 1;if(this===e)return 0;for(var r=(i>>>=0)-(n>>>=0),a=(A>>>=0)-(t>>>=0),o=Math.min(r,a),l=this.slice(n,i),c=e.slice(t,A),u=0;u<o;++u)if(l[u]!==c[u]){r=l[u],a=c[u];break}return r<a?-1:a<r?1:0},s.prototype.includes=function(e,t,A){return-1!==this.indexOf(e,t,A)},s.prototype.indexOf=function(e,t,A){return m(this,e,t,A,!0)},s.prototype.lastIndexOf=function(e,t,A){return m(this,e,t,A,!1)},s.prototype.write=function(e,t,A,n){if(t===undefined)n="utf8",A=this.length,t=0;else if(A===undefined&&"string"==typeof t)n=t,A=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(A)?(A|=0,n===undefined&&(n="utf8")):(n=A,A=undefined)}var i=this.length-t;if((A===undefined||A>i)&&(A=i),e.length>0&&(A<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var r=!1;;)switch(n){case"hex":return b(this,e,t,A);case"utf8":case"utf-8":return B(this,e,t,A);case"ascii":return C(this,e,t,A);case"latin1":case"binary":return w(this,e,t,A);case"base64":return y(this,e,t,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,A);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),r=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S(e,t,A){var n="";A=Math.min(e.length,A);for(var i=t;i<A;++i)n+=String.fromCharCode(127&e[i]);return n}function Q(e,t,A){var n="";A=Math.min(e.length,A);for(var i=t;i<A;++i)n+=String.fromCharCode(e[i]);return n}function k(e,t,A){var n=e.length;(!t||t<0)&&(t=0),(!A||A<0||A>n)&&(A=n);for(var i="",r=t;r<A;++r)i+=H(e[r]);return i}function L(e,t,A){for(var n=e.slice(t,A),i="",r=0;r<n.length;r+=2)i+=String.fromCharCode(n[r]+256*n[r+1]);return i}function U(e,t,A){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>A)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,A,n,i,r){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<r)throw new RangeError('"value" argument is out of bounds');if(A+n>e.length)throw new RangeError("Index out of range")}function T(e,t,A,n){t<0&&(t=65535+t+1);for(var i=0,r=Math.min(e.length-A,2);i<r;++i)e[A+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function N(e,t,A,n){t<0&&(t=4294967295+t+1);for(var i=0,r=Math.min(e.length-A,4);i<r;++i)e[A+i]=t>>>8*(n?i:3-i)&255}function D(e,t,A,n,i,r){if(A+n>e.length)throw new RangeError("Index out of range");if(A<0)throw new RangeError("Index out of range")}function P(e,t,A,n,r){return r||D(e,0,A,4),i.write(e,t,A,n,23,4),A+4}function M(e,t,A,n,r){return r||D(e,0,A,8),i.write(e,t,A,n,52,8),A+8}s.prototype.slice=function(e,t){var A,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=t===undefined?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),s.TYPED_ARRAY_SUPPORT)(A=this.subarray(e,t)).__proto__=s.prototype;else{var i=t-e;A=new s(i,undefined);for(var r=0;r<i;++r)A[r]=this[r+e]}return A},s.prototype.readUIntLE=function(e,t,A){e|=0,t|=0,A||U(e,t,this.length);for(var n=this[e],i=1,r=0;++r<t&&(i*=256);)n+=this[e+r]*i;return n},s.prototype.readUIntBE=function(e,t,A){e|=0,t|=0,A||U(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUInt8=function(e,t){return t||U(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||U(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||U(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,A){e|=0,t|=0,A||U(e,t,this.length);for(var n=this[e],i=1,r=0;++r<t&&(i*=256);)n+=this[e+r]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,A){e|=0,t|=0,A||U(e,t,this.length);for(var n=t,i=1,r=this[e+--n];n>0&&(i*=256);)r+=this[e+--n]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readInt8=function(e,t){return t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){t||U(e,2,this.length);var A=this[e]|this[e+1]<<8;return 32768&A?4294901760|A:A},s.prototype.readInt16BE=function(e,t){t||U(e,2,this.length);var A=this[e+1]|this[e]<<8;return 32768&A?4294901760|A:A},s.prototype.readInt32LE=function(e,t){return t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||U(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||U(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||U(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||U(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,A,n){(e=+e,t|=0,A|=0,n)||I(this,e,t,A,Math.pow(2,8*A)-1,0);var i=1,r=0;for(this[t]=255&e;++r<A&&(i*=256);)this[t+r]=e/i&255;return t+A},s.prototype.writeUIntBE=function(e,t,A,n){(e=+e,t|=0,A|=0,n)||I(this,e,t,A,Math.pow(2,8*A)-1,0);var i=A-1,r=1;for(this[t+i]=255&e;--i>=0&&(r*=256);)this[t+i]=e/r&255;return t+A},s.prototype.writeUInt8=function(e,t,A){return e=+e,t|=0,A||I(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,A){return e=+e,t|=0,A||I(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):T(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,A){return e=+e,t|=0,A||I(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):T(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,A){return e=+e,t|=0,A||I(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,A){return e=+e,t|=0,A||I(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,A,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*A-1);I(this,e,t,A,i-1,-i)}var r=0,a=1,o=0;for(this[t]=255&e;++r<A&&(a*=256);)e<0&&0===o&&0!==this[t+r-1]&&(o=1),this[t+r]=(e/a>>0)-o&255;return t+A},s.prototype.writeIntBE=function(e,t,A,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*A-1);I(this,e,t,A,i-1,-i)}var r=A-1,a=1,o=0;for(this[t+r]=255&e;--r>=0&&(a*=256);)e<0&&0===o&&0!==this[t+r+1]&&(o=1),this[t+r]=(e/a>>0)-o&255;return t+A},s.prototype.writeInt8=function(e,t,A){return e=+e,t|=0,A||I(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,A){return e=+e,t|=0,A||I(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):T(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,A){return e=+e,t|=0,A||I(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):T(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,A){return e=+e,t|=0,A||I(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,A){return e=+e,t|=0,A||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,A){return P(this,e,t,!0,A)},s.prototype.writeFloatBE=function(e,t,A){return P(this,e,t,!1,A)},s.prototype.writeDoubleLE=function(e,t,A){return M(this,e,t,!0,A)},s.prototype.writeDoubleBE=function(e,t,A){return M(this,e,t,!1,A)},s.prototype.copy=function(e,t,A,n){if(A||(A=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<A&&(n=A),n===A)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(A<0||A>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-A&&(n=e.length-t+A);var i,r=n-A;if(this===e&&A<t&&t<n)for(i=r-1;i>=0;--i)e[i+t]=this[i+A];else if(r<1e3||!s.TYPED_ARRAY_SUPPORT)for(i=0;i<r;++i)e[i+t]=this[i+A];else Uint8Array.prototype.set.call(e,this.subarray(A,A+r),t);return r},s.prototype.fill=function(e,t,A,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,A=this.length):"string"==typeof A&&(n=A,A=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(n!==undefined&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<A)throw new RangeError("Out of range index");if(A<=t)return this;var r;if(t>>>=0,A=A===undefined?this.length:A>>>0,e||(e=0),"number"==typeof e)for(r=t;r<A;++r)this[r]=e;else{var a=s.isBuffer(e)?e:_(new s(e,n).toString()),o=a.length;for(r=0;r<A-t;++r)this[r+t]=a[r%o]}return this};var O=/[^+\/0-9A-Za-z-_]/g;function H(e){return e<16?"0"+e.toString(16):e.toString(16)}function _(e,t){var A;t=t||Infinity;for(var n=e.length,i=null,r=[],a=0;a<n;++a){if((A=e.charCodeAt(a))>55295&&A<57344){if(!i){if(A>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&r.push(239,191,189);continue}i=A;continue}if(A<56320){(t-=3)>-1&&r.push(239,191,189),i=A;continue}A=65536+(i-55296<<10|A-56320)}else i&&(t-=3)>-1&&r.push(239,191,189);if(i=null,A<128){if((t-=1)<0)break;r.push(A)}else if(A<2048){if((t-=2)<0)break;r.push(A>>6|192,63&A|128)}else if(A<65536){if((t-=3)<0)break;r.push(A>>12|224,A>>6&63|128,63&A|128)}else{if(!(A<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(A>>18|240,A>>12&63|128,A>>6&63|128,63&A|128)}}return r}function R(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,A,n){for(var i=0;i<n&&!(i+A>=t.length||i>=e.length);++i)t[i+A]=e[i];return i}}).call(this,A(6))},function(e,t,A){"use strict";t.byteLength=function(e){var t=l(e),A=t[0],n=t[1];return 3*(A+n)/4-n},t.toByteArray=function(e){var t,A,n=l(e),a=n[0],o=n[1],s=new r(function(e,t,A){return 3*(t+A)/4-A}(0,a,o)),c=0,u=o>0?a-4:a;for(A=0;A<u;A+=4)t=i[e.charCodeAt(A)]<<18|i[e.charCodeAt(A+1)]<<12|i[e.charCodeAt(A+2)]<<6|i[e.charCodeAt(A+3)],s[c++]=t>>16&255,s[c++]=t>>8&255,s[c++]=255&t;2===o&&(t=i[e.charCodeAt(A)]<<2|i[e.charCodeAt(A+1)]>>4,s[c++]=255&t);1===o&&(t=i[e.charCodeAt(A)]<<10|i[e.charCodeAt(A+1)]<<4|i[e.charCodeAt(A+2)]>>2,s[c++]=t>>8&255,s[c++]=255&t);return s},t.fromByteArray=function(e){for(var t,A=e.length,i=A%3,r=[],a=0,o=A-i;a<o;a+=16383)r.push(c(e,a,a+16383>o?o:a+16383));1===i?(t=e[A-1],r.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[A-2]<<8)+e[A-1],r.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return r.join("")};for(var n=[],i=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)n[o]=a[o],i[a.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var A=e.indexOf("=");return-1===A&&(A=t),[A,A===t?0:4-A%4]}function c(e,t,A){for(var i,r,a=[],o=t;o<A;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),a.push(n[(r=i)>>18&63]+n[r>>12&63]+n[r>>6&63]+n[63&r]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
t.read=function(e,t,A,n,i){var r,a,o=8*i-n-1,s=(1<<o)-1,l=s>>1,c=-7,u=A?i-1:0,h=A?-1:1,d=e[t+u];for(u+=h,r=d&(1<<-c)-1,d>>=-c,c+=o;c>0;r=256*r+e[t+u],u+=h,c-=8);for(a=r&(1<<-c)-1,r>>=-c,c+=n;c>0;a=256*a+e[t+u],u+=h,c-=8);if(0===r)r=1-l;else{if(r===s)return a?NaN:(d?-1:1)*Infinity;a+=Math.pow(2,n),r-=l}return(d?-1:1)*a*Math.pow(2,r-n)},t.write=function(e,t,A,n,i,r){var a,o,s,l=8*r-i-1,c=(1<<l)-1,u=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:r-1,g=n?1:-1,p=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===Infinity?(o=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),(t+=a+u>=1?h/s:h*Math.pow(2,1-u))*s>=2&&(a++,s/=2),a+u>=c?(o=0,a=c):a+u>=1?(o=(t*s-1)*Math.pow(2,i),a+=u):(o=t*Math.pow(2,u-1)*Math.pow(2,i),a=0));i>=8;e[A+d]=255&o,d+=g,o/=256,i-=8);for(a=a<<i|o,l+=i;l>0;e[A+d]=255&a,d+=g,a/=256,l-=8);e[A+d-g]|=128*p}},function(e,t){var A={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==A.call(e)}},,,,function(e,t,A){(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),A={},n=0;n<t.length;n++)A[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return A},i=/%[sdj%]/g;t.format=function(e){if(!m(e)){for(var t=[],A=0;A<arguments.length;A++)t.push(o(arguments[A]));return t.join(" ")}A=1;for(var n=arguments,r=n.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(A>=r)return e;switch(e){case"%s":return String(n[A++]);case"%d":return Number(n[A++]);case"%j":try{return JSON.stringify(n[A++])}catch(t){return"[Circular]"}default:return e}})),s=n[A];A<r;s=n[++A])p(s)||!B(s)?a+=" "+s:a+=" "+o(s);return a},t.deprecate=function(A,n){if(void 0!==e&&!0===e.noDeprecation)return A;if(void 0===e)return function(){return t.deprecate(A,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(e.throwDeprecation)throw new Error(n);e.traceDeprecation?console.trace(n):console.error(n),i=!0}return A.apply(this,arguments)}};var r,a={};function o(e,A){var n={seen:[],stylize:l};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(A)?n.showHidden=A:A&&t._extend(n,A),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=s),c(n,e,n.depth)}function s(e,t){var A=o.styles[t];return A?"["+o.colors[A][0]+"m"+e+"["+o.colors[A][1]+"m":e}function l(e,t){return e}function c(e,A,n){if(e.customInspect&&A&&y(A.inspect)&&A.inspect!==t.inspect&&(!A.constructor||A.constructor.prototype!==A)){var i=A.inspect(n,e);return m(i)||(i=c(e,i,n)),i}var r=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(m(t)){var A="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(A,"string")}if(f(t))return e.stylize(""+t,"number");if(g(t))return e.stylize(""+t,"boolean");if(p(t))return e.stylize("null","null")}(e,A);if(r)return r;var a=Object.keys(A),o=function(e){var t={};return e.forEach((function(e,A){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(A)),w(A)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return u(A);if(0===a.length){if(y(A)){var s=A.name?": "+A.name:"";return e.stylize("[Function"+s+"]","special")}if(b(A))return e.stylize(RegExp.prototype.toString.call(A),"regexp");if(C(A))return e.stylize(Date.prototype.toString.call(A),"date");if(w(A))return u(A)}var l,B="",x=!1,F=["{","}"];(d(A)&&(x=!0,F=["[","]"]),y(A))&&(B=" [Function"+(A.name?": "+A.name:"")+"]");return b(A)&&(B=" "+RegExp.prototype.toString.call(A)),C(A)&&(B=" "+Date.prototype.toUTCString.call(A)),w(A)&&(B=" "+u(A)),0!==a.length||x&&0!=A.length?n<0?b(A)?e.stylize(RegExp.prototype.toString.call(A),"regexp"):e.stylize("[Object]","special"):(e.seen.push(A),l=x?function(e,t,A,n,i){for(var r=[],a=0,o=t.length;a<o;++a)Q(t,String(a))?r.push(h(e,t,A,n,String(a),!0)):r.push("");return i.forEach((function(i){i.match(/^\d+$/)||r.push(h(e,t,A,n,i,!0))})),r}(e,A,n,o,a):a.map((function(t){return h(e,A,n,o,t,x)})),e.seen.pop(),function(e,t,A){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return A[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+A[1];return A[0]+t+" "+e.join(", ")+" "+A[1]}(l,B,F)):F[0]+B+F[1]}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,A,n,i,r){var a,o,s;if((s=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?o=s.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):s.set&&(o=e.stylize("[Setter]","special")),Q(n,i)||(a="["+i+"]"),o||(e.seen.indexOf(s.value)<0?(o=p(A)?c(e,s.value,null):c(e,s.value,A-1)).indexOf("\n")>-1&&(o=r?o.split("\n").map((function(e){return"  "+e})).join("\n").substr(2):"\n"+o.split("\n").map((function(e){return"   "+e})).join("\n")):o=e.stylize("[Circular]","special")),v(a)){if(r&&i.match(/^\d+$/))return o;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+o}function d(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function p(e){return null===e}function f(e){return"number"==typeof e}function m(e){return"string"==typeof e}function v(e){return void 0===e}function b(e){return B(e)&&"[object RegExp]"===x(e)}function B(e){return"object"==typeof e&&null!==e}function C(e){return B(e)&&"[object Date]"===x(e)}function w(e){return B(e)&&("[object Error]"===x(e)||e instanceof Error)}function y(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function F(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(A){if(v(r)&&(r=e.env.NODE_DEBUG||""),A=A.toUpperCase(),!a[A])if(new RegExp("\\b"+A+"\\b","i").test(r)){var n=e.pid;a[A]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",A,n,e)}}else a[A]=function(){};return a[A]},t.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=g,t.isNull=p,t.isNullOrUndefined=function(e){return null==e},t.isNumber=f,t.isString=m,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=b,t.isObject=B,t.isDate=C,t.isError=w,t.isFunction=y,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=A(1288);var E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(){var e=new Date,t=[F(e.getHours()),F(e.getMinutes()),F(e.getSeconds())].join(":");return[e.getDate(),E[e.getMonth()],t].join(" ")}function Q(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",S(),t.format.apply(t,arguments))},t.inherits=A(1289),t._extend=function(e,t){if(!t||!B(t))return e;for(var A=Object.keys(t),n=A.length;n--;)e[A[n]]=t[A[n]];return e};var k="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):undefined;function L(e,t){if(!e){var A=new Error("Promise was rejected with a falsy value");A.reason=e,e=A}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(k&&e[k]){var t;if("function"!=typeof(t=e[k]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,k,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,A,n=new Promise((function(e,n){t=e,A=n})),i=[],r=0;r<arguments.length;r++)i.push(arguments[r]);i.push((function(e,n){e?A(e):t(n)}));try{e.apply(this,i)}catch(a){A(a)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),k&&Object.defineProperty(t,k,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=k,t.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function A(){for(var A=[],n=0;n<arguments.length;n++)A.push(arguments[n]);var i=A.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var r=this,a=function(){return i.apply(r,arguments)};t.apply(this,A).then((function(t){e.nextTick(a,null,t)}),(function(t){e.nextTick(L,t,a)}))}return Object.setPrototypeOf(A,Object.getPrototypeOf(t)),Object.defineProperties(A,n(t)),A}}).call(this,A(247))},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var A=function(){};A.prototype=t.prototype,e.prototype=new A,e.prototype.constructor=e}},,,,,,,,,,,,,,,,,,,function(e,t,A){
/*!
 * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 */
e.exports=function(){"use strict";
/*! *****************************************************************************
  Copyright (c) Microsoft Corporation.
    Permission to use, copy, modify, and/or distribute this software for any
  purpose with or without fee is hereby granted.
    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  PERFORMANCE OF THIS SOFTWARE.
  ***************************************************************************** */var e=function(t,A){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var A in t)Object.prototype.hasOwnProperty.call(t,A)&&(e[A]=t[A])})(t,A)};function t(t,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function n(){this.constructor=t}e(t,A),t.prototype=null===A?Object.create(A):(n.prototype=A.prototype,new n)}var A=function(){return(A=Object.assign||function(e){for(var t,A=1,n=arguments.length;A<n;A++)for(var i in t=arguments[A])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function n(e,t,A,n){return new(A||(A=Promise))((function(i,r){function a(e){try{s(n.next(e))}catch(re){r(re)}}function o(e){try{s(n["throw"](e))}catch(re){r(re)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof A?t:new A((function(e){e(t)}))).then(a,o)}s((n=n.apply(e,t||[])).next())}))}function i(e,t){var A,n,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:o(0),"throw":o(1),"return":o(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function o(r){return function(o){return function(r){if(A)throw new TypeError("Generator is already executing.");for(;a;)try{if(A=1,n&&(i=2&r[0]?n["return"]:r[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,n=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(re){r=[6,re],n=0}finally{A=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,o])}}}function r(e,t,A){if(A||2===arguments.length)for(var n,i=0,r=t.length;i<r;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||t)}for(var a=function(){function e(e,t,A,n){this.left=e,this.top=t,this.width=A,this.height=n}return e.prototype.add=function(t,A,n,i){return new e(this.left+t,this.top+A,this.width+n,this.height+i)},e.fromClientRect=function(t,A){return new e(A.left+t.windowBounds.left,A.top+t.windowBounds.top,A.width,A.height)},e.fromDOMRectList=function(t,A){var n=Array.from(A).find((function(e){return 0!==e.width}));return n?new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),o=function(e,t){return a.fromClientRect(e,t.getBoundingClientRect())},s=function(e){for(var t=[],A=0,n=e.length;A<n;){var i=e.charCodeAt(A++);if(i>=55296&&i<=56319&&A<n){var r=e.charCodeAt(A++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),A--)}else t.push(i)}return t},l=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var A=e.length;if(!A)return"";for(var n=[],i=-1,r="";++i<A;){var a=e[i];a<=65535?n.push(a):(a-=65536,n.push(55296+(a>>10),a%1024+56320)),(i+1===A||n.length>16384)&&(r+=String.fromCharCode.apply(String,n),n.length=0)}return r},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256),h=0;h<c.length;h++)u[c.charCodeAt(h)]=h;for(var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g="undefined"==typeof Uint8Array?[]:new Uint8Array(256),p=0;p<d.length;p++)g[d.charCodeAt(p)]=p;for(var f=function(e,t,A){return e.slice?e.slice(t,A):new Uint16Array(Array.prototype.slice.call(e,t,A))},m=function(){function e(e,t,A,n,i,r){this.initialValue=e,this.errorValue=t,this.highStart=A,this.highValueIndex=n,this.index=i,this.data=r}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e<this.highStart)return t=2080+(e>>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b="undefined"==typeof Uint8Array?[]:new Uint8Array(256),B=0;B<v.length;B++)b[v.charCodeAt(B)]=B;var C=10,w=13,y=15,x=17,F=18,E=19,S=20,Q=21,k=22,L=24,U=25,I=26,T=27,N=28,D=30,P=32,M=33,O=34,H=35,_=37,R=38,V=39,G=40,K=42,z=[9001,65288],W=function(e,t){var A,n,i,r=function(e){var t,A,n,i,r,a=.75*e.length,o=e.length,s=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint8Array.prototype.slice?new ArrayBuffer(a):new Array(a),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t<o;t+=4)A=g[e.charCodeAt(t)],n=g[e.charCodeAt(t+1)],i=g[e.charCodeAt(t+2)],r=g[e.charCodeAt(t+3)],c[s++]=A<<2|n>>4,c[s++]=(15&n)<<4|i>>2,c[s++]=(3&i)<<6|63&r;return l}(e),a=Array.isArray(r)?function(e){for(var t=e.length,A=[],n=0;n<t;n+=4)A.push(e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]);return A}(r):new Uint32Array(r),o=Array.isArray(r)?function(e){for(var t=e.length,A=[],n=0;n<t;n+=2)A.push(e[n+1]<<8|e[n]);return A}(r):new Uint16Array(r),s=f(o,12,a[4]/2),l=2===a[5]?f(o,(24+a[4])/2):(A=a,n=Math.ceil((24+a[4])/4),A.slice?A.slice(n,i):new Uint32Array(Array.prototype.slice.call(A,n,i)));return new m(a[0],a[1],a[2],a[3],s,l)}(" "),j=[D,36],X=[1,2,3,5],Y=[C,8],J=[T,I],q=X.concat(Y),Z=[R,V,G,O,H],$=[y,w],ee=function(e,t,A,n){var i=n[A];if(Array.isArray(e)?-1!==e.indexOf(i):e===i)for(var r=A;r<=n.length;){if((s=n[++r])===t)return!0;if(s!==C)break}if(i===C)for(r=A;r>0;){var a=n[--r];if(Array.isArray(e)?-1!==e.indexOf(a):e===a)for(var o=A;o<=n.length;){var s;if((s=n[++o])===t)return!0;if(s!==C)break}if(a!==C)break}return!1},te=function(e,t){for(var A=e;A>=0;){var n=t[A];if(n!==C)return n;A--}return 0},Ae=function(e,t,A,n,i){if(0===A[n])return"×";var r=n-1;if(Array.isArray(i)&&!0===i[r])return"×";var a=r-1,o=r+1,s=t[r],l=a>=0?t[a]:0,c=t[o];if(2===s&&3===c)return"×";if(-1!==X.indexOf(s))return"!";if(-1!==X.indexOf(c))return"×";if(-1!==Y.indexOf(c))return"×";if(8===te(r,t))return"÷";if(11===W.get(e[r]))return"×";if((s===P||s===M)&&11===W.get(e[o]))return"×";if(7===s||7===c)return"×";if(9===s)return"×";if(-1===[C,w,y].indexOf(s)&&9===c)return"×";if(-1!==[x,F,E,L,N].indexOf(c))return"×";if(te(r,t)===k)return"×";if(ee(23,k,r,t))return"×";if(ee([x,F],Q,r,t))return"×";if(ee(12,12,r,t))return"×";if(s===C)return"÷";if(23===s||23===c)return"×";if(16===c||16===s)return"÷";if(-1!==[w,y,Q].indexOf(c)||14===s)return"×";if(36===l&&-1!==$.indexOf(s))return"×";if(s===N&&36===c)return"×";if(c===S)return"×";if(-1!==j.indexOf(c)&&s===U||-1!==j.indexOf(s)&&c===U)return"×";if(s===T&&-1!==[_,P,M].indexOf(c)||-1!==[_,P,M].indexOf(s)&&c===I)return"×";if(-1!==j.indexOf(s)&&-1!==J.indexOf(c)||-1!==J.indexOf(s)&&-1!==j.indexOf(c))return"×";if(-1!==[T,I].indexOf(s)&&(c===U||-1!==[k,y].indexOf(c)&&t[o+1]===U)||-1!==[k,y].indexOf(s)&&c===U||s===U&&-1!==[U,N,L].indexOf(c))return"×";if(-1!==[U,N,L,x,F].indexOf(c))for(var u=r;u>=0;){if((h=t[u])===U)return"×";if(-1===[N,L].indexOf(h))break;u--}if(-1!==[T,I].indexOf(c))for(u=-1!==[x,F].indexOf(s)?a:r;u>=0;){var h;if((h=t[u])===U)return"×";if(-1===[N,L].indexOf(h))break;u--}if(R===s&&-1!==[R,V,O,H].indexOf(c)||-1!==[V,O].indexOf(s)&&-1!==[V,G].indexOf(c)||-1!==[G,H].indexOf(s)&&c===G)return"×";if(-1!==Z.indexOf(s)&&-1!==[S,I].indexOf(c)||-1!==Z.indexOf(c)&&s===T)return"×";if(-1!==j.indexOf(s)&&-1!==j.indexOf(c))return"×";if(s===L&&-1!==j.indexOf(c))return"×";if(-1!==j.concat(U).indexOf(s)&&c===k&&-1===z.indexOf(e[o])||-1!==j.concat(U).indexOf(c)&&s===F)return"×";if(41===s&&41===c){for(var d=A[r],g=1;d>0&&41===t[--d];)g++;if(g%2!=0)return"×"}return s===P&&c===M?"×":"÷"},ne=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var A=function(e,t){void 0===t&&(t="strict");var A=[],n=[],i=[];return e.forEach((function(e,r){var a=W.get(e);if(a>50?(i.push(!0),a-=50):i.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return n.push(r),A.push(16);if(4===a||11===a){if(0===r)return n.push(r),A.push(D);var o=A[r-1];return-1===q.indexOf(o)?(n.push(n[r-1]),A.push(o)):(n.push(r),A.push(D))}return n.push(r),31===a?A.push("strict"===t?Q:_):a===K||29===a?A.push(D):43===a?e>=131072&&e<=196605||e>=196608&&e<=262141?A.push(_):A.push(D):void A.push(a)})),[n,A,i]}(e,t.lineBreak),n=A[0],i=A[1],r=A[2];return"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(i=i.map((function(e){return-1!==[U,D,K].indexOf(e)?_:e}))),[n,i,"keep-all"===t.wordBreak?r.map((function(t,A){return t&&e[A]>=19968&&e[A]<=40959})):undefined]},ie=function(){function e(e,t,A,n){this.codePoints=e,this.required="!"===t,this.start=A,this.end=n}return e.prototype.slice=function(){return l.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),re=101,ae=function(e){return e>=48&&e<=57},oe=function(e){return ae(e)||e>=65&&e<=70||e>=97&&e<=102},se=function(e){return 10===e||9===e||32===e},le=function(e){return function(e){return function(e){return e>=97&&e<=122}(e)||function(e){return e>=65&&e<=90}(e)}(e)||function(e){return e>=128}(e)||95===e},ce=function(e){return le(e)||ae(e)||45===e},ue=function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e},he=function(e,t){return 92===e&&10!==t},de=function(e,t,A){return 45===e?le(t)||he(t,A):!!le(e)||!(92!==e||!he(e,t))},ge=function(e,t,A){return 43===e||45===e?!!ae(t)||46===t&&ae(A):ae(46===e?t:e)},pe=function(e){var t=0,A=1;43!==e[t]&&45!==e[t]||(45===e[t]&&(A=-1),t++);for(var n=[];ae(e[t]);)n.push(e[t++]);var i=n.length?parseInt(l.apply(void 0,n),10):0;46===e[t]&&t++;for(var r=[];ae(e[t]);)r.push(e[t++]);var a=r.length,o=a?parseInt(l.apply(void 0,r),10):0;69!==e[t]&&e[t]!==re||t++;var s=1;43!==e[t]&&45!==e[t]||(45===e[t]&&(s=-1),t++);for(var c=[];ae(e[t]);)c.push(e[t++]);var u=c.length?parseInt(l.apply(void 0,c),10):0;return A*(i+o*Math.pow(10,-a))*Math.pow(10,s*u)},fe={type:2},me={type:3},ve={type:4},be={type:13},Be={type:8},Ce={type:21},we={type:9},ye={type:10},xe={type:11},Fe={type:12},Ee={type:14},Se={type:23},Qe={type:1},ke={type:25},Le={type:24},Ue={type:26},Ie={type:27},Te={type:28},Ne={type:29},De={type:31},Pe={type:32},Me=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(s(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Pe;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),A=this.peekCodePoint(1),n=this.peekCodePoint(2);if(ce(t)||he(A,n)){var i=de(t,A,n)?2:1;return{type:5,value:this.consumeName(),flags:i}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),be;break;case 39:return this.consumeStringToken(39);case 40:return fe;case 41:return me;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ee;break;case 43:if(ge(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return ve;case 45:var r=e,a=this.peekCodePoint(0),o=this.peekCodePoint(1);if(ge(r,a,o))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(de(r,a,o))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(45===a&&62===o)return this.consumeCodePoint(),this.consumeCodePoint(),Le;break;case 46:if(ge(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var s=this.consumeCodePoint();if(42===s&&47===(s=this.consumeCodePoint()))return this.consumeToken();if(-1===s)return this.consumeToken()}break;case 58:return Ue;case 59:return Ie;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),ke;break;case 64:var c=this.peekCodePoint(0),u=this.peekCodePoint(1),h=this.peekCodePoint(2);if(de(c,u,h))return{type:7,value:this.consumeName()};break;case 91:return Te;case 92:if(he(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return Ne;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Be;break;case 123:return xe;case 125:return Fe;case 117:case 85:var d=this.peekCodePoint(0),g=this.peekCodePoint(1);return 43!==d||!oe(g)&&63!==g||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),we;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),Ce;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ye;break;case-1:return Pe}return se(e)?(this.consumeWhiteSpace(),De):ae(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):le(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:l(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();oe(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var A=!1;63===t&&e.length<6;)e.push(t),t=this.consumeCodePoint(),A=!0;if(A)return{type:30,start:parseInt(l.apply(void 0,e.map((function(e){return 63===e?48:e}))),16),end:parseInt(l.apply(void 0,e.map((function(e){return 63===e?70:e}))),16)};var n=parseInt(l.apply(void 0,e),16);if(45===this.peekCodePoint(0)&&oe(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var i=[];oe(t)&&i.length<6;)i.push(t),t=this.consumeCodePoint();return{type:30,start:n,end:parseInt(l.apply(void 0,i),16)}}return{type:30,start:n,end:n}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var A=this.consumeStringToken(this.consumeCodePoint());return 0===A.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:A.value}):(this.consumeBadUrlRemnants(),Se)}for(;;){var n=this.consumeCodePoint();if(-1===n||41===n)return{type:22,value:l.apply(void 0,e)};if(se(n))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:l.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Se);if(34===n||39===n||40===n||ue(n))return this.consumeBadUrlRemnants(),Se;if(92===n){if(!he(n,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Se;e.push(this.consumeEscapedCodePoint())}else e.push(n)}},e.prototype.consumeWhiteSpace=function(){for(;se(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(41===e||-1===e)return;he(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t="";e>0;){var A=Math.min(5e4,e);t+=l.apply(void 0,this._value.splice(0,A)),e-=A}return this._value.shift(),t},e.prototype.consumeStringToken=function(e){for(var t="",A=0;;){var n=this._value[A];if(-1===n||n===undefined||n===e)return{type:0,value:t+=this.consumeStringSlice(A)};if(10===n)return this._value.splice(0,A),Qe;if(92===n){var i=this._value[A+1];-1!==i&&i!==undefined&&(10===i?(t+=this.consumeStringSlice(A),A=-1,this._value.shift()):he(n,i)&&(t+=this.consumeStringSlice(A),t+=l(this.consumeEscapedCodePoint()),A=-1))}A++}},e.prototype.consumeNumber=function(){var e=[],t=4,A=this.peekCodePoint(0);for(43!==A&&45!==A||e.push(this.consumeCodePoint());ae(this.peekCodePoint(0));)e.push(this.consumeCodePoint());A=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(46===A&&ae(n))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;ae(this.peekCodePoint(0));)e.push(this.consumeCodePoint());A=this.peekCodePoint(0),n=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((69===A||A===re)&&((43===n||45===n)&&ae(i)||ae(n)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;ae(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[pe(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],A=e[1],n=this.peekCodePoint(0),i=this.peekCodePoint(1),r=this.peekCodePoint(2);return de(n,i,r)?{type:15,number:t,flags:A,unit:this.consumeName()}:37===n?(this.consumeCodePoint(),{type:16,number:t,flags:A}):{type:17,number:t,flags:A}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(oe(e)){for(var t=l(e);oe(this.peekCodePoint(0))&&t.length<6;)t+=l(this.consumeCodePoint());se(this.peekCodePoint(0))&&this.consumeCodePoint();var A=parseInt(t,16);return 0===A||function(e){return e>=55296&&e<=57343}(A)||A>1114111?65533:A}return-1===e?65533:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(ce(t))e+=l(t);else{if(!he(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=l(this.consumeEscapedCodePoint())}}},e}(),Oe=function(){function e(e){this._tokens=e}return e.create=function(t){var A=new Me;return A.write(t),new e(A.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();31===e.type;)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},A=this.consumeToken();;){if(32===A.type||je(A,e))return t;this.reconsumeToken(A),t.values.push(this.consumeComponentValue()),A=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var A=this.consumeToken();if(32===A.type||3===A.type)return t;this.reconsumeToken(A),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?Pe:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),He=function(e){return 15===e.type},_e=function(e){return 17===e.type},Re=function(e){return 20===e.type},Ve=function(e){return 0===e.type},Ge=function(e,t){return Re(e)&&e.value===t},Ke=function(e){return 31!==e.type},ze=function(e){return 31!==e.type&&4!==e.type},We=function(e){var t=[],A=[];return e.forEach((function(e){if(4===e.type){if(0===A.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(A),void(A=[])}31!==e.type&&A.push(e)})),A.length&&t.push(A),t},je=function(e,t){return 11===t&&12===e.type||28===t&&29===e.type||2===t&&3===e.type},Xe=function(e){return 17===e.type||15===e.type},Ye=function(e){return 16===e.type||Xe(e)},Je=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},qe={type:17,number:0,flags:4},Ze={type:16,number:50,flags:4},$e={type:16,number:100,flags:4},et=function(e,t,A){var n=e[0],i=e[1];return[tt(n,t),tt(void 0!==i?i:n,A)]},tt=function(e,t){if(16===e.type)return e.number/100*t;if(He(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},At=function(e,t){if(15===t.type)switch(t.unit){case"deg":return Math.PI*t.number/180;case"grad":return Math.PI/200*t.number;case"rad":return t.number;case"turn":return 2*Math.PI*t.number}throw new Error("Unsupported angle type")},nt=function(e){return 15===e.type&&("deg"===e.unit||"grad"===e.unit||"rad"===e.unit||"turn"===e.unit)},it=function(e){switch(e.filter(Re).map((function(e){return e.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[qe,qe];case"to top":case"bottom":return rt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[qe,$e];case"to right":case"left":return rt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[$e,$e];case"to bottom":case"top":return rt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[$e,qe];case"to left":case"right":return rt(270)}return 0},rt=function(e){return Math.PI*e/180},at=function(e,t){if(18===t.type){var A=pt[t.name];if(void 0===A)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return A(e,t.values)}if(5===t.type){if(3===t.value.length){var n=t.value.substring(0,1),i=t.value.substring(1,2),r=t.value.substring(2,3);return lt(parseInt(n+n,16),parseInt(i+i,16),parseInt(r+r,16),1)}if(4===t.value.length){n=t.value.substring(0,1),i=t.value.substring(1,2),r=t.value.substring(2,3);var a=t.value.substring(3,4);return lt(parseInt(n+n,16),parseInt(i+i,16),parseInt(r+r,16),parseInt(a+a,16)/255)}if(6===t.value.length)return n=t.value.substring(0,2),i=t.value.substring(2,4),r=t.value.substring(4,6),lt(parseInt(n,16),parseInt(i,16),parseInt(r,16),1);if(8===t.value.length)return n=t.value.substring(0,2),i=t.value.substring(2,4),r=t.value.substring(4,6),a=t.value.substring(6,8),lt(parseInt(n,16),parseInt(i,16),parseInt(r,16),parseInt(a,16)/255)}if(20===t.type){var o=mt[t.value.toUpperCase()];if(void 0!==o)return o}return mt.TRANSPARENT},ot=function(e){return 0==(255&e)},st=function(e){var t=255&e,A=255&e>>8,n=255&e>>16,i=255&e>>24;return t<255?"rgba("+i+","+n+","+A+","+t/255+")":"rgb("+i+","+n+","+A+")"},lt=function(e,t,A,n){return(e<<24|t<<16|A<<8|Math.round(255*n)<<0)>>>0},ct=function(e,t){if(17===e.type)return e.number;if(16===e.type){var A=3===t?1:255;return 3===t?e.number/100*A:Math.round(e.number/100*A)}return 0},ut=function(e,t){var A=t.filter(ze);if(3===A.length){var n=A.map(ct),i=n[0],r=n[1],a=n[2];return lt(i,r,a,1)}if(4===A.length){var o=A.map(ct),s=(i=o[0],r=o[1],a=o[2],o[3]);return lt(i,r,a,s)}return 0};function ht(e,t,A){return A<0&&(A+=1),A>=1&&(A-=1),A<1/6?(t-e)*A*6+e:A<.5?t:A<2/3?6*(t-e)*(2/3-A)+e:e}var dt,gt=function(e,t){var A=t.filter(ze),n=A[0],i=A[1],r=A[2],a=A[3],o=(17===n.type?rt(n.number):At(e,n))/(2*Math.PI),s=Ye(i)?i.number/100:0,l=Ye(r)?r.number/100:0,c=void 0!==a&&Ye(a)?tt(a,1):1;if(0===s)return lt(255*l,255*l,255*l,1);var u=l<=.5?l*(s+1):l+s-l*s,h=2*l-u,d=ht(h,u,o+1/3),g=ht(h,u,o),p=ht(h,u,o-1/3);return lt(255*d,255*g,255*p,c)},pt={hsl:gt,hsla:gt,rgb:ut,rgba:ut},ft=function(e,t){return at(e,Oe.create(t).parseComponentValue())},mt={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},vt={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(Re(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},bt={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Bt=function(e,t){var A=at(e,t[0]),n=t[1];return n&&Ye(n)?{color:A,stop:n}:{color:A,stop:null}},Ct=function(e,t){var A=e[0],n=e[e.length-1];null===A.stop&&(A.stop=qe),null===n.stop&&(n.stop=$e);for(var i=[],r=0,a=0;a<e.length;a++){var o=e[a].stop;if(null!==o){var s=tt(o,t);s>r?i.push(s):i.push(r),r=s}else i.push(null)}var l=null;for(a=0;a<i.length;a++){var c=i[a];if(null===c)null===l&&(l=a);else if(null!==l){for(var u=a-l,h=(c-i[l-1])/(u+1),d=1;d<=u;d++)i[l+d-1]=h*d;l=null}}return e.map((function(e,A){return{color:e.color,stop:Math.max(Math.min(1,i[A]/t),0)}}))},wt=function(e,t,A){var n="number"==typeof e?e:function(e,t,A){var n=t/2,i=A/2,r=tt(e[0],t)-n,a=i-tt(e[1],A);return(Math.atan2(a,r)+2*Math.PI)%(2*Math.PI)}(e,t,A),i=Math.abs(t*Math.sin(n))+Math.abs(A*Math.cos(n)),r=t/2,a=A/2,o=i/2,s=Math.sin(n-Math.PI/2)*o,l=Math.cos(n-Math.PI/2)*o;return[i,r-l,r+l,a-s,a+s]},yt=function(e,t){return Math.sqrt(e*e+t*t)},xt=function(e,t,A,n,i){return[[0,0],[0,t],[e,0],[e,t]].reduce((function(e,t){var r=t[0],a=t[1],o=yt(A-r,n-a);return(i?o<e.optimumDistance:o>e.optimumDistance)?{optimumCorner:t,optimumDistance:o}:e}),{optimumDistance:i?Infinity:-Infinity,optimumCorner:null}).optimumCorner},Ft=function(e,t){var A=rt(180),n=[];return We(t).forEach((function(t,i){if(0===i){var r=t[0];if(20===r.type&&-1!==["top","left","right","bottom"].indexOf(r.value))return void(A=it(t));if(nt(r))return void(A=(At(e,r)+rt(270))%rt(360))}var a=Bt(e,t);n.push(a)})),{angle:A,stops:n,type:1}},Et=function(e,t){var A=0,n=3,i=[],r=[];return We(t).forEach((function(t,a){var o=!0;if(0===a?o=t.reduce((function(e,t){if(Re(t))switch(t.value){case"center":return r.push(Ze),!1;case"top":case"left":return r.push(qe),!1;case"right":case"bottom":return r.push($e),!1}else if(Ye(t)||Xe(t))return r.push(t),!1;return e}),o):1===a&&(o=t.reduce((function(e,t){if(Re(t))switch(t.value){case"circle":return A=0,!1;case"ellipse":return A=1,!1;case"contain":case"closest-side":return n=0,!1;case"farthest-side":return n=1,!1;case"closest-corner":return n=2,!1;case"cover":case"farthest-corner":return n=3,!1}else if(Xe(t)||Ye(t))return Array.isArray(n)||(n=[]),n.push(t),!1;return e}),o)),o){var s=Bt(e,t);i.push(s)}})),{size:n,shape:A,stops:i,position:r,type:2}},St=function(e,t){if(22===t.type){var A={url:t.value,type:0};return e.cache.addImage(t.value),A}if(18===t.type){var n=Qt[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return n(e,t.values)}throw new Error("Unsupported image type "+t.type)},Qt={"linear-gradient":function(e,t){var A=rt(180),n=[];return We(t).forEach((function(t,i){if(0===i){var r=t[0];if(20===r.type&&"to"===r.value)return void(A=it(t));if(nt(r))return void(A=At(e,r))}var a=Bt(e,t);n.push(a)})),{angle:A,stops:n,type:1}},"-moz-linear-gradient":Ft,"-ms-linear-gradient":Ft,"-o-linear-gradient":Ft,"-webkit-linear-gradient":Ft,"radial-gradient":function(e,t){var A=0,n=3,i=[],r=[];return We(t).forEach((function(t,a){var o=!0;if(0===a){var s=!1;o=t.reduce((function(e,t){if(s)if(Re(t))switch(t.value){case"center":return r.push(Ze),e;case"top":case"left":return r.push(qe),e;case"right":case"bottom":return r.push($e),e}else(Ye(t)||Xe(t))&&r.push(t);else if(Re(t))switch(t.value){case"circle":return A=0,!1;case"ellipse":return A=1,!1;case"at":return s=!0,!1;case"closest-side":return n=0,!1;case"cover":case"farthest-side":return n=1,!1;case"contain":case"closest-corner":return n=2,!1;case"farthest-corner":return n=3,!1}else if(Xe(t)||Ye(t))return Array.isArray(n)||(n=[]),n.push(t),!1;return e}),o)}if(o){var l=Bt(e,t);i.push(l)}})),{size:n,shape:A,stops:i,position:r,type:2}},"-moz-radial-gradient":Et,"-ms-radial-gradient":Et,"-o-radial-gradient":Et,"-webkit-radial-gradient":Et,"-webkit-gradient":function(e,t){var A=rt(180),n=[],i=1;return We(t).forEach((function(t,A){var r=t[0];if(0===A){if(Re(r)&&"linear"===r.value)return void(i=1);if(Re(r)&&"radial"===r.value)return void(i=2)}if(18===r.type)if("from"===r.name){var a=at(e,r.values[0]);n.push({stop:qe,color:a})}else if("to"===r.name)a=at(e,r.values[0]),n.push({stop:$e,color:a});else if("color-stop"===r.name){var o=r.values.filter(ze);if(2===o.length){a=at(e,o[1]);var s=o[0];_e(s)&&n.push({stop:{type:16,number:100*s.number,flags:s.flags},color:a})}}})),1===i?{angle:(A+rt(180))%rt(360),stops:n,type:i}:{size:3,shape:0,stops:n,position:[],type:i}}},kt={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var A=t[0];return 20===A.type&&"none"===A.value?[]:t.filter((function(e){return ze(e)&&function(e){return!(20===e.type&&"none"===e.value||18===e.type&&!Qt[e.name])}(e)})).map((function(t){return St(e,t)}))}},Lt={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(Re(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Ut={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return We(t).map((function(e){return e.filter(Ye)})).map(Je)}},It={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return We(t).map((function(e){return e.filter(Re).map((function(e){return e.value})).join(" ")})).map(Tt)}},Tt=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}};!function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(dt||(dt={}));var Nt,Dt={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return We(t).map((function(e){return e.filter(Pt)}))}},Pt=function(e){return Re(e)||Ye(e)},Mt=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Ot=Mt("top"),Ht=Mt("right"),_t=Mt("bottom"),Rt=Mt("left"),Vt=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return Je(t.filter(Ye))}}},Gt=Vt("top-left"),Kt=Vt("top-right"),zt=Vt("bottom-right"),Wt=Vt("bottom-left"),jt=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Xt=jt("top"),Yt=jt("right"),Jt=jt("bottom"),qt=jt("left"),Zt=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return He(t)?t.number:0}}},$t=Zt("top"),eA=Zt("right"),tA=Zt("bottom"),AA=Zt("left"),nA={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},iA={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},rA={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Re).reduce((function(e,t){return e|aA(t.value)}),0)}},aA=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},oA={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},sA={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};!function(e){e.NORMAL="normal",e.STRICT="strict"}(Nt||(Nt={}));var lA,cA={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return Nt.STRICT;case"normal":default:return Nt.NORMAL}}},uA={name:"line-height",initialValue:"normal",prefix:!1,type:4},hA=function(e,t){return Re(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:Ye(e)?tt(e,t):t},dA={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:St(e,t)}},gA={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},pA={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},fA=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},mA=fA("top"),vA=fA("right"),bA=fA("bottom"),BA=fA("left"),CA={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Re).map((function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}}))}},wA={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},yA=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},xA=yA("top"),FA=yA("right"),EA=yA("bottom"),SA=yA("left"),QA={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},kA={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},LA={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Ge(t[0],"none")?[]:We(t).map((function(t){for(var A={color:mt.TRANSPARENT,offsetX:qe,offsetY:qe,blur:qe},n=0,i=0;i<t.length;i++){var r=t[i];Xe(r)?(0===n?A.offsetX=r:1===n?A.offsetY=r:A.blur=r,n++):A.color=at(e,r)}return A}))}},UA={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},IA={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(20===t.type&&"none"===t.value)return null;if(18===t.type){var A=TA[t.name];if(void 0===A)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return A(t.values)}return null}},TA={matrix:function(e){var t=e.filter((function(e){return 17===e.type})).map((function(e){return e.number}));return 6===t.length?t:null},matrix3d:function(e){var t=e.filter((function(e){return 17===e.type})).map((function(e){return e.number})),A=t[0],n=t[1];t[2],t[3];var i=t[4],r=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var a=t[12],o=t[13];return t[14],t[15],16===t.length?[A,n,i,r,a,o]:null}},NA={type:16,number:50,flags:4},DA=[NA,NA],PA={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var A=t.filter(Ye);return 2!==A.length?DA:[A[0],A[1]]}},MA={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}};!function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"}(lA||(lA={}));for(var OA={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return lA.BREAK_ALL;case"keep-all":return lA.KEEP_ALL;case"normal":default:return lA.NORMAL}}},HA={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(20===t.type)return{auto:!0,order:0};if(_e(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},_A=function(e,t){if(15===t.type)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")},RA={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return _e(t)?t.number:1}},VA={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},GA={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(Re).map((function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(e){return 0!==e}))}},KA={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var A=[],n=[];return t.forEach((function(e){switch(e.type){case 20:case 0:A.push(e.value);break;case 17:A.push(e.number.toString());break;case 4:n.push(A.join(" ")),A.length=0}})),A.length&&n.push(A.join(" ")),n.map((function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"}))}},zA={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},WA={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(_e(t))return t.number;if(Re(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},jA={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(Re).map((function(e){return e.value}))}},XA={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},YA=function(e,t){return 0!=(e&t)},JA={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var A=t[0];return 20===A.type&&"none"===A.value?[]:t}},qA={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var A=t[0];if(20===A.type&&"none"===A.value)return null;for(var n=[],i=t.filter(Ke),r=0;r<i.length;r++){var a=i[r],o=i[r+1];if(20===a.type){var s=o&&_e(o)?o.number:1;n.push({counter:a.value,increment:s})}}return n}},ZA={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return[];for(var A=[],n=t.filter(Ke),i=0;i<n.length;i++){var r=n[i],a=n[i+1];if(Re(r)&&"none"!==r.value){var o=a&&_e(a)?a.number:0;A.push({counter:r.value,reset:o})}}return A}},$A={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(He).map((function(t){return _A(e,t)}))}},en={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var A=t[0];if(20===A.type&&"none"===A.value)return null;var n=[],i=t.filter(Ve);if(i.length%2!=0)return null;for(var r=0;r<i.length;r+=2){var a=i[r].value,o=i[r+1].value;n.push({open:a,close:o})}return n}},tn=function(e,t,A){if(!e)return"";var n=e[Math.min(t,e.length-1)];return n?A?n.open:n.close:""},An={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Ge(t[0],"none")?[]:We(t).map((function(t){for(var A={color:255,offsetX:qe,offsetY:qe,blur:qe,spread:qe,inset:!1},n=0,i=0;i<t.length;i++){var r=t[i];Ge(r,"inset")?A.inset=!0:Xe(r)?(0===n?A.offsetX=r:1===n?A.offsetY=r:2===n?A.blur=r:A.spread=r,n++):A.color=at(e,r)}return A}))}},nn={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var A=[];return t.filter(Re).forEach((function(e){switch(e.value){case"stroke":A.push(1);break;case"fill":A.push(0);break;case"markers":A.push(2)}})),[0,1,2].forEach((function(e){-1===A.indexOf(e)&&A.push(e)})),A}},rn={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},an={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return He(t)?t.number:0}},on=function(){function e(e,t){var A,n;this.animationDuration=cn(e,$A,t.animationDuration),this.backgroundClip=cn(e,vt,t.backgroundClip),this.backgroundColor=cn(e,bt,t.backgroundColor),this.backgroundImage=cn(e,kt,t.backgroundImage),this.backgroundOrigin=cn(e,Lt,t.backgroundOrigin),this.backgroundPosition=cn(e,Ut,t.backgroundPosition),this.backgroundRepeat=cn(e,It,t.backgroundRepeat),this.backgroundSize=cn(e,Dt,t.backgroundSize),this.borderTopColor=cn(e,Ot,t.borderTopColor),this.borderRightColor=cn(e,Ht,t.borderRightColor),this.borderBottomColor=cn(e,_t,t.borderBottomColor),this.borderLeftColor=cn(e,Rt,t.borderLeftColor),this.borderTopLeftRadius=cn(e,Gt,t.borderTopLeftRadius),this.borderTopRightRadius=cn(e,Kt,t.borderTopRightRadius),this.borderBottomRightRadius=cn(e,zt,t.borderBottomRightRadius),this.borderBottomLeftRadius=cn(e,Wt,t.borderBottomLeftRadius),this.borderTopStyle=cn(e,Xt,t.borderTopStyle),this.borderRightStyle=cn(e,Yt,t.borderRightStyle),this.borderBottomStyle=cn(e,Jt,t.borderBottomStyle),this.borderLeftStyle=cn(e,qt,t.borderLeftStyle),this.borderTopWidth=cn(e,$t,t.borderTopWidth),this.borderRightWidth=cn(e,eA,t.borderRightWidth),this.borderBottomWidth=cn(e,tA,t.borderBottomWidth),this.borderLeftWidth=cn(e,AA,t.borderLeftWidth),this.boxShadow=cn(e,An,t.boxShadow),this.color=cn(e,nA,t.color),this.direction=cn(e,iA,t.direction),this.display=cn(e,rA,t.display),this.float=cn(e,oA,t.cssFloat),this.fontFamily=cn(e,KA,t.fontFamily),this.fontSize=cn(e,zA,t.fontSize),this.fontStyle=cn(e,XA,t.fontStyle),this.fontVariant=cn(e,jA,t.fontVariant),this.fontWeight=cn(e,WA,t.fontWeight),this.letterSpacing=cn(e,sA,t.letterSpacing),this.lineBreak=cn(e,cA,t.lineBreak),this.lineHeight=cn(e,uA,t.lineHeight),this.listStyleImage=cn(e,dA,t.listStyleImage),this.listStylePosition=cn(e,gA,t.listStylePosition),this.listStyleType=cn(e,pA,t.listStyleType),this.marginTop=cn(e,mA,t.marginTop),this.marginRight=cn(e,vA,t.marginRight),this.marginBottom=cn(e,bA,t.marginBottom),this.marginLeft=cn(e,BA,t.marginLeft),this.opacity=cn(e,RA,t.opacity);var i=cn(e,CA,t.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=cn(e,wA,t.overflowWrap),this.paddingTop=cn(e,xA,t.paddingTop),this.paddingRight=cn(e,FA,t.paddingRight),this.paddingBottom=cn(e,EA,t.paddingBottom),this.paddingLeft=cn(e,SA,t.paddingLeft),this.paintOrder=cn(e,nn,t.paintOrder),this.position=cn(e,kA,t.position),this.textAlign=cn(e,QA,t.textAlign),this.textDecorationColor=cn(e,VA,null!==(A=t.textDecorationColor)&&void 0!==A?A:t.color),this.textDecorationLine=cn(e,GA,null!==(n=t.textDecorationLine)&&void 0!==n?n:t.textDecoration),this.textShadow=cn(e,LA,t.textShadow),this.textTransform=cn(e,UA,t.textTransform),this.transform=cn(e,IA,t.transform),this.transformOrigin=cn(e,PA,t.transformOrigin),this.visibility=cn(e,MA,t.visibility),this.webkitTextStrokeColor=cn(e,rn,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=cn(e,an,t.webkitTextStrokeWidth),this.wordBreak=cn(e,OA,t.wordBreak),this.zIndex=cn(e,HA,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return ot(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return YA(this.display,4)||YA(this.display,33554432)||YA(this.display,268435456)||YA(this.display,536870912)||YA(this.display,67108864)||YA(this.display,134217728)},e}(),sn=function(e,t){this.content=cn(e,JA,t.content),this.quotes=cn(e,en,t.quotes)},ln=function(e,t){this.counterIncrement=cn(e,qA,t.counterIncrement),this.counterReset=cn(e,ZA,t.counterReset)},cn=function(e,t,A){var n=new Me,i=null!=A?A.toString():t.initialValue;n.write(i);var r=new Oe(n.read());switch(t.type){case 2:var a=r.parseComponentValue();return t.parse(e,Re(a)?a.value:t.initialValue);case 0:return t.parse(e,r.parseComponentValue());case 1:return t.parse(e,r.parseComponentValues());case 4:return r.parseComponentValue();case 3:switch(t.format){case"angle":return At(e,r.parseComponentValue());case"color":return at(e,r.parseComponentValue());case"image":return St(e,r.parseComponentValue());case"length":var o=r.parseComponentValue();return Xe(o)?o:qe;case"length-percentage":var s=r.parseComponentValue();return Ye(s)?s:qe;case"time":return _A(e,r.parseComponentValue())}}},un=function(e,t){var A=function(e){switch(e.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(e);return 1===A||t===A},hn=function(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,un(t,3),this.styles=new on(e,window.getComputedStyle(t,null)),ui(t)&&(this.styles.animationDuration.some((function(e){return e>0}))&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=o(this.context,t),un(t,4)&&(this.flags|=16)},dn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gn="undefined"==typeof Uint8Array?[]:new Uint8Array(256),pn=0;pn<dn.length;pn++)gn[dn.charCodeAt(pn)]=pn;for(var fn=function(e,t,A){return e.slice?e.slice(t,A):new Uint16Array(Array.prototype.slice.call(e,t,A))},mn=function(){function e(e,t,A,n,i,r){this.initialValue=e,this.errorValue=t,this.highStart=A,this.highValueIndex=n,this.index=i,this.data=r}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e<this.highStart)return t=2080+(e>>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),vn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bn="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Bn=0;Bn<vn.length;Bn++)bn[vn.charCodeAt(Bn)]=Bn;var Cn,wn=8,yn=9,xn=11,Fn=12,En=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var A=e.length;if(!A)return"";for(var n=[],i=-1,r="";++i<A;){var a=e[i];a<=65535?n.push(a):(a-=65536,n.push(55296+(a>>10),a%1024+56320)),(i+1===A||n.length>16384)&&(r+=String.fromCharCode.apply(String,n),n.length=0)}return r},Sn=function(e,t){var A,n,i,r=function(e){var t,A,n,i,r,a=.75*e.length,o=e.length,s=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint8Array.prototype.slice?new ArrayBuffer(a):new Array(a),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t<o;t+=4)A=gn[e.charCodeAt(t)],n=gn[e.charCodeAt(t+1)],i=gn[e.charCodeAt(t+2)],r=gn[e.charCodeAt(t+3)],c[s++]=A<<2|n>>4,c[s++]=(15&n)<<4|i>>2,c[s++]=(3&i)<<6|63&r;return l}(e),a=Array.isArray(r)?function(e){for(var t=e.length,A=[],n=0;n<t;n+=4)A.push(e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]);return A}(r):new Uint32Array(r),o=Array.isArray(r)?function(e){for(var t=e.length,A=[],n=0;n<t;n+=2)A.push(e[n+1]<<8|e[n]);return A}(r):new Uint16Array(r),s=fn(o,12,a[4]/2),l=2===a[5]?fn(o,(24+a[4])/2):(A=a,n=Math.ceil((24+a[4])/4),A.slice?A.slice(n,i):new Uint32Array(Array.prototype.slice.call(A,n,i)));return new mn(a[0],a[1],a[2],a[3],s,l)}(" "),Qn=function(e){return Sn.get(e)},kn=function(e,t,A){var n=A-2,i=t[n],r=t[A-1],a=t[A];if(2===r&&3===a)return"×";if(2===r||3===r||4===r)return"÷";if(2===a||3===a||4===a)return"÷";if(r===wn&&-1!==[wn,yn,xn,Fn].indexOf(a))return"×";if(!(r!==xn&&r!==yn||a!==yn&&10!==a))return"×";if((r===Fn||10===r)&&10===a)return"×";if(13===a||5===a)return"×";if(7===a)return"×";if(1===r)return"×";if(13===r&&14===a){for(;5===i;)i=t[--n];if(14===i)return"×"}if(15===r&&15===a){for(var o=0;15===i;)o++,i=t[--n];if(o%2==0)return"×"}return"÷"},Ln=function(e){var t=function(e){for(var t=[],A=0,n=e.length;A<n;){var i=e.charCodeAt(A++);if(i>=55296&&i<=56319&&A<n){var r=e.charCodeAt(A++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),A--)}else t.push(i)}return t}(e),A=t.length,n=0,i=0,r=t.map(Qn);return{next:function(){if(n>=A)return{done:!0,value:null};for(var e="×";n<A&&"×"===(e=kn(0,r,++n)););if("×"!==e||n===A){var a=En.apply(null,t.slice(i,n));return i=n,{value:a,done:!1}}return{done:!0,value:null}}}},Un=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},In=function(e,t,A,n,i){var r="http://www.w3.org/2000/svg",a=document.createElementNS(r,"svg"),o=document.createElementNS(r,"foreignObject");return a.setAttributeNS(null,"width",e.toString()),a.setAttributeNS(null,"height",t.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",A.toString()),o.setAttributeNS(null,"y",n.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(o),o.appendChild(i),a},Tn=function(e){return new Promise((function(t,A){var n=new Image;n.onload=function(){return t(n)},n.onerror=A,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},Nn={get SUPPORT_RANGE_BOUNDS(){var e=function(e){if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var A=e.createElement("boundtest");A.style.height="123px",A.style.display="block",e.body.appendChild(A),t.selectNode(A);var n=t.getBoundingClientRect(),i=Math.round(n.height);if(e.body.removeChild(A),123===i)return!0}}return!1}(document);return Object.defineProperty(Nn,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=Nn.SUPPORT_RANGE_BOUNDS&&function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var A=e.createRange();t.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var n=t.firstChild,i=s(n.data).map((function(e){return l(e)})),r=0,a={},o=i.every((function(e,t){A.setStart(n,r),A.setEnd(n,r+e.length);var i=A.getBoundingClientRect();r+=e.length;var o=i.x>a.x||i.y>a.y;return a=i,0===t||o}));return e.body.removeChild(t),o}(document);return Object.defineProperty(Nn,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=function(e){var t=new Image,A=e.createElement("canvas"),n=A.getContext("2d");if(!n)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(t,0,0),A.toDataURL()}catch(re){return!1}return!0}(document);return Object.defineProperty(Nn,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?function(e){var t=e.createElement("canvas");t.width=100,t.height=100;var A=t.getContext("2d");if(!A)return Promise.reject(!1);A.fillStyle="rgb(0, 255, 0)",A.fillRect(0,0,100,100);var n=new Image,i=t.toDataURL();n.src=i;var r=In(100,100,0,0,n);return A.fillStyle="red",A.fillRect(0,0,100,100),Tn(r).then((function(t){A.drawImage(t,0,0);var n=A.getImageData(0,0,100,100).data;A.fillStyle="red",A.fillRect(0,0,100,100);var r=e.createElement("div");return r.style.backgroundImage="url("+i+")",r.style.height="100px",Un(n)?Tn(In(100,100,0,0,r)):Promise.reject(!1)})).then((function(e){return A.drawImage(e,0,0),Un(A.getImageData(0,0,100,100).data)}))["catch"]((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(Nn,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e="undefined"!=typeof(new Image).crossOrigin;return Object.defineProperty(Nn,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Nn,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Nn,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Nn,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Dn=function(e,t){this.text=e,this.bounds=t},Pn=function(e,t){var A=t.ownerDocument;if(A){var n=A.createElement("html2canvaswrapper");n.appendChild(t.cloneNode(!0));var i=t.parentNode;if(i){i.replaceChild(n,t);var r=o(e,n);return n.firstChild&&i.replaceChild(n.firstChild,n),r}}return a.EMPTY},Mn=function(e,t,A){var n=e.ownerDocument;if(!n)throw new Error("Node has no owner document");var i=n.createRange();return i.setStart(e,t),i.setEnd(e,t+A),i},On=function(e){if(Nn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map((function(e){return e.segment}))}return function(e){for(var t,A=Ln(e),n=[];!(t=A.next()).done;)t.value&&n.push(t.value.slice());return n}(e)},Hn=function(e,t){return 0!==t.letterSpacing?On(e):function(e,t){if(Nn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(A.segment(e)).map((function(e){return e.segment}))}return Rn(e,t)}(e,t)},_n=[32,160,4961,65792,65793,4153,4241],Rn=function(e,t){for(var A,n=function(e,t){var A=s(e),n=ne(A,t),i=n[0],r=n[1],a=n[2],o=A.length,l=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};for(var e="×";c<o&&"×"===(e=Ae(A,r,i,++c,a)););if("×"!==e||c===o){var t=new ie(A,e,l,c);return l=c,{value:t,done:!1}}return{done:!0,value:null}}}}(e,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),i=[],r=function(){if(A.value){var e=A.value.slice(),t=s(e),n="";t.forEach((function(e){-1===_n.indexOf(e)?n+=l(e):(n.length&&i.push(n),i.push(l(e)),n="")})),n.length&&i.push(n)}};!(A=n.next()).done;)r();return i},Vn=function(e,t,A){this.text=Gn(t.data,A.textTransform),this.textBounds=function(e,t,A,n){var i=Hn(t,A),r=[],o=0;return i.forEach((function(t){if(A.textDecorationLine.length||t.trim().length>0)if(Nn.SUPPORT_RANGE_BOUNDS){var i=Mn(n,o,t.length).getClientRects();if(i.length>1){var s=On(t),l=0;s.forEach((function(t){r.push(new Dn(t,a.fromDOMRectList(e,Mn(n,l+o,t.length).getClientRects()))),l+=t.length}))}else r.push(new Dn(t,a.fromDOMRectList(e,i)))}else{var c=n.splitText(t.length);r.push(new Dn(t,Pn(e,n))),n=c}else Nn.SUPPORT_RANGE_BOUNDS||(n=n.splitText(t.length));o+=t.length})),r}(e,this.text,A,t)},Gn=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(Kn,zn);case 2:return e.toUpperCase();default:return e}},Kn=/(^|\s|:|-|\(|\))([a-z])/g,zn=function(e,t,A){return e.length>0?t+A.toUpperCase():e},Wn=function(e){function A(t,A){var n=e.call(this,t,A)||this;return n.src=A.currentSrc||A.src,n.intrinsicWidth=A.naturalWidth,n.intrinsicHeight=A.naturalHeight,n.context.cache.addImage(n.src),n}return t(A,e),A}(hn),jn=function(e){function A(t,A){var n=e.call(this,t,A)||this;return n.canvas=A,n.intrinsicWidth=A.width,n.intrinsicHeight=A.height,n}return t(A,e),A}(hn),Xn=function(e){function A(t,A){var n=e.call(this,t,A)||this,i=new XMLSerializer,r=o(t,A);return A.setAttribute("width",r.width+"px"),A.setAttribute("height",r.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(A)),n.intrinsicWidth=A.width.baseVal.value,n.intrinsicHeight=A.height.baseVal.value,n.context.cache.addImage(n.svg),n}return t(A,e),A}(hn),Yn=function(e){function A(t,A){var n=e.call(this,t,A)||this;return n.value=A.value,n}return t(A,e),A}(hn),Jn=function(e){function A(t,A){var n=e.call(this,t,A)||this;return n.start=A.start,n.reversed="boolean"==typeof A.reversed&&!0===A.reversed,n}return t(A,e),A}(hn),qn=[{type:15,flags:0,unit:"px",number:3}],Zn=[{type:16,flags:0,number:50}],$n="password",ei=function(e){function A(t,A){var n,i,r,o=e.call(this,t,A)||this;switch(o.type=A.type.toLowerCase(),o.checked=A.checked,o.value=0===(i=(n=A).type===$n?new Array(n.value.length+1).join("•"):n.value).length?n.placeholder||"":i,"checkbox"!==o.type&&"radio"!==o.type||(o.styles.backgroundColor=3739148031,o.styles.borderTopColor=o.styles.borderRightColor=o.styles.borderBottomColor=o.styles.borderLeftColor=2779096575,o.styles.borderTopWidth=o.styles.borderRightWidth=o.styles.borderBottomWidth=o.styles.borderLeftWidth=1,o.styles.borderTopStyle=o.styles.borderRightStyle=o.styles.borderBottomStyle=o.styles.borderLeftStyle=1,o.styles.backgroundClip=[0],o.styles.backgroundOrigin=[0],o.bounds=(r=o.bounds).width>r.height?new a(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width<r.height?new a(r.left,r.top+(r.height-r.width)/2,r.width,r.width):r),o.type){case"checkbox":o.styles.borderTopRightRadius=o.styles.borderTopLeftRadius=o.styles.borderBottomRightRadius=o.styles.borderBottomLeftRadius=qn;break;case"radio":o.styles.borderTopRightRadius=o.styles.borderTopLeftRadius=o.styles.borderBottomRightRadius=o.styles.borderBottomLeftRadius=Zn}return o}return t(A,e),A}(hn),ti=function(e){function A(t,A){var n=e.call(this,t,A)||this,i=A.options[A.selectedIndex||0];return n.value=i&&i.text||"",n}return t(A,e),A}(hn),Ai=function(e){function A(t,A){var n=e.call(this,t,A)||this;return n.value=A.value,n}return t(A,e),A}(hn),ni=function(e){function A(t,A){var n=e.call(this,t,A)||this;n.src=A.src,n.width=parseInt(A.width,10)||0,n.height=parseInt(A.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(A.contentWindow&&A.contentWindow.document&&A.contentWindow.document.documentElement){n.tree=ai(t,A.contentWindow.document.documentElement);var i=A.contentWindow.document.documentElement?ft(t,getComputedStyle(A.contentWindow.document.documentElement).backgroundColor):mt.TRANSPARENT,r=A.contentWindow.document.body?ft(t,getComputedStyle(A.contentWindow.document.body).backgroundColor):mt.TRANSPARENT;n.backgroundColor=ot(i)?ot(r)?n.styles.backgroundColor:r:i}}catch(re){}return n}return t(A,e),A}(hn),ii=["OL","UL","MENU"],ri=function(e,t){return Bi(t)?new Wn(e,t):vi(t)?new jn(e,t):fi(t)?new Xn(e,t):di(t)?new Yn(e,t):gi(t)?new Jn(e,t):pi(t)?new ei(e,t):xi(t)?new ti(e,t):yi(t)?new Ai(e,t):Ci(t)?new ni(e,t):new hn(e,t)},ai=function(e,t){var A=ri(e,t);return A.flags|=4,function n(e,t,A,i){for(var r=t.firstChild,a=void 0;r;r=a)if(a=r.nextSibling,li(r)&&r.data.trim().length>0)A.textNodes.push(new Vn(e,r,A.styles));else if(ci(r))if(Fi(r)&&r.assignedNodes)r.assignedNodes().forEach((function(t){return n(e,t,A,i)}));else{var o=ri(e,r);o.styles.isVisible()&&(oi(r,o,i)?o.flags|=4:si(o.styles)&&(o.flags|=2),-1!==ii.indexOf(r.tagName)&&(o.flags|=8),A.elements.push(o),r.slot,r.shadowRoot?n(e,r.shadowRoot,o,i):yi(r)||fi(r)||xi(r)||n(e,r,o,i))}}(e,t,A,A),A},oi=function(e,t,A){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||mi(e)&&A.styles.isTransparent()},si=function(e){return e.isPositioned()||e.isFloating()},li=function(e){return e.nodeType===Node.TEXT_NODE},ci=function(e){return e.nodeType===Node.ELEMENT_NODE},ui=function(e){return ci(e)&&"undefined"!=typeof e.style&&!hi(e)},hi=function(e){return"object"==typeof e.className},di=function(e){return"LI"===e.tagName},gi=function(e){return"OL"===e.tagName},pi=function(e){return"INPUT"===e.tagName},fi=function(e){return"svg"===e.tagName},mi=function(e){return"BODY"===e.tagName},vi=function(e){return"CANVAS"===e.tagName},bi=function(e){return"VIDEO"===e.tagName},Bi=function(e){return"IMG"===e.tagName},Ci=function(e){return"IFRAME"===e.tagName},wi=function(e){return"STYLE"===e.tagName},yi=function(e){return"TEXTAREA"===e.tagName},xi=function(e){return"SELECT"===e.tagName},Fi=function(e){return"SLOT"===e.tagName},Ei=function(e){return e.tagName.indexOf("-")>0},Si=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},e.prototype.pop=function(e){var t=this;e.forEach((function(e){return t.counters[e].pop()}))},e.prototype.parse=function(e){var t=this,A=e.counterIncrement,n=e.counterReset,i=!0;null!==A&&A.forEach((function(e){var A=t.counters[e.counter];A&&0!==e.increment&&(i=!1,A.length||A.push(1),A[Math.max(0,A.length-1)]+=e.increment)}));var r=[];return i&&n.forEach((function(e){var A=t.counters[e.counter];r.push(e.counter),A||(A=t.counters[e.counter]=[]),A.push(e.reset)})),r},e}(),Qi={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},ki={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Li={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Ui={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ii=function(e,t,A,n,i,r){return e<t||e>A?Mi(e,i,r.length>0):n.integers.reduce((function(t,A,i){for(;e>=A;)e-=A,t+=n.values[i];return t}),"")+r},Ti=function(e,t,A,n){var i="";do{A||e--,i=n(e)+i,e/=t}while(e*t>=t);return i},Ni=function(e,t,A,n,i){var r=A-t+1;return(e<0?"-":"")+(Ti(Math.abs(e),r,n,(function(e){return l(Math.floor(e%r)+t)}))+i)},Di=function(e,t,A){void 0===A&&(A=". ");var n=t.length;return Ti(Math.abs(e),n,!1,(function(e){return t[Math.floor(e%n)]}))+A},Pi=function(e,t,A,n,i,r){if(e<-9999||e>9999)return Mi(e,4,i.length>0);var a=Math.abs(e),o=i;if(0===a)return t[0]+o;for(var s=0;a>0&&s<=4;s++){var l=a%10;0===l&&YA(r,1)&&""!==o?o=t[l]+o:l>1||1===l&&0===s||1===l&&1===s&&YA(r,2)||1===l&&1===s&&YA(r,4)&&e>100||1===l&&s>1&&YA(r,8)?o=t[l]+(s>0?A[s-1]:"")+o:1===l&&s>0&&(o=A[s-1]+o),a=Math.floor(a/10)}return(e<0?n:"")+o},Mi=function(e,t,A){var n=A?". ":"",i=A?"、":"",r=A?", ":"",a=A?" ":"";switch(t){case 0:return"•"+a;case 1:return"◦"+a;case 2:return"◾"+a;case 5:var o=Ni(e,48,57,!0,n);return o.length<4?"0"+o:o;case 4:return Di(e,"〇一二三四五六七八九",i);case 6:return Ii(e,1,3999,Qi,3,n).toLowerCase();case 7:return Ii(e,1,3999,Qi,3,n);case 8:return Ni(e,945,969,!1,n);case 9:return Ni(e,97,122,!1,n);case 10:return Ni(e,65,90,!1,n);case 11:return Ni(e,1632,1641,!0,n);case 12:case 49:return Ii(e,1,9999,ki,3,n);case 35:return Ii(e,1,9999,ki,3,n).toLowerCase();case 13:return Ni(e,2534,2543,!0,n);case 14:case 30:return Ni(e,6112,6121,!0,n);case 15:return Di(e,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return Di(e,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return Pi(e,"零一二三四五六七八九","十百千萬","負",i,14);case 47:return Pi(e,"零壹貳參肆伍陸柒捌玖","拾佰仟萬","負",i,15);case 42:return Pi(e,"零一二三四五六七八九","十百千萬","负",i,14);case 41:return Pi(e,"零壹贰叁肆伍陆柒捌玖","拾佰仟萬","负",i,15);case 26:return Pi(e,"〇一二三四五六七八九","十百千万","マイナス",i,0);case 25:return Pi(e,"零壱弐参四伍六七八九","拾百千万","マイナス",i,7);case 31:return Pi(e,"영일이삼사오육칠팔구","십백천만","마이너스",r,7);case 33:return Pi(e,"零一二三四五六七八九","十百千萬","마이너스",r,0);case 32:return Pi(e,"零壹貳參四五六七八九","拾百千","마이너스",r,7);case 18:return Ni(e,2406,2415,!0,n);case 20:return Ii(e,1,19999,Ui,3,n);case 21:return Ni(e,2790,2799,!0,n);case 22:return Ni(e,2662,2671,!0,n);case 22:return Ii(e,1,10999,Li,3,n);case 23:return Di(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Di(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Ni(e,3302,3311,!0,n);case 28:return Di(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return Di(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return Ni(e,3792,3801,!0,n);case 37:return Ni(e,6160,6169,!0,n);case 38:return Ni(e,4160,4169,!0,n);case 39:return Ni(e,2918,2927,!0,n);case 40:return Ni(e,1776,1785,!0,n);case 43:return Ni(e,3046,3055,!0,n);case 44:return Ni(e,3174,3183,!0,n);case 45:return Ni(e,3664,3673,!0,n);case 46:return Ni(e,3872,3881,!0,n);case 3:default:return Ni(e,48,57,!0,n)}},Oi=function(){function e(e,t,A){if(this.context=e,this.options=A,this.scrolledElements=[],this.referenceElement=t,this.counters=new Si,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var A=this,r=_i(e,t);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var a=e.defaultView.pageXOffset,o=e.defaultView.pageYOffset,s=r.contentWindow,l=s.document,c=Gi(r).then((function(){return n(A,void 0,void 0,(function(){var e,A;return i(this,(function(n){switch(n.label){case 0:return this.scrolledElements.forEach(Xi),s&&(s.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||s.scrollY===t.top&&s.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-t.left,s.scrollY-t.top,0,0))),e=this.options.onclone,void 0===(A=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:n.sent(),n.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Vi(l)]:[3,4];case 3:n.sent(),n.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then((function(){return e(l,A)})).then((function(){return r}))]:[2,r]}}))}))}));return l.open(),l.write(Wi(document.doctype)+"<html></html>"),ji(this.referenceElement.ownerDocument,a,o),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},e.prototype.createElementClone=function(e){if(un(e,2),vi(e))return this.createCanvasClone(e);if(bi(e))return this.createVideoClone(e);if(wi(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Bi(t)&&(Bi(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Ei(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return zi(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var A=[].slice.call(t.cssRules,0).reduce((function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e}),""),n=e.cloneNode(!1);return n.textContent=A,n}}catch(re){if(this.context.logger.error("Unable to access cssRules property",re),"SecurityError"!==re.name)throw re}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var A=e.ownerDocument.createElement("img");try{return A.src=e.toDataURL(),A}catch(re){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var i=e.getContext("2d"),r=n.getContext("2d");if(r)if(!this.options.allowTaint&&i)r.putImageData(i.getImageData(0,0,e.width,e.height),0,0);else{var a=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(a){var o=a.getContextAttributes();!1===(null==o?void 0:o.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}r.drawImage(e,0,0)}return n}catch(re){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return n},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var A=t.getContext("2d");try{return A&&(A.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||A.getImageData(0,0,t.width,t.height)),t}catch(re){this.context.logger.info("Unable to clone video as it is tainted",e)}var n=e.ownerDocument.createElement("canvas");return n.width=e.offsetWidth,n.height=e.offsetHeight,n},e.prototype.appendChildNode=function(e,t,A){ci(t)&&("SCRIPT"===t.tagName||t.hasAttribute("data-html2canvas-ignore")||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&ci(t)&&wi(t)||e.appendChild(this.cloneNode(t,A))},e.prototype.cloneChildNodes=function(e,t,A){for(var n=this,i=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;i;i=i.nextSibling)if(ci(i)&&Fi(i)&&"function"==typeof i.assignedNodes){var r=i.assignedNodes();r.length&&r.forEach((function(e){return n.appendChildNode(t,e,A)}))}else this.appendChildNode(t,i,A)},e.prototype.cloneNode=function(e,t){if(li(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var A=e.ownerDocument.defaultView;if(A&&ci(e)&&(ui(e)||hi(e))){var n=this.createElementClone(e);n.style.transitionProperty="none";var i=A.getComputedStyle(e),r=A.getComputedStyle(e,":before"),a=A.getComputedStyle(e,":after");this.referenceElement===e&&ui(n)&&(this.clonedReferenceElement=n),mi(n)&&qi(n);var o=this.counters.parse(new ln(this.context,i)),s=this.resolvePseudoContent(e,n,r,Cn.BEFORE);Ei(e)&&(t=!0),bi(e)||this.cloneChildNodes(e,n,t),s&&n.insertBefore(s,n.firstChild);var l=this.resolvePseudoContent(e,n,a,Cn.AFTER);return l&&n.appendChild(l),this.counters.pop(o),(i&&(this.options.copyStyles||hi(e))&&!Ci(e)||t)&&zi(i,n),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(yi(e)||xi(e))&&(yi(n)||xi(n))&&(n.value=e.value),n}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,A,n){var i=this;if(A){var r=A.content,a=t.ownerDocument;if(a&&r&&"none"!==r&&"-moz-alt-content"!==r&&"none"!==A.display){this.counters.parse(new ln(this.context,A));var o=new sn(this.context,A),s=a.createElement("html2canvaspseudoelement");zi(A,s),o.content.forEach((function(t){if(0===t.type)s.appendChild(a.createTextNode(t.value));else if(22===t.type){var A=a.createElement("img");A.src=t.value,A.style.opacity="1",s.appendChild(A)}else if(18===t.type){if("attr"===t.name){var n=t.values.filter(Re);n.length&&s.appendChild(a.createTextNode(e.getAttribute(n[0].value)||""))}else if("counter"===t.name){var r=t.values.filter(ze),l=r[0],c=r[1];if(l&&Re(l)){var u=i.counters.getCounterValue(l.value),h=c&&Re(c)?pA.parse(i.context,c.value):3;s.appendChild(a.createTextNode(Mi(u,h,!1)))}}else if("counters"===t.name){var d=t.values.filter(ze),g=(l=d[0],d[1]);if(c=d[2],l&&Re(l)){var p=i.counters.getCounterValues(l.value),f=c&&Re(c)?pA.parse(i.context,c.value):3,m=g&&0===g.type?g.value:"",v=p.map((function(e){return Mi(e,f,!1)})).join(m);s.appendChild(a.createTextNode(v))}}}else if(20===t.type)switch(t.value){case"open-quote":s.appendChild(a.createTextNode(tn(o.quotes,i.quoteDepth++,!0)));break;case"close-quote":s.appendChild(a.createTextNode(tn(o.quotes,--i.quoteDepth,!1)));break;default:s.appendChild(a.createTextNode(t.value))}})),s.className=Yi+" "+Ji;var l=n===Cn.BEFORE?" "+Yi:" "+Ji;return hi(t)?t.className.baseValue+=l:t.className+=l,s}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();!function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(Cn||(Cn={}));var Hi,_i=function(e,t){var A=e.createElement("iframe");return A.className="html2canvas-container",A.style.visibility="hidden",A.style.position="fixed",A.style.left="-10000px",A.style.top="0px",A.style.border="0",A.width=t.width.toString(),A.height=t.height.toString(),A.scrolling="no",A.setAttribute("data-html2canvas-ignore","true"),e.body.appendChild(A),A},Ri=function(e){return new Promise((function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()}))},Vi=function(e){return Promise.all([].slice.call(e.images,0).map(Ri))},Gi=function(e){return new Promise((function(t,A){var n=e.contentWindow;if(!n)return A("No window assigned for iframe");var i=n.document;n.onload=e.onload=function(){n.onload=e.onload=null;var A=setInterval((function(){i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(A),t(e))}),50)}}))},Ki=["all","d","content"],zi=function(e,t){for(var A=e.length-1;A>=0;A--){var n=e.item(A);-1===Ki.indexOf(n)&&t.style.setProperty(n,e.getPropertyValue(n))}return t},Wi=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},ji=function(e,t,A){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||A!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,A)},Xi=function(e){var t=e[0],A=e[1],n=e[2];t.scrollLeft=A,t.scrollTop=n},Yi="___html2canvas___pseudoelement_before",Ji="___html2canvas___pseudoelement_after",qi=function(e){Zi(e,"."+Yi+':before{\n    content: "" !important;\n    display: none !important;\n}\n         .'+Ji+':after{\n    content: "" !important;\n    display: none !important;\n}')},Zi=function(e,t){var A=e.ownerDocument;if(A){var n=A.createElement("style");n.textContent=t,e.appendChild(n)}},$i=function(){function e(){}return e.getOrigin=function(t){var A=e._link;return A?(A.href=t,A.href=A.href,A.protocol+A.hostname+A.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),er=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:or(e)||ir(e)?((this._cache[e]=this.loadImage(e))["catch"]((function(){})),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return n(this,void 0,void 0,(function(){var t,A,n,r,a=this;return i(this,(function(i){switch(i.label){case 0:return t=$i.isSameOrigin(e),A=!rr(e)&&!0===this._options.useCORS&&Nn.SUPPORT_CORS_IMAGES&&!t,n=!rr(e)&&!t&&!or(e)&&"string"==typeof this._options.proxy&&Nn.SUPPORT_CORS_XHR&&!A,t||!1!==this._options.allowTaint||rr(e)||or(e)||n||A?(r=e,n?[4,this.proxy(r)]:[3,2]):[2];case 1:r=i.sent(),i.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise((function(e,t){var n=new Image;n.onload=function(){return e(n)},n.onerror=t,(ar(r)||A)&&(n.crossOrigin="anonymous"),n.src=r,!0===n.complete&&setTimeout((function(){return e(n)}),500),a._options.imageTimeout>0&&setTimeout((function(){return t("Timed out ("+a._options.imageTimeout+"ms) loading image")}),a._options.imageTimeout)}))];case 3:return[2,i.sent()]}}))}))},e.prototype.has=function(e){return"undefined"!=typeof this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,A=this._options.proxy;if(!A)throw new Error("No proxy defined");var n=e.substring(0,256);return new Promise((function(i,r){var a=Nn.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(200===o.status)if("text"===a)i(o.response);else{var e=new FileReader;e.addEventListener("load",(function(){return i(e.result)}),!1),e.addEventListener("error",(function(e){return r(e)}),!1),e.readAsDataURL(o.response)}else r("Failed to proxy resource "+n+" with status code "+o.status)},o.onerror=r;var s=A.indexOf("?")>-1?"&":"?";if(o.open("GET",""+A+s+"url="+encodeURIComponent(e)+"&responseType="+a),"text"!==a&&o instanceof XMLHttpRequest&&(o.responseType=a),t._options.imageTimeout){var l=t._options.imageTimeout;o.timeout=l,o.ontimeout=function(){return r("Timed out ("+l+"ms) proxying "+n)}}o.send()}))},e}(),tr=/^data:image\/svg\+xml/i,Ar=/^data:image\/.*;base64,/i,nr=/^data:image\/.*/i,ir=function(e){return Nn.SUPPORT_SVG_DRAWING||!sr(e)},rr=function(e){return nr.test(e)},ar=function(e){return Ar.test(e)},or=function(e){return"blob"===e.substr(0,4)},sr=function(e){return"svg"===e.substr(-3).toLowerCase()||tr.test(e)},lr=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,A){return new e(this.x+t,this.y+A)},e}(),cr=function(e,t,A){return new lr(e.x+(t.x-e.x)*A,e.y+(t.y-e.y)*A)},ur=function(){function e(e,t,A,n){this.type=1,this.start=e,this.startControl=t,this.endControl=A,this.end=n}return e.prototype.subdivide=function(t,A){var n=cr(this.start,this.startControl,t),i=cr(this.startControl,this.endControl,t),r=cr(this.endControl,this.end,t),a=cr(n,i,t),o=cr(i,r,t),s=cr(a,o,t);return A?new e(this.start,n,a,s):new e(s,o,r,this.end)},e.prototype.add=function(t,A){return new e(this.start.add(t,A),this.startControl.add(t,A),this.endControl.add(t,A),this.end.add(t,A))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),hr=function(e){return 1===e.type},dr=function(e){var t=e.styles,A=e.bounds,n=et(t.borderTopLeftRadius,A.width,A.height),i=n[0],r=n[1],a=et(t.borderTopRightRadius,A.width,A.height),o=a[0],s=a[1],l=et(t.borderBottomRightRadius,A.width,A.height),c=l[0],u=l[1],h=et(t.borderBottomLeftRadius,A.width,A.height),d=h[0],g=h[1],p=[];p.push((i+o)/A.width),p.push((d+c)/A.width),p.push((r+g)/A.height),p.push((s+u)/A.height);var f=Math.max.apply(Math,p);f>1&&(i/=f,r/=f,o/=f,s/=f,c/=f,u/=f,d/=f,g/=f);var m=A.width-o,v=A.height-u,b=A.width-c,B=A.height-g,C=t.borderTopWidth,w=t.borderRightWidth,y=t.borderBottomWidth,x=t.borderLeftWidth,F=tt(t.paddingTop,e.bounds.width),E=tt(t.paddingRight,e.bounds.width),S=tt(t.paddingBottom,e.bounds.width),Q=tt(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||r>0?gr(A.left+x/3,A.top+C/3,i-x/3,r-C/3,Hi.TOP_LEFT):new lr(A.left+x/3,A.top+C/3),this.topRightBorderDoubleOuterBox=i>0||r>0?gr(A.left+m,A.top+C/3,o-w/3,s-C/3,Hi.TOP_RIGHT):new lr(A.left+A.width-w/3,A.top+C/3),this.bottomRightBorderDoubleOuterBox=c>0||u>0?gr(A.left+b,A.top+v,c-w/3,u-y/3,Hi.BOTTOM_RIGHT):new lr(A.left+A.width-w/3,A.top+A.height-y/3),this.bottomLeftBorderDoubleOuterBox=d>0||g>0?gr(A.left+x/3,A.top+B,d-x/3,g-y/3,Hi.BOTTOM_LEFT):new lr(A.left+x/3,A.top+A.height-y/3),this.topLeftBorderDoubleInnerBox=i>0||r>0?gr(A.left+2*x/3,A.top+2*C/3,i-2*x/3,r-2*C/3,Hi.TOP_LEFT):new lr(A.left+2*x/3,A.top+2*C/3),this.topRightBorderDoubleInnerBox=i>0||r>0?gr(A.left+m,A.top+2*C/3,o-2*w/3,s-2*C/3,Hi.TOP_RIGHT):new lr(A.left+A.width-2*w/3,A.top+2*C/3),this.bottomRightBorderDoubleInnerBox=c>0||u>0?gr(A.left+b,A.top+v,c-2*w/3,u-2*y/3,Hi.BOTTOM_RIGHT):new lr(A.left+A.width-2*w/3,A.top+A.height-2*y/3),this.bottomLeftBorderDoubleInnerBox=d>0||g>0?gr(A.left+2*x/3,A.top+B,d-2*x/3,g-2*y/3,Hi.BOTTOM_LEFT):new lr(A.left+2*x/3,A.top+A.height-2*y/3),this.topLeftBorderStroke=i>0||r>0?gr(A.left+x/2,A.top+C/2,i-x/2,r-C/2,Hi.TOP_LEFT):new lr(A.left+x/2,A.top+C/2),this.topRightBorderStroke=i>0||r>0?gr(A.left+m,A.top+C/2,o-w/2,s-C/2,Hi.TOP_RIGHT):new lr(A.left+A.width-w/2,A.top+C/2),this.bottomRightBorderStroke=c>0||u>0?gr(A.left+b,A.top+v,c-w/2,u-y/2,Hi.BOTTOM_RIGHT):new lr(A.left+A.width-w/2,A.top+A.height-y/2),this.bottomLeftBorderStroke=d>0||g>0?gr(A.left+x/2,A.top+B,d-x/2,g-y/2,Hi.BOTTOM_LEFT):new lr(A.left+x/2,A.top+A.height-y/2),this.topLeftBorderBox=i>0||r>0?gr(A.left,A.top,i,r,Hi.TOP_LEFT):new lr(A.left,A.top),this.topRightBorderBox=o>0||s>0?gr(A.left+m,A.top,o,s,Hi.TOP_RIGHT):new lr(A.left+A.width,A.top),this.bottomRightBorderBox=c>0||u>0?gr(A.left+b,A.top+v,c,u,Hi.BOTTOM_RIGHT):new lr(A.left+A.width,A.top+A.height),this.bottomLeftBorderBox=d>0||g>0?gr(A.left,A.top+B,d,g,Hi.BOTTOM_LEFT):new lr(A.left,A.top+A.height),this.topLeftPaddingBox=i>0||r>0?gr(A.left+x,A.top+C,Math.max(0,i-x),Math.max(0,r-C),Hi.TOP_LEFT):new lr(A.left+x,A.top+C),this.topRightPaddingBox=o>0||s>0?gr(A.left+Math.min(m,A.width-w),A.top+C,m>A.width+w?0:Math.max(0,o-w),Math.max(0,s-C),Hi.TOP_RIGHT):new lr(A.left+A.width-w,A.top+C),this.bottomRightPaddingBox=c>0||u>0?gr(A.left+Math.min(b,A.width-x),A.top+Math.min(v,A.height-y),Math.max(0,c-w),Math.max(0,u-y),Hi.BOTTOM_RIGHT):new lr(A.left+A.width-w,A.top+A.height-y),this.bottomLeftPaddingBox=d>0||g>0?gr(A.left+x,A.top+Math.min(B,A.height-y),Math.max(0,d-x),Math.max(0,g-y),Hi.BOTTOM_LEFT):new lr(A.left+x,A.top+A.height-y),this.topLeftContentBox=i>0||r>0?gr(A.left+x+Q,A.top+C+F,Math.max(0,i-(x+Q)),Math.max(0,r-(C+F)),Hi.TOP_LEFT):new lr(A.left+x+Q,A.top+C+F),this.topRightContentBox=o>0||s>0?gr(A.left+Math.min(m,A.width+x+Q),A.top+C+F,m>A.width+x+Q?0:o-x+Q,s-(C+F),Hi.TOP_RIGHT):new lr(A.left+A.width-(w+E),A.top+C+F),this.bottomRightContentBox=c>0||u>0?gr(A.left+Math.min(b,A.width-(x+Q)),A.top+Math.min(v,A.height+C+F),Math.max(0,c-(w+E)),u-(y+S),Hi.BOTTOM_RIGHT):new lr(A.left+A.width-(w+E),A.top+A.height-(y+S)),this.bottomLeftContentBox=d>0||g>0?gr(A.left+x+Q,A.top+B,Math.max(0,d-(x+Q)),g-(y+S),Hi.BOTTOM_LEFT):new lr(A.left+x+Q,A.top+A.height-(y+S))};!function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Hi||(Hi={}));var gr=function(e,t,A,n,i){var r=(Math.sqrt(2)-1)/3*4,a=A*r,o=n*r,s=e+A,l=t+n;switch(i){case Hi.TOP_LEFT:return new ur(new lr(e,l),new lr(e,l-o),new lr(s-a,t),new lr(s,t));case Hi.TOP_RIGHT:return new ur(new lr(e,t),new lr(e+a,t),new lr(s,l-o),new lr(s,l));case Hi.BOTTOM_RIGHT:return new ur(new lr(s,t),new lr(s,t+o),new lr(e+a,l),new lr(e,l));case Hi.BOTTOM_LEFT:default:return new ur(new lr(s,l),new lr(s-a,l),new lr(e,t+o),new lr(e,t))}},pr=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},fr=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},mr=function(e,t,A){this.offsetX=e,this.offsetY=t,this.matrix=A,this.type=0,this.target=6},vr=function(e,t){this.path=e,this.target=t,this.type=1},br=function(e){this.opacity=e,this.type=2,this.target=6},Br=function(e){return 1===e.type},Cr=function(e,t){return e.length===t.length&&e.some((function(e,A){return e===t[A]}))},wr=function(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},yr=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new dr(this.container),this.container.styles.opacity<1&&this.effects.push(new br(this.container.styles.opacity)),null!==this.container.styles.transform){var A=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new mr(A,n,i))}if(0!==this.container.styles.overflowX){var r=pr(this.curves),a=fr(this.curves);Cr(r,a)?this.effects.push(new vr(r,6)):(this.effects.push(new vr(r,2)),this.effects.push(new vr(a,4)))}}return e.prototype.getEffects=function(e){for(var t=-1===[2,3].indexOf(this.container.styles.position),A=this.parent,n=this.effects.slice(0);A;){var i=A.effects.filter((function(e){return!Br(e)}));if(t||0!==A.container.styles.position||!A.parent){if(n.unshift.apply(n,i),t=-1===[2,3].indexOf(A.container.styles.position),0!==A.container.styles.overflowX){var r=pr(A.curves),a=fr(A.curves);Cr(r,a)||n.unshift(new vr(a,6))}}else n.unshift.apply(n,i);A=A.parent}return n.filter((function(t){return YA(t.target,e)}))},e}(),xr=function(e,t){for(var A=e instanceof Jn?e.start:1,n=e instanceof Jn&&e.reversed,i=0;i<t.length;i++){var r=t[i];r.container instanceof Yn&&"number"==typeof r.container.value&&0!==r.container.value&&(A=r.container.value),r.listValue=Mi(A,r.container.styles.listStyleType,!0),A+=n?-1:1}},Fr=function(e){var t=new yr(e,null),A=new wr(t),n=[];return function i(e,t,A,n){e.container.elements.forEach((function(r){var a=YA(r.flags,4),o=YA(r.flags,2),s=new yr(r,e);YA(r.styles.display,2048)&&n.push(s);var l=YA(r.flags,8)?[]:n;if(a||o){var c=a||r.styles.isPositioned()?A:t,u=new wr(s);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var h=r.styles.zIndex.order;if(h<0){var d=0;c.negativeZIndex.some((function(e,t){return h>e.element.container.styles.zIndex.order?(d=t,!1):d>0})),c.negativeZIndex.splice(d,0,u)}else if(h>0){var g=0;c.positiveZIndex.some((function(e,t){return h>=e.element.container.styles.zIndex.order?(g=t+1,!1):g>0})),c.positiveZIndex.splice(g,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else r.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);i(s,u,a?u:A,l)}else r.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),i(s,t,A,l);YA(r.flags,8)&&xr(r,l)}))}(t,A,A,n),xr(t.container,n),A},Er=function(e,t){switch(t){case 0:return Qr(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Qr(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Qr(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return Qr(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Sr=function(e,t){var A=[];return hr(e)?A.push(e.subdivide(.5,!1)):A.push(e),hr(t)?A.push(t.subdivide(.5,!0)):A.push(t),A},Qr=function(e,t,A,n){var i=[];return hr(e)?i.push(e.subdivide(.5,!1)):i.push(e),hr(A)?i.push(A.subdivide(.5,!0)):i.push(A),hr(n)?i.push(n.subdivide(.5,!0).reverse()):i.push(n),hr(t)?i.push(t.subdivide(.5,!1).reverse()):i.push(t),i},kr=function(e){var t=e.bounds,A=e.styles;return t.add(A.borderLeftWidth,A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth),-(A.borderTopWidth+A.borderBottomWidth))},Lr=function(e){var t=e.styles,A=e.bounds,n=tt(t.paddingLeft,A.width),i=tt(t.paddingRight,A.width),r=tt(t.paddingTop,A.width),a=tt(t.paddingBottom,A.width);return A.add(n+t.borderLeftWidth,r+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+n+i),-(t.borderTopWidth+t.borderBottomWidth+r+a))},Ur=function(e,t,A){var n=function(e,t){return 0===e?t.bounds:2===e?Lr(t):kr(t)}(Dr(e.styles.backgroundOrigin,t),e),i=function(e,t){return 0===e?t.bounds:2===e?Lr(t):kr(t)}(Dr(e.styles.backgroundClip,t),e),r=Nr(Dr(e.styles.backgroundSize,t),A,n),a=r[0],o=r[1],s=et(Dr(e.styles.backgroundPosition,t),n.width-a,n.height-o);return[Pr(Dr(e.styles.backgroundRepeat,t),s,r,n,i),Math.round(n.left+s[0]),Math.round(n.top+s[1]),a,o]},Ir=function(e){return Re(e)&&e.value===dt.AUTO},Tr=function(e){return"number"==typeof e},Nr=function(e,t,A){var n=t[0],i=t[1],r=t[2],a=e[0],o=e[1];if(!a)return[0,0];if(Ye(a)&&o&&Ye(o))return[tt(a,A.width),tt(o,A.height)];var s=Tr(r);if(Re(a)&&(a.value===dt.CONTAIN||a.value===dt.COVER))return Tr(r)?A.width/A.height<r!=(a.value===dt.COVER)?[A.width,A.width/r]:[A.height*r,A.height]:[A.width,A.height];var l=Tr(n),c=Tr(i),u=l||c;if(Ir(a)&&(!o||Ir(o)))return l&&c?[n,i]:s||u?u&&s?[l?n:i*r,c?i:n/r]:[l?n:A.width,c?i:A.height]:[A.width,A.height];if(s){var h=0,d=0;return Ye(a)?h=tt(a,A.width):Ye(o)&&(d=tt(o,A.height)),Ir(a)?h=d*r:o&&!Ir(o)||(d=h/r),[h,d]}var g=null,p=null;if(Ye(a)?g=tt(a,A.width):o&&Ye(o)&&(p=tt(o,A.height)),null===g||o&&!Ir(o)||(p=l&&c?g/n*i:A.height),null!==p&&Ir(a)&&(g=l&&c?p/i*n:A.width),null!==g&&null!==p)return[g,p];throw new Error("Unable to calculate background-size for element")},Dr=function(e,t){var A=e[t];return void 0===A?e[0]:A},Pr=function(e,t,A,n,i){var r=t[0],a=t[1],o=A[0],s=A[1];switch(e){case 2:return[new lr(Math.round(n.left),Math.round(n.top+a)),new lr(Math.round(n.left+n.width),Math.round(n.top+a)),new lr(Math.round(n.left+n.width),Math.round(s+n.top+a)),new lr(Math.round(n.left),Math.round(s+n.top+a))];case 3:return[new lr(Math.round(n.left+r),Math.round(n.top)),new lr(Math.round(n.left+r+o),Math.round(n.top)),new lr(Math.round(n.left+r+o),Math.round(n.height+n.top)),new lr(Math.round(n.left+r),Math.round(n.height+n.top))];case 1:return[new lr(Math.round(n.left+r),Math.round(n.top+a)),new lr(Math.round(n.left+r+o),Math.round(n.top+a)),new lr(Math.round(n.left+r+o),Math.round(n.top+a+s)),new lr(Math.round(n.left+r),Math.round(n.top+a+s))];default:return[new lr(Math.round(i.left),Math.round(i.top)),new lr(Math.round(i.left+i.width),Math.round(i.top)),new lr(Math.round(i.left+i.width),Math.round(i.height+i.top)),new lr(Math.round(i.left),Math.round(i.height+i.top))]}},Mr=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var A=this._document.createElement("div"),n=this._document.createElement("img"),i=this._document.createElement("span"),r=this._document.body;A.style.visibility="hidden",A.style.fontFamily=e,A.style.fontSize=t,A.style.margin="0",A.style.padding="0",A.style.whiteSpace="nowrap",r.appendChild(A),n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode("Hidden Text")),A.appendChild(i),A.appendChild(n);var a=n.offsetTop-i.offsetTop+2;A.removeChild(i),A.appendChild(this._document.createTextNode("Hidden Text")),A.style.lineHeight="normal",n.style.verticalAlign="super";var o=n.offsetTop-A.offsetTop+2;return r.removeChild(A),{baseline:a,middle:o}},e.prototype.getMetrics=function(e,t){var A=e+" "+t;return"undefined"==typeof this._data[A]&&(this._data[A]=this.parseMetrics(e,t)),this._data[A]},e}(),Or=function(e,t){this.context=e,this.options=t},Hr=function(e){function A(t,A){var n=e.call(this,t,A)||this;return n._activeEffects=[],n.canvas=A.canvas?A.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),A.canvas||(n.canvas.width=Math.floor(A.width*A.scale),n.canvas.height=Math.floor(A.height*A.scale),n.canvas.style.width=A.width+"px",n.canvas.style.height=A.height+"px"),n.fontMetrics=new Mr(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-A.x,-A.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+A.width+"x"+A.height+") with scale "+A.scale),n}return t(A,e),A.prototype.applyEffects=function(e){for(var t=this;this._activeEffects.length;)this.popEffect();e.forEach((function(e){return t.applyEffect(e)}))},A.prototype.applyEffect=function(e){this.ctx.save(),function(e){return 2===e.type}(e)&&(this.ctx.globalAlpha=e.opacity),function(e){return 0===e.type}(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),Br(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(e){return n(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return e.element.container.styles.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},A.prototype.renderNode=function(e){return n(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return YA(e.container.flags,16),e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}}))}))},A.prototype.renderTextWithLetterSpacing=function(e,t,A){var n=this;0===t?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+A):On(e.text).reduce((function(t,i){return n.ctx.fillText(i,t,e.bounds.top+A),t+n.ctx.measureText(i).width}),e.bounds.left)},A.prototype.createFontStyle=function(e){var t=e.fontVariant.filter((function(e){return"normal"===e||"small-caps"===e})).join(""),A=Kr(e.fontFamily).join(", "),n=He(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,n,A].join(" "),A,n]},A.prototype.renderTextNode=function(e,t){return n(this,void 0,void 0,(function(){var A,n,r,a,o,s,l,c,u=this;return i(this,(function(i){return A=this.createFontStyle(t),n=A[0],r=A[1],a=A[2],this.ctx.font=n,this.ctx.direction=1===t.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",o=this.fontMetrics.getMetrics(r,a),s=o.baseline,l=o.middle,c=t.paintOrder,e.textBounds.forEach((function(e){c.forEach((function(A){switch(A){case 0:u.ctx.fillStyle=st(t.color),u.renderTextWithLetterSpacing(e,t.letterSpacing,s);var n=t.textShadow;n.length&&e.text.trim().length&&(n.slice(0).reverse().forEach((function(A){u.ctx.shadowColor=st(A.color),u.ctx.shadowOffsetX=A.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=A.offsetY.number*u.options.scale,u.ctx.shadowBlur=A.blur.number,u.renderTextWithLetterSpacing(e,t.letterSpacing,s)})),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),t.textDecorationLine.length&&(u.ctx.fillStyle=st(t.textDecorationColor||t.color),t.textDecorationLine.forEach((function(t){switch(t){case 1:u.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+s),e.bounds.width,1);break;case 2:u.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:u.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+l),e.bounds.width,1)}})));break;case 1:t.webkitTextStrokeWidth&&e.text.trim().length&&(u.ctx.strokeStyle=st(t.webkitTextStrokeColor),u.ctx.lineWidth=t.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+s)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter"}}))})),[2]}))}))},A.prototype.renderReplacedElement=function(e,t,A){if(A&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var n=Lr(e),i=fr(t);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(A,0,0,e.intrinsicWidth,e.intrinsicHeight,n.left,n.top,n.width,n.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return n(this,void 0,void 0,(function(){var t,n,r,o,s,l,c,u,h,d,g,p,f,m,v,b,B,C;return i(this,(function(i){switch(i.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,n=e.curves,r=t.styles,o=0,s=t.textNodes,i.label=1;case 1:return o<s.length?(l=s[o],[4,this.renderTextNode(l,r)]):[3,4];case 2:i.sent(),i.label=3;case 3:return o++,[3,1];case 4:if(!(t instanceof Wn))return[3,8];i.label=5;case 5:return i.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return v=i.sent(),this.renderReplacedElement(t,n,v),[3,8];case 7:return i.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof jn&&this.renderReplacedElement(t,n,t.canvas),!(t instanceof Xn))return[3,12];i.label=9;case 9:return i.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return v=i.sent(),this.renderReplacedElement(t,n,v),[3,12];case 11:return i.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof ni&&t.tree?[4,new A(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}).render(t.tree)]:[3,14];case 13:c=i.sent(),t.width&&t.height&&this.ctx.drawImage(c,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),i.label=14;case 14:if(t instanceof ei&&(u=Math.min(t.bounds.width,t.bounds.height),"checkbox"===t.type?t.checked&&(this.ctx.save(),this.path([new lr(t.bounds.left+.39363*u,t.bounds.top+.79*u),new lr(t.bounds.left+.16*u,t.bounds.top+.5549*u),new lr(t.bounds.left+.27347*u,t.bounds.top+.44071*u),new lr(t.bounds.left+.39694*u,t.bounds.top+.5649*u),new lr(t.bounds.left+.72983*u,t.bounds.top+.23*u),new lr(t.bounds.left+.84*u,t.bounds.top+.34085*u),new lr(t.bounds.left+.39363*u,t.bounds.top+.79*u)]),this.ctx.fillStyle=st(707406591),this.ctx.fill(),this.ctx.restore()):"radio"===t.type&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+u/2,t.bounds.top+u/2,u/4,0,2*Math.PI,!0),this.ctx.fillStyle=st(707406591),this.ctx.fill(),this.ctx.restore())),_r(t)&&t.value.length){switch(h=this.createFontStyle(r),B=h[0],d=h[1],g=this.fontMetrics.getMetrics(B,d).baseline,this.ctx.font=B,this.ctx.fillStyle=st(r.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Vr(t.styles.textAlign),C=Lr(t),p=0,t.styles.textAlign){case 1:p+=C.width/2;break;case 2:p+=C.width}f=C.add(p,0,0,-C.height/2+1),this.ctx.save(),this.path([new lr(C.left,C.top),new lr(C.left+C.width,C.top),new lr(C.left+C.width,C.top+C.height),new lr(C.left,C.top+C.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Dn(t.value,f),r.letterSpacing,g),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!YA(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if(0!==(m=t.styles.listStyleImage).type)return[3,18];v=void 0,b=m.url,i.label=15;case 15:return i.trys.push([15,17,,18]),[4,this.context.cache.match(b)];case 16:return v=i.sent(),this.ctx.drawImage(v,t.bounds.left-(v.width+10),t.bounds.top),[3,18];case 17:return i.sent(),this.context.logger.error("Error loading list-style-image "+b),[3,18];case 18:return[3,20];case 19:e.listValue&&-1!==t.styles.listStyleType&&(B=this.createFontStyle(r)[0],this.ctx.font=B,this.ctx.fillStyle=st(r.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",C=new a(t.bounds.left,t.bounds.top+tt(t.styles.paddingTop,t.bounds.width),t.bounds.width,hA(r.lineHeight,r.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Dn(e.listValue,C),r.letterSpacing,hA(r.lineHeight,r.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),i.label=20;case 20:return[2]}}))}))},A.prototype.renderStackContent=function(e){return n(this,void 0,void 0,(function(){var t,A,n,r,a,o,s,l,c,u,h,d,g,p,f;return i(this,(function(i){switch(i.label){case 0:return YA(e.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:i.sent(),t=0,A=e.negativeZIndex,i.label=2;case 2:return t<A.length?(f=A[t],[4,this.renderStack(f)]):[3,5];case 3:i.sent(),i.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:i.sent(),n=0,r=e.nonInlineLevel,i.label=7;case 7:return n<r.length?(f=r[n],[4,this.renderNode(f)]):[3,10];case 8:i.sent(),i.label=9;case 9:return n++,[3,7];case 10:a=0,o=e.nonPositionedFloats,i.label=11;case 11:return a<o.length?(f=o[a],[4,this.renderStack(f)]):[3,14];case 12:i.sent(),i.label=13;case 13:return a++,[3,11];case 14:s=0,l=e.nonPositionedInlineLevel,i.label=15;case 15:return s<l.length?(f=l[s],[4,this.renderStack(f)]):[3,18];case 16:i.sent(),i.label=17;case 17:return s++,[3,15];case 18:c=0,u=e.inlineLevel,i.label=19;case 19:return c<u.length?(f=u[c],[4,this.renderNode(f)]):[3,22];case 20:i.sent(),i.label=21;case 21:return c++,[3,19];case 22:h=0,d=e.zeroOrAutoZIndexOrTransformedOrOpacity,i.label=23;case 23:return h<d.length?(f=d[h],[4,this.renderStack(f)]):[3,26];case 24:i.sent(),i.label=25;case 25:return h++,[3,23];case 26:g=0,p=e.positiveZIndex,i.label=27;case 27:return g<p.length?(f=p[g],[4,this.renderStack(f)]):[3,30];case 28:i.sent(),i.label=29;case 29:return g++,[3,27];case 30:return[2]}}))}))},A.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},A.prototype.formatPath=function(e){var t=this;e.forEach((function(e,A){var n=hr(e)?e.start:e;0===A?t.ctx.moveTo(n.x,n.y):t.ctx.lineTo(n.x,n.y),hr(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)}))},A.prototype.renderRepeat=function(e,t,A,n){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(A,n),this.ctx.fill(),this.ctx.translate(-A,-n)},A.prototype.resizeImage=function(e,t,A){var n;if(e.width===t&&e.height===A)return e;var i=(null!==(n=this.canvas.ownerDocument)&&void 0!==n?n:document).createElement("canvas");return i.width=Math.max(1,t),i.height=Math.max(1,A),i.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,t,A),i},A.prototype.renderBackgroundImage=function(e){return n(this,void 0,void 0,(function(){var t,A,n,r,a,o;return i(this,(function(s){switch(s.label){case 0:t=e.styles.backgroundImage.length-1,A=function(A){var r,a,o,s,l,c,u,h,d,g,p,f,m,v,b,B,C,w,y,x,F,E,S,Q,k,L,U,I,T,N,D;return i(this,(function(i){switch(i.label){case 0:if(0!==A.type)return[3,5];r=void 0,a=A.url,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,n.context.cache.match(a)];case 2:return r=i.sent(),[3,4];case 3:return i.sent(),n.context.logger.error("Error loading background-image "+a),[3,4];case 4:return r&&(o=Ur(e,t,[r.width,r.height,r.width/r.height]),B=o[0],E=o[1],S=o[2],y=o[3],x=o[4],v=n.ctx.createPattern(n.resizeImage(r,y,x),"repeat"),n.renderRepeat(B,v,E,S)),[3,6];case 5:1===A.type?(s=Ur(e,t,[null,null,null]),B=s[0],E=s[1],S=s[2],y=s[3],x=s[4],l=wt(A.angle,y,x),c=l[0],u=l[1],h=l[2],d=l[3],g=l[4],(p=document.createElement("canvas")).width=y,p.height=x,f=p.getContext("2d"),m=f.createLinearGradient(u,d,h,g),Ct(A.stops,c).forEach((function(e){return m.addColorStop(e.stop,st(e.color))})),f.fillStyle=m,f.fillRect(0,0,y,x),y>0&&x>0&&(v=n.ctx.createPattern(p,"repeat"),n.renderRepeat(B,v,E,S))):function(e){return 2===e.type}(A)&&(b=Ur(e,t,[null,null,null]),B=b[0],C=b[1],w=b[2],y=b[3],x=b[4],F=0===A.position.length?[Ze]:A.position,E=tt(F[0],y),S=tt(F[F.length-1],x),Q=function(e,t,A,n,i){var r=0,a=0;switch(e.size){case 0:0===e.shape?r=a=Math.min(Math.abs(t),Math.abs(t-n),Math.abs(A),Math.abs(A-i)):1===e.shape&&(r=Math.min(Math.abs(t),Math.abs(t-n)),a=Math.min(Math.abs(A),Math.abs(A-i)));break;case 2:if(0===e.shape)r=a=Math.min(yt(t,A),yt(t,A-i),yt(t-n,A),yt(t-n,A-i));else if(1===e.shape){var o=Math.min(Math.abs(A),Math.abs(A-i))/Math.min(Math.abs(t),Math.abs(t-n)),s=xt(n,i,t,A,!0),l=s[0],c=s[1];a=o*(r=yt(l-t,(c-A)/o))}break;case 1:0===e.shape?r=a=Math.max(Math.abs(t),Math.abs(t-n),Math.abs(A),Math.abs(A-i)):1===e.shape&&(r=Math.max(Math.abs(t),Math.abs(t-n)),a=Math.max(Math.abs(A),Math.abs(A-i)));break;case 3:if(0===e.shape)r=a=Math.max(yt(t,A),yt(t,A-i),yt(t-n,A),yt(t-n,A-i));else if(1===e.shape){o=Math.max(Math.abs(A),Math.abs(A-i))/Math.max(Math.abs(t),Math.abs(t-n));var u=xt(n,i,t,A,!1);l=u[0],c=u[1],a=o*(r=yt(l-t,(c-A)/o))}}return Array.isArray(e.size)&&(r=tt(e.size[0],n),a=2===e.size.length?tt(e.size[1],i):r),[r,a]}(A,E,S,y,x),k=Q[0],L=Q[1],k>0&&L>0&&(U=n.ctx.createRadialGradient(C+E,w+S,0,C+E,w+S,k),Ct(A.stops,2*k).forEach((function(e){return U.addColorStop(e.stop,st(e.color))})),n.path(B),n.ctx.fillStyle=U,k!==L?(I=e.bounds.left+.5*e.bounds.width,T=e.bounds.top+.5*e.bounds.height,D=1/(N=L/k),n.ctx.save(),n.ctx.translate(I,T),n.ctx.transform(1,0,0,N,0,0),n.ctx.translate(-I,-T),n.ctx.fillRect(C,D*(w-T)+T,y,x*D),n.ctx.restore()):n.ctx.fill())),i.label=6;case 6:return t--,[2]}}))},n=this,r=0,a=e.styles.backgroundImage.slice(0).reverse(),s.label=1;case 1:return r<a.length?(o=a[r],[5,A(o)]):[3,4];case 2:s.sent(),s.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}))},A.prototype.renderSolidBorder=function(e,t,A){return n(this,void 0,void 0,(function(){return i(this,(function(n){return this.path(Er(A,t)),this.ctx.fillStyle=st(e),this.ctx.fill(),[2]}))}))},A.prototype.renderDoubleBorder=function(e,t,A,r){return n(this,void 0,void 0,(function(){var n,a;return i(this,(function(i){switch(i.label){case 0:return t<3?[4,this.renderSolidBorder(e,A,r)]:[3,2];case 1:return i.sent(),[2];case 2:return n=function(e,t){switch(t){case 0:return Qr(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Qr(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Qr(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return Qr(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}}(r,A),this.path(n),this.ctx.fillStyle=st(e),this.ctx.fill(),a=function(e,t){switch(t){case 0:return Qr(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Qr(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Qr(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return Qr(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}}(r,A),this.path(a),this.ctx.fill(),[2]}}))}))},A.prototype.renderNodeBackgroundAndBorders=function(e){return n(this,void 0,void 0,(function(){var t,A,n,r,a,o,s,l,c=this;return i(this,(function(i){switch(i.label){case 0:return this.applyEffects(e.getEffects(2)),t=e.container.styles,A=!ot(t.backgroundColor)||t.backgroundImage.length,n=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],r=Rr(Dr(t.backgroundClip,0),e.curves),A||t.boxShadow.length?(this.ctx.save(),this.path(r),this.ctx.clip(),ot(t.backgroundColor)||(this.ctx.fillStyle=st(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:i.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach((function(t){c.ctx.save();var A,n,i,r,a,o=pr(e.curves),s=t.inset?0:1e4,l=(A=o,n=-s+(t.inset?1:-1)*t.spread.number,i=(t.inset?1:-1)*t.spread.number,r=t.spread.number*(t.inset?-2:2),a=t.spread.number*(t.inset?-2:2),A.map((function(e,t){switch(t){case 0:return e.add(n,i);case 1:return e.add(n+r,i);case 2:return e.add(n+r,i+a);case 3:return e.add(n,i+a)}return e})));t.inset?(c.path(o),c.ctx.clip(),c.mask(l)):(c.mask(o),c.ctx.clip(),c.path(l)),c.ctx.shadowOffsetX=t.offsetX.number+s,c.ctx.shadowOffsetY=t.offsetY.number,c.ctx.shadowColor=st(t.color),c.ctx.shadowBlur=t.blur.number,c.ctx.fillStyle=t.inset?st(t.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()})),i.label=2;case 2:a=0,o=0,s=n,i.label=3;case 3:return o<s.length?0!==(l=s[o]).style&&!ot(l.color)&&l.width>0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,a,e.curves,2)]:[3,11]:[3,13];case 4:return i.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,a,e.curves,3)];case 6:return i.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,a,e.curves)];case 8:return i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,a,e.curves)];case 10:i.sent(),i.label=11;case 11:a++,i.label=12;case 12:return o++,[3,3];case 13:return[2]}}))}))},A.prototype.renderDashedDottedBorder=function(e,t,A,r,a){return n(this,void 0,void 0,(function(){var n,o,s,l,c,u,h,d,g,p,f,m,v,b,B,C;return i(this,(function(i){return this.ctx.save(),n=function(e,t){switch(t){case 0:return Sr(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Sr(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Sr(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return Sr(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}}(r,A),o=Er(r,A),2===a&&(this.path(o),this.ctx.clip()),hr(o[0])?(s=o[0].start.x,l=o[0].start.y):(s=o[0].x,l=o[0].y),hr(o[1])?(c=o[1].end.x,u=o[1].end.y):(c=o[1].x,u=o[1].y),h=0===A||2===A?Math.abs(s-c):Math.abs(l-u),this.ctx.beginPath(),3===a?this.formatPath(n):this.formatPath(o.slice(0,2)),d=t<3?3*t:2*t,g=t<3?2*t:t,3===a&&(d=t,g=t),p=!0,h<=2*d?p=!1:h<=2*d+g?(d*=f=h/(2*d+g),g*=f):(m=Math.floor((h+g)/(d+g)),v=(h-m*d)/(m-1),g=(b=(h-(m+1)*d)/m)<=0||Math.abs(g-v)<Math.abs(g-b)?v:b),p&&(3===a?this.ctx.setLineDash([0,d+g]):this.ctx.setLineDash([d,g])),3===a?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=st(e),this.ctx.stroke(),this.ctx.setLineDash([]),2===a&&(hr(o[0])&&(B=o[3],C=o[0],this.ctx.beginPath(),this.formatPath([new lr(B.end.x,B.end.y),new lr(C.start.x,C.start.y)]),this.ctx.stroke()),hr(o[1])&&(B=o[1],C=o[2],this.ctx.beginPath(),this.formatPath([new lr(B.end.x,B.end.y),new lr(C.start.x,C.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},A.prototype.render=function(e){return n(this,void 0,void 0,(function(){var t;return i(this,(function(A){switch(A.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=st(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=Fr(e),[4,this.renderStack(t)];case 1:return A.sent(),this.applyEffects([]),[2,this.canvas]}}))}))},A}(Or),_r=function(e){return e instanceof Ai||e instanceof ti||e instanceof ei&&"radio"!==e.type&&"checkbox"!==e.type},Rr=function(e,t){switch(e){case 0:return pr(t);case 2:return function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]}(t);case 1:default:return fr(t)}},Vr=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Gr=["-apple-system","system-ui"],Kr=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter((function(e){return-1===Gr.indexOf(e)})):e},zr=function(e){function A(t,A){var n=e.call(this,t,A)||this;return n.canvas=A.canvas?A.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=A,n.canvas.width=Math.floor(A.width*A.scale),n.canvas.height=Math.floor(A.height*A.scale),n.canvas.style.width=A.width+"px",n.canvas.style.height=A.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-A.x,-A.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+A.width+"x"+A.height+" at "+A.x+","+A.y+") with scale "+A.scale),n}return t(A,e),A.prototype.render=function(e){return n(this,void 0,void 0,(function(){var t,A;return i(this,(function(n){switch(n.label){case 0:return t=In(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,Wr(t)];case 1:return A=n.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=st(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(A,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},A}(Or),Wr=function(e){return new Promise((function(t,A){var n=new Image;n.onload=function(){t(n)},n.onerror=A,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},jr=function(){function e(e){var t=e.id,A=e.enabled;this.id=t,this.enabled=A,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,r([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,r([this.id,this.getTime()+"ms"],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,r([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,r([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.instances={},e}(),Xr=function(){function e(t,A){var n;this.windowBounds=A,this.instanceName="#"+e.instanceCount++,this.logger=new jr({id:this.instanceName,enabled:t.logging}),this.cache=null!==(n=t.cache)&&void 0!==n?n:new er(this,t)}return e.instanceCount=1,e}();"undefined"!=typeof window&&$i.setContext(window);var Yr=function(e,t){return n(void 0,void 0,void 0,(function(){var n,r,s,l,c,u,h,d,g,p,f,m,v,b,B,C,w,y,x,F,E,S,Q,k,L,U,I,T,N,D,P,M,O,H,_,R,V,G;return i(this,(function(i){switch(i.label){case 0:if(!e||"object"!=typeof e)return[2,Promise.reject("Invalid element provided as first argument")];if(!(n=e.ownerDocument))throw new Error("Element is not attached to a Document");if(!(r=n.defaultView))throw new Error("Document is not attached to a Window");return s={allowTaint:null!==(S=t.allowTaint)&&void 0!==S&&S,imageTimeout:null!==(Q=t.imageTimeout)&&void 0!==Q?Q:15e3,proxy:t.proxy,useCORS:null!==(k=t.useCORS)&&void 0!==k&&k},l=A({logging:null===(L=t.logging)||void 0===L||L,cache:t.cache},s),c={windowWidth:null!==(U=t.windowWidth)&&void 0!==U?U:r.innerWidth,windowHeight:null!==(I=t.windowHeight)&&void 0!==I?I:r.innerHeight,scrollX:null!==(T=t.scrollX)&&void 0!==T?T:r.pageXOffset,scrollY:null!==(N=t.scrollY)&&void 0!==N?N:r.pageYOffset},u=new a(c.scrollX,c.scrollY,c.windowWidth,c.windowHeight),h=new Xr(l,u),d=null!==(D=t.foreignObjectRendering)&&void 0!==D&&D,g={allowTaint:null!==(P=t.allowTaint)&&void 0!==P&&P,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:d,copyStyles:d},h.logger.debug("Starting document clone with size "+u.width+"x"+u.height+" scrolled to "+-u.left+","+-u.top),p=new Oi(h,e,g),(f=p.clonedReferenceElement)?[4,p.toIFrame(n,u)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=i.sent(),v=mi(f)||"HTML"===f.tagName?function(e){var t=e.body,A=e.documentElement;if(!t||!A)throw new Error("Unable to get document size");var n=Math.max(Math.max(t.scrollWidth,A.scrollWidth),Math.max(t.offsetWidth,A.offsetWidth),Math.max(t.clientWidth,A.clientWidth)),i=Math.max(Math.max(t.scrollHeight,A.scrollHeight),Math.max(t.offsetHeight,A.offsetHeight),Math.max(t.clientHeight,A.clientHeight));return new a(0,0,n,i)}(f.ownerDocument):o(h,f),b=v.width,B=v.height,C=v.left,w=v.top,y=Jr(h,f,t.backgroundColor),x={canvas:t.canvas,backgroundColor:y,scale:null!==(O=null!==(M=t.scale)&&void 0!==M?M:r.devicePixelRatio)&&void 0!==O?O:1,x:(null!==(H=t.x)&&void 0!==H?H:0)+C,y:(null!==(_=t.y)&&void 0!==_?_:0)+w,width:null!==(R=t.width)&&void 0!==R?R:Math.ceil(b),height:null!==(V=t.height)&&void 0!==V?V:Math.ceil(B)},d?(h.logger.debug("Document cloned, using foreign object rendering"),[4,new zr(h,x).render(f)]):[3,3];case 2:return F=i.sent(),[3,5];case 3:return h.logger.debug("Document cloned, element located at "+C+","+w+" with size "+b+"x"+B+" using computed rendering"),h.logger.debug("Starting DOM parsing"),E=ai(h,f),y===E.styles.backgroundColor&&(E.styles.backgroundColor=mt.TRANSPARENT),h.logger.debug("Starting renderer for element at "+x.x+","+x.y+" with size "+x.width+"x"+x.height),[4,new Hr(h,x).render(E)];case 4:F=i.sent(),i.label=5;case 5:return(null===(G=t.removeContainer)||void 0===G||G)&&(Oi.destroy(m)||h.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),h.logger.debug("Finished rendering"),[2,F]}}))}))},Jr=function(e,t,A){var n=t.ownerDocument,i=n.documentElement?ft(e,getComputedStyle(n.documentElement).backgroundColor):mt.TRANSPARENT,r=n.body?ft(e,getComputedStyle(n.body).backgroundColor):mt.TRANSPARENT,a="string"==typeof A?ft(e,A):null===A?mt.TRANSPARENT:4294967295;return t===n.documentElement?ot(i)?ot(r)?a:r:i:a};return function(e,t){return void 0===t&&(t={}),Yr(e,t)}}()},function(e,t,A){
/*! @license DOMPurify 2.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.7/LICENSE */
e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,A){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,A)}function A(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function n(e,i,r){return(n=A()?Reflect.construct:function(e,A,n){var i=[null];i.push.apply(i,A);var r=new(Function.bind.apply(e,i));return n&&t(r,n.prototype),r}).apply(null,arguments)}function i(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var A=Object.prototype.toString.call(e).slice(8,-1);return"Object"===A&&e.constructor&&(A=e.constructor.name),"Map"===A||"Set"===A?Array.from(e):"Arguments"===A||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var A=0,n=new Array(t);A<t;A++)n[A]=e[A];return n}var a=Object.hasOwnProperty,o=Object.setPrototypeOf,s=Object.isFrozen,l=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,u=Object.freeze,h=Object.seal,d=Object.create,g="undefined"!=typeof Reflect&&Reflect,p=g.apply,f=g.construct;p||(p=function(e,t,A){return e.apply(t,A)}),u||(u=function(e){return e}),h||(h=function(e){return e}),f||(f=function(e,t){return n(e,i(t))});var m,v=k(Array.prototype.forEach),b=k(Array.prototype.pop),B=k(Array.prototype.push),C=k(String.prototype.toLowerCase),w=k(String.prototype.toString),y=k(String.prototype.match),x=k(String.prototype.replace),F=k(String.prototype.indexOf),E=k(String.prototype.trim),S=k(RegExp.prototype.test),Q=(m=TypeError,function(){for(var e=arguments.length,t=new Array(e),A=0;A<e;A++)t[A]=arguments[A];return f(m,t)});function k(e){return function(t){for(var A=arguments.length,n=new Array(A>1?A-1:0),i=1;i<A;i++)n[i-1]=arguments[i];return p(e,t,n)}}function L(e,t,A){var n;A=null!==(n=A)&&void 0!==n?n:C,o&&o(e,null);for(var i=t.length;i--;){var r=t[i];if("string"==typeof r){var a=A(r);a!==r&&(s(t)||(t[i]=a),r=a)}e[r]=!0}return e}function U(e){var t,A=d(null);for(t in e)!0===p(a,e,[t])&&(A[t]=e[t]);return A}function I(e,t){for(;null!==e;){var A=c(e,t);if(A){if(A.get)return k(A.get);if("function"==typeof A.value)return k(A.value)}e=l(e)}return function(e){return console.warn("fallback value for",e),null}}var T=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),N=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),D=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),P=u(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),M=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),O=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),H=u(["#text"]),_=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),R=u(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),V=u(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),G=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),K=h(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z=h(/<%[\w\W]*|[\w\W]*%>/gm),W=h(/\${[\w\W]*}/gm),j=h(/^data-[\-\w.\u00B7-\uFFFF]/),X=h(/^aria-[\-\w]+$/),Y=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=h(/^(?:\w+script|data):/i),q=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=h(/^html$/i),$=function(){return"undefined"==typeof window?null:window},ee=function(t,A){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var n=null;A.currentScript&&A.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=A.currentScript.getAttribute("data-tt-policy-suffix"));var i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(r){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function te(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:$(),A=function(e){return te(e)};if(A.version="2.4.7",A.removed=[],!t||!t.document||9!==t.document.nodeType)return A.isSupported=!1,A;var n=t.document,r=t.document,a=t.DocumentFragment,o=t.HTMLTemplateElement,s=t.Node,l=t.Element,c=t.NodeFilter,h=t.NamedNodeMap,d=void 0===h?t.NamedNodeMap||t.MozNamedAttrMap:h,g=t.HTMLFormElement,p=t.DOMParser,f=t.trustedTypes,m=l.prototype,k=I(m,"cloneNode"),Ae=I(m,"nextSibling"),ne=I(m,"childNodes"),ie=I(m,"parentNode");if("function"==typeof o){var re=r.createElement("template");re.content&&re.content.ownerDocument&&(r=re.content.ownerDocument)}var ae=ee(f,n),oe=ae?ae.createHTML(""):"",se=r,le=se.implementation,ce=se.createNodeIterator,ue=se.createDocumentFragment,he=se.getElementsByTagName,de=n.importNode,ge={};try{ge=U(r).documentMode?r.documentMode:{}}catch(Tt){}var pe={};A.isSupported="function"==typeof ie&&le&&le.createHTMLDocument!==undefined&&9!==ge;var fe,me,ve=K,be=z,Be=W,Ce=j,we=X,ye=J,xe=q,Fe=Y,Ee=null,Se=L({},[].concat(i(T),i(N),i(D),i(M),i(H))),Qe=null,ke=L({},[].concat(i(_),i(R),i(V),i(G))),Le=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ue=null,Ie=null,Te=!0,Ne=!0,De=!1,Pe=!0,Me=!1,Oe=!1,He=!1,_e=!1,Re=!1,Ve=!1,Ge=!1,Ke=!0,ze=!1,We="user-content-",je=!0,Xe=!1,Ye={},Je=null,qe=L({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ze=null,$e=L({},["audio","video","img","source","image","track"]),et=null,tt=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),At="http://www.w3.org/1998/Math/MathML",nt="http://www.w3.org/2000/svg",it="http://www.w3.org/1999/xhtml",rt=it,at=!1,ot=null,st=L({},[At,nt,it],w),lt=["application/xhtml+xml","text/html"],ct="text/html",ut=null,ht=r.createElement("form"),dt=function(e){return e instanceof RegExp||e instanceof Function},gt=function(t){ut&&ut===t||(t&&"object"===e(t)||(t={}),t=U(t),fe=fe=-1===lt.indexOf(t.PARSER_MEDIA_TYPE)?ct:t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===fe?w:C,Ee="ALLOWED_TAGS"in t?L({},t.ALLOWED_TAGS,me):Se,Qe="ALLOWED_ATTR"in t?L({},t.ALLOWED_ATTR,me):ke,ot="ALLOWED_NAMESPACES"in t?L({},t.ALLOWED_NAMESPACES,w):st,et="ADD_URI_SAFE_ATTR"in t?L(U(tt),t.ADD_URI_SAFE_ATTR,me):tt,Ze="ADD_DATA_URI_TAGS"in t?L(U($e),t.ADD_DATA_URI_TAGS,me):$e,Je="FORBID_CONTENTS"in t?L({},t.FORBID_CONTENTS,me):qe,Ue="FORBID_TAGS"in t?L({},t.FORBID_TAGS,me):{},Ie="FORBID_ATTR"in t?L({},t.FORBID_ATTR,me):{},Ye="USE_PROFILES"in t&&t.USE_PROFILES,Te=!1!==t.ALLOW_ARIA_ATTR,Ne=!1!==t.ALLOW_DATA_ATTR,De=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Me=t.SAFE_FOR_TEMPLATES||!1,Oe=t.WHOLE_DOCUMENT||!1,Re=t.RETURN_DOM||!1,Ve=t.RETURN_DOM_FRAGMENT||!1,Ge=t.RETURN_TRUSTED_TYPE||!1,_e=t.FORCE_BODY||!1,Ke=!1!==t.SANITIZE_DOM,ze=t.SANITIZE_NAMED_PROPS||!1,je=!1!==t.KEEP_CONTENT,Xe=t.IN_PLACE||!1,Fe=t.ALLOWED_URI_REGEXP||Fe,rt=t.NAMESPACE||it,Le=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&dt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Le.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&dt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Le.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Le.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Me&&(Ne=!1),Ve&&(Re=!0),Ye&&(Ee=L({},i(H)),Qe=[],!0===Ye.html&&(L(Ee,T),L(Qe,_)),!0===Ye.svg&&(L(Ee,N),L(Qe,R),L(Qe,G)),!0===Ye.svgFilters&&(L(Ee,D),L(Qe,R),L(Qe,G)),!0===Ye.mathMl&&(L(Ee,M),L(Qe,V),L(Qe,G))),t.ADD_TAGS&&(Ee===Se&&(Ee=U(Ee)),L(Ee,t.ADD_TAGS,me)),t.ADD_ATTR&&(Qe===ke&&(Qe=U(Qe)),L(Qe,t.ADD_ATTR,me)),t.ADD_URI_SAFE_ATTR&&L(et,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&(Je===qe&&(Je=U(Je)),L(Je,t.FORBID_CONTENTS,me)),je&&(Ee["#text"]=!0),Oe&&L(Ee,["html","head","body"]),Ee.table&&(L(Ee,["tbody"]),delete Ue.tbody),u&&u(t),ut=t)},pt=L({},["mi","mo","mn","ms","mtext"]),ft=L({},["foreignobject","desc","title","annotation-xml"]),mt=L({},["title","style","font","a","script"]),vt=L({},N);L(vt,D),L(vt,P);var bt=L({},M);L(bt,O);var Bt=function(e){var t=ie(e);t&&t.tagName||(t={namespaceURI:rt,tagName:"template"});var A=C(e.tagName),n=C(t.tagName);return!!ot[e.namespaceURI]&&(e.namespaceURI===nt?t.namespaceURI===it?"svg"===A:t.namespaceURI===At?"svg"===A&&("annotation-xml"===n||pt[n]):Boolean(vt[A]):e.namespaceURI===At?t.namespaceURI===it?"math"===A:t.namespaceURI===nt?"math"===A&&ft[n]:Boolean(bt[A]):e.namespaceURI===it?!(t.namespaceURI===nt&&!ft[n])&&!(t.namespaceURI===At&&!pt[n])&&!bt[A]&&(mt[A]||!vt[A]):!("application/xhtml+xml"!==fe||!ot[e.namespaceURI]))},Ct=function(e){B(A.removed,{element:e});try{e.parentNode.removeChild(e)}catch(Tt){try{e.outerHTML=oe}catch(Tt){e.remove()}}},wt=function(e,t){try{B(A.removed,{attribute:t.getAttributeNode(e),from:t})}catch(Tt){B(A.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Qe[e])if(Re||Ve)try{Ct(t)}catch(Tt){}else try{t.setAttribute(e,"")}catch(Tt){}},yt=function(e){var t,A;if(_e)e="<remove></remove>"+e;else{var n=y(e,/^[\r\n\t ]+/);A=n&&n[0]}"application/xhtml+xml"===fe&&rt===it&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=ae?ae.createHTML(e):e;if(rt===it)try{t=(new p).parseFromString(i,fe)}catch(Tt){}if(!t||!t.documentElement){t=le.createDocument(rt,"template",null);try{t.documentElement.innerHTML=at?oe:i}catch(Tt){}}var a=t.body||t.documentElement;return e&&A&&a.insertBefore(r.createTextNode(A),a.childNodes[0]||null),rt===it?he.call(t,Oe?"html":"body")[0]:Oe?t.documentElement:a},xt=function(e){return ce.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Ft=function(e){return e instanceof g&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Et=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},St=function(e,t,n){pe[e]&&v(pe[e],(function(e){e.call(A,t,n,ut)}))},Qt=function(e){var t;if(St("beforeSanitizeElements",e,null),Ft(e))return Ct(e),!0;if(S(/[\u0080-\uFFFF]/,e.nodeName))return Ct(e),!0;var n=me(e.nodeName);if(St("uponSanitizeElement",e,{tagName:n,allowedTags:Ee}),e.hasChildNodes()&&!Et(e.firstElementChild)&&(!Et(e.content)||!Et(e.content.firstElementChild))&&S(/<[/\w]/g,e.innerHTML)&&S(/<[/\w]/g,e.textContent))return Ct(e),!0;if("select"===n&&S(/<template/i,e.innerHTML))return Ct(e),!0;if(!Ee[n]||Ue[n]){if(!Ue[n]&&Lt(n)){if(Le.tagNameCheck instanceof RegExp&&S(Le.tagNameCheck,n))return!1;if(Le.tagNameCheck instanceof Function&&Le.tagNameCheck(n))return!1}if(je&&!Je[n]){var i=ie(e)||e.parentNode,r=ne(e)||e.childNodes;if(r&&i)for(var a=r.length-1;a>=0;--a)i.insertBefore(k(r[a],!0),Ae(e))}return Ct(e),!0}return e instanceof l&&!Bt(e)?(Ct(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!S(/<\/no(script|embed|frames)/i,e.innerHTML)?(Me&&3===e.nodeType&&(t=e.textContent,t=x(t,ve," "),t=x(t,be," "),t=x(t,Be," "),e.textContent!==t&&(B(A.removed,{element:e.cloneNode()}),e.textContent=t)),St("afterSanitizeElements",e,null),!1):(Ct(e),!0)},kt=function(e,t,A){if(Ke&&("id"===t||"name"===t)&&(A in r||A in ht))return!1;if(Ne&&!Ie[t]&&S(Ce,t));else if(Te&&S(we,t));else if(!Qe[t]||Ie[t]){if(!(Lt(e)&&(Le.tagNameCheck instanceof RegExp&&S(Le.tagNameCheck,e)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(e))&&(Le.attributeNameCheck instanceof RegExp&&S(Le.attributeNameCheck,t)||Le.attributeNameCheck instanceof Function&&Le.attributeNameCheck(t))||"is"===t&&Le.allowCustomizedBuiltInElements&&(Le.tagNameCheck instanceof RegExp&&S(Le.tagNameCheck,A)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(A))))return!1}else if(et[t]);else if(S(Fe,x(A,xe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==F(A,"data:")||!Ze[e])if(De&&!S(ye,x(A,xe,"")));else if(A)return!1;return!0},Lt=function(e){return e.indexOf("-")>0},Ut=function(t){var n,i,r,a;St("beforeSanitizeAttributes",t,null);var o=t.attributes;if(o){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Qe};for(a=o.length;a--;){var l=n=o[a],c=l.name,u=l.namespaceURI;if(i="value"===c?n.value:E(n.value),r=me(c),s.attrName=r,s.attrValue=i,s.keepAttr=!0,s.forceKeepAttr=undefined,St("uponSanitizeAttribute",t,s),i=s.attrValue,!s.forceKeepAttr&&(wt(c,t),s.keepAttr))if(Pe||!S(/\/>/i,i)){Me&&(i=x(i,ve," "),i=x(i,be," "),i=x(i,Be," "));var h=me(t.nodeName);if(kt(h,r,i)){if(!ze||"id"!==r&&"name"!==r||(wt(c,t),i=We+i),ae&&"object"===e(f)&&"function"==typeof f.getAttributeType)if(u);else switch(f.getAttributeType(h,r)){case"TrustedHTML":i=ae.createHTML(i);break;case"TrustedScriptURL":i=ae.createScriptURL(i)}try{u?t.setAttributeNS(u,c,i):t.setAttribute(c,i),b(A.removed)}catch(Tt){}}}else wt(c,t)}St("afterSanitizeAttributes",t,null)}},It=function Nt(e){var t,A=xt(e);for(St("beforeSanitizeShadowDOM",e,null);t=A.nextNode();)St("uponSanitizeShadowNode",t,null),Qt(t)||(t.content instanceof a&&Nt(t.content),Ut(t));St("afterSanitizeShadowDOM",e,null)};return A.sanitize=function(i){var r,o,l,c,u,h=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if((at=!i)&&(i="\x3c!--\x3e"),"string"!=typeof i&&!Et(i)){if("function"!=typeof i.toString)throw Q("toString is not a function");if("string"!=typeof(i=i.toString()))throw Q("dirty is not a string, aborting")}if(!A.isSupported){if("object"===e(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof i)return t.toStaticHTML(i);if(Et(i))return t.toStaticHTML(i.outerHTML)}return i}if(He||gt(h),A.removed=[],"string"==typeof i&&(Xe=!1),Xe){if(i.nodeName){var d=me(i.nodeName);if(!Ee[d]||Ue[d])throw Q("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof s)1===(o=(r=yt("\x3c!----\x3e")).ownerDocument.importNode(i,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!Re&&!Me&&!Oe&&-1===i.indexOf("<"))return ae&&Ge?ae.createHTML(i):i;if(!(r=yt(i)))return Re?null:Ge?oe:""}r&&_e&&Ct(r.firstChild);for(var g=xt(Xe?i:r);l=g.nextNode();)3===l.nodeType&&l===c||Qt(l)||(l.content instanceof a&&It(l.content),Ut(l),c=l);if(c=null,Xe)return i;if(Re){if(Ve)for(u=ue.call(r.ownerDocument);r.firstChild;)u.appendChild(r.firstChild);else u=r;return(Qe.shadowroot||Qe.shadowrootmod)&&(u=de.call(n,u,!0)),u}var p=Oe?r.outerHTML:r.innerHTML;return Oe&&Ee["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&S(Z,r.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+p),Me&&(p=x(p,ve," "),p=x(p,be," "),p=x(p,Be," ")),ae&&Ge?ae.createHTML(p):p},A.setConfig=function(e){gt(e),He=!0},A.clearConfig=function(){ut=null,He=!1},A.isValidAttribute=function(e,t,A){ut||gt({});var n=me(e),i=me(t);return kt(n,i,A)},A.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],B(pe[e],t))},A.removeHook=function(e){if(pe[e])return b(pe[e])},A.removeHooks=function(e){pe[e]&&(pe[e]=[])},A.removeAllHooks=function(){pe={}},A}()}()},function(e,t,A){"use strict";A.r(t),function(e){A.d(t,"AElement",(function(){return Ye})),A.d(t,"AnimateColorElement",(function(){return Ge})),A.d(t,"AnimateElement",(function(){return Ve})),A.d(t,"AnimateTransformElement",(function(){return Ke})),A.d(t,"BoundingBox",(function(){return be})),A.d(t,"CB1",(function(){return V})),A.d(t,"CB2",(function(){return G})),A.d(t,"CB3",(function(){return K})),A.d(t,"CB4",(function(){return z})),A.d(t,"Canvg",(function(){return Et})),A.d(t,"CircleElement",(function(){return ke})),A.d(t,"ClipPathElement",(function(){return ht})),A.d(t,"DefsElement",(function(){return Pe})),A.d(t,"DescElement",(function(){return bt})),A.d(t,"Document",(function(){return yt})),A.d(t,"Element",(function(){return de})),A.d(t,"EllipseElement",(function(){return Le})),A.d(t,"FeColorMatrixElement",(function(){return lt})),A.d(t,"FeCompositeElement",(function(){return ft})),A.d(t,"FeDropShadowElement",(function(){return gt})),A.d(t,"FeGaussianBlurElement",(function(){return mt})),A.d(t,"FeMorphologyElement",(function(){return pt})),A.d(t,"FilterElement",(function(){return dt})),A.d(t,"Font",(function(){return ve})),A.d(t,"FontElement",(function(){return ze})),A.d(t,"FontFaceElement",(function(){return We})),A.d(t,"GElement",(function(){return Me})),A.d(t,"GlyphElement",(function(){return ye})),A.d(t,"GradientElement",(function(){return Oe})),A.d(t,"ImageElement",(function(){return et})),A.d(t,"LineElement",(function(){return Ue})),A.d(t,"LinearGradientElement",(function(){return He})),A.d(t,"MarkerElement",(function(){return De})),A.d(t,"MaskElement",(function(){return ct})),A.d(t,"Matrix",(function(){return se})),A.d(t,"MissingGlyphElement",(function(){return je})),A.d(t,"Mouse",(function(){return Z})),A.d(t,"PSEUDO_ZERO",(function(){return O})),A.d(t,"Parser",(function(){return ie})),A.d(t,"PathElement",(function(){return we})),A.d(t,"PathParser",(function(){return Be})),A.d(t,"PatternElement",(function(){return Ne})),A.d(t,"Point",(function(){return q})),A.d(t,"PolygonElement",(function(){return Te})),A.d(t,"PolylineElement",(function(){return Ie})),A.d(t,"Property",(function(){return Y})),A.d(t,"QB1",(function(){return W})),A.d(t,"QB2",(function(){return j})),A.d(t,"QB3",(function(){return X})),A.d(t,"RadialGradientElement",(function(){return _e})),A.d(t,"RectElement",(function(){return Qe})),A.d(t,"RenderedElement",(function(){return Ce})),A.d(t,"Rotate",(function(){return ae})),A.d(t,"SVGElement",(function(){return Se})),A.d(t,"SVGFontLoader",(function(){return At})),A.d(t,"Scale",(function(){return oe})),A.d(t,"Screen",(function(){return te})),A.d(t,"Skew",(function(){return le})),A.d(t,"SkewX",(function(){return ce})),A.d(t,"SkewY",(function(){return ue})),A.d(t,"StopElement",(function(){return Re})),A.d(t,"StyleElement",(function(){return nt})),A.d(t,"SymbolElement",(function(){return tt})),A.d(t,"TRefElement",(function(){return Xe})),A.d(t,"TSpanElement",(function(){return Fe})),A.d(t,"TextElement",(function(){return xe})),A.d(t,"TextPathElement",(function(){return Ze})),A.d(t,"TitleElement",(function(){return vt})),A.d(t,"Transform",(function(){return he})),A.d(t,"Translate",(function(){return re})),A.d(t,"UnknownElement",(function(){return ge})),A.d(t,"UseElement",(function(){return it})),A.d(t,"ViewPort",(function(){return J})),A.d(t,"compressSpaces",(function(){return C})),A.d(t,"default",(function(){return Et})),A.d(t,"getSelectorSpecificity",(function(){return M})),A.d(t,"normalizeAttributeName",(function(){return E})),A.d(t,"normalizeColor",(function(){return Q})),A.d(t,"parseExternalUrl",(function(){return S})),A.d(t,"presets",(function(){return B})),A.d(t,"toNumbers",(function(){return x})),A.d(t,"trimLeft",(function(){return w})),A.d(t,"trimRight",(function(){return y})),A.d(t,"vectorMagnitude",(function(){return H})),A.d(t,"vectorsAngle",(function(){return R})),A.d(t,"vectorsRatio",(function(){return _}));A(1311);var n=A(1336),i=A.n(n),r=(A(1337),A(1347),A(1349),A(167),A(1353),A(253)),a=A.n(r),o=(A(109),A(1356),A(1357),A(1358)),s=A.n(o),l=(A(117),A(1360)),c=A.n(l),u=(A(88),A(1361),A(1362),A(1363)),h=(A(1364),A(1366));function d(e,t){var A="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(A)return(A=A.call(e)).next.bind(A);if(Array.isArray(e)||(A=function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var A=Object.prototype.toString.call(e).slice(8,-1);"Object"===A&&e.constructor&&(A=e.constructor.name);if("Map"===A||"Set"===A)return Array.from(e);if("Arguments"===A||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return g(e,t)}(e))||t&&e&&"number"==typeof e.length){A&&(e=A);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var A=0,n=new Array(t);A<t;A++)n[A]=e[A];return n}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,m(e,t)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t){for(var A=0;A<t.length;A++){var n=t[A];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t,A){return t&&v(e.prototype,t),A&&v(e,A),e}var B=Object.freeze({__proto__:null,offscreen:function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},t=e.DOMParser,A={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas:function(e,t){return new OffscreenCanvas(e,t)},createImage:function(e){return i()(regeneratorRuntime.mark((function t(){var A,n,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(e);case 2:return A=t.sent,t.next=5,A.blob();case 5:return n=t.sent,t.next=8,createImageBitmap(n);case 8:return i=t.sent,t.abrupt("return",i);case 10:case"end":return t.stop()}}),t)})))()}};return"undefined"==typeof DOMParser&&void 0!==t||Reflect.deleteProperty(A,"DOMParser"),A},node:function(e){var t=e.DOMParser,A=e.canvas;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:e.fetch,createCanvas:A.createCanvas,createImage:A.loadImage}}});function C(e){return e.replace(/(?!\u3000)\s+/gm," ")}function w(e){return e.replace(/^[\n \t]+/,"")}function y(e){return e.replace(/[\n \t]+$/,"")}function x(e){return((e||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var F=/^[A-Z-]+$/;function E(e){return F.test(e)?e.toLowerCase():e}function S(e){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(e)||[];return t[2]||t[3]||t[4]}function Q(e){if(!e.startsWith("rgb"))return e;var t=3;return e.replace(/\d+(\.\d+)?/g,(function(e,A){return t--&&A?String(Math.round(parseFloat(e))):e}))}var k=/(\[[^\]]+\])/g,L=/(#[^\s+>~.[:]+)/g,U=/(\.[^\s+>~.[:]+)/g,I=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,T=/(:[\w-]+\([^)]*\))/gi,N=/(:[^\s+>~.[:]+)/g,D=/([^\s+>~.[:]+)/g;function P(e,t){var A=t.exec(e);return A?[e.replace(t," "),A.length]:[e,0]}function M(e){var t=[0,0,0],A=e.replace(/:not\(([^)]*)\)/g,"     $1 ").replace(/{[\s\S]*/gm," "),n=0,i=P(A,k);A=i[0],n=i[1],t[1]+=n;var r=P(A,L);A=r[0],n=r[1],t[0]+=n;var a=P(A,U);A=a[0],n=a[1],t[1]+=n;var o=P(A,I);A=o[0],n=o[1],t[2]+=n;var s=P(A,T);A=s[0],n=s[1],t[1]+=n;var l=P(A,N);A=l[0],n=l[1],t[1]+=n;var c=P(A=A.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),D);return A=c[0],n=c[1],t[2]+=n,t.join("")}var O=1e-8;function H(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2))}function _(e,t){return(e[0]*t[0]+e[1]*t[1])/(H(e)*H(t))}function R(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(_(e,t))}function V(e){return e*e*e}function G(e){return 3*e*e*(1-e)}function K(e){return 3*e*(1-e)*(1-e)}function z(e){return(1-e)*(1-e)*(1-e)}function W(e){return e*e}function j(e){return 2*e*(1-e)}function X(e){return(1-e)*(1-e)}var Y=function(){function e(e,t,A){this.document=e,this.name=t,this.value=A,this.isNormalizedColor=!1}e.empty=function(t){return new e(t,"EMPTY","")};var t=e.prototype;return t.split=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:" ",A=this.document,n=this.name;return C(this.getString()).trim().split(t).map((function(t){return new e(A,n,t)}))},t.hasValue=function(e){var t=this.value;return null!==t&&""!==t&&(e||0!==t)&&void 0!==t},t.isString=function(e){var t=this.value,A="string"==typeof t;return A&&e?e.test(t):A},t.isUrlDefinition=function(){return this.isString(/^url\(/)},t.isPixels=function(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}},t.setValue=function(e){return this.value=e,this},t.getValue=function(e){return void 0===e||this.hasValue()?this.value:e},t.getNumber=function(e){if(!this.hasValue())return void 0===e?0:parseFloat(e);var t=this.value,A=parseFloat(t);return this.isString(/%$/)&&(A/=100),A},t.getString=function(e){return void 0===e||this.hasValue()?"undefined"==typeof this.value?"":String(this.value):String(e)},t.getColor=function(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=Q(t),this.value=t),t},t.getDpi=function(){return 96},t.getRem=function(){return this.document.rootEmSize},t.getEm=function(){return this.document.emSize},t.getUnits=function(){return this.getString().replace(/[0-9.-]/g,"")},t.getPixels=function(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1];if(!this.hasValue())return 0;var A="boolean"==typeof e?[undefined,e]:[e],n=A[0],i=A[1],r=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(r.computeSize("x"),r.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(r.computeSize("x"),r.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*r.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*r.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&i:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*r.computeSize(n);default:var a=this.getNumber();return t&&a<1?a*r.computeSize(n):a}},t.getMilliseconds=function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0},t.getRadians=function(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}},t.getDefinition=function(){var e=this.getString(),t=/#([^)'"]+)/.exec(e);return t&&(t=t[1]),t||(t=e),this.document.definitions[t]},t.getFillStyleDefinition=function(e,t){var A=this.getDefinition();if(!A)return null;if("function"==typeof A.createGradient)return A.createGradient(this.document.ctx,e,t);if("function"==typeof A.createPattern){if(A.getHrefAttribute().hasValue()){var n=A.getAttribute("patternTransform");A=A.getHrefAttribute().getDefinition(),n.hasValue()&&A.getAttribute("patternTransform",!0).setValue(n.value)}return A.createPattern(this.document.ctx,e,t)}return null},t.getTextBaseline=function(){return this.hasValue()?e.textBaselineMapping[this.getString()]:null},t.addOpacity=function(t){for(var A=this.getColor(),n=A.length,i=0,r=0;r<n&&(","===A[r]&&i++,3!==i);r++);if(t.hasValue()&&this.isString()&&3!==i){var a=new c.a(A);a.ok&&(a.alpha=t.getNumber(),A=a.toRGBA())}return new e(this.document,this.name,A)},e}();Y.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};var J=function(){function e(){this.viewPorts=[]}var t=e.prototype;return t.clear=function(){this.viewPorts=[]},t.setCurrent=function(e,t){this.viewPorts.push({width:e,height:t})},t.removeCurrent=function(){this.viewPorts.pop()},t.getCurrent=function(){var e=this.viewPorts;return e[e.length-1]},t.computeSize=function(e){return"number"==typeof e?e:"x"===e?this.width:"y"===e?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)},b(e,[{key:"width",get:function(){return this.getCurrent().width}},{key:"height",get:function(){return this.getCurrent().height}}]),e}(),q=function(){function e(e,t){this.x=e,this.y=t}e.parse=function(t){var A=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0,n=x(t),i=n[0],r=void 0===i?A:i,a=n[1],o=void 0===a?A:a;return new e(r,o)},e.parseScale=function(t){var A=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1,n=x(t),i=n[0],r=void 0===i?A:i,a=n[1],o=void 0===a?r:a;return new e(r,o)},e.parsePath=function(t){for(var A=x(t),n=A.length,i=[],r=0;r<n;r+=2)i.push(new e(A[r],A[r+1]));return i};var t=e.prototype;return t.angleTo=function(e){return Math.atan2(e.y-this.y,e.x-this.x)},t.applyTransform=function(e){var t=this.x,A=this.y,n=t*e[0]+A*e[2]+e[4],i=t*e[1]+A*e[3]+e[5];this.x=n,this.y=i},e}(),Z=function(){function e(e){this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}var t=e.prototype;return t.isWorking=function(){return this.working},t.start=function(){if(!this.working){var e=this.screen,t=this.onClick,A=this.onMouseMove,n=e.ctx.canvas;n.onclick=t,n.onmousemove=A,this.working=!0}},t.stop=function(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}},t.hasEvents=function(){return this.working&&this.events.length>0},t.runEvents=function(){if(this.working){var e=this.screen,t=this.events,A=this.eventElements,n=e.ctx.canvas.style;n&&(n.cursor=""),t.forEach((function(e,t){for(var n=e.run,i=A[t];i;)n(i),i=i.parent})),this.events=[],this.eventElements=[]}},t.checkPath=function(e,t){if(this.working&&t){var A=this.events,n=this.eventElements;A.forEach((function(A,i){var r=A.x,a=A.y;!n[i]&&t.isPointInPath&&t.isPointInPath(r,a)&&(n[i]=e)}))}},t.checkBoundingBox=function(e,t){if(this.working&&t){var A=this.events,n=this.eventElements;A.forEach((function(A,i){var r=A.x,a=A.y;!n[i]&&t.isPointInBox(r,a)&&(n[i]=e)}))}},t.mapXY=function(e,t){for(var A=this.screen,n=A.window,i=A.ctx,r=new q(e,t),a=i.canvas;a;)r.x-=a.offsetLeft,r.y-=a.offsetTop,a=a.offsetParent;return n.scrollX&&(r.x+=n.scrollX),n.scrollY&&(r.y+=n.scrollY),r},t.onClick=function(e){var t=this.mapXY(e.clientX,e.clientY),A=t.x,n=t.y;this.events.push({type:"onclick",x:A,y:n,run:function(e){e.onClick&&e.onClick()}})},t.onMouseMove=function(e){var t=this.mapXY(e.clientX,e.clientY),A=t.x,n=t.y;this.events.push({type:"onmousemove",x:A,y:n,run:function(e){e.onMouseMove&&e.onMouseMove()}})},e}(),$="undefined"!=typeof window?window:null,ee="undefined"!=typeof fetch?fetch.bind(undefined):null,te=function(){function e(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},A=t.fetch,n=void 0===A?ee:A,i=t.window,r=void 0===i?$:i;this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new J,this.mouse=new Z(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=n}var t=e.prototype;return t.wait=function(e){this.waits.push(e)},t.ready=function(){return this.readyPromise?this.readyPromise:Promise.resolve()},t.isReady=function(){if(this.isReadyLock)return!0;var e=this.waits.every((function(e){return e()}));return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e},t.setDefaults=function(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4},t.setViewBox=function(e){var t=e.document,A=e.ctx,n=e.aspectRatio,i=e.width,r=e.desiredWidth,a=e.height,o=e.desiredHeight,s=e.minX,l=void 0===s?0:s,c=e.minY,u=void 0===c?0:c,h=e.refX,d=e.refY,g=e.clip,p=void 0!==g&&g,f=e.clipX,m=void 0===f?0:f,v=e.clipY,b=void 0===v?0:v,B=C(n).replace(/^defer\s/,"").split(" "),w=B[0]||"xMidYMid",y=B[1]||"meet",x=i/r,F=a/o,E=Math.min(x,F),S=Math.max(x,F),Q=r,k=o;"meet"===y&&(Q*=E,k*=E),"slice"===y&&(Q*=S,k*=S);var L=new Y(t,"refX",h),U=new Y(t,"refY",d),I=L.hasValue()&&U.hasValue();if(I&&A.translate(-E*L.getPixels("x"),-E*U.getPixels("y")),p){var T=E*m,N=E*b;A.beginPath(),A.moveTo(T,N),A.lineTo(i,N),A.lineTo(i,a),A.lineTo(T,a),A.closePath(),A.clip()}if(!I){var D="meet"===y&&E===F,P="slice"===y&&S===F,M="meet"===y&&E===x,O="slice"===y&&S===x;w.startsWith("xMid")&&(D||P)&&A.translate(i/2-Q/2,0),w.endsWith("YMid")&&(M||O)&&A.translate(0,a/2-k/2),w.startsWith("xMax")&&(D||P)&&A.translate(i-Q,0),w.endsWith("YMax")&&(M||O)&&A.translate(0,a-k)}switch(!0){case"none"===w:A.scale(x,F);break;case"meet"===y:A.scale(E,E);break;case"slice"===y:A.scale(S,S)}A.translate(-l,-u)},t.start=function(e){var t=this,A=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n=A.enableRedraw,i=void 0!==n&&n,r=A.ignoreMouse,a=void 0!==r&&r,o=A.ignoreAnimation,l=void 0!==o&&o,c=A.ignoreDimensions,u=void 0!==c&&c,h=A.ignoreClear,d=void 0!==h&&h,g=A.forceRedraw,p=A.scaleWidth,f=A.scaleHeight,m=A.offsetX,v=A.offsetY,b=this.FRAMERATE,B=this.mouse,C=1e3/b;if(this.frameDuration=C,this.readyPromise=new Promise((function(e){t.resolveReady=e})),this.isReady()&&this.render(e,u,d,p,f,m,v),i){var w=Date.now(),y=w,x=0,F=function A(){w=Date.now(),(x=w-y)>=C&&(y=w-x%C,t.shouldUpdate(l,g)&&(t.render(e,u,d,p,f,m,v),B.runEvents())),t.intervalId=s()(A)};a||B.start(),this.intervalId=s()(F)}},t.stop=function(){this.intervalId&&(s.a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()},t.shouldUpdate=function(e,t){if(!e){var A=this.frameDuration,n=this.animations.reduce((function(e,t){return t.update(A)||e}),!1);if(n)return!0}return!("function"!=typeof t||!t())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())},t.render=function(e,t,A,n,i,r,a){var o=this.CLIENT_WIDTH,s=this.CLIENT_HEIGHT,l=this.viewPort,c=this.ctx,u=this.isFirstRender,h=c.canvas;l.clear(),h.width&&h.height?l.setCurrent(h.width,h.height):l.setCurrent(o,s);var d=e.getStyle("width"),g=e.getStyle("height");!t&&(u||"number"!=typeof n&&"number"!=typeof i)&&(d.hasValue()&&(h.width=d.getPixels("x"),h.style&&(h.style.width="".concat(h.width,"px"))),g.hasValue()&&(h.height=g.getPixels("y"),h.style&&(h.style.height="".concat(h.height,"px"))));var p=h.clientWidth||h.width,f=h.clientHeight||h.height;if(t&&d.hasValue()&&g.hasValue()&&(p=d.getPixels("x"),f=g.getPixels("y")),l.setCurrent(p,f),"number"==typeof r&&e.getAttribute("x",!0).setValue(r),"number"==typeof a&&e.getAttribute("y",!0).setValue(a),"number"==typeof n||"number"==typeof i){var m=x(e.getAttribute("viewBox").getString()),v=0,b=0;if("number"==typeof n){var B=e.getStyle("width");B.hasValue()?v=B.getPixels("x")/n:isNaN(m[2])||(v=m[2]/n)}if("number"==typeof i){var C=e.getStyle("height");C.hasValue()?b=C.getPixels("y")/i:isNaN(m[3])||(b=m[3]/i)}v||(v=b),b||(b=v),e.getAttribute("width",!0).setValue(n),e.getAttribute("height",!0).setValue(i);var w=e.getStyle("transform",!0,!0);w.setValue("".concat(w.getString()," scale(").concat(1/v,", ").concat(1/b,")"))}A||c.clearRect(0,0,p,f),e.render(c),u&&(this.isFirstRender=!1)},e}();te.defaultWindow=$,te.defaultFetch=ee;var Ae=te.defaultFetch,ne="undefined"!=typeof DOMParser?DOMParser:null,ie=function(){function e(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},t=e.fetch,A=void 0===t?Ae:t,n=e.DOMParser,i=void 0===n?ne:n;this.fetch=A,this.DOMParser=i}var t=e.prototype;return t.parse=function(e){var t=this;return i()(regeneratorRuntime.mark((function A(){return regeneratorRuntime.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:if(!e.startsWith("<")){A.next=2;break}return A.abrupt("return",t.parseFromString(e));case 2:return A.abrupt("return",t.load(e));case 3:case"end":return A.stop()}}),A)})))()},t.parseFromString=function(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch(A){return this.checkDocument(t.parseFromString(e,"text/xml"))}},t.checkDocument=function(e){var t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return e},t.load=function(e){var t=this;return i()(regeneratorRuntime.mark((function A(){var n,i;return regeneratorRuntime.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,t.fetch(e);case 2:return n=A.sent,A.next=5,n.text();case 5:return i=A.sent,A.abrupt("return",t.parseFromString(i));case 7:case"end":return A.stop()}}),A)})))()},e}(),re=function(){function e(e,t){this.type="translate",this.point=null,this.point=q.parse(t)}var t=e.prototype;return t.apply=function(e){var t=this.point,A=t.x,n=t.y;e.translate(A||0,n||0)},t.unapply=function(e){var t=this.point,A=t.x,n=t.y;e.translate(-1*A||0,-1*n||0)},t.applyToPoint=function(e){var t=this.point,A=t.x,n=t.y;e.applyTransform([1,0,0,1,A||0,n||0])},e}(),ae=function(){function e(e,t,A){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var n=x(t);this.angle=new Y(e,"angle",n[0]),this.originX=A[0],this.originY=A[1],this.cx=n[1]||0,this.cy=n[2]||0}var t=e.prototype;return t.apply=function(e){var t=this.cx,A=this.cy,n=this.originX,i=this.originY,r=this.angle,a=t+n.getPixels("x"),o=A+i.getPixels("y");e.translate(a,o),e.rotate(r.getRadians()),e.translate(-a,-o)},t.unapply=function(e){var t=this.cx,A=this.cy,n=this.originX,i=this.originY,r=this.angle,a=t+n.getPixels("x"),o=A+i.getPixels("y");e.translate(a,o),e.rotate(-1*r.getRadians()),e.translate(-a,-o)},t.applyToPoint=function(e){var t=this.cx,A=this.cy,n=this.angle.getRadians();e.applyTransform([1,0,0,1,t||0,A||0]),e.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),e.applyTransform([1,0,0,1,-t||0,-A||0])},e}(),oe=function(){function e(e,t,A){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var n=q.parseScale(t);0!==n.x&&0!==n.y||(n.x=O,n.y=O),this.scale=n,this.originX=A[0],this.originY=A[1]}var t=e.prototype;return t.apply=function(e){var t=this.scale,A=t.x,n=t.y,i=this.originX,r=this.originY,a=i.getPixels("x"),o=r.getPixels("y");e.translate(a,o),e.scale(A,n||A),e.translate(-a,-o)},t.unapply=function(e){var t=this.scale,A=t.x,n=t.y,i=this.originX,r=this.originY,a=i.getPixels("x"),o=r.getPixels("y");e.translate(a,o),e.scale(1/A,1/n||A),e.translate(-a,-o)},t.applyToPoint=function(e){var t=this.scale,A=t.x,n=t.y;e.applyTransform([A||0,0,0,n||0,0,0])},e}(),se=function(){function e(e,t,A){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=x(t),this.originX=A[0],this.originY=A[1]}var t=e.prototype;return t.apply=function(e){var t=this.originX,A=this.originY,n=this.matrix,i=t.getPixels("x"),r=A.getPixels("y");e.translate(i,r),e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),e.translate(-i,-r)},t.unapply=function(e){var t=this.originX,A=this.originY,n=this.matrix,i=n[0],r=n[2],a=n[4],o=n[1],s=n[3],l=n[5],c=1/(i*(1*s-0*l)-r*(1*o-0*l)+a*(0*o-0*s)),u=t.getPixels("x"),h=A.getPixels("y");e.translate(u,h),e.transform(c*(1*s-0*l),c*(0*l-1*o),c*(0*a-1*r),c*(1*i-0*a),c*(r*l-a*s),c*(a*o-i*l)),e.translate(-u,-h)},t.applyToPoint=function(e){e.applyTransform(this.matrix)},e}(),le=function(e){function t(t,A,n){var i;return(i=e.call(this,t,A,n)||this).type="skew",i.angle=null,i.angle=new Y(t,"angle",A),i}return f(t,e),t}(se),ce=function(e){function t(t,A,n){var i;return(i=e.call(this,t,A,n)||this).type="skewX",i.matrix=[1,0,Math.tan(i.angle.getRadians()),1,0,0],i}return f(t,e),t}(le),ue=function(e){function t(t,A,n){var i;return(i=e.call(this,t,A,n)||this).type="skewY",i.matrix=[1,Math.tan(i.angle.getRadians()),0,1,0,0],i}return f(t,e),t}(le);var he=function(){function e(t,A,n){var i=this;this.document=t,this.transforms=[],function(e){return C(e).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(A).forEach((function(t){if("none"!==t){var A=function(e){var t=e.split("("),A=t[0],n=t[1];return[A.trim(),n.trim().replace(")","")]}(t),r=A[0],a=A[1],o=e.transformTypes[r];void 0!==o&&i.transforms.push(new o(i.document,a,n))}}))}e.fromElement=function(t,A){var n=A.getStyle("transform",!1,!0),i=A.getStyle("transform-origin",!1,!0).split(),r=i[0],a=i[1],o=[r,void 0===a?r:a];return n.hasValue()?new e(t,n.getString(),o):null};var t=e.prototype;return t.apply=function(e){for(var t=this.transforms,A=t.length,n=0;n<A;n++)t[n].apply(e)},t.unapply=function(e){for(var t=this.transforms,A=t.length-1;A>=0;A--)t[A].unapply(e)},t.applyToPoint=function(e){for(var t=this.transforms,A=t.length,n=0;n<A;n++)t[n].applyToPoint(e)},e}();he.transformTypes={translate:re,rotate:ae,scale:oe,matrix:se,skewX:ce,skewY:ue};var de=function(){function e(e,t){var A=this,n=arguments.length>2&&arguments[2]!==undefined&&arguments[2];if(this.document=e,this.node=t,this.captureTextNodes=n,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],t&&1===t.nodeType){if(Array.from(t.attributes).forEach((function(t){var n=E(t.nodeName);A.attributes[n]=new Y(e,n,t.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map((function(e){return e.trim()}));i.forEach((function(t){if(t){var n=t.split(":").map((function(e){return e.trim()})),i=n[0],r=n[1];A.styles[i]=new Y(e,i,r)}}))}var r=e.definitions,a=this.getAttribute("id");a.hasValue()&&(r[a.getString()]||(r[a.getString()]=this)),Array.from(t.childNodes).forEach((function(t){if(1===t.nodeType)A.addChild(t);else if(n&&(3===t.nodeType||4===t.nodeType)){var i=e.createTextNode(t);i.getText().length>0&&A.addChild(i)}}))}}var t=e.prototype;return t.getAttribute=function(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1],A=this.attributes[e];if(!A&&t){var n=new Y(this.document,e,"");return this.attributes[e]=n,n}return A||Y.empty(this.document)},t.getHrefAttribute=function(){for(var e in this.attributes)if("href"===e||e.endsWith(":href"))return this.attributes[e];return Y.empty(this.document)},t.getStyle=function(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1],A=arguments.length>2&&arguments[2]!==undefined&&arguments[2],n=this.styles[e];if(n)return n;var i=this.getAttribute(e);if(null!=i&&i.hasValue())return this.styles[e]=i,i;if(!A){var r=this.parent;if(r){var a=r.getStyle(e);if(null!=a&&a.hasValue())return a}}if(t){var o=new Y(this.document,e,"");return this.styles[e]=o,o}return n||Y.empty(this.document)},t.render=function(e){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(e.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if("none"!==this.getStyle("filter").getValue("none")){var A=this.getStyle("filter").getDefinition();A&&(this.applyEffects(e),A.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}},t.setContext=function(e){},t.applyEffects=function(e){var t=he.fromElement(this.document,this);t&&t.apply(e);var A=this.getStyle("clip-path",!1,!0);if(A.hasValue()){var n=A.getDefinition();n&&n.apply(e)}},t.clearContext=function(e){},t.renderChildren=function(e){this.children.forEach((function(t){t.render(e)}))},t.addChild=function(t){var A=t instanceof e?t:this.document.createElement(t);A.parent=this,e.ignoreChildTypes.includes(A.type)||this.children.push(A)},t.matchesSelector=function(e){var t,A=this.node;if("function"==typeof A.matches)return A.matches(e);var n=null===(t=A.getAttribute)||void 0===t?void 0:t.call(A,"class");return!(!n||""===n)&&n.split(" ").some((function(t){return".".concat(t)===e}))},t.addStylesFromStyleDefinition=function(){var e=this.document,t=e.styles,A=e.stylesSpecificity;for(var n in t)if(!n.startsWith("@")&&this.matchesSelector(n)){var i=t[n],r=A[n];if(i)for(var a in i){var o=this.stylesSpecificity[a];void 0===o&&(o="000"),r>=o&&(this.styles[a]=i[a],this.stylesSpecificity[a]=r)}}},t.removeStyles=function(e,t){return t.reduce((function(t,A){var n=e.getStyle(A);if(!n.hasValue())return t;var i=n.getString();return n.setValue(""),[].concat(t,[[A,i]])}),[])},t.restoreStyles=function(e,t){t.forEach((function(t){var A=t[0],n=t[1];e.getStyle(A,!0).setValue(n)}))},t.isFirstChild=function(){var e;return 0===(null===(e=this.parent)||void 0===e?void 0:e.children.indexOf(this))},e}();de.ignoreChildTypes=["title"];var ge=function(e){function t(t,A,n){return e.call(this,t,A,n)||this}return f(t,e),t}(de);function pe(e){var t=e.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function fe(e){if(!e)return"";var t=e.trim().toLowerCase();switch(t){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:""}}function me(e){if(!e)return"";var t=e.trim().toLowerCase();switch(t){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return t;default:return/^[\d.]+$/.test(t)?t:""}}var ve=function(){function t(e,A,n,i,r,a){var o=a?"string"==typeof a?t.parse(a):a:{};this.fontFamily=r||o.fontFamily,this.fontSize=i||o.fontSize,this.fontStyle=e||o.fontStyle,this.fontWeight=n||o.fontWeight,this.fontVariant=A||o.fontVariant}return t.parse=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"",A=arguments.length>1?arguments[1]:undefined,n="",i="",r="",a="",o="",s=C(e).trim().split(" "),l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return s.forEach((function(e){switch(!0){case!l.fontStyle&&t.styles.includes(e):"inherit"!==e&&(n=e),l.fontStyle=!0;break;case!l.fontVariant&&t.variants.includes(e):"inherit"!==e&&(i=e),l.fontStyle=!0,l.fontVariant=!0;break;case!l.fontWeight&&t.weights.includes(e):"inherit"!==e&&(r=e),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0;break;case!l.fontSize:if("inherit"!==e){var A=e.split("/");a=A[0]}l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0,l.fontSize=!0;break;default:"inherit"!==e&&(o+=e)}})),new t(n,i,r,a,o,A)},t.prototype.toString=function(){return[fe(this.fontStyle),this.fontVariant,me(this.fontWeight),this.fontSize,(t=this.fontFamily,void 0===e?t:t.trim().split(",").map(pe).join(","))].join(" ").trim();var t},t}();ve.styles="normal|italic|oblique|inherit",ve.variants="normal|small-caps|inherit",ve.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var be=function(){function e(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:Number.NaN,t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Number.NaN,A=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Number.NaN,n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:Number.NaN;this.x1=e,this.y1=t,this.x2=A,this.y2=n,this.addPoint(e,t),this.addPoint(A,n)}var t=e.prototype;return t.addPoint=function(e,t){void 0!==e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),void 0!==t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},t.addX=function(e){this.addPoint(e,null)},t.addY=function(e){this.addPoint(null,e)},t.addBoundingBox=function(e){if(e){var t=e.x1,A=e.y1,n=e.x2,i=e.y2;this.addPoint(t,A),this.addPoint(n,i)}},t.sumCubic=function(e,t,A,n,i){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*A+3*(1-e)*Math.pow(e,2)*n+Math.pow(e,3)*i},t.bezierCurveAdd=function(e,t,A,n,i){var r=6*t-12*A+6*n,a=-3*t+9*A-9*n+3*i,o=3*A-3*t;if(0!==a){var s=Math.pow(r,2)-4*o*a;if(!(s<0)){var l=(-r+Math.sqrt(s))/(2*a);0<l&&l<1&&(e?this.addX(this.sumCubic(l,t,A,n,i)):this.addY(this.sumCubic(l,t,A,n,i)));var c=(-r-Math.sqrt(s))/(2*a);0<c&&c<1&&(e?this.addX(this.sumCubic(c,t,A,n,i)):this.addY(this.sumCubic(c,t,A,n,i)))}}else{if(0===r)return;var u=-o/r;0<u&&u<1&&(e?this.addX(this.sumCubic(u,t,A,n,i)):this.addY(this.sumCubic(u,t,A,n,i)))}},t.addBezierCurve=function(e,t,A,n,i,r,a,o){this.addPoint(e,t),this.addPoint(a,o),this.bezierCurveAdd(!0,e,A,i,a),this.bezierCurveAdd(!1,t,n,r,o)},t.addQuadraticCurve=function(e,t,A,n,i,r){var a=e+2/3*(A-e),o=t+2/3*(n-t),s=a+1/3*(i-e),l=o+1/3*(r-t);this.addBezierCurve(e,t,a,s,o,l,i,r)},t.isPointInBox=function(e,t){var A=this.x1,n=this.y1,i=this.x2,r=this.y2;return A<=e&&e<=i&&n<=t&&t<=r},b(e,[{key:"x",get:function(){return this.x1}},{key:"y",get:function(){return this.y1}},{key:"width",get:function(){return this.x2-this.x1}},{key:"height",get:function(){return this.y2-this.y1}}]),e}(),Be=function(e){function t(t){var A;return(A=e.call(this,t.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,""))||this).control=null,A.start=null,A.current=null,A.command=null,A.commands=A.commands,A.i=-1,A.previousCommand=null,A.points=[],A.angles=[],A}f(t,e);var A=t.prototype;return A.reset=function(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new q(0,0),this.control=new q(0,0),this.current=new q(0,0),this.points=[],this.angles=[]},A.isEnd=function(){return this.i>=this.commands.length-1},A.next=function(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e},A.getPoint=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"x",t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"y",A=new q(this.command[e],this.command[t]);return this.makeAbsolute(A)},A.getAsControlPoint=function(e,t){var A=this.getPoint(e,t);return this.control=A,A},A.getAsCurrentPoint=function(e,t){var A=this.getPoint(e,t);return this.current=A,A},A.getReflectedControlPoint=function(){var e=this.previousCommand.type;if(e!==u.SVGPathData.CURVE_TO&&e!==u.SVGPathData.SMOOTH_CURVE_TO&&e!==u.SVGPathData.QUAD_TO&&e!==u.SVGPathData.SMOOTH_QUAD_TO)return this.current;var t=this.current,A=t.x,n=t.y,i=this.control,r=i.x,a=i.y;return new q(2*A-r,2*n-a)},A.makeAbsolute=function(e){if(this.command.relative){var t=this.current,A=t.x,n=t.y;e.x+=A,e.y+=n}return e},A.addMarker=function(e,t,A){var n=this.points,i=this.angles;A&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=n[n.length-1].angleTo(A)),this.addMarkerAngle(e,t?t.angleTo(e):null)},A.addMarkerAngle=function(e,t){this.points.push(e),this.angles.push(t)},A.getMarkerPoints=function(){return this.points},A.getMarkerAngles=function(){for(var e=this.angles,t=e.length,A=0;A<t;A++)if(!e[A])for(var n=A+1;n<t;n++)if(e[n]){e[A]=e[n];break}return e},t}(u.SVGPathData),Ce=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).modifiedEmSizeStack=!1,t}f(t,e);var A=t.prototype;return A.calculateOpacity=function(){for(var e=1,t=this;t;){var A=t.getStyle("opacity",!1,!0);A.hasValue(!0)&&(e*=A.getNumber()),t=t.parent}return e},A.setContext=function(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1];if(!t){var A=this.getStyle("fill"),n=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),r=this.getStyle("stroke-opacity");if(A.isUrlDefinition()){var a=A.getFillStyleDefinition(this,n);a&&(e.fillStyle=a)}else if(A.hasValue()){"currentColor"===A.getString()&&A.setValue(this.getStyle("color").getColor());var o=A.getColor();"inherit"!==o&&(e.fillStyle="none"===o?"rgba(0,0,0,0)":o)}if(n.hasValue()){var s=new Y(this.document,"fill",e.fillStyle).addOpacity(n).getColor();e.fillStyle=s}if(i.isUrlDefinition()){var l=i.getFillStyleDefinition(this,r);l&&(e.strokeStyle=l)}else if(i.hasValue()){"currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor());var c=i.getString();"inherit"!==c&&(e.strokeStyle="none"===c?"rgba(0,0,0,0)":c)}if(r.hasValue()){var u=new Y(this.document,"stroke",e.strokeStyle).addOpacity(r).getString();e.strokeStyle=u}var h=this.getStyle("stroke-width");if(h.hasValue()){var d=h.getPixels();e.lineWidth=d||O}var g=this.getStyle("stroke-linecap"),p=this.getStyle("stroke-linejoin"),f=this.getStyle("stroke-miterlimit"),m=this.getStyle("stroke-dasharray"),v=this.getStyle("stroke-dashoffset");if(g.hasValue()&&(e.lineCap=g.getString()),p.hasValue()&&(e.lineJoin=p.getString()),f.hasValue()&&(e.miterLimit=f.getNumber()),m.hasValue()&&"none"!==m.getString()){var b=x(m.getString());"undefined"!=typeof e.setLineDash?e.setLineDash(b):"undefined"!=typeof e.webkitLineDash?e.webkitLineDash=b:"undefined"==typeof e.mozDash||1===b.length&&0===b[0]||(e.mozDash=b);var B=v.getPixels();"undefined"!=typeof e.lineDashOffset?e.lineDashOffset=B:"undefined"!=typeof e.webkitLineDashOffset?e.webkitLineDashOffset=B:"undefined"!=typeof e.mozDashOffset&&(e.mozDashOffset=B)}}if(this.modifiedEmSizeStack=!1,"undefined"!=typeof e.font){var C=this.getStyle("font"),w=this.getStyle("font-style"),y=this.getStyle("font-variant"),F=this.getStyle("font-weight"),E=this.getStyle("font-size"),S=this.getStyle("font-family"),Q=new ve(w.getString(),y.getString(),F.getString(),E.hasValue()?"".concat(E.getPixels(!0),"px"):"",S.getString(),ve.parse(C.getString(),e.font));w.setValue(Q.fontStyle),y.setValue(Q.fontVariant),F.setValue(Q.fontWeight),E.setValue(Q.fontSize),S.setValue(Q.fontFamily),e.font=Q.toString(),E.isPixels()&&(this.document.emSize=E.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())},A.clearContext=function(t){e.prototype.clearContext.call(this,t),this.modifiedEmSizeStack&&this.document.popEmSize()},t}(de),we=function(e){function t(t,A,n){var i;return(i=e.call(this,t,A,n)||this).type="path",i.pathParser=null,i.pathParser=new Be(i.getAttribute("d").getString()),i}f(t,e);var A=t.prototype;return A.path=function(e){var t=this.pathParser,A=new be;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case Be.MOVE_TO:this.pathM(e,A);break;case Be.LINE_TO:this.pathL(e,A);break;case Be.HORIZ_LINE_TO:this.pathH(e,A);break;case Be.VERT_LINE_TO:this.pathV(e,A);break;case Be.CURVE_TO:this.pathC(e,A);break;case Be.SMOOTH_CURVE_TO:this.pathS(e,A);break;case Be.QUAD_TO:this.pathQ(e,A);break;case Be.SMOOTH_QUAD_TO:this.pathT(e,A);break;case Be.ARC:this.pathA(e,A);break;case Be.CLOSE_PATH:this.pathZ(e,A)}return A},A.getBoundingBox=function(e){return this.path()},A.getMarkers=function(){var e=this.pathParser,t=e.getMarkerPoints(),A=e.getMarkerAngles();return t.map((function(e,t){return[e,A[t]]}))},A.renderChildren=function(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle("fill-rule");""!==e.fillStyle&&("inherit"!==t.getString("inherit")?e.fill(t.getString()):e.fill()),""!==e.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var A=this.getMarkers();if(A){var n=A.length-1,i=this.getStyle("marker-start"),r=this.getStyle("marker-mid"),a=this.getStyle("marker-end");if(i.isUrlDefinition()){var o=i.getDefinition(),s=A[0],l=s[0],c=s[1];o.render(e,l,c)}if(r.isUrlDefinition())for(var u=r.getDefinition(),h=1;h<n;h++){var d=A[h],g=d[0],p=d[1];u.render(e,g,p)}if(a.isUrlDefinition()){var f=a.getDefinition(),m=A[n],v=m[0],b=m[1];f.render(e,v,b)}}},t.pathM=function(e){var t=e.getAsCurrentPoint();return e.start=e.current,{point:t}},A.pathM=function(e,A){var n=this.pathParser,i=t.pathM(n).point,r=i.x,a=i.y;n.addMarker(i),A.addPoint(r,a),e&&e.moveTo(r,a)},t.pathL=function(e){return{current:e.current,point:e.getAsCurrentPoint()}},A.pathL=function(e,A){var n=this.pathParser,i=t.pathL(n),r=i.current,a=i.point,o=a.x,s=a.y;n.addMarker(a,r),A.addPoint(o,s),e&&e.lineTo(o,s)},t.pathH=function(e){var t=e.current,A=e.command,n=new q((A.relative?t.x:0)+A.x,t.y);return e.current=n,{current:t,point:n}},A.pathH=function(e,A){var n=this.pathParser,i=t.pathH(n),r=i.current,a=i.point,o=a.x,s=a.y;n.addMarker(a,r),A.addPoint(o,s),e&&e.lineTo(o,s)},t.pathV=function(e){var t=e.current,A=e.command,n=new q(t.x,(A.relative?t.y:0)+A.y);return e.current=n,{current:t,point:n}},A.pathV=function(e,A){var n=this.pathParser,i=t.pathV(n),r=i.current,a=i.point,o=a.x,s=a.y;n.addMarker(a,r),A.addPoint(o,s),e&&e.lineTo(o,s)},t.pathC=function(e){return{current:e.current,point:e.getPoint("x1","y1"),controlPoint:e.getAsControlPoint("x2","y2"),currentPoint:e.getAsCurrentPoint()}},A.pathC=function(e,A){var n=this.pathParser,i=t.pathC(n),r=i.current,a=i.point,o=i.controlPoint,s=i.currentPoint;n.addMarker(s,o,a),A.addBezierCurve(r.x,r.y,a.x,a.y,o.x,o.y,s.x,s.y),e&&e.bezierCurveTo(a.x,a.y,o.x,o.y,s.x,s.y)},t.pathS=function(e){return{current:e.current,point:e.getReflectedControlPoint(),controlPoint:e.getAsControlPoint("x2","y2"),currentPoint:e.getAsCurrentPoint()}},A.pathS=function(e,A){var n=this.pathParser,i=t.pathS(n),r=i.current,a=i.point,o=i.controlPoint,s=i.currentPoint;n.addMarker(s,o,a),A.addBezierCurve(r.x,r.y,a.x,a.y,o.x,o.y,s.x,s.y),e&&e.bezierCurveTo(a.x,a.y,o.x,o.y,s.x,s.y)},t.pathQ=function(e){return{current:e.current,controlPoint:e.getAsControlPoint("x1","y1"),currentPoint:e.getAsCurrentPoint()}},A.pathQ=function(e,A){var n=this.pathParser,i=t.pathQ(n),r=i.current,a=i.controlPoint,o=i.currentPoint;n.addMarker(o,a,a),A.addQuadraticCurve(r.x,r.y,a.x,a.y,o.x,o.y),e&&e.quadraticCurveTo(a.x,a.y,o.x,o.y)},t.pathT=function(e){var t=e.current,A=e.getReflectedControlPoint();return e.control=A,{current:t,controlPoint:A,currentPoint:e.getAsCurrentPoint()}},A.pathT=function(e,A){var n=this.pathParser,i=t.pathT(n),r=i.current,a=i.controlPoint,o=i.currentPoint;n.addMarker(o,a,a),A.addQuadraticCurve(r.x,r.y,a.x,a.y,o.x,o.y),e&&e.quadraticCurveTo(a.x,a.y,o.x,o.y)},t.pathA=function(e){var t=e.current,A=e.command,n=A.rX,i=A.rY,r=A.xRot,a=A.lArcFlag,o=A.sweepFlag,s=r*(Math.PI/180),l=e.getAsCurrentPoint(),c=new q(Math.cos(s)*(t.x-l.x)/2+Math.sin(s)*(t.y-l.y)/2,-Math.sin(s)*(t.x-l.x)/2+Math.cos(s)*(t.y-l.y)/2),u=Math.pow(c.x,2)/Math.pow(n,2)+Math.pow(c.y,2)/Math.pow(i,2);u>1&&(n*=Math.sqrt(u),i*=Math.sqrt(u));var h=(a===o?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(i,2)-Math.pow(n,2)*Math.pow(c.y,2)-Math.pow(i,2)*Math.pow(c.x,2))/(Math.pow(n,2)*Math.pow(c.y,2)+Math.pow(i,2)*Math.pow(c.x,2)));isNaN(h)&&(h=0);var d=new q(h*n*c.y/i,h*-i*c.x/n),g=new q((t.x+l.x)/2+Math.cos(s)*d.x-Math.sin(s)*d.y,(t.y+l.y)/2+Math.sin(s)*d.x+Math.cos(s)*d.y),p=R([1,0],[(c.x-d.x)/n,(c.y-d.y)/i]),f=[(c.x-d.x)/n,(c.y-d.y)/i],m=[(-c.x-d.x)/n,(-c.y-d.y)/i],v=R(f,m);return _(f,m)<=-1&&(v=Math.PI),_(f,m)>=1&&(v=0),{currentPoint:l,rX:n,rY:i,sweepFlag:o,xAxisRotation:s,centp:g,a1:p,ad:v}},A.pathA=function(e,A){var n=this.pathParser,i=t.pathA(n),r=i.currentPoint,a=i.rX,o=i.rY,s=i.sweepFlag,l=i.xAxisRotation,c=i.centp,u=i.a1,h=i.ad,d=1-s?1:-1,g=u+d*(h/2),p=new q(c.x+a*Math.cos(g),c.y+o*Math.sin(g));if(n.addMarkerAngle(p,g-d*Math.PI/2),n.addMarkerAngle(r,g-d*Math.PI),A.addPoint(r.x,r.y),e&&!isNaN(u)&&!isNaN(h)){var f=a>o?a:o,m=a>o?1:a/o,v=a>o?o/a:1;e.translate(c.x,c.y),e.rotate(l),e.scale(m,v),e.arc(0,0,f,u,u+h,Boolean(1-s)),e.scale(1/m,1/v),e.rotate(-l),e.translate(-c.x,-c.y)}},t.pathZ=function(e){e.current=e.start},A.pathZ=function(e,A){t.pathZ(this.pathParser),e&&A.x1!==A.x2&&A.y1!==A.y2&&e.closePath()},t}(Ce),ye=function(e){function t(t,A,n){var i;return(i=e.call(this,t,A,n)||this).type="glyph",i.horizAdvX=i.getAttribute("horiz-adv-x").getNumber(),i.unicode=i.getAttribute("unicode").getString(),i.arabicForm=i.getAttribute("arabic-form").getString(),i}return f(t,e),t}(we),xe=function(e){function t(A,n,i){var r;return(r=e.call(this,A,n,(this instanceof t?this.constructor:void 0)===t||i)||this).type="text",r.x=0,r.y=0,r.measureCache=-1,r}f(t,e);var A=t.prototype;return A.setContext=function(t){var A=arguments.length>1&&arguments[1]!==undefined&&arguments[1];e.prototype.setContext.call(this,t,A);var n=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();n&&(t.textBaseline=n)},A.initializeCoordinates=function(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY},A.getBoundingBox=function(e){var t=this;if("text"!==this.type)return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var A=null;return this.children.forEach((function(n,i){var r=t.getChildBoundingBox(e,t,t,i);A?A.addBoundingBox(r):A=r})),A},A.getFontSize=function(){var e=this.document,t=this.parent,A=ve.parse(e.ctx.font).fontSize;return t.getStyle("font-size").getNumber(A)},A.getTElementBoundingBox=function(e){var t=this.getFontSize();return new be(this.x,this.y-t,this.x+this.measureText(e),this.y)},A.getGlyph=function(e,t,A){var n=t[A],i=null;if(e.isArabic){var r=t.length,a=t[A-1],o=t[A+1],s="isolated";if((0===A||" "===a)&&A<r-1&&" "!==o&&(s="terminal"),A>0&&" "!==a&&A<r-1&&" "!==o&&(s="medial"),A>0&&" "!==a&&(A===r-1||" "===o)&&(s="initial"),"undefined"!=typeof e.glyphs[n]){var l=e.glyphs[n];i=l instanceof ye?l:l[s]}}else i=e.glyphs[n];return i||(i=e.missingGlyph),i},A.getText=function(){return""},A.getTextFromNode=function(e){var t=e||this.node,A=Array.from(t.parentNode.childNodes),n=A.indexOf(t),i=A.length-1,r=C(t.textContent||"");return 0===n&&(r=w(r)),n===i&&(r=y(r)),r},A.renderChildren=function(e){var t=this;if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((function(A,n){t.renderChild(e,t,t,n)}));var A=this.document.screen.mouse;A.isWorking()&&A.checkBoundingBox(this,this.getBoundingBox(e))}else this.renderTElementChildren(e)},A.renderTElementChildren=function(e){var t=this.document,A=this.parent,n=this.getText(),i=A.getStyle("font-family").getDefinition();if(i)for(var r=i.fontFace.unitsPerEm,a=ve.parse(t.ctx.font),o=A.getStyle("font-size").getNumber(a.fontSize),s=A.getStyle("font-style").getString(a.fontStyle),l=o/r,c=i.isRTL?n.split("").reverse().join(""):n,u=x(A.getAttribute("dx").getString()),h=c.length,d=0;d<h;d++){var g=this.getGlyph(i,c,d);e.translate(this.x,this.y),e.scale(l,-l);var p=e.lineWidth;e.lineWidth=e.lineWidth*r/o,"italic"===s&&e.transform(1,0,.4,1,0,0),g.render(e),"italic"===s&&e.transform(1,0,-.4,1,0,0),e.lineWidth=p,e.scale(1/l,-1/l),e.translate(-this.x,-this.y),this.x+=o*(g.horizAdvX||i.horizAdvX)/r,"undefined"==typeof u[d]||isNaN(u[d])||(this.x+=u[d])}else{var f=this.x,m=this.y;e.fillStyle&&e.fillText(n,f,m),e.strokeStyle&&e.strokeText(n,f,m)}},A.applyAnchoring=function(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],t=e.getStyle("text-anchor").getString("start"),A=0;A="start"===t?e.x-this.minX:"end"===t?e.x-this.maxX:e.x-(this.minX+this.maxX)/2;for(var n=this.textChunkStart;n<this.leafTexts.length;n++)this.leafTexts[n].x+=A;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}},A.adjustChildCoordinatesRecursive=function(e){var t=this;this.children.forEach((function(A,n){t.adjustChildCoordinatesRecursiveCore(e,t,t,n)})),this.applyAnchoring()},A.adjustChildCoordinatesRecursiveCore=function(e,t,A,n){var i=A.children[n];i.children.length>0?i.children.forEach((function(A,n){t.adjustChildCoordinatesRecursiveCore(e,t,i,n)})):this.adjustChildCoordinates(e,t,A,n)},A.adjustChildCoordinates=function(e,t,A,n){var i=A.children[n];if("function"!=typeof i.measureText)return i;e.save(),i.setContext(e,!0);var r=i.getAttribute("x"),a=i.getAttribute("y"),o=i.getAttribute("dx"),s=i.getAttribute("dy"),l=i.getStyle("font-family").getDefinition(),c=Boolean(l)&&l.isRTL;0===n&&(r.hasValue()||r.setValue(i.getInheritedAttribute("x")),a.hasValue()||a.setValue(i.getInheritedAttribute("y")),o.hasValue()||o.setValue(i.getInheritedAttribute("dx")),s.hasValue()||s.setValue(i.getInheritedAttribute("dy")));var u=i.measureText(e);return c&&(t.x-=u),r.hasValue()?(t.applyAnchoring(),i.x=r.getPixels("x"),o.hasValue()&&(i.x+=o.getPixels("x"))):(o.hasValue()&&(t.x+=o.getPixels("x")),i.x=t.x),t.x=i.x,c||(t.x+=u),a.hasValue()?(i.y=a.getPixels("y"),s.hasValue()&&(i.y+=s.getPixels("y"))):(s.hasValue()&&(t.y+=s.getPixels("y")),i.y=t.y),t.y=i.y,t.leafTexts.push(i),t.minX=Math.min(t.minX,i.x,i.x+u),t.maxX=Math.max(t.maxX,i.x,i.x+u),i.clearContext(e),e.restore(),i},A.getChildBoundingBox=function(e,t,A,n){var i=A.children[n];if("function"!=typeof i.getBoundingBox)return null;var r=i.getBoundingBox(e);return r?(i.children.forEach((function(A,n){var a=t.getChildBoundingBox(e,t,i,n);r.addBoundingBox(a)})),r):null},A.renderChild=function(e,t,A,n){var i=A.children[n];i.render(e),i.children.forEach((function(A,n){t.renderChild(e,t,i,n)}))},A.measureText=function(e){var t=this.measureCache;if(~t)return t;var A=this.getText(),n=this.measureTargetText(e,A);return this.measureCache=n,n},A.measureTargetText=function(e,t){if(!t.length)return 0;var A=this.parent,n=A.getStyle("font-family").getDefinition();if(n){for(var i=this.getFontSize(),r=n.isRTL?t.split("").reverse().join(""):t,a=x(A.getAttribute("dx").getString()),o=r.length,s=0,l=0;l<o;l++){s+=(this.getGlyph(n,r,l).horizAdvX||n.horizAdvX)*i/n.fontFace.unitsPerEm,"undefined"==typeof a[l]||isNaN(a[l])||(s+=a[l])}return s}if(!e.measureText)return 10*t.length;e.save(),this.setContext(e,!0);var c=e.measureText(t).width;return this.clearContext(e),e.restore(),c},A.getInheritedAttribute=function(e){for(var A=this;A instanceof t&&A.isFirstChild();){var n=A.parent.getAttribute(e);if(n.hasValue(!0))return n.getValue("0");A=A.parent}return null},t}(Ce),Fe=function(e){function t(A,n,i){var r;return(r=e.call(this,A,n,(this instanceof t?this.constructor:void 0)===t||i)||this).type="tspan",r.text=r.children.length>0?"":r.getTextFromNode(),r}return f(t,e),t.prototype.getText=function(){return this.text},t}(xe),Ee=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="textNode",t}return f(t,e),t}(Fe),Se=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="svg",t.root=!1,t}f(t,e);var A=t.prototype;return A.setContext=function(t){var A,n=this.document,i=n.screen,r=n.window,a=t.canvas;if(i.setDefaults(t),a.style&&"undefined"!=typeof t.font&&r&&"undefined"!=typeof r.getComputedStyle){t.font=r.getComputedStyle(a).getPropertyValue("font");var o=new Y(n,"fontSize",ve.parse(t.font).fontSize);o.hasValue()&&(n.rootEmSize=o.getPixels("y"),n.emSize=n.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var s=i.viewPort,l=s.width,c=s.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var u=this.getAttribute("refX"),h=this.getAttribute("refY"),d=this.getAttribute("viewBox"),g=d.hasValue()?x(d.getString()):null,p=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),f=0,m=0,v=0,b=0;g&&(f=g[0],m=g[1]),this.root||(l=this.getStyle("width").getPixels("x"),c=this.getStyle("height").getPixels("y"),"marker"===this.type&&(v=f,b=m,f=0,m=0)),i.viewPort.setCurrent(l,c),!this.node||this.parent&&"foreignObject"!==(null===(A=this.node.parentNode)||void 0===A?void 0:A.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),e.prototype.setContext.call(this,t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),g&&(l=g[2],c=g[3]),n.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:l,height:i.viewPort.height,desiredHeight:c,minX:f,minY:m,refX:u.getValue(),refY:h.getValue(),clip:p,clipX:v,clipY:b}),g&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(l,c))},A.clearContext=function(t){e.prototype.clearContext.call(this,t),this.document.screen.viewPort.removeCurrent()},A.resize=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:e,A=arguments.length>2&&arguments[2]!==undefined&&arguments[2],n=this.getAttribute("width",!0),i=this.getAttribute("height",!0),r=this.getAttribute("viewBox"),a=this.getAttribute("style"),o=n.getNumber(0),s=i.getNumber(0);if(A)if("string"==typeof A)this.getAttribute("preserveAspectRatio",!0).setValue(A);else{var l=this.getAttribute("preserveAspectRatio");l.hasValue()&&l.setValue(l.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(n.setValue(e),i.setValue(t),r.hasValue()||r.setValue("0 0 ".concat(o||e," ").concat(s||t)),a.hasValue()){var c=this.getStyle("width"),u=this.getStyle("height");c.hasValue()&&c.setValue("".concat(e,"px")),u.hasValue()&&u.setValue("".concat(t,"px"))}},t}(Ce),Qe=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="rect",t}f(t,e);var A=t.prototype;return A.path=function(e){var t=this.getAttribute("x").getPixels("x"),A=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),r=this.getAttribute("rx"),a=this.getAttribute("ry"),o=r.getPixels("x"),s=a.getPixels("y");if(r.hasValue()&&!a.hasValue()&&(s=o),a.hasValue()&&!r.hasValue()&&(o=s),o=Math.min(o,n/2),s=Math.min(s,i/2),e){var l=(Math.sqrt(2)-1)/3*4;e.beginPath(),i>0&&n>0&&(e.moveTo(t+o,A),e.lineTo(t+n-o,A),e.bezierCurveTo(t+n-o+l*o,A,t+n,A+s-l*s,t+n,A+s),e.lineTo(t+n,A+i-s),e.bezierCurveTo(t+n,A+i-s+l*s,t+n-o+l*o,A+i,t+n-o,A+i),e.lineTo(t+o,A+i),e.bezierCurveTo(t+o-l*o,A+i,t,A+i-s+l*s,t,A+i-s),e.lineTo(t,A+s),e.bezierCurveTo(t,A+s-l*s,t+o-l*o,A,t+o,A),e.closePath())}return new be(t,A,t+n,A+i)},A.getMarkers=function(){return null},t}(we),ke=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="circle",t}f(t,e);var A=t.prototype;return A.path=function(e){var t=this.getAttribute("cx").getPixels("x"),A=this.getAttribute("cy").getPixels("y"),n=this.getAttribute("r").getPixels();return e&&n>0&&(e.beginPath(),e.arc(t,A,n,0,2*Math.PI,!1),e.closePath()),new be(t-n,A-n,t+n,A+n)},A.getMarkers=function(){return null},t}(we),Le=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="ellipse",t}f(t,e);var A=t.prototype;return A.path=function(e){var t=(Math.sqrt(2)-1)/3*4,A=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y");return e&&A>0&&n>0&&(e.beginPath(),e.moveTo(i+A,r),e.bezierCurveTo(i+A,r+t*n,i+t*A,r+n,i,r+n),e.bezierCurveTo(i-t*A,r+n,i-A,r+t*n,i-A,r),e.bezierCurveTo(i-A,r-t*n,i-t*A,r-n,i,r-n),e.bezierCurveTo(i+t*A,r-n,i+A,r-t*n,i+A,r),e.closePath()),new be(i-A,r-n,i+A,r+n)},A.getMarkers=function(){return null},t}(we),Ue=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="line",t}f(t,e);var A=t.prototype;return A.getPoints=function(){return[new q(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new q(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]},A.path=function(e){var t=this.getPoints(),A=t[0],n=A.x,i=A.y,r=t[1],a=r.x,o=r.y;return e&&(e.beginPath(),e.moveTo(n,i),e.lineTo(a,o)),new be(n,i,a,o)},A.getMarkers=function(){var e=this.getPoints(),t=e[0],A=e[1],n=t.angleTo(A);return[[t,n],[A,n]]},t}(we),Ie=function(e){function t(t,A,n){var i;return(i=e.call(this,t,A,n)||this).type="polyline",i.points=[],i.points=q.parsePath(i.getAttribute("points").getString()),i}f(t,e);var A=t.prototype;return A.path=function(e){var t=this.points,A=t[0],n=A.x,i=A.y,r=new be(n,i);return e&&(e.beginPath(),e.moveTo(n,i)),t.forEach((function(t){var A=t.x,n=t.y;r.addPoint(A,n),e&&e.lineTo(A,n)})),r},A.getMarkers=function(){var e=this.points,t=e.length-1,A=[];return e.forEach((function(n,i){i!==t&&A.push([n,n.angleTo(e[i+1])])})),A.length>0&&A.push([e[e.length-1],A[A.length-1][1]]),A},t}(we),Te=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="polygon",t}return f(t,e),t.prototype.path=function(t){var A=e.prototype.path.call(this,t),n=this.points[0],i=n.x,r=n.y;return t&&(t.lineTo(i,r),t.closePath()),A},t}(Ie),Ne=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="pattern",t}return f(t,e),t.prototype.createPattern=function(e,t,A){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),r=new Se(this.document,null);r.attributes.viewBox=new Y(this.document,"viewBox",this.getAttribute("viewBox").getValue()),r.attributes.width=new Y(this.document,"width","".concat(n,"px")),r.attributes.height=new Y(this.document,"height","".concat(i,"px")),r.attributes.transform=new Y(this.document,"transform",this.getAttribute("patternTransform").getValue()),r.children=this.children;var a=this.document.createCanvas(n,i),o=a.getContext("2d"),s=this.getAttribute("x"),l=this.getAttribute("y");s.hasValue()&&l.hasValue()&&o.translate(s.getPixels("x",!0),l.getPixels("y",!0)),A.hasValue()?this.styles["fill-opacity"]=A:Reflect.deleteProperty(this.styles,"fill-opacity");for(var c=-1;c<=1;c++)for(var u=-1;u<=1;u++)o.save(),r.attributes.x=new Y(this.document,"x",c*a.width),r.attributes.y=new Y(this.document,"y",u*a.height),r.render(o),o.restore();return e.createPattern(a,"repeat")},t}(de),De=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="marker",t}return f(t,e),t.prototype.render=function(e,t,A){if(t){var n=t.x,i=t.y,r=this.getAttribute("orient").getString("auto"),a=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(n,i),"auto"===r&&e.rotate(A),"strokeWidth"===a&&e.scale(e.lineWidth,e.lineWidth),e.save();var o=new Se(this.document,null);o.type=this.type,o.attributes.viewBox=new Y(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new Y(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new Y(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new Y(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new Y(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new Y(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new Y(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new Y(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(e),e.restore(),"strokeWidth"===a&&e.scale(1/e.lineWidth,1/e.lineWidth),"auto"===r&&e.rotate(-A),e.translate(-n,-i)}},t}(de),Pe=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="defs",t}return f(t,e),t.prototype.render=function(){},t}(de),Me=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="g",t}return f(t,e),t.prototype.getBoundingBox=function(e){var t=new be;return this.children.forEach((function(A){t.addBoundingBox(A.getBoundingBox(e))})),t},t}(Ce),Oe=function(e){function t(t,A,n){var i;(i=e.call(this,t,A,n)||this).attributesToInherit=["gradientUnits"],i.stops=[];var r=p(i),a=r.stops;return r.children.forEach((function(e){"stop"===e.type&&a.push(e)})),i}f(t,e);var A=t.prototype;return A.getGradientUnits=function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")},A.createGradient=function(e,t,A){var n=this,i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var r=i.stops,a=this.getGradient(e,t);if(!a)return this.addParentOpacity(A,r[r.length-1].color);if(r.forEach((function(e){a.addColorStop(e.offset,n.addParentOpacity(A,e.color))})),this.getAttribute("gradientTransform").hasValue()){var o=this.document,s=o.screen,l=s.MAX_VIRTUAL_PIXELS,c=s.viewPort.viewPorts[0],u=new Qe(o,null);u.attributes.x=new Y(o,"x",-l/3),u.attributes.y=new Y(o,"y",-l/3),u.attributes.width=new Y(o,"width",l),u.attributes.height=new Y(o,"height",l);var h=new Me(o,null);h.attributes.transform=new Y(o,"transform",this.getAttribute("gradientTransform").getValue()),h.children=[u];var d=new Se(o,null);d.attributes.x=new Y(o,"x",0),d.attributes.y=new Y(o,"y",0),d.attributes.width=new Y(o,"width",c.width),d.attributes.height=new Y(o,"height",c.height),d.children=[h];var g=o.createCanvas(c.width,c.height),p=g.getContext("2d");return p.fillStyle=a,d.render(p),p.createPattern(g,"no-repeat")}return a},A.inheritStopContainer=function(e){var t=this;this.attributesToInherit.forEach((function(A){!t.getAttribute(A).hasValue()&&e.getAttribute(A).hasValue()&&t.getAttribute(A,!0).setValue(e.getAttribute(A).getValue())}))},A.addParentOpacity=function(e,t){return e.hasValue()?new Y(this.document,"color",t).addOpacity(e).getColor():t},t}(de),He=function(e){function t(t,A,n){var i;return(i=e.call(this,t,A,n)||this).type="linearGradient",i.attributesToInherit.push("x1","y1","x2","y2"),i}return f(t,e),t.prototype.getGradient=function(e,t){var A="objectBoundingBox"===this.getGradientUnits(),n=A?t.getBoundingBox(e):null;if(A&&!n)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=A?n.x+n.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),r=A?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),a=A?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=A?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===a&&r===o?null:e.createLinearGradient(i,r,a,o)},t}(Oe),_e=function(e){function t(t,A,n){var i;return(i=e.call(this,t,A,n)||this).type="radialGradient",i.attributesToInherit.push("cx","cy","r","fx","fy","fr"),i}return f(t,e),t.prototype.getGradient=function(e,t){var A="objectBoundingBox"===this.getGradientUnits(),n=t.getBoundingBox(e);if(A&&!n)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=A?n.x+n.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),r=A?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),a=i,o=r;this.getAttribute("fx").hasValue()&&(a=A?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=A?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var s=A?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),l=this.getAttribute("fr").getPixels();return e.createRadialGradient(a,o,l,i,r,s)},t}(Oe),Re=function(e){function t(t,A,n){var i;(i=e.call(this,t,A,n)||this).type="stop";var r=Math.max(0,Math.min(1,i.getAttribute("offset").getNumber())),a=i.getStyle("stop-opacity"),o=i.getStyle("stop-color",!0);return""===o.getString()&&o.setValue("#000"),a.hasValue()&&(o=o.addOpacity(a)),i.offset=r,i.color=o.getColor(),i}return f(t,e),t}(de),Ve=function(e){function t(t,A,n){var i;(i=e.call(this,t,A,n)||this).type="animate",i.duration=0,i.initialValue=null,i.initialUnits="",i.removed=!1,i.frozen=!1,t.screen.animations.push(p(i)),i.begin=i.getAttribute("begin").getMilliseconds(),i.maxDuration=i.begin+i.getAttribute("dur").getMilliseconds(),i.from=i.getAttribute("from"),i.to=i.getAttribute("to"),i.values=new Y(t,"values",null);var r=i.getAttribute("values");return r.hasValue()&&i.values.setValue(r.getString().split(";")),i}f(t,e);var A=t.prototype;return A.getProperty=function(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return"CSS"===e?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)},A.calcValue=function(){var e=this.initialUnits,t=this.getProgress(),A=t.progress,n=t.from,i=t.to,r=n.getNumber()+(i.getNumber()-n.getNumber())*A;return"%"===e&&(r*=100),"".concat(r).concat(e)},A.update=function(e){var t=this.parent,A=this.getProperty();if(this.initialValue||(this.initialValue=A.getString(),this.initialUnits=A.getUnits()),this.duration>this.maxDuration){var n=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==n||this.frozen){if("remove"===n&&!this.removed)return this.removed=!0,A.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=A.getString();return!1}this.duration+=e;var i=!1;if(this.begin<this.duration){var r=this.calcValue(),a=this.getAttribute("type");if(a.hasValue()){var o=a.getString();r="".concat(o,"(").concat(r,")")}A.setValue(r),i=!0}return i},A.getProgress=function(){var e=this.document,t=this.values,A={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(t.hasValue()){var n=A.progress*(t.getValue().length-1),i=Math.floor(n),r=Math.ceil(n);A.from=new Y(e,"from",parseFloat(t.getValue()[i])),A.to=new Y(e,"to",parseFloat(t.getValue()[r])),A.progress=(n-i)/(r-i)}else A.from=this.from,A.to=this.to;return A},t}(de),Ge=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="animateColor",t}return f(t,e),t.prototype.calcValue=function(){var e=this.getProgress(),t=e.progress,A=e.from,n=e.to,i=new c.a(A.getColor()),r=new c.a(n.getColor());if(i.ok&&r.ok){var a=i.r+(r.r-i.r)*t,o=i.g+(r.g-i.g)*t,s=i.b+(r.b-i.b)*t;return"rgb(".concat(Math.floor(a),", ").concat(Math.floor(o),", ").concat(Math.floor(s),")")}return this.getAttribute("from").getColor()},t}(Ve),Ke=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="animateTransform",t}return f(t,e),t.prototype.calcValue=function(){var e=this.getProgress(),t=e.progress,A=e.from,n=e.to,i=x(A.getString()),r=x(n.getString());return i.map((function(e,A){return e+(r[A]-e)*t})).join(" ")},t}(Ve),ze=function(e){function t(t,A,n){var i;(i=e.call(this,t,A,n)||this).type="font",i.glyphs={},i.horizAdvX=i.getAttribute("horiz-adv-x").getNumber();for(var r,a=t.definitions,o=d(p(i).children);!(r=o()).done;){var s=r.value;switch(s.type){case"font-face":i.fontFace=s;var l=s.getStyle("font-family");l.hasValue()&&(a[l.getString()]=p(i));break;case"missing-glyph":i.missingGlyph=s;break;case"glyph":var c=s;c.arabicForm?(i.isRTL=!0,i.isArabic=!0,"undefined"==typeof i.glyphs[c.unicode]&&(i.glyphs[c.unicode]={}),i.glyphs[c.unicode][c.arabicForm]=c):i.glyphs[c.unicode]=c}}return i}return f(t,e),t.prototype.render=function(){},t}(de),We=function(e){function t(t,A,n){var i;return(i=e.call(this,t,A,n)||this).type="font-face",i.ascent=i.getAttribute("ascent").getNumber(),i.descent=i.getAttribute("descent").getNumber(),i.unitsPerEm=i.getAttribute("units-per-em").getNumber(),i}return f(t,e),t}(de),je=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="missing-glyph",t.horizAdvX=0,t}return f(t,e),t}(we),Xe=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="tref",t}return f(t,e),t.prototype.getText=function(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""},t}(xe),Ye=function(e){function t(t,A,n){var i;(i=e.call(this,t,A,n)||this).type="a";var r=A.childNodes,a=r[0],o=r.length>0&&Array.from(r).every((function(e){return 3===e.nodeType}));return i.hasText=o,i.text=o?i.getTextFromNode(a):"",i}f(t,e);var A=t.prototype;return A.getText=function(){return this.text},A.renderChildren=function(t){if(this.hasText){e.prototype.renderChildren.call(this,t);var A=this.document,n=this.x,i=this.y,r=A.screen.mouse,a=new Y(A,"fontSize",ve.parse(A.ctx.font).fontSize);r.isWorking()&&r.checkBoundingBox(this,new be(n,i-a.getPixels("y"),n+this.measureText(t),i))}else if(this.children.length>0){var o=new Me(this.document,null);o.children=this.children,o.parent=this,o.render(t)}},A.onClick=function(){var e=this.document.window;e&&e.open(this.getHrefAttribute().getString())},A.onMouseMove=function(){this.document.ctx.canvas.style.cursor="pointer"},t}(xe);function Je(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,n)}return A}function qe(e){for(var t=1;t<arguments.length;t++){var A=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(A),!0).forEach((function(t){a()(e,t,A[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(A)):Je(Object(A)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(A,t))}))}return e}var Ze=function(e){function t(t,A,n){var i;(i=e.call(this,t,A,n)||this).type="textPath",i.textWidth=0,i.textHeight=0,i.pathLength=-1,i.glyphInfo=null,i.letterSpacingCache=[],i.measuresCache=new Map([["",0]]);var r=i.getHrefAttribute().getDefinition();return i.text=i.getTextFromNode(),i.dataArray=i.parsePathData(r),i}f(t,e);var A=t.prototype;return A.getText=function(){return this.text},A.path=function(e){var t=this.dataArray;e&&e.beginPath(),t.forEach((function(t){var A=t.type,n=t.points;switch(A){case Be.LINE_TO:e&&e.lineTo(n[0],n[1]);break;case Be.MOVE_TO:e&&e.moveTo(n[0],n[1]);break;case Be.CURVE_TO:e&&e.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case Be.QUAD_TO:e&&e.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case Be.ARC:var i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],l=n[5],c=n[6],u=n[7],h=a>o?a:o,d=a>o?1:a/o,g=a>o?o/a:1;e&&(e.translate(i,r),e.rotate(c),e.scale(d,g),e.arc(0,0,h,s,s+l,Boolean(1-u)),e.scale(1/d,1/g),e.rotate(-c),e.translate(-i,-r));break;case Be.CLOSE_PATH:e&&e.closePath()}}))},A.renderChildren=function(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),A=this.getFontSize(),n=this.glyphInfo,i=e.fillStyle;"underline"===t&&e.beginPath(),n.forEach((function(n,i){var r=n.p0,a=n.p1,o=n.rotation,s=n.text;e.save(),e.translate(r.x,r.y),e.rotate(o),e.fillStyle&&e.fillText(s,0,0),e.strokeStyle&&e.strokeText(s,0,0),e.restore(),"underline"===t&&(0===i&&e.moveTo(r.x,r.y+A/8),e.lineTo(a.x,a.y+A/5))})),"underline"===t&&(e.lineWidth=A/20,e.strokeStyle=i,e.stroke(),e.closePath()),e.restore()},A.getLetterSpacingAt=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;return this.letterSpacingCache[e]||0},A.findSegmentToFitChar=function(e,t,A,n,i,r,a,o,s){var l=r,c=this.measureText(e,o);" "===o&&"justify"===t&&A<n&&(c+=(n-A)/i),s>-1&&(l+=this.getLetterSpacingAt(s));var u=this.textHeight/20,h=this.getEquidistantPointOnPath(l,u,0),d=this.getEquidistantPointOnPath(l+c,u,0),g={p0:h,p1:d},p=h&&d?Math.atan2(d.y-h.y,d.x-h.x):0;if(a){var f=Math.cos(Math.PI/2+p)*a,m=Math.cos(-p)*a;g.p0=qe(qe({},h),{},{x:h.x+f,y:h.y+m}),g.p1=qe(qe({},d),{},{x:d.x+f,y:d.y+m})}return{offset:l+=c,segment:g,rotation:p}},A.measureText=function(e,t){var A=this.measuresCache,n=t||this.getText();if(A.has(n))return A.get(n);var i=this.measureTargetText(e,n);return A.set(n,i),i},A.setTextData=function(e){var t=this;if(!this.glyphInfo){var A=this.getText(),n=A.split(""),i=A.split(" ").length-1,r=this.parent.getAttribute("dx").split().map((function(e){return e.getPixels("x")})),a=this.parent.getAttribute("dy").getPixels("y"),o=this.parent.getStyle("text-anchor").getString("start"),s=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),c=0;s.hasValue()&&"inherit"!==s.getValue()?s.hasValue()&&"initial"!==s.getValue()&&"unset"!==s.getValue()&&(c=s.getPixels()):c=l.getPixels();var u=[],h=A.length;this.letterSpacingCache=u;for(var d=0;d<h;d++)u.push("undefined"!=typeof r[d]?r[d]:c);var g=u.reduce((function(e,t,A){return 0===A?0:e+t||0}),0),p=this.measureText(e),f=Math.max(p+g,0);this.textWidth=p,this.textHeight=this.getFontSize(),this.glyphInfo=[];var m=this.getPathLength(),v=this.getStyle("startOffset").getNumber(0)*m,b=0;"middle"!==o&&"center"!==o||(b=-f/2),"end"!==o&&"right"!==o||(b=-f),b+=v,n.forEach((function(A,r){var s=t.findSegmentToFitChar(e,o,f,m,i,b,a,A,r),l=s.offset,c=s.segment,u=s.rotation;b=l,c.p0&&c.p1&&t.glyphInfo.push({text:n[r],p0:c.p0,p1:c.p1,rotation:u})}))}},A.parsePathData=function(e){if(this.pathLength=-1,!e)return[];var t=[],A=e.pathParser;for(A.reset();!A.isEnd();){var n=A.current,i=n?n.x:0,r=n?n.y:0,a=A.next(),o=a.type,s=[];switch(a.type){case Be.MOVE_TO:this.pathM(A,s);break;case Be.LINE_TO:o=this.pathL(A,s);break;case Be.HORIZ_LINE_TO:o=this.pathH(A,s);break;case Be.VERT_LINE_TO:o=this.pathV(A,s);break;case Be.CURVE_TO:this.pathC(A,s);break;case Be.SMOOTH_CURVE_TO:o=this.pathS(A,s);break;case Be.QUAD_TO:this.pathQ(A,s);break;case Be.SMOOTH_QUAD_TO:o=this.pathT(A,s);break;case Be.ARC:s=this.pathA(A);break;case Be.CLOSE_PATH:we.pathZ(A)}a.type!==Be.CLOSE_PATH?t.push({type:o,points:s,start:{x:i,y:r},pathLength:this.calcLength(i,r,o,s)}):t.push({type:Be.CLOSE_PATH,points:[],pathLength:0})}return t},A.pathM=function(e,t){var A=we.pathM(e).point,n=A.x,i=A.y;t.push(n,i)},A.pathL=function(e,t){var A=we.pathL(e).point,n=A.x,i=A.y;return t.push(n,i),Be.LINE_TO},A.pathH=function(e,t){var A=we.pathH(e).point,n=A.x,i=A.y;return t.push(n,i),Be.LINE_TO},A.pathV=function(e,t){var A=we.pathV(e).point,n=A.x,i=A.y;return t.push(n,i),Be.LINE_TO},A.pathC=function(e,t){var A=we.pathC(e),n=A.point,i=A.controlPoint,r=A.currentPoint;t.push(n.x,n.y,i.x,i.y,r.x,r.y)},A.pathS=function(e,t){var A=we.pathS(e),n=A.point,i=A.controlPoint,r=A.currentPoint;return t.push(n.x,n.y,i.x,i.y,r.x,r.y),Be.CURVE_TO},A.pathQ=function(e,t){var A=we.pathQ(e),n=A.controlPoint,i=A.currentPoint;t.push(n.x,n.y,i.x,i.y)},A.pathT=function(e,t){var A=we.pathT(e),n=A.controlPoint,i=A.currentPoint;return t.push(n.x,n.y,i.x,i.y),Be.QUAD_TO},A.pathA=function(e){var t=we.pathA(e),A=t.rX,n=t.rY,i=t.sweepFlag,r=t.xAxisRotation,a=t.centp,o=t.a1,s=t.ad;return 0===i&&s>0&&(s-=2*Math.PI),1===i&&s<0&&(s+=2*Math.PI),[a.x,a.y,A,n,o,s,r,i]},A.calcLength=function(e,t,A,n){var i=0,r=null,a=null,o=0;switch(A){case Be.LINE_TO:return this.getLineLength(e,t,n[0],n[1]);case Be.CURVE_TO:for(i=0,r=this.getPointOnCubicBezier(0,e,t,n[0],n[1],n[2],n[3],n[4],n[5]),o=.01;o<=1;o+=.01)a=this.getPointOnCubicBezier(o,e,t,n[0],n[1],n[2],n[3],n[4],n[5]),i+=this.getLineLength(r.x,r.y,a.x,a.y),r=a;return i;case Be.QUAD_TO:for(i=0,r=this.getPointOnQuadraticBezier(0,e,t,n[0],n[1],n[2],n[3]),o=.01;o<=1;o+=.01)a=this.getPointOnQuadraticBezier(o,e,t,n[0],n[1],n[2],n[3]),i+=this.getLineLength(r.x,r.y,a.x,a.y),r=a;return i;case Be.ARC:i=0;var s=n[4],l=n[5],c=n[4]+l,u=Math.PI/180;if(Math.abs(s-c)<u&&(u=Math.abs(s-c)),r=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],s,0),l<0)for(o=s-u;o>c;o-=u)a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),i+=this.getLineLength(r.x,r.y,a.x,a.y),r=a;else for(o=s+u;o<c;o+=u)a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),i+=this.getLineLength(r.x,r.y,a.x,a.y),r=a;return a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],c,0),i+=this.getLineLength(r.x,r.y,a.x,a.y)}return 0},A.getPointOnLine=function(e,t,A,n,i){var r=arguments.length>5&&arguments[5]!==undefined?arguments[5]:t,a=arguments.length>6&&arguments[6]!==undefined?arguments[6]:A,o=(i-A)/(n-t+O),s=Math.sqrt(e*e/(1+o*o));n<t&&(s*=-1);var l=o*s,c=null;if(n===t)c={x:r,y:a+l};else if((a-A)/(r-t+O)===o)c={x:r+s,y:a+l};else{var u=0,h=0,d=this.getLineLength(t,A,n,i);if(d<O)return null;var g=(r-t)*(n-t)+(a-A)*(i-A);u=t+(g/=d*d)*(n-t),h=A+g*(i-A);var p=this.getLineLength(r,a,u,h),f=Math.sqrt(e*e-p*p);s=Math.sqrt(f*f/(1+o*o)),n<t&&(s*=-1),c={x:u+s,y:h+(l=o*s)}}return c},A.getPointOnPath=function(e){var t=this.getPathLength(),A=0,n=null;if(e<-5e-5||e-5e-5>t)return null;for(var i,r=d(this.dataArray);!(i=r()).done;){var a=i.value;if(!a||!(a.pathLength<5e-5||A+a.pathLength+5e-5<e)){var o=e-A,s=0;switch(a.type){case Be.LINE_TO:n=this.getPointOnLine(o,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case Be.ARC:var l=a.points[4],c=a.points[5],u=a.points[4]+c;if(s=l+o/a.pathLength*c,c<0&&s<u||c>=0&&s>u)break;n=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],s,a.points[6]);break;case Be.CURVE_TO:(s=o/a.pathLength)>1&&(s=1),n=this.getPointOnCubicBezier(s,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3],a.points[4],a.points[5]);break;case Be.QUAD_TO:(s=o/a.pathLength)>1&&(s=1),n=this.getPointOnQuadraticBezier(s,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3])}if(n)return n;break}A+=a.pathLength}return null},A.getLineLength=function(e,t,A,n){return Math.sqrt((A-e)*(A-e)+(n-t)*(n-t))},A.getPathLength=function(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((function(e,t){return t.pathLength>0?e+t.pathLength:e}),0)),this.pathLength},A.getPointOnCubicBezier=function(e,t,A,n,i,r,a,o,s){return{x:o*V(e)+r*G(e)+n*K(e)+t*z(e),y:s*V(e)+a*G(e)+i*K(e)+A*z(e)}},A.getPointOnQuadraticBezier=function(e,t,A,n,i,r,a){return{x:r*W(e)+n*j(e)+t*X(e),y:a*W(e)+i*j(e)+A*X(e)}},A.getPointOnEllipticalArc=function(e,t,A,n,i,r){var a=Math.cos(r),o=Math.sin(r),s=A*Math.cos(i),l=n*Math.sin(i);return{x:e+(s*a-l*o),y:t+(s*o+l*a)}},A.buildEquidistantCache=function(e,t){var A=this.getPathLength(),n=t||.25,i=e||A/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==n){this.equidistantCache={step:i,precision:n,points:[]};for(var r=0,a=0;a<=A;a+=n){var o=this.getPointOnPath(a),s=this.getPointOnPath(a+n);o&&s&&((r+=this.getLineLength(o.x,o.y,s.x,s.y))>=i&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:a}),r-=i))}}},A.getEquidistantPointOnPath=function(e,t,A){if(this.buildEquidistantCache(t,A),e<0||e-this.getPathLength()>5e-5)return null;var n=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||null},t}(xe),$e=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,et=function(e){function t(t,A,n){var i;(i=e.call(this,t,A,n)||this).type="image",i.loaded=!1;var r=i.getHrefAttribute().getString();if(!r)return p(i);var a=r.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(r);return t.images.push(p(i)),a?i.loadSvg(r):i.loadImage(r),i.isSvg=a,i}f(t,e);var A=t.prototype;return A.loadImage=function(e){var t=this;return i()(regeneratorRuntime.mark((function A(){var n;return regeneratorRuntime.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.prev=0,A.next=3,t.document.createImage(e);case 3:n=A.sent,t.image=n,A.next=10;break;case 7:A.prev=7,A.t0=A["catch"](0),console.error('Error while loading image "'.concat(e,'":'),A.t0);case 10:t.loaded=!0;case 11:case"end":return A.stop()}}),A,null,[[0,7]])})))()},A.loadSvg=function(e){var t=this;return i()(regeneratorRuntime.mark((function A(){var n,i,r,a;return regeneratorRuntime.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:if(!(n=$e.exec(e))){A.next=6;break}i=n[5],"base64"===n[4]?t.image=atob(i):t.image=decodeURIComponent(i),A.next=19;break;case 6:return A.prev=6,A.next=9,t.document.fetch(e);case 9:return r=A.sent,A.next=12,r.text();case 12:a=A.sent,t.image=a,A.next=19;break;case 16:A.prev=16,A.t0=A["catch"](6),console.error('Error while loading image "'.concat(e,'":'),A.t0);case 19:t.loaded=!0;case 20:case"end":return A.stop()}}),A,null,[[6,16]])})))()},A.renderChildren=function(e){var t=this.document,A=this.image,n=this.loaded,i=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(n&&A&&a&&o){if(e.save(),e.translate(i,r),this.isSvg){var s=t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:a,scaleHeight:o});s.document.documentElement.parent=this,s.render()}else{var l=this.image;t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a,desiredWidth:l.width,height:o,desiredHeight:l.height}),this.loaded&&("undefined"==typeof l.complete||l.complete)&&e.drawImage(l,0,0)}e.restore()}},A.getBoundingBox=function(){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),A=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y");return new be(e,t,e+A,t+n)},t}(Ce),tt=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="symbol",t}return f(t,e),t.prototype.render=function(e){},t}(Ce),At=function(){function e(e){this.document=e,this.loaded=!1,e.fonts.push(this)}return e.prototype.load=function(e,t){var A=this;return i()(regeneratorRuntime.mark((function n(){var i,r,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,i=A.document,n.next=4,i.canvg.parser.load(t);case 4:r=n.sent,a=r.getElementsByTagName("font"),Array.from(a).forEach((function(t){var A=i.createElement(t);i.definitions[e]=A})),n.next=12;break;case 9:n.prev=9,n.t0=n["catch"](0),console.error('Error while loading font "'.concat(t,'":'),n.t0);case 12:A.loaded=!0;case 13:case"end":return n.stop()}}),n,null,[[0,9]])})))()},e}(),nt=function(e){function t(t,A,n){var i;return(i=e.call(this,t,A,n)||this).type="style",C(Array.from(A.childNodes).map((function(e){return e.textContent})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach((function(e){var A=e.trim();if(A){var n=A.split("{"),i=n[0].split(","),r=n[1].split(";");i.forEach((function(e){var A=e.trim();if(A){var n=t.styles[A]||{};if(r.forEach((function(e){var A=e.indexOf(":"),i=e.substr(0,A).trim(),r=e.substr(A+1,e.length-A).trim();i&&r&&(n[i]=new Y(t,i,r))})),t.styles[A]=n,t.stylesSpecificity[A]=M(A),"@font-face"===A){var i=n["font-family"].getString().replace(/"|'/g,"");n.src.getString().split(",").forEach((function(e){if(e.indexOf('format("svg")')>0){var A=S(e);A&&new At(t).load(i,A)}}))}}}))}})),i}return f(t,e),t}(de);nt.parseExternalUrl=S;var it=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="use",t}f(t,e);var A=t.prototype;return A.setContext=function(t){e.prototype.setContext.call(this,t);var A=this.getAttribute("x"),n=this.getAttribute("y");A.hasValue()&&t.translate(A.getPixels("x"),0),n.hasValue()&&t.translate(0,n.getPixels("y"))},A.path=function(e){var t=this.element;t&&t.path(e)},A.renderChildren=function(e){var t=this.document,A=this.element;if(A){var n=A;if("symbol"===A.type&&((n=new Se(t,null)).attributes.viewBox=new Y(t,"viewBox",A.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new Y(t,"preserveAspectRatio",A.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new Y(t,"overflow",A.getAttribute("overflow").getString()),n.children=A.children,A.styles.opacity=new Y(t,"opacity",this.calculateOpacity())),"svg"===n.type){var i=this.getStyle("width",!1,!0),r=this.getStyle("height",!1,!0);i.hasValue()&&(n.attributes.width=new Y(t,"width",i.getString())),r.hasValue()&&(n.attributes.height=new Y(t,"height",r.getString()))}var a=n.parent;n.parent=this,n.render(e),n.parent=a}},A.getBoundingBox=function(e){var t=this.element;return t?t.getBoundingBox(e):null},A.elementTransform=function(){var e=this.document,t=this.element;return he.fromElement(e,t)},b(t,[{key:"element",get:function(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}]),t}(Ce);function rt(e,t,A,n,i,r){return e[A*n*4+4*t+r]}function at(e,t,A,n,i,r,a){e[A*n*4+4*t+r]=a}function ot(e,t,A){return e[t]*A}function st(e,t,A,n){return t+Math.cos(e)*A+Math.sin(e)*n}var lt=function(e){function t(t,A,n){var i;(i=e.call(this,t,A,n)||this).type="feColorMatrix";var r=x(i.getAttribute("values").getString());switch(i.getAttribute("type").getString("matrix")){case"saturate":var a=r[0];r=[.213+.787*a,.715-.715*a,.072-.072*a,0,0,.213-.213*a,.715+.285*a,.072-.072*a,0,0,.213-.213*a,.715-.715*a,.072+.928*a,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var o=r[0]*Math.PI/180;r=[st(o,.213,.787,-.213),st(o,.715,-.715,-.715),st(o,.072,-.072,.928),0,0,st(o,.213,-.213,.143),st(o,.715,.285,.14),st(o,.072,-.072,-.283),0,0,st(o,.213,-.213,-.787),st(o,.715,-.715,.715),st(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}return i.matrix=r,i.includeOpacity=i.getAttribute("includeOpacity").hasValue(),i}return f(t,e),t.prototype.apply=function(e,t,A,n,i){for(var r=this.includeOpacity,a=this.matrix,o=e.getImageData(0,0,n,i),s=0;s<i;s++)for(var l=0;l<n;l++){var c=rt(o.data,l,s,n,0,0),u=rt(o.data,l,s,n,0,1),h=rt(o.data,l,s,n,0,2),d=rt(o.data,l,s,n,0,3),g=ot(a,0,c)+ot(a,1,u)+ot(a,2,h)+ot(a,3,d)+ot(a,4,1),p=ot(a,5,c)+ot(a,6,u)+ot(a,7,h)+ot(a,8,d)+ot(a,9,1),f=ot(a,10,c)+ot(a,11,u)+ot(a,12,h)+ot(a,13,d)+ot(a,14,1),m=ot(a,15,c)+ot(a,16,u)+ot(a,17,h)+ot(a,18,d)+ot(a,19,1);r&&(g=0,p=0,f=0,m*=d/255),at(o.data,l,s,n,0,0,g),at(o.data,l,s,n,0,1,p),at(o.data,l,s,n,0,2,f),at(o.data,l,s,n,0,3,m)}e.clearRect(0,0,n,i),e.putImageData(o,0,0)},t}(de),ct=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="mask",t}f(t,e);var A=t.prototype;return A.apply=function(e,A){var n=this.document,i=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(!a&&!o){var s=new be;this.children.forEach((function(t){s.addBoundingBox(t.getBoundingBox(e))})),i=Math.floor(s.x1),r=Math.floor(s.y1),a=Math.floor(s.width),o=Math.floor(s.height)}var l=this.removeStyles(A,t.ignoreStyles),c=n.createCanvas(i+a,r+o),u=c.getContext("2d");n.screen.setDefaults(u),this.renderChildren(u),new lt(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(u,0,0,i+a,r+o);var h=n.createCanvas(i+a,r+o),d=h.getContext("2d");n.screen.setDefaults(d),A.render(d),d.globalCompositeOperation="destination-in",d.fillStyle=u.createPattern(c,"no-repeat"),d.fillRect(0,0,i+a,r+o),e.fillStyle=d.createPattern(h,"no-repeat"),e.fillRect(0,0,i+a,r+o),this.restoreStyles(A,l)},A.render=function(e){},t}(de);ct.ignoreStyles=["mask","transform","clip-path"];var ut=function(){},ht=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="clipPath",t}f(t,e);var A=t.prototype;return A.apply=function(e){var t=this.document,A=Reflect.getPrototypeOf(e),n=e.beginPath,i=e.closePath;A&&(A.beginPath=ut,A.closePath=ut),Reflect.apply(n,e,[]),this.children.forEach((function(n){if("undefined"!=typeof n.path){var r="undefined"!=typeof n.elementTransform?n.elementTransform():null;r||(r=he.fromElement(t,n)),r&&r.apply(e),n.path(e),A&&(A.closePath=i),r&&r.unapply(e)}})),Reflect.apply(i,e,[]),e.clip(),A&&(A.beginPath=n,A.closePath=i)},A.render=function(e){},t}(de),dt=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="filter",t}f(t,e);var A=t.prototype;return A.apply=function(e,A){var n=this.document,i=this.children,r=A.getBoundingBox(e);if(r){var a=0,o=0;i.forEach((function(e){var t=e.extraFilterDistance||0;a=Math.max(a,t),o=Math.max(o,t)}));var s=Math.floor(r.width),l=Math.floor(r.height),c=s+2*a,u=l+2*o;if(!(c<1||u<1)){var h=Math.floor(r.x),d=Math.floor(r.y),g=this.removeStyles(A,t.ignoreStyles),p=n.createCanvas(c,u),f=p.getContext("2d");n.screen.setDefaults(f),f.translate(-h+a,-d+o),A.render(f),i.forEach((function(e){"function"==typeof e.apply&&e.apply(f,0,0,c,u)})),e.drawImage(p,0,0,c,u,h-a,d-o,c,u),this.restoreStyles(A,g)}}},A.render=function(e){},t}(de);dt.ignoreStyles=["filter","transform","clip-path"];var gt=function(e){function t(t,A,n){var i;return(i=e.call(this,t,A,n)||this).type="feDropShadow",i.addStylesFromStyleDefinition(),i}return f(t,e),t.prototype.apply=function(e,t,A,n,i){},t}(de),pt=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="feMorphology",t}return f(t,e),t.prototype.apply=function(e,t,A,n,i){},t}(de),ft=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="feComposite",t}return f(t,e),t.prototype.apply=function(e,t,A,n,i){},t}(de),mt=function(e){function t(t,A,n){var i;return(i=e.call(this,t,A,n)||this).type="feGaussianBlur",i.blurRadius=Math.floor(i.getAttribute("stdDeviation").getNumber()),i.extraFilterDistance=i.blurRadius,i}return f(t,e),t.prototype.apply=function(e,t,A,n,i){var r=this.document,a=this.blurRadius,o=r.window?r.window.document.body:null,s=e.canvas;s.id=r.getUniqueId(),o&&(s.style.display="none",o.appendChild(s)),Object(h.canvasRGBA)(s,t,A,n,i,a),o&&o.removeChild(s)},t}(de),vt=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="title",t}return f(t,e),t}(de),bt=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="desc",t}return f(t,e),t}(de),Bt={svg:Se,rect:Qe,circle:ke,ellipse:Le,line:Ue,polyline:Ie,polygon:Te,path:we,pattern:Ne,marker:De,defs:Pe,linearGradient:He,radialGradient:_e,stop:Re,animate:Ve,animateColor:Ge,animateTransform:Ke,font:ze,"font-face":We,"missing-glyph":je,glyph:ye,text:xe,tspan:Fe,tref:Xe,a:Ye,textPath:Ze,image:et,g:Me,symbol:tt,style:nt,use:it,mask:ct,clipPath:ht,filter:dt,feDropShadow:gt,feMorphology:pt,feComposite:ft,feColorMatrix:lt,feGaussianBlur:mt,title:vt,desc:bt};function Ct(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,n)}return A}function wt(){return(wt=i()(regeneratorRuntime.mark((function e(t){var A,n,i=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A=i.length>1&&i[1]!==undefined&&i[1],n=document.createElement("img"),A&&(n.crossOrigin="Anonymous"),e.abrupt("return",new Promise((function(e,A){n.onload=function(){e(n)},n.onerror=function(e,t,n,i,r){A(r)},n.src=t})));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var yt=function(){function e(t){var A=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n=A.rootEmSize,i=void 0===n?12:n,r=A.emSize,a=void 0===r?12:r,o=A.createCanvas,s=void 0===o?e.createCanvas:o,l=A.createImage,c=void 0===l?e.createImage:l,u=A.anonymousCrossOrigin;this.canvg=t,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=i,this.emSize=a,this.createCanvas=s,this.createImage=this.bindCreateImage(c,u),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}var t=e.prototype;return t.bindCreateImage=function(e,t){return"boolean"==typeof t?function(A,n){return e(A,"boolean"==typeof n?n:t)}:e},t.popEmSize=function(){this.emSizeStack.pop()},t.getUniqueId=function(){return"canvg".concat(++this.uniqueId)},t.isImagesLoaded=function(){return this.images.every((function(e){return e.loaded}))},t.isFontsLoaded=function(){return this.fonts.every((function(e){return e.loaded}))},t.createDocumentElement=function(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t},t.createElement=function(t){var A=t.nodeName.replace(/^[^:]+:/,""),n=e.elementTypes[A];return void 0!==n?new n(this,t):new ge(this,t)},t.createTextNode=function(e){return new Ee(this,e)},t.setViewBox=function(e){this.screen.setViewBox(function(e){for(var t=1;t<arguments.length;t++){var A=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(A),!0).forEach((function(t){a()(e,t,A[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(A)):Ct(Object(A)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(A,t))}))}return e}({document:this},e))},b(e,[{key:"window",get:function(){return this.screen.window}},{key:"fetch",get:function(){return this.screen.fetch}},{key:"ctx",get:function(){return this.screen.ctx}},{key:"emSize",get:function(){var e=this.emSizeStack;return e[e.length-1]},set:function(e){this.emSizeStack.push(e)}}]),e}();function xt(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,n)}return A}function Ft(e){for(var t=1;t<arguments.length;t++){var A=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(A),!0).forEach((function(t){a()(e,t,A[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(A)):xt(Object(A)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(A,t))}))}return e}yt.createCanvas=function(e,t){var A=document.createElement("canvas");return A.width=e,A.height=t,A},yt.createImage=function(e){return wt.apply(this,arguments)},yt.elementTypes=Bt;var Et=function(){function e(e,t){var A=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};this.parser=new ie(A),this.screen=new te(e,A),this.options=A;var n=new yt(this,A),i=n.createDocumentElement(t);this.document=n,this.documentElement=i}e.from=function(t,A){var n=arguments;return i()(regeneratorRuntime.mark((function r(){var i,a,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=n.length>2&&n[2]!==undefined?n[2]:{},a=new ie(i),r.next=4,a.parse(A);case 4:return o=r.sent,r.abrupt("return",new e(t,o,i));case 6:case"end":return r.stop()}}),r)})))()},e.fromString=function(t,A){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},i=new ie(n),r=i.parseFromString(A);return new e(t,r,n)};var t=e.prototype;return t.fork=function(t,A){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return e.from(t,A,Ft(Ft({},this.options),n))},t.forkString=function(t,A){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return e.fromString(t,A,Ft(Ft({},this.options),n))},t.ready=function(){return this.screen.ready()},t.isReady=function(){return this.screen.isReady()},t.render=function(){var e=arguments,t=this;return i()(regeneratorRuntime.mark((function A(){var n;return regeneratorRuntime.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return n=e.length>0&&e[0]!==undefined?e[0]:{},t.start(Ft({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},n)),A.next=4,t.ready();case 4:t.stop();case 5:case"end":return A.stop()}}),A)})))()},t.start=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},t=this.documentElement,A=this.screen,n=this.options;A.start(t,Ft(Ft({enableRedraw:!0},n),e))},t.stop=function(){this.screen.stop()},t.resize=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:e,A=arguments.length>2&&arguments[2]!==undefined&&arguments[2];this.documentElement.resize(e,t,A)},e}()}.call(this,A(247))},function(e,t,A){"use strict";A(1312),A(1329),A(1331),A(1332),A(1333),A(1334)},function(e,t,A){"use strict";var n,i,r,a=A(4),o=A(38),s=A(111),l=A(5),c=A(10),u=A(50),h=A(173),d=A(133),g=A(233),p=A(33),f=A(23),m=A(22),v=A(229),b=A(1313),B=A(1315).set,C=A(1318),w=A(1322),y=A(1323),x=A(1319),F=A(54),E=A(1324),S=A(1325),Q=A(1328),k=S.CONSTRUCTOR,L=S.REJECTION_EVENT,U=S.SUBCLASSING,I=F.getterFor("Promise"),T=F.set,N=E&&E.prototype,D=E,P=N,M=l.TypeError,O=l.document,H=l.process,_=Q.f,R=_,V=!!(O&&O.createEvent&&l.dispatchEvent),G=function(e){var t;return!(!m(e)||!f(t=e.then))&&t},K=function(e,t){var A,n,i,r=t.value,a=1===t.state,o=a?e.ok:e.fail,s=e.resolve,l=e.reject,u=e.domain;try{o?(a||(2===t.rejection&&Y(t),t.rejection=1),!0===o?A=r:(u&&u.enter(),A=o(r),u&&(u.exit(),i=!0)),A===e.promise?l(new M("Promise-chain cycle")):(n=G(A))?c(n,A,s,l):s(A)):l(r)}catch(h){u&&!i&&u.exit(),l(h)}},z=function(e,t){e.notified||(e.notified=!0,C((function(){for(var A,n=e.reactions;A=n.get();)K(A,e);e.notified=!1,t&&!e.rejection&&j(e)})))},W=function(e,t,A){var n,i;V?((n=O.createEvent("Event")).promise=t,n.reason=A,n.initEvent(e,!1,!0),l.dispatchEvent(n)):n={promise:t,reason:A},!L&&(i=l["on"+e])?i(n):"unhandledrejection"===e&&w("Unhandled promise rejection",A)},j=function(e){c(B,l,(function(){var t,A=e.facade,n=e.value;if(X(e)&&(t=y((function(){s?H.emit("unhandledRejection",n,A):W("unhandledrejection",A,n)})),e.rejection=s||X(e)?2:1,t.error))throw t.value}))},X=function(e){return 1!==e.rejection&&!e.parent},Y=function(e){c(B,l,(function(){var t=e.facade;s?H.emit("rejectionHandled",t):W("rejectionhandled",t,e.value)}))},J=function(e,t,A){return function(n){e(t,n,A)}},q=function(e,t,A){e.done||(e.done=!0,A&&(e=A),e.value=t,e.state=2,z(e,!0))},Z=function ee(e,t,A){if(!e.done){e.done=!0,A&&(e=A);try{if(e.facade===t)throw new M("Promise can't be resolved itself");var n=G(t);n?C((function(){var A={done:!1};try{c(n,t,J(ee,A,e),J(q,A,e))}catch(i){q(A,i,e)}})):(e.value=t,e.state=1,z(e,!1))}catch(i){q({done:!1},i,e)}}};if(k&&(P=(D=function(e){v(this,P),p(e),c(n,this);var t=I(this);try{e(J(Z,t),J(q,t))}catch(A){q(t,A)}}).prototype,(n=function(e){T(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new x,rejection:!1,state:0,value:undefined})}).prototype=u(P,"then",(function(e,t){var A=I(this),n=_(b(this,D));return A.parent=!0,n.ok=!f(e)||e,n.fail=f(t)&&t,n.domain=s?H.domain:undefined,0===A.state?A.reactions.add(n):C((function(){K(n,A)})),n.promise})),i=function(){var e=new n,t=I(e);this.promise=e,this.resolve=J(Z,t),this.reject=J(q,t)},Q.f=_=function(e){return e===D||void 0===e?new i(e):R(e)},!o&&f(E)&&N!==Object.prototype)){r=N.then,U||u(N,"then",(function(e,t){var A=this;return new D((function(e,t){c(r,A,e,t)})).then(e,t)}),{unsafe:!0});try{delete N.constructor}catch($){}h&&h(N,P)}a({global:!0,constructor:!0,wrap:!0,forced:k},{Promise:D}),d(D,"Promise",!1,!0),g("Promise")},function(e,t,A){"use strict";var n=A(49),i=A(1314),r=A(19),a=A(36)("species");e.exports=function(e,t){var A,o=n(e).constructor;return o===undefined||r(A=n(o)[a])?t:i(A)}},function(e,t,A){"use strict";var n=A(100),i=A(34),r=TypeError;e.exports=function(e){if(n(e))return e;throw new r(i(e)+" is not a constructor")}},function(e,t,A){"use strict";var n,i,r,a,o=A(5),s=A(138),l=A(96),c=A(23),u=A(41),h=A(9),d=A(84),g=A(139),p=A(45),f=A(1316),m=A(1317),v=A(111),b=o.setImmediate,B=o.clearImmediate,C=o.process,w=o.Dispatch,y=o.Function,x=o.MessageChannel,F=o.String,E=0,S={};h((function(){n=o.location}));var Q=function(e){if(u(S,e)){var t=S[e];delete S[e],t()}},k=function(e){return function(){Q(e)}},L=function(e){Q(e.data)},U=function(e){o.postMessage(F(e),n.protocol+"//"+n.host)};b&&B||(b=function(e){f(arguments.length,1);var t=c(e)?e:y(e),A=g(arguments,1);return S[++E]=function(){s(t,undefined,A)},i(E),E},B=function(e){delete S[e]},v?i=function(e){C.nextTick(k(e))}:w&&w.now?i=function(e){w.now(k(e))}:x&&!m?(a=(r=new x).port2,r.port1.onmessage=L,i=l(a.postMessage,a)):o.addEventListener&&c(o.postMessage)&&!o.importScripts&&n&&"file:"!==n.protocol&&!h(U)?(i=U,o.addEventListener("message",L,!1)):i="onreadystatechange"in p("script")?function(e){d.appendChild(p("script")).onreadystatechange=function(){d.removeChild(this),Q(e)}}:function(e){setTimeout(k(e),0)}),e.exports={set:b,clear:B}},function(e,t,A){"use strict";var n=TypeError;e.exports=function(e,t){if(e<t)throw new n("Not enough arguments");return e}},function(e,t,A){"use strict";var n=A(31);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},function(e,t,A){"use strict";var n,i,r,a,o,s=A(5),l=A(96),c=A(7).f,u=A(1315).set,h=A(1319),d=A(1317),g=A(1320),p=A(1321),f=A(111),m=s.MutationObserver||s.WebKitMutationObserver,v=s.document,b=s.process,B=s.Promise,C=c(s,"queueMicrotask"),w=C&&C.value;if(!w){var y=new h,x=function(){var e,t;for(f&&(e=b.domain)&&e.exit();t=y.get();)try{t()}catch(A){throw y.head&&n(),A}e&&e.enter()};d||f||p||!m||!v?!g&&B&&B.resolve?((a=B.resolve(undefined)).constructor=B,o=l(a.then,a),n=function(){o(x)}):f?n=function(){b.nextTick(x)}:(u=l(u,s),n=function(){u(x)}):(i=!0,r=v.createTextNode(""),new m(x).observe(r,{characterData:!0}),n=function(){r.data=i=!i}),w=function(e){y.head||n(),y.add(e)}}e.exports=w},function(e,t,A){"use strict";var n=function(){this.head=null,this.tail=null};n.prototype={add:function(e){var t={item:e,next:null},A=this.tail;A?A.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=n},function(e,t,A){"use strict";var n=A(31);e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},function(e,t,A){"use strict";var n=A(31);e.exports=/web0s(?!.*chrome)/i.test(n)},function(e,t,A){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(A){}}},function(e,t,A){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(e,t,A){"use strict";var n=A(5);e.exports=n.Promise},function(e,t,A){"use strict";var n=A(5),i=A(1324),r=A(23),a=A(70),o=A(53),s=A(36),l=A(1326),c=A(1327),u=A(38),h=A(30),d=i&&i.prototype,g=s("species"),p=!1,f=r(n.PromiseRejectionEvent),m=a("Promise",(function(){var e=o(i),t=e!==String(i);if(!t&&66===h)return!0;if(u&&(!d["catch"]||!d["finally"]))return!0;if(!h||h<51||!/native code/.test(e)){var A=new i((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((A.constructor={})[g]=n,!(p=A.then((function(){}))instanceof n))return!0}return!t&&(l||c)&&!f}));e.exports={CONSTRUCTOR:m,REJECTION_EVENT:f,SUBCLASSING:p}},function(e,t,A){"use strict";var n=A(1327),i=A(111);e.exports=!n&&!i&&"object"==typeof window&&"object"==typeof document},function(e,t,A){"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},function(e,t,A){"use strict";var n=A(33),i=TypeError,r=function(e){var t,A;this.promise=new e((function(e,n){if(t!==undefined||A!==undefined)throw new i("Bad Promise constructor");t=e,A=n})),this.resolve=n(t),this.reject=n(A)};e.exports.f=function(e){return new r(e)}},function(e,t,A){"use strict";var n=A(4),i=A(10),r=A(33),a=A(1328),o=A(1323),s=A(178);n({target:"Promise",stat:!0,forced:A(1330)},{all:function(e){var t=this,A=a.f(t),n=A.resolve,l=A.reject,c=o((function(){var A=r(t.resolve),a=[],o=0,c=1;s(e,(function(e){var r=o++,s=!1;c++,i(A,t,e).then((function(e){s||(s=!0,a[r]=e,--c||n(a))}),l)})),--c||n(a)}));return c.error&&l(c.value),A.promise}})},function(e,t,A){"use strict";var n=A(1324),i=A(198),r=A(1325).CONSTRUCTOR;e.exports=r||!i((function(e){n.all(e).then(undefined,(function(){}))}))},function(e,t,A){"use strict";var n=A(4),i=A(38),r=A(1325).CONSTRUCTOR,a=A(1324),o=A(26),s=A(23),l=A(50),c=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:r,real:!0},{"catch":function(e){return this.then(undefined,e)}}),!i&&s(a)){var u=o("Promise").prototype["catch"];c["catch"]!==u&&l(c,"catch",u,{unsafe:!0})}},function(e,t,A){"use strict";var n=A(4),i=A(10),r=A(33),a=A(1328),o=A(1323),s=A(178);n({target:"Promise",stat:!0,forced:A(1330)},{race:function(e){var t=this,A=a.f(t),n=A.reject,l=o((function(){var a=r(t.resolve);s(e,(function(e){i(a,t,e).then(A.resolve,n)}))}));return l.error&&n(l.value),A.promise}})},function(e,t,A){"use strict";var n=A(4),i=A(10),r=A(1328);n({target:"Promise",stat:!0,forced:A(1325).CONSTRUCTOR},{reject:function(e){var t=r.f(this);return i(t.reject,undefined,e),t.promise}})},function(e,t,A){"use strict";var n=A(4),i=A(26),r=A(38),a=A(1324),o=A(1325).CONSTRUCTOR,s=A(1335),l=i("Promise"),c=r&&!o;n({target:"Promise",stat:!0,forced:r||o},{resolve:function(e){return s(c&&this===l?a:this,e)}})},function(e,t,A){"use strict";var n=A(49),i=A(22),r=A(1328);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var A=r.f(e);return(0,A.resolve)(t),A.promise}},function(e,t){function A(e,t,A,n,i,r,a){try{var o=e[r](a),s=o.value}catch(l){return void A(l)}o.done?t(s):Promise.resolve(s).then(n,i)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var a=e.apply(t,n);function o(e){A(a,i,r,o,s,"next",e)}function s(e){A(a,i,r,o,s,"throw",e)}o(undefined)}))}},e.exports["default"]=e.exports,e.exports.__esModule=!0},function(e,t,A){"use strict";var n=A(10),i=A(1338),r=A(49),a=A(19),o=A(67),s=A(119),l=A(18),c=A(32),u=A(1345),h=A(1346);i("match",(function(e,t,A){return[function(t){var A=l(this),i=a(t)?undefined:c(t,e);return i?n(i,t,A):new RegExp(t)[e](s(A))},function(e){var n=r(this),i=s(e),a=A(t,n,i);if(a.done)return a.value;if(!n.global)return h(n,i);var l=n.unicode;n.lastIndex=0;for(var c,d=[],g=0;null!==(c=h(n,i));){var p=s(c[0]);d[g]=p,""===p&&(n.lastIndex=u(i,o(n.lastIndex),l)),g++}return 0===g?null:d}]}))},function(e,t,A){"use strict";A(1339);var n=A(89),i=A(50),r=A(1340),a=A(9),o=A(36),s=A(46),l=o("species"),c=RegExp.prototype;e.exports=function(e,t,A,u){var h=o(e),d=!a((function(){var t={};return t[h]=function(){return 7},7!==""[e](t)})),g=d&&!a((function(){var t=!1,A=/a/;return"split"===e&&((A={}).constructor={},A.constructor[l]=function(){return A},A.flags="",A[h]=/./[h]),A.exec=function(){return t=!0,null},A[h](""),!t}));if(!d||!g||A){var p=n(/./[h]),f=t(h,""[e],(function(e,t,A,i,a){var o=n(e),s=t.exec;return s===r||s===c.exec?d&&!a?{done:!0,value:p(t,A,i)}:{done:!0,value:o(A,t,i)}:{done:!1}}));i(String.prototype,e,f[0]),i(c,h,f[1])}u&&s(c[h],"sham",!0)}},function(e,t,A){"use strict";var n=A(4),i=A(1340);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(e,t,A){"use strict";var n,i,r=A(10),a=A(16),o=A(119),s=A(1341),l=A(1342),c=A(37),u=A(81),h=A(54).get,d=A(1343),g=A(1344),p=c("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,m=f,v=a("".charAt),b=a("".indexOf),B=a("".replace),C=a("".slice),w=(i=/b*/g,r(f,n=/a/,"a"),r(f,i,"a"),0!==n.lastIndex||0!==i.lastIndex),y=l.BROKEN_CARET,x=/()??/.exec("")[1]!==undefined;(w||x||y||d||g)&&(m=function(e){var t,A,n,i,a,l,c,d=this,g=h(d),F=o(e),E=g.raw;if(E)return E.lastIndex=d.lastIndex,t=r(m,E,F),d.lastIndex=E.lastIndex,t;var S=g.groups,Q=y&&d.sticky,k=r(s,d),L=d.source,U=0,I=F;if(Q&&(k=B(k,"y",""),-1===b(k,"g")&&(k+="g"),I=C(F,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==v(F,d.lastIndex-1))&&(L="(?: "+L+")",I=" "+I,U++),A=new RegExp("^(?:"+L+")",k)),x&&(A=new RegExp("^"+L+"$(?!\\s)",k)),w&&(n=d.lastIndex),i=r(f,Q?A:d,I),Q?i?(i.input=C(i.input,U),i[0]=C(i[0],U),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:w&&i&&(d.lastIndex=d.global?i.index+i[0].length:n),x&&i&&i.length>1&&r(p,i[0],A,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===undefined&&(i[a]=undefined)})),i&&S)for(i.groups=l=u(null),a=0;a<S.length;a++)l[(c=S[a])[0]]=i[c[1]];return i}),e.exports=m},function(e,t,A){"use strict";var n=A(49);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},function(e,t,A){"use strict";var n=A(9),i=A(5).RegExp,r=n((function(){var e=i("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=r||n((function(){return!i("a","y").sticky})),o=r||n((function(){var e=i("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:o,MISSED_STICKY:a,UNSUPPORTED_Y:r}},function(e,t,A){"use strict";var n=A(9),i=A(5).RegExp;e.exports=n((function(){var e=i(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},function(e,t,A){"use strict";var n=A(9),i=A(5).RegExp;e.exports=n((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},function(e,t,A){"use strict";var n=A(194).charAt;e.exports=function(e,t,A){return t+(A?n(e,t).length:1)}},function(e,t,A){"use strict";var n=A(10),i=A(49),r=A(23),a=A(17),o=A(1340),s=TypeError;e.exports=function(e,t){var A=e.exec;if(r(A)){var l=n(A,e,t);return null!==l&&i(l),l}if("RegExp"===a(e))return n(o,e,t);throw new s("RegExp#exec called on incompatible receiver")}},function(e,t,A){"use strict";var n=A(138),i=A(10),r=A(16),a=A(1338),o=A(9),s=A(49),l=A(23),c=A(19),u=A(64),h=A(67),d=A(119),g=A(18),p=A(1345),f=A(32),m=A(1348),v=A(1346),b=A(36)("replace"),B=Math.max,C=Math.min,w=r([].concat),y=r([].push),x=r("".indexOf),F=r("".slice),E="$0"==="a".replace(/./,"$0"),S=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,A){var r=S?"$":"$0";return[function(e,A){var n=g(this),r=c(e)?undefined:f(e,b);return r?i(r,e,n,A):i(t,d(n),e,A)},function(e,i){var a=s(this),o=d(e);if("string"==typeof i&&-1===x(i,r)&&-1===x(i,"$<")){var c=A(t,a,o,i);if(c.done)return c.value}var g=l(i);g||(i=d(i));var f,b=a.global;b&&(f=a.unicode,a.lastIndex=0);for(var E,S=[];null!==(E=v(a,o))&&(y(S,E),b);){""===d(E[0])&&(a.lastIndex=p(o,h(a.lastIndex),f))}for(var Q,k="",L=0,U=0;U<S.length;U++){for(var I,T=d((E=S[U])[0]),N=B(C(u(E.index),o.length),0),D=[],P=1;P<E.length;P++)y(D,(Q=E[P])===undefined?Q:String(Q));var M=E.groups;if(g){var O=w([T],D,N,o);M!==undefined&&y(O,M),I=d(n(i,undefined,O))}else I=m(T,o,N,D,M,i);N>=L&&(k+=F(o,L,N)+I,L=N+T.length)}return k+F(o,L)}]}),!!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!E||S)},function(e,t,A){"use strict";var n=A(16),i=A(42),r=Math.floor,a=n("".charAt),o=n("".replace),s=n("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,A,n,u,h){var d=A+e.length,g=n.length,p=c;return u!==undefined&&(u=i(u),p=l),o(h,p,(function(i,o){var l;switch(a(o,0)){case"$":return"$";case"&":return e;case"`":return s(t,0,A);case"'":return s(t,d);case"<":l=u[s(o,1,-1)];break;default:var c=+o;if(0===c)return i;if(c>g){var h=r(c/10);return 0===h?i:h<=g?n[h-1]===undefined?a(o,1):n[h-1]+a(o,1):i}l=n[c-1]}return l===undefined?"":l}))}},function(e,t,A){"use strict";var n,i=A(4),r=A(89),a=A(7).f,o=A(67),s=A(119),l=A(1350),c=A(18),u=A(1352),h=A(38),d=r("".startsWith),g=r("".slice),p=Math.min,f=u("startsWith");i({target:"String",proto:!0,forced:!!(h||f||(n=a(String.prototype,"startsWith"),!n||n.writable))&&!f},{startsWith:function(e){var t=s(c(this));l(e);var A=o(p(arguments.length>1?arguments[1]:undefined,t.length)),n=s(e);return d?d(t,n,A):g(t,A,A+n.length)===n}})},function(e,t,A){"use strict";var n=A(1351),i=TypeError;e.exports=function(e){if(n(e))throw new i("The method doesn't accept regular expressions");return e}},function(e,t,A){"use strict";var n=A(22),i=A(17),r=A(36)("match");e.exports=function(e){var t;return n(e)&&((t=e[r])!==undefined?!!t:"RegExp"===i(e))}},function(e,t,A){"use strict";var n=A(36)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(A){try{return t[n]=!1,"/./"[e](t)}catch(i){}}return!1}},function(e,t,A){"use strict";var n=A(5),i=A(1354),r=A(1355),a=A(167),o=A(46),s=A(36),l=s("iterator"),c=s("toStringTag"),u=a.values,h=function(e,t){if(e){if(e[l]!==u)try{o(e,l,u)}catch(n){e[l]=u}if(e[c]||o(e,c,t),i[t])for(var A in a)if(e[A]!==a[A])try{o(e,A,a[A])}catch(n){e[A]=a[A]}}};for(var d in i)h(n[d]&&n[d].prototype,d);h(r,"DOMTokenList")},function(e,t,A){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,A){"use strict";var n=A(45)("span").classList,i=n&&n.constructor&&n.constructor.prototype;e.exports=i===Object.prototype?undefined:i},function(e,t,A){"use strict";var n,i=A(4),r=A(89),a=A(7).f,o=A(67),s=A(119),l=A(1350),c=A(18),u=A(1352),h=A(38),d=r("".endsWith),g=r("".slice),p=Math.min,f=u("endsWith");i({target:"String",proto:!0,forced:!!(h||f||(n=a(String.prototype,"endsWith"),!n||n.writable))&&!f},{endsWith:function(e){var t=s(c(this));l(e);var A=arguments.length>1?arguments[1]:undefined,n=t.length,i=A===undefined?n:p(o(A),n),r=s(e);return d?d(t,r,i):g(t,i-r.length,i)===r}})},function(e,t,A){"use strict";var n=A(138),i=A(10),r=A(16),a=A(1338),o=A(49),s=A(19),l=A(1351),c=A(18),u=A(1313),h=A(1345),d=A(67),g=A(119),p=A(32),f=A(72),m=A(1346),v=A(1340),b=A(1342),B=A(9),C=b.UNSUPPORTED_Y,w=Math.min,y=[].push,x=r(/./.exec),F=r(y),E=r("".slice);a("split",(function(e,t,A){var r;return r="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,A){var r=g(c(this)),a=A===undefined?4294967295:A>>>0;if(0===a)return[];if(e===undefined)return[r];if(!l(e))return i(t,r,e,a);for(var o,s,u,h=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,m=new RegExp(e.source,d+"g");(o=i(v,m,r))&&!((s=m.lastIndex)>p&&(F(h,E(r,p,o.index)),o.length>1&&o.index<r.length&&n(y,h,f(o,1)),u=o[0].length,p=s,h.length>=a));)m.lastIndex===o.index&&m.lastIndex++;return p===r.length?!u&&x(m,"")||F(h,""):F(h,E(r,p)),h.length>a?f(h,0,a):h}:"0".split(undefined,0).length?function(e,A){return e===undefined&&0===A?[]:i(t,this,e,A)}:t,[function(t,A){var n=c(this),a=s(t)?undefined:p(t,e);return a?i(a,t,n,A):i(r,g(n),t,A)},function(e,n){var i=o(this),a=g(e),s=A(r,i,a,n,r!==t);if(s.done)return s.value;var l=u(i,RegExp),c=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(C?"g":"y"),f=new l(C?"^(?:"+i.source+")":i,p),v=n===undefined?4294967295:n>>>0;if(0===v)return[];if(0===a.length)return null===m(f,a)?[a]:[];for(var b=0,B=0,y=[];B<a.length;){f.lastIndex=C?0:B;var x,S=m(f,C?E(a,B):a);if(null===S||(x=w(d(f.lastIndex+(C?B:0)),a.length))===b)B=h(a,B,c);else{if(F(y,E(a,b,B)),y.length===v)return y;for(var Q=1;Q<=S.length-1;Q++)if(F(y,S[Q]),y.length===v)return y;B=b=x}}return F(y,E(a,b)),y}]}),!!B((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var A="ab".split(e);return 2!==A.length||"a"!==A[0]||"b"!==A[1]})),C)},function(e,t,A){(function(t){for(var n=A(1359),i="undefined"==typeof window?t:window,r=["moz","webkit"],a="AnimationFrame",o=i["request"+a],s=i["cancel"+a]||i["cancelRequest"+a],l=0;!o&&l<r.length;l++)o=i[r[l]+"Request"+a],s=i[r[l]+"Cancel"+a]||i[r[l]+"CancelRequest"+a];if(!o||!s){var c=0,u=0,h=[];o=function(e){if(0===h.length){var t=n(),A=Math.max(0,1e3/60-(t-c));c=A+t,setTimeout((function(){var e=h.slice(0);h.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(A){setTimeout((function(){throw A}),0)}}),Math.round(A))}return h.push({handle:++u,callback:e,cancelled:!1}),u},s=function(e){for(var t=0;t<h.length;t++)h[t].handle===e&&(h[t].cancelled=!0)}}e.exports=function(e){return o.call(i,e)},e.exports.cancel=function(){s.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=o,e.cancelAnimationFrame=s}}).call(this,A(6))},function(e,t,A){(function(t){(function(){var A,n,i,r,a,o;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(A()-a)/1e6},n=t.hrtime,r=(A=function(){var e;return 1e9*(e=n())[0]+e[1]})(),o=1e9*t.uptime(),a=r-o):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this,A(247))},function(e,t){e.exports=function(e){this.ok=!1,this.alpha=1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e=(e=e.replace(/ /g,"")).toLowerCase();var t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};e=t[e]||e;for(var A=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),parseFloat(e[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],n=0;n<A.length;n++){var i=A[n].re,r=A[n].process,a=i.exec(e);if(a){var o=r(a);this.r=o[0],this.g=o[1],this.b=o[2],o.length>3&&(this.alpha=o[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),A=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==A.length&&(A="0"+A),"#"+e+t+A},this.getHelpXML=function(){for(var e=new Array,n=0;n<A.length;n++)for(var i=A[n].example,r=0;r<i.length;r++)e[e.length]=i[r];for(var a in t)e[e.length]=a;var o=document.createElement("ul");o.setAttribute("id","rgbcolor-examples");for(n=0;n<e.length;n++)try{var s=document.createElement("li"),l=new RGBColor(e[n]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+l.toHex()+"; color:"+l.toHex(),c.appendChild(document.createTextNode("test"));var u=document.createTextNode(" "+e[n]+" -> "+l.toRGB()+" -> "+l.toHex());s.appendChild(c),s.appendChild(u),o.appendChild(s)}catch(h){}return o}}},function(e,t,A){"use strict";var n=A(4),i=A(16),r=A(1350),a=A(18),o=A(119),s=A(1352),l=i("".indexOf);n({target:"String",proto:!0,forced:!s("includes")},{includes:function(e){return!!~l(o(a(this)),o(r(e)),arguments.length>1?arguments[1]:undefined)}})},function(e,t,A){"use strict";var n=A(4),i=A(16),r=A(99),a=i([].reverse),o=[1,2];n({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return r(this)&&(this.length=this.length),a(this)}})},function(e,t,A){"use strict";A.r(t),A.d(t,"COMMAND_ARG_COUNTS",(function(){return y})),A.d(t,"SVGPathData",(function(){return w})),A.d(t,"SVGPathDataParser",(function(){return C})),A.d(t,"SVGPathDataTransformer",(function(){return u})),A.d(t,"encodeSVGPath",(function(){return r}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var A in t)Object.prototype.hasOwnProperty.call(t,A)&&(e[A]=t[A])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function A(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(A.prototype=t.prototype,new A)}function r(e){var t="";Array.isArray(e)||(e=[e]);for(var A=0;A<e.length;A++){var n=e[A];if(n.type===w.CLOSE_PATH)t+="z";else if(n.type===w.HORIZ_LINE_TO)t+=(n.relative?"h":"H")+n.x;else if(n.type===w.VERT_LINE_TO)t+=(n.relative?"v":"V")+n.y;else if(n.type===w.MOVE_TO)t+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===w.LINE_TO)t+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===w.CURVE_TO)t+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===w.SMOOTH_CURVE_TO)t+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===w.QUAD_TO)t+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===w.SMOOTH_QUAD_TO)t+=(n.relative?"t":"T")+n.x+" "+n.y;else{if(n.type!==w.ARC)throw new Error('Unexpected command type "'+n.type+'" at index '+A+".");t+=(n.relative?"a":"A")+n.rX+" "+n.rY+" "+n.xRot+" "+ +n.lArcFlag+" "+ +n.sweepFlag+" "+n.x+" "+n.y}}return t}function a(e,t){var A=e[0],n=e[1];return[A*Math.cos(t)-n*Math.sin(t),A*Math.sin(t)+n*Math.cos(t)]}function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var A=0;A<e.length;A++)if("number"!=typeof e[A])throw new Error("assertNumbers arguments["+A+"] is not a number. "+typeof e[A]+" == typeof "+e[A]);return!0}var s=Math.PI;function l(e,t,A){e.lArcFlag=0===e.lArcFlag?0:1,e.sweepFlag=0===e.sweepFlag?0:1;var n=e.rX,i=e.rY,r=e.x,o=e.y;n=Math.abs(e.rX),i=Math.abs(e.rY);var l=a([(t-r)/2,(A-o)/2],-e.xRot/180*s),c=l[0],u=l[1],h=Math.pow(c,2)/Math.pow(n,2)+Math.pow(u,2)/Math.pow(i,2);1<h&&(n*=Math.sqrt(h),i*=Math.sqrt(h)),e.rX=n,e.rY=i;var d=Math.pow(n,2)*Math.pow(u,2)+Math.pow(i,2)*Math.pow(c,2),g=(e.lArcFlag!==e.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(n,2)*Math.pow(i,2)-d)/d)),p=n*u/i*g,f=-i*c/n*g,m=a([p,f],e.xRot/180*s);e.cX=m[0]+(t+r)/2,e.cY=m[1]+(A+o)/2,e.phi1=Math.atan2((u-f)/i,(c-p)/n),e.phi2=Math.atan2((-u-f)/i,(-c-p)/n),0===e.sweepFlag&&e.phi2>e.phi1&&(e.phi2-=2*s),1===e.sweepFlag&&e.phi2<e.phi1&&(e.phi2+=2*s),e.phi1*=180/s,e.phi2*=180/s}function c(e,t,A){o(e,t,A);var n=e*e+t*t-A*A;if(0>n)return[];if(0===n)return[[e*A/(e*e+t*t),t*A/(e*e+t*t)]];var i=Math.sqrt(n);return[[(e*A+t*i)/(e*e+t*t),(t*A-e*i)/(e*e+t*t)],[(e*A-t*i)/(e*e+t*t),(t*A+e*i)/(e*e+t*t)]]}var u,h=Math.PI/180;function d(e,t,A){return(1-A)*e+A*t}function g(e,t,A,n){return e+Math.cos(n/180*s)*t+Math.sin(n/180*s)*A}function p(e,t,A,n){var i=1e-6,r=t-e,a=A-t,o=3*r+3*(n-A)-6*a,s=6*(a-r),l=3*r;return Math.abs(o)<i?[-l/s]:function(e,t,A){void 0===A&&(A=1e-6);var n=e*e/4-t;if(n<-A)return[];if(n<=A)return[-e/2];var i=Math.sqrt(n);return[-e/2-i,-e/2+i]}(s/o,l/o,i)}function f(e,t,A,n,i){var r=1-i;return e*(r*r*r)+t*(3*r*r*i)+A*(3*r*i*i)+n*(i*i*i)}!function(e){function t(){return i((function(e,t,A){return e.relative&&(void 0!==e.x1&&(e.x1+=t),void 0!==e.y1&&(e.y1+=A),void 0!==e.x2&&(e.x2+=t),void 0!==e.y2&&(e.y2+=A),void 0!==e.x&&(e.x+=t),void 0!==e.y&&(e.y+=A),e.relative=!1),e}))}function A(){var e=NaN,t=NaN,A=NaN,n=NaN;return i((function(i,r,a){return i.type&w.SMOOTH_CURVE_TO&&(i.type=w.CURVE_TO,e=isNaN(e)?r:e,t=isNaN(t)?a:t,i.x1=i.relative?r-e:2*r-e,i.y1=i.relative?a-t:2*a-t),i.type&w.CURVE_TO?(e=i.relative?r+i.x2:i.x2,t=i.relative?a+i.y2:i.y2):(e=NaN,t=NaN),i.type&w.SMOOTH_QUAD_TO&&(i.type=w.QUAD_TO,A=isNaN(A)?r:A,n=isNaN(n)?a:n,i.x1=i.relative?r-A:2*r-A,i.y1=i.relative?a-n:2*a-n),i.type&w.QUAD_TO?(A=i.relative?r+i.x1:i.x1,n=i.relative?a+i.y1:i.y1):(A=NaN,n=NaN),i}))}function n(){var e=NaN,t=NaN;return i((function(A,n,i){if(A.type&w.SMOOTH_QUAD_TO&&(A.type=w.QUAD_TO,e=isNaN(e)?n:e,t=isNaN(t)?i:t,A.x1=A.relative?n-e:2*n-e,A.y1=A.relative?i-t:2*i-t),A.type&w.QUAD_TO){e=A.relative?n+A.x1:A.x1,t=A.relative?i+A.y1:A.y1;var r=A.x1,a=A.y1;A.type=w.CURVE_TO,A.x1=((A.relative?0:n)+2*r)/3,A.y1=((A.relative?0:i)+2*a)/3,A.x2=(A.x+2*r)/3,A.y2=(A.y+2*a)/3}else e=NaN,t=NaN;return A}))}function i(e){var t=0,A=0,n=NaN,i=NaN;return function(r){if(isNaN(n)&&!(r.type&w.MOVE_TO))throw new Error("path must start with moveto");var a=e(r,t,A,n,i);return r.type&w.CLOSE_PATH&&(t=n,A=i),void 0!==r.x&&(t=r.relative?t+r.x:r.x),void 0!==r.y&&(A=r.relative?A+r.y:r.y),r.type&w.MOVE_TO&&(n=t,i=A),a}}function r(e,t,A,n,r,a){return o(e,t,A,n,r,a),i((function(i,o,s,l){var c=i.x1,u=i.x2,h=i.relative&&!isNaN(l),d=void 0!==i.x?i.x:h?0:o,g=void 0!==i.y?i.y:h?0:s;function p(e){return e*e}i.type&w.HORIZ_LINE_TO&&0!==t&&(i.type=w.LINE_TO,i.y=i.relative?0:s),i.type&w.VERT_LINE_TO&&0!==A&&(i.type=w.LINE_TO,i.x=i.relative?0:o),void 0!==i.x&&(i.x=i.x*e+g*A+(h?0:r)),void 0!==i.y&&(i.y=d*t+i.y*n+(h?0:a)),void 0!==i.x1&&(i.x1=i.x1*e+i.y1*A+(h?0:r)),void 0!==i.y1&&(i.y1=c*t+i.y1*n+(h?0:a)),void 0!==i.x2&&(i.x2=i.x2*e+i.y2*A+(h?0:r)),void 0!==i.y2&&(i.y2=u*t+i.y2*n+(h?0:a));var f=e*n-t*A;if(void 0!==i.xRot&&(1!==e||0!==t||0!==A||1!==n))if(0===f)delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag,i.type=w.LINE_TO;else{var m=i.xRot*Math.PI/180,v=Math.sin(m),b=Math.cos(m),B=1/p(i.rX),C=1/p(i.rY),y=p(b)*B+p(v)*C,x=2*v*b*(B-C),F=p(v)*B+p(b)*C,E=y*n*n-x*t*n+F*t*t,S=x*(e*n+t*A)-2*(y*A*n+F*e*t),Q=y*A*A-x*e*A+F*e*e,k=(Math.atan2(S,E-Q)+Math.PI)%Math.PI/2,L=Math.sin(k),U=Math.cos(k);i.rX=Math.abs(f)/Math.sqrt(E*p(U)+S*L*U+Q*p(L)),i.rY=Math.abs(f)/Math.sqrt(E*p(L)-S*L*U+Q*p(U)),i.xRot=180*k/Math.PI}return void 0!==i.sweepFlag&&0>f&&(i.sweepFlag=+!i.sweepFlag),i}))}e.ROUND=function(e){function t(t){return Math.round(t*e)/e}return void 0===e&&(e=1e13),o(e),function(e){return void 0!==e.x1&&(e.x1=t(e.x1)),void 0!==e.y1&&(e.y1=t(e.y1)),void 0!==e.x2&&(e.x2=t(e.x2)),void 0!==e.y2&&(e.y2=t(e.y2)),void 0!==e.x&&(e.x=t(e.x)),void 0!==e.y&&(e.y=t(e.y)),void 0!==e.rX&&(e.rX=t(e.rX)),void 0!==e.rY&&(e.rY=t(e.rY)),e}},e.TO_ABS=t,e.TO_REL=function(){return i((function(e,t,A){return e.relative||(void 0!==e.x1&&(e.x1-=t),void 0!==e.y1&&(e.y1-=A),void 0!==e.x2&&(e.x2-=t),void 0!==e.y2&&(e.y2-=A),void 0!==e.x&&(e.x-=t),void 0!==e.y&&(e.y-=A),e.relative=!0),e}))},e.NORMALIZE_HVZ=function(e,t,A){return void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===A&&(A=!0),i((function(n,i,r,a,o){if(isNaN(a)&&!(n.type&w.MOVE_TO))throw new Error("path must start with moveto");return t&&n.type&w.HORIZ_LINE_TO&&(n.type=w.LINE_TO,n.y=n.relative?0:r),A&&n.type&w.VERT_LINE_TO&&(n.type=w.LINE_TO,n.x=n.relative?0:i),e&&n.type&w.CLOSE_PATH&&(n.type=w.LINE_TO,n.x=n.relative?a-i:a,n.y=n.relative?o-r:o),n.type&w.ARC&&(0===n.rX||0===n.rY)&&(n.type=w.LINE_TO,delete n.rX,delete n.rY,delete n.xRot,delete n.lArcFlag,delete n.sweepFlag),n}))},e.NORMALIZE_ST=A,e.QT_TO_C=n,e.INFO=i,e.SANITIZE=function(e){void 0===e&&(e=0),o(e);var t=NaN,A=NaN,n=NaN,r=NaN;return i((function(i,a,o,s,l){var c=Math.abs,u=!1,h=0,d=0;if(i.type&w.SMOOTH_CURVE_TO&&(h=isNaN(t)?0:a-t,d=isNaN(A)?0:o-A),i.type&(w.CURVE_TO|w.SMOOTH_CURVE_TO)?(t=i.relative?a+i.x2:i.x2,A=i.relative?o+i.y2:i.y2):(t=NaN,A=NaN),i.type&w.SMOOTH_QUAD_TO?(n=isNaN(n)?a:2*a-n,r=isNaN(r)?o:2*o-r):i.type&w.QUAD_TO?(n=i.relative?a+i.x1:i.x1,r=i.relative?o+i.y1:i.y2):(n=NaN,r=NaN),i.type&w.LINE_COMMANDS||i.type&w.ARC&&(0===i.rX||0===i.rY||!i.lArcFlag)||i.type&w.CURVE_TO||i.type&w.SMOOTH_CURVE_TO||i.type&w.QUAD_TO||i.type&w.SMOOTH_QUAD_TO){var g=void 0===i.x?0:i.relative?i.x:i.x-a,p=void 0===i.y?0:i.relative?i.y:i.y-o;h=isNaN(n)?void 0===i.x1?h:i.relative?i.x:i.x1-a:n-a,d=isNaN(r)?void 0===i.y1?d:i.relative?i.y:i.y1-o:r-o;var f=void 0===i.x2?0:i.relative?i.x:i.x2-a,m=void 0===i.y2?0:i.relative?i.y:i.y2-o;c(g)<=e&&c(p)<=e&&c(h)<=e&&c(d)<=e&&c(f)<=e&&c(m)<=e&&(u=!0)}return i.type&w.CLOSE_PATH&&c(a-s)<=e&&c(o-l)<=e&&(u=!0),u?[]:i}))},e.MATRIX=r,e.ROTATE=function(e,t,A){void 0===t&&(t=0),void 0===A&&(A=0),o(e,t,A);var n=Math.sin(e),i=Math.cos(e);return r(i,n,-n,i,t-t*i+A*n,A-t*n-A*i)},e.TRANSLATE=function(e,t){return void 0===t&&(t=0),o(e,t),r(1,0,0,1,e,t)},e.SCALE=function(e,t){return void 0===t&&(t=e),o(e,t),r(e,0,0,t,0,0)},e.SKEW_X=function(e){return o(e),r(1,0,Math.atan(e),1,0,0)},e.SKEW_Y=function(e){return o(e),r(1,Math.atan(e),0,1,0,0)},e.X_AXIS_SYMMETRY=function(e){return void 0===e&&(e=0),o(e),r(-1,0,0,1,e,0)},e.Y_AXIS_SYMMETRY=function(e){return void 0===e&&(e=0),o(e),r(1,0,0,-1,0,e)},e.A_TO_C=function(){return i((function(e,t,A){return w.ARC===e.type?function(e,t,A){var n,i,r,o;e.cX||l(e,t,A);for(var s=Math.min(e.phi1,e.phi2),c=Math.max(e.phi1,e.phi2)-s,u=Math.ceil(c/90),g=new Array(u),p=t,f=A,m=0;m<u;m++){var v=d(e.phi1,e.phi2,m/u),b=d(e.phi1,e.phi2,(m+1)/u),B=b-v,C=4/3*Math.tan(B*h/4),y=[Math.cos(v*h)-C*Math.sin(v*h),Math.sin(v*h)+C*Math.cos(v*h)],x=y[0],F=y[1],E=[Math.cos(b*h),Math.sin(b*h)],S=E[0],Q=E[1],k=[S+C*Math.sin(b*h),Q-C*Math.cos(b*h)],L=k[0],U=k[1];g[m]={relative:e.relative,type:w.CURVE_TO};var I=function(t,A){var n=a([t*e.rX,A*e.rY],e.xRot),i=n[0],r=n[1];return[e.cX+i,e.cY+r]};n=I(x,F),g[m].x1=n[0],g[m].y1=n[1],i=I(L,U),g[m].x2=i[0],g[m].y2=i[1],r=I(S,Q),g[m].x=r[0],g[m].y=r[1],e.relative&&(g[m].x1-=p,g[m].y1-=f,g[m].x2-=p,g[m].y2-=f,g[m].x-=p,g[m].y-=f),p=(o=[g[m].x,g[m].y])[0],f=o[1]}return g}(e,e.relative?0:t,e.relative?0:A):e}))},e.ANNOTATE_ARCS=function(){return i((function(e,t,A){return e.relative&&(t=0,A=0),w.ARC===e.type&&l(e,t,A),e}))},e.CLONE=function(){return function(e){var t={};for(var A in e)t[A]=e[A];return t}},e.CALCULATE_BOUNDS=function(){var e=t(),r=n(),a=A(),o=i((function(t,A,n){var i=a(r(e(function(e){var t={};for(var A in e)t[A]=e[A];return t}(t))));function s(e){e>o.maxX&&(o.maxX=e),e<o.minX&&(o.minX=e)}function u(e){e>o.maxY&&(o.maxY=e),e<o.minY&&(o.minY=e)}if(i.type&w.DRAWING_COMMANDS&&(s(A),u(n)),i.type&w.HORIZ_LINE_TO&&s(i.x),i.type&w.VERT_LINE_TO&&u(i.y),i.type&w.LINE_TO&&(s(i.x),u(i.y)),i.type&w.CURVE_TO){s(i.x),u(i.y);for(var h=0,d=p(A,i.x1,i.x2,i.x);h<d.length;h++)0<(T=d[h])&&1>T&&s(f(A,i.x1,i.x2,i.x,T));for(var m=0,v=p(n,i.y1,i.y2,i.y);m<v.length;m++)0<(T=v[m])&&1>T&&u(f(n,i.y1,i.y2,i.y,T))}if(i.type&w.ARC){s(i.x),u(i.y),l(i,A,n);for(var b=i.xRot/180*Math.PI,B=Math.cos(b)*i.rX,C=Math.sin(b)*i.rX,y=-Math.sin(b)*i.rY,x=Math.cos(b)*i.rY,F=i.phi1<i.phi2?[i.phi1,i.phi2]:-180>i.phi2?[i.phi2+360,i.phi1+360]:[i.phi2,i.phi1],E=F[0],S=F[1],Q=function(e){var t=e[0],A=e[1],n=180*Math.atan2(A,t)/Math.PI;return n<E?n+360:n},k=0,L=c(y,-B,0).map(Q);k<L.length;k++)(T=L[k])>E&&T<S&&s(g(i.cX,B,y,T));for(var U=0,I=c(x,-C,0).map(Q);U<I.length;U++){var T;(T=I[U])>E&&T<S&&u(g(i.cY,C,x,T))}}return t}));return o.minX=1/0,o.maxX=-1/0,o.minY=1/0,o.maxY=-1/0,o}}(u||(u={}));var m,v=function(){function e(){}return e.prototype.round=function(e){return this.transform(u.ROUND(e))},e.prototype.toAbs=function(){return this.transform(u.TO_ABS())},e.prototype.toRel=function(){return this.transform(u.TO_REL())},e.prototype.normalizeHVZ=function(e,t,A){return this.transform(u.NORMALIZE_HVZ(e,t,A))},e.prototype.normalizeST=function(){return this.transform(u.NORMALIZE_ST())},e.prototype.qtToC=function(){return this.transform(u.QT_TO_C())},e.prototype.aToC=function(){return this.transform(u.A_TO_C())},e.prototype.sanitize=function(e){return this.transform(u.SANITIZE(e))},e.prototype.translate=function(e,t){return this.transform(u.TRANSLATE(e,t))},e.prototype.scale=function(e,t){return this.transform(u.SCALE(e,t))},e.prototype.rotate=function(e,t,A){return this.transform(u.ROTATE(e,t,A))},e.prototype.matrix=function(e,t,A,n,i,r){return this.transform(u.MATRIX(e,t,A,n,i,r))},e.prototype.skewX=function(e){return this.transform(u.SKEW_X(e))},e.prototype.skewY=function(e){return this.transform(u.SKEW_Y(e))},e.prototype.xSymmetry=function(e){return this.transform(u.X_AXIS_SYMMETRY(e))},e.prototype.ySymmetry=function(e){return this.transform(u.Y_AXIS_SYMMETRY(e))},e.prototype.annotateArcs=function(){return this.transform(u.ANNOTATE_ARCS())},e}(),b=function(e){return" "===e||"\t"===e||"\r"===e||"\n"===e},B=function(e){return"0".charCodeAt(0)<=e.charCodeAt(0)&&e.charCodeAt(0)<="9".charCodeAt(0)},C=function(e){function t(){var t=e.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return i(t,e),t.prototype.finish=function(e){if(void 0===e&&(e=[]),this.parse(" ",e),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return e},t.prototype.parse=function(e,t){var A=this;void 0===t&&(t=[]);for(var n=function(e){t.push(e),A.curArgs.length=0,A.canParseCommandOrComma=!0},i=0;i<e.length;i++){var r=e[i],a=!(this.curCommandType!==w.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),o=B(r)&&("0"===this.curNumber&&"0"===r||a);if(!B(r)||o)if("e"!==r&&"E"!==r)if("-"!==r&&"+"!==r||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==r||this.curNumberHasExp||this.curNumberHasDecimal||a){if(this.curNumber&&-1!==this.curCommandType){var s=Number(this.curNumber);if(isNaN(s))throw new SyntaxError("Invalid number ending at "+i);if(this.curCommandType===w.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>s)throw new SyntaxError('Expected positive number, got "'+s+'" at index "'+i+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+i+'"');this.curArgs.push(s),this.curArgs.length===y[this.curCommandType]&&(w.HORIZ_LINE_TO===this.curCommandType?n({type:w.HORIZ_LINE_TO,relative:this.curCommandRelative,x:s}):w.VERT_LINE_TO===this.curCommandType?n({type:w.VERT_LINE_TO,relative:this.curCommandRelative,y:s}):this.curCommandType===w.MOVE_TO||this.curCommandType===w.LINE_TO||this.curCommandType===w.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),w.MOVE_TO===this.curCommandType&&(this.curCommandType=w.LINE_TO)):this.curCommandType===w.CURVE_TO?n({type:w.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===w.SMOOTH_CURVE_TO?n({type:w.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===w.QUAD_TO?n({type:w.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===w.ARC&&n({type:w.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!b(r))if(","===r&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==r&&"-"!==r&&"."!==r)if(o)this.curNumber=r,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+i+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+r+'" at index '+i+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==r&&"Z"!==r)if("h"===r||"H"===r)this.curCommandType=w.HORIZ_LINE_TO,this.curCommandRelative="h"===r;else if("v"===r||"V"===r)this.curCommandType=w.VERT_LINE_TO,this.curCommandRelative="v"===r;else if("m"===r||"M"===r)this.curCommandType=w.MOVE_TO,this.curCommandRelative="m"===r;else if("l"===r||"L"===r)this.curCommandType=w.LINE_TO,this.curCommandRelative="l"===r;else if("c"===r||"C"===r)this.curCommandType=w.CURVE_TO,this.curCommandRelative="c"===r;else if("s"===r||"S"===r)this.curCommandType=w.SMOOTH_CURVE_TO,this.curCommandRelative="s"===r;else if("q"===r||"Q"===r)this.curCommandType=w.QUAD_TO,this.curCommandRelative="q"===r;else if("t"===r||"T"===r)this.curCommandType=w.SMOOTH_QUAD_TO,this.curCommandRelative="t"===r;else{if("a"!==r&&"A"!==r)throw new SyntaxError('Unexpected character "'+r+'" at index '+i+".");this.curCommandType=w.ARC,this.curCommandRelative="a"===r}else t.push({type:w.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=r,this.curNumberHasDecimal="."===r}else this.curNumber+=r,this.curNumberHasDecimal=!0;else this.curNumber+=r;else this.curNumber+=r,this.curNumberHasExp=!0;else this.curNumber+=r,this.curNumberHasExpDigits=this.curNumberHasExp}return t},t.prototype.transform=function(e){return Object.create(this,{parse:{value:function(t,A){void 0===A&&(A=[]);for(var n=0,i=Object.getPrototypeOf(this).parse.call(this,t);n<i.length;n++){var r=i[n],a=e(r);Array.isArray(a)?A.push.apply(A,a):A.push(a)}return A}}})},t}(v),w=function(e){function t(A){var n=e.call(this)||this;return n.commands="string"==typeof A?t.parse(A):A,n}return i(t,e),t.prototype.encode=function(){return t.encode(this.commands)},t.prototype.getBounds=function(){var e=u.CALCULATE_BOUNDS();return this.transform(e),e},t.prototype.transform=function(e){for(var t=[],A=0,n=this.commands;A<n.length;A++){var i=e(n[A]);Array.isArray(i)?t.push.apply(t,i):t.push(i)}return this.commands=t,this},t.encode=function(e){return r(e)},t.parse=function(e){var t=new C,A=[];return t.parse(e,A),t.finish(A),A},t.CLOSE_PATH=1,t.MOVE_TO=2,t.HORIZ_LINE_TO=4,t.VERT_LINE_TO=8,t.LINE_TO=16,t.CURVE_TO=32,t.SMOOTH_CURVE_TO=64,t.QUAD_TO=128,t.SMOOTH_QUAD_TO=256,t.ARC=512,t.LINE_COMMANDS=t.LINE_TO|t.HORIZ_LINE_TO|t.VERT_LINE_TO,t.DRAWING_COMMANDS=t.HORIZ_LINE_TO|t.VERT_LINE_TO|t.LINE_TO|t.CURVE_TO|t.SMOOTH_CURVE_TO|t.QUAD_TO|t.SMOOTH_QUAD_TO|t.ARC,t}(v),y=((m={})[w.MOVE_TO]=2,m[w.LINE_TO]=2,m[w.HORIZ_LINE_TO]=1,m[w.VERT_LINE_TO]=1,m[w.CLOSE_PATH]=0,m[w.QUAD_TO]=4,m[w.SMOOTH_QUAD_TO]=2,m[w.CURVE_TO]=6,m[w.SMOOTH_CURVE_TO]=4,m[w.ARC]=7,m)},function(e,t,A){"use strict";var n=A(52).PROPER,i=A(50),r=A(49),a=A(119),o=A(9),s=A(1365),l=RegExp.prototype.toString,c=o((function(){return"/a/b"!==l.call({source:"a",flags:"b"})})),u=n&&"toString"!==l.name;(c||u)&&i(RegExp.prototype,"toString",(function(){var e=r(this);return"/"+a(e.source)+"/"+a(s(e))}),{unsafe:!0})},function(e,t,A){"use strict";var n=A(10),i=A(41),r=A(27),a=A(1341),o=RegExp.prototype;e.exports=function(e){var t=e.flags;return t!==undefined||"flags"in o||i(e,"flags")||!r(o,e)?t:n(a,e)}},function(e,t,A){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}A.r(t),A.d(t,"BlurStack",(function(){return h})),A.d(t,"canvasRGB",(function(){return c})),A.d(t,"canvasRGBA",(function(){return s})),A.d(t,"image",(function(){return a})),A.d(t,"imageDataRGB",(function(){return u})),A.d(t,"imageDataRGBA",(function(){return l}));var i=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],r=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function a(e,t,A,n,i,r){if("string"==typeof e&&(e=document.getElementById(e)),e&&"naturalWidth"in e){var a=i?"offset":"natural",o=e[a+"Width"],l=e[a+"Height"];if("string"==typeof t&&(t=document.getElementById(t)),t&&"getContext"in t){r||(t.style.width=o+"px",t.style.height=l+"px"),t.width=o,t.height=l;var u=t.getContext("2d");u.clearRect(0,0,o,l),u.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,o,l),isNaN(A)||A<1||(n?s(t,0,0,o,l,A):c(t,0,0,o,l,A))}}}function o(e,t,A,i,r){if("string"==typeof e&&(e=document.getElementById(e)),!e||"object"!==n(e)||!("getContext"in e))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var a=e.getContext("2d");try{return a.getImageData(t,A,i,r)}catch(o){throw new Error("unable to access image data: "+o)}}function s(e,t,A,n,i,r){if(!(isNaN(r)||r<1)){r|=0;var a=o(e,t,A,n,i);a=l(a,t,A,n,i,r),e.getContext("2d").putImageData(a,t,A)}}function l(e,t,A,n,a,o){for(var s,l=e.data,c=2*o+1,u=n-1,d=a-1,g=o+1,p=g*(g+1)/2,f=new h,m=f,v=1;v<c;v++)m=m.next=new h,v===g&&(s=m);m.next=f;for(var b=null,B=null,C=0,w=0,y=i[o],x=r[o],F=0;F<a;F++){m=f;for(var E=l[w],S=l[w+1],Q=l[w+2],k=l[w+3],L=0;L<g;L++)m.r=E,m.g=S,m.b=Q,m.a=k,m=m.next;for(var U=0,I=0,T=0,N=0,D=g*E,P=g*S,M=g*Q,O=g*k,H=p*E,_=p*S,R=p*Q,V=p*k,G=1;G<g;G++){var K=w+((u<G?u:G)<<2),z=l[K],W=l[K+1],j=l[K+2],X=l[K+3],Y=g-G;H+=(m.r=z)*Y,_+=(m.g=W)*Y,R+=(m.b=j)*Y,V+=(m.a=X)*Y,U+=z,I+=W,T+=j,N+=X,m=m.next}b=f,B=s;for(var J=0;J<n;J++){var q=V*y>>x;if(l[w+3]=q,0!==q){var Z=255/q;l[w]=(H*y>>x)*Z,l[w+1]=(_*y>>x)*Z,l[w+2]=(R*y>>x)*Z}else l[w]=l[w+1]=l[w+2]=0;H-=D,_-=P,R-=M,V-=O,D-=b.r,P-=b.g,M-=b.b,O-=b.a;var $=J+o+1;$=C+($<u?$:u)<<2,H+=U+=b.r=l[$],_+=I+=b.g=l[$+1],R+=T+=b.b=l[$+2],V+=N+=b.a=l[$+3],b=b.next;var ee=B,te=ee.r,Ae=ee.g,ne=ee.b,ie=ee.a;D+=te,P+=Ae,M+=ne,O+=ie,U-=te,I-=Ae,T-=ne,N-=ie,B=B.next,w+=4}C+=n}for(var re=0;re<n;re++){var ae=l[w=re<<2],oe=l[w+1],se=l[w+2],le=l[w+3],ce=g*ae,ue=g*oe,he=g*se,de=g*le,ge=p*ae,pe=p*oe,fe=p*se,me=p*le;m=f;for(var ve=0;ve<g;ve++)m.r=ae,m.g=oe,m.b=se,m.a=le,m=m.next;for(var be=n,Be=0,Ce=0,we=0,ye=0,xe=1;xe<=o;xe++){w=be+re<<2;var Fe=g-xe;ge+=(m.r=ae=l[w])*Fe,pe+=(m.g=oe=l[w+1])*Fe,fe+=(m.b=se=l[w+2])*Fe,me+=(m.a=le=l[w+3])*Fe,ye+=ae,Be+=oe,Ce+=se,we+=le,m=m.next,xe<d&&(be+=n)}w=re,b=f,B=s;for(var Ee=0;Ee<a;Ee++){var Se=w<<2;l[Se+3]=le=me*y>>x,le>0?(le=255/le,l[Se]=(ge*y>>x)*le,l[Se+1]=(pe*y>>x)*le,l[Se+2]=(fe*y>>x)*le):l[Se]=l[Se+1]=l[Se+2]=0,ge-=ce,pe-=ue,fe-=he,me-=de,ce-=b.r,ue-=b.g,he-=b.b,de-=b.a,Se=re+((Se=Ee+g)<d?Se:d)*n<<2,ge+=ye+=b.r=l[Se],pe+=Be+=b.g=l[Se+1],fe+=Ce+=b.b=l[Se+2],me+=we+=b.a=l[Se+3],b=b.next,ce+=ae=B.r,ue+=oe=B.g,he+=se=B.b,de+=le=B.a,ye-=ae,Be-=oe,Ce-=se,we-=le,B=B.next,w+=n}}return e}function c(e,t,A,n,i,r){if(!(isNaN(r)||r<1)){r|=0;var a=o(e,t,A,n,i);a=u(a,t,A,n,i,r),e.getContext("2d").putImageData(a,t,A)}}function u(e,t,A,n,a,o){for(var s,l=e.data,c=2*o+1,u=n-1,d=a-1,g=o+1,p=g*(g+1)/2,f=new h,m=f,v=1;v<c;v++)m=m.next=new h,v===g&&(s=m);m.next=f;for(var b,B,C=null,w=null,y=i[o],x=r[o],F=0,E=0,S=0;S<a;S++){var Q=l[E],k=l[E+1],L=l[E+2],U=g*Q,I=g*k,T=g*L,N=p*Q,D=p*k,P=p*L;m=f;for(var M=0;M<g;M++)m.r=Q,m.g=k,m.b=L,m=m.next;for(var O=0,H=0,_=0,R=1;R<g;R++)b=E+((u<R?u:R)<<2),N+=(m.r=Q=l[b])*(B=g-R),D+=(m.g=k=l[b+1])*B,P+=(m.b=L=l[b+2])*B,O+=Q,H+=k,_+=L,m=m.next;C=f,w=s;for(var V=0;V<n;V++)l[E]=N*y>>x,l[E+1]=D*y>>x,l[E+2]=P*y>>x,N-=U,D-=I,P-=T,U-=C.r,I-=C.g,T-=C.b,b=F+((b=V+o+1)<u?b:u)<<2,N+=O+=C.r=l[b],D+=H+=C.g=l[b+1],P+=_+=C.b=l[b+2],C=C.next,U+=Q=w.r,I+=k=w.g,T+=L=w.b,O-=Q,H-=k,_-=L,w=w.next,E+=4;F+=n}for(var G=0;G<n;G++){var K=l[E=G<<2],z=l[E+1],W=l[E+2],j=g*K,X=g*z,Y=g*W,J=p*K,q=p*z,Z=p*W;m=f;for(var $=0;$<g;$++)m.r=K,m.g=z,m.b=W,m=m.next;for(var ee=0,te=0,Ae=0,ne=1,ie=n;ne<=o;ne++)E=ie+G<<2,J+=(m.r=K=l[E])*(B=g-ne),q+=(m.g=z=l[E+1])*B,Z+=(m.b=W=l[E+2])*B,ee+=K,te+=z,Ae+=W,m=m.next,ne<d&&(ie+=n);E=G,C=f,w=s;for(var re=0;re<a;re++)l[b=E<<2]=J*y>>x,l[b+1]=q*y>>x,l[b+2]=Z*y>>x,J-=j,q-=X,Z-=Y,j-=C.r,X-=C.g,Y-=C.b,b=G+((b=re+g)<d?b:d)*n<<2,J+=ee+=C.r=l[b],q+=te+=C.g=l[b+1],Z+=Ae+=C.b=l[b+2],C=C.next,j+=K=w.r,X+=z=w.g,Y+=W=w.b,ee-=K,te-=z,Ae-=W,w=w.next,E+=n}return e}var h=function d(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}}])]);
//# sourceMappingURL=http://localhost:3052/3.21.1/map/eval/fusioncharts.common.js.map