@deskhero/dh_ui 1.17.0 → 1.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dh_ui.es.js CHANGED
@@ -13381,7 +13381,7 @@ const _hoisted_2 = ["type", "placeholder"];
13381
13381
  const _hoisted_3 = { class: "icon is-right" };
13382
13382
  const _hoisted_4 = {
13383
13383
  key: 0,
13384
- class: "tooltip"
13384
+ class: "password-tooltip"
13385
13385
  };
13386
13386
  const _hoisted_5 = { class: "active-text" };
13387
13387
  const _hoisted_6 = { class: "active-text" };
@@ -13487,5 +13487,5 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13487
13487
  };
13488
13488
  }
13489
13489
  });
13490
- var PasswordField = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9f707e50"]]);
13490
+ var PasswordField = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e2840bb4"]]);
13491
13491
  export { AdvancedFilter as DhAdvancedFilter, DhIcon, Modal as DhModal, Notification as DhNotification, NumberRange as DhNumberRange, PasswordField as DhPasswordField, SearchInput as DhSearchInput, Stepper as DhStepper, Switch as DhSwitch, Tooltip as DhTooltip };
package/dist/dh_ui.umd.js CHANGED
@@ -15,4 +15,4 @@
15
15
  * Released under the MIT License
16
16
  */class ul{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,s,n){const a=e.listeners[n],o=e.duration;a.forEach(r=>r({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(s-e.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=ts.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((s,n)=>{if(!s.running||!s.items.length)return;const a=s.items;let o=a.length-1,r=!1,l;for(;o>=0;--o)l=a[o],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(t),r=!0):(a[o]=a[a.length-1],a.pop());r&&(n.draw(),this._notify(n,s,t,"progress")),a.length||(s.running=!1,this._notify(n,s,t,"complete"),s.initial=!1),e+=a.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){const e=this._charts;let s=e.get(t);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,s)),s}listen(t,e,s){this._getAnims(t).listeners[e].push(s)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);!e||(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((s,n)=>Math.max(s,n._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const s=e.items;let n=s.length-1;for(;n>=0;--n)s[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var ct=new ul;const Qs="transparent",gl={boolean(i,t,e){return e>.5?t:i},color(i,t,e){const s=Is(i||Qs),n=s.valid&&Is(t||Qs);return n&&n.valid?n.mix(s,e).hexString():t},number(i,t,e){return i+(t-i)*e}};class hl{constructor(t,e,s,n){const a=e[s];n=Ae([t.to,n,a,t.from]);const o=Ae([t.from,a,n]);this._active=!0,this._fn=t.fn||gl[t.type||typeof o],this._easing=Wt[t.easing]||Wt.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=s,this._from=o,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,s){if(this._active){this._notify(!1);const n=this._target[this._prop],a=s-this._start,o=this._duration-a;this._start=s,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=Ae([t.to,e,n,t.from]),this._from=Ae([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,s=this._duration,n=this._prop,a=this._from,o=this._loop,r=this._to;let l;if(this._active=a!==r&&(o||e<s),!this._active){this._target[n]=r,this._notify(!0);return}if(e<0){this._target[n]=a;return}l=e/s%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[n]=this._fn(a,r,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,s)=>{t.push({res:e,rej:s})})}_notify(t){const e=t?"res":"rej",s=this._promises||[];for(let n=0;n<s.length;n++)s[n][e]()}}const dl=["x","y","borderWidth","radius","tension"],Nl=["color","borderColor","backgroundColor"];b.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const Il=Object.keys(b.animation);b.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:i=>i!=="onProgress"&&i!=="onComplete"&&i!=="fn"}),b.set("animations",{colors:{type:"color",properties:Nl},numbers:{type:"number",properties:dl}}),b.describe("animations",{_fallback:"animation"}),b.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:i=>i|0}}}});class vs{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!S(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const n=t[s];if(!S(n))return;const a={};for(const o of Il)a[o]=n[o];(_(n.properties)&&n.properties||[s]).forEach(o=>{(o===s||!e.has(o))&&e.set(o,a)})})}_animateOptions(t,e){const s=e.options,n=jl(t,s);if(!n)return[];const a=this._createAnimations(n,s);return s.$shared&&Dl(t.options.$animations,s).then(()=>{t.options=s},()=>{}),a}_createAnimations(t,e){const s=this._properties,n=[],a=t.$animations||(t.$animations={}),o=Object.keys(e),r=Date.now();let l;for(l=o.length-1;l>=0;--l){const M=o[l];if(M.charAt(0)==="$")continue;if(M==="options"){n.push(...this._animateOptions(t,e));continue}const c=e[M];let u=a[M];const h=s.get(M);if(u)if(h&&u.active()){u.update(h,c,r);continue}else u.cancel();if(!h||!h.duration){t[M]=c;continue}a[M]=u=new hl(h,t,M,c),n.push(u)}return n}update(t,e){if(this._properties.size===0){Object.assign(t,e);return}const s=this._createAnimations(t,e);if(s.length)return ct.add(this._chart,s),!0}}function Dl(i,t){const e=[],s=Object.keys(t);for(let n=0;n<s.length;n++){const a=i[s[n]];a&&a.active()&&e.push(a.wait())}return Promise.all(e)}function jl(i,t){if(!t)return;let e=i.options;if(!e){i.options=t;return}return e.$shared&&(i.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e}function Us(i,t){const e=i&&i.options||{},s=e.reverse,n=e.min===void 0?t:0,a=e.max===void 0?t:0;return{start:s?a:n,end:s?n:a}}function fl(i,t,e){if(e===!1)return!1;const s=Us(i,e),n=Us(t,e);return{top:n.end,right:s.end,bottom:n.start,left:s.start}}function Al(i){let t,e,s,n;return S(i)?(t=i.top,e=i.right,s=i.bottom,n=i.left):t=e=s=n=i,{top:t,right:e,bottom:s,left:n,disabled:i===!1}}function Zs(i,t){const e=[],s=i._getSortedDatasetMetas(t);let n,a;for(n=0,a=s.length;n<a;++n)e.push(s[n].index);return e}function Ps(i,t,e,s={}){const n=i.keys,a=s.mode==="single";let o,r,l,M;if(t!==null){for(o=0,r=n.length;o<r;++o){if(l=+n[o],l===e){if(s.all)continue;break}M=i.values[l],V(M)&&(a||t===0||nt(t)===nt(M))&&(t+=M)}return t}}function ml(i){const t=Object.keys(i),e=new Array(t.length);let s,n,a;for(s=0,n=t.length;s<n;++s)a=t[s],e[s]={x:a,y:i[a]};return e}function Rs(i,t){const e=i&&i.options.stacked;return e||e===void 0&&t.stack!==void 0}function Ll(i,t,e){return`${i.id}.${t.id}.${e.stack||e.type}`}function yl(i){const{min:t,max:e,minDefined:s,maxDefined:n}=i.getUserBounds();return{min:s?t:Number.NEGATIVE_INFINITY,max:n?e:Number.POSITIVE_INFINITY}}function xl(i,t,e){const s=i[t]||(i[t]={});return s[e]||(s[e]={})}function Vs(i,t,e,s){for(const n of t.getMatchingVisibleMetas(s).reverse()){const a=i[n.index];if(e&&a>0||!e&&a<0)return n.index}return null}function Ws(i,t){const{chart:e,_cachedMeta:s}=i,n=e._stacks||(e._stacks={}),{iScale:a,vScale:o,index:r}=s,l=a.axis,M=o.axis,c=Ll(a,o,s),u=t.length;let h;for(let d=0;d<u;++d){const N=t[d],{[l]:I,[M]:j}=N,D=N._stacks||(N._stacks={});h=D[M]=xl(n,c,I),h[r]=j,h._top=Vs(h,o,!0,s.type),h._bottom=Vs(h,o,!1,s.type)}}function gi(i,t){const e=i.scales;return Object.keys(e).filter(s=>e[s].axis===t).shift()}function Tl(i,t){return jt(i,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function pl(i,t,e){return jt(i,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:e,index:t,mode:"default",type:"data"})}function Xt(i,t){const e=i.controller.index,s=i.vScale&&i.vScale.axis;if(!!s){t=t||i._parsed;for(const n of t){const a=n._stacks;if(!a||a[s]===void 0||a[s][e]===void 0)return;delete a[s][e]}}}const hi=i=>i==="reset"||i==="none",Bs=(i,t)=>t?i:Object.assign({},i),zl=(i,t,e)=>i&&!t.hidden&&t._stacked&&{keys:Zs(e,!0),values:null};class it{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Rs(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Xt(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,s=this.getDataset(),n=(u,h,d,N)=>u==="x"?h:u==="r"?N:d,a=e.xAxisID=C(s.xAxisID,gi(t,"x")),o=e.yAxisID=C(s.yAxisID,gi(t,"y")),r=e.rAxisID=C(s.rAxisID,gi(t,"r")),l=e.indexAxis,M=e.iAxisID=n(l,a,o,r),c=e.vAxisID=n(l,o,a,r);e.xScale=this.getScaleForId(a),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(r),e.iScale=this.getScaleForId(M),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ki(this._data,this),t._stacked&&Xt(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),s=this._data;if(S(e))this._data=ml(e);else if(s!==e){if(s){Ki(s,this);const n=this._cachedMeta;Xt(n),n._parsed=[]}e&&Object.isExtensible(e)&&Vo(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,s=this.getDataset();let n=!1;this._dataCheck();const a=e._stacked;e._stacked=Rs(e.vScale,e),e.stack!==s.stack&&(n=!0,Xt(e),e.stack=s.stack),this._resyncElements(t),(n||a!==e._stacked)&&Ws(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),s=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:s,_data:n}=this,{iScale:a,_stacked:o}=s,r=a.axis;let l=t===0&&e===n.length?!0:s._sorted,M=t>0&&s._parsed[t-1],c,u,h;if(this._parsing===!1)s._parsed=n,s._sorted=!0,h=n;else{_(n[t])?h=this.parseArrayData(s,n,t,e):S(n[t])?h=this.parseObjectData(s,n,t,e):h=this.parsePrimitiveData(s,n,t,e);const d=()=>u[r]===null||M&&u[r]<M[r];for(c=0;c<e;++c)s._parsed[c+t]=u=h[c],l&&(d()&&(l=!1),M=u);s._sorted=l}o&&Ws(this,h)}parsePrimitiveData(t,e,s,n){const{iScale:a,vScale:o}=t,r=a.axis,l=o.axis,M=a.getLabels(),c=a===o,u=new Array(n);let h,d,N;for(h=0,d=n;h<d;++h)N=h+s,u[h]={[r]:c||a.parse(M[N],N),[l]:o.parse(e[N],N)};return u}parseArrayData(t,e,s,n){const{xScale:a,yScale:o}=t,r=new Array(n);let l,M,c,u;for(l=0,M=n;l<M;++l)c=l+s,u=e[c],r[l]={x:a.parse(u[0],c),y:o.parse(u[1],c)};return r}parseObjectData(t,e,s,n){const{xScale:a,yScale:o}=t,{xAxisKey:r="x",yAxisKey:l="y"}=this._parsing,M=new Array(n);let c,u,h,d;for(c=0,u=n;c<u;++c)h=c+s,d=e[h],M[c]={x:a.parse(dt(d,r),h),y:o.parse(dt(d,l),h)};return M}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,s){const n=this.chart,a=this._cachedMeta,o=e[t.axis],r={keys:Zs(n,!0),values:e._stacks[t.axis]};return Ps(r,o,a.index,{mode:s})}updateRangeFromParsed(t,e,s,n){const a=s[e.axis];let o=a===null?NaN:a;const r=n&&s._stacks[e.axis];n&&r&&(n.values=r,o=Ps(n,a,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const s=this._cachedMeta,n=s._parsed,a=s._sorted&&t===s.iScale,o=n.length,r=this._getOtherScale(t),l=zl(e,s,this.chart),M={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=yl(r);let h,d;function N(){d=n[h];const I=d[r.axis];return!V(d[t.axis])||c>I||u<I}for(h=0;h<o&&!(!N()&&(this.updateRangeFromParsed(M,t,d,l),a));++h);if(a){for(h=o-1;h>=0;--h)if(!N()){this.updateRangeFromParsed(M,t,d,l);break}}return M}getAllParsedValues(t){const e=this._cachedMeta._parsed,s=[];let n,a,o;for(n=0,a=e.length;n<a;++n)o=e[n][t.axis],V(o)&&s.push(o);return s}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,s=e.iScale,n=e.vScale,a=this.getParsed(t);return{label:s?""+s.getLabelForValue(a[s.axis]):"",value:n?""+n.getLabelForValue(a[n.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=Al(C(this.options.clip,fl(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,s=this._cachedMeta,n=s.data||[],a=e.chartArea,o=[],r=this._drawStart||0,l=this._drawCount||n.length-r,M=this.options.drawActiveElementsOnTop;let c;for(s.dataset&&s.dataset.draw(t,a,r,l),c=r;c<r+l;++c){const u=n[c];u.hidden||(u.active&&M?o.push(u):u.draw(t,a))}for(c=0;c<o.length;++c)o[c].draw(t,a)}getStyle(t,e){const s=e?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(s):this.resolveDataElementOptions(t||0,s)}getContext(t,e,s){const n=this.getDataset();let a;if(t>=0&&t<this._cachedMeta.data.length){const o=this._cachedMeta.data[t];a=o.$context||(o.$context=pl(this.getContext(),t,o)),a.parsed=this.getParsed(t),a.raw=n.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=Tl(this.chart.getContext(),this.index)),a.dataset=n,a.index=a.datasetIndex=this.index;return a.active=!!e,a.mode=s,a}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",s){const n=e==="active",a=this._cachedDataOpts,o=t+"-"+e,r=a[o],l=this.enableOptionSharing&&J(s);if(r)return Bs(r,l);const M=this.chart.config,c=M.datasetElementScopeKeys(this._type,t),u=n?[`${t}Hover`,"hover",t,""]:[t,""],h=M.getOptionScopes(this.getDataset(),c),d=Object.keys(b.elements[t]),N=()=>this.getContext(s,n),I=M.resolveNamedOptions(h,d,N,u);return I.$shared&&(I.$shared=l,a[o]=Object.freeze(Bs(I,l))),I}_resolveAnimations(t,e,s){const n=this.chart,a=this._cachedDataOpts,o=`animation-${e}`,r=a[o];if(r)return r;let l;if(n.options.animation!==!1){const c=this.chart.config,u=c.datasetAnimationScopeKeys(this._type,e),h=c.getOptionScopes(this.getDataset(),u);l=c.createResolver(h,this.getContext(t,s,e))}const M=new vs(n,l&&l.animations);return l&&l._cacheable&&(a[o]=Object.freeze(M)),M}getSharedOptions(t){if(!!t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||hi(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const s=this.resolveDataElementOptions(t,e),n=this._sharedOptions,a=this.getSharedOptions(s),o=this.includeOptions(e,a)||a!==n;return this.updateSharedOptions(a,e,s),{sharedOptions:a,includeOptions:o}}updateElement(t,e,s,n){hi(n)?Object.assign(t,s):this._resolveAnimations(e,n).update(t,s)}updateSharedOptions(t,e,s){t&&!hi(e)&&this._resolveAnimations(void 0,e).update(t,s)}_setStyle(t,e,s,n){t.active=n;const a=this.getStyle(e,n);this._resolveAnimations(e,s,n).update(t,{options:!n&&this.getSharedOptions(a)||a})}removeHoverStyle(t,e,s){this._setStyle(t,s,"active",!1)}setHoverStyle(t,e,s){this._setStyle(t,s,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,s=this._cachedMeta.data;for(const[r,l,M]of this._syncList)this[r](l,M);this._syncList=[];const n=s.length,a=e.length,o=Math.min(a,n);o&&this.parse(0,o),a>n?this._insertElements(n,a-n,t):a<n&&this._removeElements(a,n-a)}_insertElements(t,e,s=!0){const n=this._cachedMeta,a=n.data,o=t+e;let r;const l=M=>{for(M.length+=e,r=M.length-1;r>=o;r--)M[r]=M[r-e]};for(l(a),r=t;r<o;++r)a[r]=new this.dataElementType;this._parsing&&l(n._parsed),this.parse(t,e),s&&this.updateElements(a,t,e,"reset")}updateElements(t,e,s,n){}_removeElements(t,e){const s=this._cachedMeta;if(this._parsing){const n=s._parsed.splice(t,e);s._stacked&&Xt(s,n)}s.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,s,n]=t;this[e](s,n)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const s=arguments.length-2;s&&this._sync(["_insertElements",t,s])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}it.defaults={},it.prototype.datasetElementType=null,it.prototype.dataElementType=null;function bl(i,t){if(!i._cache.$bar){const e=i.getMatchingVisibleMetas(t);let s=[];for(let n=0,a=e.length;n<a;n++)s=s.concat(e[n].controller.getAllParsedValues(i));i._cache.$bar=qi(s.sort((n,a)=>n-a))}return i._cache.$bar}function Sl(i){const t=i.iScale,e=bl(t,i.type);let s=t._length,n,a,o,r;const l=()=>{o===32767||o===-32768||(J(r)&&(s=Math.min(s,Math.abs(o-r)||s)),r=o)};for(n=0,a=e.length;n<a;++n)o=t.getPixelForValue(e[n]),l();for(r=void 0,n=0,a=t.ticks.length;n<a;++n)o=t.getPixelForTick(n),l();return s}function Cl(i,t,e,s){const n=e.barThickness;let a,o;return E(n)?(a=t.min*e.categoryPercentage,o=e.barPercentage):(a=n*s,o=1),{chunk:a/s,ratio:o,start:t.pixels[i]-a/2}}function El(i,t,e,s){const n=t.pixels,a=n[i];let o=i>0?n[i-1]:null,r=i<n.length-1?n[i+1]:null;const l=e.categoryPercentage;o===null&&(o=a-(r===null?t.end-t.start:r-a)),r===null&&(r=a+a-o);const M=a-(a-Math.min(o,r))/2*l;return{chunk:Math.abs(r-o)/2*l/s,ratio:e.barPercentage,start:M}}function Ol(i,t,e,s){const n=e.parse(i[0],s),a=e.parse(i[1],s),o=Math.min(n,a),r=Math.max(n,a);let l=o,M=r;Math.abs(o)>Math.abs(r)&&(l=r,M=o),t[e.axis]=M,t._custom={barStart:l,barEnd:M,start:n,end:a,min:o,max:r}}function Gs(i,t,e,s){return _(i)?Ol(i,t,e,s):t[e.axis]=e.parse(i,s),t}function Hs(i,t,e,s){const n=i.iScale,a=i.vScale,o=n.getLabels(),r=n===a,l=[];let M,c,u,h;for(M=e,c=e+s;M<c;++M)h=t[M],u={},u[n.axis]=r||n.parse(o[M],M),l.push(Gs(h,u,a,M));return l}function di(i){return i&&i.barStart!==void 0&&i.barEnd!==void 0}function wl(i,t,e){return i!==0?nt(i):(t.isHorizontal()?1:-1)*(t.min>=e?1:-1)}function kl(i){let t,e,s,n,a;return i.horizontal?(t=i.base>i.x,e="left",s="right"):(t=i.base<i.y,e="bottom",s="top"),t?(n="end",a="start"):(n="start",a="end"),{start:e,end:s,reverse:t,top:n,bottom:a}}function _l(i,t,e,s){let n=t.borderSkipped;const a={};if(!n){i.borderSkipped=a;return}if(n===!0){i.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:r,reverse:l,top:M,bottom:c}=kl(i);n==="middle"&&e&&(i.enableBorderRadius=!0,(e._top||0)===s?n=M:(e._bottom||0)===s?n=c:(a[Fs(c,o,r,l)]=!0,n=M)),a[Fs(n,o,r,l)]=!0,i.borderSkipped=a}function Fs(i,t,e,s){return s?(i=Yl(i,t,e),i=Js(i,e,t)):i=Js(i,t,e),i}function Yl(i,t,e){return i===t?e:i===e?t:i}function Js(i,t,e){return i==="start"?t:i==="end"?e:i}function Ql(i,{inflateAmount:t},e){i.inflateAmount=t==="auto"?e===1?.33:0:t}class xe extends it{parsePrimitiveData(t,e,s,n){return Hs(t,e,s,n)}parseArrayData(t,e,s,n){return Hs(t,e,s,n)}parseObjectData(t,e,s,n){const{iScale:a,vScale:o}=t,{xAxisKey:r="x",yAxisKey:l="y"}=this._parsing,M=a.axis==="x"?r:l,c=o.axis==="x"?r:l,u=[];let h,d,N,I;for(h=s,d=s+n;h<d;++h)I=e[h],N={},N[a.axis]=a.parse(dt(I,M),h),u.push(Gs(dt(I,c),N,o,h));return u}updateRangeFromParsed(t,e,s,n){super.updateRangeFromParsed(t,e,s,n);const a=s._custom;a&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:s,vScale:n}=e,a=this.getParsed(t),o=a._custom,r=di(o)?"["+o.start+", "+o.end+"]":""+n.getLabelForValue(a[n.axis]);return{label:""+s.getLabelForValue(a[s.axis]),value:r}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,s,n){const a=n==="reset",{index:o,_cachedMeta:{vScale:r}}=this,l=r.getBasePixel(),M=r.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:h}=this._getSharedOptions(e,n);for(let d=e;d<e+s;d++){const N=this.getParsed(d),I=a||E(N[r.axis])?{base:l,head:l}:this._calculateBarValuePixels(d),j=this._calculateBarIndexPixels(d,c),D=(N._stacks||{})[r.axis],f={horizontal:M,base:I.base,enableBorderRadius:!D||di(N._custom)||o===D._top||o===D._bottom,x:M?I.head:j.center,y:M?j.center:I.head,height:M?j.size:Math.abs(I.size),width:M?Math.abs(I.size):j.size};h&&(f.options=u||this.resolveDataElementOptions(d,t[d].active?"active":n));const m=f.options||t[d].options;_l(f,m,D,o),Ql(f,m,c.ratio),this.updateElement(t[d],d,f,n)}}_getStacks(t,e){const{iScale:s}=this._cachedMeta,n=s.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),a=s.options.stacked,o=[],r=l=>{const M=l.controller.getParsed(e),c=M&&M[l.vScale.axis];if(E(c)||isNaN(c))return!0};for(const l of n)if(!(e!==void 0&&r(l))&&((a===!1||o.indexOf(l.stack)===-1||a===void 0&&l.stack===void 0)&&o.push(l.stack),l.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,s){const n=this._getStacks(t,s),a=e!==void 0?n.indexOf(e):-1;return a===-1?n.length-1:a}_getRuler(){const t=this.options,e=this._cachedMeta,s=e.iScale,n=[];let a,o;for(a=0,o=e.data.length;a<o;++a)n.push(s.getPixelForValue(this.getParsed(a)[s.axis],a));const r=t.barThickness;return{min:r||Sl(e),pixels:n,start:s._startPixel,end:s._endPixel,stackCount:this._getStackCount(),scale:s,grouped:t.grouped,ratio:r?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:s},options:{base:n,minBarLength:a}}=this,o=n||0,r=this.getParsed(t),l=r._custom,M=di(l);let c=r[e.axis],u=0,h=s?this.applyStack(e,r,s):c,d,N;h!==c&&(u=h-c,h=c),M&&(c=l.barStart,h=l.barEnd-l.barStart,c!==0&&nt(c)!==nt(l.barEnd)&&(u=0),u+=c);const I=!E(n)&&!M?n:u;let j=e.getPixelForValue(I);if(this.chart.getDataVisibility(t)?d=e.getPixelForValue(u+h):d=j,N=d-j,Math.abs(N)<a){N=wl(N,e,o)*a,c===o&&(j-=N/2);const D=e.getPixelForDecimal(0),f=e.getPixelForDecimal(1),m=Math.min(D,f),L=Math.max(D,f);j=Math.max(Math.min(j,L),m),d=j+N}if(j===e.getPixelForValue(o)){const D=nt(N)*e.getLineWidthForValue(o)/2;j+=D,N-=D}return{size:N,base:j,head:d,center:d+N/2}}_calculateBarIndexPixels(t,e){const s=e.scale,n=this.options,a=n.skipNull,o=C(n.maxBarThickness,1/0);let r,l;if(e.grouped){const M=a?this._getStackCount(t):e.stackCount,c=n.barThickness==="flex"?El(t,e,n,M):Cl(t,e,n,M),u=this._getStackIndex(this.index,this._cachedMeta.stack,a?t:void 0);r=c.start+c.chunk*u+c.chunk/2,l=Math.min(o,c.chunk*c.ratio)}else r=s.getPixelForValue(this.getParsed(t)[s.axis],t),l=Math.min(o,e.min*e.ratio);return{base:r-l/2,head:r+l/2,center:r,size:l}}draw(){const t=this._cachedMeta,e=t.vScale,s=t.data,n=s.length;let a=0;for(;a<n;++a)this.getParsed(a)[e.axis]!==null&&s[a].draw(this._ctx)}}xe.id="bar",xe.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},xe.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Ni extends it{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,s,n){const a=super.parsePrimitiveData(t,e,s,n);for(let o=0;o<a.length;o++)a[o]._custom=this.resolveDataElementOptions(o+s).radius;return a}parseArrayData(t,e,s,n){const a=super.parseArrayData(t,e,s,n);for(let o=0;o<a.length;o++){const r=e[s+o];a[o]._custom=C(r[2],this.resolveDataElementOptions(o+s).radius)}return a}parseObjectData(t,e,s,n){const a=super.parseObjectData(t,e,s,n);for(let o=0;o<a.length;o++){const r=e[s+o];a[o]._custom=C(r&&r.r&&+r.r,this.resolveDataElementOptions(o+s).radius)}return a}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let s=t.length-1;s>=0;--s)e=Math.max(e,t[s].size(this.resolveDataElementOptions(s))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:s,yScale:n}=e,a=this.getParsed(t),o=s.getLabelForValue(a.x),r=n.getLabelForValue(a.y),l=a._custom;return{label:e.label,value:"("+o+", "+r+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,s,n){const a=n==="reset",{iScale:o,vScale:r}=this._cachedMeta,{sharedOptions:l,includeOptions:M}=this._getSharedOptions(e,n),c=o.axis,u=r.axis;for(let h=e;h<e+s;h++){const d=t[h],N=!a&&this.getParsed(h),I={},j=I[c]=a?o.getPixelForDecimal(.5):o.getPixelForValue(N[c]),D=I[u]=a?r.getBasePixel():r.getPixelForValue(N[u]);I.skip=isNaN(j)||isNaN(D),M&&(I.options=l||this.resolveDataElementOptions(h,d.active?"active":n),a&&(I.options.radius=0)),this.updateElement(d,h,I,n)}}resolveDataElementOptions(t,e){const s=this.getParsed(t);let n=super.resolveDataElementOptions(t,e);n.$shared&&(n=Object.assign({},n,{$shared:!1}));const a=n.radius;return e!=="active"&&(n.radius=0),n.radius+=C(s&&s._custom,a),n}}Ni.id="bubble",Ni.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},Ni.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title(){return""}}}}};function vl(i,t,e){let s=1,n=1,a=0,o=0;if(t<w){const r=i,l=r+t,M=Math.cos(r),c=Math.sin(r),u=Math.cos(l),h=Math.sin(l),d=(m,L,A)=>Vt(m,r,l,!0)?1:Math.max(L,L*e,A,A*e),N=(m,L,A)=>Vt(m,r,l,!0)?-1:Math.min(L,L*e,A,A*e),I=d(0,M,u),j=d(v,c,h),D=N(Q,M,u),f=N(Q+v,c,h);s=(I-D)/2,n=(j-f)/2,a=-(I+D)/2,o=-(j+f)/2}return{ratioX:s,ratioY:n,offsetX:a,offsetY:o}}class $t extends it{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const s=this.getDataset().data,n=this._cachedMeta;if(this._parsing===!1)n._parsed=s;else{let a=l=>+s[l];if(S(s[t])){const{key:l="value"}=this._parsing;a=M=>+dt(s[M],l)}let o,r;for(o=t,r=t+e;o<r;++o)n._parsed[o]=a(o)}}_getRotation(){return tt(this.options.rotation-90)}_getCircumference(){return tt(this.options.circumference)}_getRotationExtents(){let t=w,e=-w;for(let s=0;s<this.chart.data.datasets.length;++s)if(this.chart.isDatasetVisible(s)){const n=this.chart.getDatasetMeta(s).controller,a=n._getRotation(),o=n._getCircumference();t=Math.min(t,a),e=Math.max(e,a+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:s}=e,n=this._cachedMeta,a=n.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,r=Math.max((Math.min(s.width,s.height)-o)/2,0),l=Math.min(So(this.options.cutout,r),1),M=this._getRingWeight(this.index),{circumference:c,rotation:u}=this._getRotationExtents(),{ratioX:h,ratioY:d,offsetX:N,offsetY:I}=vl(u,c,l),j=(s.width-o)/h,D=(s.height-o)/d,f=Math.max(Math.min(j,D)/2,0),m=Ri(this.options.radius,f),L=Math.max(m*l,0),A=(m-L)/this._getVisibleDatasetWeightTotal();this.offsetX=N*m,this.offsetY=I*m,n.total=this.calculateTotal(),this.outerRadius=m-A*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-A*M,0),this.updateElements(a,0,a.length,t)}_circumference(t,e){const s=this.options,n=this._cachedMeta,a=this._getCircumference();return e&&s.animation.animateRotate||!this.chart.getDataVisibility(t)||n._parsed[t]===null||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*a/w)}updateElements(t,e,s,n){const a=n==="reset",o=this.chart,r=o.chartArea,M=o.options.animation,c=(r.left+r.right)/2,u=(r.top+r.bottom)/2,h=a&&M.animateScale,d=h?0:this.innerRadius,N=h?0:this.outerRadius,{sharedOptions:I,includeOptions:j}=this._getSharedOptions(e,n);let D=this._getRotation(),f;for(f=0;f<e;++f)D+=this._circumference(f,a);for(f=e;f<e+s;++f){const m=this._circumference(f,a),L=t[f],A={x:c+this.offsetX,y:u+this.offsetY,startAngle:D,endAngle:D+m,circumference:m,outerRadius:N,innerRadius:d};j&&(A.options=I||this.resolveDataElementOptions(f,L.active?"active":n)),D+=m,this.updateElement(L,f,A,n)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let s=0,n;for(n=0;n<e.length;n++){const a=t._parsed[n];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(n)&&!e[n].hidden&&(s+=Math.abs(a))}return s}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?w*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,s=this.chart,n=s.data.labels||[],a=Jt(e._parsed[t],s.options.locale);return{label:n[t]||"",value:a}}getMaxBorderWidth(t){let e=0;const s=this.chart;let n,a,o,r,l;if(!t){for(n=0,a=s.data.datasets.length;n<a;++n)if(s.isDatasetVisible(n)){o=s.getDatasetMeta(n),t=o.data,r=o.controller;break}}if(!t)return 0;for(n=0,a=t.length;n<a;++n)l=r.resolveDataElementOptions(n),l.borderAlign!=="inner"&&(e=Math.max(e,l.borderWidth||0,l.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let s=0,n=t.length;s<n;++s){const a=this.resolveDataElementOptions(s);e=Math.max(e,a.offset||0,a.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let s=0;s<t;++s)this.chart.isDatasetVisible(s)&&(e+=this._getRingWeight(s));return e}_getRingWeight(t){return Math.max(C(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}$t.id="doughnut",$t.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},$t.descriptors={_scriptable:i=>i!=="spacing",_indexable:i=>i!=="spacing"},$t.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(i){const t=i.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:e}}=i.legend.options;return t.labels.map((s,n)=>{const o=i.getDatasetMeta(0).controller.getStyle(n);return{text:s,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:e,hidden:!i.getDataVisibility(n),index:n}})}return[]}},onClick(i,t,e){e.chart.toggleDataVisibility(t.index),e.chart.update()}},tooltip:{callbacks:{title(){return""},label(i){let t=i.label;const e=": "+i.formattedValue;return _(t)?(t=t.slice(),t[0]+=e):t+=e,t}}}}};class Ii extends it{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:s,data:n=[],_dataset:a}=e,o=this.chart._animationsDisabled;let{start:r,count:l}=ss(e,n,o);this._drawStart=r,this._drawCount=l,ns(e)&&(r=0,l=n.length),s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!a._decimated,s.points=n;const M=this.resolveDatasetElementOptions(t);this.options.showLine||(M.borderWidth=0),M.segment=this.options.segment,this.updateElement(s,void 0,{animated:!o,options:M},t),this.updateElements(n,r,l,t)}updateElements(t,e,s,n){const a=n==="reset",{iScale:o,vScale:r,_stacked:l,_dataset:M}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(e,n),h=o.axis,d=r.axis,{spanGaps:N,segment:I}=this.options,j=Ct(N)?N:Number.POSITIVE_INFINITY,D=this.chart._animationsDisabled||a||n==="none";let f=e>0&&this.getParsed(e-1);for(let m=e;m<e+s;++m){const L=t[m],A=this.getParsed(m),y=D?L:{},x=E(A[d]),p=y[h]=o.getPixelForValue(A[h],m),z=y[d]=a||x?r.getBasePixel():r.getPixelForValue(l?this.applyStack(r,A,l):A[d],m);y.skip=isNaN(p)||isNaN(z)||x,y.stop=m>0&&Math.abs(A[h]-f[h])>j,I&&(y.parsed=A,y.raw=M.data[m]),u&&(y.options=c||this.resolveDataElementOptions(m,L.active?"active":n)),D||this.updateElement(L,m,y,n),f=A}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,s=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return s;const a=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(s,a,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Ii.id="line",Ii.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Ii.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Di extends it{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,s=this.chart,n=s.data.labels||[],a=Jt(e._parsed[t].r,s.options.locale);return{label:n[t]||"",value:a}}parseObjectData(t,e,s,n){return zs.bind(this)(t,e,s,n)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((s,n)=>{const a=this.getParsed(n).r;!isNaN(a)&&this.chart.getDataVisibility(n)&&(a<e.min&&(e.min=a),a>e.max&&(e.max=a))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,s=t.options,n=Math.min(e.right-e.left,e.bottom-e.top),a=Math.max(n/2,0),o=Math.max(s.cutoutPercentage?a/100*s.cutoutPercentage:1,0),r=(a-o)/t.getVisibleDatasetCount();this.outerRadius=a-r*this.index,this.innerRadius=this.outerRadius-r}updateElements(t,e,s,n){const a=n==="reset",o=this.chart,l=o.options.animation,M=this._cachedMeta.rScale,c=M.xCenter,u=M.yCenter,h=M.getIndexAngle(0)-.5*Q;let d=h,N;const I=360/this.countVisibleElements();for(N=0;N<e;++N)d+=this._computeAngle(N,n,I);for(N=e;N<e+s;N++){const j=t[N];let D=d,f=d+this._computeAngle(N,n,I),m=o.getDataVisibility(N)?M.getDistanceFromCenterForValue(this.getParsed(N).r):0;d=f,a&&(l.animateScale&&(m=0),l.animateRotate&&(D=f=h));const L={x:c,y:u,innerRadius:0,outerRadius:m,startAngle:D,endAngle:f,options:this.resolveDataElementOptions(N,j.active?"active":n)};this.updateElement(j,N,L,n)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach((s,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++}),e}_computeAngle(t,e,s){return this.chart.getDataVisibility(t)?tt(this.resolveDataElementOptions(t,e).angle||s):0}}Di.id="polarArea",Di.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Di.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(i){const t=i.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:e}}=i.legend.options;return t.labels.map((s,n)=>{const o=i.getDatasetMeta(0).controller.getStyle(n);return{text:s,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:e,hidden:!i.getDataVisibility(n),index:n}})}return[]}},onClick(i,t,e){e.chart.toggleDataVisibility(t.index),e.chart.update()}},tooltip:{callbacks:{title(){return""},label(i){return i.chart.data.labels[i.dataIndex]+": "+i.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Xs extends $t{}Xs.id="pie",Xs.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class ji extends it{getLabelAndValue(t){const e=this._cachedMeta.vScale,s=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(s[e.axis])}}parseObjectData(t,e,s,n){return zs.bind(this)(t,e,s,n)}update(t){const e=this._cachedMeta,s=e.dataset,n=e.data||[],a=e.iScale.getLabels();if(s.points=n,t!=="resize"){const o=this.resolveDatasetElementOptions(t);this.options.showLine||(o.borderWidth=0);const r={_loop:!0,_fullLoop:a.length===n.length,options:o};this.updateElement(s,void 0,r,t)}this.updateElements(n,0,n.length,t)}updateElements(t,e,s,n){const a=this._cachedMeta.rScale,o=n==="reset";for(let r=e;r<e+s;r++){const l=t[r],M=this.resolveDataElementOptions(r,l.active?"active":n),c=a.getPointPositionForValue(r,this.getParsed(r).r),u=o?a.xCenter:c.x,h=o?a.yCenter:c.y,d={x:u,y:h,angle:c.angle,skip:isNaN(u)||isNaN(h),options:M};this.updateElement(l,r,d,n)}}}ji.id="radar",ji.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},ji.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class ut{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:s}=this.getProps(["x","y"],t);return{x:e,y:s}}hasValue(){return Ct(this.x)&&Ct(this.y)}getProps(t,e){const s=this.$animations;if(!e||!s)return this;const n={};return t.forEach(a=>{n[a]=s[a]&&s[a].active()?s[a]._to:this[a]}),n}}ut.defaults={},ut.defaultRoutes=void 0;const $s={values(i){return _(i)?i:""+i},numeric(i,t,e){if(i===0)return"0";const s=this.chart.options.locale;let n,a=i;if(e.length>1){const M=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(M<1e-4||M>1e15)&&(n="scientific"),a=Ul(i,e)}const o=X(Math.abs(a)),r=Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:n,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(l,this.options.ticks.format),Jt(i,s,l)},logarithmic(i,t,e){if(i===0)return"0";const s=i/Math.pow(10,Math.floor(X(i)));return s===1||s===2||s===5?$s.numeric.call(this,i,t,e):""}};function Ul(i,t){let e=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(e)>=1&&i!==Math.floor(i)&&(e=i-Math.floor(i)),e}var Te={formatters:$s};b.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(i,t)=>t.lineWidth,tickColor:(i,t)=>t.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Te.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),b.route("scale.ticks","color","","color"),b.route("scale.grid","color","","borderColor"),b.route("scale.grid","borderColor","","borderColor"),b.route("scale.title","color","","color"),b.describe("scale",{_fallback:!1,_scriptable:i=>!i.startsWith("before")&&!i.startsWith("after")&&i!=="callback"&&i!=="parser",_indexable:i=>i!=="borderDash"&&i!=="tickBorderDash"}),b.describe("scales",{_fallback:"scale"}),b.describe("scale.ticks",{_scriptable:i=>i!=="backdropPadding"&&i!=="callback",_indexable:i=>i!=="backdropPadding"});function Zl(i,t){const e=i.options.ticks,s=e.maxTicksLimit||Pl(i),n=e.major.enabled?Vl(t):[],a=n.length,o=n[0],r=n[a-1],l=[];if(a>s)return Wl(t,l,n,a/s),l;const M=Rl(n,t,s);if(a>0){let c,u;const h=a>1?Math.round((r-o)/(a-1)):null;for(pe(t,l,M,E(h)?0:o-h,o),c=0,u=a-1;c<u;c++)pe(t,l,M,n[c],n[c+1]);return pe(t,l,M,r,E(h)?t.length:r+h),l}return pe(t,l,M),l}function Pl(i){const t=i.options.offset,e=i._tickSize(),s=i._length/e+(t?0:1),n=i._maxLength/e;return Math.floor(Math.min(s,n))}function Rl(i,t,e){const s=Bl(i),n=t.length/e;if(!s)return Math.max(n,1);const a=Qo(s);for(let o=0,r=a.length-1;o<r;o++){const l=a[o];if(l>n)return l}return Math.max(n,1)}function Vl(i){const t=[];let e,s;for(e=0,s=i.length;e<s;e++)i[e].major&&t.push(e);return t}function Wl(i,t,e,s){let n=0,a=e[0],o;for(s=Math.ceil(s),o=0;o<i.length;o++)o===a&&(t.push(i[o]),n++,a=e[n*s])}function pe(i,t,e,s,n){const a=C(s,0),o=Math.min(C(n,i.length),i.length);let r=0,l,M,c;for(e=Math.ceil(e),n&&(l=n-s,e=l/Math.floor(l/e)),c=a;c<0;)r++,c=Math.round(a+r*e);for(M=Math.max(a,0);M<o;M++)M===c&&(t.push(i[M]),r++,c=Math.round(a+r*e))}function Bl(i){const t=i.length;let e,s;if(t<2)return!1;for(s=i[0],e=1;e<t;++e)if(i[e]-i[e-1]!==s)return!1;return s}const Gl=i=>i==="left"?"right":i==="right"?"left":i,Ks=(i,t,e)=>t==="top"||t==="left"?i[t]+e:i[t]-e;function qs(i,t){const e=[],s=i.length/t,n=i.length;let a=0;for(;a<n;a+=s)e.push(i[Math.floor(a)]);return e}function Hl(i,t,e){const s=i.ticks.length,n=Math.min(t,s-1),a=i._startPixel,o=i._endPixel,r=1e-6;let l=i.getPixelForTick(n),M;if(!(e&&(s===1?M=Math.max(l-a,o-l):t===0?M=(i.getPixelForTick(1)-l)/2:M=(l-i.getPixelForTick(n-1))/2,l+=n<t?M:-M,l<a-r||l>o+r)))return l}function Fl(i,t){O(i,e=>{const s=e.gc,n=s.length/2;let a;if(n>t){for(a=0;a<n;++a)delete e.data[s[a]];s.splice(0,n)}})}function Kt(i){return i.drawTicks?i.tickLength:0}function tn(i,t){if(!i.display)return 0;const e=H(i.font,t),s=K(i.padding);return(_(i.text)?i.text.length:1)*e.lineHeight+s.height}function Jl(i,t){return jt(i,{scale:t,type:"scale"})}function Xl(i,t,e){return jt(i,{tick:e,index:t,type:"tick"})}function $l(i,t,e){let s=Bo(i);return(e&&t!=="right"||!e&&t==="right")&&(s=Gl(s)),s}function Kl(i,t,e,s){const{top:n,left:a,bottom:o,right:r,chart:l}=i,{chartArea:M,scales:c}=l;let u=0,h,d,N;const I=o-n,j=r-a;if(i.isHorizontal()){if(d=is(s,a,r),S(e)){const D=Object.keys(e)[0],f=e[D];N=c[D].getPixelForValue(f)+I-t}else e==="center"?N=(M.bottom+M.top)/2+I-t:N=Ks(i,e,t);h=r-a}else{if(S(e)){const D=Object.keys(e)[0],f=e[D];d=c[D].getPixelForValue(f)-j+t}else e==="center"?d=(M.left+M.right)/2-j+t:d=Ks(i,e,t);N=is(s,o,n),u=e==="left"?-v:v}return{titleX:d,titleY:N,maxWidth:h,rotation:u}}class zt extends ut{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:s,_suggestedMax:n}=this;return t=F(t,Number.POSITIVE_INFINITY),e=F(e,Number.NEGATIVE_INFINITY),s=F(s,Number.POSITIVE_INFINITY),n=F(n,Number.NEGATIVE_INFINITY),{min:F(t,s),max:F(e,n),minDefined:V(t),maxDefined:V(e)}}getMinMax(t){let{min:e,max:s,minDefined:n,maxDefined:a}=this.getUserBounds(),o;if(n&&a)return{min:e,max:s};const r=this.getMatchingVisibleMetas();for(let l=0,M=r.length;l<M;++l)o=r[l].controller.getMinMax(this,t),n||(e=Math.min(e,o.min)),a||(s=Math.max(s,o.max));return e=a&&e>s?s:e,s=n&&e>s?e:s,{min:F(e,F(s,e)),max:F(s,F(e,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Y(this.options.beforeUpdate,[this])}update(t,e,s){const{beginAtZero:n,grace:a,ticks:o}=this.options,r=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=pr(this,a,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=r<this.ticks.length;this._convertTicksToLabels(l?qs(this.ticks,r):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=Zl(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,e,s;this.isHorizontal()?(e=this.left,s=this.right):(e=this.top,s=this.bottom,t=!t),this._startPixel=e,this._endPixel=s,this._reversePixels=t,this._length=s-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Y(this.options.afterUpdate,[this])}beforeSetDimensions(){Y(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Y(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Y(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Y(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let s,n,a;for(s=0,n=t.length;s<n;s++)a=t[s],a.label=Y(e.callback,[a.value,s,t],this)}afterTickToLabelConversion(){Y(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Y(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,s=this.ticks.length,n=e.minRotation||0,a=e.maxRotation;let o=n,r,l,M;if(!this._isVisible()||!e.display||n>=a||s<=1||!this.isHorizontal()){this.labelRotation=n;return}const c=this._getLabelSizes(),u=c.widest.width,h=c.highest.height,d=B(this.chart.width-u,0,this.maxWidth);r=t.offset?this.maxWidth/s:d/(s-1),u+6>r&&(r=d/(s-(t.offset?.5:1)),l=this.maxHeight-Kt(t.grid)-e.padding-tn(t.title,this.chart.options.font),M=Math.sqrt(u*u+h*h),o=He(Math.min(Math.asin(B((c.highest.height+6)/r,-1,1)),Math.asin(B(l/M,-1,1))-Math.asin(B(h/M,-1,1)))),o=Math.max(n,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){Y(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Y(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:s,title:n,grid:a}}=this,o=this._isVisible(),r=this.isHorizontal();if(o){const l=tn(n,e.options.font);if(r?(t.width=this.maxWidth,t.height=Kt(a)+l):(t.height=this.maxHeight,t.width=Kt(a)+l),s.display&&this.ticks.length){const{first:M,last:c,widest:u,highest:h}=this._getLabelSizes(),d=s.padding*2,N=tt(this.labelRotation),I=Math.cos(N),j=Math.sin(N);if(r){const D=s.mirror?0:j*u.width+I*h.height;t.height=Math.min(this.maxHeight,t.height+D+d)}else{const D=s.mirror?0:I*u.width+j*h.height;t.width=Math.min(this.maxWidth,t.width+D+d)}this._calculatePadding(M,c,j,I)}}this._handleMargins(),r?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,s,n){const{ticks:{align:a,padding:o},position:r}=this.options,l=this.labelRotation!==0,M=r!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,d=0;l?M?(h=n*t.width,d=s*e.height):(h=s*t.height,d=n*e.width):a==="start"?d=e.width:a==="end"?h=t.width:a!=="inner"&&(h=t.width/2,d=e.width/2),this.paddingLeft=Math.max((h-c+o)*this.width/(this.width-c),0),this.paddingRight=Math.max((d-u+o)*this.width/(this.width-u),0)}else{let c=e.height/2,u=t.height/2;a==="start"?(c=0,u=t.height):a==="end"&&(c=e.height,u=0),this.paddingTop=c+o,this.paddingBottom=u+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Y(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return e==="top"||e==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let e,s;for(e=0,s=t.length;e<s;e++)E(t[e].label)&&(t.splice(e,1),s--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let s=this.ticks;e<s.length&&(s=qs(s,e)),this._labelSizes=t=this._computeLabelSizes(s,s.length)}return t}_computeLabelSizes(t,e){const{ctx:s,_longestTextCache:n}=this,a=[],o=[];let r=0,l=0,M,c,u,h,d,N,I,j,D,f,m;for(M=0;M<e;++M){if(h=t[M].label,d=this._resolveTickFontOptions(M),s.font=N=d.string,I=n[N]=n[N]||{data:{},gc:[]},j=d.lineHeight,D=f=0,!E(h)&&!_(h))D=De(s,I.data,I.gc,D,h),f=j;else if(_(h))for(c=0,u=h.length;c<u;++c)m=h[c],!E(m)&&!_(m)&&(D=De(s,I.data,I.gc,D,m),f+=j);a.push(D),o.push(f),r=Math.max(D,r),l=Math.max(f,l)}Fl(n,e);const L=a.indexOf(r),A=o.indexOf(l),y=x=>({width:a[x]||0,height:o[x]||0});return{first:y(0),last:y(e-1),widest:y(L),highest:y(A),widths:a,heights:o}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return Zo(this._alignToPixels?yt(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const s=e[t];return s.$context||(s.$context=Xl(this.getContext(),t,s))}return this.$context||(this.$context=Jl(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,e=tt(this.labelRotation),s=Math.abs(Math.cos(e)),n=Math.abs(Math.sin(e)),a=this._getLabelSizes(),o=t.autoSkipPadding||0,r=a?a.widest.width+o:0,l=a?a.highest.height+o:0;return this.isHorizontal()?l*s>r*n?r/s:l/n:l*n<r*s?l/s:r/n}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,s=this.chart,n=this.options,{grid:a,position:o}=n,r=a.offset,l=this.isHorizontal(),c=this.ticks.length+(r?1:0),u=Kt(a),h=[],d=a.setContext(this.getContext()),N=d.drawBorder?d.borderWidth:0,I=N/2,j=function(T){return yt(s,T,N)};let D,f,m,L,A,y,x,p,z,k,U,P;if(o==="top")D=j(this.bottom),y=this.bottom-u,p=D-I,k=j(t.top)+I,P=t.bottom;else if(o==="bottom")D=j(this.top),k=t.top,P=j(t.bottom)-I,y=D+I,p=this.top+u;else if(o==="left")D=j(this.right),A=this.right-u,x=D-I,z=j(t.left)+I,U=t.right;else if(o==="right")D=j(this.left),z=t.left,U=j(t.right)-I,A=D+I,x=this.left+u;else if(e==="x"){if(o==="center")D=j((t.top+t.bottom)/2+.5);else if(S(o)){const T=Object.keys(o)[0],R=o[T];D=j(this.chart.scales[T].getPixelForValue(R))}k=t.top,P=t.bottom,y=D+I,p=y+u}else if(e==="y"){if(o==="center")D=j((t.left+t.right)/2);else if(S(o)){const T=Object.keys(o)[0],R=o[T];D=j(this.chart.scales[T].getPixelForValue(R))}A=D-I,x=A-u,z=t.left,U=t.right}const ht=C(n.ticks.maxTicksLimit,c),st=Math.max(1,Math.ceil(c/ht));for(f=0;f<c;f+=st){const T=a.setContext(this.getContext(f)),R=T.lineWidth,Z=T.color,St=T.borderDash||[],_i=T.borderDashOffset,Qt=T.tickWidth,Be=T.tickColor,vt=T.tickBorderDash||[],re=T.tickBorderDashOffset;m=Hl(this,f,r),m!==void 0&&(L=yt(s,m,R),l?A=x=z=U=L:y=p=k=P=L,h.push({tx1:A,ty1:y,tx2:x,ty2:p,x1:z,y1:k,x2:U,y2:P,width:R,color:Z,borderDash:St,borderDashOffset:_i,tickWidth:Qt,tickColor:Be,tickBorderDash:vt,tickBorderDashOffset:re}))}return this._ticksLength=c,this._borderValue=D,h}_computeLabelItems(t){const e=this.axis,s=this.options,{position:n,ticks:a}=s,o=this.isHorizontal(),r=this.ticks,{align:l,crossAlign:M,padding:c,mirror:u}=a,h=Kt(s.grid),d=h+c,N=u?-c:d,I=-tt(this.labelRotation),j=[];let D,f,m,L,A,y,x,p,z,k,U,P,ht="middle";if(n==="top")y=this.bottom-N,x=this._getXAxisLabelAlignment();else if(n==="bottom")y=this.top+N,x=this._getXAxisLabelAlignment();else if(n==="left"){const T=this._getYAxisLabelAlignment(h);x=T.textAlign,A=T.x}else if(n==="right"){const T=this._getYAxisLabelAlignment(h);x=T.textAlign,A=T.x}else if(e==="x"){if(n==="center")y=(t.top+t.bottom)/2+d;else if(S(n)){const T=Object.keys(n)[0],R=n[T];y=this.chart.scales[T].getPixelForValue(R)+d}x=this._getXAxisLabelAlignment()}else if(e==="y"){if(n==="center")A=(t.left+t.right)/2-d;else if(S(n)){const T=Object.keys(n)[0],R=n[T];A=this.chart.scales[T].getPixelForValue(R)}x=this._getYAxisLabelAlignment(h).textAlign}e==="y"&&(l==="start"?ht="top":l==="end"&&(ht="bottom"));const st=this._getLabelSizes();for(D=0,f=r.length;D<f;++D){m=r[D],L=m.label;const T=a.setContext(this.getContext(D));p=this.getPixelForTick(D)+a.labelOffset,z=this._resolveTickFontOptions(D),k=z.lineHeight,U=_(L)?L.length:1;const R=U/2,Z=T.color,St=T.textStrokeColor,_i=T.textStrokeWidth;let Qt=x;o?(A=p,x==="inner"&&(D===f-1?Qt=this.options.reverse?"left":"right":D===0?Qt=this.options.reverse?"right":"left":Qt="center"),n==="top"?M==="near"||I!==0?P=-U*k+k/2:M==="center"?P=-st.highest.height/2-R*k+k:P=-st.highest.height+k/2:M==="near"||I!==0?P=k/2:M==="center"?P=st.highest.height/2-R*k:P=st.highest.height-U*k,u&&(P*=-1)):(y=p,P=(1-U)*k/2);let Be;if(T.showLabelBackdrop){const vt=K(T.backdropPadding),re=st.heights[D],Yi=st.widths[D];let Qi=y+P-vt.top,vi=A-vt.left;switch(ht){case"middle":Qi-=re/2;break;case"bottom":Qi-=re;break}switch(x){case"center":vi-=Yi/2;break;case"right":vi-=Yi;break}Be={left:vi,top:Qi,width:Yi+vt.width,height:re+vt.height,color:T.backdropColor}}j.push({rotation:I,label:L,font:z,color:Z,strokeColor:St,strokeWidth:_i,textOffset:P,textAlign:Qt,textBaseline:ht,translation:[A,y],backdrop:Be})}return j}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-tt(this.labelRotation))return t==="top"?"left":"right";let n="center";return e.align==="start"?n="left":e.align==="end"?n="right":e.align==="inner"&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:s,mirror:n,padding:a}}=this.options,o=this._getLabelSizes(),r=t+a,l=o.widest.width;let M,c;return e==="left"?n?(c=this.right+a,s==="near"?M="left":s==="center"?(M="center",c+=l/2):(M="right",c+=l)):(c=this.right-r,s==="near"?M="right":s==="center"?(M="center",c-=l/2):(M="left",c=this.left)):e==="right"?n?(c=this.left+a,s==="near"?M="right":s==="center"?(M="center",c-=l/2):(M="left",c-=l)):(c=this.left+r,s==="near"?M="left":s==="center"?(M="center",c+=l/2):(M="right",c=this.right)):M="right",{textAlign:M,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:s,top:n,width:a,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(s,n,a,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex(a=>a.value===t);return n>=0?e.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const e=this.options.grid,s=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let a,o;const r=(l,M,c)=>{!c.width||!c.color||(s.save(),s.lineWidth=c.width,s.strokeStyle=c.color,s.setLineDash(c.borderDash||[]),s.lineDashOffset=c.borderDashOffset,s.beginPath(),s.moveTo(l.x,l.y),s.lineTo(M.x,M.y),s.stroke(),s.restore())};if(e.display)for(a=0,o=n.length;a<o;++a){const l=n[a];e.drawOnChartArea&&r({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),e.drawTicks&&r({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:s}}=this,n=s.setContext(this.getContext()),a=s.drawBorder?n.borderWidth:0;if(!a)return;const o=s.setContext(this.getContext(0)).lineWidth,r=this._borderValue;let l,M,c,u;this.isHorizontal()?(l=yt(t,this.left,a)-a/2,M=yt(t,this.right,o)+o/2,c=u=r):(c=yt(t,this.top,a)-a/2,u=yt(t,this.bottom,o)+o/2,l=M=r),e.save(),e.lineWidth=n.borderWidth,e.strokeStyle=n.borderColor,e.beginPath(),e.moveTo(l,c),e.lineTo(M,u),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const s=this.ctx,n=this._computeLabelArea();n&&js(s,n);const a=this._labelItems||(this._labelItems=this._computeLabelItems(t));let o,r;for(o=0,r=a.length;o<r;++o){const l=a[o],M=l.font,c=l.label;l.backdrop&&(s.fillStyle=l.backdrop.color,s.fillRect(l.backdrop.left,l.backdrop.top,l.backdrop.width,l.backdrop.height));let u=l.textOffset;je(s,c,0,u,M,l)}n&&fs(s)}drawTitle(){const{ctx:t,options:{position:e,title:s,reverse:n}}=this;if(!s.display)return;const a=H(s.font),o=K(s.padding),r=s.align;let l=a.lineHeight/2;e==="bottom"||e==="center"||S(e)?(l+=o.bottom,_(s.text)&&(l+=a.lineHeight*(s.text.length-1))):l+=o.top;const{titleX:M,titleY:c,maxWidth:u,rotation:h}=Kl(this,l,e,r);je(t,s.text,0,0,a,{color:s.color,maxWidth:u,rotation:h,textAlign:$l(r,e,n),textBaseline:"middle",translation:[M,c]})}draw(t){!this._isVisible()||(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,s=C(t.grid&&t.grid.z,-1);return!this._isVisible()||this.draw!==zt.prototype.draw?[{z:e,draw:n=>{this.draw(n)}}]:[{z:s,draw:n=>{this.drawBackground(),this.drawGrid(n),this.drawTitle()}},{z:s+1,draw:()=>{this.drawBorder()}},{z:e,draw:n=>{this.drawLabels(n)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",n=[];let a,o;for(a=0,o=e.length;a<o;++a){const r=e[a];r[s]===this.id&&(!t||r.type===t)&&n.push(r)}return n}_resolveTickFontOptions(t){const e=this.options.ticks.setContext(this.getContext(t));return H(e.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class ze{constructor(t,e,s){this.type=t,this.scope=e,this.override=s,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let s;eM(e)&&(s=this.register(e));const n=this.items,a=t.id,o=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in n||(n[a]=t,ql(t,o,s),this.override&&b.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,s=t.id,n=this.scope;s in e&&delete e[s],n&&s in b[n]&&(delete b[n][s],this.override&&delete Lt[s])}}function ql(i,t,e){const s=Ut(Object.create(null),[e?b.get(e):{},b.get(t),i.defaults]);b.set(t,s),i.defaultRoutes&&tM(t,i.defaultRoutes),i.descriptors&&b.describe(t,i.descriptors)}function tM(i,t){Object.keys(t).forEach(e=>{const s=e.split("."),n=s.pop(),a=[i].concat(s).join("."),o=t[e].split("."),r=o.pop(),l=o.join(".");b.route(a,n,l,r)})}function eM(i){return"id"in i&&"defaults"in i}class iM{constructor(){this.controllers=new ze(it,"datasets",!0),this.elements=new ze(ut,"elements"),this.plugins=new ze(Object,"plugins"),this.scales=new ze(zt,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,s){[...e].forEach(n=>{const a=s||this._getRegistryForType(n);s||a.isForType(n)||a===this.plugins&&n.id?this._exec(t,a,n):O(n,o=>{const r=s||this._getRegistryForType(o);this._exec(t,r,o)})})}_exec(t,e,s){const n=Ge(t);Y(s["before"+n],[],s),e[t](s),Y(s["after"+n],[],s)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const s=this._typedRegistries[e];if(s.isForType(t))return s}return this.plugins}_get(t,e,s){const n=e.get(t);if(n===void 0)throw new Error('"'+t+'" is not a registered '+s+".");return n}}var at=new iM;class fi extends it{update(t){const e=this._cachedMeta,{data:s=[]}=e,n=this.chart._animationsDisabled;let{start:a,count:o}=ss(e,s,n);if(this._drawStart=a,this._drawCount=o,ns(e)&&(a=0,o=s.length),this.options.showLine){const{dataset:r,_dataset:l}=e;r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!l._decimated,r.points=s;const M=this.resolveDatasetElementOptions(t);M.segment=this.options.segment,this.updateElement(r,void 0,{animated:!n,options:M},t)}this.updateElements(s,a,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=at.getElement("line")),super.addElements()}updateElements(t,e,s,n){const a=n==="reset",{iScale:o,vScale:r,_stacked:l,_dataset:M}=this._cachedMeta,c=this.resolveDataElementOptions(e,n),u=this.getSharedOptions(c),h=this.includeOptions(n,u),d=o.axis,N=r.axis,{spanGaps:I,segment:j}=this.options,D=Ct(I)?I:Number.POSITIVE_INFINITY,f=this.chart._animationsDisabled||a||n==="none";let m=e>0&&this.getParsed(e-1);for(let L=e;L<e+s;++L){const A=t[L],y=this.getParsed(L),x=f?A:{},p=E(y[N]),z=x[d]=o.getPixelForValue(y[d],L),k=x[N]=a||p?r.getBasePixel():r.getPixelForValue(l?this.applyStack(r,y,l):y[N],L);x.skip=isNaN(z)||isNaN(k)||p,x.stop=L>0&&Math.abs(y[d]-m[d])>D,j&&(x.parsed=y,x.raw=M.data[L]),h&&(x.options=u||this.resolveDataElementOptions(L,A.active?"active":n)),f||this.updateElement(A,L,x,n),m=y}this.updateSharedOptions(u,n,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let r=0;for(let l=e.length-1;l>=0;--l)r=Math.max(r,e[l].size(this.resolveDataElementOptions(l))/2);return r>0&&r}const s=t.dataset,n=s.options&&s.options.borderWidth||0;if(!e.length)return n;const a=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(n,a,o)/2}}fi.id="scatter",fi.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},fi.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title(){return""},label(i){return"("+i.label+", "+i.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};function bt(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Ai{constructor(t){this.options=t||{}}init(t){}formats(){return bt()}parse(t,e){return bt()}format(t,e){return bt()}add(t,e,s){return bt()}diff(t,e,s){return bt()}startOf(t,e,s){return bt()}endOf(t,e){return bt()}}Ai.override=function(i){Object.assign(Ai.prototype,i)};var sM={_date:Ai};function nM(i,t,e,s){const{controller:n,data:a,_sorted:o}=i,r=n._cachedMeta.iScale;if(r&&t===r.axis&&t!=="r"&&o&&a.length){const l=r._reversePixels?Po:mt;if(s){if(n._sharedOptions){const M=a[0],c=typeof M.getRange=="function"&&M.getRange(t);if(c){const u=l(a,t,e-c),h=l(a,t,e+c);return{lo:u.lo,hi:h.hi}}}}else return l(a,t,e)}return{lo:0,hi:a.length-1}}function qt(i,t,e,s,n){const a=i.getSortedVisibleDatasetMetas(),o=e[t];for(let r=0,l=a.length;r<l;++r){const{index:M,data:c}=a[r],{lo:u,hi:h}=nM(a[r],t,o,n);for(let d=u;d<=h;++d){const N=c[d];N.skip||s(N,M,d)}}}function aM(i){const t=i.indexOf("x")!==-1,e=i.indexOf("y")!==-1;return function(s,n){const a=t?Math.abs(s.x-n.x):0,o=e?Math.abs(s.y-n.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function mi(i,t,e,s,n){const a=[];return!n&&!i.isPointInArea(t)||qt(i,e,t,function(r,l,M){!n&&!Ft(r,i.chartArea,0)||r.inRange(t.x,t.y,s)&&a.push({element:r,datasetIndex:l,index:M})},!0),a}function oM(i,t,e,s){let n=[];function a(o,r,l){const{startAngle:M,endAngle:c}=o.getProps(["startAngle","endAngle"],s),{angle:u}=Xi(o,{x:t.x,y:t.y});Vt(u,M,c)&&n.push({element:o,datasetIndex:r,index:l})}return qt(i,e,t,a),n}function rM(i,t,e,s,n,a){let o=[];const r=aM(e);let l=Number.POSITIVE_INFINITY;function M(c,u,h){const d=c.inRange(t.x,t.y,n);if(s&&!d)return;const N=c.getCenterPoint(n);if(!(!!a||i.isPointInArea(N))&&!d)return;const j=r(t,N);j<l?(o=[{element:c,datasetIndex:u,index:h}],l=j):j===l&&o.push({element:c,datasetIndex:u,index:h})}return qt(i,e,t,M),o}function Li(i,t,e,s,n,a){return!a&&!i.isPointInArea(t)?[]:e==="r"&&!s?oM(i,t,e,n):rM(i,t,e,s,n,a)}function en(i,t,e,s,n){const a=[],o=e==="x"?"inXRange":"inYRange";let r=!1;return qt(i,e,t,(l,M,c)=>{l[o](t[e],n)&&(a.push({element:l,datasetIndex:M,index:c}),r=r||l.inRange(t.x,t.y,n))}),s&&!r?[]:a}var lM={evaluateInteractionItems:qt,modes:{index(i,t,e,s){const n=Tt(t,i),a=e.axis||"x",o=e.includeInvisible||!1,r=e.intersect?mi(i,n,a,s,o):Li(i,n,a,!1,s,o),l=[];return r.length?(i.getSortedVisibleDatasetMetas().forEach(M=>{const c=r[0].index,u=M.data[c];u&&!u.skip&&l.push({element:u,datasetIndex:M.index,index:c})}),l):[]},dataset(i,t,e,s){const n=Tt(t,i),a=e.axis||"xy",o=e.includeInvisible||!1;let r=e.intersect?mi(i,n,a,s,o):Li(i,n,a,!1,s,o);if(r.length>0){const l=r[0].datasetIndex,M=i.getDatasetMeta(l).data;r=[];for(let c=0;c<M.length;++c)r.push({element:M[c],datasetIndex:l,index:c})}return r},point(i,t,e,s){const n=Tt(t,i),a=e.axis||"xy",o=e.includeInvisible||!1;return mi(i,n,a,s,o)},nearest(i,t,e,s){const n=Tt(t,i),a=e.axis||"xy",o=e.includeInvisible||!1;return Li(i,n,a,e.intersect,s,o)},x(i,t,e,s){const n=Tt(t,i);return en(i,n,"x",e.intersect,s)},y(i,t,e,s){const n=Tt(t,i);return en(i,n,"y",e.intersect,s)}}};const sn=["left","top","right","bottom"];function te(i,t){return i.filter(e=>e.pos===t)}function nn(i,t){return i.filter(e=>sn.indexOf(e.pos)===-1&&e.box.axis===t)}function ee(i,t){return i.sort((e,s)=>{const n=t?s:e,a=t?e:s;return n.weight===a.weight?n.index-a.index:n.weight-a.weight})}function MM(i){const t=[];let e,s,n,a,o,r;for(e=0,s=(i||[]).length;e<s;++e)n=i[e],{position:a,options:{stack:o,stackWeight:r=1}}=n,t.push({index:e,box:n,pos:a,horizontal:n.isHorizontal(),weight:n.weight,stack:o&&a+o,stackWeight:r});return t}function cM(i){const t={};for(const e of i){const{stack:s,pos:n,stackWeight:a}=e;if(!s||!sn.includes(n))continue;const o=t[s]||(t[s]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=a}return t}function uM(i,t){const e=cM(i),{vBoxMaxWidth:s,hBoxMaxHeight:n}=t;let a,o,r;for(a=0,o=i.length;a<o;++a){r=i[a];const{fullSize:l}=r.box,M=e[r.stack],c=M&&r.stackWeight/M.weight;r.horizontal?(r.width=c?c*s:l&&t.availableWidth,r.height=n):(r.width=s,r.height=c?c*n:l&&t.availableHeight)}return e}function gM(i){const t=MM(i),e=ee(t.filter(M=>M.box.fullSize),!0),s=ee(te(t,"left"),!0),n=ee(te(t,"right")),a=ee(te(t,"top"),!0),o=ee(te(t,"bottom")),r=nn(t,"x"),l=nn(t,"y");return{fullSize:e,leftAndTop:s.concat(a),rightAndBottom:n.concat(l).concat(o).concat(r),chartArea:te(t,"chartArea"),vertical:s.concat(n).concat(l),horizontal:a.concat(o).concat(r)}}function an(i,t,e,s){return Math.max(i[e],t[e])+Math.max(i[s],t[s])}function on(i,t){i.top=Math.max(i.top,t.top),i.left=Math.max(i.left,t.left),i.bottom=Math.max(i.bottom,t.bottom),i.right=Math.max(i.right,t.right)}function hM(i,t,e,s){const{pos:n,box:a}=e,o=i.maxPadding;if(!S(n)){e.size&&(i[n]-=e.size);const u=s[e.stack]||{size:0,count:1};u.size=Math.max(u.size,e.horizontal?a.height:a.width),e.size=u.size/u.count,i[n]+=e.size}a.getPadding&&on(o,a.getPadding());const r=Math.max(0,t.outerWidth-an(o,i,"left","right")),l=Math.max(0,t.outerHeight-an(o,i,"top","bottom")),M=r!==i.w,c=l!==i.h;return i.w=r,i.h=l,e.horizontal?{same:M,other:c}:{same:c,other:M}}function dM(i){const t=i.maxPadding;function e(s){const n=Math.max(t[s]-i[s],0);return i[s]+=n,n}i.y+=e("top"),i.x+=e("left"),e("right"),e("bottom")}function NM(i,t){const e=t.maxPadding;function s(n){const a={left:0,top:0,right:0,bottom:0};return n.forEach(o=>{a[o]=Math.max(t[o],e[o])}),a}return s(i?["left","right"]:["top","bottom"])}function ie(i,t,e,s){const n=[];let a,o,r,l,M,c;for(a=0,o=i.length,M=0;a<o;++a){r=i[a],l=r.box,l.update(r.width||t.w,r.height||t.h,NM(r.horizontal,t));const{same:u,other:h}=hM(t,e,r,s);M|=u&&n.length,c=c||h,l.fullSize||n.push(r)}return M&&ie(n,t,e,s)||c}function be(i,t,e,s,n){i.top=e,i.left=t,i.right=t+s,i.bottom=e+n,i.width=s,i.height=n}function rn(i,t,e,s){const n=e.padding;let{x:a,y:o}=t;for(const r of i){const l=r.box,M=s[r.stack]||{count:1,placed:0,weight:1},c=r.stackWeight/M.weight||1;if(r.horizontal){const u=t.w*c,h=M.size||l.height;J(M.start)&&(o=M.start),l.fullSize?be(l,n.left,o,e.outerWidth-n.right-n.left,h):be(l,t.left+M.placed,o,u,h),M.start=o,M.placed+=u,o=l.bottom}else{const u=t.h*c,h=M.size||l.width;J(M.start)&&(a=M.start),l.fullSize?be(l,a,n.top,h,e.outerHeight-n.bottom-n.top):be(l,a,t.top+M.placed,h,u),M.start=a,M.placed+=u,a=l.right}}t.x=a,t.y=o}b.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Se={addBox(i,t){i.boxes||(i.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},i.boxes.push(t)},removeBox(i,t){const e=i.boxes?i.boxes.indexOf(t):-1;e!==-1&&i.boxes.splice(e,1)},configure(i,t,e){t.fullSize=e.fullSize,t.position=e.position,t.weight=e.weight},update(i,t,e,s){if(!i)return;const n=K(i.options.layout.padding),a=Math.max(t-n.width,0),o=Math.max(e-n.height,0),r=gM(i.boxes),l=r.vertical,M=r.horizontal;O(i.boxes,I=>{typeof I.beforeLayout=="function"&&I.beforeLayout()});const c=l.reduce((I,j)=>j.box.options&&j.box.options.display===!1?I:I+1,0)||1,u=Object.freeze({outerWidth:t,outerHeight:e,padding:n,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/c,hBoxMaxHeight:o/2}),h=Object.assign({},n);on(h,K(s));const d=Object.assign({maxPadding:h,w:a,h:o,x:n.left,y:n.top},n),N=uM(l.concat(M),u);ie(r.fullSize,d,u,N),ie(l,d,u,N),ie(M,d,u,N)&&ie(l,d,u,N),dM(d),rn(r.leftAndTop,d,u,N),d.x+=d.w,d.y+=d.h,rn(r.rightAndBottom,d,u,N),i.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h,height:d.h,width:d.w},O(r.chartArea,I=>{const j=I.box;Object.assign(j,i.chartArea),j.update(d.w,d.h,{left:0,top:0,right:0,bottom:0})})}};class ln{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,s){}removeEventListener(t,e,s){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,s,n){return e=Math.max(0,e||t.width),s=s||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):s)}}isAttached(t){return!0}updateConfig(t){}}class IM extends ln{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ce="$chartjs",DM={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Mn=i=>i===null||i==="";function jM(i,t){const e=i.style,s=i.getAttribute("height"),n=i.getAttribute("width");if(i[Ce]={initial:{height:s,width:n,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",Mn(n)){const a=Es(i,"width");a!==void 0&&(i.width=a)}if(Mn(s))if(i.style.height==="")i.height=i.width/(t||2);else{const a=Es(i,"height");a!==void 0&&(i.height=a)}return i}const cn=Jr?{passive:!0}:!1;function fM(i,t,e){i.addEventListener(t,e,cn)}function AM(i,t,e){i.canvas.removeEventListener(t,e,cn)}function mM(i,t){const e=DM[i.type]||i.type,{x:s,y:n}=Tt(i,t);return{type:e,chart:t,native:i,x:s!==void 0?s:null,y:n!==void 0?n:null}}function Ee(i,t){for(const e of i)if(e===t||e.contains(t))return!0}function LM(i,t,e){const s=i.canvas,n=new MutationObserver(a=>{let o=!1;for(const r of a)o=o||Ee(r.addedNodes,s),o=o&&!Ee(r.removedNodes,s);o&&e()});return n.observe(document,{childList:!0,subtree:!0}),n}function yM(i,t,e){const s=i.canvas,n=new MutationObserver(a=>{let o=!1;for(const r of a)o=o||Ee(r.removedNodes,s),o=o&&!Ee(r.addedNodes,s);o&&e()});return n.observe(document,{childList:!0,subtree:!0}),n}const se=new Map;let un=0;function gn(){const i=window.devicePixelRatio;i!==un&&(un=i,se.forEach((t,e)=>{e.currentDevicePixelRatio!==i&&t()}))}function xM(i,t){se.size||window.addEventListener("resize",gn),se.set(i,t)}function TM(i){se.delete(i),se.size||window.removeEventListener("resize",gn)}function pM(i,t,e){const s=i.canvas,n=s&&Mi(s);if(!n)return;const a=es((r,l)=>{const M=n.clientWidth;e(r,l),M<n.clientWidth&&e()},window),o=new ResizeObserver(r=>{const l=r[0],M=l.contentRect.width,c=l.contentRect.height;M===0&&c===0||a(M,c)});return o.observe(n),xM(i,a),o}function yi(i,t,e){e&&e.disconnect(),t==="resize"&&TM(i)}function zM(i,t,e){const s=i.canvas,n=es(a=>{i.ctx!==null&&e(mM(a,i))},i,a=>{const o=a[0];return[o,o.offsetX,o.offsetY]});return fM(s,t,n),n}class bM extends ln{acquireContext(t,e){const s=t&&t.getContext&&t.getContext("2d");return s&&s.canvas===t?(jM(t,e),s):null}releaseContext(t){const e=t.canvas;if(!e[Ce])return!1;const s=e[Ce].initial;["height","width"].forEach(a=>{const o=s[a];E(o)?e.removeAttribute(a):e.setAttribute(a,o)});const n=s.style||{};return Object.keys(n).forEach(a=>{e.style[a]=n[a]}),e.width=e.width,delete e[Ce],!0}addEventListener(t,e,s){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),o={attach:LM,detach:yM,resize:pM}[e]||zM;n[e]=o(t,e,s)}removeEventListener(t,e){const s=t.$proxies||(t.$proxies={}),n=s[e];if(!n)return;({attach:yi,detach:yi,resize:yi}[e]||AM)(t,e,n),s[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,s,n){return Fr(t,e,s,n)}isAttached(t){const e=Mi(t);return!!(e&&e.isConnected)}}function SM(i){return!Ss()||typeof OffscreenCanvas!="undefined"&&i instanceof OffscreenCanvas?IM:bM}class CM{constructor(){this._init=[]}notify(t,e,s,n){e==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const a=n?this._descriptors(t).filter(n):this._descriptors(t),o=this._notify(a,t,e,s);return e==="afterDestroy"&&(this._notify(a,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,s,n){n=n||{};for(const a of t){const o=a.plugin,r=o[s],l=[e,n,a.options];if(Y(r,l,o)===!1&&n.cancelable)return!1}return!0}invalidate(){E(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const s=t&&t.config,n=C(s.options&&s.options.plugins,{}),a=EM(s);return n===!1&&!e?[]:wM(t,a,n,e)}_notifyStateChanges(t){const e=this._oldCache||[],s=this._cache,n=(a,o)=>a.filter(r=>!o.some(l=>r.plugin.id===l.plugin.id));this._notify(n(e,s),t,"stop"),this._notify(n(s,e),t,"start")}}function EM(i){const t={},e=[],s=Object.keys(at.plugins.items);for(let a=0;a<s.length;a++)e.push(at.getPlugin(s[a]));const n=i.plugins||[];for(let a=0;a<n.length;a++){const o=n[a];e.indexOf(o)===-1&&(e.push(o),t[o.id]=!0)}return{plugins:e,localIds:t}}function OM(i,t){return!t&&i===!1?null:i===!0?{}:i}function wM(i,{plugins:t,localIds:e},s,n){const a=[],o=i.getContext();for(const r of t){const l=r.id,M=OM(s[l],n);M!==null&&a.push({plugin:r,options:kM(i.config,{plugin:r,local:e[l]},M,o)})}return a}function kM(i,{plugin:t,local:e},s,n){const a=i.pluginScopeKeys(t),o=i.getOptionScopes(s,a);return e&&t.defaults&&o.push(t.defaults),i.createResolver(o,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function xi(i,t){const e=b.datasets[i]||{};return((t.datasets||{})[i]||{}).indexAxis||t.indexAxis||e.indexAxis||"x"}function _M(i,t){let e=i;return i==="_index_"?e=t:i==="_value_"&&(e=t==="x"?"y":"x"),e}function YM(i,t){return i===t?"_index_":"_value_"}function QM(i){if(i==="top"||i==="bottom")return"x";if(i==="left"||i==="right")return"y"}function Ti(i,t){return i==="x"||i==="y"?i:t.axis||QM(t.position)||i.charAt(0).toLowerCase()}function vM(i,t){const e=Lt[i.type]||{scales:{}},s=t.scales||{},n=xi(i.type,t),a=Object.create(null),o=Object.create(null);return Object.keys(s).forEach(r=>{const l=s[r];if(!S(l))return console.error(`Invalid scale configuration for scale: ${r}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const M=Ti(r,l),c=YM(M,n),u=e.scales||{};a[M]=a[M]||r,o[r]=Zt(Object.create(null),[{axis:M},l,u[M],u[c]])}),i.data.datasets.forEach(r=>{const l=r.type||i.type,M=r.indexAxis||xi(l,t),u=(Lt[l]||{}).scales||{};Object.keys(u).forEach(h=>{const d=_M(h,M),N=r[d+"AxisID"]||a[d]||d;o[N]=o[N]||Object.create(null),Zt(o[N],[{axis:d},s[N],u[h]])})}),Object.keys(o).forEach(r=>{const l=o[r];Zt(l,[b.scales[l.type],b.scale])}),o}function hn(i){const t=i.options||(i.options={});t.plugins=C(t.plugins,{}),t.scales=vM(i,t)}function dn(i){return i=i||{},i.datasets=i.datasets||[],i.labels=i.labels||[],i}function UM(i){return i=i||{},i.data=dn(i.data),hn(i),i}const Nn=new Map,In=new Set;function Oe(i,t){let e=Nn.get(i);return e||(e=t(),Nn.set(i,e),In.add(e)),e}const ne=(i,t,e)=>{const s=dt(t,e);s!==void 0&&i.add(s)};class ZM{constructor(t){this._config=UM(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=dn(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),hn(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Oe(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return Oe(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return Oe(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id,s=this.type;return Oe(`${s}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const s=this._scopeCache;let n=s.get(t);return(!n||e)&&(n=new Map,s.set(t,n)),n}getOptionScopes(t,e,s){const{options:n,type:a}=this,o=this._cachedScopes(t,s),r=o.get(e);if(r)return r;const l=new Set;e.forEach(c=>{t&&(l.add(t),c.forEach(u=>ne(l,t,u))),c.forEach(u=>ne(l,n,u)),c.forEach(u=>ne(l,Lt[a]||{},u)),c.forEach(u=>ne(l,b,u)),c.forEach(u=>ne(l,ii,u))});const M=Array.from(l);return M.length===0&&M.push(Object.create(null)),In.has(e)&&o.set(e,M),M}chartOptionScopes(){const{options:t,type:e}=this;return[t,Lt[e]||{},b.datasets[e]||{},{type:e},b,ii]}resolveNamedOptions(t,e,s,n=[""]){const a={$shared:!0},{resolver:o,subPrefixes:r}=Dn(this._resolverCache,t,n);let l=o;if(RM(o,e)){a.$shared=!1,s=Nt(s)?s():s;const M=this.createResolver(t,s,r);l=wt(o,s,M)}for(const M of e)a[M]=l[M];return a}createResolver(t,e,s=[""],n){const{resolver:a}=Dn(this._resolverCache,t,s);return S(e)?wt(a,e,void 0,n):a}}function Dn(i,t,e){let s=i.get(t);s||(s=new Map,i.set(t,s));const n=e.join();let a=s.get(n);return a||(a={resolver:oi(t,e),subPrefixes:e.filter(r=>!r.toLowerCase().includes("hover"))},s.set(n,a)),a}const PM=i=>S(i)&&Object.getOwnPropertyNames(i).reduce((t,e)=>t||Nt(i[e]),!1);function RM(i,t){const{isScriptable:e,isIndexable:s}=ms(i);for(const n of t){const a=e(n),o=s(n),r=(o||a)&&i[n];if(a&&(Nt(r)||PM(r))||o&&_(r))return!0}return!1}var VM="3.9.1";const WM=["top","bottom","left","right","chartArea"];function jn(i,t){return i==="top"||i==="bottom"||WM.indexOf(i)===-1&&t==="x"}function fn(i,t){return function(e,s){return e[i]===s[i]?e[t]-s[t]:e[i]-s[i]}}function An(i){const t=i.chart,e=t.options.animation;t.notifyPlugins("afterRender"),Y(e&&e.onComplete,[i],t)}function BM(i){const t=i.chart,e=t.options.animation;Y(e&&e.onProgress,[i],t)}function mn(i){return Ss()&&typeof i=="string"?i=document.getElementById(i):i&&i.length&&(i=i[0]),i&&i.canvas&&(i=i.canvas),i}const we={},Ln=i=>{const t=mn(i);return Object.values(we).filter(e=>e.canvas===t).pop()};function GM(i,t,e){const s=Object.keys(i);for(const n of s){const a=+n;if(a>=t){const o=i[n];delete i[n],(e>0||a>t)&&(i[a+e]=o)}}}function HM(i,t,e,s){return!e||i.type==="mouseout"?null:s?t:i}class ae{constructor(t,e){const s=this.config=new ZM(e),n=mn(t),a=Ln(n);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const o=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||SM(n)),this.platform.updateConfig(s);const r=this.platform.acquireContext(n,o.aspectRatio),l=r&&r.canvas,M=l&&l.height,c=l&&l.width;if(this.id=bo(),this.ctx=r,this.canvas=l,this.width=c,this.height=M,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new CM,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Wo(u=>this.update(u),o.resizeDelay||0),this._dataChanges=[],we[this.id]=this,!r||!l){console.error("Failed to create chart: can't acquire context from the given item");return}ct.listen(this,"complete",An),ct.listen(this,"progress",BM),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:s,height:n,_aspectRatio:a}=this;return E(t)?e&&a?a:n?s/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Cs(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Ds(this.canvas,this.ctx),this}stop(){return ct.stop(this),this}resize(t,e){ct.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const s=this.options,n=this.canvas,a=s.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(n,t,e,a),r=s.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Cs(this,r,!0)&&(this.notifyPlugins("resize",{size:o}),Y(s.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};O(e,(s,n)=>{s.id=n})}buildOrUpdateScales(){const t=this.options,e=t.scales,s=this.scales,n=Object.keys(s).reduce((o,r)=>(o[r]=!1,o),{});let a=[];e&&(a=a.concat(Object.keys(e).map(o=>{const r=e[o],l=Ti(o,r),M=l==="r",c=l==="x";return{options:r,dposition:M?"chartArea":c?"bottom":"left",dtype:M?"radialLinear":c?"category":"linear"}}))),O(a,o=>{const r=o.options,l=r.id,M=Ti(l,r),c=C(r.type,o.dtype);(r.position===void 0||jn(r.position,M)!==jn(o.dposition))&&(r.position=o.dposition),n[l]=!0;let u=null;if(l in s&&s[l].type===c)u=s[l];else{const h=at.getScale(c);u=new h({id:l,type:c,ctx:this.ctx,chart:this}),s[u.id]=u}u.init(r,t)}),O(n,(o,r)=>{o||delete s[r]}),O(s,o=>{Se.configure(this,o,o.options),Se.addBox(this,o)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,s=t.length;if(t.sort((n,a)=>n.index-a.index),s>e){for(let n=e;n<s;++n)this._destroyDatasetMeta(n);t.splice(e,s-e)}this._sortedMetasets=t.slice(0).sort(fn("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((s,n)=>{e.filter(a=>a===s._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let s,n;for(this._removeUnreferencedMetasets(),s=0,n=e.length;s<n;s++){const a=e[s];let o=this.getDatasetMeta(s);const r=a.type||this.config.type;if(o.type&&o.type!==r&&(this._destroyDatasetMeta(s),o=this.getDatasetMeta(s)),o.type=r,o.indexAxis=a.indexAxis||xi(r,this.options),o.order=a.order||0,o.index=s,o.label=""+a.label,o.visible=this.isDatasetVisible(s),o.controller)o.controller.updateIndex(s),o.controller.linkScales();else{const l=at.getController(r),{datasetElementType:M,dataElementType:c}=b.datasets[r];Object.assign(l.prototype,{dataElementType:at.getElement(c),datasetElementType:M&&at.getElement(M)}),o.controller=new l(this,s),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){O(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const s=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let M=0,c=this.data.datasets.length;M<c;M++){const{controller:u}=this.getDatasetMeta(M),h=!n&&a.indexOf(u)===-1;u.buildOrUpdateElements(h),o=Math.max(+u.getMaxOverflow(),o)}o=this._minPadding=s.layout.autoPadding?o:0,this._updateLayout(o),n||O(a,M=>{M.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(fn("z","_idx"));const{_active:r,_lastEvent:l}=this;l?this._eventHandler(l,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){O(this.scales,t=>{Se.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),s=new Set(t.events);(!Bi(e,s)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:s,start:n,count:a}of e){const o=s==="_removeElements"?-a:a;GM(t,n,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,s=a=>new Set(t.filter(o=>o[0]===a).map((o,r)=>r+","+o.splice(1).join(","))),n=s(0);for(let a=1;a<e;a++)if(!Bi(n,s(a)))return;return Array.from(n).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Se.update(this,this.width,this.height,t);const e=this.chartArea,s=e.width<=0||e.height<=0;this._layers=[],O(this.boxes,n=>{s&&n.position==="chartArea"||(n.configure&&n.configure(),this._layers.push(...n._layers()))},this),this._layers.forEach((n,a)=>{n._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let e=0,s=this.data.datasets.length;e<s;++e)this.getDatasetMeta(e).controller.configure();for(let e=0,s=this.data.datasets.length;e<s;++e)this._updateDataset(e,Nt(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const s=this.getDatasetMeta(t),n={meta:s,index:t,mode:e,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",n)!==!1&&(s.controller._update(e),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(ct.has(this)?this.attached&&!ct.running(this)&&ct.start(this):(this.draw(),An({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:s,height:n}=this._resizeBeforeDraw;this._resize(s,n),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,s=[];let n,a;for(n=0,a=e.length;n<a;++n){const o=e[n];(!t||o.visible)&&s.push(o)}return s}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,s=t._clip,n=!s.disabled,a=this.chartArea,o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(n&&js(e,{left:s.left===!1?0:a.left-s.left,right:s.right===!1?this.width:a.right+s.right,top:s.top===!1?0:a.top-s.top,bottom:s.bottom===!1?this.height:a.bottom+s.bottom}),t.controller.draw(),n&&fs(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Ft(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,s,n){const a=lM.modes[e];return typeof a=="function"?a(this,t,s,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],s=this._metasets;let n=s.filter(a=>a&&a._dataset===e).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},s.push(n)),n}getContext(){return this.$context||(this.$context=jt(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const s=this.getDatasetMeta(t);return typeof s.hidden=="boolean"?!s.hidden:!e.hidden}setDatasetVisibility(t,e){const s=this.getDatasetMeta(t);s.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,s){const n=s?"show":"hide",a=this.getDatasetMeta(t),o=a.controller._resolveAnimations(void 0,n);J(e)?(a.data[e].hidden=!s,this.update()):(this.setDatasetVisibility(t,s),o.update(a,{visible:s}),this.update(r=>r.datasetIndex===t?n:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),ct.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Ds(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete we[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,s=(a,o)=>{e.addEventListener(this,a,o),t[a]=o},n=(a,o,r)=>{a.offsetX=o,a.offsetY=r,this._eventHandler(a)};O(this.options.events,a=>s(a,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,s=(l,M)=>{e.addEventListener(this,l,M),t[l]=M},n=(l,M)=>{t[l]&&(e.removeEventListener(this,l,M),delete t[l])},a=(l,M)=>{this.canvas&&this.resize(l,M)};let o;const r=()=>{n("attach",r),this.attached=!0,this.resize(),s("resize",a),s("detach",o)};o=()=>{this.attached=!1,n("resize",a),this._stop(),this._resize(0,0),s("attach",r)},e.isAttached(this.canvas)?r():o()}unbindEvents(){O(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},O(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,s){const n=s?"set":"remove";let a,o,r,l;for(e==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+n+"DatasetHoverStyle"]()),r=0,l=t.length;r<l;++r){o=t[r];const M=o&&this.getDatasetMeta(o.datasetIndex).controller;M&&M[n+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],s=t.map(({datasetIndex:a,index:o})=>{const r=this.getDatasetMeta(a);if(!r)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:r.data[o],index:o}});!le(s,e)&&(this._active=s,this._lastEvent=null,this._updateHoverStyles(s,e))}notifyPlugins(t,e,s){return this._plugins.notify(this,t,e,s)}_updateHoverStyles(t,e,s){const n=this.options.hover,a=(l,M)=>l.filter(c=>!M.some(u=>c.datasetIndex===u.datasetIndex&&c.index===u.index)),o=a(e,t),r=s?t:a(t,e);o.length&&this.updateHoverStyle(o,n.mode,!1),r.length&&n.mode&&this.updateHoverStyle(r,n.mode,!0)}_eventHandler(t,e){const s={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",s,n)===!1)return;const a=this._handleEvent(t,e,s.inChartArea);return s.cancelable=!1,this.notifyPlugins("afterEvent",s,n),(a||s.changed)&&this.render(),this}_handleEvent(t,e,s){const{_active:n=[],options:a}=this,o=e,r=this._getActiveElements(t,n,s,o),l=ko(t),M=HM(t,this._lastEvent,s,l);s&&(this._lastEvent=null,Y(a.onHover,[t,r,this],this),l&&Y(a.onClick,[t,r,this],this));const c=!le(r,n);return(c||e)&&(this._active=r,this._updateHoverStyles(r,n,e)),this._lastEvent=M,c}_getActiveElements(t,e,s,n){if(t.type==="mouseout")return[];if(!s)return e;const a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,n)}}const yn=()=>O(ae.instances,i=>i._plugins.invalidate()),ft=!0;Object.defineProperties(ae,{defaults:{enumerable:ft,value:b},instances:{enumerable:ft,value:we},overrides:{enumerable:ft,value:Lt},registry:{enumerable:ft,value:at},version:{enumerable:ft,value:VM},getChart:{enumerable:ft,value:Ln},register:{enumerable:ft,value:(...i)=>{at.add(...i),yn()}},unregister:{enumerable:ft,value:(...i)=>{at.remove(...i),yn()}}});function xn(i,t,e){const{startAngle:s,pixelMargin:n,x:a,y:o,outerRadius:r,innerRadius:l}=t;let M=n/r;i.beginPath(),i.arc(a,o,r,s-M,e+M),l>n?(M=n/l,i.arc(a,o,l,e+M,s-M,!0)):i.arc(a,o,n,e+v,s-v),i.closePath(),i.clip()}function FM(i){return ai(i,["outerStart","outerEnd","innerStart","innerEnd"])}function JM(i,t,e,s){const n=FM(i.options.borderRadius),a=(e-t)/2,o=Math.min(a,s*t/2),r=l=>{const M=(e-Math.min(a,l))*s/2;return B(l,0,Math.min(a,M))};return{outerStart:r(n.outerStart),outerEnd:r(n.outerEnd),innerStart:B(n.innerStart,0,o),innerEnd:B(n.innerEnd,0,o)}}function _t(i,t,e,s){return{x:e+i*Math.cos(t),y:s+i*Math.sin(t)}}function pi(i,t,e,s,n,a){const{x:o,y:r,startAngle:l,pixelMargin:M,innerRadius:c}=t,u=Math.max(t.outerRadius+s+e-M,0),h=c>0?c+s+e+M:0;let d=0;const N=n-l;if(s){const T=c>0?c-s:0,R=u>0?u-s:0,Z=(T+R)/2,St=Z!==0?N*Z/(Z+s):N;d=(N-St)/2}const I=Math.max(.001,N*u-e/Q)/u,j=(N-I)/2,D=l+j+d,f=n-j-d,{outerStart:m,outerEnd:L,innerStart:A,innerEnd:y}=JM(t,h,u,f-D),x=u-m,p=u-L,z=D+m/x,k=f-L/p,U=h+A,P=h+y,ht=D+A/U,st=f-y/P;if(i.beginPath(),a){if(i.arc(o,r,u,z,k),L>0){const Z=_t(p,k,o,r);i.arc(Z.x,Z.y,L,k,f+v)}const T=_t(P,f,o,r);if(i.lineTo(T.x,T.y),y>0){const Z=_t(P,st,o,r);i.arc(Z.x,Z.y,y,f+v,st+Math.PI)}if(i.arc(o,r,h,f-y/h,D+A/h,!0),A>0){const Z=_t(U,ht,o,r);i.arc(Z.x,Z.y,A,ht+Math.PI,D-v)}const R=_t(x,D,o,r);if(i.lineTo(R.x,R.y),m>0){const Z=_t(x,z,o,r);i.arc(Z.x,Z.y,m,D-v,z)}}else{i.moveTo(o,r);const T=Math.cos(z)*u+o,R=Math.sin(z)*u+r;i.lineTo(T,R);const Z=Math.cos(k)*u+o,St=Math.sin(k)*u+r;i.lineTo(Z,St)}i.closePath()}function XM(i,t,e,s,n){const{fullCircles:a,startAngle:o,circumference:r}=t;let l=t.endAngle;if(a){pi(i,t,e,s,o+w,n);for(let M=0;M<a;++M)i.fill();isNaN(r)||(l=o+r%w,r%w===0&&(l+=w))}return pi(i,t,e,s,l,n),i.fill(),l}function $M(i,t,e){const{x:s,y:n,startAngle:a,pixelMargin:o,fullCircles:r}=t,l=Math.max(t.outerRadius-o,0),M=t.innerRadius+o;let c;for(e&&xn(i,t,a+w),i.beginPath(),i.arc(s,n,M,a+w,a,!0),c=0;c<r;++c)i.stroke();for(i.beginPath(),i.arc(s,n,l,a,a+w),c=0;c<r;++c)i.stroke()}function KM(i,t,e,s,n,a){const{options:o}=t,{borderWidth:r,borderJoinStyle:l}=o,M=o.borderAlign==="inner";!r||(M?(i.lineWidth=r*2,i.lineJoin=l||"round"):(i.lineWidth=r,i.lineJoin=l||"bevel"),t.fullCircles&&$M(i,t,M),M&&xn(i,t,n),pi(i,t,e,s,n,a),i.stroke())}class zi extends ut{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,s){const n=this.getProps(["x","y"],s),{angle:a,distance:o}=Xi(n,{x:t,y:e}),{startAngle:r,endAngle:l,innerRadius:M,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),h=this.options.spacing/2,N=C(u,l-r)>=w||Vt(a,r,l),I=ue(o,M+h,c+h);return N&&I}getCenterPoint(t){const{x:e,y:s,startAngle:n,endAngle:a,innerRadius:o,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:l,spacing:M}=this.options,c=(n+a)/2,u=(o+r+M+l)/2;return{x:e+Math.cos(c)*u,y:s+Math.sin(c)*u}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:s}=this,n=(e.offset||0)/2,a=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin=e.borderAlign==="inner"?.33:0,this.fullCircles=s>w?Math.floor(s/w):0,s===0||this.innerRadius<0||this.outerRadius<0)return;t.save();let r=0;if(n){r=n/2;const M=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(M)*r,Math.sin(M)*r),this.circumference>=Q&&(r=n)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const l=XM(t,this,r,a,o);KM(t,this,r,a,l,o),t.restore()}}zi.id="arc",zi.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},zi.defaultRoutes={backgroundColor:"backgroundColor"};function Tn(i,t,e=t){i.lineCap=C(e.borderCapStyle,t.borderCapStyle),i.setLineDash(C(e.borderDash,t.borderDash)),i.lineDashOffset=C(e.borderDashOffset,t.borderDashOffset),i.lineJoin=C(e.borderJoinStyle,t.borderJoinStyle),i.lineWidth=C(e.borderWidth,t.borderWidth),i.strokeStyle=C(e.borderColor,t.borderColor)}function qM(i,t,e){i.lineTo(e.x,e.y)}function tc(i){return i.stepped?jr:i.tension||i.cubicInterpolationMode==="monotone"?fr:qM}function pn(i,t,e={}){const s=i.length,{start:n=0,end:a=s-1}=e,{start:o,end:r}=t,l=Math.max(n,o),M=Math.min(a,r),c=n<o&&a<o||n>r&&a>r;return{count:s,start:l,loop:t.loop,ilen:M<l&&!c?s+M-l:M-l}}function ec(i,t,e,s){const{points:n,options:a}=t,{count:o,start:r,loop:l,ilen:M}=pn(n,e,s),c=tc(a);let{move:u=!0,reverse:h}=s||{},d,N,I;for(d=0;d<=M;++d)N=n[(r+(h?M-d:d))%o],!N.skip&&(u?(i.moveTo(N.x,N.y),u=!1):c(i,I,N,h,a.stepped),I=N);return l&&(N=n[(r+(h?M:0))%o],c(i,I,N,h,a.stepped)),!!l}function ic(i,t,e,s){const n=t.points,{count:a,start:o,ilen:r}=pn(n,e,s),{move:l=!0,reverse:M}=s||{};let c=0,u=0,h,d,N,I,j,D;const f=L=>(o+(M?r-L:L))%a,m=()=>{I!==j&&(i.lineTo(c,j),i.lineTo(c,I),i.lineTo(c,D))};for(l&&(d=n[f(0)],i.moveTo(d.x,d.y)),h=0;h<=r;++h){if(d=n[f(h)],d.skip)continue;const L=d.x,A=d.y,y=L|0;y===N?(A<I?I=A:A>j&&(j=A),c=(u*c+L)/++u):(m(),i.lineTo(L,A),N=y,u=0,I=j=A),D=A}m()}function bi(i){const t=i.options,e=t.borderDash&&t.borderDash.length;return!i._decimated&&!i._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!e?ic:ec}function sc(i){return i.stepped?Xr:i.tension||i.cubicInterpolationMode==="monotone"?$r:pt}function nc(i,t,e,s){let n=t._path;n||(n=t._path=new Path2D,t.path(n,e,s)&&n.closePath()),Tn(i,t.options),i.stroke(n)}function ac(i,t,e,s){const{segments:n,options:a}=t,o=bi(t);for(const r of n)Tn(i,a,r.style),i.beginPath(),o(i,t,r,{start:e,end:e+s-1})&&i.closePath(),i.stroke()}const oc=typeof Path2D=="function";function rc(i,t,e,s){oc&&!t.options.segment?nc(i,t,e,s):ac(i,t,e,s)}class ke extends ut{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const s=this.options;if((s.tension||s.cubicInterpolationMode==="monotone")&&!s.stepped&&!this._pointsUpdated){const n=s.spanGaps?this._loop:this._fullLoop;Rr(this._points,s,t,n,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=ll(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,s=t.length;return s&&e[t[s-1].end]}interpolate(t,e){const s=this.options,n=t[e],a=this.points,o=al(this,{property:e,start:n,end:n});if(!o.length)return;const r=[],l=sc(s);let M,c;for(M=0,c=o.length;M<c;++M){const{start:u,end:h}=o[M],d=a[u],N=a[h];if(d===N){r.push(d);continue}const I=Math.abs((n-d[e])/(N[e]-d[e])),j=l(d,N,I,s.stepped);j[e]=t[e],r.push(j)}return r.length===1?r[0]:r}pathSegment(t,e,s){return bi(this)(t,this,e,s)}path(t,e,s){const n=this.segments,a=bi(this);let o=this._loop;e=e||0,s=s||this.points.length-e;for(const r of n)o&=a(t,this,r,{start:e,end:e+s-1});return!!o}draw(t,e,s,n){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(t.save(),rc(t,this,s,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}ke.id="line",ke.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},ke.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},ke.descriptors={_scriptable:!0,_indexable:i=>i!=="borderDash"&&i!=="fill"};function zn(i,t,e,s){const n=i.options,{[e]:a}=i.getProps([e],s);return Math.abs(t-a)<n.radius+n.hitRadius}class Si extends ut{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,s){const n=this.options,{x:a,y:o}=this.getProps(["x","y"],s);return Math.pow(t-a,2)+Math.pow(e-o,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(t,e){return zn(this,t,"x",e)}inYRange(t,e){return zn(this,t,"y",e)}getCenterPoint(t){const{x:e,y:s}=this.getProps(["x","y"],t);return{x:e,y:s}}size(t){t=t||this.options||{};let e=t.radius||0;e=Math.max(e,e&&t.hoverRadius||0);const s=e&&t.borderWidth||0;return(e+s)*2}draw(t,e){const s=this.options;this.skip||s.radius<.1||!Ft(this,e,this.size(s)/2)||(t.strokeStyle=s.borderColor,t.lineWidth=s.borderWidth,t.fillStyle=s.backgroundColor,ni(t,s,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}Si.id="point",Si.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Si.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};function bn(i,t){const{x:e,y:s,base:n,width:a,height:o}=i.getProps(["x","y","base","width","height"],t);let r,l,M,c,u;return i.horizontal?(u=o/2,r=Math.min(e,n),l=Math.max(e,n),M=s-u,c=s+u):(u=a/2,r=e-u,l=e+u,M=Math.min(s,n),c=Math.max(s,n)),{left:r,top:M,right:l,bottom:c}}function At(i,t,e,s){return i?0:B(t,e,s)}function lc(i,t,e){const s=i.options.borderWidth,n=i.borderSkipped,a=As(s);return{t:At(n.top,a.top,0,e),r:At(n.right,a.right,0,t),b:At(n.bottom,a.bottom,0,e),l:At(n.left,a.left,0,t)}}function Mc(i,t,e){const{enableBorderRadius:s}=i.getProps(["enableBorderRadius"]),n=i.options.borderRadius,a=Ot(n),o=Math.min(t,e),r=i.borderSkipped,l=s||S(n);return{topLeft:At(!l||r.top||r.left,a.topLeft,0,o),topRight:At(!l||r.top||r.right,a.topRight,0,o),bottomLeft:At(!l||r.bottom||r.left,a.bottomLeft,0,o),bottomRight:At(!l||r.bottom||r.right,a.bottomRight,0,o)}}function cc(i){const t=bn(i),e=t.right-t.left,s=t.bottom-t.top,n=lc(i,e/2,s/2),a=Mc(i,e/2,s/2);return{outer:{x:t.left,y:t.top,w:e,h:s,radius:a},inner:{x:t.left+n.l,y:t.top+n.t,w:e-n.l-n.r,h:s-n.t-n.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,a.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(n.b,n.r))}}}}function Ci(i,t,e,s){const n=t===null,a=e===null,r=i&&!(n&&a)&&bn(i,s);return r&&(n||ue(t,r.left,r.right))&&(a||ue(e,r.top,r.bottom))}function uc(i){return i.topLeft||i.topRight||i.bottomLeft||i.bottomRight}function gc(i,t){i.rect(t.x,t.y,t.w,t.h)}function Ei(i,t,e={}){const s=i.x!==e.x?-t:0,n=i.y!==e.y?-t:0,a=(i.x+i.w!==e.x+e.w?t:0)-s,o=(i.y+i.h!==e.y+e.h?t:0)-n;return{x:i.x+s,y:i.y+n,w:i.w+a,h:i.h+o,radius:i.radius}}class _e extends ut{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:s,backgroundColor:n}}=this,{inner:a,outer:o}=cc(this),r=uc(o.radius)?fe:gc;t.save(),(o.w!==a.w||o.h!==a.h)&&(t.beginPath(),r(t,Ei(o,e,a)),t.clip(),r(t,Ei(a,-e,o)),t.fillStyle=s,t.fill("evenodd")),t.beginPath(),r(t,Ei(a,e)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,e,s){return Ci(this,t,e,s)}inXRange(t,e){return Ci(this,t,null,e)}inYRange(t,e){return Ci(this,null,t,e)}getCenterPoint(t){const{x:e,y:s,base:n,horizontal:a}=this.getProps(["x","y","base","horizontal"],t);return{x:a?(e+n)/2:e,y:a?s:(s+n)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}_e.id="bar",_e.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},_e.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};const oe={average(i){if(!i.length)return!1;let t,e,s=0,n=0,a=0;for(t=0,e=i.length;t<e;++t){const o=i[t].element;if(o&&o.hasValue()){const r=o.tooltipPosition();s+=r.x,n+=r.y,++a}}return{x:s/a,y:n/a}},nearest(i,t){if(!i.length)return!1;let e=t.x,s=t.y,n=Number.POSITIVE_INFINITY,a,o,r;for(a=0,o=i.length;a<o;++a){const l=i[a].element;if(l&&l.hasValue()){const M=l.getCenterPoint(),c=Fe(t,M);c<n&&(n=c,r=l)}}if(r){const l=r.tooltipPosition();e=l.x,s=l.y}return{x:e,y:s}}};function ot(i,t){return t&&(_(t)?Array.prototype.push.apply(i,t):i.push(t)),i}function gt(i){return(typeof i=="string"||i instanceof String)&&i.indexOf(`
17
17
  `)>-1?i.split(`
18
- `):i}function hc(i,t){const{element:e,datasetIndex:s,index:n}=t,a=i.getDatasetMeta(s).controller,{label:o,value:r}=a.getLabelAndValue(n);return{chart:i,label:o,parsed:a.getParsed(n),raw:i.data.datasets[s].data[n],formattedValue:r,dataset:a.getDataset(),dataIndex:n,datasetIndex:s,element:e}}function Sn(i,t){const e=i.chart.ctx,{body:s,footer:n,title:a}=i,{boxWidth:o,boxHeight:r}=t,l=H(t.bodyFont),M=H(t.titleFont),c=H(t.footerFont),u=a.length,h=n.length,d=s.length,N=K(t.padding);let I=N.height,j=0,D=s.reduce((L,A)=>L+A.before.length+A.lines.length+A.after.length,0);if(D+=i.beforeBody.length+i.afterBody.length,u&&(I+=u*M.lineHeight+(u-1)*t.titleSpacing+t.titleMarginBottom),D){const L=t.displayColors?Math.max(r,l.lineHeight):l.lineHeight;I+=d*L+(D-d)*l.lineHeight+(D-1)*t.bodySpacing}h&&(I+=t.footerMarginTop+h*c.lineHeight+(h-1)*t.footerSpacing);let f=0;const m=function(L){j=Math.max(j,e.measureText(L).width+f)};return e.save(),e.font=M.string,O(i.title,m),e.font=l.string,O(i.beforeBody.concat(i.afterBody),m),f=t.displayColors?o+2+t.boxPadding:0,O(s,L=>{O(L.before,m),O(L.lines,m),O(L.after,m)}),f=0,e.font=c.string,O(i.footer,m),e.restore(),j+=N.width,{width:j,height:I}}function dc(i,t){const{y:e,height:s}=t;return e<s/2?"top":e>i.height-s/2?"bottom":"center"}function Nc(i,t,e,s){const{x:n,width:a}=s,o=e.caretSize+e.caretPadding;if(i==="left"&&n+a+o>t.width||i==="right"&&n-a-o<0)return!0}function Ic(i,t,e,s){const{x:n,width:a}=e,{width:o,chartArea:{left:r,right:l}}=i;let M="center";return s==="center"?M=n<=(r+l)/2?"left":"right":n<=a/2?M="left":n>=o-a/2&&(M="right"),Nc(M,i,t,e)&&(M="center"),M}function Cn(i,t,e){const s=e.yAlign||t.yAlign||dc(i,e);return{xAlign:e.xAlign||t.xAlign||Ic(i,t,e,s),yAlign:s}}function Dc(i,t){let{x:e,width:s}=i;return t==="right"?e-=s:t==="center"&&(e-=s/2),e}function jc(i,t,e){let{y:s,height:n}=i;return t==="top"?s+=e:t==="bottom"?s-=n+e:s-=n/2,s}function En(i,t,e,s){const{caretSize:n,caretPadding:a,cornerRadius:o}=i,{xAlign:r,yAlign:l}=e,M=n+a,{topLeft:c,topRight:u,bottomLeft:h,bottomRight:d}=Ot(o);let N=Dc(t,r);const I=jc(t,l,M);return l==="center"?r==="left"?N+=M:r==="right"&&(N-=M):r==="left"?N-=Math.max(c,h)+n:r==="right"&&(N+=Math.max(u,d)+n),{x:B(N,0,s.width-t.width),y:B(I,0,s.height-t.height)}}function Ye(i,t,e){const s=K(e.padding);return t==="center"?i.x+i.width/2:t==="right"?i.x+i.width-s.right:i.x+s.left}function On(i){return ot([],gt(i))}function fc(i,t,e){return jt(i,{tooltip:t,tooltipItems:e,type:"tooltip"})}function wn(i,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?i.override(e):i}class Oi extends ut{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,s=this.options.setContext(this.getContext()),n=s.enabled&&e.options.animation&&s.animations,a=new vs(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=fc(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:s}=e,n=s.beforeTitle.apply(this,[t]),a=s.title.apply(this,[t]),o=s.afterTitle.apply(this,[t]);let r=[];return r=ot(r,gt(n)),r=ot(r,gt(a)),r=ot(r,gt(o)),r}getBeforeBody(t,e){return On(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:s}=e,n=[];return O(t,a=>{const o={before:[],lines:[],after:[]},r=wn(s,a);ot(o.before,gt(r.beforeLabel.call(this,a))),ot(o.lines,r.label.call(this,a)),ot(o.after,gt(r.afterLabel.call(this,a))),n.push(o)}),n}getAfterBody(t,e){return On(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:s}=e,n=s.beforeFooter.apply(this,[t]),a=s.footer.apply(this,[t]),o=s.afterFooter.apply(this,[t]);let r=[];return r=ot(r,gt(n)),r=ot(r,gt(a)),r=ot(r,gt(o)),r}_createItems(t){const e=this._active,s=this.chart.data,n=[],a=[],o=[];let r=[],l,M;for(l=0,M=e.length;l<M;++l)r.push(hc(this.chart,e[l]));return t.filter&&(r=r.filter((c,u,h)=>t.filter(c,u,h,s))),t.itemSort&&(r=r.sort((c,u)=>t.itemSort(c,u,s))),O(r,c=>{const u=wn(t.callbacks,c);n.push(u.labelColor.call(this,c)),a.push(u.labelPointStyle.call(this,c)),o.push(u.labelTextColor.call(this,c))}),this.labelColors=n,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=r,r}update(t,e){const s=this.options.setContext(this.getContext()),n=this._active;let a,o=[];if(!n.length)this.opacity!==0&&(a={opacity:0});else{const r=oe[s.position].call(this,n,this._eventPosition);o=this._createItems(s),this.title=this.getTitle(o,s),this.beforeBody=this.getBeforeBody(o,s),this.body=this.getBody(o,s),this.afterBody=this.getAfterBody(o,s),this.footer=this.getFooter(o,s);const l=this._size=Sn(this,s),M=Object.assign({},r,l),c=Cn(this.chart,s,M),u=En(s,M,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,a={opacity:1,x:u.x,y:u.y,width:l.width,height:l.height,caretX:r.x,caretY:r.y}}this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,s,n){const a=this.getCaretPosition(t,s,n);e.lineTo(a.x1,a.y1),e.lineTo(a.x2,a.y2),e.lineTo(a.x3,a.y3)}getCaretPosition(t,e,s){const{xAlign:n,yAlign:a}=this,{caretSize:o,cornerRadius:r}=s,{topLeft:l,topRight:M,bottomLeft:c,bottomRight:u}=Ot(r),{x:h,y:d}=t,{width:N,height:I}=e;let j,D,f,m,L,A;return a==="center"?(L=d+I/2,n==="left"?(j=h,D=j-o,m=L+o,A=L-o):(j=h+N,D=j+o,m=L-o,A=L+o),f=j):(n==="left"?D=h+Math.max(l,c)+o:n==="right"?D=h+N-Math.max(M,u)-o:D=this.caretX,a==="top"?(m=d,L=m-o,j=D-o,f=D+o):(m=d+I,L=m+o,j=D+o,f=D-o),A=m),{x1:j,x2:D,x3:f,y1:m,y2:L,y3:A}}drawTitle(t,e,s){const n=this.title,a=n.length;let o,r,l;if(a){const M=ui(s.rtl,this.x,this.width);for(t.x=Ye(this,s.titleAlign,s),e.textAlign=M.textAlign(s.titleAlign),e.textBaseline="middle",o=H(s.titleFont),r=s.titleSpacing,e.fillStyle=s.titleColor,e.font=o.string,l=0;l<a;++l)e.fillText(n[l],M.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+r,l+1===a&&(t.y+=s.titleMarginBottom-r)}}_drawColorBox(t,e,s,n,a){const o=this.labelColors[s],r=this.labelPointStyles[s],{boxHeight:l,boxWidth:M,boxPadding:c}=a,u=H(a.bodyFont),h=Ye(this,"left",a),d=n.x(h),N=l<u.lineHeight?(u.lineHeight-l)/2:0,I=e.y+N;if(a.usePointStyle){const j={radius:Math.min(M,l)/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:1},D=n.leftForLtr(d,M)+M/2,f=I+l/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,ni(t,j,D,f),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,ni(t,j,D,f)}else{t.lineWidth=S(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const j=n.leftForLtr(d,M-c),D=n.leftForLtr(n.xPlus(d,1),M-c-2),f=Ot(o.borderRadius);Object.values(f).some(m=>m!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,fe(t,{x:j,y:I,w:M,h:l,radius:f}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),fe(t,{x:D,y:I+1,w:M-2,h:l-2,radius:f}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(j,I,M,l),t.strokeRect(j,I,M,l),t.fillStyle=o.backgroundColor,t.fillRect(D,I+1,M-2,l-2))}t.fillStyle=this.labelTextColors[s]}drawBody(t,e,s){const{body:n}=this,{bodySpacing:a,bodyAlign:o,displayColors:r,boxHeight:l,boxWidth:M,boxPadding:c}=s,u=H(s.bodyFont);let h=u.lineHeight,d=0;const N=ui(s.rtl,this.x,this.width),I=function(p){e.fillText(p,N.x(t.x+d),t.y+h/2),t.y+=h+a},j=N.textAlign(o);let D,f,m,L,A,y,x;for(e.textAlign=o,e.textBaseline="middle",e.font=u.string,t.x=Ye(this,j,s),e.fillStyle=s.bodyColor,O(this.beforeBody,I),d=r&&j!=="right"?o==="center"?M/2+c:M+2+c:0,L=0,y=n.length;L<y;++L){for(D=n[L],f=this.labelTextColors[L],e.fillStyle=f,O(D.before,I),m=D.lines,r&&m.length&&(this._drawColorBox(e,t,L,N,s),h=Math.max(u.lineHeight,l)),A=0,x=m.length;A<x;++A)I(m[A]),h=u.lineHeight;O(D.after,I)}d=0,h=u.lineHeight,O(this.afterBody,I),t.y-=a}drawFooter(t,e,s){const n=this.footer,a=n.length;let o,r;if(a){const l=ui(s.rtl,this.x,this.width);for(t.x=Ye(this,s.footerAlign,s),t.y+=s.footerMarginTop,e.textAlign=l.textAlign(s.footerAlign),e.textBaseline="middle",o=H(s.footerFont),e.fillStyle=s.footerColor,e.font=o.string,r=0;r<a;++r)e.fillText(n[r],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+s.footerSpacing}}drawBackground(t,e,s,n){const{xAlign:a,yAlign:o}=this,{x:r,y:l}=t,{width:M,height:c}=s,{topLeft:u,topRight:h,bottomLeft:d,bottomRight:N}=Ot(n.cornerRadius);e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.beginPath(),e.moveTo(r+u,l),o==="top"&&this.drawCaret(t,e,s,n),e.lineTo(r+M-h,l),e.quadraticCurveTo(r+M,l,r+M,l+h),o==="center"&&a==="right"&&this.drawCaret(t,e,s,n),e.lineTo(r+M,l+c-N),e.quadraticCurveTo(r+M,l+c,r+M-N,l+c),o==="bottom"&&this.drawCaret(t,e,s,n),e.lineTo(r+d,l+c),e.quadraticCurveTo(r,l+c,r,l+c-d),o==="center"&&a==="left"&&this.drawCaret(t,e,s,n),e.lineTo(r,l+u),e.quadraticCurveTo(r,l,r+u,l),e.closePath(),e.fill(),n.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,s=this.$animations,n=s&&s.x,a=s&&s.y;if(n||a){const o=oe[t.position].call(this,this._active,this._eventPosition);if(!o)return;const r=this._size=Sn(this,t),l=Object.assign({},o,this._size),M=Cn(e,t,l),c=En(t,l,M,e);(n._to!==c.x||a._to!==c.y)&&(this.xAlign=M.xAlign,this.yAlign=M.yAlign,this.width=r.width,this.height=r.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let s=this.opacity;if(!s)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},a={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;const o=K(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=s,this.drawBackground(a,t,n,e),el(t,e.textDirection),a.y+=o.top,this.drawTitle(a,t,e),this.drawBody(a,t,e),this.drawFooter(a,t,e),il(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const s=this._active,n=t.map(({datasetIndex:r,index:l})=>{const M=this.chart.getDatasetMeta(r);if(!M)throw new Error("Cannot find a dataset at index "+r);return{datasetIndex:r,element:M.data[l],index:l}}),a=!le(s,n),o=this._positionChanged(n,e);(a||o)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,s=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,a=this._active||[],o=this._getActiveElements(t,a,e,s),r=this._positionChanged(o,t),l=e||!le(o,a)||r;return l&&(this._active=o,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,s,n){const a=this.options;if(t.type==="mouseout")return[];if(!n)return e;const o=this.chart.getElementsAtEventForMode(t,a.mode,a,s);return a.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:s,caretY:n,options:a}=this,o=oe[a.position].call(this,t,e);return o!==!1&&(s!==o.x||n!==o.y)}}Oi.positioners=oe;var Ac={id:"tooltip",_element:Oi,positioners:oe,afterInit(i,t,e){e&&(i.tooltip=new Oi({chart:i,options:e}))},beforeUpdate(i,t,e){i.tooltip&&i.tooltip.initialize(e)},reset(i,t,e){i.tooltip&&i.tooltip.initialize(e)},afterDraw(i){const t=i.tooltip;if(t&&t._willRender()){const e={tooltip:t};if(i.notifyPlugins("beforeTooltipDraw",e)===!1)return;t.draw(i.ctx),i.notifyPlugins("afterTooltipDraw",e)}},afterEvent(i,t){if(i.tooltip){const e=t.replay;i.tooltip.handleEvent(t.event,e,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(i,t)=>t.bodyFont.size,boxWidth:(i,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:lt,title(i){if(i.length>0){const t=i[0],e=t.chart.data.labels,s=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(s>0&&t.dataIndex<s)return e[t.dataIndex]}return""},afterTitle:lt,beforeBody:lt,beforeLabel:lt,label(i){if(this&&this.options&&this.options.mode==="dataset")return i.label+": "+i.formattedValue||i.formattedValue;let t=i.dataset.label||"";t&&(t+=": ");const e=i.formattedValue;return E(e)||(t+=e),t},labelColor(i){const e=i.chart.getDatasetMeta(i.datasetIndex).controller.getStyle(i.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(i){const e=i.chart.getDatasetMeta(i.datasetIndex).controller.getStyle(i.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:lt,afterBody:lt,beforeFooter:lt,footer:lt,afterFooter:lt}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:i=>i!=="filter"&&i!=="itemSort"&&i!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const mc=(i,t,e,s)=>(typeof t=="string"?(e=i.push(t)-1,s.unshift({index:e,label:t})):isNaN(t)&&(e=null),e);function Lc(i,t,e,s){const n=i.indexOf(t);if(n===-1)return mc(i,t,e,s);const a=i.lastIndexOf(t);return n!==a?e:n}const yc=(i,t)=>i===null?null:B(Math.round(i),0,t);class Qe extends zt{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const s=this.getLabels();for(const{index:n,label:a}of e)s[n]===a&&s.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(E(t))return null;const s=this.getLabels();return e=isFinite(e)&&s[e]===t?e:Lc(s,t,C(e,t),this._addedLabels),yc(e,s.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:s,max:n}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(s=0),e||(n=this.getLabels().length-1)),this.min=s,this.max=n}buildTicks(){const t=this.min,e=this.max,s=this.options.offset,n=[];let a=this.getLabels();a=t===0&&e===a.length-1?a:a.slice(t,e+1),this._valueRange=Math.max(a.length-(s?0:1),1),this._startValue=this.min-(s?.5:0);for(let o=t;o<=e;o++)n.push({value:o});return n}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Qe.id="category",Qe.defaults={ticks:{callback:Qe.prototype.getLabelForValue}};function xc(i,t){const e=[],{bounds:n,step:a,min:o,max:r,precision:l,count:M,maxTicks:c,maxDigits:u,includeBounds:h}=i,d=a||1,N=c-1,{min:I,max:j}=t,D=!E(o),f=!E(r),m=!E(M),L=(j-I)/(u+1);let A=Hi((j-I)/N/d)*d,y,x,p,z;if(A<1e-14&&!D&&!f)return[{value:I},{value:j}];z=Math.ceil(j/A)-Math.floor(I/A),z>N&&(A=Hi(z*A/N/d)*d),E(l)||(y=Math.pow(10,l),A=Math.ceil(A*y)/y),n==="ticks"?(x=Math.floor(I/A)*A,p=Math.ceil(j/A)*A):(x=I,p=j),D&&f&&a&&vo((r-o)/a,A/1e3)?(z=Math.round(Math.min((r-o)/A,c)),A=(r-o)/z,x=o,p=r):m?(x=D?o:x,p=f?r:p,z=M-1,A=(p-x)/z):(z=(p-x)/A,Rt(z,Math.round(z),A/1e3)?z=Math.round(z):z=Math.ceil(z));const k=Math.max(Ji(A),Ji(x));y=Math.pow(10,E(l)?k:l),x=Math.round(x*y)/y,p=Math.round(p*y)/y;let U=0;for(D&&(h&&x!==o?(e.push({value:o}),x<o&&U++,Rt(Math.round((x+U*A)*y)/y,o,kn(o,L,i))&&U++):x<o&&U++);U<z;++U)e.push({value:Math.round((x+U*A)*y)/y});return f&&h&&p!==r?e.length&&Rt(e[e.length-1].value,r,kn(r,L,i))?e[e.length-1].value=r:e.push({value:r}):(!f||p===r)&&e.push({value:p}),e}function kn(i,t,{horizontal:e,minRotation:s}){const n=tt(s),a=(e?Math.sin(n):Math.cos(n))||.001,o=.75*t*(""+i).length;return Math.min(t/a,o)}class ve extends zt{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return E(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:s}=this.getUserBounds();let{min:n,max:a}=this;const o=l=>n=e?n:l,r=l=>a=s?a:l;if(t){const l=nt(n),M=nt(a);l<0&&M<0?r(0):l>0&&M>0&&o(0)}if(n===a){let l=1;(a>=Number.MAX_SAFE_INTEGER||n<=Number.MIN_SAFE_INTEGER)&&(l=Math.abs(a*.05)),r(a+l),t||o(n-l)}this.min=n,this.max=a}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:e,stepSize:s}=t,n;return s?(n=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),e=e||11),e&&(n=Math.min(e,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let s=this.getTickLimit();s=Math.max(2,s);const n={maxTicks:s,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},a=this._range||this,o=xc(n,a);return t.bounds==="ticks"&&Fi(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let e=this.min,s=this.max;if(super.configure(),this.options.offset&&t.length){const n=(s-e)/Math.max(t.length-1,1)/2;e-=n,s+=n}this._startValue=e,this._endValue=s,this._valueRange=s-e}getLabelForValue(t){return Jt(t,this.chart.options.locale,this.options.ticks.format)}}class wi extends ve{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=V(t)?t:0,this.max=V(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,s=tt(this.options.ticks.minRotation),n=(t?Math.sin(s):Math.cos(s))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,a.lineHeight/n))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}wi.id="linear",wi.defaults={ticks:{callback:Te.formatters.numeric}};function _n(i){return i/Math.pow(10,Math.floor(X(i)))===1}function Tc(i,t){const e=Math.floor(X(t.max)),s=Math.ceil(t.max/Math.pow(10,e)),n=[];let a=F(i.min,Math.pow(10,Math.floor(X(t.min)))),o=Math.floor(X(a)),r=Math.floor(a/Math.pow(10,o)),l=o<0?Math.pow(10,Math.abs(o)):1;do n.push({value:a,major:_n(a)}),++r,r===10&&(r=1,++o,l=o>=0?1:l),a=Math.round(r*Math.pow(10,o)*l)/l;while(o<e||o===e&&r<s);const M=F(i.max,a);return n.push({value:M,major:_n(a)}),n}class Yn extends zt{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const s=ve.prototype.parse.apply(this,[t,e]);if(s===0){this._zero=!0;return}return V(s)&&s>0?s:null}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=V(t)?Math.max(0,t):null,this.max=V(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let s=this.min,n=this.max;const a=l=>s=t?s:l,o=l=>n=e?n:l,r=(l,M)=>Math.pow(10,Math.floor(X(l))+M);s===n&&(s<=0?(a(1),o(10)):(a(r(s,-1)),o(r(n,1)))),s<=0&&a(r(n,-1)),n<=0&&o(r(s,1)),this._zero&&this.min!==this._suggestedMin&&s===r(this.min,0)&&a(r(s,-1)),this.min=s,this.max=n}buildTicks(){const t=this.options,e={min:this._userMin,max:this._userMax},s=Tc(e,this);return t.bounds==="ticks"&&Fi(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}getLabelForValue(t){return t===void 0?"0":Jt(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=X(t),this._valueRange=X(this.max)-X(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(X(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}Yn.id="logarithmic",Yn.defaults={ticks:{callback:Te.formatters.logarithmic,major:{enabled:!0}}};function ki(i){const t=i.ticks;if(t.display&&i.display){const e=K(t.backdropPadding);return C(t.font&&t.font.size,b.font.size)+e.height}return 0}function pc(i,t,e){return e=_(e)?e:[e],{w:Ir(i,t.string,e),h:e.length*t.lineHeight}}function Qn(i,t,e,s,n){return i===s||i===n?{start:t-e/2,end:t+e/2}:i<s||i>n?{start:t-e,end:t}:{start:t,end:t+e}}function zc(i){const t={l:i.left+i._padding.left,r:i.right-i._padding.right,t:i.top+i._padding.top,b:i.bottom-i._padding.bottom},e=Object.assign({},t),s=[],n=[],a=i._pointLabels.length,o=i.options.pointLabels,r=o.centerPointLabels?Q/a:0;for(let l=0;l<a;l++){const M=o.setContext(i.getPointLabelContext(l));n[l]=M.padding;const c=i.getPointPosition(l,i.drawingArea+n[l],r),u=H(M.font),h=pc(i.ctx,u,i._pointLabels[l]);s[l]=h;const d=et(i.getIndexAngle(l)+r),N=Math.round(He(d)),I=Qn(N,c.x,h.w,0,180),j=Qn(N,c.y,h.h,90,270);bc(e,t,d,I,j)}i.setCenterPoint(t.l-e.l,e.r-t.r,t.t-e.t,e.b-t.b),i._pointLabelItems=Sc(i,s,n)}function bc(i,t,e,s,n){const a=Math.abs(Math.sin(e)),o=Math.abs(Math.cos(e));let r=0,l=0;s.start<t.l?(r=(t.l-s.start)/a,i.l=Math.min(i.l,t.l-r)):s.end>t.r&&(r=(s.end-t.r)/a,i.r=Math.max(i.r,t.r+r)),n.start<t.t?(l=(t.t-n.start)/o,i.t=Math.min(i.t,t.t-l)):n.end>t.b&&(l=(n.end-t.b)/o,i.b=Math.max(i.b,t.b+l))}function Sc(i,t,e){const s=[],n=i._pointLabels.length,a=i.options,o=ki(a)/2,r=i.drawingArea,l=a.pointLabels.centerPointLabels?Q/n:0;for(let M=0;M<n;M++){const c=i.getPointPosition(M,r+o+e[M],l),u=Math.round(He(et(c.angle+v))),h=t[M],d=Oc(c.y,h.h,u),N=Cc(u),I=Ec(c.x,h.w,N);s.push({x:c.x,y:d,textAlign:N,left:I,top:d,right:I+h.w,bottom:d+h.h})}return s}function Cc(i){return i===0||i===180?"center":i<180?"left":"right"}function Ec(i,t,e){return e==="right"?i-=t:e==="center"&&(i-=t/2),i}function Oc(i,t,e){return e===90||e===270?i-=t/2:(e>270||e<90)&&(i-=t),i}function wc(i,t){const{ctx:e,options:{pointLabels:s}}=i;for(let n=t-1;n>=0;n--){const a=s.setContext(i.getPointLabelContext(n)),o=H(a.font),{x:r,y:l,textAlign:M,left:c,top:u,right:h,bottom:d}=i._pointLabelItems[n],{backdropColor:N}=a;if(!E(N)){const I=Ot(a.borderRadius),j=K(a.backdropPadding);e.fillStyle=N;const D=c-j.left,f=u-j.top,m=h-c+j.width,L=d-u+j.height;Object.values(I).some(A=>A!==0)?(e.beginPath(),fe(e,{x:D,y:f,w:m,h:L,radius:I}),e.fill()):e.fillRect(D,f,m,L)}je(e,i._pointLabels[n],r,l+o.lineHeight/2,o,{color:a.color,textAlign:M,textBaseline:"middle"})}}function vn(i,t,e,s){const{ctx:n}=i;if(e)n.arc(i.xCenter,i.yCenter,t,0,w);else{let a=i.getPointPosition(0,t);n.moveTo(a.x,a.y);for(let o=1;o<s;o++)a=i.getPointPosition(o,t),n.lineTo(a.x,a.y)}}function kc(i,t,e,s){const n=i.ctx,a=t.circular,{color:o,lineWidth:r}=t;!a&&!s||!o||!r||e<0||(n.save(),n.strokeStyle=o,n.lineWidth=r,n.setLineDash(t.borderDash),n.lineDashOffset=t.borderDashOffset,n.beginPath(),vn(i,e,a,s),n.closePath(),n.stroke(),n.restore())}function _c(i,t,e){return jt(i,{label:e,index:t,type:"pointLabel"})}class Ue extends ve{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=K(ki(this.options)/2),e=this.width=this.maxWidth-t.width,s=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+s/2+t.top),this.drawingArea=Math.floor(Math.min(e,s)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=V(t)&&!isNaN(t)?t:0,this.max=V(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/ki(this.options))}generateTickLabels(t){ve.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((e,s)=>{const n=Y(this.options.pointLabels.callback,[e,s],this);return n||n===0?n:""}).filter((e,s)=>this.chart.getDataVisibility(s))}fit(){const t=this.options;t.display&&t.pointLabels.display?zc(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,s,n){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((s-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,s,n))}getIndexAngle(t){const e=w/(this._pointLabels.length||1),s=this.options.startAngle||0;return et(t*e+tt(s))}getDistanceFromCenterForValue(t){if(E(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(E(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const s=e[t];return _c(this.getContext(),t,s)}}getPointPosition(t,e,s=0){const n=this.getIndexAngle(t)-v+s;return{x:Math.cos(n)*e+this.xCenter,y:Math.sin(n)*e+this.yCenter,angle:n}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:s,right:n,bottom:a}=this._pointLabelItems[t];return{left:e,top:s,right:n,bottom:a}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const s=this.ctx;s.save(),s.beginPath(),vn(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),s.closePath(),s.fillStyle=t,s.fill(),s.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:s,grid:n}=e,a=this._pointLabels.length;let o,r,l;if(e.pointLabels.display&&wc(this,a),n.display&&this.ticks.forEach((M,c)=>{if(c!==0){r=this.getDistanceFromCenterForValue(M.value);const u=n.setContext(this.getContext(c-1));kc(this,u,r,a)}}),s.display){for(t.save(),o=a-1;o>=0;o--){const M=s.setContext(this.getPointLabelContext(o)),{color:c,lineWidth:u}=M;!u||!c||(t.lineWidth=u,t.strokeStyle=c,t.setLineDash(M.borderDash),t.lineDashOffset=M.borderDashOffset,r=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(o,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,s=e.ticks;if(!s.display)return;const n=this.getIndexAngle(0);let a,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((r,l)=>{if(l===0&&!e.reverse)return;const M=s.setContext(this.getContext(l)),c=H(M.font);if(a=this.getDistanceFromCenterForValue(this.ticks[l].value),M.showLabelBackdrop){t.font=c.string,o=t.measureText(r.label).width,t.fillStyle=M.backdropColor;const u=K(M.backdropPadding);t.fillRect(-o/2-u.left,-a-c.size/2-u.top,o+u.width,c.size+u.height)}je(t,r.label,0,-a,c,{color:M.color})}),t.restore()}drawTitle(){}}Ue.id="radialLinear",Ue.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Te.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(i){return i},padding:5,centerPointLabels:!1}},Ue.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Ue.descriptors={angleLines:{_fallback:"grid"}};const Ze={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},G=Object.keys(Ze);function Yc(i,t){return i-t}function Un(i,t){if(E(t))return null;const e=i._adapter,{parser:s,round:n,isoWeekday:a}=i._parseOpts;let o=t;return typeof s=="function"&&(o=s(o)),V(o)||(o=typeof s=="string"?e.parse(o,s):e.parse(o)),o===null?null:(n&&(o=n==="week"&&(Ct(a)||a===!0)?e.startOf(o,"isoWeek",a):e.startOf(o,n)),+o)}function Zn(i,t,e,s){const n=G.length;for(let a=G.indexOf(i);a<n-1;++a){const o=Ze[G[a]],r=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((e-t)/(r*o.size))<=s)return G[a]}return G[n-1]}function Qc(i,t,e,s,n){for(let a=G.length-1;a>=G.indexOf(e);a--){const o=G[a];if(Ze[o].common&&i._adapter.diff(n,s,o)>=t-1)return o}return G[e?G.indexOf(e):0]}function vc(i){for(let t=G.indexOf(i)+1,e=G.length;t<e;++t)if(Ze[G[t]].common)return G[t]}function Pn(i,t,e){if(!e)i[t]=!0;else if(e.length){const{lo:s,hi:n}=Je(e,t),a=e[s]>=t?e[s]:e[n];i[a]=!0}}function Uc(i,t,e,s){const n=i._adapter,a=+n.startOf(t[0].value,s),o=t[t.length-1].value;let r,l;for(r=a;r<=o;r=+n.add(r,1,s))l=e[r],l>=0&&(t[l].major=!0);return t}function Rn(i,t,e){const s=[],n={},a=t.length;let o,r;for(o=0;o<a;++o)r=t[o],n[r]=o,s.push({value:r,major:!1});return a===0||!e?s:Uc(i,s,n,e)}class Pe extends zt{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const s=t.time||(t.time={}),n=this._adapter=new sM._date(t.adapters.date);n.init(e),Zt(s.displayFormats,n.formats()),this._parseOpts={parser:s.parser,round:s.round,isoWeekday:s.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return t===void 0?null:Un(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,s=t.time.unit||"day";let{min:n,max:a,minDefined:o,maxDefined:r}=this.getUserBounds();function l(M){!o&&!isNaN(M.min)&&(n=Math.min(n,M.min)),!r&&!isNaN(M.max)&&(a=Math.max(a,M.max))}(!o||!r)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),n=V(n)&&!isNaN(n)?n:+e.startOf(Date.now(),s),a=V(a)&&!isNaN(a)?a:+e.endOf(Date.now(),s)+1,this.min=Math.min(n,a-1),this.max=Math.max(n+1,a)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],s=t[t.length-1]),{min:e,max:s}}buildTicks(){const t=this.options,e=t.time,s=t.ticks,n=s.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const a=this.min,o=this.max,r=Ro(n,a,o);return this._unit=e.unit||(s.autoSkip?Zn(e.minUnit,this.min,this.max,this._getLabelCapacity(a)):Qc(this,r.length,e.minUnit,this.min,this.max)),this._majorUnit=!s.major.enabled||this._unit==="year"?void 0:vc(this._unit),this.initOffsets(n),t.reverse&&r.reverse(),Rn(this,r,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t){let e=0,s=0,n,a;this.options.offset&&t.length&&(n=this.getDecimalForValue(t[0]),t.length===1?e=1-n:e=(this.getDecimalForValue(t[1])-n)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?s=a:s=(a-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;e=B(e,0,o),s=B(s,0,o),this._offsets={start:e,end:s,factor:1/(e+1+s)}}_generate(){const t=this._adapter,e=this.min,s=this.max,n=this.options,a=n.time,o=a.unit||Zn(a.minUnit,e,s,this._getLabelCapacity(e)),r=C(a.stepSize,1),l=o==="week"?a.isoWeekday:!1,M=Ct(l)||l===!0,c={};let u=e,h,d;if(M&&(u=+t.startOf(u,"isoWeek",l)),u=+t.startOf(u,M?"day":o),t.diff(s,e,o)>1e5*r)throw new Error(e+" and "+s+" are too far apart with stepSize of "+r+" "+o);const N=n.ticks.source==="data"&&this.getDataTimestamps();for(h=u,d=0;h<s;h=+t.add(h,r,o),d++)Pn(c,h,N);return(h===s||n.bounds==="ticks"||d===1)&&Pn(c,h,N),Object.keys(c).sort((I,j)=>I-j).map(I=>+I)}getLabelForValue(t){const e=this._adapter,s=this.options.time;return s.tooltipFormat?e.format(t,s.tooltipFormat):e.format(t,s.displayFormats.datetime)}_tickFormatFunction(t,e,s,n){const a=this.options,o=a.time.displayFormats,r=this._unit,l=this._majorUnit,M=r&&o[r],c=l&&o[l],u=s[e],h=l&&c&&u&&u.major,d=this._adapter.format(t,n||(h?c:M)),N=a.ticks.callback;return N?Y(N,[d,e,s],this):d}generateTickLabels(t){let e,s,n;for(e=0,s=t.length;e<s;++e)n=t[e],n.label=this._tickFormatFunction(n.value,e,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,s=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+s)*e.factor)}getValueForPixel(t){const e=this._offsets,s=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+s*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,s=this.ctx.measureText(t).width,n=tt(this.isHorizontal()?e.maxRotation:e.minRotation),a=Math.cos(n),o=Math.sin(n),r=this._resolveTickFontOptions(0).size;return{w:s*a+r*o,h:s*o+r*a}}_getLabelCapacity(t){const e=this.options.time,s=e.displayFormats,n=s[e.unit]||s.millisecond,a=this._tickFormatFunction(t,0,Rn(this,[t],this._majorUnit),n),o=this._getLabelSize(a),r=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return r>0?r:1}getDataTimestamps(){let t=this._cache.data||[],e,s;if(t.length)return t;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(e=0,s=n.length;e<s;++e)t=t.concat(n[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let e,s;if(t.length)return t;const n=this.getLabels();for(e=0,s=n.length;e<s;++e)t.push(Un(this,n[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return qi(t.sort(Yc))}}Pe.id="time",Pe.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};function Re(i,t,e){let s=0,n=i.length-1,a,o,r,l;e?(t>=i[s].pos&&t<=i[n].pos&&({lo:s,hi:n}=mt(i,"pos",t)),{pos:a,time:r}=i[s],{pos:o,time:l}=i[n]):(t>=i[s].time&&t<=i[n].time&&({lo:s,hi:n}=mt(i,"time",t)),{time:a,pos:r}=i[s],{time:o,pos:l}=i[n]);const M=o-a;return M?r+(l-r)*(t-a)/M:r}class Vn extends Pe{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Re(e,this.min),this._tableRange=Re(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:s}=this,n=[],a=[];let o,r,l,M,c;for(o=0,r=t.length;o<r;++o)M=t[o],M>=e&&M<=s&&n.push(M);if(n.length<2)return[{time:e,pos:0},{time:s,pos:1}];for(o=0,r=n.length;o<r;++o)c=n[o+1],l=n[o-1],M=n[o],Math.round((c+l)/2)!==M&&a.push({time:M,pos:o/(r-1)});return a}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),s=this.getLabelTimestamps();return e.length&&s.length?t=this.normalize(e.concat(s)):t=e.length?e:s,t=this._cache.all=t,t}getDecimalForValue(t){return(Re(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,s=this.getDecimalForPixel(t)/e.factor-e.end;return Re(this._table,s*this._tableRange+this._minPos,!0)}}Vn.id="timeseries",Vn.defaults=Pe.defaults;var Yt;(function(i){i.ChartRendered="chart:rendered",i.ChartUpdated="chart:updated",i.ChartDestroyed="chart:destroyed",i.LabelsUpdated="labels:updated"})(Yt||(Yt={}));function Ve(i,t,e,s){i(t,e),s!==void 0&&s.emit(Yt.ChartRendered)}function Zc(i,t){i.update(),t!==void 0&&t.emit(Yt.ChartUpdated)}function We(i,t){i.destroy(),t!==void 0&&t.emit(Yt.ChartDestroyed)}function Pc(i,t){const e={labels:typeof i.labels=="undefined"?[]:[...i.labels],datasets:[]};return Wn(e,{...i},t),e}function Wn(i,t,e){const s=[];i.datasets=t.datasets.map(n=>{const a=i.datasets.find(o=>o[e]===n[e]);return!a||!n.data||s.includes(a)?{...n}:(s.push(a),Object.assign(a,n),a)})}function Rc(i,t,e){i.data.labels=t,e!==void 0&&e.emit(Yt.LabelsUpdated)}function Vc(i,t){i.options={...t}}function Wc(i,t){const e=i.datasets.map(n=>n.label),s=t.datasets.map(n=>n.label);return t.datasets.length===i.datasets.length&&e.every((n,a)=>n===s[a])}const Bc="Please remove the <template></template> tags from your chart component. See https://vue-chartjs.org/guide/#vue-single-file-components",Gc="Update ERROR: chart instance not found",Hc=((i,t,e)=>g.defineComponent({props:{chartData:{type:Object,required:!0},chartOptions:{type:Object,default:()=>{}},datasetIdKey:{type:String,default:"label"},chartId:{type:String,default:i},width:{type:Number,default:400},height:{type:Number,default:400},cssClasses:{type:String,default:""},styles:{type:Object,default:()=>{}},plugins:{type:Array,default:()=>[]}},setup(s,n){ae.register(e);const a=g.shallowRef(null),o=g.ref(null);function r(u,h){if(a.value!==null&&We(g.toRaw(a.value),n),o.value===null)throw new Error(Bc);{const d=Pc(u,s.datasetIdKey),N=o.value.getContext("2d");N!==null&&(a.value=new ae(N,{type:t,data:g.isProxy(u)?new Proxy(d,{}):d,options:h,plugins:s.plugins}))}}function l(u,h){const d=g.isProxy(u)?g.toRaw(u):{...u},N=g.isProxy(h)?g.toRaw(h):{...h};if(Object.keys(N).length>0){const I=g.toRaw(a.value);Wc(d,N)&&I!==null?(Wn(I==null?void 0:I.data,d,s.datasetIdKey),d.labels!==void 0&&Rc(I,d.labels,n),c()):(I!==null&&We(I,n),Ve(r,s.chartData,s.chartOptions,n))}else a.value!==null&&We(g.toRaw(a.value),n),Ve(r,s.chartData,s.chartOptions,n)}function M(u){const h=g.toRaw(a.value);h!==null?(Vc(h,u),c()):Ve(r,s.chartData,s.chartOptions,n)}function c(){const u=g.toRaw(a.value);u!==null?Zc(u,n):console.error(Gc)}return g.watch(()=>s.chartData,(u,h)=>l(u,h),{deep:!0}),g.watch(()=>s.chartOptions,u=>M(u),{deep:!0}),g.onMounted(()=>{"datasets"in s.chartData&&s.chartData.datasets.length>0&&Ve(r,s.chartData,s.chartOptions,n)}),g.onBeforeUnmount(()=>{a.value!==null&&We(g.toRaw(a.value),n)}),n.expose({chart:a,updateChart:c}),()=>g.h("div",{style:s.styles,class:s.cssClasses},[g.h("canvas",{id:s.chartId,width:s.width,height:s.height,ref:o})])}}))("bar-chart","bar",xe);var rg="";const Fc={name:"MultiRangeSlider",props:{baseClassName:{type:String,default:"multi-range-slider"},min:{type:Number},max:{type:Number},minValue:{type:Number},maxValue:{type:Number},step:{type:Number,default:1},preventWheel:{type:Boolean,default:!1},ruler:{type:Boolean,default:!0},label:{type:Boolean,default:!0},labels:{type:Array},minCaption:{type:String},maxCaption:{type:String},rangeMargin:{type:Number}},data(){let i=this.labels||[],t=this.min===void 0?0:this.min,e=i.length?i.length-1:100,s=this.max===void 0?e:this.max,n=this.minValue===void 0?25:this.minValue;i.length&&this.minValue===void 0&&(n=1);let a=this.maxValue||75;if(i.length&&this.maxValue===void 0&&(a=i.length-2),s<=t)throw new Error("Invalid props min or max");if(n>a)throw new Error("Invalid props minValue or maxValue");let o=this.rangeMargin===void 0?this.step:this.rangeMargin,r=o%this.step;return r&&(o=o+this.step-r),{valueMin:n<t?t:n,valueMax:a>s?s:a,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:o}},methods:{onBarLeftClick(){this.valueMin-this.step>=this.minimum?this.valueMin-=this.step:this.valueMin=this.minimum},onInnerBarLeftClick(){this.valueMin+this.rangeMarginValue<this.valueMax&&(this.valueMin+=this.step)},onBarRightClick(){this.valueMax+this.step<=this.maximum?this.valueMax+=this.step:this.valueMax=this.maximum},onInnerBarRightClick(){this.valueMax-this.rangeMarginValue>this.valueMin&&(this.valueMax-=this.step)},onInputMinChange(i){let t=parseFloat(i.target.value);t<=this.valueMax-this.rangeMarginValue&&t>=this.minimum?this.valueMin=t:i.target.value=this.valueMin},onInputMaxChange(i){let t=parseFloat(i.target.value);t>=this.valueMin+this.rangeMarginValue&&t<=this.maximum?this.valueMax=t:i.target.value=this.valueMax},onLeftThumbMousedown(i){if(i.preventDefault(),this.startX=i.clientX,i.type==="touchstart")if(i.touches.length===1)this.startX=i.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMin,this.barBox=i.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onLeftThumbMousemove),document.addEventListener("mouseup",this.onLeftThumbMouseup),document.addEventListener("touchmove",this.onLeftThumbMousemove),document.addEventListener("touchend",this.onLeftThumbMouseup)},onLeftThumbMousemove(i){this.mouseMoveCounter++;let t=i.clientX;i.type==="touchmove"&&(t=i.touches[0].clientX);let s=(t-this.startX)/this.barBox.width,n=this.barValue+(this.maximum-this.minimum)*s;n-=n%this.step,n<this.minimum?n=this.minimum:n>this.valueMax-this.rangeMarginValue&&(n=this.valueMax-this.rangeMarginValue),this.valueMin=n},onLeftThumbMouseup(){document.removeEventListener("mousemove",this.onLeftThumbMousemove),document.removeEventListener("mouseup",this.onLeftThumbMouseup),document.removeEventListener("touchmove",this.onLeftThumbMousemove),document.removeEventListener("touchend",this.onLeftThumbMouseup)},onRightThumbMousedown(i){if(i.preventDefault(),this.startX=i.clientX,i.type==="touchstart")if(i.touches.length===1)this.startX=i.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMax,this.barBox=i.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onRightThumbMousemove),document.addEventListener("mouseup",this.onRightThumbMouseup),document.addEventListener("touchmove",this.onRightThumbMousemove),document.addEventListener("touchend",this.onRightThumbMouseup)},onRightThumbMousemove(i){this.mouseMoveCounter++;let t=i.clientX;i.type==="touchmove"&&(t=i.touches[0].clientX);let s=(t-this.startX)/this.barBox.width,n=this.barValue+(this.maximum-this.minimum)*s;n-=n%this.step,n<this.valueMin+this.rangeMarginValue?n=this.valueMin+this.rangeMarginValue:n>this.maximum&&(n=this.maximum),this.valueMax=n},onRightThumbMouseup(){document.removeEventListener("mousemove",this.onRightThumbMousemove),document.removeEventListener("mouseup",this.onRightThumbMouseup),document.removeEventListener("touchmove",this.onRightThumbMousemove),document.removeEventListener("touchend",this.onRightThumbMouseup)},onMouseWheel(i){if(this.preventWheel===!0||!i.shiftKey&&!i.ctrlKey)return;let t=this.step;i.deltaY<0&&(t=-t),i.shiftKey&&i.ctrlKey?this.valueMin+t>=this.minimum&&this.valueMax+t<=this.maximum&&(this.valueMin=this.valueMin+t,this.valueMax=this.valueMax+t):i.ctrlKey?(t=this.valueMax+t,t<this.valueMin+this.rangeMarginValue?t=this.valueMin+this.rangeMarginValue:t>this.maximum&&(t=this.maximum),this.valueMax=t):i.shiftKey&&(t=this.valueMin+t,t<this.minimum?t=this.minimum:t>this.valueMax-this.rangeMarginValue&&(t=this.valueMax-this.rangeMarginValue),this.valueMin=t)},triggerInput(){let i=0;this.step.toString().includes(".")&&(i=2);let t={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(i)),maxValue:parseFloat(this.valueMax.toFixed(i))};this.$emit("input",t)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let i=this.labels||[],t=i.length?i.length-1:100;return this.max===void 0?t:this.max},stepCount(){let i=this.labels||[];return i.length?i.length-1:Math.floor((this.maximum-this.minimum)/this.step)},subStepCount(){return(this.labels||[]).length&&this.step>1?(this.maximum-this.minimum)/this.step:0},barMin(){return(this.valueMin-this.minimum)/(this.maximum-this.minimum)*100},barMax(){return 100-(this.valueMax-this.minimum)/(this.maximum-this.minimum)*100},barMinVal(){let i=0;return this.step.toString().includes(".")&&(i=2),(this.valueMin||0).toFixed(i)},barMaxVal(){let i=0;return this.step.toString().includes(".")&&(i=2),(this.valueMax||100).toFixed(i)},scaleLabels(){let i=this.labels||[];return i.length===0&&(i=[],i.push(this.minimum),i.push(this.maximum)),i}},watch:{valueMin(){this.triggerInput()},valueMax(){this.triggerInput()},minValue(i){this.valueMin=i<this.minimum?this.minimum:i},maxValue(i){this.valueMax=i>this.maximum?this.maximum:i}},mounted(){}},Jc={class:"bar"},Xc=["min","max","step","value"],$c={class:"caption"},Kc={class:"min-caption"},qc={class:"bar-inner"},tu=["min","max","step","value"],eu={class:"caption"},iu={class:"max-caption"},su={key:0,class:"ruler"},nu={key:1,class:"sub-ruler"},au={key:2,class:"labels"};function ou(i,t,e,s,n,a){return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass([e.baseClassName,n.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:t[10]||(t[10]=g.withModifiers((...o)=>a.onMouseWheel&&a.onMouseWheel(...o),["prevent","stop"]))},[g.createElementVNode("div",Jc,[g.createElementVNode("div",{class:"bar-left",style:g.normalizeStyle({width:a.barMin+"%"}),onClick:t[0]||(t[0]=(...o)=>a.onBarLeftClick&&a.onBarLeftClick(...o))},null,4),g.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:a.minimum,max:a.maximum,step:e.step,value:n.valueMin,onInput:t[1]||(t[1]=g.withModifiers((...o)=>a.onInputMinChange&&a.onInputMinChange(...o),["stop","prevent"]))},null,40,Xc),g.createElementVNode("div",{class:"thumb thumb-left",onMousedown:t[2]||(t[2]=(...o)=>a.onLeftThumbMousedown&&a.onLeftThumbMousedown(...o)),onTouchstart:t[3]||(t[3]=(...o)=>a.onLeftThumbMousedown&&a.onLeftThumbMousedown(...o))},[g.createElementVNode("div",$c,[g.createElementVNode("span",Kc,g.toDisplayString(e.minCaption||a.barMinVal),1)])],32),g.createElementVNode("div",qc,[g.createElementVNode("div",{class:"bar-inner-left",onClick:t[4]||(t[4]=(...o)=>a.onInnerBarLeftClick&&a.onInnerBarLeftClick(...o))}),g.createElementVNode("div",{class:"bar-inner-right",onClick:t[5]||(t[5]=(...o)=>a.onInnerBarRightClick&&a.onInnerBarRightClick(...o))})]),g.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:a.minimum,max:a.maximum,step:e.step,value:n.valueMax,onInput:t[6]||(t[6]=g.withModifiers((...o)=>a.onInputMaxChange&&a.onInputMaxChange(...o),["stop","prevent"]))},null,40,tu),g.createElementVNode("div",{class:"thumb thumb-right",onMousedown:t[7]||(t[7]=(...o)=>a.onRightThumbMousedown&&a.onRightThumbMousedown(...o)),onTouchstart:t[8]||(t[8]=(...o)=>a.onRightThumbMousedown&&a.onRightThumbMousedown(...o))},[g.createElementVNode("div",eu,[g.createElementVNode("span",iu,g.toDisplayString(e.maxCaption||a.barMaxVal),1)])],32),g.createElementVNode("div",{class:"bar-right",style:g.normalizeStyle({width:a.barMax+"%"}),onClick:t[9]||(t[9]=(...o)=>a.onBarRightClick&&a.onBarRightClick(...o))},null,4)]),e.ruler?(g.openBlock(),g.createElementBlock("div",su,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(a.stepCount,o=>(g.openBlock(),g.createElementBlock("div",{key:o,class:"ruler-rule"}))),128))])):g.createCommentVNode("",!0),a.subStepCount?(g.openBlock(),g.createElementBlock("div",nu,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(a.subStepCount,o=>(g.openBlock(),g.createElementBlock("div",{key:o,class:"ruler-sub-rule"}))),128))])):g.createCommentVNode("",!0),e.label?(g.openBlock(),g.createElementBlock("div",au,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(a.scaleLabels,o=>(g.openBlock(),g.createElementBlock("div",{class:"label",key:o},g.toDisplayString(o),1))),128))])):g.createCommentVNode("",!0)],34)}var ru=q(Fc,[["render",ou]]),lg="";ae.register(Ac,_e,Qe,wi);const lu=g.defineComponent({components:{Bar:Hc,MultiRangeSlider:ru},props:{numberRange:{type:Array,default:()=>[{key:1,count:10}]},width:{type:Number,default:200},height:{type:Number,default:50},chartId:{type:String,default:"bar-chart"},datasetIdKey:{type:String,default:"label"},steps:{type:Number,default:1}},data(){return{chartData:{labels:[],datasets:[{labels:"",data:[],backgroundColor:["#5ea9e5"],borderRadius:1,hoverBackgroundColor:"#e0e0e0"}]},chartOptions:{responsive:!0,plugins:{legend:{display:!1},tooltip:{enabled:!1}},scales:{x:{display:!1,grid:{display:!1},ticks:{display:!0}},y:{display:!1,grid:{display:!1},ticks:{display:!1}}}},chartLines:{},min:"1",max:this.maxNumber(this.numberRange),rangeMax:this.numberRange.length,chart_dta:[],BarMinValue:1,BarMaxValue:this.numberRange.length,activeFilter:!1,validated:!1,isMatch:!1,isExclude:!1,isDisable:!1}},mounted(){this.isMatch=!0,this.setChartData(this.numberRange),this.highlightChart()},methods:{changeMin(i){let t=i.target.value;this.min=t||"1",this.BarMinValue=t?this.getFirstIndex(parseInt(t)):1,this.isMatch&&!this.isDisable&&this.matchFilter(),this.isExclude&&!this.isDisable&&this.excludeFilter()},changeMax(i){let t=i.target.value;this.BarMaxValue=t&&t>this.maxNumber(this.numberRange)?this.numberRange.length:this.getLastIndex(parseInt(t)),this.max=t&&t>this.maxNumber(this.numberRange)?this.maxNumber(this.numberRange):t,this.isMatch&&!this.isDisable&&this.matchFilter(),this.isExclude&&!this.isDisable&&this.excludeFilter()},setChartData(i){i=this.sortData(i),this.removeChartData();let t=this.chartData.labels;for(let e=0;e<i.length;e++)t.push(i[e].key),this.chart_dta.push(i[e].count);this.chartData.datasets[0].data=this.chart_dta},highlightChart(){var i=this.chartData.datasets[0].data;this.chartLines=this.chartData.datasets[0],this.chartData.datasets[0].backgroundColor=[];for(let t=0;t<=i.length;t++)i[t]>=this.min&&i[t]<=this.max?this.chartData.datasets[0].backgroundColor.push("#5ea9e5"):this.chartData.datasets[0].backgroundColor.push("#e0e0e0")},updateBarChart(i){const{minValue:t,maxValue:e}=i;this.BarMinValue=t,this.BarMaxValue=e;var s=this.chartData.datasets[0].data;this.min=s[this.BarMinValue]?s[this.BarMinValue]:"1",this.max=s[this.BarMaxValue]?s[this.BarMaxValue]:this.max,this.isMatch&&!this.isDisable&&this.matchFilter(),this.isExclude&&!this.isDisable&&this.excludeFilter()},toggleFilter(){this.activeFilter=!this.activeFilter},removeChartData(){this.chartData.labels=[],this.chartData.datasets[0].data=[],this.chart_dta=[]},matchFilter(){if(!this.isDisable){this.isMatch=!0,this.isExclude=!1;var i=this.chartData.datasets[0].data;this.chartLines=this.chartData.datasets[0],this.chartData.datasets[0].backgroundColor=[];for(let t=0;t<=i.length;t++)i[t]>=this.min&&i[t]<=this.max?this.chartData.datasets[0].backgroundColor.push("#5ea9e5"):this.chartData.datasets[0].backgroundColor.push("#e0e0e0")}},excludeFilter(){if(!this.isDisable){this.isMatch=!1,this.isExclude=!0;var i=this.chartData.datasets[0].data;this.chartLines=this.chartData.datasets[0],this.chartData.datasets[0].backgroundColor=[];for(let t=0;t<i.length;t++)i[t]>=this.min&&i[t]<=this.max?this.chartData.datasets[0].backgroundColor.push("#e0e0e0"):this.chartData.datasets[0].backgroundColor.push("#5ea9e5")}},missingFilter(){this.isDisable=!this.isDisable,this.validated=!this.validated;var i=this.chartData.datasets[0].data;if(this.chartLines=this.chartData.datasets[0],this.chartData.datasets[0].backgroundColor=[],this.validated)for(let t=1;t<=i.length;t++)this.chartData.datasets[0].backgroundColor.push("#e0e0e0");else this.isMatch&&this.matchFilter(),this.isExclude&&this.excludeFilter()},sortData(i){return i.slice().sort(function(t,e){return t.count-e.count})},maxNumber(i){if(i.length!=0)return i.reduce((t,e)=>t=t>e.count?t:e.count,0)},getLastIndex(i){let t=this.chartData.datasets[0].data,e=0;for(let s=i;s>=0;s--)if(t.lastIndexOf(s)!==-1){e=t.lastIndexOf(s);break}else continue;return e},getFirstIndex(i){let t=this.chartData.datasets[0].data,e=0;for(let s=i;s<=this.max;s++)if(t.lastIndexOf(s)!==-1){e=t.lastIndexOf(s);break}else continue;return e}}}),Mu={class:"dh-range-container"},cu={class:"bar-chart"},uu={class:"input-group-section"},gu={class:"input-group sb-input"},hu=["disabled","max","value"],du={class:"input-group sb-input"},Nu=["disabled","max","min","value"],Iu={class:"advance_section"},Du=g.createTextVNode(" Advanced "),ju={key:0,alt:"arrow",src:Ui,width:"20"},fu={key:1,alt:"arrow",src:Zi,width:"20"},Au={key:0,class:"list-none"},mu=["checked"],Lu=g.createTextVNode(" Filter Missing "),yu=["checked","disabled"],xu=g.createTextVNode(" Match "),Tu=["checked","disabled"],pu=g.createTextVNode(" Exclude ");function zu(i,t,e,s,n,a){const o=g.resolveComponent("Bar"),r=g.resolveComponent("MultiRangeSlider");return g.openBlock(),g.createElementBlock("div",Mu,[g.createElementVNode("div",cu,[g.createVNode(o,{"chart-data":i.chartData,"chart-id":i.chartId,"chart-options":i.chartOptions,"dataset-id-key":i.datasetIdKey,height:i.height,width:i.width},null,8,["chart-data","chart-id","chart-options","dataset-id-key","height","width"]),g.createVNode(r,{"base-class-name":`multi-range-slider range-slider ${i.isDisable}`,label:!1,max:i.rangeMax,"max-caption":`${i.max}`,"max-value":i.BarMaxValue,min:1,"min-caption":`${i.min}`,"min-value":i.BarMinValue,"range-margin":0,ruler:!1,step:i.steps,onInput:i.updateBarChart},null,8,["base-class-name","max","max-caption","max-value","min-caption","min-value","step","onInput"])]),g.createElementVNode("div",uu,[g.createElementVNode("div",gu,[g.createElementVNode("label",{class:g.normalizeClass(`text-2 input-to ${i.validated?"disable":""}`)}," From ",2),g.createElementVNode("input",{class:"form-input text",disabled:!!i.validated,max:`${i.max}`,min:"1",placeholder:"From",type:"number",value:`${i.min}`,onInput:t[0]||(t[0]=l=>i.changeMin(l))},null,40,hu)]),g.createElementVNode("div",du,[g.createElementVNode("label",{class:g.normalizeClass(`text-2 input-to ${i.validated?"disable":""}`)}," To ",2),g.createElementVNode("input",{class:"form-input text",disabled:!!i.validated,max:`${i.maxNumber(i.numberRange)}`,min:`${i.min}`,placeholder:"To",type:"number",value:`${i.max}`,onInput:t[1]||(t[1]=l=>i.changeMax(l))},null,40,Nu)])]),g.createElementVNode("div",Iu,[g.createElementVNode("span",{class:"toggle-icon",onClick:t[2]||(t[2]=l=>i.toggleFilter())},[Du,i.activeFilter?g.createCommentVNode("",!0):(g.openBlock(),g.createElementBlock("img",ju)),i.activeFilter?(g.openBlock(),g.createElementBlock("img",fu)):g.createCommentVNode("",!0)]),i.activeFilter?(g.openBlock(),g.createElementBlock("ul",Au,[g.createElementVNode("li",null,[g.createElementVNode("label",null,[g.createElementVNode("input",{checked:i.isDisable,type:"checkbox",onChange:t[3]||(t[3]=l=>i.missingFilter())},null,40,mu),Lu])]),g.createElementVNode("li",null,[g.createElementVNode("label",null,[g.createElementVNode("input",{checked:i.isMatch,disabled:!!i.validated,name:"number_filter",type:"radio",onChange:t[4]||(t[4]=l=>i.matchFilter())},null,40,yu),xu]),g.createElementVNode("label",null,[g.createElementVNode("input",{checked:i.isExclude,disabled:!!i.validated,name:"number_filter",type:"radio",onChange:t[5]||(t[5]=l=>i.excludeFilter())},null,40,Tu),pu])])])):g.createCommentVNode("",!0)])])}var bu=q(lu,[["render",zu]]),Mg="";const Su={class:"search-panel"},Cu=["placeholder"];var Eu=q(g.defineComponent({__name:"SearchInput",props:{modelValue:String,placeholder:String},emits:["submit","clean","update:modelValue"],setup(i,{emit:t}){const e=i,s=g.ref("");function n(){t("submit",s.value),t("update:modelValue",s.value)}function a(){s.value="",t("clean"),t("update:modelValue",s.value)}return g.onMounted(()=>()=>s.value=e.modelValue||""),g.watch(e,()=>s.value=e.modelValue||""),(o,r)=>(g.openBlock(),g.createElementBlock("div",Su,[g.withDirectives(g.createElementVNode("input",{"onUpdate:modelValue":r[0]||(r[0]=l=>s.value=l),class:"form-input search-panel-input","data-e2e":"search-input",placeholder:e.placeholder,onKeyup:n},null,40,Cu),[[g.vModelText,s.value]]),s.value?g.createCommentVNode("",!0):(g.openBlock(),g.createElementBlock("button",{key:0,class:"search-panel-button","data-e2e":"search-submit",onClick:n},[g.createVNode(rt,{active:!0,"icon-name":"search",size:24})])),s.value?(g.openBlock(),g.createElementBlock("button",{key:1,class:"search-panel-button close","data-e2e":"search-close",onClick:a},[g.createVNode(rt,{class:"icon","icon-name":"close",size:24})])):g.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-f97055f4"]]),ug="";const Ou=i=>(g.pushScopeId("data-v-cb51b2ba"),i=i(),g.popScopeId(),i),wu={class:"stepper"},ku={class:"step"},_u=Ou(()=>g.createElementVNode("hr",{class:"solid"},null,-1));var Yu=q(g.defineComponent({__name:"Stepper",props:{maxSteps:Number,currentStep:Number},setup(i){const t=i;function e(){return Array.from(Array(t.maxSteps||0).keys())}return(s,n)=>(g.openBlock(),g.createElementBlock("div",wu,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(e(),a=>(g.openBlock(),g.createElementBlock("div",ku,[g.createElementVNode("span",{class:g.normalizeClass(["step-number",{active:a===i.currentStep}])},g.toDisplayString(a+1),3),_u]))),256))]))}}),[["__scopeId","data-v-cb51b2ba"]]);const Qu=g.defineComponent({props:{data:{type:Boolean,required:!0,default:!1},label:{type:String,default:"Label"}},data(){return{active:this.data}},emits:["change"],computed:{checkedValue:{get(){return this.data},set(i){this.active=i,this.$emit("change",i)}}}}),vu={class:"dp__options"},Uu={class:"dp__options_switch"},Zu=g.createElementVNode("span",{class:"dp__options_slider"},null,-1);function Pu(i,t,e,s,n,a){return g.openBlock(),g.createElementBlock("div",vu,[g.createElementVNode("span",null,g.toDisplayString(i.label),1),g.createElementVNode("label",Uu,[g.withDirectives(g.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=o=>i.checkedValue=o),name:"switch",type:"checkbox"},null,512),[[g.vModelCheckbox,i.checkedValue]]),Zu])])}var Ru=q(Qu,[["render",Pu]]);const Vu=g.defineComponent({props:{target:{type:String,required:!0},trigger:{type:String,required:!0},placement:{type:Object,default:()=>({placement:"bottom"}),required:!1},tooltipText:{type:String,required:!0}},data(){return{show:!1}},methods:{showTooltip(){this.show=!this.show},tooltip(){let i=this.$refs.main,t=this.$refs[this.target];["right","left"].includes(this.placement)&&(t.style.top=-(((t==null?void 0:t.offsetHeight)-(i==null?void 0:i.offsetHeight))/2)+"px")}}}),Wu=["placement","target","tooltipText","trigger"],Bu=["id"],Gu={class:"text"};function Hu(i,t,e,s,n,a){return g.openBlock(),g.createElementBlock("div",{id:"main-contain",ref:"main",class:"dh-tooltip-container tooltip",placement:i.placement,target:i.target,tooltipText:i.tooltipText,trigger:i.trigger,onClick:t[0]||(t[0]=o=>i.trigger=="click"?i.showTooltip():null),onMouseover:t[1]||(t[1]=o=>i.tooltip())},[g.renderSlot(i.$slots,"default"),g.createElementVNode("div",{id:i.target,ref:i.target,class:g.normalizeClass(`tooltiptext ${i.show}`)},[g.createElementVNode("span",Gu,g.toDisplayString(i.tooltipText),1)],10,Bu)],40,Wu)}var Fu=q(Vu,[["render",Hu]]),hg="";const Ju={class:"password-panel"},Xu=["type","placeholder"],$u={class:"icon is-right"},Ku={key:0,class:"tooltip"},qu={class:"active-text"},tg={class:"active-text"},eg={class:"active-text"};var ig=q(g.defineComponent({__name:"PasswordField",props:{modelValue:String,placeholder:String,tipChars:{type:String,default:"12 Characters"},tipNumbers:{type:String,default:"Numbers"},tipSymbols:{type:String,default:"Symbols"}},emits:["submit","clean","update:modelValue"],setup(i,{emit:t}){const e=i,s=g.ref(""),n=g.ref(!1),a=g.ref(!1),o=g.ref(!1),r=g.ref(!1),l=g.ref(!1),M=g.ref(!1);function c(){t("submit",s.value),t("update:modelValue",s.value)}function u(){n.value=!0,M.value=!0}function h(){n.value=!1,M.value=!1}function d(){l.value=!l.value}return g.onMounted(()=>()=>s.value=e.modelValue||""),g.watch(e,()=>(s.value=e.modelValue||"",a.value=s.value.length>11,o.value=/\d/.test(s.value),r.value=/[!@#\$%\^\&*\)\(+=._-]/.test(s.value))),(N,I)=>(g.openBlock(),g.createElementBlock("div",Ju,[g.withDirectives(g.createElementVNode("input",{type:l.value?"text":"password",class:"form-input password-panel-input","onUpdate:modelValue":I[0]||(I[0]=j=>s.value=j),"data-e2e":"search-input",placeholder:e.placeholder,onKeyup:c,onFocus:u,onFocusout:h},null,40,Xu),[[g.vModelDynamic,s.value]]),g.createElementVNode("button",{class:"password-panel-button",onClick:d},[g.createElementVNode("span",$u,[g.createVNode(rt,{active:M.value,"icon-name":l.value?"invisible":"visible",size:20},null,8,["active","icon-name"])])]),n.value?(g.openBlock(),g.createElementBlock("div",Ku,[g.createElementVNode("p",qu,[g.createVNode(rt,{class:"accept-icon","icon-name":a.value?"accept":"close",size:a.value?10:16},null,8,["icon-name","size"]),g.createTextVNode(" "+g.toDisplayString(e.tipChars),1)]),g.createElementVNode("p",tg,[g.createVNode(rt,{class:"accept-icon","icon-name":o.value?"accept":"close",size:o.value?10:16},null,8,["icon-name","size"]),g.createTextVNode(" "+g.toDisplayString(e.tipNumbers),1)]),g.createElementVNode("p",eg,[g.createVNode(rt,{class:"accept-icon","icon-name":r.value?"accept":"close",size:r.value?10:16},null,8,["icon-name","size"]),g.createTextVNode(" "+g.toDisplayString(e.tipSymbols),1)])])):g.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-9f707e50"]]);W.DhAdvancedFilter=qn,W.DhIcon=rt,W.DhModal=No,W.DhNotification=zo,W.DhNumberRange=bu,W.DhPasswordField=ig,W.DhSearchInput=Eu,W.DhStepper=Yu,W.DhSwitch=Ru,W.DhTooltip=Fu,Object.defineProperties(W,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
18
+ `):i}function hc(i,t){const{element:e,datasetIndex:s,index:n}=t,a=i.getDatasetMeta(s).controller,{label:o,value:r}=a.getLabelAndValue(n);return{chart:i,label:o,parsed:a.getParsed(n),raw:i.data.datasets[s].data[n],formattedValue:r,dataset:a.getDataset(),dataIndex:n,datasetIndex:s,element:e}}function Sn(i,t){const e=i.chart.ctx,{body:s,footer:n,title:a}=i,{boxWidth:o,boxHeight:r}=t,l=H(t.bodyFont),M=H(t.titleFont),c=H(t.footerFont),u=a.length,h=n.length,d=s.length,N=K(t.padding);let I=N.height,j=0,D=s.reduce((L,A)=>L+A.before.length+A.lines.length+A.after.length,0);if(D+=i.beforeBody.length+i.afterBody.length,u&&(I+=u*M.lineHeight+(u-1)*t.titleSpacing+t.titleMarginBottom),D){const L=t.displayColors?Math.max(r,l.lineHeight):l.lineHeight;I+=d*L+(D-d)*l.lineHeight+(D-1)*t.bodySpacing}h&&(I+=t.footerMarginTop+h*c.lineHeight+(h-1)*t.footerSpacing);let f=0;const m=function(L){j=Math.max(j,e.measureText(L).width+f)};return e.save(),e.font=M.string,O(i.title,m),e.font=l.string,O(i.beforeBody.concat(i.afterBody),m),f=t.displayColors?o+2+t.boxPadding:0,O(s,L=>{O(L.before,m),O(L.lines,m),O(L.after,m)}),f=0,e.font=c.string,O(i.footer,m),e.restore(),j+=N.width,{width:j,height:I}}function dc(i,t){const{y:e,height:s}=t;return e<s/2?"top":e>i.height-s/2?"bottom":"center"}function Nc(i,t,e,s){const{x:n,width:a}=s,o=e.caretSize+e.caretPadding;if(i==="left"&&n+a+o>t.width||i==="right"&&n-a-o<0)return!0}function Ic(i,t,e,s){const{x:n,width:a}=e,{width:o,chartArea:{left:r,right:l}}=i;let M="center";return s==="center"?M=n<=(r+l)/2?"left":"right":n<=a/2?M="left":n>=o-a/2&&(M="right"),Nc(M,i,t,e)&&(M="center"),M}function Cn(i,t,e){const s=e.yAlign||t.yAlign||dc(i,e);return{xAlign:e.xAlign||t.xAlign||Ic(i,t,e,s),yAlign:s}}function Dc(i,t){let{x:e,width:s}=i;return t==="right"?e-=s:t==="center"&&(e-=s/2),e}function jc(i,t,e){let{y:s,height:n}=i;return t==="top"?s+=e:t==="bottom"?s-=n+e:s-=n/2,s}function En(i,t,e,s){const{caretSize:n,caretPadding:a,cornerRadius:o}=i,{xAlign:r,yAlign:l}=e,M=n+a,{topLeft:c,topRight:u,bottomLeft:h,bottomRight:d}=Ot(o);let N=Dc(t,r);const I=jc(t,l,M);return l==="center"?r==="left"?N+=M:r==="right"&&(N-=M):r==="left"?N-=Math.max(c,h)+n:r==="right"&&(N+=Math.max(u,d)+n),{x:B(N,0,s.width-t.width),y:B(I,0,s.height-t.height)}}function Ye(i,t,e){const s=K(e.padding);return t==="center"?i.x+i.width/2:t==="right"?i.x+i.width-s.right:i.x+s.left}function On(i){return ot([],gt(i))}function fc(i,t,e){return jt(i,{tooltip:t,tooltipItems:e,type:"tooltip"})}function wn(i,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?i.override(e):i}class Oi extends ut{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,s=this.options.setContext(this.getContext()),n=s.enabled&&e.options.animation&&s.animations,a=new vs(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=fc(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:s}=e,n=s.beforeTitle.apply(this,[t]),a=s.title.apply(this,[t]),o=s.afterTitle.apply(this,[t]);let r=[];return r=ot(r,gt(n)),r=ot(r,gt(a)),r=ot(r,gt(o)),r}getBeforeBody(t,e){return On(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:s}=e,n=[];return O(t,a=>{const o={before:[],lines:[],after:[]},r=wn(s,a);ot(o.before,gt(r.beforeLabel.call(this,a))),ot(o.lines,r.label.call(this,a)),ot(o.after,gt(r.afterLabel.call(this,a))),n.push(o)}),n}getAfterBody(t,e){return On(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:s}=e,n=s.beforeFooter.apply(this,[t]),a=s.footer.apply(this,[t]),o=s.afterFooter.apply(this,[t]);let r=[];return r=ot(r,gt(n)),r=ot(r,gt(a)),r=ot(r,gt(o)),r}_createItems(t){const e=this._active,s=this.chart.data,n=[],a=[],o=[];let r=[],l,M;for(l=0,M=e.length;l<M;++l)r.push(hc(this.chart,e[l]));return t.filter&&(r=r.filter((c,u,h)=>t.filter(c,u,h,s))),t.itemSort&&(r=r.sort((c,u)=>t.itemSort(c,u,s))),O(r,c=>{const u=wn(t.callbacks,c);n.push(u.labelColor.call(this,c)),a.push(u.labelPointStyle.call(this,c)),o.push(u.labelTextColor.call(this,c))}),this.labelColors=n,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=r,r}update(t,e){const s=this.options.setContext(this.getContext()),n=this._active;let a,o=[];if(!n.length)this.opacity!==0&&(a={opacity:0});else{const r=oe[s.position].call(this,n,this._eventPosition);o=this._createItems(s),this.title=this.getTitle(o,s),this.beforeBody=this.getBeforeBody(o,s),this.body=this.getBody(o,s),this.afterBody=this.getAfterBody(o,s),this.footer=this.getFooter(o,s);const l=this._size=Sn(this,s),M=Object.assign({},r,l),c=Cn(this.chart,s,M),u=En(s,M,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,a={opacity:1,x:u.x,y:u.y,width:l.width,height:l.height,caretX:r.x,caretY:r.y}}this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,s,n){const a=this.getCaretPosition(t,s,n);e.lineTo(a.x1,a.y1),e.lineTo(a.x2,a.y2),e.lineTo(a.x3,a.y3)}getCaretPosition(t,e,s){const{xAlign:n,yAlign:a}=this,{caretSize:o,cornerRadius:r}=s,{topLeft:l,topRight:M,bottomLeft:c,bottomRight:u}=Ot(r),{x:h,y:d}=t,{width:N,height:I}=e;let j,D,f,m,L,A;return a==="center"?(L=d+I/2,n==="left"?(j=h,D=j-o,m=L+o,A=L-o):(j=h+N,D=j+o,m=L-o,A=L+o),f=j):(n==="left"?D=h+Math.max(l,c)+o:n==="right"?D=h+N-Math.max(M,u)-o:D=this.caretX,a==="top"?(m=d,L=m-o,j=D-o,f=D+o):(m=d+I,L=m+o,j=D+o,f=D-o),A=m),{x1:j,x2:D,x3:f,y1:m,y2:L,y3:A}}drawTitle(t,e,s){const n=this.title,a=n.length;let o,r,l;if(a){const M=ui(s.rtl,this.x,this.width);for(t.x=Ye(this,s.titleAlign,s),e.textAlign=M.textAlign(s.titleAlign),e.textBaseline="middle",o=H(s.titleFont),r=s.titleSpacing,e.fillStyle=s.titleColor,e.font=o.string,l=0;l<a;++l)e.fillText(n[l],M.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+r,l+1===a&&(t.y+=s.titleMarginBottom-r)}}_drawColorBox(t,e,s,n,a){const o=this.labelColors[s],r=this.labelPointStyles[s],{boxHeight:l,boxWidth:M,boxPadding:c}=a,u=H(a.bodyFont),h=Ye(this,"left",a),d=n.x(h),N=l<u.lineHeight?(u.lineHeight-l)/2:0,I=e.y+N;if(a.usePointStyle){const j={radius:Math.min(M,l)/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:1},D=n.leftForLtr(d,M)+M/2,f=I+l/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,ni(t,j,D,f),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,ni(t,j,D,f)}else{t.lineWidth=S(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const j=n.leftForLtr(d,M-c),D=n.leftForLtr(n.xPlus(d,1),M-c-2),f=Ot(o.borderRadius);Object.values(f).some(m=>m!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,fe(t,{x:j,y:I,w:M,h:l,radius:f}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),fe(t,{x:D,y:I+1,w:M-2,h:l-2,radius:f}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(j,I,M,l),t.strokeRect(j,I,M,l),t.fillStyle=o.backgroundColor,t.fillRect(D,I+1,M-2,l-2))}t.fillStyle=this.labelTextColors[s]}drawBody(t,e,s){const{body:n}=this,{bodySpacing:a,bodyAlign:o,displayColors:r,boxHeight:l,boxWidth:M,boxPadding:c}=s,u=H(s.bodyFont);let h=u.lineHeight,d=0;const N=ui(s.rtl,this.x,this.width),I=function(p){e.fillText(p,N.x(t.x+d),t.y+h/2),t.y+=h+a},j=N.textAlign(o);let D,f,m,L,A,y,x;for(e.textAlign=o,e.textBaseline="middle",e.font=u.string,t.x=Ye(this,j,s),e.fillStyle=s.bodyColor,O(this.beforeBody,I),d=r&&j!=="right"?o==="center"?M/2+c:M+2+c:0,L=0,y=n.length;L<y;++L){for(D=n[L],f=this.labelTextColors[L],e.fillStyle=f,O(D.before,I),m=D.lines,r&&m.length&&(this._drawColorBox(e,t,L,N,s),h=Math.max(u.lineHeight,l)),A=0,x=m.length;A<x;++A)I(m[A]),h=u.lineHeight;O(D.after,I)}d=0,h=u.lineHeight,O(this.afterBody,I),t.y-=a}drawFooter(t,e,s){const n=this.footer,a=n.length;let o,r;if(a){const l=ui(s.rtl,this.x,this.width);for(t.x=Ye(this,s.footerAlign,s),t.y+=s.footerMarginTop,e.textAlign=l.textAlign(s.footerAlign),e.textBaseline="middle",o=H(s.footerFont),e.fillStyle=s.footerColor,e.font=o.string,r=0;r<a;++r)e.fillText(n[r],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+s.footerSpacing}}drawBackground(t,e,s,n){const{xAlign:a,yAlign:o}=this,{x:r,y:l}=t,{width:M,height:c}=s,{topLeft:u,topRight:h,bottomLeft:d,bottomRight:N}=Ot(n.cornerRadius);e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.beginPath(),e.moveTo(r+u,l),o==="top"&&this.drawCaret(t,e,s,n),e.lineTo(r+M-h,l),e.quadraticCurveTo(r+M,l,r+M,l+h),o==="center"&&a==="right"&&this.drawCaret(t,e,s,n),e.lineTo(r+M,l+c-N),e.quadraticCurveTo(r+M,l+c,r+M-N,l+c),o==="bottom"&&this.drawCaret(t,e,s,n),e.lineTo(r+d,l+c),e.quadraticCurveTo(r,l+c,r,l+c-d),o==="center"&&a==="left"&&this.drawCaret(t,e,s,n),e.lineTo(r,l+u),e.quadraticCurveTo(r,l,r+u,l),e.closePath(),e.fill(),n.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,s=this.$animations,n=s&&s.x,a=s&&s.y;if(n||a){const o=oe[t.position].call(this,this._active,this._eventPosition);if(!o)return;const r=this._size=Sn(this,t),l=Object.assign({},o,this._size),M=Cn(e,t,l),c=En(t,l,M,e);(n._to!==c.x||a._to!==c.y)&&(this.xAlign=M.xAlign,this.yAlign=M.yAlign,this.width=r.width,this.height=r.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let s=this.opacity;if(!s)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},a={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;const o=K(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=s,this.drawBackground(a,t,n,e),el(t,e.textDirection),a.y+=o.top,this.drawTitle(a,t,e),this.drawBody(a,t,e),this.drawFooter(a,t,e),il(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const s=this._active,n=t.map(({datasetIndex:r,index:l})=>{const M=this.chart.getDatasetMeta(r);if(!M)throw new Error("Cannot find a dataset at index "+r);return{datasetIndex:r,element:M.data[l],index:l}}),a=!le(s,n),o=this._positionChanged(n,e);(a||o)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,s=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,a=this._active||[],o=this._getActiveElements(t,a,e,s),r=this._positionChanged(o,t),l=e||!le(o,a)||r;return l&&(this._active=o,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,s,n){const a=this.options;if(t.type==="mouseout")return[];if(!n)return e;const o=this.chart.getElementsAtEventForMode(t,a.mode,a,s);return a.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:s,caretY:n,options:a}=this,o=oe[a.position].call(this,t,e);return o!==!1&&(s!==o.x||n!==o.y)}}Oi.positioners=oe;var Ac={id:"tooltip",_element:Oi,positioners:oe,afterInit(i,t,e){e&&(i.tooltip=new Oi({chart:i,options:e}))},beforeUpdate(i,t,e){i.tooltip&&i.tooltip.initialize(e)},reset(i,t,e){i.tooltip&&i.tooltip.initialize(e)},afterDraw(i){const t=i.tooltip;if(t&&t._willRender()){const e={tooltip:t};if(i.notifyPlugins("beforeTooltipDraw",e)===!1)return;t.draw(i.ctx),i.notifyPlugins("afterTooltipDraw",e)}},afterEvent(i,t){if(i.tooltip){const e=t.replay;i.tooltip.handleEvent(t.event,e,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(i,t)=>t.bodyFont.size,boxWidth:(i,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:lt,title(i){if(i.length>0){const t=i[0],e=t.chart.data.labels,s=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(s>0&&t.dataIndex<s)return e[t.dataIndex]}return""},afterTitle:lt,beforeBody:lt,beforeLabel:lt,label(i){if(this&&this.options&&this.options.mode==="dataset")return i.label+": "+i.formattedValue||i.formattedValue;let t=i.dataset.label||"";t&&(t+=": ");const e=i.formattedValue;return E(e)||(t+=e),t},labelColor(i){const e=i.chart.getDatasetMeta(i.datasetIndex).controller.getStyle(i.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(i){const e=i.chart.getDatasetMeta(i.datasetIndex).controller.getStyle(i.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:lt,afterBody:lt,beforeFooter:lt,footer:lt,afterFooter:lt}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:i=>i!=="filter"&&i!=="itemSort"&&i!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const mc=(i,t,e,s)=>(typeof t=="string"?(e=i.push(t)-1,s.unshift({index:e,label:t})):isNaN(t)&&(e=null),e);function Lc(i,t,e,s){const n=i.indexOf(t);if(n===-1)return mc(i,t,e,s);const a=i.lastIndexOf(t);return n!==a?e:n}const yc=(i,t)=>i===null?null:B(Math.round(i),0,t);class Qe extends zt{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const s=this.getLabels();for(const{index:n,label:a}of e)s[n]===a&&s.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(E(t))return null;const s=this.getLabels();return e=isFinite(e)&&s[e]===t?e:Lc(s,t,C(e,t),this._addedLabels),yc(e,s.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:s,max:n}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(s=0),e||(n=this.getLabels().length-1)),this.min=s,this.max=n}buildTicks(){const t=this.min,e=this.max,s=this.options.offset,n=[];let a=this.getLabels();a=t===0&&e===a.length-1?a:a.slice(t,e+1),this._valueRange=Math.max(a.length-(s?0:1),1),this._startValue=this.min-(s?.5:0);for(let o=t;o<=e;o++)n.push({value:o});return n}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Qe.id="category",Qe.defaults={ticks:{callback:Qe.prototype.getLabelForValue}};function xc(i,t){const e=[],{bounds:n,step:a,min:o,max:r,precision:l,count:M,maxTicks:c,maxDigits:u,includeBounds:h}=i,d=a||1,N=c-1,{min:I,max:j}=t,D=!E(o),f=!E(r),m=!E(M),L=(j-I)/(u+1);let A=Hi((j-I)/N/d)*d,y,x,p,z;if(A<1e-14&&!D&&!f)return[{value:I},{value:j}];z=Math.ceil(j/A)-Math.floor(I/A),z>N&&(A=Hi(z*A/N/d)*d),E(l)||(y=Math.pow(10,l),A=Math.ceil(A*y)/y),n==="ticks"?(x=Math.floor(I/A)*A,p=Math.ceil(j/A)*A):(x=I,p=j),D&&f&&a&&vo((r-o)/a,A/1e3)?(z=Math.round(Math.min((r-o)/A,c)),A=(r-o)/z,x=o,p=r):m?(x=D?o:x,p=f?r:p,z=M-1,A=(p-x)/z):(z=(p-x)/A,Rt(z,Math.round(z),A/1e3)?z=Math.round(z):z=Math.ceil(z));const k=Math.max(Ji(A),Ji(x));y=Math.pow(10,E(l)?k:l),x=Math.round(x*y)/y,p=Math.round(p*y)/y;let U=0;for(D&&(h&&x!==o?(e.push({value:o}),x<o&&U++,Rt(Math.round((x+U*A)*y)/y,o,kn(o,L,i))&&U++):x<o&&U++);U<z;++U)e.push({value:Math.round((x+U*A)*y)/y});return f&&h&&p!==r?e.length&&Rt(e[e.length-1].value,r,kn(r,L,i))?e[e.length-1].value=r:e.push({value:r}):(!f||p===r)&&e.push({value:p}),e}function kn(i,t,{horizontal:e,minRotation:s}){const n=tt(s),a=(e?Math.sin(n):Math.cos(n))||.001,o=.75*t*(""+i).length;return Math.min(t/a,o)}class ve extends zt{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return E(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:s}=this.getUserBounds();let{min:n,max:a}=this;const o=l=>n=e?n:l,r=l=>a=s?a:l;if(t){const l=nt(n),M=nt(a);l<0&&M<0?r(0):l>0&&M>0&&o(0)}if(n===a){let l=1;(a>=Number.MAX_SAFE_INTEGER||n<=Number.MIN_SAFE_INTEGER)&&(l=Math.abs(a*.05)),r(a+l),t||o(n-l)}this.min=n,this.max=a}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:e,stepSize:s}=t,n;return s?(n=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),e=e||11),e&&(n=Math.min(e,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let s=this.getTickLimit();s=Math.max(2,s);const n={maxTicks:s,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},a=this._range||this,o=xc(n,a);return t.bounds==="ticks"&&Fi(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let e=this.min,s=this.max;if(super.configure(),this.options.offset&&t.length){const n=(s-e)/Math.max(t.length-1,1)/2;e-=n,s+=n}this._startValue=e,this._endValue=s,this._valueRange=s-e}getLabelForValue(t){return Jt(t,this.chart.options.locale,this.options.ticks.format)}}class wi extends ve{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=V(t)?t:0,this.max=V(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,s=tt(this.options.ticks.minRotation),n=(t?Math.sin(s):Math.cos(s))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,a.lineHeight/n))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}wi.id="linear",wi.defaults={ticks:{callback:Te.formatters.numeric}};function _n(i){return i/Math.pow(10,Math.floor(X(i)))===1}function Tc(i,t){const e=Math.floor(X(t.max)),s=Math.ceil(t.max/Math.pow(10,e)),n=[];let a=F(i.min,Math.pow(10,Math.floor(X(t.min)))),o=Math.floor(X(a)),r=Math.floor(a/Math.pow(10,o)),l=o<0?Math.pow(10,Math.abs(o)):1;do n.push({value:a,major:_n(a)}),++r,r===10&&(r=1,++o,l=o>=0?1:l),a=Math.round(r*Math.pow(10,o)*l)/l;while(o<e||o===e&&r<s);const M=F(i.max,a);return n.push({value:M,major:_n(a)}),n}class Yn extends zt{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const s=ve.prototype.parse.apply(this,[t,e]);if(s===0){this._zero=!0;return}return V(s)&&s>0?s:null}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=V(t)?Math.max(0,t):null,this.max=V(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let s=this.min,n=this.max;const a=l=>s=t?s:l,o=l=>n=e?n:l,r=(l,M)=>Math.pow(10,Math.floor(X(l))+M);s===n&&(s<=0?(a(1),o(10)):(a(r(s,-1)),o(r(n,1)))),s<=0&&a(r(n,-1)),n<=0&&o(r(s,1)),this._zero&&this.min!==this._suggestedMin&&s===r(this.min,0)&&a(r(s,-1)),this.min=s,this.max=n}buildTicks(){const t=this.options,e={min:this._userMin,max:this._userMax},s=Tc(e,this);return t.bounds==="ticks"&&Fi(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}getLabelForValue(t){return t===void 0?"0":Jt(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=X(t),this._valueRange=X(this.max)-X(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(X(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}Yn.id="logarithmic",Yn.defaults={ticks:{callback:Te.formatters.logarithmic,major:{enabled:!0}}};function ki(i){const t=i.ticks;if(t.display&&i.display){const e=K(t.backdropPadding);return C(t.font&&t.font.size,b.font.size)+e.height}return 0}function pc(i,t,e){return e=_(e)?e:[e],{w:Ir(i,t.string,e),h:e.length*t.lineHeight}}function Qn(i,t,e,s,n){return i===s||i===n?{start:t-e/2,end:t+e/2}:i<s||i>n?{start:t-e,end:t}:{start:t,end:t+e}}function zc(i){const t={l:i.left+i._padding.left,r:i.right-i._padding.right,t:i.top+i._padding.top,b:i.bottom-i._padding.bottom},e=Object.assign({},t),s=[],n=[],a=i._pointLabels.length,o=i.options.pointLabels,r=o.centerPointLabels?Q/a:0;for(let l=0;l<a;l++){const M=o.setContext(i.getPointLabelContext(l));n[l]=M.padding;const c=i.getPointPosition(l,i.drawingArea+n[l],r),u=H(M.font),h=pc(i.ctx,u,i._pointLabels[l]);s[l]=h;const d=et(i.getIndexAngle(l)+r),N=Math.round(He(d)),I=Qn(N,c.x,h.w,0,180),j=Qn(N,c.y,h.h,90,270);bc(e,t,d,I,j)}i.setCenterPoint(t.l-e.l,e.r-t.r,t.t-e.t,e.b-t.b),i._pointLabelItems=Sc(i,s,n)}function bc(i,t,e,s,n){const a=Math.abs(Math.sin(e)),o=Math.abs(Math.cos(e));let r=0,l=0;s.start<t.l?(r=(t.l-s.start)/a,i.l=Math.min(i.l,t.l-r)):s.end>t.r&&(r=(s.end-t.r)/a,i.r=Math.max(i.r,t.r+r)),n.start<t.t?(l=(t.t-n.start)/o,i.t=Math.min(i.t,t.t-l)):n.end>t.b&&(l=(n.end-t.b)/o,i.b=Math.max(i.b,t.b+l))}function Sc(i,t,e){const s=[],n=i._pointLabels.length,a=i.options,o=ki(a)/2,r=i.drawingArea,l=a.pointLabels.centerPointLabels?Q/n:0;for(let M=0;M<n;M++){const c=i.getPointPosition(M,r+o+e[M],l),u=Math.round(He(et(c.angle+v))),h=t[M],d=Oc(c.y,h.h,u),N=Cc(u),I=Ec(c.x,h.w,N);s.push({x:c.x,y:d,textAlign:N,left:I,top:d,right:I+h.w,bottom:d+h.h})}return s}function Cc(i){return i===0||i===180?"center":i<180?"left":"right"}function Ec(i,t,e){return e==="right"?i-=t:e==="center"&&(i-=t/2),i}function Oc(i,t,e){return e===90||e===270?i-=t/2:(e>270||e<90)&&(i-=t),i}function wc(i,t){const{ctx:e,options:{pointLabels:s}}=i;for(let n=t-1;n>=0;n--){const a=s.setContext(i.getPointLabelContext(n)),o=H(a.font),{x:r,y:l,textAlign:M,left:c,top:u,right:h,bottom:d}=i._pointLabelItems[n],{backdropColor:N}=a;if(!E(N)){const I=Ot(a.borderRadius),j=K(a.backdropPadding);e.fillStyle=N;const D=c-j.left,f=u-j.top,m=h-c+j.width,L=d-u+j.height;Object.values(I).some(A=>A!==0)?(e.beginPath(),fe(e,{x:D,y:f,w:m,h:L,radius:I}),e.fill()):e.fillRect(D,f,m,L)}je(e,i._pointLabels[n],r,l+o.lineHeight/2,o,{color:a.color,textAlign:M,textBaseline:"middle"})}}function vn(i,t,e,s){const{ctx:n}=i;if(e)n.arc(i.xCenter,i.yCenter,t,0,w);else{let a=i.getPointPosition(0,t);n.moveTo(a.x,a.y);for(let o=1;o<s;o++)a=i.getPointPosition(o,t),n.lineTo(a.x,a.y)}}function kc(i,t,e,s){const n=i.ctx,a=t.circular,{color:o,lineWidth:r}=t;!a&&!s||!o||!r||e<0||(n.save(),n.strokeStyle=o,n.lineWidth=r,n.setLineDash(t.borderDash),n.lineDashOffset=t.borderDashOffset,n.beginPath(),vn(i,e,a,s),n.closePath(),n.stroke(),n.restore())}function _c(i,t,e){return jt(i,{label:e,index:t,type:"pointLabel"})}class Ue extends ve{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=K(ki(this.options)/2),e=this.width=this.maxWidth-t.width,s=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+s/2+t.top),this.drawingArea=Math.floor(Math.min(e,s)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=V(t)&&!isNaN(t)?t:0,this.max=V(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/ki(this.options))}generateTickLabels(t){ve.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((e,s)=>{const n=Y(this.options.pointLabels.callback,[e,s],this);return n||n===0?n:""}).filter((e,s)=>this.chart.getDataVisibility(s))}fit(){const t=this.options;t.display&&t.pointLabels.display?zc(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,s,n){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((s-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,s,n))}getIndexAngle(t){const e=w/(this._pointLabels.length||1),s=this.options.startAngle||0;return et(t*e+tt(s))}getDistanceFromCenterForValue(t){if(E(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(E(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const s=e[t];return _c(this.getContext(),t,s)}}getPointPosition(t,e,s=0){const n=this.getIndexAngle(t)-v+s;return{x:Math.cos(n)*e+this.xCenter,y:Math.sin(n)*e+this.yCenter,angle:n}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:s,right:n,bottom:a}=this._pointLabelItems[t];return{left:e,top:s,right:n,bottom:a}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const s=this.ctx;s.save(),s.beginPath(),vn(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),s.closePath(),s.fillStyle=t,s.fill(),s.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:s,grid:n}=e,a=this._pointLabels.length;let o,r,l;if(e.pointLabels.display&&wc(this,a),n.display&&this.ticks.forEach((M,c)=>{if(c!==0){r=this.getDistanceFromCenterForValue(M.value);const u=n.setContext(this.getContext(c-1));kc(this,u,r,a)}}),s.display){for(t.save(),o=a-1;o>=0;o--){const M=s.setContext(this.getPointLabelContext(o)),{color:c,lineWidth:u}=M;!u||!c||(t.lineWidth=u,t.strokeStyle=c,t.setLineDash(M.borderDash),t.lineDashOffset=M.borderDashOffset,r=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(o,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,s=e.ticks;if(!s.display)return;const n=this.getIndexAngle(0);let a,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((r,l)=>{if(l===0&&!e.reverse)return;const M=s.setContext(this.getContext(l)),c=H(M.font);if(a=this.getDistanceFromCenterForValue(this.ticks[l].value),M.showLabelBackdrop){t.font=c.string,o=t.measureText(r.label).width,t.fillStyle=M.backdropColor;const u=K(M.backdropPadding);t.fillRect(-o/2-u.left,-a-c.size/2-u.top,o+u.width,c.size+u.height)}je(t,r.label,0,-a,c,{color:M.color})}),t.restore()}drawTitle(){}}Ue.id="radialLinear",Ue.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Te.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(i){return i},padding:5,centerPointLabels:!1}},Ue.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Ue.descriptors={angleLines:{_fallback:"grid"}};const Ze={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},G=Object.keys(Ze);function Yc(i,t){return i-t}function Un(i,t){if(E(t))return null;const e=i._adapter,{parser:s,round:n,isoWeekday:a}=i._parseOpts;let o=t;return typeof s=="function"&&(o=s(o)),V(o)||(o=typeof s=="string"?e.parse(o,s):e.parse(o)),o===null?null:(n&&(o=n==="week"&&(Ct(a)||a===!0)?e.startOf(o,"isoWeek",a):e.startOf(o,n)),+o)}function Zn(i,t,e,s){const n=G.length;for(let a=G.indexOf(i);a<n-1;++a){const o=Ze[G[a]],r=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((e-t)/(r*o.size))<=s)return G[a]}return G[n-1]}function Qc(i,t,e,s,n){for(let a=G.length-1;a>=G.indexOf(e);a--){const o=G[a];if(Ze[o].common&&i._adapter.diff(n,s,o)>=t-1)return o}return G[e?G.indexOf(e):0]}function vc(i){for(let t=G.indexOf(i)+1,e=G.length;t<e;++t)if(Ze[G[t]].common)return G[t]}function Pn(i,t,e){if(!e)i[t]=!0;else if(e.length){const{lo:s,hi:n}=Je(e,t),a=e[s]>=t?e[s]:e[n];i[a]=!0}}function Uc(i,t,e,s){const n=i._adapter,a=+n.startOf(t[0].value,s),o=t[t.length-1].value;let r,l;for(r=a;r<=o;r=+n.add(r,1,s))l=e[r],l>=0&&(t[l].major=!0);return t}function Rn(i,t,e){const s=[],n={},a=t.length;let o,r;for(o=0;o<a;++o)r=t[o],n[r]=o,s.push({value:r,major:!1});return a===0||!e?s:Uc(i,s,n,e)}class Pe extends zt{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const s=t.time||(t.time={}),n=this._adapter=new sM._date(t.adapters.date);n.init(e),Zt(s.displayFormats,n.formats()),this._parseOpts={parser:s.parser,round:s.round,isoWeekday:s.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return t===void 0?null:Un(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,s=t.time.unit||"day";let{min:n,max:a,minDefined:o,maxDefined:r}=this.getUserBounds();function l(M){!o&&!isNaN(M.min)&&(n=Math.min(n,M.min)),!r&&!isNaN(M.max)&&(a=Math.max(a,M.max))}(!o||!r)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),n=V(n)&&!isNaN(n)?n:+e.startOf(Date.now(),s),a=V(a)&&!isNaN(a)?a:+e.endOf(Date.now(),s)+1,this.min=Math.min(n,a-1),this.max=Math.max(n+1,a)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],s=t[t.length-1]),{min:e,max:s}}buildTicks(){const t=this.options,e=t.time,s=t.ticks,n=s.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const a=this.min,o=this.max,r=Ro(n,a,o);return this._unit=e.unit||(s.autoSkip?Zn(e.minUnit,this.min,this.max,this._getLabelCapacity(a)):Qc(this,r.length,e.minUnit,this.min,this.max)),this._majorUnit=!s.major.enabled||this._unit==="year"?void 0:vc(this._unit),this.initOffsets(n),t.reverse&&r.reverse(),Rn(this,r,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t){let e=0,s=0,n,a;this.options.offset&&t.length&&(n=this.getDecimalForValue(t[0]),t.length===1?e=1-n:e=(this.getDecimalForValue(t[1])-n)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?s=a:s=(a-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;e=B(e,0,o),s=B(s,0,o),this._offsets={start:e,end:s,factor:1/(e+1+s)}}_generate(){const t=this._adapter,e=this.min,s=this.max,n=this.options,a=n.time,o=a.unit||Zn(a.minUnit,e,s,this._getLabelCapacity(e)),r=C(a.stepSize,1),l=o==="week"?a.isoWeekday:!1,M=Ct(l)||l===!0,c={};let u=e,h,d;if(M&&(u=+t.startOf(u,"isoWeek",l)),u=+t.startOf(u,M?"day":o),t.diff(s,e,o)>1e5*r)throw new Error(e+" and "+s+" are too far apart with stepSize of "+r+" "+o);const N=n.ticks.source==="data"&&this.getDataTimestamps();for(h=u,d=0;h<s;h=+t.add(h,r,o),d++)Pn(c,h,N);return(h===s||n.bounds==="ticks"||d===1)&&Pn(c,h,N),Object.keys(c).sort((I,j)=>I-j).map(I=>+I)}getLabelForValue(t){const e=this._adapter,s=this.options.time;return s.tooltipFormat?e.format(t,s.tooltipFormat):e.format(t,s.displayFormats.datetime)}_tickFormatFunction(t,e,s,n){const a=this.options,o=a.time.displayFormats,r=this._unit,l=this._majorUnit,M=r&&o[r],c=l&&o[l],u=s[e],h=l&&c&&u&&u.major,d=this._adapter.format(t,n||(h?c:M)),N=a.ticks.callback;return N?Y(N,[d,e,s],this):d}generateTickLabels(t){let e,s,n;for(e=0,s=t.length;e<s;++e)n=t[e],n.label=this._tickFormatFunction(n.value,e,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,s=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+s)*e.factor)}getValueForPixel(t){const e=this._offsets,s=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+s*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,s=this.ctx.measureText(t).width,n=tt(this.isHorizontal()?e.maxRotation:e.minRotation),a=Math.cos(n),o=Math.sin(n),r=this._resolveTickFontOptions(0).size;return{w:s*a+r*o,h:s*o+r*a}}_getLabelCapacity(t){const e=this.options.time,s=e.displayFormats,n=s[e.unit]||s.millisecond,a=this._tickFormatFunction(t,0,Rn(this,[t],this._majorUnit),n),o=this._getLabelSize(a),r=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return r>0?r:1}getDataTimestamps(){let t=this._cache.data||[],e,s;if(t.length)return t;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(e=0,s=n.length;e<s;++e)t=t.concat(n[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let e,s;if(t.length)return t;const n=this.getLabels();for(e=0,s=n.length;e<s;++e)t.push(Un(this,n[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return qi(t.sort(Yc))}}Pe.id="time",Pe.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};function Re(i,t,e){let s=0,n=i.length-1,a,o,r,l;e?(t>=i[s].pos&&t<=i[n].pos&&({lo:s,hi:n}=mt(i,"pos",t)),{pos:a,time:r}=i[s],{pos:o,time:l}=i[n]):(t>=i[s].time&&t<=i[n].time&&({lo:s,hi:n}=mt(i,"time",t)),{time:a,pos:r}=i[s],{time:o,pos:l}=i[n]);const M=o-a;return M?r+(l-r)*(t-a)/M:r}class Vn extends Pe{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Re(e,this.min),this._tableRange=Re(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:s}=this,n=[],a=[];let o,r,l,M,c;for(o=0,r=t.length;o<r;++o)M=t[o],M>=e&&M<=s&&n.push(M);if(n.length<2)return[{time:e,pos:0},{time:s,pos:1}];for(o=0,r=n.length;o<r;++o)c=n[o+1],l=n[o-1],M=n[o],Math.round((c+l)/2)!==M&&a.push({time:M,pos:o/(r-1)});return a}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),s=this.getLabelTimestamps();return e.length&&s.length?t=this.normalize(e.concat(s)):t=e.length?e:s,t=this._cache.all=t,t}getDecimalForValue(t){return(Re(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,s=this.getDecimalForPixel(t)/e.factor-e.end;return Re(this._table,s*this._tableRange+this._minPos,!0)}}Vn.id="timeseries",Vn.defaults=Pe.defaults;var Yt;(function(i){i.ChartRendered="chart:rendered",i.ChartUpdated="chart:updated",i.ChartDestroyed="chart:destroyed",i.LabelsUpdated="labels:updated"})(Yt||(Yt={}));function Ve(i,t,e,s){i(t,e),s!==void 0&&s.emit(Yt.ChartRendered)}function Zc(i,t){i.update(),t!==void 0&&t.emit(Yt.ChartUpdated)}function We(i,t){i.destroy(),t!==void 0&&t.emit(Yt.ChartDestroyed)}function Pc(i,t){const e={labels:typeof i.labels=="undefined"?[]:[...i.labels],datasets:[]};return Wn(e,{...i},t),e}function Wn(i,t,e){const s=[];i.datasets=t.datasets.map(n=>{const a=i.datasets.find(o=>o[e]===n[e]);return!a||!n.data||s.includes(a)?{...n}:(s.push(a),Object.assign(a,n),a)})}function Rc(i,t,e){i.data.labels=t,e!==void 0&&e.emit(Yt.LabelsUpdated)}function Vc(i,t){i.options={...t}}function Wc(i,t){const e=i.datasets.map(n=>n.label),s=t.datasets.map(n=>n.label);return t.datasets.length===i.datasets.length&&e.every((n,a)=>n===s[a])}const Bc="Please remove the <template></template> tags from your chart component. See https://vue-chartjs.org/guide/#vue-single-file-components",Gc="Update ERROR: chart instance not found",Hc=((i,t,e)=>g.defineComponent({props:{chartData:{type:Object,required:!0},chartOptions:{type:Object,default:()=>{}},datasetIdKey:{type:String,default:"label"},chartId:{type:String,default:i},width:{type:Number,default:400},height:{type:Number,default:400},cssClasses:{type:String,default:""},styles:{type:Object,default:()=>{}},plugins:{type:Array,default:()=>[]}},setup(s,n){ae.register(e);const a=g.shallowRef(null),o=g.ref(null);function r(u,h){if(a.value!==null&&We(g.toRaw(a.value),n),o.value===null)throw new Error(Bc);{const d=Pc(u,s.datasetIdKey),N=o.value.getContext("2d");N!==null&&(a.value=new ae(N,{type:t,data:g.isProxy(u)?new Proxy(d,{}):d,options:h,plugins:s.plugins}))}}function l(u,h){const d=g.isProxy(u)?g.toRaw(u):{...u},N=g.isProxy(h)?g.toRaw(h):{...h};if(Object.keys(N).length>0){const I=g.toRaw(a.value);Wc(d,N)&&I!==null?(Wn(I==null?void 0:I.data,d,s.datasetIdKey),d.labels!==void 0&&Rc(I,d.labels,n),c()):(I!==null&&We(I,n),Ve(r,s.chartData,s.chartOptions,n))}else a.value!==null&&We(g.toRaw(a.value),n),Ve(r,s.chartData,s.chartOptions,n)}function M(u){const h=g.toRaw(a.value);h!==null?(Vc(h,u),c()):Ve(r,s.chartData,s.chartOptions,n)}function c(){const u=g.toRaw(a.value);u!==null?Zc(u,n):console.error(Gc)}return g.watch(()=>s.chartData,(u,h)=>l(u,h),{deep:!0}),g.watch(()=>s.chartOptions,u=>M(u),{deep:!0}),g.onMounted(()=>{"datasets"in s.chartData&&s.chartData.datasets.length>0&&Ve(r,s.chartData,s.chartOptions,n)}),g.onBeforeUnmount(()=>{a.value!==null&&We(g.toRaw(a.value),n)}),n.expose({chart:a,updateChart:c}),()=>g.h("div",{style:s.styles,class:s.cssClasses},[g.h("canvas",{id:s.chartId,width:s.width,height:s.height,ref:o})])}}))("bar-chart","bar",xe);var rg="";const Fc={name:"MultiRangeSlider",props:{baseClassName:{type:String,default:"multi-range-slider"},min:{type:Number},max:{type:Number},minValue:{type:Number},maxValue:{type:Number},step:{type:Number,default:1},preventWheel:{type:Boolean,default:!1},ruler:{type:Boolean,default:!0},label:{type:Boolean,default:!0},labels:{type:Array},minCaption:{type:String},maxCaption:{type:String},rangeMargin:{type:Number}},data(){let i=this.labels||[],t=this.min===void 0?0:this.min,e=i.length?i.length-1:100,s=this.max===void 0?e:this.max,n=this.minValue===void 0?25:this.minValue;i.length&&this.minValue===void 0&&(n=1);let a=this.maxValue||75;if(i.length&&this.maxValue===void 0&&(a=i.length-2),s<=t)throw new Error("Invalid props min or max");if(n>a)throw new Error("Invalid props minValue or maxValue");let o=this.rangeMargin===void 0?this.step:this.rangeMargin,r=o%this.step;return r&&(o=o+this.step-r),{valueMin:n<t?t:n,valueMax:a>s?s:a,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:o}},methods:{onBarLeftClick(){this.valueMin-this.step>=this.minimum?this.valueMin-=this.step:this.valueMin=this.minimum},onInnerBarLeftClick(){this.valueMin+this.rangeMarginValue<this.valueMax&&(this.valueMin+=this.step)},onBarRightClick(){this.valueMax+this.step<=this.maximum?this.valueMax+=this.step:this.valueMax=this.maximum},onInnerBarRightClick(){this.valueMax-this.rangeMarginValue>this.valueMin&&(this.valueMax-=this.step)},onInputMinChange(i){let t=parseFloat(i.target.value);t<=this.valueMax-this.rangeMarginValue&&t>=this.minimum?this.valueMin=t:i.target.value=this.valueMin},onInputMaxChange(i){let t=parseFloat(i.target.value);t>=this.valueMin+this.rangeMarginValue&&t<=this.maximum?this.valueMax=t:i.target.value=this.valueMax},onLeftThumbMousedown(i){if(i.preventDefault(),this.startX=i.clientX,i.type==="touchstart")if(i.touches.length===1)this.startX=i.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMin,this.barBox=i.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onLeftThumbMousemove),document.addEventListener("mouseup",this.onLeftThumbMouseup),document.addEventListener("touchmove",this.onLeftThumbMousemove),document.addEventListener("touchend",this.onLeftThumbMouseup)},onLeftThumbMousemove(i){this.mouseMoveCounter++;let t=i.clientX;i.type==="touchmove"&&(t=i.touches[0].clientX);let s=(t-this.startX)/this.barBox.width,n=this.barValue+(this.maximum-this.minimum)*s;n-=n%this.step,n<this.minimum?n=this.minimum:n>this.valueMax-this.rangeMarginValue&&(n=this.valueMax-this.rangeMarginValue),this.valueMin=n},onLeftThumbMouseup(){document.removeEventListener("mousemove",this.onLeftThumbMousemove),document.removeEventListener("mouseup",this.onLeftThumbMouseup),document.removeEventListener("touchmove",this.onLeftThumbMousemove),document.removeEventListener("touchend",this.onLeftThumbMouseup)},onRightThumbMousedown(i){if(i.preventDefault(),this.startX=i.clientX,i.type==="touchstart")if(i.touches.length===1)this.startX=i.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMax,this.barBox=i.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onRightThumbMousemove),document.addEventListener("mouseup",this.onRightThumbMouseup),document.addEventListener("touchmove",this.onRightThumbMousemove),document.addEventListener("touchend",this.onRightThumbMouseup)},onRightThumbMousemove(i){this.mouseMoveCounter++;let t=i.clientX;i.type==="touchmove"&&(t=i.touches[0].clientX);let s=(t-this.startX)/this.barBox.width,n=this.barValue+(this.maximum-this.minimum)*s;n-=n%this.step,n<this.valueMin+this.rangeMarginValue?n=this.valueMin+this.rangeMarginValue:n>this.maximum&&(n=this.maximum),this.valueMax=n},onRightThumbMouseup(){document.removeEventListener("mousemove",this.onRightThumbMousemove),document.removeEventListener("mouseup",this.onRightThumbMouseup),document.removeEventListener("touchmove",this.onRightThumbMousemove),document.removeEventListener("touchend",this.onRightThumbMouseup)},onMouseWheel(i){if(this.preventWheel===!0||!i.shiftKey&&!i.ctrlKey)return;let t=this.step;i.deltaY<0&&(t=-t),i.shiftKey&&i.ctrlKey?this.valueMin+t>=this.minimum&&this.valueMax+t<=this.maximum&&(this.valueMin=this.valueMin+t,this.valueMax=this.valueMax+t):i.ctrlKey?(t=this.valueMax+t,t<this.valueMin+this.rangeMarginValue?t=this.valueMin+this.rangeMarginValue:t>this.maximum&&(t=this.maximum),this.valueMax=t):i.shiftKey&&(t=this.valueMin+t,t<this.minimum?t=this.minimum:t>this.valueMax-this.rangeMarginValue&&(t=this.valueMax-this.rangeMarginValue),this.valueMin=t)},triggerInput(){let i=0;this.step.toString().includes(".")&&(i=2);let t={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(i)),maxValue:parseFloat(this.valueMax.toFixed(i))};this.$emit("input",t)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let i=this.labels||[],t=i.length?i.length-1:100;return this.max===void 0?t:this.max},stepCount(){let i=this.labels||[];return i.length?i.length-1:Math.floor((this.maximum-this.minimum)/this.step)},subStepCount(){return(this.labels||[]).length&&this.step>1?(this.maximum-this.minimum)/this.step:0},barMin(){return(this.valueMin-this.minimum)/(this.maximum-this.minimum)*100},barMax(){return 100-(this.valueMax-this.minimum)/(this.maximum-this.minimum)*100},barMinVal(){let i=0;return this.step.toString().includes(".")&&(i=2),(this.valueMin||0).toFixed(i)},barMaxVal(){let i=0;return this.step.toString().includes(".")&&(i=2),(this.valueMax||100).toFixed(i)},scaleLabels(){let i=this.labels||[];return i.length===0&&(i=[],i.push(this.minimum),i.push(this.maximum)),i}},watch:{valueMin(){this.triggerInput()},valueMax(){this.triggerInput()},minValue(i){this.valueMin=i<this.minimum?this.minimum:i},maxValue(i){this.valueMax=i>this.maximum?this.maximum:i}},mounted(){}},Jc={class:"bar"},Xc=["min","max","step","value"],$c={class:"caption"},Kc={class:"min-caption"},qc={class:"bar-inner"},tu=["min","max","step","value"],eu={class:"caption"},iu={class:"max-caption"},su={key:0,class:"ruler"},nu={key:1,class:"sub-ruler"},au={key:2,class:"labels"};function ou(i,t,e,s,n,a){return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass([e.baseClassName,n.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:t[10]||(t[10]=g.withModifiers((...o)=>a.onMouseWheel&&a.onMouseWheel(...o),["prevent","stop"]))},[g.createElementVNode("div",Jc,[g.createElementVNode("div",{class:"bar-left",style:g.normalizeStyle({width:a.barMin+"%"}),onClick:t[0]||(t[0]=(...o)=>a.onBarLeftClick&&a.onBarLeftClick(...o))},null,4),g.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:a.minimum,max:a.maximum,step:e.step,value:n.valueMin,onInput:t[1]||(t[1]=g.withModifiers((...o)=>a.onInputMinChange&&a.onInputMinChange(...o),["stop","prevent"]))},null,40,Xc),g.createElementVNode("div",{class:"thumb thumb-left",onMousedown:t[2]||(t[2]=(...o)=>a.onLeftThumbMousedown&&a.onLeftThumbMousedown(...o)),onTouchstart:t[3]||(t[3]=(...o)=>a.onLeftThumbMousedown&&a.onLeftThumbMousedown(...o))},[g.createElementVNode("div",$c,[g.createElementVNode("span",Kc,g.toDisplayString(e.minCaption||a.barMinVal),1)])],32),g.createElementVNode("div",qc,[g.createElementVNode("div",{class:"bar-inner-left",onClick:t[4]||(t[4]=(...o)=>a.onInnerBarLeftClick&&a.onInnerBarLeftClick(...o))}),g.createElementVNode("div",{class:"bar-inner-right",onClick:t[5]||(t[5]=(...o)=>a.onInnerBarRightClick&&a.onInnerBarRightClick(...o))})]),g.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:a.minimum,max:a.maximum,step:e.step,value:n.valueMax,onInput:t[6]||(t[6]=g.withModifiers((...o)=>a.onInputMaxChange&&a.onInputMaxChange(...o),["stop","prevent"]))},null,40,tu),g.createElementVNode("div",{class:"thumb thumb-right",onMousedown:t[7]||(t[7]=(...o)=>a.onRightThumbMousedown&&a.onRightThumbMousedown(...o)),onTouchstart:t[8]||(t[8]=(...o)=>a.onRightThumbMousedown&&a.onRightThumbMousedown(...o))},[g.createElementVNode("div",eu,[g.createElementVNode("span",iu,g.toDisplayString(e.maxCaption||a.barMaxVal),1)])],32),g.createElementVNode("div",{class:"bar-right",style:g.normalizeStyle({width:a.barMax+"%"}),onClick:t[9]||(t[9]=(...o)=>a.onBarRightClick&&a.onBarRightClick(...o))},null,4)]),e.ruler?(g.openBlock(),g.createElementBlock("div",su,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(a.stepCount,o=>(g.openBlock(),g.createElementBlock("div",{key:o,class:"ruler-rule"}))),128))])):g.createCommentVNode("",!0),a.subStepCount?(g.openBlock(),g.createElementBlock("div",nu,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(a.subStepCount,o=>(g.openBlock(),g.createElementBlock("div",{key:o,class:"ruler-sub-rule"}))),128))])):g.createCommentVNode("",!0),e.label?(g.openBlock(),g.createElementBlock("div",au,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(a.scaleLabels,o=>(g.openBlock(),g.createElementBlock("div",{class:"label",key:o},g.toDisplayString(o),1))),128))])):g.createCommentVNode("",!0)],34)}var ru=q(Fc,[["render",ou]]),lg="";ae.register(Ac,_e,Qe,wi);const lu=g.defineComponent({components:{Bar:Hc,MultiRangeSlider:ru},props:{numberRange:{type:Array,default:()=>[{key:1,count:10}]},width:{type:Number,default:200},height:{type:Number,default:50},chartId:{type:String,default:"bar-chart"},datasetIdKey:{type:String,default:"label"},steps:{type:Number,default:1}},data(){return{chartData:{labels:[],datasets:[{labels:"",data:[],backgroundColor:["#5ea9e5"],borderRadius:1,hoverBackgroundColor:"#e0e0e0"}]},chartOptions:{responsive:!0,plugins:{legend:{display:!1},tooltip:{enabled:!1}},scales:{x:{display:!1,grid:{display:!1},ticks:{display:!0}},y:{display:!1,grid:{display:!1},ticks:{display:!1}}}},chartLines:{},min:"1",max:this.maxNumber(this.numberRange),rangeMax:this.numberRange.length,chart_dta:[],BarMinValue:1,BarMaxValue:this.numberRange.length,activeFilter:!1,validated:!1,isMatch:!1,isExclude:!1,isDisable:!1}},mounted(){this.isMatch=!0,this.setChartData(this.numberRange),this.highlightChart()},methods:{changeMin(i){let t=i.target.value;this.min=t||"1",this.BarMinValue=t?this.getFirstIndex(parseInt(t)):1,this.isMatch&&!this.isDisable&&this.matchFilter(),this.isExclude&&!this.isDisable&&this.excludeFilter()},changeMax(i){let t=i.target.value;this.BarMaxValue=t&&t>this.maxNumber(this.numberRange)?this.numberRange.length:this.getLastIndex(parseInt(t)),this.max=t&&t>this.maxNumber(this.numberRange)?this.maxNumber(this.numberRange):t,this.isMatch&&!this.isDisable&&this.matchFilter(),this.isExclude&&!this.isDisable&&this.excludeFilter()},setChartData(i){i=this.sortData(i),this.removeChartData();let t=this.chartData.labels;for(let e=0;e<i.length;e++)t.push(i[e].key),this.chart_dta.push(i[e].count);this.chartData.datasets[0].data=this.chart_dta},highlightChart(){var i=this.chartData.datasets[0].data;this.chartLines=this.chartData.datasets[0],this.chartData.datasets[0].backgroundColor=[];for(let t=0;t<=i.length;t++)i[t]>=this.min&&i[t]<=this.max?this.chartData.datasets[0].backgroundColor.push("#5ea9e5"):this.chartData.datasets[0].backgroundColor.push("#e0e0e0")},updateBarChart(i){const{minValue:t,maxValue:e}=i;this.BarMinValue=t,this.BarMaxValue=e;var s=this.chartData.datasets[0].data;this.min=s[this.BarMinValue]?s[this.BarMinValue]:"1",this.max=s[this.BarMaxValue]?s[this.BarMaxValue]:this.max,this.isMatch&&!this.isDisable&&this.matchFilter(),this.isExclude&&!this.isDisable&&this.excludeFilter()},toggleFilter(){this.activeFilter=!this.activeFilter},removeChartData(){this.chartData.labels=[],this.chartData.datasets[0].data=[],this.chart_dta=[]},matchFilter(){if(!this.isDisable){this.isMatch=!0,this.isExclude=!1;var i=this.chartData.datasets[0].data;this.chartLines=this.chartData.datasets[0],this.chartData.datasets[0].backgroundColor=[];for(let t=0;t<=i.length;t++)i[t]>=this.min&&i[t]<=this.max?this.chartData.datasets[0].backgroundColor.push("#5ea9e5"):this.chartData.datasets[0].backgroundColor.push("#e0e0e0")}},excludeFilter(){if(!this.isDisable){this.isMatch=!1,this.isExclude=!0;var i=this.chartData.datasets[0].data;this.chartLines=this.chartData.datasets[0],this.chartData.datasets[0].backgroundColor=[];for(let t=0;t<i.length;t++)i[t]>=this.min&&i[t]<=this.max?this.chartData.datasets[0].backgroundColor.push("#e0e0e0"):this.chartData.datasets[0].backgroundColor.push("#5ea9e5")}},missingFilter(){this.isDisable=!this.isDisable,this.validated=!this.validated;var i=this.chartData.datasets[0].data;if(this.chartLines=this.chartData.datasets[0],this.chartData.datasets[0].backgroundColor=[],this.validated)for(let t=1;t<=i.length;t++)this.chartData.datasets[0].backgroundColor.push("#e0e0e0");else this.isMatch&&this.matchFilter(),this.isExclude&&this.excludeFilter()},sortData(i){return i.slice().sort(function(t,e){return t.count-e.count})},maxNumber(i){if(i.length!=0)return i.reduce((t,e)=>t=t>e.count?t:e.count,0)},getLastIndex(i){let t=this.chartData.datasets[0].data,e=0;for(let s=i;s>=0;s--)if(t.lastIndexOf(s)!==-1){e=t.lastIndexOf(s);break}else continue;return e},getFirstIndex(i){let t=this.chartData.datasets[0].data,e=0;for(let s=i;s<=this.max;s++)if(t.lastIndexOf(s)!==-1){e=t.lastIndexOf(s);break}else continue;return e}}}),Mu={class:"dh-range-container"},cu={class:"bar-chart"},uu={class:"input-group-section"},gu={class:"input-group sb-input"},hu=["disabled","max","value"],du={class:"input-group sb-input"},Nu=["disabled","max","min","value"],Iu={class:"advance_section"},Du=g.createTextVNode(" Advanced "),ju={key:0,alt:"arrow",src:Ui,width:"20"},fu={key:1,alt:"arrow",src:Zi,width:"20"},Au={key:0,class:"list-none"},mu=["checked"],Lu=g.createTextVNode(" Filter Missing "),yu=["checked","disabled"],xu=g.createTextVNode(" Match "),Tu=["checked","disabled"],pu=g.createTextVNode(" Exclude ");function zu(i,t,e,s,n,a){const o=g.resolveComponent("Bar"),r=g.resolveComponent("MultiRangeSlider");return g.openBlock(),g.createElementBlock("div",Mu,[g.createElementVNode("div",cu,[g.createVNode(o,{"chart-data":i.chartData,"chart-id":i.chartId,"chart-options":i.chartOptions,"dataset-id-key":i.datasetIdKey,height:i.height,width:i.width},null,8,["chart-data","chart-id","chart-options","dataset-id-key","height","width"]),g.createVNode(r,{"base-class-name":`multi-range-slider range-slider ${i.isDisable}`,label:!1,max:i.rangeMax,"max-caption":`${i.max}`,"max-value":i.BarMaxValue,min:1,"min-caption":`${i.min}`,"min-value":i.BarMinValue,"range-margin":0,ruler:!1,step:i.steps,onInput:i.updateBarChart},null,8,["base-class-name","max","max-caption","max-value","min-caption","min-value","step","onInput"])]),g.createElementVNode("div",uu,[g.createElementVNode("div",gu,[g.createElementVNode("label",{class:g.normalizeClass(`text-2 input-to ${i.validated?"disable":""}`)}," From ",2),g.createElementVNode("input",{class:"form-input text",disabled:!!i.validated,max:`${i.max}`,min:"1",placeholder:"From",type:"number",value:`${i.min}`,onInput:t[0]||(t[0]=l=>i.changeMin(l))},null,40,hu)]),g.createElementVNode("div",du,[g.createElementVNode("label",{class:g.normalizeClass(`text-2 input-to ${i.validated?"disable":""}`)}," To ",2),g.createElementVNode("input",{class:"form-input text",disabled:!!i.validated,max:`${i.maxNumber(i.numberRange)}`,min:`${i.min}`,placeholder:"To",type:"number",value:`${i.max}`,onInput:t[1]||(t[1]=l=>i.changeMax(l))},null,40,Nu)])]),g.createElementVNode("div",Iu,[g.createElementVNode("span",{class:"toggle-icon",onClick:t[2]||(t[2]=l=>i.toggleFilter())},[Du,i.activeFilter?g.createCommentVNode("",!0):(g.openBlock(),g.createElementBlock("img",ju)),i.activeFilter?(g.openBlock(),g.createElementBlock("img",fu)):g.createCommentVNode("",!0)]),i.activeFilter?(g.openBlock(),g.createElementBlock("ul",Au,[g.createElementVNode("li",null,[g.createElementVNode("label",null,[g.createElementVNode("input",{checked:i.isDisable,type:"checkbox",onChange:t[3]||(t[3]=l=>i.missingFilter())},null,40,mu),Lu])]),g.createElementVNode("li",null,[g.createElementVNode("label",null,[g.createElementVNode("input",{checked:i.isMatch,disabled:!!i.validated,name:"number_filter",type:"radio",onChange:t[4]||(t[4]=l=>i.matchFilter())},null,40,yu),xu]),g.createElementVNode("label",null,[g.createElementVNode("input",{checked:i.isExclude,disabled:!!i.validated,name:"number_filter",type:"radio",onChange:t[5]||(t[5]=l=>i.excludeFilter())},null,40,Tu),pu])])])):g.createCommentVNode("",!0)])])}var bu=q(lu,[["render",zu]]),Mg="";const Su={class:"search-panel"},Cu=["placeholder"];var Eu=q(g.defineComponent({__name:"SearchInput",props:{modelValue:String,placeholder:String},emits:["submit","clean","update:modelValue"],setup(i,{emit:t}){const e=i,s=g.ref("");function n(){t("submit",s.value),t("update:modelValue",s.value)}function a(){s.value="",t("clean"),t("update:modelValue",s.value)}return g.onMounted(()=>()=>s.value=e.modelValue||""),g.watch(e,()=>s.value=e.modelValue||""),(o,r)=>(g.openBlock(),g.createElementBlock("div",Su,[g.withDirectives(g.createElementVNode("input",{"onUpdate:modelValue":r[0]||(r[0]=l=>s.value=l),class:"form-input search-panel-input","data-e2e":"search-input",placeholder:e.placeholder,onKeyup:n},null,40,Cu),[[g.vModelText,s.value]]),s.value?g.createCommentVNode("",!0):(g.openBlock(),g.createElementBlock("button",{key:0,class:"search-panel-button","data-e2e":"search-submit",onClick:n},[g.createVNode(rt,{active:!0,"icon-name":"search",size:24})])),s.value?(g.openBlock(),g.createElementBlock("button",{key:1,class:"search-panel-button close","data-e2e":"search-close",onClick:a},[g.createVNode(rt,{class:"icon","icon-name":"close",size:24})])):g.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-f97055f4"]]),ug="";const Ou=i=>(g.pushScopeId("data-v-cb51b2ba"),i=i(),g.popScopeId(),i),wu={class:"stepper"},ku={class:"step"},_u=Ou(()=>g.createElementVNode("hr",{class:"solid"},null,-1));var Yu=q(g.defineComponent({__name:"Stepper",props:{maxSteps:Number,currentStep:Number},setup(i){const t=i;function e(){return Array.from(Array(t.maxSteps||0).keys())}return(s,n)=>(g.openBlock(),g.createElementBlock("div",wu,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(e(),a=>(g.openBlock(),g.createElementBlock("div",ku,[g.createElementVNode("span",{class:g.normalizeClass(["step-number",{active:a===i.currentStep}])},g.toDisplayString(a+1),3),_u]))),256))]))}}),[["__scopeId","data-v-cb51b2ba"]]);const Qu=g.defineComponent({props:{data:{type:Boolean,required:!0,default:!1},label:{type:String,default:"Label"}},data(){return{active:this.data}},emits:["change"],computed:{checkedValue:{get(){return this.data},set(i){this.active=i,this.$emit("change",i)}}}}),vu={class:"dp__options"},Uu={class:"dp__options_switch"},Zu=g.createElementVNode("span",{class:"dp__options_slider"},null,-1);function Pu(i,t,e,s,n,a){return g.openBlock(),g.createElementBlock("div",vu,[g.createElementVNode("span",null,g.toDisplayString(i.label),1),g.createElementVNode("label",Uu,[g.withDirectives(g.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=o=>i.checkedValue=o),name:"switch",type:"checkbox"},null,512),[[g.vModelCheckbox,i.checkedValue]]),Zu])])}var Ru=q(Qu,[["render",Pu]]);const Vu=g.defineComponent({props:{target:{type:String,required:!0},trigger:{type:String,required:!0},placement:{type:Object,default:()=>({placement:"bottom"}),required:!1},tooltipText:{type:String,required:!0}},data(){return{show:!1}},methods:{showTooltip(){this.show=!this.show},tooltip(){let i=this.$refs.main,t=this.$refs[this.target];["right","left"].includes(this.placement)&&(t.style.top=-(((t==null?void 0:t.offsetHeight)-(i==null?void 0:i.offsetHeight))/2)+"px")}}}),Wu=["placement","target","tooltipText","trigger"],Bu=["id"],Gu={class:"text"};function Hu(i,t,e,s,n,a){return g.openBlock(),g.createElementBlock("div",{id:"main-contain",ref:"main",class:"dh-tooltip-container tooltip",placement:i.placement,target:i.target,tooltipText:i.tooltipText,trigger:i.trigger,onClick:t[0]||(t[0]=o=>i.trigger=="click"?i.showTooltip():null),onMouseover:t[1]||(t[1]=o=>i.tooltip())},[g.renderSlot(i.$slots,"default"),g.createElementVNode("div",{id:i.target,ref:i.target,class:g.normalizeClass(`tooltiptext ${i.show}`)},[g.createElementVNode("span",Gu,g.toDisplayString(i.tooltipText),1)],10,Bu)],40,Wu)}var Fu=q(Vu,[["render",Hu]]),hg="";const Ju={class:"password-panel"},Xu=["type","placeholder"],$u={class:"icon is-right"},Ku={key:0,class:"password-tooltip"},qu={class:"active-text"},tg={class:"active-text"},eg={class:"active-text"};var ig=q(g.defineComponent({__name:"PasswordField",props:{modelValue:String,placeholder:String,tipChars:{type:String,default:"12 Characters"},tipNumbers:{type:String,default:"Numbers"},tipSymbols:{type:String,default:"Symbols"}},emits:["submit","clean","update:modelValue"],setup(i,{emit:t}){const e=i,s=g.ref(""),n=g.ref(!1),a=g.ref(!1),o=g.ref(!1),r=g.ref(!1),l=g.ref(!1),M=g.ref(!1);function c(){t("submit",s.value),t("update:modelValue",s.value)}function u(){n.value=!0,M.value=!0}function h(){n.value=!1,M.value=!1}function d(){l.value=!l.value}return g.onMounted(()=>()=>s.value=e.modelValue||""),g.watch(e,()=>(s.value=e.modelValue||"",a.value=s.value.length>11,o.value=/\d/.test(s.value),r.value=/[!@#\$%\^\&*\)\(+=._-]/.test(s.value))),(N,I)=>(g.openBlock(),g.createElementBlock("div",Ju,[g.withDirectives(g.createElementVNode("input",{type:l.value?"text":"password",class:"form-input password-panel-input","onUpdate:modelValue":I[0]||(I[0]=j=>s.value=j),"data-e2e":"search-input",placeholder:e.placeholder,onKeyup:c,onFocus:u,onFocusout:h},null,40,Xu),[[g.vModelDynamic,s.value]]),g.createElementVNode("button",{class:"password-panel-button",onClick:d},[g.createElementVNode("span",$u,[g.createVNode(rt,{active:M.value,"icon-name":l.value?"invisible":"visible",size:20},null,8,["active","icon-name"])])]),n.value?(g.openBlock(),g.createElementBlock("div",Ku,[g.createElementVNode("p",qu,[g.createVNode(rt,{class:"accept-icon","icon-name":a.value?"accept":"close",size:a.value?10:16},null,8,["icon-name","size"]),g.createTextVNode(" "+g.toDisplayString(e.tipChars),1)]),g.createElementVNode("p",tg,[g.createVNode(rt,{class:"accept-icon","icon-name":o.value?"accept":"close",size:o.value?10:16},null,8,["icon-name","size"]),g.createTextVNode(" "+g.toDisplayString(e.tipNumbers),1)]),g.createElementVNode("p",eg,[g.createVNode(rt,{class:"accept-icon","icon-name":r.value?"accept":"close",size:r.value?10:16},null,8,["icon-name","size"]),g.createTextVNode(" "+g.toDisplayString(e.tipSymbols),1)])])):g.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-e2840bb4"]]);W.DhAdvancedFilter=qn,W.DhIcon=rt,W.DhModal=No,W.DhNotification=zo,W.DhNumberRange=bu,W.DhPasswordField=ig,W.DhSearchInput=Eu,W.DhStepper=Yu,W.DhSwitch=Ru,W.DhTooltip=Fu,Object.defineProperties(W,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- :root{--dh-filter-blue: invert(42%) sepia(82%) saturate(6840%) hue-rotate(189deg) brightness(91%) contrast(88%);--dh-filter-red: invert(27%) sepia(53%) saturate(2191%) hue-rotate(340deg) brightness(92%) contrast(96%);--dh-filter-gray: invert(48%) sepia(0%) saturate(1294%) hue-rotate(102deg) brightness(95%) contrast(86%);--dh-filter-light: brightness(120%);--dh-filter-lighter: brightness(200%);--dh-filter-white: brightness(0) invert(1);--dh-shadow-1: 0px 10px 30px 0px #97979733;--dh-shadow-2: 0px 0px 12px rgba(136, 136, 136, .08);--dh-shadow-3: 0px 0px 30px 0px #97979733;--dh-primary: #0f71b4;--dh-primary-lighter: #5ea9e5;--dh-primary-light: #1e8bd6;--dh-white: #ffffff;--dh-dark: #231f20;--dh-text-disabled: #e0e0e0;--dh-text-secondary: #828282;--dh-text-secondary-lighter: #aaacb4;--dh-text-primary: #555555;--dh-bg-primary: #f9fbfd;--dh-grey: #7a8393;--dh-grey-dark: #4f4f4f;--dh-grey-light: #f2f2f2;--dh-grey-lighter: #f8f9fa;--dh-blue-light: #daebf6;--dh-blue-tint: #ecf4fa;--dh-danger: #c32f27;--dh-danger-light: #e58b86;--dh-danger-lighter: #fce4e2;--dh-success: #1d8245;--dh-success-light: #dcf5e0;--dh-success-lighter: #f1fbf3;--dh-warning: #cd7f0a;--dh-warning-light: #fff7eb;--dh-purple: #9b51e0;--dh-purple-lighter: #fff5f4;--dh-stepper-primary-background: var(--dh-grey-lighter);--dh-stepper-primary-color: var(--dh-text-disabled);--dh-stepper-active-background: var(--dh-blue-tint);--dh-stepper-active-color: var(--dh-primary);--dh-font-family: "Rubik-Regular", Arial, Helvetica, sans-serif}.btn-group{display:flex;background-color:var(--dh-grey-lighter);border-radius:.5rem}.btn-group .btn{display:flex;align-items:center;border-radius:0;padding:4px 12px;min-width:0}.btn-group .btn:first-of-type{border-radius:.5rem 0 0 .5rem}.btn-group .btn:last-of-type{border-radius:0 .5rem .5rem 0}.btn-group .active{background-color:var(--dh-blue-tint);color:var(--dh-primary);border-radius:.5rem}.btn-group .active .icon-color{filter:var(--dh-filter-blue);margin-right:10px}.btn{border:0;border-radius:.5rem;font-size:14px;height:2.5rem;line-height:2.5rem;cursor:pointer;min-width:unset;padding:0 1rem;white-space:nowrap;text-align:center}.btn-small{line-height:1.5rem;height:1.5rem;font-size:12px}.btn-mini{font-size:14px;padding:.7rem;min-width:0;height:0;line-height:0;border-radius:4px}.btn-large{line-height:3.5rem;height:3.5rem;font-size:16px;font-weight:600}.btn-primary{background-color:var(--dh-blue-tint);color:var(--dh-primary)}.btn-primary:active{background-color:var(--dh-blue-tint)}.btn-secondary{background-color:var(--dh-grey-lighter);color:var(--dh-text-primary)}.btn-secondary.btn-large{font-weight:400}.btn-secondary:active{background-color:var(--dh-text-disabled)}.btn-danger{background-color:var(--dh-danger-lighter);color:var(--dh-danger)}.btn-success{background-color:var(--dh-success-lighter);color:var(--dh-success)}.btn-disabled{background-color:var(--dh-grey-lighter);color:var(--dh-text-secondary-lighter)}.btn.focus{border:2px solid var(--dh-blue-tint)}.btn:hover:enabled:not(.no-shadow){box-shadow:var(--dh-shadow-1)}.btn:disabled{background-color:var(--dh-grey-lighter);color:var(--dh-text-secondary-lighter)}.card{background-color:var(--dh-white);border-radius:8px;box-shadow:var(--dh-shadow-2);border:1px solid var(--dh-grey-light)}.input-group{display:flex;flex-direction:column;margin-bottom:1rem}.input-group .input-label{color:var(--dh-text-primary);margin-bottom:.5rem}.form-input{height:2.5rem;padding:0 .75rem;border-radius:.25rem}.invalid-feedback{display:flex;flex-direction:column;width:100%;margin-top:.25rem;font-size:.875em;color:var(--dh-danger)}.form-input{border:solid 1px var(--dh-text-disabled);color:solid 1px var(--dh-dark)}.form-input::placeholder{color:var(--dh-text-secondary-lighter)}.form-input.active,.form-input:focus{border-color:var(--dh-primary);outline:0}.form-input.success{background:url(../assets/icons/success.png) no-repeat;background-position:right 10px center;background-size:1rem}.form-input.error{background:url(../assets/icons/error.png) no-repeat;background-position:right 10px center;background-size:1rem;border-color:var(--dh-danger)}::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}::-webkit-scrollbar{width:5px;height:5px;background-color:transparent}::-webkit-scrollbar-thumb{border-radius:10px;background-color:var(--dh-text-disabled)}table{width:100%;border-collapse:collapse}table thead{background-color:var(--dh-grey-lighter);height:2.5rem;text-transform:uppercase;position:sticky;top:0;z-index:1;font-size:16px}table thead tr th{border-right:1px solid var(--dh-text-disabled);text-align:justify}table thead .table-control{background-color:var(--dh-grey-lighter)}table tbody tr td{height:2.8125rem;color:var(--dh-text-primary)}table tbody tr.hover,table tbody tr:hover{background:var(--dh-grey-lighter)}table tbody .table-control{background-color:var(--dh-white)}table tbody .table-control.hover,table tbody .table-control:hover{background:var(--dh-grey-lighter)}th,td{border:none;border-top:1px solid var(--dh-text-disabled);padding:.5rem 2.5rem;white-space:nowrap;overflow:hidden}th .btn,td .btn{min-width:auto;padding:0 1rem}th:not(.no-ellipse),td:not(.no-ellipse){text-overflow:ellipsis}.content-end{justify-content:flex-end}.content-space-between{justify-content:space-between}.tag{border:0;border-radius:.25rem;font-size:14px;height:2.5rem;line-height:2.5rem;cursor:pointer;min-width:unset;padding:0 1rem;white-space:nowrap;text-align:center}.tag-small{line-height:1.5rem;height:1.5rem;font-size:12px}.tag-mini{font-size:10px;padding:.7rem;min-width:0;height:0;line-height:0;border-radius:4px}.tag-large{line-height:3.5rem;height:3.5rem;font-size:16px;font-weight:600}.tag-primary{background-color:var(--dh-blue-tint);color:var(--dh-primary)}.tag-primary:active{background-color:var(--dh-blue-tint)}.tag-secondary{background-color:var(--dh-grey-lighter);color:var(--dh-primary)}.tag-secondary.btn-large{font-weight:400}.tag-secondary:active{background-color:var(--dh-text-disabled)}.tag-light{background-color:var(--dh-white);color:var(--dh-text-secondary-lighter)}.tag-light.btn-large{font-weight:500}.tag-light:active{background-color:var(--dh-text-disabled)}.tag-danger{background-color:var(--dh-danger-lighter);color:var(--dh-danger)}.tag-success{background-color:var(--dh-success-light);color:var(--dh-success)}.tag-lighter{background-color:var(--dh-grey-lighter);color:var(--dh-grey)}.tag-dark{background-color:var(--dh-grey);color:var(--dh-grey-lighter)}.tag.focus{border:2px solid var(--dh-blue-tint)}.tag:hover:enabled{box-shadow:var(--dh-shadow-1)}.tag:disabled{background-color:var(--dh-grey-lighter);color:var(--dh-text-secondary-lighter)}@font-face{font-family:Rubik-Bold;src:url(./fonts/Rubik-Bold.woff2)}@font-face{font-family:Rubik-Medium;src:url(./fonts/Rubik-Medium.woff2)}@font-face{font-family:Rubik-Regular;src:url(./fonts/Rubik-Regular.woff2)}h1,h3,h4,h2{font-family:var(--dh-font-family)}h1{font-size:36px}h2{font-size:28px}h3{font-size:24px}h4{font-size:18px}.text-1,.text-2{color:var(--dh-text-secondary-lighter)}.text-1{font-size:14px}.text-2{font-size:16px}.text-3{font-size:16px;font-weight:700;color:var(--dh-text-primary) default}.text-4{font-weight:400;color:var(--dh-text-primary)}body{font-family:var(--dh-font-family)}.label{font-family:var(--dh-font-family);font-size:12px}.additional{font-family:var(--dh-font-family);font-size:10px}.medium{font-family:var(--dh-font-family)}a{text-decoration:none}button{font-family:var(--dh-font-family)}.title{font-weight:500;text-align:center;margin-bottom:12px;font-size:14px}.subtitle{text-align:center;font-size:16px}.dh-notification-container.toast .status{background-color:var(--dh-white)}.dh-notification-container .notification-enter{-webkit-animation:slide-in-right 1s cubic-bezier(.25,.46,.45,.94) both;animation:slide-in-right 1s cubic-bezier(.25,.46,.45,.94) both}.dh-notification-container .notification-up{-webkit-animation:slide-top .5s cubic-bezier(.25,.46,.45,.94) both;animation:slide-top .5s cubic-bezier(.25,.46,.45,.94) both}.dh-notification-container .status{width:100%;max-width:360px;padding:16px;border-radius:12px;box-shadow:var(--dh-shadow-3);background-color:var(--text-background-white);position:relative;box-sizing:border-box}.dh-notification-container .status-bottom-message{width:auto;display:inline-flex;align-items:center;padding:8px 12px;border-radius:8px;border:solid 1px var(--dh-text-disabled);background-color:var(--dh-grey)}.dh-notification-container .status-modal{max-width:512px;width:100%;padding:24px}.dh-notification-container .status-toast,.dh-notification-container .status-actionable{margin-left:auto}.dh-notification-container.modal{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.dh-notification-container.bottom-message{position:absolute;bottom:20px;left:50%;transform:translate(-50%);width:max-content}.dh-notification-container .content{display:flex;flex-direction:row;gap:0 12px;flex-wrap:wrap}.dh-notification-container .content-bottom-message{align-items:center;gap:0 8px}.dh-notification-container .content-modal .icons{width:30px;height:30px}.dh-notification-container .icons{width:22.6px;height:22.6px;object-fit:contain}.dh-notification-container .icons-info{filter:var(--dh-filter-blue)}.dh-notification-container .icons-success{filter:var(--dh-success)}.dh-notification-container .icons-warning{filter:var(--dh-warning)}.dh-notification-container .icons-danger{filter:var(--dh-danger)}.dh-notification-container .icons-success-bottom-message,.dh-notification-container .icons-info-bottom-message{filter:var(--dh-filter-white)}.dh-notification-container .ellipse{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center}.dh-notification-container .ellipse-info{background-color:var(--dh-blue-tint)}.dh-notification-container .ellipse-success{background-color:var(--dh-success-light)}.dh-notification-container .ellipse-warning{background-color:var(--dh-warning-light)}.dh-notification-container .ellipse-danger{background-color:var(--dh-purple-lighter)}.dh-notification-container .ellipse-bottom-message{width:unset;height:unset;padding:unset;background-color:transparent;position:relative;top:1px}.dh-notification-container .ellipse-modal{width:64px;height:64px}.dh-notification-container .additional-text{flex:1}.dh-notification-container .additional-text .descriptions{font-size:14px;color:var(--dh-text-secondary);line-height:1.5}.dh-notification-container .additional-text .title{font-size:16px;font-weight:500;color:var(--dh-grey-dark);margin-bottom:8px;text-align:left}.dh-notification-container .additional-text .title-bottom-message{font-size:14px;font-weight:400;line-height:1.57;color:var(--dh-white);margin-bottom:0}.dh-notification-container .additional-text .title-modal{font-size:18px}.dh-notification-container .close-notification{position:absolute;top:8px;right:8px;background:transparent;border:none;cursor:pointer}.dh-notification-container .close-notification .close-icon{width:25px;height:25px}.dh-notification-container .buttons{display:flex;flex-direction:row;gap:12px;margin-top:18px;width:100%;padding-left:71px}@media screen and (max-width: 320px){.dh-notification-container .buttons.actionable{padding-left:56px}}.dh-notification-container .buttons.modal{margin-top:30px;justify-content:flex-end}.dh-notification-container button.btn{min-width:100px}@keyframes slide-in-right{0%{-webkit-transform:translateX(1000px);transform:translate(1000px);opacity:0}to{-webkit-transform:translateX(0);transform:translate(0);opacity:1}}@keyframes slide-top{0%{-webkit-transform:translateY(100px);transform:translateY(100px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}.dp__options{display:flex;gap:12px;align-items:center}.dp__options span{order:1}.dp__options_switch{position:relative;display:inline-block;width:60px;height:34px}.dp__options_switch input{opacity:0;width:0;height:0}.dp__options_slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--dh-grey-light);-webkit-transition:.4s;transition:.4s;border-radius:34px}.dp__options_slider:before{position:absolute;content:"";height:26px;width:26px;left:4px;bottom:4px;background-color:var(--dh-text-secondary-lighter);-webkit-transition:.4s;transition:.4s;border-radius:50%}input:checked+.dp__options_slider{background-color:var(--dh-blue-light)}input:focus+.dp__options_slider{box-shadow:0 0 1px var(--dh-blue-light)}input:checked+.dp__options_slider:before{background-color:var(--dh-primary);-webkit-transform:translateX(26px);-ms-transform:translateX(26px);transform:translate(26px)}.modal-backdrop{position:fixed;top:0;bottom:0;left:0;right:0;background-color:#00000080;display:flex;justify-content:center;align-items:center}.modal-backdrop .modal{background:var(--dh-white);box-shadow:-5px 0 30px #97979733;display:flex;flex-direction:row;width:1000px;height:600px;flex-wrap:wrap;border-radius:12px;position:relative}.modal-backdrop .modal.right{flex-direction:row-reverse}.modal-backdrop .modal.right #modal-sidebar{border-radius:0 12px 12px 0}.modal-backdrop .modal .btn-close{position:absolute;top:0;right:0;border:none;font-size:20px;padding:10px;cursor:pointer;font-weight:700;color:var(--dh-text-secondary-lighter);background:transparent;z-index:10}.modal-backdrop .modal .btn-close .icon:hover{filter:var(--dh-filter-red)}.modal-backdrop .modal #modal-sidebar{overflow:hidden;width:20%;background:var(--dh-grey-lighter);padding:15px 12px;box-sizing:border-box;border-radius:12px 0 0 12px;color:var(--dh-text-secondary);display:flex;flex-direction:column}.modal-backdrop .modal #modal-sidebar button{margin-top:auto}.modal-backdrop .modal .right-section{width:80%;height:100%;padding:0 10px;box-sizing:border-box;display:flex;flex-direction:column}.modal-backdrop .modal .right-section.full{width:100%}.modal-backdrop .modal .modal-header,.modal-backdrop .modal .modal-footer{padding:15px 22px;display:flex}.modal-backdrop .modal .modal-header{position:sticky;justify-content:space-between;top:0;z-index:5;background:var(--dh-white);color:var(--dh-text-secondary)}.modal-backdrop .modal .modal-footer{color:var(--dh-text-secondary-lighter);position:sticky;bottom:0;background-color:var(--dh-white);z-index:5;display:flex;align-items:center;justify-content:space-between}.modal-backdrop .modal .modal-body{color:var(--dh-text-secondary);overflow-y:scroll;padding:10px 22px;flex:1}.modal-fade-enter,.modal-fade-leave-to{opacity:0}.modal-fade-enter-active,.modal-fade-leave-active{transition:opacity 1000s ease}*{scrollbar-width:auto;scrollbar-color:var(--dh-blue-tint) var(--dh-white)}*::-webkit-scrollbar{width:13px}*::-webkit-scrollbar-track{background:var(--dh-white)}*::-webkit-scrollbar-thumb{background-color:var(--dh-blue-tint);border-radius:10px;border:3px solid var(--dh-white)}.dh-range-container{max-width:320px;margin:auto}.input-group-section{display:flex;gap:20px;align-items:flex-end}.multi-range-slider.range-slider{box-shadow:none;border:none;padding-top:15px}.multi-range-slider.range-slider.true{pointer-events:none}.multi-range-slider.range-slider.true .bar-inner{background-color:var(--dh-grey-lighter)}.multi-range-slider.range-slider.true .thumb:before{border:4px solid var(--dh-grey-lighter)}.multi-range-slider.range-slider.true .thumb .caption{opacity:.2}.multi-range-slider.range-slider .bar-inner{background-color:var(--dh-primary);border:none;box-shadow:none;height:6px}.multi-range-slider.range-slider .bar-left,.multi-range-slider.range-slider .bar-right{box-shadow:none;background-color:var(--dh-grey-lighter)}.multi-range-slider.range-slider .thumb:before{width:14px;height:14px;box-shadow:none;border:none;background-color:var(--dh-white);border:4px solid var(--dh-primary);margin:-7px}.multi-range-slider.range-slider .thumb .caption{bottom:-24px;display:inline-flex}.multi-range-slider.range-slider .thumb .caption *{min-width:22px;height:22px;line-height:22px;color:#000;border:1px solid #ccc;background-color:transparent;box-shadow:none;border-radius:unset}.multi-range-slider.range-slider .thumb.thumb-left{right:9px}.multi-range-slider.range-slider .thumb.thumb-left .caption{left:9px}.multi-range-slider.range-slider .thumb.thumb-right{left:1px}.multi-range-slider.range-slider .thumb.thumb-right .caption{left:-3px}.multi-range-slider.range-slider .label{font-size:14px;line-height:22px;color:var(--dh-text-secondary-lighter)}.multi-range-slider.range-slider .label:first-child{margin-left:-12px}.multi-range-slider.range-slider .label:last-child{margin-right:-12px}.input-group-section{gap:20px;align-items:flex-end;width:100%;display:flex;flex-wrap:wrap;box-sizing:border-box;margin-top:30px}.input-group-section .input-group{flex-direction:row;align-items:center}.input-group-section .input-group label{margin-right:10px;margin-bottom:0;font-size:14px;line-height:22px;color:var(--dh-text-primary)}.input-group-section .input-group label.disable{color:var(--dh-grey-light)}.input-group-section .input-group input[type=number]{border-color:var(--dh-grey-light);border-radius:4px;text-align:center;font-size:14px;line-height:22px;color:var(--dh-dark);height:38px;font-family:Rubik,sans-serif;width:70px}.input-group-section .input-group input[type=number] ::placeholder{color:var(--dh-text-secondary-lighter)}.MultiRangeSliderContainer{margin:auto;width:800px}.advance_section{border-top:1px solid #f2f2f2;padding:15px 15px 15px 0;font-size:14px;line-height:22px;color:var(--dh-text-secondary-lighter)}.advance_section ul{list-style-type:none;padding:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}.advance_section ul li{font-size:12px;line-height:20px;color:var(--dh-text-secondary)}.advance_section ul li input[type=checkbox]{margin:0;vertical-align:text-top}.advance_section ul li input[type=radio]{vertical-align:text-top;margin:0 0 0 15px}.advance_section .toggle-icon{display:inline-flex;flex-wrap:wrap;align-items:center;cursor:pointer}.advance_section .toggle-icon:hover{color:var(--dh-text-primary)}.tooltip{position:relative;display:inline-block;left:50%;transform:translate(-50%,31px)}.tooltip[placement=top] .tooltiptext{bottom:125%}.tooltip[placement=top] .tooltiptext:after{top:100%;border-color:var(--dh-text-primary) transparent transparent transparent}.tooltip[placement=bottom] .tooltiptext{top:125%}.tooltip[placement=bottom] .tooltiptext:after{bottom:100%;border-color:transparent transparent var(--dh-text-primary) transparent}.tooltip[placement=right] .tooltiptext{top:0;left:110%;margin-left:initial}.tooltip[placement=right] .tooltiptext:after{top:50%;right:100%;margin-top:-5px;left:initial;border-color:transparent var(--dh-text-primary) transparent transparent}.tooltip[placement=left] .tooltiptext{top:0;right:110%;left:initial;margin-left:initial}.tooltip[placement=left] .tooltiptext:after{top:50%;left:100%;margin-top:-5px;margin-left:0;border-color:transparent transparent transparent var(--dh-text-primary)}.tooltip .tooltiptext{visibility:hidden;width:200px;box-shadow:var(--dh-shadow-2);background-color:var(--dh-text-primary);color:var(--dh-white);text-align:center;border-radius:5px;padding:8px;position:absolute;z-index:1;left:50%;margin-left:-108px;font-size:12px;opacity:0;transition:opacity .3s}@media screen and (max-width: 420px){.tooltip .tooltiptext{width:100px;margin-left:-58px}}.tooltip .tooltiptext:after{content:"";position:absolute;left:50%;margin-left:-5px;border-width:5px;border-style:solid;bottom:100%;border-color:transparent transparent var(--dh-text-primary) transparent}.tooltip[trigger=hover]:hover .tooltiptext{animation:tooltips-ani 1s ease-out forwards;visibility:visible}.tooltip[trigger=focus]:focus-within .tooltiptext{animation:tooltips-ani 1s ease-out forwards;visibility:visible}.tooltip[trigger=click] .tooltiptext.true{animation:tooltips-ani 1s ease-out forwards;visibility:visible}@keyframes tooltips-ani{to{opacity:1}}.dh-advanced-filter-container{max-width:320px}.dh-advanced-filter-container .advance_section{padding:15px 15px 15px 0;font-size:14px;line-height:22px;color:var(--dh-text-secondary-lighter)}.dh-advanced-filter-container .advance_section ul{list-style-type:none;padding:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}.dh-advanced-filter-container .advance_section ul li{font-size:12px;line-height:20px;color:var(--dh-text-secondary)}.dh-advanced-filter-container .advance_section ul li input[type=checkbox]{margin:0;vertical-align:text-top}.dh-advanced-filter-container .advance_section ul li input[type=radio]{vertical-align:text-top;margin:0 0 0 15px}.dh-advanced-filter-container .advance_section .toggle-icon{display:inline-flex;flex-wrap:wrap;align-items:center;cursor:pointer}.dh-advanced-filter-container .advance_section .toggle-icon:hover{color:var(--dh-text-primary)}.active[data-v-201309a0],.active-hover[data-v-201309a0]:hover{filter:var(--dh-filter-blue)}.multi-range-slider *{box-sizing:border-box;padding:0;margin:0}.multi-range-slider{display:flex;position:relative;border:solid 1px gray;border-radius:10px;padding:20px 10px;box-shadow:1px 1px 4px #000;flex-direction:column;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.multi-range-slider .bar{display:flex}.multi-range-slider .bar-left{width:25%;background-color:#f0f0f0;border-radius:10px 0 0 10px;box-shadow:inset 0 0 5px #000;padding:4px 0}.multi-range-slider .bar-right{width:25%;background-color:#f0f0f0;border-radius:0 10px 10px 0;box-shadow:inset 0 0 5px #000}.multi-range-slider .bar-inner{background-color:#0f0;display:flex;flex-grow:1;flex-shrink:1;position:relative;border:solid 1px black;justify-content:space-between;box-shadow:inset 0 0 5px #000}.multi-range-slider .bar-inner-left,.multi-range-slider .bar-inner-right{width:50%}.multi-range-slider .thumb{background-color:red;position:relative;z-index:1;cursor:pointer}.multi-range-slider .thumb:before{content:"";background-color:#fff;position:absolute;width:20px;height:20px;border:solid 1px black;box-shadow:0 0 3px #000,inset 0 0 5px gray;border-radius:50%;z-index:1;margin:-8px;cursor:pointer}.multi-range-slider .input-type-range:focus+.thumb:after{content:"";position:absolute;top:-4px;left:-4px;width:11px;height:11px;z-index:2;border-radius:50%;border:dotted 1px black;box-shadow:0 0 5px #fff,inset 0 0 10px #000}.multi-range-slider .caption{position:absolute;bottom:35px;width:2px;height:2px;left:1px;display:flex;justify-content:center;align-items:center;overflow:visible;display:none}.multi-range-slider .thumb .caption *{position:absolute;min-width:30px;height:30px;font-size:75%;text-align:center;line-height:30px;background-color:#00f;border-radius:15px;color:#fff;box-shadow:0 0 5px #000;padding:0 5px;white-space:nowrap}.multi-range-slider .thumb:active .caption{display:flex}.multi-range-slider .input-type-range:focus+.thumb .caption{display:flex}.multi-range-slider .input-type-range{position:absolute;top:0px;left:0px;width:100%;opacity:0;pointer-events:none}.multi-range-slider .ruler{margin:10px 0 -5px;display:flex;overflow:hidden}.multi-range-slider .ruler .ruler-rule{border-left:solid 1px;border-bottom:solid 1px;display:flex;flex-grow:1;flex-shrink:1;padding:5px 0}.multi-range-slider .ruler .ruler-rule:last-child{border-right:solid 1px}.multi-range-slider .sub-ruler{margin:-2px 0 -5px;display:flex}.multi-range-slider .sub-ruler .ruler-sub-rule{border-left:solid 1px;border-bottom:solid 1px;display:flex;flex-grow:1;flex-shrink:1;padding:3px 0}.multi-range-slider .sub-ruler .ruler-sub-rule:last-child{border-right:solid 1px}.multi-range-slider .labels{display:flex;justify-content:space-between;padding:0;margin-top:10px;margin-bottom:-20px}.multi-range-slider .label{font-size:80%;display:flex;width:1px;justify-content:center}.multi-range-slider .label:first-child{justify-content:start}.multi-range-slider .label:last-child{justify-content:end}.multi-range-slider.zero-ranage-margin .thumb-left{right:12px}.multi-range-slider.zero-ranage-margin .thumb-right{left:8px}.multi-range-slider-bar-only *{box-sizing:border-box;padding:0;margin:0}.multi-range-slider-bar-only{display:flex;position:relative;border:none;border-radius:0;padding:10px;box-shadow:none;flex-direction:column;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.multi-range-slider-bar-only .bar{display:flex}.multi-range-slider-bar-only .bar-left{width:25%;background-color:#f0f0f0;border-radius:10px 0 0 10px;box-shadow:inset 0 0 5px #000;padding:4px 0}.multi-range-slider-bar-only .bar-right{width:25%;background-color:#f0f0f0;border-radius:0 10px 10px 0;box-shadow:inset 0 0 5px #000}.multi-range-slider-bar-only .bar-inner{background-color:#00f;display:flex;flex-grow:1;flex-shrink:1;position:relative;border:solid 1px black;justify-content:space-between;box-shadow:inset 0 0 5px #000}.multi-range-slider-bar-only .bar-inner-left,.multi-range-slider-bar-only .bar-inner-right{width:50%}.multi-range-slider-bar-only .thumb{background-color:red;position:relative;z-index:1;cursor:pointer}.multi-range-slider-bar-only .thumb:before{content:"";background-color:#fff;position:absolute;width:20px;height:20px;border:solid 1px black;box-shadow:0 0 3px #000,inset 0 0 5px gray;border-radius:50%;z-index:1;margin:-8px;cursor:pointer}.multi-range-slider-bar-only .input-type-range:focus+.thumb:after{content:"";position:absolute;top:-4px;left:-4px;width:11px;height:11px;z-index:2;border-radius:50%;border:dotted 1px black;box-shadow:0 0 5px #fff,inset 0 0 10px #000}.multi-range-slider-bar-only .caption{position:absolute;bottom:35px;width:2px;height:2px;left:1px;display:flex;justify-content:center;align-items:center;overflow:visible;display:none}.multi-range-slider-bar-only .thumb .caption *{position:absolute;min-width:30px;height:30px;font-size:75%;text-align:center;line-height:30px;background-color:#00f;border-radius:15px;color:#fff;box-shadow:0 0 5px #000;padding:0 5px;white-space:nowrap}.multi-range-slider-bar-only .thumb:active .caption{display:flex}.multi-range-slider-bar-only .input-type-range:focus+.thumb .caption{display:flex}.multi-range-slider-bar-only .input-type-range{position:absolute;top:0px;left:0px;width:100%;opacity:0;pointer-events:none}.multi-range-slider-bar-only .ruler{margin:10px 0 -5px;display:flex;display:none;overflow:hidden}.multi-range-slider-bar-only .ruler .ruler-rule{border-left:solid 1px;border-bottom:solid 1px;display:flex;flex-grow:1;flex-shrink:1;padding:5px 0;display:none}.multi-range-slider-bar-only .ruler .ruler-rule:last-child{border-right:solid 1px}.multi-range-slider-bar-only .sub-ruler{margin:-2px 0 -5px;display:flex;display:none}.multi-range-slider-bar-only .sub-ruler .ruler-sub-rule{border-left:solid 1px;border-bottom:solid 1px;display:flex;flex-grow:1;flex-shrink:1;padding:3px 0}.multi-range-slider-bar-only .sub-ruler .ruler-sub-rule:last-child{border-right:solid 1px}.multi-range-slider-bar-only .labels{display:flex;justify-content:space-between;padding:0;margin-top:10px;margin-bottom:-20px;display:none}.multi-range-slider-bar-only .label{font-size:80%;display:flex;width:1px;justify-content:center}.multi-range-slider-bar-only .label:first-child{justify-content:start}.multi-range-slider-bar-only .label:last-child{justify-content:end}.multi-range-slider-bar-only.zero-ranage-margin .thumb-left{right:12px}.multi-range-slider-bar-only.zero-ranage-margin .thumb-right{left:8px}.search-panel[data-v-f97055f4]{width:100%;display:flex}.search-panel-input[data-v-f97055f4]{width:100%;padding:0 2.5rem;height:2rem;box-shadow:var(--dh-shadow-2)}.search-panel-button[data-v-f97055f4],.search-panel-open[data-v-f97055f4]{background:transparent;border:transparent;line-height:1;padding-top:.188rem;cursor:pointer}.search-panel-button.close[data-v-f97055f4] :hover,.search-panel-open.close[data-v-f97055f4] :hover{filter:var(--dh-filter-red)}.search-panel-button[data-v-f97055f4]{margin-left:-2.25rem}.form-input[data-v-f97055f4]{height:2.5rem;padding:0 .75rem;border-radius:8px}.form-input[data-v-f97055f4]{border:solid 1px var(--dh-text-disabled);color:solid 1px var(--dh-dark)}.form-input[data-v-f97055f4]::placeholder{color:var(--dh-text-secondary-lighter)}.form-input.active[data-v-f97055f4],.form-input[data-v-f97055f4]:focus{border-color:var(--dh-primary);outline:0}.stepper[data-v-cb51b2ba]{display:flex;justify-content:center}.stepper .step[data-v-cb51b2ba]{display:flex;justify-content:center;align-items:center;height:100%}.stepper .step .step-number[data-v-cb51b2ba]{background:var(--dh-stepper-primary-background);color:var(--dh-stepper-primary-color);border-radius:24px;width:24px;height:24px;display:flex;justify-content:center;align-items:center;user-select:none;cursor:unset}.stepper .step .step-number.active[data-v-cb51b2ba]{background:var(--dh-stepper-active-background);color:var(--dh-stepper-active-color)}.stepper .step hr.solid[data-v-cb51b2ba]{border:1px solid var(--dh-stepper-primary-color);background:var(--dh-stepper-primary-color);width:40px;margin:0 1rem;height:.5px}.stepper .step:last-child hr.solid[data-v-cb51b2ba]{display:none}.footer[data-v-cb51b2ba]{width:100%;display:flex;gap:1rem}.footer .btn[data-v-cb51b2ba]{height:40px;line-height:40px;width:100%}.footer .transparent[data-v-cb51b2ba]{background:transparent;color:var(--dh-text-secondary-lighter)}.footer .transparent[data-v-cb51b2ba]:hover{background:transparent;box-shadow:none}.tooltip[data-v-9f707e50]{text-align:left;width:auto;overflow:hidden;text-overflow:ellipsis;padding:.5rem;border-radius:.3rem;box-shadow:var(--dh-shadow-2);background:var(--dh-grey);color:var(--dh-white);line-height:25px;margin-left:16px}.tooltip p[data-v-9f707e50]{margin:0;font-size:12px;color:var(--dh-text-gray)}.tooltip .active-text[data-v-9f707e50]{margin:0;font-size:12px;color:var(--dh-white)!important}.tooltip .icon[data-v-9f707e50]{filter:var(--dh-filter-lighter);margin-bottom:-4px}.tooltip .accept-icon[data-v-9f707e50]{filter:var(--dh-filter-white)}.password-panel[data-v-9f707e50]{width:100%;display:flex}.password-panel-input[data-v-9f707e50]{width:83%;padding:0 2.5rem;height:2rem;box-shadow:var(--dh-shadow-2);margin-top:23px}.password-panel-button[data-v-9f707e50],.password-panel-open[data-v-9f707e50]{background:transparent;border:transparent;line-height:25px;padding-top:.188rem;cursor:pointer}.password-panel-button.close[data-v-9f707e50] :hover,.password-panel-open.close[data-v-9f707e50] :hover{filter:var(--dh-filter-red)}.password-panel-button[data-v-9f707e50]{margin-left:-2.375rem;height:95px}.form-input[data-v-9f707e50]{height:2.5rem;padding:0 .75rem;border-radius:8px}.form-input[data-v-9f707e50]{border:solid 1px var(--dh-text-disabled);color:solid 1px var(--dh-dark)}.form-input[data-v-9f707e50]::placeholder{color:var(--dh-text-secondary-lighter)}.form-input.active[data-v-9f707e50],.form-input[data-v-9f707e50]:focus{border-color:var(--dh-primary);outline:0}
1
+ :root{--dh-filter-blue: invert(42%) sepia(82%) saturate(6840%) hue-rotate(189deg) brightness(91%) contrast(88%);--dh-filter-red: invert(27%) sepia(53%) saturate(2191%) hue-rotate(340deg) brightness(92%) contrast(96%);--dh-filter-gray: invert(48%) sepia(0%) saturate(1294%) hue-rotate(102deg) brightness(95%) contrast(86%);--dh-filter-light: brightness(120%);--dh-filter-lighter: brightness(200%);--dh-filter-white: brightness(0) invert(1);--dh-shadow-1: 0px 10px 30px 0px #97979733;--dh-shadow-2: 0px 0px 12px rgba(136, 136, 136, .08);--dh-shadow-3: 0px 0px 30px 0px #97979733;--dh-primary: #0f71b4;--dh-primary-lighter: #5ea9e5;--dh-primary-light: #1e8bd6;--dh-white: #ffffff;--dh-dark: #231f20;--dh-text-disabled: #e0e0e0;--dh-text-secondary: #828282;--dh-text-secondary-lighter: #aaacb4;--dh-text-primary: #555555;--dh-bg-primary: #f9fbfd;--dh-grey: #7a8393;--dh-grey-dark: #4f4f4f;--dh-grey-light: #f2f2f2;--dh-grey-lighter: #f8f9fa;--dh-blue-light: #daebf6;--dh-blue-tint: #ecf4fa;--dh-danger: #c32f27;--dh-danger-light: #e58b86;--dh-danger-lighter: #fce4e2;--dh-success: #1d8245;--dh-success-light: #dcf5e0;--dh-success-lighter: #f1fbf3;--dh-warning: #cd7f0a;--dh-warning-light: #fff7eb;--dh-purple: #9b51e0;--dh-purple-lighter: #fff5f4;--dh-stepper-primary-background: var(--dh-grey-lighter);--dh-stepper-primary-color: var(--dh-text-disabled);--dh-stepper-active-background: var(--dh-blue-tint);--dh-stepper-active-color: var(--dh-primary);--dh-font-family: "Rubik-Regular", Arial, Helvetica, sans-serif}.btn-group{display:flex;background-color:var(--dh-grey-lighter);border-radius:.5rem}.btn-group .btn{display:flex;align-items:center;border-radius:0;padding:4px 12px;min-width:0}.btn-group .btn:first-of-type{border-radius:.5rem 0 0 .5rem}.btn-group .btn:last-of-type{border-radius:0 .5rem .5rem 0}.btn-group .active{background-color:var(--dh-blue-tint);color:var(--dh-primary);border-radius:.5rem}.btn-group .active .icon-color{filter:var(--dh-filter-blue);margin-right:10px}.btn{border:0;border-radius:.5rem;font-size:14px;height:2.5rem;line-height:2.5rem;cursor:pointer;min-width:unset;padding:0 1rem;white-space:nowrap;text-align:center}.btn-small{line-height:1.5rem;height:1.5rem;font-size:12px}.btn-mini{font-size:14px;padding:.7rem;min-width:0;height:0;line-height:0;border-radius:4px}.btn-large{line-height:3.5rem;height:3.5rem;font-size:16px;font-weight:600}.btn-primary{background-color:var(--dh-blue-tint);color:var(--dh-primary)}.btn-primary:active{background-color:var(--dh-blue-tint)}.btn-secondary{background-color:var(--dh-grey-lighter);color:var(--dh-text-primary)}.btn-secondary.btn-large{font-weight:400}.btn-secondary:active{background-color:var(--dh-text-disabled)}.btn-danger{background-color:var(--dh-danger-lighter);color:var(--dh-danger)}.btn-success{background-color:var(--dh-success-lighter);color:var(--dh-success)}.btn-disabled{background-color:var(--dh-grey-lighter);color:var(--dh-text-secondary-lighter)}.btn.focus{border:2px solid var(--dh-blue-tint)}.btn:hover:enabled:not(.no-shadow){box-shadow:var(--dh-shadow-1)}.btn:disabled{background-color:var(--dh-grey-lighter);color:var(--dh-text-secondary-lighter)}.card{background-color:var(--dh-white);border-radius:8px;box-shadow:var(--dh-shadow-2);border:1px solid var(--dh-grey-light)}.input-group{display:flex;flex-direction:column;margin-bottom:1rem}.input-group .input-label{color:var(--dh-text-primary);margin-bottom:.5rem}.form-input{height:2.5rem;padding:0 .75rem;border-radius:.25rem}.invalid-feedback{display:flex;flex-direction:column;width:100%;margin-top:.25rem;font-size:.875em;color:var(--dh-danger)}.form-input{border:solid 1px var(--dh-text-disabled);color:solid 1px var(--dh-dark)}.form-input::placeholder{color:var(--dh-text-secondary-lighter)}.form-input.active,.form-input:focus{border-color:var(--dh-primary);outline:0}.form-input.success{background:url(../assets/icons/success.png) no-repeat;background-position:right 10px center;background-size:1rem}.form-input.error{background:url(../assets/icons/error.png) no-repeat;background-position:right 10px center;background-size:1rem;border-color:var(--dh-danger)}::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}::-webkit-scrollbar{width:5px;height:5px;background-color:transparent}::-webkit-scrollbar-thumb{border-radius:10px;background-color:var(--dh-text-disabled)}table{width:100%;border-collapse:collapse}table thead{background-color:var(--dh-grey-lighter);height:2.5rem;text-transform:uppercase;position:sticky;top:0;z-index:1;font-size:16px}table thead tr th{border-right:1px solid var(--dh-text-disabled);text-align:justify}table thead .table-control{background-color:var(--dh-grey-lighter)}table tbody tr td{height:2.8125rem;color:var(--dh-text-primary)}table tbody tr.hover,table tbody tr:hover{background:var(--dh-grey-lighter)}table tbody .table-control{background-color:var(--dh-white)}table tbody .table-control.hover,table tbody .table-control:hover{background:var(--dh-grey-lighter)}th,td{border:none;border-top:1px solid var(--dh-text-disabled);padding:.5rem 2.5rem;white-space:nowrap;overflow:hidden}th .btn,td .btn{min-width:auto;padding:0 1rem}th:not(.no-ellipse),td:not(.no-ellipse){text-overflow:ellipsis}.content-end{justify-content:flex-end}.content-space-between{justify-content:space-between}.tag{border:0;border-radius:.25rem;font-size:14px;height:2.5rem;line-height:2.5rem;cursor:pointer;min-width:unset;padding:0 1rem;white-space:nowrap;text-align:center}.tag-small{line-height:1.5rem;height:1.5rem;font-size:12px}.tag-mini{font-size:10px;padding:.7rem;min-width:0;height:0;line-height:0;border-radius:4px}.tag-large{line-height:3.5rem;height:3.5rem;font-size:16px;font-weight:600}.tag-primary{background-color:var(--dh-blue-tint);color:var(--dh-primary)}.tag-primary:active{background-color:var(--dh-blue-tint)}.tag-secondary{background-color:var(--dh-grey-lighter);color:var(--dh-primary)}.tag-secondary.btn-large{font-weight:400}.tag-secondary:active{background-color:var(--dh-text-disabled)}.tag-light{background-color:var(--dh-white);color:var(--dh-text-secondary-lighter)}.tag-light.btn-large{font-weight:500}.tag-light:active{background-color:var(--dh-text-disabled)}.tag-danger{background-color:var(--dh-danger-lighter);color:var(--dh-danger)}.tag-success{background-color:var(--dh-success-light);color:var(--dh-success)}.tag-lighter{background-color:var(--dh-grey-lighter);color:var(--dh-grey)}.tag-dark{background-color:var(--dh-grey);color:var(--dh-grey-lighter)}.tag.focus{border:2px solid var(--dh-blue-tint)}.tag:hover:enabled{box-shadow:var(--dh-shadow-1)}.tag:disabled{background-color:var(--dh-grey-lighter);color:var(--dh-text-secondary-lighter)}@font-face{font-family:Rubik-Bold;src:url(./fonts/Rubik-Bold.woff2)}@font-face{font-family:Rubik-Medium;src:url(./fonts/Rubik-Medium.woff2)}@font-face{font-family:Rubik-Regular;src:url(./fonts/Rubik-Regular.woff2)}h1,h3,h4,h2{font-family:var(--dh-font-family)}h1{font-size:36px}h2{font-size:28px}h3{font-size:24px}h4{font-size:18px}.text-1,.text-2{color:var(--dh-text-secondary-lighter)}.text-1{font-size:14px}.text-2{font-size:16px}.text-3{font-size:16px;font-weight:700;color:var(--dh-text-primary) default}.text-4{font-weight:400;color:var(--dh-text-primary)}body{font-family:var(--dh-font-family)}.label{font-family:var(--dh-font-family);font-size:12px}.additional{font-family:var(--dh-font-family);font-size:10px}.medium{font-family:var(--dh-font-family)}a{text-decoration:none}button{font-family:var(--dh-font-family)}.title{font-weight:500;text-align:center;margin-bottom:12px;font-size:14px}.subtitle{text-align:center;font-size:16px}.dh-notification-container.toast .status{background-color:var(--dh-white)}.dh-notification-container .notification-enter{-webkit-animation:slide-in-right 1s cubic-bezier(.25,.46,.45,.94) both;animation:slide-in-right 1s cubic-bezier(.25,.46,.45,.94) both}.dh-notification-container .notification-up{-webkit-animation:slide-top .5s cubic-bezier(.25,.46,.45,.94) both;animation:slide-top .5s cubic-bezier(.25,.46,.45,.94) both}.dh-notification-container .status{width:100%;max-width:360px;padding:16px;border-radius:12px;box-shadow:var(--dh-shadow-3);background-color:var(--text-background-white);position:relative;box-sizing:border-box}.dh-notification-container .status-bottom-message{width:auto;display:inline-flex;align-items:center;padding:8px 12px;border-radius:8px;border:solid 1px var(--dh-text-disabled);background-color:var(--dh-grey)}.dh-notification-container .status-modal{max-width:512px;width:100%;padding:24px}.dh-notification-container .status-toast,.dh-notification-container .status-actionable{margin-left:auto}.dh-notification-container.modal{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.dh-notification-container.bottom-message{position:absolute;bottom:20px;left:50%;transform:translate(-50%);width:max-content}.dh-notification-container .content{display:flex;flex-direction:row;gap:0 12px;flex-wrap:wrap}.dh-notification-container .content-bottom-message{align-items:center;gap:0 8px}.dh-notification-container .content-modal .icons{width:30px;height:30px}.dh-notification-container .icons{width:22.6px;height:22.6px;object-fit:contain}.dh-notification-container .icons-info{filter:var(--dh-filter-blue)}.dh-notification-container .icons-success{filter:var(--dh-success)}.dh-notification-container .icons-warning{filter:var(--dh-warning)}.dh-notification-container .icons-danger{filter:var(--dh-danger)}.dh-notification-container .icons-success-bottom-message,.dh-notification-container .icons-info-bottom-message{filter:var(--dh-filter-white)}.dh-notification-container .ellipse{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center}.dh-notification-container .ellipse-info{background-color:var(--dh-blue-tint)}.dh-notification-container .ellipse-success{background-color:var(--dh-success-light)}.dh-notification-container .ellipse-warning{background-color:var(--dh-warning-light)}.dh-notification-container .ellipse-danger{background-color:var(--dh-purple-lighter)}.dh-notification-container .ellipse-bottom-message{width:unset;height:unset;padding:unset;background-color:transparent;position:relative;top:1px}.dh-notification-container .ellipse-modal{width:64px;height:64px}.dh-notification-container .additional-text{flex:1}.dh-notification-container .additional-text .descriptions{font-size:14px;color:var(--dh-text-secondary);line-height:1.5}.dh-notification-container .additional-text .title{font-size:16px;font-weight:500;color:var(--dh-grey-dark);margin-bottom:8px;text-align:left}.dh-notification-container .additional-text .title-bottom-message{font-size:14px;font-weight:400;line-height:1.57;color:var(--dh-white);margin-bottom:0}.dh-notification-container .additional-text .title-modal{font-size:18px}.dh-notification-container .close-notification{position:absolute;top:8px;right:8px;background:transparent;border:none;cursor:pointer}.dh-notification-container .close-notification .close-icon{width:25px;height:25px}.dh-notification-container .buttons{display:flex;flex-direction:row;gap:12px;margin-top:18px;width:100%;padding-left:71px}@media screen and (max-width: 320px){.dh-notification-container .buttons.actionable{padding-left:56px}}.dh-notification-container .buttons.modal{margin-top:30px;justify-content:flex-end}.dh-notification-container button.btn{min-width:100px}@keyframes slide-in-right{0%{-webkit-transform:translateX(1000px);transform:translate(1000px);opacity:0}to{-webkit-transform:translateX(0);transform:translate(0);opacity:1}}@keyframes slide-top{0%{-webkit-transform:translateY(100px);transform:translateY(100px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}.dp__options{display:flex;gap:12px;align-items:center}.dp__options span{order:1}.dp__options_switch{position:relative;display:inline-block;width:60px;height:34px}.dp__options_switch input{opacity:0;width:0;height:0}.dp__options_slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--dh-grey-light);-webkit-transition:.4s;transition:.4s;border-radius:34px}.dp__options_slider:before{position:absolute;content:"";height:26px;width:26px;left:4px;bottom:4px;background-color:var(--dh-text-secondary-lighter);-webkit-transition:.4s;transition:.4s;border-radius:50%}input:checked+.dp__options_slider{background-color:var(--dh-blue-light)}input:focus+.dp__options_slider{box-shadow:0 0 1px var(--dh-blue-light)}input:checked+.dp__options_slider:before{background-color:var(--dh-primary);-webkit-transform:translateX(26px);-ms-transform:translateX(26px);transform:translate(26px)}.modal-backdrop{position:fixed;top:0;bottom:0;left:0;right:0;background-color:#00000080;display:flex;justify-content:center;align-items:center}.modal-backdrop .modal{background:var(--dh-white);box-shadow:-5px 0 30px #97979733;display:flex;flex-direction:row;width:1000px;height:600px;flex-wrap:wrap;border-radius:12px;position:relative}.modal-backdrop .modal.right{flex-direction:row-reverse}.modal-backdrop .modal.right #modal-sidebar{border-radius:0 12px 12px 0}.modal-backdrop .modal .btn-close{position:absolute;top:0;right:0;border:none;font-size:20px;padding:10px;cursor:pointer;font-weight:700;color:var(--dh-text-secondary-lighter);background:transparent;z-index:10}.modal-backdrop .modal .btn-close .icon:hover{filter:var(--dh-filter-red)}.modal-backdrop .modal #modal-sidebar{overflow:hidden;width:20%;background:var(--dh-grey-lighter);padding:15px 12px;box-sizing:border-box;border-radius:12px 0 0 12px;color:var(--dh-text-secondary);display:flex;flex-direction:column}.modal-backdrop .modal #modal-sidebar button{margin-top:auto}.modal-backdrop .modal .right-section{width:80%;height:100%;padding:0 10px;box-sizing:border-box;display:flex;flex-direction:column}.modal-backdrop .modal .right-section.full{width:100%}.modal-backdrop .modal .modal-header,.modal-backdrop .modal .modal-footer{padding:15px 22px;display:flex}.modal-backdrop .modal .modal-header{position:sticky;justify-content:space-between;top:0;z-index:5;background:var(--dh-white);color:var(--dh-text-secondary)}.modal-backdrop .modal .modal-footer{color:var(--dh-text-secondary-lighter);position:sticky;bottom:0;background-color:var(--dh-white);z-index:5;display:flex;align-items:center;justify-content:space-between}.modal-backdrop .modal .modal-body{color:var(--dh-text-secondary);overflow-y:scroll;padding:10px 22px;flex:1}.modal-fade-enter,.modal-fade-leave-to{opacity:0}.modal-fade-enter-active,.modal-fade-leave-active{transition:opacity 1000s ease}*{scrollbar-width:auto;scrollbar-color:var(--dh-blue-tint) var(--dh-white)}*::-webkit-scrollbar{width:13px}*::-webkit-scrollbar-track{background:var(--dh-white)}*::-webkit-scrollbar-thumb{background-color:var(--dh-blue-tint);border-radius:10px;border:3px solid var(--dh-white)}.dh-range-container{max-width:320px;margin:auto}.input-group-section{display:flex;gap:20px;align-items:flex-end}.multi-range-slider.range-slider{box-shadow:none;border:none;padding-top:15px}.multi-range-slider.range-slider.true{pointer-events:none}.multi-range-slider.range-slider.true .bar-inner{background-color:var(--dh-grey-lighter)}.multi-range-slider.range-slider.true .thumb:before{border:4px solid var(--dh-grey-lighter)}.multi-range-slider.range-slider.true .thumb .caption{opacity:.2}.multi-range-slider.range-slider .bar-inner{background-color:var(--dh-primary);border:none;box-shadow:none;height:6px}.multi-range-slider.range-slider .bar-left,.multi-range-slider.range-slider .bar-right{box-shadow:none;background-color:var(--dh-grey-lighter)}.multi-range-slider.range-slider .thumb:before{width:14px;height:14px;box-shadow:none;border:none;background-color:var(--dh-white);border:4px solid var(--dh-primary);margin:-7px}.multi-range-slider.range-slider .thumb .caption{bottom:-24px;display:inline-flex}.multi-range-slider.range-slider .thumb .caption *{min-width:22px;height:22px;line-height:22px;color:#000;border:1px solid #ccc;background-color:transparent;box-shadow:none;border-radius:unset}.multi-range-slider.range-slider .thumb.thumb-left{right:9px}.multi-range-slider.range-slider .thumb.thumb-left .caption{left:9px}.multi-range-slider.range-slider .thumb.thumb-right{left:1px}.multi-range-slider.range-slider .thumb.thumb-right .caption{left:-3px}.multi-range-slider.range-slider .label{font-size:14px;line-height:22px;color:var(--dh-text-secondary-lighter)}.multi-range-slider.range-slider .label:first-child{margin-left:-12px}.multi-range-slider.range-slider .label:last-child{margin-right:-12px}.input-group-section{gap:20px;align-items:flex-end;width:100%;display:flex;flex-wrap:wrap;box-sizing:border-box;margin-top:30px}.input-group-section .input-group{flex-direction:row;align-items:center}.input-group-section .input-group label{margin-right:10px;margin-bottom:0;font-size:14px;line-height:22px;color:var(--dh-text-primary)}.input-group-section .input-group label.disable{color:var(--dh-grey-light)}.input-group-section .input-group input[type=number]{border-color:var(--dh-grey-light);border-radius:4px;text-align:center;font-size:14px;line-height:22px;color:var(--dh-dark);height:38px;font-family:Rubik,sans-serif;width:70px}.input-group-section .input-group input[type=number] ::placeholder{color:var(--dh-text-secondary-lighter)}.MultiRangeSliderContainer{margin:auto;width:800px}.advance_section{border-top:1px solid #f2f2f2;padding:15px 15px 15px 0;font-size:14px;line-height:22px;color:var(--dh-text-secondary-lighter)}.advance_section ul{list-style-type:none;padding:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}.advance_section ul li{font-size:12px;line-height:20px;color:var(--dh-text-secondary)}.advance_section ul li input[type=checkbox]{margin:0;vertical-align:text-top}.advance_section ul li input[type=radio]{vertical-align:text-top;margin:0 0 0 15px}.advance_section .toggle-icon{display:inline-flex;flex-wrap:wrap;align-items:center;cursor:pointer}.advance_section .toggle-icon:hover{color:var(--dh-text-primary)}.tooltip{position:relative;display:inline-block;left:50%;transform:translate(-50%,31px)}.tooltip[placement=top] .tooltiptext{bottom:125%}.tooltip[placement=top] .tooltiptext:after{top:100%;border-color:var(--dh-text-primary) transparent transparent transparent}.tooltip[placement=bottom] .tooltiptext{top:125%}.tooltip[placement=bottom] .tooltiptext:after{bottom:100%;border-color:transparent transparent var(--dh-text-primary) transparent}.tooltip[placement=right] .tooltiptext{top:0;left:110%;margin-left:initial}.tooltip[placement=right] .tooltiptext:after{top:50%;right:100%;margin-top:-5px;left:initial;border-color:transparent var(--dh-text-primary) transparent transparent}.tooltip[placement=left] .tooltiptext{top:0;right:110%;left:initial;margin-left:initial}.tooltip[placement=left] .tooltiptext:after{top:50%;left:100%;margin-top:-5px;margin-left:0;border-color:transparent transparent transparent var(--dh-text-primary)}.tooltip .tooltiptext{visibility:hidden;width:200px;box-shadow:var(--dh-shadow-2);background-color:var(--dh-text-primary);color:var(--dh-white);text-align:center;border-radius:5px;padding:8px;position:absolute;z-index:1;left:50%;margin-left:-108px;font-size:12px;opacity:0;transition:opacity .3s}@media screen and (max-width: 420px){.tooltip .tooltiptext{width:100px;margin-left:-58px}}.tooltip .tooltiptext:after{content:"";position:absolute;left:50%;margin-left:-5px;border-width:5px;border-style:solid;bottom:100%;border-color:transparent transparent var(--dh-text-primary) transparent}.tooltip[trigger=hover]:hover .tooltiptext{animation:tooltips-ani 1s ease-out forwards;visibility:visible}.tooltip[trigger=focus]:focus-within .tooltiptext{animation:tooltips-ani 1s ease-out forwards;visibility:visible}.tooltip[trigger=click] .tooltiptext.true{animation:tooltips-ani 1s ease-out forwards;visibility:visible}@keyframes tooltips-ani{to{opacity:1}}.dh-advanced-filter-container{max-width:320px}.dh-advanced-filter-container .advance_section{padding:15px 15px 15px 0;font-size:14px;line-height:22px;color:var(--dh-text-secondary-lighter)}.dh-advanced-filter-container .advance_section ul{list-style-type:none;padding:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}.dh-advanced-filter-container .advance_section ul li{font-size:12px;line-height:20px;color:var(--dh-text-secondary)}.dh-advanced-filter-container .advance_section ul li input[type=checkbox]{margin:0;vertical-align:text-top}.dh-advanced-filter-container .advance_section ul li input[type=radio]{vertical-align:text-top;margin:0 0 0 15px}.dh-advanced-filter-container .advance_section .toggle-icon{display:inline-flex;flex-wrap:wrap;align-items:center;cursor:pointer}.dh-advanced-filter-container .advance_section .toggle-icon:hover{color:var(--dh-text-primary)}.active[data-v-201309a0],.active-hover[data-v-201309a0]:hover{filter:var(--dh-filter-blue)}.multi-range-slider *{box-sizing:border-box;padding:0;margin:0}.multi-range-slider{display:flex;position:relative;border:solid 1px gray;border-radius:10px;padding:20px 10px;box-shadow:1px 1px 4px #000;flex-direction:column;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.multi-range-slider .bar{display:flex}.multi-range-slider .bar-left{width:25%;background-color:#f0f0f0;border-radius:10px 0 0 10px;box-shadow:inset 0 0 5px #000;padding:4px 0}.multi-range-slider .bar-right{width:25%;background-color:#f0f0f0;border-radius:0 10px 10px 0;box-shadow:inset 0 0 5px #000}.multi-range-slider .bar-inner{background-color:#0f0;display:flex;flex-grow:1;flex-shrink:1;position:relative;border:solid 1px black;justify-content:space-between;box-shadow:inset 0 0 5px #000}.multi-range-slider .bar-inner-left,.multi-range-slider .bar-inner-right{width:50%}.multi-range-slider .thumb{background-color:red;position:relative;z-index:1;cursor:pointer}.multi-range-slider .thumb:before{content:"";background-color:#fff;position:absolute;width:20px;height:20px;border:solid 1px black;box-shadow:0 0 3px #000,inset 0 0 5px gray;border-radius:50%;z-index:1;margin:-8px;cursor:pointer}.multi-range-slider .input-type-range:focus+.thumb:after{content:"";position:absolute;top:-4px;left:-4px;width:11px;height:11px;z-index:2;border-radius:50%;border:dotted 1px black;box-shadow:0 0 5px #fff,inset 0 0 10px #000}.multi-range-slider .caption{position:absolute;bottom:35px;width:2px;height:2px;left:1px;display:flex;justify-content:center;align-items:center;overflow:visible;display:none}.multi-range-slider .thumb .caption *{position:absolute;min-width:30px;height:30px;font-size:75%;text-align:center;line-height:30px;background-color:#00f;border-radius:15px;color:#fff;box-shadow:0 0 5px #000;padding:0 5px;white-space:nowrap}.multi-range-slider .thumb:active .caption{display:flex}.multi-range-slider .input-type-range:focus+.thumb .caption{display:flex}.multi-range-slider .input-type-range{position:absolute;top:0px;left:0px;width:100%;opacity:0;pointer-events:none}.multi-range-slider .ruler{margin:10px 0 -5px;display:flex;overflow:hidden}.multi-range-slider .ruler .ruler-rule{border-left:solid 1px;border-bottom:solid 1px;display:flex;flex-grow:1;flex-shrink:1;padding:5px 0}.multi-range-slider .ruler .ruler-rule:last-child{border-right:solid 1px}.multi-range-slider .sub-ruler{margin:-2px 0 -5px;display:flex}.multi-range-slider .sub-ruler .ruler-sub-rule{border-left:solid 1px;border-bottom:solid 1px;display:flex;flex-grow:1;flex-shrink:1;padding:3px 0}.multi-range-slider .sub-ruler .ruler-sub-rule:last-child{border-right:solid 1px}.multi-range-slider .labels{display:flex;justify-content:space-between;padding:0;margin-top:10px;margin-bottom:-20px}.multi-range-slider .label{font-size:80%;display:flex;width:1px;justify-content:center}.multi-range-slider .label:first-child{justify-content:start}.multi-range-slider .label:last-child{justify-content:end}.multi-range-slider.zero-ranage-margin .thumb-left{right:12px}.multi-range-slider.zero-ranage-margin .thumb-right{left:8px}.multi-range-slider-bar-only *{box-sizing:border-box;padding:0;margin:0}.multi-range-slider-bar-only{display:flex;position:relative;border:none;border-radius:0;padding:10px;box-shadow:none;flex-direction:column;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.multi-range-slider-bar-only .bar{display:flex}.multi-range-slider-bar-only .bar-left{width:25%;background-color:#f0f0f0;border-radius:10px 0 0 10px;box-shadow:inset 0 0 5px #000;padding:4px 0}.multi-range-slider-bar-only .bar-right{width:25%;background-color:#f0f0f0;border-radius:0 10px 10px 0;box-shadow:inset 0 0 5px #000}.multi-range-slider-bar-only .bar-inner{background-color:#00f;display:flex;flex-grow:1;flex-shrink:1;position:relative;border:solid 1px black;justify-content:space-between;box-shadow:inset 0 0 5px #000}.multi-range-slider-bar-only .bar-inner-left,.multi-range-slider-bar-only .bar-inner-right{width:50%}.multi-range-slider-bar-only .thumb{background-color:red;position:relative;z-index:1;cursor:pointer}.multi-range-slider-bar-only .thumb:before{content:"";background-color:#fff;position:absolute;width:20px;height:20px;border:solid 1px black;box-shadow:0 0 3px #000,inset 0 0 5px gray;border-radius:50%;z-index:1;margin:-8px;cursor:pointer}.multi-range-slider-bar-only .input-type-range:focus+.thumb:after{content:"";position:absolute;top:-4px;left:-4px;width:11px;height:11px;z-index:2;border-radius:50%;border:dotted 1px black;box-shadow:0 0 5px #fff,inset 0 0 10px #000}.multi-range-slider-bar-only .caption{position:absolute;bottom:35px;width:2px;height:2px;left:1px;display:flex;justify-content:center;align-items:center;overflow:visible;display:none}.multi-range-slider-bar-only .thumb .caption *{position:absolute;min-width:30px;height:30px;font-size:75%;text-align:center;line-height:30px;background-color:#00f;border-radius:15px;color:#fff;box-shadow:0 0 5px #000;padding:0 5px;white-space:nowrap}.multi-range-slider-bar-only .thumb:active .caption{display:flex}.multi-range-slider-bar-only .input-type-range:focus+.thumb .caption{display:flex}.multi-range-slider-bar-only .input-type-range{position:absolute;top:0px;left:0px;width:100%;opacity:0;pointer-events:none}.multi-range-slider-bar-only .ruler{margin:10px 0 -5px;display:flex;display:none;overflow:hidden}.multi-range-slider-bar-only .ruler .ruler-rule{border-left:solid 1px;border-bottom:solid 1px;display:flex;flex-grow:1;flex-shrink:1;padding:5px 0;display:none}.multi-range-slider-bar-only .ruler .ruler-rule:last-child{border-right:solid 1px}.multi-range-slider-bar-only .sub-ruler{margin:-2px 0 -5px;display:flex;display:none}.multi-range-slider-bar-only .sub-ruler .ruler-sub-rule{border-left:solid 1px;border-bottom:solid 1px;display:flex;flex-grow:1;flex-shrink:1;padding:3px 0}.multi-range-slider-bar-only .sub-ruler .ruler-sub-rule:last-child{border-right:solid 1px}.multi-range-slider-bar-only .labels{display:flex;justify-content:space-between;padding:0;margin-top:10px;margin-bottom:-20px;display:none}.multi-range-slider-bar-only .label{font-size:80%;display:flex;width:1px;justify-content:center}.multi-range-slider-bar-only .label:first-child{justify-content:start}.multi-range-slider-bar-only .label:last-child{justify-content:end}.multi-range-slider-bar-only.zero-ranage-margin .thumb-left{right:12px}.multi-range-slider-bar-only.zero-ranage-margin .thumb-right{left:8px}.search-panel[data-v-f97055f4]{width:100%;display:flex}.search-panel-input[data-v-f97055f4]{width:100%;padding:0 2.5rem;height:2rem;box-shadow:var(--dh-shadow-2)}.search-panel-button[data-v-f97055f4],.search-panel-open[data-v-f97055f4]{background:transparent;border:transparent;line-height:1;padding-top:.188rem;cursor:pointer}.search-panel-button.close[data-v-f97055f4] :hover,.search-panel-open.close[data-v-f97055f4] :hover{filter:var(--dh-filter-red)}.search-panel-button[data-v-f97055f4]{margin-left:-2.25rem}.form-input[data-v-f97055f4]{height:2.5rem;padding:0 .75rem;border-radius:8px}.form-input[data-v-f97055f4]{border:solid 1px var(--dh-text-disabled);color:solid 1px var(--dh-dark)}.form-input[data-v-f97055f4]::placeholder{color:var(--dh-text-secondary-lighter)}.form-input.active[data-v-f97055f4],.form-input[data-v-f97055f4]:focus{border-color:var(--dh-primary);outline:0}.stepper[data-v-cb51b2ba]{display:flex;justify-content:center}.stepper .step[data-v-cb51b2ba]{display:flex;justify-content:center;align-items:center;height:100%}.stepper .step .step-number[data-v-cb51b2ba]{background:var(--dh-stepper-primary-background);color:var(--dh-stepper-primary-color);border-radius:24px;width:24px;height:24px;display:flex;justify-content:center;align-items:center;user-select:none;cursor:unset}.stepper .step .step-number.active[data-v-cb51b2ba]{background:var(--dh-stepper-active-background);color:var(--dh-stepper-active-color)}.stepper .step hr.solid[data-v-cb51b2ba]{border:1px solid var(--dh-stepper-primary-color);background:var(--dh-stepper-primary-color);width:40px;margin:0 1rem;height:.5px}.stepper .step:last-child hr.solid[data-v-cb51b2ba]{display:none}.footer[data-v-cb51b2ba]{width:100%;display:flex;gap:1rem}.footer .btn[data-v-cb51b2ba]{height:40px;line-height:40px;width:100%}.footer .transparent[data-v-cb51b2ba]{background:transparent;color:var(--dh-text-secondary-lighter)}.footer .transparent[data-v-cb51b2ba]:hover{background:transparent;box-shadow:none}.password-tooltip[data-v-e2840bb4]{text-align:left;width:auto;overflow:hidden;text-overflow:ellipsis;padding:.5rem;border-radius:.3rem;box-shadow:var(--dh-shadow-2);background:var(--dh-grey);color:var(--dh-white);line-height:25px;margin-left:16px}.password-tooltip p[data-v-e2840bb4]{margin:0;font-size:12px;color:var(--dh-text-gray)}.password-tooltip .active-text[data-v-e2840bb4]{margin:0;font-size:12px;color:var(--dh-white)!important}.password-tooltip .icon[data-v-e2840bb4]{filter:var(--dh-filter-lighter);margin-bottom:-4px}.password-tooltip .accept-icon[data-v-e2840bb4]{filter:var(--dh-filter-white)}.password-panel[data-v-e2840bb4]{width:100%;display:flex}.password-panel-input[data-v-e2840bb4]{width:83%;padding:0 2.5rem;height:2rem;box-shadow:var(--dh-shadow-2);margin-top:23px}.password-panel-button[data-v-e2840bb4],.password-panel-open[data-v-e2840bb4]{background:transparent;border:transparent;line-height:25px;padding-top:.188rem;cursor:pointer}.password-panel-button.close[data-v-e2840bb4] :hover,.password-panel-open.close[data-v-e2840bb4] :hover{filter:var(--dh-filter-red)}.password-panel-button[data-v-e2840bb4]{margin-left:-2.375rem;height:95px}.form-input[data-v-e2840bb4]{height:2.5rem;padding:0 .75rem;border-radius:8px}.form-input[data-v-e2840bb4]{border:solid 1px var(--dh-text-disabled);color:solid 1px var(--dh-dark)}.form-input[data-v-e2840bb4]::placeholder{color:var(--dh-text-secondary-lighter)}.form-input.active[data-v-e2840bb4],.form-input[data-v-e2840bb4]:focus{border-color:var(--dh-primary);outline:0}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deskhero/dh_ui",
3
- "version": "1.17.0",
3
+ "version": "1.17.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],