XylotrechusZ
/**
* @preserve
* @author ThemePunch <info@themepunch.com>
* @link http://www.themepunch.com/
* @copyright 2018 ThemePunch
* @version 6.7.0
*/
!function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.A??={},SR7.F??={},SR7.D??={},void 0!==(SR7.A.charts?.init??void 0))return;SR7.A.charts={...SR7.A.charts,style:"",init:e=>{SR7.A.charts.listeners.init(e)},getModuleBasics:(e={},t)=>({u:"compare"==t?void 0:e.u??e.enable??!0}),getLayerBasics:(e={},t)=>{if(e.altcolors??=[],e.altcolorsuse)for(let t in e.altcolors)e.altcolors[t]=e.altcolorsuse?.[t]?e.altcolors[t].map((e=>_tpt.gradient.convert(e).string)):[];let s={use:"compare"==t?void 0:e.use??!0,labels:{font:e.labels?.font??"Arial",x:{use:e.labels?.x?.use??!0,name:e.labels?.x?.name??"",color:_tpt.gradient.convert(e.labels?.x?.color??"#fff").string,size:e.labels?.x?.size??12,v:e.labels?.x?.v??"bottom",h:e.labels?.x?.h??"center",xo:e.labels?.x?.xo??0,yo:e.labels?.x?.yo??10,fontWeight:e.labels?.x?.fontWeight??"500"},y:{use:e.labels?.y?.use??!0,name:e.labels?.y?.name??"",color:_tpt.gradient.convert(e.labels?.y?.color??"#fff").string,size:e.labels?.y?.size??12,v:e.labels?.y?.v??"center",h:e.labels?.y?.h??"left",xo:e.labels?.y?.xo??10,yo:e.labels?.y?.yo??0,fontWeight:e.labels?.y?.fontWeight??"500"}},legend:{use:e.legend?.use??!0,color:_tpt.gradient.convert(e.legend?.color??"#fff").string,size:e.legend?.size??12,v:e.legend?.v??"center",h:e.legend?.h??"left",xo:e.legend?.xo??10,yo:e.legend?.yo??0,align:e.legend?.align??"horizontal",gap:e.legend?.gap??10,font:e.legend?.font??"Arial",fontWeight:e.legend?.fontWeight??"500",bg:e.legend?.bg??"transparent",dp:e.legend?.dp??!0,st:e.legend?.st??!0,sbg:e.legend?.sbg??!0},values:{font:e.values?.font??"Arial",s:{pre:e.values?.s?.pre??"",suf:e.values?.s?.suf??"",dez:e.values?.s?.dez??2,size:e.values?.s?.size??10,xo:e.values?.s?.xo??0,yo:e.values?.s?.yo??0,direction:e.values?.s?.direction??"start",fontWeight:e.values?.s?.fontWeight??"500",paddingh:e.values?.s?.paddingh??3,paddingv:e.values?.s?.paddingv??5,fr:e.values?.s?.fr??!0,radius:e.values?.s?.radius??4},f:{pre:e.values?.f?.pre??"",suf:e.values?.f?.suf??"",dez:e.values?.f?.dez??2,use:e.values?.f?.use??!1,size:e.values?.f?.size??10,xo:e.values?.f?.xo??0,yo:e.values?.f?.yo??0,fontWeight:e.values?.f?.fontWeight??"500",fr:e.values?.f?.fr??!0},x:{pre:e.values?.x?.pre??"",suf:e.values?.x?.suf??"",dez:e.values?.x?.dez??2,use:e.values?.x?.use??!0,color:_tpt.gradient.convert(e.values?.x?.color??"#fff").string,size:e.values?.x?.size??10,v:e.values?.x?.v??"center",h:e.values?.x?.h??"left",xo:e.values?.x?.xo??0,yo:e.values?.x?.yo??5,ro:e.values?.x?.ro??0,fontWeight:e.values?.x?.fontWeight??"500",every:e.values?.x?.every??3,fr:e.values?.x?.fr??!1},y:{pre:e.values?.y?.pre??"",suf:e.values?.y?.suf??"",dez:e.values?.y?.dez??2,use:e.values?.y?.use??!0,color:_tpt.gradient.convert(e.values?.y?.color??"#fff").string,size:e.values?.y?.size??13,v:e.values?.y?.v??"bottom",h:e.values?.y?.h??"center",xo:e.values?.y?.xo??0,yo:e.values?.y?.yo??6,fontWeight:e.values?.y?.fontWeight??"500",fr:e.values?.y?.fr??!0}},grid:{xuse:e.grid?.xuse??!0,xcolor:_tpt.gradient.convert(e.grid?.xcolor??"rgba(255,255,255,1)").string,xsize:e.grid?.xsize??1,xstcolor:_tpt.gradient.convert(e.grid?.xstcolor??"rgba(255,255,255,1)").string,xstsize:e.grid?.xstsize??1,yuse:e.grid?.yuse??!0,ycolor:_tpt.gradient.convert(e.grid?.ycolor??"rgba(255,255,255,0.75)").string,ysize:e.grid?.ysize??1,ydivide:e.grid?.ydivide??6,ybtcolor:_tpt.gradient.convert(e.grid?.ybtcolor??"rgba(255,255,255,1)").string,ybtsize:e.grid?.ybtsize??1},interaction:{v:{use:e.interaction?.v?.use??!0,usevals:e.interaction?.v?.usevals??!0,usexval:e.interaction?.v?.usexval??!0,color:_tpt.gradient.convert(e.interaction?.v?.color??"rgba(255,255,255,0.75)").string,size:e.interaction?.v?.size??1,dash:e.interaction?.v?.dash??"0",fill:_tpt.gradient.convert(e.interaction?.v?.fill??"#000").string,textcolor:_tpt.gradient.convert(e.interaction?.v?.textcolor??"#fff").string,yo:e.interaction?.v?.yo??15,xo:e.interaction?.v?.xo??0,dphidden:e.interaction?.v?.dphidden??!1,dpscale:e.interaction?.v?.dpscale??!0}},settings:{type:e.settings?.type??"line",gap:e.settings?.gap??5,width:e.settings?.width??800,height:e.settings?.height??500,isx:e.settings?.isx??0,pl:e.settings?.pl??0,pr:e.settings?.pr??0,keepselected:e.settings?.keepselected??!0,keepstyle:e.settings?.keepstyle??!0,speed:e.settings?.speed??2e3,delay:e.settings?.delay??0,margin:{top:e.settings?.margin?.top??20,bottom:e.settings?.margin?.bottom??50,left:e.settings?.margin?.left??50,right:e.settings?.margin?.right??0}},data:e.data??[],inuse:e.inuse??[],index:e.index??[],strokewidth:e.strokewidth??[],strokedash:e.strokedash??[],curves:e.curves??[],datapoint:e.datapoint??[],strokecolor:(e.strokecolor??[]).map((e=>_tpt.gradient.convert(e).string)),anchorcolor:(e.anchorcolor??[]).map((e=>_tpt.gradient.convert(e).string)),fillcolor:(e.fillcolor??[]).map((e=>_tpt.gradient.convert(e).string)),valuebgcols:(e.valuebgcols??[]).map((e=>_tpt.gradient.convert(e).string)),valuecolor:(e.valuecolor??[]).map((e=>_tpt.gradient.convert(e).string)),valuefcolor:(e.valuefcolor??[]).map((e=>_tpt.gradient.convert(e).string)),altcolors:e.altcolors??[],altcolorsuse:e.altcolorsuse??[]};return"migrate"==t&&(SR7.D.collectModulFont({family:s.labels.font,weight:[s.labels.x.fontWeight,s.labels.y.fontWeight,s.labels.y.fontWeight,s.labels.y.fontWeight,s.labels.y.fontWeight]},t),SR7.D.collectModulFont({family:s.legend.font,weight:[s.legend.fontWeight,s.legend.fontWeight,s.legend.fontWeight,s.legend.fontWeight,s.legend.fontWeight]},t),SR7.D.collectModulFont({family:s.values.font,weight:[s.values.f.fontWeight,s.values.s.fontWeight,s.values.x.fontWeight,s.values.y.fontWeight,s.values.y.fontWeight]},t)),s},prepareLayer:async(e,t,s)=>{if("charts"!==t.subtype)return;let{c:a}=SR7.F.getLayer(s);t.addOns.charts=SR7.A.charts.getLayerBasics(t.addOns.charts,"normalize"),SR7.A.charts.diagramm(a,t.addOns.charts),SR7.A.charts.createAnim(a)},listeners:{init:e=>{SR7.A.charts.listenersAdded?.[e]||(SR7.A.charts.listenersAdded||document.addEventListener("sr.layer.action",(function(e){""+(e.layersettings?.addOns?.charts??!1)!="false"&&("enterstage"==e.eventtype?(SR7.A.charts.listeners.mouse.init(e.c),e.c.addOns.charts.anim.play(0)):"leavestage"==e.eventtype&&SR7.A.charts.listeners.mouse.kill(e.c))})),SR7.A.charts.listenersAdded??={},SR7.A.charts.listenersAdded[e]=!0)},mouse:{init:e=>{const t=e.addOns.charts;t.pt=t.svg.createSVGPoint(),t.mouseMoveBound=SR7.A.charts.listeners.mouse.move.bind(null,e),t.mouseOutBound=SR7.A.charts.listeners.mouse.out.bind(null,e),t.mouseLeaveBound=SR7.A.charts.listeners.mouse.leave.bind(null,e),t.svg.addEventListener("mousemove",t.mouseMoveBound),t.svg.addEventListener("mouseout",t.mouseOutBound),t.svg.addEventListener("mouseleave",t.mouseLeaveBound)},kill:e=>{const t=e.addOns.charts;t.svg.removeEventListener("mousemove",t.mouseMoveBound),t.svg.removeEventListener("mouseout",t.mouseOutBound),t.svg.removeEventListener("mouseleave",t.mouseLeaveBound)},out:e=>{const t=e.addOns.charts;if(_tpt.gsap.set(t.antexts,{opacity:0}),void 0!==t.focusedDotsXi)for(var s=0;s<t.antexts.length;s++)"chart_value_marker"!==t.antexts[s].id&&_tpt.gsap.to(t.dots[s][t.focusedDotsXi],.2,{scale:1,opacity:t.dphidden?0:1,ease:"power2.inOut"})},leave:e=>{const t=e.addOns.charts;_tpt.gsap.to(t.antexts,.2,{opacity:0}),void 0!==t.ml&&_tpt.gsap.to(t.ml,.2,{opacity:0})},move:(e,t)=>{const s=e.addOns.charts;var a=_tpt.isSafari11?_tpt.gsap.getProperty(s.svg.parentNode,"scale"):1;a=NaN==a||void 0===a?1:a,s.pt.x=t.clientX,s.pt.y=t.clientY;var i=s.svg.getScreenCTM().scale(a).inverse(),n=s.pt.matrixTransform(i),l=_tpt.is_mozilla?!(n.x<s.box.l||n.x>s.box.r):!(n.x<s.box.l||n.x>s.box.r||n.y<s.box.t||n.y>s.box.b);_tpt.gsap.to(s.antexts,.2,{opacity:l?1:0}),n.x=Math.min(s.box.r,Math.max(s.box.l,n.x)),void 0!==s.ml&&_tpt.gsap.to(s.ml,.2,{opacity:l?1:0,attr:{x1:n.x,x2:n.x}});for(var r=_tpt.gsap.utils.snap(s.xp,n.x),o=s.xp.indexOf(r),d=0;d<s.antexts.length;d++){_tpt.gsap.to(s.antexts[d],.2,{x:"chart_value_marker"===s.antexts[d].id?n.x:s.xp[o],y:"chart_value_marker"===s.antexts[d].id?s.box.b:s.yp[d][o]}),s.antexts[d].childNodes[1].textContent=s.vals[d][o];var p=s.antexts[d].childNodes[1].getBBox();"chart_value_marker"!==s.antexts[d].id&&(s.focusedDotsXi!=o&&_tpt.gsap.to(s.dots[d][s.focusedDotsXi],.2,{scale:1,opacity:s.dphidden?0:1,ease:"power2.inOut"}),_tpt.gsap.to(s.dots[d][o],.2,{scale:s.dpscale?2:1,opacity:1,ease:"power2.inOut",overwrite:"auto"})),_tpt.gsap.set(s.antexts[d].childNodes[0],{x:p.x,y:p.y,width:p.width+2*s.valpadding.h,height:p.height+2*s.valpadding.v})}s.focusedDotsXi=o}}},updateLegend:function(t,s,a,i,n){var l=[s.lenght],r=0,o=0,d=0,p=0,g=0,h=2,c=3;1!=a.sbg&&(h--,c--),!0!==a.st&&(h=-1,c--),!0!==a.dp&&(c=-1);for(var v=0;v<s.length;v++)l[v]=s[v].childNodes[0].getBBox(),_tpt.gsap.set(s[v].childNodes[0],{attr:{x:40+l[v].width/2,y:l[v].height/2}}),-1!==h&&_tpt.gsap.set(s[v].childNodes[h],{attr:{y1:l[v].height/4,y2:l[v].height/4}}),-1!==c&&_tpt.gsap.set(s[v].childNodes[c],{x:15,y:l[v].height/4}),_tpt.gsap.set(s[v],{x:r,y:o}),"horizontal"===a.align?(d+=25+l[v].width+(v<s.length-1?e(a.gap):0),p=p<=l[v].height?l[v].height:p,r+=25+l[v].width+e(a.gap),g=g<l[v].height?l[v].height:g):(p+=l[v].height+(v<s.length-1?e(a.gap):0),d=d<=25+l[v].width?40+l[v].width:d,o+=l[v].height+e(a.gap),g=g<l[v].height?l[v].height:g);_tpt.gsap.set(t.childNodes[0],{width:d+30,height:p+30,y:-(15+g/4)});var u=t.getBBox();_tpt.gsap.set(t,{x:"left"==a.h?e(a.xo):"right"===a.h?-e(a.xo)+(i-u.width):e(a.xo)+(i/2-u.width/2),y:"top"==a.v?e(a.yo):"bottom"===a.v?-e(a.yo)+(n-u.height):e(a.yo)+(n/2-u.height/2)})},diagramm:function(t,s){let a,n;t.addOns??={},t.addOns.charts??={},t.addOns.charts.chartsCache??={},s.grid.ydivide??=5,s.settings.gap??=5;let l=e(s.settings.width,800),h=e(s.settings.height,500),c={rdl:s.data.length-1,id:t.el.id,box:{l:e(s.settings.margin.left),r:l-e(s.settings.margin.right),t:e(s.settings.margin.top),b:h-e(s.settings.margin.bottom),pl:e(s.settings.pl),pr:e(s.settings.pr)},xp:[],yp:[],vals:[],text:[],antexts:[],dots:[],paths:[],filledpaths:[],charts:[],legends:[],bars:[],fv:[],valpadding:{h:e(s.values.s.paddingh),v:e(s.values.s.paddingv)},cOrder:s.cOrder,speed:e(s.settings.speed,2e3)/1e3,dpscale:s.interaction.v.dpscale,dphidden:s.interaction.v.dphidden};for(c.box.h=c.box.b-c.box.t,c.box.w=c.box.r-c.box.l-(c.box.pl+c.box.pr),s.minmax=r(s),c.XS=c.box.w/(c.rdl-("line"===s.settings.type?1:0)),c.box.pl=c.box.pl+("line"!==s.settings.type?c.XS/2:0),i(s),c.svg=_tpt.createNS({n:"svg",id:"chart_"+c.id,s:{width:"100%",height:"100%"}}),c.svg.setAttribute("viewBox","0 0 "+l+" "+h),o(c,s),p(c,s,l,h),c.legend=_tpt.createNS({n:"g",c:"chart_legend_wrap"}),c.legend.appendChild(_tpt.createNS({n:"rect",v:{x:0,y:0},s:{transform:"translate(-10px,-10px)",fill:_tpt.gradient.getSVGReference(s.legend.bg)}})),g(c,s),d(c,s),s.interaction.v.use&&s.interaction.v.usexval&&(c.antexts.push(n=_tpt.createNS({n:"g",id:"chart_value_marker",c:"charts_values"})),n.appendChild(_tpt.createNS({n:"rect",v:{rx:e(s.values.s.radius)||0,rx:e(s.values.s.radius)||0,x:-e(s.values.s.paddingh),y:-e(s.values.s.paddingv)},s:{fill:_tpt.gradient.getSVGReference(s.interaction.v.fill)}})),n.appendChild(_tpt.createNS({n:"text",v:{x:s.interaction.v.xo,y:s.interaction.v.yo},s:{fontWeight:s.values.s.fontWeight,fontFamily:s.values.font,fill:_tpt.gradient.getSVGReference(s.interaction.v.textcolor),fontSize:e(s.values.s.size)+"px",textAnchor:"middle"}}))),a=0;a<c.antexts.length;a++)c.svg.appendChild(c.antexts[a]);s.interaction.v.use&&(c.ml=_tpt.createNS({n:"line",c:"charts_markerline",s:{pointerEvents:"none"},v:{stroke:s.interaction.v.color,strokeWidth:s.interaction.v.size,strokeDasharray:s.interaction.v.dash,x1:c.box.l,y1:c.box.t,x2:c.box.l,y2:c.box.b}}),c.svg.appendChild(c.ml)),void 0!==n&&c.svg.appendChild(n),c.svg.appendChild(c.legend),t.el.appendChild(c.svg),SR7.A.charts.updateLegend(c.legend,c.legends,s.legend,l,h),requestAnimationFrame((()=>{SR7.A.charts.updateLegend(c.legend,c.legends,s.legend,l,h)})),t.addOns.charts=c},createAnim:function(e){var t=e.addOns.charts;t.anim=_tpt.gsap.timeline({paused:!0}),t.anim.add(_tpt.gsap.set(t.antexts,{opacity:0}),0),t.speed=t.speed?t.speed>100?t.speed/1e3:t.speed:2;let s=t.speed/4,a=t.speed/2,i=t.speed/5,n=t.speed/3.5,l="power2.inOut";const r=(e=s)=>({amount:e,from:"start"}),o=(e,s,a,i)=>t.anim.add(_tpt.gsap.from(e,s,a),i);var d,p,g,h,c;o(t.paths,t.speed,{drawSVG:0,stagger:r(),ease:l},s),void 0!==t.bars&&t.bars.length>0&&o(t.bars,t.speed,{scaleY:0,transformOrigin:"0% 100%",stagger:r(),ease:l},s),t.filledpaths&&(d=t.filledpaths,p=t.speed,g={opacity:0,stagger:r(),ease:l},h={opacity:1},c=a,t.anim.add(_tpt.gsap.fromTo(d,p,g,h),c)),t.legend&&o(t.legend,t.speed,{opacity:0,stagger:r(),ease:l},a),t.vlines&&o(t.vlines,a,{drawSVG:0,ease:l,stagger:r()},t.speed/10),t.hlines&&o(t.hlines,a,{drawSVG:0,ease:l,stagger:r()},i),t.text&&o(t.text,t.speed,{opacity:0,ease:l,stagger:r(a)},i),t.fv&&o(t.fv,t.speed,{attr:{y:t.box.b},opacity:0,ease:l,stagger:r(),ease:l},n),t.dots&&o(t.dots,i,{opacity:0,scale:0,ease:"back.out",stagger:{amount:n,from:"random"}},t.speed/3),t.ml&&o(t.ml,a,{drawSVG:0,ease:"power1.inOut"},a)}};const e=(e,t)=>parseInt(e)||t||0,t=(t,s,a,i)=>"left"===t?s:"top"===t?e(s)+e(i):"right"===t||"bottom"===t?e(a)-e(s):a/2+e(s),s=(e,t)=>e.reduce(((e,s,i,n)=>0===i?"M "+s[0]+","+s[1]:e+" "+((e,t,s,i)=>{const n=a(s[t-1],s[t-2],e,void 0,i),l=a(e,s[t-1],s[t+1],!0,i);return"C "+n[0]+","+n[1]+" "+l[0]+","+l[1]+" "+e[0]+","+e[1]})(s,i,n,t)),""),a=(e,t,s,a,i)=>{let{angle:n,length:l}=((e,t)=>({length:Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)),angle:Math.atan2(t[1]-e[1],t[0]-e[0])}))(t||e,s||e);return n+=a?Math.PI:0,l*=i,[e[0]+Math.cos(n)*l,e[1]+Math.sin(n)*l]},i=e=>{e.cOrder=[];var t;for(t=0;t<e.data[0].length;t++)t!=e.settings.isx&&e.cOrder.push([parseInt(e.index[t]),t]);e.cOrder.sort((function(e,t){return e[0]===t[0]?0:e[0]<t[0]?-1:1}))},n=(e,t=10)=>{if(void 0===e)return bricks.sets;let s=(e.length>t?e.substring(0,t)+"...":e).trim();return s.endsWith('"')&&(s=s.slice(0,-1)),s},l=(e,t,s,a,i)=>{let n={s:{transformOrigin:"2px 2px"}};switch(e){case"1":case"2":n.n="circle",n.v={cx:t,cy:s,r:"1"===e?2:3};break;case"3":n.n="polygon",n.v={points:`${t-3},${s+3} ${t+3},${s+3} ${t},${s-3}`},n.s={transformOrigin:"3px 3px"};break;default:n.n="rect",n.v={width:5,height:5,x:t-2,y:s-2}}return n.c="chart_anchor",n.s={...n.s,fill:a,opacity:i},_tpt.createNS(n)},r=e=>{var t=-9999999,s=0;for(var a in e.data)for(var i in e.data[a])if(!(i==e.settings.isx||window._R_is_Editor&&!0!==e.inuse[i])){var n=parseFloat(e.data[a][i]);""+n!="NaN"&&(t=Math.max(n,t),s=Math.min(n,s))}return s=Math.floor(s+.1*s),t=Math.ceil(t+.1*t),Math.round(t+s),{min:s,max:t}},o=(t,s)=>{if(s.grid.yuse||s.values.y.use){let a,i,n;s.minmax.max=(e=>{let t=e.minmax.max/1.1,s=t,a=9e6*t;for(let i=0;i<=200;i++){let n=Math.round(t+t*i/1e3),l=(n-e.minmax.min)/e.grid.ydivide,r=0;for(let t=0;t<=e.grid.ydivide;t++){let s=e.minmax.min+l*t;r+=s-Math.floor(s)}r<a&&(a=r,s=n)}return s})(s);let l=t.box.h/s.grid.ydivide,r=(s.minmax.max-s.minmax.min)/s.grid.ydivide;t.hgroup=_tpt.createNS({n:"g",c:"chart_y_axis",v:s.grid.yuse?{stroke:s.grid.ycolor,strokeWidth:s.grid.ysize}:{}}),s.grid.yuse&&(t.hlines=[]);for(let o=0;o<=s.grid.ydivide;o++)a=Math.max(Math.floor(t.box.b-l*o),t.box.t),n=s.minmax.min+r*o,s.grid.yuse&&(t.hlines.push(i=_tpt.createNS({n:"line",v:{x1:t.box.l-3,y1:a,x2:t.box.r,y2:a},c:"charts_gird_h_lines"})),t.hgroup.appendChild(i)),s.values.y.use&&(t.text.push(i=_tpt.createNS({n:"text",v:{x:t.box.l-10+e(s.values.y.xo),y:a+e(s.values.y.yo),strokeWidth:0},t:s.values.y.pre+(s.values.y.fr?Intl.NumberFormat().format(n):n)+s.values.y.suf,c:"chart_text charts_y_vals",s:{fill:s.values.y.color,fontFamily:s.values.font,fontWeight:s.values.y.fontWeight,fontSize:e(s.values.y.size)+"px",textAnchor:"end"}})),t.hgroup.appendChild(i));t.svg.appendChild(t.hgroup)}},d=(t,s)=>{if(s.grid.xuse||s.values.x.use||s.interaction.v.use&&s.interaction.v.usexval){let a,i,n;t.vgroup=_tpt.createNS({n:"g",c:"chart_x_axis",v:s.grid.xuse?{stroke:s.grid.xcolor,strokeWidth:s.grid.xsize}:{}}),s.grid.xuse&&(t.vlines=[]),s.interaction.v.use&&s.interaction.v.usexval&&t.vals.push([]);for(let l=0;l<=t.rdl;l++)if(void 0!==s.data[l+1]&&(a=t.box.pl+Math.round(t.box.l+t.XS*l),n=s.data[l+1][s.settings.isx],s.interaction.v.use&&s.interaction.v.usexval&&t.vals[t.vals.length-1].push(s.values.x.pre+(s.values.x.fr?Intl.NumberFormat().format(n):n)+s.values.x.suf),t.xp.push(a),s.grid.xuse&&(0==l&&(t.vlines.push(i=_tpt.createNS({n:"line",v:{stroke:s.grid.xstcolor,strokeWidth:s.grid.xstsize,x1:a-t.box.pl,y1:t.box.b+3,x2:a-t.box.pl,y2:t.box.t-3},c:"charts_gird_v_lines"})),t.vgroup.appendChild(i)),t.vlines.push(i=_tpt.createNS({n:"line",v:{x1:a,y1:t.box.b+3,x2:a,y2:t.box.b-3},c:"charts_gird_v_lines"})),t.vgroup.appendChild(i)),s.values.x.use&&l%s.values.x.every==0)){let l;i=_tpt.createNS({n:"g",s:{transform:"translate("+(a+e(s.values.x.xo))+"px, "+(t.box.b+10+e(s.values.x.yo))+"px)"}}),t.text.push(l=_tpt.createNS({n:"text",t:s.values.x.pre+(s.values.x.fr?Intl.NumberFormat().format(n):n)+s.values.x.suf,s:{transform:"rotate("+s.values.x.ro+"deg)",fontFamily:s.values.font,fontWeight:s.values.x.fontWeight,fontSize:e(s.values.x.size)+"px",textAnchor:"middle"},v:{strokeWidth:0,fill:_tpt.gradient.getSVGReference(s.values.x.color)}})),i.appendChild(l),t.vgroup.appendChild(i)}t.svg.appendChild(t.vgroup)}},p=(s,a,i,n)=>{let l;a.labels.x.use&&(s.labelX=_tpt.createNS({n:"g",c:"chart_label_x_wrap",s:{transform:"translate("+t(a.labels.x.h,a.labels.x.xo,i)+"px, "+t(a.labels.x.v,a.labels.x.yo,n,e(a.labels.x.size))+"px)"}}),s.text.push(l=_tpt.createNS({n:"text",t:a.labels.x.name,c:"chart_text chart_label_x",s:{fill:a.labels.x.color,fontFamily:a.labels.font,fontWeight:a.labels.x.fontWeight,fontSize:e(a.labels.x.size)+"px",textAnchor:"middle"}})),s.labelX.appendChild(l),s.svg.appendChild(s.labelX)),a.labels.y.use&&(s.labelY=_tpt.createNS({n:"g",c:"chart_label_y_wrap",s:{transform:"translate("+t(a.labels.y.h,a.labels.y.xo,i)+"px,"+t(a.labels.y.v,a.labels.y.yo,n,e(a.labels.y.size))+"px) rotateZ(-90deg)"}}),s.text.push(l=_tpt.createNS({n:"text",t:a.labels.y.name,c:"chart_text chart_label_y",s:{fill:a.labels.y.color,fontFamily:a.labels.font,fontWeight:a.labels.y.fontWeight,fontSize:e(a.labels.y.size)+"px",textAnchor:"middle"}})),s.labelY.appendChild(l),s.svg.appendChild(s.labelY))},g=(t,a)=>{let i,r,o,d,p,g,h,c,v,u,x,f,y,m,b,_,S,z=-(t.XS/2-a.settings.gap/4),W=Math.max(1,(t.XS-a.settings.gap/2)/("pbar"===a.settings.type?a.cOrder.length:1)),w=Math.pow(10,a.values.s.dez);for(var N=0;N<a.cOrder.length;N++){o=a.cOrder[N][1],t.charts.push(c=_tpt.createNS({n:"g",id:"chart_"+t.id+"_column_"+o,c:"chart_column"})),f=_tpt.createNS({n:"g",c:"chart_data_points"}),a.interaction.v.usevals&&(t.antexts.push(b=_tpt.createNS({n:"g",id:"chart_value_"+o,c:"charts_values"})),b.appendChild(_tpt.createNS({n:"rect",v:{rx:e(a.values.s.radius)||0,rx:e(a.values.s.radius)||0,x:-e(a.values.s.paddingh,0),y:-e(a.values.s.paddingv,0)},s:{fill:a.valuebgcols[o]}})),b.appendChild(_tpt.createNS({n:"text",v:{x:a.values.s.xo,y:a.values.s.yo},s:{fontWeight:a.values.s.fontWeight,fontFamily:a.values.font,fill:a.valuecolor[o],fontSize:e(a.values.s.size)+"px",textAnchor:a.values.s.direction}})),t.vals.push([])),a.legend.use&&(t.legends.push(y=_tpt.createNS({n:"g",c:"chart_legend"})),y.appendChild(_tpt.createNS({n:"text",v:{x:0,y:0},t:n(a.data[0][o],40),s:{fontWeight:a.legend.fontWeight,fontFamily:a.legend.font,fill:a.legend.color,fontSize:e(a.legend.size)+"px",textAnchor:"middle"}})),!0===a.legend.sbg&&y.appendChild(_tpt.createNS({n:"rect",v:{x:30,y:1,width:5,height:5,stroke:"transparent",fill:_tpt.gradient.getSVGReference(a.fillcolor[o])}})),!0===a.legend.st&&y.appendChild(_tpt.createNS({n:"line",v:{x1:5,x2:25,y1:-2,y2:-2,stroke:a.strokecolor[o],strokeDasharray:a.strokedash[o],strokeWidth:a.strokewidth[o]}})),!0===a.legend.dp&&0!==a.datapoint[o]&&y.appendChild(l(a.datapoint[o],0,0,a.anchorcolor[o],1)),t.text.push(y),t.legend.appendChild(y)),t.yp.push(v=[]),t.dots.push(x=[]),"line"!==a.settings.type&&t.bars.push(u=[]),d=[];var k="",C=_tpt.gsap.utils.mapRange(a.minmax.min,a.minmax.max,0,t.box.h);for(r=0;r<t.rdl;r++)p=parseFloat(a.data[r+1][o]),""+p!="NaN"&&(p=Math.round(p*w)/w,a.interaction.v.usevals&&t.vals[t.vals.length-1].push(a.values.s.pre+(a.values.s.fr?Intl.NumberFormat().format(p):p)+a.values.s.suf),g=t.box.pl+Math.round(t.box.l+t.XS*r),h=Math.round(t.box.b-C(p)),v.push(h),"line"!==a.settings.type?(k="transparent"===(k=_tpt.gradient.getSVGReference(a.altcolors?.[o]?.[r]??a.fillcolor[o]))?"#245689":k,u.push(m=_tpt.createNS({n:"rect",v:{x:g+z+("pbar"===a.settings.type?W*N:0),y:h,width:W,height:Math.max(0,t.box.b-h),stroke:"transparent",strokeWidth:0},s:{fill:k}})),c.appendChild(m)):"0"!==a.datapoint[o]&&x.push(l(a.datapoint[o],g,h,a.anchorcolor[o],a.interaction.v.dphidden?0:1)),void 0!==a.values.f&&a.values.f.use&&(t.fv.push(i=_tpt.createNS({c:"charts_fixed_values",n:"text",t:a.values.f.pre+(a.values.f.fr?Intl.NumberFormat().format(p):p)+a.values.f.suf,v:{x:"line"!==a.settings.type?e(a.values.f.xo)+g+z+("pbar"===a.settings.type?W*N:0)+W/2:g,y:"line"!==a.settings.type?e(a.values.f.yo)+h:h},s:{fontWeight:a.values.f.fontWeight,fontFamily:a.values.font,fill:void 0!==a.valuefcolor?a.valuefcolor[o]:a.valuecolor[o],fontSize:e(a.values.f.size)+"px",textAnchor:"middle"}})),c.appendChild(i)),d.push([g,h]));if("line"===a.settings.type){for(_=s(d,a.curves[o]/10),t.paths.push(b=_tpt.createNS({n:"path",c:"charts_paths",id:"path_"+t.id+"_col",v:{d:_,stroke:a.strokecolor[o],strokeDasharray:a.strokedash[o],strokeWidth:a.strokewidth[o]},s:{fill:"transparent"}})),c.appendChild(b),t.filledpaths.push(b=_tpt.createNS({n:"path",c:"charts_filledpaths",id:"filledpath_"+t.id+"_col",s:{fill:_tpt.gradient.getSVGReference(a.fillcolor[o])},v:{d:"M "+t.box.l+" "+t.box.b+_.replace("M","L")+" L"+t.box.r+" "+t.box.b,stroke:"transparent",strokeWidth:a.strokewidth[o]}})),c.appendChild(b),S=0;S<x.length;S++)f.appendChild(x[S]);c.appendChild(f)}t.svg.appendChild(c)}};_tpt.R??={},_tpt.R.charts=_tpt.extend?_tpt.extend(_tpt.R.charts,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7ChartsReady"))}();