Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hpcc-js/c3chart

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hpcc-js/c3chart - npm Package Compare versions

Comparing version 0.1.12 to 0.1.13

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

<a name="0.1.13"></a>
## [0.1.13](https://github.com/hpcc-systems/Visualization/compare/@hpcc-js/c3chart@0.1.12...@hpcc-js/c3chart@0.1.13) (2018-07-28)
**Note:** Version bump only for package @hpcc-js/c3chart
<a name="0.1.12"></a>

@@ -8,0 +16,0 @@ ## [0.1.12](https://github.com/hpcc-systems/Visualization/compare/@hpcc-js/c3chart@0.1.11...@hpcc-js/c3chart@0.1.12) (2018-07-28)

2

dist/index.min.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@hpcc-js/c3-shim"),require("@hpcc-js/common"),require("@hpcc-js/api")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/c3-shim","@hpcc-js/common","@hpcc-js/api"],e):e(t["@hpcc-js/c3chart"]={},t["@hpcc-js/c3-shim"],t["@hpcc-js/common"],t["@hpcc-js/api"])}(this,function(t,e,n,r){"use strict";var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function o(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function a(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}var s,l=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function u(t){return new c(t)}function c(t){if(!(e=l.exec(t)))throw new Error("invalid format: "+t);var e;this.fill=e[1]||" ",this.align=e[2]||">",this.sign=e[3]||"-",this.symbol=e[4]||"",this.zero=!!e[5],this.width=e[6]&&+e[6],this.comma=!!e[7],this.precision=e[8]&&+e[8].slice(1),this.trim=!!e[9],this.type=e[10]||""}function h(t,e){var n=a(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}u.prototype=c.prototype,c.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var p={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return h(100*t,e)},r:h,s:function(t,e){var n=a(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(s=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,l=r.length;return o===l?r:o>l?r+new Array(o-l+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+a(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function f(t){return t}var g,d,y=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function m(t){var e,n,r=t.grouping&&t.thousands?(e=t.grouping,n=t.thousands,function(t,r){for(var i=t.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(t.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}):f,i=t.currency,o=t.decimal,l=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(t.numerals):f,c=t.percent||"%";function h(t){var e=(t=u(t)).fill,n=t.align,a=t.sign,h=t.symbol,f=t.zero,g=t.width,d=t.comma,m=t.precision,x=t.trim,b=t.type;"n"===b?(d=!0,b="g"):p[b]||(null==m&&(m=12),x=!0,b="g"),(f||"0"===e&&"="===n)&&(f=!0,e="0",n="=");var C="$"===h?i[0]:"#"===h&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",T="$"===h?i[1]:/[%p]/.test(b)?c:"",v=p[b],_=/[defgprs%]/.test(b);function S(t){var i,u,c,h=C,p=T;if("c"===b)p=v(t)+p,t="";else{var S=(t=+t)<0;if(t=v(Math.abs(t),m),x&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(i>0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),S&&0==+t&&(S=!1),h=(S?"("===a?a:"-":"-"===a||"("===a?"":a)+h,p=("s"===b?y[8+s/3]:"")+p+(S&&"("===a?")":""),_)for(i=-1,u=t.length;++i<u;)if(48>(c=t.charCodeAt(i))||c>57){p=(46===c?o+t.slice(i+1):t.slice(i))+p,t=t.slice(0,i);break}}d&&!f&&(t=r(t,1/0));var w=h.length+t.length+p.length,A=w<g?new Array(g-w+1).join(e):"";switch(d&&f&&(t=r(A+t,A.length?g-p.length:1/0),A=""),n){case"<":t=h+t+p+A;break;case"=":t=h+A+t+p;break;case"^":t=A.slice(0,w=A.length>>1)+h+t+p+A.slice(w);break;default:t=A+h+t+p}return l(t)}return m=null==m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return t+""},S}return{format:h,formatPrefix:function(t,e){var n,r=h(((t=u(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor((n=e,((n=a(Math.abs(n)))?n[1]:NaN)/3)))),o=Math.pow(10,-i),s=y[8+i/3];return function(t){return r(o*t)+s}}}}g=m({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),d=g.format,g.formatPrefix;var x=new Date,b=new Date;function C(t,e,n,r){function i(e){return t(e=new Date(+e)),e}return i.floor=i,i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,o){var a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;do{a.push(new Date(+n))}while(e(n,o),t(n),n<r);return a},i.filter=function(n){return C(function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return x.setTime(+e),b.setTime(+r),t(x),t(b),Math.floor(n(x,b))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var T=C(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});T.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?C(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):T:null};var v=6e4,_=6048e5,S=(C(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),C(function(t){t.setTime(Math.floor(t/v)*v)},function(t,e){t.setTime(+t+e*v)},function(t,e){return(e-t)/v},function(t){return t.getMinutes()}),C(function(t){var e=t.getTimezoneOffset()*v%36e5;e<0&&(e+=36e5),t.setTime(36e5*Math.floor((+t-e)/36e5)+e)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()}),C(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*v)/864e5},function(t){return t.getDate()-1}));function w(t){return C(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*v)/_})}var A=w(0),F=w(1),D=(w(2),w(3),w(4)),M=(w(5),w(6),C(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),C(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()}));M.every=function(t){return isFinite(t=Math.floor(t))&&t>0?C(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};C(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*v)},function(t,e){return(e-t)/v},function(t){return t.getUTCMinutes()}),C(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()});var k=C(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1});function U(t){return C(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/_})}var L=U(0),B=U(1),z=(U(2),U(3),U(4)),Y=(U(5),U(6),C(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),C(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()}));function I(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function H(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function O(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}Y.every=function(t){return isFinite(t=Math.floor(t))&&t>0?C(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var P,j,W,N,X={"-":"",_:" ",0:"0"},V=/^\s*\d+/,E=/^%/,G=/[\\^$*+?|[\]().{}]/g;function Z(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function Q(t){return t.replace(G,"\\$&")}function $(t){return new RegExp("^(?:"+t.map(Q).join("|")+")","i")}function J(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function R(t,e,n){var r=V.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function q(t,e,n){var r=V.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function K(t,e,n){var r=V.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function tt(t,e,n){var r=V.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function et(t,e,n){var r=V.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function nt(t,e,n){var r=V.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function rt(t,e,n){var r=V.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function it(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ot(t,e,n){var r=V.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function at(t,e,n){var r=V.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function st(t,e,n){var r=V.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function lt(t,e,n){var r=V.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function ut(t,e,n){var r=V.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function ct(t,e,n){var r=V.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function ht(t,e,n){var r=V.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function pt(t,e,n){var r=V.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ft(t,e,n){var r=E.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function gt(t,e,n){var r=V.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function dt(t,e,n){var r=V.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function yt(t,e){return Z(t.getDate(),e,2)}function mt(t,e){return Z(t.getHours(),e,2)}function xt(t,e){return Z(t.getHours()%12||12,e,2)}function bt(t,e){return Z(1+S.count(M(t),t),e,3)}function Ct(t,e){return Z(t.getMilliseconds(),e,3)}function Tt(t,e){return Ct(t,e)+"000"}function vt(t,e){return Z(t.getMonth()+1,e,2)}function _t(t,e){return Z(t.getMinutes(),e,2)}function St(t,e){return Z(t.getSeconds(),e,2)}function wt(t){var e=t.getDay();return 0===e?7:e}function At(t,e){return Z(A.count(M(t),t),e,2)}function Ft(t,e){var n=t.getDay();return t=n>=4||0===n?D(t):D.ceil(t),Z(D.count(M(t),t)+(4===M(t).getDay()),e,2)}function Dt(t){return t.getDay()}function Mt(t,e){return Z(F.count(M(t),t),e,2)}function kt(t,e){return Z(t.getFullYear()%100,e,2)}function Ut(t,e){return Z(t.getFullYear()%1e4,e,4)}function Lt(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Z(e/60|0,"0",2)+Z(e%60,"0",2)}function Bt(t,e){return Z(t.getUTCDate(),e,2)}function zt(t,e){return Z(t.getUTCHours(),e,2)}function Yt(t,e){return Z(t.getUTCHours()%12||12,e,2)}function It(t,e){return Z(1+k.count(Y(t),t),e,3)}function Ht(t,e){return Z(t.getUTCMilliseconds(),e,3)}function Ot(t,e){return Ht(t,e)+"000"}function Pt(t,e){return Z(t.getUTCMonth()+1,e,2)}function jt(t,e){return Z(t.getUTCMinutes(),e,2)}function Wt(t,e){return Z(t.getUTCSeconds(),e,2)}function Nt(t){var e=t.getUTCDay();return 0===e?7:e}function Xt(t,e){return Z(L.count(Y(t),t),e,2)}function Vt(t,e){var n=t.getUTCDay();return t=n>=4||0===n?z(t):z.ceil(t),Z(z.count(Y(t),t)+(4===Y(t).getUTCDay()),e,2)}function Et(t){return t.getUTCDay()}function Gt(t,e){return Z(B.count(Y(t),t),e,2)}function Zt(t,e){return Z(t.getUTCFullYear()%100,e,2)}function Qt(t,e){return Z(t.getUTCFullYear()%1e4,e,4)}function $t(){return"+0000"}function Jt(){return"%"}function Rt(t){return+t}function qt(t){return Math.floor(+t/1e3)}!function(t){P=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,l=t.shortMonths,u=$(i),c=J(i),h=$(o),p=J(o),f=$(a),g=J(a),d=$(s),y=J(s),m=$(l),x=J(l),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:yt,e:yt,f:Tt,H:mt,I:xt,j:bt,L:Ct,m:vt,M:_t,p:function(t){return i[+(t.getHours()>=12)]},Q:Rt,s:qt,S:St,u:wt,U:At,V:Ft,w:Dt,W:Mt,x:null,X:null,y:kt,Y:Ut,Z:Lt,"%":Jt},C={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Bt,e:Bt,f:Ot,H:zt,I:Yt,j:It,L:Ht,m:Pt,M:jt,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:Rt,s:qt,S:Wt,u:Nt,U:Xt,V:Vt,w:Et,W:Gt,x:null,X:null,y:Zt,Y:Qt,Z:$t,"%":Jt},T={a:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=g[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=x[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.m=y[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return w(t,e,n,r)},d:at,e:at,f:pt,H:lt,I:lt,j:st,L:ht,m:ot,M:ut,p:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.p=c[r[0].toLowerCase()],n+r[0].length):-1},Q:gt,s:dt,S:ct,u:q,U:K,V:tt,w:R,W:et,x:function(t,e,r){return w(t,n,e,r)},X:function(t,e,n){return w(t,r,e,n)},y:rt,Y:nt,Z:it,"%":ft};function v(t,e){return function(n){var r,i,o,a=[],s=-1,l=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===t.charCodeAt(s)&&(a.push(t.slice(l,s)),null!=(i=X[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(t.slice(l,s)),a.join("")}}function _(t,e){return function(n){var r,i,o=O(1900);if(w(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=H(O(o.y))).getUTCDay())>4||0===i?B.ceil(r):B(r),r=k.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=e(O(o.y))).getDay())>4||0===i?F.ceil(r):F(r),r=S.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?H(O(o.y)).getUTCDay():e(O(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,H(o)):e(o)}}function w(t,e,n,r){for(var i,o,a=0,s=e.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=T[i in X?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=v(n,b),b.X=v(r,b),b.c=v(e,b),C.x=v(n,C),C.X=v(r,C),C.c=v(e,C),{format:function(t){var e=v(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=_(t+="",I);return e.toString=function(){return t},e},utcFormat:function(t){var e=v(t+="",C);return e.toString=function(){return t},e},utcParse:function(t){var e=_(t,H);return e.toString=function(){return t},e}}}(t),j=P.format,P.parse,W=P.utcFormat,N=P.utcParse}({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"]});Date.prototype.toISOString||W("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||N("%Y-%m-%dT%H:%M:%S.%LZ");!function(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}("/*-- Chart --*/\r\n.c3 svg {\r\n font: 10px sans-serif;\r\n -webkit-tap-highlight-color: transparent; }\r\n\r\n.c3 path, .c3 line {\r\n fill: none;\r\n stroke: #000; }\r\n\r\n.c3 text {\r\n -webkit-user-select: none;\r\n -moz-user-select: none;\r\n user-select: none; }\r\n\r\n.c3-legend-item-tile,\r\n.c3-xgrid-focus,\r\n.c3-ygrid,\r\n.c3-event-rect,\r\n.c3-bars path {\r\n shape-rendering: crispEdges; \r\n }\r\n\r\n.c3-chart-arc path {\r\n stroke: #fff; }\r\n\r\n.c3-chart-arc text {\r\n fill: #fff;\r\n font-size: 13px; }\r\n\r\n/*-- Axis --*/\r\n/*-- Grid --*/\r\n.c3-grid line {\r\n stroke: #aaa; }\r\n\r\n.c3-grid text {\r\n fill: #aaa; }\r\n\r\n.c3-xgrid, .c3-ygrid {\r\n stroke-dasharray: 3 3; }\r\n\r\n/*-- Text on Chart --*/\r\n.c3-text.c3-empty {\r\n fill: #808080;\r\n font-size: 2em; }\r\n\r\n/*-- Line --*/\r\n.c3-line {\r\n stroke-width: 1px; }\r\n\r\n/*-- Point --*/\r\n.c3-circle._expanded_ {\r\n stroke-width: 1px;\r\n stroke: white; }\r\n\r\n.c3-selected-circle {\r\n fill: white;\r\n stroke-width: 2px; }\r\n\r\n/*-- Bar --*/\r\n.c3-bar {\r\n stroke-width: 0; }\r\n\r\n.c3-bar._expanded_ {\r\n fill-opacity: 0.75; }\r\n\r\n/*-- Focus --*/\r\n.c3-target.c3-focused {\r\n opacity: 1; }\r\n\r\n.c3-target.c3-focused path.c3-line, .c3-target.c3-focused path.c3-step {\r\n stroke-width: 2px; }\r\n\r\n.c3-target.c3-defocused {\r\n opacity: 0.3 !important; }\r\n\r\n/*-- Region --*/\r\n.c3-region {\r\n fill: steelblue;\r\n fill-opacity: .1; }\r\n\r\n/*-- Brush --*/\r\n.c3-brush .extent {\r\n fill-opacity: .1; }\r\n\r\n/*-- Select - Drag --*/\r\n/*-- Legend --*/\r\n.c3-legend-item {\r\n font-size: 12px; }\r\n\r\n.c3-legend-item-hidden {\r\n opacity: 0.15; }\r\n\r\n.c3-legend-background {\r\n opacity: 0.75;\r\n fill: white;\r\n stroke: lightgray;\r\n stroke-width: 1; }\r\n\r\n/*-- Title --*/\r\n.c3-title {\r\n font: 14px sans-serif; }\r\n\r\n/*-- Tooltip --*/\r\n.c3-tooltip-container {\r\n z-index: 10; }\r\n\r\n.c3-tooltip {\r\n border-collapse: collapse;\r\n border-spacing: 0;\r\n background-color: #fff;\r\n empty-cells: show;\r\n -webkit-box-shadow: 7px 7px 12px -9px #777777;\r\n -moz-box-shadow: 7px 7px 12px -9px #777777;\r\n box-shadow: 7px 7px 12px -9px #777777;\r\n opacity: 0.9; }\r\n\r\n.c3-tooltip tr {\r\n border: 1px solid #CCC; }\r\n\r\n.c3-tooltip th {\r\n background-color: #aaa;\r\n font-size: 14px;\r\n padding: 2px 5px;\r\n text-align: left;\r\n color: #FFF; }\r\n\r\n.c3-tooltip td {\r\n font-size: 13px;\r\n padding: 3px 6px;\r\n background-color: #fff;\r\n border-left: 1px dotted #999; }\r\n\r\n.c3-tooltip td > span {\r\n display: inline-block;\r\n width: 10px;\r\n height: 10px;\r\n margin-right: 6px; }\r\n\r\n.c3-tooltip td.value {\r\n text-align: right; }\r\n\r\n/*-- Area --*/\r\n.c3-area {\r\n stroke-width: 0;\r\n opacity: 0.2; }\r\n\r\n/*-- Arc --*/\r\n.c3-chart-arcs-title {\r\n dominant-baseline: middle;\r\n font-size: 1.3em; }\r\n\r\n.c3-chart-arcs .c3-chart-arcs-background {\r\n fill: #e0e0e0;\r\n stroke: none; }\r\n\r\n.c3-chart-arcs .c3-chart-arcs-gauge-unit {\r\n fill: #000;\r\n font-size: 16px; }\r\n\r\n.c3-chart-arcs .c3-chart-arcs-gauge-max {\r\n fill: #777; }\r\n\r\n.c3-chart-arcs .c3-chart-arcs-gauge-min {\r\n fill: #777; }\r\n\r\n.c3-chart-arc .c3-gauge-value {\r\n fill: #000;\r\n }\r\n");var Kt=function(t){function r(){var e=t.call(this)||this,n=e;return e._tag="div",e._type="unknown",e._config={axis:{},legend:{position:"bottom",show:!0},data:{}},e._prevColumnIDs=[],e._config.data.onclick=function(t,e){n.click(n.rowToObj(n.data()[t.index]),t.id,n.c3Chart.selected().length>0)},e}return o(r,t),r.prototype.type=function(t){return arguments.length?(this._type=t,this):this._type},r.prototype.getC3Series=function(){return this.columns().filter(function(t,e){return e>0})},r.prototype.getC3Rows=function(){return[this.columns().filter(function(t,e){return e>0})].concat(this.data().map(function(t){return t.filter(function(t,e){return e>0})}))},r.prototype.getC3Categories=function(){return this.data().map(function(t,e){return t[0]})},r.prototype.getC3Column=function(t){return[this.columns()[t]].concat(this.data().map(function(e,n){return e[t]}))},r.prototype.getC3Columns=function(t){if(!this.data().length)return[];t=t||this.columns().length;for(var e=[],n="function"==typeof this.xAxisType&&"time"===this.xAxisType()?0:1;n<t;++n)e.push(this.getC3Column(n));return e},r.prototype.enter=function(t,r){n.HTMLWidget.prototype.enter.apply(this,arguments),r.style("overflow","hidden"),this._config.size={width:this.width(),height:this.height()},this._config.transition={duration:this.animationDuration()},this._config.data.type=this._type,"gauge"!==this._type&&(this._config.legend={position:this.legendPosition()}),this._config.data.selection={enabled:!0,multiple:!1},this._config.bindto=r.append("div").datum(null),this._config.data.columns=[],this.c3Chart=e.generate(this._config)},r.prototype.update=function(e,n){t.prototype.update.call(this,e,n),this.showLegend()?this.c3Chart.legend.show():this.c3Chart.legend.hide(),this.c3Chart.resize({width:this.width(),height:this.height()});var r=this.getChartOptions(),i=r.columns.map(function(t){return t[0]});r.unload=this._prevColumnIDs.filter(function(t){return i.indexOf(t)<0}),this.c3Chart.load(r),this._prevColumnIDs=i,n.selectAll(".c3 text").style("stroke",this.fontColor()).style("fill",this.fontColor()).style("font-size",this.fontSize_exists()?this.fontSize()+"px":null).style("font-family",this.fontFamily()).attr("font-family",this.fontFamily()),n.selectAll(".c3 .c3-legend-item text").style("fill",this.legendFontColor()).style("font-size",this.legendFontSize_exists()?this.legendFontSize()+"px":null).style("font-family",this.legendFontFamily()).style("font-weight",this.legendFontBold()?"bold":"normal").style("font-style",this.legendFontItalic()?"italic":"normal").attr("font-family",this.legendFontFamily())},r.prototype.getChartOptions=function(){return{}},r}(n.HTMLWidget);Kt.prototype._class+=" c3chart_Common",Kt.prototype.publish("showLegend",!1,"boolean","Show/Hide Legend",null,{tags:["Basic","Shared"]}),Kt.prototype.publish("legendFontColor",null,"html-color","Legend Font Color",null,{tags:["Intermediate","Shared"]}),Kt.prototype.publish("legendFontSize",null,"number","Legend Font Size",null,{tags:["Intermediate","Shared"]}),Kt.prototype.publish("legendFontFamily",null,"string","Legend Font Name",null,{tags:["Private","Shared"]}),Kt.prototype.publish("legendFontBold",!1,"boolean","Legend Font Bold",null,{tags:["Private","Shared"]}),Kt.prototype.publish("legendFontItalic",!1,"boolean","Legend Font Italic",null,{tags:["Private","Shared"]}),Kt.prototype.publish("fontSize",null,"number","Font Size",null,{tags:["Basic","Shared"]}),Kt.prototype.publish("fontFamily",null,"string","Font Name",null,{tags:["Basic","Shared","Shared"]}),Kt.prototype.publish("fontColor",null,"html-color","Font Color",null,{tags:["Basic","Shared"]}),Kt.prototype.publish("legendPosition","right","set","Legend Position",["bottom","right"],{tags:["Intermediate"]}),Kt.prototype.publish("animationDuration",0,"number","Animation Duration",null,{tags:["Advanced"]});var te=function(t){function e(){var e=t.call(this)||this;r.INDChart.call(e);var n=e;return e._config.color={pattern:e._palette.colors()},e._config.data.color=function(t,e){return n._palette(e.id?e.id:e)},e}return o(e,t),e.prototype.enter=function(t,e){var n;switch(this.subchart()&&(this._config.subchart={show:!0,size:{height:20}}),this.xAxisType()){case"time":n="timeseries";break;default:n=this.xAxisType()}switch(this._config.axis.x={type:n,tick:{rotate:this.xAxisLabelRotation(),multiline:this.axisTickLabelMultiLine()},label:{text:this.xAxisTitle(),position:"outer-center"}},this._config.axis.y={label:{text:this.yAxisTitle(),position:"outer-center"}},this._config.grid={x:{show:this.showXGrid()},y:{show:this.showYGrid()}},this.xAxisType()){case"category":this._config.axis.tick={centered:!0,multiline:this.axisTickLabelMultiLine()};break;case"time":this.data(this.data().map(function(t,e){return t.map(function(t,e){return 0===e&&"number"==typeof t?t.toString():t})})),this._config.data.x=this.columns()[0],this._config.data.xFormat=this.xAxisTypeTimePattern()}Kt.prototype.enter.apply(this,arguments)},e.prototype.update=function(t,e){this._palette=this._palette.switch(this.paletteID()),this.useClonedPalette()&&(this._palette=this._palette.cloneNotExists(this.paletteID()+"_"+this.id())),this.c3Chart.internal.config.axis_y_tick_format=this.yAxisTickFormat()?d(this.yAxisTickFormat()):void 0,"time"===this.xAxisType()?this.c3Chart.internal.config.axis_x_tick_format=this.xAxisTickFormat()?j(this.xAxisTickFormat()):"%Y-%m-%d %I:%M:%S %p":this.c3Chart.internal.config.axis_x_tick_format=this.xAxisTickFormat()?d(this.xAxisTickFormat()):void 0,Kt.prototype.update.apply(this,arguments),e.selectAll(".c3 svg").style("font-size",this.axisFontSize_exists()?this.axisFontSize()+"px":null),e.selectAll(".c3 svg text").style("font-family",this.axisFontFamily()),e.selectAll(".c3 .c3-axis.c3-axis-x text").style("fill",this.xAxisFontColor()),e.selectAll(".c3 .c3-axis.c3-axis-y text").style("fill",this.yAxisFontColor()),e.selectAll(".c3 .c3-axis path").style("stroke-width",this.axisLineWidth_exists()?this.axisLineWidth()+"px":null),e.selectAll(".c3 .c3-axis-x path, .c3 .c3-axis-x line").style("stroke",this.xAxisBaselineColor()),e.selectAll(".c3 .c3-axis-y path, .c3 .c3-axis-y line").style("stroke",this.yAxisBaselineColor()),e.selectAll(".c3-axis-x-label").style("font-family",this.xAxisTitleFontFamily()).style("font-size",this.xAxisTitleFontSize()).style("stroke",this.xAxisTitleFontColor()),e.selectAll(".c3-axis-y-label").style("font-family",this.yAxisTitleFontFamily()).style("font-size",this.yAxisTitleFontSize()).style("stroke",this.yAxisTitleFontColor())},e.prototype.getChartOptions=function(){var t=Kt.prototype.getChartOptions.apply(this,arguments);switch(this.xAxisType()){case"category":t.categories=this.getC3Categories(),t.columns=this.getC3Columns();break;case"indexed":case"time":t.columns=this.getC3Columns()}return t},e}(Kt);te.prototype._class+=" c3chart_CommonND",te.prototype.implements(r.INDChart.prototype),te.prototype.publish("paletteID","default","set","Palette ID",te.prototype._palette.switch(),{tags:["Basic","Shared"]}),te.prototype.publish("axisLineWidth",1,"number","Axis Line Width",null,{tags:["Intermediate","Shared"]}),te.prototype.publish("xAxisBaselineColor",null,"html-color","X Axis Baseline Color",null,{tags:["Basic","Shared"]}),te.prototype.publish("yAxisBaselineColor",null,"html-color","Y Axis Baseline Color",null,{tags:["Basic","Shared"]}),te.prototype.publish("xAxisFontColor",null,"html-color","X Axis Text Font Color",null,{tags:["Basic","Shared"]}),te.prototype.publish("yAxisFontColor",null,"html-color","Y Axis Text Font Color",null,{tags:["Basic","Shared"]}),te.prototype.publish("axisFontSize",null,"number","X/Y Axis Text Font Size",null,{tags:["Basic","Shared"]}),te.prototype.publish("axisFontFamily",null,"string","X/Y Axis Text Font Name",null,{tags:["Basic","Shared"]}),te.prototype.publish("xAxisLabelRotation",0,"number","X Axis Label Angle",null,{tags:["Intermediate","Shared"]}),te.prototype.publish("yAxisTitle","","string","Y-Axis Title",null,{tags:["Intermediate","Shared"]}),te.prototype.publish("xAxisTitle","","string","X-Axis Title",null,{tags:["Intermediate","Shared"]}),te.prototype.publish("xAxisTitleFontColor",null,"html-color","Horizontal Axis Title Text Style (Color)",null,{tags:["Advanced","Shared"]}),te.prototype.publish("xAxisTitleFontFamily",null,"string","Horizontal Axis Title Text Style (Font Name)",null,{tags:["Advanced","Shared"]}),te.prototype.publish("xAxisTitleFontSize",null,"number","Horizontal Axis Title Text Style (Font Size)",null,{tags:["Advanced","Shared"]}),te.prototype.publish("yAxisTitleFontColor",null,"html-color","Vertical Axis Title Text Style (Color)",null,{tags:["Advanced","Shared"]}),te.prototype.publish("yAxisTitleFontFamily",null,"string","Vertical Axis Title Text Style (Font Name)",null,{tags:["Advanced","Shared"]}),te.prototype.publish("yAxisTitleFontSize",null,"number","Vertical Axis Title Text Style (Font Size)",null,{tags:["Advanced","Shared"]}),te.prototype.publish("xAxisType","category","set","X-Axis Type",["category","time","indexed"],{tags:["Intermediate"]}),te.prototype.publish("subchart",!1,"boolean","Show SubChart",null,{tags:["Private"]}),te.prototype.publish("showXGrid",!1,"boolean","Show X Grid",null,{tags:["Intermediate"]}),te.prototype.publish("showYGrid",!1,"boolean","Show Y Grid",null,{tags:["Intermediate"]}),te.prototype.publish("useClonedPalette",!1,"boolean","Enable or disable using a cloned palette",null,{tags:["Intermediate","Shared"]}),te.prototype.publish("xAxisTickFormat","","string","X-Axis Tick Format",null,{}),te.prototype.publish("yAxisTickFormat",null,"string","Y-Axis Tick Format",null,{optional:!0}),te.prototype.publish("xAxisTypeTimePattern","%Y-%m-%d","string","Time Series Pattern",null,{}),te.prototype.publish("yAxisTypeTimePattern","%Y-%m-%d","string","Time Series Pattern",null,{}),te.prototype.publish("axisTickLabelMultiLine",!1,"boolean","Show Y Grid",null,{tags:["Intermediate"]});var ee=function(t){function e(){var e=t.call(this)||this;return e._type="area",e}return o(e,t),e.prototype.enter=function(t,e){te.prototype.enter.apply(this,arguments)},e.prototype.update=function(t,e){te.prototype.update.apply(this,arguments),this.stacked()?this.c3Chart.groups([this.columns().slice(1,this.columns().length)]):this.c3Chart.groups([]),e.selectAll(".c3-line").style("stroke-width",this.lineWidth()+"px").style("stroke-opacity",this.lineOpacity()).style("stroke-dasharray",this.lineDashStyle().toString()),e.selectAll(".c3-area").style({opacity:this.fillOpacity()})},e}(te);ee.prototype._class+=" c3chart_Area",ee.prototype.publish("stacked",!1,"boolean","Stack Chart",null,{tags:["Basic","Shared"]}),ee.prototype.publish("lineWidth",1,"number","Line Width",null,{tags:["Basic","Shared"]}),ee.prototype.publish("lineDashStyle",[],"array","Dashed Lines",null,{tags:["Basic","Shared"]}),ee.prototype.publish("lineOpacity",1,"number","Line Alpha",null,{tags:["Basic","Shared"]}),ee.prototype.publish("fillOpacity",.2,"number","Opacity of The Fill Color",null,{tags:["Basic","Shared"]});var ne=function(t){function e(){var e=t.call(this)||this;return e._type="bar",e}return o(e,t),e.prototype.enter=function(t,e){te.prototype.enter.apply(this,arguments)},e.prototype.update=function(t,e){te.prototype.update.apply(this,arguments),this.stacked()?this.c3Chart.groups([this.columns().slice(1,this.columns().length)]):this.c3Chart.groups([])},e}(te);ne.prototype._class+=" c3chart_Column",ne.prototype.publish("stacked",!1,"boolean","Stack Chart",null,{tags:["Basic","Shared"]});var re=function(t){function e(){var e=t.call(this)||this;return e._config.axis.rotated=!0,e}return o(e,t),e}(ne);re.prototype._class+=" c3chart_Bar";var ie=function(t){function e(){var e=t.call(this)||this;return e._type="bar",e._previousTypes=void 0,e}return o(e,t),e.prototype.enter=function(t,e){var n={},r=this.types();for(var i in this._previousTypes=this.types().join("|"),r)n[this.columns()[parseInt(i)+1]]=r[i];r.length>0&&(this._config.data.types=n),te.prototype.enter.apply(this,arguments)},e.prototype.update=function(t,e){if(te.prototype.update.apply(this,arguments),this._previousTypes!==this.types().join("|")){var n=this._previousTypes.split("|"),r=this.getC3Columns();for(var i in r)void 0!==n[i]&&this.types()[i]===n[i]||(this.c3Chart.unload({ids:r[i][0]}),this.c3Chart.load({columns:[r[i]],type:void 0!==this.types()[i]?this.types()[i]:this.defaultType()}));this._previousTypes=this.types().join("|")}this.stacked()?this.c3Chart.groups([this.columns().slice(1,this.columns().length)]):this.c3Chart.groups([]),e.selectAll(".c3-area").style({opacity:this.areaFillOpacity()})},e}(te);ie.prototype._class+=" c3chart_Combo",ie.prototype.publish("stacked",!1,"boolean","Stack Chart",null,{tags:["Basic"]}),ie.prototype.publish("defaultType","bar","set","Default chart type",["bar","line","spline","area","area-spline","step","area-step","scatter"],{tags:["Basic"]}),ie.prototype.publish("types",[],"array","Array of chart types (ex:bar|line|spline|area|area-spline|step|area-step|scatter)",null,{tags:["Basic"]}),ie.prototype.publish("areaFillOpacity",.4,"number","Opacity of all 'Area' chart types in this Combo chart",null,{tags:["Basic"],number:{min:0,max:1,step:.1,slider:!1}});var oe=function(t){function e(){var e=t.call(this)||this;r.I1DChart.call(e);var n=e;return e._config.color={pattern:e._palette.colors()},e._config.data.color=function(t,e){return n._palette(e.id?e.id:e)},e}return o(e,t),e.prototype.update=function(t,e){this._palette=this._palette.switch(this.paletteID()),this.useClonedPalette()&&(this._palette=this._palette.cloneNotExists(this.paletteID()+"_"+this.id())),Kt.prototype.update.apply(this,arguments)},e}(Kt);oe.prototype._class+=" c3chart_Common1D",oe.prototype.implements(r.I1DChart.prototype),oe.prototype.publish("paletteID","default","set","Palette ID",oe.prototype._palette.switch(),{tags:["Basic","Shared"]}),oe.prototype.publish("useClonedPalette",!1,"boolean","Enable or disable using a cloned palette",null,{tags:["Intermediate","Shared"]});var ae=function(t){function e(){var e=t.call(this)||this;r.I2DChart.call(e);var n=e;return e._config.color={pattern:e._palette.colors()},e._config.data.color=function(t,e){return n._palette(e.id?e.id:e)},e}return o(e,t),e.prototype.update=function(e,n){this._palette=this._palette.switch(this.paletteID()),this.useClonedPalette()&&(this._palette=this._palette.cloneNotExists(this.paletteID()+"_"+this.id())),t.prototype.update.call(this,e,n)},e}(Kt);ae.prototype._class+=" c3chart_Common2D",ae.prototype.implements(r.I2DChart.prototype),ae.prototype.publish("paletteID","default","set","Palette ID",ae.prototype._palette.switch(),{tags:["Basic","Shared"]}),ae.prototype.publish("useClonedPalette",!1,"boolean","Enable or disable using a cloned palette",null,{tags:["Intermediate","Shared"]});var se=function(t){function e(){var e=t.call(this)||this;e._type="donut";var n=e;return e._config.data.onclick=function(t,e){var r=n.data().filter(function(e){return e[0]===t.name});1===r.length?n.click(n.rowToObj(r[0]),t.id,n.c3Chart.selected().length>0):r.length>1?console.log("C3 sel.name matches too much data."):console.log("C3 sel.name does not match any data.")},e}return o(e,t),e.prototype.enter=function(t,e){this._config.donut={label_show:this.showLabel(),width:this.arcWidth(),expand:this.expand(),title:this.title()},ae.prototype.enter.apply(this,arguments)},e.prototype.update=function(t,e){this.c3Chart.internal.config.donut_label_show=this.showLabel(),this.c3Chart.internal.config.donut_width=this.arcWidth(),this.c3Chart.internal.config.donut_expand=this.expand(),this.c3Chart.internal.config.donut_title=this.title(),ae.prototype.update.apply(this,arguments),e.select(".c3-chart-arcs-title").text(this.showLabel()?this.title():"")},e.prototype.getChartOptions=function(){var t=ae.prototype.getChartOptions.apply(this,arguments),e=this.data().map(function(t,e){return[t[0],t[1]]},this);return t.columns=e,t},e}(ae);se.prototype._class+=" c3chart_Donut",se.prototype.publish("showLabel",!0,"boolean","Show Label",null,{tags:["Basic"]}),se.prototype.publish("arcWidth",45,"number","Arc Width",null,{tags:["Basic"]}),se.prototype.publish("expand",!0,"boolean","Arc Explode",null,{tags:["Intermediate"]}),se.prototype.publish("title","","string","Center Label",null,{tags:["Intermediate"]});var le=function(t){function e(){var e=t.call(this)||this;e._type="gauge";var n=e;return e._config.data.onclick=function(t,e){var r={};r[t.id]=t.value,n.click(r,t.id,!0)},e._config.data.color=function(t,e){return n._palette(n.data(),n.low(),n.high())},e}return o(e,t),e.prototype.update=function(t,e){this.c3Chart.internal.config.gauge_min=this.low(),this.c3Chart.internal.config.gauge_max=this.high(),this.c3Chart.internal.config.gauge_units=this.showValueLabel()?this.columns():"",this.c3Chart.internal.config.gauge_width=this.arcWidth(),this.c3Chart.internal.config.gauge_label_format="Percent"===this.valueFormat()?null:function(t,e){return t},this.c3Chart.internal.config.gauge_label_show=this.showLabels(),oe.prototype.update.apply(this,arguments)},e.prototype.getChartOptions=function(){var t=oe.prototype.getChartOptions.apply(this,arguments);return t.columns=[[this.columns(),this.data()]],t},e}(oe);le.prototype._class+=" c3chart_Gauge",le.prototype.publish("low",0,"number","Gauge Lower Bound",null,{tags:["Intermediate","Shared"]}),le.prototype.publish("high",100,"number","Gauge Higher Bound",null,{tags:["Intermediate","Shared"]}),le.prototype.publish("valueFormat","Percent","set","Value Display Format",["Percent","Value"],{tags:["Basic"]}),le.prototype.publish("arcWidth",10,"number","Gauge Width of Arc",null,{tags:["Basic"]}),le.prototype.publish("showLabels",!0,"boolean","Show Labels",null,{tags:["Basic"]}),le.prototype.publish("showValueLabel",!0,"boolean","Show Value Label",null,{tags:["Basic"]});var ue=function(t){function e(){var e=t.call(this)||this;return e._type="line",e}return o(e,t),e.prototype.enter=function(t,e){this._config.line={connectNull:this.connectNull()},te.prototype.enter.apply(this,arguments)},e.prototype.update=function(t,e){te.prototype.update.apply(this,arguments),e.selectAll(".c3-line").style({"stroke-width":this.lineWidth_exists()?this.lineWidth()+"px":null,"stroke-opacity":this.lineOpacity(),"stroke-dasharray":this.lineDashStyle().toString()})},e}(te);ue.prototype._class+=" c3chart_Line",ue.prototype.publish("lineWidth",1,"number","Line Width",null,{tags:["Basic","Shared"]}),ue.prototype.publish("lineDashStyle",[],"array","Dashed Lines",null,{tags:["Basic","Shared"]}),ue.prototype.publish("lineOpacity",1,"number","Line Alpha",null,{tags:["Basic","Shared"]}),ue.prototype.publish("connectNull",!0,"boolean","Connect null data points in line",null,{tags:["Basic","Shared"]});var ce=function(t){function e(){var e=t.call(this)||this;e._type="pie";var n=e;return e._config.data.onclick=function(t,e){var r=n.data().filter(function(e){return e[0]===t.name});1===r.length?n.click(n.rowToObj(r[0]),t.id,n.c3Chart.selected().length>0):r.length>1?console.log("C3 sel.name matches too much data."):console.log("C3 sel.name does not match any data.")},e}return o(e,t),e.prototype.update=function(t,e){ae.prototype.update.apply(this,arguments)},e.prototype.getChartOptions=function(){var t=ae.prototype.getChartOptions.apply(this,arguments),e=this.data().map(function(t,e){return[t[0],t[1]]},this);return t.columns=e,t},e}(ae);ce.prototype._class+=" c3chart_Pie";var he=function(t){function e(){var e=t.call(this)||this;return e._type="scatter",e}return o(e,t),e}(te);he.prototype._class+=" c3chart_Scatter";var pe=function(t){function e(){var e=t.call(this)||this;return e._type="step",e}return o(e,t),e}(te);pe.prototype._class+=" c3chart_Step",t.Area=ee,t.Bar=re,t.Column=ne,t.Combo=ie,t.Common=Kt,t.Common1D=oe,t.Common2D=ae,t.CommonND=te,t.Donut=se,t.Gauge=le,t.Line=ue,t.Pie=ce,t.Scatter=he,t.Step=pe,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@hpcc-js/c3-shim"),require("@hpcc-js/common"),require("@hpcc-js/api")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/c3-shim","@hpcc-js/common","@hpcc-js/api"],e):e(t["@hpcc-js/c3chart"]={},t["@hpcc-js/c3-shim"],t["@hpcc-js/common"],t["@hpcc-js/api"])}(this,function(t,e,n,r){"use strict";var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function o(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function a(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}var s,l=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function u(t){return new c(t)}function c(t){if(!(e=l.exec(t)))throw new Error("invalid format: "+t);var e;this.fill=e[1]||" ",this.align=e[2]||">",this.sign=e[3]||"-",this.symbol=e[4]||"",this.zero=!!e[5],this.width=e[6]&&+e[6],this.comma=!!e[7],this.precision=e[8]&&+e[8].slice(1),this.trim=!!e[9],this.type=e[10]||""}function h(t,e){var n=a(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}u.prototype=c.prototype,c.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var p={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return h(100*t,e)},r:h,s:function(t,e){var n=a(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(s=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,l=r.length;return o===l?r:o>l?r+new Array(o-l+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+a(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function f(t){return t}var g,d,y=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function m(t){var e,n,r=t.grouping&&t.thousands?(e=t.grouping,n=t.thousands,function(t,r){for(var i=t.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(t.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}):f,i=t.currency,o=t.decimal,l=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(t.numerals):f,c=t.percent||"%";function h(t){var e=(t=u(t)).fill,n=t.align,a=t.sign,h=t.symbol,f=t.zero,g=t.width,d=t.comma,m=t.precision,x=t.trim,b=t.type;"n"===b?(d=!0,b="g"):p[b]||(null==m&&(m=12),x=!0,b="g"),(f||"0"===e&&"="===n)&&(f=!0,e="0",n="=");var C="$"===h?i[0]:"#"===h&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",T="$"===h?i[1]:/[%p]/.test(b)?c:"",v=p[b],_=/[defgprs%]/.test(b);function S(t){var i,u,c,h=C,p=T;if("c"===b)p=v(t)+p,t="";else{var S=(t=+t)<0;if(t=v(Math.abs(t),m),x&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(i>0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),S&&0==+t&&(S=!1),h=(S?"("===a?a:"-":"-"===a||"("===a?"":a)+h,p=("s"===b?y[8+s/3]:"")+p+(S&&"("===a?")":""),_)for(i=-1,u=t.length;++i<u;)if(48>(c=t.charCodeAt(i))||c>57){p=(46===c?o+t.slice(i+1):t.slice(i))+p,t=t.slice(0,i);break}}d&&!f&&(t=r(t,1/0));var w=h.length+t.length+p.length,A=w<g?new Array(g-w+1).join(e):"";switch(d&&f&&(t=r(A+t,A.length?g-p.length:1/0),A=""),n){case"<":t=h+t+p+A;break;case"=":t=h+A+t+p;break;case"^":t=A.slice(0,w=A.length>>1)+h+t+p+A.slice(w);break;default:t=A+h+t+p}return l(t)}return m=null==m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return t+""},S}return{format:h,formatPrefix:function(t,e){var n,r=h(((t=u(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor((n=e,((n=a(Math.abs(n)))?n[1]:NaN)/3)))),o=Math.pow(10,-i),s=y[8+i/3];return function(t){return r(o*t)+s}}}}g=m({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),d=g.format,g.formatPrefix;var x=new Date,b=new Date;function C(t,e,n,r){function i(e){return t(e=new Date(+e)),e}return i.floor=i,i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a<n&&n<r);return s},i.filter=function(n){return C(function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return x.setTime(+e),b.setTime(+r),t(x),t(b),Math.floor(n(x,b))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var T=C(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});T.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?C(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):T:null};var v=6e4,_=6048e5,S=(C(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),C(function(t){t.setTime(Math.floor(t/v)*v)},function(t,e){t.setTime(+t+e*v)},function(t,e){return(e-t)/v},function(t){return t.getMinutes()}),C(function(t){var e=t.getTimezoneOffset()*v%36e5;e<0&&(e+=36e5),t.setTime(36e5*Math.floor((+t-e)/36e5)+e)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()}),C(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*v)/864e5},function(t){return t.getDate()-1}));function w(t){return C(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*v)/_})}var A=w(0),F=w(1),D=(w(2),w(3),w(4)),M=(w(5),w(6),C(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),C(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()}));M.every=function(t){return isFinite(t=Math.floor(t))&&t>0?C(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};C(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*v)},function(t,e){return(e-t)/v},function(t){return t.getUTCMinutes()}),C(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()});var k=C(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1});function U(t){return C(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/_})}var L=U(0),B=U(1),z=(U(2),U(3),U(4)),Y=(U(5),U(6),C(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),C(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()}));function I(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function H(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function O(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}Y.every=function(t){return isFinite(t=Math.floor(t))&&t>0?C(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var P,j,W,N,X={"-":"",_:" ",0:"0"},V=/^\s*\d+/,E=/^%/,G=/[\\^$*+?|[\]().{}]/g;function Z(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function Q(t){return t.replace(G,"\\$&")}function $(t){return new RegExp("^(?:"+t.map(Q).join("|")+")","i")}function J(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function R(t,e,n){var r=V.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function q(t,e,n){var r=V.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function K(t,e,n){var r=V.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function tt(t,e,n){var r=V.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function et(t,e,n){var r=V.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function nt(t,e,n){var r=V.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function rt(t,e,n){var r=V.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function it(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ot(t,e,n){var r=V.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function at(t,e,n){var r=V.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function st(t,e,n){var r=V.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function lt(t,e,n){var r=V.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function ut(t,e,n){var r=V.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function ct(t,e,n){var r=V.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function ht(t,e,n){var r=V.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function pt(t,e,n){var r=V.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ft(t,e,n){var r=E.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function gt(t,e,n){var r=V.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function dt(t,e,n){var r=V.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function yt(t,e){return Z(t.getDate(),e,2)}function mt(t,e){return Z(t.getHours(),e,2)}function xt(t,e){return Z(t.getHours()%12||12,e,2)}function bt(t,e){return Z(1+S.count(M(t),t),e,3)}function Ct(t,e){return Z(t.getMilliseconds(),e,3)}function Tt(t,e){return Ct(t,e)+"000"}function vt(t,e){return Z(t.getMonth()+1,e,2)}function _t(t,e){return Z(t.getMinutes(),e,2)}function St(t,e){return Z(t.getSeconds(),e,2)}function wt(t){var e=t.getDay();return 0===e?7:e}function At(t,e){return Z(A.count(M(t),t),e,2)}function Ft(t,e){var n=t.getDay();return t=n>=4||0===n?D(t):D.ceil(t),Z(D.count(M(t),t)+(4===M(t).getDay()),e,2)}function Dt(t){return t.getDay()}function Mt(t,e){return Z(F.count(M(t),t),e,2)}function kt(t,e){return Z(t.getFullYear()%100,e,2)}function Ut(t,e){return Z(t.getFullYear()%1e4,e,4)}function Lt(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Z(e/60|0,"0",2)+Z(e%60,"0",2)}function Bt(t,e){return Z(t.getUTCDate(),e,2)}function zt(t,e){return Z(t.getUTCHours(),e,2)}function Yt(t,e){return Z(t.getUTCHours()%12||12,e,2)}function It(t,e){return Z(1+k.count(Y(t),t),e,3)}function Ht(t,e){return Z(t.getUTCMilliseconds(),e,3)}function Ot(t,e){return Ht(t,e)+"000"}function Pt(t,e){return Z(t.getUTCMonth()+1,e,2)}function jt(t,e){return Z(t.getUTCMinutes(),e,2)}function Wt(t,e){return Z(t.getUTCSeconds(),e,2)}function Nt(t){var e=t.getUTCDay();return 0===e?7:e}function Xt(t,e){return Z(L.count(Y(t),t),e,2)}function Vt(t,e){var n=t.getUTCDay();return t=n>=4||0===n?z(t):z.ceil(t),Z(z.count(Y(t),t)+(4===Y(t).getUTCDay()),e,2)}function Et(t){return t.getUTCDay()}function Gt(t,e){return Z(B.count(Y(t),t),e,2)}function Zt(t,e){return Z(t.getUTCFullYear()%100,e,2)}function Qt(t,e){return Z(t.getUTCFullYear()%1e4,e,4)}function $t(){return"+0000"}function Jt(){return"%"}function Rt(t){return+t}function qt(t){return Math.floor(+t/1e3)}!function(t){P=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,l=t.shortMonths,u=$(i),c=J(i),h=$(o),p=J(o),f=$(a),g=J(a),d=$(s),y=J(s),m=$(l),x=J(l),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:yt,e:yt,f:Tt,H:mt,I:xt,j:bt,L:Ct,m:vt,M:_t,p:function(t){return i[+(t.getHours()>=12)]},Q:Rt,s:qt,S:St,u:wt,U:At,V:Ft,w:Dt,W:Mt,x:null,X:null,y:kt,Y:Ut,Z:Lt,"%":Jt},C={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Bt,e:Bt,f:Ot,H:zt,I:Yt,j:It,L:Ht,m:Pt,M:jt,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:Rt,s:qt,S:Wt,u:Nt,U:Xt,V:Vt,w:Et,W:Gt,x:null,X:null,y:Zt,Y:Qt,Z:$t,"%":Jt},T={a:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=g[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=x[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.m=y[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return w(t,e,n,r)},d:at,e:at,f:pt,H:lt,I:lt,j:st,L:ht,m:ot,M:ut,p:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.p=c[r[0].toLowerCase()],n+r[0].length):-1},Q:gt,s:dt,S:ct,u:q,U:K,V:tt,w:R,W:et,x:function(t,e,r){return w(t,n,e,r)},X:function(t,e,n){return w(t,r,e,n)},y:rt,Y:nt,Z:it,"%":ft};function v(t,e){return function(n){var r,i,o,a=[],s=-1,l=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===t.charCodeAt(s)&&(a.push(t.slice(l,s)),null!=(i=X[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(t.slice(l,s)),a.join("")}}function _(t,e){return function(n){var r,i,o=O(1900);if(w(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=H(O(o.y))).getUTCDay())>4||0===i?B.ceil(r):B(r),r=k.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=e(O(o.y))).getDay())>4||0===i?F.ceil(r):F(r),r=S.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?H(O(o.y)).getUTCDay():e(O(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,H(o)):e(o)}}function w(t,e,n,r){for(var i,o,a=0,s=e.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=T[i in X?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=v(n,b),b.X=v(r,b),b.c=v(e,b),C.x=v(n,C),C.X=v(r,C),C.c=v(e,C),{format:function(t){var e=v(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=_(t+="",I);return e.toString=function(){return t},e},utcFormat:function(t){var e=v(t+="",C);return e.toString=function(){return t},e},utcParse:function(t){var e=_(t,H);return e.toString=function(){return t},e}}}(t),j=P.format,P.parse,W=P.utcFormat,N=P.utcParse}({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"]});Date.prototype.toISOString||W("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||N("%Y-%m-%dT%H:%M:%S.%LZ");!function(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}("/*-- Chart --*/\r\n.c3 svg {\r\n font: 10px sans-serif;\r\n -webkit-tap-highlight-color: transparent; }\r\n\r\n.c3 path, .c3 line {\r\n fill: none;\r\n stroke: #000; }\r\n\r\n.c3 text {\r\n -webkit-user-select: none;\r\n -moz-user-select: none;\r\n user-select: none; }\r\n\r\n.c3-legend-item-tile,\r\n.c3-xgrid-focus,\r\n.c3-ygrid,\r\n.c3-event-rect,\r\n.c3-bars path {\r\n shape-rendering: crispEdges; \r\n }\r\n\r\n.c3-chart-arc path {\r\n stroke: #fff; }\r\n\r\n.c3-chart-arc text {\r\n fill: #fff;\r\n font-size: 13px; }\r\n\r\n/*-- Axis --*/\r\n/*-- Grid --*/\r\n.c3-grid line {\r\n stroke: #aaa; }\r\n\r\n.c3-grid text {\r\n fill: #aaa; }\r\n\r\n.c3-xgrid, .c3-ygrid {\r\n stroke-dasharray: 3 3; }\r\n\r\n/*-- Text on Chart --*/\r\n.c3-text.c3-empty {\r\n fill: #808080;\r\n font-size: 2em; }\r\n\r\n/*-- Line --*/\r\n.c3-line {\r\n stroke-width: 1px; }\r\n\r\n/*-- Point --*/\r\n.c3-circle._expanded_ {\r\n stroke-width: 1px;\r\n stroke: white; }\r\n\r\n.c3-selected-circle {\r\n fill: white;\r\n stroke-width: 2px; }\r\n\r\n/*-- Bar --*/\r\n.c3-bar {\r\n stroke-width: 0; }\r\n\r\n.c3-bar._expanded_ {\r\n fill-opacity: 0.75; }\r\n\r\n/*-- Focus --*/\r\n.c3-target.c3-focused {\r\n opacity: 1; }\r\n\r\n.c3-target.c3-focused path.c3-line, .c3-target.c3-focused path.c3-step {\r\n stroke-width: 2px; }\r\n\r\n.c3-target.c3-defocused {\r\n opacity: 0.3 !important; }\r\n\r\n/*-- Region --*/\r\n.c3-region {\r\n fill: steelblue;\r\n fill-opacity: .1; }\r\n\r\n/*-- Brush --*/\r\n.c3-brush .extent {\r\n fill-opacity: .1; }\r\n\r\n/*-- Select - Drag --*/\r\n/*-- Legend --*/\r\n.c3-legend-item {\r\n font-size: 12px; }\r\n\r\n.c3-legend-item-hidden {\r\n opacity: 0.15; }\r\n\r\n.c3-legend-background {\r\n opacity: 0.75;\r\n fill: white;\r\n stroke: lightgray;\r\n stroke-width: 1; }\r\n\r\n/*-- Title --*/\r\n.c3-title {\r\n font: 14px sans-serif; }\r\n\r\n/*-- Tooltip --*/\r\n.c3-tooltip-container {\r\n z-index: 10; }\r\n\r\n.c3-tooltip {\r\n border-collapse: collapse;\r\n border-spacing: 0;\r\n background-color: #fff;\r\n empty-cells: show;\r\n -webkit-box-shadow: 7px 7px 12px -9px #777777;\r\n -moz-box-shadow: 7px 7px 12px -9px #777777;\r\n box-shadow: 7px 7px 12px -9px #777777;\r\n opacity: 0.9; }\r\n\r\n.c3-tooltip tr {\r\n border: 1px solid #CCC; }\r\n\r\n.c3-tooltip th {\r\n background-color: #aaa;\r\n font-size: 14px;\r\n padding: 2px 5px;\r\n text-align: left;\r\n color: #FFF; }\r\n\r\n.c3-tooltip td {\r\n font-size: 13px;\r\n padding: 3px 6px;\r\n background-color: #fff;\r\n border-left: 1px dotted #999; }\r\n\r\n.c3-tooltip td > span {\r\n display: inline-block;\r\n width: 10px;\r\n height: 10px;\r\n margin-right: 6px; }\r\n\r\n.c3-tooltip td.value {\r\n text-align: right; }\r\n\r\n/*-- Area --*/\r\n.c3-area {\r\n stroke-width: 0;\r\n opacity: 0.2; }\r\n\r\n/*-- Arc --*/\r\n.c3-chart-arcs-title {\r\n dominant-baseline: middle;\r\n font-size: 1.3em; }\r\n\r\n.c3-chart-arcs .c3-chart-arcs-background {\r\n fill: #e0e0e0;\r\n stroke: none; }\r\n\r\n.c3-chart-arcs .c3-chart-arcs-gauge-unit {\r\n fill: #000;\r\n font-size: 16px; }\r\n\r\n.c3-chart-arcs .c3-chart-arcs-gauge-max {\r\n fill: #777; }\r\n\r\n.c3-chart-arcs .c3-chart-arcs-gauge-min {\r\n fill: #777; }\r\n\r\n.c3-chart-arc .c3-gauge-value {\r\n fill: #000;\r\n }\r\n");var Kt=function(t){function r(){var e=t.call(this)||this,n=e;return e._tag="div",e._type="unknown",e._config={axis:{},legend:{position:"bottom",show:!0},data:{}},e._prevColumnIDs=[],e._config.data.onclick=function(t,e){n.click(n.rowToObj(n.data()[t.index]),t.id,n.c3Chart.selected().length>0)},e}return o(r,t),r.prototype.type=function(t){return arguments.length?(this._type=t,this):this._type},r.prototype.getC3Series=function(){return this.columns().filter(function(t,e){return e>0})},r.prototype.getC3Rows=function(){return[this.columns().filter(function(t,e){return e>0})].concat(this.data().map(function(t){return t.filter(function(t,e){return e>0})}))},r.prototype.getC3Categories=function(){return this.data().map(function(t,e){return t[0]})},r.prototype.getC3Column=function(t){return[this.columns()[t]].concat(this.data().map(function(e,n){return e[t]}))},r.prototype.getC3Columns=function(t){if(!this.data().length)return[];t=t||this.columns().length;for(var e=[],n="function"==typeof this.xAxisType&&"time"===this.xAxisType()?0:1;n<t;++n)e.push(this.getC3Column(n));return e},r.prototype.enter=function(t,r){n.HTMLWidget.prototype.enter.apply(this,arguments),r.style("overflow","hidden"),this._config.size={width:this.width(),height:this.height()},this._config.transition={duration:this.animationDuration()},this._config.data.type=this._type,"gauge"!==this._type&&(this._config.legend={position:this.legendPosition()}),this._config.data.selection={enabled:!0,multiple:!1},this._config.bindto=r.append("div").datum(null),this._config.data.columns=[],this.c3Chart=e.generate(this._config)},r.prototype.update=function(e,n){t.prototype.update.call(this,e,n),this.showLegend()?this.c3Chart.legend.show():this.c3Chart.legend.hide(),this.c3Chart.resize({width:this.width(),height:this.height()});var r=this.getChartOptions(),i=r.columns.map(function(t){return t[0]});r.unload=this._prevColumnIDs.filter(function(t){return i.indexOf(t)<0}),this.c3Chart.load(r),this._prevColumnIDs=i,n.selectAll(".c3 text").style("stroke",this.fontColor()).style("fill",this.fontColor()).style("font-size",this.fontSize_exists()?this.fontSize()+"px":null).style("font-family",this.fontFamily()).attr("font-family",this.fontFamily()),n.selectAll(".c3 .c3-legend-item text").style("fill",this.legendFontColor()).style("font-size",this.legendFontSize_exists()?this.legendFontSize()+"px":null).style("font-family",this.legendFontFamily()).style("font-weight",this.legendFontBold()?"bold":"normal").style("font-style",this.legendFontItalic()?"italic":"normal").attr("font-family",this.legendFontFamily())},r.prototype.getChartOptions=function(){return{}},r}(n.HTMLWidget);Kt.prototype._class+=" c3chart_Common",Kt.prototype.publish("showLegend",!1,"boolean","Show/Hide Legend",null,{tags:["Basic","Shared"]}),Kt.prototype.publish("legendFontColor",null,"html-color","Legend Font Color",null,{tags:["Intermediate","Shared"]}),Kt.prototype.publish("legendFontSize",null,"number","Legend Font Size",null,{tags:["Intermediate","Shared"]}),Kt.prototype.publish("legendFontFamily",null,"string","Legend Font Name",null,{tags:["Private","Shared"]}),Kt.prototype.publish("legendFontBold",!1,"boolean","Legend Font Bold",null,{tags:["Private","Shared"]}),Kt.prototype.publish("legendFontItalic",!1,"boolean","Legend Font Italic",null,{tags:["Private","Shared"]}),Kt.prototype.publish("fontSize",null,"number","Font Size",null,{tags:["Basic","Shared"]}),Kt.prototype.publish("fontFamily",null,"string","Font Name",null,{tags:["Basic","Shared","Shared"]}),Kt.prototype.publish("fontColor",null,"html-color","Font Color",null,{tags:["Basic","Shared"]}),Kt.prototype.publish("legendPosition","right","set","Legend Position",["bottom","right"],{tags:["Intermediate"]}),Kt.prototype.publish("animationDuration",0,"number","Animation Duration",null,{tags:["Advanced"]});var te=function(t){function e(){var e=t.call(this)||this;r.INDChart.call(e);var n=e;return e._config.color={pattern:e._palette.colors()},e._config.data.color=function(t,e){return n._palette(e.id?e.id:e)},e}return o(e,t),e.prototype.enter=function(t,e){var n;switch(this.subchart()&&(this._config.subchart={show:!0,size:{height:20}}),this.xAxisType()){case"time":n="timeseries";break;default:n=this.xAxisType()}switch(this._config.axis.x={type:n,tick:{rotate:this.xAxisLabelRotation(),multiline:this.axisTickLabelMultiLine()},label:{text:this.xAxisTitle(),position:"outer-center"}},this._config.axis.y={label:{text:this.yAxisTitle(),position:"outer-center"}},this._config.grid={x:{show:this.showXGrid()},y:{show:this.showYGrid()}},this.xAxisType()){case"category":this._config.axis.tick={centered:!0,multiline:this.axisTickLabelMultiLine()};break;case"time":this.data(this.data().map(function(t,e){return t.map(function(t,e){return 0===e&&"number"==typeof t?t.toString():t})})),this._config.data.x=this.columns()[0],this._config.data.xFormat=this.xAxisTypeTimePattern()}Kt.prototype.enter.apply(this,arguments)},e.prototype.update=function(t,e){this._palette=this._palette.switch(this.paletteID()),this.useClonedPalette()&&(this._palette=this._palette.cloneNotExists(this.paletteID()+"_"+this.id())),this.c3Chart.internal.config.axis_y_tick_format=this.yAxisTickFormat()?d(this.yAxisTickFormat()):void 0,"time"===this.xAxisType()?this.c3Chart.internal.config.axis_x_tick_format=this.xAxisTickFormat()?j(this.xAxisTickFormat()):"%Y-%m-%d %I:%M:%S %p":this.c3Chart.internal.config.axis_x_tick_format=this.xAxisTickFormat()?d(this.xAxisTickFormat()):void 0,Kt.prototype.update.apply(this,arguments),e.selectAll(".c3 svg").style("font-size",this.axisFontSize_exists()?this.axisFontSize()+"px":null),e.selectAll(".c3 svg text").style("font-family",this.axisFontFamily()),e.selectAll(".c3 .c3-axis.c3-axis-x text").style("fill",this.xAxisFontColor()),e.selectAll(".c3 .c3-axis.c3-axis-y text").style("fill",this.yAxisFontColor()),e.selectAll(".c3 .c3-axis path").style("stroke-width",this.axisLineWidth_exists()?this.axisLineWidth()+"px":null),e.selectAll(".c3 .c3-axis-x path, .c3 .c3-axis-x line").style("stroke",this.xAxisBaselineColor()),e.selectAll(".c3 .c3-axis-y path, .c3 .c3-axis-y line").style("stroke",this.yAxisBaselineColor()),e.selectAll(".c3-axis-x-label").style("font-family",this.xAxisTitleFontFamily()).style("font-size",this.xAxisTitleFontSize()).style("stroke",this.xAxisTitleFontColor()),e.selectAll(".c3-axis-y-label").style("font-family",this.yAxisTitleFontFamily()).style("font-size",this.yAxisTitleFontSize()).style("stroke",this.yAxisTitleFontColor())},e.prototype.getChartOptions=function(){var t=Kt.prototype.getChartOptions.apply(this,arguments);switch(this.xAxisType()){case"category":t.categories=this.getC3Categories(),t.columns=this.getC3Columns();break;case"indexed":case"time":t.columns=this.getC3Columns()}return t},e}(Kt);te.prototype._class+=" c3chart_CommonND",te.prototype.implements(r.INDChart.prototype),te.prototype.publish("paletteID","default","set","Palette ID",te.prototype._palette.switch(),{tags:["Basic","Shared"]}),te.prototype.publish("axisLineWidth",1,"number","Axis Line Width",null,{tags:["Intermediate","Shared"]}),te.prototype.publish("xAxisBaselineColor",null,"html-color","X Axis Baseline Color",null,{tags:["Basic","Shared"]}),te.prototype.publish("yAxisBaselineColor",null,"html-color","Y Axis Baseline Color",null,{tags:["Basic","Shared"]}),te.prototype.publish("xAxisFontColor",null,"html-color","X Axis Text Font Color",null,{tags:["Basic","Shared"]}),te.prototype.publish("yAxisFontColor",null,"html-color","Y Axis Text Font Color",null,{tags:["Basic","Shared"]}),te.prototype.publish("axisFontSize",null,"number","X/Y Axis Text Font Size",null,{tags:["Basic","Shared"]}),te.prototype.publish("axisFontFamily",null,"string","X/Y Axis Text Font Name",null,{tags:["Basic","Shared"]}),te.prototype.publish("xAxisLabelRotation",0,"number","X Axis Label Angle",null,{tags:["Intermediate","Shared"]}),te.prototype.publish("yAxisTitle","","string","Y-Axis Title",null,{tags:["Intermediate","Shared"]}),te.prototype.publish("xAxisTitle","","string","X-Axis Title",null,{tags:["Intermediate","Shared"]}),te.prototype.publish("xAxisTitleFontColor",null,"html-color","Horizontal Axis Title Text Style (Color)",null,{tags:["Advanced","Shared"]}),te.prototype.publish("xAxisTitleFontFamily",null,"string","Horizontal Axis Title Text Style (Font Name)",null,{tags:["Advanced","Shared"]}),te.prototype.publish("xAxisTitleFontSize",null,"number","Horizontal Axis Title Text Style (Font Size)",null,{tags:["Advanced","Shared"]}),te.prototype.publish("yAxisTitleFontColor",null,"html-color","Vertical Axis Title Text Style (Color)",null,{tags:["Advanced","Shared"]}),te.prototype.publish("yAxisTitleFontFamily",null,"string","Vertical Axis Title Text Style (Font Name)",null,{tags:["Advanced","Shared"]}),te.prototype.publish("yAxisTitleFontSize",null,"number","Vertical Axis Title Text Style (Font Size)",null,{tags:["Advanced","Shared"]}),te.prototype.publish("xAxisType","category","set","X-Axis Type",["category","time","indexed"],{tags:["Intermediate"]}),te.prototype.publish("subchart",!1,"boolean","Show SubChart",null,{tags:["Private"]}),te.prototype.publish("showXGrid",!1,"boolean","Show X Grid",null,{tags:["Intermediate"]}),te.prototype.publish("showYGrid",!1,"boolean","Show Y Grid",null,{tags:["Intermediate"]}),te.prototype.publish("useClonedPalette",!1,"boolean","Enable or disable using a cloned palette",null,{tags:["Intermediate","Shared"]}),te.prototype.publish("xAxisTickFormat","","string","X-Axis Tick Format",null,{}),te.prototype.publish("yAxisTickFormat",null,"string","Y-Axis Tick Format",null,{optional:!0}),te.prototype.publish("xAxisTypeTimePattern","%Y-%m-%d","string","Time Series Pattern",null,{}),te.prototype.publish("yAxisTypeTimePattern","%Y-%m-%d","string","Time Series Pattern",null,{}),te.prototype.publish("axisTickLabelMultiLine",!1,"boolean","Show Y Grid",null,{tags:["Intermediate"]});var ee=function(t){function e(){var e=t.call(this)||this;return e._type="area",e}return o(e,t),e.prototype.enter=function(t,e){te.prototype.enter.apply(this,arguments)},e.prototype.update=function(t,e){te.prototype.update.apply(this,arguments),this.stacked()?this.c3Chart.groups([this.columns().slice(1,this.columns().length)]):this.c3Chart.groups([]),e.selectAll(".c3-line").style("stroke-width",this.lineWidth()+"px").style("stroke-opacity",this.lineOpacity()).style("stroke-dasharray",this.lineDashStyle().toString()),e.selectAll(".c3-area").style({opacity:this.fillOpacity()})},e}(te);ee.prototype._class+=" c3chart_Area",ee.prototype.publish("stacked",!1,"boolean","Stack Chart",null,{tags:["Basic","Shared"]}),ee.prototype.publish("lineWidth",1,"number","Line Width",null,{tags:["Basic","Shared"]}),ee.prototype.publish("lineDashStyle",[],"array","Dashed Lines",null,{tags:["Basic","Shared"]}),ee.prototype.publish("lineOpacity",1,"number","Line Alpha",null,{tags:["Basic","Shared"]}),ee.prototype.publish("fillOpacity",.2,"number","Opacity of The Fill Color",null,{tags:["Basic","Shared"]});var ne=function(t){function e(){var e=t.call(this)||this;return e._type="bar",e}return o(e,t),e.prototype.enter=function(t,e){te.prototype.enter.apply(this,arguments)},e.prototype.update=function(t,e){te.prototype.update.apply(this,arguments),this.stacked()?this.c3Chart.groups([this.columns().slice(1,this.columns().length)]):this.c3Chart.groups([])},e}(te);ne.prototype._class+=" c3chart_Column",ne.prototype.publish("stacked",!1,"boolean","Stack Chart",null,{tags:["Basic","Shared"]});var re=function(t){function e(){var e=t.call(this)||this;return e._config.axis.rotated=!0,e}return o(e,t),e}(ne);re.prototype._class+=" c3chart_Bar";var ie=function(t){function e(){var e=t.call(this)||this;return e._type="bar",e._previousTypes=void 0,e}return o(e,t),e.prototype.enter=function(t,e){var n={},r=this.types();for(var i in this._previousTypes=this.types().join("|"),r)n[this.columns()[parseInt(i)+1]]=r[i];r.length>0&&(this._config.data.types=n),te.prototype.enter.apply(this,arguments)},e.prototype.update=function(t,e){if(te.prototype.update.apply(this,arguments),this._previousTypes!==this.types().join("|")){var n=this._previousTypes.split("|"),r=this.getC3Columns();for(var i in r)void 0!==n[i]&&this.types()[i]===n[i]||(this.c3Chart.unload({ids:r[i][0]}),this.c3Chart.load({columns:[r[i]],type:void 0!==this.types()[i]?this.types()[i]:this.defaultType()}));this._previousTypes=this.types().join("|")}this.stacked()?this.c3Chart.groups([this.columns().slice(1,this.columns().length)]):this.c3Chart.groups([]),e.selectAll(".c3-area").style({opacity:this.areaFillOpacity()})},e}(te);ie.prototype._class+=" c3chart_Combo",ie.prototype.publish("stacked",!1,"boolean","Stack Chart",null,{tags:["Basic"]}),ie.prototype.publish("defaultType","bar","set","Default chart type",["bar","line","spline","area","area-spline","step","area-step","scatter"],{tags:["Basic"]}),ie.prototype.publish("types",[],"array","Array of chart types (ex:bar|line|spline|area|area-spline|step|area-step|scatter)",null,{tags:["Basic"]}),ie.prototype.publish("areaFillOpacity",.4,"number","Opacity of all 'Area' chart types in this Combo chart",null,{tags:["Basic"],number:{min:0,max:1,step:.1,slider:!1}});var oe=function(t){function e(){var e=t.call(this)||this;r.I1DChart.call(e);var n=e;return e._config.color={pattern:e._palette.colors()},e._config.data.color=function(t,e){return n._palette(e.id?e.id:e)},e}return o(e,t),e.prototype.update=function(t,e){this._palette=this._palette.switch(this.paletteID()),this.useClonedPalette()&&(this._palette=this._palette.cloneNotExists(this.paletteID()+"_"+this.id())),Kt.prototype.update.apply(this,arguments)},e}(Kt);oe.prototype._class+=" c3chart_Common1D",oe.prototype.implements(r.I1DChart.prototype),oe.prototype.publish("paletteID","default","set","Palette ID",oe.prototype._palette.switch(),{tags:["Basic","Shared"]}),oe.prototype.publish("useClonedPalette",!1,"boolean","Enable or disable using a cloned palette",null,{tags:["Intermediate","Shared"]});var ae=function(t){function e(){var e=t.call(this)||this;r.I2DChart.call(e);var n=e;return e._config.color={pattern:e._palette.colors()},e._config.data.color=function(t,e){return n._palette(e.id?e.id:e)},e}return o(e,t),e.prototype.update=function(e,n){this._palette=this._palette.switch(this.paletteID()),this.useClonedPalette()&&(this._palette=this._palette.cloneNotExists(this.paletteID()+"_"+this.id())),t.prototype.update.call(this,e,n)},e}(Kt);ae.prototype._class+=" c3chart_Common2D",ae.prototype.implements(r.I2DChart.prototype),ae.prototype.publish("paletteID","default","set","Palette ID",ae.prototype._palette.switch(),{tags:["Basic","Shared"]}),ae.prototype.publish("useClonedPalette",!1,"boolean","Enable or disable using a cloned palette",null,{tags:["Intermediate","Shared"]});var se=function(t){function e(){var e=t.call(this)||this;e._type="donut";var n=e;return e._config.data.onclick=function(t,e){var r=n.data().filter(function(e){return e[0]===t.name});1===r.length?n.click(n.rowToObj(r[0]),t.id,n.c3Chart.selected().length>0):r.length>1?console.log("C3 sel.name matches too much data."):console.log("C3 sel.name does not match any data.")},e}return o(e,t),e.prototype.enter=function(t,e){this._config.donut={label_show:this.showLabel(),width:this.arcWidth(),expand:this.expand(),title:this.title()},ae.prototype.enter.apply(this,arguments)},e.prototype.update=function(t,e){this.c3Chart.internal.config.donut_label_show=this.showLabel(),this.c3Chart.internal.config.donut_width=this.arcWidth(),this.c3Chart.internal.config.donut_expand=this.expand(),this.c3Chart.internal.config.donut_title=this.title(),ae.prototype.update.apply(this,arguments),e.select(".c3-chart-arcs-title").text(this.showLabel()?this.title():"")},e.prototype.getChartOptions=function(){var t=ae.prototype.getChartOptions.apply(this,arguments),e=this.data().map(function(t,e){return[t[0],t[1]]},this);return t.columns=e,t},e}(ae);se.prototype._class+=" c3chart_Donut",se.prototype.publish("showLabel",!0,"boolean","Show Label",null,{tags:["Basic"]}),se.prototype.publish("arcWidth",45,"number","Arc Width",null,{tags:["Basic"]}),se.prototype.publish("expand",!0,"boolean","Arc Explode",null,{tags:["Intermediate"]}),se.prototype.publish("title","","string","Center Label",null,{tags:["Intermediate"]});var le=function(t){function e(){var e=t.call(this)||this;e._type="gauge";var n=e;return e._config.data.onclick=function(t,e){var r={};r[t.id]=t.value,n.click(r,t.id,!0)},e._config.data.color=function(t,e){return n._palette(n.data(),n.low(),n.high())},e}return o(e,t),e.prototype.update=function(t,e){this.c3Chart.internal.config.gauge_min=this.low(),this.c3Chart.internal.config.gauge_max=this.high(),this.c3Chart.internal.config.gauge_units=this.showValueLabel()?this.columns():"",this.c3Chart.internal.config.gauge_width=this.arcWidth(),this.c3Chart.internal.config.gauge_label_format="Percent"===this.valueFormat()?null:function(t,e){return t},this.c3Chart.internal.config.gauge_label_show=this.showLabels(),oe.prototype.update.apply(this,arguments)},e.prototype.getChartOptions=function(){var t=oe.prototype.getChartOptions.apply(this,arguments);return t.columns=[[this.columns(),this.data()]],t},e}(oe);le.prototype._class+=" c3chart_Gauge",le.prototype.publish("low",0,"number","Gauge Lower Bound",null,{tags:["Intermediate","Shared"]}),le.prototype.publish("high",100,"number","Gauge Higher Bound",null,{tags:["Intermediate","Shared"]}),le.prototype.publish("valueFormat","Percent","set","Value Display Format",["Percent","Value"],{tags:["Basic"]}),le.prototype.publish("arcWidth",10,"number","Gauge Width of Arc",null,{tags:["Basic"]}),le.prototype.publish("showLabels",!0,"boolean","Show Labels",null,{tags:["Basic"]}),le.prototype.publish("showValueLabel",!0,"boolean","Show Value Label",null,{tags:["Basic"]});var ue=function(t){function e(){var e=t.call(this)||this;return e._type="line",e}return o(e,t),e.prototype.enter=function(t,e){this._config.line={connectNull:this.connectNull()},te.prototype.enter.apply(this,arguments)},e.prototype.update=function(t,e){te.prototype.update.apply(this,arguments),e.selectAll(".c3-line").style({"stroke-width":this.lineWidth_exists()?this.lineWidth()+"px":null,"stroke-opacity":this.lineOpacity(),"stroke-dasharray":this.lineDashStyle().toString()})},e}(te);ue.prototype._class+=" c3chart_Line",ue.prototype.publish("lineWidth",1,"number","Line Width",null,{tags:["Basic","Shared"]}),ue.prototype.publish("lineDashStyle",[],"array","Dashed Lines",null,{tags:["Basic","Shared"]}),ue.prototype.publish("lineOpacity",1,"number","Line Alpha",null,{tags:["Basic","Shared"]}),ue.prototype.publish("connectNull",!0,"boolean","Connect null data points in line",null,{tags:["Basic","Shared"]});var ce=function(t){function e(){var e=t.call(this)||this;e._type="pie";var n=e;return e._config.data.onclick=function(t,e){var r=n.data().filter(function(e){return e[0]===t.name});1===r.length?n.click(n.rowToObj(r[0]),t.id,n.c3Chart.selected().length>0):r.length>1?console.log("C3 sel.name matches too much data."):console.log("C3 sel.name does not match any data.")},e}return o(e,t),e.prototype.update=function(t,e){ae.prototype.update.apply(this,arguments)},e.prototype.getChartOptions=function(){var t=ae.prototype.getChartOptions.apply(this,arguments),e=this.data().map(function(t,e){return[t[0],t[1]]},this);return t.columns=e,t},e}(ae);ce.prototype._class+=" c3chart_Pie";var he=function(t){function e(){var e=t.call(this)||this;return e._type="scatter",e}return o(e,t),e}(te);he.prototype._class+=" c3chart_Scatter";var pe=function(t){function e(){var e=t.call(this)||this;return e._type="step",e}return o(e,t),e}(te);pe.prototype._class+=" c3chart_Step",t.Area=ee,t.Bar=re,t.Column=ne,t.Combo=ie,t.Common=Kt,t.Common1D=oe,t.Common2D=ae,t.CommonND=te,t.Donut=se,t.Gauge=le,t.Line=ue,t.Pie=ce,t.Scatter=he,t.Step=pe,Object.defineProperty(t,"__esModule",{value:!0})});
{
"name": "@hpcc-js/c3chart",
"version": "0.1.12",
"version": "0.1.13",
"description": "hpcc-js - Viz C3 Charts",

@@ -28,4 +28,4 @@ "main": "dist/index.js",

"dependencies": {
"@hpcc-js/api": "^0.4.4",
"@hpcc-js/common": "^0.8.2"
"@hpcc-js/api": "^0.4.5",
"@hpcc-js/common": "^0.8.3"
},

@@ -32,0 +32,0 @@ "devDependencies": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc