@aquera/data-visualizer-sdk 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/ask-aquera/src/ask-aquera-config.d.ts +182 -0
  2. package/chunk-4PS3OAOS.js +1 -0
  3. package/chunk-5CTM6JVQ.js +1 -0
  4. package/chunk-6B33KNVC.js +13 -0
  5. package/chunk-6JUHOJCQ.js +5 -0
  6. package/chunk-6Q3P5YXE.js +2 -0
  7. package/chunk-7ROJSOMZ.js +1 -0
  8. package/chunk-ATIVRRY6.js +2 -0
  9. package/chunk-AYEY6YSX.js +1 -0
  10. package/chunk-BTDKTIE6.js +2 -0
  11. package/chunk-CFURBIBO.js +1 -0
  12. package/chunk-DPG6F2YZ.js +1 -0
  13. package/chunk-ECNT4X4C.js +8 -0
  14. package/chunk-F6ZDDRJ7.js +21 -0
  15. package/chunk-FK6H3RFT.js +1 -0
  16. package/chunk-FZDVALWH.js +1 -0
  17. package/chunk-GE5TYRBE.js +18 -0
  18. package/chunk-GHVB7A27.js +2 -0
  19. package/chunk-H2YEWK77.js +1 -0
  20. package/chunk-HIPUXYQH.js +18 -0
  21. package/chunk-IWMWQ3LG.js +12 -0
  22. package/chunk-JP5QY5S6.js +2 -0
  23. package/chunk-JXQ2DURN.js +40813 -0
  24. package/chunk-LSC4KQ4U.js +1 -0
  25. package/chunk-MMU63XDX.js +1 -0
  26. package/chunk-ORMWZQE4.js +1 -0
  27. package/chunk-P6Z3OD2O.js +26 -0
  28. package/chunk-QAUTHFGS.js +1 -0
  29. package/chunk-QDERNBJG.js +12 -0
  30. package/chunk-RB5CGMJ7.js +1 -0
  31. package/chunk-REQTBAAZ.js +1 -0
  32. package/chunk-RLJG3U7S.js +23 -0
  33. package/chunk-THFIOYOT.js +1 -0
  34. package/chunk-W25JWAKD.js +1 -0
  35. package/chunk-W7JUPIHD.js +1 -0
  36. package/chunk-XEG2ZCTG.js +1 -0
  37. package/chunk-XRJ2TFI3.js +1 -0
  38. package/chunk-Y42W4DYB.js +4 -0
  39. package/chunk-YOMAZ3ZR.js +1 -0
  40. package/chunk-ZAZ2JO4L.js +1 -0
  41. package/chunk-ZW5NV4UO.js +1 -0
  42. package/dashboards/src/dashboards-config.d.ts +138 -0
  43. package/index.d.ts +49 -0
  44. package/main.js +1 -0
  45. package/package.json +27 -0
  46. package/styles.css +1 -0
@@ -0,0 +1 @@
1
+ import{a as It,b as Nt,e as ki}from"./chunk-ZW5NV4UO.js";var zi=ki((st,Dt)=>{(function(L,K){typeof st=="object"&&typeof Dt=="object"?Dt.exports=K(L._Highcharts,L._Highcharts.Templating,L._Highcharts.Color,L._Highcharts.SeriesRegistry,L._Highcharts.SVGElement,L._Highcharts.Series):typeof define=="function"&&define.amd?define("highcharts/modules/sunburst",["highcharts/highcharts"],function(W){return K(W,W.Templating,W.Color,W.SeriesRegistry,W.SVGElement,W.Series)}):typeof st=="object"?st["highcharts/modules/sunburst"]=K(L._Highcharts,L._Highcharts.Templating,L._Highcharts.Color,L._Highcharts.SeriesRegistry,L._Highcharts.SVGElement,L._Highcharts.Series):L.Highcharts=K(L.Highcharts,L.Highcharts.Templating,L.Highcharts.Color,L.Highcharts.SeriesRegistry,L.Highcharts.SVGElement,L.Highcharts.Series)})("u"<typeof window?st:window,(L,K,W,he,de,pe)=>(()=>{"use strict";var Et,ct,gt,vt,ue={28:o=>{o.exports=de},512:o=>{o.exports=he},620:o=>{o.exports=W},820:o=>{o.exports=pe},944:o=>{o.exports=L},984:o=>{o.exports=K}},Ht={};function P(o){var t=Ht[o];if(t!==void 0)return t.exports;var e=Ht[o]={exports:{}};return ue[o](e,e.exports,P),e.exports}P.n=o=>{var t=o&&o.__esModule?()=>o.default:()=>o;return P.d(t,{a:t}),t},P.d=(o,t)=>{for(var e in t)P.o(t,e)&&!P.o(o,e)&&Object.defineProperty(o,e,{enumerable:!0,get:t[e]})},P.o=(o,t)=>Object.prototype.hasOwnProperty.call(o,t);var Gt={};P.d(Gt,{default:()=>Ei});var ce=P(944),A=P.n(ce);let ge={mainBreadcrumb:"Main"};var ve=P(984);let{format:be}=P.n(ve)(),{composed:fe}=A(),{addEvent:J,defined:me,extend:xe,fireEvent:ye,isString:Le,merge:rt,objectEach:kt,pick:bt,pushUnique:Pe}=A();function Te(){if(this.breadcrumbs){let o=this.resetZoomButton&&this.resetZoomButton.getBBox(),t=this.breadcrumbs.options;o&&t.position.align==="right"&&t.relativeTo==="plotBox"&&this.breadcrumbs.alignBreadcrumbsGroup(-o.width-t.buttonSpacing)}}function we(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}function Ae(){let o=this.breadcrumbs;if(o&&!o.options.floating&&o.level){let t=o.options,e=t.buttonTheme,i=(e.height||0)+2*(e.padding||0)+t.buttonSpacing,l=t.position.verticalAlign;l==="bottom"?(this.marginBottom=(this.marginBottom||0)+i,o.yOffset=i):l!=="middle"?(this.plotTop+=i,o.yOffset=-i):o.yOffset=void 0}}function Se(){this.breadcrumbs&&this.breadcrumbs.redraw()}function Re(o){o.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()}let zt=(()=>{class o{static compose(e,i){Pe(fe,"Breadcrumbs")&&(J(e,"destroy",we),J(e,"afterShowResetZoom",Te),J(e,"getMargins",Ae),J(e,"redraw",Se),J(e,"selection",Re),xe(i.lang,ge))}constructor(e,i){this.elementList={},this.isDirty=!0,this.level=0,this.list=[];let l=rt(e.options.drilldown&&e.options.drilldown.drillUpButton,o.defaultOptions,e.options.navigation&&e.options.navigation.breadcrumbs,i);this.chart=e,this.options=l||{}}updateProperties(e){this.setList(e),this.setLevel(),this.isDirty=!0}setList(e){this.list=e}setLevel(){this.level=this.list.length&&this.list.length-1}getLevel(){return this.level}getButtonText(e){let i=this.chart,l=this.options,s=i.options.lang,n=bt(l.format,l.showFullPath?"{level.name}":"\u2190 {level.name}"),r=s&&bt(s.drillUpText,s.mainBreadcrumb),a=l.formatter&&l.formatter(e)||be(n,{level:e.levelOptions},i)||"";return(Le(a)&&!a.length||a==="\u2190 ")&&me(r)&&(a=l.showFullPath?r:"\u2190 "+r),a}redraw(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1}render(){let e=this.chart,i=this.options;!this.group&&i&&(this.group=e.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:i.zIndex}).add()),i.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()}renderFullPathButtons(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()}renderSingleButton(){let e=this.chart,i=this.list,l=this.options.buttonSpacing;this.destroyListElements();let s=this.group?this.group.getBBox().width:l,n=i[i.length-2];!e.drillUpButton&&this.level>0?e.drillUpButton=this.renderButton(n,s,l):e.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())}alignBreadcrumbsGroup(e){if(this.group){let i=this.options,l=i.buttonTheme,s=i.position,n=i.relativeTo==="chart"||i.relativeTo==="spacingBox"?void 0:"plotBox",r=this.group.getBBox(),a=2*(l.padding||0)+i.buttonSpacing;s.width=r.width+a,s.height=r.height+a;let h=rt(s);e&&(h.x+=e),this.options.rtl&&(h.x+=s.width),h.y=bt(h.y,this.yOffset,0),this.group.align(h,!0,n)}}renderButton(e,i,l){let s=this,n=this.chart,r=s.options,a=rt(r.buttonTheme),h=n.renderer.button(s.getButtonText(e),i,l,function(d){let u,p=r.events&&r.events.click;p&&(u=p.call(s,d,e)),u!==!1&&(r.showFullPath?d.newLevel=e.level:d.newLevel=s.level-1,ye(s,"up",d))},a).addClass("highcharts-breadcrumbs-button").add(s.group);return n.styledMode||h.attr(r.style),h}renderSeparator(e,i){let l=this.chart,s=this.options.separator,n=l.renderer.label(s.text,e,i,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return l.styledMode||n.css(s.style),n}update(e){rt(!0,this.options,e),this.destroy(),this.isDirty=!0}updateSingleButton(){let e=this.chart,i=this.list[this.level-1];e.drillUpButton&&e.drillUpButton.attr({text:this.getButtonText(i)})}destroy(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0}destroyListElements(e){let i=this.elementList;kt(i,(l,s)=>{(e||!i[s].updated)&&((l=i[s]).button&&l.button.destroy(),l.separator&&l.separator.destroy(),delete l.button,delete l.separator,delete i[s])}),e&&(this.elementList={})}destroySingleButton(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)}resetElementListState(){kt(this.elementList,e=>{e.updated=!1})}updateListElements(){let e=this.elementList,i=this.options.buttonSpacing,l=this.list,s=this.options.rtl,n=s?-1:1,r=function(p,c){return n*p.getBBox().width+n*c},a=function(p,c,g){p.translate(c-p.getBBox().width,g)},h=this.group?r(this.group,i):i,d,u;for(let p=0,c=l.length;p<c;++p){let g,v,b=p===c-1;e[(u=l[p]).level]?(g=(d=e[u.level]).button,d.separator||b?d.separator&&b&&(d.separator.destroy(),delete d.separator):(h+=n*i,d.separator=this.renderSeparator(h,i),s&&a(d.separator,h,i),h+=r(d.separator,i)),e[u.level].updated=!0):(g=this.renderButton(u,h,i),s&&a(g,h,i),h+=r(g,i),b||(v=this.renderSeparator(h,i),s&&a(v,h,i),h+=r(v,i)),e[u.level]={button:g,separator:v,updated:!0}),g&&g.setState(2*!!b)}}}return o.defaultOptions={buttonSpacing:5,buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#334eff"}},floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666",fontSize:"0.8em"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7},o})();var Oe=P(620),Vt=P.n(Oe),Ce=P(512),z=P.n(Ce),Me=P(28),Ut=P.n(Me);let{column:{prototype:Be}}=z().seriesTypes,{addEvent:Ie,defined:Ne}=A();var ft=ct||(ct={});function De(o){let t=this.series,e=t.chart.renderer;this.moveToTopOnHover&&this.graphic&&(t.stateMarkerGraphic||(t.stateMarkerGraphic=new(Ut())(e,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),o?.state==="hover"?(this.graphic.attr({id:this.id}),t.stateMarkerGraphic.attr({href:`${e.url}#${this.id}`,visibility:"visible"})):t.stateMarkerGraphic.attr({href:""}))}ft.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return this.value!==null&&this.value!==1/0&&this.value!==-1/0&&(this.value===void 0||!isNaN(this.value))}},ft.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(o){let t={};return Ne(o.color)&&(!o.state||o.state==="normal")&&(t[this.colorProp||"fill"]=o.color),t},pointAttribs:Be.pointAttribs},ft.compose=function(o){return Ie(o.prototype.pointClass,"afterSetState",De),o};let Wt=ct;var Ee=P(820),Ft=P.n(Ee);let He=class{constructor(o,t,e,i){this.height=o,this.width=t,this.plot=i,this.direction=e,this.startDirection=e,this.total=0,this.nW=0,this.lW=0,this.nH=0,this.lH=0,this.elArr=[],this.lP={total:0,lH:0,nH:0,lW:0,nW:0,nR:0,lR:0,aspectRatio:function(l,s){return Math.max(l/s,s/l)}}}addElement(o){this.lP.total=this.elArr[this.elArr.length-1],this.total=this.total+o,this.direction===0?(this.lW=this.nW,this.lP.lH=this.lP.total/this.lW,this.lP.lR=this.lP.aspectRatio(this.lW,this.lP.lH),this.nW=this.total/this.height,this.lP.nH=this.lP.total/this.nW,this.lP.nR=this.lP.aspectRatio(this.nW,this.lP.nH)):(this.lH=this.nH,this.lP.lW=this.lP.total/this.lH,this.lP.lR=this.lP.aspectRatio(this.lP.lW,this.lH),this.nH=this.total/this.width,this.lP.nW=this.lP.total/this.nH,this.lP.nR=this.lP.aspectRatio(this.lP.nW,this.nH)),this.elArr.push(o)}reset(){this.nW=0,this.lW=0,this.elArr=[],this.total=0}},jt=class{constructor(){this.childrenTotal=0,this.visible=!1}init(o,t,e,i,l,s,n){return this.id=o,this.i=t,this.children=e,this.height=i,this.level=l,this.series=s,this.parent=n,this}},Ge=function(o,t){let{animatableAttribs:e,onComplete:i,css:l,renderer:s}=t,n=o.series&&o.series.chart.hasRendered?void 0:o.series&&o.series.options.animation,r=o.graphic;if(t.attribs=Nt(It({},t.attribs),{class:o.getClassName()}),o.shouldDraw())r||(o.graphic=r=t.shapeType==="text"?s.text():t.shapeType==="image"?s.image(t.imageUrl||"").attr(t.shapeArgs||{}):s[t.shapeType](t.shapeArgs||{}),r.add(t.group)),l&&r.css(l),r.attr(t.attribs).animate(e,!t.isNew&&n,i);else if(r){let a=()=>{o.graphic=r=r&&r.destroy(),typeof i=="function"&&i()};Object.keys(e).length?r.animate(e,void 0,()=>a()):a()}},{pie:{prototype:{pointClass:ke}},scatter:{prototype:{pointClass:ze}}}=z().seriesTypes,{extend:Ve,isNumber:_t,pick:Ue}=A();class Yt extends ze{constructor(){super(...arguments),this.groupedPointsAmount=0,this.shapeType="rect"}draw(t){Ge(this,t)}getClassName(){let t=this.series,e=t.options,i=super.getClassName();return this.node.level<=t.nodeMap[t.rootNode].level&&this.node.children.length?i+=" highcharts-above-level":this.node.isGroup||this.node.isLeaf||t.nodeMap[t.rootNode].isGroup||Ue(e.interactByLeaf,!e.allowTraversingTree)?this.node.isGroup||this.node.isLeaf||t.nodeMap[t.rootNode].isGroup||(i+=" highcharts-internal-node"):i+=" highcharts-internal-node-interactive",i}isValid(){return!!(this.id||_t(this.value))}setState(t){super.setState.apply(this,arguments),this.graphic&&this.graphic.attr({zIndex:+(t==="hover")})}shouldDraw(){return _t(this.plotY)&&this.y!==null}}Ve(Yt.prototype,{setVisible:ke.prototype.setVisible});let{isString:We}=A(),Fe={allowTraversingTree:!1,animationLimit:250,borderRadius:0,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{enabled:!0,formatter:function(){let o=this&&this.point?this.point:{};return We(o.name)?o.name:""},headers:!1,inside:!0,padding:2,verticalAlign:"middle",style:{textOverflow:"ellipsis"}},tooltip:{headerFormat:"",pointFormat:"<b>{point.name}</b>: {point.value}<br/>",clusterFormat:"+ {point.groupedPointsAmount} more...<br/>"},ignoreHiddenPoint:!0,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,traverseUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",borderWidth:1,colorKey:"colorValue",opacity:.15,states:{hover:{borderColor:"#999999",brightness:.1*!z().seriesTypes.heatmap,halo:!1,opacity:.75,shadow:!1}},legendSymbol:"rectangle",traverseToLeaf:!1,cluster:{className:void 0,color:void 0,enabled:!1,pixelWidth:void 0,pixelHeight:void 0,name:void 0,reductionFactor:void 0,minimumClusterSize:5,layoutAlgorithm:{distance:0,gridSize:0,kmeansThreshold:0},marker:{lineWidth:0,radius:0}}};(gt||(gt={})).recursive=function o(t,e,i){let l=e.call(i||this,t);l!==!1&&o(l,e,i)};let mt=gt,{extend:Xt,isArray:je,isNumber:xt,isObject:F,merge:yt,pick:Z,relativeLength:_e}=A(),$t={getColor:function(o,t){let e,i,l,s,n,r,a=t.index,h=t.mapOptionsToLevel,d=t.parentColor,u=t.parentColorIndex,p=t.series,c=t.colors,g=t.siblings,v=p.points,b=p.chart.options.chart;if(o){let f;e=v[o.i],i=h[o.level]||{},e&&i.colorByPoint&&(s=e.index%(c?c.length:b.colorCount),l=c&&c[s]),p.chart.styledMode||(n=Z(e&&e.options.color,i&&i.color,l,d&&((f=i&&i.colorVariation)&&f.key==="brightness"&&a&&g?Vt().parse(d).brighten(f.to*(a/g)).get():d),p.color)),r=Z(e&&e.options.colorIndex,i&&i.colorIndex,s,u,t.colorIndex)}return{color:n,colorIndex:r}},getLevelOptions:function(o){let t,e,i,l,s,n,r={};if(F(o))for(l=xt(o.from)?o.from:1,n=o.levels,e={},t=F(o.defaults)?o.defaults:{},je(n)&&(e=n.reduce((a,h)=>{let d,u,p;return F(h)&&xt(h.level)&&(u=Z((p=yt({},h)).levelIsConstant,t.levelIsConstant),delete p.levelIsConstant,delete p.level,F(a[d=h.level+(u?0:l-1)])?yt(!0,a[d],p):a[d]=p),a},{})),s=xt(o.to)?o.to:1,i=0;i<=s;i++)r[i]=yt({},t,F(e[i])?e[i]:{});return r},getNodeWidth:function(o,t){let{chart:e,options:i}=o,{nodeDistance:l=0,nodeWidth:s=0}=i,{plotSizeX:n=1}=e;if(s==="auto"){if(typeof l=="string"&&/%$/.test(l))return n/(t+parseFloat(l)/100*(t-1));let r=Number(l);return(n+r)/(t||1)-r}return _e(s,n)},setTreeValues:function o(t,e){let i=e.before,l=e.idRoot,s=e.mapIdToNode[l],n=e.levelIsConstant!==!1,r=e.points[t.i],a=r&&r.options||{},h=[],d=0;t.levelDynamic=t.level-(n?0:s.level),t.name=Z(r&&r.name,""),t.visible=l===t.id||e.visible===!0,typeof i=="function"&&(t=i(t,e)),t.children.forEach((p,c)=>{let g=Xt({},e);Xt(g,{index:c,siblings:t.children.length,visible:t.visible}),p=o(p,g),h.push(p),p.visible&&(d+=p.val)});let u=Z(a.value,d);return t.visible=u>=0&&(d>0||t.visible),t.children=h,t.childrenTotal=d,t.isLeaf=t.visible&&!d,t.val=u,t},updateRootId:function(o){let t,e;return F(o)&&(e=F(o.options)?o.options:{},t=Z(o.rootNode,e.rootId,""),F(o.userOptions)&&(o.userOptions.rootId=t),o.rootNode=t),t}},{parse:Ye}=Vt(),{composed:Xe,noop:qt}=A(),{column:$e,scatter:Kt}=z().seriesTypes,{getColor:qe,getLevelOptions:Ke,updateRootId:Ze}=$t,{addEvent:$,arrayMax:Je,clamp:Qe,correctFloat:ti,crisp:ot,defined:j,error:ei,extend:Q,fireEvent:ii,isArray:Zt,isNumber:Lt,isObject:si,isString:Jt,merge:H,pick:_,pushUnique:ri,splat:at,stableSort:oi}=A();Ft().keepProps.push("simulation","hadOutsideDataLabels");let Pt=!1;function ai(){let o=this.xAxis,t=this.yAxis;if(o&&t)if(this.is("treemap")){let e={endOnTick:!1,startOnTick:!1,visible:!1};this.is("treegraph")||(e.min=0,e.max=100,e.tickPositions=[]),H(!0,o.options,e,o.userOptions),H(!0,t.options,e,t.userOptions),o.visible=o.options.visible,t.visible=t.options.visible,this.is("treegraph")&&(this.isCartesian=o.visible),Pt=!0}else Pt&&(t.setOptions(t.userOptions),o.setOptions(o.userOptions),Pt=!1)}class lt extends Kt{constructor(){super(...arguments),this.simulation=0}static compose(t){ri(Xe,"TreemapSeries")&&$(t,"afterBindAxes",ai)}algorithmCalcPoints(t,e,i,l){let s=i.plot,n=i.elArr.length-1,r,a,h,d,u=i.lW,p=i.lH,c,g=0;for(let v of(e?(u=i.nW,p=i.nH):c=i.elArr[n],i.elArr))(e||g<n)&&(i.direction===0?(r=s.x,a=s.y,d=v/(h=u)):(r=s.x,a=s.y,h=v/(d=p)),l.push({x:r,y:a,width:h,height:ti(d)}),i.direction===0?s.y=s.y+d:s.x=s.x+h),g+=1;i.reset(),i.direction===0?i.width=i.width-u:i.height=i.height-p,s.y=s.parent.y+(s.parent.height-i.height),s.x=s.parent.x+(s.parent.width-i.width),t&&(i.direction=1-i.direction),e||i.addElement(c)}algorithmFill(t,e,i){let l=[],s,n=e.direction,r=e.x,a=e.y,h=e.width,d=e.height,u,p,c,g;for(let v of i)s=e.width*e.height*(v.val/e.val),u=r,p=a,n===0?(h-=c=s/(g=d),r+=c):(d-=g=s/(c=h),a+=g),l.push({x:u,y:p,width:c,height:g,direction:0,val:0}),t&&(n=1-n);return l}algorithmLowAspectRatio(t,e,i){let l=[],s={x:e.x,y:e.y,parent:e},n=e.direction,r=i.length-1,a=new He(e.height,e.width,n,s),h,d=0;for(let u of i)h=e.width*e.height*(u.val/e.val),a.addElement(h),a.lP.nR>a.lP.lR&&this.algorithmCalcPoints(t,!1,a,l,s),d===r&&this.algorithmCalcPoints(t,!0,a,l,s),++d;return l}alignDataLabel(t,e,i){$e.prototype.alignDataLabel.apply(this,arguments),t.dataLabel&&t.dataLabel.attr({zIndex:(t.node.zIndex||0)+1})}applyTreeGrouping(){let t=this,e=t.parentList||{},{cluster:i}=t.options,l=i?.minimumClusterSize||5;if(i?.enabled){let s={},n=a=>{if(a?.point?.shapeArgs){let{width:h=0,height:d=0}=a.point.shapeArgs,{pixelWidth:u=0,pixelHeight:p=0}=i,c=j(p),g=p?u*p:u*u;(h<u||d<(c?p:u)||h*d<g)&&!a.isGroup&&j(a.parent)&&(s[a.parent]||(s[a.parent]=[]),s[a.parent].push(a))}a?.children.forEach(h=>{n(h)})};for(let a in n(t.tree),s)s[a]&&s[a].length>l&&s[a].forEach(h=>{let d=e[a].indexOf(h.i);if(d!==-1){e[a].splice(d,1);let u=`highcharts-grouped-treemap-points-${h.parent||"root"}`,p=t.points.find(b=>b.id===u);if(!p){let b=t.pointClass,f=t.points.length;Q(p=new b(t,{className:i.className,color:i.color,id:u,index:f,isGroup:!0,value:0}),{formatPrefix:"cluster"}),t.points.push(p),e[a].push(f),e[u]=[]}let c=p.groupedPointsAmount+1,g=t.points[p.index].options.value||0,v=i.name||`+ ${c}`;t.points[p.index].groupedPointsAmount=c,t.points[p.index].options.value=g+(h.point.value||0),t.points[p.index].name=v,e[u].push(h.point.index)}});t.nodeMap={},t.nodeList=[],t.parentList=e;let r=t.buildTree("",-1,0,t.parentList);t.translate(r)}}calculateChildrenAreas(t,e){let i=this.options,l=this.mapOptionsToLevel[t.level+1],s=_(l?.layoutAlgorithm&&this[l?.layoutAlgorithm]&&l.layoutAlgorithm,i.layoutAlgorithm),n=i.alternateStartingDirection,r=t.children.filter(v=>t.isGroup||!v.ignore),a=l?.groupPadding??i.groupPadding??0,h=this.nodeMap[this.rootNode];if(!s)return;let d=[],u=h.pointValues?.width||0,p=h.pointValues?.height||0;l?.layoutStartingDirection&&(e.direction=+(l.layoutStartingDirection!=="vertical")),d=this[s](e,r);let c=-1;for(let v of r){let b=d[++c];v===h&&(u=u||b.width,p=b.height);let f=a/(this.xAxis.len/p),B=a/(this.yAxis.len/p);if(v.values=H(b,{val:v.childrenTotal,direction:n?1-e.direction:e.direction}),v.children.length&&v.point.dataLabels?.length){let I=Je(v.point.dataLabels.map(C=>C.options?.headers&&C.height||0))/(this.yAxis.len/p);I<v.values.height/2&&(v.values.y+=I,v.values.height-=I)}if(a){let I=Math.min(f,v.values.width/4),C=Math.min(B,v.values.height/4);v.values.x+=I,v.values.width-=2*I,v.values.y+=C,v.values.height-=2*C}v.pointValues=H(b,{x:b.x/this.axisRatio,y:100-b.y-b.height,width:b.width/this.axisRatio}),v.children.length&&this.calculateChildrenAreas(v,v.values)}let g=(v,b=[],f=!0)=>(v.children.forEach(B=>{f&&B.isLeaf?b.push(B.point):f||B.isLeaf||b.push(B.point),B.children.length&&g(B,b,f)}),b);if(i.nodeSizeBy==="leaf"&&t===h&&this.hasOutsideDataLabels&&!g(h,void 0,!1).some(v=>Lt(v.options.value))&&!Lt(h.point?.options.value)){let v=g(h),b=v.map(x=>x.options.value||0),f=v.map(({node:{pointValues:x}})=>x?x.width*x.height:0),B=b.reduce((x,T)=>x+T,0),I=f.reduce((x,T)=>x+T,0)/B,C=0,G=0;v.forEach((x,T)=>{let S=Qe((b[T]?f[T]/b[T]:1)/I,.8,1.4),V=1-S;x.value&&(f[T]<20&&(V*=f[T]/20),V>G&&(G=V),V<C&&(C=V),x.simulatedValue=(x.simulatedValue||x.value)/S)}),(C<-.05||G>.05)&&this.simulation<10?(this.simulation++,this.setTreeValues(t),e.val=t.val,this.calculateChildrenAreas(t,e)):(v.forEach(x=>{delete x.simulatedValue}),this.setTreeValues(t),this.simulation=0)}}createList(t){let e=this.chart,i=e.breadcrumbs,l=[];if(i){let s=0;l.push({level:s,levelOptions:e.series[0]});let n=t.target.nodeMap[t.newRootId],r=[];for(;n.parent||n.parent==="";)r.push(n),n=t.target.nodeMap[n.parent];for(let a of r.reverse())l.push({level:++s,levelOptions:a});l.length<=1&&(l.length=0)}return l}drawDataLabels(){let t=this.mapOptionsToLevel,e=this.points.filter(function(s){return s.node.visible||j(s.dataLabel)}),i=at(this.options.dataLabels||{})[0]?.padding,l=e.some(s=>Lt(s.plotY));for(let s of e){let n={},r={style:n},a=t[s.node.level];if((!s.node.isLeaf&&!s.node.isGroup||s.node.isGroup&&s.node.level<=this.nodeMap[this.rootNode].level)&&(r.enabled=!1),a?.dataLabels&&(H(!0,r,at(a.dataLabels)[0]),this.hasDataLabels=()=>!0),s.node.isLeaf?r.inside=!0:r.headers&&(r.verticalAlign="top"),s.shapeArgs&&l){let{height:h=0,width:d=0}=s.shapeArgs;if(d>32&&h>16&&s.shouldDraw()){let u=d-2*(r.padding||i||0);n.width=`${u}px`,n.lineClamp??(n.lineClamp=Math.floor(h/16)),n.visibility="inherit",r.headers&&s.dataLabel?.attr({width:u})}else n.width=`${d}px`,n.visibility="hidden"}s.dlOptions=H(r,s.options.dataLabels,{zIndex:void 0})}super.drawDataLabels(e)}drawPoints(t=this.points){let e=this.chart,i=e.renderer,l=e.styledMode,s=this.options,n=l?{}:s.shadow,r=s.borderRadius,a=e.pointCount<s.animationLimit,h=s.allowTraversingTree;for(let d of t){let u={},p={},c={},g="level-group-"+d.node.level,v=!!d.graphic,b=a&&v,f=d.shapeArgs;d.shouldDraw()&&(d.isInside=!0,r&&(p.r=r),H(!0,b?u:p,v?f:{},l?{}:this.pointAttribs(d,d.selected?"select":void 0)),this.colorAttribs&&l&&Q(c,this.colorAttribs(d)),this[g]||(this[g]=i.g(g).attr({zIndex:-(d.node.level||0)}).add(this.group),this[g].survive=!0)),d.draw({animatableAttribs:u,attribs:p,css:c,group:this[g],imageUrl:d.imageUrl,renderer:i,shadow:n,shapeArgs:f,shapeType:d.shapeType}),h&&d.graphic&&(d.drillId=s.interactByLeaf?this.drillToByLeaf(d):this.drillToByGroup(d))}}drillToByGroup(t){return(!t.node.isLeaf||!!t.node.isGroup)&&t.id}drillToByLeaf(t){let{traverseToLeaf:e}=t.series.options,i=!1,l;if(t.node.parent!==this.rootNode&&t.node.isLeaf)if(e)i=t.id;else for(l=t.node;!i;)l.parent!==void 0&&(l=this.nodeMap[l.parent]),l.parent===this.rootNode&&(i=l.id);return i}drillToNode(t,e){ei(32,!1,void 0,{"treemap.drillToNode":"use treemap.setRootNode"}),this.setRootNode(t,e)}drillUp(){let t=this.nodeMap[this.rootNode];t&&Jt(t.parent)&&this.setRootNode(t.parent,!0,{trigger:"traverseUpButton"})}getExtremes(){let{dataMin:t,dataMax:e}=super.getExtremes(this.colorValueData);return this.valueMin=t,this.valueMax=e,super.getExtremes()}getListOfParents(t,e){let i=Zt(t)?t:[],l=Zt(e)?e:[],s=i.reduce(function(n,r,a){let h=_(r.parent,"");return n[h]===void 0&&(n[h]=[]),n[h].push(a),n},{"":[]});for(let n of Object.keys(s)){let r=s[n];if(n!==""&&l.indexOf(n)===-1){for(let a of r)s[""].push(a);delete s[n]}}return s}getTree(){let t=this.data.map(function(e){return e.id});return this.parentList=this.getListOfParents(this.data,t),this.nodeMap={},this.nodeList=[],this.buildTree("",-1,0,this.parentList||{})}buildTree(t,e,i,l,s){let n=[],r=this.points[e],a=0,h;for(let u of l[t]||[])a=Math.max((h=this.buildTree(this.points[u].id,u,i+1,l,t)).height+1,a),n.push(h),this.is("treegraph")&&(h.visible=!0);let d=new this.NodeClass().init(t,e,n,a,i,this,s);for(let u of n)u.parentNode=d;return this.nodeMap[d.id]=d,this.nodeList.push(d),r&&(r.node=d,d.point=r,j(r.options.x)||(r.x=i)),d}hasData(){return!!this.dataTable.rowCount}init(t,e){let i=this,l=H(e.drillUpButton,e.breadcrumbs),s=$(i,"setOptions",n=>{let r=n.userOptions;j(r.allowDrillToNode)&&!j(r.allowTraversingTree)&&(r.allowTraversingTree=r.allowDrillToNode,delete r.allowDrillToNode),j(r.drillUpButton)&&!j(r.traverseUpButton)&&(r.traverseUpButton=r.drillUpButton,delete r.drillUpButton);let a=at(r.dataLabels||{});r.levels?.forEach(h=>{a.push.apply(a,at(h.dataLabels||{}))}),this.hasOutsideDataLabels=a.some(h=>h.headers)});super.init(t,e),delete i.opacity,i.eventsToUnbind.push(s),i.options.allowTraversingTree&&(i.eventsToUnbind.push($(i,"click",i.onClickDrillToNode)),i.eventsToUnbind.push($(i,"setRootNode",function(n){let r=i.chart;r.breadcrumbs&&r.breadcrumbs.updateProperties(i.createList(n))})),i.eventsToUnbind.push($(i,"update",function(n,r){let a=this.chart.breadcrumbs;a&&n.options.breadcrumbs&&a.update(n.options.breadcrumbs),this.hadOutsideDataLabels=this.hasOutsideDataLabels})),i.eventsToUnbind.push($(i,"destroy",function(n){let r=this.chart;r.breadcrumbs&&!n.keepEventsForUpdate&&(r.breadcrumbs.destroy(),r.breadcrumbs=void 0)}))),t.breadcrumbs||(t.breadcrumbs=new zt(t,l)),i.eventsToUnbind.push($(t.breadcrumbs,"up",function(n){let r=this.level-n.newLevel;for(let a=0;a<r;a++)i.drillUp()}))}onClickDrillToNode(t){let e=t.point,i=e?.drillId;Jt(i)&&(e.setState(""),this.setRootNode(i,!0,{trigger:"click"}))}pointAttribs(t,e){let i=si(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},l=t&&i[t.node.level]||{},s=this.options,n=e&&s.states&&s.states[e]||{},r=t?.getClassName()||"",a={stroke:t&&t.borderColor||l.borderColor||n.borderColor||s.borderColor,"stroke-width":_(t&&t.borderWidth,l.borderWidth,n.borderWidth,s.borderWidth),dashstyle:t?.borderDashStyle||l.borderDashStyle||n.borderDashStyle||s.borderDashStyle,fill:t?.color||this.color};return r.indexOf("highcharts-above-level")!==-1?(a.fill="none",a["stroke-width"]=0):r.indexOf("highcharts-internal-node-interactive")!==-1?(a["fill-opacity"]=n.opacity??s.opacity??1,a.cursor="pointer"):r.indexOf("highcharts-internal-node")!==-1?a.fill="none":e&&n.brightness&&(a.fill=Ye(a.fill).brighten(n.brightness).get()),a}setColorRecursive(t,e,i,l,s){let n=this?.chart,r=n?.options?.colors;if(t){let a=qe(t,{colors:r,index:l,mapOptionsToLevel:this.mapOptionsToLevel,parentColor:e,parentColorIndex:i,series:this,siblings:s}),h=this.points[t.i];h&&(h.color=a.color,h.colorIndex=a.colorIndex);let d=-1;for(let u of t.children||[])this.setColorRecursive(u,a.color,a.colorIndex,++d,t.children.length)}}setPointValues(){let t=this,{points:e,xAxis:i,yAxis:l}=t,s=t.chart.styledMode,n=r=>s?0:t.pointAttribs(r)["stroke-width"]||0;for(let r of e){let{pointValues:a,visible:h}=r.node;if(a&&h){let{height:d,width:u,x:p,y:c}=a,g=n(r),v=i.toPixels(p,!0),b=i.toPixels(p+u,!0),f=l.toPixels(c,!0),B=l.toPixels(c+d,!0),I=v===0?g/2:ot(i.toPixels(p,!0),g,!0),C=b===i.len?i.len-g/2:ot(i.toPixels(p+u,!0),g,!0),G=f===l.len?l.len-g/2:ot(l.toPixels(c,!0),g,!0),x=B===0?g/2:ot(l.toPixels(c+d,!0),g,!0),T={x:Math.min(I,C),y:Math.min(G,x),width:Math.abs(C-I),height:Math.abs(x-G)};r.plotX=T.x+T.width/2,r.plotY=T.y+T.height/2,r.shapeArgs=T}else delete r.plotX,delete r.plotY}}setRootNode(t,e,i){ii(this,"setRootNode",Q({newRootId:t,previousRootId:this.rootNode,redraw:_(e,!0),series:this},i),function(l){let s=l.series;s.idPreviousRoot=l.previousRootId,s.rootNode=l.newRootId,s.isDirty=!0,l.redraw&&s.chart.redraw()})}setState(t){this.options.inactiveOtherPoints=!0,super.setState(t,!1),this.options.inactiveOtherPoints=!1}setTreeValues(t){let e=this.options,i=this.rootNode,l=this.nodeMap[i],s=typeof e.levelIsConstant!="boolean"||e.levelIsConstant,n=[],r=this.points[t.i],a=0;for(let d of t.children)d=this.setTreeValues(d),n.push(d),d.ignore||(a+=d.val);oi(n,(d,u)=>(d.sortIndex||0)-(u.sortIndex||0));let h=_(r?.simulatedValue,r?.options.value,a);return r&&(r.value=h),r?.isGroup&&e.cluster?.reductionFactor&&(h/=e.cluster.reductionFactor),t.parentNode?.point?.isGroup&&this.rootNode!==t.parent&&(t.visible=!1),Q(t,{children:n,childrenTotal:a,ignore:!(_(r?.visible,!0)&&h>0),isLeaf:t.visible&&!(this.type==="treegraph"?n.length>0:a),isGroup:r?.isGroup,levelDynamic:t.level-(s?0:l.level),name:_(r?.name,""),sortIndex:_(r?.sortIndex,-h),val:h}),t}sliceAndDice(t,e){return this.algorithmFill(!0,t,e)}squarified(t,e){return this.algorithmLowAspectRatio(!0,t,e)}strip(t,e){return this.algorithmLowAspectRatio(!1,t,e)}stripes(t,e){return this.algorithmFill(!1,t,e)}translate(t){let e=this,i=e.options,l=!t,s=Ze(e),n,r,a,h;t||s.startsWith("highcharts-grouped-treemap-points-")||((this.points||[]).forEach(d=>{d.isGroup&&d.destroy()}),super.translate(),t=e.getTree()),e.tree=t=t||e.tree,n=e.nodeMap[s],s===""||n||(e.setRootNode("",!1),s=e.rootNode,n=e.nodeMap[s]),n.point?.isGroup||(e.mapOptionsToLevel=Ke({from:n.level+1,levels:i.levels,to:t.height,defaults:{levelIsConstant:e.options.levelIsConstant,colorByPoint:i.colorByPoint}})),mt.recursive(e.nodeMap[e.rootNode],d=>{let u=d.parent,p=!1;return d.visible=!0,(u||u==="")&&(p=e.nodeMap[u]),p}),mt.recursive(e.nodeMap[e.rootNode].children,d=>{let u=!1;for(let p of d)p.visible=!0,p.children.length&&(u=(u||[]).concat(p.children));return u}),e.setTreeValues(t),e.axisRatio=e.xAxis.len/e.yAxis.len,e.nodeMap[""].pointValues=r={x:0,y:0,width:100,height:100},e.nodeMap[""].values=a=H(r,{width:r.width*e.axisRatio,direction:+(i.layoutStartingDirection!=="vertical"),val:t.val}),(this.hasOutsideDataLabels||this.hadOutsideDataLabels)&&this.drawDataLabels(),e.calculateChildrenAreas(t,a),e.colorAxis||i.colorByPoint||e.setColorRecursive(e.tree),i.allowTraversingTree&&n.pointValues&&(h=n.pointValues,e.xAxis.setExtremes(h.x,h.x+h.width,!1),e.yAxis.setExtremes(h.y,h.y+h.height,!1),e.xAxis.setScale(),e.yAxis.setScale()),e.setPointValues(),l&&e.applyTreeGrouping()}}lt.defaultOptions=H(Kt.defaultOptions,Fe),Q(lt.prototype,{buildKDTree:qt,colorAttribs:Wt.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:!0,getExtremesFromAll:!0,getSymbol:qt,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value","colorValue"],pointClass:Yt,NodeClass:jt,trackerGroups:["group","dataLabelsGroup"],utils:mt}),Wt.compose(lt),z().registerSeriesType("treemap",lt);let{deg2rad:Qt}=A(),{fireEvent:li,isNumber:Tt,pick:nt,relativeLength:ni}=A();(Et=vt||(vt={})).getCenter=function(){let o=this.options,t=this.chart,e=2*(o.slicedOffset||0),i=t.plotWidth-2*e,l=t.plotHeight-2*e,s=o.center,n=Math.min(i,l),r=o.thickness,a,h=o.size,d=o.innerSize||0,u,p;typeof h=="string"&&(h=parseFloat(h)),typeof d=="string"&&(d=parseFloat(d));let c=[nt(s?.[0],"50%"),nt(s?.[1],"50%"),nt(h&&h<0?void 0:o.size,"100%"),nt(d&&d<0?void 0:o.innerSize||0,"0%")];for(!t.angular||this instanceof Ft()||(c[3]=0),u=0;u<4;++u)p=c[u],a=u<2||u===2&&/%$/.test(p),c[u]=ni(p,[i,l,n,c[2]][u])+(a?e:0);return c[3]>c[2]&&(c[3]=c[2]),Tt(r)&&2*r<c[2]&&r>0&&(c[3]=c[2]-2*r),li(this,"afterGetCenter",{positions:c}),c},Et.getStartAndEndRadians=function(o,t){let e=Tt(o)?o:0,i=Tt(t)&&t>e&&t-e<360?t:e+360;return{start:Qt*(e+-90),end:Qt*(i+-90)}};let hi=vt,{series:{prototype:{pointClass:wt}},seriesTypes:{treemap:{prototype:{pointClass:di}}}}=z(),{correctFloat:te,extend:pi,pInt:ui}=A();class ee extends di{getDataLabelPath(t){let e=this.series.chart.renderer,i=this.shapeExisting,l=i.r+ui(t.options?.distance||0),s=i.start,n=i.end,r=s+(n-s)/2,a=r<0&&r>-Math.PI||r>Math.PI,h;return s===-Math.PI/2&&te(n)===te(1.5*Math.PI)&&(s=-Math.PI+Math.PI/360,n=-Math.PI/360,a=!0),n-s>Math.PI&&(a=!1,h=!0,n-s>2*Math.PI-.01&&(s+=.01,n-=.01)),this.dataLabelPath&&(this.dataLabelPath=this.dataLabelPath.destroy()),this.dataLabelPath=e.arc({open:!0,longArc:+!!h}).attr({start:a?s:n,end:a?n:s,clockwise:+a,x:i.x,y:i.y,r:(l+i.innerR)/2}).add(e.defs),this.dataLabelPath}isValid(){return!0}}pi(ee.prototype,{getClassName:wt.prototype.getClassName,haloPath:wt.prototype.haloPath,setState:wt.prototype.setState});let{seriesTypes:{treemap:ci}}=z(),{isNumber:tt,isObject:ie,merge:gi}=A();function se(o,t){let e=[];if(tt(o)&&tt(t)&&o<=t)for(let i=o;i<=t;i++)e.push(i);return e}let At={calculateLevelSizes:function(o,t){let e=ie(t)?t:{},i,l=0,s,n,r,a;if(ie(o)){for(let h of(i=gi({},o),n=se(tt(e.from)?e.from:0,tt(e.to)?e.to:0),r=Object.keys(i).filter(d=>n.indexOf(+d)===-1),s=a=tt(e.diffRadius)?e.diffRadius:0,n)){let d=i[h],u=d.levelSize.unit,p=d.levelSize.value;u==="weight"?l+=p:u==="percentage"?(d.levelSize={unit:"pixels",value:p/100*s},a-=d.levelSize.value):u==="pixels"&&(a-=p)}for(let h of n){let d=i[h];if(d.levelSize.unit==="weight"){let u=d.levelSize.value;i[h].levelSize={unit:"pixels",value:u/l*a}}}for(let h of r)i[h].levelSize={value:0,unit:"pixels"}}return i},getLevelFromAndTo:function({level:o,height:t}){return{from:o>0?o:1,to:o+t}},range:se,recursive:ci.prototype.utils.recursive},{deg2rad:vi}=A(),{addEvent:St,merge:bi,uniqueKey:fi,defined:re,extend:mi}=A();function xi(o,t){t=bi(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},t);let e=this.renderer.url,i=this.text||this,l=i.textPath,{attributes:s,enabled:n}=t;if(o=o||l&&l.path,l&&l.undo(),o&&n){let r=St(i,"afterModifyTree",a=>{if(o&&n){let h=o.attr("id");h||o.attr("id",h=fi());let d={x:0,y:0};re(s.dx)&&(d.dx=s.dx,delete s.dx),re(s.dy)&&(d.dy=s.dy,delete s.dy),i.attr(d),this.attr({transform:""}),this.box&&(this.box=this.box.destroy());let u=a.nodes.slice(0);a.nodes.length=0,a.nodes[0]={tagName:"textPath",attributes:mi(s,{"text-anchor":s.textAnchor,href:`${e}#${h}`}),children:u}}});i.textPath={path:o,undo:r}}else i.attr({dx:0,dy:0}),delete i.textPath;return this.added&&(i.textCache="",this.renderer.buildText(i)),this}function yi(o){let t=o.bBox,e=this.element?.querySelector("textPath");if(e){let i=[],{b:l,h:s}=this.renderer.fontMetrics(this.element),n=s-l,r=RegExp('(<tspan>|<tspan(?!\\sclass="highcharts-br")[^>]*>|<\\/tspan>)',"g"),a=e.innerHTML.replace(r,"").split(/<tspan class="highcharts-br"[^>]*>/),h=a.length,d=(u,p)=>{let{x:c,y:g}=p,v=(e.getRotationOfChar(u)-90)*vi,b=Math.cos(v),f=Math.sin(v);return[[c-n*b,g-n*f],[c+l*b,g+l*f]]};for(let u=0,p=0;p<h;p++){let c=a[p].length;for(let g=0;g<c;g+=5)try{let v=u+g+p,[b,f]=d(v,e.getStartPositionOfChar(v));g===0?(i.push(f),i.push(b)):(p===0&&i.unshift(f),p===h-1&&i.push(b))}catch{break}u+=c-1;try{let g=u+p,v=e.getEndPositionOfChar(g),[b,f]=d(g,v);i.unshift(f),i.unshift(b)}catch{break}}i.length&&i.push(i[0].slice()),t.polygon=i}return t}function Li(o){let t=o.labelOptions,e=o.point,i=t[e.formatPrefix+"TextPath"]||t.textPath;i&&!t.useHTML&&(this.setTextPath(e.getDataLabelPath?.(this)||e.graphic,i),e.dataLabelPath&&!i.enabled&&(e.dataLabelPath=e.dataLabelPath.destroy()))}let{getCenter:Pi,getStartAndEndRadians:Ti}=hi,{noop:wi}=A(),{column:Rt,treemap:oe}=z().seriesTypes,{getColor:Ai,getLevelOptions:Si,setTreeValues:Ri,updateRootId:Oi}=$t,{defined:ae,error:Ci,extend:Ot,fireEvent:Mi,isNumber:Ct,isObject:ht,isString:Bi,merge:dt,splat:Ii}=A();({compose:function(o){St(o,"afterGetBBox",yi),St(o,"beforeAddingDataLabel",Li);let t=o.prototype;t.setTextPath||(t.setTextPath=xi)}}).compose(Ut());let Ni=180/Math.PI,le=function(o,t,e,i){return{x:o+Math.cos(e)*i,y:t+Math.sin(e)*i}};function Di(o,t){let e=t.mapIdToNode,i=o.parent,l=i?e[i]:void 0,s=t.series,n=s.chart,r=s.points[o.i],a=Ai(o,{colors:s.options.colors||n&&n.options.colors,colorIndex:s.colorIndex,index:t.index,mapOptionsToLevel:t.mapOptionsToLevel,parentColor:l&&l.color,parentColorIndex:l&&l.colorIndex,series:t.series,siblings:t.siblings});return o.color=a.color,o.colorIndex=a.colorIndex,r&&(r.color=o.color,r.colorIndex=o.colorIndex,o.sliced=o.id!==t.idRoot&&r.sliced),o}class Mt extends oe{alignDataLabel(t,e,i){if(!i.textPath||!i.textPath.enabled)return e.placed=!1,super.alignDataLabel.apply(this,arguments)}animate(t){let e,i=this.chart,l=[i.plotWidth/2,i.plotHeight/2],s=i.plotLeft,n=i.plotTop,r=this.group;t?(e={translateX:l[0]+s,translateY:l[1]+n,scaleX:.001,scaleY:.001,rotation:10,opacity:.01},r.attr(e)):(e={translateX:s,translateY:n,scaleX:1,scaleY:1,rotation:0,opacity:1},r.animate(e,this.options.animation))}drawPoints(){let t=this,e=t.mapOptionsToLevel,i=t.shapeRoot,l=t.group,s=t.hasRendered,n=t.rootNode,r=t.idPreviousRoot,a=t.nodeMap,h=a[r],d=h&&h.shapeArgs,u=t.points,p=t.startAndEndRadians,c=t.chart,g=c&&c.options&&c.options.chart||{},v=typeof g.animation!="boolean"||g.animation,b=t.center,f={x:b[0],y:b[1]},B=b[3]/2,I=t.chart.renderer,C=!!(v&&s&&n!==r&&t.dataLabelsGroup),G,x=!1,T=!1;for(let S of(C&&(t.dataLabelsGroup.attr({opacity:0}),G=function(){x=!0,t.dataLabelsGroup.animate({opacity:1,visibility:"inherit"})}),u)){let V,ne,it=S.node,Hi=e[it.level],Gi=S.shapeExisting||{},k=it.shapeArgs||{},pt=!!(it.visible&&it.shapeArgs);k.borderRadius=t.options.borderRadius,V=s&&v?(function(w,y){let U=y.point,R=y.radians,O=y.innerR,ut=y.idRoot,Bt=y.idPreviousRoot,m=y.shapeExisting,Y=y.shapeRoot,N=y.shapePreviousRoot,X=y.visible,q={},D={end:w.end,start:w.start,innerR:w.innerR,r:w.r,x:w.x,y:w.y};return X?!U.graphic&&N&&((q=ut===U.id?{start:R.start,end:R.end}:N.end<=w.start?{start:R.end,end:R.end}:{start:R.start,end:R.start}).innerR=q.r=O):U.graphic&&(Bt===U.id?D={innerR:O,r:O}:Y&&(D=Y.end<=m.start?{innerR:O,r:O,start:R.end,end:R.end}:{innerR:O,r:O,start:R.start,end:R.start})),{from:q,to:D}})(k,{center:f,point:S,radians:p,innerR:B,idRoot:n,idPreviousRoot:r,shapeExisting:Gi,shapeRoot:i,shapePreviousRoot:d,visible:pt}):{to:k,from:{}},Ot(S,{shapeExisting:k,tooltipPos:[k.plotX,k.plotY],drillId:(function(w,y,U){let R;return w.node.isLeaf||(R=y===w.id?U[y].parent:w.id),R})(S,n,a),name:""+(S.name||S.id||S.index),plotX:k.plotX,plotY:k.plotY,value:it.val,isInside:pt,isNull:!pt}),S.dlOptions=Nt(It({},(function(w){let y=w.point,U=ht(w.shapeArgs)?w.shapeArgs:{},{end:R=0,radius:O=0,start:ut=0}=U,Bt=ht(w.optionsPoint)?w.optionsPoint.dataLabels:{},m=dt(Ii(ht(w.level)?w.level.dataLabels:{})[0],Bt),Y=m.style=m.style||{},{innerArcLength:N=0,outerArcLength:X=0}=y,q,D,M=m.rotationMode,E=ae(Y.width)?parseInt(Y.width||"0",10):void 0;return Ct(m.rotation)||((M==="auto"||M==="circular")&&(m.useHTML&&M==="circular"&&(M="auto"),N<1&&X>O?(q=0,y.dataLabelPath&&M==="circular"&&(m.textPath={enabled:!0}),R-ut<Math.PI&&(E=.7*O)):N>1&&X>1.5*O?M==="circular"?m.textPath={enabled:!0,attributes:{dy:5}}:M="parallel":(y.dataLabel?.textPath&&M==="circular"&&(m.textPath={enabled:!1}),M="perpendicular")),M!=="auto"&&M!=="circular"&&(y.dataLabel?.textPath&&(m.textPath={enabled:!1}),q=R-(R-ut)/2),M==="parallel"?E=Math.min(2.5*O,(X+N)/2):!ae(E)&&O&&(E=y.node.level===1?2*O:O),M==="perpendicular"&&(X<16?E=1:U.radius&&(Y.lineClamp=Math.floor(N/16)||1,E=O-(N<16?(16-N)/(X-N)*O:0))),E=Math.max((E||0)-2*(m.padding||0),1),D=(q||0)*Ni%180,M==="parallel"&&(D-=90),D>90?D-=180:D<-90&&(D+=180),m.rotation=D),m.textPath&&(y.shapeExisting.innerR===0&&m.textPath.enabled?(m.rotation=0,m.textPath.enabled=!1,E=Math.max(2*y.shapeExisting.r-2*(m.padding||0),1)):y.dlOptions?.textPath&&!y.dlOptions.textPath.enabled&&M==="circular"&&(m.textPath.enabled=!0),m.textPath.enabled&&(m.rotation=0,E=Math.max((X+N)/2-2*(m.padding||0),1),Y.whiteSpace="nowrap")),Y.width=E+"px",m})({point:S,level:Hi,optionsPoint:S.options,shapeArgs:k})),{zIndex:void 0}),!T&&pt&&(T=!0,ne=G),S.draw({animatableAttribs:V.to,attribs:Ot(V.from,!c.styledMode&&t.pointAttribs(S,S.selected&&"select")),onComplete:ne,group:l,renderer:I,shapeType:"arc",shapeArgs:k})}C&&T?(t.hasRendered=!1,t.options.dataLabels.defer=!0,Rt.prototype.drawDataLabels.call(t),t.hasRendered=!0,x&&G?.()):Rt.prototype.drawDataLabels.call(t),t.idPreviousRoot=n}layoutAlgorithm(t,e,i){let l=t.start,s=t.end-l,n=t.val,r=t.x,a=t.y,h=i&&ht(i.levelSize)&&Ct(i.levelSize.value)?i.levelSize.value:0,d=t.r,u=d+h,p=i&&Ct(i.slicedOffset)?i.slicedOffset:0;return(e||[]).reduce((c,g)=>{let v=1/n*g.val*s,b=le(r,a,l+v/2,p),f={x:g.sliced?b.x:r,y:g.sliced?b.y:a,innerR:d,r:u,radius:h,start:l,end:l+v};return c.push(f),l=f.end,c},[])}setRootNode(t,e,i){if(this.nodeMap[t].level===1&&this.nodeList.filter(l=>l.level===1).length===1){if(this.idPreviousRoot==="")return;t=""}super.setRootNode(t,e,i)}setShapeArgs(t,e,i){let l=i[t.level+1],s=t.children.filter(function(a){return a.visible}),n=[];n=this.layoutAlgorithm(e,s,l);let r=-1;for(let a of s){let h=n[++r],d=h.start+(h.end-h.start)/2,u=h.innerR+(h.r-h.innerR)/2,p=h.end-h.start,c=h.innerR===0&&p>6.28?{x:h.x,y:h.y}:le(h.x,h.y,d,u),g=a.val?a.childrenTotal>a.val?a.childrenTotal:a.val:a.childrenTotal;this.points[a.i]&&(this.points[a.i].innerArcLength=p*h.innerR,this.points[a.i].outerArcLength=p*h.r),a.shapeArgs=dt(h,{plotX:c.x,plotY:c.y}),a.values=dt(h,{val:g}),a.children.length&&this.setShapeArgs(a,a.values,i)}}translate(){let t=this.options,e=this.center=this.getCenter(),i=this.startAndEndRadians=Ti(t.startAngle,t.endAngle),l=e[3]/2,s=e[2]/2,n=Oi(this),r=this.nodeMap,a,h=r&&r[n],d={};this.shapeRoot=h&&h.shapeArgs,this.generatePoints(),Mi(this,"afterTranslate");let u=this.tree=this.getTree(),p=Bi((h=(r=this.nodeMap)[n]).parent)?h.parent:"",c=r[p],{from:g,to:v}=At.getLevelFromAndTo(h);a=Si({from:g,levels:this.options.levels,to:v,defaults:{colorByPoint:t.colorByPoint,dataLabels:t.dataLabels,levelIsConstant:t.levelIsConstant,levelSize:t.levelSize,slicedOffset:t.slicedOffset}}),a=At.calculateLevelSizes(a,{diffRadius:s-l,from:g,to:v}),Ri(u,{before:Di,idRoot:n,levelIsConstant:t.levelIsConstant,mapOptionsToLevel:a,mapIdToNode:r,points:this.points,series:this});let b=r[""].shapeArgs={end:i.end,r:l,start:i.start,val:h.val,x:e[0],y:e[1]};for(let f of(this.setShapeArgs(c,b,a),this.mapOptionsToLevel=a,this.points))d[f.id]&&Ci(31,!1,this.chart),d[f.id]=!0}}Mt.defaultOptions=dt(oe.defaultOptions,{center:["50%","50%"],clip:!1,colorByPoint:!1,opacity:1,dataLabels:{allowOverlap:!0,defer:!0,rotationMode:"circular",style:{textOverflow:"ellipsis"}},rootId:void 0,levelIsConstant:!0,levelSize:{value:1,unit:"weight"},slicedOffset:10}),Ot(Mt.prototype,{axisTypes:[],drawDataLabels:wi,getCenter:Pi,isCartesian:!1,onPointSupported:!0,pointAttribs:Rt.prototype.pointAttribs,pointClass:ee,NodeClass:class extends jt{},utils:At}),z().registerSeriesType("sunburst",Mt);let et=A();et.Breadcrumbs=et.Breadcrumbs||zt,et.Breadcrumbs.compose(et.Chart,et.defaultOptions);let Ei=A();return Gt.default})())});export default zi();
@@ -0,0 +1,18 @@
1
+ import{a as wt,b as Mt,e as ye}from"./chunk-ZW5NV4UO.js";var be=ye((N,ht)=>{(function(f,E){typeof N=="object"&&typeof ht=="object"?ht.exports=E(f._Highcharts,f._Highcharts.Axis,f._Highcharts.Color,f._Highcharts.LegendSymbol,f._Highcharts.SeriesRegistry,f._Highcharts.SVGElement,f._Highcharts.SVGRenderer):typeof define=="function"&&define.amd?define("highcharts/modules/heatmap",["highcharts/highcharts"],function(M){return E(M,M.Axis,M.Color,M.LegendSymbol,M.SeriesRegistry,M.SVGElement,M.SVGRenderer)}):typeof N=="object"?N["highcharts/modules/heatmap"]=E(f._Highcharts,f._Highcharts.Axis,f._Highcharts.Color,f._Highcharts.LegendSymbol,f._Highcharts.SeriesRegistry,f._Highcharts.SVGElement,f._Highcharts.SVGRenderer):f.Highcharts=E(f.Highcharts,f.Highcharts.Axis,f.Highcharts.Color,f.Highcharts.LegendSymbol,f.Highcharts.SeriesRegistry,f.Highcharts.SVGElement,f.Highcharts.SVGRenderer)})("u"<typeof window?N:window,(f,E,M,kt,Lt,It,St)=>(()=>{"use strict";var W,Z,q,$,Pt={28:r=>{r.exports=It},500:r=>{r.exports=kt},512:r=>{r.exports=Lt},532:r=>{r.exports=E},540:r=>{r.exports=St},620:r=>{r.exports=M},944:r=>{r.exports=f}},dt={};function v(r){var t=dt[r];if(t!==void 0)return t.exports;var e=dt[r]={exports:{}};return Pt[r](e,e.exports,v),e.exports}v.n=r=>{var t=r&&r.__esModule?()=>r.default:()=>r;return v.d(t,{a:t}),t},v.d=(r,t)=>{for(var e in t)v.o(t,e)&&!v.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:t[e]})},v.o=(r,t)=>Object.prototype.hasOwnProperty.call(r,t);var pt={};v.d(pt,{default:()=>ue});var Tt=v(944),A=v.n(Tt),Et=v(532),ct=v.n(Et),Dt=v(620),B=v.n(Dt);let{parse:J}=B(),{merge:Ot}=A();(W=Z||(Z={})).initDataClasses=function(r){let t=this.chart,e=this.legendItem=this.legendItem||{},i=this.options,o=r.dataClasses||[],s,l,a=t.options.chart.colorCount,d=0,p;this.dataClasses=l=[],e.labels=[];for(let h=0,g=o.length;h<g;++h)s=Ot(s=o[h]),l.push(s),(t.styledMode||!s.color)&&(i.dataClassColor==="category"?(t.styledMode||(a=(p=t.options.colors||[]).length,s.color=p[d]),s.colorIndex=d,++d===a&&(d=0)):s.color=J(i.minColor).tweenTo(J(i.maxColor),g<2?.5:h/(g-1)))},W.initStops=function(){let r=this.options,t=this.stops=r.stops||[[0,r.minColor||""],[1,r.maxColor||""]];for(let e=0,i=t.length;e<i;++e)t[e].color=J(t[e][1])},W.normalizedValue=function(r){let t=this.max||0,e=this.min||0;return this.logarithmic&&(r=this.logarithmic.log2lin(r)),1-(t-r)/(t-e||1)},W.toColor=function(r,t){let e,i,o,s,l,a,d=this.dataClasses,p=this.stops;if(d){for(a=d.length;a--;)if(i=(l=d[a]).from,o=l.to,(i===void 0||r>=i)&&(o===void 0||r<=o)){s=l.color,t&&(t.dataClass=a,t.colorIndex=l.colorIndex);break}}else{for(e=this.normalizedValue(r),a=p.length;a--&&!(e>p[a][0]););i=p[a]||p[a+1],e=1-((o=p[a+1]||i)[0]-e)/(o[0]-i[0]||1),s=i.color.tweenTo(o.color,e)}return s};let Vt=Z,{parse:_}=B(),{addEvent:D,extend:ut,merge:Ht,pick:zt,splat:Rt}=A();(function(r){let t;function e(){let{userOptions:n}=this;this.colorAxis=[],n.colorAxis&&(n.colorAxis=Rt(n.colorAxis),n.colorAxis.map(u=>new t(this,u)))}function i(n){let u=this.chart.colorAxis||[],x=C=>{let b=n.allItems.indexOf(C);b!==-1&&(this.destroyItem(n.allItems[b]),n.allItems.splice(b,1))},c=[],m,y;for(u.forEach(function(C){m=C.options,m?.showInLegend&&(m.dataClasses&&m.visible?c=c.concat(C.getDataClassLegendSymbols()):m.visible&&c.push(C),C.series.forEach(function(b){(!b.options.showInLegend||m.dataClasses)&&(b.options.legendType==="point"?b.points.forEach(function(k){x(k)}):x(b))}))}),y=c.length;y--;)n.allItems.unshift(c[y])}function o(n){n.visible&&n.item.legendColor&&n.item.legendItem.symbol.attr({fill:n.item.legendColor})}function s(n){this.chart.colorAxis?.forEach(u=>{u.update({},n.redraw)})}function l(){(this.chart.colorAxis?.length||this.colorAttribs)&&this.translateColors()}function a(){let n=this.axisTypes;n?n.indexOf("colorAxis")===-1&&n.push("colorAxis"):this.axisTypes=["colorAxis"]}function d(n){let u=this,x=n?"show":"hide";u.visible=u.options.visible=!!n,["graphic","dataLabel"].forEach(function(c){u[c]&&u[c][x]()}),this.series.buildKDTree()}function p(){let n=this,u=this.getPointsCollection(),x=this.options.nullColor,c=this.colorAxis,m=this.colorKey;u.forEach(y=>{let C=y.getNestedProperty(m),b=y.options.color||(y.isNull||y.value===null?x:c&&C!==void 0?c.toColor(C,y):y.color||n.color);b&&y.color!==b&&(y.color=b,n.options.legendType==="point"&&y.legendItem&&y.legendItem.label&&n.chart.legend.colorizeItem(y,y.visible))})}function h(){this.elem.attr("fill",_(this.start).tweenTo(_(this.end),this.pos),void 0,!0)}function g(){this.elem.attr("stroke",_(this.start).tweenTo(_(this.end),this.pos),void 0,!0)}r.compose=function(n,u,x,c,m){var y;let C,b=u.prototype,k=x.prototype,G=m.prototype;b.collectionsWithUpdate.includes("colorAxis")||(t=n,b.collectionsWithUpdate.push("colorAxis"),b.collectionsWithInit.colorAxis=[b.addColorAxis],D(u,"afterCreateAxes",e),C=(y=u).prototype.createAxis,y.prototype.createAxis=function(Y,H){if(Y!=="colorAxis")return C.apply(this,arguments);let it=new t(this,Ht(H.axis,{index:this[Y].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(P=>{P.series=[]}),this.series.forEach(P=>{P.bindAxes(),P.isDirtyData=!0}),zt(H.redraw,!0)&&this.redraw(H.animation),it},k.fillSetter=h,k.strokeSetter=g,D(c,"afterGetAllItems",i),D(c,"afterColorizeItem",o),D(c,"afterUpdate",s),ut(G,{optionalAxis:"colorAxis",translateColors:p}),ut(G.pointClass.prototype,{setVisible:d}),D(m,"afterTranslate",l,{order:1}),D(m,"bindAxes",a))},r.pointSetVisible=d})(q||(q={}));let Gt=q;var Nt=v(500),Wt=v.n(Nt),_t=v(512),z=v.n(_t);let{defaultOptions:Q}=A(),{series:gt}=z(),{defined:K,extend:mt,fireEvent:Kt,isArray:Xt,isNumber:jt,merge:ft,pick:L,relativeLength:xt}=A();Q.colorAxis=ft(Q.xAxis,{lineWidth:0,minPadding:0,maxPadding:0,gridLineColor:"#ffffff",gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{distance:8,overflow:"justify",rotation:0},minColor:"#e6e9ff",maxColor:"#0022ff",tickLength:5,showInLegend:!0});class w extends ct(){static compose(t,e,i,o){Gt.compose(w,t,e,i,o)}constructor(t,e){super(t,e),this.coll="colorAxis",this.visible=!0,this.init(t,e)}init(t,e){let i=t.options.legend||{},o=e.layout?e.layout!=="vertical":i.layout!=="vertical";this.side=e.side||o?2:1,this.reversed=e.reversed,this.opposite=!o,super.init(t,e,"colorAxis"),this.userOptions=e,Xt(t.userOptions.colorAxis)&&(t.userOptions.colorAxis[this.index]=e),e.dataClasses&&this.initDataClasses(e),this.initStops(),this.horiz=o,this.zoomEnabled=!1}hasData(){return!!(this.tickPositions||[]).length}setTickPositions(){if(!this.dataClasses)return super.setTickPositions()}setOptions(t){let e=ft(Q.colorAxis,t,{showEmpty:!1,title:null,visible:this.chart.options.legend.enabled&&t.visible!==!1});super.setOptions(e),this.options.crosshair=this.options.marker}setAxisSize(){let t=this.chart,e=this.legendItem?.symbol,{width:i,height:o}=this.getSize();e&&(this.left=+e.attr("x"),this.top=+e.attr("y"),this.width=i=+e.attr("width"),this.height=o=+e.attr("height"),this.right=t.chartWidth-this.left-i,this.bottom=t.chartHeight-this.top-o,this.pos=this.horiz?this.left:this.top),this.len=(this.horiz?i:o)||w.defaultLegendLength}getOffset(){let t=this.legendItem?.group,e=this.chart.axisOffset[this.side];if(t){this.axisParent=t,super.getOffset();let i=this.chart.legend;i.allItems.forEach(function(o){o instanceof w&&o.drawLegendSymbol(i,o)}),i.render(),this.chart.getMargins(!0),this.chart.series.some(o=>o.isDrilling)||(this.isDirty=!0),this.added||(this.added=!0),this.labelLeft=0,this.labelRight=this.width,this.chart.axisOffset[this.side]=e}}setLegendColor(){let t=this.horiz,e=this.reversed,i=+!!e,o=+!e,s=t?[i,0,o,0]:[0,o,0,i];this.legendColor={linearGradient:{x1:s[0],y1:s[1],x2:s[2],y2:s[3]},stops:this.stops}}drawLegendSymbol(t,e){let i=e.legendItem||{},o=t.padding,s=t.options,l=this.options.labels,a=L(s.itemDistance,10),d=this.horiz,{width:p,height:h}=this.getSize(),g=L(s.labelPadding,d?16:30);this.setLegendColor(),i.symbol||(i.symbol=this.chart.renderer.symbol("roundedRect").attr({r:s.symbolRadius??3,zIndex:1}).add(i.group)),i.symbol.attr({x:0,y:(t.baseline||0)-11,width:p,height:h}),i.labelWidth=p+o+(d?a:L(l.x,l.distance)+(this.maxLabelLength||0)),i.labelHeight=h+o+(d?g:0)}setState(t){this.series.forEach(function(e){e.setState(t)})}setVisible(){}getSeriesExtremes(){let t=this.series,e,i,o,s,l=t.length;for(this.dataMin=1/0,this.dataMax=-1/0;l--;){for(let a of(i=(s=t[l]).colorKey=L(s.options.colorKey,s.colorKey,s.pointValKey,s.zoneAxis,"y"),o=s[i+"Min"]&&s[i+"Max"],[i,"value","y"]))if((e=s.getColumn(a)).length)break;if(o)s.minColorValue=s[i+"Min"],s.maxColorValue=s[i+"Max"];else{let a=gt.prototype.getExtremes.call(s,e);s.minColorValue=a.dataMin,s.maxColorValue=a.dataMax}K(s.minColorValue)&&K(s.maxColorValue)&&(this.dataMin=Math.min(this.dataMin,s.minColorValue),this.dataMax=Math.max(this.dataMax,s.maxColorValue)),o||gt.prototype.applyExtremes.call(s)}}drawCrosshair(t,e){let i,o=this.legendItem||{},s=e?.plotX,l=e?.plotY,a=this.pos,d=this.len;e&&((i=this.toPixels(e.getNestedProperty(e.series.colorKey)))<a?i=a-2:i>a+d&&(i=a+d+2),e.plotX=i,e.plotY=this.len-i,super.drawCrosshair(t,e),e.plotX=s,e.plotY=l,this.cross&&!this.cross.addedToColorAxis&&o.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(o.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||typeof this.crosshair!="object"||this.cross.attr({fill:this.crosshair.color})))}getPlotLinePath(t){let e=this.left,i=t.translatedValue,o=this.top;return jt(i)?this.horiz?[["M",i-4,o-6],["L",i+4,o-6],["L",i,o],["Z"]]:[["M",e,i],["L",e-6,i+6],["L",e-6,i-6],["Z"]]:super.getPlotLinePath(t)}update(t,e){let i=this.chart.legend;this.series.forEach(o=>{o.isDirtyData=!0}),(t.dataClasses&&i.allItems||this.dataClasses)&&this.destroyItems(),super.update(t,e),this.legendItem?.label&&(this.setLegendColor(),i.colorizeItem(this,!0))}destroyItems(){let t=this.chart,e=this.legendItem||{};if(e.label)t.legend.destroyItem(this);else if(e.labels)for(let i of e.labels)t.legend.destroyItem(i);t.isDirtyLegend=!0}destroy(){this.chart.isDirtyLegend=!0,this.destroyItems(),super.destroy(...[].slice.call(arguments))}remove(t){this.destroyItems(),super.remove(t)}getDataClassLegendSymbols(){let t,e=this,i=e.chart,o=e.legendItem&&e.legendItem.labels||[],s=i.options.legend,l=L(s.valueDecimals,-1),a=L(s.valueSuffix,""),d=p=>e.series.reduce((h,g)=>(h.push(...g.points.filter(n=>n.dataClass===p)),h),[]);return o.length||e.dataClasses.forEach((p,h)=>{let g=p.from,n=p.to,{numberFormatter:u}=i,x=!0;t="",g===void 0?t="< ":n===void 0&&(t="> "),g!==void 0&&(t+=u(g,l)+a),g!==void 0&&n!==void 0&&(t+=" - "),n!==void 0&&(t+=u(n,l)+a),o.push(mt({chart:i,name:t,options:{},drawLegendSymbol:Wt().rectangle,visible:!0,isDataClass:!0,setState:c=>{for(let m of d(h))m.setState(c)},setVisible:function(){this.visible=x=e.visible=!x;let c=[];for(let m of d(h))m.setVisible(x),m.hiddenInDataClass=!x,c.indexOf(m.series)===-1&&c.push(m.series);i.legend.colorizeItem(this,x),c.forEach(m=>{Kt(m,"afterDataClassLegendClick")})}},p))}),o}getSize(){let{chart:t,horiz:e}=this,{height:i,width:o}=this.options,{legend:s}=t.options;return{width:L(K(o)?xt(o,t.chartWidth):void 0,s?.symbolWidth,e?w.defaultLegendLength:12),height:L(K(i)?xt(i,t.chartHeight):void 0,s?.symbolHeight,e?12:w.defaultLegendLength)}}}w.defaultLegendLength=200,w.keepProps=["legendItem"],mt(w.prototype,Vt),Array.prototype.push.apply(ct().keepProps,w.keepProps);let S=A();S.ColorAxis=S.ColorAxis||w,S.ColorAxis.compose(S.Chart,S.Fx,S.Legend,S.Series);var Ut=v(28),Yt=v.n(Ut);let{column:{prototype:Ft}}=z().seriesTypes,{addEvent:Zt,defined:qt}=A();var tt=$||($={});function $t(r){let t=this.series,e=t.chart.renderer;this.moveToTopOnHover&&this.graphic&&(t.stateMarkerGraphic||(t.stateMarkerGraphic=new(Yt())(e,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),r?.state==="hover"?(this.graphic.attr({id:this.id}),t.stateMarkerGraphic.attr({href:`${e.url}#${this.id}`,visibility:"visible"})):t.stateMarkerGraphic.attr({href:""}))}tt.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return this.value!==null&&this.value!==1/0&&this.value!==-1/0&&(this.value===void 0||!isNaN(this.value))}},tt.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(r){let t={};return qt(r.color)&&(!r.state||r.state==="normal")&&(t[this.colorProp||"fill"]=r.color),t},pointAttribs:Ft.pointAttribs},tt.compose=function(r){return Zt(r.prototype.pointClass,"afterSetState",$t),r};let O=$,{scatter:{prototype:{pointClass:Bt}}}=z().seriesTypes,{clamp:X,defined:Jt,extend:Qt,pick:te}=A();class yt extends Bt{applyOptions(t,e){return(this.isNull||this.value===null)&&delete this.color,super.applyOptions(t,e),this.formatPrefix=this.isNull||this.value===null?"null":"point",this}getCellAttributes(){let t=this.series,e=t.options,i=(e.colsize||1)/2,o=(e.rowsize||1)/2,s=t.xAxis,l=t.yAxis,a=this.options.marker||t.options.marker,d=t.pointPlacementToXValue(),p=te(this.pointPadding,e.pointPadding,0),h={x1:X(Math.round(s.len-s.translate(this.x-i,!1,!0,!1,!0,-d)),-s.len,2*s.len),x2:X(Math.round(s.len-s.translate(this.x+i,!1,!0,!1,!0,-d)),-s.len,2*s.len),y1:X(Math.round(l.translate(this.y-o,!1,!0,!1,!0)),-l.len,2*l.len),y2:X(Math.round(l.translate(this.y+o,!1,!0,!1,!0)),-l.len,2*l.len)};for(let g of[["width","x"],["height","y"]]){let n=g[0],u=g[1],x=u+"1",c=u+"2",m=Math.abs(h[x]-h[c]),y=a&&a.lineWidth||0,C=Math.abs(h[x]+h[c])/2,b=a&&a[n];if(Jt(b)&&b<m){let k=b/2+y/2;h[x]=C-k,h[c]=C+k}p&&((u==="x"&&s.reversed||u==="y"&&!l.reversed)&&(x=c,c=u+"1"),h[x]+=p,h[c]-=p)}return h}haloPath(t){if(!t)return[];let{x:e=0,y:i=0,width:o=0,height:s=0}=this.shapeArgs||{};return[["M",e-t,i-t],["L",e-t,i+s+t],["L",e+o+t,i+s+t],["L",e+o+t,i-t],["Z"]]}isValid(){return this.value!==1/0&&this.value!==-1/0}}Qt(yt.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1});let{isNumber:ee}=A();var ie=v(540),se=v.n(ie);let{doc:oe}=A(),{defined:re,pick:bt}=A(),{series:V,seriesTypes:{column:ae,scatter:vt}}=z(),{prototype:{symbols:j}}=se(),{addEvent:le,extend:ne,fireEvent:he,isNumber:U,merge:et,pick:de}=A(),{colorFromPoint:pe,getContext:ce}={colorFromPoint:function(r,t){let e=t.series.colorAxis;if(e){let i=e.toColor(r||0,t).split(")")[0].split("(")[1].split(",").map(o=>bt(parseFloat(o),parseInt(o,10)));return i[3]=255*bt(i[3],1),re(r)&&t.visible||(i[3]=0),i}return[0,0,0,0]},getContext:function(r){let{canvas:t,context:e}=r;return t&&e?(e.clearRect(0,0,t.width,t.height),e):(r.canvas=oe.createElement("canvas"),r.context=r.canvas.getContext("2d",{willReadFrequently:!0})||void 0,r.context)}};class R extends vt{constructor(){super(...arguments),this.valueMax=NaN,this.valueMin=NaN,this.isDirtyCanvas=!0}drawPoints(){let t=this,e=t.options,i=e.interpolation,o=e.marker||{};if(i){let{image:s,chart:l,xAxis:a,yAxis:d}=t,{reversed:p=!1,len:h}=a,{reversed:g=!1,len:n}=d,u={width:h,height:n};if(!s||t.isDirtyData||t.isDirtyCanvas){let x=ce(t),{canvas:c,options:{colsize:m=1,rowsize:y=1},points:C,points:{length:b}}=t,k=l.colorAxis&&l.colorAxis[0];if(c&&x&&k){let{min:G,max:Y}=a.getExtremes(),{min:H,max:it}=d.getExtremes(),P=Y-G,Ct=it-H,st=Math.round(P/m/8*8),ot=Math.round(Ct/y/8*8),[ge,me]=[[st,st/P,p,"ceil"],[ot,ot/Ct,!g,"floor"]].map(([T,I,lt,F])=>lt?nt=>Math[F](T-I*nt):nt=>Math[F](I*nt)),rt=c.width=st+1,at=rt*(c.height=ot+1),fe=(b-1)/at,At=new Uint8ClampedArray(4*at),xe=(T,I)=>4*Math.ceil(rt*me(I-H)+ge(T-G));t.buildKDTree();for(let T=0;T<at;T++){let I=C[Math.ceil(fe*T)],{x:lt,y:F}=I;At.set(pe(I.value,I),xe(lt,F))}x.putImageData(new ImageData(At,rt),0,0),s?s.attr(Mt(wt({},u),{href:c.toDataURL("image/png",1)})):(t.directTouch=!1,t.image=l.renderer.image(c.toDataURL("image/png",1)).attr(u).add(t.group))}t.isDirtyCanvas=!1}else(s.width!==h||s.height!==n)&&s.attr(u)}else(o.enabled||t._hasPointMarkers)&&(V.prototype.drawPoints.call(t),t.points.forEach(s=>{s.graphic&&(s.graphic[t.chart.styledMode?"css":"animate"](t.colorAttribs(s)),s.value===null&&s.graphic.addClass("highcharts-null-point"))}))}getExtremes(){let{dataMin:t,dataMax:e}=V.prototype.getExtremes.call(this,this.getColumn("value"));return U(t)&&(this.valueMin=t),U(e)&&(this.valueMax=e),V.prototype.getExtremes.call(this)}getValidPoints(t,e){return V.prototype.getValidPoints.call(this,t,e,!0)}hasData(){return!!this.dataTable.rowCount}init(){super.init.apply(this,arguments);let t=this.options;t.pointRange=de(t.pointRange,t.colsize||1),this.yAxis.axisPointRange=t.rowsize||1,j.ellipse=j.circle,t.marker&&U(t.borderRadius)&&(t.marker.r=t.borderRadius)}markerAttribs(t,e){let i=t.shapeArgs||{};if(t.hasImage)return{x:t.plotX,y:t.plotY};if(e&&e!=="normal"){let o=t.options.marker||{},s=this.options.marker||{},l=s.states?.[e]||{},a=o.states?.[e]||{},d=(a.width||l.width||i.width||0)+(a.widthPlus||l.widthPlus||0),p=(a.height||l.height||i.height||0)+(a.heightPlus||l.heightPlus||0);return{x:(i.x||0)+((i.width||0)-d)/2,y:(i.y||0)+((i.height||0)-p)/2,width:d,height:p}}return i}pointAttribs(t,e){let i=V.prototype.pointAttribs.call(this,t,e),o=this.options||{},s=this.chart.options.plotOptions||{},l=s.series||{},a=s.heatmap||{},d=t?.options.borderColor||o.borderColor||a.borderColor||l.borderColor,p=t?.options.borderWidth||o.borderWidth||a.borderWidth||l.borderWidth||i["stroke-width"];if(i.stroke=t?.marker?.lineColor||o.marker?.lineColor||d||this.color,i["stroke-width"]=p,e&&e!=="normal"){let h=et(o.states?.[e],o.marker?.states?.[e],t?.options.marker?.states?.[e]||{});i.fill=h.color||B().parse(i.fill).brighten(h.brightness||0).get(),i.stroke=h.lineColor||i.stroke}return i}translate(){let{borderRadius:t,marker:e}=this.options,i=e?.symbol||"rect",o=j[i]?i:"rect",s=["circle","square"].indexOf(o)!==-1;for(let l of(this.generatePoints(),this.points)){let a=l.getCellAttributes(),d=Math.min(a.x1,a.x2),p=Math.min(a.y1,a.y2),h=Math.max(Math.abs(a.x2-a.x1),0),g=Math.max(Math.abs(a.y2-a.y1),0);if(l.hasImage=(l.marker?.symbol||i||"").indexOf("url")===0,s){let n=Math.abs(h-g);d=Math.min(a.x1,a.x2)+(h<g?0:n/2),p=Math.min(a.y1,a.y2)+(h<g?n/2:0),h=g=Math.min(h,g)}l.hasImage&&(l.marker={width:h,height:g}),l.plotX=l.clientX=(a.x1+a.x2)/2,l.plotY=(a.y1+a.y2)/2,l.shapeType="path",l.shapeArgs=et(!0,{x:d,y:p,width:h,height:g},{d:j[o](d,p,h,g,{r:U(t)?t:0})})}he(this,"afterTranslate")}}R.defaultOptions=et(vt.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,interpolation:!1,nullColor:"#f7f7f7",dataLabels:{formatter:function(){let{numberFormatter:r}=this.series.chart,{value:t}=this.point;return ee(t)?r(t,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:"allow",padding:0},marker:{symbol:"rect",radius:0,lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}},legendSymbol:"rectangle"}),le(R,"afterDataClassLegendClick",function(){this.isDirtyCanvas=!0,this.drawPoints(),this.options.enableMouseTracking&&this.drawTracker()}),ne(R.prototype,{axisTypes:O.seriesMembers.axisTypes,colorKey:O.seriesMembers.colorKey,directTouch:!0,getExtremesFromAll:!0,keysAffectYAxis:["y"],parallelArrays:O.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:yt,specialGroup:"group",trackerGroups:O.seriesMembers.trackerGroups,alignDataLabel:ae.prototype.alignDataLabel,colorAttribs:O.seriesMembers.colorAttribs,getSymbol:V.prototype.getSymbol}),O.compose(R),z().registerSeriesType("heatmap",R);let ue=A();return pt.default})())});export default be();
2
+ /*! Bundled license information:
3
+
4
+ highcharts/modules/heatmap.js:
5
+ (**
6
+ * @license Highcharts JS v12.5.0 (2026-01-12)
7
+ * @module highcharts/modules/color-axis
8
+ * @requires highcharts
9
+ *
10
+ * ColorAxis module
11
+ *
12
+ * (c) 2012-2026 Highsoft AS
13
+ * Author: Pawel Potaczek
14
+ *
15
+ * A commercial license may be required depending on use.
16
+ * See www.highcharts.com/license
17
+ *)
18
+ */
@@ -0,0 +1,12 @@
1
+ import"./chunk-ZW5NV4UO.js";var c=class{constructor(i){this._map=new Map,this._roundAverageSize=!1,this.totalSize=0,i?.roundAverageSize===!0&&(this._roundAverageSize=!0)}set(i,t){let s=this._map.get(i)||0;this._map.set(i,t),this.totalSize+=t-s}get averageSize(){if(this._map.size>0){let i=this.totalSize/this._map.size;return this._roundAverageSize?Math.round(i):i}return 0}getSize(i){return this._map.get(i)}clear(){this._map.clear(),this.totalSize=0}};function f(a){return a==="horizontal"?"width":"height"}var g=class{_getDefaultConfig(){return{direction:"vertical"}}constructor(i,t){this._latestCoords={left:0,top:0},this._direction=null,this._viewportSize={width:0,height:0},this.totalScrollSize={width:0,height:0},this.offsetWithinScroller={left:0,top:0},this._pendingReflow=!1,this._pendingLayoutUpdate=!1,this._pin=null,this._firstVisible=0,this._lastVisible=0,this._physicalMin=0,this._physicalMax=0,this._first=-1,this._last=-1,this._sizeDim="height",this._secondarySizeDim="width",this._positionDim="top",this._secondaryPositionDim="left",this._scrollPosition=0,this._scrollError=0,this._items=[],this._scrollSize=1,this._overhang=1e3,this._hostSink=i,Promise.resolve().then(()=>this.config=t||this._getDefaultConfig())}set config(i){Object.assign(this,Object.assign({},this._getDefaultConfig(),i))}get config(){return{direction:this.direction}}get items(){return this._items}set items(i){this._setItems(i)}_setItems(i){i!==this._items&&(this._items=i,this._scheduleReflow())}get direction(){return this._direction}set direction(i){i=i==="horizontal"?i:"vertical",i!==this._direction&&(this._direction=i,this._sizeDim=i==="horizontal"?"width":"height",this._secondarySizeDim=i==="horizontal"?"height":"width",this._positionDim=i==="horizontal"?"left":"top",this._secondaryPositionDim=i==="horizontal"?"top":"left",this._triggerReflow())}get viewportSize(){return this._viewportSize}set viewportSize(i){let{_viewDim1:t,_viewDim2:s}=this;Object.assign(this._viewportSize,i),s!==this._viewDim2?this._scheduleLayoutUpdate():t!==this._viewDim1&&this._checkThresholds()}get viewportScroll(){return this._latestCoords}set viewportScroll(i){Object.assign(this._latestCoords,i);let t=this._scrollPosition;this._scrollPosition=this._latestCoords[this._positionDim],Math.abs(t-this._scrollPosition)>=1&&this._checkThresholds()}reflowIfNeeded(i=!1){(i||this._pendingReflow)&&(this._pendingReflow=!1,this._reflow())}set pin(i){this._pin=i,this._triggerReflow()}get pin(){if(this._pin!==null){let{index:i,block:t}=this._pin;return{index:Math.max(0,Math.min(i,this.items.length-1)),block:t}}return null}_clampScrollPosition(i){return Math.max(-this.offsetWithinScroller[this._positionDim],Math.min(i,this.totalScrollSize[f(this.direction)]-this._viewDim1))}unpin(){this._pin!==null&&(this._sendUnpinnedMessage(),this._pin=null)}_updateLayout(){}get _viewDim1(){return this._viewportSize[this._sizeDim]}get _viewDim2(){return this._viewportSize[this._secondarySizeDim]}_scheduleReflow(){this._pendingReflow=!0}_scheduleLayoutUpdate(){this._pendingLayoutUpdate=!0,this._scheduleReflow()}_triggerReflow(){this._scheduleLayoutUpdate(),Promise.resolve().then(()=>this.reflowIfNeeded())}_reflow(){this._pendingLayoutUpdate&&(this._updateLayout(),this._pendingLayoutUpdate=!1),this._updateScrollSize(),this._setPositionFromPin(),this._getActiveItems(),this._updateVisibleIndices(),this._sendStateChangedMessage()}_setPositionFromPin(){if(this.pin!==null){let i=this._scrollPosition,{index:t,block:s}=this.pin;this._scrollPosition=this._calculateScrollIntoViewPosition({index:t,block:s||"start"})-this.offsetWithinScroller[this._positionDim],this._scrollError=i-this._scrollPosition}}_calculateScrollIntoViewPosition(i){let{block:t}=i,s=Math.min(this.items.length,Math.max(0,i.index)),e=this._getItemPosition(s)[this._positionDim],h=e;if(t!=="start"){let l=this._getItemSize(s)[this._sizeDim];if(t==="center")h=e-.5*this._viewDim1+.5*l;else{let o=e-this._viewDim1+l;if(t==="end")h=o;else{let n=this._scrollPosition;h=Math.abs(n-e)<Math.abs(n-o)?e:o}}}return h+=this.offsetWithinScroller[this._positionDim],this._clampScrollPosition(h)}getScrollIntoViewCoordinates(i){return{[this._positionDim]:this._calculateScrollIntoViewPosition(i)}}_sendUnpinnedMessage(){this._hostSink({type:"unpinned"})}_sendVisibilityChangedMessage(){this._hostSink({type:"visibilityChanged",firstVisible:this._firstVisible,lastVisible:this._lastVisible})}_sendStateChangedMessage(){let i=new Map;if(this._first!==-1&&this._last!==-1)for(let s=this._first;s<=this._last;s++)i.set(s,this._getItemPosition(s));let t={type:"stateChanged",scrollSize:{[this._sizeDim]:this._scrollSize,[this._secondarySizeDim]:null},range:{first:this._first,last:this._last,firstVisible:this._firstVisible,lastVisible:this._lastVisible},childPositions:i};this._scrollError&&(t.scrollError={[this._positionDim]:this._scrollError,[this._secondaryPositionDim]:0},this._scrollError=0),this._hostSink(t)}get _num(){return this._first===-1||this._last===-1?0:this._last-this._first+1}_checkThresholds(){if(this._viewDim1===0&&this._num>0||this._pin!==null)this._scheduleReflow();else{let i=Math.max(0,this._scrollPosition-this._overhang),t=Math.min(this._scrollSize,this._scrollPosition+this._viewDim1+this._overhang);this._physicalMin>i||this._physicalMax<t?this._scheduleReflow():this._updateVisibleIndices({emit:!0})}}_updateVisibleIndices(i){if(this._first===-1||this._last===-1)return;let t=this._first;for(;t<this._last&&Math.round(this._getItemPosition(t)[this._positionDim]+this._getItemSize(t)[this._sizeDim])<=Math.round(this._scrollPosition);)t++;let s=this._last;for(;s>this._first&&Math.round(this._getItemPosition(s)[this._positionDim])>=Math.round(this._scrollPosition+this._viewDim1);)s--;(t!==this._firstVisible||s!==this._lastVisible)&&(this._firstVisible=t,this._lastVisible=s,i&&i.emit&&this._sendVisibilityChangedMessage())}};var I=a=>Object.assign({type:u},a);function S(a){return a==="horizontal"?"marginLeft":"marginTop"}function z(a){return a==="horizontal"?"marginRight":"marginBottom"}function p(a){return a==="horizontal"?"xOffset":"yOffset"}function M(a,i){let t=[a,i].sort();return t[1]<=0?Math.min(...t):t[0]>=0?Math.max(...t):t[0]+t[1]}var d=class{constructor(){this._childSizeCache=new c,this._marginSizeCache=new c,this._metricsCache=new Map}update(i,t){let s=new Set;Object.keys(i).forEach(e=>{let h=Number(e);this._metricsCache.set(h,i[h]),this._childSizeCache.set(h,i[h][f(t)]),s.add(h),s.add(h+1)});for(let e of s){let h=this._metricsCache.get(e)?.[S(t)]||0,l=this._metricsCache.get(e-1)?.[z(t)]||0;this._marginSizeCache.set(e,M(h,l))}}get averageChildSize(){return this._childSizeCache.averageSize}get totalChildSize(){return this._childSizeCache.totalSize}get averageMarginSize(){return this._marginSizeCache.averageSize}get totalMarginSize(){return this._marginSizeCache.totalSize}getLeadingMarginValue(i,t){return this._metricsCache.get(i)?.[S(t)]||0}getChildSize(i){return this._childSizeCache.getSize(i)}getMarginSize(i){return this._marginSizeCache.getSize(i)}clear(){this._childSizeCache.clear(),this._marginSizeCache.clear(),this._metricsCache.clear()}},u=class extends g{constructor(){super(...arguments),this._itemSize={width:100,height:100},this._physicalItems=new Map,this._newPhysicalItems=new Map,this._metricsCache=new d,this._anchorIdx=null,this._anchorPos=null,this._stable=!0,this._measureChildren=!0,this._estimate=!0}get measureChildren(){return this._measureChildren}updateItemSizes(i){this._metricsCache.update(i,this.direction),this._scheduleReflow()}_getPhysicalItem(i){return this._newPhysicalItems.get(i)??this._physicalItems.get(i)}_getSize(i){return this._getPhysicalItem(i)&&this._metricsCache.getChildSize(i)}_getAverageSize(){return this._metricsCache.averageChildSize||this._itemSize[this._sizeDim]}_estimatePosition(i){let t=this._metricsCache;if(this._first===-1||this._last===-1)return t.averageMarginSize+i*(t.averageMarginSize+this._getAverageSize());if(i<this._first){let s=this._first-i;return this._getPhysicalItem(this._first).pos-(t.getMarginSize(this._first-1)||t.averageMarginSize)-(s*t.averageChildSize+(s-1)*t.averageMarginSize)}else{let s=i-this._last;return this._getPhysicalItem(this._last).pos+(t.getChildSize(this._last)||t.averageChildSize)+(t.getMarginSize(this._last)||t.averageMarginSize)+s*(t.averageChildSize+t.averageMarginSize)}}_getPosition(i){let t=this._getPhysicalItem(i),{averageMarginSize:s}=this._metricsCache;return i===0?this._metricsCache.getMarginSize(0)??s:t?t.pos:this._estimatePosition(i)}_calculateAnchor(i,t){return i<=0?0:t>this._scrollSize-this._viewDim1?this.items.length-1:Math.max(0,Math.min(this.items.length-1,Math.floor((i+t)/2/this._delta)))}_getAnchor(i,t){if(this._physicalItems.size===0)return this._calculateAnchor(i,t);if(this._first<0)return this._calculateAnchor(i,t);if(this._last<0)return this._calculateAnchor(i,t);let s=this._getPhysicalItem(this._first),e=this._getPhysicalItem(this._last),h=s.pos;if(e.pos+this._metricsCache.getChildSize(this._last)<i)return this._calculateAnchor(i,t);if(h>t)return this._calculateAnchor(i,t);let n=this._firstVisible-1,r=-1/0;for(;r<i;)r=this._getPhysicalItem(++n).pos+this._metricsCache.getChildSize(n);return n}_getActiveItems(){this._viewDim1===0||this.items.length===0?this._clearItems():this._getItems()}_clearItems(){this._first=-1,this._last=-1,this._physicalMin=0,this._physicalMax=0;let i=this._newPhysicalItems;this._newPhysicalItems=this._physicalItems,this._newPhysicalItems.clear(),this._physicalItems=i,this._stable=!0}_getItems(){let i=this._newPhysicalItems;this._stable=!0;let t,s;if(this.pin!==null){let{index:r}=this.pin;this._anchorIdx=r,this._anchorPos=this._getPosition(r)}if(t=this._scrollPosition-this._overhang,s=this._scrollPosition+this._viewDim1+this._overhang,s<0||t>this._scrollSize){this._clearItems();return}(this._anchorIdx===null||this._anchorPos===null)&&(this._anchorIdx=this._getAnchor(t,s),this._anchorPos=this._getPosition(this._anchorIdx));let e=this._getSize(this._anchorIdx);e===void 0&&(this._stable=!1,e=this._getAverageSize());let h=this._metricsCache.getMarginSize(this._anchorIdx)??this._metricsCache.averageMarginSize,l=this._metricsCache.getMarginSize(this._anchorIdx+1)??this._metricsCache.averageMarginSize;this._anchorIdx===0&&(this._anchorPos=h),this._anchorIdx===this.items.length-1&&(this._anchorPos=this._scrollSize-l-e);let o=0;for(this._anchorPos+e+l<t&&(o=t-(this._anchorPos+e+l)),this._anchorPos-h>s&&(o=s-(this._anchorPos-h)),o&&(this._scrollPosition-=o,t-=o,s-=o,this._scrollError+=o),i.set(this._anchorIdx,{pos:this._anchorPos,size:e}),this._first=this._last=this._anchorIdx,this._physicalMin=this._anchorPos-h,this._physicalMax=this._anchorPos+e+l;this._physicalMin>t&&this._first>0;){let r=this._getSize(--this._first);r===void 0&&(this._stable=!1,r=this._getAverageSize());let _=this._metricsCache.getMarginSize(this._first);_===void 0&&(this._stable=!1,_=this._metricsCache.averageMarginSize),this._physicalMin-=r;let m=this._physicalMin;if(i.set(this._first,{pos:m,size:r}),this._physicalMin-=_,this._stable===!1&&this._estimate===!1)break}for(;this._physicalMax<s&&this._last<this.items.length-1;){let r=this._getSize(++this._last);r===void 0&&(this._stable=!1,r=this._getAverageSize());let _=this._metricsCache.getMarginSize(this._last);_===void 0&&(this._stable=!1,_=this._metricsCache.averageMarginSize);let m=this._physicalMax;if(i.set(this._last,{pos:m,size:r}),this._physicalMax+=r+_,!this._stable&&!this._estimate)break}let n=this._calculateError();n&&(this._physicalMin-=n,this._physicalMax-=n,this._anchorPos-=n,this._scrollPosition-=n,i.forEach(r=>r.pos-=n),this._scrollError+=n),this._stable&&(this._newPhysicalItems=this._physicalItems,this._newPhysicalItems.clear(),this._physicalItems=i)}_calculateError(){return this._first===0?this._physicalMin:this._physicalMin<=0?this._physicalMin-this._first*this._delta:this._last===this.items.length-1?this._physicalMax-this._scrollSize:this._physicalMax>=this._scrollSize?this._physicalMax-this._scrollSize+(this.items.length-1-this._last)*this._delta:0}_reflow(){let{_first:i,_last:t}=this;super._reflow(),(this._first===-1&&this._last==-1||this._first===i&&this._last===t)&&this._resetReflowState()}_resetReflowState(){this._anchorIdx=null,this._anchorPos=null,this._stable=!0}_updateScrollSize(){let{averageMarginSize:i}=this._metricsCache;this._scrollSize=Math.max(1,this.items.length*(i+this._getAverageSize())+i)}get _delta(){let{averageMarginSize:i}=this._metricsCache;return this._getAverageSize()+i}_getItemPosition(i){return{[this._positionDim]:this._getPosition(i),[this._secondaryPositionDim]:0,[p(this.direction)]:-(this._metricsCache.getLeadingMarginValue(i,this.direction)??this._metricsCache.averageMarginSize)}}_getItemSize(i){return{[this._sizeDim]:this._getSize(i)||this._getAverageSize(),[this._secondarySizeDim]:this._itemSize[this._secondarySizeDim]}}_viewDim2Changed(){this._metricsCache.clear(),this._scheduleReflow()}};export{u as FlowLayout,I as flow};
2
+ /*! Bundled license information:
3
+
4
+ @lit-labs/virtualizer/layouts/shared/SizeCache.js:
5
+ @lit-labs/virtualizer/layouts/shared/BaseLayout.js:
6
+ @lit-labs/virtualizer/layouts/flow.js:
7
+ (**
8
+ * @license
9
+ * Copyright 2021 Google LLC
10
+ * SPDX-License-Identifier: BSD-3-Clause
11
+ *)
12
+ */
@@ -0,0 +1,2 @@
1
+ import{f as g}from"./chunk-ZW5NV4UO.js";var D={};g(D,{Jsep:()=>h,default:()=>c});var d=class{add(e,i,s){if(typeof arguments[0]!="string")for(let r in arguments[0])this.add(r,arguments[0][r],arguments[1]);else(Array.isArray(e)?e:[e]).forEach(function(r){this[r]=this[r]||[],i&&this[r][s?"unshift":"push"](i)},this)}run(e,i){this[e]=this[e]||[],this[e].forEach(function(s){s.call(i&&i.context?i.context:i,i)})}},E=class{constructor(e){this.jsep=e,this.registered={}}register(...e){e.forEach(i=>{if(typeof i!="object"||!i.name||!i.init)throw new Error("Invalid JSEP plugin format");this.registered[i.name]||(i.init(this.jsep),this.registered[i.name]=i)})}},h=class t{static get version(){return"1.4.0"}static toString(){return"JavaScript Expression Parser (JSEP) v"+t.version}static addUnaryOp(e){return t.max_unop_len=Math.max(e.length,t.max_unop_len),t.unary_ops[e]=1,t}static addBinaryOp(e,i,s){return t.max_binop_len=Math.max(e.length,t.max_binop_len),t.binary_ops[e]=i,s?t.right_associative.add(e):t.right_associative.delete(e),t}static addIdentifierChar(e){return t.additional_identifier_chars.add(e),t}static addLiteral(e,i){return t.literals[e]=i,t}static removeUnaryOp(e){return delete t.unary_ops[e],e.length===t.max_unop_len&&(t.max_unop_len=t.getMaxKeyLen(t.unary_ops)),t}static removeAllUnaryOps(){return t.unary_ops={},t.max_unop_len=0,t}static removeIdentifierChar(e){return t.additional_identifier_chars.delete(e),t}static removeBinaryOp(e){return delete t.binary_ops[e],e.length===t.max_binop_len&&(t.max_binop_len=t.getMaxKeyLen(t.binary_ops)),t.right_associative.delete(e),t}static removeAllBinaryOps(){return t.binary_ops={},t.max_binop_len=0,t}static removeLiteral(e){return delete t.literals[e],t}static removeAllLiterals(){return t.literals={},t}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(e){this.expr=e,this.index=0}static parse(e){return new t(e).parse()}static getMaxKeyLen(e){return Math.max(0,...Object.keys(e).map(i=>i.length))}static isDecimalDigit(e){return e>=48&&e<=57}static binaryPrecedence(e){return t.binary_ops[e]||0}static isIdentifierStart(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!t.binary_ops[String.fromCharCode(e)]||t.additional_identifier_chars.has(String.fromCharCode(e))}static isIdentifierPart(e){return t.isIdentifierStart(e)||t.isDecimalDigit(e)}throwError(e){let i=new Error(e+" at character "+this.index);throw i.index=this.index,i.description=e,i}runHook(e,i){if(t.hooks[e]){let s={context:this,node:i};return t.hooks.run(e,s),s.node}return i}searchHook(e){if(t.hooks[e]){let i={context:this};return t.hooks[e].find(function(s){return s.call(i.context,i),i.node}),i.node}}gobbleSpaces(){let e=this.code;for(;e===t.SPACE_CODE||e===t.TAB_CODE||e===t.LF_CODE||e===t.CR_CODE;)e=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");let e=this.gobbleExpressions(),i=e.length===1?e[0]:{type:t.COMPOUND,body:e};return this.runHook("after-all",i)}gobbleExpressions(e){let i=[],s,r;for(;this.index<this.expr.length;)if(s=this.code,s===t.SEMCOL_CODE||s===t.COMMA_CODE)this.index++;else if(r=this.gobbleExpression())i.push(r);else if(this.index<this.expr.length){if(s===e)break;this.throwError('Unexpected "'+this.char+'"')}return i}gobbleExpression(){let e=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",e)}gobbleBinaryOp(){this.gobbleSpaces();let e=this.expr.substr(this.index,t.max_binop_len),i=e.length;for(;i>0;){if(t.binary_ops.hasOwnProperty(e)&&(!t.isIdentifierStart(this.code)||this.index+e.length<this.expr.length&&!t.isIdentifierPart(this.expr.charCodeAt(this.index+e.length))))return this.index+=i,e;e=e.substr(0,--i)}return!1}gobbleBinaryExpression(){let e,i,s,r,n,o,l,a,b;if(o=this.gobbleToken(),!o||(i=this.gobbleBinaryOp(),!i))return o;for(n={value:i,prec:t.binaryPrecedence(i),right_a:t.right_associative.has(i)},l=this.gobbleToken(),l||this.throwError("Expected expression after "+i),r=[o,n,l];i=this.gobbleBinaryOp();){if(s=t.binaryPrecedence(i),s===0){this.index-=i.length;break}n={value:i,prec:s,right_a:t.right_associative.has(i)},b=i;let x=p=>n.right_a&&p.right_a?s>p.prec:s<=p.prec;for(;r.length>2&&x(r[r.length-2]);)l=r.pop(),i=r.pop().value,o=r.pop(),e={type:t.BINARY_EXP,operator:i,left:o,right:l},r.push(e);e=this.gobbleToken(),e||this.throwError("Expected expression after "+b),r.push(n,e)}for(a=r.length-1,e=r[a];a>1;)e={type:t.BINARY_EXP,operator:r[a-1].value,left:r[a-2],right:e},a-=2;return e}gobbleToken(){let e,i,s,r;if(this.gobbleSpaces(),r=this.searchHook("gobble-token"),r)return this.runHook("after-token",r);if(e=this.code,t.isDecimalDigit(e)||e===t.PERIOD_CODE)return this.gobbleNumericLiteral();if(e===t.SQUOTE_CODE||e===t.DQUOTE_CODE)r=this.gobbleStringLiteral();else if(e===t.OBRACK_CODE)r=this.gobbleArray();else{for(i=this.expr.substr(this.index,t.max_unop_len),s=i.length;s>0;){if(t.unary_ops.hasOwnProperty(i)&&(!t.isIdentifierStart(this.code)||this.index+i.length<this.expr.length&&!t.isIdentifierPart(this.expr.charCodeAt(this.index+i.length)))){this.index+=s;let n=this.gobbleToken();return n||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:t.UNARY_EXP,operator:i,argument:n,prefix:!0})}i=i.substr(0,--s)}t.isIdentifierStart(e)?(r=this.gobbleIdentifier(),t.literals.hasOwnProperty(r.name)?r={type:t.LITERAL,value:t.literals[r.name],raw:r.name}:r.name===t.this_str&&(r={type:t.THIS_EXP})):e===t.OPAREN_CODE&&(r=this.gobbleGroup())}return r?(r=this.gobbleTokenProperty(r),this.runHook("after-token",r)):this.runHook("after-token",!1)}gobbleTokenProperty(e){this.gobbleSpaces();let i=this.code;for(;i===t.PERIOD_CODE||i===t.OBRACK_CODE||i===t.OPAREN_CODE||i===t.QUMARK_CODE;){let s;if(i===t.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==t.PERIOD_CODE)break;s=!0,this.index+=2,this.gobbleSpaces(),i=this.code}this.index++,i===t.OBRACK_CODE?(e={type:t.MEMBER_EXP,computed:!0,object:e,property:this.gobbleExpression()},e.property||this.throwError('Unexpected "'+this.char+'"'),this.gobbleSpaces(),i=this.code,i!==t.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):i===t.OPAREN_CODE?e={type:t.CALL_EXP,arguments:this.gobbleArguments(t.CPAREN_CODE),callee:e}:(i===t.PERIOD_CODE||s)&&(s&&this.index--,this.gobbleSpaces(),e={type:t.MEMBER_EXP,computed:!1,object:e,property:this.gobbleIdentifier()}),s&&(e.optional=!0),this.gobbleSpaces(),i=this.code}return e}gobbleNumericLiteral(){let e="",i,s;for(;t.isDecimalDigit(this.code);)e+=this.expr.charAt(this.index++);if(this.code===t.PERIOD_CODE)for(e+=this.expr.charAt(this.index++);t.isDecimalDigit(this.code);)e+=this.expr.charAt(this.index++);if(i=this.char,i==="e"||i==="E"){for(e+=this.expr.charAt(this.index++),i=this.char,(i==="+"||i==="-")&&(e+=this.expr.charAt(this.index++));t.isDecimalDigit(this.code);)e+=this.expr.charAt(this.index++);t.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+e+this.char+")")}return s=this.code,t.isIdentifierStart(s)?this.throwError("Variable names cannot start with a number ("+e+this.char+")"):(s===t.PERIOD_CODE||e.length===1&&e.charCodeAt(0)===t.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:t.LITERAL,value:parseFloat(e),raw:e}}gobbleStringLiteral(){let e="",i=this.index,s=this.expr.charAt(this.index++),r=!1;for(;this.index<this.expr.length;){let n=this.expr.charAt(this.index++);if(n===s){r=!0;break}else if(n==="\\")switch(n=this.expr.charAt(this.index++),n){case"n":e+=`
2
+ `;break;case"r":e+="\r";break;case"t":e+=" ";break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;default:e+=n}else e+=n}return r||this.throwError('Unclosed quote after "'+e+'"'),{type:t.LITERAL,value:e,raw:this.expr.substring(i,this.index)}}gobbleIdentifier(){let e=this.code,i=this.index;for(t.isIdentifierStart(e)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length&&(e=this.code,t.isIdentifierPart(e));)this.index++;return{type:t.IDENTIFIER,name:this.expr.slice(i,this.index)}}gobbleArguments(e){let i=[],s=!1,r=0;for(;this.index<this.expr.length;){this.gobbleSpaces();let n=this.code;if(n===e){s=!0,this.index++,e===t.CPAREN_CODE&&r&&r>=i.length&&this.throwError("Unexpected token "+String.fromCharCode(e));break}else if(n===t.COMMA_CODE){if(this.index++,r++,r!==i.length){if(e===t.CPAREN_CODE)this.throwError("Unexpected token ,");else if(e===t.CBRACK_CODE)for(let o=i.length;o<r;o++)i.push(null)}}else if(i.length!==r&&r!==0)this.throwError("Expected comma");else{let o=this.gobbleExpression();(!o||o.type===t.COMPOUND)&&this.throwError("Expected comma"),i.push(o)}}return s||this.throwError("Expected "+String.fromCharCode(e)),i}gobbleGroup(){this.index++;let e=this.gobbleExpressions(t.CPAREN_CODE);if(this.code===t.CPAREN_CODE)return this.index++,e.length===1?e[0]:e.length?{type:t.SEQUENCE_EXP,expressions:e}:!1;this.throwError("Unclosed (")}gobbleArray(){return this.index++,{type:t.ARRAY_EXP,elements:this.gobbleArguments(t.CBRACK_CODE)}}},f=new d;Object.assign(h,{hooks:f,plugins:new E(h),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"??":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"});h.max_unop_len=h.getMaxKeyLen(h.unary_ops);h.max_binop_len=h.getMaxKeyLen(h.binary_ops);var c=t=>new h(t).parse(),u=Object.getOwnPropertyNames(class{});Object.getOwnPropertyNames(h).filter(t=>!u.includes(t)&&c[t]===void 0).forEach(t=>{c[t]=h[t]});c.Jsep=h;var C="ConditionalExpression",O={name:"ternary",init(t){t.hooks.add("after-expression",function(i){if(i.node&&this.code===t.QUMARK_CODE){this.index++;let s=i.node,r=this.gobbleExpression();if(r||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===t.COLON_CODE){this.index++;let n=this.gobbleExpression();if(n||this.throwError("Expected expression"),i.node={type:C,test:s,consequent:r,alternate:n},s.operator&&t.binary_ops[s.operator]<=.9){let o=s;for(;o.right.operator&&t.binary_ops[o.right.operator]<=.9;)o=o.right;i.node.test=o.right,o.right=i.node,i.node=s}}else this.throwError("Expected :")}})}};c.plugins.register(O);export{h as a,c as b,D as c};