1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3628],{57038:function(t,e,a){function n(t,e){var a,n,r;t.accDescr&&(null===(a=e.setAccDescription)||void 0===a||a.call(e,t.accDescr)),t.accTitle&&(null===(n=e.setAccTitle)||void 0===n||n.call(e,t.accTitle)),t.title&&(null===(r=e.setDiagramTitle)||void 0===r||r.call(e,t.title))}a.d(e,{A:function(){return n}}),(0,a(99573).eW)(n,"populateCommonDb")},43628:function(t,e,a){a.d(e,{diagram:function(){return I}});var n=a(66462),r=a(57038),i=a(42877),c=a(66764),l=a(99573),o=a(18442),s={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},d={axes:[],curves:[],options:s},u=structuredClone(d),g=c.vZ.radar,h=(0,l.eW)(()=>(0,i.Rb)({...g,...(0,c.iE)().radar}),"getConfig"),x=(0,l.eW)(()=>u.axes,"getAxes"),p=(0,l.eW)(()=>u.curves,"getCurves"),v=(0,l.eW)(()=>u.options,"getOptions"),m=(0,l.eW)(t=>{u.axes=t.map(t=>{var e;return{name:t.name,label:null!==(e=t.label)&&void 0!==e?e:t.name}})},"setAxes"),f=(0,l.eW)(t=>{u.curves=t.map(t=>{var e;return{name:t.name,label:null!==(e=t.label)&&void 0!==e?e:t.name,entries:y(t.entries)}})},"setCurves"),y=(0,l.eW)(t=>{if(void 0==t[0].axis)return t.map(t=>t.value);let e=x();if(0===e.length)throw Error("Axes must be populated before curves for reference entries");return e.map(e=>{let a=t.find(t=>{var a;return(null===(a=t.axis)||void 0===a?void 0:a.$refText)===e.name});if(void 0===a)throw Error("Missing entry for axis "+e.label);return a.value})},"computeCurveEntries"),b={getAxes:x,getCurves:p,getOptions:v,setAxes:m,setCurves:f,setOptions:(0,l.eW)(t=>{var e,a,n,r,i,c,l,o,d,g;let h=t.reduce((t,e)=>(t[e.name]=e,t),{});u.options={showLegend:null!==(c=null===(e=h.showLegend)||void 0===e?void 0:e.value)&&void 0!==c?c:s.showLegend,ticks:null!==(l=null===(a=h.ticks)||void 0===a?void 0:a.value)&&void 0!==l?l:s.ticks,max:null!==(o=null===(n=h.max)||void 0===n?void 0:n.value)&&void 0!==o?o:s.max,min:null!==(d=null===(r=h.min)||void 0===r?void 0:r.value)&&void 0!==d?d:s.min,graticule:null!==(g=null===(i=h.graticule)||void 0===i?void 0:i.value)&&void 0!==g?g:s.graticule}},"setOptions"),getConfig:h,clear:(0,l.eW)(()=>{(0,c.ZH)(),u=structuredClone(d)},"clear"),setAccTitle:c.GN,getAccTitle:c.eu,setDiagramTitle:c.g2,getDiagramTitle:c.Kr,getAccDescription:c.Mx,setAccDescription:c.U$},M=(0,l.eW)(t=>{(0,r.A)(t,b);let{axes:e,curves:a,options:n}=t;b.setAxes(e),b.setCurves(a),b.setOptions(n)},"populate"),W={parse:(0,l.eW)(async t=>{let e=await (0,o.Qc)("radar",t);l.cM.debug(e),M(e)},"parse")},w=(0,l.eW)((t,e,a,r)=>{var i;let c=r.db,l=c.getAxes(),o=c.getCurves(),s=c.getOptions(),d=c.getConfig(),u=c.getDiagramTitle(),g=C((0,n.P)(e),d),h=null!==(i=s.max)&&void 0!==i?i:Math.max(...o.map(t=>Math.max(...t.entries))),x=s.min,p=Math.min(d.width,d.height)/2;L(g,l,p,s.ticks,s.graticule),T(g,l,p,d),k(g,l,o,x,h,s.graticule,d),O(g,o,s.showLegend,d),g.append("text").attr("class","radarTitle").text(u).attr("x",0).attr("y",-d.height/2-d.marginTop)},"draw"),C=(0,l.eW)((t,e)=>{var a;let n=e.width+e.marginLeft+e.marginRight,r=e.height+e.marginTop+e.marginBottom,i={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};return(0,c.v2)(t,r,n,null===(a=e.useMaxWidth)||void 0===a||a),t.attr("viewBox","0 0 ".concat(n," ").concat(r)),t.append("g").attr("transform","translate(".concat(i.x,", ").concat(i.y,")"))},"drawFrame"),L=(0,l.eW)((t,e,a,n,r)=>{if("circle"===r)for(let e=0;e<n;e++){let r=a*(e+1)/n;t.append("circle").attr("r",r).attr("class","radarGraticule")}else if("polygon"===r){let r=e.length;for(let i=0;i<n;i++){let c=a*(i+1)/n,l=e.map((t,e)=>{let a=2*e*Math.PI/r-Math.PI/2,n=c*Math.cos(a),i=c*Math.sin(a);return"".concat(n,",").concat(i)}).join(" ");t.append("polygon").attr("points",l).attr("class","radarGraticule")}}},"drawGraticule"),T=(0,l.eW)((t,e,a,n)=>{let r=e.length;for(let i=0;i<r;i++){let c=e[i].label,l=2*i*Math.PI/r-Math.PI/2;t.append("line").attr("x1",0).attr("y1",0).attr("x2",a*n.axisScaleFactor*Math.cos(l)).attr("y2",a*n.axisScaleFactor*Math.sin(l)).attr("class","radarAxisLine"),t.append("text").text(c).attr("x",a*n.axisLabelFactor*Math.cos(l)).attr("y",a*n.axisLabelFactor*Math.sin(l)).attr("class","radarAxisLabel")}},"drawAxes");function k(t,e,a,n,r,i,c){let l=e.length,o=Math.min(c.width,c.height)/2;a.forEach((e,a)=>{if(e.entries.length!==l)return;let s=e.entries.map((t,e)=>{let a=2*Math.PI*e/l-Math.PI/2,i=A(t,n,r,o);return{x:i*Math.cos(a),y:i*Math.sin(a)}});"circle"===i?t.append("path").attr("d",E(s,c.curveTension)).attr("class","radarCurve-".concat(a)):"polygon"===i&&t.append("pol
1ygon").attr("points",s.map(t=>"".concat(t.x,",").concat(t.y)).join(" ")).attr("class","radarCurve-".concat(a))})}function A(t,e,a,n){return n*(Math.min(Math.max(t,e),a)-e)/(a-e)}function E(t,e){let a=t.length,n="M".concat(t[0].x,",").concat(t[0].y);for(let r=0;r<a;r++){let i=t[(r-1+a)%a],c=t[r],l=t[(r+1)%a],o=t[(r+2)%a],s={x:c.x+(l.x-i.x)*e,y:c.y+(l.y-i.y)*e},d={x:l.x-(o.x-c.x)*e,y:l.y-(o.y-c.y)*e};n+=" C".concat(s.x,",").concat(s.y," ").concat(d.x,",").concat(d.y," ").concat(l.x,",").concat(l.y)}return"".concat(n," Z")}function O(t,e,a,n){if(!a)return;let r=(n.width/2+n.marginRight)*3/4,i=-(3*(n.height/2+n.marginTop))/4;e.forEach((e,a)=>{let n=t.append("g").attr("transform","translate(".concat(r,", ").concat(i+20*a,")"));n.append("rect").attr("width",12).attr("height",12).attr("class","radarLegendBox-".concat(a)),n.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(e.label)})}(0,l.eW)(k,"drawCurves"),(0,l.eW)(A,"relativeRadius"),(0,l.eW)(E,"closedRoundCurve"),(0,l.eW)(O,"drawLegend");var S=(0,l.eW)((t,e)=>{let a="";for(let n=0;n<t.THEME_COLOR_LIMIT;n++){let r=t["cScale".concat(n)];
1a+="\n .radarCurve-".concat(n," {\n color: ").concat(r,";\n fill: ").concat(r,";\n fill-opacity: ").concat(e.curveOpacity,";\n stroke: ").concat(r,";\n stroke-width: ").concat(e.curveStrokeWidth,";\n }\n .radarLegendBox-").concat(n," {\n fill: ").concat(r,";\n fill-opacity: ").concat(e.curveOpacity,";\n stroke: ").concat(r,";\n }\n ")}return a},"genIndexStyles"),D=(0,l.eW)(t=>{let e=(0,c.xN)(),a=(0,c.iE)(),n=(0,i.Rb)(e,a.themeVariables),r=(0,i.Rb)(n.radar,t);return{themeVariables:n,radarOptions:r}},"buildRadarStyleOptions"),I={parser:W,db:b,renderer:{draw:w},styles:(0,l.eW)(function(){let{radar:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{themeVariables:e,radarOptions:a}=D(t);return"\n .radarTitle {\n font-size: ".concat(e.fontSize,";\n color: ").concat(e.titleColor,";\n dominant-baseline: hanging;\n text-anchor: middle;\n }\n .radarAxisLine {\n stroke: ").concat(a.axisColor,";\n stroke-width: ").concat(a.axisStrokeWidth,";\n }\n .radarAxisLabel {\n dominant-baseline: middle;\n text-anchor: middle;\n font-size: ").concat(a.axisLabelFontSize,"px;\n color: ").concat(a.axisColor,";\n }\n .radarGraticule {\n fill: ").concat(a.graticuleColor,";\n fill-opacity: ").concat(a.graticuleOpacity,";\n stroke: ").concat(a.graticuleColor,";\n stroke-width: ").concat(a.graticuleStrokeWidth,";\n }\n .radarLegendText {\n text-anchor: start;\n font-size: ").concat(a.legendFontSize,"px;\n dominant-baseline: hanging;\n }\n ").concat(S(e,a),"\n ")},"styles")}}}]);
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.