1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[501],{7678:function(e,t,i){i.d(t,{Z5:function(){return E},wW:function(){return T},wf:function(){return I},xI:function(){return P}});let n={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},s={"&":"&","<":"<",">":">",'"':""","'":"'"};function r(e,t){return"number"==typeof e?e+t:e}function a(e){if("string"==typeof e){let t=/^(\d+)\s*(.*)$/g.exec(e);return{value:t?+t[1]:0,unit:(null==t?void 0:t[2])||void 0}}return{value:Number(e)}}function o(e,t,i){return t/i.range*e}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];for(let t=0;t<i.length;t++){let n=i[t],s=Object.getPrototypeOf(e);for(let t in n){if(null!==s&&t in s)continue;let i=n[t];"object"!=typeof i||null===i||i instanceof Array?e[t]=i:e[t]=l(e[t],i)}}return e}let h=e=>e;function u(e,t){return Array.from({length:e},t?(e,i)=>t(i):()=>void 0)}function c(e,t){return null!==e&&"object"==typeof e&&Reflect.has(e,t)}function d(e){return null!==e&&isFinite(e)}function m(e){return d(e)?Number(e):void 0}function p(e){return null==e||"number"==typeof e&&isNaN(e)}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y";return"object"==typeof e&&null!==e&&(Reflect.has(e,"x")||Reflect.has(e,"y"))&&c(e,t)?m(e[t]):m(e)}function g(e,t,i){let n={high:void 0===(t={...t,...i?"x"===i?t.axisX:t.axisY:{}}).high?-Number.MAX_VALUE:+t.high,low:void 0===t.low?Number.MAX_VALUE:+t.low},s=void 0===t.high,r=void 0===t.low;return(s||r)&&function e(t){if(!p(t)){if(Array.isArray(t))for(let i=0;i<t.length;i++)e(t[i]);else{let e=Number(i&&c(t,i)?t[i]:t);s&&e>n.high&&(n.high=e),r&&e<n.low&&(n.low=e)}}}(e),(t.referenceValue||0===t.referenceValue)&&(n.high=Math.max(t.referenceValue,n.high),n.low=Math.min(t.referenceValue,n.low)),n.high<=n.low&&(0===n.low?n.high=1:n.low<0?n.high=0:(n.high>0||(n.high=1),n.low=0)),n}function v(e,t){return p(e)?void 0:t?function(e,t){let i,n;if("object"!=typeof e){let s=m(e);"x"===t?i=s:n=s}else c(e,"x")&&(i=m(e.x)),c(e,"y")&&(n=m(e.y));if(void 0!==i||void 0!==n)return{x:i,y:n}}(e,t):m(e)}function x(e,t){return Array.isArray(e)?e.map(e=>c(e,"value")?v(e.value,t):v(e,t)):x(e.data,t)}function y(e,t,i){let n={increasingX:!1,fillHoles:!1,...i},s=[],r=!0;for(let i=0;i<e.length;i+=2)void 0===f(t[i/2].value)?n.fillHoles||(r=!0):(n.increasingX&&i>=2&&e[i]<=e[i-2]&&(r=!0),r&&(s.push({pathCoordinates:[],valueData:[]}),r=!1),s[s.length-1].pathCoordinates.push(e[i],e[i+1]),s[s.length-1].valueData.push(t[i/2]));return s}function w(e){let t="";return null==e?e:(t="number"==typeof e?""+e:"object"==typeof e?JSON.stringify({data:e}):String(e),Object.keys(s).reduce((e,t)=>e.replaceAll(t,s[t]),t))}class b{call(e,t){return this.svgElements.forEach(i=>Reflect.apply(i[e],i,t)),this}attr(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.call("attr",t)}elem(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.call("elem",t)}root(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.call("root",t)}getNode(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.call("getNode",t)}foreignObject(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.call("foreignObject",t)}text(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.call("text",t)}empty(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.call("empty",t)}remove(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.call("remove",t)}addClass(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.call("addClass",t)}removeClass(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.call("removeClass",t)}removeAllClasses(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.call("removeAllClasses",t)}animate(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.call("animate",t)}constructor(e){this.svgElements=[];for(let t=0;t<e.length;t++)this.svgElements.push(new C(e[t]))}}let E={easeInSine:[.47,0,.745,.715],easeOutSine:[.39,.575,.565,1],easeInOutSine:[.445,.05,.55,.95],easeInQuad:[.55,.085,.68,.53],easeOutQuad:[.25,.46,.45,.94],easeInOutQuad:[.455,.03,.515,.955],easeInCubic:[.55,.055,.675,.19],easeOutCubic:[.215,.61,.355,1],easeInOutCubic:[.645,.045,.355,1],easeInQuart:[.895,.03,.685,.22],easeOutQuart:[.165,.84,.44,1],easeInOutQuart:[.77,0,.175,1],easeInQuint:[.755,.05,.855,.06],easeOutQuint:[.23,1,.32,1],easeInOutQuint:[.86,0,.07,1],easeInExpo:[.95,.05,.795,.035],easeOutExpo:[.19,1,.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[.6,.04,.98,.335],easeOutCirc:[.075,.82,.165,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]};function A(e,t,i){let n,s,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4?arguments[4]:void 0,{easing:h,...u}=i,c={};h&&(n=Array.isArray(h)?h:E[h]),u.begin=r(u.begin,"ms"),u.dur=r(u.dur,"ms"),n&&(u.calcMode="spline",u.keySplines=n.join(" "),u.keyTimes="0;1"),o&&(u.fill="freeze",c[t]=u.from,e.attr(c),s=a(u.begin||0).value,u.begin="indefinite");let d=e.elem("animate",{attributeName:t,...u});o&&setTimeout(()=>{try{d._node.beginElement()}catch(i){c[t]=u.to,e.attr(c),d.remove()}},s);let m=d.getNode();l&&m.addEventListener("beginEvent",()=>l.emit("animationBegin",{element:e,animate:m,params:i})),m.addEventListener("endEvent",()=>{l&&l.emit("animationEnd",{element:e,animate:m,params:i}),o&&(c[t]=u.to,e.attr(c),d.remove())})}class C{attr(e,t){return"string"==typeof e?t?this._node.getAttributeNS(t,e):this._node.getAttribute(e):(Object.keys(e).forEach(t=>{if(void 0!==e[t]){if(-1!==t.indexOf(":")){let i=t.split(":");this._node.setAttributeNS(n[i[0]],t,String(e[t]))}else this._node.setAttribute(t,String(e[t]))}}),this)}elem(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return new C(e,t,i,this,n)}parent(){return this._node.parentNode instanceof SVGElement?new C(this._node.parentNode):null}root(){let e=this._node;for(;
1"svg"!==e.nodeName;)if(e.parentElement)e=e.parentElement;else break;return new C(e)}querySelector(e){let t=this._node.querySelector(e);return t?new C(t):null}querySelectorAll(e){return new b(this._node.querySelectorAll(e))}getNode(){return this._node}foreignObject(e,t,i){let s,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("string"==typeof e){let t=document.createElement("div");t.innerHTML=e,s=t.firstChild}else s=e;s instanceof Element&&s.setAttribute("xmlns",n.xmlns);let a=this.elem("foreignObject",t,i,r);return a._node.appendChild(s),a}text(e){return this._node.appendChild(document.createTextNode(e)),this}empty(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this}remove(){var e;return null===(e=this._node.parentNode)||void 0===e||e.removeChild(this._node),this.parent()}replace(e){var t;return null===(t=this._node.parentNode)||void 0===t||t.replaceChild(e._node,this._node),e}append(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t&&this._node.firstChild?this._node.insertBefore(e._node,this._node.firstChild):this._node.appendChild(e._node),this}classes(){let e=this._node.getAttribute("class");return e?e.trim().split(/\s+/):[]}addClass(e){return this._node.setAttribute("class",this.classes().concat(e.trim().split(/\s+/)).filter(function(e,t,i){return i.indexOf(e)===t}).join(" ")),this}removeClass(e){let t=e.trim().split(/\s+/);return this._node.setAttribute("class",this.classes().filter(e=>-1===t.indexOf(e)).join(" ")),this}removeAllClasses(){return this._node.setAttribute("class",""),this}height(){return this._node.clientHeight}width(){return this._node.clientWidth}animate(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=arguments.length>2?arguments[2]:void 0;return Object.keys(e).forEach(n=>{let s=e[n];Array.isArray(s)?s.forEach(e=>A(this,n,e,!1,i)):A(this,n,s,t,i)}),this}constructor(e,t,i,s,r=!1){e instanceof Element?this._node=e:(this._node=document.createElementNS(n.svg,e),"svg"===e&&this.attr({"xmlns:ct":n.ct})),t&&this.attr(t),i&&this.addClass(i),s&&(r&&s._node.firstChild?s._node.insertBefore(this._node,s._node.firstChild):s._node.appendChild(this._node))}}function M(e,t,i){let n;let s=[];function r(s){let r=n;n=l({},e),t&&t.forEach(e=>{window.matchMedia(e[0]).matches&&(n=l({},n,e[1]))}),i&&s&&i.emit("optionsChanged",{previousOptions:r,currentOptions:n})}if(window.matchMedia)t&&t.forEach(e=>{let t=window.matchMedia(e[0]);t.addEventListener("change",r),s.push(t)});
1else throw Error("window.matchMedia not found! Make sure you're using a polyfill.");return r(),{removeMediaQueryListeners:function(){s.forEach(e=>e.removeEventListener("change",r))},getCurrentOptions:()=>n}}C.Easing=E;let O={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},N={accuracy:3};function _(e,t,i,n,s,r){let a={command:s?e.toLowerCase():e.toUpperCase(),...t,...r?{data:r}:{}};i.splice(n,0,a)}function L(e,t){e.forEach((i,n)=>{O[i.command.toLowerCase()].forEach((s,r)=>{t(i,s,n,r,e)})})}class S{static join(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0,n=new S(t,i);for(let t=0;t<e.length;t++){let i=e[t];for(let e=0;e<i.pathElements.length;e++)n.pathElements.push(i.pathElements[e])}return n}position(e){return void 0!==e?(this.pos=Math.max(0,Math.min(this.pathElements.length,e)),this):this.pos}remove(e){return this.pathElements.splice(this.pos,e),this}move(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0;return _("M",{x:+e,y:+t},this.pathElements,this.pos++,i,n),this}line(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0;return _("L",{x:+e,y:+t},this.pathElements,this.pos++,i,n),this}curve(e,t,i,n,s,r){let a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],o=arguments.length>7?arguments[7]:void 0;return _("C",{x1:+e,y1:+t,x2:+i,y2:+n,x:+s,y:+r},this.pathElements,this.pos++,a,o),this}arc(e,t,i,n,s,r,a){let o=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l=arguments.length>8?arguments[8]:void 0;return _("A",{rx:e,ry:t,xAr:i,lAf:n,sf:s,x:r,y:a},this.pathElements,this.pos++,o,l),this}parse(e){let t=e.replace(/([A-Za-z])(-?[0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce((e,t)=>(t.match(/[A-Za-z]/)&&e.push([]),e[e.length-1].push(t),e),[]);"Z"===t[t.length-1][0].toUpperCase()&&t.pop();let i=t.map(e=>{let t=e.shift(),i=O[t.toLowerCase()];return{command:t,...i.reduce((t,i,n)=>(t[i]=+e[n],t),{})}});return this.pathElements.splice(this.pos,0,...i),this.pos+=i.length,this}stringify(){let e=Math.pow(10,this.options.accuracy);return this.pathElements.reduce((t,i)=>{let n=O[i.command.toLowerCase()].map(t=>{let n=i[t];return this.options.accuracy?Math.round(n*e)/e:n});return t+i.command+n.join(",")},"")+(this.close?"Z":"")}scale(e,t){return L(this.pathElements,(i,n)=>{i[n]*="x"===n[0]?e:t}),this}translate(e,t){return L(this.pathElements,(i,n)=>{i[n]+="x"===n[0]?e:t}),this}transform(e){return L(this.pathElements,(t,i,n,s,r)=>{let a=e(t,i,n,s,r);(a||0===a)&&(t[i]=a)}),this}clone(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new S(e||this.close);return t.pos=this.pos,t.pathElements=this.pathElements.slice().map(e=>({...e})),t.options={...this.options},t}splitByCommand(e){let t=[new S];return this.pathElements.forEach(i=>{i.command===e.toUpperCase()&&0!==t[t.length-1].pathElements.length&&t.push(new S),t[t.length-1].pathElements.push(i)}),t}constructor(e=!1,t){this.close=e,this.pathElements=[],this.pos=0,this.options={...N,...t}}}function j(e){let t={fillHoles:!1,...e};return function(e,i){let n=new S,s=!0;for(let r=0;r<e.length;r+=2){let a=e[r],o=e[r+1],l=i[r/2];void 0!==f(l.value)?(s?n.move(a,o,!1,l):n.line(a,o,!1,l),s=!1):t.fillHoles||(s=!0)}return n}}function k(e){let t={fillHoles:!1,...e};return function e(i,n){let s=y(i,n,{fillHoles:t.fillHoles,increasingX:!0});if(!s.length)return j()([],[]);if(s.length>1)return S.join(s.map(t=>e(t.pathCoordinates,t.valueData)));{if(i=s[0].pathCoordinates,n=s[0].valueData,i.length<=4)return j()(i,n);let e=[],t=[],r=i.length/2,a=[],o=[],l=[],h=[];for(let n=0;n<r;n++)e[n]=i[2*n],t[n]=i[2*n+1];for(let i=0;i<r-1;i++)l[i]=t[i+1]-t[i],h[i]=e[i+1]-e[i],o[i]=l[i]/h[i];a[0]=o[0],a[r-1]=o[r-2];for(let e=1;e<r-1;e++)0===o[e]||0===o[e-1]||o[e-1]>0!=o[e]>0?a[e]=0:(a[e]=3*(h[e-1]+h[e])/((2*h[e]+h[e-1])/o[e-1]+(h[e]+2*h[e-1])/o[e]),isFinite(a[e])||(a[e]=0));let u=new S().move(e[0],t[0],!1,n[0]);for(let i=0;i<r-1;i++)u.curve(e[i]+h[i]/3,t[i]+a[i]*h[i]/3,e[i+1]-h[i]/3,t[i+1]-a[i+1]*h[i]/3,e[i+1],t[i+1],!1,n[i+1]);return u}}}var I=Object.freeze({__proto__:null,none:j,simple:function(e){let t={divisor:2,fillHoles:!1,...e},i=1/Math.max(1,t.divisor);return function(e,n){let s;let r=new S,a=0,o=0;for(let l=0;l<e.length;l+=2){let h=e[l],u=e[l+1],c=(h-a)*i,d=n[l/2];void 0!==d.value?(void 0===s?r.move(h,u,!1,d):r.curve(a+c,o,h-c,u,h,u,!1,d),a=h,o=u,s=d):t.fillHoles||(a=o=0,s=void 0)}return r}},step:function(e){let t={postpone:!0,fillHoles:!1,...e};return function(e,i){let n;let s=new S,r=0,a=0;for(let o=0;o<e.length;o+=2){let l=e[o],h=e[o+1],u=i[o/2];void 0!==u.value?(void 0===n?s.move(l,h,!1,u):(t.postpone?s.line(l,a,!1,n):s.line(r,h,!1,u),s.line(l,h,!1,u)),r=l,a=h,n=u):t.fillHoles||(r=a=0,n=void 0)}return s}},cardinal:function(e){let t={tension:1,fillHoles:!1,...e},i=Math.min(1,Math.max(0,t.tension)),n=1-i;return function e(s,r){let a=y(s,r,{fillHoles:t.fillHoles});if(!a.length)return j()([],[]);if(a.length>1)return S.join(a.map(t=>e(t.pathCoordinates,t.valueData)));{if(s=a[0].pathCoordinates,r=a[0].valueData,s.length<=4)return j()(s,r);let e=new S().move(s[0],s[1],!1,r[0]);for(let t=0,a=s.length;a-2*Number(!0)>t;t+=2){let o=[{x:+s[t-2],y:+s[t-1]},{x:+s[t],y:+s[t+1]},{x:+s[t+2],y:+s[t+3]},{x:+s[t+4],y:+s[t+5]}];a-4===t?o[3]=o[2]:t||(o[0]={x:+s[t],y:+s[t+1]}),e.curve(i*(-o[0].x+6*o[1].x+o[2].x)/6+n*o[2].x,i*(-o[0].y+6*o[1].y+o[2].y)/6+n*o[2].y,i*(o[1].x+6*o[2].x-o[3].x)/6+n*o[2].x,i*(o[1].y+6*o[2].y-o[3].y)/6+n*o[2].y,o[2].x,o[2].y,!1,r[(t+2)/2])}return e}}},monotoneCubic:k});class z{on(e,t){let{allListeners:i,listeners:n}=this;"*"===e?i.add(t):(n.has(e)||n.set(e,new Set),n.get(e).add(t))}off(e,t){let{allListeners:i,listeners:n}=this;if("*"===e)t?i.delete(t):i.clear();else if(n.has(e)){let i=n.get(e);t?i.delete(t):i.clear(),i.size||n.delete(e)}}emit(e,t){let{allListeners:i,listeners:n}=this;
1n.has(e)&&n.get(e).forEach(e=>e(t)),i.forEach(i=>i(e,t))}constructor(){this.listeners=new Map,this.allListeners=new Set}}let X=new WeakMap;class B{update(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(this.data=e||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),t&&(this.options=l({},i?this.options:this.defaultOptions,t),!this.initializeTimeoutId)){var n;null===(n=this.optionsProvider)||void 0===n||n.removeMediaQueryListeners(),this.optionsProvider=M(this.options,this.responsiveOptions,this.eventEmitter)}return!this.initializeTimeoutId&&this.optionsProvider&&this.createChart(this.optionsProvider.getCurrentOptions()),this}detach(){if(this.initializeTimeoutId)window.clearTimeout(this.initializeTimeoutId);else{var e;window.removeEventListener("resize",this.resizeListener),null===(e=this.optionsProvider)||void 0===e||e.removeMediaQueryListeners()}return X.delete(this.container),this}on(e,t){return this.eventEmitter.on(e,t),this}off(e,t){return this.eventEmitter.off(e,t),this}initialize(){window.addEventListener("resize",this.resizeListener),this.optionsProvider=M(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.on("optionsChanged",()=>this.update()),this.options.plugins&&this.options.plugins.forEach(e=>{Array.isArray(e)?e[0](this,e[1]):e(this)}),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=null}constructor(e,t,i,n,s){this.data=t,this.defaultOptions=i,this.options=n,this.responsiveOptions=s,this.eventEmitter=new z,this.resizeListener=()=>this.update(),this.initializeTimeoutId=setTimeout(()=>this.initialize(),0);let r="string"==typeof e?document.querySelector(e):e;if(!r)throw Error("Target element ".concat("string"==typeof e?'"'.concat(e,'"'):""," is not found"));this.container=r;let a=X.get(r);a&&a.detach(),X.set(r,this)}}let H={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};class R{createGridAndLabels(e,t,i,n){let s="x"===this.units.pos?i.axisX:i.axisY,r=this.ticks.map((e,t)=>this.projectValue(e,t)),a=this.ticks.map(s.labelInterpolationFnc);r.forEach((o,l)=>{var h;let u;let c=a[l],d={x:0,y:0};u=r[l+1]?r[l+1]-o:Math.max(this.axisLength-o,this.axisLength/this.ticks.length),(""===c||(h=c)||0===h)&&("x"===this.units.pos?(o=this.chartRect.x1+o,d.x=i.axisX.labelOffset.x,"start"===i.axisX.position?d.y=this.chartRect.padding.top+i.axisX.labelOffset.y+5:d.y=this.chartRect.y1+i.axisX.labelOffset.y+5):(o=this.chartRect.y1-o,d.y=i.axisY.labelOffset.y-u,"start"===i.axisY.position?d.x=this.chartRect.padding.left+i.axisY.labelOffset.x:d.x=this.chartRect.x2+i.axisY.labelOffset.x+10),s.showGrid&&function(e,t,i,n,s,r,a,o){let l={["".concat(i.units.pos,"1")]:e,["".concat(i.units.pos,"2")]:e,["".concat(i.counterUnits.pos,"1")]:n,["".concat(i.counterUnits.pos,"2")]:n+s},h=r.elem("line",l,a.join(" "));o.emit("draw",{type:"grid",axis:i,index:t,group:r,element:h,...l})}(o,l,this,this.gridOffset,this.chartRect[this.counterUnits.len](),e,[i.classNames.grid,i.classNames[this.units.dir]],n),s.showLabel&&function(e,t,i,n,s,r,a,o,l,h){let u={[s.units.pos]:e+a[s.units.pos],[s.counterUnits.pos]:a[s.counterUnits.pos],[s.units.len]:t,[s.counterUnits.len]:Math.max(0,r-10)},c=Math.round(u[s.units.len]),d=Math.round(u[s.counterUnits.len]),m=document.createElement("span");m.className=l.join(" "),m.style[s.units.len]=c+"px",m.style[s.counterUnits.len]=d+"px",m.textContent=String(n);let p=o.foreignObject(m,{style:"overflow: visible;",...u});h.emit("draw",{type:"label",axis:s,index:i,group:o,element:p,text:n,...u})}(o,u,l,c,this,s.offset,d,t,[i.classNames.label,i.classNames[this.units.dir],"start"===s.position?i.classNames[s.position]:i.classNames.end],n))})}constructor(e,t,i){this.units=e,this.chartRect=t,this.ticks=i,this.counterUnits=e===H.x?H.y:H.x,this.axisLength=t[this.units.rectEnd]-t[this.units.rectStart],this.gridOffset=t[this.units.rectOff
1set]}}class Y extends R{projectValue(e){let t=Number(f(e,this.units.pos));return this.axisLength*(t-this.bounds.min)/this.bounds.range}constructor(e,t,i,n){let s=n.highLow||g(t,n,e.pos),r=function(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s={high:t.high,low:t.low,valueRange:0,oom:0,step:0,min:0,max:0,range:0,numberOfSteps:0,values:[]};s.valueRange=s.high-s.low,s.oom=Math.floor(Math.log(Math.abs(s.valueRange))/Math.LN10),s.step=Math.pow(10,s.oom),s.min=Math.floor(s.low/s.step)*s.step,s.max=Math.ceil(s.high/s.step)*s.step,s.range=s.max-s.min,s.numberOfSteps=Math.round(s.range/s.step);let r=o(e,s.step,s)<i,a=n?function(e){let t;if(1===e)return e;let i=2,n=2;if(e%2==0)return 2;do{var s,r,a;t=function e(t,i){return t%i==0?i:e(i,t%i)}(Math.abs((i=((s=i)*s+1)%e)-(n=((a=(r=n)*r+1)*a+1)%e)),e)}while(1===t);return t}(s.range):0;if(n&&o(e,1,s)>=i)s.step=1;else if(n&&a<s.step&&o(e,a,s)>=i)s.step=a;else{let t=0;for(;;){if(r&&o(e,s.step,s)<=i)s.step*=2;else if(!r&&o(e,s.step/2,s)>=i){if(s.step/=2,n&&s.step%1!=0){s.step*=2;break}}else break;if(t++>1e3)throw Error("Exceeded maximum number of iterations while optimizing scale step!")}}function l(e,t){return e===(e+=t)&&(e*=1+(t>0?2221e-19:-.0000000000000002221)),e}s.step=Math.max(s.step,2221e-19);let h=s.min,u=s.max;for(;h+s.step<=s.low;)h=l(h,s.step);for(;u-s.step>=s.high;)u=l(u,-s.step);s.min=h,s.max=u,s.range=s.max-s.min;let c=[];for(let e=s.min;e<=s.max;e=l(e,s.step)){let t=Math.round(1e8*e)/1e8;t!==c[c.length-1]&&c.push(t)}return s.values=c,s}(i[e.rectEnd]-i[e.rectStart],s,n.scaleMinSpace||20,n.onlyInteger),a={min:r.min,max:r.max};super(e,i,r.values),this.bounds=r,this.range=a}}class P extends R{projectValue(e){let t=Number(f(e,this.units.pos));return this.axisLength*(t-this.range.min)/(this.range.max-this.range.min)}constructor(e,t,i,n){let s=n.highLow||g(t,n,e.pos),r=n.divisor||1,a=(n.ticks||u(r,e=>s.low+(s.high-s.low)/r*e)).sort((e,t)=>Number(e)-Number(t)),o={min:s.low,max:s.high};super(e,i,a),this.range=o}}class U extends R{projectValue(e,t){return this.stepLength*t}constructor(e,t,i,n){let s=n.ticks||[];super(e,i,s);let r=Math.max(1,s.length-(n.stretch?1:0));this.stepLength=this.axisLength/r,this.stretch=!!n.stretch}}function V(e,t,i){var n;if(!c(e,"name")||!e.name||null===(n=t.series)||void 0===n||!n[e.name])return t[i];{let n=(null==t?void 0:t.series[e.name])[i];return void 0===n?t[i]:n}}let G={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:h,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:h,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};class T extends B{createChart(e){let t,i;let{data:s}=this,r=function(e){var t;let i,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,a={labels:(e.labels||[]).slice(),series:function(e,t,i){if(Array.isArray(e)&&e.every(e=>Array.isArray(e)||c(e,"data")))return e.map(e=>x(e,t));let n=x(e,t);return i?n.map(e=>[e]):n}(e.series,s,r)},o=a.labels.length;return Array.isArray(t=a.series)&&t.every(Array.isArray)?(i=Math.max(o,...a.series.map(e=>e.length)),a.series.forEach(e=>{e.push(...u(Math.max(0,i-e.length)))})):i=a.series.length,a.labels.push(...u(Math.max(0,i-o),()=>"")),n&&function(e){var t;for(let i of(null===(t=e.labels)||void 0===t||t.reverse(),e.series.reverse(),e.series))c(i,"data")?i.data.reverse():Array.isArray(i)&&i.reverse()}(a),a}(s,e.reverseData,!0),o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"100%",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"100%",s=arguments.length>3?arguments[3]:void 0;if(!e)throw Error("Container element is not found");Array.from(e.querySelectorAll("svg")).filter(e=>
1e.getAttributeNS(n.xmlns,"ct")).forEach(t=>e.removeChild(t));let r=new C("svg").attr({width:t,height:i}).attr({style:"width: ".concat(t,"; height: ").concat(i,";")});return s&&r.addClass(s),e.appendChild(r.getNode()),r}(this.container,e.width,e.height,e.classNames.chart);this.svg=o;let l=o.elem("g").addClass(e.classNames.gridGroup),h=o.elem("g"),m=o.elem("g").addClass(e.classNames.labelGroup),p=function(e,t){var i,n,s,r,o;let l=!!(t.axisX||t.axisY),h=(null===(i=t.axisY)||void 0===i?void 0:i.offset)||0,u=(null===(n=t.axisX)||void 0===n?void 0:n.offset)||0,c=null===(s=t.axisY)||void 0===s?void 0:s.position,d=null===(r=t.axisX)||void 0===r?void 0:r.position,m=e.width()||a(t.width).value||0,p=e.height()||a(t.height).value||0,f="number"==typeof(o=t.chartPadding)?{top:o,right:o,bottom:o,left:o}:void 0===o?{top:0,right:0,bottom:0,left:0}:{top:"number"==typeof o.top?o.top:0,right:"number"==typeof o.right?o.right:0,bottom:"number"==typeof o.bottom?o.bottom:0,left:"number"==typeof o.left?o.left:0};m=Math.max(m,h+f.left+f.right),p=Math.max(p,u+f.top+f.bottom);let g={x1:0,x2:0,y1:0,y2:0,padding:f,width(){return this.x2-this.x1},height(){return this.y1-this.y2}};return l?("start"===d?(g.y2=f.top+u,g.y1=Math.max(p-f.bottom,g.y2+1)):(g.y2=f.top,g.y1=Math.max(p-f.bottom-u,g.y2+1)),"start"===c?(g.x1=f.left+h,g.x2=Math.max(m-f.right,g.x1+1)):(g.x1=f.left,g.x2=Math.max(m-f.right-h,g.x1+1))):(g.x1=f.left,g.x2=Math.max(m-f.right,g.x1+1),g.y2=f.top,g.y1=Math.max(p-f.bottom,g.y2+1)),g}(o,e);t=void 0===e.axisX.type?new U(H.x,r.series,p,{...e.axisX,ticks:r.labels,stretch:e.fullWidth}):new e.axisX.type(H.x,r.series,p,e.axisX),i=void 0===e.axisY.type?new Y(H.y,r.series,p,{...e.axisY,high:d(e.high)?e.high:e.axisY.high,low:d(e.low)?e.low:e.axisY.low}):new e.axisY.type(H.y,r.series,p,e.axisY),t.createGridAndLabels(l,m,e,this.eventEmitter),i.createGridAndLabels(l,m,e,this.eventEmitter),e.showGridBackground&&function(e,t,i,n){let s=e.elem("rect",{x:t.x1,y:t.y2,width:t.width(),height:t.height()},i,!0);n.emit("draw",{type:"gridBackground",group:e,element:s})}(l,p,e.classNames.gridBackground,this.eventEmitter),function(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=0;e[i?"reduceRight":"reduce"]((e,i,s)=>t(i,n++,s),void 0)}(s.series,(n,s)=>{let a=h.elem("g"),o=c(n,"name")&&n.name,l=c(n,"className")&&n.className,u=c(n,"meta")?n.meta:void 0;o&&a.attr({"ct:series-name":o}),u&&a.attr({"ct:meta":w(u)}),a.addClass([e.classNames.series,l||"".concat(e.classNames.series,"-").concat(String.fromCharCode(97+s%26))].join(" "));let m=[],f=[];r.series[s].forEach((e,a)=>{let o={x:p.x1+t.projectValue(e,a,r.series[s]),y:p.y1-i.projectValue(e,a,r.series[s])};m.push(o.x,o.y),f.push({value:e,valueIndex:a,meta:function(e,t){let i=Array.isArray(e)?e[t]:c(e,"data")?e.data[t]:null;return c(i,"meta")?i.meta:void 0}(n,a)})});let g={lineSmooth:V(n,e,"lineSmooth"),showPoint:V(n,e,"showPoint"),showLine:V(n,e,"showLine"),showArea:V(n,e,"showArea"),areaBase:V(n,e,"areaBase")},v=("function"==typeof g.lineSmooth?g.lineSmooth:g.lineSmooth?k():j())(m,f);if(g.showPoint&&v.pathElements.forEach(r=>{let{data:o}=r,l=a.elem("line",{x1:r.x,y1:r.y,x2:r.x+.01,y2:r.y},e.classNames.point);if(o){let e,t;c(o.value,"x")&&(e=o.value.x),c(o.value,"y")&&(t=o.value.y),l.attr({"ct:value":[e,t].filter(d).join(","),"ct:meta":w(o.meta)})}this.eventEmitter.emit("draw",{type:"point",value:null==o?void 0:o.value,index:(null==o?void 0:o.valueIndex)||0,meta:null==o?void 0:o.meta,series:n,seriesIndex:s,axisX:t,axisY:i,group:a,element:l,x:r.x,y:r.y,chartRect:p})}),g.showLine){let o=a.elem("path",{d:v.stringify()},e.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:r.series[s],path:v.clone(),chartRect:p,index:s,series:n,seriesIndex:s,meta:u,axisX:t,axisY:i,group:a,element:o})}if(g.showArea&&i.range){let o=Math.max(Math.min(g.areaBase,i.range.max),i.range.min),l=p.y1-i.projectValue(o);v.splitByCommand("M").filter(e=>e.pathElements.length>1).map(e=>{let t=e.pathElements[0],i=e.pathElements[e.pathElements.length-1];return e.clone(!0).position(0).remove(1).move(t.x,l).line(t.x,t.y).position(e.pathElements.length+1).line(i.x,l)}
1).forEach(o=>{let l=a.elem("path",{d:o.stringify()},e.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:r.series[s],path:o.clone(),series:n,seriesIndex:s,axisX:t,axisY:i,chartRect:p,index:s,group:a,element:l,meta:u})})}},e.reverseData),this.eventEmitter.emit("created",{chartRect:p,axisX:t,axisY:i,svg:o,options:e})}constructor(e,t,i,n){super(e,t,G,l({},G,i),n),this.data=t}}}}]);
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.