let t,e;/**
 * Highcharts JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/pictorial
 * @requires highcharts
 *
 * Pictorial graph series type for Highcharts
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Torstein Hønsi, Magdalena Gut
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */import*as i from"../highcharts.js";var r,a,s,o={};o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var i in e)o.o(e,i)&&!o.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let n=i.default;var h=o.n(n);o.d({},{});let{getOptions:l}=h(),d=function(){let t=[],e=l().colors,i=0;for(let r of["M 0 0 L 5 5 M 4.5 -0.5 L 5.5 0.5 M -0.5 4.5 L 0.5 5.5","M 0 5 L 5 0 M -0.5 0.5 L 0.5 -0.5 M 4.5 5.5 L 5.5 4.5","M 2 0 L 2 5 M 4 0 L 4 5","M 0 2 L 5 2 M 0 4 L 5 4","M 0 1.5 L 2.5 1.5 L 2.5 0 M 2.5 5 L 2.5 3.5 L 5 3.5"])t.push({path:r,color:e[i++],width:5,height:5,patternTransform:"scale(1.4 1.4)"});for(let r of(i=5,["M 0 0 L 5 10 L 10 0","M 3 3 L 8 3 L 8 8 L 3 8 Z","M 5 5 m -4 0 a 4 4 0 1 1 8 0 a 4 4 0 1 1 -8 0","M 0 0 L 10 10 M 9 -1 L 11 1 M -1 9 L 1 11","M 0 10 L 10 0 M -1 1 L 1 -1 M 9 11 L 11 9"]))t.push({path:r,color:e[i++],width:10,height:10});return t}();function p(t,e){let i=JSON.stringify(t),r=i.length||0,a=0,s=0,o;if(e){o=Math.max(Math.floor(r/500),1);for(let t=0;t<r;t+=o)a+=i.charCodeAt(t);a&=a}for(;s<r;++s)a=(a<<5)-a+i.charCodeAt(s),a&=a;return a.toString(16).replace("-","1")}function c(t){if(t.width&&t.height&&!t.anchorToPoint)return;let e=this.graphic&&(this.graphic.getBBox&&this.graphic.getBBox(!0)||this.graphic.element&&this.graphic.element.getBBox())||{},i=this.shapeArgs;if(i&&(e.width=i.width||e.width,e.height=i.height||e.height,e.x=i.x||e.x,e.y=i.y||e.y),t.image){if(!e.width||!e.height){t._width="defer",t._height="defer";let e=this.series.chart.mapView&&this.series.chart.mapView.getSVGTransform().scaleY;(0,n.defined)(e)&&e<0&&(t._inverted=!0);return}t.aspectRatio&&(e.aspectRatio=e.width/e.height,t.aspectRatio>e.aspectRatio?e.aspectWidth=e.height*t.aspectRatio:e.aspectHeight=e.width/t.aspectRatio),t._width=t.width||Math.ceil(e.aspectWidth||e.width),t._height=t.height||Math.ceil(e.aspectHeight||e.height)}t.anchorToPoint?(t._x=0,t._y=0,t.width||(t._width=e.width),t.height||(t._height=e.height)):(t.width||(t._x=t.x||0,t._x+=e.x-Math.round(e.aspectWidth?Math.abs(e.aspectWidth-e.width)/2:0)),t.height||(t._y=t.y||0,t._y+=e.y-Math.round(e.aspectHeight?Math.abs(e.aspectHeight-e.height)/2:0)))}function f(){if(!this.chart?.mapView)return;let t=this.chart.renderer,e=t.patternElements;t.defIds?.length&&e&&this.points.filter(function(t){return!!t.graphic&&(t.graphic.element.hasAttribute("fill")||t.graphic.element.hasAttribute("color")||t.graphic.element.hasAttribute("stroke"))&&!t.options.color?.pattern?.image&&!!t.group?.scaleX&&!!t.group?.scaleY}).map(function(e){return{id:(e.graphic?.element.getAttribute("fill")||e.graphic?.element.getAttribute("color")||e.graphic?.element.getAttribute("stroke")||"").replace(t.url,"").replace("url(#","").replace(")",""),x:e.group?.scaleX||1,y:e.group?.scaleY||1}}).filter(function(t,e,i){return""!==t.id&&-1!==t.id.indexOf("highcharts-pattern-")&&!i.some(function(i,r){return i.id===t.id&&r<e})}).forEach(function(t){let i=t.id;e[i].scaleX=1/t.x,e[i].scaleY=1/t.y,e[i].updateTransform("patternTransform")})}let g=i.default.Chart;var u=o.n(g);let m=i.default.SeriesRegistry;var x=o.n(m);let w={rescalePatternFill:function(t,e,i,r,a=1){let s=t&&t.attr("fill"),o=s&&s.match(/url\(([^)]+)\)/);if(o){let s=document.querySelector(`${o[1]} path`);if(s){let o=s.getBBox();if(0===o.width){let e=s.parentElement;t.renderer.box.appendChild(s),o=s.getBBox(),e.appendChild(s)}let n=1/(o.width+a),h=e/r/o.height,l=o.width/o.height,d=i/e,p=-o.width/2;l<d&&(n=n*l/d),s.setAttribute("stroke-width",a/(i*n)),s.setAttribute("transform",`translate(0.5, 0)scale(${n} ${h}) translate(${p+a*n/2}, ${-o.y})`)}}},invertShadowGroup:function(t,e){let i=e.chart.inverted;i&&t.attr({rotation:90*!!i,scaleX:i?-1:1})},getStackMetrics:function(t,e){let i=t.len,r=0;return e&&(0,n.defined)(e.max)&&(r=t.toPixels(e.max,!0),i=t.len-r),{height:i,y:r}}},y=x().seriesTypes.column.prototype.pointClass,{rescalePatternFill:b,getStackMetrics:v}=w,A=class extends y{setState(){super.setState.apply(this,arguments);let t=this.series,e=t.options.paths;if(this.graphic&&this.shapeArgs&&e){let i=e[this.index%e.length];b(this.graphic,v(t.yAxis,i).height,this.shapeArgs.width||0,this.shapeArgs.height||1/0,this.series.options.borderWidth||0)}}},E=i.default.Series;var M=o.n(E);let k=i.default.StackItem;var C=o.n(k);let _=i.default.SVGRenderer;var L=o.n(_);r=u(),a=M(),s=L(),(e=(t=a.prototype.pointClass).prototype).calculatePatternDimensions||((0,n.addEvent)(r,"endResize",function(){if(this.renderer&&(this.renderer.defIds||[]).filter(t=>t&&t.indexOf&&0===t.indexOf("highcharts-pattern-")).length){for(let t of this.series)if(t.visible)for(let e of t.points){let t=e.options&&e.options.color;t&&t.pattern&&(t.pattern._width="defer",t.pattern._height="defer")}this.redraw(!1)}}),(0,n.addEvent)(r,"redraw",function(){let t={},e=this.renderer,i=(e.defIds||[]).filter(t=>t.indexOf&&0===t.indexOf("highcharts-pattern-"));if(i.length)for(let r of([].forEach.call(this.renderTo.querySelectorAll('[color^="url("], [fill^="url("], [stroke^="url("]'),i=>{let r=i.getAttribute("fill")||i.getAttribute("color")||i.getAttribute("stroke");r&&(t[r.replace(e.url,"").replace("url(#","").replace(")","")]=!0)}),i))!t[r]&&((0,n.erase)(e.defIds,r),e.patternElements[r]&&(e.patternElements[r].destroy(),delete e.patternElements[r]))}),(0,n.extend)(e,{calculatePatternDimensions:c}),(0,n.addEvent)(t,"afterInit",function(){let t=this.options.color;t&&(t.pattern||void 0!==t.patternIndex)&&("string"==typeof t.pattern?.path&&(t.pattern.path={d:t.pattern.path}),this.color=this.options.color=(0,n.merge)(this.series.options.color,t))}),(0,n.addEvent)(a,"render",function(){let t=this.chart.isResizing;if(this.isDirtyData||t||!this.chart.hasRendered)for(let e of this.points){let i=e.options&&e.options.color;i&&i.pattern&&(t&&!(e.shapeArgs&&e.shapeArgs.width&&e.shapeArgs.height)?(i.pattern._width="defer",i.pattern._height="defer"):e.calculatePatternDimensions(i.pattern))}}),(0,n.wrap)(a.prototype,"getColor",function(t){let e=this.options.color;e&&e.pattern&&!e.pattern.color?(delete this.options.color,t.apply(this,[].slice.call(arguments,1)),e.pattern.color=this.color,this.color=this.options.color=e):t.apply(this,[].slice.call(arguments,1))}),(0,n.addEvent)(a,"afterRender",f),(0,n.addEvent)(a,"mapZoomComplete",f),(0,n.extend)(s.prototype,{addPattern:function(t,e){let i=(0,n.pick)(e,!0),r=(0,n.animObject)(i),a=t.color||"var(--highcharts-neutral-color-80)",s=t.height||("number"==typeof t._height?t._height:0)||32,o=t.width||("number"==typeof t._width?t._width:0)||32,h=t.anchorToPoint?"userSpaceOnUse":t.patternContentUnits||"userSpaceOnUse",l=t=>this.rect(0,0,o,s).attr({fill:t}).add(g),d,p=t.id,c;if(!p&&(this.idCounter=this.idCounter||0,p="highcharts-pattern-"+this.idCounter+"-"+(this.chartIndex||0),++this.idCounter),this.forExport&&(p+="-export"),this.defIds=this.defIds||[],this.defIds.indexOf(p)>-1)return;this.defIds.push(p);let f={id:p,patternUnits:"userSpaceOnUse",patternContentUnits:h,width:o,height:s,x:t._x||t.x||0,y:t._y||t.y||0};t._inverted&&(f.patternTransform="scale(1, -1)",t.patternTransform&&(t.patternTransform+=" scale(1, -1)")),t.patternTransform&&(f.patternTransform=t.patternTransform);let g=this.createElement("pattern").attr(f).add(this.defs);return g.id=p,t.path?(c=(0,n.isObject)(t.path)?t.path:{d:t.path},t.backgroundColor&&l(t.backgroundColor),d={d:c.d},this.styledMode||(d.stroke=c.stroke||a,d["stroke-width"]=(0,n.pick)(c.strokeWidth,2),d.fill=c.fill||"none"),c.transform&&(d.transform=c.transform),this.createElement("path").attr(d).add(g),g.color=a):t.image&&(i?this.image(t.image,0,0,o,s,function(){this.animate({opacity:(0,n.pick)(t.opacity,1)},r),(0,n.removeEvent)(this.element,"load")}).attr({opacity:0}).add(g):this.image(t.image,0,0,o,s).add(g)),t.image&&i||void 0===t.opacity||[].forEach.call(g.element.childNodes,e=>{e.setAttribute("opacity",t.opacity)}),this.patternElements=this.patternElements||{},this.patternElements[p]=g,g}}),(0,n.addEvent)(s,"complexColor",function(t){let e=t.args[0],i=t.args[1],r=t.args[2],a=this.chartIndex||0,s=e.pattern,o="var(--highcharts-neutral-color-80)";if(void 0!==e.patternIndex&&d&&(s=d[e.patternIndex]),!s)return!0;if(s.image||"string"==typeof s.path||s.path&&s.path.d){let t=r.parentNode&&r.parentNode.getAttribute("class");if(t=t&&t.indexOf("highcharts-legend")>-1,("defer"===s._width||"defer"===s._height)&&c.call({graphic:{element:r}},s),t||!s.id||s.anchorToPoint){var h;let t,e;(s=(0,n.merge)({},s)).anchorToPoint&&(h=s,t=(0,n.merge)({},h),t._x=(e=r.getBBox?r.getBBox():{x:0,y:0,width:32,height:32}).x,t._y=e.y,s=t),s.id="highcharts-pattern-"+a+"-"+p(s)+p(s,!0)+(s.anchorToPoint?"-anchored":"")}this.addPattern(s,!this.forExport&&(0,n.pick)(s.animation,this.globalAnimation,{duration:100})),o=`url(${this.url}#${s.id+(this.forExport?"-export":"")})`}else o=s.color||o;return r.setAttribute(i,o),e.toString=function(){return o},!1}));let O=x().seriesTypes.column,{getStackMetrics:S,invertShadowGroup:B,rescalePatternFill:T}=w;class G extends O{animate(t){let{chart:e,group:i}=this,r=(0,n.animObject)(this.options.animation),a=[this.getSharedClipKey(),r.duration,r.easing,r.defer].join(","),s=e.sharedClips[a];if(t&&i){let t=e.getClipBox(this);s||(t.y=t.height,t.height=0,s=e.renderer.clipRect(t),e.sharedClips[a]=s),i.clip(s)}else if(s&&!s.hasClass("highcharts-animating")){let t=e.getClipBox(this);s.addClass("highcharts-animating").animate(t,r)}}animateDrilldown(){}animateDrillupFrom(){}pointAttribs(t){let e=super.pointAttribs.apply(this,arguments),i=this.options.paths;if(t&&t.shapeArgs&&i){let r=i[t.index%i.length],{y:a,height:s}=S(this.yAxis,r),o=r.definition;o!==t.pathDef?(t.pathDef=o,e.fill={pattern:{path:{d:o,fill:e.fill,strokeWidth:e["stroke-width"],stroke:e.stroke},x:t.shapeArgs.x,y:a,width:t.shapeArgs.width||0,height:s,patternContentUnits:"objectBoundingBox",backgroundColor:"none",color:"#ff0000"}}):t.pathDef&&t.graphic&&delete e.fill}return delete e.stroke,delete e.strokeWidth,e}getExtremes(){let t=super.getExtremes.apply(this,arguments),e=this.options.paths;return e&&e.forEach(function(e){(0,n.defined)(e.max)&&(0,n.defined)(t.dataMax)&&e.max>t.dataMax&&(t.dataMax=e.max)}),t}}function P(t){let e=Object.keys(t.points).filter(t=>t.split(",").length>1),i=t.axis.chart.series,r=e.map(t=>parseFloat(t.split(",")[0])),a=-1;r.forEach(t=>{i[t]&&i[t].visible&&(a=t)});let s=t.axis.chart.series[a];if(s&&s.is("pictorial")&&t.axis.hasData()&&s.xAxis.hasData()){let e=s.xAxis,i=t.axis.options,r=t.axis.chart,a=t.shadow,o=e.toPixels(t.x,!0),h=r.inverted?e.len-o:o,l=s.options.paths||[],d=t.x%l.length,p=l[d],c=s.getColumnMetrics&&s.getColumnMetrics().width,{height:f,y:g}=S(s.yAxis,p),u=i.stackShadow,m=(0,n.pick)(u&&u.borderWidth,s.options.borderWidth,1);if(!a&&u&&u.enabled&&p)t.shadowGroup||(t.shadowGroup=r.renderer.g("shadow-group").add()),t.shadowGroup.attr({translateX:r.inverted?t.axis.pos:e.pos,translateY:r.inverted?e.pos:t.axis.pos}),t.shadow=r.renderer.rect(h,g,c,f).attr({fill:{pattern:{path:{d:p.definition,fill:u.color||"var(--highcharts-neutral-color-20)",strokeWidth:m,stroke:u.borderColor||"transparent"},x:h,y:g,width:c,height:f,patternContentUnits:"objectBoundingBox",backgroundColor:"none",color:"var(--highcharts-neutral-color-20)"}}}).add(t.shadowGroup),B(t.shadowGroup,t.axis),T(t.shadow,f,c,f,m),t.setOffset(s.pointXOffset||0,s.barW||0);else if(a&&t.shadowGroup){a.animate({x:h,y:g,width:c,height:f});let i=a.attr("fill"),o=i&&i.match(/url\(([^)]+)\)/);o&&r.renderer.patternElements&&r.renderer.patternElements[o[1].slice(1)].animate({x:h,y:g,width:c,height:f}),t.shadowGroup.animate({translateX:r.inverted?t.axis.pos:e.pos,translateY:r.inverted?e.pos:t.axis.pos}),B(t.shadowGroup,t.axis),T(a,f,c,f,m),t.setOffset(s.pointXOffset||0,s.barW||0)}}else t.shadow&&t.shadowGroup&&(t.shadow.destroy(),t.shadow=void 0,t.shadowGroup.destroy(),t.shadowGroup=void 0)}function I(t,e){t.axes&&t.axes.forEach(function(t){if(!t.stacking)return;let i=t.stacking.stacks;(0,n.objectEach)(i,function(t){(0,n.objectEach)(t,function(t){e(t)})})})}function W(t){I(t,function(t){t.shadow&&t.shadowGroup&&(t.shadow.destroy(),t.shadowGroup.destroy(),delete t.shadow,delete t.shadowGroup)})}G.defaultOptions=(0,n.merge)(O.defaultOptions,{borderWidth:0}),(0,n.addEvent)(G,"afterRender",function(){let t=this,e=t.options.paths,i=/url\(([^)]+)\)/;t.points.forEach(function(r){if(r.graphic&&r.shapeArgs&&e){let a=e[r.index%e.length],s=r.graphic.attr("fill"),o=s&&s.match(i),{y:n,height:h}=S(t.yAxis,a);if(o&&t.chart.renderer.patternElements){let e=t.chart.renderer.patternElements[o[1].slice(1)];e&&e.animate({x:r.shapeArgs.x,y:n,width:r.shapeArgs.width||0,height:h})}T(r.graphic,S(t.yAxis,a).height,r.shapeArgs.width||0,r.shapeArgs.height||1/0,t.options.borderWidth||0)}})}),(0,n.addEvent)(u(),"render",function(){I(this,P)}),(0,n.addEvent)(C(),"afterSetOffset",function(t){if(this.shadow){let{chart:e,len:i}=this.axis,{xOffset:r,width:a}=t,s=e.inverted?r-e.xAxis[0].len:r,o=e.inverted?-i:0;this.shadow.attr({translateX:s,translateY:o}),this.shadow.animate({width:a})}}),(0,n.addEvent)(u(),"afterDrilldown",function(){W(this)}),(0,n.addEvent)(u(),"afterDrillUp",function(){W(this)}),G.prototype.pointClass=A,x().registerSeriesType("pictorial",G);let D=h();export{D as default};