var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.owns=function(a,c){return Object.prototype.hasOwnProperty.call(a,c)};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,c,b){if(a==Array.prototype||a==Object.prototype)return a;a[c]=b.value;return a};$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var c=0;c<a.length;++c){var b=a[c];if(b&&b.Math==Math)return b}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,c){var b=$jscomp.propertyToPolyfillSymbol[c];if(null==b)return a[c];b=a[b];return void 0!==b?b:a[c]};
$jscomp.polyfill=function(a,c,b,d){c&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,c,b,d):$jscomp.polyfillUnisolated(a,c,b,d))};$jscomp.polyfillUnisolated=function(a,c,b,d){b=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];if(!(e in b))return;b=b[e]}a=a[a.length-1];d=b[a];c=c(d);c!=d&&null!=c&&$jscomp.defineProperty(b,a,{configurable:!0,writable:!0,value:c})};
$jscomp.polyfillIsolated=function(a,c,b,d){var e=a.split(".");a=1===e.length;d=e[0];d=!a&&d in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var k=0;k<e.length-1;k++){var n=e[k];if(!(n in d))return;d=d[n]}e=e[e.length-1];b=$jscomp.IS_SYMBOL_NATIVE&&"es6"===b?d[e]:null;c=c(b);null!=c&&(a?$jscomp.defineProperty($jscomp.polyfills,e,{configurable:!0,writable:!0,value:c}):c!==b&&(void 0===$jscomp.propertyToPolyfillSymbol[e]&&(b=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(e):$jscomp.POLYFILL_PREFIX+b+"$"+e),$jscomp.defineProperty(d,$jscomp.propertyToPolyfillSymbol[e],{configurable:!0,writable:!0,value:c})))};$jscomp.assign=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.assign?Object.assign:function(a,c){for(var b=1;b<arguments.length;b++){var d=arguments[b];if(d)for(var e in d)$jscomp.owns(d,e)&&(a[e]=d[e])}return a};$jscomp.polyfill("Object.assign",function(a){return a||$jscomp.assign},"es6","es3");
var chartLabelPlugin={afterDatasetsDraw:function(a,c){var b=a.ctx;b.fillStyle="rgb(0, 0, 0)";b.font=Chart.helpers.fontString(12,"normal","Helvetica Neue");b.textAlign="center";b.textBaseline="bottom";var d=a.legend.legendItems;a.data.datasets.forEach(function(e,k){var n=a.getDatasetMeta(k),l=a.config.type.toString(),f=0>"polarArea/pie/doughnut".indexOf(l);f&&d[k].hidden||n.data.forEach(function(h,m){if(f||!d[m].hidden){var g=e.data[m];g&&(h=h.tooltipPosition(),0<="polarArea/pie/doughnut/bubble/scatter".indexOf(l)&&
b.fillText(a.data.labels[m],h.x,h.y-14),"bubble"==l?g=g.r:"scatter"==l&&(g=[g.x,g.y]),$.isNumeric(g)&&(g=Number(g).toLocaleString(void 0,{maximumFractionDigits:20})),b.fillText(g,h.x,h.y-2))}})})}},chartLink=function(a,c,b,d,e,k,n){for(var l=[],f=6;f<arguments.length;++f)l[f-6]=arguments[f];if(c.length&&c[0]){f=c[0];var h=f.index,m={};Object.assign(m,e);if(k&&l&&Array.isArray(l)){var g=k.split(",");$.each(g,function(r,t){m[t]=l[r][h]})}f=f.datasetIndex;var p=a.chart.data;g=p.labels[h];p=p.datasets[f].data[h];
var q=JSON.stringify(m);q=q.replace("$LBL",g).replace("$VAL",p).replace("$IDX",h).replace("$SEL",f);m=JSON.parse(q);f=(new URLSearchParams(m)).toString();null==b||""==b?window.location.href=d+"?"+f:window.parent.location.href="../"+b+"/"+d+"?"+f}};
