UNPKG

zingchart

Version:

Our JavaScript charting library is a commercial product. But the full branded version is free to try, forever.

8 lines (7 loc) 15 kB
/* All of the code within the ZingChart software is developed and copyrighted by ZingChart, Inc., and may not be copied, replicated, or used in any other software or application without prior permission from ZingChart. All usage must coincide with the ZingChart End User License Agreement which can be requested by email at support@zingchart.com. Build 2.9.11_ES6 */ zingchart.setModule("chord"),function(){var t;ZC.AFV=((t=function(){this.AF9="palette",this.C2="#6a921f",this.BP=[],this.T9=.8,this.AFA=.1,this.AFB=0,this.AFC=5,this.iGroupPadding=10,this.iGroupOffset=0,this.JM=1,this.KH=!1,this.fBandAlpha=.75,this.fChordAlpha=.75,this.iHoverEffect=1,this.AGQ=function(){for(var t=(16777215*Math.random()+1<<0).toString(16);t.length<6;)t="0"+t;return"#"+t}}).getDefaults=function(e){var l={};return ZC._cp_(t.B8,l),t.O3[e]&&ZC._cp_(t.O3[e],l),l},t.B8={palette:[],"border-color-1":"#999","border-color-2":"#666",alpha:.75,tick:{"line-color":"#666",flat:!0,"line-width":1},item:{color:"#333","offset-r":0},label:{"auto-align":!0,color:"#333","offset-r":0},"value-box":{visible:!1}},t.O3={light:{palette:[["#7CA82B","#7CA82B","#638F12"],["#29A2CC","#29A2CC","#1089B3"],["#D31E1E","#D31E1E","#BA0505"],["#EF8535","#EF8535","#D66C1C"],["#A05F18","#A05F18","#874600"],["#265E96","#265E96","#0D457D"],["#6B7075","#6B7075","#52575C"]],"border-color-1":"#000","border-color-2":"#fff",alpha:1,tick:{"line-color":"#666"}},dark:{palette:[["#7CA82B","#7CA82B","#638F12"],["#29A2CC","#29A2CC","#1089B3"],["#D31E1E","#D31E1E","#BA0505"],["#EF8535","#EF8535","#D66C1C"],["#A05F18","#A05F18","#874600"],["#265E96","#265E96","#0D457D"],["#6B7075","#6B7075","#52575C"]],"border-color-1":"#221F1F","border-color-2":"#221F1F",alpha:1,tick:{"line-color":"#58595B"},item:{color:"#fff"},label:{color:"#D1D3D4"}}},t);var e={},l={},_=null,a=null,n=-1,r=-1,o=function(t){var _=zingchart.getLoader(t.id);if(_){var a=zingchart.getGraph(_,t.graphid);if(a&&"chord"===a.o.type)if(e["chord-"+t.id+"-"+t.graphidx]){l["chord-"+t.id+"-"+t.graphidx]=l["chord-"+t.id+"-"+t.graphidx]||[];var n,r=l["chord-"+t.id+"-"+t.graphidx];-1!==(n=ZC.AV(r,t.plotindex))?r.splice(n,1):r.push(t.plotindex),_.K0()}}};zingchart.bind(null,"legend_item_click",o),zingchart.bind(null,"legend_marker_click",o),zingchart.bind(null,"shape_mouseover",function(t){var l=zingchart.getLoader(t.id);if(l){var _=zingchart.getGraph(l,t.graphid);if(_&&"chord"===_.o.type){var a=e["chord-"+t.id+"-"+t.graphidx];if(a&&!a.KH&&"segment_"===t.shapeid.substring(0,8)){for(var o=ZC._i_(t.shapeid.replace("segment_","")),C=[],i=0;i<n;i++){for(var Z=0;Z<r;Z++)1!==a.iHoverEffect&&2!==a.iHoverEffect||C.push({id:"chord_"+i+"_"+Z,alpha:a.fChordAlpha*(o===i||o===Z?1:.25)});2===a.iHoverEffect&&C.push({id:"segment_"+i,alpha:a.fBandAlpha*(o===i?1:.25)})}0!==a.iHoverEffect&&zingchart.exec(t.id,"updateobject",{type:"shape",graphid:t.graphid,dynamic:!0,data:C})}}}}),zingchart.bind(null,"shape_mouseout",function(t){var l=zingchart.getLoader(t.id);if(l){var _=zingchart.getGraph(l,t.graphid);if(_&&"chord"===_.o.type){var a=e["chord-"+t.id+"-"+t.graphidx];if(a&&!a.KH&&"segment_"===t.shapeid.substring(0,8)){for(var o=[],C=0;C<n;C++){for(var i=0;i<r;i++)1!==a.iHoverEffect&&2!==a.iHoverEffect||o.push({id:"chord_"+C+"_"+i,alpha:a.fChordAlpha});2===a.iHoverEffect&&o.push({id:"segment_"+C,alpha:a.fBandAlpha})}0!==a.iHoverEffect&&zingchart.exec(t.id,"updateobject",{type:"shape",graphid:t.graphid,dynamic:!0,data:o})}}}}),zingchart.bind(null,"dataparse",function(t,o){var C,i,Z,p,h,c,g=zingchart.getLoader(t.id);zingchart.initThemes(g);for(var d=ZC.AFV.getDefaults(t.theme),u=0,f=o[ZC._[16]].length;u<f;u++)if("chord"===o[ZC._[16]][u].type){var s=o[ZC._[16]][u].type,A=o[ZC._[16]][u],v={};A.options&&(v=A.options[s]||A.options),ZC._todash_(v),null!==ZC._n_(_)&&(A.shapes=[],ZC._cpa_(_,A.shapes)),null!==ZC._n_(a)&&(A[ZC._[10]]=[],ZC._cpa_(a,A[ZC._[10]]));var x=new ZC.AFV;e["chord-"+t.id+"-"+u]=x,null!==ZC._n_(C=v["color-type"])&&(x.AF9=C),null!==ZC._n_(C=v.color)&&(x.C2=ZC.AR.GE(C)),null!==ZC._n_(C=v["hover-effect"])&&(x.iHoverEffect=ZC._i_(C)),null!==ZC._n_(C=v.palette)?x.BP=C:d.palette.length>0&&(x.BP=d.palette),null!==ZC._n_(C=v.radius)&&(x.T9=ZC._f_(ZC.IU(C))),null!==ZC._n_(C=v["band-width"])&&(x.AFA=ZC._f_(ZC.IU(C))),null!==ZC._n_(C=v["band-space"])&&(x.AFB=ZC._f_(ZC.IU(C))),null!==ZC._n_(C=v["angle-padding"])&&(x.AFC=ZC._i_(C)),null!==ZC._n_(C=v["group-padding"])&&(x.iGroupPadding=ZC._i_(C)),null!==ZC._n_(C=v["group-offset"])&&(x.iGroupOffset=ZC._i_(C)),null!==ZC._n_(C=v["size-factor"])&&(x.JM=ZC._f_(C)),null!==ZC._n_(C=v.flat)&&(x.KH=ZC._b_(C));var b=A[ZC._[11]];for(i=0;i<b.length;i++)b[i]["sort-index"]=i;var y=[];b.sort(function(t,e){return null!==ZC._n_(t.group)&&-1===ZC.AV(y,ZC._i_(t.group))&&y.push(ZC._i_(t.group)),null!==ZC._n_(e.group)&&-1===ZC.AV(y,ZC._i_(e.group))&&y.push(ZC._i_(e.group)),null!==ZC._n_(t.group)&&null!==ZC._n_(e.group)&&ZC._i_(t.group)-ZC._i_(e.group)!=0?ZC._i_(t.group)-ZC._i_(e.group):t["sort-index"]-e["sort-index"]});var B=ZC.BQ(y.length,1),m=l["chord-"+t.id+"-"+u]||[],F=m.length,E=0;for(i=0,Z=b.length;i<Z;i++)if(0===F||F>0&&-1===ZC.AV(m,i))for(h=0,c=(p=b[i][ZC._[5]]||[]).length;h<c;h++)(0===F||F>0&&-1===ZC.AV(m,h))&&(E+=ZC._f_(p[h]));var M=0;for(i=0,Z=b.length;i<Z;i++)(0===F||F>0&&-1===ZC.AV(m,i))&&M++;if(-1===n&&(n=b.length),-1===r)for(i=0,Z=b.length;i<Z;i++)p=b[i][ZC._[5]]||[],r=ZC.BQ(r,p.length);A.shapes||(A.shapes=[]),_||(_=[],ZC._cpa_(A.shapes,_));var z=A.shapes;A[ZC._[10]]||(A[ZC._[10]]=[]),a||(a=[],ZC._cpa_(A[ZC._[10]],a));var V,k,P,D,w,G,H,N,I,L,T=A[ZC._[10]];A.legend&&(A.legend[ZC._[54]]="none");var O,Q=360-x.AFC*M-x.iGroupPadding*(B>1?B:0),U=[],K=[],R=[],X=0,J=0,j=null,S=!1;for(i=0,Z=b.length;i<Z;i++){ZC._todash_(b[i]),O=1,null!==ZC._n_(b[i].group)&&(O=ZC._i_(b[i].group)),S=!1,J=0,null===j&&null!==ZC._n_(b[i].group)?j=ZC._i_(b[i].group):ZC._i_(b[i].group)!==j&&(j=ZC._i_(b[i].group),S=!0),S&&i>0&&(J=x.iGroupPadding);var q=x.C2;if("palette"===x.AF9)if(x.BP.length>0)q=x.BP[i%x.BP.length];else q=zingchart.getPalette(g,i,"bar")[1];else"random"===x.AF9&&(q=x.AGQ());if(0===F||F>0&&-1===ZC.AV(m,i)){null===ZC._n_(b[i][ZC._[0]])&&(b[i][ZC._[0]]=q),b[i].visible=!0;var W={},Y=0;for(h=0,c=(p=b[i][ZC._[5]]||[]).length;h<c;h++)(0===F||F>0&&-1===ZC.AV(m,h))&&(Y+=ZC._f_(p[h]));for(var $ in W[ZC._[1]]=X+J,W[ZC._[2]]=W[ZC._[1]]+Q*Y/E,W.group=O,W.total=Y,W[ZC._[5]]=b[i][ZC._[5]],b[i])"data-"===$.substr(0,5)&&(W[$]=b[i][$]);X=W[ZC._[2]]+x.AFC,U.push(W);var tt=zingchart.getInstance(g,"style");tt.append(b[i]),tt.parse(),K[i]=tt,A.legend&&ZC._cp_({"legend-marker":{alpha:.75,"background-color-1":tt.A0,"background-color-2":tt.AE}},b[i]),H={"background-color":"#fff",color:"#333","border-width":1,"border-color":d["border-color-1"],padding:10},null!==ZC._n_(v.style)&&null!==ZC._n_(C=v.style.tooltip)&&ZC._cp_(C,H);var et=b[i].text||"";H.text=et;var lt={alpha:d.alpha,"border-width":0,"background-color":tt.A0+" "+tt.AE,tooltip:H};null!==ZC._n_(v.style)&&null!==ZC._n_(C=v.style.band)&&ZC._cp_(C,lt),null!==ZC._n_(b[i].style)&&null!==ZC._n_(C=b[i].style.band)&&ZC._cp_(C,lt),ZC._cp_({type:"pie",id:"segment_"+i,"angle-start":W[ZC._[1]],"angle-end":W[ZC._[2]]},lt),lt.tooltip.text=lt.tooltip.text.replace(/%text/gi,et),x.fBandAlpha=lt.alpha||.75,R.push(lt)}else b[i].visible=!1,U.push(null),R.push(null)}var _t=0;if(B>1){var at=Number.MAX_VALUE,nt=-Number.MAX_VALUE;for(i=0,Z=U.length;i<Z;i++)1===U[i].group&&(at=Math.min(at,U[i][ZC._[1]]),nt=Math.max(nt,U[i][ZC._[2]]));_t=(nt-at)/2}for(_t+=x.iGroupOffset,i=0,Z=U.length;i<Z;i++)U[i]&&R[i]&&(U[i][ZC._[1]]-=_t,U[i][ZC._[2]]-=_t,R[i][ZC._[1]]-=_t,R[i][ZC._[2]]-=_t,z.push(R[i]));var rt,ot=Number.MAX_VALUE;if(0!==E){for(i=0,Z=U.length;i<Z;i++)if(0===F||F>0&&-1===ZC.AV(m,i)){var Ct=Math.pow(10,Math.floor(Math.log(U[i].total)/Math.LN10));Ct>0&&(ot=ZC.CX(ot,Ct))}for(;!((rt=Q*ot/E)<15);)ot/=2}else ot=1;var it,Zt,pt,ht,ct,gt,dt,ut=Math.min(0,Math.ceil(Math.log(ot)/Math.LN10)+1),ft=0,st=0;for(i=0,Z=U.length;i<Z;i++)if(0===F||F>0&&-1===ZC.AV(m,i))for(it=0,Zt=ZC.BQ(1,Math.floor(10/rt)),V=U[i][ZC._[1]];V<U[i][ZC._[2]];V+=rt)it%Zt==0&&(ct=(pt=it*ot).toFixed(ut),pt>=1e3&&(ct=pt/1e3+"k"),pt>=1e6&&(ct=pt/1e6+"M"),ht={},ZC._cp_(d.item,ht),null!==ZC._n_(v.style)&&null!==ZC._n_(C=v.style.item)&&ZC._cp_(C,ht),null!==ZC._n_(b[i].style)&&null!==ZC._n_(C=b[i].style.item)&&ZC._cp_(C,ht),ht.text=ct,ZC._todash_(ht),(gt=zingchart.getInstance(g,"textbox")).append(ht),gt.parse(),st=Math.max(st,gt.DT),ft=Math.max(ft,gt.I)),it++;var At,vt=0,xt=0,bt=0;for(i=0;i<b.length;i++)ct=b[i].text||"",At={},ZC._cp_(d.label,At),null!==ZC._n_(v.style)&&null!==ZC._n_(C=v.style.label)&&ZC._cp_(C,At),null!==ZC._n_(b[i].style)&&null!==ZC._n_(C=b[i].style.label)&&ZC._cp_(C,At),At.text=ct,ZC._todash_(At),(dt=zingchart.getInstance(g,"textbox")).append(At),dt.parse(),bt=Math.max(bt,dt.DT),vt=Math.max(vt,dt.I),xt=Math.max(xt,dt.F);if(A.plotarea)for(var yt=["margin",ZC._[57],ZC._[58],ZC._[59],ZC._[60]],Bt=0;Bt<yt.length;Bt++)"dynamic"===A.plotarea[yt[Bt]]&&(0===dt.AA?A.plotarea[yt[Bt]]=ft+st+xt-20:A.plotarea[yt[Bt]]=ft+st+vt-20);var mt,Ft,Et=zingchart.getGraphInfo(g,o,u),Mt=Et.plotarea.x+Et.plotarea.width/2,zt=Et.plotarea.y+Et.plotarea.height/2,Vt=Et.graph.x+Mt,kt=Et.graph.y+zt;for(mt=x.T9>1?ZC._i_(x.T9):ZC._i_(x.T9*ZC.CX(Et.plotarea.width/2,Et.plotarea.height/2)),mt*=x.JM,Ft=x.AFA>1?mt-ZC._i_(x.AFA):ZC._i_((1-x.AFA)*mt),x.AFB<1&&(x.AFB=ZC._i_(x.AFB*mt)),i=0,Z=z.length;i<Z;i++)z[i].id&&0===z[i].id.indexOf("segment_")&&(z[i].x=Mt,z[i].y=zt,z[i][ZC._[21]]=mt,z[i][ZC._[8]]=Ft);for(i=0,Z=U.length;i<Z;i++)if(0===F||F>0&&-1===ZC.AV(m,i)){it=0;var Pt=[],Dt={};ZC._cp_(d.tick,Dt),null!==ZC._n_(v.style)&&null!==ZC._n_(C=v.style.tick)&&ZC._cp_(C,Dt),null!==ZC._n_(b[i].style)&&null!==ZC._n_(C=b[i].style.tick)&&ZC._cp_(C,Dt);var wt=Dt[ZC._[21]]||5;for(Zt=ZC.BQ(1,Math.floor(10/rt)),G=30,V=U[i][ZC._[1]];V<U[i][ZC._[2]];V+=rt){var Gt=ZC.AP.BN(Vt,kt,mt,V+.1),Ht=ZC.AP.BN(Vt,kt,mt+wt,V+.1);Pt.push(Gt,Ht,null),it%Zt==0&&(ct=(pt=it*ot).toFixed(ut),pt>=1e3&&(ct=pt/1e3+"k"),pt>=1e6&&(ct=pt/1e6+"M"),k=V,P="left",V>90&&V<270&&(k=V-180,P="right"),ht={},ZC._cp_(d.item,ht),null!==ZC._n_(v.style)&&null!==ZC._n_(C=v.style.item)&&ZC._cp_(C,ht),null!==ZC._n_(b[i].style)&&null!==ZC._n_(C=b[i].style.item)&&ZC._cp_(C,ht),G=ht[ZC._[19]]||ft,w=ZC._i_(ht["offset-r"]||"0"),D=ZC.AP.BN(Mt,zt,mt+wt+w+G/2,V+.1),ZC._cp_({anchor:"c",flat:!0,x:ZC._i_(D[0]),y:ZC._i_(D[1]),width:G,angle:k,"text-align":P,text:ct},ht),(typeof ht.visible===ZC._[31]||ZC._b_(ht.visible))&&T.push(ht)),it++}ZC._cp_({type:"line",id:"ticks"+i,points:Pt},Dt),(typeof Dt.visible===ZC._[31]||ZC._b_(Dt.visible))&&z.push(Dt),k=V=(U[i][ZC._[1]]+U[i][ZC._[2]])/2,V<0&&(V+=360),V%=360,P="center",0===dt.AA?V>=0&&V<=180?k-=90:k+=90:V>=0&&V<=90||V>=270&&V<=360?k-=90:k+=90;var Nt={};ZC._cp_(d[ZC._[17]],Nt),null!==ZC._n_(A.plot)&&null!==ZC._n_(C=A.plot[ZC._[17]])&&ZC._cp_(C,Nt),null!==ZC._n_(C=b[i][ZC._[17]])&&ZC._cp_(C,Nt);var It=ZC.AP.BN(Vt,kt,(mt+Ft)/2,(U[i][ZC._[1]]+U[i][ZC._[2]])/2),Lt=k;null===ZC._n_(Nt.angle)&&null===ZC._n_(Nt["font-angle"])||(Nt["auto-align"]?null!==ZC._n_(Nt.angle)?Lt+=ZC._f_(Nt.angle):Lt+=ZC._f_(Nt["font-angle"]):Lt=null!==ZC._n_(Nt.angle)?ZC._f_(Nt.angle):ZC._f_(Nt["font-angle"])),ZC._cp_({id:"vbox_"+i,anchor:"c",angle:Lt,x:It[0],y:It[1],flat:!0},Nt),Nt.text=Nt.text||"%node-value",Nt.text=Nt.text.replace(/%plot-text/gi,b[i].text||"").replace(/%node-value/gi,U[i].total),(typeof Nt.visible===ZC._[31]||ZC._b_(Nt.visible))&&T.push(Nt),At={},ZC._cp_(d.label,At),null!==ZC._n_(v.style)&&null!==ZC._n_(C=v.style.label)&&ZC._cp_(C,At),null!==ZC._n_(b[i].style)&&null!==ZC._n_(C=b[i].style.label)&&ZC._cp_(C,At),I=At[ZC._[19]]||vt,L=At[ZC._[20]]||xt,N=ZC._i_(At["offset-r"]||"0"),null===ZC._n_(At.angle)&&null===ZC._n_(At["font-angle"])||(At["auto-align"]?(null!==ZC._n_(At.angle)?k+=ZC._f_(At.angle):k+=ZC._f_(At["font-angle"]),0!==dt.AA&&(P=V>=0&&V<=90||V>=270&&V<=360?"left":"right")):k=null!==ZC._n_(At.angle)?ZC._f_(At.angle):ZC._f_(At["font-angle"])),D=0===dt.AA?ZC.AP.BN(Mt,zt,mt+wt+w+G+N+L,V):ZC.AP.BN(Mt,zt,mt+wt+w+G+N+I/2,V),ZC._cp_({anchor:"c",flat:!0,x:ZC._i_(D[0]),y:ZC._i_(D[1]),width:I,angle:k,"font-angle":k,"text-align":P,text:b[i].text},At),(typeof At.visible===ZC._[31]||ZC._b_(At.visible))&&T.push(At)}var Tt=Ft-x.AFB;for(i=0,Z=U.length;i<Z;i++)if(0===F||F>0&&-1===ZC.AV(m,i))for(h=0,c=U.length;h<Z;h++)if(0===F||F>0&&-1===ZC.AV(m,h)){for(var Ot=0,Qt=0,Ut=0;Ut<h;Ut++)(0===F||F>0&&-1===ZC.AV(m,Ut))&&(typeof U[i][ZC._[5]][Ut]===ZC._[31]&&(U[i][ZC._[5]][Ut]=0),Ot+=U[i][ZC._[5]][Ut]);for(Ut=0;Ut<i;Ut++)(0===F||F>0&&-1===ZC.AV(m,Ut))&&(typeof U[h][ZC._[5]][Ut]===ZC._[31]&&(U[h][ZC._[5]][Ut]=0),Qt+=U[h][ZC._[5]][Ut]);var Kt=0;typeof U[i][ZC._[5]][h]!==ZC._[31]&&(Kt=U[i][ZC._[5]][h]);var Rt=0;typeof U[h][ZC._[5]][i]!==ZC._[31]&&(Rt=U[h][ZC._[5]][i]);var Xt=U[i][ZC._[1]]+(U[i][ZC._[2]]-U[i][ZC._[1]])*Ot/U[i].total,Jt=Xt+(U[i][ZC._[2]]-U[i][ZC._[1]])*Kt/U[i].total,jt=U[h][ZC._[1]]+(U[h][ZC._[2]]-U[h][ZC._[1]])*Qt/U[h].total,St=jt+(U[h][ZC._[2]]-U[h][ZC._[1]])*Rt/U[h].total;0===U[i].total&&(Xt=U[i][ZC._[1]],Jt=U[i][ZC._[2]]),0===U[h].total&&(jt=U[h][ZC._[1]],St=U[h][ZC._[2]]);var qt=ZC.AP.BN(Vt,kt,Tt,Xt),Wt=ZC.AP.BN(Vt,kt,Tt,jt);H={"background-color":"#fff",color:"#333","border-width":1,"border-color":d["border-color-1"],padding:10},null!==ZC._n_(v.style)&&null!==ZC._n_(C=v.style.tooltip)&&ZC._cp_(C,H);var Yt=b[i].text||"",$t=b[h].text||"",te={},ee=[];if(i===h?(H.text=Yt+":"+U[i][ZC._[5]][h],ee=[[qt[0],qt[1]],[Vt,kt,Tt,Xt,Jt,0],[Vt,kt,qt[0],qt[1]]]):i<=h&&(H.text=Yt+" -> "+$t+":"+U[i][ZC._[5]][h]+"<br>"+$t+" -> "+Yt+":"+U[h][ZC._[5]][i],ee=[[qt[0],qt[1]],[Vt,kt,Tt,Xt,Jt,0],[Vt,kt,Wt[0],Wt[1]],[Vt,kt,Tt,jt,St,0],[Vt,kt,qt[0],qt[1]]]),ee.length>0){var le=Kt>=Rt?i:h;ZC._cp_({"background-color":K[le].A0+" "+K[le].AE,alpha:.75,"border-width":1,"border-color":d["border-color-2"],tooltip:H},te),null!==ZC._n_(v.style)&&null!==ZC._n_(C=v.style.chord)&&ZC._cp_(C,te),null!==ZC._n_(b[i].style)&&null!==ZC._n_(C=b[i].style.chord)&&ZC._cp_(C,te),ZC._cp_({type:"poly",id:"chord_"+i+"_"+h,dynamic:!0,"fast-vector-path":!0,points:ee},te),x.fChordAlpha=te.alpha||.75,i!==h&&null!==ZC._n_(C=te.tooltip["text-chord"])&&(te.tooltip.text=C),te.tooltip.text=te.tooltip.text.replace(/%text-destination/gi,$t).replace(/%value-destination/gi,U[h][ZC._[5]][i]).replace(/%text-source/gi,Yt).replace(/%value-source/gi,U[i][ZC._[5]][h]).replace(/%text/gi,Yt).replace(/%value/gi,U[i][ZC._[5]][h]);var _e=null;for(var $ in U[i])"data-"===$.substr(0,5)&&(_e=new RegExp("%"+$+"-destination","g"),te.tooltip.text=te.tooltip.text.replace(_e,U[i][$][h]||""));for(var $ in U[h])"data-"===$.substr(0,5)&&(_e=new RegExp("%"+$+"-source","g"),te.tooltip.text=te.tooltip.text.replace(_e,U[h][$][i]||""));_e=new RegExp("%data-([a-zA-Z0-9]+)-(source|destination)","g"),te.tooltip.text=te.tooltip.text.replace(_e,""),_e=new RegExp("%data-([a-zA-Z0-9]+)","g"),te.tooltip.text=te.tooltip.text.replace(_e,""),(typeof te.visible===ZC._[31]||ZC._b_(te.visible))&&(0===Kt&&0===Rt||z.push(te))}}}return o})}();