1!function(t){var e={};function i(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)i.d(n,a,function(e){return t[e]}.bind(null,a));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=553)}({143:function(t,e,i){var n,a;function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}a=this,void 0===(n=function(){return a.Chartist=function(){var t={version:"0.11.0"};return function(t,e,i){"use strict";i.namespaces={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},i.noop=function(t){return t},i.alphaNumerate=function(t){return String.fromCharCode(97+t%26)},i.extend=function(t){var e,n,a;for(t=t||{},e=1;e<arguments.length;e++)for(var r in n=arguments[e])"object"!=s(a=n[r])||null===a||a instanceof Array?t[r]=a:t[r]=i.extend(t[r],a);return t},i.replaceAll=function(t,e,i){return t.replace(new RegExp(e,"g"),i)},i.ensureUnit=function(t,e){return"number"==typeof t&&(t+=e),t},i.quantity=function(t){if("string"==typeof t){var e=/^(\d+)\s*(.*)$/g.exec(t);return{value:+e[1],unit:e[2]||void 0}}return{value:t}},i.querySelector=function(t){return t instanceof Node?t:e.querySelector(t)},i.times=function(t){return Array.apply(null,new Array(t))},i.sum=function(t,e){return t+(e||0)},i.mapMultiply=function(t){return function(e){return e*t}},i.mapAdd=function(t){return function(e){return e+t}},i.serialMap=function(t,e){var n=[],a=Math.max.apply(null,t.map((function(t){return t.length})));return i.times(a).forEach((function(i,a){var s=t.map((function(t){return t[a]}));n[a]=e.apply(null,s)})),n},i.roundWithPrecision=function(t,e){var n=Math.pow(10,e||i.precision);return Math.round(t*n)/n},i.precision=8,i.escapingMap={"&":"&","<":"<",">":">",'"':""","'":"'"},i.serialize=function(t){return null==t?t:("number"==typeof t?t=""+t:"object"==s(t)&&(t=JSON.stringify({data:t})),Object.keys(i.escapingMap).reduce((function(t,e){return i.replaceAll(t,e,i.escapingMap[e])}),t))},i.deserialize=function(t){if("string"!=typeof t)return t;t=Object.keys(i.escapingMap).reduce((function(t,e){return i.replaceAll(t,i.escapingMap[e],e)}),t);try{t=void 0!==(t=JSON.parse(t)).data?t.data:t}catch(t){}return t},i.createSvg=function(t,e,n,a){var s;return e=e||"100%",n=n||"100%",Array.prototype.slice.call(t.querySelectorAll("svg")).filter((function(t){return t.getAttributeNS(i.namespaces.xmlns,"ct")})).forEach((function(e){t.removeChild(e)})),(s=new i.Svg("svg").attr({width:e,height:n}).addClass(a))._node.style.width=e,s._node.style.height=n,t.appendChild(s._node),s},i.normalizeData=function(t,e,n){var a,s={raw:t,normalized:{}};return s.normalized.series=i.getDataArray({series:t.series||[]},e,n),a=s.normalized.series.every((function(t){return t instanceof Array}))?Math.max.apply(null,s.normalized.series.map((function(t){return t.length}))):s.normalized.series.length,s.normalized.labels=(t.labels||[]).slice(),Array.prototype.push.apply(s.normalized.labels,i.times(Math.max(0,a-s.normalized.labels.length)).map((function(){return""}))),e&&i.reverseData(s.normalized),s},i.safeHasProperty=function(t,e){return null!==t&&"object"==s(t)&&t.hasOwnProperty(e)},i.isDataHoleValue=function(t){return null==t||"number"==typeof t&&isNaN(t)},i.reverseData=function(t){t.labels.reverse(),t.series.reverse();for(var e=0;e<t.series.length;e++)"object"==s(t.series[e])&&void 0!==t.series[e].data?t.series[e].data.reverse():t.series[e]instanceof Array&&t.series[e].reverse()},i.getDataArray=function(t,e,n){return t.series.map((function t(e){if(i.safeHasProperty(e,"value"))return t(e.value);if(i.safeHasProperty(e,"data"))return t(e.data);if(e instanceof Array)return e.map(t);if(!i.isDataHoleValue(e)){if(n){var a={};return"string"==typeof n?a[n]=i.getNumberOrUndefined(e):a.y=i.getNumberOrUndefined(e),a.x=e.hasOwnProperty("x")?i.getNumberOrUndefined(e.x):a.x,a.y=e.hasOwnProperty("y")?i.getNumberOrUndefined(e.y):a.y,a}return i.getNumberOrUndefined(e)}}))},i.normalizePadding=function(t,e){return e=e||0,"number"==typeof t?{top:t,right:t,bottom:t,left:t}:{top:"number"==typeof t.top?t.top:e,right:"number"==typeof t.right?t.right:e,bottom:"number"==typeof t.bottom?t.bottom:e,left:"number"==typeof t.left?t.left:e}},i.getMetaData=function(t,e){var i=t.data?t.data[e]:t[e];return i?i.meta:void 0},i.orderOfMagnitude=function(t){return Math.floor(Math.log(Math.abs(t))/Math.LN10)}
1,i.projectLength=function(t,e,i){return e/i.range*t},i.getAvailableHeight=function(t,e){return Math.max((i.quantity(e.height).value||t.height())-(e.chartPadding.top+e.chartPadding.bottom)-e.axisX.offset,0)},i.getHighLow=function(t,e,n){var a={high:void 0===(e=i.extend({},e,n?e["axis"+n.toUpperCase()]:{})).high?-Number.MAX_VALUE:+e.high,low:void 0===e.low?Number.MAX_VALUE:+e.low},s=void 0===e.high,r=void 0===e.low;return(s||r)&&function t(e){if(void 0!==e)if(e instanceof Array)for(var i=0;i<e.length;i++)t(e[i]);else{var o=n?+e[n]:+e;s&&o>a.high&&(a.high=o),r&&o<a.low&&(a.low=o)}}(t),(e.referenceValue||0===e.referenceValue)&&(a.high=Math.max(e.referenceValue,a.high),a.low=Math.min(e.referenceValue,a.low)),a.high<=a.low&&(0===a.low?a.high=1:a.low<0?a.high=0:(a.high>0||(a.high=1),a.low=0)),a},i.isNumeric=function(t){return null!==t&&isFinite(t)},i.isFalseyButZero=function(t){return!t&&0!==t},i.getNumberOrUndefined=function(t){return i.isNumeric(t)?+t:void 0},i.isMultiValue=function(t){return"object"==s(t)&&("x"in t||"y"in t)},i.getMultiValue=function(t,e){return i.isMultiValue(t)?i.getNumberOrUndefined(t[e||"y"]):i.getNumberOrUndefined(t)},i.rho=function(t){function e(t,i){return t%i==0?i:e(i,t%i)}function i(t){return t*t+1}if(1===t)return t;var n,a=2,s=2;if(t%2==0)return 2;
1do{a=i(a)%t,s=i(i(s))%t,n=e(Math.abs(a-s),t)}while(1===n);return n},i.getBounds=function(t,e,n,a){function s(t,e){return t===(t+=e)&&(t*=1+(e>0?p:-p)),t}var r,o,l,c=0,u={high:e.high,low:e.low};u.valueRange=u.high-u.low,u.oom=i.orderOfMagnitude(u.valueRange),u.step=Math.pow(10,u.oom),u.min=Math.floor(u.low/u.step)*u.step,u.max=Math.ceil(u.high/u.step)*u.step,u.range=u.max-u.min,u.numberOfSteps=Math.round(u.range/u.step);var d=i.projectLength(t,u.step,u)<n,h=a?i.rho(u.range):0;if(a&&i.projectLength(t,1,u)>=n)u.step=1;else if(a&&h<u.step&&i.projectLength(t,h,u)>=n)u.step=h;else for(;;){if(d&&i.projectLength(t,u.step,u)<=n)u.step*=2;else{if(d||!(i.projectLength(t,u.step/2,u)>=n))break;if(u.step/=2,a&&u.step%1!=0){u.step*=2;break}}if(c++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}var p=2221e-19;for(u.step=Math.max(u.step,p),o=u.min,l=u.max;o+u.step<=u.low;)o=s(o,u.step);for(;l-u.step>=u.high;)l=s(l,-u.step);u.min=o,u.max=l,u.range=u.max-u.min;var f=[];for(r=u.min;r<=u.max;r=s(r,u.step)){var g=i.roundWithPrecision(r);g!==f[f.length-1]&&f.push(g)}return u.values=f,u},i.polarToCartesian=function(t,e,i,n){var a=(n-90)*Math.PI/180;return{x:t+i*Math.cos(a),y:e+i*Math.sin(a)}},i.createChartRect=function(t,e,n){var a=!(!e.axisX&&!e.axisY),s=a?e.axisY.offset:0,r=a?e.axisX.offset:0,o=t.width()||i.quantity(e.width).value||0,l=t.height()||i.quantity(e.height).value||0,c=i.normalizePadding(e.chartPadding,n);o=Math.max(o,s+c.left+c.right),l=Math.max(l,r+c.top+c.bottom);var u={padding:c,width:function(){return this.x2-this.x1},height:function(){return this.y1-this.y2}};return a?("start"===e.axisX.position?(u.y2=c.top+r,u.y1=Math.max(l-c.bottom,u.y2+1)):(u.y2=c.top,u.y1=Math.max(l-c.bottom-r,u.y2+1)),"start"===e.axisY.position?(u.x1=c.left+s,u.x2=Math.max(o-c.right,u.x1+1)):(u.x1=c.left,u.x2=Math.max(o-c.right-s,u.x1+1))):(u.x1=c.left,u.x2=Math.max(o-c.right,u.x1+1),u.y2=c.top,u.y1=Math.max(l-c.bottom,u.y2+1)),u},i.createGrid=function(t,e,n,a,s,r,o,l){var c={};c[n.units.pos+"1"]=t,c[n.units.pos+"2"]=t,c[n.counterUnits.pos+"1"]=a,c[n.counterUnits.pos+"2"]=a+s;var u=r.elem("line",c,o.join(" "));l.emit("draw",i.extend({type:"grid",axis:n,index:e,group:r,element:u},c))},i.createGridBackground=function(t,e,i,n){var a=t.elem("rect",{x:e.x1,y:e.y2,width:e.width(),height:e.height()},i,!0);n.emit("draw",{type:"gridBackground",group:t,element:a})},i.createLabel=function(t,n,a,s,r,o,l,c,u,d,h){var p,f={};if(f[r.units.pos]=t+l[r.units.pos],f[r.counterUnits.pos]=l[r.counterUnits.pos],f[r.units.len]=n,f[r.counterUnits.len]=Math.max(0,o-10),d){var g=e.createElement("span");g.className=u.join(" "),g.setAttribute("xmlns",i.namespaces.xhtml),g.innerText=s[a],g.style[r.units.len]=Math.round(f[r.units.len])+"px",g.style[r.counterUnits.len]=Math.round(f[r.counterUnits.len])+"px",p=c.foreignObject(g,i.extend({style:"overflow: visible;"},f))}else p=c.elem("text",f,u.join(" ")).text(s[a]);h.emit("draw",i.extend({type:"label",axis:r,index:a,group:c,element:p,text:s[a]},f))},i.getSeriesOption=function(t,e,i){if(t.name&&e.series&&e.series[t.name]){var n=e.series[t.name];return n.hasOwnProperty(i)?n[i]:e[i]}return e[i]},i.optionsProvider=function(e,n,a){function s(e){var s=r;if(r=i.extend({},l),n)for(o=0;o<n.length;o++)t.matchMedia(n[o][0]).matches&&(r=i.extend(r,n[o][1]));a&&e&&a.emit("optionsChanged",{previousOptions:s,currentOptions:r})}var r,o,l=i.extend({},e),c=[];
1if(!t.matchMedia)throw"window.matchMedia not found! Make sure you're using a polyfill.";if(n)for(o=0;o<n.length;o++){var u=t.matchMedia(n[o][0]);u.addListener(s),c.push(u)}return s(),{removeMediaQueryListeners:function(){c.forEach((function(t){t.removeListener(s)}))},getCurrentOptions:function(){return i.extend({},r)}}},i.splitIntoSegments=function(t,e,n){n=i.extend({},{increasingX:!1,fillHoles:!1},n);for(var a=[],s=!0,r=0;r<t.length;r+=2)void 0===i.getMultiValue(e[r/2].value)?n.fillHoles||(s=!0):(n.increasingX&&r>=2&&t[r]<=t[r-2]&&(s=!0),s&&(a.push({pathCoordinates:[],valueData:[]}),s=!1),a[a.length-1].pathCoordinates.push(t[r],t[r+1]),a[a.length-1].valueData.push(e[r/2]));return a}}(window,document,t),function(t,e,i){"use strict";i.Interpolation={},i.Interpolation.none=function(t){return t=i.extend({},{fillHoles:!1},t),function(e,n){for(var a=new i.Svg.Path,s=!0,r=0;r<e.length;r+=2){var o=e[r],l=e[r+1],c=n[r/2];void 0!==i.getMultiValue(c.value)?(s?a.move(o,l,!1,c):a.line(o,l,!1,c),s=!1):t.fillHoles||(s=!0)}return a}},i.Interpolation.simple=function(t){t=i.extend({},{divisor:2,fillHoles:!1},t);var e=1/Math.max(1,t.divisor);return function(n,a){for(var s,r,o,l=new i.Svg.Path,c=0;c<n.length;c+=2){var u=n[c],d=n[c+1],h=(u-s)*e,p=a[c/2];void 0!==p.value?(void 0===o?l.move(u,d,!1,p):l.curve(s+h,r,u-h,d,u,d,!1,p),s=u,r=d,o=p):t.fillHoles||(s=u=o=void 0)}return l}},i.Interpolation.cardinal=function(t){t=i.extend({},{tension:1,fillHoles:!1},t);var e=Math.min(1,Math.max(0,t.tension)),n=1-e;return function a(s,r){var o=i.splitIntoSegments(s,r,{fillHoles:t.fillHoles});if(o.length){if(o.length>1){var l=[];return o.forEach((function(t){l.push(a(t.pathCoordinates,t.valueData))})),i.Svg.Path.join(l)}if(s=o[0].pathCoordinates,r=o[0].valueData,s.length<=4)return i.Interpolation.none()(s,r);for(var c=(new i.Svg.Path).move(s[0],s[1],!1,r[0]),u=0,d=s.length;d-2>u;u+=2){var h=[{x:+s[u-2],y:+s[u-1]},{x:+s[u],y:+s[u+1]},{x:+s[u+2],y:+s[u+3]},{x:+s[u+4],y:+s[u+5]}];d-4===u?h[3]=h[2]:u||(h[0]={x:+s[u],y:+s[u+1]}),c.curve(e*(-h[0].x+6*h[1].x+h[2].x)/6+n*h[2].x,e*(-h[0].y+6*h[1].y+h[2].y)/6+n*h[2].y,e*(h[1].x+6*h[2].x-h[3].x)/6+n*h[2].x,e*(h[1].y+6*h[2].y-h[3].y)/6+n*h[2].y,h[2].x,h[2].y,!1,r[(u+2)/2])}return c}return i.Interpolation.none()([])}},i.Interpolation.monotoneCubic=function(t){return t=i.extend({},{fillHoles:!1},t),function e(n,a){var s=i.splitIntoSegments(n,a,{fillHoles:t.fillHoles,increasingX:!0});if(s.length){if(s.length>1){var r=[];return s.forEach((function(t){r.push(e(t.pathCoordinates,t.valueData))})),i.Svg.Path.join(r)}if(n=s[0].pathCoordinates,a=s[0].valueData,n.length<=4)return i.Interpolation.none()(n,a);var o,l,c=[],u=[],d=n.length/2,h=[],p=[],f=[],g=[];for(o=0;o<d;o++)c[o]=n[2*o],u[o]=n[2*o+1];for(o=0;o<d-1;o++)f[o]=u[o+1]-u[o],g[o]=c[o+1]-c[o],p[o]=f[o]/g[o];for(h[0]=p[0],h[d-1]=p[d-2],o=1;o<d-1;o++)0===p[o]||0===p[o-1]||p[o-1]>0!=p[o]>0?h[o]=0:(h[o]=3*(g[o-1]+g[o])/((2*g[o]+g[o-1])/p[o-1]+(g[o]+2*g[o-1])/p[o]),isFinite(h[o])||(h[o]=0));for(l=(new i.Svg.Path).move(c[0],u[0],!1,a[0]),o=0;o<d-1;o++)l.curve(c[o]+g[o]/3,u[o]+h[o]*g[o]/3,c[o+1]-g[o]/3,u[o+1]-h[o+1]*g[o]/3,c[o+1],u[o+1],!1,a[o+1]);return l}return i.Interpolation.none()([])}},i.Interpolation.step=function(t){return t=i.extend({},{postpone:!0,fillHoles:!1},t),function(e,n){for(var a,s,r,o=new i.Svg.Path,l=0;l<e.length;l+=2){var c=e[l],u=e[l+1],d=n[l/2];void 0!==d.value?(void 0===r?o.move(c,u,!1,d):(t.postpone?o.line(c,s,!1,r):o.line(a,u,!1,d),o.line(c,u,!1,d)),a=c,s=u,r=d):t.fillHoles||(a=s=r=void 0)}return o}}}(window,document,t),function(t,e,i){"use strict";i.EventEmitter=function(){var t=[];return{addEventHandler:function(e,i){t[e]=t[e]||[],t[e].push(i)},removeEventHandler:function(e,i){t[e]&&(i?(t[e].splice(t[e].indexOf(i),1),0===t[e].length&&delete t[e]):delete t[e])},emit:function(e,i){t[e]&&t[e].forEach((function(t){t(i)})),t["*"]&&t["*"].forEach((function(t){t(e,i)}))}}}}(window,document,t),function(t,e,i){"use strict";function n(t){var e=[];if(t.length)for(var i=0;i<t.length;i++)e.push(t[i]);return e}i.Class={extend:function(t,e){var n=e||this.prototype||i.Class,a=Object.create(n);i.Class.cloneDefinitions(a,t);var s=function(){var t,e=a.constructor||function(){};return t=this===i?Object.create(a):this,e.apply(t,Array.prototype.slice.call(arguments,0)),t};return s.prototype=a,s.super=n,s.extend=this.extend,s},cloneDefinitions:function(){var t=n(arguments),e=t[0];
1return t.splice(1,t.length-1).forEach((function(t){Object.getOwnPropertyNames(t).forEach((function(i){delete e[i],Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}))})),e}}}(window,document,t),function(t,e,i){"use strict";function n(){t.addEventListener("resize",this.resizeListener),this.optionsProvider=i.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.addEventHandler("optionsChanged",function(){this.update()}.bind(this)),this.options.plugins&&this.options.plugins.forEach(function(t){t instanceof Array?t[0](this,t[1]):t(this)}.bind(this)),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=void 0}i.Base=i.Class.extend({constructor:function(t,e,a,s,r){this.container=i.querySelector(t),this.data=e||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.defaultOptions=a,this.options=s,this.responsiveOptions=r,this.eventEmitter=i.EventEmitter(),this.supportsForeignObject=i.Svg.isSupported("Extensibility"),this.supportsAnimations=i.Svg.isSupported("AnimationEventsAttribute"),this.resizeListener=function(){this.update()}.bind(this),this.container&&(this.container.__chartist__&&this.container.__chartist__.detach(),this.container.__chartist__=this),this.initializeTimeoutId=setTimeout(n.bind(this),0)},optionsProvider:void 0,container:void 0,svg:void 0,eventEmitter:void 0,createChart:function(){throw new Error("Base chart type can't be instantiated!")},update:function(t,e,n){return t&&(this.data=t||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),e&&(this.options=i.extend({},n?this.options:this.defaultOptions,e),this.initializeTimeoutId||(this.optionsProvider.removeMediaQueryListeners(),this.optionsProvider=i.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter))),this.initializeTimeoutId||this.createChart(this.optionsProvider.getCurrentOptions()),this},detach:function(){return this.initializeTimeoutId?t.clearTimeout(this.initializeTimeoutId):(t.removeEventListener("resize",this.resizeListener),this.optionsProvider.removeMediaQueryListeners()),this},on:function(t,e){return this.eventEmitter.addEventHandler(t,e),this},off:function(t,e){return this.eventEmitter.removeEventHandler(t,e),this},version:i.version,supportsForeignObject:!1})}(window,document,t),function(t,e,i){"use strict";i.Svg=i.Class.extend({constructor:function(t,n,a,s,r){t instanceof Element?this._node=t:(this._node=e.createElementNS(i.namespaces.svg,t),"svg"===t&&this.attr({"xmlns:ct":i.namespaces.ct})),n&&this.attr(n),a&&this.addClass(a),s&&(r&&s._node.firstChild?s._node.insertBefore(this._node,s._node.firstChild):s._node.appendChild(this._node))},attr:function(t,e){return"string"==typeof t?e?this._node.getAttributeNS(e,t):this._node.getAttribute(t):(Object.keys(t).forEach(function(e){if(void 0!==t[e])if(-1!==e.indexOf(":")){var n=e.split(":");this._node.setAttributeNS(i.namespaces[n[0]],e,t[e])}else this._node.setAttribute(e,t[e])}.bind(this)),this)},elem:function(t,e,n,a){return new i.Svg(t,e,n,this,a)},parent:function(){return this._node.parentNode instanceof SVGElement?new i.Svg(this._node.parentNode):null},root:function(){for(var t=this._node;"svg"!==t.nodeName;)t=t.parentNode;return new i.Svg(t)},querySelector:function(t){var e=this._node.querySelector(t);return e?new i.Svg(e):null},querySelectorAll:function(t){var e=this._node.querySelectorAll(t);return e.length?new i.Svg.List(e):null},getNode:function(){return this._node},foreignObject:function(t,n,a,s){if("string"==typeof t){var r=e.createElement("div");r.innerHTML=t,t=r.firstChild}t.setAttribute("xmlns",i.namespaces.xmlns);var o=this.elem("foreignObject",n,a,s);return o._node.appendChild(t),o},text:function(t){return this._node.appendChild(e.createTextNode(t)),this},empty:function(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this},remove:function(){return this._node.parentNode.removeChild(this._node),this.parent()},replace:function(t){return this._node.parentNode.replaceChild(t._node,this._node),t},append:function(t,e){return e&&this._node.firstChild?this._node.insertBefore(t._node,this._node.firstChild):this._node.appendChild(t._node),this},classes:function(){return this._node.getAttribute("class")?this._node.getAttribute("class").trim().split(/\s+/):[]},addClass:function(t){return this._node.setAttribute("class",this.classes(this._node).concat(t.trim().split(/\s+/)).filter((function(t,e,
1i){return i.indexOf(t)===e})).join(" ")),this},removeClass:function(t){var e=t.trim().split(/\s+/);return this._node.setAttribute("class",this.classes(this._node).filter((function(t){return-1===e.indexOf(t)})).join(" ")),this},removeAllClasses:function(){return this._node.setAttribute("class",""),this},height:function(){return this._node.getBoundingClientRect().height},width:function(){return this._node.getBoundingClientRect().width},animate:function(t,e,n){return void 0===e&&(e=!0),Object.keys(t).forEach(function(a){function s(t,e){var s,r,o,l={};t.easing&&(o=t.easing instanceof Array?t.easing:i.Svg.Easing[t.easing],delete t.easing),t.begin=i.ensureUnit(t.begin,"ms"),t.dur=i.ensureUnit(t.dur,"ms"),o&&(t.calcMode="spline",t.keySplines=o.join(" "),t.keyTimes="0;1"),e&&(t.fill="freeze",l[a]=t.from,this.attr(l),r=i.quantity(t.begin||0).value,t.begin="indefinite"),s=this.elem("animate",i.extend({attributeName:a},t)),e&&setTimeout(function(){try{s._node.beginElement()}catch(e){l[a]=t.to,this.attr(l),s.remove()}}.bind(this),r),n&&s._node.addEventListener("beginEvent",function(){n.emit("animationBegin",{element:this,animate:s._node,params:t})}.bind(this)),s._node.addEventListener("endEvent",function(){n&&n.emit("animationEnd",{element:this,animate:s._node,params:t}),e&&(l[a]=t.to,this.attr(l),s.remove())}.bind(this))}t[a]instanceof Array?t[a].forEach(function(t){s.bind(this)(t,!1)}.bind(this)):s.bind(this)(t[a],e)}.bind(this)),this}}),i.Svg.isSupported=function(t){return e.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#"+t,"1.1")},i.Svg.Easing={easeInSine:[.47,0,.745,.715],easeOutSine:[.39,.575,.565,1],easeInOutSine:[.445,.05,.55,.95],easeInQuad:[.55,.085,.68,.53],easeOutQuad:[.25,.46,.45,.94],easeInOutQuad:[.455,.03,.515,.955],easeInCubic:[.55,.055,.675,.19],easeOutCubic:[.215,.61,.355,1],easeInOutCubic:[.645,.045,.355,1],easeInQuart:[.895,.03,.685,.22],easeOutQuart:[.165,.84,.44,1],easeInOutQuart:[.77,0,.175,1],easeInQuint:[.755,.05,.855,.06],easeOutQuint:[.23,1,.32,1],easeInOutQuint:[.86,0,.07,1],easeInExpo:[.95,.05,.795,.035],easeOutExpo:[.19,1,.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[.6,.04,.98,.335],easeOutCirc:[.075,.82,.165,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]},i.Svg.List=i.Class.extend({constructor:function(t){var e=this;this.svgElements=[];for(var n=0;n<t.length;n++)this.svgElements.push(new i.Svg(t[n]));Object.keys(i.Svg.prototype).filter((function(t){return-1===["constructor","parent","querySelector","querySelectorAll","replace","append","classes","height","width"].indexOf(t)})).forEach((function(t){e[t]=function(){var n=Array.prototype.slice.call(arguments,0);return e.svgElements.forEach((function(e){i.Svg.prototype[t].apply(e,n)})),e}}))}})}(window,document,t),function(t,e,i){"use strict";function n(t,e,n,a,s,r){var o=i.extend({command:s?t.toLowerCase():t.toUpperCase()},e,r?{data:r}:{});n.splice(a,0,o)}function a(t,e){t.forEach((function(i,n){s[i.command.toLowerCase()].forEach((function(a,s){e(i,a,n,s,t)}))}))}var s={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},r={accuracy:3};i.Svg.Path=i.Class.extend({constructor:function(t,e){this.pathElements=[],this.pos=0,this.close=t,this.options=i.extend({},r,e)},position:function(t){return void 0!==t?(this.pos=Math.max(0,Math.min(this.pathElements.length,t)),this):this.pos},remove:function(t){return this.pathElements.splice(this.pos,t),this},move:function(t,e,i,a){return n("M",{x:+t,y:+e},this.pathElements,this.pos++,i,a),this},line:function(t,e,i,a){return n("L",{x:+t,y:+e},this.pathElements,this.pos++,i,a),this},curve:function(t,e,i,a,s,r,o,l){return n("C",{x1:+t,y1:+e,x2:+i,y2:+a,x:+s,y:+r},this.pathElements,this.pos++,o,l),this},arc:function(t,e,i,a,s,r,o,l,c){return n("A",{rx:+t,ry:+e,xAr:+i,lAf:+a,sf:+s,x:+r,y:+o},this.pathElements,this.pos++,l,c),this},scale:function(t,e){return a(this.pathElements,(function(i,n){i[n]*="x"===n[0]?t:e})),this},translate:function(t,e){return a(this.pathElements,(function(i,n){i[n]+="x"===n[0]?t:e})),this},transform:function(t){return a(this.pathElements,(function(e,i,n,a,s){var r=t(e,i,n,a,s);(r||0===r)&&(e[i]=r)})),this},parse:function(t){var e=t.replace(/([A-Za-z])([0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce((function(t,e){return e.match(/[A-Za-z]/)&&t.pu
1sh([]),t[t.length-1].push(e),t}),[]);"Z"===e[e.length-1][0].toUpperCase()&&e.pop();var n=e.map((function(t){var e=t.shift(),n=s[e.toLowerCase()];return i.extend({command:e},n.reduce((function(e,i,n){return e[i]=+t[n],e}),{}))})),a=[this.pos,0];return Array.prototype.push.apply(a,n),Array.prototype.splice.apply(this.pathElements,a),this.pos+=n.length,this},stringify:function(){var t=Math.pow(10,this.options.accuracy);return this.pathElements.reduce(function(e,i){var n=s[i.command.toLowerCase()].map(function(e){return this.options.accuracy?Math.round(i[e]*t)/t:i[e]}.bind(this));return e+i.command+n.join(",")}.bind(this),"")+(this.close?"Z":"")},clone:function(t){var e=new i.Svg.Path(t||this.close);return e.pos=this.pos,e.pathElements=this.pathElements.slice().map((function(t){return i.extend({},t)})),e.options=i.extend({},this.options),e},splitByCommand:function(t){var e=[new i.Svg.Path];return this.pathElements.forEach((function(n){n.command===t.toUpperCase()&&0!==e[e.length-1].pathElements.length&&e.push(new i.Svg.Path),e[e.length-1].pathElements.push(n)})),e}}),i.Svg.Path.elementDescriptions=s,i.Svg.Path.join=function(t,e,n){for(var a=new i.Svg.Path(e,n),s=0;s<t.length;s++)for(var r=t[s],o=0;o<r.pathElements.length;o++)a.pathElements.push(r.pathElements[o]);return a}}(window,document,t),function(t,e,i){"use strict";var n={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};i.Axis=i.Class.extend({constructor:function(t,e,i,a){this.units=t,this.counterUnits=t===n.x?n.y:n.x,this.chartRect=e,this.axisLength=e[t.rectEnd]-e[t.rectStart],this.gridOffset=e[t.rectOffset],this.ticks=i,this.options=a},createGridAndLabels:function(t,e,n,a,s){var r=a["axis"+this.units.pos.toUpperCase()],o=this.ticks.map(this.projectValue.bind(this)),l=this.ticks.map(r.labelInterpolationFnc);o.forEach(function(c,u){var d,h={x:0,y:0};d=o[u+1]?o[u+1]-c:Math.max(this.axisLength-c,30),i.isFalseyButZero(l[u])&&""!==l[u]||("x"===this.units.pos?(c=this.chartRect.x1+c,h.x=a.axisX.labelOffset.x,"start"===a.axisX.position?h.y=this.chartRect.padding.top+a.axisX.labelOffset.y+(n?5:20):h.y=this.chartRect.y1+a.axisX.labelOffset.y+(n?5:20)):(c=this.chartRect.y1-c,h.y=a.axisY.labelOffset.y-(n?d:0),"start"===a.axisY.position?h.x=n?this.chartRect.padding.left+a.axisY.labelOffset.x:this.chartRect.x1-10:h.x=this.chartRect.x2+a.axisY.labelOffset.x+10),r.showGrid&&i.createGrid(c,u,this,this.gridOffset,this.chartRect[this.counterUnits.len](),t,[a.classNames.grid,a.classNames[this.units.dir]],s),r.showLabel&&i.createLabel(c,d,u,l,this,r.offset,h,e,[a.classNames.label,a.classNames[this.units.dir],"start"===r.position?a.classNames[r.position]:a.classNames.end],n,s))}.bind(this))},projectValue:function(t,e,i){throw new Error("Base axis can't be instantiated!")}}),i.Axis.units=n}(window,document,t),function(t,e,i){"use strict";i.AutoScaleAxis=i.Axis.extend({constructor:function(t,e,n,a){var s=a.highLow||i.getHighLow(e,a,t.pos);this.bounds=i.getBounds(n[t.rectEnd]-n[t.rectStart],s,a.scaleMinSpace||20,a.onlyInteger),this.range={min:this.bounds.min,max:this.bounds.max},i.AutoScaleAxis.super.constructor.call(this,t,n,this.bounds.values,a)},projectValue:function(t){return this.axisLength*(+i.getMultiValue(t,this.units.pos)-this.bounds.min)/this.bounds.range}})}(window,document,t),function(t,e,i){"use strict";i.FixedScaleAxis=i.Axis.extend({constructor:function(t,e,n,a){var s=a.highLow||i.getHighLow(e,a,t.pos);this.divisor=a.divisor||1,this.ticks=a.ticks||i.times(this.divisor).map(function(t,e){return s.low+(s.high-s.low)/this.divisor*e}.bind(this)),this.ticks.sort((function(t,e){return t-e})),this.range={min:s.low,max:s.high},i.FixedScaleAxis.super.constructor.call(this,t,n,this.ticks,a),this.stepLength=this.axisLength/this.divisor},projectValue:function(t){return this.axisLength*(+i.getMultiValue(t,this.units.pos)-this.range.min)/(this.range.max-this.range.min)}})}(window,document,t),function(t,e,i){"use strict";i.StepAxis=i.Axis.extend({constructor:function(t,e,n,a){i.StepAxis.super.constructor.call(this,t,n,a.ticks,a);var s=Math.max(1,a.ticks.length-(a.stretch?1:0));this.stepLength=this.axisLength/s}
1,projectValue:function(t,e){return this.stepLength*e}})}(window,document,t),function(t,e,i){"use strict";var n={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:i.noop,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:i.noop,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};i.Line=i.Base.extend({constructor:function(t,e,a,s){i.Line.super.constructor.call(this,t,e,n,i.extend({},n,a),s)},createChart:function(t){var e=i.normalizeData(this.data,t.reverseData,!0);this.svg=i.createSvg(this.container,t.width,t.height,t.classNames.chart);var a,s,r=this.svg.elem("g").addClass(t.classNames.gridGroup),o=this.svg.elem("g"),l=this.svg.elem("g").addClass(t.classNames.labelGroup),c=i.createChartRect(this.svg,t,n.padding);a=void 0===t.axisX.type?new i.StepAxis(i.Axis.units.x,e.normalized.series,c,i.extend({},t.axisX,{ticks:e.normalized.labels,stretch:t.fullWidth})):t.axisX.type.call(i,i.Axis.units.x,e.normalized.series,c,t.axisX),s=void 0===t.axisY.type?new i.AutoScaleAxis(i.Axis.units.y,e.normalized.series,c,i.extend({},t.axisY,{high:i.isNumeric(t.high)?t.high:t.axisY.high,low:i.isNumeric(t.low)?t.low:t.axisY.low})):t.axisY.type.call(i,i.Axis.units.y,e.normalized.series,c,t.axisY),a.createGridAndLabels(r,l,this.supportsForeignObject,t,this.eventEmitter),s.createGridAndLabels(r,l,this.supportsForeignObject,t,this.eventEmitter),t.showGridBackground&&i.createGridBackground(r,c,t.classNames.gridBackground,this.eventEmitter),e.raw.series.forEach(function(n,r){var l=o.elem("g");l.attr({"ct:series-name":n.name,"ct:meta":i.serialize(n.meta)}),l.addClass([t.classNames.series,n.className||t.classNames.series+"-"+i.alphaNumerate(r)].join(" "));var u=[],d=[];e.normalized.series[r].forEach(function(t,o){var l={x:c.x1+a.projectValue(t,o,e.normalized.series[r]),y:c.y1-s.projectValue(t,o,e.normalized.series[r])};u.push(l.x,l.y),d.push({value:t,valueIndex:o,meta:i.getMetaData(n,o)})}.bind(this));var h={lineSmooth:i.getSeriesOption(n,t,"lineSmooth"),showPoint:i.getSeriesOption(n,t,"showPoint"),showLine:i.getSeriesOption(n,t,"showLine"),showArea:i.getSeriesOption(n,t,"showArea"),areaBase:i.getSeriesOption(n,t,"areaBase")},p=("function"==typeof h.lineSmooth?h.lineSmooth:h.lineSmooth?i.Interpolation.monotoneCubic():i.Interpolation.none())(u,d);if(h.showPoint&&p.pathElements.forEach(function(e){var o=l.elem("line",{x1:e.x,y1:e.y,x2:e.x+.01,y2:e.y},t.classNames.point).attr({"ct:value":[e.data.value.x,e.data.value.y].filter(i.isNumeric).join(","),"ct:meta":i.serialize(e.data.meta)});this.eventEmitter.emit("draw",{type:"point",value:e.data.value,index:e.data.valueIndex,meta:e.data.meta,series:n,seriesIndex:r,axisX:a,axisY:s,group:l,element:o,x:e.x,y:e.y})}.bind(this)),h.showLine){var f=l.elem("path",{d:p.stringify()},t.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:e.normalized.series[r],path:p.clone(),chartRect:c,index:r,series:n,seriesIndex:r,seriesMeta:n.meta,axisX:a,axisY:s,group:l,element:f})}if(h.showArea&&s.range){var g=Math.max(Math.min(h.areaBase,s.range.max),s.range.min),v=c.y1-s.projectValue(g);p.splitByCommand("M").filter((function(t){return t.pathElements.length>1})).map((function(t){var e=t.pathElements[0],i=t.pathElements[t.pathElements.length-1];return t.clone(!0).position(0).remove(1).move(e.x,v).line(e.x,e.y).position(t.pathElements.length+1).line(i.x,v)})).forEach(function(i){var o=l.elem("path",{d:i.stringify()},t.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:e.normalized.series[r],path:i.clone(),series:n,seriesIndex:r,axisX:a,axisY:s,chartRect:c,index:r,group:l,element:o})}.bind(this))}}.bind(this)),this.eventEmitter.emit("created",{bounds:s.bounds,chartRect:c,axisX:a,axisY:s,svg:this.svg,options:t})}})}
1(window,document,t),function(t,e,i){"use strict";var n={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:i.noop,scaleMinSpace:30,onlyInteger:!1},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:i.noop,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,high:void 0,low:void 0,referenceValue:0,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:!1,stackMode:"accumulate",horizontalBars:!1,distributeSeries:!1,reverseData:!1,showGridBackground:!1,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};i.Bar=i.Base.extend({constructor:function(t,e,a,s){i.Bar.super.constructor.call(this,t,e,n,i.extend({},n,a),s)},createChart:function(t){var e,a;t.distributeSeries?(e=i.normalizeData(this.data,t.reverseData,t.horizontalBars?"x":"y")).normalized.series=e.normalized.series.map((function(t){return[t]})):e=i.normalizeData(this.data,t.reverseData,t.horizontalBars?"x":"y"),this.svg=i.createSvg(this.container,t.width,t.height,t.classNames.chart+(t.horizontalBars?" "+t.classNames.horizontalBars:""));var s=this.svg.elem("g").addClass(t.classNames.gridGroup),r=this.svg.elem("g"),o=this.svg.elem("g").addClass(t.classNames.labelGroup);if(t.stackBars&&0!==e.normalized.series.length){var l=i.serialMap(e.normalized.series,(function(){return Array.prototype.slice.call(arguments).map((function(t){return t})).reduce((function(t,e){return{x:t.x+(e&&e.x)||0,y:t.y+(e&&e.y)||0}}),{x:0,y:0})}));a=i.getHighLow([l],t,t.horizontalBars?"x":"y")}else a=i.getHighLow(e.normalized.series,t,t.horizontalBars?"x":"y");a.high=+t.high||(0===t.high?0:a.high),a.low=+t.low||(0===t.low?0:a.low);var c,u,d,h,p,f=i.createChartRect(this.svg,t,n.padding);u=t.distributeSeries&&t.stackBars?e.normalized.labels.slice(0,1):e.normalized.labels,t.horizontalBars?(c=h=void 0===t.axisX.type?new i.AutoScaleAxis(i.Axis.units.x,e.normalized.series,f,i.extend({},t.axisX,{highLow:a,referenceValue:0})):t.axisX.type.call(i,i.Axis.units.x,e.normalized.series,f,i.extend({},t.axisX,{highLow:a,referenceValue:0})),d=p=void 0===t.axisY.type?new i.StepAxis(i.Axis.units.y,e.normalized.series,f,{ticks:u}):t.axisY.type.call(i,i.Axis.units.y,e.normalized.series,f,t.axisY)):(d=h=void 0===t.axisX.type?new i.StepAxis(i.Axis.units.x,e.normalized.series,f,{ticks:u}):t.axisX.type.call(i,i.Axis.units.x,e.normalized.series,f,t.axisX),c=p=void 0===t.axisY.type?new i.AutoScaleAxis(i.Axis.units.y,e.normalized.series,f,i.extend({},t.axisY,{highLow:a,referenceValue:0})):t.axisY.type.call(i,i.Axis.units.y,e.normalized.series,f,i.extend({},t.axisY,{highLow:a,referenceValue:0})));var g=t.horizontalBars?f.x1+c.projectValue(0):f.y1-c.projectValue(0),v=[];d.createGridAndLabels(s,o,this.supportsForeignObject,t,this.eventEmitter),c.createGridAndLabels(s,o,this.supportsForeignObject,t,this.eventEmitter),t.showGridBackground&&i.createGridBackground(s,f,t.classNames.gridBackground,this.eventEmitter),e.raw.series.forEach(function(n,a){var s,o,l=a-(e.raw.series.length-1)/2;s=t.distributeSeries&&!t.stackBars?d.axisLength/e.normalized.series.length/2:t.distributeSeries&&t.stackBars?d.axisLength/2:d.axisLength/e.normalized.series[a].length/2,(o=r.elem("g")).attr({"ct:series-name":n.name,"ct:meta":i.serialize(n.meta)}),o.addClass([t.classNames.series,n.className||t.classNames.series+"-"+i.alphaNumerate(a)].join(" ")),e.normalized.series[a].forEach(function(r,u){var m,x,y,b;if(b=t.distributeSeries&&!t.stackBars?a:t.distributeSeries&&t.stackBars?0:u,m=t.horizontalBars?{x:f.x1+c.projectValue(r&&r.x?r.x:0,u,e.normalized.series[a]),y:f.y1-d.projectValue(r&&r.y?r.y:0,b,e.normalized.series[a])}:{x:f.x1+d.projectValue(r&&r.x?r.x:0,b,e.normalized.series[a]),y:f.y1-c.projectValue(r&&r.y?r.y:0,u,e.normalized.series[a])},d instanceof i.StepAxis&&(d.options.stretch||(m[d.units.pos]+=s*(t.horizontalBars?-1:1)),m[d.units.pos]+=t.stackBars||t.distributeSeries?0:l*t.seriesBarDistance*(t.horizontalBars?-1:1)),y=v[u]||g,v[u]=y-(g-m[d.counterUnits.pos]),void 0!==r){var w={};w[d.units.pos+"1"]=m[d.units.pos],w[d.units.pos+"2"]=m[d.units.pos],!t.stackBars||"accumulate"!==t.stackMode&&t.stackMode?(w[d.counterUnits.pos+"1"]=g,w[d.counterUnits.pos+"2"]=m[d.counterUnits.pos]):(w[d.counterUnits.pos+"1"]=y,w[d.counterUnits.pos+"2"]=v[u]),w.x1=Math.min(Math.max(w.x1,f.x1),f.x2),w.x2=Math.min(Math.max(w.x2,f.x1),f.x2),w.y1=Math.min(Math.max(w.y1,f.y2),f.y1),w.y2=Math.min(Math.max(w.y2,f.y2),f.y1);var $=i.getMetaData(n,u);x=o.elem("line",w,t.classNames.bar).attr({"ct:value":[r.x,r.y].filter(i.isNumeric).join(","),"ct:meta":i.serialize($)}),this.eventEmitter.emit("draw",i.extend({type:"bar",value:r,index:u,meta:$,series:n,seriesIndex:a,axisX:h,axisY:p,chartRect:f,group:o,element:x},w))}}.bind(this))}.bind(this)),this.eventEmitter.emit("created",{bounds:c.bounds,chartRect:f,axisX:h,axisY:p,svg:this.svg,options:t})}})}
1(window,document,t),function(t,e,i){"use strict";function n(t,e,i){var n=e.x>t.x;return n&&"explode"===i||!n&&"implode"===i?"start":n&&"implode"===i||!n&&"explode"===i?"end":"middle"}var a={width:void 0,height:void 0,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",sliceDonutSolid:"ct-slice-donut-solid",label:"ct-label"},startAngle:0,total:void 0,donut:!1,donutSolid:!1,donutWidth:60,showLabel:!0,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:i.noop,labelDirection:"neutral",reverseData:!1,ignoreEmptyValues:!1};i.Pie=i.Base.extend({constructor:function(t,e,n,s){i.Pie.super.constructor.call(this,t,e,a,i.extend({},a,n),s)},createChart:function(t){var e,s,r,o,l,c=i.normalizeData(this.data),u=[],d=t.startAngle;this.svg=i.createSvg(this.container,t.width,t.height,t.donut?t.classNames.chartDonut:t.classNames.chartPie),s=i.createChartRect(this.svg,t,a.padding),r=Math.min(s.width()/2,s.height()/2),l=t.total||c.normalized.series.reduce((function(t,e){return t+e}),0);var h=i.quantity(t.donutWidth);"%"===h.unit&&(h.value*=r/100),r-=t.donut&&!t.donutSolid?h.value/2:0,o="outside"===t.labelPosition||t.donut&&!t.donutSolid?r:"center"===t.labelPosition?0:t.donutSolid?r-h.value/2:r/2,o+=t.labelOffset;var p={x:s.x1+s.width()/2,y:s.y2+s.height()/2},f=1===c.raw.series.filter((function(t){return t.hasOwnProperty("value")?0!==t.value:0!==t})).length;c.raw.series.forEach(function(t,e){u[e]=this.svg.elem("g",null,null)}.bind(this)),t.showLabel&&(e=this.svg.elem("g",null,null)),c.raw.series.forEach(function(a,s){if(0!==c.normalized.series[s]||!t.ignoreEmptyValues){u[s].attr({"ct:series-name":a.name}),u[s].addClass([t.classNames.series,a.className||t.classNames.series+"-"+i.alphaNumerate(s)].join(" "));var g=l>0?d+c.normalized.series[s]/l*360:0,v=Math.max(0,d-(0===s||f?0:.2));g-v>=359.99&&(g=v+359.99);var m,x,y,b=i.polarToCartesian(p.x,p.y,r,v),w=i.polarToCartesian(p.x,p.y,r,g),$=new i.Svg.Path(!t.donut||t.donutSolid).move(w.x,w.y).arc(r,r,0,g-d>180,0,b.x,b.y);t.donut?t.donutSolid&&(y=r-h.value,m=i.polarToCartesian(p.x,p.y,y,d-(0===s||f?0:.2)),x=i.polarToCartesian(p.x,p.y,y,g),$.line(m.x,m.y),$.arc(y,y,0,g-d>180,1,x.x,x.y)):$.line(p.x,p.y);var E=t.classNames.slicePie;t.donut&&(E=t.classNames.sliceDonut,t.donutSolid&&(E=t.classNames.sliceDonutSolid));var A=u[s].elem("path",{d:$.stringify()},E);if(A.attr({"ct:value":c.normalized.series[s],"ct:meta":i.serialize(a.meta)}),t.donut&&!t.donutSolid&&(A._node.style.strokeWidth=h.value+"px"),this.eventEmitter.emit("draw",{type:"slice",value:c.normalized.series[s],totalDataSum:l,index:s,meta:a.meta,series:a,group:u[s],element:A,path:$.clone(),center:p,radius:r,startAngle:d,endAngle:g}),t.showLabel){var S,O;S=1===c.raw.series.length?{x:p.x,y:p.y}:i.polarToCartesian(p.x,p.y,o,d+(g-d)/2),O=c.normalized.labels&&!i.isFalseyButZero(c.normalized.labels[s])?c.normalized.labels[s]:c.normalized.series[s];var C=t.labelInterpolationFnc(O,s);if(C||0===C){var M=e.elem("text",{dx:S.x,dy:S.y,"text-anchor":n(p,S,t.labelDirection)},t.classNames.label).text(""+C);this.eventEmitter.emit("draw",{type:"label",index:s,group:e,element:M,text:""+C,x:S.x,y:S.y})}}d=g}}.bind(this)),this.eventEmitter.emit("created",{chartRect:s,svg:this.svg,options:t})},determineAnchorPosition:n})}(window,document,t),t}()}.apply(e,[]))||(t.exports=n)},513:function(t,e,i){"use strict";i.r(e);var n=i(143),a=i.n(n);$(document).ready((function(){var t="GRID_CONNECTED-NOT_USING_UPS",e=!1,i=0,n=[];function s(){for(var t=$('*[data-id="SOLAR_OUTPUT"]').attr("data-value").split(","),e=$('*[data-id="ENERGY_CONSUMED_PER_YEAR"]').attr("data-value"),i=[],n=[],s=0;s<t.length;s++)i.push(parseFloat(t[s])/1e3);for(s=0;s<12;s++)n.push(e);var r={labels:["J","F","M","A","M","J","J","A","S","O","N","D"],series:[n,i]};0!==$(".js-pc-result.is--active").find(".ct-chart").length&&new a.a.Line(".js-pc-result.is--active .ct-chart",r,{fullWidth:!0,height:185,showPoint:!1,axisX:{showGrid:!1}})}function r(i,n,a){if(void 0!==a){var s=t.split("-");s[parseInt(a)]=n,t=s.join().replace(",","-"),$(".js-pc-result").removeClass("is--active"),$('*[data-result="'+t+'"]').addClass("is--active"),$('*[data-result="'+t+'"] .js-range-input').change(),$(".js-range-input-result").change(),e=!0,p(null),function(){var t=$(".js-pc-result.is--active #pac-input");if(t.length>
10){var e=$('*[data-id="COUNTRY_NAME"]').attr("data-value"),i=$('*[data-id="CITY_NAME"]').attr("data-value");e&&"null"!==e&&t.val(e),e&&"null"!==e&&i&&"null"!==i&&t.val(i+", "+e);var n=new google.maps.places.SearchBox(t[0]);n.addListener("places_changed",(function(){var t=n.getPlaces();0!==t.length&&t.forEach((function(t){t.geometry&&h(Math.round(t.geometry.location.lat()),Math.round(t.geometry.location.lng()),p)}))}))}}()}}var o=null;function l(t,e,i){var n=$('*[data-id="'+t+'"]');if(parseFloat(n.attr("data-value"))!==parseFloat(e)){var a=$('.js-pc-input[data-value-label="'+t+'"]').not(".is--updater").closest(".pc-block");a.hasClass("is--updated")?(clearTimeout(o),o=setTimeout((function(){a.removeClass("is--updated"),$(".js-pc-input").removeClass("is--updater")}),1500)):(a.addClass("is--updated"),o=setTimeout((function(){!0,a.removeClass("is--updated"),$(".js-pc-input").removeClass("is--updater")}),1500))}n.attr("data-value",e),$('.js-range-input[data-connected-to="'+t+'"]').val(e).trigger("update-range"),$(".js-pc-select").find('option[value="'+e+'"]').first().prop("selected",!0).trigger("chosen:updated"),$('.js-pc-value[data-value-label="'+t+'"]').text(e),$('.js-pc-text-toggle[data-value-label="'+t+'"]').text($('.js-pc-text-toggle[data-value-label="'+t+'"]').attr("data-"+e));var s=$('.js-pc-graph-loader[data-id="RESULT_'+t+'"]');if(s){s.data("scale-min");var l=s.data("scale-max");s.css({"stroke-dasharray":.183*parseInt(e/parseInt(l)*100)+" 20 18"})}isNaN(e)||e===e/0?$('.js-pc-input[data-value-label="'+t+'"]').val("-"):$('.js-pc-input[data-value-label="'+t+'"]').val(e),$('.js-pc-img[data-label="'+t+'"]').attr("src","/static/img/power-calculator/"+e+".svg").addClass("is--active"),r(0,e,i)}function c(t,e){if(t){$(".js-linked-select").removeClass("is--active"),$("#"+t).addClass("is--active");var i=$("#"+t).find(".js-pc-select").find("option").first();e&&(i=$("#"+t).find(".js-pc-select").find('option[value="'+e+'"]').first()),i.prop("selected",!0).trigger("chosen:updated"),$("#"+t).find(".js-pc-select").change()}}function u(t){$(".js-pc-step").removeClass("is--active"),$('*[data-step="'+t+'"]').addClass("is--active"),$(".js-range-input").trigger("update-range"),$("body").hasClass("phone")&&$("html, body").animate({scrollTop:$("#pc").offset().top-20},500)}function d(t,e,i,n,a){var s=t.split(",");if(1===s.length)$('*[data-connected-to="'+t+'"]').attr("min",e),$('*[data-connected-to="'+t+'"]').attr("max",i),$('*[data-connected-to="'+t+'"]').attr("step",n),a?$('*[data-connected-to="'+t+'"]').attr("value",a).trigger("value-change"):$('*[data-connected-to="'+t+'"]').attr("value",i/2).trigger("value-change");else if(s.length>1)for(var r=0;r<s.length;r++)$('*[data-connected-to="'+s[r]+'"]').attr("min",e.split(",")[r]),$('*[data-connected-to="'+s[r]+'"]').attr("max",i.split(",")[r]),$('*[data-connected-to="'+s[r]+'"]').attr("step",n.split(",")[r]),0!=a.split(",")[r]?$('*[data-connected-to="'+s[r]+'"]').attr("value",a.split(",")[r]).trigger("value-change"):$('*[data-connected-to="'+s[r]+'"]').attr("value",i.split(",")[r]/2).trigger("value-change")}function h(t,e,i){$.ajax({data:{latitude:t,longitude:e},success:function(t){for(var e=[],n=(t=t.replace("[","").replace("]","").split(","),0);n<t.length;n++)0!==n&&1!==n&&n!==t.length-1&&e.push(parseFloat(t[n]));l("SOLAR_RADIATION_DATA",e.toString()),i&&setTimeout((function(){i()}),500)},type:"POST",url:"https://cms.victronenergy.com/api/public/v1/get-solar-data/"})}function p(t){var i,a,r,o,c,u,d,h,w=parseInt($('*[data-id="AUTONOMY"]').attr("data-value")),E=(parseInt($('*[data-id="GENERATOR_RUNS_PER_MONTH"]').attr("data-value")),parseFloat($('*[data-id="GENERATOR_RUNTIME_PER_RUN"]').attr("data-value")),365*$('*[data-id="ENERGY_CONSUMED_PER_YEAR"]').attr("data-value")),A=1e3*parseInt($('*[data-id="MAXIMUM_POWER_CONSUMPTION"]').attr("data-value")),S=$('*[data-id="SOLAR_RADIATION_DATA"]').attr("data-value"),O=parseInt($('*[data-id="PERCENTAGE_SOLAR_POWER"]').attr("data-value"));if(t&&e)if("SOLAR_POWER"===t||"PERCENTAGE_SOLAR_POWER"===t){C=1e3*$('*[data-id="SOLAR_POWER"]').attr("data-value");"PERCENTAGE_SOLAR_POWER"===t?O=parseInt($('*[data-id="PERCENTAGE_SOLAR_POWER"]').attr("data-value")):(O=100*m(E,C,S,.75),l("PERCENTAGE_SOLAR_POWER",parseInt(O)));
1N=f(j=b(S,M=x(E,O/100,S,.15,.75),.15,.75),E/365);l("SOLAR_PANEL_AREA",M),l("SOLAR_OUTPUT",j),l("SUFFICIENT_SOLAR_POWER",N),s()}else if("LITHIUM_BATTERY_CAPACITY"===t){w=parseInt(v(E,parseInt($('*[data-id="LITHIUM_BATTERY_CAPACITY"]').attr("data-value"))));(isNaN(w)||w===w/0)&&(w=0),l("AUTONOMY",w)}else if("AUTONOMY"===t){if(-1===n.indexOf("LITHIUM_BATTERY_CAPACITY"))l("LITHIUM_BATTERY_CAPACITY",(g(E,w,.9,A)/1e3).toFixed(1))}else p(null);else{if(-1===n.indexOf("SOLAR_POWER")){l("SOLAR_POWER",((C=(c=E,u=(O=100)/100,d=.75,h=y(S),c/365*u*1e3/(h*d)*1e3))/1e3).toFixed(1))}else{var C;O=100*m(E,C=1e3*$('*[data-id="SOLAR_POWER"]').attr("data-value"),S,.75);l("PERCENTAGE_SOLAR_POWER",parseInt(O))}var M,j,N;if(l("SUFFICIENT_SOLAR_POWER",N=f(j=b(S,M=x(E,O/100,S,.15,.75),.15,.75),E/365)),l("SOLAR_PANEL_AREA",M),l("SOLAR_OUTPUT",j),-1===n.indexOf("LITHIUM_BATTERY_CAPACITY")){w>120&&(w=120),l("LITHIUM_BATTERY_CAPACITY",(g(E,w,.9,A)/1e3).toFixed(1)),l("AUTONOMY",w)}else{var w=parseInt(v(E,parseInt($('*[data-id="LITHIUM_BATTERY_CAPACITY"]').attr("data-value"))));(isNaN(w)||w===w/0)&&(w=0),l("AUTONOMY",w)}var _=(i=A,a={640:[1,1,800],960:[1,1,1200],1280:[1,1,1600],1600:[1,1,2e3],2400:[1,1,3e3],4e3:[1,1,5e3],6400:[1,1,8e3],8e3:[1,1,1e4],12e3:[1,1,15e3],12800:[1,2,8e3],16e3:[1,2,1e4],19200:[1,3,8e3],24e3:[3,1,1e4],36e3:[3,1,15e3],48e3:[3,2,1e4],72e3:[3,2,15e3],108e3:[3,3,15e3],144e3:[3,4,15e3]},r=Number.MAX_VALUE,o=[],Object.keys(a).forEach((function(t){t>=i&&t-i<r&&(r=t-i,o=a[t])})),(i>=24e3?3:1)*o[1]+" x "+o[2]+"VA"),I=function(t){return t>=24e3?3:1}(A);l("INVERTER_SIZE",_),l("INVERTER_PHASE_SYSTEM",I),s()}}function f(t,e){for(var i=!0,n=0;n<t.length;n++)parseInt(t[n])<1e3*e&&(i=!1);return i}function g(t,e,i,n){var a=function(t,e){return t/8760*1e3*e}(t,e)/i;return a>n?a:n}function v(t,e){return e/(t/365/24)}function m(t,e,i,n){return e*y(i)*n/1e3/t*365/1e3}function x(t,e,i,n,a){return t/365*e*1e3/(n*y(i)*a)}function y(t){for(var e=0,i=t.split(","),n=0;n<i.length;n++)e+=1e3*parseFloat(i[n])/12;return e}function b(t,e,i,n){for(var a=[],s=t.split(","),r=0;r<s.length;r++)s[r]>=0&&a.push(e*i*(1e3*parseFloat(s[r]))*n);return a}$(".js-pc-init").click((function(t){$.ajax({success:function(t){(t.country_name&&l("COUNTRY_NAME",t.country_name),t.city&&l("CITY_NAME",t.city),t.latitude&&t.longitude)&&h(Math.round(t.latitude),Math.round(t.longitude))},type:"GET",url:"https://reallyfreegeoip.org/json/"})})),$(".js-pc-nav").click((function(t){t.preventDefault(),$(this).data("nav")&&($(this).hasClass("pc-step-number")?$(this).data("step")<i&&(i=$(this).data("step"),u($(this).data("nav"))):(i+=1,u($(this).data("nav")))),$(this).data("value-label")&&l($(this).data("value-label"),$(this).data("value"),$(this).data("result-index")),$(this).data("linked-select")&&c($(this).data("linked-select"),$(this).data("value")),$(this).data("range-adjustment")&&d($(this).data("range-adjustment"),$(this).data("min"),$(this).data("max"),$(this).data("increment"),$(this).data("default-value")),t.preventDefault()})),$(".js-pc-input").on("change input",(function(){$('*[data-id="'+$(this).data("value-label")+'"]').attr("data-value",$(this).val()),l($(this).attr("data-value-label"),$(this).val(),$(this).data("result-index"))})),$(".js-range-input").on("update-range",(function(){var t=100*($(this).val()-parseInt($(this).attr("min")))/(parseInt($(this).attr("max"))-parseInt($(this).attr("min"))),e=$(this).width()*(t/100)-t/100*28;$(this).next().css({width:e+"px"})})),$(".js-range-input").on("input change",(function(){var t=$(this).data("connected-to");$('*[data-value-label="'+t+'"]').val($(this).val()).change(),$(this).trigger("update-range"),p(t)})),$(".js-range-input").on("value-change",(function(){var t=$(this).data("connected-to");$('*[data-value-label="'+t+'"]').val($(this).attr("value")).change(),$(this).trigger("update-range"),p(t)})),$(".js-pc-select").change((function(){var t=$(this).find('option[value="'+$(this).val()+'"]').data("linked-select");t&&c(t,$(this).val()),l($(this).data("value-label"),$(this).val(),$(this).data("result-index"));var e=$(this).find("option:selected");e.data("range-adjustment")&&d(e.data("range-adjustment"),e.data("min"),e.data("max"),e.data("increment"),e.data("default-value")),p(null)})),$(".js-pc-result .js-pc-input").on("keyup",(function(){$('*[data-id="'+$(this).data("value-label")+'"]').attr("data-value",$(this).val()),$(this).addClass("is--updater"),l($(this).data("value-label"),$(this).val(),$(this).data("result-index")),p($(this).data("value-label"))})),$(".js-pc-step-one-trigger").click((function(){$(".js-pc-step-one-result").addClass("is--active"),$(this).parent().removeClass("is--active"),$(".js-pc-step-one-result .js-range-input").change()})),$(".js-pc-lock").click((function(){-1===n.indexOf($(this).data("lock"))?n.push($(this).data("lock")):n.splice(n.indexOf($(this).data("lock")),1),$('*[data-lock-on="'+$(this).data("lock")+'"]').toggleClass("is--locked"),$(this).parent().toggleClass("pc-block--islocked")}))}))},514:function(t,e){$(document).ready((function(){function t(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}var n=t.indexOf("Edge/");return n>0&&parseInt(t.substring(n+5,t.indexOf(".",n)),10)}function e(t,e,i){function n(t,e,i){var n=e.x-t.x,s=e.y-t.y,r=Math.sqrt(n*n+s*s);return a(t,e,Math.min(1,i/r))}function a(t,e,i){return{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function s(t,e){t.length>2&&(t[t.length-2]=e.x,t[t.length-1]=e.y)}function r(t){return{x:parseFloat(t[t.length-2]),y:parseFloat(t[t.length-1])}}var o=t.split(/[,\s]/).reduce((function(t,e){var i=e.match("([a-zA-Z])(.+)");return i?(t.push(i[1]),t.push(i[2])):t.push(e),t}),[]).reduce((function(t,e){return parseFloat(e)==e&&t.length?t[t.length-1].push(e):t.push([e]),t}),[]),l=[];
1if(o.length>1){var c=r(o[0]),u=null;"Z"==o[o.length-1][0]&&o[0].length>2&&(u=["L",c.x,c.y],o[o.length-1]=u),l.push(o[0]);for(var d=1;d<o.length;d++){var h=l[l.length-1],p=o[d],f=p==u?o[1]:o[d+1];if(f&&h&&h.length>2&&"L"==p[0]&&f.length>2&&"L"==f[0]){var g,v,m=r(h),x=r(p),y=r(f);i?(g=a(x,h.origPoint||m,e),v=a(x,f.origPoint||y,e)):(g=n(x,m,e),v=n(x,y,e)),s(p,g),p.origPoint=x,l.push(p);var b=a(g,x,.5),w=a(x,v,.5),$=["C",b.x,b.y,w.x,w.y,v.x,v.y];$.origPoint=x,l.push($)}else l.push(p)}if(u){var E=r(l[l.length-1]);l.push(["Z"]),s(l[0],E)}}else l=o;return l.reduce((function(t,e){return t+e.join(" ")+" "}),"")}var i=0,n=0,a=null,s=0,r=!1,o=!1;function l(){$(".js-flow.is--active .block").each((function(t){var e=parseInt($(this).css("top")),a=parseInt($(this).css("left"));e+104>n&&(n+=e+104),a+120>i&&(i+=a+120)})),$("#svg").remove(),a=$('<svg id="svg" xmlns="http://www.w3.org/2000/svg" width="'+i+'" height= "'+n+'"></svg>'),$(".js-flow.is--active").append(a),setTimeout((function(){$(".js-flow.is--active .block").each((function(i){var n=$(this).data("lines"),a=$(this).data("connectto"),s=$(this).data("connectfrom"),r=[],o=[];if($(this).data("dashed-lines")&&(r=$(this).data("dashed-lines").split(",")),$(this).data("line-split")&&(o=$(this).data("line-split").split(",")),n){for(var l=s.split(","),c=0,u=0;u<l.length;u++)"top"===l[u]&&(c+=1);var d=n.split(",");for(i=0;i<d.length;i++){var h=a.split(",")[i],p=l[i],f=$("#"+d[i]),g=$("#"+$(this).attr("id")),v=(g.data("type"),f.data("type"),0),m=0,x=0,y=0,b=g.outerHeight(),w=f.outerHeight();if("bottom"===h&&(m=parseInt(f.css("top"))+w,v=parseInt(f.css("left"))+60),"top"===h&&(m=parseInt(f.css("top")),v=parseInt(f.css("left"))+60),"right"===h&&(m=parseInt(f.css("top"))+w/2,v=parseInt(f.css("left"))+120),"left"===h&&(m=parseInt(f.css("top"))+w/2,v=parseInt(f.css("left"))),"bottom"===p&&(x=parseInt($(this).css("left"))+60,y=parseInt($(this).css("top"))+b),"top"===p){y=parseInt($(this).css("top"));var E=10*c/2,A=10*Math.floor(E/10);x=parseInt($(this).css("left"))+60-A+10*i}if("right"===p&&(x=parseInt($(this).css("left"))+120,y=f.css("top")==$(this).css("top")?m:parseInt($(this).css("top"))+b/2),"left"===p&&(x=parseInt($(this).css("left")),y=f.css("top")==$(this).css("top")?m:parseInt($(this).css("top"))+b/2),path="M "+x+" "+y+" L "+v+" "+m,x!=v&&y!=m){if(path="M "+x+" "+y+" L "+x+" "+m+" L "+v+" "+m,"bottom"===h&&"top"===p&&(yMiddle=y+(m-y)/2,path="M "+x+" "+y+" L "+x+" "+yMiddle+" L "+v+" "+yMiddle+" L "+v+" "+m),"right"===h&&"left"===p&&(xMiddle=x+(v-x)/2,path="M "+x+" "+y+" L "+xMiddle+" "+y+" L "+xMiddle+" "+m+" L "+v+" "+m),-1!==o.indexOf(d[i])&&("top"===p||"bottom"===p)){x=parseInt($(this).css("left"))+60;var S=g.data("top-to-bottom-middle");yMiddle=y+(m-y)/2,void 0===S?g.data("top-to-bottom-middle",yMiddle):yMiddle=S,xMiddle=x+(v-x)/2,path="M "+x+" "+y+" L "+x+" "+yMiddle+" L "+v+" "+yMiddle+" L "+v+" "+m}-1===o.indexOf(d[i])||"left"!==p&&"right"!==p||(yMiddle=y+(m-y)/2,xMiddle=x+(v-x)/2,path="M "+x+" "+y+" L "+xMiddle+" "+y+" L "+xMiddle+" "+m+" L "+v+" "+m)}if(-1===r.indexOf(d[i]))(O=document.createElementNS("http://www.w3.org/2000/svg","path")).setAttributeNS(null,"class","flow-path"),O.setAttributeNS(null,"d",e(path,5,!1)),O.setAttributeNS(null,"stroke-dasharray",O.getTotalLength()+"px"),t()||O.setAttributeNS(null,"stroke-dashoffset",O.getTotalLength()+"px"),document.getElementById("svg").appendChild(O);else{var O;(O=document.createElementNS("http://www.w3.org/2000/svg","path")).setAttributeNS(null,"class","flow-path"),O.setAttributeNS(null,"d",e(path,5,!1)),O.setAttributeNS(null,"stroke-dasharray",O.getTotalLength()+"px"),t()||O.setAttributeNS(null,"stroke-dashoffset",O.getTotalLength()+"px");var C=document.createElementNS("http://www.w3.org/2000/svg","path");C.setAttributeNS(null,"class","flow-dashed-path"),C.setAttributeNS(null,"d",e(path,5,!1)),document.getElementById("svg").appendChild(O),document.getElementById("svg").appendChild(C)}var M=document.createElementNS("http://www.w3.org/2000/svg","rect");M.setAttributeNS(null,"class","flow-rect"),M.setAttributeNS(null,"x",x-2),M.setAttributeNS(null,"y",y-2),M.setAttributeNS(null,"height","4"),M.setAttributeNS(null,"width","4"),document.getElementById("svg").appendChild(M);var j=document.createElementNS("http://www.w3.org/2000/svg","rect");j.setAttributeNS(null,"class","flow-rect flow-rect--end"),j.setAttributeNS(null,"x",v-2),j.setAttributeNS(null,"y",m-2),j.setAttributeNS(null,"height","4"),j.setAttributeNS(null,"width","4"),document.getElementById("svg").appendChild(j)}}})),r=!1}),s)}function c(){r=!0,s=50*$(".js-flow.is--active .block").length+200,function(){$(".js-pg-desc").removeClass("is--active");var t=$(".js-pg-tabs a.is--active").data("tab"),e=$(".js-pg-tooltip-content").find('[data-tooltip="desc-'+t+'"]').find(".desc").text();$('[data-desc="'+t+'"]').addClass("is--active").find(".js-desc").text(e)}(),$(".js-flow.is--active .block").each((function(t){$(this).css({"animation-delay":50*t+"ms"}),$(this).addClass("is--animating")})),l()}function u(){o=!1,$(".pg-tooltip-content").scrollTop(0),$(".js-pg-tooltip").removeClass("is--active"),$("html").removeClass("u--overflowHidden"),$("body").removeClass("u--overflowHidden"),$(".js-flow").removeClass("is--fade"),$(".js-flow .block").removeClass("is--active")}$(".js-pg-tabs a").click((function(t){$(".js-pg-tabs a").removeClass("is--active"),$(this).addClass("is--active"),$(".js-flow").removeClass("is--active"),$("#"+$(this).data("tab")).addClass("is--active"),c(),t.preventDefault()})),$(".js-pg-select").chosen({search_contains:!0,disable_search:!1,inherit_select_classes:!0}),$(".js-pg-select").change((function(){$(".js-flow").removeClass("is--active"),$("#"+$(this).val()).addClass("is--active"),$(".js-pg-desc").removeClass("is--active"),$('[data-desc="'+$(this).val()+'"]').addClass("is--active"),$(".js-pg-tabs a").removeClass("is--active"),$('.js-pg-tabs [data-tab="'+$
1(this).val()+'"]').addClass("is--active"),c()})),$(".js-pg-tooltip-close").click((function(t){u(),t.preventDefault()})),$(".js-pg-tooltip").click((function(t){t.stopPropagation()})),$(document).click((function(t){o&&(u(),t.preventDefault(),t.stopPropagation())})),$(".js-flow .block").click((function(t){$(this).data("type");var e=$(this).attr("id"),i=$(".js-pg-tooltip-content").find('[data-tooltip="'+e+'"]'),n=$(this).find("span:not(.flow-number)").text();if(i.length>0){var a=$(this).find(".flow-image img").attr("src");$(".js-flow .block").removeClass("is--active"),$(".js-flow").addClass("is--fade"),$(this).addClass("is--active"),function(t,e,i,n,a,s){$(window).width()<991&&($("body").addClass("u--overflowHidden"),$(".pg-tooltip-content").on("scroll",(function(){$(this).scrollTop()+$(this).innerHeight()>=$(this)[0].scrollHeight?$(".pg-tooltip-scrollindicator").addClass("hidden"):$(".pg-tooltip-scrollindicator").removeClass("hidden")})));var r=$(".js-pg-tooltip-content").find('[data-tooltip="'+e+'"]'),l=r.find(".desc").html(),c=r.find(".link").text();o=!0,$(".js-pg-tooltip-image").attr("src",i),$(".js-pg-tooltip-desc").html(l),s?$(".js-pg-tooltip-title").text(s):$(".js-pg-tooltip-title").text(optionalTitle),c?$(".js-pg-tooltip-link").attr("href",c).removeClass("hidden"):$(".js-pg-tooltip-link").addClass("hidden");var u=$(".js-pg-tooltip").outerHeight();$(window).width()>992?($(".js-pg-tooltip").css({top:n-u-20+"px",left:a-600+170+"px"}),$(".pg-tooltip-scrollindicator").addClass("hidden")):$(".js-pg-tooltip").css({position:"fixed",top:($(window).height()-u)/2+"px",left:a-600+170+"px"}),$(".js-pg-tooltip").addClass("is--active")}(0,e,a,parseInt($(this).css("top"))+$(".js-pg-desc.is--active").parent().outerHeight(),parseInt($(this).css("left")),n)}t.preventDefault(),t.stopPropagation()})),$(window).resize((function(){r||c()})),c()}))},553:function(t,e,i){i(143),i(554),i(513),t.exports=i(514)},554:function(t,e,i){"use strict";i.r(e);i(555)},555:function(t,e,i){}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.