/* Highcharts JS v9.1.1 (2021-06-03) Client side exporting module (c) 2015-2021 Torstein Honsi / Oystein Moseng License: www.highcharts.com/license */ 'use strict';(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/offline-exporting",["highcharts","highcharts/modules/exporting"],function(l){a(l);a.Highcharts=l;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function l(a,e,b,n){a.hasOwnProperty(e)||(a[e]=n.apply(null,b))}a=a?a._modules:{};l(a,"Extensions/DownloadURL.js",[a["Core/Globals.js"]],function(a){var e=a.isSafari, b=a.win,n=b.document,m=b.URL||b.webkitURL||b,l=a.dataURLtoBlob=function(a){if((a=a.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([0-9A-Za-z+/]+)/))&&3g.indexOf("Chrome");try{if(!g&&!e.isFirefox&&-1===a.indexOf("b?"p":"l","pt",[b,c]);[].forEach.call(a.querySelectorAll('*[visibility="hidden"]'),function(a){a.parentNode.removeChild(a)});c=a.querySelectorAll("linearGradient"); for(var f=0;f]*width\s*=\s*"?(\d+)"?[^>]*>/)[1]*m,z=a.match(/^]*height\s*=\s*"?(\d+)"?[^>]*>/)[1]*m,p=function(){h.canvg.Canvg.fromString(e,a).start();try{A(h.navigator.msSaveOrOpenBlob?b.msToBlob():b.toDataURL(k),l),c&&c()}catch(K){f(K)}finally{v()}};b.width=q;b.height=z;h.canvg?p():(g=!0,w(d+"canvg.js",function(){p()}))},f,f,function(){g&&v()})}}var h=e.win,x=e.doc,E=b.getOptions,L=m.addEvent,B=m.error,M=m.extend,N=m.fireEvent,F=m.merge,A=G.downloadURL,C=h.URL||h.webkitURL||h,I=e.isMS? 150:0;e.CanVGRenderer={};a.prototype.getSVGForLocalExport=function(a,b,f,c){var d=this,e=0,g,h,l,k,m=function(){e===n.length&&c(d.sanitizeSVG(g.innerHTML,h))},p=function(a,b,c){++e;c.imageElement.setAttributeNS("http://www.w3.org/1999/xlink","href",a);m()};d.unbindGetSVG=L(d,"getSVG",function(a){h=a.chartCopy.options;g=a.chartCopy.container.cloneNode(!0)});d.getSVGForExport(a,b);var n=g.getElementsByTagName("image");try{if(!n.length){c(d.sanitizeSVG(g.innerHTML,h));return}var t=0;for(l=n.length;t< l;++t){var v=n[t];(k=v.getAttributeNS("http://www.w3.org/1999/xlink","href"))?u(k,"image/png",{imageElement:v},a.scale,p,f,f,f):(++e,v.parentNode.removeChild(v),m())}}catch(y){f(y)}d.unbindGetSVG()};a.prototype.exportChartLocal=function(a,b){var f=this,c=F(f.options.exporting,a),g=function(a){!1===c.fallbackToExportServer?c.error?c.error(c,a):B(28,!0):f.exportChart(c)};a=function(){return[].some.call(f.container.getElementsByTagName("image"),function(a){a=a.getAttribute("href");return""!==a&&0!== a.indexOf("data:")})};e.isMS&&f.styledMode&&(l.prototype.inlineWhitelist=[/^blockSize/,/^border/,/^caretColor/,/^color/,/^columnRule/,/^columnRuleColor/,/^cssFloat/,/^cursor/,/^fill$/,/^fillOpacity/,/^font/,/^inlineSize/,/^length/,/^lineHeight/,/^opacity/,/^outline/,/^parentRule/,/^rx$/,/^ry$/,/^stroke/,/^textAlign/,/^textAnchor/,/^textDecoration/,/^transform/,/^vectorEffect/,/^visibility/,/^x$/,/^y$/]);e.isMS&&("application/pdf"===c.type||f.container.getElementsByTagName("image").length&&"image/svg+xml"!== c.type)||"application/pdf"===c.type&&a()?g("Image type not supported for this chart/browser."):f.getSVGForLocalExport(c,b||{},g,function(a){-1