import { g as je } from "./index-DPCO-fqK.js";
function He($, J) {
  for (var W = 0; W < J.length; W++) {
    const m = J[W];
    if (typeof m != "string" && !Array.isArray(m)) {
      for (const _ in m)
        if (_ !== "default" && !(_ in $)) {
          const E = Object.getOwnPropertyDescriptor(m, _);
          E && Object.defineProperty($, _, E.get ? E : {
            enumerable: !0,
            get: () => m[_]
          });
        }
    }
  }
  return Object.freeze(Object.defineProperty($, Symbol.toStringTag, { value: "Module" }));
}
var G = { exports: {} }, Ie = G.exports, se;
function Se() {
  return se || (se = 1, function($, J) {
    /**
    * Highcharts JS v12.5.0 (2026-01-12)
    * @module highcharts/modules/funnel
    * @requires highcharts
    *
    * Highcharts funnel module
    *
    * (c) 2010-2026 Highsoft AS
    * Author: Torstein Honsi
    *
    * A commercial license may be required depending on use.
    * See www.highcharts.com/license
    */
    (function(W, m) {
      $.exports = m(W._Highcharts, W._Highcharts.SeriesRegistry);
    })("u" < typeof window ? Ie : window, (W, m) => (() => {
      var _ = { 512: (a) => {
        a.exports = m;
      }, 944: (a) => {
        a.exports = W;
      } }, E = {};
      function x(a) {
        var t = E[a];
        if (t !== void 0) return t.exports;
        var s = E[a] = { exports: {} };
        return _[a](s, s.exports, x), s.exports;
      }
      x.n = (a) => {
        var t = a && a.__esModule ? () => a.default : () => a;
        return x.d(t, { a: t }), t;
      }, x.d = (a, t) => {
        for (var s in t) x.o(t, s) && !x.o(a, s) && Object.defineProperty(a, s, { enumerable: !0, get: t[s] });
      }, x.o = (a, t) => Object.prototype.hasOwnProperty.call(a, t);
      var te = {};
      x.d(te, { default: () => De });
      var le = x(944), O = x.n(le);
      let { defaultOptions: Ye } = O(), { noop: Be } = O(), { addEvent: Xe, extend: Ee, isObject: he, merge: pe, relativeLength: Fe } = O(), ce = { radius: 0, scope: "stack", where: void 0 };
      function ue(a, t) {
        return he(a) || (a = { radius: a || 0 }), pe(ce, t, a);
      }
      var fe = x(512), U = x.n(fe);
      let { composed: ge, noop: ae } = O(), { column: xe, pie: K } = U().seriesTypes, { addEvent: ye, correctFloat: be, extend: Le, fireEvent: ve, isArray: me, merge: Me, pick: Ae, pushUnique: We, relativeLength: ie, splat: Oe } = O(), Pe = U().series.prototype.alignDataLabel;
      function F(a, t) {
        return /%$/.test(a) ? t * parseInt(a, 10) / 100 : parseInt(a, 10);
      }
      class N extends K {
        alignDataLabel(t, s, l, M, j) {
          let P = t.series, C = P.options.reversed, p = t.dlBox || t.shapeArgs, { align: q, padding: u = 0, verticalAlign: c } = l, H = ((P.options || {}).dataLabels || {}).inside, b = P.center[1], w = t.plotY || 0, I = s.height ?? s.getBBox().height, S = P.getWidthAt((C ? 2 * b - w : w) - p.height / 2 + I), T = c === "middle" ? (p.topWidth - p.bottomWidth) / 4 : (S - p.bottomWidth) / 2, Y = p.y, k = p.x;
          c === "middle" ? Y = p.y - p.height / 2 + I / 2 : c === "top" && (Y = p.y - p.height + I + u), (c === "top" && !C || c === "bottom" && C || c === "middle") && (q === "right" ? k = p.x - u + T : q === "left" && (k = p.x + u - T)), M = { x: k, y: C ? Y - p.height : Y, width: p.bottomWidth, height: p.height }, l.verticalAlign = "bottom", H && (l.distance = void 0), H && t.visible && Pe.call(P, t, s, l, M, j), H && (!t.visible && t.dataLabel && (t.dataLabel.placed = !1), t.contrastColor && s.css({ color: t.contrastColor }));
        }
        drawDataLabels() {
          (Oe(this.options.dataLabels || {})[0].inside ? xe : K).prototype.drawDataLabels.call(this);
        }
        getDataLabelPosition(t, s) {
          let l = t.plotY || 0, M = t.half ? 1 : -1, j = this.getX(l, !!t.half, t);
          return { distance: s, natural: { x: 0, y: l }, computed: {}, alignment: t.half ? "right" : "left", connectorPosition: { breakAt: { x: j + (s - 5) * M, y: l }, touchingSliceAt: { x: j + s * M, y: l } } };
        }
        translate() {
          let t = this, s = t.chart, l = t.options, M = l.reversed, j = l.ignoreHiddenPoint, P = ue(l.borderRadius), C = s.plotWidth, p = s.plotHeight, q = l.center, u = F(q[0], C), c = F(q[1], p), H = F(l.width, C), b = F(l.height, p), w = F(l.neckWidth, C), I = F(l.neckHeight, p), S = c - b / 2 + b - I, T = t.points, Y = ie(P.radius, H), k = P.scope, _e = +(l.dataLabels.position === "left"), z = (o) => {
            let y = Math.tan(o / 2), L = Math.cos(B), D = Math.sin(B), V = Y, e = V / y, g = Math.tan((Math.PI - o) / 3.2104);
            return e > X && (V = (e = X) * y), { dx: [e * L, (e - (g *= V)) * L, e - g, e], dy: [e * D, (e - g) * D, e - g, e].map((ne) => M ? -ne : ne) };
          }, ee = 0, oe = 0, R, f, Z, B, X, A, h, v, r, i, d, n;
          for (let o of (t.getWidthAt = function(y) {
            let L = c - b / 2;
            return y > S || b === I ? w : w + (H - w) * (1 - (y - L) / (b - I));
          }, t.getX = function(y, L, D) {
            return u + (L ? -1 : 1) * (t.getWidthAt(M ? 2 * c - y : y) / 2 + (D.dataLabel?.dataLabelPosition?.distance ?? ie(this.options.dataLabels?.distance || 0, H)));
          }, t.center = [u, c, b], t.centerX = u, T)) o.y && o.isValid() && (!j || o.visible !== !1) && (ee += o.y);
          for (let o of T) {
            if (n = null, Z = ee ? o.y / ee : 0, i = (h = c - b / 2 + oe * b) + Z * b, v = (A = u - (R = t.getWidthAt(h)) / 2) + R, d = (r = u - (R = t.getWidthAt(i)) / 2) + R, be(h) >= S ? (A = r = u - w / 2, v = d = u + w / 2) : i > S && (n = i, d = (r = u - (R = t.getWidthAt(S)) / 2) + R, i = S), M && (h = 2 * c - h, i = 2 * c - i, n !== null && (n = 2 * c - n)), Y && (k === "point" || o.index === 0 || o.index === T.length - 1 || n !== null)) {
              let y = Math.abs(i - h), L = v - d, D = d - r, V = Math.sqrt(L * L + y * y);
              B = Math.atan(L !== 0 ? y / L : 1 / 0), X = V / 2, n !== null && (X = Math.min(X, Math.abs(n - i) / 2)), D >= 1 && (X = Math.min(X, D / 2));
              let e = z(B);
              if (f = k === "stack" && o.index !== 0 ? [["M", A, h], ["L", v, h]] : [["M", A + e.dx[0], h + e.dy[0]], ["C", A + e.dx[1], h + e.dy[1], A + e.dx[2], h, A + e.dx[3], h], ["L", v - e.dx[3], h], ["C", v - e.dx[2], h, v - e.dx[1], h + e.dy[1], v - e.dx[0], h + e.dy[0]]], n !== null) {
                let g = z(Math.PI / 2);
                e = z(Math.PI / 2 + B), f.push(["L", d + e.dx[0], i - e.dy[0]], ["C", d + e.dx[1], i - e.dy[1], d, i + e.dy[2], d, i + e.dy[3]]), k === "stack" && o.index !== T.length - 1 ? f.push(["L", d, n], ["L", r, n]) : f.push(["L", d, n - g.dy[3]], ["C", d, n - g.dy[2], d - g.dx[2], n, d - g.dx[3], n], ["L", r + g.dx[3], n], ["C", r + g.dx[2], n, r, n - g.dy[2], r, n - g.dy[3]]), f.push(["L", r, i + e.dy[3]], ["C", r, i + e.dy[2], r - e.dx[1], i - e.dy[1], r - e.dx[0], i - e.dy[0]]);
              } else D >= 1 ? (e = z(Math.PI - B), k === "stack" && o.index === 0 ? f.push(["L", d, i], ["L", r, i]) : f.push(["L", d + e.dx[0], i - e.dy[0]], ["C", d + e.dx[1], i - e.dy[1], d - e.dx[2], i, d - e.dx[3], i], ["L", r + e.dx[3], i], ["C", r + e.dx[2], i, r - e.dx[1], i - e.dy[1], r - e.dx[0], i - e.dy[0]])) : (e = z(Math.PI - 2 * B), f.push(["L", r + e.dx[0], i - e.dy[0]], ["C", r + e.dx[1], i - e.dy[1], r - e.dx[1], i - e.dy[1], r - e.dx[0], i - e.dy[0]]));
            } else f = [["M", A, h], ["L", v, h], ["L", d, i]], n !== null && f.push(["L", d, n], ["L", r, n]), f.push(["L", r, i]);
            f.push(["Z"]), o.shapeType = "path", o.shapeArgs = { d: f }, o.percentage = 100 * Z, o.plotX = u, o.plotY = (h + (n || i)) / 2, o.tooltipPos = [u, o.plotY], o.dlBox = { x: r, y: h, topWidth: v - A, bottomWidth: d - r, height: Math.abs(Ae(n, i) - h), width: NaN }, o.slice = ae, o.half = _e, o.isValid() && (!j || o.visible !== !1) && (oe += Z);
          }
          ve(t, "afterTranslate");
        }
        sortByAngle(t) {
          t.sort((s, l) => s.plotY - l.plotY);
        }
      }
      function Ce() {
        for (let a of this.series) {
          let t = a.options && a.options.dataLabels;
          me(t) && (t = t[0]), a.is("pie") && a.placeDataLabels && t && !t.inside && a.placeDataLabels();
        }
      }
      N.defaultOptions = Me(K.defaultOptions, { animation: !1, borderRadius: 0, center: ["50%", "50%"], width: "90%", neckWidth: "30%", height: "100%", neckHeight: "25%", reversed: !1, size: !0, dataLabels: { connectorWidth: 1, verticalAlign: "middle" }, states: { select: { color: "#cccccc", borderColor: "#000000" } } }), Le(N.prototype, { animate: ae }), (N || (N = {})).compose = function(a) {
        We(ge, "FunnelSeries") && ye(a, "afterHideAllOverlappingLabels", Ce);
      }, U().registerSeriesType("funnel", N);
      let Q = N, { merge: we } = O();
      class re extends Q {
      }
      re.defaultOptions = we(Q.defaultOptions, { neckHeight: "0%", neckWidth: "0%", reversed: !0 }), U().registerSeriesType("pyramid", re);
      let ke = O();
      Q.compose(ke.Chart);
      let De = O();
      return te.default;
    })());
  }(G)), G.exports;
}
var de = Se();
const Te = /* @__PURE__ */ je(de), Re = /* @__PURE__ */ He({
  __proto__: null,
  default: Te
}, [de]);
export {
  Re as f
};
