/*
Highcharts JS v8.0.4 (2020-03-10)
Exporting module
(c) 2010-2019 Torstein Honsi
License: www.highcharts.com/license
*/
(function(e){"object"===typeof module&&module.exports?(e["default"]=e,module.exports=e):"function"===typeof define&&define.amd?define("highcharts/modules/exporting",["highcharts"],function(m){e(m);e.Highcharts=m;return e}):e("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(e){function m(f,g,e,n){f.hasOwnProperty(g)||(f[g]=n.apply(null,e))}e=e?e._modules:{};m(e,"modules/full-screen.src.js",[e["parts/Globals.js"]],function(f){var g=f.addEvent,e=f.Chart,n=function(){function g(h){this.chart=
h;this.isOpen=!1;h.container.parentNode instanceof Element&&(h=h.container.parentNode,this.browserProps||("function"===typeof h.requestFullscreen?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:h.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:h.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",
requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:h.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"})))}g.prototype.close=function(){var h=this.chart;if(this.isOpen&&this.browserProps&&h.container.ownerDocument instanceof Document)h.container.ownerDocument[this.browserProps.exitFullscreen]();this.unbindFullscreenEvent&&this.unbindFullscreenEvent();this.isOpen=!1;
this.setButtonText()};g.prototype.open=function(){var h=this,g=h.chart;if(h.browserProps){h.unbindFullscreenEvent=f.addEvent(g.container.ownerDocument,h.browserProps.fullscreenChange,function(){h.isOpen?(h.isOpen=!1,h.close()):(h.isOpen=!0,h.setButtonText())});if(g.container.parentNode instanceof Element){var e=g.container.parentNode[h.browserProps.requestFullscreen]();if(e)e["catch"](function(){alert("Full screen is not supported inside a frame.")})}f.addEvent(g,"destroy",h.unbindFullscreenEvent)}};
g.prototype.setButtonText=function(){var h,g=this.chart,f=g.exportDivElements,e=g.options.exporting,n=null===(h=null===e||void 0===e?void 0:e.buttons)||void 0===h?void 0:h.contextButton.menuItems;h=g.options.lang;(null===e||void 0===e?0:e.menuItemDefinitions)&&(null===h||void 0===h?0:h.exitFullscreen)&&h.viewFullscreen&&n&&f&&f.length&&(f[n.indexOf("viewFullscreen")].innerHTML=this.isOpen?h.exitFullscreen:e.menuItemDefinitions.viewFullscreen.text||h.viewFullscreen)};g.prototype.toggle=function(){this.isOpen?
this.close():this.open()};return g}();f.Fullscreen=n;g(e,"beforeRender",function(){this.fullscreen=new f.Fullscreen(this)});return f.Fullscreen});m(e,"mixins/navigation.js",[],function(){return{initUpdate:function(f){f.navigation||(f.navigation={updates:[],update:function(g,f){this.updates.forEach(function(e){e.update.call(e.context,g,f)})}})},addUpdate:function(f,g){g.navigation||this.initUpdate(g);g.navigation.updates.push({update:f,context:g})}}});m(e,"modules/exporting.src.js",[e["parts/Globals.js"],
e["parts/Utilities.js"],e["mixins/navigation.js"]],function(f,g,e){var n=g.addEvent,u=g.css,h=g.createElement,m=g.discardElement,x=g.extend,I=g.find,B=g.fireEvent,J=g.isObject,p=g.merge,E=g.objectEach,q=g.pick,K=g.removeEvent,L=g.uniqueKey,w=f.defaultOptions,y=f.doc,C=f.Chart,M=f.isTouchDevice,z=f.win,G=z.navigator.userAgent,F=f.SVGRenderer,H=f.Renderer.prototype.symbols,N=/Edge\/|Trident\/|MSIE /.test(G),O=/firefox/i.test(G);x(w.lang,{viewFullscreen:"View in full screen",exitFullscreen:"Exit from full screen",
printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"});w.navigation||(w.navigation={});p(!0,w.navigation,{buttonOptions:{theme:{},symbolSize:14,symbolX:12.5,symbolY:10.5,align:"right",buttonSpacing:3,height:22,verticalAlign:"top",width:24}});p(!0,w.navigation,{menuStyle:{border:"1px solid #999999",background:"#ffffff",padding:"5px 0"},menuItemStyle:{padding:"0.5em 1em",
color:"#333333",background:"none",fontSize:M?"14px":"11px",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#335cad",color:"#ffffff"},buttonOptions:{symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{padding:5}}});w.exporting={type:"image/png",url:"https://export.highcharts.com/",printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:"viewFullscreen printChart separator downloadPNG downloadJPEG downloadPDF downloadSVG".split(" ")}},
menuItemDefinitions:{viewFullscreen:{textKey:"viewFullscreen",onclick:function(){this.fullscreen.toggle()}},printChart:{textKey:"printChart",onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},downloadPDF:{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},downloadSVG:{textKey:"downloadSVG",
onclick:function(){this.exportChart({type:"image/svg+xml"})}}}};f.post=function(a,b,c){var d=h("form",p({method:"post",action:a,enctype:"multipart/form-data"},c),{display:"none"},y.body);E(b,function(a,b){h("input",{type:"hidden",name:b,value:a},null,d)});d.submit();m(d)};f.isSafari&&f.win.matchMedia("print").addListener(function(a){f.printingChart&&(a.matches?f.printingChart.beforePrint():f.printingChart.afterPrint())});x(C.prototype,{sanitizeSVG:function(a,b){var c=a.indexOf("")+6,d=a.substr(c);
a=a.substr(0,c);b&&b.exporting&&b.exporting.allowHTML&&d&&(d=''+d+"",a=a.replace("",d+""));a=a.replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/url\(("|")(.*?)("|");?\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/