!/**
 * Highcharts JS v13.0.0 (2026-06-11)
 * @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,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(t._Highcharts,t._Highcharts.SVGRenderer,t._Highcharts.Color,t._Highcharts.SVGElement,t._Highcharts.SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/modules/cylinder",["highcharts/highcharts"],function(t){return e(t,t.SVGRenderer,t.Color,t.SVGElement,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/modules/cylinder"]=e(t._Highcharts,t._Highcharts.SVGRenderer,t._Highcharts.Color,t._Highcharts.SVGElement,t._Highcharts.SeriesRegistry):t.Highcharts=e(t.Highcharts,t.Highcharts.SVGRenderer,t.Highcharts.Color,t.Highcharts.SVGElement,t.Highcharts.SeriesRegistry)}("u"<typeof window?this:window,function(t,e,r,n,o){return function(){"use strict";var i,s,p,c,h={28:function(t){t.exports=n},512:function(t){t.exports=o},540:function(t){t.exports=e},620:function(t){t.exports=r},944:function(e){e.exports=t}},a={};function u(t){var e=a[t];if(void 0!==e)return e.exports;var r=a[t]={exports:{}};return h[t](r,r.exports,u),r.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 r in e)u.o(e,r)&&!u.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},u.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var l={};u.d(l,{default:function(){return J}});var f=u(944),d=u.n(f),y=u(540),g=u.n(y),x=d().deg2rad,v=u(620),_=u.n(v),b=u(28),z=u.n(b),S=(i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),C=_().parse,m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.parts=["front","top","side"],e.pathType="cuboid",e}return S(e,t),e.prototype.initArgs=function(t){for(var e=this.renderer,r=e[this.pathType+"Path"](t),n=r.zIndexes,o=0,i=this.parts;o<i.length;o++){var s=i[o],p={class:"highcharts-3d-"+s,zIndex:n[s]||0};e.styledMode&&("top"===s?p.filter="url(#highcharts-brighter)":"side"===s&&(p.filter="url(#highcharts-darker)")),this[s]=e.path(r[s]).attr(p).add(this)}this.attr({"stroke-linejoin":"round",zIndex:n.group}),this.forcedSides=r.forcedSides},e.prototype.singleSetterForParts=function(t,e,r,n,o,i){var s={},p=[null,null,n||"attr",o,i],c=null==r?void 0:r.zIndexes;if(r){(null==c?void 0:c.group)&&this.attr({zIndex:c.group});for(var h=0,a=Object.keys(r);h<a.length;h++){var u=a[h];s[u]={},s[u][t]=r[u],c&&(s[u].zIndex=r.zIndexes[u]||0)}p[1]=s}else s[t]=e,p[0]=s;return this.processParts.apply(this,p)},e.prototype.processParts=function(t,e,r,n,o){for(var i=0,s=this.parts;i<s.length;i++){var p=s[i];e&&(t=(0,f.pick)(e[p],!1)),!1!==t&&this[p][r](t,n,o)}return this},e.prototype.destroy=function(){return this.processParts(null,null,"destroy"),t.prototype.destroy.call(this)},e.prototype.attr=function(e,r,n,o){if("string"==typeof e&&void 0!==r){var i=e;(e={})[i]=r}return e.shapeArgs||(0,f.defined)(e.x)?this.singleSetterForParts("d",null,this.renderer[this.pathType+"Path"](e.shapeArgs||e)):t.prototype.attr.call(this,e,void 0,n,o)},e.prototype.animate=function(e,r,n){if((0,f.defined)(e.x)&&(0,f.defined)(e.y)){var o=this.renderer[this.pathType+"Path"](e),i=o.forcedSides;this.singleSetterForParts("d",null,o,"animate",r,n),this.attr({zIndex:o.zIndexes.group}),i!==this.forcedSides&&(this.forcedSides=i,this.renderer.styledMode||this.fillSetter(this.fill))}else t.prototype.animate.call(this,e,r,n);return this},e.prototype.fillSetter=function(t){return this.forcedSides=this.forcedSides||[],this.singleSetterForParts("fill",null,{front:t,top:C(t).brighten(this.forcedSides.indexOf("top")>=0?0:.1).get(),side:C(t).brighten(this.forcedSides.indexOf("side")>=0?0:-.1).get()}),this.color=this.fill=t,this},e.types={base:e,cuboid:e},e}(z()),O=(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),P=_().parse,M=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.parts=["top","bottom","front","back"],e.pathType="cylinder",e}return O(e,t),e.prototype.fillSetter=function(t){return this.singleSetterForParts("fill",null,{front:t,back:t,top:P(t).brighten(.1).get(),bottom:P(t).brighten(-.1).get()}),this.color=this.fill=t,this},e}(m),j=d().charts,w=d().deg2rad;function H(t){return!t.some(function(t){return"C"===t[0]})}function A(t){return this.element3d("cylinder",t)}function k(t){var e=j[this.chartIndex],r=this.cuboidPath(t),n=!r.isTop,o=!r.isFront,i=this.getCylinderEnd(e,t),s=this.getCylinderEnd(e,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:r.zIndexes.group}}}function T(t){for(var e=[["M",t[0].x,t[0].y]],r=t.length-2,n=1;n<r;n+=3)e.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 e}function I(t,e){var r=[];if(H(t)){var n=t[0],o=t[2];"M"===n[0]&&"L"===o[0]&&(r.push(["M",o[1],o[2]]),r.push(t[3]),r.push(["L",n[1],n[2]]))}else"C"===t[2][0]&&r.push(["M",t[2][5],t[2][6]]),r.push(t[3],t[4]);if(H(e)){var n=e[0];"M"===n[0]&&(r.push(["L",n[1],n[2]]),r.push(e[3]),r.push(e[2]))}else{var i=e[2],s=e[3],p=e[4];"C"===i[0]&&"C"===s[0]&&"C"===p[0]&&(r.push(["L",p[5],p[6]]),r.push(["C",p[3],p[4],p[1],p[2],s[5],s[6]]),r.push(["C",s[3],s[4],s[1],s[2],i[5],i[6]]))}return r.push(["Z"]),r}function E(t,e,r){for(var n,o,i,s,p,c,h,a,u,l,d,y,g,v=e.width,_=void 0===v?0:v,b=e.height,z=e.alphaCorrection,S=(0,f.pick)(e.depth,_,0),C=Math.min(_,S)/2,m=w*(t.options.chart.options3d.beta-90+(void 0===z?0:z)),O=(e.y||0)+(r?void 0===b?0:b:0),P=.5519*C,M=_/2+(e.x||0),j=S/2+(e.z||0),H=[{x:0,y:O,z:C},{x:P,y:O,z:C},{x:C,y:O,z:P},{x:C,y:O,z:0},{x:C,y:O,z:-P},{x:P,y:O,z:-C},{x:0,y:O,z:-C},{x:-P,y:O,z:-C},{x:-C,y:O,z:-P},{x:-C,y:O,z:0},{x:-C,y:O,z:P},{x:-P,y:O,z:C},{x:0,y:O,z:C}],A=Math.cos(m),k=Math.sin(m),T=0;T<H.length;T++){var I=H[T];y=I.x,g=I.z,I.x=y*A-g*k+M,I.z=g*A+y*k+j}var E=(n=H,i=!0,s=(o=t).options.chart.options3d,p=(0,f.pick)(void 0,!!i&&o.inverted),c={x:o.plotWidth/2,y:o.plotHeight/2,z:s.depth/2,vd:(0,f.pick)(s.depth,1)*(0,f.pick)(s.viewDistance,0)},h=o.scale3d||1,a=x*s.beta*(p?-1:1),l={cosA:Math.cos(u=x*s.alpha*(p?-1:1)),cosB:Math.cos(-a),sinA:Math.sin(u),sinB:Math.sin(-a)},i||(c.x+=o.plotLeft,c.y+=o.plotTop),n.map(function(t){var e,r,n,o=(e=(p?t.y:t.x)-c.x,r=(p?t.x:t.y)-c.y,n=(t.z||0)-c.z,{x:l.cosB*e-l.sinB*n,y:-l.sinA*l.sinB*e+l.cosA*r-l.cosB*l.sinA*n,z:l.cosA*l.sinB*e+l.sinA*r+l.cosA*l.cosB*n}),i=function(t,e,r){var n=r>0&&r<1/0?r/(t.z+e.z+r):1;return{x:t.x*n,y:t.y*n}}(o,c,c.vd);return i.x=i.x*h+c.x,i.y=i.y*h+c.y,i.z=o.z*h+c.z,{x:p?i.y:i.x,y:p?i.x:i.y,z:i.z}}));return 2.5>Math.abs(E[3].y-E[9].y)&&2.5>Math.abs(E[0].y-E[6].y)?this.toLinePath([E[0],E[3],E[6],E[9]],!0):this.getCurvedPath(E)}function B(t,e){var r=t.slice(0,3);if(H(e)){var n=e[0];"M"===n[0]&&(r.push(e[2]),r.push(e[1]),r.push(["L",n[1],n[2]]))}else{var n=e[0],o=e[1],i=e[2];"M"===n[0]&&"C"===o[0]&&"C"===i[0]&&(r.push(["L",i[5],i[6]]),r.push(["C",i[3],i[4],i[1],i[2],o[5],o[6]]),r.push(["C",o[3],o[4],o[1],o[2],n[1],n[2]]))}return r.push(["Z"]),r}var F=function(t){var e=t.prototype;e.cylinder||(e.Element3D.types.cylinder=M,(0,f.extend)(e,{cylinder:A,cylinderPath:k,getCurvedPath:T,getCylinderBack:I,getCylinderEnd:E,getCylinderFront:B}))},G=u(512),L=u.n(G),R=(p=function(t,e){return(p=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return R(e,t),e}(L().seriesTypes.column.prototype.pointClass);(0,f.extend)(V.prototype,{shapeType:"cylinder"});var D={},Z=(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),W=L().seriesTypes.column,q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Z(e,t),e.compose=F,e.defaultOptions=(0,f.merge)(W.defaultOptions,D),e}(W);(0,f.extend)(q.prototype,{pointClass:V}),L().registerSeriesType("cylinder",q),q.compose(g());var J=d();return l.default}()});