!/**
 * Highcharts JS v12.6.0 (2026-04-13)
 * @module highcharts/modules/cylinder
 * @requires highcharts
 * @requires highcharts/highcharts-3d
 *
 * Highcharts cylinder module
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Kacper Madej
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(t._Highcharts,t._Highcharts.Color,t._Highcharts.RendererRegistry,t._Highcharts.SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/modules/cylinder",["highcharts/highcharts"],function(t){return r(t,t.Color,t.RendererRegistry,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/modules/cylinder"]=r(t._Highcharts,t._Highcharts.Color,t._Highcharts.RendererRegistry,t._Highcharts.SeriesRegistry):t.Highcharts=r(t.Highcharts,t.Highcharts.Color,t.Highcharts.RendererRegistry,t.Highcharts.SeriesRegistry)}("u"<typeof window?this:window,function(t,r,e,n){return function(){"use strict";var o,i,s,c={512:function(t){t.exports=n},608:function(t){t.exports=e},620:function(t){t.exports=r},944:function(r){r.exports=t}},u={};function p(t){var r=u[t];if(void 0!==r)return r.exports;var e=u[t]={exports:{}};return c[t](e,e.exports,p),e.exports}p.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return p.d(r,{a:r}),r},p.d=function(t,r){for(var e in r)p.o(r,e)&&!p.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},p.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)};var a={};p.d(a,{default:function(){return G}});var h=p(944),y=p.n(h),l=function(t,r,e){if(e||2==arguments.length)for(var n,o=0,i=r.length;o<i;o++)!n&&o in r||(n||(n=Array.prototype.slice.call(r,0,o)),n[o]=r[o]);return t.concat(n||Array.prototype.slice.call(r))};function f(t,r){var e;for(e in t||(t={}),r)t[e]=r[e];return t}function d(t){return g(t)&&"number"==typeof t.nodeType}function g(t,r){var e;return!!t&&"object"==typeof t&&(!r||"[object Array]"!==(e=Object.prototype.toString.call(t))&&"[object Array Iterator]"!==e)}function v(){for(var t=arguments,r=t.length,e=0;e<r;e++){var n=t[e];if(null!=n)return n}}y().doc,y().win,Array.prototype.find;var x=y().deg2rad,_=p(620),b=p.n(_),C=p(608),z=p.n(C),m=(o=function(t,r){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])})(t,r)},function(t,r){function e(){this.constructor=t}o(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}),O=b().parse,j=function(t){function r(){var r=null!==t&&t.apply(this,arguments)||this;return r.parts=["top","bottom","front","back"],r.pathType="cylinder",r}return m(r,t),r.prototype.fillSetter=function(t){return this.singleSetterForParts("fill",null,{front:t,back:t,top:O(t).brighten(.1).get(),bottom:O(t).brighten(-.1).get()}),this.color=this.fill=t,this},r}(z().getRendererType().prototype.Element3D),w=y().charts,A=y().deg2rad;function M(t){return!t.some(function(t){return"C"===t[0]})}function P(t){return this.element3d("cylinder",t)}function H(t){var r=w[this.chartIndex],e=this.cuboidPath(t),n=!e.isTop,o=!e.isFront,i=this.getCylinderEnd(r,t),s=this.getCylinderEnd(r,t,!0);return{front:this.getCylinderFront(i,s),back:this.getCylinderBack(i,s),top:i,bottom:s,zIndexes:{top:3*!!n,bottom:3*!n,front:o?2:1,back:o?1:2,group:e.zIndexes.group}}}function R(t){for(var r=[["M",t[0].x,t[0].y]],e=t.length-2,n=1;n<e;n+=3)r.push(["C",t[n].x,t[n].y,t[n+1].x,t[n+1].y,t[n+2].x,t[n+2].y]);return r}function T(t,r){var e=[];if(M(t)){var n=t[0],o=t[2];"M"===n[0]&&"L"===o[0]&&(e.push(["M",o[1],o[2]]),e.push(t[3]),e.push(["L",n[1],n[2]]))}else"C"===t[2][0]&&e.push(["M",t[2][5],t[2][6]]),e.push(t[3],t[4]);if(M(r)){var n=r[0];"M"===n[0]&&(e.push(["L",n[1],n[2]]),e.push(r[3]),e.push(r[2]))}else{var i=r[2],s=r[3],c=r[4];"C"===i[0]&&"C"===s[0]&&"C"===c[0]&&(e.push(["L",c[5],c[6]]),e.push(["C",c[3],c[4],c[1],c[2],s[5],s[6]]),e.push(["C",s[3],s[4],s[1],s[2],i[5],i[6]]))}return e.push(["Z"]),e}function B(t,r,e){for(var n,o,i,s,c,u,p,a,h,y,l,f,d,g=r.width,_=void 0===g?0:g,b=r.height,C=r.alphaCorrection,z=v(r.depth,_,0),m=Math.min(_,z)/2,O=A*(t.options.chart.options3d.beta-90+(void 0===C?0:C)),j=(r.y||0)+(e?void 0===b?0:b:0),w=.5519*m,M=_/2+(r.x||0),P=z/2+(r.z||0),H=[{x:0,y:j,z:m},{x:w,y:j,z:m},{x:m,y:j,z:w},{x:m,y:j,z:0},{x:m,y:j,z:-w},{x:w,y:j,z:-m},{x:0,y:j,z:-m},{x:-w,y:j,z:-m},{x:-m,y:j,z:-w},{x:-m,y:j,z:0},{x:-m,y:j,z:w},{x:-w,y:j,z:m},{x:0,y:j,z:m}],R=Math.cos(O),T=Math.sin(O),B=0;B<H.length;B++){var S=H[B];f=S.x,d=S.z,S.x=f*R-d*T+M,S.z=d*R+f*T+P}var L=(n=H,i=!0,s=(o=t).options.chart.options3d,c=v(void 0,!!i&&o.inverted),u={x:o.plotWidth/2,y:o.plotHeight/2,z:s.depth/2,vd:v(s.depth,1)*v(s.viewDistance,0)},p=o.scale3d||1,a=x*s.beta*(c?-1:1),y={cosA:Math.cos(h=x*s.alpha*(c?-1:1)),cosB:Math.cos(-a),sinA:Math.sin(h),sinB:Math.sin(-a)},i||(u.x+=o.plotLeft,u.y+=o.plotTop),n.map(function(t){var r,e,n,o=(r=(c?t.y:t.x)-u.x,e=(c?t.x:t.y)-u.y,n=(t.z||0)-u.z,{x:y.cosB*r-y.sinB*n,y:-y.sinA*y.sinB*r+y.cosA*e-y.cosB*y.sinA*n,z:y.cosA*y.sinB*r+y.sinA*e+y.cosA*y.cosB*n}),i=function(t,r,e){var n=e>0&&e<1/0?e/(t.z+r.z+e):1;return{x:t.x*n,y:t.y*n}}(o,u,u.vd);return i.x=i.x*p+u.x,i.y=i.y*p+u.y,i.z=o.z*p+u.z,{x:c?i.y:i.x,y:c?i.x:i.y,z:i.z}}));return 2.5>Math.abs(L[3].y-L[9].y)&&2.5>Math.abs(L[0].y-L[6].y)?this.toLinePath([L[0],L[3],L[6],L[9]],!0):this.getCurvedPath(L)}function S(t,r){var e=t.slice(0,3);if(M(r)){var n=r[0];"M"===n[0]&&(e.push(r[2]),e.push(r[1]),e.push(["L",n[1],n[2]]))}else{var n=r[0],o=r[1],i=r[2];"M"===n[0]&&"C"===o[0]&&"C"===i[0]&&(e.push(["L",i[5],i[6]]),e.push(["C",i[3],i[4],i[1],i[2],o[5],o[6]]),e.push(["C",o[3],o[4],o[1],o[2],n[1],n[2]]))}return e.push(["Z"]),e}var L=function(t){var r=t.prototype;r.cylinder||(r.Element3D.types.cylinder=j,f(r,{cylinder:P,cylinderPath:H,getCurvedPath:R,getCylinderBack:T,getCylinderEnd:B,getCylinderFront:S}))},E=p(512),k=p.n(E),F=(i=function(t,r){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])})(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function e(){this.constructor=t}i(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}),I=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return F(r,t),r}(k().seriesTypes.column.prototype.pointClass);f(I.prototype,{shapeType:"cylinder"});var D={},Z=(s=function(t,r){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])})(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function e(){this.constructor=t}s(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}),W=k().seriesTypes.column,q=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return Z(r,t),r.compose=L,r.defaultOptions=function(t){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];var n,o=l([t],r,!0),i={},s=function(t,r){return"object"!=typeof t&&(t={}),function(t,r,e){for(var n in t)Object.hasOwnProperty.call(t,n)&&r.call((0,t[n]),t[n],n,t)}(r,function(e,n){if("__proto__"!==n&&"constructor"!==n){var o;!g(e,!0)||(o=null==e?void 0:e.constructor,g(e,!0)&&!d(e)&&(null==o?void 0:o.name)&&"Object"!==o.name)||d(e)?t[n]=r[n]:t[n]=s(t[n]||{},e)}}),t};!0===t&&(i=o[1],o=Array.prototype.slice.call(o,2));var c=o.length;for(n=0;n<c;n++)i=s(i,o[n]);return i}(W.defaultOptions,D),r}(W);f(q.prototype,{pointClass:I}),k().registerSeriesType("cylinder",q),q.compose(z().getRendererType());var G=y();return a.default}()});