import { g as We } from "./index-DPCO-fqK.js";
function Ge(G, ie) {
  for (var F = 0; F < ie.length; F++) {
    const H = ie[F];
    if (typeof H != "string" && !Array.isArray(H)) {
      for (const j in H)
        if (j !== "default" && !(j in G)) {
          const $ = Object.getOwnPropertyDescriptor(H, j);
          $ && Object.defineProperty(G, j, $.get ? $ : {
            enumerable: !0,
            get: () => H[j]
          });
        }
    }
  }
  return Object.freeze(Object.defineProperty(G, Symbol.toStringTag, { value: "Module" }));
}
var re = { exports: {} }, ze = re.exports, we;
function Ye() {
  return we || (we = 1, function(G, ie) {
    /**
    * Highcharts JS v12.5.0 (2026-01-12)
    * @module highcharts/modules/export-data
    * @requires highcharts
    * @requires highcharts/modules/exporting
    *
    * Export data module
    *
    * (c) 2010-2026 Highsoft AS
    * Author: Torstein Honsi
    *
    * A commercial license may be required depending on use.
    * See www.highcharts.com/license
    */
    (function(F, H) {
      G.exports = H(F._Highcharts, F._Highcharts.AST, F._Highcharts.Chart);
    })("u" < typeof window ? ze : window, (F, H, j) => (() => {
      var $, ve = { 660: (o) => {
        o.exports = H;
      }, 944: (o) => {
        o.exports = F;
      }, 960: (o) => {
        o.exports = j;
      } }, he = {};
      function S(o) {
        var d = he[o];
        if (d !== void 0) return d.exports;
        var m = he[o] = { exports: {} };
        return ve[o](m, m.exports, S), m.exports;
      }
      S.n = (o) => {
        var d = o && o.__esModule ? () => o.default : () => o;
        return S.d(d, { a: d }), d;
      }, S.d = (o, d) => {
        for (var m in d) S.o(d, m) && !S.o(o, m) && Object.defineProperty(o, m, { enumerable: !0, get: d[m] });
      }, S.o = (o, d) => Object.prototype.hasOwnProperty.call(o, d);
      var ue = {};
      S.d(ue, { default: () => Be });
      var Te = S(944), _ = S.n(Te);
      let { isSafari: Se, win: g, win: { document: le } } = _(), { error: Je } = _(), ge = g.URL || g.webkitURL || g;
      function fe(o) {
        let d = o.replace(/filename=.*;/, "").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);
        if (d && d.length > 3 && g.atob && g.ArrayBuffer && g.Uint8Array && g.Blob && ge.createObjectURL) {
          let m = g.atob(d[3]), O = new g.ArrayBuffer(m.length), V = new g.Uint8Array(O);
          for (let q = 0; q < V.length; ++q) V[q] = m.charCodeAt(q);
          return ge.createObjectURL(new g.Blob([V], { type: d[1] }));
        }
      }
      function se(o, d) {
        let m = g.navigator, O = le.createElement("a");
        if (typeof o != "string" && !(o instanceof String) && m.msSaveOrOpenBlob) return void m.msSaveOrOpenBlob(o, d);
        if (o = "" + o, m.userAgent.length > 1e3) throw Error("Input too long");
        let V = /Edge\/\d+/.test(m.userAgent);
        if ((Se && typeof o == "string" && o.indexOf("data:application/pdf") === 0 || V || o.length > 2e6) && !(o = fe(o) || "")) throw Error("Failed to convert to blob");
        if (O.download !== void 0) O.href = o, O.download = d, le.body.appendChild(O), O.click(), le.body.removeChild(O);
        else try {
          if (!g.open(o, "chart")) throw Error("Failed to open window");
        } catch {
          g.location.href = o;
        }
      }
      function xe(o, d) {
        let m = g.navigator, O = g.URL || g.webkitURL || g;
        try {
          if (m.msSaveOrOpenBlob && g.MSBlobBuilder) {
            let V = new g.MSBlobBuilder();
            return V.append(o), V.getBlob("image/svg+xml");
          }
          return O.createObjectURL(new g.Blob(["\uFEFF" + o], { type: d }));
        } catch {
        }
      }
      var Ee = S(660), ce = S.n(Ee), Le = S(960), Ce = S.n(Le);
      let Ae = { exporting: { csv: { annotations: { itemDelimiter: "; ", join: !1 }, columnHeaderFormatter: null, dateFormat: "%Y-%m-%d %H:%M:%S", decimalPoint: null, itemDelimiter: null, lineDelimiter: `
` }, menuItemDefinitions: { downloadCSV: { textKey: "downloadCSV", onclick: function() {
        this.exporting?.downloadCSV();
      } }, downloadXLS: { textKey: "downloadXLS", onclick: function() {
        this.exporting?.downloadXLS();
      } }, viewData: { textKey: "viewData", onclick: function() {
        this.exporting?.wrapLoading(this.exporting.toggleDataTable);
      } } }, showExportInProgress: !0, showTable: !1, useMultiLevelHeaders: !0, useRowspanHeaders: !0 }, lang: { downloadCSV: "Download CSV", downloadXLS: "Download XLS", exportData: { annotationHeader: "Annotations", categoryHeader: "Category", categoryDatetimeHeader: "DateTime" }, viewData: "View data table", hideData: "Hide data table", exportInProgress: "Exporting..." } }, { getOptions: Oe, setOptions: ke } = _(), { composed: Ve, doc: Ne, win: me } = _(), { addEvent: de, defined: Re, extend: be, find: Fe, fireEvent: ee, isNumber: He, pick: K, pushUnique: Ie } = _();
      (function(o) {
        function d() {
          this.wrapLoading(() => {
            let r = this.getCSV(!0);
            se(xe(r, "text/csv") || "data:text/csv,\uFEFF" + encodeURIComponent(r), this.getFilename() + ".csv");
          });
        }
        function m() {
          this.wrapLoading(() => {
            let r = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>Ark1</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--><style>td{border:none;font-family: Calibri, sans-serif;} .number{mso-number-format:"0.00";} .text{ mso-number-format:"@";}</style><meta name=ProgId content=Excel.Sheet><meta charset=UTF-8></head><body>' + this.getTable(!0) + "</body></html>";
            se(xe(r, "application/vnd.ms-excel") || "data:application/vnd.ms-excel;base64," + me.btoa(unescape(encodeURIComponent(r))), this.getFilename() + ".xls");
          });
        }
        function O(r) {
          let l = "", i = this.getDataRows(), t = this.options?.csv, a = K(t?.decimalPoint, t?.itemDelimiter !== "," && r ? 1.1.toLocaleString()[1] : "."), b = K(t?.itemDelimiter, a === "," ? ";" : ","), h = t?.lineDelimiter;
          return i.forEach((s, n) => {
            let f = "", y = s.length;
            for (; y--; ) typeof (f = s[y]) == "string" && (f = `"${f}"`), typeof f == "number" && a !== "." && (f = f.toString().replace(".", a)), s[y] = f;
            s.length = i.length ? i[0].length : 0, l += s.join(b), n < i.length - 1 && (l += h);
          }), l;
        }
        function V(r) {
          let l, i, t = this.chart, a = t.hasParallelCoordinates, b = t.time, h = this.options?.csv || {}, s = t.xAxis, n = {}, f = [], y = [], N = [], C = t.options.lang.exportData, E = C?.categoryHeader, z = C?.categoryDatetimeHeader, Y = function(e, u, v) {
            if (h.columnHeaderFormatter) {
              let T = h.columnHeaderFormatter(e, u, v);
              if (T !== !1) return T;
            }
            return !e && E ? E : !e.bindAxes && z && E ? e.options.title && e.options.title.text || (e.dateTime ? z : E) : r ? { columnTitle: ((v || 0) > 1 ? u : e.name) || "", topLevelColumnTitle: e.name } : e.name + ((v || 0) > 1 ? " (" + u + ")" : "");
          }, w = function(e, u, v) {
            let T = {}, Z = {};
            return u.forEach(function(B) {
              let W = (e.keyToAxis && e.keyToAxis[B] || B) + "Axis", U = He(v) ? e.chart[W][v] : e[W];
              T[B] = U && U.categories || [], Z[B] = U && U.dateTime;
            }), { categoryMap: T, dateTimeValueAxisMap: Z };
          }, p = function(e, u) {
            let v = e.pointArrayMap || ["y"];
            return e.data.some((T) => T.y !== void 0 && T.name) && u && !u.categories && e.exportKey !== "name" ? ["x", ...v] : v;
          }, x = [], L, c, A, k = 0, M, I;
          for (M in t.series.forEach(function(e) {
            let u = e.options.keys, v = e.xAxis, T = u || p(e, v), Z = T.length, B = !e.requireSorting && {}, W = s.indexOf(v), U = w(e, T), ye, R;
            if (e.options.includeInDataExport !== !1 && !e.options.isInternal && e.visible !== !1) {
              for (Fe(x, function(pe) {
                return pe[0] === W;
              }) || x.push([W, k]), R = 0; R < Z; ) A = Y(e, T[R], T.length), N.push(A.columnTitle || A), r && y.push(A.topLevelColumnTitle || A), R++;
              ye = { chart: e.chart, autoIncrement: e.autoIncrement, options: e.options, pointArrayMap: e.pointArrayMap, index: e.index }, e.options.data?.forEach(function(pe, te) {
                let D, ae, oe, J = { series: ye };
                a && (U = w(e, T, te)), e.pointClass.prototype.applyOptions.apply(J, [pe]);
                let ne = e.data[te] && e.data[te].name;
                if (D = (J.x ?? "") + "," + ne, R = 0, (!v || e.exportKey === "name" || !a && v && v.hasNames && ne) && (D = ne), B && (B[D] && (D += "|" + te), B[D] = !0), n[D]) {
                  let P = `${D},${n[D].pointers[e.index]}`, Q = D;
                  n[D].pointers[e.index] && (n[P] || (n[P] = [], n[P].xValues = [], n[P].pointers = []), D = P), n[Q].pointers[e.index] += 1;
                } else {
                  n[D] = [], n[D].xValues = [];
                  let P = [];
                  for (let Q = 0; Q < e.chart.series.length; Q++) P[Q] = 0;
                  n[D].pointers = P, n[D].pointers[e.index] = 1;
                }
                for (n[D].x = J.x, n[D].name = ne, n[D].xValues[W] = J.x; R < Z; ) ae = T[R], oe = e.pointClass.prototype.getNestedProperty.apply(J, [ae]), n[D][k + R] = K(U.categoryMap[ae][oe], U.dateTimeValueAxisMap[ae] ? b.dateFormat(h.dateFormat, oe) : null, oe), R++;
              }), k += R;
            }
          }), n) Object.hasOwnProperty.call(n, M) && f.push(n[M]);
          for (c = r ? [y, N] : [N], k = x.length; k--; ) l = x[k][0], i = x[k][1], L = s[l], f.sort(function(e, u) {
            return e.xValues[l] - u.xValues[l];
          }), I = Y(L), c[0].splice(i, 0, I), r && c[1] && c[1].splice(i, 0, I), f.forEach(function(e) {
            let u = e.name;
            L && !Re(u) && (L.dateTime ? (e.x instanceof Date && (e.x = e.x.getTime()), u = b.dateFormat(h.dateFormat, e.x)) : u = L.categories ? K(L.names[e.x], L.categories[e.x], e.x) : e.x), e.splice(i, 0, u);
          });
          return ee(t, "exportData", { dataRows: c = c.concat(f) }), c;
        }
        function q(r) {
          let l = (i) => {
            if (!i.tagName || i.tagName === "#text") return i.textContent || "";
            let t = i.attributes, a = `<${i.tagName}`;
            return t && Object.keys(t).forEach((b) => {
              let h = t[b];
              a += ` ${b}="${h}"`;
            }), a += ">", a += i.textContent || "", (i.children || []).forEach((b) => {
              a += l(b);
            }), a += `</${i.tagName}>`;
          };
          return l(this.getTableAST(r));
        }
        function Ue(r) {
          let l = 0, i = [], t = this, a = t.chart, b = a.options, h = r ? 1.1.toLocaleString()[1] : ".", s = K(t.options.useMultiLevelHeaders, !0), n = t.getDataRows(s), f = s ? n.shift() : null, y = n.shift(), N = function(w, p) {
            let x = w.length;
            if (p.length !== x) return !1;
            for (; x--; ) if (w[x] !== p[x]) return !1;
            return !0;
          }, C = function(w, p, x, L) {
            let c = K(L, ""), A = "highcharts-text" + (p ? " " + p : "");
            return typeof c == "number" ? (c = a.numberFormatter(c, -1, h, w === "th" ? "" : void 0), A = "highcharts-number") : L || (A = "highcharts-empty"), { tagName: w, attributes: x = be({ class: A }, x), textContent: c };
          }, { tableCaption: E } = t.options || {};
          E !== !1 && i.push({ tagName: "caption", attributes: { class: "highcharts-table-caption" }, textContent: typeof E == "string" ? E : b.title?.text || b.lang.chartTitle });
          for (let w = 0, p = n.length; w < p; ++w) n[w].length > l && (l = n[w].length);
          i.push(function(w, p, x) {
            let L = [], c = 0, A = x || p && p.length, k, M = 0, I;
            if (s && w && p && !N(w, p)) {
              let e = [];
              for (; c < A; ++c) if ((k = w[c]) === w[c + 1]) ++M;
              else if (M) e.push(C("th", "highcharts-table-topheading", { scope: "col", colspan: M + 1 }, k)), M = 0;
              else {
                k === p[c] ? t.options.useRowspanHeaders ? (I = 2, delete p[c]) : (I = 1, p[c] = "") : I = 1;
                let u = C("th", "highcharts-table-topheading", { scope: "col" }, k);
                I > 1 && u.attributes && (u.attributes.valign = "top", u.attributes.rowspan = I), e.push(u);
              }
              L.push({ tagName: "tr", children: e });
            }
            if (p) {
              let e = [];
              for (c = 0, A = p.length; c < A; ++c) p[c] !== void 0 && e.push(C("th", null, { scope: "col" }, p[c]));
              L.push({ tagName: "tr", children: e });
            }
            return { tagName: "thead", children: L };
          }(f, y || [], Math.max(l, y?.length || 0)));
          let z = [];
          n.forEach(function(w) {
            let p = [];
            for (let x = 0; x < l; x++) p.push(C(x ? "td" : "th", null, x ? {} : { scope: "row" }, w[x]));
            z.push({ tagName: "tr", children: p });
          }), i.push({ tagName: "tbody", children: z });
          let Y = { tree: { tagName: "table", id: `highcharts-data-table-${a.index}`, children: i } };
          return ee(a, "afterGetTableAST", Y), Y.tree;
        }
        function Pe() {
          this.toggleDataTable(!1);
        }
        function je(r) {
          let l = this.chart, i = (r = K(r, !this.isDataTableVisible)) && !this.dataTableDiv;
          if (i && (this.dataTableDiv = Ne.createElement("div"), this.dataTableDiv.className = "highcharts-data-table", l.renderTo.parentNode.insertBefore(this.dataTableDiv, l.renderTo.nextSibling)), this.dataTableDiv) {
            let s = this.dataTableDiv.style, n = s.display;
            s.display = r ? "block" : "none", r ? (this.dataTableDiv.innerHTML = ce().emptyHTML, new (ce())([this.getTableAST()]).addToDOM(this.dataTableDiv), ee(l, "afterViewData", { element: this.dataTableDiv, wasHidden: i || n !== s.display })) : ee(l, "afterHideData");
          }
          this.isDataTableVisible = r;
          let t = this.divElements, a = this.options, b = a.buttons?.contextButton.menuItems, h = l.options.lang;
          if (a && a.menuItemDefinitions && h && h.viewData && h.hideData && b && t) {
            let s = t[b.indexOf("viewData")];
            s && ce().setElementHTML(s, this.isDataTableVisible ? h.hideData : h.viewData);
          }
        }
        function $e() {
          this.toggleDataTable(!0);
        }
        function _e(r) {
          let l = this.chart, i = !!this.options.showExportInProgress, t = me.requestAnimationFrame || setTimeout;
          t(() => {
            i && l.showLoading(l.options.lang.exportInProgress), t(() => {
              try {
                r.call(this);
              } finally {
                i && l.hideLoading();
              }
            });
          });
        }
        function Ke() {
          let r = this.exporting, l = r?.dataTableDiv, i = (t, a) => t.children[a].textContent;
          if (l && r.options.allowTableSorting) {
            let t = l.querySelector("thead tr");
            t && t.childNodes.forEach((a) => {
              let b = l.querySelector("tbody");
              a.addEventListener("click", function() {
                let h = [...l.querySelectorAll("tr:not(thead tr)")], s = [...a.parentNode.children];
                if (r) {
                  let n, f;
                  h.sort((n = s.indexOf(a), f = r.ascendingOrderInTable = !r.ascendingOrderInTable, (y, N) => {
                    let C, E;
                    return C = i(f ? y : N, n), E = i(f ? N : y, n), C === "" || E === "" || isNaN(C) || isNaN(E) ? C.toString().localeCompare(E) : C - E;
                  })).forEach((y) => {
                    b?.appendChild(y);
                  }), s.forEach((y) => {
                    ["highcharts-sort-ascending", "highcharts-sort-descending"].forEach((N) => {
                      y.classList.contains(N) && y.classList.remove(N);
                    });
                  }), a.classList.add(r.ascendingOrderInTable ? "highcharts-sort-ascending" : "highcharts-sort-descending");
                }
              });
            });
          }
        }
        function Xe() {
          this.options?.exporting?.showTable && !this.options.chart.forExport && this.exporting?.viewData();
        }
        function qe() {
          this.exporting?.dataTableDiv?.remove();
        }
        o.compose = function(r, l, i) {
          if (!Ie(Ve, "ExportData")) return;
          be(Ce().prototype, { downloadCSV: function() {
            return this.exporting?.downloadCSV();
          }, downloadXLS: function() {
            return this.exporting?.downloadXLS();
          }, getCSV: function(a) {
            return this.exporting?.getCSV(a);
          }, getDataRows: function(a) {
            return this.exporting?.getDataRows(a);
          }, getTable: function(a) {
            return this.exporting?.getTable(a);
          }, getTableAST: function(a) {
            return this.exporting?.getTableAST(a);
          }, hideData: function() {
            return this.exporting?.hideData();
          }, toggleDataTable: function(a) {
            return this.exporting?.toggleDataTable(a);
          }, viewData: function() {
            return this.exporting?.viewData();
          } });
          let t = l.prototype;
          if (!t.downloadCSV) {
            de(r, "afterViewData", Ke), de(r, "render", Xe), de(r, "destroy", qe), t.downloadCSV = d, t.downloadXLS = m, t.getCSV = O, t.getDataRows = V, t.getTable = q, t.getTableAST = Ue, t.hideData = Pe, t.toggleDataTable = je, t.wrapLoading = _e, t.viewData = $e, ke(Ae);
            let a = Oe().exporting?.buttons?.contextButton?.menuItems;
            a && a.push("separator", "downloadCSV", "downloadXLS", "viewData");
            let { arearange: b, gantt: h, map: s, mapbubble: n, treemap: f, xrange: y } = i.types;
            b && (b.prototype.keyToAxis = { low: "y", high: "y" }), h && (h.prototype.exportKey = "name", h.prototype.keyToAxis = { start: "x", end: "x" }), s && (s.prototype.exportKey = "name"), n && (n.prototype.exportKey = "name"), f && (f.prototype.exportKey = "name"), y && (y.prototype.keyToAxis = { x2: "x" });
          }
        };
      })($ || ($ = {}));
      let Me = $, X = _();
      X.dataURLtoBlob = X.dataURLtoBlob || fe, X.downloadURL = X.downloadURL || se, Me.compose(X.Chart, X.Exporting, X.Series);
      let Be = _();
      return ue.default;
    })());
  }(re)), re.exports;
}
var De = Ye();
const Ze = /* @__PURE__ */ We(De), et = /* @__PURE__ */ Ge({
  __proto__: null,
  default: Ze
}, [De]);
export {
  et as e
};
