1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];if(null!=a)for(var i in a)a.hasOwnProperty(i)&&(e[i]=a[i])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:note-front-custom-domain":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8fcc1611-e02d-4a6b-9ad8-2141aa6e6c77",e._sentryDebugIdIdentifier="sentry-dbid-8fcc1611-e02d-4a6b-9ad8-2141aa6e6c77")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3013],{43013:(e,t,a)=>{a.d(t,{diagram:()=>k});var i=a(90352),l=a(99537),r=a(99502),n=a(64314),s=a(20943),o=a(7836),c=a(59046),d=n.UI.pie,p={sections:new Map,showData:!1,config:d},u=p.sections,g=p.showData,f=structuredClone(d),h=(0,s.K2)(()=>structuredClone(f),"getConfig"),y=(0,s.K2)(()=>{u=new Map,g=p.showData,(0,n.IU)()},"clear"),m=(0,s.K2)(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);u.has(e)||(u.set(e,t),s.Rm.debug(`added new section: ${e}, with value: ${t}`))},"addSection"),w=(0,s.K2)(()=>u,"getSections"),x=(0,s.K2)(e=>{g=e},"setShowData"),b=(0,s.K2)(()=>g,"getShowData"),D={getConfig:h,clear:y,setDiagramTitle:n.ke,getDiagramTitle:n.ab,setAccTitle:n.SV,getAccTitle:n.iN,setAccDescription:n.EI,getAccDescription:n.m7,addSection:m,getSections:w,setShowData:x,getShowData:b},S=(0,s.K2)((e,t)=>{(0,l.S)(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},"populateDb"),$={parse:(0,s.K2)(async e=>{let t=await (0,o.qg)("pie",e);s.Rm.debug(t),S(t,D)},"parse")},T=(0,s.K2)(e=>` 2 .pieCircle{ 3 stroke: ${e.pieStrokeColor}; 4 stroke-width : ${e.pieStrokeWidth}; 5 opacity : ${e.pieOpacity}; 6 } 7 .pieOuterCircle{ 8 stroke: ${e.pieOuterStrokeColor}; 9 stroke-width: ${e.pieOuterStrokeWidth}; 10 fill: none; 11 } 12 .pieTitleText { 13 text-anchor: middle; 14 font-size: ${e.pieTitleTextSize}; 15 fill: ${e.pieTitleTextColor}; 16 font-family: ${e.fontFamily}; 17 } 18 .slice { 19 font-family: ${e.fontFamily}; 20 fill: ${e.pieSectionTextColor}; 21 font-size:${e.pieSectionTextSize}; 22 // fill: white; 23 } 24 .legend text { 25 fill: ${e.pieLegendTextColor}; 26 font-family: ${e.fontFamily}; 27 font-size: ${e.pieLegendTextSize}; 28 } 29`,"getStyles"),v=(0,s.K2)(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),a=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return(0,c.rLf)().value(e=>e.value).sort(null)(a)},"createPieArcs"),k={parser:$,db:D,renderer:{draw:(0,s.K2)((e,t,a,l)=>{s.Rm.debug("rendering pie chart\n"+e);let o=l.db,d=(0,n.D7)(),p=(0,r.$t)(o.getConfig(),d.pie),u=(0,i.D)(t),g=u.append("g");g.attr("transform","translate(225,225)");let{themeVariables:f}=d,[h]=(0,r.I5)(f.pieOuterStrokeWidth);h??=2;let y=p.textPosition,m=(0,c.JLW)().innerRadius(0).outerRadius(185),w=(0,c.JLW)().innerRadius(185*y).outerRadius(185*y);g.append("circle").attr("cx",0).attr("cy",0).attr("r",185+h/2).attr("class","pieOuterCircle");let x=o.getSections(),b=v(x),D=[f.pie1,f.pie2,f.pie3,f.pie4,f.pie5,f.pie6,f.pie7,f.pie8,f.pie9,f.pie10,f.pie11,f.pie12],S=0;x.forEach(e=>{S+=e});let $=b.filter(e=>"0"!==(e.data.value/S*100).toFixed(0)),T=(0,c.UMr)(D).domain([...x.keys()]);g.selectAll("mySlices").data($).enter().append("path").attr("d",m).attr("fill",e=>T(e.data.label)).attr("class","pieCircle"),g.selectAll("mySlices").data($).enter().append("text").text(e=>(e.data.value/S*100).toFixed(0)+"%").attr("transform",e=>"translate("+w.centroid(e)+")").style("text-anchor","middle").attr("class","slice");let k=g.append("text").text(o.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText"),C=[...x.entries()].map(([e,t])=>({label:e,value:t})),M=g.selectAll(".legend").data(C).enter().append("g").attr("class","legend").attr("transform",(e,t)=>"translate(216,"+(22*t-22*C.length/2)+")");M.append("rect").attr("width",18).attr("height",18).style("fill",e=>T(e.label)).style("stroke",e=>T(e.label)),M.append("text").attr("x",22).attr("y",14).text(e=>o.getShowData()?`${e.label} [${e.value}]`:e.label);let A=Math.max(...M.selectAll("text").nodes().map(e=>e?.getBoundingClientRect().width??0)),K=k.node()?.getBoundingClientRect().width??0,_=Math.min(0,225-K/2),I=Math.max(512+A,225+K/2)-_;u.attr("viewBox",`${_} 0 ${I} 450`),(0,n.a$)(u,450,I,p.useMaxWidth)},"draw")},styles:T}},99537:(e,t,a)=>{function i(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}a.d(t,{S:()=>i}),(0,a(20943).K2)(i,"populateCommonDb")}}]);
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.