!/**
 * Highstock JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/hollowcandlestick
 * @requires highcharts
 * @requires highcharts/modules/stock
 *
 * Hollow Candlestick series type for Highcharts Stock
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Karol Kołodziej
 *
 * 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.SeriesRegistry,t._Highcharts.Axis):"function"==typeof define&&define.amd?define("highcharts/modules/hollowcandlestick",["highcharts/highcharts"],function(t){return e(t,t.SeriesRegistry,t.Axis)}):"object"==typeof exports?exports["highcharts/modules/hollowcandlestick"]=e(t._Highcharts,t._Highcharts.SeriesRegistry,t._Highcharts.Axis):t.Highcharts=e(t.Highcharts,t.Highcharts.SeriesRegistry,t.Highcharts.Axis)}("u"<typeof window?this:window,(t,e,i)=>(()=>{"use strict";var o={512:t=>{t.exports=e},532:t=>{t.exports=i},944:e=>{e.exports=t}},s={};function r(t){var e=s[t];if(void 0!==e)return e.exports;var i=s[t]={exports:{}};return o[t](i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var l={};r.d(l,{default:()=>w});var a=r(944),h=r.n(a),n=r(512),c=r.n(n);let{seriesTypes:{candlestick:p}}=c();class d extends p.prototype.pointClass{getClassName(){let t=super.getClassName.apply(this),e=this.index,i=this.series.hollowCandlestickData[e];return i.isBullish||"up"!==i.trendDirection||(t+="-bearish-up"),t}}var u=r(532),g=r.n(u);let{seriesTypes:{candlestick:f}}=c();class v extends f{constructor(){super(...arguments),this.hollowCandlestickData=[]}getPriceMovement(){let t,e=this.allGroupedTable||this.dataTable,i=e.rowCount,o=this.hollowCandlestickData;o.length=0;for(let s=0;s<i;s++){let i=e.getRowObject(s,this.pointArrayMap);o.push(this.isBullish(i,s?t:i)),t=i}}getLineColor(t){return"up"===t?this.options.upColor||"var(--highcharts-positive-color)":this.options.color||"var(--highcharts-negative-color)"}getPointFill(t){return t.isBullish?"transparent":"up"===t.trendDirection?this.options.upColor||"var(--highcharts-positive-color)":this.options.color||"var(--highcharts-negative-color)"}init(){super.init.apply(this,arguments),this.hollowCandlestickData=[]}isBullish(t,e){return{isBullish:(t.open||0)<=(t.close||0),trendDirection:(t.close||0)<(e?.close||0)?"down":"up"}}pointAttribs(t,e){let i,o=super.pointAttribs.call(this,t,e),s=t?.index,r=this.hollowCandlestickData[s||0]||{};return o.fill=this.getPointFill(r)||o.fill,o.stroke=this.getLineColor(r.trendDirection)||o.stroke,e&&(o.fill=(i=this.options.states[e]).color||o.fill,o.stroke=i.lineColor||o.stroke,o["stroke-width"]=i.lineWidth||o["stroke-width"]),o}}v.defaultOptions=(0,a.merge)(f.defaultOptions,{color:"var(--highcharts-negative-color)",dataGrouping:{groupAll:!0,groupPixelWidth:10},lineColor:"var(--highcharts-negative-color)",upColor:"var(--highcharts-positive-color)",upLineColor:"var(--highcharts-positive-color)"}),(0,a.addEvent)(v,"updatedData",function(){this.hollowCandlestickData.length&&(this.hollowCandlestickData.length=0)}),(0,a.addEvent)(g(),"postProcessData",function(){this.series.forEach(function(t){t.is("hollowcandlestick")&&t.getPriceMovement()})}),v.prototype.pointClass=d,c().registerSeriesType("hollowcandlestick",v);let w=h();return l.default})());