"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/asyncToGenerator"),r=require("@babel/runtime/helpers/slicedToArray"),t=require("@babel/runtime/helpers/typeof"),a=require("@babel/runtime/regenerator"),i=require("./constants.js"),n=require("./highcharts-contour.js"),s=require("./getHighchartsV8.js"),o=require("./getHighchartsV10.js"),u=require("dompurify");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=c(e),h=c(r),d=c(t),f=c(a),p=c(u),g=function e(r){return"string"==typeof r?p.default.sanitize(r):("object"===d.default(r)&&null!==r&&Object.entries(r).forEach((function(t){var a=h.default(t,2),i=a[0],n=a[1];"string"==typeof n?r[i]=p.default.sanitize(r[i]):Array.isArray(n)?n.forEach((function(t,a){r[i][a]=e(t)})):"object"===d.default(n)&&(r[i]=e(n))})),r)};function H(){return H=l.default(f.default.mark((function e(){var r,t,a,u,c,l,h,d,p,H,b,v,y,S,V,A,_=arguments;return f.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=_.length>0&&void 0!==_[0]?_[0]:{},t=r.version,a=void 0===t?i.HIGHCHARTS_V10_VERSION:t,u=a===i.HIGHCHARTS_V8_VERSION?s.getHighchartsV8:o.getHighchartsV10,[i.HIGHCHARTS_V8_VERSION,i.HIGHCHARTS_V10_VERSION].includes(a)){e.next=4;break}throw new Error("Invalid highcharts version: ".concat(a));case 4:c=u(),l=c.Highcharts,h=c.highchartsMore,d=c.HighchartsMulticolorSeries,p=c.addSolidGauge,H=c.addHeatmap,b=c.addBoost,v=c.addExporting,y=c.addXrange,S=c.addDumbbell,V=c.addPatternFill,window.Highcharts=l,l.AST&&(l.AST.bypassHTMLFiltering=!0),d(l),h(l),p(l),H(l),b(l),v(l),y(l),S(l),V(l),n(l),A=l.chart,l.chart=function(e){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length,a=new Array(t>2?t-2:0),i=2;i<t;i++)a[i-2]=arguments[i];return A.apply(void 0,[e,g(r)].concat(a))},l.setOptions({plotOptions:{series:{states:{inactive:{enabled:!1}}}}});case 20:case"end":return e.stop()}}),e)}))),H.apply(this,arguments)}exports.initHighcharts=function(){return H.apply(this,arguments)};
//# sourceMappingURL=highcharts.js.map
