1(self.webpackChunkseed_app=self.webpackChunkseed_app||[]).push([[813],{34813:(yt,X,l)=>{"use strict";l.r(X),l.d(X,{CitationMapModule:()=>ft});var V=l(60177),H=l(53027),et=l(40618),$=l(99213),N=l(68018),Q=l(77453),st=l(89417),w=l(26619),ot=l(88834),rt=l(27926),ht=l(89429),A=l(61401),at=l(60675),W=l(7901),I=l(91743),R=l(53712),nt=l(6862),O=l(55109),J=l(25558),B=l(5964),j=l(96697),lt=l(78231),ct=l(21264),M=l.n(ct),U=(l(25091),l(35901),l(84572)),F=l(17675),Z=l(25885),p=(l(36449),l(54438)),dt=l(84745),K=l(56729),z=l(66046);function pt(y,ut){if(1&y){const g=p.RV6();p.j41(0,"highcharts-chart",1),p.mxI("updateChange",function(k){p.eBV(g);const m=p.XpG();return p.DH7(m.updateFromInput,k)||(m.updateFromInput=k),p.Njj(k)}),p.k0s()}if(2&y){const g=p.XpG();p.Y8G("Highcharts",g.Highcharts)("options",g.chartOptions)("callbackFunction",g.chartCallback),p.R50("update",g.updateFromInput),p.Y8G("runOutsideAngular",!1)}}const tt=[{path:":id",component:(()=>{class y extends lt.${constructor(g,d,k,m,P,Y){super(Y),this.store=d,this.friendly=k,this.config=m,this.searches=P,this.recordAuthor="anonymous",this.recordTitle="Title",this.chartTitle="Citation Map",this.title="app",this.updateFromInput=!1,this.Highcharts=M(),this.chartConstructor="chart"}ngOnInit(){this.chartCallback=g=>{this.chartInstance=g}}ngOnChanges(){this.getAllData()}getAllData(){const d={mode:F.k0.citing_article,database:this.database,parentDatabase:this.database,parentId:this.id},k={count:30,links:null,analyzes:null,jcr:!1,sort:"date-descending"},m=this.searches.runSearch({mode:F.k0.cited_references_with_context,database:this.database,parentDatabase:this.database,parentId:this.id},k).pipe((0,O.o)(1),(0,J.n)(x=>this.store.select(R.jr,{qid:x.id,sort:"date-descending"})),(0,B.p)(x=>!!x),(0,j.s)(1)),P=this.searches.runSearch(d,k).pipe((0,O.o)(1),(0,J.n)(x=>this.store.select(R.jr,{qid:x.id,sort:"date-descending"})),(0,B.p)(x=>!!x),(0,j.s)(1));this.store.dispatch(new R.IV.DF({database:this.database,records:[this.id]}));const Y=this.store.select(R.NI,{database:this.database,id:this.id}).pipe((0,B.p)(x=>!!x),(0,j.s)(1));(0,U.z)([m,P,Y]).subscribe(x=>{this.allData=x,this.recordAuthor=this.friendly.getAuthorsShort(this.database,x[2]),this.recordTitle=this.friendly.getBestTitle(this.database,x[2]),this.setOptions(),this.change.detectChanges()})}setOptions(){this.chartOptions={chart:{type:"networkgraph",height:"56.25%",styledMode:!1},title:{text:this.chartTitle},subtitle:{useHTML:!0,text:'<span style="display: block; font-size: 15px; text-align: center;">'+this.recordTitle},tooltip:{className:"tooltipCDX"},plotOptions:{networkgraph:{keys:["from","to","symbol"],layoutAlgorithm:{integration:"verlet",enableSimulation:!1,initialPositions:"circle",maxSpeed:100,friction:-.9,approximation:"barnes-hut",gravitationalConstant:1.5}}},series:[{marker:{radius:30},type:"networkgraph",dataLabels:{enabled:!0,textPath:{enabled:!1},linkFormat:"",allowOverlap:!1},id:"citation-map",data:this.formatData()}]},this.addFormattingEvent()}formatData(){const g=this;let d=[];const k=[];let m=[],P=[];m=[...Object.entries(this.allData[0])],P=[...Object.entries(this.allData[1])],d=[g.recordAuthor,g.friendly.getAuthorsShort(g.database,m[0][1]),"article"],k.push(d);for(let x=1;x<m.length;x++)d=[g.recordAuthor,g.friendly.getAuthorsShort(g.database,m[x][1]),"cited"],k.push(d);return P.forEach(function(x,wt){null!=x[1]&&(d=[g.friendly.getAuthorsShort(g.database,x[1]),g.recordAuthor,"citing"],k.push(d))}),k}addFormattingEvent(){M().addEvent(M().Series,"afterSetOptions",function(g){const d={};let k;g.options.data.forEach(function(m,P){"article"===m[2]&&(k=m[0],d[m[1]]={id:m[1],marker:{symbol:"url(/wos/static/images/citation-map-nodes/cited-ref-med.svg)"}}),"cited"===m[2]&&(d[m[1]]={id:m[1],marker:{symbol:"url(/wos/static/images/citation-map-nodes/cited-ref-med.svg)"}}),"citing"===m[2]&&(d[m[0]]={id:m[0],marker:{symbol:"url(/wos/static/images/citation-map-nodes/med.svg)"}})}),d[0]={id:k,marker:{radius:30},colorIndex:"0"},g.options.nodes=Object.keys(d).map(function(m){return d[m]})})}static{this.\u0275fac=function(d){return new(d||y)(p.rXU(N.c$),p.rXU(dt.il),p.rXU(nt.n),p.rXU(K.w),p.rXU(Z.c),p.rXU(p.gRc))}}static{this.\u0275cmp=p.VBU({type:y,selectors:[["app-citation-map"]],inputs:{id:"id",database:"database"},features:[p.Vt3,p.OA$],decls:1,vars:1,consts:[["id","highcharts.container","style","width: 100%; display: block;",3,"Highcharts","options","callbackFunction","update","runOutsideAngular","updateChange",4,"ngIf"],["id","highcharts.container",2,"width","100%","display","block",3,"updateChange","Highcharts","options","callbackFunction","update","runOutsideAngular"]],template:function(d,k){1&d&&p.DNE(0,pt,1,5,"highcharts-chart",0),2&d&&p.Y8G("ngIf",k.chartOptions)},dependencies:[V.bT,z.H],styles:["#chartDiv{width:100%;height:400px}#highcharts-container{width:48.75rem;height:48.75rem;display:block}.highcharts-axis-labels{font-weight:700;font-size:25px}.highcharts-figure,.highcharts-data-table table{min-width:320px;max-width:800px;margin:1em auto}.highcharts-data-table table{font-family:Verdana,sans-serif;border-collapse:collapse;border:1px solid #EBEBEB;margin:10px auto;text-align:center;width:100%;max-width:500px}.highcharts-data-table caption{padding:1em 0;font-size:1.2em;color:#555}.highcharts-data-table th{font-weight:600;padding:.5em}.highcharts-data-table td,.highcharts-data-table th,.highcharts-data-table caption{padding:.5em}.highcharts-data-table thead tr,.highcharts-data-table tr:nth-child(2n){background:#eee}.highcharts-data-table tr:hover{background:#f1f7ff}.highcharts-container{position:relative;overflow:hidden;width:100%;height:100%;text-align:left;line-height:normal;z-index:0;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:Lucida Grande,Lucida Sans Unicode,Arial,Helvetica,sans-serif;font-size:12px;-webkit-user-select:none;user-select:none;touch-action:manipulation;outline:none}.highcharts-root{display:block}.highcharts-root text{stroke-width:0}.highcharts-strong{font-weight:700}.highcharts-emphasized{font-style:italic}.highcharts-anchor{cursor:pointer}.highcharts-background{fill:#fff}.highcharts-plot-border,.highcharts-plot-background,.highcharts-label-box{fill:none}.highcharts-button-box{fill:#fff}.highcharts-tracker-line{stroke-linejoin:round;stroke:#c0c0c000;stroke-width:22;fill:none}.highcharts-tracker-area{fill:#c0c0c000;stroke-width:0}.highcharts-title{fill:#333;font-size:1.5em}.highcharts-subtitle{fill:#666;font-size:1em}.highcharts-axis-line{fill:none;stroke:#ccd6eb}.highcharts-yaxis .highcharts-axis-line{stroke-width:0}.highcharts-axis-title{fill:#666}.highcharts-axis-labels{fill:#666;cursor:default;font-size:.9em}.highcharts-grid-line{fill:none;stroke:#e6e6e6}.highcharts-xaxis-grid .highcharts-grid-line{stroke-width:0px}.highcharts-tick{stroke:#ccd6eb}.highcharts-yaxis .highcharts-tick{stroke-width:0}.highcharts-minor-grid-line{stroke:#f2f2f2}.highcharts-crosshair-thin{stroke-width:1px;stroke:#ccc}.highcharts-crosshair-category{stroke:#ccd6eb;stroke-opacity:.25}.highcharts-credits{cursor:pointer;fill:#999;font-size:.7em;transition:fill .25s,font-size .25s}.highcharts-credits:hover{fill:#000;font-size:1em}.highcharts-tooltip{cursor:default;pointer-events:none;white-space:nowrap;transition:stroke .15s;color:#000;font-weight:700}.highcharts-tooltip text{fill:#000;stroke:#001e00;color:#000}.highcharts-tooltip .highcharts-header{font-size:.85em}.highcharts-tooltip-box{stroke-width:1px;fill:#f7f7f7;fill-opacity:.85}.highcharts-tooltip-box .highcharts-label-box{fill:#f7f7f7;fill-opacity:.85}div.highcharts-tooltip{filter:none}.highcharts-selection-marker{fill:#335cad;fill-opacity:.25}.highcharts-graph{fill:none;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round}.highcharts-empty-series{stroke-width:1px;fill:none;stroke:#ccc}.highcharts-state-hover .highcharts-graph{stroke-width:3}.highcharts-point-inactive,.highcharts-series-inactive{opacity:.2;transition:opacity 50ms}.highcharts-state-hover path{transition:stroke-width 50ms}.highcharts-state-normal path{transition:stroke-width .25s}g.highcharts-series,.highcharts-point,.highcharts-markers,.highcharts-data-labels{transition:opacity .25s}.highcharts-legend-series-active g.highcharts-series:not(.highcharts-series-hover),.highcharts-legend-point-active .highcharts-point:not(.highcharts-point-hover),.highcharts-legend-series-active .highcharts-markers:not(.highcharts-series-hover),.highcharts-legend-series-active .highcharts-data-labels:not(.highcharts-series-hover){opacity:.2}.highcharts-color-0{fill:#7cb5ec;stroke:#7cb5ec}.highcharts-color-1{fill:#434348;stroke:#434348}.highcharts-color-2{fill:#90ed7d;
1stroke:#90ed7d}.highcharts-color-3{fill:#f7a35c;stroke:#f7a35c}.highcharts-color-4{fill:#8085e9;stroke:#8085e9}.highcharts-color-5{fill:#f15c80;stroke:#f15c80}.highcharts-color-6{fill:#e4d354;stroke:#e4d354}.highcharts-color-7{fill:#2b908f;stroke:#2b908f}.highcharts-color-8{fill:#f45b5b;stroke:#f45b5b}.highcharts-color-9{fill:#91e8e1;stroke:#91e8e1}.highcharts-area{fill-opacity:.75;stroke-width:0}.highcharts-markers{stroke-width:1px;stroke:#fff}.highcharts-a11y-markers-hidden .highcharts-point:not(.highcharts-point-hover):not(.highcharts-a11y-marker-visible),.highcharts-a11y-marker-hidden{opacity:0}.highcharts-point{stroke-width:1px}.highcharts-dense-data .highcharts-point{stroke-width:0}.highcharts-data-label{font-size:.9em;font-weight:700}.highcharts-data-label-box{fill:none;stroke-width:0}.highcharts-data-label text,text.highcharts-data-label{fill:#333}tspan.dirArrow{font-size:25px!important;fill:red!important}tspan.highcharts-header{fill:#000!important}.highcharts-data-label-connector{fill:none}.highcharts-data-label-hidden{pointer-events:none}.highcharts-halo{fill-opacity:.25;stroke-width:0}.highcharts-series:not(.highcharts-pie-series) .highcharts-point-select,.highcharts-markers .highcharts-point-select{fill:#ccc;stroke:#000}.highcharts-column-series rect.highcharts-point{stroke:#fff}.highcharts-column-series .highcharts-point{transition:fill-opacity .25s}.highcharts-column-series .highcharts-point-hover{fill-opacity:.75;transition:fill-opacity 50ms}.highcharts-pie-series .highcharts-point{stroke-linejoin:round;stroke:#fff}.highcharts-pie-series .highcharts-point-hover{fill-opacity:.75;transition:fill-opacity 50ms}.highcharts-funnel-series .highcharts-point{stroke-linejoin:round;stroke:#fff}.highcharts-funnel-series .highcharts-point-hover{fill-opacity:.75;transition:fill-opacity 50ms}.highcharts-funnel-series .highcharts-point-select{fill:inherit;stroke:inherit}.highcharts-pyramid-series .highcharts-point{stroke-linejoin:round;stroke:#fff}.highcharts-pyramid-series .highcharts-point-hover{fill-opacity:.75;transition:fill-opacity 50ms}.highcharts-pyramid-series .highcharts-point-select{fill:inherit;stroke:inherit}.highcharts-solidgauge-series .highcharts-point{stroke-width:0}.highcharts-treemap-series .highcharts-point{stroke-width:1px;stroke:#e6e6e6;transition:stroke .25s,fill .25s,fill-opacity .25s}.highcharts-treemap-series .highcharts-point-hover{stroke:#999;transition:stroke 25ms,fill 25ms,fill-opacity 25ms}.highcharts-treemap-series .highcharts-above-level{display:none}.highcharts-treemap-series .highcharts-internal-node{fill:none}.highcharts-treemap-series .highcharts-internal-node-interactive{fill-opacity:.15;cursor:pointer}.highcharts-treemap-series .highcharts-internal-node-interactive:hover{fill-opacity:.75}.highcharts-vector-series .highcharts-point,.highcharts-windbarb-series .highcharts-point{fill:none;stroke-width:2px}.highcharts-lollipop-stem{stroke:#000}.highcharts-focus-border{fill:none;stroke-width:2px}.highcharts-legend-item-hidden .highcharts-focus-border{fill:none!important}.highcharts-legend-box{fill:none;stroke-width:0}.highcharts-legend-item>text{fill:#333;font-weight:700;font-size:1em;cursor:pointer;stroke-width:0}.highcharts-legend-item:hover text{fill:#000}.highcharts-legend-item-hidden *{fill:#ccc!important;stroke:#ccc!important;transition:fill .25s}.highcharts-legend-nav-active{fill:#039;cursor:pointer}.highcharts-legend-nav-inactive{fill:#ccc}circle.highcharts-legend-nav-active,circle.highcharts-legend-nav-inactive{fill:#c0c0c000}.highcharts-legend-title-box{fill:none;stroke-width:0}.highcharts-bubble-legend-symbol{stroke-width:2;fill-opacity:.5}.highcharts-bubble-legend-connectors{stroke-width:1}.highcharts-bubble-legend-labels{fill:#333}.highcharts-loading{position:absolute;background-color:#fff;opacity:.5;text-align:center;z-index:10;transition:opacity .25s}.highcharts-loading-hidden{height:0!important;opacity:0;overflow:hidden;transition:opacity .25s,height .25s step-end}.highcharts-loading-inner{font-weight:700;position:relative;top:45%}.highcharts-plot-band,.highcharts-pane{fill:#000;fill-opacity:.05}.highcharts-plot-line{fill:none;stroke:#999;stroke-width:1px}.highcharts-boxplot-box{fill:#fff}.highcharts-boxplot-median{stroke-width:2px}.highcharts-bubble-series .highcharts-point{fill-opacity:.5}.highcharts-errorbar-series .highcharts-point{stroke:#000}.highcharts-gauge-series .highcharts-data-label-box{stroke:#ccc;stroke-width:1px}.highcharts-gauge-series .highcharts-dial{fill:#000;stroke-width:0}.highcharts-polygon-series .highcharts-graph{fill:inherit;stroke-width:0}.highcharts-waterfall-series .highcharts-graph{stroke:#333;stroke-dasharray:1,3}.highcharts-sankey-series .highcharts-point{stroke-width:0}.highcharts-sankey-series .highcharts-link{transition:fill .25s,fill-opacity .25s;fill-opacity:.5}.highcharts-sankey-series .highcharts-point-hover.highcharts-link{transition:fill 50ms,fill-opacity 50ms;fill-opacity:1}.highcharts-venn-series .highcharts-point{fill-opacity:.75;stroke:#ccc;transition:stroke .25s,fill-opacity .25s}.highcharts-venn-series .highcharts-point-hover{fill-opacity:1;stroke:#ccc}.highcharts-navigator-mask-outside{fill-opacity:0}
1.highcharts-navigator-mask-inside{fill:#6685c2;fill-opacity:.25;cursor:ew-resize}.highcharts-navigator-outline{stroke:#ccc;fill:none}.highcharts-navigator-handle{stroke:#ccc;fill:#f2f2f2;cursor:ew-resize}.highcharts-navigator-series{fill:#335cad;stroke:#335cad}.highcharts-navigator-series .highcharts-graph{stroke-width:1px}.highcharts-navigator-series .highcharts-area{fill-opacity:.05}.highcharts-navigator-xaxis .highcharts-axis-line{stroke-width:0}.highcharts-navigator-xaxis .highcharts-grid-line{stroke-width:1px;stroke:#e6e6e6}.highcharts-navigator-xaxis.highcharts-axis-labels{fill:#999}.highcharts-navigator-yaxis .highcharts-grid-line{stroke-width:0}.highcharts-scrollbar-thumb{fill:#ccc;stroke:#ccc;stroke-width:1px}.highcharts-scrollbar-button{fill:#e6e6e6;stroke:#ccc;stroke-width:1px}.highcharts-scrollbar-arrow{fill:#666}.highcharts-scrollbar-rifles{stroke:#666;stroke-width:1px}.highcharts-scrollbar-track{fill:#f2f2f2;stroke:#f2f2f2;stroke-width:1px}.highcharts-button{fill:#f7f7f7;stroke:#ccc;cursor:default;stroke-width:1px;transition:fill .25s}.highcharts-button text{fill:#333}.highcharts-button-hover{transition:fill 0ms;fill:#e6e6e6;stroke:#ccc}.highcharts-button-hover text{fill:#333}.highcharts-button-pressed{font-weight:700;fill:#e6ebf5;stroke:#ccc}.highcharts-button-pressed text{fill:#333;font-weight:700}.highcharts-button-disabled text{fill:#333}.highcharts-range-selector-buttons .highcharts-button{stroke-width:0px}.highcharts-range-label rect{fill:none}.highcharts-range-label text{fill:#666}.highcharts-range-input rect{fill:none}.highcharts-range-input text{fill:#333}.highcharts-range-input{stroke-width:1px;stroke:#ccc}input.highcharts-range-selector{position:absolute;border:0;width:1px;height:1px;padding:0;text-align:center;left:-9em}.highcharts-crosshair-label text{fill:#fff;font-size:1.1em}.highcharts-crosshair-label .highcharts-label-box{fill:inherit}.highcharts-candlestick-series .highcharts-point{stroke:#000;stroke-width:1px}.highcharts-candlestick-series .highcharts-point-up{fill:#fff}.highcharts-hollowcandlestick-series .highcharts-point-down{fill:#f21313;stroke:#f21313}.highcharts-hollowcandlestick-series .highcharts-point-down-bearish-up{fill:#06b535;stroke:#06b535}.highcharts-hollowcandlestick-series .highcharts-point-up{fill:transparent;stroke:#06b535}.highcharts-ohlc-series .highcharts-point-hover{stroke-width:3px}.highcharts-flags-series .highcharts-point .highcharts-label-box{stroke:#999;fill:#fff;transition:fill .25s}.highcharts-flags-series .highcharts-point-hover .highcharts-label-box{stroke:#000;fill:#ccd6eb}.highcharts-flags-series .highcharts-point text{fill:#000;font-size:.9em;font-weight:700}.highcharts-map-series .highcharts-point{transition:fill .5s,fill-opacity .5s,stroke-width .25s;stroke:#ccc}.highcharts-map-series .highcharts-point-hover{transition:fill 0ms,fill-opacity 0ms;fill-opacity:.5;stroke-width:2px}.highcharts-mapline-series .highcharts-point{fill:none}.highcharts-heatmap-series .highcharts-point{stroke-width:0}.highcharts-map-navigation{font-size:1.3em;font-weight:700;text-align:center}.highcharts-coloraxis{stroke-width:0}.highcharts-coloraxis-marker{fill:#999}.highcharts-null-point{fill:#f7f7f7}.highcharts-3d-frame{fill:transparent}.highcharts-contextbutton{fill:#fff;stroke:none;stroke-linecap:round}.highcharts-contextbutton:hover{fill:#e6e6e6;stroke:#e6e6e6}.highcharts-button-symbol{stroke:#666;stroke-width:3px}.highcharts-menu{border:1px solid #999999;background:#fff;padding:5px 0;box-shadow:3px 3px 10px #888}.highcharts-menu-item{padding:.5em 1em;background:none;color:#333;cursor:pointer;transition:background .25s,color .25s}.highcharts-menu-item:hover{background:#335cad;color:#fff}.highcharts-drilldown-point{cursor:pointer}.highcharts-drilldown-data-label text,text.highcharts-drilldown-data-label,.highcharts-drilldown-axis-label{cursor:pointer;fill:#039;font-weight:700;text-decoration:underline}.highcharts-no-data text{font-weight:700;font-size:12px;fill:#666}.highcharts-axis-resizer{cursor:ns-resize;stroke:#000;stroke-width:2px}.highcharts-bullet-target{stroke-width:0}.highcharts-lineargauge-target,.highcharts-lineargauge-target-line{stroke-width:1px;stroke:#333}.highcharts-annotation-label-box{stroke-width:1px;stroke:#000;fill:#000;fill-opacity:.75}.highcharts-annotation-label text{fill:#e6e6e6}.highcharts-treegrid-node-collapsed,.highcharts-treegrid-node-expanded{cursor:pointer}.highcharts-point-connecting-path{fill:none}.highcharts-grid-axis .highcharts-tick,.highcharts-grid-axis .highcharts-axis-line{stroke-width:1px}.tooltipCDX tspan{font-size:14px!important;fill:#000;background-color:#000;color:#fff}.highcharts-text-outline{font-size:inherit;fill:#fff;background-color:#000;color:#fff}\n"],encapsulation:2,changeDetection:0})}}return y})(),data:{__input_route_inputs:["database","id","qid"],mode:"record",view:"article"},resolve:{__input_route_params:l(76057).Q,database:I.RW}}];let gt=(()=>{class y{static{this.\u0275fac=function(d){return new(d||y)}}static{this.\u0275mod=p.$C({type:y})}static{this.\u0275inj=p.G2t({imports:[W.iI.forChild(tt),W.iI]})}}return y})(),ft=(()=>{class y{static{this.\u0275fac=function(d){return new(d||y)}}static{this.\u0275mod=p.$C({type:y})}static{this.\u0275inj=p.G2t({imports:[ht.FX,V.MD,st.YN,gt,H.c,et.D,Q.C,rt.gy,$.m_,N.h,w.K,ot.Hl,A.v,at.x,z._]})}}return y})()},35901:function(yt){var X,l;X=typeof window>"u"?this:window,l=(X,l,V)=>(()=>{"use strict";var H,et={28:s=>{s.exports=l},512:s=>{s.exports=V},563:s=>
1{s.exports=X}},$={};function N(s){var t=$[s];if(void 0!==t)return t.exports;var e=$[s]={exports:{}};return et[s](e,e.exports,N),e.exports}N.n=s=>{var t=s&&s.__esModule?()=>s.default:()=>s;return N.d(t,{a:t}),t},N.d=(s,t)=>{for(var e in t)N.o(t,e)&&!N.o(s,e)&&Object.defineProperty(s,e,{enumerable:!0,get:t[e]})},N.o=(s,t)=>Object.prototype.hasOwnProperty.call(s,t);var Q={};N.d(Q,{default:()=>Kt});var st=N(563),w=N.n(st),ot=N(28),rt=N.n(ot);let{composed:ht}=w(),{addEvent:A,pushUnique:at}=w();function W(){let s,t,e,i,o=this;o.container&&(s=A(o.container,"mousedown",r=>{t&&t(),e&&e(),(i=o.hoverPoint)&&i.series&&i.series.hasDraggableNodes&&i.series.options.draggable&&(i.series.onMouseDown(i,r),t=A(o.container,"mousemove",a=>i&&i.series&&i.series.onMouseMove(i,a)),e=A(o.container.ownerDocument,"mouseup",a=>(t(),e(),i&&i.series&&i.series.onMouseUp(i,a))))})),A(o,"destroy",function(){s()})}let I={compose:function(s){at(ht,"DragNodes")&&A(s,"load",W)},onMouseDown:function(s,t){let e=this.chart.pointer?.normalize(t)||t;s.fixedPosition={chartX:e.chartX,chartY:e.chartY,plotX:s.plotX,plotY:s.plotY},s.inDragMode=!0},onMouseMove:function(s,t){if(s.fixedPosition&&s.inDragMode){let e,i,o=this.chart,r=o.pointer?.normalize(t)||t,a=s.fixedPosition.chartX-r.chartX,h=s.fixedPosition.chartY-r.chartY,c=o.graphLayoutsLookup;(Math.abs(a)>5||Math.abs(h)>5)&&(e=s.fixedPosition.plotX-a,i=s.fixedPosition.plotY-h,o.isInsidePlot(e,i)&&(s.plotX=e,s.plotY=i,s.hasDragged=!0,this.redrawHalo(s),c.forEach(f=>{f.restartSimulation()})))}},onMouseUp:function(s){s.fixedPosition&&(s.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),s.inDragMode=s.hasDragged=!1,this.options.fixedDraggable||delete s.fixedPosition)},redrawHalo:function(s){s&&this.halo&&this.halo.attr({d:s.haloPath(this.options.states.hover.halo.size)})}},{setAnimation:R}=w(),{composed:nt}=w(),{addEvent:O,pushUnique:J}=w();function B(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(s=>{s.updateSimulation()}),this.redraw())}function j(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(s=>{s.updateSimulation(!1)}),this.redraw())}function lt(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(s=>{s.stop()})}function ct(){let s,t=!1,e=i=>{i.maxIterations--&&isFinite(i.temperature)&&!i.isStable()&&!i.enableSimulation&&(i.beforeStep&&i.beforeStep(),i.step(),s=!1,t=!0)};if(this.graphLayoutsLookup){for(R(!1,this),this.graphLayoutsLookup.forEach(i=>i.start());!s;)s=!0,this.graphLayoutsLookup.forEach(e);t&&this.series.forEach(i=>{i&&i.layout&&i.render()})}}let M={compose:function(s){J(nt,"GraphLayout")&&(O(s,"afterPrint",B),O(s,"beforePrint",j),O(s,"predraw",lt),O(s,"render",ct))},integrations:{},layouts:{}};var kt=N(512),G=N.n(kt);let{series:{prototype:U,prototype:{pointClass:{prototype:F}}}}=G(),{defined:Z,extend:vt,find:p,merge:dt,pick:K}=w();!function(s){function t(){return this.data=[].concat(this.points||[],this.nodes),U.destroy.apply(this,arguments)}function e(){this.nodes&&(this.nodes.forEach(r=>{r.destroy()}),this.nodes.length=0),U.setData.apply(this,arguments)}function i(r){let a=arguments,h=this.isNode?this.linksTo.concat(this.linksFrom):[this.fromNode,this.toNode];"select"!==r&&h.forEach(c=>{c&&c.series&&(F.setState.apply(c,a),!c.isNode&&(c.fromNode.graphic&&F.setState.apply(c.fromNode,a),c.toNode&&c.toNode.graphic&&F.setState.apply(c.toNode,a)))}),F.setState.apply(this,a)}function o(r,a,h,c){let f=this.series.options.nodes,n=this.series.options.data,u=n?.length||0,b=n?.[this.index];if(F.update.call(this,r,!this.isNode&&a,h,c),this.isNode){let L=(f||[]).reduce((S,D,T)=>this.id===D.id?T:S,-1),v=dt(f&&f[L]||{},n?.[this.index]||{});n&&(b?n[this.index]=b:n.length=u),f?L>=0?f[L]=v:f.push(v):this.series.options.nodes=[v],K(a,!0)&&this.series.chart.redraw(h)}}s.compose=function(r,a){let h=r.prototype,c=a.prototype;return h.setNodeState=i,h.setState=i,h.update=o,c.destroy=t,c.setData=e,a},s.createNode=function(r){let f,a=this.pointClass,h=(n,u)=>p(n,b=>b.id===u),c=h(this.nodes,r);if(!c){f=this.options.nodes&&h(this.options.nodes,r);let n=new a(this,vt({className:"highcharts-node",isNode:!0,id:r,y:1},f));n.linksTo=[],n.linksFrom=[],n.getSum=function(){let u=0,b=0;return n.linksTo.forEach(L=>{u+=L.weight||0}),n.linksFrom.forEach(L=>{b+=L.weight||0}),Math.max(u,b)},n.offset=function(u,b){let L=0;for(let v=0;v<n[b].length;v++){if(n[b][v]===u)return L;L+=n[b][v].weight}},n.hasShape=function(){let u=0;return n.linksTo.forEach(b=>{b.outgoing&&u++}),!n.linksTo.length||u!==n.linksTo.length},n.index=this.nodes.push(n)-1,c=n}return c.formatPrefix="node",c.name=c.name||c.options.id||"",c.mass=K(c.options.mass,c.options.marker&&c.options.marker.radiu
1s,this.options.marker&&this.options.marker.radius,4),c},s.destroy=t,s.generatePoints=function(){let r=this.chart,a={};U.generatePoints.call(this),this.nodes||(this.nodes=[]),this.colorCounter=0,this.nodes.forEach(h=>{h.linksFrom.length=0,h.linksTo.length=0,h.level=h.options.level}),this.points.forEach(h=>{Z(h.from)&&(a[h.from]||(a[h.from]=this.createNode(h.from)),a[h.from].linksFrom.push(h),h.fromNode=a[h.from],r.styledMode?h.colorIndex=K(h.options.colorIndex,a[h.from].colorIndex):h.color=h.options.color||a[h.from].color),Z(h.to)&&(a[h.to]||(a[h.to]=this.createNode(h.to)),a[h.to].linksTo.push(h),h.toNode=a[h.to]),h.name=h.name||h.id},this),this.nodeLookup=a},s.setNodeState=i,s.updateNode=o}(H||(H={}));let z=H,{series:{prototype:pt,prototype:{pointClass:q}}}=G(),{addEvent:_,css:tt,defined:gt,extend:ft,pick:y}=w();class ut extends q{destroy(){return this.isNode&&this.linksFrom.concat(this.linksTo).forEach(function(t){t.destroyElements&&t.destroyElements()}),this.series.layout.removeElementFromCollection(this,this.series.layout[this.isNode?"nodes":"links"]),q.prototype.destroy.apply(this,arguments)}getDegree(){let t=this.isNode?this.linksFrom.length+this.linksTo.length:0;return 0===t?1:t}getLinkAttributes(){let t=this.series.options.link,e=this.options;return{"stroke-width":y(e.width,t.width),stroke:e.color||t.color,dashstyle:e.dashStyle||t.dashStyle,opacity:y(e.opacity,t.opacity,1)}}getLinkPath(){let t=this.fromNode,e=this.toNode;return t.plotX>e.plotX&&(t=this.toNode,e=this.fromNode),[["M",t.plotX||0,t.plotY||0],["L",e.plotX||0,e.plotY||0]]}getMass(){let t=this.fromNode.mass,e=this.toNode.mass,i=t+e;return{fromNode:1-t/i,toNode:1-e/i}}constructor(t,e,i){super(t,e,i),this.series.options.draggable&&!this.series.chart.styledMode&&(_(this,"mouseOver",function(){tt(this.series.chart.container,{cursor:"move"})}),_(this,"mouseOut",function(){tt(this.series.chart.container,{cursor:"default"})}))}isValid(){return!this.isNode||gt(this.id)}redrawLink(){let t,e=this.getLinkPath();if(this.graphic){this.shapeArgs={d:e},this.series.chart.styledMode||(t=this.series.pointAttribs(this),this.graphic.attr(t),(this.dataLabels||[]).forEach(function(r){r&&r.attr({opacity:t.opacity})})),this.graphic.animate(this.shapeArgs);let i=e[0],o=e[1];"M"===i[0]&&"L"===o[0]&&(this.plotX=(i[1]+o[1])/2,this.plotY=(i[2]+o[2])/2)}}remove(t,e){let r,i=this.series,o=i.options.nodes||[],a=o.length;if(this.isNode){for(i.points=[],[].concat(this.linksFrom).concat(this.linksTo).forEach(function(h){(r=h.fromNode.linksFrom.indexOf(h))>-1&&h.fromNode.linksFrom.splice(r,1),(r=h.toNode.linksTo.indexOf(h))>-1&&h.toNode.linksTo.splice(r,1),pt.removePoint.call(i,i.data.indexOf(h),!1,!1)}),i.points=i.data.slice(),i.nodes.splice(i.nodes.indexOf(this),1);a--;)if(o[a].id===this.options.id){i.options.nodes.splice(a,1);break}this&&this.destroy(),i.isDirty=!0,i.isDirtyData=!0,t&&i.chart.redraw(t)}else i.removePoint(i.data.indexOf(this),t,e)}renderLink(){let t;this.graphic||(this.graphic=this.series.chart.renderer.path(this.getLinkPath()).addClass(this.getClassName(),!0).add(this.series.group),this.series.chart.styledMode||(t=this.series.pointAttribs(this),this.graphic.attr(t),(this.dataLabels||[]).forEach(function(e){e&&e.attr({opacity:t.opacity})})))}}ft(ut.prototype,{setState:z.setNodeState});let g={attractive:function(s,t,e,i){let o=s.getMass(),r=e.x/i*t,a=e.y/i*t;s.fromNode.fixedPosition||(s.fromNode.dispX-=r*o.fromNode/s.fromNode.degree,s.fromNode.dispY-=a*o.fromNode/s.fromNode.degree),s.toNode.fixedPosition||(s.toNode.dispX+=r*o.toNode/s.toNode.degree,s.toNode.dispY+=a*o.toNode/s.toNode.degree)},attractiveForceFunction:function(s,t){return s*s/t},barycenter:function(){let s=this.options.gravitationalConstant,t=this.barycenter.xFactor,e=this.barycenter.yFactor;this.nodes.forEach(function(i){if(!i.fixedPosition){let o=i.getDegree(),r=o*(1+o/2);i.dispX+=(t-i.plotX)*s*r/i.degree,i.dispY+=(e-i.plotY)*s*r/i.degree}})},getK:function(s){return Math.pow(s.box.width*s.box.height/s.nodes.length,.3)},integrate:function(s,t){t.dispX+=t.dispX*s.options.friction,t.dispY+=t.dispY*s.options.friction;let e=t.temperature=s.vectorLength({x:t.dispX,y:t.dispY});0!==e&&(t.plotX+=t.dispX/e*Math.min(Math.abs(t.dispX),s.temperature),t.plotY+=t.dispY/e*Math.min(Math.abs(t.dispY),s.temperature))},repulsive:function(s,t,e,i){s.dispX+=e.x/i*t/s.degree,s.dispY+=e.y/i*t/s.degree},repulsiveForceFunction:function(s,t){return t*t/s}};class d{constructor(t){this.body=!1,this.isEmpty=!1,this.isInternal=!1,this.nodes=[],this.box=t,this.boxSize=Math.min(t.width,t.height)}divideBox(){let t=this.box.width/2,e=this.box.height/2;this.nodes[0]=new d({left:this.box.left,top:this.box.top,width:t,height:e}),this.nodes[1]=new d({left:this.box.left+t,top:this.box.top,width:t,height:e}),this.nodes[2]=new d({left:this.box.left+t,top:this.box.top+e,width:t,height:e}),this.nodes[3]=new d({left:this.box.left,top:this.box.top+e,width:t,height:e})}getBoxPosition(t){let i=t.plotY<this.box.top+this.box.height/2;return t.plotX<this.box.left+this.box.width/2?3*!i:i?1:2}insert(t,e){let i;this.isInternal?this.nodes[this.getBoxPosition(t)].insert(t,e-1):(this.isEmpty=!1,this.body?e?(this.isInternal=!0,this.divideBox(),!0!==this.body&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,e-1),this.body=!0),this.nodes[this.getBoxPosition(t)].insert(t,e-1)):((i=new d({top:t.plotX||NaN,left:t.plotY||NaN,width:.1,height:.1})).body=t,i.isInternal=!1,this.nodes.push(i)):(this.isInternal=!1,this.body=t))}updateMassAndCenter(){let t=0,e=0,i=0;if(this.isInternal){for(let o of this.nodes)o.isEmpty||(t+=o.mass,e+=o.plotX*o.mass,i+=o.plotY*o.mass);e/=t,i/=t}else this.body&&(t=this.body.mass,e=this.body.plotX,i=this.body.plotY);this.mass=t,this.plotX=e,this.plotY=i}}let k=class{constructor(s,t,e,i){this.box={left:s,top:t,width:e,height:i},this.maxDepth=25,this.root=new d(this.box),this.root.isInternal=!0,this.root.isRoot=!0,this.root.divideBox()}calculateMassAndCenter(){this.visitNodeRecursive(null,null,function(s){s.updateMassAndCenter()})}insertNodes(s){for(let t of s)this.root.insert(t,this.maxDepth)}visitNodeRecursive(s,t,e){let i;if(s||(s=this.root),s===this.root&&t&&(i=t(s)),!1!==i){for(let o of s.nodes){if(o.isInternal){if(t&&(i=t(o)),!1===i)continue;this.visitNodeRecursive(o,t,e)}else o.body&&t&&t(o.body);e&&e(o)}s===this.root&&e&&e(s)}}},m={attractive:function(s,t,e){let i=s.getMass(),o=-e.x*t*this.diffTemperature,r=-e.y*t*this.diffTemperature;s.fromNode.fixedPosition||(s.fromNode.plotX-=o*i.fromNode/s.fromNode.degree,s.fromNode.plotY-=r*i.fromNode/s.fromNode.degree),s.toNode.fixedPosition||(s.toNode.plotX+=o*i.toNode/s.toNode.degree,s.toNode.plotY+=r*i.toNode/s.toNode.degree)},attractiveForceFunction:function(s,t){return(t-s)/s},barycenter:function(){let s=this.options.gravitationalConstant||0,t=(this.barycenter.xFactor-(this.box.left+this.box.width)/2)*s,e=(this.barycenter.yFactor-(this.box.top+this.box.height)/2)*s;
1this.nodes.forEach(function(i){i.fixedPosition||(i.plotX-=t/i.mass/i.degree,i.plotY-=e/i.mass/i.degree)})},getK:function(s){return Math.pow(s.box.width*s.box.height/s.nodes.length,.5)},integrate:function(s,t){let e=-s.options.friction,i=s.options.maxSpeed,a=(t.plotX+t.dispX-t.prevX)*e,h=(t.plotY+t.dispY-t.prevY)*e,c=Math.abs,f=c(a)/(a||1),n=c(h)/(h||1),u=f*Math.min(i,Math.abs(a)),b=n*Math.min(i,Math.abs(h));t.prevX=t.plotX+t.dispX,t.prevY=t.plotY+t.dispY,t.plotX+=u,t.plotY+=b,t.temperature=s.vectorLength({x:u,y:b})},repulsive:function(s,t,e){let i=t*this.diffTemperature/s.mass/s.degree;s.fixedPosition||(s.plotX+=e.x*i,s.plotY+=e.y*i)},repulsiveForceFunction:function(s,t){return(t-s)/s*+(t>s)}},{win:P}=w(),{clamp:Y,defined:x,isFunction:wt,fireEvent:Mt,pick:C}=w();class mt{constructor(){this.box={},this.currentStep=0,this.initialRendering=!0,this.links=[],this.nodes=[],this.series=[],this.simulation=!1}static compose(t){M.compose(t),M.integrations.euler=g,M.integrations.verlet=m,M.layouts["reingold-fruchterman"]=mt}init(t){this.options=t,this.nodes=[],this.links=[],this.series=[],this.box={x:0,y:0,width:0,height:0},this.setInitialRendering(!0),this.integration=M.integrations[t.integration],this.enableSimulation=t.enableSimulation,this.attractiveForce=C(t.attractiveForce,this.integration.attractiveForceFunction),this.repulsiveForce=C(t.repulsiveForce,this.integration.repulsiveForceFunction),this.approximation=t.approximation}updateSimulation(t){this.enableSimulation=C(t,this.options.enableSimulation)}start(){let t=this.series,e=this.options;this.currentStep=0,this.forces=t[0]&&t[0].forces||[],this.chart=t[0]&&t[0].chart,this.initialRendering&&(this.initPositions(),t.forEach(function(i){i.finishedAnimating=!0,i.render()})),this.setK(),this.resetSimulation(e),this.enableSimulation&&this.step()}step(){let t=this.series;for(let e of(this.currentStep++,"barnes-hut"===this.approximation&&(this.createQuadTree(),this.quadTree.calculateMassAndCenter()),this.forces||[]))this[e+"Forces"](this.temperature);if(this.applyLimits(),this.temperature=this.coolDown(this.startTemperature,this.diffTemperature,this.currentStep),this.prevSystemTemperature=this.systemTemperature,this.systemTemperature=this.getSystemTemperature(),this.enableSimulation){for(let e of t)e.chart&&e.render();this.maxIterations--&&isFinite(this.temperature)&&!this.isStable()?(this.simulation&&P.cancelAnimationFrame(this.simulation),this.simulation=P.requestAnimationFrame(()=>this.step())):(this.simulation=!1,this.series.forEach(e=>{Mt(e,"afterSimulation")}))}}stop(){this.simulation&&P.cancelAnimationFrame(this.simulation)}setArea(t,e,i,o){this.box={left:t,top:e,width:i,height:o}}setK(){this.k=this.options.linkLength||this.integration.getK(this)}addElementsToCollection(t,e){for(let i of t)-1===e.indexOf(i)&&e.push(i)}removeElementFromCollection(t,e){let i=e.indexOf(t);-1!==i&&e.splice(i,1)}clear(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()}resetSimulation(){this.forcedStop=!1,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()}restartSimulation(){this.simulation?this.resetSimulation():(this.setInitialRendering(!1),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(!0))}setMaxIterations(t){this.maxIterations=C(t,this.options.maxIterations)}setTemperature(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)}setDiffTemperature(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)}setInitialRendering(t){this.initialRendering=t}createQuadTree(){this.quadTree=new k(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)}initPositions(){let t=this.options.initialPositions;if(wt(t))for(let e of(t.call(this),this.nodes))x(e.prevX)||(e.prevX=e.plotX),x(e.prevY)||(e.prevY=e.plotY),e.dispX=0,e.dispY=0;else"circle"===t?this.setCircularPositions():this.setRandomPositions()}setCircularPositions(){let t,e=this.box,i=this.nodes,o=2*Math.PI/(i.length+1),r=i.filter(function(n){return 0===n.linksTo.length}),a={},h=this.options.initialPositionRadius,c=n=>{for(let u of n.linksFrom||[])a[u.toNode.id]||(a[u.toNode.id]=!0,f.push(u.toNode),c(u.toNode))},f=[];for(let n of r)f.push(n),c(n);if(f.length)for(let n of i)-1===f.indexOf(n)&&f.push(n);else f=i;for(let n=0,u=f.length;n<u;++n)(t=f[n]).plotX=t.prevX=C(t.plotX,e.width/2+h*Math.cos(n*o)),t.plotY=t.prevY=C(t.plotY,e.height/2+h*Math.sin(n*o)),t.dis
1pX=0,t.dispY=0}setRandomPositions(){let t,e=this.box,i=this.nodes,o=i.length+1,r=a=>{let h=a*a/Math.PI;return h-Math.floor(h)};for(let a=0,h=i.length;a<h;++a)(t=i[a]).plotX=t.prevX=C(t.plotX,e.width*r(a)),t.plotY=t.prevY=C(t.plotY,e.height*r(o+a)),t.dispX=0,t.dispY=0}force(t,...e){this.integration[t].apply(this,e)}barycenterForces(){this.getBarycenter(),this.force("barycenter")}getBarycenter(){let t=0,e=0,i=0;for(let o of this.nodes)e+=o.plotX*o.mass,i+=o.plotY*o.mass,t+=o.mass;return this.barycenter={x:e,y:i,xFactor:e/t,yFactor:i/t},this.barycenter}barnesHutApproximation(t,e){let i,o,r=this.getDistXY(t,e),a=this.vectorLength(r);return t!==e&&0!==a&&(e.isInternal?e.boxSize/a<this.options.theta&&0!==a?(o=this.repulsiveForce(a,this.k),this.force("repulsive",t,o*e.mass,r,a),i=!1):i=!0:(o=this.repulsiveForce(a,this.k),this.force("repulsive",t,o*e.mass,r,a))),i}repulsiveForces(){if("barnes-hut"===this.approximation)for(let t of this.nodes)this.quadTree.visitNodeRecursive(null,e=>this.barnesHutApproximation(t,e));else{let t,e,i;for(let o of this.nodes)for(let r of this.nodes)o===r||o.fixedPosition||(i=this.getDistXY(o,r),0!==(e=this.vectorLength(i))&&(t=this.repulsiveForce(e,this.k),this.force("repulsive",o,t*r.mass,i,e)))}}attractiveForces(){let t,e,i;for(let o of this.links)o.fromNode&&o.toNode&&(t=this.getDistXY(o.fromNode,o.toNode),0!==(e=this.vectorLength(t))&&(i=this.attractiveForce(e,this.k),this.force("attractive",o,i,t,e)))}applyLimits(){for(let t of this.nodes)!t.fixedPosition&&(this.integration.integrate(this,t),this.applyLimitBox(t,this.box),t.dispX=0,t.dispY=0)}applyLimitBox(t,e){let i=t.radius;t.plotX=Y(t.plotX,e.left+i,e.width-i),t.plotY=Y(t.plotY,e.top+i,e.height-i)}coolDown(t,e,i){return t-e*i}isStable(){return 1e-5>Math.abs(this.systemTemperature-this.prevSystemTemperature)||this.temperature<=0}getSystemTemperature(){let t=0;for(let e of this.nodes)t+=e.temperature;return t}vectorLength(t){return Math.sqrt(t.x*t.x+t.y*t.y)}getDistR(t,e){let i=this.getDistXY(t,e);return this.vectorLength(i)}getDistXY(t,e){let i=t.plotX-e.plotX,o=t.plotY-e.plotY;return{x:i,y:o,absX:Math.abs(i),absY:Math.abs(o)}}}let{merge:St,syncTimeout:Dt}=w(),{animObject:Tt}=w(),{deg2rad:Xt}=w(),{addEvent:bt,merge:Ft,uniqueKey:Yt,defined:Nt,extend:Ct}=w();function Et(s,t){t=Ft(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},t);let e=this.renderer.url,i=this.text||this,o=i.textPath,{attributes:r,enabled:a}=t;if(s=s||o&&o.path,o&&o.undo(),s&&a){let h=bt(i,"afterModifyTree",c=>{if(s&&a){let f=s.attr("id");f||s.attr("id",f=Yt());let n={x:0,y:0};Nt(r.dx)&&(n.dx=r.dx,delete r.dx),Nt(r.dy)&&(n.dy=r.dy,delete r.dy),i.attr(n),this.attr({transform:""}),this.box&&(this.box=this.box.destroy());let u=c.nodes.slice(0);c.nodes.length=0,c.nodes[0]={tagName:"textPath",attributes:Ct(r,{"text-anchor":r.textAnchor,href:`${e}#${f}`}),children:u}}});i.textPath={path:s,undo:h}}else i.attr({dx:0,dy:0}),delete i.textPath;return this.added&&(i.textCache="",this.renderer.buildText(i)),this}function At(s){let t=s.bBox,e=this.element?.querySelector("textPath");if(e){let i=[],{b:o,h:r}=this.renderer.fontMetrics(this.element),a=r-o,h=RegExp('(<tspan>|<tspan(?!\\sclass="highcharts-br")[^>]*>|<\\/tspan>)',"g"),c=e.innerHTML.replace(h,"").split(/<tspan class="highcharts-br"[^>]*>/),f=c.length,n=(u,b)=>{let{x:L,y:v}=b,S=(e.getRotationOfChar(u)-90)*Xt,D=Math.cos(S),T=Math.sin(S);return[[L-a*D,v-a*T],[L+o*D,v+o*T]]};for(let u=0,b=0;b<f;b++){let L=c[b].length;for(let v=0;v<L;v+=5)try{let S=u+v+b,[D,T]=n(S,e.getStartPositionOfChar(S));0===v?(i.push(T),i.push(D)):(0===b&&i.unshift(T),b===f-1&&i.push(D))}catch{break}u+=L-1;try{let v=u+b,S=e.getEndPositionOfChar(v),[D,T]=n(v,S);i.unshift(T),i.unshift(D)}catch{break}}i.length&&i.push(i[0].slice()),t.polygon=i}return t}function It(s){let t=s.labelOptions,e=s.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{noop:Ot}=w(),{series:E,seriesTypes:{column:{prototype:zt},line:{prototype:Rt}}}=G(),{initDataLabels:Ht,initDataLabelsDefer:Bt}={initDataLabels:function(){let s=this.options.dataLabels;if(!this.dataLabelsGroup){let t=this.initDataLabelsGroup();return!this.chart.styledMode&&s?.style&&t.css(s.style),t.attr({opacity:0}
1),this.visible&&t.show(),t}return this.dataLabelsGroup.attr(St({opacity:1},this.getPlotBox("data-labels"))),this.dataLabelsGroup},initDataLabelsDefer:function(){let s=this.options.dataLabels;s?.defer&&this.options.layoutAlgorithm?.enableSimulation?Dt(()=>{this.deferDataLabels=!1},s?Tt(s.animation).defer:0):this.deferDataLabels=!1}},{addEvent:xt,defined:Lt,extend:jt,merge:Gt,pick:Pt}=w();!function(s){bt(s,"afterGetBBox",At),bt(s,"beforeAddingDataLabel",It);let t=s.prototype;t.setTextPath||(t.setTextPath=Et)}(rt());class it extends E{constructor(){super(...arguments),this.deferDataLabels=!0}static compose(t){I.compose(t),mt.compose(t)}deferLayout(){let i,t=this.options.layoutAlgorithm,e=this.chart.options.chart,o=this.chart.graphLayoutsStorage,r=this.chart.graphLayoutsLookup;this.visible&&(o||(this.chart.graphLayoutsStorage=o={},this.chart.graphLayoutsLookup=r=[]),(i=o[t.type])||(t.enableSimulation=Lt(e.forExport)?!e.forExport:t.enableSimulation,o[t.type]=i=new M.layouts[t.type],i.init(t),r.splice(i.index,0,i)),this.layout=i,i.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),i.addElementsToCollection([this],i.series),i.addElementsToCollection(this.nodes,i.nodes),i.addElementsToCollection(this.points,i.links))}destroy(){this.layout&&this.layout.removeElementFromCollection(this,this.layout.series),z.destroy.call(this)}drawDataLabels(){let t;if(this.deferDataLabels)return;let e=this.options.dataLabels;e?.textPath&&(t=e.textPath),E.prototype.drawDataLabels.call(this,this.nodes),e?.linkTextPath&&(e.textPath=e.linkTextPath),E.prototype.drawDataLabels.call(this,this.data),e?.textPath&&(e.textPath=t)}generatePoints(){let t,e;for(z.generatePoints.apply(this,arguments),this.options.nodes&&this.options.nodes.forEach(function(i){this.nodeLookup[i.id]||(this.nodeLookup[i.id]=this.createNode(i.id))},this),e=this.nodes.length-1;e>=0;e--)(t=this.nodes[e]).degree=t.getDegree(),t.radius=Pt(t.marker&&t.marker.radius,this.options.marker&&this.options.marker.radius,0),t.key=t.name,this.nodeLookup[t.id]||t.remove();this.data.forEach(function(i){i.formatPrefix="link"}),this.indexateNodes()}getPointsCollection(){return this.nodes||[]}indexateNodes(){this.nodes.forEach(function(t,e){t.index=e})}init(t,e){return super.init(t,e),Bt.call(this),xt(this,"updatedData",()=>{this.layout&&this.layout.stop()}),xt(this,"afterUpdate",()=>{this.nodes.forEach(i=>{i&&i.series&&i.resolveColor()})}),xt(this,"afterSimulation",function(){this.deferDataLabels=!1,this.drawDataLabels()}),this}markerAttribs(t,e){let i=E.prototype.markerAttribs.call(this,t,e);return Lt(t.plotY)||(i.y=0),i.x=(t.plotX||0)-(i.width||0)/2,i}pointAttribs(t,e){let i=e||t&&t.state||"normal",o=this.options.states[i],r=E.prototype.pointAttribs.call(this,t,i);return t&&!t.isNode&&(r=t.getLinkAttributes(),o&&(r={stroke:o.linkColor||r.stroke,dashstyle:o.linkDashStyle||r.dashstyle,opacity:Pt(o.linkOpacity,r.opacity),"stroke-width":o.linkColor||r["stroke-width"]})),r}render(){let t=this.points,e=this.chart.hoverPoint,i=[];this.points=this.nodes,Rt.render.call(this),this.points=t,t.forEach(function(o){o.fromNode&&o.toNode&&(o.renderLink(),o.redrawLink())}),e&&e.series===this&&this.redrawHalo(e),this.chart.hasRendered&&!this.options.dataLabels.allowOverlap&&(this.nodes.concat(this.points).forEach(function(o){o.dataLabel&&i.push(o.dataLabel)}),this.chart.hideOverlappingLabels(i))}setState(t,e){e?(this.points=this.nodes.concat(this.data),E.prototype.setState.apply(this,arguments),this.points=this.data):E.prototype.setState.apply(this,arguments),this.layout.simulation||t||this.render()}translate(){this.generatePoints(),this.deferLayout(),this.nodes.forEach(function(t){t.isInside=!0,t.linksFrom.forEach(function(e){e.shapeType="path",e.y=1})})}}it.defaultOptions=Gt(E.defaultOptions,{stickyTracking:!1,inactiveOtherPoints:!0,marker:{enabled:!0,states:{inactive:{opacity:.3,animation:{duration:50}}}},states:{inactive:{linkOpacity:.3,animation:{duration:50}}},dataLabels:{formatter:function(){return String(this.key??"")},linkFormatter:function(){return this.fromNode.name+"<br>"+this.toNode.name},linkTextPath:{enabled:!0},textPath:{enabled:!1},style:{transition:"opacity 2000ms"},defer:!0,animation:{defer:1e3}},link:{color:"rgba(100, 100, 100, 0.5)",width:1},draggable:!0,layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:1,enableSimulation:!1,theta:.5,maxSpeed:10,approximation:"none",type:"reingold-fruchterman",integration:"euler",maxIterations:1e3,gravitationalConstant:.0625,friction:-.981},showInLegend:!1}),jt(it.prototype,{pointClass:ut,animate:void 0,directTouch:!0,drawGraph:void 0,forces:["barycenter","repulsive","attractive"],hasDraggableNodes:!0,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["from","to"],requireSorting:!1,trackerGroups:["group","markerGroup","dataLabelsGroup"],initDataLabels:Ht,buildKDTree:Ot,createNode:z.createNode,drawTracker:zt.drawTracker,onMouseDown:I.onMouseDown,onMouseMove:I.onMouseMove,onMouseUp:I.onMouseUp,redrawHalo:I.redrawHalo}
1),G().registerSeriesType("networkgraph",it);let Ut=w();it.compose(Ut.Chart);let Kt=w();return Q.default})(),yt.exports=l(X._Highcharts,X._Highcharts.SVGElement,X._Highcharts.SeriesRegistry)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.