PageSourceSearch

https://www.gemeinwohlatlas.de/_next/static/chunks/685.47361097af537cf6.js

js gemeinwohlatlas.de collected 2026-10-02 08:04:37 UTC 31,085 bytes, 2 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ecab5e5a-df3f-4989-8f99-6e3241091499",e._sentryDebugIdIdentifier="sentry-dbid-ecab5e5a-df3f-4989-8f99-6e3241091499")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[685],{471:(e,t,i)=>{function n(e,t){return e===t}i.d(t,{Bj:()=>r,GZ:()=>l,bl:()=>a});let s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;function a(){return!function(e,t,i){if(null===t||null===i||t.length!==i.length)return!1;let n=t.length;for(let s=0;s<n;s++)if(!e(t[s],i[s]))return!1;return!0}(t,i,arguments)&&(i=arguments,r=e.apply(null,arguments)),r}return a.isMemoizedFunction=!0,a.clone=()=>s(e,t,i,r),a},r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return s(e,t,null,null)},a=(e,t)=>{let{value:i}=Object.getOwnPropertyDescriptor(e,t);return"function"==typeof i&&i.isMemoizedFunction},l=e=>e.clone()},963:(e,t,i)=>{i.d(t,{A:()=>z});var n=i(384),s=i(6530),r=i(9340),a=i(1616),l=i(1001),o=i(1322),h=i(3054),c=i(471);let d=()=>{let e,t=[],i=()=>{e=void 0,t.forEach(e=>{e()}),t=[]},n=n=>(t.push(n),void 0===e&&(e=window.requestAnimationFrame(i)),e);return n.cancel=e=>{t=t.filter(t=>t!==e)},n},u=d();var p=i(8031),m=i(2199),g=i(3990),_=i(5097);let f=(e,t)=>{let i=e,n=t.split(".");for(let e=0,t=n.length;e<t&&null!=(i=i[n[e]]);e++);return i},v=(e,t,i)=>{for(let n=0,s=i.length;n<s;n++){let s=i[n];if(f(e,s)!==f(t,s))return!0}return!1};var y=i(7599),x=i(8821);let w=d(),j=s.scale.linear().domain([-5,5]).rangeRound([40,-40]).clamp(!0);function k(e){let t=(0,g.s9)(),{rank:i,datum:s,maxTitleLength:r,showLink:a}=e,{name:l,legal_name:h}=s,c="violin__caption-text",d=o.ml((null!=i?i+". ":"")+l,r);return a?(0,n.jsx)("a",{className:c+" link link--arrow",href:(0,_.Zt)(t.locale,s),title:h,children:d}):(0,n.jsx)("span",{className:c,children:d})}let b=s.format("+.1f");function D(e){let t,{deployment:i,datum:s,rank:r,dimKey:a,maxTitleLength:l,showRating:o,showDelta:h,showLinkToDetailPage:c}=e,d=(0,g.s9)(),u=p.A.titleMoreLinks(i)[s.id],m=s.delta[a]?b(s.delta[a].value)+"%":void 0;return(0,n.jsxs)("div",{className:"violin__caption key--"+s.id+(o?" is-rating-shown":""),children:[(0,n.jsx)("i",{className:"violin__caption-icon"}),(0,n.jsx)(k,{rank:r,datum:s,maxTitleLength:l,showLink:c}),u&&(0,n.jsx)("a",{className:"violin__caption-more link link--arrow",href:u.href,children:d.t("frontend.violin.more-links.repeated-evaluation")}),o&&(0,n.jsx)("div",{className:"violin__rating",children:(0,n.jsx)(y.G,{dimKey:a,rating:s.rating})}),h&&s.delta[a]&&(0,n.jsx)("span",{className:"violin__caption-delta-icon trend-icon",style:{WebkitTransform:t="rotate("+j(s.delta[a].value)+"deg)",MozTransform:t,msTransform:t,OTransform:t,transform:t}}),h&&s.delta[a]&&(0,n.jsx)("span",{className:"violin__caption-delta",children:"public_value"===a?d.t("frontend.violin.delta",{percent:m,year:s.delta[a].reference}):m})]})}let A={top:0,right:0,bottom:0,left:0};function R(e){let t=(0,g.s9)();return(0,n.jsx)(M,{I18n:t,...e})}class M extends r.Component{state={isHighlighted:!1,tooltip:null};chart=(()=>{let e=0,t=0,i={top:0,right:0,bottom:0,left:0},n={min:"",max:""},r=!1,a=null,l=null,d=null,p=s.format(".2f"),m=!1,g=!1,_=!1,f=!1,v=!1,y=null,x="monotone",w=null,j=s.dispatch("hover"),k=e=>e.each(b),b=function(k){let b=t-i.left-i.right,D=e-i.top-i.bottom,A=s.select(this),R=A.select("defs");R.empty()&&(R=A.append("defs")).append("filter").attr("class","multiply-filter").attr("id",o.$E()).append("feBlend").attr("mode","multiply");let M=A.select(".violin__chart");if(M.empty()){(M=A.append("g").attr("class","violin__chart")).append("line").attr("class","violin__axis-line"),M.append("g").attr("class","violin__paths"),M.append("g").attr("class","violin__avgs");let e=M.append("g").attr("class","violin__axis");M.append("rect").attr("class","violin__foreground").attr("fill-opacity",0),e.append("text").attr("class","violin__axis-label is-min").attr("text-anchor","end"),e.append("text").attr("class","violin__axis-label is-max").attr("text-anchor","start")}let O=(0,h.I6)(k,e=>e.key===a)||(0,h.$1)(k);if(!O)return void console.error("ViolinChart: mainDim");M.select(".violin__axis").attr("class","violin__axis dim--"+O.key).attr("transform","translate(0,"+D/2+")"),M.select(".violin__axis-line").attr("x1",0).attr("x2",b).attr("y1",D/2).attr("y2",D/2),M.select(".violin__axis-label.is-min").attr("x",-7).attr("y",D/2+4).text(n.min),M.select(".violin__axis-label.is-max").attr("x",b+7).attr("y",D/2+4).text(n.max);let B=M.select(".violin__foreground").attr("width",b).attr("height",D);M.attr("transform","translate("+i.left+","+i.top+")");let[S,T]=null!=l?l:[0,s.max(k,e=>s.max(e.values))+1],z=s.scale.linear().domain([S,T]).range([0,b]),[L,P]=null!=d?d:[0,s.max(k,e=>s.max(e.kdeData.map(e=>e[1])))],q=s.scale.linear().range([D/2,0]).domain([L,P]),E=M.select(".violin__axis");_?E.call(s.svg.axis().orient("bottom").scale(z).tickValues([1,2,3,4,5,6]).tickSize(5)):E.selectAll(".tick").remove();let F=s.svg.line().x(e=>z(e[0])).y(e=>q(e[1])).interpolate(x),N=M.select(".violin__paths").selectAll(".violin__path").data(k,e=>e.key);
1N.exit().classed("is-added",!1),N.enter().append("path").attr("class",e=>"violin__path dim--"+e.key).classed("is-outline-dim",r).attr("filter",e=>e.key!==O.key?"url(#"+R.select(".multiply-filter").attr("id")+")":""),null!=w&&M.selectAll(".violin__path").sort((e,t)=>s.ascending(w[e.key],w[t.key])),N.attr("d",e=>{let t=e.kdeData.map(e=>[e[0],-e[1]]).reverse();return F(e.kdeData.concat(t))}),u(()=>{N.classed("is-added",!0)});let $=M.select(".violin__avgs").selectAll(".violin__avg").data(k,e=>e.key);$.exit().classed("is-removed",!0);let C=$.enter().append("g");if($.attr("class",e=>"violin__avg dim--"+e.key).classed("is-avg-dim",e=>e.key===O.key).attr("transform",e=>"translate("+z(e.avg)+", "+q(0)+")"),C.append("circle").attr("class","violin__avg-dot").attr("r",4),g){let e=$.select(".violin__avg-value");e.empty()&&(e=$.append("text").attr("class","violin__avg-value").attr("y",-10)),e.text(e=>p(e.avg))}else $.select(".violin__avg-value").text("");let I=e=>{let t,i=O.kdeData,n=Infinity;for(let s=0,r=i.length;s<r;++s){let r=Math.abs(i[s][0]-e);r<n&&(n=r,t=i[s])}return void 0===t?[0,0]:t},V=(0,c.Bj)(()=>(0,h.Tr)(O.values,e=>I(e)[0]));if(B.on("mousemove",function(){let e=s.mouse(this),[t,i]=I(z.invert(e[0])),n=V()[t];j.hover({position:[z(t),q(i)],x:t,value:null!=n?n:0,dimKey:O.key})}).on("mouseout",()=>{j.hover(null)}),m){let e="function"==typeof y?y(O):void 0,t=s.layout.histogram().frequency(!1).bins(e)(O.values),i=t[0].dx;t.forEach(e=>{e.probability=e.y,e.density=e.y/i,e.frequency=Math.round(e.y*O.values.length),e.valueToRepresent=e.probability,e.valueToShowInLabel=e.frequency});let n=z(i)-1,r=M.select(".violin__histogram");r.empty()&&(r=M.insert("g",".violin__foreground").attr("class","violin__histogram dim--"+O.key));let a=r.selectAll(".violin__histogram--bar").data(t),l=a.enter().append("g").attr("class","violin__histogram--bar");a.attr("transform",e=>"translate("+z(e.x)+", "+q(e.valueToRepresent)+")"),a.exit().remove(),l.append("rect").attr("class","violin__histogram--bar-rect"),l.append("text").attr("class","violin__histogram--bar-text").attr("dy","-0.5em").attr("text-anchor","middle"),a.select(".violin__histogram--bar-rect").attr("x",0).attr("width",n).attr("height",e=>D/2-q(e.valueToRepresent)),a.select(".violin__histogram--bar-text").attr("x",n/2).text(e=>{let t=e.valueToShowInLabel;return 0!==t?t:""})}else M.select(".violin__histogram").remove();if(f){let e=M.select(".violin__kde-points");e.empty()&&(e=M.append("g").attr("class","violin__kde-points"));let t=e.selectAll(".violin__kde-point").data(()=>O.kdeData);t.exit().remove();let i=t.enter().append("g").attr("class","violin__kde-point");i.append("text").attr("class","violin__kde-point--text").attr("text-anchor","middle").attr("y","-0.5em"),i.append("circle").attr("r",2),t.attr("transform",e=>"translate("+z(e[0])+", "+q(e[1])+")"),t.select(".violin__kde-point--text"),v&&t.selectAll(".violin__kde-point--text").text(e=>e[1].toFixed(2))}else M.select(".violin__kde-points").remove()};return k.width=function(e){return arguments.length?(t=e,k):t},k.height=function(t){return arguments.length?(e=t,k):e},k.margin=function(e){return arguments.length?(i=e,k):i},k.selectedDim=function(e){return arguments.length?(a=e,k):a},k.useOutline=function(e){return arguments.length?(r=s.functor(e),k):r},k.xdomain=function(e){return arguments.length?(l=e,k):l},k.ydomain=function(e){return arguments.length?(d=e,k):d},k.valueFormat=function(e){return arguments.length?(p=e,k):p},k.axisLabels=function(e){return arguments.length?(n=e,k):n},k.showHistogram=function(e){return arguments.length?(m=e,k):m},k.showAxisTicks=function(e){return arguments.length?(_=e,k):_},k.showKdePoints=function(e){return arguments.length?(f=e,k):f},k.showKdePointLabels=function(e){return arguments.length?(v=e,k):v},k.showAvgValueText=function(e){return arguments.length?(g=e,k):g},k.histogramBins=function(e){return arguments.length?(y=s.functor(e),k):y},k.kdeLineInterpolation=function(e){return arguments.length?(x=e,k):x},k.dimensionsOrdering=function(e){return arguments.length?(w=e.reduce((e,t,i)=>(e[t]=i,e),{}),k):w},s.rebind(k,j,"on"),k})().xdomain([0,7]).histogramBins(s.range(.5,8,1)).kdeLineInterpolation("monotone").ydomain([0,.7]).showKdePoints(!1).showHistogram(!1).dimensionsOrdering(["public_value","ethics","benefit","social_cohesion","quality_of_life"]).axisLabels({min:"",max:""});nodeSelection=null;rootRef=e=>{this.nodeSelection=e?s.select(e):null};onMouseEnter=()=>{let{organizationDatum:e,onMouseEnter:t}=this.props;this.setState({isHighlighted:!0}),t&&t(e)};onMouseLeave=()=>{let{organizationDatum:e,onMouseLeave:t}=this.props;this.setState({isHighlighted:!1}),t&&t(e)};adjustDimensionsOpacityRAF=void 0;adjustDimensionsOpacity=()=>{this.adjustDimensionsOpacityRAF=void 0;let{dims:e}=this.props,t=this.getSelectedDim(),i=s.max(s.values(m.eB(e).weights));this.nodeSelection&&this.nodeSelection.selectAll(".violin__path").each(function(n){let r=n.key,a=null!=t?+(r===t):m.VA(e,r)/i;s.select(this).style("fill-opacity",a)})};shouldComponentUpdate(e,t){return v(e,this.props,["selected","position.top","position.left","width","height","margin","rank","showAvgValueText","organizationDatum","rating","year"])||v(t,this.state,["tooltip","isHighlighted"])||m.tD(e.dims,this.props.dims,{ignoreLocks:!0})}showTooltip(e){this.setState({tooltip:e})}getSelectedDim(){let{dims:e}=this.props;return m.mr(e)||m.wH(e)}getDimensionValues(){let{organizationDatum:e}=this.props,t=this.getSelectedDim();return null!=t?e.dimensions.filter(e=>e.key===t):e.dimensions}updateChart(){let{I18n:e,width:t,height:i,margin:n=A,showSummaryDimAsOutline:s,enableTooltip:r,showAvgValueText:a,showAxisTicks:l,valueFormat:o}=this.props,{isHighlighted:h}=this.state,c=this.getDimensionValues(),d=this.getSelectedDim();this.chart=this.chart.width(t).height(i).margin({top:n.top||0,right:n.right||0,bottom:n.bottom||0,left:n.left||0}).selectedDim(d).useOutline(s?e=>e.key===m.gC:void 0).showAvgValueText(h||a).showAxisTicks(h||l).valueFormat(p.A.valueFormat||o),r&&this.chart.on("hover",t=>{if(null!=t){let{value:i,position:n,dimKey:s,x:r}=t;r>0&&r<7&&this.showTooltip({position:n,value:""+i,classModifier:"dim--"+s,text:e.t("frontend.violin.rating",{count:i})})}else this.showTooltip(null)}),this.nodeSelection&&(this.nodeSelection.select(".violin__svg").datum(c).call(this.chart),this.nodeSelection.transition().duration(1e3).style("opacity",1).style("top",this.props.position.top+"px").style("left",this.props.position.left+"px")),void 0===this.adjustDimensionsOpacityRAF&&(this.adjustDimensionsOpacityRAF=w(this.adjustDimensionsOpacity))}componentDidMount(){this.updateChart(),this.componentWillEnter(()=>{})}componentDidUpdate(){this.updateChart()}componentWillEnter(e){if(this.nodeSelection){let{suppressTransitions:e,position:t}=this.props;e?this.nodeSelection.style("top",t.top+"px").style("left",t.left+"px").transition():this.nodeSelection.style("opacity",0).style("top",t.top+"px").style("left",t.left+"px").transition().duration(1e3).style("opacity",1)}setTimeout(e,1e3)}componentWillLeave(e){if(this.nodeSelection){let{suppressTransitions:e}=this.props;e||this.nodeSelection.transition().duration(1e3).style("opacity",0)}setTimeout(e,1e3)}componentWillUnmount(){this.adjustDimensionsOpacityRAF&&w.cancel(this.adjustDimensionsOpacity)}onSelectNode(e){this.props.onClick(e)}render(){let{deployment:e,className:t,selected:i,dims:s,showLinkToDetailPage:r,showRating:a,showDelta:l,maxTitleLength:o,rank:h,height:c,width:d}=this.props,{tooltip:u}
1=this.state,p=this.props.organizationDatum,g="violin key--"+p.id+(i?" is--selected":"")+(t?" "+t:"");return(0,n.jsxs)("div",{ref:this.rootRef,className:g,"data-key":p.id,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,children:[(0,n.jsx)(D,{deployment:e,datum:p,dimKey:m.wH(s)||m.gC,showLinkToDetailPage:r||!1,showRating:a||!1,showDelta:l||!1,maxTitleLength:o,rank:h}),(0,n.jsx)("svg",{height:c,width:d,className:"violin__svg"}),u&&(0,n.jsx)(x.A,{...u})]})}}let O={transition:"opacity 500ms ease-in-out",opacity:0},B={entering:{opacity:1,transitionDuration:"500ms",transitionDelay:"300ms"},entered:{opacity:1,transitionDuration:"500ms",transitionDelay:"300ms"},exiting:{opacity:0,transitionDuration:"300ms",transitionDelay:"0ms"},exited:{opacity:0,transitionDuration:"300ms",transitionDelay:"0ms"},unmounted:{opacity:0,transitionDuration:"300ms",transitionDelay:"0ms"}},S=e=>{let{in:t,children:i}=e,s=(0,r.useRef)(null);return(0,n.jsx)(a.Ay,{nodeRef:s,in:t,timeout:500,appear:!0,unmountOnExit:!0,children:e=>(0,n.jsx)("div",{ref:s,style:{...O,...B[e]||{}},children:i})})};class T extends r.PureComponent{ref=null;refFn=e=>{this.ref=e};violinPosition(e){let{mode:t,organizationsData:i,violinHeight:n,violinWidth:s,offsetY:r=0,selectedViolinId:a}=this.props;switch(t){case"list":return{left:0,top:Math.round(e*n+r)};case"away":{let t=o.SL(i,e=>e.id===a);null==t&&(t=i.length/2);let s=n*(e/2+1);return{left:0,top:e<t?-s:+s+(this.ref?this.ref.clientHeight:0)}}case"overlay":return{left:0,top:Math.round(r)};case"grid":return{left:Math.round(1.2*s*(e%3)),top:Math.round(n*Math.floor(e/3)+r)}}}height(){let{mode:e,organizationsData:t,violinHeight:i}=this.props,n=t.length;switch(e){case"list":return n*i;case"overlay":return i;case"grid":return i*Math.ceil(n/3);case"away":return 0}}render(){let{deployment:e,violinHeight:t,violinWidth:i,violinMargin:r,className:a="violin__grid",violinClassName:o,selectedViolinId:h,valueFormat:c,showRanks:d,showSummaryDimAsOutline:u,showLinksToDetailPage:p,showRatings:m,showDelta:g,enableTooltip:_,mode:f,suppressTransitions:v,organizationsData:y,onMouseEnter:x,onMouseLeave:w}=this.props;if(0===t)return(0,n.jsx)("div",{});let j=s.functor(this.props.dims),k=s.functor(this.props.showAvgValueText),b=s.functor(this.props.showAxisTicks),D="grid"===f?25:35,A=y.map((s,a)=>(0,n.jsx)(S,{children:(0,n.jsx)(R,{deployment:e,organizationDatum:s,position:this.violinPosition(a),width:i,height:t,margin:r,valueFormat:c,className:o?o(s,a):void 0,selected:s.id===h,rank:d?a+1:void 0,dims:j(s),showSummaryDimAsOutline:u,showLinkToDetailPage:p,showAvgValueText:k(s),showRating:m,showDelta:g,showAxisTicks:b(s),enableTooltip:_,maxTitleLength:D,suppressTransitions:v,onMouseEnter:x,onMouseLeave:w})},s.id));return(0,n.jsx)("div",{ref:this.refFn,children:(0,n.jsx)(l.A,{className:`violins ${a}`,style:{height:this.height()},children:A})})}}let z=T},1322:(e,t,i)=>{i.d(t,{$:()=>h,$E:()=>s,SL:()=>o,cP:()=>a,ml:()=>l});var n=i(6530);let s=e=>(null==e&&(e=5),Math.random().toString(36).substr(2,e)),r=e=>{let t,i=e.getBoundingClientRect(),n=(t=document.documentElement,{left:(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0),top:(window.pageYOffset||t.scrollTop)-(t.clientTop||0)});return{left:i.left+n.left,top:i.top+n.top,width:i.width,height:i.height}},a=(e,t)=>{let i=r(e),n=r(t);return{left:i.left-n.left,top:i.top-n.top,width:i.width,height:i.height}},l=(e,t)=>e.length>t?e.substr(0,t)+"…":e,o=(e,t)=>{let i,n,s;for(i=n=0,s=e.length;n<s;i=++n)if(t(e[i]))return i},h=(e,t,i,s)=>{let r="0px",a="0px",l=n.select(e);switch(i){case"north":r=c(t[0]-e.clientWidth/2),a=c(t[1]-e.clientHeight-(s&&s.ygap||0));break;case"south":r=c(t[0]-e.clientWidth/2),a=c(t[1]+(s&&s.ygap||0))}l.style("left",r),l.style("top",a)},c=e=>Math.round(e)+"px"},1554:(e,t,i)=>{i.d(t,{o:()=>s});var n=i(471);let s=(e,t)=>{let i={};return Object.getOwnPropertyNames(e).forEach(t=>{(0,n.bl)(e,t)?Object.defineProperty(i,t,{value:(0,n.GZ)(e[t])}):Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(e,t))}),Object.assign(i,t),i}},2199:(e,t,i)=>{let n,s;i.d(t,{Wt:()=>C,eB:()=>I,tD:()=>$,hx:()=>R,r2:()=>j,KQ:()=>k,Oe:()=>N,O5:()=>V,mr:()=>B,Vh:()=>D,y0:()=>F,YR:()=>p,xt:()=>q,oC:()=>g,fF:()=>m,wH:()=>A,gC:()=>b,A6:()=>E,o9:()=>M,VA:()=>P,h3:()=>L,W3:()=>z,c_:()=>T,S6:()=>O});var r=i(7113),a=i(3054);let l=i(6530).range(0,8,1),o=(n=e=>1>=Math.abs(e)?.75*(1-e*e):0,s=e=>n(e/1)/1,e=>l.map(t=>[t,((e,t)=>
1{if(0!==e.length){let i=0;for(let n=0,s=e.length;n<s;n++)i+=t(e[n]);return i/e.length}})(e,e=>s(t-e))]));var h=i(471);let c=e=>(0,a.Et)(e)&&!(0,a.yr)(e),d=e=>c(e)?e:(0,a.Kg)(e)&&e.trim().length>0?Number(e):0/0,u=(e,t)=>Math.round(e*Math.pow(10,t))/Math.pow(10,t);function p(e){return t=>({...t,name:e.t(`frontend.dimensions.${t.key}`)})}let m=(e,t,i,n)=>({key:e,get values(){return this._values()},_values:(0,h.Bj)(t),get avg(){return this._avg()},_avg:(0,h.Bj)(i),get ci(){return this._ci()},_ci:(0,h.Bj)(n),get kdeData(){return this._kdeData(this.values)},_kdeData:(0,h.Bj)(o)}),g=e=>{let t=e.slice(0);return t.dimValues=t=>e.find(e=>e.key===t),t},_=r.js_to_clj({key:"public_value",summary:!0}),f=r.js_to_clj([{key:"benefit"},{key:"social_cohesion"},{key:"quality_of_life"},{key:"ethics"}]),v=r.concat(r.vector(_),f),y=r.set(r.map(e=>r.get(e,"key"),v)),x=r.set(r.map(e=>r.get(e,"key"),f)),w=e=>t=>(null!=t?t.js:void 0)?r.clj_to_js(e):e,j=a.Bj(w(f)),k=a.Bj(w(v)),b="public_value",D=()=>r.hash_map("weights",G(x),"locks",r.set(),"selected",null,"highlighted",null),A=e=>r.get(e,"selected"),R=e=>S(r.assoc(e,"selected",null)),M=(e,t)=>A(e)===t?R(e):O(e,t),O=(e,t)=>(U(t,{allowSummary:!0}),S(r.assoc(D(),"selected",t))),B=e=>r.get(e,"highlighted"),S=e=>r.assoc(e,"highlighted",null),T=(e,t)=>(null==t&&(t=null),null!=t&&U(t,{allowSummary:!0}),r.assoc(e,"highlighted",t)),z=e=>r.get(e,"weights"),L=(e,t)=>r.get(e,t),P=(e,t)=>r.get_in(e,["weights",t]),q=(e,t)=>r.has_key(r.get(e,"locks"),t),E=(e,t)=>{U(t);let i=r.get(e,"locks"),n=r.get(i,t)?r.disj(i,t):r.conj(null!=i?i:r.set(),t);return r.assoc(e,"locks",n)},F=e=>{let t=N(e=r.assoc(e,"locks",r.set()));return $(e,t)},N=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.unlockedOnly){let t=Y(e);if(!r.is_empty(t)){let i=H(e),n=G(i,W(e,i));return r.each(t,t=>{n=r.assoc(n,t,P(e,t))}),r.assoc(e,"weights",n)}}else{let t;t=e,e=r.assoc(t,"locks",r.set())}return r.assoc(e,"weights",G(x))},$=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.ignoreLocks?!r.equals(r.dissoc(e,"locks"),r.dissoc(t,"locks")):!r.equals(e,t)},C=(e,t,i)=>{if(i=d(i),U(t),q(e,t))return e;null!=A(e)&&(e=R(e));let n=i-P(e,t),s=r.get(e,"weights"),l=r.clj_to_js(s),o=r.disj(H(e),t);if(r.is_empty(o))return e;let h=W(e,Y(e));l[t]=Math.max(Math.min(i,1-h),0),o=r.clj_to_js(o);let c=n;for(;o.length>0;){let e=a.jk(o,e=>l[e]),t=Math.min(c/o.length,l[e]);l[e]-=t,c-=t,o=a.FF(o,e)}for(let e in l){let t=l[e];l[e]=u(t,7)}return K(l),r.assoc(e,"weights",r.js_to_clj(l))},I=e=>r.clj_to_js(e),V=e=>{var t,i;let n=D();if(null!=e.weights&&(t=n,K(i=e.weights),null!=A(t)&&(t=R(t)),n=r.assoc(t,"weights",r.zipmap(x,r.map(e=>u(d(i[e]),7),x)))),null!=e.selected&&""!==e.selected&&(n=M(n,e.selected)),null!=e.locks){let t=e.locks;for(let e=0,i=t.length;e<i;e++)n=E(n,t[e])}return n},W=(e,t)=>{let i=r.get(e,"weights"),n=r.map(e=>r.get(i,e),t);return r.reduce(r.sum,0,n)},Y=e=>r.set(r.filter(t=>q(e,t),x)),H=e=>r.set(r.filter(t=>!q(e,t),x)),G=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;r.is_set(e)||(e=r.set(e));let i=u(t/r.count(e),7);return r.zipmap(e,r.map(()=>i,e))},U=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.allowSummary?y:x;if(!r.has_key(i,e))throw Error(`No such dimension '${e}'`)},K=e=>{for(let t in e){let i=e[t];if(U(t),!c(d(i)))throw Error(`Invalid weight ${i} for '${t}'`)}let t=r.reduce(r.sum,r.map(t=>{let i=d(e[t]);return null!=i?i:0},x));if(Math.abs(t-1)>=.01)throw Error(`Dimension weights sum up to ${t}, should be 1.0`)}},3162:(e,t,i)=>{i.d(t,{jL:()=>r,kS:()=>s,m6:()=>a});var n=i(7429);function s(e){return t=>({key:t.region_id,name:t[`name_${e.locale}`],article:t[`article_${e.locale}`],dative:t[`dative_${e.locale}`]})}function r(e,t,i){return(0,n.Q2)(e,{ch:()=>[],de:()=>{let e=t.find(e=>e.region_id===i)||t[0];return e?[e.region_id]:[]}})}function a(e,t){return r(e,t,t[0].region_id)}},5097:(e,t,i)=>{i.d(t,{Fe:()=>M,JW:()=>d,P2:()=>u,Zt:()=>A,oR:()=>R,qz:()=>D,yJ:()=>k,z_:()=>b});var n=i(6530),s=i(3054),r=i(8031),a=i(4969),l=i(1554),o=i(8699),h=i(471),c=i(2199);let d=(e,t)=>{let i=e.dimensions.dimValues(t);return i?i.avg:void 0},u=(e,t)=>
1{let i=(0,a.Aw)(e.availableYears.map(i=>{let n=d((0,l.o)(e,{year:i}),t);return void 0!==n?{year:i,value:n}:void 0}));return s.Ul(i,e=>+e.year)},p=(e,t,i)=>e.filter(e=>e.year===t&&(0===i.length||-1!==i.indexOf(e.region_id))),m=(e,t,i)=>{let[n,a]=t,l=e.dimValues(i);if(!l)return 1;let[o,h]=l.ci,c=o>a?"top":h>=n?"middle":"low",d=s.I6(r.A.ratingGroups,e=>e.name===c);return d?d.rating:1},g=(e,t)=>(0,c.oC)([e].concat(t)),_=e=>c.r2({js:!0}).map(t=>{let i=t.key,s=e.map(e=>+e[i]),a=n.mean(s);return(0,c.fF)(i,()=>s,()=>r.A.averageMeasure(s),()=>(0,o.o)(s,a))}),f=(e,t)=>{let i=e.map(e=>c.h3(t,e.key)),s=e[0].values.map((t,n)=>e.reduce((e,t,s)=>e+t.values[n]*i[s],0)),a=r.A.averageMeasure(s),l=r.A.averageMeasure===n.mean?a:n.mean(s);return(0,c.fF)(c.gC,()=>s,()=>a,()=>(0,o.o)(s,l))},v=e=>{let t=new Set;return e.forEach(e=>t.add(e.year)),Array.from(t.values()).sort((e,t)=>e-t)},y=(e,t)=>{let i=e.indexOf(t);if(0!==i)return e[i-1]},x=(e,t,i)=>void 0===t?[]:e.filter(e=>e.year===t&&(0===i.length||-1!==i.indexOf(e.region_id))),w=(e,t)=>{if(0===e.length)return(0,c.oC)([]);let i=_(e);return(0,c.oC)([f(i,t)].concat(i))},j=(e,t,i)=>{let n={};return t&&e.forEach(e=>{let s=i.dimValues(e.key);s&&(n[e.key]={value:100/s.avg*e.avg-100,reference:t})}),n},k=(e,t,i,n,s)=>({orgResponses:t,year:"1000",regions:[],weights:c.W3(c.Vh()),globalConfidenceInterval:()=>[0,0],selectedDimension:null,name:e.name,legal_name:e.legal_name,website:e.website,headquarters_city:e.headquarters_city,headquarters_street:e.headquarters_street,headquarter_object:i,industry_object:n,sector_object:s,get id(){return e.id},get responses(){return this._responses(this.orgResponses,this.year,this.regions)},_responses:(0,h.Bj)(p),get rating(){return this._rating(this.dimensions,this.globalConfidenceInterval(),this.selectedDimension||c.gC)},_rating:(0,h.Bj)(m),get dimensions(){return this._dimensions(this.summaryDimension,this.coreDimensions)},_dimensions:(0,h.Bj)(g),get coreDimensions(){return this._coreDimensions(this.responses)},_coreDimensions:(0,h.Bj)(_),get summaryDimension(){return this._summaryDimension(this.coreDimensions,this.weights)},_summaryDimension:(0,h.Bj)(f),get availableYears(){return this._availableYears(this.orgResponses)},_availableYears:(0,h.Bj)(v),get comparisonYear(){return this._comparisonYear(this.availableYears,this.year)},_comparisonYear:(0,h.Bj)(y),get comparisonResponses(){return this._comparisonResponses(this.orgResponses,this.comparisonYear,this.regions)},_comparisonResponses:(0,h.Bj)(x),get comparisonDimensions(){return this._comparisonDimensions(this.comparisonResponses,this.weights)},_comparisonDimensions:(0,h.Bj)(w),get delta(){return this._delta(this.dimensions,this.comparisonYear,this.comparisonDimensions)},_delta:(0,h.Bj)(j)}),b=(e,t)=>e.slice(0).sort((e,i)=>(d(i,t)||0)-(d(e,t)||0)),D=(e,t)=>n.median((0,a.Aw)(e.map(e=>d(e,t))));function A(e,t){return`/${e}/atlas/${t.id}`}function R(e,t){let i=e.findIndex(e=>t.id===e.id);return -1!=i&&i>0?e[i-1]:null}function M(e,t){let i=e.findIndex(e=>t.id===e.id);return -1!=i&&i<e.length-1?e[i+1]:null}},7300:(e,t,i)=>{i.d(t,{f9:()=>w,oA:()=>v,Si:()=>x,rw:()=>y,UV:()=>k});var n=i(6530),s=i(8031),r=i(471),a=i(3054),l=i(2199),o=i(5097),h=i(3162),c=i(1554);let d=(e,t,i,s,r)=>{let a=(0,n.nest)().key(e=>e.organization_id).map(t);return e.map(e=>(0,o.yJ)(e,a[e.id]||[],i[e.headquarters_id],s[e.industry_id],r[e.sector_id]))},u=(e,t,i)=>e.map(e=>
1(0,c.o)(e,{year:t,regions:i})),p=(e,t)=>e.map(e=>(0,c.o)(e,{weights:t})),m=e=>e.filter(e=>e.responses.length>0),g=(e,t,i)=>t(e,i),_=(e,t,i,s)=>(0,n.nest)().key(e=>e[t]).entries(e).map(e=>({...s(e.values[0]),key:e.values[0][t],name:e.values[0][i]})).sort((e,t)=>(0,n.ascending)(e.name,t.name)),f=e=>(0,n.nest)().key(e=>e.key).rollup(e=>e[0]).map(e),v=()=>({type:"REmpty"}),y=()=>({type:"RLoading"}),x=e=>({type:"RFailed",error:e}),w=e=>({type:"RDone",data:e});class j{deployment;locale;constructor(e,t){this.deployment=e,this.locale=t}get isLoading(){let e=()=>{for(let e in this.responses)if("RDone"!==this.responses[e].type)return!0;return!1};return"RDone"!==this.meta.type||e()}meta=v();fetchMeta=async()=>{try{let[e,t,i]=await Promise.all([new Promise((e,t)=>{n.json(`${s.A.apiBasePath(this.deployment)}/years.json`,(i,n)=>i?t(i):e(n))}),new Promise((e,t)=>{n.csv(`${s.A.apiBasePath(this.deployment)}/regions.csv`,(i,n)=>i?t(i):e(n))}),new Promise((e,t)=>{n.csv(`${s.A.apiBasePath(this.deployment)}/organization_data.${this.locale}.csv`,(i,n)=>i?t(i):e(n))})]);this.meta=w({years:e,regions:t,organizations:i})}catch(e){this.meta=x(e);return}};responses={};fetchResponses=async e=>{if(void 0!==this.responses[e])return{};this.responses={...this.responses,[e]:y()};try{let t=await new Promise((t,i)=>{n.csv(`${s.A.apiBasePath(this.deployment)}/survey_data/${e}.csv`,(e,n)=>{e?i(e):t(n)})});return this.responses={...this.responses,[e]:w(t)},{}}catch(t){throw this.responses={...this.responses,[e]:x(t)},Error(t)}};get allResponses(){return this._allResponses(this.responses)}_allResponses=(0,r.Bj)(e=>{let t=[];for(let i in e){let n=e[i];n&&"RDone"===n.type&&t.push(n.data)}return[].concat.apply([],t)});get root(){return this._root(this.meta,this.responses)}_root=(0,r.Bj)((e,t)=>{if("RDone"!==e.type)return;let i=[];for(let n in e.data.years){let s=t[e.data.years[n]];s&&"RDone"===s.type&&i.push(s.data)}return((e,t,i)=>{let{years:n,organizations:s,regions:o}=t,c=n[0],v=f(_(s,"headquarters_id","headquarters_country",e=>({adjective_m_singular:e.headquarters_adjective_m_singular,adjective_m_plural:e.headquarters_adjective_m_plural,adjective_f_singular:e.headquarters_adjective_f_singular,adjective_f_plural:e.headquarters_adjective_f_plural,adjective_mixed_singular:e.headquarters_adjective_mixed_singular,adjective_mixed_plural:e.headquarters_adjective_mixed_plural,country:e.headquarters_country}))),y=f(_(s,"industry_id","industry_name",e=>({article:e.industry_article,plural:e.industry_plural,number:e.industry_number,gender:e.industry_gender}))),x=f(_(s,"sector_id","sector_name",e=>({article:e.sector_article,plural:e.sector_plural,number:e.sector_number,gender:e.sector_gender}))),w=o[0].region_id;{let e=new URLSearchParams(window.location.search).get("region");e&&(w=e)}return{static:{years:n,sectors:a.zu(x),industries:a.zu(y),regions:o,headquarters:a.zu(v)},year:c,regions:(0,h.jL)(e,o,w),weights:l.W3(l.Vh()),get allOrganizations(){return this._allOrganizations(s,i,v,y,x)},_allOrganizations:(0,r.Bj)(d),get orgnizationsWithResponses(){return this._organizationsWithResponses(this.allOrganizations,this.year,this.regions)},_organizationsWithResponses:(0,r.Bj)(u),get organizations(){return this._organizations(this.orgnizationsWithResponses,this.weights)},_organizations:(0,r.Bj)(p),get visibleOrganizations(){return this._visibleOrganizations(this.organizations)},_visibleOrganizations:(0,r.Bj)(m),orgById(e){return this.organizations.find(t=>t.id===e)},derive(e,t){return this._derive(this,e,t)},_derive:(0,r.Bj)(g)}})(this.deployment,e.data,[].concat.apply([],i))});fetchData=e=>this.fetchMeta().then(()=>{if(this.meta&&"RDone"===this.meta.type)return Promise.all(this.meta.data.years.slice(0,e).map(this.fetchResponses)).then(()=>({}));throw Error("Meta not loaded")})}let k=(e,t)=>new j(e,t)},7599:(e,t,i)=>{i.d(t,{A:()=>h,G:()=>l});var n=i(384),s=i(3054),r=i(8031),a=i(3990);function l(e){let t=(0,a.s9)(),{rating:i,dimKey:l,showLabel:h}=e,c=s.I6(r.A.ratingGroups,e=>e.rating===i),d=null!=i&&c?function(e,t){switch(t.name){case"top":return e.t("frontend.rating.groups.top");case"middle":return e.t("frontend.rating.groups.middle");case"low":return e.t("frontend.rating.groups.low");default:return""}}(t,c):void 0;return(0,n.jsxs)("div",{className:"rating dim--"+l,title:h?d:void 0,children:[h&&(0,n.jsx)("span",{className:"rating__label",children:d}),(0,n.jsx)(o,{rating:i,i:1}),(0,n.jsx)(o,{rating:i,i:2}),(0,n.jsx)(o,{rating:i,i:3})]})}let o=e=>{let{rating:t,i}=e;return(0,n.jsx)("i",{className:"icon "+(t>=i?"is-there":"is-not-there")})},h=l},8031:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(6530),s=i(7429);let r={apiBasePath:e=>`/data/${e}`,feedUrl:"/feed",screenshotServiceBaseUrl:"http://localhost:4000/?url=",valueFormat:n.format(".2f"),averageMeasure:n.mean,ratingGroups:[{name:"top",rating:3},{name:"middle",rating:2},{name:"low",rating:1}],yearSelectionEnabled:!0,titleMoreLinks:(0,s.P$)({ch:()=>({}),de:()=>({audi:{href:"/news/18"},bmw:{href:"/news/18"},daimler:{href:"/news/18"},ford:{href:"/news/18"},bosch:{href:"/news/18"},vw:{href:"/news/18"}})})}},8699:(e,t,i)=>{i.d(t,{o:()=>n});let n=(e,t)=>{let i=e.length;if(1===i)return[t,t];{let n=Math.sqrt(e.reduce((e,i)=>e+Math.pow(i-t,2),0)/(i-1))/Math.sqrt(i)*3.291;return[t-n,t+n]}}},8821:(e,t,i)=>{i.d(t,{A:()=>
1o});var n=i(384),s=i(6530),r=i(9340),a=i(1322);class l extends r.Component{ref=null;refFn=e=>{this.ref=e};getAnchor(){return this.props.anchor||"north"}componentDidMount(){this.updatePosition(),this.ref&&s.select(this.ref).classed("is-added",!0)}componentDidUpdate(){this.updatePosition()}updatePosition(){let e=this.ref;if(e){let t=s.functor(this.props.position),i=this.getAnchor();requestAnimationFrame(()=>{a.$(e,t(),i,{ygap:11})})}}render(){let{classModifier:e,text:t,value:i}=this.props;return(0,n.jsxs)("div",{ref:this.refFn,className:"tooltip"+(e?" "+e:""),children:[(0,n.jsx)("span",{className:"tooltip__value",children:i}),t&&(0,n.jsx)("span",{className:"tooltip__text",children:t}),(0,n.jsx)("span",{className:"tooltip__triangle is--"+this.getAnchor()})]})}}let o=l},9920:(e,t,i)=>{i.d(t,{G8:()=>r,GT:()=>s,I4:()=>n});let n=3,s=7,r=6.5}}]);
2//# sourceMappingURL=685.47361097af537cf6.js.map

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.