!/**
 * Highcharts JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/data
 * @requires highcharts
 *
 * Data module
 *
 * (c) 2012-2026 Highsoft AS
 * Author: Torstein Hønsi
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(t._Highcharts,t._Highcharts.Axis,t._Highcharts.Chart,t._Highcharts.Point,t._Highcharts.SeriesRegistry,t._Highcharts.Time):"function"==typeof define&&define.amd?define("highcharts/modules/data",["highcharts/highcharts"],function(t){return e(t,t.Axis,t.Chart,t.Point,t.SeriesRegistry,t.Time)}):"object"==typeof exports?exports["highcharts/modules/data"]=e(t._Highcharts,t._Highcharts.Axis,t._Highcharts.Chart,t._Highcharts.Point,t._Highcharts.SeriesRegistry,t._Highcharts.Time):t.Highcharts=e(t.Highcharts,t.Highcharts.Axis,t.Highcharts.Chart,t.Highcharts.Point,t.Highcharts.SeriesRegistry,t.Highcharts.Time)}("u"<typeof window?this:window,function(t,e,n,r,i,o){return function(){"use strict";var a={260:function(t){t.exports=r},512:function(t){t.exports=i},532:function(t){t.exports=e},792:function(t){t.exports=o},944:function(e){e.exports=t},960:function(t){t.exports=n}},s={};function u(t){var e=s[t];if(void 0!==e)return e.exports;var n=s[t]={exports:{}};return a[t](n,n.exports,u),n.exports}u.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return u.d(e,{a:e}),e},u.d=function(t,e){for(var n in e)u.o(e,n)&&!u.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},u.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var l={};u.d(l,{default:function(){return I}});var c=u(944),h=u.n(c),d=function(){return(d=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},p=function(t,e){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){var l=[s,u];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){o=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(6===l[0]&&o.label<i[1]){o.label=i[1],i=l;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(l);break}i[2]&&o.ops.pop(),o.trys.pop();continue}l=e.call(t,o)}catch(t){l=[6,t],r=0}finally{n=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}},f=h().win;function m(t){var e,n={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},r=new XMLHttpRequest;function i(e,n){t.error&&t.error(e,n)}if(!t.url)return!1;r.open((t.type||"get").toUpperCase(),t.url,!0),(null==(e=t.headers)?void 0:e["Content-Type"])||r.setRequestHeader("Content-Type",n[t.dataType||"json"]||n.text),(0,c.objectEach)(t.headers,function(t,e){r.setRequestHeader(e,t)}),t.responseType&&(r.responseType=t.responseType),r.onreadystatechange=function(){var e,n;if(4===r.readyState){if(200===r.status){if("blob"!==t.responseType&&(n=r.responseText,"json"===t.dataType))try{n=JSON.parse(n)}catch(t){if(t instanceof Error)return i(r,t)}return null==(e=t.success)?void 0:e.call(t,n,r)}i(r,r.responseText)}},t.data&&"string"!=typeof t.data&&(t.data=JSON.stringify(t.data)),r.send(t.data)}var g={ajax:m,getJSON:function(t,e){g.ajax({url:t,success:e,dataType:"json",headers:{"Content-Type":"text/plain"}})}};g.post=function(t,e,n){var r,i,o,a;return r=this,i=void 0,o=void 0,a=function(){var r,i,o,a;return p(this,function(s){switch(s.label){case 0:return r=new f.FormData,(0,c.objectEach)(e,function(t,e){r.append(e,t)}),r.append("b64","true"),[4,f.fetch(t,d({method:"POST",body:r},n))];case 1:if(!(i=s.sent()).ok)return[3,3];return[4,i.text()];case 2:o=s.sent(),(a=document.createElement("a")).href="data:".concat(e.type,";base64,").concat(o),a.download=e.filename,a.click(),(0,c.discardElement)(a),s.label=3;case 3:return[2]}})},new(o||(o=Promise))(function(t,e){function n(t){try{u(a.next(t))}catch(t){e(t)}}function s(t){try{u(a.throw(t))}catch(t){e(t)}}function u(e){var r;e.done?t(e.value):((r=e.value)instanceof o?r:new o(function(t){t(r)})).then(n,s)}u((a=a.apply(r,i||[])).next())})};var v=u(532),y=u.n(v),x=u(960),C=u.n(x),w=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},b=function(t,e,n,r,i){if(void 0===i&&(i=[]),Array.isArray(t))return Array.isArray(i)||(i=Array.from(i)),{removed:t.splice.apply(t,w([e,n],i,!1)),array:t};var o=Object.getPrototypeOf(t).constructor,a=t[r?"subarray":"slice"](e,e+n),s=new o(t.length-n+i.length);return s.set(t.subarray(0,e),0),s.set(i,e),s.set(t.subarray(e+n),e+i.length),{removed:a,array:s}},R=function(){function t(t){void 0===t&&(t={});var e=this;this.isDataTable=!0,this.autoId=!t.id,this.columns={},this.id=t.id||(0,c.uniqueKey)(),this.rowCount=0,this.versionTag=(0,c.uniqueKey)();var n=0;(0,c.objectEach)(t.columns||{},function(t,r){e.columns[r]=t.slice(),n=Math.max(n,t.length)}),this.applyRowCount(n)}return t.prototype.applyRowCount=function(t){var e=this;this.rowCount=t,(0,c.objectEach)(this.columns,function(n,r){var i,o;n.length!==t&&(e.columns[r]=(i=n,o=t,Array.isArray(i)?(i.length=o,i):i.slice(0,o)))})},t.prototype.deleteRows=function(t,e){var n=this;if(void 0===e&&(e=1),e>0&&t<this.rowCount){var r=0;(0,c.objectEach)(this.columns,function(i,o){n.columns[o]=b(i,t,e).array,r=i.length}),this.rowCount=r}(0,c.fireEvent)(this,"afterDeleteRows",{rowIndex:t,rowCount:e}),this.versionTag=(0,c.uniqueKey)()},t.prototype.getColumn=function(t,e){return this.columns[t]},t.prototype.getColumns=function(t,e){var n=this;return(t||Object.keys(this.columns)).reduce(function(t,e){return t[e]=n.columns[e],t},{})},t.prototype.getRowObject=function(t,e){var n,r={},i=this.columns;null!=e||(e=Object.keys(this.columns));for(var o=0,a=e;o<a.length;o++){var s=a[o];r[s]=null==(n=i[s])?void 0:n[t]}return r},t.prototype.setColumn=function(t,e,n,r){var i;void 0===e&&(e=[]),void 0===n&&(n=0),this.setColumns(((i={})[t]=e,i),n,r)},t.prototype.setColumns=function(t,e,n){var r=this,i=this.rowCount;(0,c.objectEach)(t,function(t,e){r.columns[e]=t.slice(),i=t.length}),this.applyRowCount(i),(null==n?void 0:n.silent)||((0,c.fireEvent)(this,"afterSetColumns"),this.versionTag=(0,c.uniqueKey)())},t.prototype.setRow=function(t,e,n,r){void 0===e&&(e=this.rowCount);var i,o=this.columns,a=n?this.rowCount+1:e+1,s=Object.keys(t);if((null==r?void 0:r.addColumns)!==!1)for(var u=0,l=s.length;u<l;u++)o[i=s[u]]||(o[i]=Array(this.rowCount));(0,c.objectEach)(o,function(r,i){r&&(n?r=b(r,e,0,!0,[t[i]]).array:r[e]=i in t?t[i]:r[e],o[i]=r)}),this.applyRowCount(Math.max(a,this.rowCount)),(null==r?void 0:r.silent)||((0,c.fireEvent)(this,"afterSetRows",{rowIndex:e}),this.versionTag=(0,c.uniqueKey)())},t.prototype.getModified=function(){return this.modified||this},t}(),T=u(260),A=u.n(T),N=u(512),D=u.n(N),Y=u(792),O=u.n(Y),E=h().doc,j=D().seriesTypes;function F(t){return!!(t.rowsURL||t.csvURL||t.columnsURL)}var U=function(){function t(e,n,r){void 0===n&&(n={}),this.rowsToColumns=t.rowsToColumns,this.dateFormats={"YYYY/mm/dd":{regex:/^(\d{4})[\-\/\.](\d{1,2})[\-\/\.](\d{1,2})$/,parser:function(t){return t?Date.UTC(+t[1],t[2]-1,+t[3]):NaN}},"dd/mm/YYYY":{regex:/^(\d{1,2})[\-\/\.](\d{1,2})[\-\/\.](\d{4})$/,parser:function(t){return t?Date.UTC(+t[3],t[2]-1,+t[1]):NaN},alternative:"mm/dd/YYYY"},"mm/dd/YYYY":{regex:/^(\d{1,2})[\-\/\.](\d{1,2})[\-\/\.](\d{4})$/,parser:function(t){return t?Date.UTC(+t[3],t[1]-1,+t[2]):NaN}},"dd/mm/YY":{regex:/^(\d{1,2})[\-\/\.](\d{1,2})[\-\/\.](\d{2})$/,parser:function(t){if(!t)return NaN;var e=new Date,n=+t[3];return n>e.getFullYear()-2e3?n+=1900:n+=2e3,Date.UTC(n,t[2]-1,+t[1])},alternative:"mm/dd/YY"},"mm/dd/YY":{regex:/^(\d{1,2})[\-\/\.](\d{1,2})[\-\/\.](\d{2})$/,parser:function(t){return t?Date.UTC(+t[3]+2e3,t[1]-1,+t[2]):NaN}}},this.chart=r,this.chartOptions=n,this.options=e,this.rawColumns=[],this.init(e,n,r)}return t.data=function(e,n,r){return void 0===n&&(n={}),new t(e,n,r)},t.rowsToColumns=function(t){var e,n,r,i,o;if(t)for(e=0,o=[],n=t.length;e<n;e++)for(r=0,i=t[e].length;r<i;r++)o[r]||(o[r]=[]),o[r][e]=t[e][r];return o},t.prototype.init=function(t,e,n){var r,i,o,a=t.decimalPoint;e&&(this.chartOptions=e),n&&(this.chart=n),"."!==a&&","!==a&&(a=void 0),this.options=t,this.columns=t.columns||this.rowsToColumns(t.rows)||[],this.firstRowAsNames=null==(i=null!=(r=t.firstRowAsNames)?r:this.firstRowAsNames)||i,this.decimalRegex=a&&RegExp("^(-?[0-9]+)"+a+"([0-9]+)$"),void 0!==this.liveDataTimeout&&(0,c.internalClearTimeout)(this.liveDataTimeout),this.rawColumns=[],this.columns.length&&(this.dataFound(),o=!F(t)),o||(o=this.fetchLiveData()),o||(o=!!this.parseCSV().length),o||(o=!!this.parseTable().length),o||(o=this.parseGoogleSpreadsheet()),!o&&t.afterComplete&&t.afterComplete(this)},t.prototype.getColumnDistribution=function(){var t,e,n=this.chartOptions,r=this.options,i=[],o=function(t){return void 0===t&&(t="line"),(j[t].prototype.pointArrayMap||[0]).length},a=function(t){return void 0===t&&(t="line"),j[t].prototype.pointArrayMap},s=null==(t=null==n?void 0:n.chart)?void 0:t.type,u=[],l=[],h=(null==r?void 0:r.seriesMapping)||(null==(e=null==n?void 0:n.series)?void 0:e.map(function(){return{x:0}}))||[],d=0;((null==n?void 0:n.series)||[]).forEach(function(t){u.push(o(t.type||s))}),h.forEach(function(t){i.push(t.x||0)}),0===i.length&&i.push(0),h.forEach(function(t){var e,r,i=new H,h=u[d]||o(s),p=null!=(r=(null!=(e=null==n?void 0:n.series)?e:[])[d])?r:{},f=a(p.type||s),m=null!=f?f:["y"];((0,c.defined)(t.x)||p.isCartesian||!f)&&i.addColumnReader(t.x,"x"),(0,c.objectEach)(t,function(t,e){"x"!==e&&i.addColumnReader(t,e)});for(var g=0;g<h;g++)i.hasReader(m[g])||i.addColumnReader(void 0,m[g]);l.push(i),d++});var p=a(s);void 0===p&&(p=["y"]),this.valueCount={global:o(s),xColumns:i,individual:u,seriesBuilders:l,globalPointArrayMap:p}},t.prototype.dataFound=function(){this.options.switchRowsAndColumns&&(this.columns=this.rowsToColumns(this.columns)),this.getColumnDistribution(),this.parseTypes(),!1!==this.parsed()&&this.complete()},t.prototype.parseCSV=function(t){var e,n,r,i,o,a=this,s=this.columns=[],u=t||this.options,l=u.startColumn||0,h=u.endColumn||Number.MAX_VALUE,d=[],p={",":0,";":0,"	":0},f=u.csv,m=u.startRow||0,g=u.endRow||Number.MAX_VALUE,v=0;if(f&&u.beforeParse&&(f=u.beforeParse.call(this,f,this)),f){(o=f.replace(/\r\n/g,"\n").replace(/\r/g,"\n").split(u.lineDelimiter||"\n"),(!m||m<0)&&(m=0),(!g||g>=o.length)&&(g=o.length-1),u.itemDelimiter)?i=u.itemDelimiter:(e=0,n=0,r=!1,o.some(function(t,r){var i,o,a,s=!1,u="";if(r>13)return!0;for(var l=0;l<t.length;l++){if(i=t[l],o=t[l+1],a=t[l-1],"#"===i)return;if('"'===i)if(s){if('"'!==a&&'"'!==o){for(;" "===o&&l<t.length;)o=t[++l];void 0!==p[o]&&p[o]++,s=!1}}else s=!0;else void 0!==p[i]?(isNaN(Date.parse(u=u.trim()))?(isNaN(u)||!isFinite(u))&&p[i]++:p[i]++,u=""):u+=i;","===i&&n++,"."===i&&e++}}),p[";"]>p[","]?r=";":(p[","],p[";"],r=","),u.decimalPoint||(e>n?u.decimalPoint=".":u.decimalPoint=",",a.decimalRegex=RegExp("^(-?[0-9]+)"+u.decimalPoint+"([0-9]+)$")),i=r);var y=0;for(v=m;v<=g;v++)"#"===o[v][0]?y++:function(t,e,n,r){var o=0,a="",c="",p="",f="",m=0,g=0;function v(e){a=t[e],c=t[e-1],p=t[e+1]}function y(t){d.length<g+1&&d.push([t]),d[g][d[g].length-1]!==t&&d[g].push(t)}function x(){if(l>m||m>h){++m,f="";return}u.columnTypes||(!isNaN(parseFloat(f))&&isFinite(f)?(f=parseFloat(f),y("number")):isNaN(Date.parse(f))?y("string"):(f=f.replace(/\//g,"-"),y("date"))),s.length<g+1&&s.push([]),s[g][e]=f,f="",++g,++m}if(t.trim().length&&"#"!==t.trim()[0]){for(;o<t.length;o++)if(v(o),'"'===a)for(v(++o);o<t.length&&('"'!==a||'"'===c||'"'===p);)('"'!==a||'"'===a&&'"'!==c)&&(f+=a),v(++o);else a===i?x():f+=a;x()}}(o[v],v-m-y);(!u.columnTypes||0===u.columnTypes.length)&&d.length&&d[0].length&&"date"===d[0][1]&&!u.dateFormat&&(u.dateFormat=function(t,e){var n,r,i,o,s="YYYY/mm/dd",u=[],l=[],h=[],d=0,p=!1;for((!e||e>t.length)&&(e=t.length);d<e;d++)if(void 0!==t[d]&&(null==(n=t[d])?void 0:n.length))for(o=0,r=t[d].trim().replace(/\//g," ").replace(/\-/g," ").replace(/\./g," ").split(" "),h=["","",""];o<r.length;o++)o<h.length&&(r[o]=parseInt(r[o],10),r[o]&&(l[o]=!l[o]||l[o]<r[o]?r[o]:l[o],void 0!==u[o]?u[o]!==r[o]&&(u[o]=!1):u[o]=r[o],r[o]>31?r[o]<100?h[o]="YY":h[o]="YYYY":r[o]>12&&r[o]<=31?(h[o]="dd",p=!0):h[o].length||(h[o]="mm")));if(p){for(o=0;o<u.length;o++)!1!==u[o]?l[o]>12&&"YY"!==h[o]&&"YYYY"!==h[o]&&(h[o]="YY"):l[o]>12&&"mm"===h[o]&&(h[o]="dd");return(3===h.length&&"dd"===h[1]&&"dd"===h[2]&&(h[2]="YY"),i=h.join("/"),a.dateFormats[i])?i:((0,c.fireEvent)(a,"deduceDateFailed"),s)}return s}(s[0])),this.dataFound()}return s},t.prototype.parseTable=function(){var t=this.options,e=this.columns||[],n=t.startRow||0,r=t.endRow||Number.MAX_VALUE,i=t.startColumn||0,o=t.endColumn||Number.MAX_VALUE;if(t.table){var a=t.table;"string"==typeof a&&(a=E.getElementById(a)),[].forEach.call(a.getElementsByTagName("tr"),function(t,a){a>=n&&a<=r&&[].forEach.call(t.children,function(t,r){var s=e[r-i],u=1;if(("TD"===t.tagName||"TH"===t.tagName)&&r>=i&&r<=o)for(e[r-i]||(e[r-i]=[]),e[r-i][a-n]=t.innerHTML;a-n>=u&&void 0===s[a-n-u];)s[a-n-u]=null,u++})}),this.dataFound()}return e},t.prototype.fetchLiveData=function(){var t=this,e=this.chart,n=this.options,r=n.enablePolling,i=(0,c.merge)(n),o=0,a=1e3*(n.dataRefreshRate||2);return!!F(n)&&(a=Math.max(a,1e3),delete n.csvURL,delete n.rowsURL,delete n.columnsURL,!function n(s){function u(i,u,l){if(!i||!/^(http|\/|\.\/|\.\.\/)/.test(i))return i&&(0,c.error)("Invalid URL: ".concat(i),!1,e),!1;function h(){r&&e.liveDataURL===i&&(t.liveDataTimeout=setTimeout(n,a))}return s&&((0,c.internalClearTimeout)(t.liveDataTimeout),e.liveDataURL=i),m({url:i,dataType:l||"json",success:function(t){(null==e?void 0:e.series)&&u(t),h()},error:function(t,n){if(++o<3&&h(),e.options)return(0,c.error)("Request failed - ".concat(t.status," \n")+("string"==typeof n?n:n.message),!1,e)}}),!0}u(i.csvURL,function(t){e.update({data:{csv:t}})},"text")||u(i.rowsURL,function(t){e.update({data:{rows:t}})})||u(i.columnsURL,function(t){e.update({data:{columns:t}})})}(!0),F(n))},t.prototype.parseGoogleSpreadsheet=function(){var t=this,e=this.options,n=e.googleSpreadsheetKey,r=this.chart,i=Math.max(1e3*(e.dataRefreshRate||2),4e3),o=function(){if(e.googleSpreadsheetRange)return e.googleSpreadsheetRange;var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZ",r=(n.charAt(e.startColumn||0)||"A")+((e.startRow||0)+1),i=n.charAt(null!=(t=e.endColumn)?t:-1)||"ZZ";return(0,c.defined)(e.endRow)&&(i+=e.endRow+1),""+r+":".concat(i)};return n&&(delete e.googleSpreadsheetKey,!function a(s){m({url:["https://sheets.googleapis.com/v4/spreadsheets",n,"values",o(),"?alt=json&majorDimension=COLUMNS&valueRenderOption=UNFORMATTED_VALUE&dateTimeRenderOption=FORMATTED_STRING&key="+e.googleAPIKey].join("/"),dataType:"json",success:function(n){s(n),e.enablePolling&&(t.liveDataTimeout=setTimeout(function(){a(s)},i))},error:function(t,e){if(r.options)return(0,c.error)("Request failed - ".concat(t.status," \n")+("string"==typeof e?e:e.message),!1,r)}})}(function(e){var n=e.values;if(!n||0===n.length)return!1;var i=n.reduce(function(t,e){return Math.max(t,e.length)},0);n.forEach(function(t){for(var e=0;e<i;e++)void 0===t[e]&&(t[e]=null)}),(null==r?void 0:r.series)?r.update({data:{columns:n}}):(t.columns=n,t.dataFound())})),!1},t.prototype.trim=function(t,e){return"string"==typeof t&&(t=t.replace(/^\s+|\s+$/g,""),e&&/[\d\s]+/.test(t)&&(t=t.replace(/\s/g,"")),this.decimalRegex&&(t=t.replace(this.decimalRegex,"$1.$2"))),t},t.prototype.parseTypes=function(){for(var t=this.columns||[],e=t.length;e--;)this.parseColumn(t[e],e)},t.prototype.parseColumn=function(t,e){var n,r,i,o,a,s,u,l,h=this.rawColumns,d=this.columns=this.columns||[],p=this.firstRowAsNames,f=(null==(n=this.valueCount)?void 0:n.xColumns.indexOf(e))!==-1,m=[],g=this.chartOptions,v=(this.options.columnTypes||[])[e],y=f&&(null==g?void 0:g.xAxis)&&"category"===(0,c.splat)(g.xAxis)[0].type||"string"===v,x=(0,c.defined)(t.name),C=t.length;for(h[e]||(h[e]=[]);C--;)r=m[C]||t[C],o=this.trim(r),i=parseFloat(a=this.trim(r,!0)),void 0===h[e][C]&&(h[e][C]=o),y||0===C&&p&&!x?t[C]=""+o:+a===i?(t[C]=i,i>31536e6&&"float"!==v?t.isDatetime=!0:t.isNumeric=!0,void 0!==t[C+1]&&(l=i>t[C+1])):((null==o?void 0:o.length)&&(s=this.parseDate(r)),f&&(0,c.isNumber)(s)&&"float"!==v?(m[C]=r,t[C]=s,t.isDatetime=!0,void 0!==t[C+1]&&((u=s>t[C+1])!==l&&void 0!==l&&this.alternativeFormat&&(this.dateFormat=this.alternativeFormat,C=t.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative),l=u)):(t[C]=""===o?null:o,0!==C&&(t.isDatetime||t.isNumeric)&&(t.mixed=!0)));f&&t.mixed&&(d[e]=h[e])},t.prototype.parseDate=function(t){var e,n,r,i,o=this.options.parseDate,a=this.options.dateFormat||this.dateFormat;if(o)e=o(t);else if(!1===o)e=t;else if("string"==typeof t){if(a)(r=this.dateFormats[a])||(r=this.dateFormats["YYYY/mm/dd"]),(i=t.match(r.regex))&&(e=r.parser(i));else for(n in this.dateFormats)if(r=this.dateFormats[n],i=t.match(r.regex)){this.dateFormat=a=n,this.alternativeFormat=r.alternative,e=r.parser(i);break}i||(e=new(O())().parse(t))}return e},t.prototype.getData=function(){var t;if(this.columns)return null==(t=this.rowsToColumns(this.columns))?void 0:t.slice(1)},t.prototype.getDataTable=function(){return new R({columns:Object.values(this.columns||[]).reduce(function(t,e){var n=e.slice(),r=n.shift();return("string"==typeof r||"number"==typeof r)&&(t[r]=n),t},{})})},t.prototype.parsed=function(){if(this.options.parsed)return this.options.parsed.call(this,this.columns,this)},t.prototype.complete=function(){var t,e,n,r,i,o,a,s,u,l,h,d,p,f,m,g,v=this.columns=this.columns||[],y=this.options,x=[],C="linear";if([].length=v.length,y.complete||y.afterComplete){if(this.firstRowAsNames)for(u=0;u<v.length;u++){var w,b,R,T,A=v[u];(0,c.defined)(A.name)||(A.name=(null!=(t=A.shift())?t:"").toString())}for(a=[],w=(null==v?void 0:v.length)||0,b=this.valueCount.seriesBuilders,R=Array(w).fill(!0),T=[],b.forEach(function(t){t.getReferencedColumnIndexes().forEach(function(t){R[t]=!1})}),R.forEach(function(t,e){t&&T.push(e)}),d=0;d<this.valueCount.seriesBuilders.length;d++)(f=this.valueCount.seriesBuilders[d]).populateColumns(T)&&x.push(f);for(;T.length>0;){for((f=new H).addColumnReader(0,"x"),-1!==(g=T.indexOf(0))&&T.splice(g,1),u=0;u<this.valueCount.global;u++)f.addColumnReader(void 0,this.valueCount.globalPointArrayMap[u]);f.populateColumns(T)&&x.push(f)}if(x.length>0&&x[0].readers.length>0&&void 0!==(m=null==v?void 0:v[null!=(e=x[0].readers[0].columnIndex)?e:-1])&&(m.isDatetime?C="datetime":m.isNumeric||(C="category")),"category"===C)for(d=0;d<x.length;d++)for(h=0,f=x[d];h<f.readers.length;h++)"x"===f.readers[h].configName&&(f.readers[h].configName="name");for(d=0;d<x.length;d++){for(l=0,f=x[d],s=[];l<v[0].length;l++)s[l]=f.read(v,l);a[d]={data:s,pointStart:s[0]&&(f.pointIsArray?null==(n=s[0])?void 0:n[0]:null==(r=s[0])?void 0:r.x)||void 0},f.name&&(a[d].name=f.name),"category"===C&&(a[d].turboThreshold=0,a[d].pointStart=0)}p={series:a},"linear"!==C||this.xAxisOptions&&this.xAxisOptions.type!==C?(this.xAxisOptions={type:C},"category"===C&&(this.xAxisOptions.uniqueNames=!1)):C=this.xAxisOptions=void 0,this.chart||(0,c.merge)(!0,p,{xAxis:this.xAxisOptions||{}}),null==(i=y.complete)||i.call(y,p),null==(o=y.afterComplete)||o.call(y,this,p)}},t.prototype.xAxisUpdateHandler=function(t){var e=this.xAxisOptions;e&&(!t.options.type&&e.type&&(t.type=e.type),t.options.uniqueNames||!1!==e.uniqueNames||(t.uniqueNames=e.uniqueNames))},t.prototype.update=function(t,e){var n,r=this.chart,i=r.options;t&&(t.afterComplete=function(t,n){if(n){var i=r.xAxis[0],o=t.xAxisOptions;o&&i&&(i.type!==o.type&&!i.options.type||i.uniqueNames&&!1===o.uniqueNames&&void 0===i.options.uniqueNames)?i.update({},!1):((null==n?void 0:n.series)||[]).forEach(function(t){delete t.pointStart}),r.update(n,e,!0)}},(0,c.merge)(!0,i.data,t),(null==(n=i.data)?void 0:n.googleSpreadsheetKey)&&!t.columns&&delete i.data.columns,this.init(i.data||{},i))},t}();(0,c.addEvent)(y(),"afterSetOptions",function(){var t;this.isXAxis&&(!this.chart.xAxis.length||this.chart.xAxis[0]===this)&&(null==(t=this.chart.data)||t.xAxisUpdateHandler(this))}),(0,c.addEvent)(C(),"init",function(t){var e=this,n=t.args[1],r=(0,c.getOptions)().data,i=t.args[0]||{};if((r||i&&i.data)&&!e.hasDataDef){e.hasDataDef=!0;var o=(0,c.merge)(r,i.data);e.data=new U((0,c.extend)(o,{afterComplete:function(t,r){var o,a,s,u,l,h;if(Object.hasOwnProperty.call(i,"series"))if("object"==typeof i.series)for(l=Math.max(i.series.length,null!=(a=null==(o=null==r?void 0:r.series)?void 0:o.length)?a:0);l--;)h=i.series[l]||{},i.series[l]=(0,c.merge)(h,null!=(u=null==(s=null==r?void 0:r.series)?void 0:s[l])?u:{});else delete i.series;i=(0,c.merge)(r,i),e.data=t,e.init(i,n)}}),i,e),t.preventDefault()}});var H=function(){function t(){this.readers=[],this.pointIsArray=!0}return t.prototype.populateColumns=function(t){var e=!0;return this.readers.forEach(function(e){void 0===e.columnIndex&&(e.columnIndex=t.shift())}),this.readers.forEach(function(t){void 0===t.columnIndex&&(e=!1)}),e},t.prototype.read=function(t,e){var n,r=this.pointIsArray,i=r?[]:{};if(this.readers.forEach(function(n){var o=t[n.columnIndex][e];r?i.push(o):n.configName.indexOf(".")>0?A().prototype.setNestedProperty(i,o,n.configName):i[n.configName]=o}),void 0===this.name&&this.readers.length>=2){var o=[];this.readers.forEach(function(t){("x"===t.configName||"name"===t.configName||"y"===t.configName)&&void 0!==t.columnIndex&&o.push(t.columnIndex)}),o.length>=2&&(o.shift(),o.sort(function(t,e){return t-e})),this.name=t[null!=(n=o.shift())?n:0].name}return i},t.prototype.addColumnReader=function(t,e){this.readers.push({columnIndex:t,configName:e}),"x"!==e&&"y"!==e&&void 0!==e&&(this.pointIsArray=!1)},t.prototype.getReferencedColumnIndexes=function(){var t,e,n=[];for(t=0;t<this.readers.length;t+=1)void 0!==(e=this.readers[t]).columnIndex&&n.push(e.columnIndex);return n},t.prototype.hasReader=function(t){var e;for(e=0;e<this.readers.length;e+=1)if(this.readers[e].configName===t)return!0},t}(),S=h();S.Data=S.Data||U,S.HttpUtilities=S.HttpUtilities||g,S.ajax=S.HttpUtilities.ajax,S.data=S.Data.data,S.getJSON=S.HttpUtilities.getJSON,S.post=S.HttpUtilities.post;var I=h();return l.default}()});