!/**
 * Highcharts JS v12.5.0 (2026-01-12)
 * @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(require("highcharts"),require("highcharts").Color,require("highcharts").RendererRegistry,require("highcharts").SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/modules/cylinder",[["highcharts/highcharts"],["highcharts/highcharts","Color"],["highcharts/highcharts","RendererRegistry"],["highcharts/highcharts","SeriesRegistry"]],r):"object"==typeof exports?exports["highcharts/modules/cylinder"]=r(require("highcharts"),require("highcharts").Color,require("highcharts").RendererRegistry,require("highcharts").SeriesRegistry):t.Highcharts=r(t.Highcharts,t.Highcharts.Color,t.Highcharts.RendererRegistry,t.Highcharts.SeriesRegistry)}(this,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}},h={};function u(t){var r=h[t];if(void 0!==r)return r.exports;var e=h[t]={exports:{}};return c[t](e,e.exports,u),e.exports}u.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return u.d(r,{a:r}),r},u.d=function(t,r){for(var e in r)u.o(r,e)&&!u.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},u.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)};var p={};u.d(p,{default:function(){return K}});var a=u(944),y=u.n(a),l=y().deg2rad,f=y().pick,d=u(620),g=u.n(d),x=u(608),v=u.n(x),C=(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)}),b=g().parse,z=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 C(r,t),r.prototype.fillSetter=function(t){return this.singleSetterForParts("fill",null,{front:t,back:t,top:b(t).brighten(.1).get(),bottom:b(t).brighten(-.1).get()}),this.color=this.fill=t,this},r}(v().getRendererType().prototype.Element3D),_=y().charts,m=y().deg2rad,O=y().extend,M=y().pick;function P(t){return!t.some(function(t){return"C"===t[0]})}function R(t){return this.element3d("cylinder",t)}function j(t){var r=_[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 w(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 A(t,r){var e=[];if(P(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(P(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 T(t,r,e){for(var n,o,i,s,c,h,u,p,a,y,d,g,x,v=r.width,C=void 0===v?0:v,b=r.height,z=r.alphaCorrection,_=M(r.depth,C,0),O=Math.min(C,_)/2,P=m*(t.options.chart.options3d.beta-90+(void 0===z?0:z)),R=(r.y||0)+(e?void 0===b?0:b:0),j=.5519*O,w=C/2+(r.x||0),A=_/2+(r.z||0),T=[{x:0,y:R,z:O},{x:j,y:R,z:O},{x:O,y:R,z:j},{x:O,y:R,z:0},{x:O,y:R,z:-j},{x:j,y:R,z:-O},{x:0,y:R,z:-O},{x:-j,y:R,z:-O},{x:-O,y:R,z:-j},{x:-O,y:R,z:0},{x:-O,y:R,z:j},{x:-j,y:R,z:O},{x:0,y:R,z:O}],B=Math.cos(P),S=Math.sin(P),k=0;k<T.length;k++){var q=T[k];g=q.x,x=q.z,q.x=g*B-x*S+w,q.z=x*B+g*S+A}var L=(n=T,i=!0,s=(o=t).options.chart.options3d,c=f(void 0,!!i&&o.inverted),h={x:o.plotWidth/2,y:o.plotHeight/2,z:s.depth/2,vd:f(s.depth,1)*f(s.viewDistance,0)},u=o.scale3d||1,p=l*s.beta*(c?-1:1),y={cosA:Math.cos(a=l*s.alpha*(c?-1:1)),cosB:Math.cos(-p),sinA:Math.sin(a),sinB:Math.sin(-p)},i||(h.x+=o.plotLeft,h.y+=o.plotTop),n.map(function(t){var r,e,n,o=(r=(c?t.y:t.x)-h.x,e=(c?t.x:t.y)-h.y,n=(t.z||0)-h.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,h,h.vd);return i.x=i.x*u+h.x,i.y=i.y*u+h.y,i.z=o.z*u+h.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 B(t,r){var e=t.slice(0,3);if(P(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 S=function(t){var r=t.prototype;r.cylinder||(r.Element3D.types.cylinder=z,O(r,{cylinder:R,cylinderPath:j,getCurvedPath:w,getCylinderBack:A,getCylinderEnd:T,getCylinderFront:B}))},k=u(512),q=u.n(k),L=(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)}),E=q().seriesTypes.column.prototype.pointClass,H=y().extend,F=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return L(r,t),r}(E);H(F.prototype,{shapeType:"cylinder"});var D={},I=(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)}),Z=q().seriesTypes.column,W=y().extend,G=y().merge,J=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return I(r,t),r.compose=S,r.defaultOptions=G(Z.defaultOptions,D),r}(Z);W(J.prototype,{pointClass:F}),q().registerSeriesType("cylinder",J),J.compose(v().getRendererType());var K=y();return p.default}()});