UNPKG

highcharts

Version:
12 lines 44.7 kB
/** * Highcharts JS v12.6.0 (2026-04-13) * @module highcharts/highcharts-3d * @requires highcharts * * 3D features for Highcharts JS * * (c) 2009-2026 Highsoft AS * * A commercial license may be required depending on use. * See www.highcharts.com/license */import*as t from"./highcharts.js";var e,i,s={};s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let o=t.default;var a=s.n(o);let r=t.default.Color;var n=s.n(r);let{doc:l,win:h}=a();function p(t,e,i,s={}){let o="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let r=o.hcEvents;a().Point&&t instanceof a().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);let n=t.addEventListener;n&&n.call(t,e,i,!!a().supportsPassiveEvents&&{passive:void 0===s.passive?-1!==e.indexOf("touch"):s.passive,capture:!1}),r[e]||(r[e]=[]);let l={fn:i,order:"number"==typeof s.order?s.order:1/0};return r[e].push(l),r[e].sort((t,e)=>t.order-e.order),function(){!function(t,e,i){function s(e,i){let s=t.removeEventListener;s&&s.call(t,e,i,!1)}function o(i){let o,a;t.nodeName&&(e?(o={})[e]=!0:o=i,z(o,function(t,e){if(i[e])for(a=i[e].length;a--;)s(e,i[e][a].fn)}))}let a="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(a,"hcEvents")){let t=a.hcEvents;if(e){let a=t[e]||[];i?(t[e]=a.filter(function(t){return i!==t.fn}),s(e,i)):(o(t),t[e]=[])}else o(t),delete a.hcEvents}}(t,e,i)}}function c(t){return null!=t}function d(t,e){let i;for(i in t||(t={}),e)t[i]=e[i];return t}function x(t){return y(t)&&"number"==typeof t.nodeType}function f(t){let e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function y(t,e){return!!t&&"object"==typeof t&&(!e||!f(t))}function u(t,...e){let i,s=[t,...e],o={},a=function(t,e){return"object"!=typeof t&&(t={}),z(e,function(i,s){if("__proto__"!==s&&"constructor"!==s){let o;!y(i,!0)||(o=i?.constructor,y(i,!0)&&!x(i)&&o?.name&&"Object"!==o.name)||x(i)?t[s]=e[s]:t[s]=a(t[s]||{},i)}}),t};!0===t&&(o=s[1],s=Array.prototype.slice.call(s,2));let r=s.length;for(i=0;i<r;i++)o=a(o,s[i]);return o}function z(t,e,i){for(let s in t)Object.hasOwnProperty.call(t,s)&&e.call(i||t[s],t[s],s,t)}function b(){let t=arguments,e=t.length;for(let i=0;i<e;i++){let e=t[i];if(null!=e)return e}}function g(t,e){return 0>t.indexOf(e)&&!!t.push(e)}function m(t,e,i){let s=t[e];t[e]=function(){let t=arguments,e=this;return i.apply(this,[function(){return s.apply(e,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}}Array.prototype.find;let{deg2rad:v}=a();function M(t,e,i,s){let o=e.options.chart.options3d,a=b(s,!!i&&e.inverted),r={x:e.plotWidth/2,y:e.plotHeight/2,z:o.depth/2,vd:b(o.depth,1)*b(o.viewDistance,0)},n=e.scale3d||1,l=v*o.beta*(a?-1:1),h=v*o.alpha*(a?-1:1),p={cosA:Math.cos(h),cosB:Math.cos(-l),sinA:Math.sin(h),sinB:Math.sin(-l)};return i||(r.x+=e.plotLeft,r.y+=e.plotTop),t.map(function(t){var e,i,s;let o=(e=(a?t.y:t.x)-r.x,i=(a?t.x:t.y)-r.y,s=(t.z||0)-r.z,{x:p.cosB*e-p.sinB*s,y:-p.sinA*p.sinB*e+p.cosA*i-p.cosB*p.sinA*s,z:p.cosA*p.sinB*e+p.sinA*i+p.cosA*p.cosB*s}),l=P(o,r,r.vd);return l.x=l.x*n+r.x,l.y=l.y*n+r.y,l.z=o.z*n+r.z,{x:a?l.y:l.x,y:a?l.x:l.y,z:l.z}})}function P(t,e,i){let s=i>0&&i<1/0?i/(t.z+e.z+i):1;return{x:t.x*s,y:t.y*s}}function A(t){let e=0,i,s;for(i=0;i<t.length;i++)s=(i+1)%t.length,e+=t[i].x*t[s].y-t[s].x*t[i].y;return e/2}let k={perspective:M,perspective3D:P,pointCameraDistance:function(t,e){let i=e.options.chart.options3d,s={x:e.plotWidth/2,y:e.plotHeight/2,z:b(i.depth,1)*b(i.viewDistance,0)+i.depth};return Math.sqrt(Math.pow(s.x-b(t.plotX,t.x),2)+Math.pow(s.y-b(t.plotY,t.y),2)+Math.pow(s.z-b(t.plotZ,t.z),2))},shapeArea:A,shapeArea3D:function(t,e,i){return A(M(t,e,i))}},{parse:S}=n(),{defaultOptions:L}=a(),{perspective:D,shapeArea3D:w}=k;!function(t){function e(t){this.is3d()&&"scatter"===t.options.type&&(t.options.type="scatter3d")}function i(){if(this.chart3d&&this.is3d()){let t=this.renderer,e=this.options.chart.options3d,i=this.chart3d.get3dFrame(),s=this.plotLeft,o=this.plotLeft+this.plotWidth,a=this.plotTop,r=this.plotTop+this.plotHeight,n=e.depth,l=s-(i.left.visible?i.left.size:0),h=o+(i.right.visible?i.right.size:0),p=a-(i.top.visible?i.top.size:0),c=r+(i.bottom.visible?i.bottom.size:0),d=0-(i.front.visible?i.front.size:0),x=n+(i.back.visible?i.back.size:0),f=this.hasRendered?"animate":"attr";this.chart3d.frame3d=i,this.frameShapes||(this.frameShapes={bottom:t.polyhedron().add(),top:t.polyhedron().add(),left:t.polyhedron().add(),right:t.polyhedron().add(),back:t.polyhedron().add(),front:t.polyhedron().add()}),this.frameShapes.bottom[f]({class:"highcharts-3d-frame highcharts-3d-frame-bottom",zIndex:i.bottom.frontFacing?-1e3:1e3,faces:[{fill:S(i.bottom.color).brighten(.1).get(),vertexes:[{x:l,y:c,z:d},{x:h,y:c,z:d},{x:h,y:c,z:x},{x:l,y:c,z:x}],enabled:i.bottom.visible},{fill:S(i.bottom.color).brighten(.1).get(),vertexes:[{x:s,y:r,z:n},{x:o,y:r,z:n},{x:o,y:r,z:0},{x:s,y:r,z:0}],enabled:i.bottom.visible},{fill:S(i.bottom.color).brighten(-.1).get(),vertexes:[{x:l,y:c,z:d},{x:l,y:c,z:x},{x:s,y:r,z:n},{x:s,y:r,z:0}],enabled:i.bottom.visible&&!i.left.visible},{fill:S(i.bottom.color).brighten(-.1).get(),vertexes:[{x:h,y:c,z:x},{x:h,y:c,z:d},{x:o,y:r,z:0},{x:o,y:r,z:n}],enabled:i.bottom.visible&&!i.right.visible},{fill:S(i.bottom.color).get(),vertexes:[{x:h,y:c,z:d},{x:l,y:c,z:d},{x:s,y:r,z:0},{x:o,y:r,z:0}],enabled:i.bottom.visible&&!i.front.visible},{fill:S(i.bottom.color).get(),vertexes:[{x:l,y:c,z:x},{x:h,y:c,z:x},{x:o,y:r,z:n},{x:s,y:r,z:n}],enabled:i.bottom.visible&&!i.back.visible}]}),this.frameShapes.top[f]({class:"highcharts-3d-frame highcharts-3d-frame-top",zIndex:i.top.frontFacing?-1e3:1e3,faces:[{fill:S(i.top.color).brighten(.1).get(),vertexes:[{x:l,y:p,z:x},{x:h,y:p,z:x},{x:h,y:p,z:d},{x:l,y:p,z:d}],enabled:i.top.visible},{fill:S(i.top.color).brighten(.1).get(),vertexes:[{x:s,y:a,z:0},{x:o,y:a,z:0},{x:o,y:a,z:n},{x:s,y:a,z:n}],enabled:i.top.visible},{fill:S(i.top.color).brighten(-.1).get(),vertexes:[{x:l,y:p,z:x},{x:l,y:p,z:d},{x:s,y:a,z:0},{x:s,y:a,z:n}],enabled:i.top.visible&&!i.left.visible},{fill:S(i.top.color).brighten(-.1).get(),vertexes:[{x:h,y:p,z:d},{x:h,y:p,z:x},{x:o,y:a,z:n},{x:o,y:a,z:0}],enabled:i.top.visible&&!i.right.visible},{fill:S(i.top.color).get(),vertexes:[{x:l,y:p,z:d},{x:h,y:p,z:d},{x:o,y:a,z:0},{x:s,y:a,z:0}],enabled:i.top.visible&&!i.front.visible},{fill:S(i.top.color).get(),vertexes:[{x:h,y:p,z:x},{x:l,y:p,z:x},{x:s,y:a,z:n},{x:o,y:a,z:n}],enabled:i.top.visible&&!i.back.visible}]}),this.frameShapes.left[f]({class:"highcharts-3d-frame highcharts-3d-frame-left",zIndex:i.left.frontFacing?-1e3:1e3,faces:[{fill:S(i.left.color).brighten(.1).get(),vertexes:[{x:l,y:c,z:d},{x:s,y:r,z:0},{x:s,y:r,z:n},{x:l,y:c,z:x}],enabled:i.left.visible&&!i.bottom.visible},{fill:S(i.left.color).brighten(.1).get(),vertexes:[{x:l,y:p,z:x},{x:s,y:a,z:n},{x:s,y:a,z:0},{x:l,y:p,z:d}],enabled:i.left.visible&&!i.top.visible},{fill:S(i.left.color).brighten(-.1).get(),vertexes:[{x:l,y:c,z:x},{x:l,y:p,z:x},{x:l,y:p,z:d},{x:l,y:c,z:d}],enabled:i.left.visible},{fill:S(i.left.color).brighten(-.1).get(),vertexes:[{x:s,y:a,z:n},{x:s,y:r,z:n},{x:s,y:r,z:0},{x:s,y:a,z:0}],enabled:i.left.visible},{fill:S(i.left.color).get(),vertexes:[{x:l,y:c,z:d},{x:l,y:p,z:d},{x:s,y:a,z:0},{x:s,y:r,z:0}],enabled:i.left.visible&&!i.front.visible},{fill:S(i.left.color).get(),vertexes:[{x:l,y:p,z:x},{x:l,y:c,z:x},{x:s,y:r,z:n},{x:s,y:a,z:n}],enabled:i.left.visible&&!i.back.visible}]}),this.frameShapes.right[f]({class:"highcharts-3d-frame highcharts-3d-frame-right",zIndex:i.right.frontFacing?-1e3:1e3,faces:[{fill:S(i.right.color).brighten(.1).get(),vertexes:[{x:h,y:c,z:x},{x:o,y:r,z:n},{x:o,y:r,z:0},{x:h,y:c,z:d}],enabled:i.right.visible&&!i.bottom.visible},{fill:S(i.right.color).brighten(.1).get(),vertexes:[{x:h,y:p,z:d},{x:o,y:a,z:0},{x:o,y:a,z:n},{x:h,y:p,z:x}],enabled:i.right.visible&&!i.top.visible},{fill:S(i.right.color).brighten(-.1).get(),vertexes:[{x:o,y:a,z:0},{x:o,y:r,z:0},{x:o,y:r,z:n},{x:o,y:a,z:n}],enabled:i.right.visible},{fill:S(i.right.color).brighten(-.1).get(),vertexes:[{x:h,y:c,z:d},{x:h,y:p,z:d},{x:h,y:p,z:x},{x:h,y:c,z:x}],enabled:i.right.visible},{fill:S(i.right.color).get(),vertexes:[{x:h,y:p,z:d},{x:h,y:c,z:d},{x:o,y:r,z:0},{x:o,y:a,z:0}],enabled:i.right.visible&&!i.front.visible},{fill:S(i.right.color).get(),vertexes:[{x:h,y:c,z:x},{x:h,y:p,z:x},{x:o,y:a,z:n},{x:o,y:r,z:n}],enabled:i.right.visible&&!i.back.visible}]}),this.frameShapes.back[f]({class:"highcharts-3d-frame highcharts-3d-frame-back",zIndex:i.back.frontFacing?-1e3:1e3,faces:[{fill:S(i.back.color).brighten(.1).get(),vertexes:[{x:h,y:c,z:x},{x:l,y:c,z:x},{x:s,y:r,z:n},{x:o,y:r,z:n}],enabled:i.back.visible&&!i.bottom.visible},{fill:S(i.back.color).brighten(.1).get(),vertexes:[{x:l,y:p,z:x},{x:h,y:p,z:x},{x:o,y:a,z:n},{x:s,y:a,z:n}],enabled:i.back.visible&&!i.top.visible},{fill:S(i.back.color).brighten(-.1).get(),vertexes:[{x:l,y:c,z:x},{x:l,y:p,z:x},{x:s,y:a,z:n},{x:s,y:r,z:n}],enabled:i.back.visible&&!i.left.visible},{fill:S(i.back.color).brighten(-.1).get(),vertexes:[{x:h,y:p,z:x},{x:h,y:c,z:x},{x:o,y:r,z:n},{x:o,y:a,z:n}],enabled:i.back.visible&&!i.right.visible},{fill:S(i.back.color).get(),vertexes:[{x:s,y:a,z:n},{x:o,y:a,z:n},{x:o,y:r,z:n},{x:s,y:r,z:n}],enabled:i.back.visible},{fill:S(i.back.color).get(),vertexes:[{x:l,y:c,z:x},{x:h,y:c,z:x},{x:h,y:p,z:x},{x:l,y:p,z:x}],enabled:i.back.visible}]}),this.frameShapes.front[f]({class:"highcharts-3d-frame highcharts-3d-frame-front",zIndex:i.front.frontFacing?-1e3:1e3,faces:[{fill:S(i.front.color).brighten(.1).get(),vertexes:[{x:l,y:c,z:d},{x:h,y:c,z:d},{x:o,y:r,z:0},{x:s,y:r,z:0}],enabled:i.front.visible&&!i.bottom.visible},{fill:S(i.front.color).brighten(.1).get(),vertexes:[{x:h,y:p,z:d},{x:l,y:p,z:d},{x:s,y:a,z:0},{x:o,y:a,z:0}],enabled:i.front.visible&&!i.top.visible},{fill:S(i.front.color).brighten(-.1).get(),vertexes:[{x:l,y:p,z:d},{x:l,y:c,z:d},{x:s,y:r,z:0},{x:s,y:a,z:0}],enabled:i.front.visible&&!i.left.visible},{fill:S(i.front.color).brighten(-.1).get(),vertexes:[{x:h,y:c,z:d},{x:h,y:p,z:d},{x:o,y:a,z:0},{x:o,y:r,z:0}],enabled:i.front.visible&&!i.right.visible},{fill:S(i.front.color).get(),vertexes:[{x:o,y:a,z:0},{x:s,y:a,z:0},{x:s,y:r,z:0},{x:o,y:r,z:0}],enabled:i.front.visible},{fill:S(i.front.color).get(),vertexes:[{x:h,y:c,z:d},{x:l,y:c,z:d},{x:l,y:p,z:d},{x:h,y:p,z:d}],enabled:i.front.visible}]})}}function s(){this.styledMode&&[{name:"darker",slope:.6},{name:"brighter",slope:1.4}].forEach(function(t){this.renderer.definition({tagName:"filter",attributes:{id:"highcharts-"+t.name},children:[{tagName:"feComponentTransfer",children:[{tagName:"feFuncR",attributes:{type:"linear",slope:t.slope}},{tagName:"feFuncG",attributes:{type:"linear",slope:t.slope}},{tagName:"feFuncB",attributes:{type:"linear",slope:t.slope}}]}]})},this)}function o(){let t=this.options;this.is3d()&&(t.series||[]).forEach(function(e){"scatter"===(e.type||t.chart.type||t.chart.defaultSeriesType)&&(e.type="scatter3d")})}function a(){let t=this.options.chart.options3d;if(this.chart3d&&this.is3d()){t&&(t.alpha=t.alpha%360+(t.alpha>=0?0:360),t.beta=t.beta%360+(t.beta>=0?0:360));let e=this.inverted,i=this.clipBox,s=this.margin;i[e?"y":"x"]=-(s[3]||0),i[e?"x":"y"]=-(s[0]||0),i[e?"height":"width"]=this.chartWidth+(s[3]||0)+(s[1]||0),i[e?"width":"height"]=this.chartHeight+(s[0]||0)+(s[2]||0),this.scale3d=1,!0===t.fitToPlot&&(this.scale3d=this.chart3d.getScale(t.depth)),this.chart3d.frame3d=this.chart3d.get3dFrame()}}function r(){this.is3d()&&(this.isDirtyBox=!0)}function n(){this.chart3d&&this.is3d()&&(this.chart3d.frame3d=this.chart3d.get3dFrame())}function l(){this.chart3d||(this.chart3d=new x(this))}function h(t){return this.is3d()||t.apply(this,[].slice.call(arguments,1))}function c(t){let e,i=this.series.length;if(this.is3d())for(;i--;)(e=this.series[i]).translate(),e.render();else t.call(this)}function d(t){t.apply(this,[].slice.call(arguments,1)),this.is3d()&&(this.container.className+=" highcharts-3d-chart")}t.defaultOptions={chart:{options3d:{enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0,viewDistance:25,axisLabelPosition:null,frame:{visible:"default",size:1,bottom:{},top:{},left:{},right:{},back:{},front:{}}}}},t.compose=function(x,y){let z=x.prototype,b=y.prototype;z.is3d=function(){return!!this.options.chart.options3d?.enabled},z.propsRequireDirtyBox.push("chart.options3d"),z.propsRequireUpdateSeries.push("chart.options3d"),b.matrixSetter=function(){let t;if(this.pos<1&&(f(this.start)||f(this.end))){let e=this.start||[1,0,0,1,0,0],i=this.end||[1,0,0,1,0,0];t=[];for(let s=0;s<6;s++)t.push(this.pos*i[s]+(1-this.pos)*e[s])}else t=this.end;this.elem.attr(this.prop,t,null,!0)},u(!0,L,t.defaultOptions),p(x,"init",l),p(x,"addSeries",e),p(x,"afterDrawChartBox",i),p(x,"afterGetContainer",s),p(x,"afterInit",o),p(x,"afterSetChartSize",a),p(x,"beforeRedraw",r),p(x,"beforeRender",n),m(z,"isInsidePlot",h),m(z,"renderSeries",c),m(z,"setClassName",d)};class x{constructor(t){this.chart=t}get3dFrame(){let t=this.chart,e=t.options.chart.options3d,i=e.frame,s=t.plotLeft,o=t.plotLeft+t.plotWidth,a=t.plotTop,r=t.plotTop+t.plotHeight,n=e.depth,l=function(e){let i=w(e,t);return i>.5?1:i<-.5?-1:0},h=l([{x:s,y:r,z:n},{x:o,y:r,z:n},{x:o,y:r,z:0},{x:s,y:r,z:0}]),p=l([{x:s,y:a,z:0},{x:o,y:a,z:0},{x:o,y:a,z:n},{x:s,y:a,z:n}]),c=l([{x:s,y:a,z:0},{x:s,y:a,z:n},{x:s,y:r,z:n},{x:s,y:r,z:0}]),d=l([{x:o,y:a,z:n},{x:o,y:a,z:0},{x:o,y:r,z:0},{x:o,y:r,z:n}]),x=l([{x:s,y:r,z:0},{x:o,y:r,z:0},{x:o,y:a,z:0},{x:s,y:a,z:0}]),f=l([{x:s,y:a,z:n},{x:o,y:a,z:n},{x:o,y:r,z:n},{x:s,y:r,z:n}]),y=!1,u=!1,z=!1,g=!1;[].concat(t.xAxis,t.yAxis,t.zAxis).forEach(function(t){t&&(t.horiz?t.opposite?u=!0:y=!0:t.opposite?g=!0:z=!0)});let m=function(t,e,i){let s=["size","color","visible"],o={};for(let e=0;e<s.length;e++){let i=s[e];for(let e=0;e<t.length;e++)if("object"==typeof t[e]){let s=t[e][i];if(null!=s){o[i]=s;break}}}let a=i;return!0===o.visible||!1===o.visible?a=o.visible:"auto"===o.visible&&(a=e>0),{size:b(o.size,1),color:b(o.color,"none"),frontFacing:e>0,visible:a}},v={axes:{},bottom:m([i.bottom,i.top,i],h,y),top:m([i.top,i.bottom,i],p,u),left:m([i.left,i.right,i.side,i],c,z),right:m([i.right,i.left,i.side,i],d,g),back:m([i.back,i.front,i],f,!0),front:m([i.front,i.back,i],x,!1)};if("auto"===e.axisLabelPosition){let e=function(t,e){return t.visible!==e.visible||t.visible&&e.visible&&t.frontFacing!==e.frontFacing},i=[];e(v.left,v.front)&&i.push({y:(a+r)/2,x:s,z:0,xDir:{x:1,y:0,z:0}}),e(v.left,v.back)&&i.push({y:(a+r)/2,x:s,z:n,xDir:{x:0,y:0,z:-1}}),e(v.right,v.front)&&i.push({y:(a+r)/2,x:o,z:0,xDir:{x:0,y:0,z:1}}),e(v.right,v.back)&&i.push({y:(a+r)/2,x:o,z:n,xDir:{x:-1,y:0,z:0}});let l=[];e(v.bottom,v.front)&&l.push({x:(s+o)/2,y:r,z:0,xDir:{x:1,y:0,z:0}}),e(v.bottom,v.back)&&l.push({x:(s+o)/2,y:r,z:n,xDir:{x:-1,y:0,z:0}});let h=[];e(v.top,v.front)&&h.push({x:(s+o)/2,y:a,z:0,xDir:{x:1,y:0,z:0}}),e(v.top,v.back)&&h.push({x:(s+o)/2,y:a,z:n,xDir:{x:-1,y:0,z:0}});let p=[];e(v.bottom,v.left)&&p.push({z:(0+n)/2,y:r,x:s,xDir:{x:0,y:0,z:-1}}),e(v.bottom,v.right)&&p.push({z:(0+n)/2,y:r,x:o,xDir:{x:0,y:0,z:1}});let c=[];e(v.top,v.left)&&c.push({z:(0+n)/2,y:a,x:s,xDir:{x:0,y:0,z:-1}}),e(v.top,v.right)&&c.push({z:(0+n)/2,y:a,x:o,xDir:{x:0,y:0,z:1}});let d=function(e,i,s){if(0===e.length)return null;if(1===e.length)return e[0];let o=D(e,t,!1),a=0;for(let t=1;t<o.length;t++)s*o[t][i]>s*o[a][i]?a=t:s*o[t][i]==s*o[a][i]&&o[t].z<o[a].z&&(a=t);return e[a]};v.axes={y:{left:d(i,"x",-1),right:d(i,"x",1)},x:{top:d(h,"y",-1),bottom:d(l,"y",1)},z:{top:d(c,"y",-1),bottom:d(p,"y",1)}}}else v.axes={y:{left:{x:s,z:0,xDir:{x:1,y:0,z:0}},right:{x:o,z:0,xDir:{x:0,y:0,z:1}}},x:{top:{y:a,z:0,xDir:{x:1,y:0,z:0}},bottom:{y:r,z:0,xDir:{x:1,y:0,z:0}}},z:{top:{x:z?o:s,y:a,xDir:z?{x:0,y:0,z:1}:{x:0,y:0,z:-1}},bottom:{x:z?o:s,y:r,xDir:z?{x:0,y:0,z:1}:{x:0,y:0,z:-1}}}};return v}getScale(t){let e=this.chart,i=e.plotLeft,s=e.plotWidth+i,o=e.plotTop,a=e.plotHeight+o,r=i+e.plotWidth/2,n=o+e.plotHeight/2,l={minX:Number.MAX_VALUE,maxX:-Number.MAX_VALUE,minY:Number.MAX_VALUE,maxY:-Number.MAX_VALUE},h,p=1;return h=[{x:i,y:o,z:0},{x:i,y:o,z:t}],[0,1].forEach(function(t){h.push({x:s,y:h[t].y,z:h[t].z})}),[0,1,2,3].forEach(function(t){h.push({x:h[t].x,y:a,z:h[t].z})}),(h=D(h,e,!1)).forEach(function(t){l.minX=Math.min(l.minX,t.x),l.maxX=Math.max(l.maxX,t.x),l.minY=Math.min(l.minY,t.y),l.maxY=Math.max(l.maxY,t.y)}),i>l.minX&&(p=Math.min(p,1-Math.abs((i+r)/(l.minX+r))%1)),s<l.maxX&&(p=Math.min(p,(s-r)/(l.maxX-r))),o>l.minY&&(p=l.minY<0?Math.min(p,(o+n)/(-l.minY+o+n)):Math.min(p,1-(o+n)/(l.minY+n)%1)),a<l.maxY&&(p=Math.min(p,Math.abs((a-n)/(l.maxY-n)))),p}}t.Additions=x}(e||(e={}));let I=e,T=t.default.SeriesRegistry;var O=s.n(T);let{composed:X}=a(),{perspective:Y}=k,{line:{prototype:Z}}=O().seriesTypes;function E(t){let e=t.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d())return e;let i=Z.getGraphPath,s=this.options,o=Math.round(this.yAxis.getThreshold(s.threshold)),a=[];if(this.rawPointsX)for(let t=0;t<this.points.length;t++)a.push({x:this.rawPointsX[t],y:s.stacking?this.points[t].yBottom:o,z:this.zPadding});let r=this.chart.options.chart.options3d;a=Y(a,this.chart,!0).map(t=>({plotX:t.x,plotY:t.y,plotZ:t.z})),this.group&&r&&r.depth&&r.beta&&(this.markerGroup&&(this.markerGroup.add(this.group),this.markerGroup.attr({translateX:0,translateY:0})),this.group.attr({zIndex:Math.max(1,r.beta>270||r.beta<90?r.depth-Math.round(this.zPadding||0):Math.round(this.zPadding||0))})),a.reversed=!0;let n=i.call(this,a,!0,!0);if(n[0]&&"M"===n[0][0]&&(n[0]=["L",n[0][1],n[0][2]]),this.areaPath){let t=this.areaPath.splice(0,this.areaPath.length/2).concat(n);t.xMap=this.areaPath.xMap,this.areaPath=t}return this.graphPath=e,e}let C={labels:{position3d:"offset",skew3d:!1},title:{position3d:null,skew3d:null}},{composed:F}=a();function W(t){let e=this.axis.axis3D;e&&d(t.pos,e.fix3dPosition(t.pos))}function j(t){let e=this.axis.axis3D,i=t.apply(this,[].slice.call(arguments,1));if(e){let t=i[0],s=i[1];if("M"===t[0]&&"L"===s[0]){let i=[e.fix3dPosition({x:t[1],y:t[2],z:0}),e.fix3dPosition({x:s[1],y:s[2],z:0})];return this.axis.chart.renderer.toLineSegments(i)}}return i}let B=function(t){g(F,"Axis.Tick3D")&&(p(t,"afterGetLabelPosition",W),m(t.prototype,"getMarkPath",j))},{defaultOptions:G}=a(),{deg2rad:R}=a(),{perspective:N,perspective3D:_,shapeArea:H}=k;function V(){let t=this.chart,e=this.options;t.is3d?.()&&"colorAxis"!==this.coll&&(e.tickWidth=b(e.tickWidth,0),e.gridLineWidth=b(e.gridLineWidth,1))}function U(t){this.chart.is3d()&&"colorAxis"!==this.coll&&t.point&&(t.point.crosshairPos=this.isXAxis?t.point.axisXpos:this.len-t.point.axisYpos)}function q(){this.axis3D||(this.axis3D=new te(this))}function J(t){return this.chart.is3d()&&"colorAxis"!==this.coll?[]:t.apply(this,[].slice.call(arguments,1))}function K(t){if(!this.chart.is3d()||"colorAxis"===this.coll)return t.apply(this,[].slice.call(arguments,1));let e=arguments,i=e[1],s=e[2],o=[],a=this.getPlotLinePath({value:i}),r=this.getPlotLinePath({value:s});if(a&&r)for(let t=0;t<a.length;t+=2){let e=a[t],i=a[t+1],s=r[t],n=r[t+1];"M"===e[0]&&"L"===i[0]&&"M"===s[0]&&"L"===n[0]&&o.push(e,i,n,["L",s[1],s[2]],["Z"])}return o}function Q(t){let e=this.axis3D,i=this.chart,s=t.apply(this,[].slice.call(arguments,1));if("colorAxis"===this.coll||!i.chart3d||!i.is3d()||null===s)return s;let o=i.options.chart.options3d,a=this.isZAxis?i.plotWidth:o.depth,r=i.chart3d.frame3d,n=s[0],l=s[1],h,p=[];return"M"===n[0]&&"L"===l[0]&&(h=[e.swapZ({x:n[1],y:n[2],z:0}),e.swapZ({x:n[1],y:n[2],z:a}),e.swapZ({x:l[1],y:l[2],z:0}),e.swapZ({x:l[1],y:l[2],z:a})],this.horiz?(this.isZAxis?(r.left.visible&&p.push(h[0],h[2]),r.right.visible&&p.push(h[1],h[3])):(r.front.visible&&p.push(h[0],h[2]),r.back.visible&&p.push(h[1],h[3])),r.top.visible&&p.push(h[0],h[1]),r.bottom.visible&&p.push(h[2],h[3])):(r.front.visible&&p.push(h[0],h[2]),r.back.visible&&p.push(h[1],h[3]),r.left.visible&&p.push(h[0],h[1]),r.right.visible&&p.push(h[2],h[3])),p=N(p,this.chart,!1)),i.renderer.toLineSegments(p)}function $(t,e){let{chart:i,gridGroup:s,tickPositions:o,ticks:a}=this;if(this.categories&&i.frameShapes&&i.is3d()&&s&&e&&e.label){let t,r,n,l=s.element.childNodes[0].getBBox(),h=i.frameShapes.left.getBBox(),p=i.options.chart.options3d,c={x:i.plotWidth/2,y:i.plotHeight/2,z:p.depth/2,vd:b(p.depth,1)*b(p.viewDistance,0)},d=o.indexOf(e.pos),x=a[o[d-1]],f=a[o[d+1]];return x?.label?.xy&&(r=_({x:x.label.xy.x,y:x.label.xy.y,z:null},c,c.vd)),f?.label?.xy&&(n=_({x:f.label.xy.x,y:f.label.xy.y,z:null},c,c.vd)),t=_(t={x:e.label.xy.x,y:e.label.xy.y,z:null},c,c.vd),Math.abs(r?t.x-r.x:n?n.x-t.x:l.x-h.x)}return t.apply(this,[].slice.call(arguments,1))}function tt(t){let e=t.apply(this,[].slice.call(arguments,1));return this.axis3D?this.axis3D.fix3dPosition(e,!0):e}class te{static compose(t,e){if(B(e),!t.keepProps.includes("axis3D")){u(!0,G.xAxis,C),t.keepProps.push("axis3D"),p(t,"init",q),p(t,"afterSetOptions",V),p(t,"drawCrosshair",U);let e=t.prototype;m(e,"getLinePath",J),m(e,"getPlotBandPath",K),m(e,"getPlotLinePath",Q),m(e,"getSlotWidth",$),m(e,"getTitlePosition",tt)}}constructor(t){this.axis=t}fix3dPosition(t,e){let i=this.axis,s=i.chart;if("colorAxis"===i.coll||!s.chart3d||!s.is3d())return t;let o=R*s.options.chart.options3d.alpha,a=R*s.options.chart.options3d.beta,r=b(e&&i.options.title.position3d,i.options.labels.position3d),n=b(e&&i.options.title.skew3d,i.options.labels.skew3d),l=s.chart3d.frame3d,h=s.plotLeft,p=s.plotWidth+h,c=s.plotTop,d=s.plotHeight+c,x=0,f=0,y,u={x:0,y:1,z:0},z=!1;if(t=i.axis3D.swapZ({x:t.x,y:t.y,z:0}),i.isZAxis)if(i.opposite){if(null===l.axes.z.top)return{};f=t.y-c,t.x=l.axes.z.top.x,t.y=l.axes.z.top.y,y=l.axes.z.top.xDir,z=!l.top.frontFacing}else{if(null===l.axes.z.bottom)return{};f=t.y-d,t.x=l.axes.z.bottom.x,t.y=l.axes.z.bottom.y,y=l.axes.z.bottom.xDir,z=!l.bottom.frontFacing}else if(i.horiz)if(i.opposite){if(null===l.axes.x.top)return{};f=t.y-c,t.y=l.axes.x.top.y,t.z=l.axes.x.top.z,y=l.axes.x.top.xDir,z=!l.top.frontFacing}else{if(null===l.axes.x.bottom)return{};f=t.y-d,t.y=l.axes.x.bottom.y,t.z=l.axes.x.bottom.z,y=l.axes.x.bottom.xDir,z=!l.bottom.frontFacing}else if(i.opposite){if(null===l.axes.y.right)return{};x=t.x-p,t.x=l.axes.y.right.x,t.z=l.axes.y.right.z,y={x:(y=l.axes.y.right.xDir).z,y:y.y,z:-y.x}}else{if(null===l.axes.y.left)return{};x=t.x-h,t.x=l.axes.y.left.x,t.z=l.axes.y.left.z,y=l.axes.y.left.xDir}if("chart"===r);else if("flap"===r)if(i.horiz){let t=Math.sin(o),e=Math.cos(o);z&&(t=-t),u={x:y.z*t,y:e,z:-y.x*t}}else y={x:Math.cos(a),y:0,z:Math.sin(a)};else if("ortho"===r)if(i.horiz){let t=Math.sin(o),e=Math.cos(o),i={x:Math.sin(a)*e,y:-t,z:-e*Math.cos(a)},s=1/Math.sqrt((u={x:y.y*i.z-y.z*i.y,y:y.z*i.x-y.x*i.z,z:y.x*i.y-y.y*i.x}).x*u.x+u.y*u.y+u.z*u.z);z&&(s=-s),u={x:s*u.x,y:s*u.y,z:s*u.z}}else y={x:Math.cos(a),y:0,z:Math.sin(a)};else i.horiz?u={x:Math.sin(a)*Math.sin(o),y:Math.cos(o),z:-Math.cos(a)*Math.sin(o)}:y={x:Math.cos(a),y:0,z:Math.sin(a)};t.x+=x*y.x+f*u.x,t.y+=x*y.y+f*u.y,t.z+=x*y.z+f*u.z;let g=N([t],i.chart)[0];if(n){0>H(N([t,{x:t.x+y.x,y:t.y+y.y,z:t.z+y.z},{x:t.x+u.x,y:t.y+u.y,z:t.z+u.z}],i.chart))&&(y={x:-y.x,y:-y.y,z:-y.z});let e=N([{x:t.x,y:t.y,z:t.z},{x:t.x+y.x,y:t.y+y.y,z:t.z+y.z},{x:t.x+u.x,y:t.y+u.y,z:t.z+u.z}],i.chart);g.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]}return g}swapZ(t,e){let i=this.axis;if(i.isZAxis){let s=e?0:i.chart.plotLeft;return{x:s+t.z,y:t.y,z:t.x-s}}return t}}let ti=t.default.RendererRegistry;var ts=s.n(ti);let to=t.default.Series;var ta=s.n(to);let{composed:tr}=a(),{perspective:tn}=k;class tl extends ta(){static compose(t){g(tr,"Core.Series3D")&&(p(t,"afterTranslate",function(){this.chart.is3d()&&this.translate3dPoints()}),d(t.prototype,{translate3dPoints:tl.prototype.translate3dPoints}))}translate3dPoints(){var t;let e,i,s=this,o=s.options,a=s.chart,r=b(s.zAxis,a.options.zAxis[0]),n=[],l=[],h=o.stacking?"number"==typeof(t=o.stack)&&!isNaN(t)&&t<1/0&&t>-1/0?o.stack:0:s.index||0;s.zPadding=h*(o.depth||0+(o.groupZPadding||1)),s.points.forEach(t=>{r?.translate?(i=r.logarithmic&&r.val2lin?r.val2lin(t.z):t.z,t.plotZ=r.translate(i),t.isInside=!!t.isInside&&i>=r.min&&i<=r.max):t.plotZ=s.zPadding,t.axisXpos=t.plotX,t.axisYpos=t.plotY,t.axisZpos=t.plotZ,n.push({x:t.plotX,y:t.plotY,z:t.plotZ}),l.push(t.plotX||0)}),s.rawPointsX=l;let p=tn(n,a,!0);s.points.forEach((t,i)=>{t.plotX=(e=p[i]).x,t.plotY=e.y,t.plotZ=e.z})}}tl.defaultOptions=u(ta().defaultOptions);let th=t.default.StackItem;var tp=s.n(th);let{parse:tc}=n(),{Element:td}=ts().getRendererType().prototype;class tx extends td{constructor(){super(...arguments),this.parts=["front","top","side"],this.pathType="cuboid"}initArgs(t){let e=this.renderer,i=e[this.pathType+"Path"](t),s=i.zIndexes;for(let t of this.parts){let o={class:"highcharts-3d-"+t,zIndex:s[t]||0};e.styledMode&&("top"===t?o.filter="url(#highcharts-brighter)":"side"===t&&(o.filter="url(#highcharts-darker)")),this[t]=e.path(i[t]).attr(o).add(this)}this.attr({"stroke-linejoin":"round",zIndex:s.group}),this.forcedSides=i.forcedSides}singleSetterForParts(t,e,i,s,o,a){let r={},n=[null,null,s||"attr",o,a],l=i?.zIndexes;if(i){for(let e of(l?.group&&this.attr({zIndex:l.group}),Object.keys(i)))r[e]={},r[e][t]=i[e],l&&(r[e].zIndex=i.zIndexes[e]||0);n[1]=r}else r[t]=e,n[0]=r;return this.processParts.apply(this,n)}processParts(t,e,i,s,o){for(let a of this.parts)e&&(t=b(e[a],!1)),!1!==t&&this[a][i](t,s,o);return this}destroy(){return this.processParts(null,null,"destroy"),super.destroy()}attr(t,e,i,s){if("string"==typeof t&&void 0!==e){let i=t;(t={})[i]=e}return t.shapeArgs||c(t.x)?this.singleSetterForParts("d",null,this.renderer[this.pathType+"Path"](t.shapeArgs||t)):super.attr(t,void 0,i,s)}animate(t,e,i){if(c(t.x)&&c(t.y)){let s=this.renderer[this.pathType+"Path"](t),o=s.forcedSides;this.singleSetterForParts("d",null,s,"animate",e,i),this.attr({zIndex:s.zIndexes.group}),o!==this.forcedSides&&(this.forcedSides=o,this.renderer.styledMode||this.fillSetter(this.fill))}else super.animate(t,e,i);return this}fillSetter(t){return this.forcedSides=this.forcedSides||[],this.singleSetterForParts("fill",null,{front:t,top:tc(t).brighten(this.forcedSides.indexOf("top")>=0?0:.1).get(),side:tc(t).brighten(this.forcedSides.indexOf("side")>=0?0:-.1).get()}),this.color=this.fill=t,this}}tx.types={base:tx,cuboid:tx};let{animObject:tf}=a(),{parse:ty}=n(),{charts:tu,deg2rad:tz}=a(),{perspective:tb,shapeArea:tg}=k,tm=Math.cos,tv=Math.sin,tM=Math.PI,tP=4*(Math.sqrt(2)-1)/3/(tM/2);function tA(t,e,i,s,o,a,r,n){let l=a-o,h=[];return a>o&&a-o>Math.PI/2+1e-4?h=(h=h.concat(tA(t,e,i,s,o,o+Math.PI/2,r,n))).concat(tA(t,e,i,s,o+Math.PI/2,a,r,n)):a<o&&o-a>Math.PI/2+1e-4?h=(h=h.concat(tA(t,e,i,s,o,o-Math.PI/2,r,n))).concat(tA(t,e,i,s,o-Math.PI/2,a,r,n)):[["C",t+i*Math.cos(o)-i*tP*l*Math.sin(o)+r,e+s*Math.sin(o)+s*tP*l*Math.cos(o)+n,t+i*Math.cos(a)+i*tP*l*Math.sin(a)+r,e+s*Math.sin(a)-s*tP*l*Math.cos(a)+n,t+i*Math.cos(a)+r,e+s*Math.sin(a)+n]]}!function(t){function e(t,e){let i=[];for(let e of t)i.push(["L",e.x,e.y]);return t.length&&(i[0][0]="M",e&&i.push(["Z"])),i}function i(t){let e=[],i=!0;for(let s of t)e.push(i?["M",s.x,s.y]:["L",s.x,s.y]),i=!i;return e}function s(t){let e=this,i=e.Element.prototype,s=e.createElement("path");return s.vertexes=[],s.insidePlotArea=!1,s.enabled=!0,s.attr=function(t){if("object"==typeof t&&(c(t.enabled)||c(t.vertexes)||c(t.insidePlotArea))){this.enabled=b(t.enabled,this.enabled),this.vertexes=b(t.vertexes,this.vertexes),this.insidePlotArea=b(t.insidePlotArea,this.insidePlotArea),delete t.enabled,delete t.vertexes,delete t.insidePlotArea;let i=tu[e.chartIndex],s=tb(this.vertexes,i,this.insidePlotArea),o=e.toLinePath(s,!0),a=tg(s);t.d=o,t.visibility=this.enabled&&a>0?"inherit":"hidden"}return i.attr.apply(this,arguments)},s.animate=function(t){if("object"==typeof t&&(c(t.enabled)||c(t.vertexes)||c(t.insidePlotArea))){this.enabled=b(t.enabled,this.enabled),this.vertexes=b(t.vertexes,this.vertexes),this.insidePlotArea=b(t.insidePlotArea,this.insidePlotArea),delete t.enabled,delete t.vertexes,delete t.insidePlotArea;let i=tu[e.chartIndex],s=tb(this.vertexes,i,this.insidePlotArea),o=e.toLinePath(s,!0),a=tg(s),r=this.enabled&&a>0?"visible":"hidden";t.d=o,this.attr("visibility",r)}return i.animate.apply(this,arguments)},s.attr(t)}function o(t){let e=this,i=e.Element.prototype,s=e.g(),o=s.destroy;return this.styledMode||s.attr({"stroke-linejoin":"round"}),s.faces=[],s.destroy=function(){for(let t=0;t<s.faces.length;t++)s.faces[t].destroy();return o.call(this)},s.attr=function(t,o,a,r){if("object"==typeof t&&c(t.faces)){for(;s.faces.length>t.faces.length;)s.faces.pop().destroy();for(;s.faces.length<t.faces.length;)s.faces.push(e.face3d().add(s));for(let i=0;i<t.faces.length;i++)e.styledMode&&delete t.faces[i].fill,s.faces[i].attr(t.faces[i],null,a,r);delete t.faces}return i.attr.apply(this,arguments)},s.animate=function(t,o,a){if(t?.faces){for(;s.faces.length>t.faces.length;)s.faces.pop().destroy();for(;s.faces.length<t.faces.length;)s.faces.push(e.face3d().add(s));for(let e=0;e<t.faces.length;e++)s.faces[e].animate(t.faces[e],o,a);delete t.faces}return i.animate.apply(this,arguments)},s.attr(t)}function r(t,e){let i=new tx.types[t](this,"g");return i.initArgs(e),i}function n(t){return this.element3d("cuboid",t)}function l(t){let e=t.x||0,i=t.y||0,s=t.z||0,o=t.height||0,a=t.width||0,r=t.depth||0,n=tu[this.chartIndex],l=n.options.chart.options3d.alpha,h=[],p,c=0,d=[{x:e,y:i,z:s},{x:e+a,y:i,z:s},{x:e+a,y:i+o,z:s},{x:e,y:i+o,z:s},{x:e,y:i+o,z:s+r},{x:e+a,y:i+o,z:s+r},{x:e+a,y:i,z:s+r},{x:e,y:i,z:s+r}];d=tb(d,n,t.insidePlotArea);let x=t=>0===o&&t>1&&t<6?{x:d[t].x,y:d[t].y+10,z:d[t].z}:d[0].x===d[7].x&&t>=4?{x:d[t].x+10,y:d[t].y,z:d[t].z}:0===r&&t<2||t>5?{x:d[t].x,y:d[t].y,z:d[t].z+10}:d[t],f=t=>d[t],y=(t,e,i)=>{let s=t.map(f),o=e.map(f),a=t.map(x),r=e.map(x),n=[[],-1];return 0>tg(s)?n=[s,0]:0>tg(o)?n=[o,1]:i&&(h.push(i),n=0>tg(a)?[s,0]:0>tg(r)?[o,1]:[s,0]),n},u=(p=y([3,2,1,0],[7,6,5,4],"front"))[0],z=p[1],b=(p=y([1,6,7,0],[4,5,2,3],"top"))[0],g=p[1],m=(p=y([1,2,5,6],[0,7,4,3],"side"))[0],v=p[1];return 1===v?c+=1e6*(n.plotWidth-e):v||(c+=1e6*e),c+=10*(!g||l>=0&&l<=180||l<360&&l>357.5?n.plotHeight-i:10+i),1===z?c+=100*s:z||(c+=100*(1e3-s)),{front:this.toLinePath(u,!0),top:this.toLinePath(b,!0),side:this.toLinePath(m,!0),zIndexes:{group:Math.round(c)},forcedSides:h,isFront:z,isTop:g}}function h(t){let e=this.g(),i=this.Element.prototype,s=["alpha","beta","x","y","r","innerR","start","end","depth"];function o(t){let e,i={};for(e in t=u(t))-1!==s.indexOf(e)&&(i[e]=t[e],delete t[e]);return!!Object.keys(i).length&&[i,t]}for(let i of((t=u(t)).alpha=(t.alpha||0)*tz,t.beta=(t.beta||0)*tz,e.top=this.path(),e.side1=this.path(),e.side2=this.path(),e.inn=this.path(),e.out=this.path(),e.onAdd=function(){let t=e.parentGroup,i=e.attr("class");for(let s of(e.top.add(e),["out","inn","side1","side2"]))e[s].attr({class:i+" highcharts-3d-side"}).add(t)},["addClass","removeClass"]))e[i]=function(){let t=arguments;for(let s of["top","out","inn","side1","side2"])e[s][i].apply(e[s],t)};for(let i of(e.setPaths=function(t){let i=e.renderer.arc3dPath(t),s=100*i.zTop;e.attribs=t,e.top.attr({d:i.top,zIndex:i.zTop}),e.inn.attr({d:i.inn,zIndex:i.zInn}),e.out.attr({d:i.out,zIndex:i.zOut}),e.side1.attr({d:i.side1,zIndex:i.zSide1}),e.side2.attr({d:i.side2,zIndex:i.zSide2}),e.zIndex=s,e.attr({zIndex:s}),t.center&&(e.top.setRadialReference(t.center),delete t.center)},e.setPaths(t),e.fillSetter=function(t){let e=ty(t).brighten(-.1).get();return this.fill=t,this.side1.attr({fill:e}),this.side2.attr({fill:e}),this.inn.attr({fill:e}),this.out.attr({fill:e}),this.top.attr({fill:t}),this},["opacity","translateX","translateY","visibility"]))e[i+"Setter"]=function(t,i){for(let s of(e[i]=t,["out","inn","side1","side2","top"]))e[s].attr(i,t)};return e.attr=function(t){if("object"==typeof t){let i=o(t);if(i){let t=i[0];arguments[0]=i[1],void 0!==t.alpha&&(t.alpha*=tz),void 0!==t.beta&&(t.beta*=tz),d(e.attribs,t),e.attribs&&e.setPaths(e.attribs)}}return i.attr.apply(e,arguments)},e.animate=function(t,s,r){let n=this.attribs,l="data-"+Math.random().toString(26).substring(2,9);delete t.center,delete t.z;let h=tf(b(s,this.renderer.globalAnimation));if(h.duration){let i=o(t);if(e[l]=0,t[l]=1,e[l+"Setter"]=a().noop,i){let t=i[0],e=(e,i)=>n[e]+(b(t[e],n[e])-n[e])*i;h.step=function(t,i){i.prop===l&&i.elem.setPaths(u(n,{x:e("x",i.pos),y:e("y",i.pos),r:e("r",i.pos),innerR:e("innerR",i.pos),start:e("start",i.pos),end:e("end",i.pos),depth:e("depth",i.pos)}))}}s=h}return i.animate.call(this,t,s,r)},e.destroy=function(){return this.top.destroy(),this.out.destroy(),this.inn.destroy(),this.side1.destroy(),this.side2.destroy(),i.destroy.call(this)},e.hide=function(){this.top.hide(),this.out.hide(),this.inn.hide(),this.side1.hide(),this.side2.hide()},e.show=function(t){this.top.show(t),this.out.show(t),this.inn.show(t),this.side1.show(t),this.side2.show(t)},e}function p(t){let e=t.x||0,i=t.y||0,s=t.start||0,o=(t.end||0)-1e-5,a=t.r||0,r=t.innerR||0,n=t.depth||0,l=t.alpha||0,h=t.beta||0,p=Math.cos(s),c=Math.sin(s),d=Math.cos(o),x=Math.sin(o),f=a*Math.cos(h),y=a*Math.cos(l),u=r*Math.cos(h),z=r*Math.cos(l),b=n*Math.sin(h),g=n*Math.sin(l),m=[["M",e+f*p,i+y*c]];(m=m.concat(tA(e,i,f,y,s,o,0,0))).push(["L",e+u*d,i+z*x]),(m=m.concat(tA(e,i,u,z,o,s,0,0))).push(["Z"]);let v=h>0?Math.PI/2:0,M=l>0?0:Math.PI/2,P=s>-v?s:o>-v?-v:s,A=o<tM-M?o:s<tM-M?tM-M:o,k=2*tM-M,S=[["M",e+f*tm(P),i+y*tv(P)]];S=S.concat(tA(e,i,f,y,P,A,0,0)),o>k&&s<k?(S.push(["L",e+f*tm(A)+b,i+y*tv(A)+g]),(S=S.concat(tA(e,i,f,y,A,k,b,g))).push(["L",e+f*tm(k),i+y*tv(k)]),(S=S.concat(tA(e,i,f,y,k,o,0,0))).push(["L",e+f*tm(o)+b,i+y*tv(o)+g]),(S=S.concat(tA(e,i,f,y,o,k,b,g))).push(["L",e+f*tm(k),i+y*tv(k)]),S=S.concat(tA(e,i,f,y,k,A,0,0))):o>tM-M&&s<tM-M&&(S.push(["L",e+f*Math.cos(A)+b,i+y*Math.sin(A)+g]),(S=S.concat(tA(e,i,f,y,A,o,b,g))).push(["L",e+f*Math.cos(o),i+y*Math.sin(o)]),S=S.concat(tA(e,i,f,y,o,A,0,0))),S.push(["L",e+f*Math.cos(A)+b,i+y*Math.sin(A)+g]),(S=S.concat(tA(e,i,f,y,A,P,b,g))).push(["Z"]);let L=[["M",e+u*p,i+z*c]];(L=L.concat(tA(e,i,u,z,s,o,0,0))).push(["L",e+u*Math.cos(o)+b,i+z*Math.sin(o)+g]),(L=L.concat(tA(e,i,u,z,o,s,b,g))).push(["Z"]);let D=[["M",e+f*p,i+y*c],["L",e+f*p+b,i+y*c+g],["L",e+u*p+b,i+z*c+g],["L",e+u*p,i+z*c],["Z"]],w=[["M",e+f*d,i+y*x],["L",e+f*d+b,i+y*x+g],["L",e+u*d+b,i+z*x+g],["L",e+u*d,i+z*x],["Z"]],I=Math.atan2(g,-b),T=Math.abs(o+I),O=Math.abs(s+I),X=Math.abs((s+o)/2+I);function Y(t){return(t%=2*Math.PI)>Math.PI&&(t=2*Math.PI-t),t}T=Y(T),O=Y(O);let Z=1e5*(X=Y(X)),E=1e5*O,C=1e5*T;return{top:m,zTop:1e5*Math.PI+1,out:S,zOut:Math.max(Z,E,C),inn:L,zInn:Math.max(Z,E,C),side1:D,zSide1:.99*C,side2:w,zSide2:.99*E}}t.compose=function(t){let a=t.prototype;a.element3d||d(a,{Element3D:tx,arc3d:h,arc3dPath:p,cuboid:n,cuboidPath:l,element3d:r,face3d:s,polyhedron:o,toLinePath:e,toLineSegments:i})}}(i||(i={}));let tk=i,tS=t.default.Axis;var tL=s.n(tS);let{defaultOptions:tD}=a();function tw(t){return new tT(this,t)}function tI(){var t;let e=this.options.zAxis=f(t=this.options.zAxis||{})?t:[t];this.is3d()&&(this.zAxis=[],e.forEach(t=>{this.addZAxis(t).setScale()}))}class tT extends tL(){constructor(){super(...arguments),this.isZAxis=!0}static compose(t){let e=t.prototype;e.addZAxis||(tD.zAxis=u(tD.xAxis,{offset:0,lineWidth:0}),e.addZAxis=tw,e.collectionsWithInit.zAxis=[e.addZAxis],e.collectionsWithUpdate.push("zAxis"),p(t,"afterCreateAxes",tI))}init(t,e){this.isZAxis=!0,super.init(t,e,"zAxis")}getSeriesExtremes(){this.hasVisibleSeries=!1,this.dataMin=this.dataMax=this.ignoreMinPadding=this.ignoreMaxPadding=void 0,this.stacking&&this.stacking.buildStacks(),this.series.forEach(t=>{if(t.reserveSpace()){let e=t.options.threshold;this.hasVisibleSeries=!0,this.positiveValuesOnly&&e<=0&&(e=void 0);let i=t.getColumn("z");i.length&&(this.dataMin=Math.min(b(this.dataMin,i[0]),Math.min.apply(null,i)),this.dataMax=Math.max(b(this.dataMax,i[0]),Math.max.apply(null,i)))}})}setAxisSize(){let t=this.chart;super.setAxisSize(),this.width=this.len=t.options.chart.options3d?.depth||0,this.right=t.chartWidth-this.width-this.left}}let{composed:tO}=a(),{perspective:tX}=k;function tY(){let t=this.chart,e=this.options,i=e.depth,s=(e.stacking?e.stack||0:this.index)*(i+(e.groupZPadding||1)),o=this.borderWidth%2?.5:0,a;for(let r of(t.inverted&&!this.yAxis.reversed&&(o*=-1),!1!==e.grouping&&(s=0),s+=e.groupZPadding||1,this.points))if(r.outside3dPlot=null,null!==r.y){let e,n=d({x:0,y:0,width:0,height:0},r.shapeArgs||{}),l=[["x","width"],["y","height"]],h=r.tooltipPos;for(let t of l)if((e=n[t[0]]-o)<0&&(n[t[1]]+=n[t[0]]+o,n[t[0]]=-o,e=0),e+n[t[1]]>this[t[0]+"Axis"].len&&0!==n[t[1]]&&(n[t[1]]=this[t[0]+"Axis"].len-n[t[0]]),0!==n[t[1]]&&(n[t[0]]>=this[t[0]+"Axis"].len||n[t[0]]+n[t[1]]<=o)){for(let t in n)n[t]="y"===t?-9999:0;r.outside3dPlot=!0}if("roundedRect"===r.shapeType&&(r.shapeType="cuboid"),r.shapeArgs=d(n,{z:s,depth:i,insidePlotArea:!0}),a={x:n.x+n.width/2,y:n.y,z:s+i/2},t.inverted&&(a.x=n.height,a.y=r.clientX||0),r.axisXpos=a.x,r.axisYpos=a.y,r.axisZpos=a.z,r.plot3d=tX([a],t,!0,!1)[0],h){let e=tX([{x:h[0],y:h[1],z:s+i/2}],t,!0,!1)[0];r.tooltipPos=[e.x,e.y]}}this.z=s}function tZ(){if(this.chart.is3d()){let i=this.options,s=i.grouping,o=i.stacking,a=this.yAxis.options.reversedStacks,r=0;if(!(void 0!==s&&!s)){var t,e;let s,n,l,h,p,c=(t=this.chart,e=o||void 0,n=t.series,l={totalStacks:0},p=1,n.forEach(function(t){l[h=b(t.options.stack,e?0:n.length-1-t.index)]?l[h].series.push(t):(l[h]={series:[t],position:p},p++)}),l.totalStacks=p+1,l),d=i.stack||0;for(s=0;s<c[d].series.length&&c[d].series[s]!==this;s++);r=10*(c.totalStacks-c[d].position)+(a?s:-s),this.xAxis.reversed||(r=10*c.totalStacks-r)}i.depth=i.depth||25,this.z=this.z||0,i.zIndex=r}}function tE(t,...e){return this.series.chart.is3d()?this.graphic&&"g"!==this.graphic.element.nodeName:t.apply(this,e)}function tC(t){if(this.chart.is3d()){let t=arguments,e=t[1],i=this.yAxis,s=this.yAxis.reversed;if(e)for(let t of this.points)null!==t.y&&(t.height=t.shapeArgs.height,t.shapey=t.shapeArgs.y,t.shapeArgs.height=1,s||(t.stackY?t.shapeArgs.y=t.plotY+i.translate(t.stackY):t.shapeArgs.y=t.plotY+(t.negative?-t.height:t.height)));else{for(let t of this.points)null!==t.y&&(t.shapeArgs.height=t.height,t.shapeArgs.y=t.shapey,t.graphic&&t.graphic[t.outside3dPlot?"attr":"animate"](t.shapeArgs,this.options.animation));this.drawDataLabels()}}else t.apply(this,[].slice.call(arguments,1))}function tF(t,e,i,s,o,a){return"dataLabelsGroup"!==e&&"markerGroup"!==e&&this.chart.is3d()&&(this[e]&&delete this[e],a&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g("columnGroup").add(a)),this[e]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[e].survive=!0,"group"===e&&(arguments[3]="visible"))),t.apply(this,Array.prototype.slice.call(arguments,1))}function tW(t){let e=t.apply(this,[].slice.call(arguments,1));return this.chart.is3d&&this.chart.is3d()&&(e.stroke=this.options.edgeColor||e.fill,e["stroke-width"]=b(this.options.edgeWidth,1)),e}function tj(t,e,i){let s=this.chart.is3d&&this.chart.is3d();s&&(this.options.inactiveOtherPoints=!0),t.call(this,e,i),s&&(this.options.inactiveOtherPoints=!1)}function tB(t,e){if(this.chart.is3d())for(let t of this.points)t.visible=t.options.visible=e=void 0===e?!b(this.visible,t.visible):e,this.options.data[this.data.indexOf(t)]=t.options,t.graphic&&t.graphic.attr({visibility:e?"visible":"hidden"});t.apply(this,Array.prototype.slice.call(arguments,1))}function tG(t){t.apply(this,[].slice.call(arguments,1)),this.chart.is3d()&&this.translate3dShapes()}function tR(t,e,i,s,o){let a=this.chart;if(s.outside3dPlot=e.outside3dPlot,a.is3d()&&this.is("column")){let t=this.options,i=b(s.inside,!!this.options.stacking),r=a.options.chart.options3d,n=(e.pointWidth||0)/2,l={x:o.x+n,y:o.y,z:this.z+t.depth/2};a.inverted&&(i&&(o.width=0,l.x+=e.shapeArgs.height/2),r.alpha>=90&&r.alpha<=270&&(l.y+=e.shapeArgs.width)),o.x=(l=tX([l],a,!0,!1)[0]).x-n,o.y=e.outside3dPlot?-9e9:l.y}t.apply(this,[].slice.call(arguments,1))}function tN(t){return!arguments[2].outside3dPlot&&t.apply(this,[].slice.call(arguments,1))}function t_(t,e){let i=t.apply(this,[].slice.call(arguments,1)),s=this.axis.chart,{width:o}=e;if(s.is3d()&&this.base){let t=+this.base.split(",")[0],e=s.series[t],a=s.options.chart.options3d;if(e&&"column"===e.type){let t={x:i.x+(s.inverted?i.height:o/2),y:i.y,z:e.options.depth/2};s.inverted&&(i.width=0,a.alpha>=90&&a.alpha<=270&&(t.y+=o)),i.x=(t=tX([t],s,!0,!1)[0]).x-o/2,i.y=t.y}}return i}let{pie:{prototype:{pointClass:tH}}}=O().seriesTypes,tV=class extends tH{haloPath(){return this.series?.chart.is3d()?[]:super.haloPath.apply(this,arguments)}},{composed:tU,deg2rad:tq}=a(),{pie:tJ}=O().seriesTypes;class tK extends tJ{static compose(t){g(tU,"Pie3D")&&(t.types.pie=tK)}addPoint(){super.addPoint.apply(this,arguments),this.chart.is3d()&&this.update(this.userOptions,!0)}animate(t){if(this.chart.is3d()){let e=this.center,i=this.group,s=this.markerGroup,o=this.options.animation,a;!0===o&&(o={}),t?(i.oldtranslateX=b(i.oldtranslateX,i.translateX),i.oldtranslateY=b(i.oldtranslateY,i.translateY),a={translateX:e[0],translateY:e[1],scaleX:.001,scaleY:.001},i.attr(a),s&&(s.attrSetters=i.attrSetters,s.attr(a))):(a={translateX:i.oldtranslateX,translateY:i.oldtranslateY,scaleX:1,scaleY:1},i.animate(a,o),s&&s.animate(a,o))}else super.animate.apply(this,arguments)}getDataLabelPosition(t,e){let i=super.getDataLabelPosition(t,e);if(this.chart.is3d()){let e=this.chart.options.chart.options3d,s=t.shapeArgs,o=s.r,a=(s.alpha||e?.alpha)*tq,r=(s.beta||e?.beta)*tq,n=(s.start+s.end)/2,l=i.connectorPosition,h=-o*(1-Math.cos(a))*Math.sin(n),p=o*(Math.cos(r)-1)*Math.cos(n);for(let t of[i?.natural,l.breakAt,l.touchingSliceAt])t.x+=p,t.y+=h}return i}pointAttribs(t){let e=super.pointAttribs.apply(this,arguments),i=this.options;return this.chart.is3d()&&!this.chart.styledMode&&(e.stroke=i.edgeColor||t.color||this.color,e["stroke-width"]=b(i.edgeWidth,1)),e}translate(){if(super.translate.apply(this,arguments),!this.chart.is3d())return;let t=this.options,e=t.depth||0,i=this.chart.options.chart.options3d,s=i.alpha,o=i.beta,a=t.stacking?(t.stack||0)*e:this._i*e;for(let i of(a+=e/2,!1!==t.grouping&&(a=0),this.points)){let r=i.shapeArgs;i.shapeType="arc3d",r.z=a,r.depth=.75*e,r.alpha=s,r.beta=o,r.center=this.center;let n=(r.end+r.start)/2;i.slicedTranslation={translateX:Math.round(Math.cos(n)*t.slicedOffset*Math.cos(s*tq)),translateY:Math.round(Math.sin(n)*t.slicedOffset*Math.cos(s*tq))}}}drawTracker(){if(super.drawTracker.apply(this,arguments),this.chart.is3d()){for(let t of this.points)if(t.graphic)for(let e of["out","inn","side1","side2"])t.graphic&&(t.graphic[e].element.point=t)}}}d(tK.prototype,{pointClass:tV});let tQ=t.default.Series.types.scatter;var t$=s.n(tQ);let{pointClass:t0}=t$().prototype,t1=class extends t0{applyOptions(){return super.applyOptions.apply(this,arguments),c(this.z)||(this.z=0),this}},{pointCameraDistance:t3}=k;class t2 extends t$(){pointAttribs(t){let e=super.pointAttribs.apply(this,arguments);return this.chart.is3d()&&t&&(e.zIndex=t3(t,this.chart)),e}}t2.defaultOptions=u(t$().defaultOptions,{tooltip:{pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>z: <b>{point.z}</b><br/>"}}),d(t2.prototype,{axisTypes:["xAxis","yAxis","zAxis"],directTouch:!0,parallelArrays:["x","y","z"],pointArrayMap:["x","y","z"],pointClass:t1}),O().registerSeriesType("scatter3d",t2);let t5=a();({compose:function(t){g(X,"Area3DSeries")&&m(t.prototype,"getGraphPath",E)}}).compose(t5.Series.types.area),te.compose(t5.Axis,t5.Tick),I.compose(t5.Chart,t5.Fx),({compose:function(t,e){if(g(tO,"Column3D")){let i=t.prototype,s=e.prototype,{column:o,columnRange:a}=t.types;if(m(i,"alignDataLabel",tR),m(i,"justifyDataLabel",tN),m(s,"getStackBox",t_),o){let t=o.prototype,e=t.pointClass.prototype;t.translate3dPoints=()=>void 0,t.translate3dShapes=tY,p(t,"afterInit",tZ),m(e,"hasNewShapeType",tE),m(t,"animate",tC),m(t,"plotGroup",tF),m(t,"pointAttribs",tW),m(t,"setState",tj),m(t,"setVisible",tB),m(t,"translate",tG)}if(a){let t=a.prototype;m(t.pointClass.prototype,"hasNewShapeType",tE),m(t,"plotGroup",tF),m(t,"pointAttribs",tW),m(t,"setState",tj),m(t,"setVisible",tB)}}}}).compose(t5.Series,tp()),tK.compose(t5.Series),tl.compose(t5.Series),tk.compose(ts().getRendererType()),tT.compose(t5.Chart);let t6=t5;export{t6 as default};