1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4397],{87793:function(e,t,a){a.d(t,{j:function(){return s}});var l=a(72709),r=a(70388),s=(0,r.eW)((e,t,a,s)=>{e.attr("class",a);let{width:o,height:c,x:d,y:p}=i(e,t);(0,l.v2)(e,c,o,s);let h=n(d,p,o,c,t);e.attr("viewBox",h),r.cM.debug(`viewBox configured: ${h} with padding: ${t}`)},"setupViewPortForSVG"),i=(0,r.eW)((e,t)=>{let a=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:a.width+2*t,height:a.height+2*t,x:a.x,y:a.y}},"calculateDimensionsWithPadding"),n=(0,r.eW)((e,t,a,l,r)=>`${e-r} ${t-r} ${a} ${l}`,"createViewBox")},44287:function(e,t,a){function populateCommonDb(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}a.d(t,{A:function(){return populateCommonDb}}),(0,a(70388).eW)(populateCommonDb,"populateCommonDb")},64397:function(e,t,a){a.d(t,{diagram:function(){return S}});var l=a(10643),r=a(87793),s=a(13979),i=a(44287),n=a(96484),o=a(72709),c=a(70388),d=a(4346),p=a(26540),h=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=o.GN,this.getAccTitle=o.eu,this.setDiagramTitle=o.g2,this.getDiagramTitle=o.Kr,this.getAccDescription=o.Mx,this.setAccDescription=o.U$}static{(0,c.eW)(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){let e=o.vZ,t=(0,o.iE)();return(0,n.Rb)({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),0===t&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:"",children:this.outerNodes}}addClass(e,t){let a=this.classes.get(e)??{id:e,styles:[],textStyles:[]},l=t.replace(/\\,/g,"\xa7\xa7\xa7").replace(/,/g,";").replace(/§§§/g,",").split(";");l&&l.forEach(e=>{(0,s.Fh)(e)&&(a?.textStyles?a.textStyles.push(e):a.textStyles=[e]),a?.styles?a.styles.push(e):a.styles=[e]}),this.classes.set(e,a)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){(0,o.ZH)(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function buildHierarchy(e){if(!e.length)return[];let t=[],a=[];return e.forEach(e=>{let l={name:e.name,children:"Leaf"===e.type?void 0:[]};for(l.classSelector=e?.classSelector,e?.cssCompiledStyles&&(l.cssCompiledStyles=e.cssCompiledStyles),"Leaf"===e.type&&void 0!==e.value&&(l.value=e.value);a.length>0&&a[a.length-1].level>=e.level;)a.pop();if(0===a.length)t.push(l);else{let e=a[a.length-1].node;e.children?e.children.push(l):e.children=[l]}"Leaf"!==e.type&&a.push({node:l,level:e.level})}),t}(0,c.eW)(buildHierarchy,"buildHierarchy");var m=(0,c.eW)((e,t)=>{(0,i.A)(e,t);let a=[];for(let a of e.TreemapRows??[])"ClassDefStatement"===a.$type&&t.addClass(a.className??"",a.styleText??"");for(let l of e.TreemapRows??[]){let e=l.item;if(!e)continue;let r=l.indent?parseInt(l.indent):0,s=u(e),i=e.classSelector?t.getStylesForClass(e.classSelector):[],n=i.length>0?i:void 0,o={level:r,name:s,type:e.$type,value:e.value,classSelector:e.classSelector,cssCompiledStyles:n};a.push(o)}let l=buildHierarchy(a),r=(0,c.eW)((e,a)=>{for(let l of e)t.addNode(l,a),l.children&&l.children.length>0&&r(l.children,a+1)},"addNodesRecursively");r(l,0)},"populate"),u=(0,c.eW)(e=>e.name?String(e.name):"","getItemName"),y={parser:{yy:void 0},parse:(0,c.eW)(async e=>{try{let t=d.Qc,a=await t("treemap",e);c.cM.debug("Treemap AST:",a);let l=y.parser?.yy;if(!(l instanceof h))throw Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");m(a,l)}catch(e){throw c.cM.error("Error parsing treemap:",e),e}},"parse")},f=(0,c.eW)((e,t,a,i)=>{let n;let d=i.db,h=d.getConfig(),m=h.padding??10,u=d.getDiagramTitle(),y=d.getRoot(),{themeVariables:f}=(0,o.iE)();if(!y)return;let g=u?30:0,x=(0,l.P)(t),S=h.nodeWidth?10*h.nodeWidth:960,b=h.nodeHeight?10*h.nodeHeight:500,C=b+g;x.attr("viewBox",`0 0 ${S} ${C}`),(0,o.v2)(x,C,S,h.useMaxWidth);try{let e=h.valueFormat||",";if("$0,0"===e)n=(0,c.eW)(e=>"$"+(0,p.WUZ)(",")(e),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){let t=/\.\d+/.exec(e),a=t?t[0]:"";n=(0,c.eW)(e=>"$"+(0,p.WUZ)(","+a)(e),"valueFormat")}else if(e.startsWith("$")){let t=e.substring(1);n=(0,c.eW)(e=>"$"+(0,p.WUZ)(t||"")(e),"valueFormat")}else n=(0,p.WUZ)(e)}catch(e){c.cM.error("Error creating format function:",e),n=(0,p.WUZ)(",")}let $=(0,p.PKp)().range(["transparent",f.cScale0,f.cScale1,f.cScale2,f.cScale3,f.cScale4,f.cScale5,f.cScale6,f.cScale7,f.cScale8,f.cScale9,f.cScale10,f.cScale11]),v=(0,p.PKp)().range(["transparent",f.cScalePeer0,f.cScalePeer1,f.cScalePeer2,f.cScalePeer3,f.cScalePeer4,f.cScalePeer5,f.cScalePeer6,f.cScalePeer7,f.cScalePeer8,f.cScalePeer9,f.cScalePeer10,f.cScalePeer11]),w=(0,p.PKp)().range([f.cScaleLabel0,f.cScaleLabel1,f.cScaleLabel2,f.cScaleLabel3,f.cScaleLabel4,f.cScaleLabel5,f.cScaleLabel6,f.cScaleLabel7,f.cScaleLabel8,f.cScaleLabel9,f.cScaleLabel10,f.cScaleLabel11]);u&&x.append("text").attr("x",S/2).attr("y",g/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(u);let W=x.append("g").attr("transform",`translate(0, ${g})`).attr("class","treemapContainer"),L=(0,p.bT9)(y).sum(e=>e.value??0).sort((e,t)=>
1(t.value??0)-(e.value??0)),T=(0,p.pNI)().size([S,b]).paddingTop(e=>e.children&&e.children.length>0?35:0).paddingInner(m).paddingLeft(e=>e.children&&e.children.length>0?10:0).paddingRight(e=>e.children&&e.children.length>0?10:0).paddingBottom(e=>e.children&&e.children.length>0?10:0).round(!0),k=T(L),M=k.descendants().filter(e=>e.children&&e.children.length>0),P=W.selectAll(".treemapSection").data(M).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);P.append("rect").attr("width",e=>e.x1-e.x0).attr("height",25).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>0===e.depth?"display: none;":""),P.append("clipPath").attr("id",(e,a)=>`clip-section-${t}-${a}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",25),P.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>$(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>v(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(0===e.depth)return"display: none;";let t=(0,s.UG)({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),P.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",12.5).attr("dominant-baseline","middle").text(e=>0===e.depth?"":e.data.name).attr("font-weight","bold").attr("style",e=>{if(0===e.depth)return"display: none;";let t="dominant-baseline: middle; font-size: 12px; fill:"+w(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",a=(0,s.UG)({cssCompiledStyles:e.data.cssCompiledStyles});return t+a.labelStyles.replace("color:","fill:")}).each(function(e){let t;if(0===e.depth)return;let a=(0,p.Ys)(this),l=e.data.name;a.text(l);let r=e.x1-e.x0;t=!1!==h.showValues&&e.value?r-10-30-10-6:r-6-6;let s=Math.max(15,t),i=a.node(),n=i.getComputedTextLength();if(n>s){let e=l;for(;e.length>0;){if(0===(e=l.substring(0,e.length-1)).length){a.text("..."),i.getComputedTextLength()>s&&a.text("");break}if(a.text(e+"..."),i.getComputedTextLength()<=s)break}}}),!1!==h.showValues&&P.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",12.5).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?n(e.value):"").attr("font-style","italic").attr("style",e=>{if(0===e.depth)return"display: none;";let t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+w(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",a=(0,s.UG)({cssCompiledStyles:e.data.cssCompiledStyles});return t+a.labelStyles.replace("color:","fill:")});let z=k.leaves(),F=W.selectAll(".treemapLeafGroup").data(z).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);F.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?$(e.parent.data.name):$(e.data.name)).attr("style",e=>{let t=(0,s.UG)({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles}).attr("fill-opacity",.3).attr("stroke",e=>e.parent?$(e.parent.data.name):$(e.data.name)).attr("stroke-width",3),F.append("clipPath").attr("id",(e,a)=>`clip-${t}-${a}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4));let N=F.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{let t="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+w(e.data.name)+";",a=(0,s.UG)({cssCompiledStyles:e.data.cssCompiledStyles});return t+a.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,a)=>`url(#clip-${t}-${a})`).text(e=>e.data.name);if(N.each(function(e){let t=(0,p.Ys)(this),a=e.x1-e.x0,l=e.y1-e.y0,r=t.node(),s=a-8,i=l-8;if(s<10||i<10){t.style("display","none");return}let n=parseInt(t.style("font-size"),10);for(;r.getComputedTextLength()>s&&n>8;)n--,t.style("font-size",`${n}px`);let o=Math.max(6,Math.min(28,Math.round(.6*n))),c=n+2+o;for(;c>i&&n>8&&(!((o=Math.max(6,Math.min(28,Math.round(.6*--n))))<6)||8!==n);)t.style("font-size",`${n}px`),c=n+2+o;t.style("font-size",`${n}px`),(r.getComputedTextLength()>s||n<8||i<n)&&t.style("display","none")}),!1!==h.showValues){let e=F.append("text").attr("class","treemapValue").attr("x",e=>(e.x1-e.x0)/2).attr("y",function(e){return(e.y1-e.y0)/2}).attr("style",e=>{let t="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+w(e.data.name)+";",a=(0,s.UG)({cssCompiledStyles:e.data.cssCompiledStyles});return t+a.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,a)=>`url(#clip-${t}-${a})`).text(e=>e.value?n(e.value):"");e.each(function(e){let t=(0,p.Ys)(this),a=this.parentNode;if(!a){t.style("display","none");return}let l=(0,p.Ys)(a).select(".treemapLabel");if(l.empty()||"none"===l.style("display")){t.style("display","none");return}let r=parseFloat(l.style("font-size")),s=Math.max(6,Math.min(28,Math.round(.6*r)));t.style("font-size",`${s}px`);let i=(e.y1-e.y0)/2,n=i+r/2+2;t.attr("y",n);let o=e.x1-e.x0,c=e.y1-e.y0;t.node().getComputedTextLength()>o-8||n+s>c-4||s<6?t.style("display","none"):t.style("display",null)})}let D=h.diagramPadding??8;(0,r.j)(x,D,"flowchart",h?.useMaxWidth||!1)},"draw"),g=(0,c.eW)(function(e,t){return t.db.getClasses()},"getClasses"),x={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},S={parser:y,get db(){return new h},renderer:{draw:f,getClasses:g},styles:(0,c.eW)(({treemap:e}={})=>{let t=(0,o.xN)(),a=(0,o.iE)(),l=(0,n.Rb)(t,a.themeVariables),r=(0,n.Rb)(x,e),s=r.titleColor??l.titleColor,i=r.labelColor??l.textColor,c=r.valueColor??l.textColor;return` 2 .treemapNode.section { 3 stroke: ${r.sectionStrokeColor}; 4 stroke-width: ${r.sectionStrokeWidth}; 5 fill: ${r.sectionFillColor}; 6 } 7 .treemapNode.leaf { 8 stroke: ${r.leafStrokeColor}; 9 stroke-width: ${r.leafStrokeWidth}; 10 fill: ${r.leafFillColor}; 11 } 12 .treemapLabel { 13 fill: ${i}; 14 font-size: ${r.labelFontSize}; 15 } 16 .treemapValue { 17 fill: ${c}; 18 font-size: ${r.valueFontSize}; 19 } 20 .treemapTitle { 21 fill: ${s}; 22 font-size: ${r.titleFontSize}; 23 } 24 `},"getStyles")}}}]);
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.