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,4BAAA,CACb+C,CADa,CACWD,CADX,CAcjB,CAVAE,CAUA,CAVY,IAAAtB,aAAA,CAAkBC,CAAlB,CACRoB,CAAA,CAAuBA,CAAAhC,OAAvB,CAAuD,CAAvD,CADQ,CAUZ,CAPA2B,CAAAC,OAAAM,KAAA,CAA0B,CACtBC,yBAA0BvB,CADJ,CAEtBwB,EAAGvB,CAFmB,CAGtBwB,EAAGJ,CAHmB,CAA1B,CAOA,CADAN,CAAAzC,MAAAgD,KAAA,CAAyBrB,CAAzB,CACA,CAAAc,CAAAxC,MAAA+C,KAAA,CAAyBD,CAAzB,CAGJ,OAAON,EAnD8C,CApG7D,CArEJ,CAuPAjD,EAAA,CACI,uBADJ,CAEI,kBAFJ,CAeI,EAfJ,CAmBI,CACIM,SAAU,mCADd;AAEI2B,aAAcA,QAAS,CAACC,CAAD,CAAiB,CACpC,MAAOA,EAAAH,MAD6B,CAF5C,CAnBJ,CAkDA/B,EAAA,CACI,2BADJ,CAEI,kBAFJ,CAeI,EAfJ,CAmBI,CACIM,SAAU,uCADd,CAEI2B,aAAcA,QAAS,CAACC,CAAD,CAAiB,CACpC,MAAOA,EAAAF,UAD6B,CAF5C,CAnBJ,CAkDAhC,EAAA,CACI,uBADJ,CAEI,kBAFJ,CAeI,CACII,QAAS,CACLwD,YAAa,4HADR,CADb,CAfJ,CAwBI,CACItD,SAAU,mCADd,CAUIuD,aAAcA,QAAS,CAAC9B,CAAD,CAAQ,CAC3B,MAA2B,IAA3B,CAAiCF,IAAAiC,GAAjC,CAAOjC,IAAAkC,KAAA,CAAUhC,CAAV,CADoB,CAVnC,CAcIE,aAAcA,QAAS,CAACC,CAAD,CAAiB,CACpC,MAAO,KAAA2B,aAAA,CAAkB3B,CAAAH,MAAlB,CAD6B,CAd5C,CAxBJ,CAlXU,CAAb,CAAA,CA0aClC,CA1aD,CADmB,CAXvB;","sources":["regressions.src.js"],"names":["factory","module","exports","define","amd","Highcharts","undefined","H","seriesType","isArray","params","xAxisUnit","tooltip","valueDecimals","nameBase","getRegressionLineParameters","xData","yData","yIndex","options","index","getSingleYValue","yValue","xSum","reduce","accX","val","ySum","accY","xMean","length","yMean","xError","yError","formulaNumerator","formulaDenominator","i","Math","pow","slope","intercept","getEndPointY","lineParameters","endPointX","transformXData","xOffset","map","xValue","findClosestDistance","distance","closestDistance","getValues","baseSeries","regressionSeriesParams","period","periodStart","periodEnd","indicatorData","values","periodXData","slice","periodYData","periodTransformedXData","endPointY","push","regressionLineParameters","x","y","pointFormat","slopeToAngle","PI","atan"]}