PageSourceSearch

https://e-kensin.net/_next/static/chunks/2532.619ee0ce6c21911e.js

js e-kensin.net collected 2026-10-02 11:19:26 UTC 6,750 bytes, 43 lines download raw bytes

1!function(){try{var t="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];if(null!=a)for(var r in a)a.hasOwnProperty(r)&&(t[r]=a[r])}return t}({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:note-front-custom-domain":!0});var e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="afc764f1-bb3c-4127-bc61-f316449df074",t._sentryDebugIdIdentifier="sentry-dbid-afc764f1-bb3c-4127-bc61-f316449df074")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2532],{12532:(t,e,a)=>{a.d(e,{diagram:()=>S});var r=a(90352),i=a(99537),n=a(99502),l=a(64314),s=a(20943),o=a(7836),c={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},d={axes:[],curves:[],options:c},u=structuredClone(d),g=l.UI.radar,p=(0,s.K2)(()=>(0,n.$t)({...g,...(0,l.zj)().radar}),"getConfig"),h=(0,s.K2)(()=>u.axes,"getAxes"),x=(0,s.K2)(()=>u.curves,"getCurves"),f=(0,s.K2)(()=>u.options,"getOptions"),m=(0,s.K2)(t=>{u.axes=t.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),y=(0,s.K2)(t=>{u.curves=t.map(t=>({name:t.name,label:t.label??t.name,entries:$(t.entries)}))},"setCurves"),$=(0,s.K2)(t=>{if(void 0==t[0].axis)return t.map(t=>t.value);let e=h();if(0===e.length)throw Error("Axes must be populated before curves for reference entries");return e.map(e=>{let a=t.find(t=>t.axis?.$refText===e.name);if(void 0===a)throw Error("Missing entry for axis "+e.label);return a.value})},"computeCurveEntries"),b={getAxes:h,getCurves:x,getOptions:f,setAxes:m,setCurves:y,setOptions:(0,s.K2)(t=>{let e=t.reduce((t,e)=>(t[e.name]=e,t),{});u.options={showLegend:e.showLegend?.value??c.showLegend,ticks:e.ticks?.value??c.ticks,max:e.max?.value??c.max,min:e.min?.value??c.min,graticule:e.graticule?.value??c.graticule}},"setOptions"),getConfig:p,clear:(0,s.K2)(()=>{(0,l.IU)(),u=structuredClone(d)},"clear"),setAccTitle:l.SV,getAccTitle:l.iN,setDiagramTitle:l.ke,getDiagramTitle:l.ab,getAccDescription:l.m7,setAccDescription:l.EI},v=(0,s.K2)(t=>{(0,i.S)(t,b);let{axes:e,curves:a,options:r}=t;b.setAxes(e),b.setCurves(a),b.setOptions(r)},"populate"),w={parse:(0,s.K2)(async t=>{let e=await (0,o.qg)("radar",t);s.Rm.debug(e),v(e)},"parse")},M=(0,s.K2)((t,e,a,i)=>{let n=i.db,l=n.getAxes(),s=n.getCurves(),o=n.getOptions(),c=n.getConfig(),d=n.getDiagramTitle(),u=C((0,r.D)(e),c),g=o.max??Math.max(...s.map(t=>Math.max(...t.entries))),p=o.min,h=Math.min(c.width,c.height)/2;K(u,l,h,o.ticks,o.graticule),k(u,l,h,c),T(u,l,s,p,g,o.graticule,c),I(u,s,o.showLegend,c),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),C=(0,s.K2)((t,e)=>{let a=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,l.a$)(t,r,a,e.useMaxWidth??!0),t.attr("viewBox",`0 0 ${a} ${r}`),t.append("g").attr("transform",`translate(${i.x}, ${i.y})`)},"drawFrame"),K=(0,s.K2)((t,e,a,r,i)=>{if("circle"===i)for(let e=0;e<r;e++){let i=a*(e+1)/r;t.append("circle").attr("r",i).attr("class","radarGraticule")}else if("polygon"===i){let i=e.length;for(let n=0;n<r;n++){let l=a*(n+1)/r,s=e.map((t,e)=>{let a=2*e*Math.PI/i-Math.PI/2,r=l*Math.cos(a),n=l*Math.sin(a);return`${r},${n}`}).join(" ");t.append("polygon").attr("points",s).attr("class","radarGraticule")}}},"drawGraticule"),k=(0,s.K2)((t,e,a,r)=>{let i=e.length;for(let n=0;n<i;n++){let l=e[n].label,s=2*n*Math.PI/i-Math.PI/2;t.append("line").attr("x1",0).attr("y1",0).attr("x2",a*r.axisScaleFactor*Math.cos(s)).attr("y2",a*r.axisScaleFactor*Math.sin(s)).attr("class","radarAxisLine"),t.append("text").text(l).attr("x",a*r.axisLabelFactor*Math.cos(s)).attr("y",a*r.axisLabelFactor*Math.sin(s)).attr("class","radarAxisLabel")}},"drawAxes");function T(t,e,a,r,i,n,l){let s=e.length,o=Math.min(l.width,l.height)/2;a.forEach((e,a)=>{if(e.entries.length!==s)return;let c=e.entries.map((t,e)=>{let a=2*Math.PI*e/s-Math.PI/2,n=L(t,r,i,o);return{x:n*Math.cos(a),y:n*Math.sin(a)}});"circle"===n?t.append("path").attr("d",A(c,l.curveTension)).attr("class",`radarCurve-${a}
1`):"polygon"===n&&t.append("polygon").attr("points",c.map(t=>`${t.x},${t.y}`).join(" ")).attr("class",`radarCurve-${a}`)})}function L(t,e,a,r){return r*(Math.min(Math.max(t,e),a)-e)/(a-e)}function A(t,e){let a=t.length,r=`M${t[0].x},${t[0].y}`;for(let i=0;i<a;i++){let n=t[(i-1+a)%a],l=t[i],s=t[(i+1)%a],o=t[(i+2)%a],c={x:l.x+(s.x-n.x)*e,y:l.y+(s.y-n.y)*e},d={x:s.x-(o.x-l.x)*e,y:s.y-(o.y-l.y)*e};r+=` C${c.x},${c.y} ${d.x},${d.y} ${s.x},${s.y}`}return`${r} Z`}function I(t,e,a,r){if(!a)return;let i=(r.width/2+r.marginRight)*3/4,n=-(3*(r.height/2+r.marginTop))/4;e.forEach((e,a)=>{let r=t.append("g").attr("transform",`translate(${i}, ${n+20*a})`);r.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${a}`),r.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(e.label)})}(0,s.K2)(T,"drawCurves"),(0,s.K2)(L,"relativeRadius"),(0,s.K2)(A,"closedRoundCurve"),(0,s.K2)(I,"drawLegend");var D=(0,s.K2)((t,e)=>{let a="";for(let r=0;r<t.THEME_COLOR_LIMIT;r++){let i=t[`cScale${r}`];a+=`
2		.radarCurve-${r} {
3			color: ${i};
4			fill: ${i};
5			fill-opacity: ${e.curveOpacity};
6			stroke: ${i};
7			stroke-width: ${e.curveStrokeWidth};
8		}
9		.radarLegendBox-${r} {
10			fill: ${i};
11			fill-opacity: ${e.curveOpacity};
12			stroke: ${i};
13		}
14		`}return a},"genIndexStyles"),_=(0,s.K2)(t=>{let e=(0,l.P$)(),a=(0,l.zj)(),r=(0,n.$t)(e,a.themeVariables),i=(0,n.$t)(r.radar,t);return{themeVariables:r,radarOptions:i}},"buildRadarStyleOptions"),S={parser:w,db:b,renderer:{draw:M},styles:(0,s.K2)(({radar:t}={})=>{let{themeVariables:e,radarOptions:a}=_(t);return`
15	.radarTitle {
16		font-size: ${e.fontSize};
17		color: ${e.titleColor};
18		dominant-baseline: hanging;
19		text-anchor: middle;
20	}
21	.radarAxisLine {
22		stroke: ${a.axisColor};
23		stroke-width: ${a.axisStrokeWidth};
24	}
25	.radarAxisLabel {
26		dominant-baseline: middle;
27		text-anchor: middle;
28		font-size: ${a.axisLabelFontSize}px;
29		color: ${a.axisColor};
30	}
31	.radarGraticule {
32		fill: ${a.graticuleColor};
33		fill-opacity: ${a.graticuleOpacity};
34		stroke: ${a.graticuleColor};
35		stroke-width: ${a.graticuleStrokeWidth};
36	}
37	.radarLegendText {
38		text-anchor: start;
39		font-size: ${a.legendFontSize}px;
40		dominant-baseline: hanging;
41	}
42	${D(e,a)}
43	`},"styles")}},99537:(t,e,a)=>{function r(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}a.d(e,{S:()=>r}),(0,a(20943).K2)(r,"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.