@deskhero/dh_ui 1.36.2 → 1.36.3

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
@@ -24261,19 +24261,22 @@ const _sfc_main$b = {
24261
24261
  },
24262
24262
  modelValue: {
24263
24263
  type: FileList,
24264
- required: true
24264
+ required: false,
24265
+ default: void 0
24265
24266
  },
24266
24267
  inline: {
24267
24268
  type: Boolean,
24269
+ required: false,
24268
24270
  default: false
24269
24271
  },
24270
- errorOccured: {
24272
+ errorOccurred: {
24271
24273
  type: Array,
24272
24274
  required: true
24273
24275
  },
24274
24276
  errorMessage: {
24275
24277
  type: String,
24276
- default: "an error occured while uploading"
24278
+ required: false,
24279
+ default: "an error occurred while uploading"
24277
24280
  },
24278
24281
  fileSaved: {
24279
24282
  type: Boolean,
@@ -24285,22 +24288,27 @@ const _sfc_main$b = {
24285
24288
  },
24286
24289
  virusCheckText: {
24287
24290
  type: String,
24291
+ required: false,
24288
24292
  default: "Antivirus check ..."
24289
24293
  },
24290
24294
  virusCheckFailedText: {
24291
24295
  type: String,
24296
+ required: false,
24292
24297
  default: "Antivirus check failed"
24293
24298
  },
24294
24299
  virusDetectedText: {
24295
24300
  type: String,
24301
+ required: false,
24296
24302
  default: "Virus detected"
24297
24303
  },
24298
24304
  deleteConfirmationText: {
24299
24305
  type: String,
24306
+ required: false,
24300
24307
  default: "Are you sure you want to delete it permanently? this action will be irreversible"
24301
24308
  },
24302
24309
  zIndex: {
24303
24310
  type: Number,
24311
+ required: false,
24304
24312
  default: 99
24305
24313
  }
24306
24314
  },
@@ -24418,11 +24426,11 @@ const _sfc_main$b = {
24418
24426
  class: normalizeClass(["file__upload_list", __props.inline ? "" : "file__upload_list_box"])
24419
24427
  }, [
24420
24428
  createVNode(DhIcon, {
24421
- class: normalizeClass(__props.errorOccured[id] ? "file__upload_list_icon" : ""),
24429
+ class: normalizeClass(__props.errorOccurred[id] ? "file__upload_list_icon" : ""),
24422
24430
  "icon-name": `file-` + iconName(file.name),
24423
24431
  size: 40
24424
24432
  }, null, 8, ["class", "icon-name"]),
24425
- props.uploadProgress[id] == 100 && __props.fileSaved && !__props.errorOccured[id] && __props.virusCheck[id] == "loading" ? (openBlock(), createBlock(DhIcon, {
24433
+ props.uploadProgress[id] == 100 && __props.fileSaved && !__props.errorOccurred[id] && __props.virusCheck[id] == "loading" ? (openBlock(), createBlock(DhIcon, {
24426
24434
  key: 0,
24427
24435
  class: "file__upload_list_icon_sub file__upload_list_icon_sub--loading",
24428
24436
  "icon-name": "states",
@@ -24443,7 +24451,7 @@ const _sfc_main$b = {
24443
24451
  size: 20,
24444
24452
  style: normalizeStyle({ "z-index": props.zIndex })
24445
24453
  }, null, 8, ["style"])) : createCommentVNode("", true),
24446
- __props.fileSaved && __props.errorOccured[id] ? (openBlock(), createBlock(DhIcon, {
24454
+ __props.fileSaved && __props.errorOccurred[id] ? (openBlock(), createBlock(DhIcon, {
24447
24455
  key: 3,
24448
24456
  class: "file__upload_list_icon_sub",
24449
24457
  "icon-name": "error",
@@ -24456,7 +24464,7 @@ const _sfc_main$b = {
24456
24464
  createElementVNode("span", {
24457
24465
  title: file.name
24458
24466
  }, toDisplayString(getName(file.name)) + toDisplayString(getExtension(file.name)), 9, _hoisted_5$3),
24459
- props.uploadProgress[id] == 100 && __props.fileSaved && !__props.errorOccured[id] && __props.virusCheck[id] == "loading" ? (openBlock(), createElementBlock("span", _hoisted_6$3, [
24467
+ props.uploadProgress[id] == 100 && __props.fileSaved && !__props.errorOccurred[id] && __props.virusCheck[id] == "loading" ? (openBlock(), createElementBlock("span", _hoisted_6$3, [
24460
24468
  createTextVNode(toDisplayString(__props.virusCheckText) + " ", 1),
24461
24469
  createVNode(DhIcon, {
24462
24470
  class: "file__upload_list_icon_sub--loading",
@@ -24467,8 +24475,8 @@ const _sfc_main$b = {
24467
24475
  props.uploadProgress[id] == 100 && __props.fileSaved && __props.virusCheck[id] == "failed" ? (openBlock(), createElementBlock("span", _hoisted_7$2, toDisplayString(__props.virusCheckFailedText), 1)) : createCommentVNode("", true),
24468
24476
  props.uploadProgress[id] == 100 && __props.fileSaved && __props.virusCheck[id] == "detected" ? (openBlock(), createElementBlock("span", _hoisted_8$1, toDisplayString(__props.virusDetectedText), 1)) : createCommentVNode("", true),
24469
24477
  _hoisted_9$1,
24470
- __props.fileSaved && !__props.errorOccured[id] || !__props.errorOccured[id] && __props.virusCheck[id] ? (openBlock(), createElementBlock("span", _hoisted_10$1, toDisplayString(formatBytes(file.size)), 1)) : createCommentVNode("", true),
24471
- __props.fileSaved && __props.errorOccured[id] ? (openBlock(), createElementBlock("span", _hoisted_11$1, toDisplayString(__props.errorMessage), 1)) : createCommentVNode("", true)
24478
+ __props.fileSaved && !__props.errorOccurred[id] || !__props.errorOccurred[id] && __props.virusCheck[id] ? (openBlock(), createElementBlock("span", _hoisted_10$1, toDisplayString(formatBytes(file.size)), 1)) : createCommentVNode("", true),
24479
+ __props.fileSaved && __props.errorOccurred[id] ? (openBlock(), createElementBlock("span", _hoisted_11$1, toDisplayString(__props.errorMessage), 1)) : createCommentVNode("", true)
24472
24480
  ]),
24473
24481
  !__props.fileSaved ? (openBlock(), createElementBlock("span", _hoisted_12$1, toDisplayString(props.uploadProgress[id]) + "%", 1)) : createCommentVNode("", true)
24474
24482
  ]),
@@ -24479,7 +24487,7 @@ const _sfc_main$b = {
24479
24487
  value: props.uploadProgress[id]
24480
24488
  }, toDisplayString(props.uploadProgress[id]) + "% ", 9, _hoisted_13$1)) : createCommentVNode("", true)
24481
24489
  ]),
24482
- __props.fileSaved && !__props.virusCheck[id] && !__props.errorOccured[id] ? (openBlock(), createElementBlock("a", {
24490
+ __props.fileSaved && !__props.virusCheck[id] && !__props.errorOccurred[id] ? (openBlock(), createElementBlock("a", {
24483
24491
  key: 4,
24484
24492
  class: "file__upload_list_download",
24485
24493
  download: "",
@@ -24491,7 +24499,7 @@ const _sfc_main$b = {
24491
24499
  size: 24
24492
24500
  })
24493
24501
  ], 8, _hoisted_14$1)) : createCommentVNode("", true),
24494
- __props.fileSaved && __props.errorOccured[id] ? (openBlock(), createElementBlock("a", {
24502
+ __props.fileSaved && __props.errorOccurred[id] ? (openBlock(), createElementBlock("a", {
24495
24503
  key: 5,
24496
24504
  class: "file__upload_list_retry",
24497
24505
  onClick: _cache[3] || (_cache[3] = ($event) => reload($event))
package/dist/dh_ui.umd.js CHANGED
@@ -16,4 +16,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
16
16
  * Released under the MIT License
17
17
  */class Xz{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,i,a){const r=n.listeners[a],s=n.duration;r.forEach(l=>l({chart:e,initial:n.initial,numSteps:s,currentStep:Math.min(i-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=tc.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((i,a)=>{if(!i.running||!i.items.length)return;const r=i.items;let s=r.length-1,l=!1,M;for(;s>=0;--s)M=r[s],M._active?(M._total>i.duration&&(i.duration=M._total),M.tick(e),l=!0):(r[s]=r[r.length-1],r.pop());l&&(a.draw(),this._notify(a,i,e,"progress")),r.length||(i.running=!1,this._notify(a,i,e,"complete"),i.initial=!1),n+=r.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let i=n.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,i)),i}listen(e,n,i){this._getAnims(e).listeners[n].push(i)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,a)=>Math.max(i,a._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const i=n.items;let a=i.length-1;for(;a>=0;--a)i[a].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var bt=new Xz;const Yc="transparent",Kz={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const i=Ic(t||Yc),a=i.valid&&Ic(e||Yc);return a&&a.valid?a.mix(i,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class qz{constructor(e,n,i,a){const r=n[i];a=qa([e.to,a,r,e.from]);const s=qa([e.from,r,a]);this._active=!0,this._fn=e.fn||Kz[e.type||typeof s],this._easing=Rn[e.easing]||Rn.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=i,this._from=s,this._to=a,this._promises=void 0}active(){return this._active}update(e,n,i){if(this._active){this._notify(!1);const a=this._target[this._prop],r=i-this._start,s=this._duration-r;this._start=i,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=qa([e.to,n,a,e.from]),this._from=qa([e.from,a,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,i=this._duration,a=this._prop,r=this._from,s=this._loop,l=this._to;let M;if(this._active=r!==l&&(s||n<i),!this._active){this._target[a]=l,this._notify(!0);return}if(n<0){this._target[a]=r;return}M=n/i%2,M=s&&M>1?2-M:M,M=this._easing(Math.min(1,Math.max(0,M))),this._target[a]=this._fn(r,l,M)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,i)=>{e.push({res:n,rej:i})})}_notify(e){const n=e?"res":"rej",i=this._promises||[];for(let a=0;a<i.length;a++)i[a][n]()}}const e0=["x","y","borderWidth","radius","tension"],t0=["color","borderColor","backgroundColor"];oe.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 n0=Object.keys(oe.animation);oe.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),oe.set("animations",{colors:{type:"color",properties:t0},numbers:{type:"number",properties:e0}}),oe.describe("animations",{_fallback:"animation"}),oe.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:t=>t|0}}}});class Uc{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!le(e))return;const n=this._properties;Object.getOwnPropertyNames(e).forEach(i=>{const a=e[i];if(!le(a))return;const r={};for(const s of n0)r[s]=a[s];(Te(a.properties)&&a.properties||[i]).forEach(s=>{(s===i||!n.has(s))&&n.set(s,r)})})}_animateOptions(e,n){const i=n.options,a=a0(e,i);if(!a)return[];const r=this._createAnimations(a,i);return i.$shared&&i0(e.options.$animations,i).then(()=>{e.options=i},()=>{}),r}_createAnimations(e,n){const i=this._properties,a=[],r=e.$animations||(e.$animations={}),s=Object.keys(n),l=Date.now();let M;for(M=s.length-1;M>=0;--M){const u=s[M];if(u.charAt(0)==="$")continue;if(u==="options"){a.push(...this._animateOptions(e,n));continue}const c=n[u];let g=r[u];const d=i.get(u);if(g)if(d&&g.active()){g.update(d,c,l);continue}else g.cancel();if(!d||!d.duration){e[u]=c;continue}r[u]=g=new qz(d,e,u,c),a.push(g)}return a}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const i=this._createAnimations(e,n);if(i.length)return bt.add(this._chart,i),!0}}function i0(t,e){const n=[],i=Object.keys(e);for(let a=0;a<i.length;a++){const r=t[i[a]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}function a0(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function Pc(t,e){const n=t&&t.options||{},i=n.reverse,a=n.min===void 0?e:0,r=n.max===void 0?e:0;return{start:i?r:a,end:i?a:r}}function r0(t,e,n){if(n===!1)return!1;const i=Pc(t,n),a=Pc(e,n);return{top:a.end,right:i.end,bottom:a.start,left:i.start}}function o0(t){let e,n,i,a;return le(t)?(e=t.top,n=t.right,i=t.bottom,a=t.left):e=n=i=a=t,{top:e,right:n,bottom:i,left:a,disabled:t===!1}}function Rc(t,e){const n=[],i=t._getSortedDatasetMetas(e);let a,r;for(a=0,r=i.length;a<r;++a)n.push(i[a].index);return n}function Bc(t,e,n,i={}){const a=t.keys,r=i.mode==="single";let s,l,M,u;if(e!==null){for(s=0,l=a.length;s<l;++s){if(M=+a[s],M===n){if(i.all)continue;break}u=t.values[M],Re(u)&&(r||e===0||ht(e)===ht(u))&&(e+=u)}return e}}function s0(t){const e=Object.keys(t),n=new Array(e.length);let i,a,r;for(i=0,a=e.length;i<a;++i)r=e[i],n[i]={x:r,y:t[r]};return n}function Zc(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function l0(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function M0(t){const{min:e,max:n,minDefined:i,maxDefined:a}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:a?n:Number.POSITIVE_INFINITY}}function u0(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function Vc(t,e,n,i){for(const a of e.getMatchingVisibleMetas(i).reverse()){const r=t[a.index];if(n&&r>0||!n&&r<0)return a.index}return null}function Gc(t,e){const{chart:n,_cachedMeta:i}=t,a=n._stacks||(n._stacks={}),{iScale:r,vScale:s,index:l}=i,M=r.axis,u=s.axis,c=l0(r,s,i),g=e.length;let d;for(let y=0;y<g;++y){const j=e[y],{[M]:D,[u]:f}=j,N=j._stacks||(j._stacks={});d=N[u]=u0(a,c,D),d[l]=f,d._top=Vc(d,s,!0,i.type),d._bottom=Vc(d,s,!1,i.type)}}function $s(t,e){const n=t.scales;return Object.keys(n).filter(i=>n[i].axis===e).shift()}function c0(t,e){return Gt(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function g0(t,e,n){return Gt(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function $n(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(!!i){e=e||t._parsed;for(const a of e){const r=a._stacks;if(!r||r[i]===void 0||r[i][n]===void 0)return;delete r[i][n]}}}const Hs=t=>t==="reset"||t==="none",Wc=(t,e)=>e?t:Object.assign({},t),N0=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Rc(n,!0),values:null};class Nt{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,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 e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Zc(e.vScale,e),this.addElements()}updateIndex(e){this.index!==e&&$n(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,i=this.getDataset(),a=(g,d,y,j)=>g==="x"?d:g==="r"?j:y,r=n.xAxisID=Me(i.xAxisID,$s(e,"x")),s=n.yAxisID=Me(i.yAxisID,$s(e,"y")),l=n.rAxisID=Me(i.rAxisID,$s(e,"r")),M=n.indexAxis,u=n.iAxisID=a(M,r,s,l),c=n.vAxisID=a(M,s,r,l);n.xScale=this.getScaleForId(r),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&qu(this._data,this),e._stacked&&$n(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),i=this._data;if(le(n))this._data=s0(n);else if(i!==n){if(i){qu(i,this);const a=this._cachedMeta;$n(a),a._parsed=[]}n&&Object.isExtensible(n)&&SA(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,i=this.getDataset();let a=!1;this._dataCheck();const r=n._stacked;n._stacked=Zc(n.vScale,n),n.stack!==i.stack&&(a=!0,$n(n),n.stack=i.stack),this._resyncElements(e),(a||r!==n._stacked)&&Gc(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),i=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:i,_data:a}=this,{iScale:r,_stacked:s}=i,l=r.axis;let M=e===0&&n===a.length?!0:i._sorted,u=e>0&&i._parsed[e-1],c,g,d;if(this._parsing===!1)i._parsed=a,i._sorted=!0,d=a;else{Te(a[e])?d=this.parseArrayData(i,a,e,n):le(a[e])?d=this.parseObjectData(i,a,e,n):d=this.parsePrimitiveData(i,a,e,n);const y=()=>g[l]===null||u&&g[l]<u[l];for(c=0;c<n;++c)i._parsed[c+e]=g=d[c],M&&(y()&&(M=!1),u=g);i._sorted=M}s&&Gc(this,d)}parsePrimitiveData(e,n,i,a){const{iScale:r,vScale:s}=e,l=r.axis,M=s.axis,u=r.getLabels(),c=r===s,g=new Array(a);let d,y,j;for(d=0,y=a;d<y;++d)j=d+i,g[d]={[l]:c||r.parse(u[j],j),[M]:s.parse(n[j],j)};return g}parseArrayData(e,n,i,a){const{xScale:r,yScale:s}=e,l=new Array(a);let M,u,c,g;for(M=0,u=a;M<u;++M)c=M+i,g=n[c],l[M]={x:r.parse(g[0],c),y:s.parse(g[1],c)};return l}parseObjectData(e,n,i,a){const{xScale:r,yScale:s}=e,{xAxisKey:l="x",yAxisKey:M="y"}=this._parsing,u=new Array(a);let c,g,d,y;for(c=0,g=a;c<g;++c)d=c+i,y=n[d],u[c]={x:r.parse(Rt(y,l),d),y:s.parse(Rt(y,M),d)};return u}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,i){const a=this.chart,r=this._cachedMeta,s=n[e.axis],l={keys:Rc(a,!0),values:n._stacks[e.axis]};return Bc(l,s,r.index,{mode:i})}updateRangeFromParsed(e,n,i,a){const r=i[n.axis];let s=r===null?NaN:r;const l=a&&i._stacks[n.axis];a&&l&&(a.values=l,s=Bc(a,r,this._cachedMeta.index)),e.min=Math.min(e.min,s),e.max=Math.max(e.max,s)}getMinMax(e,n){const i=this._cachedMeta,a=i._parsed,r=i._sorted&&e===i.iScale,s=a.length,l=this._getOtherScale(e),M=N0(n,i,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:g}=M0(l);let d,y;function j(){y=a[d];const D=y[l.axis];return!Re(y[e.axis])||c>D||g<D}for(d=0;d<s&&!(!j()&&(this.updateRangeFromParsed(u,e,y,M),r));++d);if(r){for(d=s-1;d>=0;--d)if(!j()){this.updateRangeFromParsed(u,e,y,M);break}}return u}getAllParsedValues(e){const n=this._cachedMeta._parsed,i=[];let a,r,s;for(a=0,r=n.length;a<r;++a)s=n[a][e.axis],Re(s)&&i.push(s);return i}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,i=n.iScale,a=n.vScale,r=this.getParsed(e);return{label:i?""+i.getLabelForValue(r[i.axis]):"",value:a?""+a.getLabelForValue(r[a.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=o0(Me(this.options.clip,r0(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,i=this._cachedMeta,a=i.data||[],r=n.chartArea,s=[],l=this._drawStart||0,M=this._drawCount||a.length-l,u=this.options.drawActiveElementsOnTop;let c;for(i.dataset&&i.dataset.draw(e,r,l,M),c=l;c<l+M;++c){const g=a[c];g.hidden||(g.active&&u?s.push(g):g.draw(e,r))}for(c=0;c<s.length;++c)s[c].draw(e,r)}getStyle(e,n){const i=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(e||0,i)}getContext(e,n,i){const a=this.getDataset();let r;if(e>=0&&e<this._cachedMeta.data.length){const s=this._cachedMeta.data[e];r=s.$context||(s.$context=g0(this.getContext(),e,s)),r.parsed=this.getParsed(e),r.raw=a.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=c0(this.chart.getContext(),this.index)),r.dataset=a,r.index=r.datasetIndex=this.index;return r.active=!!n,r.mode=i,r}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",i){const a=n==="active",r=this._cachedDataOpts,s=e+"-"+n,l=r[s],M=this.enableOptionSharing&&it(i);if(l)return Wc(l,M);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,e),g=a?[`${e}Hover`,"hover",e,""]:[e,""],d=u.getOptionScopes(this.getDataset(),c),y=Object.keys(oe.elements[e]),j=()=>this.getContext(i,a),D=u.resolveNamedOptions(d,y,j,g);return D.$shared&&(D.$shared=M,r[s]=Object.freeze(Wc(D,M))),D}_resolveAnimations(e,n,i){const a=this.chart,r=this._cachedDataOpts,s=`animation-${n}`,l=r[s];if(l)return l;let M;if(a.options.animation!==!1){const c=this.chart.config,g=c.datasetAnimationScopeKeys(this._type,n),d=c.getOptionScopes(this.getDataset(),g);M=c.createResolver(d,this.getContext(e,i,n))}const u=new Uc(a,M&&M.animations);return M&&M._cacheable&&(r[s]=Object.freeze(u)),u}getSharedOptions(e){if(!!e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||Hs(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const i=this.resolveDataElementOptions(e,n),a=this._sharedOptions,r=this.getSharedOptions(i),s=this.includeOptions(n,r)||r!==a;return this.updateSharedOptions(r,n,i),{sharedOptions:r,includeOptions:s}}updateElement(e,n,i,a){Hs(a)?Object.assign(e,i):this._resolveAnimations(n,a).update(e,i)}updateSharedOptions(e,n,i){e&&!Hs(n)&&this._resolveAnimations(void 0,n).update(e,i)}_setStyle(e,n,i,a){e.active=a;const r=this.getStyle(n,a);this._resolveAnimations(n,i,a).update(e,{options:!a&&this.getSharedOptions(r)||r})}removeHoverStyle(e,n,i){this._setStyle(e,i,"active",!1)}setHoverStyle(e,n,i){this._setStyle(e,i,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,i=this._cachedMeta.data;for(const[l,M,u]of this._syncList)this[l](M,u);this._syncList=[];const a=i.length,r=n.length,s=Math.min(r,a);s&&this.parse(0,s),r>a?this._insertElements(a,r-a,e):r<a&&this._removeElements(r,a-r)}_insertElements(e,n,i=!0){const a=this._cachedMeta,r=a.data,s=e+n;let l;const M=u=>{for(u.length+=n,l=u.length-1;l>=s;l--)u[l]=u[l-n]};for(M(r),l=e;l<s;++l)r[l]=new this.dataElementType;this._parsing&&M(a._parsed),this.parse(e,n),i&&this.updateElements(r,e,n,"reset")}updateElements(e,n,i,a){}_removeElements(e,n){const i=this._cachedMeta;if(this._parsing){const a=i._parsed.splice(e,n);i._stacked&&$n(i,a)}i.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,i,a]=e;this[n](i,a)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const i=arguments.length-2;i&&this._sync(["_insertElements",e,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}Nt.defaults={},Nt.prototype.datasetElementType=null,Nt.prototype.dataElementType=null;function d0(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let a=0,r=n.length;a<r;a++)i=i.concat(n[a].controller.getAllParsedValues(t));t._cache.$bar=ec(i.sort((a,r)=>a-r))}return t._cache.$bar}function y0(t){const e=t.iScale,n=d0(e,t.type);let i=e._length,a,r,s,l;const M=()=>{s===32767||s===-32768||(it(l)&&(i=Math.min(i,Math.abs(s-l)||i)),l=s)};for(a=0,r=n.length;a<r;++a)s=e.getPixelForValue(n[a]),M();for(l=void 0,a=0,r=e.ticks.length;a<r;++a)s=e.getPixelForTick(a),M();return i}function j0(t,e,n,i){const a=n.barThickness;let r,s;return Ne(a)?(r=e.min*n.categoryPercentage,s=n.barPercentage):(r=a*i,s=1),{chunk:r/i,ratio:s,start:e.pixels[t]-r/2}}function I0(t,e,n,i){const a=e.pixels,r=a[t];let s=t>0?a[t-1]:null,l=t<a.length-1?a[t+1]:null;const M=n.categoryPercentage;s===null&&(s=r-(l===null?e.end-e.start:l-r)),l===null&&(l=r+r-s);const u=r-(r-Math.min(s,l))/2*M;return{chunk:Math.abs(l-s)/2*M/i,ratio:n.barPercentage,start:u}}function D0(t,e,n,i){const a=n.parse(t[0],i),r=n.parse(t[1],i),s=Math.min(a,r),l=Math.max(a,r);let M=s,u=l;Math.abs(s)>Math.abs(l)&&(M=l,u=s),e[n.axis]=u,e._custom={barStart:M,barEnd:u,start:a,end:r,min:s,max:l}}function $c(t,e,n,i){return Te(t)?D0(t,e,n,i):e[n.axis]=n.parse(t,i),e}function Hc(t,e,n,i){const a=t.iScale,r=t.vScale,s=a.getLabels(),l=a===r,M=[];let u,c,g,d;for(u=n,c=n+i;u<c;++u)d=e[u],g={},g[a.axis]=l||a.parse(s[u],u),M.push($c(d,g,r,u));return M}function Fs(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function f0(t,e,n){return t!==0?ht(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}function h0(t){let e,n,i,a,r;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(a="end",r="start"):(a="start",r="end"),{start:n,end:i,reverse:e,top:a,bottom:r}}function m0(t,e,n,i){let a=e.borderSkipped;const r={};if(!a){t.borderSkipped=r;return}if(a===!0){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:l,reverse:M,top:u,bottom:c}=h0(t);a==="middle"&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?a=u:(n._bottom||0)===i?a=c:(r[Fc(c,s,l,M)]=!0,a=u)),r[Fc(a,s,l,M)]=!0,t.borderSkipped=r}function Fc(t,e,n,i){return i?(t=A0(t,e,n),t=Jc(t,n,e)):t=Jc(t,e,n),t}function A0(t,e,n){return t===e?n:t===n?e:t}function Jc(t,e,n){return t==="start"?e:t==="end"?n:t}function z0(t,{inflateAmount:e},n){t.inflateAmount=e==="auto"?n===1?.33:0:e}class ir extends Nt{parsePrimitiveData(e,n,i,a){return Hc(e,n,i,a)}parseArrayData(e,n,i,a){return Hc(e,n,i,a)}parseObjectData(e,n,i,a){const{iScale:r,vScale:s}=e,{xAxisKey:l="x",yAxisKey:M="y"}=this._parsing,u=r.axis==="x"?l:M,c=s.axis==="x"?l:M,g=[];let d,y,j,D;for(d=i,y=i+a;d<y;++d)D=n[d],j={},j[r.axis]=r.parse(Rt(D,u),d),g.push($c(Rt(D,c),j,s,d));return g}updateRangeFromParsed(e,n,i,a){super.updateRangeFromParsed(e,n,i,a);const r=i._custom;r&&n===this._cachedMeta.vScale&&(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const n=this._cachedMeta,{iScale:i,vScale:a}=n,r=this.getParsed(e),s=r._custom,l=Fs(s)?"["+s.start+", "+s.end+"]":""+a.getLabelForValue(r[a.axis]);return{label:""+i.getLabelForValue(r[i.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize();const e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,e)}updateElements(e,n,i,a){const r=a==="reset",{index:s,_cachedMeta:{vScale:l}}=this,M=l.getBasePixel(),u=l.isHorizontal(),c=this._getRuler(),{sharedOptions:g,includeOptions:d}=this._getSharedOptions(n,a);for(let y=n;y<n+i;y++){const j=this.getParsed(y),D=r||Ne(j[l.axis])?{base:M,head:M}:this._calculateBarValuePixels(y),f=this._calculateBarIndexPixels(y,c),N=(j._stacks||{})[l.axis],I={horizontal:u,base:D.base,enableBorderRadius:!N||Fs(j._custom)||s===N._top||s===N._bottom,x:u?D.head:f.center,y:u?f.center:D.head,height:u?f.size:Math.abs(D.size),width:u?Math.abs(D.size):f.size};d&&(I.options=g||this.resolveDataElementOptions(y,e[y].active?"active":a));const A=I.options||e[y].options;m0(I,A,N,s),z0(I,A,c.ratio),this.updateElement(e[y],y,I,a)}}_getStacks(e,n){const{iScale:i}=this._cachedMeta,a=i.getMatchingVisibleMetas(this._type).filter(M=>M.controller.options.grouped),r=i.options.stacked,s=[],l=M=>{const u=M.controller.getParsed(n),c=u&&u[M.vScale.axis];if(Ne(c)||isNaN(c))return!0};for(const M of a)if(!(n!==void 0&&l(M))&&((r===!1||s.indexOf(M.stack)===-1||r===void 0&&M.stack===void 0)&&s.push(M.stack),M.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,i){const a=this._getStacks(e,i),r=n!==void 0?a.indexOf(n):-1;return r===-1?a.length-1:r}_getRuler(){const e=this.options,n=this._cachedMeta,i=n.iScale,a=[];let r,s;for(r=0,s=n.data.length;r<s;++r)a.push(i.getPixelForValue(this.getParsed(r)[i.axis],r));const l=e.barThickness;return{min:l||y0(n),pixels:a,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:e.grouped,ratio:l?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:n,_stacked:i},options:{base:a,minBarLength:r}}=this,s=a||0,l=this.getParsed(e),M=l._custom,u=Fs(M);let c=l[n.axis],g=0,d=i?this.applyStack(n,l,i):c,y,j;d!==c&&(g=d-c,d=c),u&&(c=M.barStart,d=M.barEnd-M.barStart,c!==0&&ht(c)!==ht(M.barEnd)&&(g=0),g+=c);const D=!Ne(a)&&!u?a:g;let f=n.getPixelForValue(D);if(this.chart.getDataVisibility(e)?y=n.getPixelForValue(g+d):y=f,j=y-f,Math.abs(j)<r){j=f0(j,n,s)*r,c===s&&(f-=j/2);const N=n.getPixelForDecimal(0),I=n.getPixelForDecimal(1),A=Math.min(N,I),p=Math.max(N,I);f=Math.max(Math.min(f,p),A),y=f+j}if(f===n.getPixelForValue(s)){const N=ht(j)*n.getLineWidthForValue(s)/2;f+=N,j-=N}return{size:j,base:f,head:y,center:y+j/2}}_calculateBarIndexPixels(e,n){const i=n.scale,a=this.options,r=a.skipNull,s=Me(a.maxBarThickness,1/0);let l,M;if(n.grouped){const u=r?this._getStackCount(e):n.stackCount,c=a.barThickness==="flex"?I0(e,n,a,u):j0(e,n,a,u),g=this._getStackIndex(this.index,this._cachedMeta.stack,r?e:void 0);l=c.start+c.chunk*g+c.chunk/2,M=Math.min(s,c.chunk*c.ratio)}else l=i.getPixelForValue(this.getParsed(e)[i.axis],e),M=Math.min(s,n.min*n.ratio);return{base:l-M/2,head:l+M/2,center:l,size:M}}draw(){const e=this._cachedMeta,n=e.vScale,i=e.data,a=i.length;let r=0;for(;r<a;++r)this.getParsed(r)[n.axis]!==null&&i[r].draw(this._ctx)}}ir.id="bar",ir.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},ir.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Js extends Nt{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,n,i,a){const r=super.parsePrimitiveData(e,n,i,a);for(let s=0;s<r.length;s++)r[s]._custom=this.resolveDataElementOptions(s+i).radius;return r}parseArrayData(e,n,i,a){const r=super.parseArrayData(e,n,i,a);for(let s=0;s<r.length;s++){const l=n[i+s];r[s]._custom=Me(l[2],this.resolveDataElementOptions(s+i).radius)}return r}parseObjectData(e,n,i,a){const r=super.parseObjectData(e,n,i,a);for(let s=0;s<r.length;s++){const l=n[i+s];r[s]._custom=Me(l&&l.r&&+l.r,this.resolveDataElementOptions(s+i).radius)}return r}getMaxOverflow(){const e=this._cachedMeta.data;let n=0;for(let i=e.length-1;i>=0;--i)n=Math.max(n,e[i].size(this.resolveDataElementOptions(i))/2);return n>0&&n}getLabelAndValue(e){const n=this._cachedMeta,{xScale:i,yScale:a}=n,r=this.getParsed(e),s=i.getLabelForValue(r.x),l=a.getLabelForValue(r.y),M=r._custom;return{label:n.label,value:"("+s+", "+l+(M?", "+M:"")+")"}}update(e){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,e)}updateElements(e,n,i,a){const r=a==="reset",{iScale:s,vScale:l}=this._cachedMeta,{sharedOptions:M,includeOptions:u}=this._getSharedOptions(n,a),c=s.axis,g=l.axis;for(let d=n;d<n+i;d++){const y=e[d],j=!r&&this.getParsed(d),D={},f=D[c]=r?s.getPixelForDecimal(.5):s.getPixelForValue(j[c]),N=D[g]=r?l.getBasePixel():l.getPixelForValue(j[g]);D.skip=isNaN(f)||isNaN(N),u&&(D.options=M||this.resolveDataElementOptions(d,y.active?"active":a),r&&(D.options.radius=0)),this.updateElement(y,d,D,a)}}resolveDataElementOptions(e,n){const i=this.getParsed(e);let a=super.resolveDataElementOptions(e,n);a.$shared&&(a=Object.assign({},a,{$shared:!1}));const r=a.radius;return n!=="active"&&(a.radius=0),a.radius+=Me(i&&i._custom,r),a}}Js.id="bubble",Js.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},Js.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title(){return""}}}}};function p0(t,e,n){let i=1,a=1,r=0,s=0;if(e<fe){const l=t,M=l+e,u=Math.cos(l),c=Math.sin(l),g=Math.cos(M),d=Math.sin(M),y=(A,p,m)=>Pn(A,l,M,!0)?1:Math.max(p,p*n,m,m*n),j=(A,p,m)=>Pn(A,l,M,!0)?-1:Math.min(p,p*n,m,m*n),D=y(0,u,g),f=y(be,c,d),N=j(Ee,u,g),I=j(Ee+be,c,d);i=(D-N)/2,a=(f-I)/2,r=-(D+N)/2,s=-(f+I)/2}return{ratioX:i,ratioY:a,offsetX:r,offsetY:s}}class Hn extends Nt{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const i=this.getDataset().data,a=this._cachedMeta;if(this._parsing===!1)a._parsed=i;else{let r=M=>+i[M];if(le(i[e])){const{key:M="value"}=this._parsing;r=u=>+Rt(i[u],M)}let s,l;for(s=e,l=e+n;s<l;++s)a._parsed[s]=r(s)}}_getRotation(){return ct(this.options.rotation-90)}_getCircumference(){return ct(this.options.circumference)}_getRotationExtents(){let e=fe,n=-fe;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)){const a=this.chart.getDatasetMeta(i).controller,r=a._getRotation(),s=a._getCircumference();e=Math.min(e,r),n=Math.max(n,r+s)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:i}=n,a=this._cachedMeta,r=a.data,s=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,l=Math.max((Math.min(i.width,i.height)-s)/2,0),M=Math.min(yA(this.options.cutout,l),1),u=this._getRingWeight(this.index),{circumference:c,rotation:g}=this._getRotationExtents(),{ratioX:d,ratioY:y,offsetX:j,offsetY:D}=p0(g,c,M),f=(i.width-s)/d,N=(i.height-s)/y,I=Math.max(Math.min(f,N)/2,0),A=Zu(this.options.radius,I),p=Math.max(A*M,0),m=(A-p)/this._getVisibleDatasetWeightTotal();this.offsetX=j*A,this.offsetY=D*A,a.total=this.calculateTotal(),this.outerRadius=A-m*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-m*u,0),this.updateElements(r,0,r.length,e)}_circumference(e,n){const i=this.options,a=this._cachedMeta,r=this._getCircumference();return n&&i.animation.animateRotate||!this.chart.getDataVisibility(e)||a._parsed[e]===null||a.data[e].hidden?0:this.calculateCircumference(a._parsed[e]*r/fe)}updateElements(e,n,i,a){const r=a==="reset",s=this.chart,l=s.chartArea,u=s.options.animation,c=(l.left+l.right)/2,g=(l.top+l.bottom)/2,d=r&&u.animateScale,y=d?0:this.innerRadius,j=d?0:this.outerRadius,{sharedOptions:D,includeOptions:f}=this._getSharedOptions(n,a);let N=this._getRotation(),I;for(I=0;I<n;++I)N+=this._circumference(I,r);for(I=n;I<n+i;++I){const A=this._circumference(I,r),p=e[I],m={x:c+this.offsetX,y:g+this.offsetY,startAngle:N,endAngle:N+A,circumference:A,outerRadius:j,innerRadius:y};f&&(m.options=D||this.resolveDataElementOptions(I,p.active?"active":a)),N+=A,this.updateElement(p,I,m,a)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let i=0,a;for(a=0;a<n.length;a++){const r=e._parsed[a];r!==null&&!isNaN(r)&&this.chart.getDataVisibility(a)&&!n[a].hidden&&(i+=Math.abs(r))}return i}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?fe*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart,a=i.data.labels||[],r=Wn(n._parsed[e],i.options.locale);return{label:a[e]||"",value:r}}getMaxBorderWidth(e){let n=0;const i=this.chart;let a,r,s,l,M;if(!e){for(a=0,r=i.data.datasets.length;a<r;++a)if(i.isDatasetVisible(a)){s=i.getDatasetMeta(a),e=s.data,l=s.controller;break}}if(!e)return 0;for(a=0,r=e.length;a<r;++a)M=l.resolveDataElementOptions(a),M.borderAlign!=="inner"&&(n=Math.max(n,M.borderWidth||0,M.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let i=0,a=e.length;i<a;++i){const r=this.resolveDataElementOptions(i);n=Math.max(n,r.offset||0,r.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let i=0;i<e;++i)this.chart.isDatasetVisible(i)&&(n+=this._getRingWeight(i));return n}_getRingWeight(e){return Math.max(Me(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Hn.id="doughnut",Hn.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"},Hn.descriptors={_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"},Hn.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((i,a)=>{const s=t.getDatasetMeta(0).controller.getStyle(a);return{text:i,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title(){return""},label(t){let e=t.label;const n=": "+t.formattedValue;return Te(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class Xs extends Nt{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:i,data:a=[],_dataset:r}=n,s=this.chart._animationsDisabled;let{start:l,count:M}=ac(n,a,s);this._drawStart=l,this._drawCount=M,rc(n)&&(l=0,M=a.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!r._decimated,i.points=a;const u=this.resolveDatasetElementOptions(e);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(i,void 0,{animated:!s,options:u},e),this.updateElements(a,l,M,e)}updateElements(e,n,i,a){const r=a==="reset",{iScale:s,vScale:l,_stacked:M,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:g}=this._getSharedOptions(n,a),d=s.axis,y=l.axis,{spanGaps:j,segment:D}=this.options,f=Dn(j)?j:Number.POSITIVE_INFINITY,N=this.chart._animationsDisabled||r||a==="none";let I=n>0&&this.getParsed(n-1);for(let A=n;A<n+i;++A){const p=e[A],m=this.getParsed(A),z=N?p:{},w=Ne(m[y]),_=z[d]=s.getPixelForValue(m[d],A),Y=z[y]=r||w?l.getBasePixel():l.getPixelForValue(M?this.applyStack(l,m,M):m[y],A);z.skip=isNaN(_)||isNaN(Y)||w,z.stop=A>0&&Math.abs(m[d]-I[d])>f,D&&(z.parsed=m,z.raw=u.data[A]),g&&(z.options=c||this.resolveDataElementOptions(A,p.active?"active":a)),N||this.updateElement(p,A,z,a),I=m}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,i=n.options&&n.options.borderWidth||0,a=e.data||[];if(!a.length)return i;const r=a[0].size(this.resolveDataElementOptions(0)),s=a[a.length-1].size(this.resolveDataElementOptions(a.length-1));return Math.max(i,r,s)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}Xs.id="line",Xs.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Xs.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Ks extends Nt{constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart,a=i.data.labels||[],r=Wn(n._parsed[e].r,i.options.locale);return{label:a[e]||"",value:r}}parseObjectData(e,n,i,a){return Oc.bind(this)(e,n,i,a)}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}getMinMax(){const e=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((i,a)=>{const r=this.getParsed(a).r;!isNaN(r)&&this.chart.getDataVisibility(a)&&(r<n.min&&(n.min=r),r>n.max&&(n.max=r))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,i=e.options,a=Math.min(n.right-n.left,n.bottom-n.top),r=Math.max(a/2,0),s=Math.max(i.cutoutPercentage?r/100*i.cutoutPercentage:1,0),l=(r-s)/e.getVisibleDatasetCount();this.outerRadius=r-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,n,i,a){const r=a==="reset",s=this.chart,M=s.options.animation,u=this._cachedMeta.rScale,c=u.xCenter,g=u.yCenter,d=u.getIndexAngle(0)-.5*Ee;let y=d,j;const D=360/this.countVisibleElements();for(j=0;j<n;++j)y+=this._computeAngle(j,a,D);for(j=n;j<n+i;j++){const f=e[j];let N=y,I=y+this._computeAngle(j,a,D),A=s.getDataVisibility(j)?u.getDistanceFromCenterForValue(this.getParsed(j).r):0;y=I,r&&(M.animateScale&&(A=0),M.animateRotate&&(N=I=d));const p={x:c,y:g,innerRadius:0,outerRadius:A,startAngle:N,endAngle:I,options:this.resolveDataElementOptions(j,f.active?"active":a)};this.updateElement(f,j,p,a)}}countVisibleElements(){const e=this._cachedMeta;let n=0;return e.data.forEach((i,a)=>{!isNaN(this.getParsed(a).r)&&this.chart.getDataVisibility(a)&&n++}),n}_computeAngle(e,n,i){return this.chart.getDataVisibility(e)?ct(this.resolveDataElementOptions(e,n).angle||i):0}}Ks.id="polarArea",Ks.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Ks.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((i,a)=>{const s=t.getDatasetMeta(0).controller.getStyle(a);return{text:i,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title(){return""},label(t){return t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Xc extends Hn{}Xc.id="pie",Xc.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class qs extends Nt{getLabelAndValue(e){const n=this._cachedMeta.vScale,i=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(i[n.axis])}}parseObjectData(e,n,i,a){return Oc.bind(this)(e,n,i,a)}update(e){const n=this._cachedMeta,i=n.dataset,a=n.data||[],r=n.iScale.getLabels();if(i.points=a,e!=="resize"){const s=this.resolveDatasetElementOptions(e);this.options.showLine||(s.borderWidth=0);const l={_loop:!0,_fullLoop:r.length===a.length,options:s};this.updateElement(i,void 0,l,e)}this.updateElements(a,0,a.length,e)}updateElements(e,n,i,a){const r=this._cachedMeta.rScale,s=a==="reset";for(let l=n;l<n+i;l++){const M=e[l],u=this.resolveDataElementOptions(l,M.active?"active":a),c=r.getPointPositionForValue(l,this.getParsed(l).r),g=s?r.xCenter:c.x,d=s?r.yCenter:c.y,y={x:g,y:d,angle:c.angle,skip:isNaN(g)||isNaN(d),options:u};this.updateElement(M,l,y,a)}}}qs.id="radar",qs.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},qs.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class Ct{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(e){const{x:n,y:i}=this.getProps(["x","y"],e);return{x:n,y:i}}hasValue(){return Dn(this.x)&&Dn(this.y)}getProps(e,n){const i=this.$animations;if(!n||!i)return this;const a={};return e.forEach(r=>{a[r]=i[r]&&i[r].active()?i[r]._to:this[r]}),a}}Ct.defaults={},Ct.defaultRoutes=void 0;const Kc={values(t){return Te(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const i=this.chart.options.locale;let a,r=t;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(a="scientific"),r=T0(t,n)}const s=at(Math.abs(r)),l=Math.max(Math.min(-1*Math.floor(s),20),0),M={notation:a,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(M,this.options.ticks.format),Wn(t,i,M)},logarithmic(t,e,n){if(t===0)return"0";const i=t/Math.pow(10,Math.floor(at(t)));return i===1||i===2||i===5?Kc.numeric.call(this,t,e,n):""}};function T0(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var ar={formatters:Kc};oe.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:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.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:ar.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),oe.route("scale.ticks","color","","color"),oe.route("scale.grid","color","","borderColor"),oe.route("scale.grid","borderColor","","borderColor"),oe.route("scale.title","color","","color"),oe.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"}),oe.describe("scales",{_fallback:"scale"}),oe.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"});function L0(t,e){const n=t.options.ticks,i=n.maxTicksLimit||x0(t),a=n.major.enabled?S0(e):[],r=a.length,s=a[0],l=a[r-1],M=[];if(r>i)return E0(e,M,a,r/i),M;const u=O0(a,e,i);if(r>0){let c,g;const d=r>1?Math.round((l-s)/(r-1)):null;for(rr(e,M,u,Ne(d)?0:s-d,s),c=0,g=r-1;c<g;c++)rr(e,M,u,a[c],a[c+1]);return rr(e,M,u,l,Ne(d)?e.length:l+d),M}return rr(e,M,u),M}function x0(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),a=t._maxLength/n;return Math.floor(Math.min(i,a))}function O0(t,e,n){const i=b0(t),a=e.length/n;if(!i)return Math.max(a,1);const r=zA(i);for(let s=0,l=r.length-1;s<l;s++){const M=r[s];if(M>a)return M}return Math.max(a,1)}function S0(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}function E0(t,e,n,i){let a=0,r=n[0],s;for(i=Math.ceil(i),s=0;s<t.length;s++)s===r&&(e.push(t[s]),a++,r=n[a*i])}function rr(t,e,n,i,a){const r=Me(i,0),s=Math.min(Me(a,t.length),t.length);let l=0,M,u,c;for(n=Math.ceil(n),a&&(M=a-i,n=M/Math.floor(M/n)),c=r;c<0;)l++,c=Math.round(r+l*n);for(u=Math.max(r,0);u<s;u++)u===c&&(e.push(t[u]),l++,c=Math.round(r+l*n))}function b0(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}const C0=t=>t==="left"?"right":t==="right"?"left":t,qc=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n;function eg(t,e){const n=[],i=t.length/e,a=t.length;let r=0;for(;r<a;r+=i)n.push(t[Math.floor(r)]);return n}function w0(t,e,n){const i=t.ticks.length,a=Math.min(e,i-1),r=t._startPixel,s=t._endPixel,l=1e-6;let M=t.getPixelForTick(a),u;if(!(n&&(i===1?u=Math.max(M-r,s-M):e===0?u=(t.getPixelForTick(1)-M)/2:u=(M-t.getPixelForTick(a-1))/2,M+=a<e?u:-u,M<r-l||M>s+l)))return M}function k0(t,e){je(t,n=>{const i=n.gc,a=i.length/2;let r;if(a>e){for(r=0;r<a;++r)delete n.data[i[r]];i.splice(0,a)}})}function Fn(t){return t.drawTicks?t.tickLength:0}function tg(t,e){if(!t.display)return 0;const n=et(t.font,e),i=ot(t.padding);return(Te(t.text)?t.text.length:1)*n.lineHeight+i.height}function _0(t,e){return Gt(t,{scale:e,type:"scale"})}function v0(t,e,n){return Gt(t,{tick:n,index:e,type:"tick"})}function Q0(t,e,n){let i=bA(t);return(n&&e!=="right"||!n&&e==="right")&&(i=C0(i)),i}function Y0(t,e,n,i){const{top:a,left:r,bottom:s,right:l,chart:M}=t,{chartArea:u,scales:c}=M;let g=0,d,y,j;const D=s-a,f=l-r;if(t.isHorizontal()){if(y=ic(i,r,l),le(n)){const N=Object.keys(n)[0],I=n[N];j=c[N].getPixelForValue(I)+D-e}else n==="center"?j=(u.bottom+u.top)/2+D-e:j=qc(t,n,e);d=l-r}else{if(le(n)){const N=Object.keys(n)[0],I=n[N];y=c[N].getPixelForValue(I)-f+e}else n==="center"?y=(u.left+u.right)/2-f+e:y=qc(t,n,e);j=ic(i,s,a),g=n==="left"?-be:be}return{titleX:y,titleY:j,maxWidth:d,rotation:g}}class ln extends Ct{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.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(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:i,_suggestedMax:a}=this;return e=nt(e,Number.POSITIVE_INFINITY),n=nt(n,Number.NEGATIVE_INFINITY),i=nt(i,Number.POSITIVE_INFINITY),a=nt(a,Number.NEGATIVE_INFINITY),{min:nt(e,i),max:nt(n,a),minDefined:Re(e),maxDefined:Re(n)}}getMinMax(e){let{min:n,max:i,minDefined:a,maxDefined:r}=this.getUserBounds(),s;if(a&&r)return{min:n,max:i};const l=this.getMatchingVisibleMetas();for(let M=0,u=l.length;M<u;++M)s=l[M].controller.getMinMax(this,e),a||(n=Math.min(n,s.min)),r||(i=Math.max(i,s.max));return n=r&&n>i?i:n,i=a&&n>i?n:i,{min:nt(n,nt(i,n)),max:nt(i,nt(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Se(this.options.beforeUpdate,[this])}update(e,n,i){const{beginAtZero:a,grace:r,ticks:s}=this.options,l=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=gz(this,r,a),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const M=l<this.ticks.length;this._convertTicksToLabels(M?eg(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=L0(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),M&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,n,i;this.isHorizontal()?(n=this.left,i=this.right):(n=this.top,i=this.bottom,e=!e),this._startPixel=n,this._endPixel=i,this._reversePixels=e,this._length=i-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Se(this.options.afterUpdate,[this])}beforeSetDimensions(){Se(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(){Se(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Se(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Se(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let i,a,r;for(i=0,a=e.length;i<a;i++)r=e[i],r.label=Se(n.callback,[r.value,i,e],this)}afterTickToLabelConversion(){Se(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Se(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,i=this.ticks.length,a=n.minRotation||0,r=n.maxRotation;let s=a,l,M,u;if(!this._isVisible()||!n.display||a>=r||i<=1||!this.isHorizontal()){this.labelRotation=a;return}const c=this._getLabelSizes(),g=c.widest.width,d=c.highest.height,y=Ve(this.chart.width-g,0,this.maxWidth);l=e.offset?this.maxWidth/i:y/(i-1),g+6>l&&(l=y/(i-(e.offset?.5:1)),M=this.maxHeight-Fn(e.grid)-n.padding-tg(e.title,this.chart.options.font),u=Math.sqrt(g*g+d*d),s=Os(Math.min(Math.asin(Ve((c.highest.height+6)/l,-1,1)),Math.asin(Ve(M/u,-1,1))-Math.asin(Ve(d/u,-1,1)))),s=Math.max(a,Math.min(r,s))),this.labelRotation=s}afterCalculateLabelRotation(){Se(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Se(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:i,title:a,grid:r}}=this,s=this._isVisible(),l=this.isHorizontal();if(s){const M=tg(a,n.options.font);if(l?(e.width=this.maxWidth,e.height=Fn(r)+M):(e.height=this.maxHeight,e.width=Fn(r)+M),i.display&&this.ticks.length){const{first:u,last:c,widest:g,highest:d}=this._getLabelSizes(),y=i.padding*2,j=ct(this.labelRotation),D=Math.cos(j),f=Math.sin(j);if(l){const N=i.mirror?0:f*g.width+D*d.height;e.height=Math.min(this.maxHeight,e.height+N+y)}else{const N=i.mirror?0:D*g.width+f*d.height;e.width=Math.min(this.maxWidth,e.width+N+y)}this._calculatePadding(u,c,f,D)}}this._handleMargins(),l?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,i,a){const{ticks:{align:r,padding:s},position:l}=this.options,M=this.labelRotation!==0,u=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,g=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,y=0;M?u?(d=a*e.width,y=i*n.height):(d=i*e.height,y=a*n.width):r==="start"?y=n.width:r==="end"?d=e.width:r!=="inner"&&(d=e.width/2,y=n.width/2),this.paddingLeft=Math.max((d-c+s)*this.width/(this.width-c),0),this.paddingRight=Math.max((y-g+s)*this.width/(this.width-g),0)}else{let c=n.height/2,g=e.height/2;r==="start"?(c=0,g=e.height):r==="end"&&(c=n.height,g=0),this.paddingTop=c+s,this.paddingBottom=g+s}}_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(){Se(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,i;for(n=0,i=e.length;n<i;n++)Ne(e[n].label)&&(e.splice(n,1),i--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let i=this.ticks;n<i.length&&(i=eg(i,n)),this._labelSizes=e=this._computeLabelSizes(i,i.length)}return e}_computeLabelSizes(e,n){const{ctx:i,_longestTextCache:a}=this,r=[],s=[];let l=0,M=0,u,c,g,d,y,j,D,f,N,I,A;for(u=0;u<n;++u){if(d=e[u].label,y=this._resolveTickFontOptions(u),i.font=j=y.string,D=a[j]=a[j]||{data:{},gc:[]},f=y.lineHeight,N=I=0,!Ne(d)&&!Te(d))N=Ja(i,D.data,D.gc,N,d),I=f;else if(Te(d))for(c=0,g=d.length;c<g;++c)A=d[c],!Ne(A)&&!Te(A)&&(N=Ja(i,D.data,D.gc,N,A),I+=f);r.push(N),s.push(I),l=Math.max(N,l),M=Math.max(I,M)}k0(a,n);const p=r.indexOf(l),m=s.indexOf(M),z=w=>({width:r[w]||0,height:s[w]||0});return{first:z(0),last:z(n-1),widest:z(p),highest:z(m),widths:r,heights:s}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return LA(this._alignToPixels?an(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const i=n[e];return i.$context||(i.$context=v0(this.getContext(),e,i))}return this.$context||(this.$context=_0(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=ct(this.labelRotation),i=Math.abs(Math.cos(n)),a=Math.abs(Math.sin(n)),r=this._getLabelSizes(),s=e.autoSkipPadding||0,l=r?r.widest.width+s:0,M=r?r.highest.height+s:0;return this.isHorizontal()?M*i>l*a?l/i:M/a:M*a<l*i?M/i:l/a}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,i=this.chart,a=this.options,{grid:r,position:s}=a,l=r.offset,M=this.isHorizontal(),c=this.ticks.length+(l?1:0),g=Fn(r),d=[],y=r.setContext(this.getContext()),j=y.drawBorder?y.borderWidth:0,D=j/2,f=function(T){return an(i,T,j)};let N,I,A,p,m,z,w,_,Y,R,k,h;if(s==="top")N=f(this.bottom),z=this.bottom-g,_=N-D,R=f(e.top)+D,h=e.bottom;else if(s==="bottom")N=f(this.top),R=e.top,h=f(e.bottom)-D,z=N+D,_=this.top+g;else if(s==="left")N=f(this.right),m=this.right-g,w=N-D,Y=f(e.left)+D,k=e.right;else if(s==="right")N=f(this.left),Y=e.left,k=f(e.right)-D,m=N+D,w=this.left+g;else if(n==="x"){if(s==="center")N=f((e.top+e.bottom)/2+.5);else if(le(s)){const T=Object.keys(s)[0],v=s[T];N=f(this.chart.scales[T].getPixelForValue(v))}R=e.top,h=e.bottom,z=N+D,_=z+g}else if(n==="y"){if(s==="center")N=f((e.left+e.right)/2);else if(le(s)){const T=Object.keys(s)[0],v=s[T];N=f(this.chart.scales[T].getPixelForValue(v))}m=N-D,w=m-g,Y=e.left,k=e.right}const E=Me(a.ticks.maxTicksLimit,c),C=Math.max(1,Math.ceil(c/E));for(I=0;I<c;I+=C){const T=r.setContext(this.getContext(I)),v=T.lineWidth,V=T.color,B=T.borderDash||[],F=T.borderDashOffset,$=T.tickWidth,O=T.tickColor,P=T.tickBorderDash||[],U=T.tickBorderDashOffset;A=w0(this,I,l),A!==void 0&&(p=an(i,A,v),M?m=w=Y=k=p:z=_=R=h=p,d.push({tx1:m,ty1:z,tx2:w,ty2:_,x1:Y,y1:R,x2:k,y2:h,width:v,color:V,borderDash:B,borderDashOffset:F,tickWidth:$,tickColor:O,tickBorderDash:P,tickBorderDashOffset:U}))}return this._ticksLength=c,this._borderValue=N,d}_computeLabelItems(e){const n=this.axis,i=this.options,{position:a,ticks:r}=i,s=this.isHorizontal(),l=this.ticks,{align:M,crossAlign:u,padding:c,mirror:g}=r,d=Fn(i.grid),y=d+c,j=g?-c:y,D=-ct(this.labelRotation),f=[];let N,I,A,p,m,z,w,_,Y,R,k,h,E="middle";if(a==="top")z=this.bottom-j,w=this._getXAxisLabelAlignment();else if(a==="bottom")z=this.top+j,w=this._getXAxisLabelAlignment();else if(a==="left"){const T=this._getYAxisLabelAlignment(d);w=T.textAlign,m=T.x}else if(a==="right"){const T=this._getYAxisLabelAlignment(d);w=T.textAlign,m=T.x}else if(n==="x"){if(a==="center")z=(e.top+e.bottom)/2+y;else if(le(a)){const T=Object.keys(a)[0],v=a[T];z=this.chart.scales[T].getPixelForValue(v)+y}w=this._getXAxisLabelAlignment()}else if(n==="y"){if(a==="center")m=(e.left+e.right)/2-y;else if(le(a)){const T=Object.keys(a)[0],v=a[T];m=this.chart.scales[T].getPixelForValue(v)}w=this._getYAxisLabelAlignment(d).textAlign}n==="y"&&(M==="start"?E="top":M==="end"&&(E="bottom"));const C=this._getLabelSizes();for(N=0,I=l.length;N<I;++N){A=l[N],p=A.label;const T=r.setContext(this.getContext(N));_=this.getPixelForTick(N)+r.labelOffset,Y=this._resolveTickFontOptions(N),R=Y.lineHeight,k=Te(p)?p.length:1;const v=k/2,V=T.color,B=T.textStrokeColor,F=T.textStrokeWidth;let $=w;s?(m=_,w==="inner"&&(N===I-1?$=this.options.reverse?"left":"right":N===0?$=this.options.reverse?"right":"left":$="center"),a==="top"?u==="near"||D!==0?h=-k*R+R/2:u==="center"?h=-C.highest.height/2-v*R+R:h=-C.highest.height+R/2:u==="near"||D!==0?h=R/2:u==="center"?h=C.highest.height/2-v*R:h=C.highest.height-k*R,g&&(h*=-1)):(z=_,h=(1-k)*R/2);let O;if(T.showLabelBackdrop){const P=ot(T.backdropPadding),U=C.heights[N],Ie=C.widths[N];let Z=z+h-P.top,q=m-P.left;switch(E){case"middle":Z-=U/2;break;case"bottom":Z-=U;break}switch(w){case"center":q-=Ie/2;break;case"right":q-=Ie;break}O={left:q,top:Z,width:Ie+P.width,height:U+P.height,color:T.backdropColor}}f.push({rotation:D,label:p,font:Y,color:V,strokeColor:B,strokeWidth:F,textOffset:h,textAlign:$,textBaseline:E,translation:[m,z],backdrop:O})}return f}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-ct(this.labelRotation))return e==="top"?"left":"right";let a="center";return n.align==="start"?a="left":n.align==="end"?a="right":n.align==="inner"&&(a="inner"),a}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:i,mirror:a,padding:r}}=this.options,s=this._getLabelSizes(),l=e+r,M=s.widest.width;let u,c;return n==="left"?a?(c=this.right+r,i==="near"?u="left":i==="center"?(u="center",c+=M/2):(u="right",c+=M)):(c=this.right-l,i==="near"?u="right":i==="center"?(u="center",c-=M/2):(u="left",c=this.left)):n==="right"?a?(c=this.left+r,i==="near"?u="right":i==="center"?(u="center",c-=M/2):(u="left",c-=M)):(c=this.left+l,i==="near"?u="left":i==="center"?(u="center",c+=M/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:i,top:a,width:r,height:s}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(i,a,r,s),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const a=this.ticks.findIndex(r=>r.value===e);return a>=0?n.setContext(this.getContext(a)).lineWidth:0}drawGrid(e){const n=this.options.grid,i=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,s;const l=(M,u,c)=>{!c.width||!c.color||(i.save(),i.lineWidth=c.width,i.strokeStyle=c.color,i.setLineDash(c.borderDash||[]),i.lineDashOffset=c.borderDashOffset,i.beginPath(),i.moveTo(M.x,M.y),i.lineTo(u.x,u.y),i.stroke(),i.restore())};if(n.display)for(r=0,s=a.length;r<s;++r){const M=a[r];n.drawOnChartArea&&l({x:M.x1,y:M.y1},{x:M.x2,y:M.y2},M),n.drawTicks&&l({x:M.tx1,y:M.ty1},{x:M.tx2,y:M.ty2},{color:M.tickColor,width:M.tickWidth,borderDash:M.tickBorderDash,borderDashOffset:M.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{grid:i}}=this,a=i.setContext(this.getContext()),r=i.drawBorder?a.borderWidth:0;if(!r)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let M,u,c,g;this.isHorizontal()?(M=an(e,this.left,r)-r/2,u=an(e,this.right,s)+s/2,c=g=l):(c=an(e,this.top,r)-r/2,g=an(e,this.bottom,s)+s/2,M=u=l),n.save(),n.lineWidth=a.borderWidth,n.strokeStyle=a.borderColor,n.beginPath(),n.moveTo(M,c),n.lineTo(u,g),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const i=this.ctx,a=this._computeLabelArea();a&&fc(i,a);const r=this._labelItems||(this._labelItems=this._computeLabelItems(e));let s,l;for(s=0,l=r.length;s<l;++s){const M=r[s],u=M.font,c=M.label;M.backdrop&&(i.fillStyle=M.backdrop.color,i.fillRect(M.backdrop.left,M.backdrop.top,M.backdrop.width,M.backdrop.height));let g=M.textOffset;Xa(i,c,0,g,u,M)}a&&hc(i)}drawTitle(){const{ctx:e,options:{position:n,title:i,reverse:a}}=this;if(!i.display)return;const r=et(i.font),s=ot(i.padding),l=i.align;let M=r.lineHeight/2;n==="bottom"||n==="center"||le(n)?(M+=s.bottom,Te(i.text)&&(M+=r.lineHeight*(i.text.length-1))):M+=s.top;const{titleX:u,titleY:c,maxWidth:g,rotation:d}=Y0(this,M,n,l);Xa(e,i.text,0,0,r,{color:i.color,maxWidth:g,rotation:d,textAlign:Q0(l,n,a),textBaseline:"middle",translation:[u,c]})}draw(e){!this._isVisible()||(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,i=Me(e.grid&&e.grid.z,-1);return!this._isVisible()||this.draw!==ln.prototype.draw?[{z:n,draw:a=>{this.draw(a)}}]:[{z:i,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",a=[];let r,s;for(r=0,s=n.length;r<s;++r){const l=n[r];l[i]===this.id&&(!e||l.type===e)&&a.push(l)}return a}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return et(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class or{constructor(e,n,i){this.type=e,this.scope=n,this.override=i,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let i;R0(n)&&(i=this.register(n));const a=this.items,r=e.id,s=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+e);return r in a||(a[r]=e,U0(e,s,i),this.override&&oe.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const n=this.items,i=e.id,a=this.scope;i in n&&delete n[i],a&&i in oe[a]&&(delete oe[a][i],this.override&&delete nn[i])}}function U0(t,e,n){const i=vn(Object.create(null),[n?oe.get(n):{},oe.get(e),t.defaults]);oe.set(e,i),t.defaultRoutes&&P0(e,t.defaultRoutes),t.descriptors&&oe.describe(e,t.descriptors)}function P0(t,e){Object.keys(e).forEach(n=>{const i=n.split("."),a=i.pop(),r=[t].concat(i).join("."),s=e[n].split("."),l=s.pop(),M=s.join(".");oe.route(r,a,M,l)})}function R0(t){return"id"in t&&"defaults"in t}class B0{constructor(){this.controllers=new or(Nt,"datasets",!0),this.elements=new or(Ct,"elements"),this.plugins=new or(Object,"plugins"),this.scales=new or(ln,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,i){[...n].forEach(a=>{const r=i||this._getRegistryForType(a);i||r.isForType(a)||r===this.plugins&&a.id?this._exec(e,r,a):je(a,s=>{const l=i||this._getRegistryForType(s);this._exec(e,l,s)})})}_exec(e,n,i){const a=xs(e);Se(i["before"+a],[],i),n[e](i),Se(i["after"+a],[],i)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const i=this._typedRegistries[n];if(i.isForType(e))return i}return this.plugins}_get(e,n,i){const a=n.get(e);if(a===void 0)throw new Error('"'+e+'" is not a registered '+i+".");return a}}var mt=new B0;class el extends Nt{update(e){const n=this._cachedMeta,{data:i=[]}=n,a=this.chart._animationsDisabled;let{start:r,count:s}=ac(n,i,a);if(this._drawStart=r,this._drawCount=s,rc(n)&&(r=0,s=i.length),this.options.showLine){const{dataset:l,_dataset:M}=n;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!M._decimated,l.points=i;const u=this.resolveDatasetElementOptions(e);u.segment=this.options.segment,this.updateElement(l,void 0,{animated:!a,options:u},e)}this.updateElements(i,r,s,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=mt.getElement("line")),super.addElements()}updateElements(e,n,i,a){const r=a==="reset",{iScale:s,vScale:l,_stacked:M,_dataset:u}=this._cachedMeta,c=this.resolveDataElementOptions(n,a),g=this.getSharedOptions(c),d=this.includeOptions(a,g),y=s.axis,j=l.axis,{spanGaps:D,segment:f}=this.options,N=Dn(D)?D:Number.POSITIVE_INFINITY,I=this.chart._animationsDisabled||r||a==="none";let A=n>0&&this.getParsed(n-1);for(let p=n;p<n+i;++p){const m=e[p],z=this.getParsed(p),w=I?m:{},_=Ne(z[j]),Y=w[y]=s.getPixelForValue(z[y],p),R=w[j]=r||_?l.getBasePixel():l.getPixelForValue(M?this.applyStack(l,z,M):z[j],p);w.skip=isNaN(Y)||isNaN(R)||_,w.stop=p>0&&Math.abs(z[y]-A[y])>N,f&&(w.parsed=z,w.raw=u.data[p]),d&&(w.options=g||this.resolveDataElementOptions(p,m.active?"active":a)),I||this.updateElement(m,p,w,a),A=z}this.updateSharedOptions(g,a,c)}getMaxOverflow(){const e=this._cachedMeta,n=e.data||[];if(!this.options.showLine){let l=0;for(let M=n.length-1;M>=0;--M)l=Math.max(l,n[M].size(this.resolveDataElementOptions(M))/2);return l>0&&l}const i=e.dataset,a=i.options&&i.options.borderWidth||0;if(!n.length)return a;const r=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(a,r,s)/2}}el.id="scatter",el.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},el.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title(){return""},label(t){return"("+t.label+", "+t.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};function Mn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class tl{constructor(e){this.options=e||{}}init(e){}formats(){return Mn()}parse(e,n){return Mn()}format(e,n){return Mn()}add(e,n,i){return Mn()}diff(e,n,i){return Mn()}startOf(e,n,i){return Mn()}endOf(e,n){return Mn()}}tl.override=function(t){Object.assign(tl.prototype,t)};var Z0={_date:tl};function V0(t,e,n,i){const{controller:a,data:r,_sorted:s}=t,l=a._cachedMeta.iScale;if(l&&e===l.axis&&e!=="r"&&s&&r.length){const M=l._reversePixels?xA:tn;if(i){if(a._sharedOptions){const u=r[0],c=typeof u.getRange=="function"&&u.getRange(e);if(c){const g=M(r,e,n-c),d=M(r,e,n+c);return{lo:g.lo,hi:d.hi}}}}else return M(r,e,n)}return{lo:0,hi:r.length-1}}function Jn(t,e,n,i,a){const r=t.getSortedVisibleDatasetMetas(),s=n[e];for(let l=0,M=r.length;l<M;++l){const{index:u,data:c}=r[l],{lo:g,hi:d}=V0(r[l],e,s,a);for(let y=g;y<=d;++y){const j=c[y];j.skip||i(j,u,y)}}}function G0(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(i,a){const r=e?Math.abs(i.x-a.x):0,s=n?Math.abs(i.y-a.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(s,2))}}function nl(t,e,n,i,a){const r=[];return!a&&!t.isPointInArea(e)||Jn(t,n,e,function(l,M,u){!a&&!Gn(l,t.chartArea,0)||l.inRange(e.x,e.y,i)&&r.push({element:l,datasetIndex:M,index:u})},!0),r}function W0(t,e,n,i){let a=[];function r(s,l,M){const{startAngle:u,endAngle:c}=s.getProps(["startAngle","endAngle"],i),{angle:g}=Xu(s,{x:e.x,y:e.y});Pn(g,u,c)&&a.push({element:s,datasetIndex:l,index:M})}return Jn(t,n,e,r),a}function $0(t,e,n,i,a,r){let s=[];const l=G0(n);let M=Number.POSITIVE_INFINITY;function u(c,g,d){const y=c.inRange(e.x,e.y,a);if(i&&!y)return;const j=c.getCenterPoint(a);if(!(!!r||t.isPointInArea(j))&&!y)return;const f=l(e,j);f<M?(s=[{element:c,datasetIndex:g,index:d}],M=f):f===M&&s.push({element:c,datasetIndex:g,index:d})}return Jn(t,n,e,u),s}function il(t,e,n,i,a,r){return!r&&!t.isPointInArea(e)?[]:n==="r"&&!i?W0(t,e,n,a):$0(t,e,n,i,a,r)}function ng(t,e,n,i,a){const r=[],s=n==="x"?"inXRange":"inYRange";let l=!1;return Jn(t,n,e,(M,u,c)=>{M[s](e[n],a)&&(r.push({element:M,datasetIndex:u,index:c}),l=l||M.inRange(e.x,e.y,a))}),i&&!l?[]:r}var H0={evaluateInteractionItems:Jn,modes:{index(t,e,n,i){const a=on(e,t),r=n.axis||"x",s=n.includeInvisible||!1,l=n.intersect?nl(t,a,r,i,s):il(t,a,r,!1,i,s),M=[];return l.length?(t.getSortedVisibleDatasetMetas().forEach(u=>{const c=l[0].index,g=u.data[c];g&&!g.skip&&M.push({element:g,datasetIndex:u.index,index:c})}),M):[]},dataset(t,e,n,i){const a=on(e,t),r=n.axis||"xy",s=n.includeInvisible||!1;let l=n.intersect?nl(t,a,r,i,s):il(t,a,r,!1,i,s);if(l.length>0){const M=l[0].datasetIndex,u=t.getDatasetMeta(M).data;l=[];for(let c=0;c<u.length;++c)l.push({element:u[c],datasetIndex:M,index:c})}return l},point(t,e,n,i){const a=on(e,t),r=n.axis||"xy",s=n.includeInvisible||!1;return nl(t,a,r,i,s)},nearest(t,e,n,i){const a=on(e,t),r=n.axis||"xy",s=n.includeInvisible||!1;return il(t,a,r,n.intersect,i,s)},x(t,e,n,i){const a=on(e,t);return ng(t,a,"x",n.intersect,i)},y(t,e,n,i){const a=on(e,t);return ng(t,a,"y",n.intersect,i)}}};const ig=["left","top","right","bottom"];function Xn(t,e){return t.filter(n=>n.pos===e)}function ag(t,e){return t.filter(n=>ig.indexOf(n.pos)===-1&&n.box.axis===e)}function Kn(t,e){return t.sort((n,i)=>{const a=e?i:n,r=e?n:i;return a.weight===r.weight?a.index-r.index:a.weight-r.weight})}function F0(t){const e=[];let n,i,a,r,s,l;for(n=0,i=(t||[]).length;n<i;++n)a=t[n],{position:r,options:{stack:s,stackWeight:l=1}}=a,e.push({index:n,box:a,pos:r,horizontal:a.isHorizontal(),weight:a.weight,stack:s&&r+s,stackWeight:l});return e}function J0(t){const e={};for(const n of t){const{stack:i,pos:a,stackWeight:r}=n;if(!i||!ig.includes(a))continue;const s=e[i]||(e[i]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=r}return e}function X0(t,e){const n=J0(t),{vBoxMaxWidth:i,hBoxMaxHeight:a}=e;let r,s,l;for(r=0,s=t.length;r<s;++r){l=t[r];const{fullSize:M}=l.box,u=n[l.stack],c=u&&l.stackWeight/u.weight;l.horizontal?(l.width=c?c*i:M&&e.availableWidth,l.height=a):(l.width=i,l.height=c?c*a:M&&e.availableHeight)}return n}function K0(t){const e=F0(t),n=Kn(e.filter(u=>u.box.fullSize),!0),i=Kn(Xn(e,"left"),!0),a=Kn(Xn(e,"right")),r=Kn(Xn(e,"top"),!0),s=Kn(Xn(e,"bottom")),l=ag(e,"x"),M=ag(e,"y");return{fullSize:n,leftAndTop:i.concat(r),rightAndBottom:a.concat(M).concat(s).concat(l),chartArea:Xn(e,"chartArea"),vertical:i.concat(a).concat(M),horizontal:r.concat(s).concat(l)}}function rg(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function og(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function q0(t,e,n,i){const{pos:a,box:r}=n,s=t.maxPadding;if(!le(a)){n.size&&(t[a]-=n.size);const g=i[n.stack]||{size:0,count:1};g.size=Math.max(g.size,n.horizontal?r.height:r.width),n.size=g.size/g.count,t[a]+=n.size}r.getPadding&&og(s,r.getPadding());const l=Math.max(0,e.outerWidth-rg(s,t,"left","right")),M=Math.max(0,e.outerHeight-rg(s,t,"top","bottom")),u=l!==t.w,c=M!==t.h;return t.w=l,t.h=M,n.horizontal?{same:u,other:c}:{same:c,other:u}}function ep(t){const e=t.maxPadding;function n(i){const a=Math.max(e[i]-t[i],0);return t[i]+=a,a}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function tp(t,e){const n=e.maxPadding;function i(a){const r={left:0,top:0,right:0,bottom:0};return a.forEach(s=>{r[s]=Math.max(e[s],n[s])}),r}return i(t?["left","right"]:["top","bottom"])}function qn(t,e,n,i){const a=[];let r,s,l,M,u,c;for(r=0,s=t.length,u=0;r<s;++r){l=t[r],M=l.box,M.update(l.width||e.w,l.height||e.h,tp(l.horizontal,e));const{same:g,other:d}=q0(e,n,l,i);u|=g&&a.length,c=c||d,M.fullSize||a.push(l)}return u&&qn(a,e,n,i)||c}function sr(t,e,n,i,a){t.top=n,t.left=e,t.right=e+i,t.bottom=n+a,t.width=i,t.height=a}function sg(t,e,n,i){const a=n.padding;let{x:r,y:s}=e;for(const l of t){const M=l.box,u=i[l.stack]||{count:1,placed:0,weight:1},c=l.stackWeight/u.weight||1;if(l.horizontal){const g=e.w*c,d=u.size||M.height;it(u.start)&&(s=u.start),M.fullSize?sr(M,a.left,s,n.outerWidth-a.right-a.left,d):sr(M,e.left+u.placed,s,g,d),u.start=s,u.placed+=g,s=M.bottom}else{const g=e.h*c,d=u.size||M.width;it(u.start)&&(r=u.start),M.fullSize?sr(M,r,a.top,d,n.outerHeight-a.bottom-a.top):sr(M,r,e.top+u.placed,d,g),u.start=r,u.placed+=g,r=M.right}}e.x=r,e.y=s}oe.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var lr={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const a=ot(t.options.layout.padding),r=Math.max(e-a.width,0),s=Math.max(n-a.height,0),l=K0(t.boxes),M=l.vertical,u=l.horizontal;je(t.boxes,D=>{typeof D.beforeLayout=="function"&&D.beforeLayout()});const c=M.reduce((D,f)=>f.box.options&&f.box.options.display===!1?D:D+1,0)||1,g=Object.freeze({outerWidth:e,outerHeight:n,padding:a,availableWidth:r,availableHeight:s,vBoxMaxWidth:r/2/c,hBoxMaxHeight:s/2}),d=Object.assign({},a);og(d,ot(i));const y=Object.assign({maxPadding:d,w:r,h:s,x:a.left,y:a.top},a),j=X0(M.concat(u),g);qn(l.fullSize,y,g,j),qn(M,y,g,j),qn(u,y,g,j)&&qn(M,y,g,j),ep(y),sg(l.leftAndTop,y,g,j),y.x+=y.w,y.y+=y.h,sg(l.rightAndBottom,y,g,j),t.chartArea={left:y.left,top:y.top,right:y.left+y.w,bottom:y.top+y.h,height:y.h,width:y.w},je(l.chartArea,D=>{const f=D.box;Object.assign(f,t.chartArea),f.update(y.w,y.h,{left:0,top:0,right:0,bottom:0})})}};class lg{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,i){}removeEventListener(e,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,i,a){return n=Math.max(0,n||e.width),i=i||e.height,{width:n,height:Math.max(0,a?Math.floor(n/a):i)}}isAttached(e){return!0}updateConfig(e){}}class np extends lg{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Mr="$chartjs",ip={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Mg=t=>t===null||t==="";function ap(t,e){const n=t.style,i=t.getAttribute("height"),a=t.getAttribute("width");if(t[Mr]={initial:{height:i,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Mg(a)){const r=Cc(t,"width");r!==void 0&&(t.width=r)}if(Mg(i))if(t.style.height==="")t.height=t.width/(e||2);else{const r=Cc(t,"height");r!==void 0&&(t.height=r)}return t}const ug=_z?{passive:!0}:!1;function rp(t,e,n){t.addEventListener(e,n,ug)}function op(t,e,n){t.canvas.removeEventListener(e,n,ug)}function sp(t,e){const n=ip[t.type]||t.type,{x:i,y:a}=on(t,e);return{type:n,chart:e,native:t,x:i!==void 0?i:null,y:a!==void 0?a:null}}function ur(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function lp(t,e,n){const i=t.canvas,a=new MutationObserver(r=>{let s=!1;for(const l of r)s=s||ur(l.addedNodes,i),s=s&&!ur(l.removedNodes,i);s&&n()});return a.observe(document,{childList:!0,subtree:!0}),a}function Mp(t,e,n){const i=t.canvas,a=new MutationObserver(r=>{let s=!1;for(const l of r)s=s||ur(l.removedNodes,i),s=s&&!ur(l.addedNodes,i);s&&n()});return a.observe(document,{childList:!0,subtree:!0}),a}const ei=new Map;let cg=0;function gg(){const t=window.devicePixelRatio;t!==cg&&(cg=t,ei.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function up(t,e){ei.size||window.addEventListener("resize",gg),ei.set(t,e)}function cp(t){ei.delete(t),ei.size||window.removeEventListener("resize",gg)}function gp(t,e,n){const i=t.canvas,a=i&&Vs(i);if(!a)return;const r=nc((l,M)=>{const u=a.clientWidth;n(l,M),u<a.clientWidth&&n()},window),s=new ResizeObserver(l=>{const M=l[0],u=M.contentRect.width,c=M.contentRect.height;u===0&&c===0||r(u,c)});return s.observe(a),up(t,r),s}function al(t,e,n){n&&n.disconnect(),e==="resize"&&cp(t)}function Np(t,e,n){const i=t.canvas,a=nc(r=>{t.ctx!==null&&n(sp(r,t))},t,r=>{const s=r[0];return[s,s.offsetX,s.offsetY]});return rp(i,e,a),a}class dp extends lg{acquireContext(e,n){const i=e&&e.getContext&&e.getContext("2d");return i&&i.canvas===e?(ap(e,n),i):null}releaseContext(e){const n=e.canvas;if(!n[Mr])return!1;const i=n[Mr].initial;["height","width"].forEach(r=>{const s=i[r];Ne(s)?n.removeAttribute(r):n.setAttribute(r,s)});const a=i.style||{};return Object.keys(a).forEach(r=>{n.style[r]=a[r]}),n.width=n.width,delete n[Mr],!0}addEventListener(e,n,i){this.removeEventListener(e,n);const a=e.$proxies||(e.$proxies={}),s={attach:lp,detach:Mp,resize:gp}[n]||Np;a[n]=s(e,n,i)}removeEventListener(e,n){const i=e.$proxies||(e.$proxies={}),a=i[n];if(!a)return;({attach:al,detach:al,resize:al}[n]||op)(e,n,a),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,i,a){return kz(e,n,i,a)}isAttached(e){const n=Vs(e);return!!(n&&n.isConnected)}}function yp(t){return!Ec()||typeof OffscreenCanvas!="undefined"&&t instanceof OffscreenCanvas?np:dp}class jp{constructor(){this._init=[]}notify(e,n,i,a){n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const r=a?this._descriptors(e).filter(a):this._descriptors(e),s=this._notify(r,e,n,i);return n==="afterDestroy"&&(this._notify(r,e,"stop"),this._notify(this._init,e,"uninstall")),s}_notify(e,n,i,a){a=a||{};for(const r of e){const s=r.plugin,l=s[i],M=[n,a,r.options];if(Se(l,M,s)===!1&&a.cancelable)return!1}return!0}invalidate(){Ne(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const i=e&&e.config,a=Me(i.options&&i.options.plugins,{}),r=Ip(i);return a===!1&&!n?[]:fp(e,r,a,n)}_notifyStateChanges(e){const n=this._oldCache||[],i=this._cache,a=(r,s)=>r.filter(l=>!s.some(M=>l.plugin.id===M.plugin.id));this._notify(a(n,i),e,"stop"),this._notify(a(i,n),e,"start")}}function Ip(t){const e={},n=[],i=Object.keys(mt.plugins.items);for(let r=0;r<i.length;r++)n.push(mt.getPlugin(i[r]));const a=t.plugins||[];for(let r=0;r<a.length;r++){const s=a[r];n.indexOf(s)===-1&&(n.push(s),e[s.id]=!0)}return{plugins:n,localIds:e}}function Dp(t,e){return!e&&t===!1?null:t===!0?{}:t}function fp(t,{plugins:e,localIds:n},i,a){const r=[],s=t.getContext();for(const l of e){const M=l.id,u=Dp(i[M],a);u!==null&&r.push({plugin:l,options:hp(t.config,{plugin:l,local:n[M]},u,s)})}return r}function hp(t,{plugin:e,local:n},i,a){const r=t.pluginScopeKeys(e),s=t.getOptionScopes(i,r);return n&&e.defaults&&s.push(e.defaults),t.createResolver(s,a,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function rl(t,e){const n=oe.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function mp(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function Ap(t,e){return t===e?"_index_":"_value_"}function zp(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function ol(t,e){return t==="x"||t==="y"?t:e.axis||zp(e.position)||t.charAt(0).toLowerCase()}function pp(t,e){const n=nn[t.type]||{scales:{}},i=e.scales||{},a=rl(t.type,e),r=Object.create(null),s=Object.create(null);return Object.keys(i).forEach(l=>{const M=i[l];if(!le(M))return console.error(`Invalid scale configuration for scale: ${l}`);if(M._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${l}`);const u=ol(l,M),c=Ap(u,a),g=n.scales||{};r[u]=r[u]||l,s[l]=Qn(Object.create(null),[{axis:u},M,g[u],g[c]])}),t.data.datasets.forEach(l=>{const M=l.type||t.type,u=l.indexAxis||rl(M,e),g=(nn[M]||{}).scales||{};Object.keys(g).forEach(d=>{const y=mp(d,u),j=l[y+"AxisID"]||r[y]||y;s[j]=s[j]||Object.create(null),Qn(s[j],[{axis:y},i[j],g[d]])})}),Object.keys(s).forEach(l=>{const M=s[l];Qn(M,[oe.scales[M.type],oe.scale])}),s}function Ng(t){const e=t.options||(t.options={});e.plugins=Me(e.plugins,{}),e.scales=pp(t,e)}function dg(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function Tp(t){return t=t||{},t.data=dg(t.data),Ng(t),t}const yg=new Map,jg=new Set;function cr(t,e){let n=yg.get(t);return n||(n=e(),yg.set(t,n),jg.add(n)),n}const ti=(t,e,n)=>{const i=Rt(e,n);i!==void 0&&t.add(i)};class Lp{constructor(e){this._config=Tp(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=dg(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Ng(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return cr(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return cr(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return cr(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,i=this.type;return cr(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const i=this._scopeCache;let a=i.get(e);return(!a||n)&&(a=new Map,i.set(e,a)),a}getOptionScopes(e,n,i){const{options:a,type:r}=this,s=this._cachedScopes(e,i),l=s.get(n);if(l)return l;const M=new Set;n.forEach(c=>{e&&(M.add(e),c.forEach(g=>ti(M,e,g))),c.forEach(g=>ti(M,a,g)),c.forEach(g=>ti(M,nn[r]||{},g)),c.forEach(g=>ti(M,oe,g)),c.forEach(g=>ti(M,Qs,g))});const u=Array.from(M);return u.length===0&&u.push(Object.create(null)),jg.has(n)&&s.set(n,u),u}chartOptionScopes(){const{options:e,type:n}=this;return[e,nn[n]||{},oe.datasets[n]||{},{type:n},oe,Qs]}resolveNamedOptions(e,n,i,a=[""]){const r={$shared:!0},{resolver:s,subPrefixes:l}=Ig(this._resolverCache,e,a);let M=s;if(Op(s,n)){r.$shared=!1,i=Bt(i)?i():i;const u=this.createResolver(e,i,l);M=mn(s,i,u)}for(const u of n)r[u]=M[u];return r}createResolver(e,n,i=[""],a){const{resolver:r}=Ig(this._resolverCache,e,i);return le(n)?mn(r,n,void 0,a):r}}function Ig(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const a=n.join();let r=i.get(a);return r||(r={resolver:Rs(e,n),subPrefixes:n.filter(l=>!l.toLowerCase().includes("hover"))},i.set(a,r)),r}const xp=t=>le(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||Bt(t[n]),!1);function Op(t,e){const{isScriptable:n,isIndexable:i}=Ac(t);for(const a of e){const r=n(a),s=i(a),l=(s||r)&&t[a];if(r&&(Bt(l)||xp(l))||s&&Te(l))return!0}return!1}var Sp="3.9.1";const Ep=["top","bottom","left","right","chartArea"];function Dg(t,e){return t==="top"||t==="bottom"||Ep.indexOf(t)===-1&&e==="x"}function fg(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function hg(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Se(n&&n.onComplete,[t],e)}function bp(t){const e=t.chart,n=e.options.animation;Se(n&&n.onProgress,[t],e)}function mg(t){return Ec()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const gr={},Ag=t=>{const e=mg(t);return Object.values(gr).filter(n=>n.canvas===e).pop()};function Cp(t,e,n){const i=Object.keys(t);for(const a of i){const r=+a;if(r>=e){const s=t[a];delete t[a],(n>0||r>e)&&(t[r+n]=s)}}}function wp(t,e,n,i){return!n||t.type==="mouseout"?null:i?e:t}class ni{constructor(e,n){const i=this.config=new Lp(n),a=mg(e),r=Ag(a);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const s=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||yp(a)),this.platform.updateConfig(i);const l=this.platform.acquireContext(a,s.aspectRatio),M=l&&l.canvas,u=M&&M.height,c=M&&M.width;if(this.id=dA(),this.ctx=l,this.canvas=M,this.width=c,this.height=u,this._options=s,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 jp,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=EA(g=>this.update(g),s.resizeDelay||0),this._dataChanges=[],gr[this.id]=this,!l||!M){console.error("Failed to create chart: can't acquire context from the given item");return}bt.listen(this,"complete",hg),bt.listen(this,"progress",bp),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:i,height:a,_aspectRatio:r}=this;return Ne(e)?n&&r?r:a?i/a:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():bc(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Dc(this.canvas,this.ctx),this}stop(){return bt.stop(this),this}resize(e,n){bt.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const i=this.options,a=this.canvas,r=i.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(a,e,n,r),l=i.devicePixelRatio||this.platform.getDevicePixelRatio(),M=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,bc(this,l,!0)&&(this.notifyPlugins("resize",{size:s}),Se(i.onResize,[this,s],this),this.attached&&this._doResize(M)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};je(n,(i,a)=>{i.id=a})}buildOrUpdateScales(){const e=this.options,n=e.scales,i=this.scales,a=Object.keys(i).reduce((s,l)=>(s[l]=!1,s),{});let r=[];n&&(r=r.concat(Object.keys(n).map(s=>{const l=n[s],M=ol(s,l),u=M==="r",c=M==="x";return{options:l,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),je(r,s=>{const l=s.options,M=l.id,u=ol(M,l),c=Me(l.type,s.dtype);(l.position===void 0||Dg(l.position,u)!==Dg(s.dposition))&&(l.position=s.dposition),a[M]=!0;let g=null;if(M in i&&i[M].type===c)g=i[M];else{const d=mt.getScale(c);g=new d({id:M,type:c,ctx:this.ctx,chart:this}),i[g.id]=g}g.init(l,e)}),je(a,(s,l)=>{s||delete i[l]}),je(i,s=>{lr.configure(this,s,s.options),lr.addBox(this,s)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,i=e.length;if(e.sort((a,r)=>a.index-r.index),i>n){for(let a=n;a<i;++a)this._destroyDatasetMeta(a);e.splice(n,i-n)}this._sortedMetasets=e.slice(0).sort(fg("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((i,a)=>{n.filter(r=>r===i._dataset).length===0&&this._destroyDatasetMeta(a)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let i,a;for(this._removeUnreferencedMetasets(),i=0,a=n.length;i<a;i++){const r=n[i];let s=this.getDatasetMeta(i);const l=r.type||this.config.type;if(s.type&&s.type!==l&&(this._destroyDatasetMeta(i),s=this.getDatasetMeta(i)),s.type=l,s.indexAxis=r.indexAxis||rl(l,this.options),s.order=r.order||0,s.index=i,s.label=""+r.label,s.visible=this.isDatasetVisible(i),s.controller)s.controller.updateIndex(i),s.controller.linkScales();else{const M=mt.getController(l),{datasetElementType:u,dataElementType:c}=oe.datasets[l];Object.assign(M.prototype,{dataElementType:mt.getElement(c),datasetElementType:u&&mt.getElement(u)}),s.controller=new M(this,i),e.push(s.controller)}}return this._updateMetasets(),e}_resetElements(){je(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),a=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let u=0,c=this.data.datasets.length;u<c;u++){const{controller:g}=this.getDatasetMeta(u),d=!a&&r.indexOf(g)===-1;g.buildOrUpdateElements(d),s=Math.max(+g.getMaxOverflow(),s)}s=this._minPadding=i.layout.autoPadding?s:0,this._updateLayout(s),a||je(r,u=>{u.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(fg("z","_idx"));const{_active:l,_lastEvent:M}=this;M?this._eventHandler(M,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){je(this.scales,e=>{lr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(e.events);(!Wu(n,i)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:a,count:r}of n){const s=i==="_removeElements"?-r:r;Cp(e,a,s)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=r=>new Set(e.filter(s=>s[0]===r).map((s,l)=>l+","+s.splice(1).join(","))),a=i(0);for(let r=1;r<n;r++)if(!Wu(a,i(r)))return;return Array.from(a).map(r=>r.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;lr.update(this,this.width,this.height,e);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],je(this.boxes,a=>{i&&a.position==="chartArea"||(a.configure&&a.configure(),this._layers.push(...a._layers()))},this),this._layers.forEach((a,r)=>{a._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n<i;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,i=this.data.datasets.length;n<i;++n)this._updateDataset(n,Bt(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const i=this.getDatasetMeta(e),a={meta:i,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",a)!==!1&&(i.controller._update(n),a.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",a))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(bt.has(this)?this.attached&&!bt.running(this)&&bt.start(this):(this.draw(),hg({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:i,height:a}=this._resizeBeforeDraw;this._resize(i,a),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,i=[];let a,r;for(a=0,r=n.length;a<r;++a){const s=n[a];(!e||s.visible)&&i.push(s)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,i=e._clip,a=!i.disabled,r=this.chartArea,s={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(a&&fc(n,{left:i.left===!1?0:r.left-i.left,right:i.right===!1?this.width:r.right+i.right,top:i.top===!1?0:r.top-i.top,bottom:i.bottom===!1?this.height:r.bottom+i.bottom}),e.controller.draw(),a&&hc(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return Gn(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,i,a){const r=H0.modes[n];return typeof r=="function"?r(this,e,i,a):[]}getDatasetMeta(e){const n=this.data.datasets[e],i=this._metasets;let a=i.filter(r=>r&&r._dataset===n).pop();return a||(a={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},i.push(a)),a}getContext(){return this.$context||(this.$context=Gt(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const i=this.getDatasetMeta(e);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(e,n){const i=this.getDatasetMeta(e);i.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,i){const a=i?"show":"hide",r=this.getDatasetMeta(e),s=r.controller._resolveAnimations(void 0,a);it(n)?(r.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(e,i),s.update(r,{visible:i}),this.update(l=>l.datasetIndex===e?a:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),bt.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Dc(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete gr[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,n=this.platform,i=(r,s)=>{n.addEventListener(this,r,s),e[r]=s},a=(r,s,l)=>{r.offsetX=s,r.offsetY=l,this._eventHandler(r)};je(this.options.events,r=>i(r,a))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,i=(M,u)=>{n.addEventListener(this,M,u),e[M]=u},a=(M,u)=>{e[M]&&(n.removeEventListener(this,M,u),delete e[M])},r=(M,u)=>{this.canvas&&this.resize(M,u)};let s;const l=()=>{a("attach",l),this.attached=!0,this.resize(),i("resize",r),i("detach",s)};s=()=>{this.attached=!1,a("resize",r),this._stop(),this._resize(0,0),i("attach",l)},n.isAttached(this.canvas)?l():s()}unbindEvents(){je(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},je(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,i){const a=i?"set":"remove";let r,s,l,M;for(n==="dataset"&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+a+"DatasetHoverStyle"]()),l=0,M=e.length;l<M;++l){s=e[l];const u=s&&this.getDatasetMeta(s.datasetIndex).controller;u&&u[a+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],i=e.map(({datasetIndex:r,index:s})=>{const l=this.getDatasetMeta(r);if(!l)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:l.data[s],index:s}});!Ra(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(e,n,i){return this._plugins.notify(this,e,n,i)}_updateHoverStyles(e,n,i){const a=this.options.hover,r=(M,u)=>M.filter(c=>!u.some(g=>c.datasetIndex===g.datasetIndex&&c.index===g.index)),s=r(n,e),l=i?e:r(e,n);s.length&&this.updateHoverStyle(s,a.mode,!1),l.length&&a.mode&&this.updateHoverStyle(l,a.mode,!0)}_eventHandler(e,n){const i={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},a=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",i,a)===!1)return;const r=this._handleEvent(e,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,a),(r||i.changed)&&this.render(),this}_handleEvent(e,n,i){const{_active:a=[],options:r}=this,s=n,l=this._getActiveElements(e,a,i,s),M=hA(e),u=wp(e,this._lastEvent,i,M);i&&(this._lastEvent=null,Se(r.onHover,[e,l,this],this),M&&Se(r.onClick,[e,l,this],this));const c=!Ra(l,a);return(c||n)&&(this._active=l,this._updateHoverStyles(l,a,n)),this._lastEvent=u,c}_getActiveElements(e,n,i,a){if(e.type==="mouseout")return[];if(!i)return n;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,a)}}const zg=()=>je(ni.instances,t=>t._plugins.invalidate()),Wt=!0;Object.defineProperties(ni,{defaults:{enumerable:Wt,value:oe},instances:{enumerable:Wt,value:gr},overrides:{enumerable:Wt,value:nn},registry:{enumerable:Wt,value:mt},version:{enumerable:Wt,value:Sp},getChart:{enumerable:Wt,value:Ag},register:{enumerable:Wt,value:(...t)=>{mt.add(...t),zg()}},unregister:{enumerable:Wt,value:(...t)=>{mt.remove(...t),zg()}}});function pg(t,e,n){const{startAngle:i,pixelMargin:a,x:r,y:s,outerRadius:l,innerRadius:M}=e;let u=a/l;t.beginPath(),t.arc(r,s,l,i-u,n+u),M>a?(u=a/M,t.arc(r,s,M,n+u,i-u,!0)):t.arc(r,s,a,n+be,i-be),t.closePath(),t.clip()}function kp(t){return Ps(t,["outerStart","outerEnd","innerStart","innerEnd"])}function _p(t,e,n,i){const a=kp(t.options.borderRadius),r=(n-e)/2,s=Math.min(r,i*e/2),l=M=>{const u=(n-Math.min(r,M))*i/2;return Ve(M,0,Math.min(r,u))};return{outerStart:l(a.outerStart),outerEnd:l(a.outerEnd),innerStart:Ve(a.innerStart,0,s),innerEnd:Ve(a.innerEnd,0,s)}}function zn(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function sl(t,e,n,i,a,r){const{x:s,y:l,startAngle:M,pixelMargin:u,innerRadius:c}=e,g=Math.max(e.outerRadius+i+n-u,0),d=c>0?c+i+n+u:0;let y=0;const j=a-M;if(i){const T=c>0?c-i:0,v=g>0?g-i:0,V=(T+v)/2,B=V!==0?j*V/(V+i):j;y=(j-B)/2}const D=Math.max(.001,j*g-n/Ee)/g,f=(j-D)/2,N=M+f+y,I=a-f-y,{outerStart:A,outerEnd:p,innerStart:m,innerEnd:z}=_p(e,d,g,I-N),w=g-A,_=g-p,Y=N+A/w,R=I-p/_,k=d+m,h=d+z,E=N+m/k,C=I-z/h;if(t.beginPath(),r){if(t.arc(s,l,g,Y,R),p>0){const V=zn(_,R,s,l);t.arc(V.x,V.y,p,R,I+be)}const T=zn(h,I,s,l);if(t.lineTo(T.x,T.y),z>0){const V=zn(h,C,s,l);t.arc(V.x,V.y,z,I+be,C+Math.PI)}if(t.arc(s,l,d,I-z/d,N+m/d,!0),m>0){const V=zn(k,E,s,l);t.arc(V.x,V.y,m,E+Math.PI,N-be)}const v=zn(w,N,s,l);if(t.lineTo(v.x,v.y),A>0){const V=zn(w,Y,s,l);t.arc(V.x,V.y,A,N-be,Y)}}else{t.moveTo(s,l);const T=Math.cos(Y)*g+s,v=Math.sin(Y)*g+l;t.lineTo(T,v);const V=Math.cos(R)*g+s,B=Math.sin(R)*g+l;t.lineTo(V,B)}t.closePath()}function vp(t,e,n,i,a){const{fullCircles:r,startAngle:s,circumference:l}=e;let M=e.endAngle;if(r){sl(t,e,n,i,s+fe,a);for(let u=0;u<r;++u)t.fill();isNaN(l)||(M=s+l%fe,l%fe===0&&(M+=fe))}return sl(t,e,n,i,M,a),t.fill(),M}function Qp(t,e,n){const{x:i,y:a,startAngle:r,pixelMargin:s,fullCircles:l}=e,M=Math.max(e.outerRadius-s,0),u=e.innerRadius+s;let c;for(n&&pg(t,e,r+fe),t.beginPath(),t.arc(i,a,u,r+fe,r,!0),c=0;c<l;++c)t.stroke();for(t.beginPath(),t.arc(i,a,M,r,r+fe),c=0;c<l;++c)t.stroke()}function Yp(t,e,n,i,a,r){const{options:s}=e,{borderWidth:l,borderJoinStyle:M}=s,u=s.borderAlign==="inner";!l||(u?(t.lineWidth=l*2,t.lineJoin=M||"round"):(t.lineWidth=l,t.lineJoin=M||"bevel"),e.fullCircles&&Qp(t,e,u),u&&pg(t,e,a),sl(t,e,n,i,a,r),t.stroke())}class ll extends Ct{constructor(e){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,e&&Object.assign(this,e)}inRange(e,n,i){const a=this.getProps(["x","y"],i),{angle:r,distance:s}=Xu(a,{x:e,y:n}),{startAngle:l,endAngle:M,innerRadius:u,outerRadius:c,circumference:g}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),d=this.options.spacing/2,j=Me(g,M-l)>=fe||Pn(r,l,M),D=Va(s,u+d,c+d);return j&&D}getCenterPoint(e){const{x:n,y:i,startAngle:a,endAngle:r,innerRadius:s,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),{offset:M,spacing:u}=this.options,c=(a+r)/2,g=(s+l+u+M)/2;return{x:n+Math.cos(c)*g,y:i+Math.sin(c)*g}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:n,circumference:i}=this,a=(n.offset||0)/2,r=(n.spacing||0)/2,s=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=i>fe?Math.floor(i/fe):0,i===0||this.innerRadius<0||this.outerRadius<0)return;e.save();let l=0;if(a){l=a/2;const u=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(u)*l,Math.sin(u)*l),this.circumference>=Ee&&(l=a)}e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor;const M=vp(e,this,l,r,s);Yp(e,this,l,r,M,s),e.restore()}}ll.id="arc",ll.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},ll.defaultRoutes={backgroundColor:"backgroundColor"};function Tg(t,e,n=e){t.lineCap=Me(n.borderCapStyle,e.borderCapStyle),t.setLineDash(Me(n.borderDash,e.borderDash)),t.lineDashOffset=Me(n.borderDashOffset,e.borderDashOffset),t.lineJoin=Me(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Me(n.borderWidth,e.borderWidth),t.strokeStyle=Me(n.borderColor,e.borderColor)}function Up(t,e,n){t.lineTo(n.x,n.y)}function Pp(t){return t.stepped?az:t.tension||t.cubicInterpolationMode==="monotone"?rz:Up}function Lg(t,e,n={}){const i=t.length,{start:a=0,end:r=i-1}=n,{start:s,end:l}=e,M=Math.max(a,s),u=Math.min(r,l),c=a<s&&r<s||a>l&&r>l;return{count:i,start:M,loop:e.loop,ilen:u<M&&!c?i+u-M:u-M}}function Rp(t,e,n,i){const{points:a,options:r}=e,{count:s,start:l,loop:M,ilen:u}=Lg(a,n,i),c=Pp(r);let{move:g=!0,reverse:d}=i||{},y,j,D;for(y=0;y<=u;++y)j=a[(l+(d?u-y:y))%s],!j.skip&&(g?(t.moveTo(j.x,j.y),g=!1):c(t,D,j,d,r.stepped),D=j);return M&&(j=a[(l+(d?u:0))%s],c(t,D,j,d,r.stepped)),!!M}function Bp(t,e,n,i){const a=e.points,{count:r,start:s,ilen:l}=Lg(a,n,i),{move:M=!0,reverse:u}=i||{};let c=0,g=0,d,y,j,D,f,N;const I=p=>(s+(u?l-p:p))%r,A=()=>{D!==f&&(t.lineTo(c,f),t.lineTo(c,D),t.lineTo(c,N))};for(M&&(y=a[I(0)],t.moveTo(y.x,y.y)),d=0;d<=l;++d){if(y=a[I(d)],y.skip)continue;const p=y.x,m=y.y,z=p|0;z===j?(m<D?D=m:m>f&&(f=m),c=(g*c+p)/++g):(A(),t.lineTo(p,m),j=z,g=0,D=f=m),N=m}A()}function Ml(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?Bp:Rp}function Zp(t){return t.stepped?vz:t.tension||t.cubicInterpolationMode==="monotone"?Qz:sn}function Vp(t,e,n,i){let a=e._path;a||(a=e._path=new Path2D,e.path(a,n,i)&&a.closePath()),Tg(t,e.options),t.stroke(a)}function Gp(t,e,n,i){const{segments:a,options:r}=e,s=Ml(e);for(const l of a)Tg(t,r,l.style),t.beginPath(),s(t,e,l,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}const Wp=typeof Path2D=="function";function $p(t,e,n,i){Wp&&!e.options.segment?Vp(t,e,n,i):Gp(t,e,n,i)}class Nr extends Ct{constructor(e){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,e&&Object.assign(this,e)}updateControlPoints(e,n){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const a=i.spanGaps?this._loop:this._fullLoop;Oz(this._points,i,e,a,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Hz(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,i=e.length;return i&&n[e[i-1].end]}interpolate(e,n){const i=this.options,a=e[n],r=this.points,s=Gz(this,{property:n,start:a,end:a});if(!s.length)return;const l=[],M=Zp(i);let u,c;for(u=0,c=s.length;u<c;++u){const{start:g,end:d}=s[u],y=r[g],j=r[d];if(y===j){l.push(y);continue}const D=Math.abs((a-y[n])/(j[n]-y[n])),f=M(y,j,D,i.stepped);f[n]=e[n],l.push(f)}return l.length===1?l[0]:l}pathSegment(e,n,i){return Ml(this)(e,this,n,i)}path(e,n,i){const a=this.segments,r=Ml(this);let s=this._loop;n=n||0,i=i||this.points.length-n;for(const l of a)s&=r(e,this,l,{start:n,end:n+i-1});return!!s}draw(e,n,i,a){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(e.save(),$p(e,this,i,a),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}Nr.id="line",Nr.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Nr.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Nr.descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};function xg(t,e,n,i){const a=t.options,{[n]:r}=t.getProps([n],i);return Math.abs(e-r)<a.radius+a.hitRadius}class ul extends Ct{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,n,i){const a=this.options,{x:r,y:s}=this.getProps(["x","y"],i);return Math.pow(e-r,2)+Math.pow(n-s,2)<Math.pow(a.hitRadius+a.radius,2)}inXRange(e,n){return xg(this,e,"x",n)}inYRange(e,n){return xg(this,e,"y",n)}getCenterPoint(e){const{x:n,y:i}=this.getProps(["x","y"],e);return{x:n,y:i}}size(e){e=e||this.options||{};let n=e.radius||0;n=Math.max(n,n&&e.hoverRadius||0);const i=n&&e.borderWidth||0;return(n+i)*2}draw(e,n){const i=this.options;this.skip||i.radius<.1||!Gn(this,n,this.size(i)/2)||(e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.fillStyle=i.backgroundColor,Us(e,i,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}ul.id="point",ul.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},ul.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};function Og(t,e){const{x:n,y:i,base:a,width:r,height:s}=t.getProps(["x","y","base","width","height"],e);let l,M,u,c,g;return t.horizontal?(g=s/2,l=Math.min(n,a),M=Math.max(n,a),u=i-g,c=i+g):(g=r/2,l=n-g,M=n+g,u=Math.min(i,a),c=Math.max(i,a)),{left:l,top:u,right:M,bottom:c}}function $t(t,e,n,i){return t?0:Ve(e,n,i)}function Hp(t,e,n){const i=t.options.borderWidth,a=t.borderSkipped,r=mc(i);return{t:$t(a.top,r.top,0,n),r:$t(a.right,r.right,0,e),b:$t(a.bottom,r.bottom,0,n),l:$t(a.left,r.left,0,e)}}function Fp(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),a=t.options.borderRadius,r=hn(a),s=Math.min(e,n),l=t.borderSkipped,M=i||le(a);return{topLeft:$t(!M||l.top||l.left,r.topLeft,0,s),topRight:$t(!M||l.top||l.right,r.topRight,0,s),bottomLeft:$t(!M||l.bottom||l.left,r.bottomLeft,0,s),bottomRight:$t(!M||l.bottom||l.right,r.bottomRight,0,s)}}function Jp(t){const e=Og(t),n=e.right-e.left,i=e.bottom-e.top,a=Hp(t,n/2,i/2),r=Fp(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:r},inner:{x:e.left+a.l,y:e.top+a.t,w:n-a.l-a.r,h:i-a.t-a.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(a.t,a.l)),topRight:Math.max(0,r.topRight-Math.max(a.t,a.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(a.b,a.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(a.b,a.r))}}}}function cl(t,e,n,i){const a=e===null,r=n===null,l=t&&!(a&&r)&&Og(t,i);return l&&(a||Va(e,l.left,l.right))&&(r||Va(n,l.top,l.bottom))}function Xp(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function Kp(t,e){t.rect(e.x,e.y,e.w,e.h)}function gl(t,e,n={}){const i=t.x!==n.x?-e:0,a=t.y!==n.y?-e:0,r=(t.x+t.w!==n.x+n.w?e:0)-i,s=(t.y+t.h!==n.y+n.h?e:0)-a;return{x:t.x+i,y:t.y+a,w:t.w+r,h:t.h+s,radius:t.radius}}class dr extends Ct{constructor(e){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,e&&Object.assign(this,e)}draw(e){const{inflateAmount:n,options:{borderColor:i,backgroundColor:a}}=this,{inner:r,outer:s}=Jp(this),l=Xp(s.radius)?Ka:Kp;e.save(),(s.w!==r.w||s.h!==r.h)&&(e.beginPath(),l(e,gl(s,n,r)),e.clip(),l(e,gl(r,-n,s)),e.fillStyle=i,e.fill("evenodd")),e.beginPath(),l(e,gl(r,n)),e.fillStyle=a,e.fill(),e.restore()}inRange(e,n,i){return cl(this,e,n,i)}inXRange(e,n){return cl(this,e,null,n)}inYRange(e,n){return cl(this,null,e,n)}getCenterPoint(e){const{x:n,y:i,base:a,horizontal:r}=this.getProps(["x","y","base","horizontal"],e);return{x:r?(n+a)/2:n,y:r?i:(i+a)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}dr.id="bar",dr.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},dr.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};const ii={average(t){if(!t.length)return!1;let e,n,i=0,a=0,r=0;for(e=0,n=t.length;e<n;++e){const s=t[e].element;if(s&&s.hasValue()){const l=s.tooltipPosition();i+=l.x,a+=l.y,++r}}return{x:i/r,y:a/r}},nearest(t,e){if(!t.length)return!1;let n=e.x,i=e.y,a=Number.POSITIVE_INFINITY,r,s,l;for(r=0,s=t.length;r<s;++r){const M=t[r].element;if(M&&M.hasValue()){const u=M.getCenterPoint(),c=Ss(e,u);c<a&&(a=c,l=M)}}if(l){const M=l.tooltipPosition();n=M.x,i=M.y}return{x:n,y:i}}};function At(t,e){return e&&(Te(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function wt(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
18
18
  `)>-1?t.split(`
19
- `):t}function qp(t,e){const{element:n,datasetIndex:i,index:a}=e,r=t.getDatasetMeta(i).controller,{label:s,value:l}=r.getLabelAndValue(a);return{chart:t,label:s,parsed:r.getParsed(a),raw:t.data.datasets[i].data[a],formattedValue:l,dataset:r.getDataset(),dataIndex:a,datasetIndex:i,element:n}}function Sg(t,e){const n=t.chart.ctx,{body:i,footer:a,title:r}=t,{boxWidth:s,boxHeight:l}=e,M=et(e.bodyFont),u=et(e.titleFont),c=et(e.footerFont),g=r.length,d=a.length,y=i.length,j=ot(e.padding);let D=j.height,f=0,N=i.reduce((p,m)=>p+m.before.length+m.lines.length+m.after.length,0);if(N+=t.beforeBody.length+t.afterBody.length,g&&(D+=g*u.lineHeight+(g-1)*e.titleSpacing+e.titleMarginBottom),N){const p=e.displayColors?Math.max(l,M.lineHeight):M.lineHeight;D+=y*p+(N-y)*M.lineHeight+(N-1)*e.bodySpacing}d&&(D+=e.footerMarginTop+d*c.lineHeight+(d-1)*e.footerSpacing);let I=0;const A=function(p){f=Math.max(f,n.measureText(p).width+I)};return n.save(),n.font=u.string,je(t.title,A),n.font=M.string,je(t.beforeBody.concat(t.afterBody),A),I=e.displayColors?s+2+e.boxPadding:0,je(i,p=>{je(p.before,A),je(p.lines,A),je(p.after,A)}),I=0,n.font=c.string,je(t.footer,A),n.restore(),f+=j.width,{width:f,height:D}}function eT(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}function tT(t,e,n,i){const{x:a,width:r}=i,s=n.caretSize+n.caretPadding;if(t==="left"&&a+r+s>e.width||t==="right"&&a-r-s<0)return!0}function nT(t,e,n,i){const{x:a,width:r}=n,{width:s,chartArea:{left:l,right:M}}=t;let u="center";return i==="center"?u=a<=(l+M)/2?"left":"right":a<=r/2?u="left":a>=s-r/2&&(u="right"),tT(u,t,e,n)&&(u="center"),u}function Eg(t,e,n){const i=n.yAlign||e.yAlign||eT(t,n);return{xAlign:n.xAlign||e.xAlign||nT(t,e,n,i),yAlign:i}}function iT(t,e){let{x:n,width:i}=t;return e==="right"?n-=i:e==="center"&&(n-=i/2),n}function aT(t,e,n){let{y:i,height:a}=t;return e==="top"?i+=n:e==="bottom"?i-=a+n:i-=a/2,i}function bg(t,e,n,i){const{caretSize:a,caretPadding:r,cornerRadius:s}=t,{xAlign:l,yAlign:M}=n,u=a+r,{topLeft:c,topRight:g,bottomLeft:d,bottomRight:y}=hn(s);let j=iT(e,l);const D=aT(e,M,u);return M==="center"?l==="left"?j+=u:l==="right"&&(j-=u):l==="left"?j-=Math.max(c,d)+a:l==="right"&&(j+=Math.max(g,y)+a),{x:Ve(j,0,i.width-e.width),y:Ve(D,0,i.height-e.height)}}function yr(t,e,n){const i=ot(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-i.right:t.x+i.left}function Cg(t){return At([],wt(t))}function rT(t,e,n){return Gt(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function wg(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class Nl extends Ct{constructor(e){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=e.chart||e._chart,this._chart=this.chart,this.options=e.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(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,i=this.options.setContext(this.getContext()),a=i.enabled&&n.options.animation&&i.animations,r=new Uc(this.chart,a);return a._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=rT(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:i}=n,a=i.beforeTitle.apply(this,[e]),r=i.title.apply(this,[e]),s=i.afterTitle.apply(this,[e]);let l=[];return l=At(l,wt(a)),l=At(l,wt(r)),l=At(l,wt(s)),l}getBeforeBody(e,n){return Cg(n.callbacks.beforeBody.apply(this,[e]))}getBody(e,n){const{callbacks:i}=n,a=[];return je(e,r=>{const s={before:[],lines:[],after:[]},l=wg(i,r);At(s.before,wt(l.beforeLabel.call(this,r))),At(s.lines,l.label.call(this,r)),At(s.after,wt(l.afterLabel.call(this,r))),a.push(s)}),a}getAfterBody(e,n){return Cg(n.callbacks.afterBody.apply(this,[e]))}getFooter(e,n){const{callbacks:i}=n,a=i.beforeFooter.apply(this,[e]),r=i.footer.apply(this,[e]),s=i.afterFooter.apply(this,[e]);let l=[];return l=At(l,wt(a)),l=At(l,wt(r)),l=At(l,wt(s)),l}_createItems(e){const n=this._active,i=this.chart.data,a=[],r=[],s=[];let l=[],M,u;for(M=0,u=n.length;M<u;++M)l.push(qp(this.chart,n[M]));return e.filter&&(l=l.filter((c,g,d)=>e.filter(c,g,d,i))),e.itemSort&&(l=l.sort((c,g)=>e.itemSort(c,g,i))),je(l,c=>{const g=wg(e.callbacks,c);a.push(g.labelColor.call(this,c)),r.push(g.labelPointStyle.call(this,c)),s.push(g.labelTextColor.call(this,c))}),this.labelColors=a,this.labelPointStyles=r,this.labelTextColors=s,this.dataPoints=l,l}update(e,n){const i=this.options.setContext(this.getContext()),a=this._active;let r,s=[];if(!a.length)this.opacity!==0&&(r={opacity:0});else{const l=ii[i.position].call(this,a,this._eventPosition);s=this._createItems(i),this.title=this.getTitle(s,i),this.beforeBody=this.getBeforeBody(s,i),this.body=this.getBody(s,i),this.afterBody=this.getAfterBody(s,i),this.footer=this.getFooter(s,i);const M=this._size=Sg(this,i),u=Object.assign({},l,M),c=Eg(this.chart,i,u),g=bg(i,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,r={opacity:1,x:g.x,y:g.y,width:M.width,height:M.height,caretX:l.x,caretY:l.y}}this._tooltipItems=s,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,i,a){const r=this.getCaretPosition(e,i,a);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(e,n,i){const{xAlign:a,yAlign:r}=this,{caretSize:s,cornerRadius:l}=i,{topLeft:M,topRight:u,bottomLeft:c,bottomRight:g}=hn(l),{x:d,y}=e,{width:j,height:D}=n;let f,N,I,A,p,m;return r==="center"?(p=y+D/2,a==="left"?(f=d,N=f-s,A=p+s,m=p-s):(f=d+j,N=f+s,A=p-s,m=p+s),I=f):(a==="left"?N=d+Math.max(M,c)+s:a==="right"?N=d+j-Math.max(u,g)-s:N=this.caretX,r==="top"?(A=y,p=A-s,f=N-s,I=N+s):(A=y+D,p=A+s,f=N+s,I=N-s),m=A),{x1:f,x2:N,x3:I,y1:A,y2:p,y3:m}}drawTitle(e,n,i){const a=this.title,r=a.length;let s,l,M;if(r){const u=Ws(i.rtl,this.x,this.width);for(e.x=yr(this,i.titleAlign,i),n.textAlign=u.textAlign(i.titleAlign),n.textBaseline="middle",s=et(i.titleFont),l=i.titleSpacing,n.fillStyle=i.titleColor,n.font=s.string,M=0;M<r;++M)n.fillText(a[M],u.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+l,M+1===r&&(e.y+=i.titleMarginBottom-l)}}_drawColorBox(e,n,i,a,r){const s=this.labelColors[i],l=this.labelPointStyles[i],{boxHeight:M,boxWidth:u,boxPadding:c}=r,g=et(r.bodyFont),d=yr(this,"left",r),y=a.x(d),j=M<g.lineHeight?(g.lineHeight-M)/2:0,D=n.y+j;if(r.usePointStyle){const f={radius:Math.min(u,M)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},N=a.leftForLtr(y,u)+u/2,I=D+M/2;e.strokeStyle=r.multiKeyBackground,e.fillStyle=r.multiKeyBackground,Us(e,f,N,I),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,Us(e,f,N,I)}else{e.lineWidth=le(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,e.strokeStyle=s.borderColor,e.setLineDash(s.borderDash||[]),e.lineDashOffset=s.borderDashOffset||0;const f=a.leftForLtr(y,u-c),N=a.leftForLtr(a.xPlus(y,1),u-c-2),I=hn(s.borderRadius);Object.values(I).some(A=>A!==0)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,Ka(e,{x:f,y:D,w:u,h:M,radius:I}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),Ka(e,{x:N,y:D+1,w:u-2,h:M-2,radius:I}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(f,D,u,M),e.strokeRect(f,D,u,M),e.fillStyle=s.backgroundColor,e.fillRect(N,D+1,u-2,M-2))}e.fillStyle=this.labelTextColors[i]}drawBody(e,n,i){const{body:a}=this,{bodySpacing:r,bodyAlign:s,displayColors:l,boxHeight:M,boxWidth:u,boxPadding:c}=i,g=et(i.bodyFont);let d=g.lineHeight,y=0;const j=Ws(i.rtl,this.x,this.width),D=function(_){n.fillText(_,j.x(e.x+y),e.y+d/2),e.y+=d+r},f=j.textAlign(s);let N,I,A,p,m,z,w;for(n.textAlign=s,n.textBaseline="middle",n.font=g.string,e.x=yr(this,f,i),n.fillStyle=i.bodyColor,je(this.beforeBody,D),y=l&&f!=="right"?s==="center"?u/2+c:u+2+c:0,p=0,z=a.length;p<z;++p){for(N=a[p],I=this.labelTextColors[p],n.fillStyle=I,je(N.before,D),A=N.lines,l&&A.length&&(this._drawColorBox(n,e,p,j,i),d=Math.max(g.lineHeight,M)),m=0,w=A.length;m<w;++m)D(A[m]),d=g.lineHeight;je(N.after,D)}y=0,d=g.lineHeight,je(this.afterBody,D),e.y-=r}drawFooter(e,n,i){const a=this.footer,r=a.length;let s,l;if(r){const M=Ws(i.rtl,this.x,this.width);for(e.x=yr(this,i.footerAlign,i),e.y+=i.footerMarginTop,n.textAlign=M.textAlign(i.footerAlign),n.textBaseline="middle",s=et(i.footerFont),n.fillStyle=i.footerColor,n.font=s.string,l=0;l<r;++l)n.fillText(a[l],M.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+i.footerSpacing}}drawBackground(e,n,i,a){const{xAlign:r,yAlign:s}=this,{x:l,y:M}=e,{width:u,height:c}=i,{topLeft:g,topRight:d,bottomLeft:y,bottomRight:j}=hn(a.cornerRadius);n.fillStyle=a.backgroundColor,n.strokeStyle=a.borderColor,n.lineWidth=a.borderWidth,n.beginPath(),n.moveTo(l+g,M),s==="top"&&this.drawCaret(e,n,i,a),n.lineTo(l+u-d,M),n.quadraticCurveTo(l+u,M,l+u,M+d),s==="center"&&r==="right"&&this.drawCaret(e,n,i,a),n.lineTo(l+u,M+c-j),n.quadraticCurveTo(l+u,M+c,l+u-j,M+c),s==="bottom"&&this.drawCaret(e,n,i,a),n.lineTo(l+y,M+c),n.quadraticCurveTo(l,M+c,l,M+c-y),s==="center"&&r==="left"&&this.drawCaret(e,n,i,a),n.lineTo(l,M+g),n.quadraticCurveTo(l,M,l+g,M),n.closePath(),n.fill(),a.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,i=this.$animations,a=i&&i.x,r=i&&i.y;if(a||r){const s=ii[e.position].call(this,this._active,this._eventPosition);if(!s)return;const l=this._size=Sg(this,e),M=Object.assign({},s,this._size),u=Eg(n,e,M),c=bg(e,M,u,n);(a._to!==c.x||r._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=l.width,this.height=l.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const a={width:this.width,height:this.height},r={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const s=ot(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(e.save(),e.globalAlpha=i,this.drawBackground(r,e,a,n),Rz(e,n.textDirection),r.y+=s.top,this.drawTitle(r,e,n),this.drawBody(r,e,n),this.drawFooter(r,e,n),Bz(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const i=this._active,a=e.map(({datasetIndex:l,index:M})=>{const u=this.chart.getDatasetMeta(l);if(!u)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:u.data[M],index:M}}),r=!Ra(i,a),s=this._positionChanged(a,n);(r||s)&&(this._active=a,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const a=this.options,r=this._active||[],s=this._getActiveElements(e,r,n,i),l=this._positionChanged(s,e),M=n||!Ra(s,r)||l;return M&&(this._active=s,(a.enabled||a.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),M}_getActiveElements(e,n,i,a){const r=this.options;if(e.type==="mouseout")return[];if(!a)return n;const s=this.chart.getElementsAtEventForMode(e,r.mode,r,i);return r.reverse&&s.reverse(),s}_positionChanged(e,n){const{caretX:i,caretY:a,options:r}=this,s=ii[r.position].call(this,e,n);return s!==!1&&(i!==s.x||a!==s.y)}}Nl.positioners=ii;var oT={id:"tooltip",_element:Nl,positioners:ii,afterInit(t,e,n){n&&(t.tooltip=new Nl({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",n)===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.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:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.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:St,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:St,beforeBody:St,beforeLabel:St,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return Ne(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:St,afterBody:St,beforeFooter:St,footer:St,afterFooter:St}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const sT=(t,e,n,i)=>(typeof e=="string"?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function lT(t,e,n,i){const a=t.indexOf(e);if(a===-1)return sT(t,e,n,i);const r=t.lastIndexOf(e);return a!==r?n:a}const MT=(t,e)=>t===null?null:Ve(Math.round(t),0,e);class jr extends ln{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const i=this.getLabels();for(const{index:a,label:r}of n)i[a]===r&&i.splice(a,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(Ne(e))return null;const i=this.getLabels();return n=isFinite(n)&&i[n]===e?n:lT(i,e,Me(n,e),this._addedLabels),MT(n,i.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:a}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(i=0),n||(a=this.getLabels().length-1)),this.min=i,this.max=a}buildTicks(){const e=this.min,n=this.max,i=this.options.offset,a=[];let r=this.getLabels();r=e===0&&n===r.length-1?r:r.slice(e,n+1),this._valueRange=Math.max(r.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let s=e;s<=n;s++)a.push({value:s});return a}getLabelForValue(e){const n=this.getLabels();return e>=0&&e<n.length?n[e]:e}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}jr.id="category",jr.defaults={ticks:{callback:jr.prototype.getLabelForValue}};function uT(t,e){const n=[],{bounds:a,step:r,min:s,max:l,precision:M,count:u,maxTicks:c,maxDigits:g,includeBounds:d}=t,y=r||1,j=c-1,{min:D,max:f}=e,N=!Ne(s),I=!Ne(l),A=!Ne(u),p=(f-D)/(g+1);let m=Hu((f-D)/j/y)*y,z,w,_,Y;if(m<1e-14&&!N&&!I)return[{value:D},{value:f}];Y=Math.ceil(f/m)-Math.floor(D/m),Y>j&&(m=Hu(Y*m/j/y)*y),Ne(M)||(z=Math.pow(10,M),m=Math.ceil(m*z)/z),a==="ticks"?(w=Math.floor(D/m)*m,_=Math.ceil(f/m)*m):(w=D,_=f),N&&I&&r&&pA((l-s)/r,m/1e3)?(Y=Math.round(Math.min((l-s)/m,c)),m=(l-s)/Y,w=s,_=l):A?(w=N?s:w,_=I?l:_,Y=u-1,m=(_-w)/Y):(Y=(_-w)/m,Un(Y,Math.round(Y),m/1e3)?Y=Math.round(Y):Y=Math.ceil(Y));const R=Math.max(Ju(m),Ju(w));z=Math.pow(10,Ne(M)?R:M),w=Math.round(w*z)/z,_=Math.round(_*z)/z;let k=0;for(N&&(d&&w!==s?(n.push({value:s}),w<s&&k++,Un(Math.round((w+k*m)*z)/z,s,kg(s,p,t))&&k++):w<s&&k++);k<Y;++k)n.push({value:Math.round((w+k*m)*z)/z});return I&&d&&_!==l?n.length&&Un(n[n.length-1].value,l,kg(l,p,t))?n[n.length-1].value=l:n.push({value:l}):(!I||_===l)&&n.push({value:_}),n}function kg(t,e,{horizontal:n,minRotation:i}){const a=ct(i),r=(n?Math.sin(a):Math.cos(a))||.001,s=.75*e*(""+t).length;return Math.min(e/r,s)}class Ir extends ln{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return Ne(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:a,max:r}=this;const s=M=>a=n?a:M,l=M=>r=i?r:M;if(e){const M=ht(a),u=ht(r);M<0&&u<0?l(0):M>0&&u>0&&s(0)}if(a===r){let M=1;(r>=Number.MAX_SAFE_INTEGER||a<=Number.MIN_SAFE_INTEGER)&&(M=Math.abs(r*.05)),l(r+M),e||s(a-M)}this.min=a,this.max=r}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=e,a;return i?(a=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,a>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${a} ticks. Limiting to 1000.`),a=1e3)):(a=this.computeTickLimit(),n=n||11),n&&(a=Math.min(n,a)),a}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let i=this.getTickLimit();i=Math.max(2,i);const a={maxTicks:i,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},r=this._range||this,s=uT(a,r);return e.bounds==="ticks"&&Fu(s,this,"value"),e.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const e=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&e.length){const a=(i-n)/Math.max(e.length-1,1)/2;n-=a,i+=a}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(e){return Wn(e,this.chart.options.locale,this.options.ticks.format)}}class dl extends Ir{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Re(e)?e:0,this.max=Re(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,i=ct(this.options.ticks.minRotation),a=(e?Math.sin(i):Math.cos(i))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,r.lineHeight/a))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}dl.id="linear",dl.defaults={ticks:{callback:ar.formatters.numeric}};function _g(t){return t/Math.pow(10,Math.floor(at(t)))===1}function cT(t,e){const n=Math.floor(at(e.max)),i=Math.ceil(e.max/Math.pow(10,n)),a=[];let r=nt(t.min,Math.pow(10,Math.floor(at(e.min)))),s=Math.floor(at(r)),l=Math.floor(r/Math.pow(10,s)),M=s<0?Math.pow(10,Math.abs(s)):1;do a.push({value:r,major:_g(r)}),++l,l===10&&(l=1,++s,M=s>=0?1:M),r=Math.round(l*Math.pow(10,s)*M)/M;while(s<n||s===n&&l<i);const u=nt(t.max,r);return a.push({value:u,major:_g(r)}),a}class vg extends ln{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const i=Ir.prototype.parse.apply(this,[e,n]);if(i===0){this._zero=!0;return}return Re(i)&&i>0?i:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Re(e)?Math.max(0,e):null,this.max=Re(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let i=this.min,a=this.max;const r=M=>i=e?i:M,s=M=>a=n?a:M,l=(M,u)=>Math.pow(10,Math.floor(at(M))+u);i===a&&(i<=0?(r(1),s(10)):(r(l(i,-1)),s(l(a,1)))),i<=0&&r(l(a,-1)),a<=0&&s(l(i,1)),this._zero&&this.min!==this._suggestedMin&&i===l(this.min,0)&&r(l(i,-1)),this.min=i,this.max=a}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},i=cT(n,this);return e.bounds==="ticks"&&Fu(i,this,"value"),e.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(e){return e===void 0?"0":Wn(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=at(e),this._valueRange=at(this.max)-at(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(at(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}vg.id="logarithmic",vg.defaults={ticks:{callback:ar.formatters.logarithmic,major:{enabled:!0}}};function yl(t){const e=t.ticks;if(e.display&&t.display){const n=ot(e.backdropPadding);return Me(e.font&&e.font.size,oe.font.size)+n.height}return 0}function gT(t,e,n){return n=Te(n)?n:[n],{w:nz(t,e.string,n),h:n.length*e.lineHeight}}function Qg(t,e,n,i,a){return t===i||t===a?{start:e-n/2,end:e+n/2}:t<i||t>a?{start:e-n,end:e}:{start:e,end:e+n}}function NT(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),i=[],a=[],r=t._pointLabels.length,s=t.options.pointLabels,l=s.centerPointLabels?Ee/r:0;for(let M=0;M<r;M++){const u=s.setContext(t.getPointLabelContext(M));a[M]=u.padding;const c=t.getPointPosition(M,t.drawingArea+a[M],l),g=et(u.font),d=gT(t.ctx,g,t._pointLabels[M]);i[M]=d;const y=gt(t.getIndexAngle(M)+l),j=Math.round(Os(y)),D=Qg(j,c.x,d.w,0,180),f=Qg(j,c.y,d.h,90,270);dT(n,e,y,D,f)}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=yT(t,i,a)}function dT(t,e,n,i,a){const r=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let l=0,M=0;i.start<e.l?(l=(e.l-i.start)/r,t.l=Math.min(t.l,e.l-l)):i.end>e.r&&(l=(i.end-e.r)/r,t.r=Math.max(t.r,e.r+l)),a.start<e.t?(M=(e.t-a.start)/s,t.t=Math.min(t.t,e.t-M)):a.end>e.b&&(M=(a.end-e.b)/s,t.b=Math.max(t.b,e.b+M))}function yT(t,e,n){const i=[],a=t._pointLabels.length,r=t.options,s=yl(r)/2,l=t.drawingArea,M=r.pointLabels.centerPointLabels?Ee/a:0;for(let u=0;u<a;u++){const c=t.getPointPosition(u,l+s+n[u],M),g=Math.round(Os(gt(c.angle+be))),d=e[u],y=DT(c.y,d.h,g),j=jT(g),D=IT(c.x,d.w,j);i.push({x:c.x,y,textAlign:j,left:D,top:y,right:D+d.w,bottom:y+d.h})}return i}function jT(t){return t===0||t===180?"center":t<180?"left":"right"}function IT(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function DT(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function fT(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let a=e-1;a>=0;a--){const r=i.setContext(t.getPointLabelContext(a)),s=et(r.font),{x:l,y:M,textAlign:u,left:c,top:g,right:d,bottom:y}=t._pointLabelItems[a],{backdropColor:j}=r;if(!Ne(j)){const D=hn(r.borderRadius),f=ot(r.backdropPadding);n.fillStyle=j;const N=c-f.left,I=g-f.top,A=d-c+f.width,p=y-g+f.height;Object.values(D).some(m=>m!==0)?(n.beginPath(),Ka(n,{x:N,y:I,w:A,h:p,radius:D}),n.fill()):n.fillRect(N,I,A,p)}Xa(n,t._pointLabels[a],l,M+s.lineHeight/2,s,{color:r.color,textAlign:u,textBaseline:"middle"})}}function Yg(t,e,n,i){const{ctx:a}=t;if(n)a.arc(t.xCenter,t.yCenter,e,0,fe);else{let r=t.getPointPosition(0,e);a.moveTo(r.x,r.y);for(let s=1;s<i;s++)r=t.getPointPosition(s,e),a.lineTo(r.x,r.y)}}function hT(t,e,n,i){const a=t.ctx,r=e.circular,{color:s,lineWidth:l}=e;!r&&!i||!s||!l||n<0||(a.save(),a.strokeStyle=s,a.lineWidth=l,a.setLineDash(e.borderDash),a.lineDashOffset=e.borderDashOffset,a.beginPath(),Yg(t,n,r,i),a.closePath(),a.stroke(),a.restore())}function mT(t,e,n){return Gt(t,{label:n,index:e,type:"pointLabel"})}class Dr extends Ir{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=ot(yl(this.options)/2),n=this.width=this.maxWidth-e.width,i=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+n/2+e.left),this.yCenter=Math.floor(this.top+i/2+e.top),this.drawingArea=Math.floor(Math.min(n,i)/2)}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!1);this.min=Re(e)&&!isNaN(e)?e:0,this.max=Re(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/yl(this.options))}generateTickLabels(e){Ir.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,i)=>{const a=Se(this.options.pointLabels.callback,[n,i],this);return a||a===0?a:""}).filter((n,i)=>this.chart.getDataVisibility(i))}fit(){const e=this.options;e.display&&e.pointLabels.display?NT(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,i,a){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((i-a)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,i,a))}getIndexAngle(e){const n=fe/(this._pointLabels.length||1),i=this.options.startAngle||0;return gt(e*n+ct(i))}getDistanceFromCenterForValue(e){if(Ne(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if(Ne(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e<n.length){const i=n[e];return mT(this.getContext(),e,i)}}getPointPosition(e,n,i=0){const a=this.getIndexAngle(e)-be+i;return{x:Math.cos(a)*n+this.xCenter,y:Math.sin(a)*n+this.yCenter,angle:a}}getPointPositionForValue(e,n){return this.getPointPosition(e,this.getDistanceFromCenterForValue(n))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:n,top:i,right:a,bottom:r}=this._pointLabelItems[e];return{left:n,top:i,right:a,bottom:r}}drawBackground(){const{backgroundColor:e,grid:{circular:n}}=this.options;if(e){const i=this.ctx;i.save(),i.beginPath(),Yg(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),i.closePath(),i.fillStyle=e,i.fill(),i.restore()}}drawGrid(){const e=this.ctx,n=this.options,{angleLines:i,grid:a}=n,r=this._pointLabels.length;let s,l,M;if(n.pointLabels.display&&fT(this,r),a.display&&this.ticks.forEach((u,c)=>{if(c!==0){l=this.getDistanceFromCenterForValue(u.value);const g=a.setContext(this.getContext(c-1));hT(this,g,l,r)}}),i.display){for(e.save(),s=r-1;s>=0;s--){const u=i.setContext(this.getPointLabelContext(s)),{color:c,lineWidth:g}=u;!g||!c||(e.lineWidth=g,e.strokeStyle=c,e.setLineDash(u.borderDash),e.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),M=this.getPointPosition(s,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(M.x,M.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,i=n.ticks;if(!i.display)return;const a=this.getIndexAngle(0);let r,s;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(a),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((l,M)=>{if(M===0&&!n.reverse)return;const u=i.setContext(this.getContext(M)),c=et(u.font);if(r=this.getDistanceFromCenterForValue(this.ticks[M].value),u.showLabelBackdrop){e.font=c.string,s=e.measureText(l.label).width,e.fillStyle=u.backdropColor;const g=ot(u.backdropPadding);e.fillRect(-s/2-g.left,-r-c.size/2-g.top,s+g.width,c.size+g.height)}Xa(e,l.label,0,-r,c,{color:u.color})}),e.restore()}drawTitle(){}}Dr.id="radialLinear",Dr.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ar.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}},Dr.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Dr.descriptors={angleLines:{_fallback:"grid"}};const fr={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}},Ke=Object.keys(fr);function AT(t,e){return t-e}function Ug(t,e){if(Ne(e))return null;const n=t._adapter,{parser:i,round:a,isoWeekday:r}=t._parseOpts;let s=e;return typeof i=="function"&&(s=i(s)),Re(s)||(s=typeof i=="string"?n.parse(s,i):n.parse(s)),s===null?null:(a&&(s=a==="week"&&(Dn(r)||r===!0)?n.startOf(s,"isoWeek",r):n.startOf(s,a)),+s)}function Pg(t,e,n,i){const a=Ke.length;for(let r=Ke.indexOf(t);r<a-1;++r){const s=fr[Ke[r]],l=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-e)/(l*s.size))<=i)return Ke[r]}return Ke[a-1]}function zT(t,e,n,i,a){for(let r=Ke.length-1;r>=Ke.indexOf(n);r--){const s=Ke[r];if(fr[s].common&&t._adapter.diff(a,i,s)>=e-1)return s}return Ke[n?Ke.indexOf(n):0]}function pT(t){for(let e=Ke.indexOf(t)+1,n=Ke.length;e<n;++e)if(fr[Ke[e]].common)return Ke[e]}function Rg(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:i,hi:a}=Es(n,e),r=n[i]>=e?n[i]:n[a];t[r]=!0}}function TT(t,e,n,i){const a=t._adapter,r=+a.startOf(e[0].value,i),s=e[e.length-1].value;let l,M;for(l=r;l<=s;l=+a.add(l,1,i))M=n[l],M>=0&&(e[M].major=!0);return e}function Bg(t,e,n){const i=[],a={},r=e.length;let s,l;for(s=0;s<r;++s)l=e[s],a[l]=s,i.push({value:l,major:!1});return r===0||!n?i:TT(t,i,a,n)}class hr extends ln{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n){const i=e.time||(e.time={}),a=this._adapter=new Z0._date(e.adapters.date);a.init(n),Qn(i.displayFormats,a.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:Ug(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,i=e.time.unit||"day";let{min:a,max:r,minDefined:s,maxDefined:l}=this.getUserBounds();function M(u){!s&&!isNaN(u.min)&&(a=Math.min(a,u.min)),!l&&!isNaN(u.max)&&(r=Math.max(r,u.max))}(!s||!l)&&(M(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&M(this.getMinMax(!1))),a=Re(a)&&!isNaN(a)?a:+n.startOf(Date.now(),i),r=Re(r)&&!isNaN(r)?r:+n.endOf(Date.now(),i)+1,this.min=Math.min(a,r-1),this.max=Math.max(a+1,r)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],i=e[e.length-1]),{min:n,max:i}}buildTicks(){const e=this.options,n=e.time,i=e.ticks,a=i.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&a.length&&(this.min=this._userMin||a[0],this.max=this._userMax||a[a.length-1]);const r=this.min,s=this.max,l=OA(a,r,s);return this._unit=n.unit||(i.autoSkip?Pg(n.minUnit,this.min,this.max,this._getLabelCapacity(r)):zT(this,l.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:pT(this._unit),this.initOffsets(a),e.reverse&&l.reverse(),Bg(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e){let n=0,i=0,a,r;this.options.offset&&e.length&&(a=this.getDecimalForValue(e[0]),e.length===1?n=1-a:n=(this.getDecimalForValue(e[1])-a)/2,r=this.getDecimalForValue(e[e.length-1]),e.length===1?i=r:i=(r-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;n=Ve(n,0,s),i=Ve(i,0,s),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const e=this._adapter,n=this.min,i=this.max,a=this.options,r=a.time,s=r.unit||Pg(r.minUnit,n,i,this._getLabelCapacity(n)),l=Me(r.stepSize,1),M=s==="week"?r.isoWeekday:!1,u=Dn(M)||M===!0,c={};let g=n,d,y;if(u&&(g=+e.startOf(g,"isoWeek",M)),g=+e.startOf(g,u?"day":s),e.diff(i,n,s)>1e5*l)throw new Error(n+" and "+i+" are too far apart with stepSize of "+l+" "+s);const j=a.ticks.source==="data"&&this.getDataTimestamps();for(d=g,y=0;d<i;d=+e.add(d,l,s),y++)Rg(c,d,j);return(d===i||a.bounds==="ticks"||y===1)&&Rg(c,d,j),Object.keys(c).sort((D,f)=>D-f).map(D=>+D)}getLabelForValue(e){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(e,i.tooltipFormat):n.format(e,i.displayFormats.datetime)}_tickFormatFunction(e,n,i,a){const r=this.options,s=r.time.displayFormats,l=this._unit,M=this._majorUnit,u=l&&s[l],c=M&&s[M],g=i[n],d=M&&c&&g&&g.major,y=this._adapter.format(e,a||(d?c:u)),j=r.ticks.callback;return j?Se(j,[y,n,i],this):y}generateTickLabels(e){let n,i,a;for(n=0,i=e.length;n<i;++n)a=e[n],a.label=this._tickFormatFunction(a.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,i=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+i)*n.factor)}getValueForPixel(e){const n=this._offsets,i=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+i*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,i=this.ctx.measureText(e).width,a=ct(this.isHorizontal()?n.maxRotation:n.minRotation),r=Math.cos(a),s=Math.sin(a),l=this._resolveTickFontOptions(0).size;return{w:i*r+l*s,h:i*s+l*r}}_getLabelCapacity(e){const n=this.options.time,i=n.displayFormats,a=i[n.unit]||i.millisecond,r=this._tickFormatFunction(e,0,Bg(this,[e],this._majorUnit),a),s=this._getLabelSize(r),l=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return l>0?l:1}getDataTimestamps(){let e=this._cache.data||[],n,i;if(e.length)return e;const a=this.getMatchingVisibleMetas();if(this._normalized&&a.length)return this._cache.data=a[0].controller.getAllParsedValues(this);for(n=0,i=a.length;n<i;++n)e=e.concat(a[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,i;if(e.length)return e;const a=this.getLabels();for(n=0,i=a.length;n<i;++n)e.push(Ug(this,a[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return ec(e.sort(AT))}}hr.id="time",hr.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};function mr(t,e,n){let i=0,a=t.length-1,r,s,l,M;n?(e>=t[i].pos&&e<=t[a].pos&&({lo:i,hi:a}=tn(t,"pos",e)),{pos:r,time:l}=t[i],{pos:s,time:M}=t[a]):(e>=t[i].time&&e<=t[a].time&&({lo:i,hi:a}=tn(t,"time",e)),{time:r,pos:l}=t[i],{time:s,pos:M}=t[a]);const u=s-r;return u?l+(M-l)*(e-r)/u:l}class Zg extends hr{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=mr(n,this.min),this._tableRange=mr(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:i}=this,a=[],r=[];let s,l,M,u,c;for(s=0,l=e.length;s<l;++s)u=e[s],u>=n&&u<=i&&a.push(u);if(a.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(s=0,l=a.length;s<l;++s)c=a[s+1],M=a[s-1],u=a[s],Math.round((c+M)/2)!==u&&r.push({time:u,pos:s/(l-1)});return r}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?e=this.normalize(n.concat(i)):e=n.length?n:i,e=this._cache.all=e,e}getDecimalForValue(e){return(mr(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,i=this.getDecimalForPixel(e)/n.factor-n.end;return mr(this._table,i*this._tableRange+this._minPos,!0)}}Zg.id="timeseries",Zg.defaults=hr.defaults;var pn;(function(t){t.ChartRendered="chart:rendered",t.ChartUpdated="chart:updated",t.ChartDestroyed="chart:destroyed",t.LabelsUpdated="labels:updated"})(pn||(pn={}));function Ar(t,e,n,i){t(e,n),i!==void 0&&i.emit(pn.ChartRendered)}function LT(t,e){t.update(),e!==void 0&&e.emit(pn.ChartUpdated)}function zr(t,e){t.destroy(),e!==void 0&&e.emit(pn.ChartDestroyed)}function xT(t,e){const n={labels:typeof t.labels=="undefined"?[]:[...t.labels],datasets:[]};return Vg(n,{...t},e),n}function Vg(t,e,n){const i=[];t.datasets=e.datasets.map(a=>{const r=t.datasets.find(s=>s[n]===a[n]);return!r||!a.data||i.includes(r)?{...a}:(i.push(r),Object.assign(r,a),r)})}function OT(t,e,n){t.data.labels=e,n!==void 0&&n.emit(pn.LabelsUpdated)}function ST(t,e){t.options={...e}}function ET(t,e){const n=t.datasets.map(a=>a.label),i=e.datasets.map(a=>a.label);return e.datasets.length===t.datasets.length&&n.every((a,r)=>a===i[r])}const bT="Please remove the <template></template> tags from your chart component. See https://vue-chartjs.org/guide/#vue-single-file-components",CT="Update ERROR: chart instance not found",wT=((t,e,n)=>o.defineComponent({props:{chartData:{type:Object,required:!0},chartOptions:{type:Object,default:()=>{}},datasetIdKey:{type:String,default:"label"},chartId:{type:String,default:t},width:{type:Number,default:400},height:{type:Number,default:400},cssClasses:{type:String,default:""},styles:{type:Object,default:()=>{}},plugins:{type:Array,default:()=>[]}},setup(i,a){ni.register(n);const r=o.shallowRef(null),s=o.ref(null);function l(g,d){if(r.value!==null&&zr(o.toRaw(r.value),a),s.value===null)throw new Error(bT);{const y=xT(g,i.datasetIdKey),j=s.value.getContext("2d");j!==null&&(r.value=new ni(j,{type:e,data:o.isProxy(g)?new Proxy(y,{}):y,options:d,plugins:i.plugins}))}}function M(g,d){const y=o.isProxy(g)?o.toRaw(g):{...g},j=o.isProxy(d)?o.toRaw(d):{...d};if(Object.keys(j).length>0){const D=o.toRaw(r.value);ET(y,j)&&D!==null?(Vg(D==null?void 0:D.data,y,i.datasetIdKey),y.labels!==void 0&&OT(D,y.labels,a),c()):(D!==null&&zr(D,a),Ar(l,i.chartData,i.chartOptions,a))}else r.value!==null&&zr(o.toRaw(r.value),a),Ar(l,i.chartData,i.chartOptions,a)}function u(g){const d=o.toRaw(r.value);d!==null?(ST(d,g),c()):Ar(l,i.chartData,i.chartOptions,a)}function c(){const g=o.toRaw(r.value);g!==null?LT(g,a):console.error(CT)}return o.watch(()=>i.chartData,(g,d)=>M(g,d),{deep:!0}),o.watch(()=>i.chartOptions,g=>u(g),{deep:!0}),o.onMounted(()=>{"datasets"in i.chartData&&i.chartData.datasets.length>0&&Ar(l,i.chartData,i.chartOptions,a)}),o.onBeforeUnmount(()=>{r.value!==null&&zr(o.toRaw(r.value),a)}),a.expose({chart:r,updateChart:c}),()=>o.h("div",{style:i.styles,class:i.cssClasses},[o.h("canvas",{id:i.chartId,width:i.width,height:i.height,ref:s})])}}))("bar-chart","bar",ir);var KO="";const kT={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 t=this.labels||[],e=this.min===void 0?0:this.min,n=t.length?t.length-1:100,i=this.max===void 0?n:this.max,a=this.minValue===void 0?25:this.minValue;t.length&&this.minValue===void 0&&(a=1);let r=this.maxValue||75;if(t.length&&this.maxValue===void 0&&(r=t.length-2),i<=e)throw new Error("Invalid props min or max");if(a>r)throw new Error("Invalid props minValue or maxValue");let s=this.rangeMargin===void 0?this.step:this.rangeMargin,l=s%this.step;return l&&(s=s+this.step-l),{valueMin:a<e?e:a,valueMax:r>i?i:r,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:s}},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(t){let e=parseFloat(t.target.value);e<=this.valueMax-this.rangeMarginValue&&e>=this.minimum?this.valueMin=e:t.target.value=this.valueMin},onInputMaxChange(t){let e=parseFloat(t.target.value);e>=this.valueMin+this.rangeMarginValue&&e<=this.maximum?this.valueMax=e:t.target.value=this.valueMax},onLeftThumbMousedown(t){if(t.preventDefault(),this.startX=t.clientX,t.type==="touchstart")if(t.touches.length===1)this.startX=t.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMin,this.barBox=t.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onLeftThumbMousemove),document.addEventListener("mouseup",this.onLeftThumbMouseup),document.addEventListener("touchmove",this.onLeftThumbMousemove),document.addEventListener("touchend",this.onLeftThumbMouseup)},onLeftThumbMousemove(t){this.mouseMoveCounter++;let e=t.clientX;t.type==="touchmove"&&(e=t.touches[0].clientX);let i=(e-this.startX)/this.barBox.width,a=this.barValue+(this.maximum-this.minimum)*i;a-=a%this.step,a<this.minimum?a=this.minimum:a>this.valueMax-this.rangeMarginValue&&(a=this.valueMax-this.rangeMarginValue),this.valueMin=a},onLeftThumbMouseup(){document.removeEventListener("mousemove",this.onLeftThumbMousemove),document.removeEventListener("mouseup",this.onLeftThumbMouseup),document.removeEventListener("touchmove",this.onLeftThumbMousemove),document.removeEventListener("touchend",this.onLeftThumbMouseup)},onRightThumbMousedown(t){if(t.preventDefault(),this.startX=t.clientX,t.type==="touchstart")if(t.touches.length===1)this.startX=t.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMax,this.barBox=t.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onRightThumbMousemove),document.addEventListener("mouseup",this.onRightThumbMouseup),document.addEventListener("touchmove",this.onRightThumbMousemove),document.addEventListener("touchend",this.onRightThumbMouseup)},onRightThumbMousemove(t){this.mouseMoveCounter++;let e=t.clientX;t.type==="touchmove"&&(e=t.touches[0].clientX);let i=(e-this.startX)/this.barBox.width,a=this.barValue+(this.maximum-this.minimum)*i;a-=a%this.step,a<this.valueMin+this.rangeMarginValue?a=this.valueMin+this.rangeMarginValue:a>this.maximum&&(a=this.maximum),this.valueMax=a},onRightThumbMouseup(){document.removeEventListener("mousemove",this.onRightThumbMousemove),document.removeEventListener("mouseup",this.onRightThumbMouseup),document.removeEventListener("touchmove",this.onRightThumbMousemove),document.removeEventListener("touchend",this.onRightThumbMouseup)},onMouseWheel(t){if(this.preventWheel===!0||!t.shiftKey&&!t.ctrlKey)return;let e=this.step;t.deltaY<0&&(e=-e),t.shiftKey&&t.ctrlKey?this.valueMin+e>=this.minimum&&this.valueMax+e<=this.maximum&&(this.valueMin=this.valueMin+e,this.valueMax=this.valueMax+e):t.ctrlKey?(e=this.valueMax+e,e<this.valueMin+this.rangeMarginValue?e=this.valueMin+this.rangeMarginValue:e>this.maximum&&(e=this.maximum),this.valueMax=e):t.shiftKey&&(e=this.valueMin+e,e<this.minimum?e=this.minimum:e>this.valueMax-this.rangeMarginValue&&(e=this.valueMax-this.rangeMarginValue),this.valueMin=e)},triggerInput(){let t=0;this.step.toString().includes(".")&&(t=2);let e={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(t)),maxValue:parseFloat(this.valueMax.toFixed(t))};this.$emit("input",e)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let t=this.labels||[],e=t.length?t.length-1:100;return this.max===void 0?e:this.max},stepCount(){let t=this.labels||[];return t.length?t.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 t=0;return this.step.toString().includes(".")&&(t=2),(this.valueMin||0).toFixed(t)},barMaxVal(){let t=0;return this.step.toString().includes(".")&&(t=2),(this.valueMax||100).toFixed(t)},scaleLabels(){let t=this.labels||[];return t.length===0&&(t=[],t.push(this.minimum),t.push(this.maximum)),t}},watch:{valueMin(){this.triggerInput()},valueMax(){this.triggerInput()},minValue(t){this.valueMin=t<this.minimum?this.minimum:t},maxValue(t){this.valueMax=t>this.maximum?this.maximum:t}},mounted(){}},_T={class:"bar"},vT=["min","max","step","value"],QT={class:"caption"},YT={class:"min-caption"},UT={class:"bar-inner"},PT=["min","max","step","value"],RT={class:"caption"},BT={class:"max-caption"},ZT={key:0,class:"ruler"},VT={key:1,class:"sub-ruler"},GT={key:2,class:"labels"};function WT(t,e,n,i,a,r){return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([n.baseClassName,a.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:e[10]||(e[10]=o.withModifiers((...s)=>r.onMouseWheel&&r.onMouseWheel(...s),["prevent","stop"]))},[o.createElementVNode("div",_T,[o.createElementVNode("div",{class:"bar-left",style:o.normalizeStyle({width:r.barMin+"%"}),onClick:e[0]||(e[0]=(...s)=>r.onBarLeftClick&&r.onBarLeftClick(...s))},null,4),o.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:r.minimum,max:r.maximum,step:n.step,value:a.valueMin,onInput:e[1]||(e[1]=o.withModifiers((...s)=>r.onInputMinChange&&r.onInputMinChange(...s),["stop","prevent"]))},null,40,vT),o.createElementVNode("div",{class:"thumb thumb-left",onMousedown:e[2]||(e[2]=(...s)=>r.onLeftThumbMousedown&&r.onLeftThumbMousedown(...s)),onTouchstart:e[3]||(e[3]=(...s)=>r.onLeftThumbMousedown&&r.onLeftThumbMousedown(...s))},[o.createElementVNode("div",QT,[o.createElementVNode("span",YT,o.toDisplayString(n.minCaption||r.barMinVal),1)])],32),o.createElementVNode("div",UT,[o.createElementVNode("div",{class:"bar-inner-left",onClick:e[4]||(e[4]=(...s)=>r.onInnerBarLeftClick&&r.onInnerBarLeftClick(...s))}),o.createElementVNode("div",{class:"bar-inner-right",onClick:e[5]||(e[5]=(...s)=>r.onInnerBarRightClick&&r.onInnerBarRightClick(...s))})]),o.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:r.minimum,max:r.maximum,step:n.step,value:a.valueMax,onInput:e[6]||(e[6]=o.withModifiers((...s)=>r.onInputMaxChange&&r.onInputMaxChange(...s),["stop","prevent"]))},null,40,PT),o.createElementVNode("div",{class:"thumb thumb-right",onMousedown:e[7]||(e[7]=(...s)=>r.onRightThumbMousedown&&r.onRightThumbMousedown(...s)),onTouchstart:e[8]||(e[8]=(...s)=>r.onRightThumbMousedown&&r.onRightThumbMousedown(...s))},[o.createElementVNode("div",RT,[o.createElementVNode("span",BT,o.toDisplayString(n.maxCaption||r.barMaxVal),1)])],32),o.createElementVNode("div",{class:"bar-right",style:o.normalizeStyle({width:r.barMax+"%"}),onClick:e[9]||(e[9]=(...s)=>r.onBarRightClick&&r.onBarRightClick(...s))},null,4)]),n.ruler?(o.openBlock(),o.createElementBlock("div",ZT,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.stepCount,s=>(o.openBlock(),o.createElementBlock("div",{key:s,class:"ruler-rule"}))),128))])):o.createCommentVNode("",!0),r.subStepCount?(o.openBlock(),o.createElementBlock("div",VT,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.subStepCount,s=>(o.openBlock(),o.createElementBlock("div",{key:s,class:"ruler-sub-rule"}))),128))])):o.createCommentVNode("",!0),n.label?(o.openBlock(),o.createElementBlock("div",GT,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.scaleLabels,s=>(o.openBlock(),o.createElementBlock("div",{class:"label",key:s},o.toDisplayString(s),1))),128))])):o.createCommentVNode("",!0)],34)}var $T=Ze(kT,[["render",WT]]);const HT=o.defineComponent({components:{DhIcon:ye},props:{mainText:{type:String,default:"Advanced"},filterMissingText:{type:String,default:"Filter Missing"},matchText:{type:String,default:"Match"},excludeText:{type:String,default:"Exclude"}},data(){return{activeFilter:!1,isFilterMissing:!1,isMatch:!1,isExclude:!1}},emits:["match","exclude","filter_missing"],mounted(){this.isMatch=!0},methods:{toggleFilter(){this.activeFilter=!this.activeFilter},matchFilter(){this.isMatch=!0,this.isExclude=!1,this.$emit("match",this.isMatch)},excludeFilter(){this.isMatch=!1,this.isExclude=!0,this.$emit("exclude",this.isExclude)},missingFilter(){this.isFilterMissing=!this.isFilterMissing,this.$emit("filter_missing",this.isFilterMissing),this.isFilterMissing&&this.isMatch?this.matchFilter():this.isFilterMissing&&this.isExclude&&this.excludeFilter()}}}),FT={class:"dh-advanced-filter-container"},JT={class:"advance_section"},XT={key:0},KT={class:"list-none"},qT=["checked"],eL=["checked"],tL=["checked"];function nL(t,e,n,i,a,r){const s=o.resolveComponent("dh-icon");return o.openBlock(),o.createElementBlock("div",FT,[o.createElementVNode("div",JT,[o.createElementVNode("span",{class:"toggle-icon",onClick:e[0]||(e[0]=l=>t.toggleFilter())},[o.createTextVNode(o.toDisplayString(t.mainText)+" ",1),o.createVNode(s,{"icon-name":t.activeFilter?"arrow-up":"arrow-down",size:20},null,8,["icon-name"])]),t.activeFilter?(o.openBlock(),o.createElementBlock("div",XT,[o.renderSlot(t.$slots,"default"),o.createElementVNode("ul",KT,[o.createElementVNode("li",null,[o.createElementVNode("label",null,[o.createElementVNode("input",{checked:t.isFilterMissing,name:"number_filter",type:"checkbox",onChange:e[1]||(e[1]=l=>t.missingFilter())},null,40,qT),o.createTextVNode(" "+o.toDisplayString(t.filterMissingText),1)])]),o.createElementVNode("li",null,[o.createElementVNode("label",null,[o.createElementVNode("input",{checked:t.isMatch,name:"number_filter",type:"radio",onChange:e[2]||(e[2]=l=>t.matchFilter())},null,40,eL),o.createTextVNode(" "+o.toDisplayString(t.matchText),1)]),o.createElementVNode("label",null,[o.createElementVNode("input",{checked:t.isExclude,name:"number_filter",type:"radio",onChange:e[3]||(e[3]=l=>t.excludeFilter())},null,40,tL),o.createTextVNode(" "+o.toDisplayString(t.excludeText),1)])])])])):o.createCommentVNode("",!0)])])}var Gg=Ze(HT,[["render",nL]]),qO="";ni.register(oT,dr,jr,dl);const iL=o.defineComponent({components:{Bar:wT,MultiRangeSlider:$T,DhAdvancedFilter:Gg},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},includeForm:{type:Boolean,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,labels:[]}},mounted(){this.isMatch=!0,this.setChartData(this.numberRange),this.highlightChart(),this.labels=[this.BarMinValue,this.max]},methods:{matchFilter(){if(!this.isDisable){this.isMatch=!0,this.isExclude=!1;var t=this.chartData.datasets[0].data;this.chartLines=this.chartData.datasets[0],this.chartData.datasets[0].backgroundColor=[];for(let e=0;e<=t.length;e++)t[e]>=this.min&&t[e]<=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 t=this.chartData.datasets[0].data;this.chartLines=this.chartData.datasets[0],this.chartData.datasets[0].backgroundColor=[];for(let e=0;e<t.length;e++)t[e]>=this.min&&t[e]<=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 t=this.chartData.datasets[0].data;if(this.chartLines=this.chartData.datasets[0],this.chartData.datasets[0].backgroundColor=[],this.validated)for(let e=1;e<=t.length;e++)this.chartData.datasets[0].backgroundColor.push("#e0e0e0");else this.isMatch&&this.matchFilter(),this.isExclude&&this.excludeFilter()},changeMin(t){let e=t.target.value;this.min=e||"1",this.BarMinValue=e?this.getFirstIndex(parseInt(e)):1,this.isMatch&&!this.isDisable&&this.matchFilter(),this.isExclude&&!this.isDisable&&this.excludeFilter()},changeMax(t){let e=t.target.value;this.BarMaxValue=e&&e>this.maxNumber(this.numberRange)?this.numberRange.length:this.getLastIndex(parseInt(e)),this.max=e&&e>this.maxNumber(this.numberRange)?this.maxNumber(this.numberRange):e,this.isMatch&&!this.isDisable&&this.matchFilter(),this.isExclude&&!this.isDisable&&this.excludeFilter()},setChartData(t){t=this.sortData(t),this.removeChartData();let e=this.chartData.labels;for(let n=0;n<t.length;n++)e.push(t[n].key),this.chart_dta.push(t[n].count);this.chartData.datasets[0].data=this.chart_dta},highlightChart(){var t=this.chartData.datasets[0].data;this.chartLines=this.chartData.datasets[0],this.chartData.datasets[0].backgroundColor=[];for(let e=0;e<=t.length;e++)t[e]>=this.min&&t[e]<=this.max?this.chartData.datasets[0].backgroundColor.push("#5ea9e5"):this.chartData.datasets[0].backgroundColor.push("#e0e0e0")},updateBarChart(t){const{minValue:e,maxValue:n}=t;this.BarMinValue=e,this.BarMaxValue=n;var i=this.chartData.datasets[0].data;this.min=i[this.BarMinValue]?i[this.BarMinValue]:"1",this.max=i[this.BarMaxValue]?i[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=[]},sortData(t){return t.slice().sort(function(e,n){return e.count-n.count})},maxNumber(t){if(t.length!=0)return t.reduce((e,n)=>e=e>n.count?e:n.count,0)},getLastIndex(t){let e=this.chartData.datasets[0].data,n=0;for(let i=t;i>=0;i--)if(e.lastIndexOf(i)!==-1){n=e.lastIndexOf(i);break}else continue;return n},getFirstIndex(t){let e=this.chartData.datasets[0].data,n=0;for(let i=t;i<=this.max;i++)if(e.lastIndexOf(i)!==-1){n=e.lastIndexOf(i);break}else continue;return n}}}),aL={class:"dh-range-container"},rL={class:"bar-chart"},oL={key:0,class:"input-group-section"},sL={class:"input-group sb-input"},lL=["disabled","max","value"],ML={class:"input-group sb-input"},uL=["disabled","max","min","value"];function cL(t,e,n,i,a,r){const s=o.resolveComponent("Bar"),l=o.resolveComponent("MultiRangeSlider"),M=o.resolveComponent("dh-advanced-filter");return o.openBlock(),o.createElementBlock("div",aL,[o.createElementVNode("div",rL,[o.createVNode(s,{"chart-data":t.chartData,"chart-id":t.chartId,"chart-options":t.chartOptions,"dataset-id-key":t.datasetIdKey,height:t.height,width:t.width},null,8,["chart-data","chart-id","chart-options","dataset-id-key","height","width"]),o.createVNode(l,{"base-class-name":`multi-range-slider range-slider ${t.isDisable}`,label:!0,labels:t.labels,max:t.rangeMax,"max-caption":`${t.max}`,"max-value":t.BarMaxValue,min:1,"min-caption":`${t.min}`,"min-value":t.BarMinValue,"range-margin":0,ruler:!1,step:t.steps,onInput:t.updateBarChart},null,8,["base-class-name","labels","max","max-caption","max-value","min-caption","min-value","step","onInput"])]),t.includeForm?(o.openBlock(),o.createElementBlock("div",oL,[o.createElementVNode("div",sL,[o.createElementVNode("label",{class:o.normalizeClass(`dh-body-2 input-to ${t.validated?"disable":""}`)}," From ",2),o.createElementVNode("input",{class:"form-input text",disabled:!!t.validated,max:`${t.max}`,min:"1",placeholder:"From",type:"number",value:`${t.min}`,onInput:e[0]||(e[0]=u=>t.changeMin(u))},null,40,lL)]),o.createElementVNode("div",ML,[o.createElementVNode("label",{class:o.normalizeClass(`dh-body-2 input-to ${t.validated?"disable":""}`)}," To ",2),o.createElementVNode("input",{class:"form-input text",disabled:!!t.validated,max:`${t.maxNumber(t.numberRange)}`,min:`${t.min}`,placeholder:"To",type:"number",value:`${t.max}`,onInput:e[1]||(e[1]=u=>t.changeMax(u))},null,40,uL)])])):o.createCommentVNode("",!0),o.renderSlot(t.$slots,"input"),o.createVNode(M,{onExclude:t.excludeFilter,onFilter_missing:t.missingFilter,onMatch:t.matchFilter},{default:o.withCtx(()=>[o.renderSlot(t.$slots,"filter")]),_:3},8,["onExclude","onFilter_missing","onMatch"])])}var Wg=Ze(iL,[["render",cL]]),eS="",tS="";const gL={id:"dp-container"},NL=o.createElementVNode("div",{class:"dp__calendar_range"},[o.createElementVNode("p",null,"From"),o.createElementVNode("p",null,"To")],-1),dL={class:"dp__multi"},yL=["value"],jL=["value"],IL=o.createTextVNode(" Back "),DL=["onClick"],fL=["onClick"],hL=["onClick"],mL=["onClick"],AL=["onClick"],zL=["onClick"],pL=["onClick"],TL=["onClick"],LL=o.createElementVNode("div",{id:"tags",class:"dp__calendar_tags"},null,-1),xL={__name:"AdvancedDatePicker",props:{numberRange:{type:Array,required:!0}},emits:["update"],setup(t,{emit:e}){const n=o.ref(["",""]),i=o.ref(null),a=o.ref(null),r=o.ref(null),s=o.ref(!1),l=o.ref([{label:"Today",range:[new Date,new Date],slot:"today"},{label:"Previous week",range:[ou(ru(new Date)),ru(new Date)],slot:"previousWeek"},{label:"This week",range:[ou(new Date),_D(new Date)],slot:"week"},{label:"Next week",range:[QD(new Date),vD(new Date().setDate(new Date().getDate()+7))],slot:"nextWeek"},{label:"This month",range:[ci(new Date),ui(new Date)],slot:"currentMonth"},{label:"Previous month",range:[ci(tt(new Date,1)),ui(tt(new Date,1))],slot:"previousMonth"},{label:"Last 3 months",range:[ci(tt(new Date,3)),ui(tt(new Date,1))],slot:"threeMonths"},{label:"Last 6 months",range:[ci(tt(new Date,6)),ui(tt(new Date,1))],slot:"sixMonths"},{label:"Last year",range:[aN(new Date),iN(new Date)],slot:"yearly"}]),M=d=>{n.value=d,console.log(n.value),e("update",n.value)};function u(d){a.value=d.target.value,n.value=[d.target.value,i.value]}function c(d){i.value=d.target.value,n.value=[a.value,d.target.value]}o.onMounted(()=>{r.value.openMenu()});function g(){r.value.openMenu()}return(d,y)=>(o.openBlock(),o.createElementBlock("div",gL,[NL,o.createVNode(o.unref(Pa),{ref_key:"datePicker",ref:r,modelValue:n.value,"onUpdate:modelValue":[y[2]||(y[2]=j=>n.value=j),M],"auto-apply":"","day-names":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],"enable-time-picker":!1,"multi-calendars":"","multi-calendars-solo":"","multi-static":!1,offset:12,position:"left","preset-ranges":l.value,range:"","select-text":"Apply","text-input":"",uid:"advanced",onClosed:g},{"dp-input":o.withCtx(()=>[o.createElementVNode("div",dL,[o.createElementVNode("input",{class:"dp__input dp__multi_input",placeholder:"MM/DD/YYYY",type:"text",value:a.value?a.value:n.value[0],onInput:y[0]||(y[0]=j=>u(j))},null,40,yL),o.createElementVNode("input",{class:"dp__input dp__multi_input",placeholder:"MM/DD/YYYY",type:"text",value:i.value?i.value:n.value[1],onInput:y[1]||(y[1]=j=>c(j))},null,40,jL)])]),"arrow-left":o.withCtx(()=>[o.createVNode(ye,{"icon-name":"previous",size:20})]),"arrow-right":o.withCtx(()=>[o.createVNode(ye,{"icon-name":"next",size:20})]),"calendar-icon":o.withCtx(()=>[IL]),"clear-icon":o.withCtx(()=>[]),"action-preview":o.withCtx(()=>[]),"action-select":o.withCtx(()=>[]),previousWeek:o.withCtx(({label:j,range:D,presetDateRange:f})=>[(o.openBlock(),o.createBlock(o.Teleport,{to:"#tags"},[o.createElementVNode("span",{onClick:N=>f(D)},o.toDisplayString(j),9,DL)]))]),week:o.withCtx(({label:j,range:D,presetDateRange:f})=>[(o.openBlock(),o.createBlock(o.Teleport,{to:"#tags"},[o.createElementVNode("span",{onClick:N=>f(D)},o.toDisplayString(j),9,fL)]))]),nextWeek:o.withCtx(({label:j,range:D,presetDateRange:f})=>[(o.openBlock(),o.createBlock(o.Teleport,{to:"#tags"},[o.createElementVNode("span",{onClick:N=>f(D)},o.toDisplayString(j),9,hL)]))]),currentMonth:o.withCtx(({label:j,range:D,presetDateRange:f})=>[(o.openBlock(),o.createBlock(o.Teleport,{to:"#tags"},[o.createElementVNode("span",{onClick:N=>f(D)},o.toDisplayString(j),9,mL)]))]),previousMonth:o.withCtx(({label:j,range:D,presetDateRange:f})=>[(o.openBlock(),o.createBlock(o.Teleport,{to:"#tags"},[o.createElementVNode("span",{onClick:N=>f(D)},o.toDisplayString(j),9,AL)]))]),threeMonths:o.withCtx(({label:j,range:D,presetDateRange:f})=>[(o.openBlock(),o.createBlock(o.Teleport,{to:"#tags"},[o.createElementVNode("span",{onClick:N=>f(D)},o.toDisplayString(j),9,zL)]))]),sixMonths:o.withCtx(({label:j,range:D,presetDateRange:f})=>[(o.openBlock(),o.createBlock(o.Teleport,{to:"#tags"},[o.createElementVNode("span",{onClick:N=>f(D)},o.toDisplayString(j),9,pL)]))]),yearly:o.withCtx(({label:j,range:D,presetDateRange:f})=>[(o.openBlock(),o.createBlock(o.Teleport,{to:"#tags"},[o.createElementVNode("span",{onClick:N=>f(D)},o.toDisplayString(j),9,TL)]))]),_:1},8,["modelValue","preset-ranges"]),o.createVNode(Wg,{class:"dp__calendar_range_number","number-range":t.numberRange,steps:1},{input:o.withCtx(()=>[LL]),filter:o.withCtx(()=>[o.createVNode(Bu,{data:s.value,label:"Include time",onChange:y[3]||(y[3]=j=>s.value=j)},null,8,["data"])]),_:1},8,["number-range"])]))}};var nS="";const OL=o.createTextVNode(" Back "),SL=o.createElementVNode("div",null,"today",-1),EL={__name:"DatePicker",props:{inline:{type:Boolean,default:!0}},emits:["update"],setup(t,{emit:e}){const n=o.ref(),i=o.ref(null),a=s=>{n.value=s,e("update",n.value)},r=o.ref([{date:xt(new Date,0),type:"dot",tooltip:[{text:"Dot with tooltip",color:"blue"}]}]);return(s,l)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(Pa),{ref_key:"datePicker",ref:i,modelValue:n.value,"onUpdate:modelValue":[l[0]||(l[0]=M=>n.value=M),a],"day-names":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],"enable-time-picker":!1,inline:t.inline,markers:r.value,"month-name-format":"short",offset:12,placeholder:"MM/DD/YYYY","select-text":"Apply","text-input":"",uid:"base"},{"arrow-left":o.withCtx(()=>[o.createVNode(ye,{"icon-name":"previous",size:20})]),"arrow-right":o.withCtx(()=>[o.createVNode(ye,{"icon-name":"next",size:20})]),"calendar-icon":o.withCtx(()=>[OL]),"clear-icon":o.withCtx(()=>[]),"action-preview":o.withCtx(()=>[]),"marker-tooltip":o.withCtx(()=>[SL]),_:1},8,["modelValue","inline","markers"])]))}};var iS="";const bL=["src"],CL={key:3,class:"menu-item-text-wrapper"};var $g=Ze(o.defineComponent({__name:"DropdownMenuItem",props:{item:{type:Object,required:!0},textEllipsisStyle:{type:String,required:!1,default:"none",validator:t=>["none","ellipsis","fit-content"].includes(t)},iconSize:{type:Number,required:!1,default:24}},setup(t){const e=t;return(n,i)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[t.item.iconUrl?(o.openBlock(),o.createElementBlock("img",{key:0,alt:"icon image",class:"icon icon-url",src:t.item.iconUrl},null,8,bL)):o.createCommentVNode("",!0),t.item.iconUrl?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(ye,o.mergeProps({key:1,class:"icon"},{...t.item,size:e.iconSize}),null,16)),t.item.subText?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("span",{key:2,class:o.normalizeClass(["dh-body-2",t.textEllipsisStyle])},o.toDisplayString(t.item.text),3)),t.item.subText?(o.openBlock(),o.createElementBlock("div",CL,[o.createElementVNode("span",{class:o.normalizeClass(["dh-body-1",t.textEllipsisStyle])},o.toDisplayString(t.item.text),3),o.createElementVNode("span",{class:o.normalizeClass(["dh-body-4-medium",t.textEllipsisStyle])},o.toDisplayString(t.item.subText),3)])):o.createCommentVNode("",!0),t.item.isSelected?(o.openBlock(),o.createBlock(ye,{key:4,class:"icon-blue icon-accept","icon-name":"accept",size:16})):o.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-35071082"]]),rS="";const wL=["data-e2e","onClick"],kL=["onClick"];var _L=Ze(o.defineComponent({__name:"DropdownMenu",props:{items:{type:Object,required:!0},textEllipsisStyle:{type:String,required:!1,default:"none",validator:t=>["none","ellipsis","fit-content"].includes(t)},iconSize:{type:Number,required:!1,default:24},closeOnClickOutside:{type:Boolean,required:!1,default:!0},zIndex:{type:Number,required:!1,default:100},closeOnItemSelected:{type:Boolean,required:!1,default:!0}},emits:["itemSelected","close"],setup(t,{emit:e}){const n=t;o.onMounted(()=>{document.addEventListener("click",r=>{i(r)})});function i(r){const s=r.target,l=document.querySelector("[data-id='dropdown-menu']");l&&!l.contains(r.target)&&!s.classList.contains("dropdown-toggle")&&n.closeOnClickOutside&&e("close")}function a(r){e("itemSelected",r),n.closeOnItemSelected&&e("close")}return(r,s)=>{const l=o.resolveComponent("router-link");return o.openBlock(),o.createElementBlock("div",{class:"dropdown-menu","data-id":"dropdown-menu",style:o.normalizeStyle({"z-index":n.zIndex})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.items,M=>(o.openBlock(),o.createElementBlock("div",{key:M.iconName,class:"menu-item","data-e2e":M.dataE2eTag,onClick:u=>a(M)},[M.url?(o.openBlock(),o.createBlock(l,{key:0,class:"center-vertical",to:{path:M.url},onClick:u=>a(M)},{default:o.withCtx(()=>[o.createVNode($g,{"icon-size":t.iconSize,item:M,"text-ellipsis-style":t.textEllipsisStyle},null,8,["icon-size","item","text-ellipsis-style"])]),_:2},1032,["to","onClick"])):(o.openBlock(),o.createElementBlock("div",{key:1,class:"center-vertical",onClick:u=>a(M)},[o.createVNode($g,{"icon-size":t.iconSize,item:M,"text-ellipsis-style":t.textEllipsisStyle},null,8,["icon-size","item","text-ellipsis-style"])],8,kL))],8,wL))),128))],4)}}}),[["__scopeId","data-v-f922f7ec"]]),sS="";const vL={key:0,class:"invalid-feedback"},QL=o.defineComponent({__name:"Error",props:{errors:{type:Object,required:!1,default:void 0}},setup(t){const e=t;return(n,i)=>{var a;return o.unref(e).errors&&((a=o.unref(e).errors)==null?void 0:a.length)>0?(o.openBlock(),o.createElementBlock("div",vL,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.errors,r=>(o.openBlock(),o.createElementBlock("span",{key:r},o.toDisplayString(r),1))),128))])):o.createCommentVNode("",!0)}}}),YL=o.defineComponent({components:{DhIcon:ye},props:{title:{type:String,default:"Advanced"},isAdvancedSettingsOpen:{type:Boolean,default:!1}},data(){return{isAdvancedSettingsCurrentlyOpen:!1}},watch:{isAdvancedSettingsOpen:function(t){this.isAdvancedSettingsCurrentlyOpen=t}},mounted(){this.isAdvancedSettingsCurrentlyOpen=this.isAdvancedSettingsOpen}}),UL={class:"dh-body-1-medium"},PL=o.createTextVNode(" Content ");function RL(t,e,n,i,a,r){const s=o.resolveComponent("dh-icon");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",{class:o.normalizeClass(["advanced-panel-header clickable",{opened:t.isAdvancedSettingsCurrentlyOpen,closed:!t.isAdvancedSettingsCurrentlyOpen}]),"data-e2e":"expansion-panel-button",onClick:e[0]||(e[0]=l=>t.isAdvancedSettingsCurrentlyOpen=!t.isAdvancedSettingsCurrentlyOpen)},[o.createElementVNode("h4",UL,o.toDisplayString(t.title),1),o.createVNode(s,{class:"icon","icon-name":t.isAdvancedSettingsCurrentlyOpen?"arrow-up":"arrow-down",size:24},null,8,["icon-name"])],2),t.isAdvancedSettingsCurrentlyOpen?o.renderSlot(t.$slots,"content",{key:0},()=>[PL]):o.createCommentVNode("",!0)],64)}var BL=Ze(YL,[["render",RL]]),lS="";const ZL=o.createElementVNode("label",{for:"upload_pdf"},[o.createTextVNode(" Drag and drop file or "),o.createElementVNode("span",{id:"upload"},"browse")],-1),VL={key:1,class:"file__upload_items"},GL={class:"file__upload_list_item"},WL={class:"file__upload_list_item_label"},$L=["title"],HL={key:0,class:"label__antivirus"},FL={key:1,class:"label__antivirus label__antivirus--failed"},JL={key:2,class:"label__antivirus label__antivirus--detected"},XL=o.createElementVNode("br",null,null,-1),KL={key:3},qL={key:4},ex={key:0},tx=["value"],nx=["href"],ix={key:2,class:"file__upload_placeholder"},ax={key:3,class:"file__upload_action"},rx=o.createElementVNode("button",{class:"file__upload_action_cancel"},"Cancel",-1),ox={__name:"FileUpload",props:{uploadProgress:{type:Array,required:!0},modelValue:{type:FileList,required:!0},inline:{type:Boolean,default:!1},errorOccured:{type:Array,required:!0},errorMessage:{type:String,default:"an error occured while uploading"},fileSaved:{type:Boolean,default:!1},virusCheck:{type:Array,required:!0},virusCheckText:{type:String,default:"Antivirus check ..."},virusCheckFailedText:{type:String,default:"Antivirus check failed"},virusDetectedText:{type:String,default:"Virus detected"},deleteConfirmationText:{type:String,default:"Are you sure you want to delete it permanently? this action will be irreversible"},zIndex:{type:Number,default:99}},emits:["update:modelValue","save:modelValue","reload"],setup(t,{emit:e}){const n=t,i=o.ref(null),a=o.ref(!1),r=o.ref([]),s=o.ref([".pdf",".csv",".doc",".jpeg",".mp4",".png",".txt",".xls"]);function l(A,p=2){if(!+A)return"0 Bytes";const m=1024,z=p<0?0:p,w=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],_=Math.floor(Math.log(A)/Math.log(m));return`${parseFloat((A/Math.pow(m,_)).toFixed(z))} ${w[_]}`}function M(A){return s.value.includes(c(A))?c(A).slice(1):"unknown"}function u(A){const p=A.lastIndexOf(".");let m=A.slice(0,p);return m.length<=15?m:m.slice(0,15)+"... "}function c(A){return A.replace(/.*(?=\.)/g,"")}function g(A){A.stopPropagation(),r.value=i.value.files,r.value&&(a.value=!0),e("update:modelValue",r.value)}function d(A){A.stopPropagation(),A.dataTransfer.dropEffect="copy"}function y(A){A.stopPropagation(),a.value=!0,r.value=A.dataTransfer.files,e("update:modelValue",r.value)}function j(A){window.confirm(n.deleteConfirmationText)&&D(A)}function D(A){const p=new DataTransfer;for(let m=0;m<r.value.length;m++){const z=r.value[m];A!==m&&p.items.add(z)}r.value=p.files,r.value.length==0&&(a.value=!1)}function f(){e("save:modelValue",r.value)}function N(A){return URL.createObjectURL(A)}function I(A){A.preventDefault(),e("reload")}return(A,p)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["file__upload",t.inline?"":"file__upload_box"])},[t.fileSaved?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"file__upload_btn",onDragover:p[1]||(p[1]=o.withModifiers(m=>d(m),["prevent"])),onDrop:p[2]||(p[2]=o.withModifiers(m=>y(m),["prevent"]))},[o.createVNode(ye,{class:"file__upload_btn_icon","icon-name":"upload",size:24}),ZL,o.createElementVNode("input",{id:"upload_pdf",ref_key:"upload",ref:i,multiple:"",name:"file",type:"file",onInput:p[0]||(p[0]=m=>g(m))},null,544)],32)),a.value?(o.openBlock(),o.createElementBlock("div",VL,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,(m,z)=>(o.openBlock(),o.createElementBlock("div",{key:z,class:o.normalizeClass(["file__upload_list",t.inline?"":"file__upload_list_box"])},[o.createVNode(ye,{class:o.normalizeClass(t.errorOccured[z]?"file__upload_list_icon":""),"icon-name":"file-"+M(m.name),size:40},null,8,["class","icon-name"]),n.uploadProgress[z]==100&&t.fileSaved&&!t.errorOccured[z]&&t.virusCheck[z]=="loading"?(o.openBlock(),o.createBlock(ye,{key:0,class:"file__upload_list_icon_sub file__upload_list_icon_sub--loading","icon-name":"states",size:20,style:o.normalizeStyle({"z-index":n.zIndex})},null,8,["style"])):o.createCommentVNode("",!0),n.uploadProgress[z]==100&&t.fileSaved&&t.virusCheck[z]=="failed"?(o.openBlock(),o.createBlock(ye,{key:1,class:"file__upload_list_icon_sub","icon-name":"warning-filled",size:20,style:o.normalizeStyle({"z-index":n.zIndex})},null,8,["style"])):o.createCommentVNode("",!0),n.uploadProgress[z]==100&&t.fileSaved&&t.virusCheck[z]=="detected"?(o.openBlock(),o.createBlock(ye,{key:2,class:"file__upload_list_icon_sub","icon-name":"danger",size:20,style:o.normalizeStyle({"z-index":n.zIndex})},null,8,["style"])):o.createCommentVNode("",!0),t.fileSaved&&t.errorOccured[z]?(o.openBlock(),o.createBlock(ye,{key:3,class:"file__upload_list_icon_sub","icon-name":"error",size:20,style:o.normalizeStyle({"z-index":n.zIndex})},null,8,["style"])):o.createCommentVNode("",!0),o.createElementVNode("div",GL,[o.createElementVNode("div",WL,[o.createElementVNode("div",null,[o.createElementVNode("span",{title:m.name},o.toDisplayString(u(m.name))+o.toDisplayString(c(m.name)),9,$L),n.uploadProgress[z]==100&&t.fileSaved&&!t.errorOccured[z]&&t.virusCheck[z]=="loading"?(o.openBlock(),o.createElementBlock("span",HL,[o.createTextVNode(o.toDisplayString(t.virusCheckText)+" ",1),o.createVNode(ye,{class:"file__upload_list_icon_sub--loading","icon-name":"processing",size:18})])):o.createCommentVNode("",!0),n.uploadProgress[z]==100&&t.fileSaved&&t.virusCheck[z]=="failed"?(o.openBlock(),o.createElementBlock("span",FL,o.toDisplayString(t.virusCheckFailedText),1)):o.createCommentVNode("",!0),n.uploadProgress[z]==100&&t.fileSaved&&t.virusCheck[z]=="detected"?(o.openBlock(),o.createElementBlock("span",JL,o.toDisplayString(t.virusDetectedText),1)):o.createCommentVNode("",!0),XL,t.fileSaved&&!t.errorOccured[z]||!t.errorOccured[z]&&t.virusCheck[z]?(o.openBlock(),o.createElementBlock("span",KL,o.toDisplayString(l(m.size)),1)):o.createCommentVNode("",!0),t.fileSaved&&t.errorOccured[z]?(o.openBlock(),o.createElementBlock("span",qL,o.toDisplayString(t.errorMessage),1)):o.createCommentVNode("",!0)]),t.fileSaved?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("span",ex,o.toDisplayString(n.uploadProgress[z])+"%",1))]),t.fileSaved?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("progress",{key:0,id:"file",max:"100",value:n.uploadProgress[z]},o.toDisplayString(n.uploadProgress[z])+"% ",9,tx))]),t.fileSaved&&!t.virusCheck[z]&&!t.errorOccured[z]?(o.openBlock(),o.createElementBlock("a",{key:4,class:"file__upload_list_download",download:"",href:N(m)},[o.createVNode(ye,{class:"file__upload_list_download_icon","icon-name":"download",size:24})],8,nx)):o.createCommentVNode("",!0),t.fileSaved&&t.errorOccured[z]?(o.openBlock(),o.createElementBlock("a",{key:5,class:"file__upload_list_retry",onClick:p[3]||(p[3]=w=>I(w))},[o.createVNode(ye,{class:"file__upload_list_retry_icon","icon-name":"retry",size:24})])):o.createCommentVNode("",!0),n.uploadProgress[z]!==100?(o.openBlock(),o.createBlock(ye,{key:6,class:"file__upload_list_delete","icon-name":"close",size:24,onClick:w=>D(z)},null,8,["onClick"])):(o.openBlock(),o.createBlock(ye,{key:7,class:"file__upload_list_delete","icon-name":"delete",size:24,onClick:w=>j(z)},null,8,["onClick"]))],2))),128))])):o.createCommentVNode("",!0),!a.value&&!t.inline?(o.openBlock(),o.createElementBlock("div",ix," No file selected ")):o.createCommentVNode("",!0),!t.inline&&!t.fileSaved?(o.openBlock(),o.createElementBlock("div",ax,[rx,o.createElementVNode("button",{class:o.normalizeClass(["file__upload_action_done",a.value&&!t.fileSaved?"file__upload_action_done--active":""]),onClick:f}," Done ",2)])):o.createCommentVNode("",!0)],2))}};var MS="";const sx={class:"input__dropdown"},lx={class:"input__dropdown_second"},Mx=["tabindex"],ux=["onClick"],cx={__name:"InputDropdown",props:{list:{type:Array,required:!0},icon:{type:String,required:!0},default:{type:String,required:!1,default:null},tabindex:{type:Number,required:!1,default:0}},emits:["update"],setup(t,{emit:e}){const n=t,i=o.ref(n.default?n.default:n.list.length>0?n.list[0]:null),a=o.ref(!1),r=o.ref(null);o.onMounted(()=>{e("update","",i.value)});function s(){e("update",r.value.value,i.value)}return(l,M)=>(o.openBlock(),o.createElementBlock("div",sx,[o.createElementVNode("input",{ref_key:"name",ref:r,class:"input__dropdown_text",type:"text",onInput:s},null,544),o.createElementVNode("div",lx,[o.createVNode(ye,{"icon-name":t.icon,size:18},null,8,["icon-name"]),o.createElementVNode("div",{class:"custom__select",tabindex:t.tabindex,onBlur:M[1]||(M[1]=u=>a.value=!1)},[o.createElementVNode("div",{class:o.normalizeClass(["custom__select_selected",{"custom__select--open":a.value}]),onClick:M[0]||(M[0]=u=>a.value=!a.value)},o.toDisplayString(i.value),3),o.createElementVNode("div",{class:o.normalizeClass(["custom__select_items",{"custom__select--hide":!a.value}])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.list,(u,c)=>(o.openBlock(),o.createElementBlock("div",{key:c,onClick:g=>{i.value=u,a.value=!1,s()}},o.toDisplayString(u),9,ux))),128))],2)],40,Mx)])]))}};var gx="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAR2SURBVHgBlVVdaFtlGH6+LydJ89OYtHVbf+YyhoPK5uK2G3/oIlTYhRctKApebAiCXowtDLzxIi3sUqnBiiBerF6osGl7J0idqWyD4WSZF3PzZ4tt7Y/NmnRN0yYn5/t8z9e0Ne35Wnwg5Jzzvt/7vO/7vT8MO6BnYDEuPP4TXMi4kIgyxqOrElEAZEZKZLhVHhpJBDPb2WE6wcsDZtwwXEkJGd9G7T9WRJqZ+f6RxONprUp9BDIs3CLJJM7tSLAJkg5xIT6EVSTCSEFLdPKT5ai36hqWzBVj8v+R1IFVM8y0ekcSvuwWop6BfFgaoR8kY0RSf04qRUriSh6l/AzcDY3wRtpgmWUSUhSewFYuITMFwV9MJ5iKzFgTCHfITtcWEhvW/H38NfYpViZ+UZ7Jmn920B3dZxDuPLnljOQsFmYiSY8J+53Xook734nE4v1r+P2rBMoTt1VUqzRC/ThFU85P2m7CCYKxc3bVrhNZRjDpdPHmoxnMXBmErFbgDIncza+RuzGE1QTXQ1k0fElF9OpAJcaZK+5kZuHuKCqlAraDbWzmxmWUJm5pXEH89Y8W49w0cNrBGYWlqTvbFvjTna1oigQoLQKP/ryq0eIooSFOxcCP6AxJaWkkDAEfw/uJ52GaJt658D1yhSmdGdJmJ+iOZEyrQaFeOPss9u3xKXUVHlXN8UO78U2qFx0tbuxv9eOzZDepCr0ZGlsGdUFYR3L04C50H4ugt2s/HkwXsVgqoyXUgLbdQeITtgFFEPK58VR7iFKk81dEuU7m5yWkXmtEo98Ao0jeS12FWeVo3+WnZhT48edJvNl3RTkU8nN8fKoJAWNJE5HdsJJl6SG6WVZhbsyZfuxVlSLwwbtd2NMcUM/2wReOP4Enoy2rVuhbQTRhpep25pGiwBmvZJ2EVcuD8/fewGwloIy1NftUdUlqUkn7glPKWpsblO7flTDO330FFjyORKSd4bBcY9CCYboUXFe3S9UmYmuvNeTJGRrEziTM1q/eJieLaWhAnuDbiQO12cZgLa0Ay1UI+7eyUfqjMwehWymMHHNXqxc57Y003W5aR3YrfwCXsp3KkCvgAfd7wX3073PRLAOGxztxbWqfrudtpC/R9uWrrGa/1KjS6MSXfxzFFxNdsJhXxUmOQbj8+Py35zB07xilh2kyAoom328/K6KRM740mUxtHoz2fRTmBKYfMMxXaP+wCMzcAsyHCyQLomRElayQs+y1tAVUAKnLtdW+3ke8avSRILNGZpPMjlsozlMBUI6u36Ebaz8M+OjiPUHwvc9g9KeyWkqLD13ITdpkG9OBPmcQNPrW3uti7hlYjkq3Z5iSH8vPEslCfSV1Ha7g1EucSt/Exe8krv/qrzMQeMxCUyu3d1WGutt5lW+QyXDZLPf9M26cldAODkfY99zSUU4FvL6+kdoK1xKt4dDbc3G3EUmSQhw7EDLqFSFZmvZtf2bQvm8HHeyA2FvFGPd6TlN0R0iZJj0Lq2NSZiWsLGNsjKOYvjlIbbIN/gUK8Nn86IrnuAAAAABJRU5ErkJggg==";function zt(t){return[null,void 0].indexOf(t)!==-1}function Nx(t,e,n){const{object:i,valueProp:a,mode:r}=o.toRefs(t),s=o.getCurrentInstance().proxy,l=n.iv,M=g=>{l.value=c(g);const d=u(g);e.emit("change",d,s),e.emit("input",d),e.emit("update:modelValue",d)},u=g=>i.value||zt(g)?g:Array.isArray(g)?g.map(d=>d[a.value]):g[a.value],c=g=>zt(g)?r.value==="single"?{}:[]:g;return{update:M}}function dx(t,e){const{value:n,modelValue:i,mode:a,valueProp:r}=o.toRefs(t),s=o.ref(a.value!=="single"?[]:{}),l=i&&i.value!==void 0?i:n,M=o.computed(()=>a.value==="single"?s.value[r.value]:s.value.map(c=>c[r.value])),u=o.computed(()=>a.value!=="single"?s.value.map(c=>c[r.value]).join(","):s.value[r.value]);return{iv:s,internalValue:s,ev:l,externalValue:l,textValue:u,plainValue:M}}function yx(t,e,n){const{regex:i}=o.toRefs(t),a=o.getCurrentInstance().proxy,r=n.isOpen,s=n.open,l=o.ref(null),M=o.ref(null),u=()=>{l.value=""},c=y=>{l.value=y.target.value},g=y=>{if(i&&i.value){let j=i.value;typeof j=="string"&&(j=new RegExp(j)),y.key.match(j)||y.preventDefault()}},d=y=>{if(i&&i.value){let D=(y.clipboardData||window.clipboardData).getData("Text"),f=i.value;typeof f=="string"&&(f=new RegExp(f)),D.split("").every(N=>!!N.match(f))||y.preventDefault()}e.emit("paste",y,a)};return o.watch(l,y=>{!r.value&&y&&s(),e.emit("search-change",y,a)}),{search:l,input:M,clearSearch:u,handleSearchInput:c,handleKeypress:g,handlePaste:d}}function jx(t,e,n){const{groupSelect:i,mode:a,groups:r,disabledProp:s}=o.toRefs(t),l=o.ref(null),M=c=>{c===void 0||c!==null&&c[s.value]||r.value&&c&&c.group&&(a.value==="single"||!i.value)||(l.value=c)};return{pointer:l,setPointer:M,clearPointer:()=>{M(null)}}}function pr(t,e=!0){return e?String(t).toLowerCase().trim():String(t).normalize("NFD").replace(/\p{Diacritic}/gu,"").toLowerCase().trim()}function Ix(t){return Object.prototype.toString.call(t)==="[object Object]"}function Dx(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every(function(i,a){return i===n[a]})}function fx(t,e,n){const{options:i,mode:a,trackBy:r,limit:s,hideSelected:l,createTag:M,createOption:u,label:c,appendNewTag:g,appendNewOption:d,multipleLabel:y,object:j,loading:D,delay:f,resolveOnLoad:N,minChars:I,filterResults:A,clearOnSearch:p,clearOnSelect:m,valueProp:z,canDeselect:w,max:_,strict:Y,closeOnSelect:R,groups:k,reverse:h,infinite:E,groupOptions:C,groupHideEmpty:T,groupSelect:v,onCreate:V,disabledProp:B,searchStart:F}=o.toRefs(t),$=o.getCurrentInstance().proxy,O=n.iv,P=n.ev,U=n.search,Ie=n.clearSearch,Z=n.update,q=n.pointer,Ae=n.clearPointer,ge=n.focus,re=n.deactivate,ue=n.close,Fe=o.ref([]),Ye=o.ref([]),ve=o.ref(!1),Ge=o.ref(null),b=o.ref(E.value&&s.value===-1?10:s.value),se=o.computed(()=>M.value||u.value||!1),he=o.computed(()=>g.value!==void 0?g.value:d.value!==void 0?d.value:!0),qe=o.computed(()=>{if(k.value){let x=Ye.value||[],W=[];return x.forEach(ae=>{dt(ae[C.value]).forEach(ke=>{W.push(Object.assign({},ke,ae[B.value]?{[B.value]:!0}:{}))})}),W}else{let x=dt(Ye.value||[]);return Fe.value.length&&(x=x.concat(Fe.value)),x}}),pt=o.computed(()=>k.value?ie((Ye.value||[]).map((x,W)=>{const ae=dt(x[C.value]);return{...x,index:W,group:!0,[C.value]:_t(ae,!1).map(ke=>Object.assign({},ke,x[B.value]?{[B.value]:!0}:{})),__VISIBLE__:_t(ae).map(ke=>Object.assign({},ke,x[B.value]?{[B.value]:!0}:{}))}})):[]),Tn=o.computed(()=>{let x=qe.value;return h.value&&(x=x.reverse()),Qe.value.length&&(x=Qe.value.concat(x)),_t(x)}),Tt=o.computed(()=>{let x=Tn.value;return b.value>0&&(x=x.slice(0,b.value)),x}),L=o.computed(()=>{switch(a.value){case"single":return!zt(O.value[z.value]);case"multiple":case"tags":return!zt(O.value)&&O.value.length>0}}),Q=o.computed(()=>y!==void 0&&y.value!==void 0?y.value(O.value,$):O.value&&O.value.length>1?`${O.value.length} options selected`:"1 option selected"),G=o.computed(()=>!qe.value.length&&!ve.value&&!Qe.value.length),ne=o.computed(()=>qe.value.length>0&&Tt.value.length==0&&(U.value&&k.value||!k.value)),Qe=o.computed(()=>se.value===!1||!U.value?[]:ee(U.value)!==-1?[]:[{[z.value]:U.value,[c.value]:U.value,[_e.value]:U.value,__CREATE__:!0}]),_e=o.computed(()=>r.value||c.value),st=o.computed(()=>{switch(a.value){case"single":return null;case"multiple":case"tags":return[]}}),Ln=o.computed(()=>D.value||ve.value),Je=x=>{switch(typeof x!="object"&&(x=S(x)),a.value){case"single":Z(x);break;case"multiple":case"tags":Z(O.value.concat(x));break}e.emit("select",Tr(x),x,$)},Ht=x=>{switch(typeof x!="object"&&(x=S(x)),a.value){case"single":xr();break;case"tags":case"multiple":Z(Array.isArray(x)?O.value.filter(W=>x.map(ae=>ae[z.value]).indexOf(W[z.value])===-1):O.value.filter(W=>W[z.value]!=x[z.value]));break}e.emit("deselect",Tr(x),x,$)},Tr=x=>j.value?x:x[z.value],Lr=x=>{Ht(x)},Il=(x,W)=>{if(W.button!==0){W.preventDefault();return}Lr(x)},xr=()=>{e.emit("clear",$),Z(st.value)},Lt=x=>{if(x.group!==void 0)return a.value==="single"?!1:hl(x[C.value])&&x[C.value].length;switch(a.value){case"single":return!zt(O.value)&&O.value[z.value]==x[z.value];case"tags":case"multiple":return!zt(O.value)&&O.value.map(W=>W[z.value]).indexOf(x[z.value])!==-1}},kt=x=>x[B.value]===!0,ai=()=>_===void 0||_.value===-1||!L.value&&_.value>0?!1:O.value.length>=_.value,Dl=x=>{if(!kt(x)){if(V&&V.value&&!Lt(x)&&x.__CREATE__&&(x={...x},delete x.__CREATE__,x=V.value(x,$),x instanceof Promise)){ve.value=!0,x.then(W=>{ve.value=!1,Or(W)});return}Or(x)}},Or=x=>{switch(x.__CREATE__&&(x={...x},delete x.__CREATE__),a.value){case"single":if(x&&Lt(x)){w.value&&Ht(x);return}x&&un(x),m.value&&Ie(),R.value&&(Ae(),ue()),x&&Je(x);break;case"multiple":if(x&&Lt(x)){Ht(x);return}if(ai())return;x&&(un(x),Je(x)),m.value&&Ie(),l.value&&Ae(),R.value&&ue();break;case"tags":if(x&&Lt(x)){Ht(x);return}if(ai())return;x&&un(x),m.value&&Ie(),x&&Je(x),l.value&&Ae(),R.value&&ue();break}R.value||ge()},fl=x=>{if(!(kt(x)||a.value==="single"||!v.value)){switch(a.value){case"multiple":case"tags":xn(x[C.value])?Ht(x[C.value]):Je(x[C.value].filter(W=>O.value.map(ae=>ae[z.value]).indexOf(W[z.value])===-1).filter(W=>!W[B.value]).filter((W,ae)=>O.value.length+1+ae<=_.value||_.value===-1));break}R.value&&re()}},un=x=>{S(x[z.value])===void 0&&se.value&&(e.emit("tag",x[z.value],$),e.emit("option",x[z.value],$),he.value&&te(x),Ie())},Sr=()=>{a.value!=="single"&&Je(Tt.value)},xn=x=>x.find(W=>!Lt(W)&&!W[B.value])===void 0,hl=x=>x.find(W=>!Lt(W))===void 0,S=x=>qe.value[qe.value.map(W=>String(W[z.value])).indexOf(String(x))],ee=(x,W=!0)=>qe.value.map(ae=>parseInt(ae[_e.value])==ae[_e.value]?parseInt(ae[_e.value]):ae[_e.value]).indexOf(parseInt(x)==x?parseInt(x):x),J=x=>["tags","multiple"].indexOf(a.value)!==-1&&l.value&&Lt(x),te=x=>{Fe.value.push(x)},ie=x=>T.value?x.filter(W=>U.value?W.__VISIBLE__.length:W[C.value].length):x.filter(W=>U.value?W.__VISIBLE__.length:!0),_t=(x,W=!0)=>{let ae=x;return U.value&&A.value&&(ae=ae.filter(ke=>F.value?pr(ke[_e.value],Y.value).startsWith(pr(U.value,Y.value)):pr(ke[_e.value],Y.value).indexOf(pr(U.value,Y.value))!==-1)),l.value&&W&&(ae=ae.filter(ke=>!J(ke))),ae},dt=x=>{let W=x;return Ix(W)&&(W=Object.keys(W).map(ae=>{let ke=W[ae];return{[z.value]:ae,[_e.value]:ke,[c.value]:ke}})),W=W.map(ae=>typeof ae=="object"?ae:{[z.value]:ae,[_e.value]:ae,[c.value]:ae}),W},cn=()=>{zt(P.value)||(O.value=br(P.value))},gn=x=>(ve.value=!0,new Promise((W,ae)=>{i.value(U.value,$).then(ke=>{Ye.value=ke||[],typeof x=="function"&&x(ke),ve.value=!1}).catch(ke=>{console.error(ke),Ye.value=[],ve.value=!1}).finally(()=>{W()})})),On=()=>{if(!!L.value)if(a.value==="single"){let x=S(O.value[z.value]);if(x!==void 0){let W=x[c.value];O.value[c.value]=W,j.value&&(P.value[c.value]=W)}}else O.value.forEach((x,W)=>{let ae=S(O.value[W][z.value]);if(ae!==void 0){let ke=ae[c.value];O.value[W][c.value]=ke,j.value&&(P.value[W][c.value]=ke)}})},Er=x=>{gn(x)},br=x=>zt(x)?a.value==="single"?{}:[]:j.value?x:a.value==="single"?S(x)||{}:x.filter(W=>!!S(W)).map(W=>S(W)),Fg=()=>{Ge.value=o.watch(U,x=>{x.length<I.value||!x&&I.value!==0||(ve.value=!0,p.value&&(Ye.value=[]),setTimeout(()=>{x==U.value&&i.value(U.value,$).then(W=>{(x==U.value||!U.value)&&(Ye.value=W,q.value=Tt.value.filter(ae=>ae[B.value]!==!0)[0]||null,ve.value=!1)}).catch(W=>{console.error(W)})},f.value))},{flush:"sync"})};if(a.value!=="single"&&!zt(P.value)&&!Array.isArray(P.value))throw new Error(`v-model must be an array when using "${a.value}" mode`);return i&&typeof i.value=="function"?N.value?gn(cn):j.value==!0&&cn():(Ye.value=i.value,cn()),f.value>-1&&Fg(),o.watch(f,(x,W)=>{Ge.value&&Ge.value(),x>=0&&Fg()}),o.watch(P,x=>{if(zt(x)){O.value=br(x);return}switch(a.value){case"single":(j.value?x[z.value]!=O.value[z.value]:x!=O.value[z.value])&&(O.value=br(x));break;case"multiple":case"tags":Dx(j.value?x.map(W=>W[z.value]):x,O.value.map(W=>W[z.value]))||(O.value=br(x));break}},{deep:!0}),o.watch(i,(x,W)=>{typeof t.options=="function"?N.value&&(!W||x&&x.toString()!==W.toString())&&gn():(Ye.value=t.options,Object.keys(O.value).length||cn(),On())}),o.watch(c,On),{pfo:Tn,fo:Tt,filteredOptions:Tt,hasSelected:L,multipleLabelText:Q,eo:qe,extendedOptions:qe,fg:pt,filteredGroups:pt,noOptions:G,noResults:ne,resolving:ve,busy:Ln,offset:b,select:Je,deselect:Ht,remove:Lr,selectAll:Sr,clear:xr,isSelected:Lt,isDisabled:kt,isMax:ai,getOption:S,handleOptionClick:Dl,handleGroupClick:fl,handleTagRemove:Il,refreshOptions:Er,resolveOptions:gn,refreshLabels:On}}function hx(t,e,n){const{valueProp:i,showOptions:a,searchable:r,groupLabel:s,groups:l,mode:M,groupSelect:u,disabledProp:c}=o.toRefs(t),g=n.fo,d=n.fg,y=n.handleOptionClick,j=n.handleGroupClick,D=n.search,f=n.pointer,N=n.setPointer,I=n.clearPointer,A=n.multiselect,p=n.isOpen,m=o.computed(()=>g.value.filter(Z=>!Z[c.value])),z=o.computed(()=>d.value.filter(Z=>!Z[c.value])),w=o.computed(()=>M.value!=="single"&&u.value),_=o.computed(()=>f.value&&f.value.group),Y=o.computed(()=>U(f.value)),R=o.computed(()=>{const Z=_.value?f.value:U(f.value),q=z.value.map(ge=>ge[s.value]).indexOf(Z[s.value]);let Ae=z.value[q-1];return Ae===void 0&&(Ae=h.value),Ae}),k=o.computed(()=>{let Z=z.value.map(q=>q.label).indexOf(_.value?f.value[s.value]:U(f.value)[s.value])+1;return z.value.length<=Z&&(Z=0),z.value[Z]}),h=o.computed(()=>[...z.value].slice(-1)[0]),E=o.computed(()=>f.value.__VISIBLE__.filter(Z=>!Z[c.value])[0]),C=o.computed(()=>{const Z=Y.value.__VISIBLE__.filter(q=>!q[c.value]);return Z[Z.map(q=>q[i.value]).indexOf(f.value[i.value])-1]}),T=o.computed(()=>{const Z=U(f.value).__VISIBLE__.filter(q=>!q[c.value]);return Z[Z.map(q=>q[i.value]).indexOf(f.value[i.value])+1]}),v=o.computed(()=>[...R.value.__VISIBLE__.filter(Z=>!Z[c.value])].slice(-1)[0]),V=o.computed(()=>[...h.value.__VISIBLE__.filter(Z=>!Z[c.value])].slice(-1)[0]),B=Z=>!!f.value&&(!Z.group&&f.value[i.value]==Z[i.value]||Z.group!==void 0&&f.value[s.value]==Z[s.value])?!0:void 0,F=()=>{N(m.value[0]||null)},$=()=>{!f.value||f.value[c.value]===!0||(_.value?j(f.value):y(f.value))},O=()=>{if(f.value===null)N((l.value&&w.value?z.value[0]:m.value[0])||null);else if(l.value&&w.value){let Z=_.value?E.value:T.value;Z===void 0&&(Z=k.value),N(Z||null)}else{let Z=m.value.map(q=>q[i.value]).indexOf(f.value[i.value])+1;m.value.length<=Z&&(Z=0),N(m.value[Z]||null)}o.nextTick(()=>{Ie()})},P=()=>{if(f.value===null){let Z=m.value[m.value.length-1];l.value&&w.value&&(Z=V.value,Z===void 0&&(Z=h.value)),N(Z||null)}else if(l.value&&w.value){let Z=_.value?v.value:C.value;Z===void 0&&(Z=_.value?R.value:Y.value),N(Z||null)}else{let Z=m.value.map(q=>q[i.value]).indexOf(f.value[i.value])-1;Z<0&&(Z=m.value.length-1),N(m.value[Z]||null)}o.nextTick(()=>{Ie()})},U=Z=>z.value.find(q=>q.__VISIBLE__.map(Ae=>Ae[i.value]).indexOf(Z[i.value])!==-1),Ie=()=>{let Z=A.value.querySelector("[data-pointed]");if(!Z)return;let q=Z.parentElement.parentElement;l.value&&(q=_.value?Z.parentElement.parentElement.parentElement:Z.parentElement.parentElement.parentElement.parentElement),Z.offsetTop+Z.offsetHeight>q.clientHeight+q.scrollTop&&(q.scrollTop=Z.offsetTop+Z.offsetHeight-q.clientHeight),Z.offsetTop<q.scrollTop&&(q.scrollTop=Z.offsetTop)};return o.watch(D,Z=>{r.value&&(Z.length&&a.value?F():I())}),o.watch(p,Z=>{if(Z){let q=A.value.querySelectorAll("[data-selected]")[0];if(!q)return;let Ae=q.parentElement.parentElement;o.nextTick(()=>{Ae.scrollTop>0||(Ae.scrollTop=q.offsetTop)})}}),{pointer:f,canPointGroups:w,isPointed:B,setPointerFirst:F,selectPointer:$,forwardPointer:O,backwardPointer:P}}function mx(t,e,n){const{disabled:i}=o.toRefs(t),a=o.getCurrentInstance().proxy,r=o.ref(!1);return{isOpen:r,open:()=>{r.value||i.value||(r.value=!0,e.emit("open",a))},close:()=>{!r.value||(r.value=!1,e.emit("close",a))}}}function Ax(t,e,n){const{searchable:i,disabled:a}=o.toRefs(t),r=n.input,s=n.open,l=n.close,M=n.clearSearch,u=n.isOpen,c=o.ref(null),g=o.ref(null),d=o.ref(null),y=o.ref(!1),j=o.ref(!1),D=o.computed(()=>i.value||a.value?-1:0),f=()=>{i.value&&r.value.blur(),g.value.blur()},N=()=>{i.value&&!a.value&&r.value.focus()},I=(_=!0)=>{a.value||(y.value=!0,_&&s())},A=()=>{y.value=!1,setTimeout(()=>{y.value||(l(),M())},1)};return{multiselect:c,wrapper:g,tags:d,tabindex:D,isActive:y,mouseClicked:j,blur:f,focus:N,activate:I,deactivate:A,handleFocusIn:_=>{_.target.closest("[data-tags]")||_.target.closest("[data-clear]")||I(j.value)},handleFocusOut:()=>{A()},handleCaretClick:()=>{A(),f()},handleMousedown:_=>{j.value=!0,u.value&&(_.target.isEqualNode(g.value)||_.target.isEqualNode(d.value))?setTimeout(()=>{A()},0):document.activeElement.isEqualNode(g.value)&&!u.value&&(console.log(_.target.closest("[data-tags]")),I()),setTimeout(()=>{j.value=!1},0)}}}function zx(t,e,n){const{mode:i,addTagOn:a,openDirection:r,searchable:s,showOptions:l,valueProp:M,groups:u,addOptionOn:c,createTag:g,createOption:d,reverse:y}=o.toRefs(t),j=o.getCurrentInstance().proxy,D=n.iv,f=n.update,N=n.search,I=n.setPointer,A=n.selectPointer,p=n.backwardPointer,m=n.forwardPointer,z=n.multiselect,w=n.wrapper,_=n.tags,Y=n.isOpen,R=n.open,k=n.blur,h=n.fo,E=o.computed(()=>g.value||d.value||!1),C=o.computed(()=>a.value!==void 0?a.value:c.value!==void 0?c.value:["enter"]),T=()=>{i.value==="tags"&&!l.value&&E.value&&s.value&&!u.value&&I(h.value[h.value.map(B=>B[M.value]).indexOf(N.value)])};return{handleKeydown:B=>{e.emit("keydown",B,j);let F,$;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(B.key)!==-1&&i.value==="tags"&&(F=[...z.value.querySelectorAll("[data-tags] > *")].filter(O=>O!==_.value),$=F.findIndex(O=>O===document.activeElement)),B.key){case"Backspace":if(i.value==="single"||s.value&&[null,""].indexOf(N.value)===-1||D.value.length===0)return;f([...D.value].slice(0,-1));break;case"Enter":if(B.preventDefault(),B.keyCode===229)return;if($!==-1&&$!==void 0){f([...D.value].filter((O,P)=>P!==$)),$===F.length-1&&(F.length-1?F[F.length-2].focus():s.value?_.value.querySelector("input").focus():w.value.focus());return}if(C.value.indexOf("enter")===-1&&E.value)return;T(),A();break;case" ":if(!E.value&&!s.value){B.preventDefault(),T(),A();return}if(!E.value)return!1;if(C.value.indexOf("space")===-1&&E.value)return;B.preventDefault(),T(),A();break;case"Tab":case";":case",":if(C.value.indexOf(B.key.toLowerCase())===-1||!E.value)return;T(),A(),B.preventDefault();break;case"Escape":k();break;case"ArrowUp":if(B.preventDefault(),!l.value)return;Y.value||R(),p();break;case"ArrowDown":if(B.preventDefault(),!l.value)return;Y.value||R(),m();break;case"ArrowLeft":if(s.value&&_.value&&_.value.querySelector("input").selectionStart||B.shiftKey||i.value!=="tags"||!D.value||!D.value.length)return;B.preventDefault(),$===-1?F[F.length-1].focus():$>0&&F[$-1].focus();break;case"ArrowRight":if($===-1||B.shiftKey||i.value!=="tags"||!D.value||!D.value.length)return;B.preventDefault(),F.length>$+1?F[$+1].focus():s.value?_.value.querySelector("input").focus():s.value||w.value.focus();break}},handleKeyup:B=>{e.emit("keyup",B,j)},preparePointer:T}}function px(t,e,n){const{classes:i,disabled:a,openDirection:r,showOptions:s}=o.toRefs(t),l=n.isOpen,M=n.isPointed,u=n.isSelected,c=n.isDisabled,g=n.isActive,d=n.canPointGroups,y=n.resolving,j=n.fo,D=o.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...i.value})),f=o.computed(()=>!!(l.value&&s.value&&(!y.value||y.value&&j.value.length)));return{classList:o.computed(()=>{const I=D.value;return{container:[I.container].concat(a.value?I.containerDisabled:[]).concat(f.value&&r.value==="top"?I.containerOpenTop:[]).concat(f.value&&r.value!=="top"?I.containerOpen:[]).concat(g.value?I.containerActive:[]),wrapper:I.wrapper,spacer:I.spacer,singleLabel:I.singleLabel,singleLabelText:I.singleLabelText,multipleLabel:I.multipleLabel,search:I.search,tags:I.tags,tag:[I.tag].concat(a.value?I.tagDisabled:[]),tagRemove:I.tagRemove,tagRemoveIcon:I.tagRemoveIcon,tagsSearchWrapper:I.tagsSearchWrapper,tagsSearch:I.tagsSearch,tagsSearchCopy:I.tagsSearchCopy,placeholder:I.placeholder,caret:[I.caret].concat(l.value?I.caretOpen:[]),clear:I.clear,clearIcon:I.clearIcon,spinner:I.spinner,inifinite:I.inifinite,inifiniteSpinner:I.inifiniteSpinner,dropdown:[I.dropdown].concat(r.value==="top"?I.dropdownTop:[]).concat(!l.value||!s.value||!f.value?I.dropdownHidden:[]),options:[I.options].concat(r.value==="top"?I.optionsTop:[]),group:I.group,groupLabel:A=>{let p=[I.groupLabel];return M(A)?p.push(u(A)?I.groupLabelSelectedPointed:I.groupLabelPointed):u(A)&&d.value?p.push(c(A)?I.groupLabelSelectedDisabled:I.groupLabelSelected):c(A)&&p.push(I.groupLabelDisabled),d.value&&p.push(I.groupLabelPointable),p},groupOptions:I.groupOptions,option:(A,p)=>{let m=[I.option];return M(A)?m.push(u(A)?I.optionSelectedPointed:I.optionPointed):u(A)?m.push(c(A)?I.optionSelectedDisabled:I.optionSelected):(c(A)||p&&c(p))&&m.push(I.optionDisabled),m},noOptions:I.noOptions,noResults:I.noResults,assist:I.assist,fakeInput:I.fakeInput}}),showDropdown:f}}function Tx(t,e,n){const{limit:i,infinite:a}=o.toRefs(t),r=n.isOpen,s=n.offset,l=n.search,M=n.pfo,u=n.eo,c=o.ref(null),g=o.ref(null),d=o.computed(()=>s.value<M.value.length),y=D=>{const{isIntersecting:f,target:N}=D[0];if(f){const I=N.offsetParent,A=I.scrollTop;s.value+=i.value==-1?10:i.value,o.nextTick(()=>{I.scrollTop=A})}},j=()=>{r.value&&s.value<M.value.length?c.value.observe(g.value):!r.value&&c.value&&c.value.disconnect()};return o.watch(r,()=>{!a.value||j()}),o.watch(l,()=>{!a.value||(s.value=i.value,j())},{flush:"post"}),o.watch(u,()=>{!a.value||j()},{immediate:!1,flush:"post"}),o.onMounted(()=>{window&&window.IntersectionObserver&&(c.value=new IntersectionObserver(y))}),{hasMore:d,infiniteLoader:g}}function Lx(t,e,n){const{placeholder:i,id:a,valueProp:r,label:s,mode:l,groupLabel:M,aria:u,searchable:c}=o.toRefs(t),g=n.pointer,d=n.iv,y=n.hasSelected,j=n.multipleLabelText,D=o.ref(null),f=o.computed(()=>{let h=[];return a&&a.value&&h.push(a.value),h.push("assist"),h.join("-")}),N=o.computed(()=>{let h=[];return a&&a.value&&h.push(a.value),h.push("multiselect-options"),h.join("-")}),I=o.computed(()=>{let h=[];if(a&&a.value&&h.push(a.value),g.value)return h.push(g.value.group?"multiselect-group":"multiselect-option"),h.push(g.value.group?g.value.index:g.value[r.value]),h.join("-")}),A=o.computed(()=>i.value),p=o.computed(()=>l.value!=="single"),m=o.computed(()=>{let h="";return l.value==="single"&&y.value&&(h+=d.value[s.value]),l.value==="multiple"&&y.value&&(h+=j.value),l.value==="tags"&&y.value&&(h+=d.value.map(E=>E[s.value]).join(", ")),h}),z=o.computed(()=>{let h={...u.value};return c.value&&(h["aria-labelledby"]=h["aria-labelledby"]?`${f.value} ${h["aria-labelledby"]}`:f.value,m.value&&h["aria-label"]&&(h["aria-label"]=`${m.value}, ${h["aria-label"]}`)),h}),w=h=>{let E=[];return a&&a.value&&E.push(a.value),E.push("multiselect-option"),E.push(h[r.value]),E.join("-")},_=h=>{let E=[];return a&&a.value&&E.push(a.value),E.push("multiselect-group"),E.push(h.index),E.join("-")},Y=h=>{let E=[];return E.push(h[s.value]),E.join(" ")},R=h=>{let E=[];return E.push(h[M.value]),E.join(" ")},k=h=>`${h} \u274E`;return o.onMounted(()=>{if(a&&a.value&&document&&document.querySelector){let h=document.querySelector(`[for="${a.value}"]`);D.value=h?h.innerText:null}}),{arias:z,ariaLabel:m,ariaAssist:f,ariaControls:N,ariaPlaceholder:A,ariaMultiselectable:p,ariaActiveDescendant:I,ariaOptionId:w,ariaOptionLabel:Y,ariaGroupId:_,ariaGroupLabel:R,ariaTagLabel:k}}function xx(t,e,n,i={}){return n.forEach(a=>{a&&(i={...i,...a(t,e,i)})}),i}var jl={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:String,required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:String,required:!1,default:"The list is empty"},noResultsText:{type:String,required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})}},setup(t,e){return xx(t,e,[dx,jx,mx,yx,Nx,Ax,fx,Tx,hx,zx,px,Lx])}};const Ox=["id","dir"],Sx=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],Ex=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],bx=["onKeyup","aria-label"],Cx=["onClick"],wx=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],kx=["innerHTML"],_x=["id"],vx=["id","aria-label","aria-selected"],Qx=["data-pointed","onMouseenter","onClick"],Yx=["innerHTML"],Ux=["aria-label"],Px=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],Rx=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],Bx=["innerHTML"],Zx=["innerHTML"],Vx=["value"],Gx=["name","value"],Wx=["name","value"],$x=["id"];function Hx(t,e,n,i,a,r){return o.openBlock(),o.createElementBlock("div",{ref:"multiselect",class:o.normalizeClass(t.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:e[10]||(e[10]=(...s)=>t.handleFocusIn&&t.handleFocusIn(...s)),onFocusout:e[11]||(e[11]=(...s)=>t.handleFocusOut&&t.handleFocusOut(...s)),onKeyup:e[12]||(e[12]=(...s)=>t.handleKeyup&&t.handleKeyup(...s)),onKeydown:e[13]||(e[13]=(...s)=>t.handleKeydown&&t.handleKeydown(...s))},[o.createElementVNode("div",o.mergeProps({class:t.classList.wrapper,onMousedown:e[9]||(e[9]=(...s)=>t.handleMousedown&&t.handleMousedown(...s)),ref:"wrapper",tabindex:t.tabindex,"aria-controls":n.searchable?void 0:t.ariaControls,"aria-placeholder":n.searchable?void 0:t.ariaPlaceholder,"aria-expanded":n.searchable?void 0:t.isOpen,"aria-activedescendant":n.searchable?void 0:t.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:t.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:t.arias),[o.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(o.openBlock(),o.createElementBlock("input",o.mergeProps({key:0,type:n.inputType,modelValue:t.search,value:t.search,class:t.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:e[0]||(e[0]=(...s)=>t.handleSearchInput&&t.handleSearchInput(...s)),onKeypress:e[1]||(e[1]=(...s)=>t.handleKeypress&&t.handleKeypress(...s)),onPaste:e[2]||(e[2]=o.withModifiers((...s)=>t.handlePaste&&t.handlePaste(...s),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...n.attrs,...t.arias}),null,16,Ex)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(t.classList.tags),"data-tags":""},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.iv,(s,l,M)=>o.renderSlot(t.$slots,"tag",{option:s,handleTagRemove:t.handleTagRemove,disabled:n.disabled},()=>[(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(t.classList.tag),tabindex:"-1",onKeyup:o.withKeys(u=>t.handleTagRemove(s,u),["enter"]),key:M,"aria-label":t.ariaTagLabel(s[n.label])},[o.createTextVNode(o.toDisplayString(s[n.label])+" ",1),n.disabled?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(t.classList.tagRemove),onClick:u=>t.handleTagRemove(s,u)},[o.createElementVNode("span",{class:o.normalizeClass(t.classList.tagRemoveIcon)},null,2)],10,Cx))],42,bx))])),256)),o.createElementVNode("div",{class:o.normalizeClass(t.classList.tagsSearchWrapper),ref:"tags"},[o.createCommentVNode(" Used for measuring search width "),o.createElementVNode("span",{class:o.normalizeClass(t.classList.tagsSearchCopy)},o.toDisplayString(t.search),3),o.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(o.openBlock(),o.createElementBlock("input",o.mergeProps({key:0,type:n.inputType,modelValue:t.search,value:t.search,class:t.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:e[3]||(e[3]=(...s)=>t.handleSearchInput&&t.handleSearchInput(...s)),onKeypress:e[4]||(e[4]=(...s)=>t.handleKeypress&&t.handleKeypress(...s)),onPaste:e[5]||(e[5]=o.withModifiers((...s)=>t.handlePaste&&t.handlePaste(...s),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...n.attrs,...t.arias}),null,16,wx)):o.createCommentVNode("v-if",!0)],2)],2)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Single label "),n.mode=="single"&&t.hasSelected&&!t.search&&t.iv?o.renderSlot(t.$slots,"singlelabel",{key:2,value:t.iv},()=>[o.createElementVNode("div",{class:o.normalizeClass(t.classList.singleLabel)},[o.createElementVNode("span",{class:o.normalizeClass(t.classList.singleLabelText)},o.toDisplayString(t.iv[n.label]),3)],2)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Multiple label "),n.mode=="multiple"&&t.hasSelected&&!t.search?o.renderSlot(t.$slots,"multiplelabel",{key:3,values:t.iv},()=>[o.createElementVNode("div",{class:o.normalizeClass(t.classList.multipleLabel),innerHTML:t.multipleLabelText},null,10,kx)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Placeholder "),n.placeholder&&!t.hasSelected&&!t.search?o.renderSlot(t.$slots,"placeholder",{key:4},()=>[o.createElementVNode("div",{class:o.normalizeClass(t.classList.placeholder),"aria-hidden":"true"},o.toDisplayString(n.placeholder),3)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Spinner "),n.loading||t.resolving?o.renderSlot(t.$slots,"spinner",{key:5},()=>[o.createElementVNode("span",{class:o.normalizeClass(t.classList.spinner),"aria-hidden":"true"},null,2)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Clear "),t.hasSelected&&!n.disabled&&n.canClear&&!t.busy?o.renderSlot(t.$slots,"clear",{key:6,clear:t.clear},()=>[o.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"\u274E",class:o.normalizeClass(t.classList.clear),onClick:e[6]||(e[6]=(...s)=>t.clear&&t.clear(...s)),onKeyup:e[7]||(e[7]=o.withKeys((...s)=>t.clear&&t.clear(...s),["enter"]))},[o.createElementVNode("span",{class:o.normalizeClass(t.classList.clearIcon)},null,2)],34)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Caret "),n.caret&&n.showOptions?o.renderSlot(t.$slots,"caret",{key:7},()=>[o.createElementVNode("span",{class:o.normalizeClass(t.classList.caret),onClick:e[8]||(e[8]=(...s)=>t.handleCaretClick&&t.handleCaretClick(...s)),"aria-hidden":"true"},null,2)]):o.createCommentVNode("v-if",!0)],16,Sx),o.createCommentVNode(" Options "),o.createElementVNode("div",{class:o.normalizeClass(t.classList.dropdown),tabindex:"-1"},[o.renderSlot(t.$slots,"beforelist",{options:t.fo}),o.createElementVNode("ul",{class:o.normalizeClass(t.classList.options),id:t.ariaControls,role:"listbox"},[n.groups?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(t.fg,(s,l,M)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(t.classList.group),key:M,id:t.ariaGroupId(s),"aria-label":t.ariaGroupLabel(s),"aria-selected":t.isSelected(s),role:"option"},[o.createElementVNode("div",{class:o.normalizeClass(t.classList.groupLabel(s)),"data-pointed":t.isPointed(s),onMouseenter:u=>t.setPointer(s,l),onClick:u=>t.handleGroupClick(s)},[o.renderSlot(t.$slots,"grouplabel",{group:s,isSelected:t.isSelected,isPointed:t.isPointed},()=>[o.createElementVNode("span",{innerHTML:s[n.groupLabel]},null,8,Yx)])],42,Qx),o.createElementVNode("ul",{class:o.normalizeClass(t.classList.groupOptions),"aria-label":t.ariaGroupLabel(s),role:"group"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.__VISIBLE__,(u,c,g)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(t.classList.option(u,s)),"data-pointed":t.isPointed(u),"data-selected":t.isSelected(u)||void 0,key:g,onMouseenter:d=>t.setPointer(u),onClick:d=>t.handleOptionClick(u),id:t.ariaOptionId(u),"aria-selected":t.isSelected(u),"aria-label":t.ariaOptionLabel(u),role:"option"},[o.renderSlot(t.$slots,"option",{option:u,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[o.createElementVNode("span",null,o.toDisplayString(u[n.label]),1)])],42,Px))),128))],10,Ux)],10,vx))),128)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(t.fo,(s,l,M)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(t.classList.option(s)),"data-pointed":t.isPointed(s),"data-selected":t.isSelected(s)||void 0,key:M,onMouseenter:u=>t.setPointer(s),onClick:u=>t.handleOptionClick(s),id:t.ariaOptionId(s),"aria-selected":t.isSelected(s),"aria-label":t.ariaOptionLabel(s),role:"option"},[o.renderSlot(t.$slots,"option",{option:s,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[o.createElementVNode("span",null,o.toDisplayString(s[n.label]),1)])],42,Rx))),128))],10,_x),t.noOptions?o.renderSlot(t.$slots,"nooptions",{key:0},()=>[o.createElementVNode("div",{class:o.normalizeClass(t.classList.noOptions),innerHTML:n.noOptionsText},null,10,Bx)]):o.createCommentVNode("v-if",!0),t.noResults?o.renderSlot(t.$slots,"noresults",{key:1},()=>[o.createElementVNode("div",{class:o.normalizeClass(t.classList.noResults),innerHTML:n.noResultsText},null,10,Zx)]):o.createCommentVNode("v-if",!0),n.infinite&&t.hasMore?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(t.classList.inifinite),ref:"infiniteLoader"},[o.renderSlot(t.$slots,"infinite",{},()=>[o.createElementVNode("span",{class:o.normalizeClass(t.classList.inifiniteSpinner)},null,2)])],2)):o.createCommentVNode("v-if",!0),o.renderSlot(t.$slots,"afterlist",{options:t.fo})],2),o.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(o.openBlock(),o.createElementBlock("input",{key:0,class:o.normalizeClass(t.classList.fakeInput),tabindex:"-1",value:t.textValue,required:""},null,10,Vx)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Native input support "),n.nativeSupport?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.mode=="single"?(o.openBlock(),o.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:t.plainValue!==void 0?t.plainValue:""},null,8,Gx)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(t.plainValue,(s,l)=>(o.openBlock(),o.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:s,key:l},null,8,Wx))),128))],64)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Screen reader assistive text "),n.searchable&&t.hasSelected?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(t.classList.assist),id:t.ariaAssist,"aria-hidden":"true"},o.toDisplayString(t.ariaLabel),11,$x)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Create height for empty input "),o.createElementVNode("div",{class:o.normalizeClass(t.classList.spacer)},null,2)],42,Ox)}jl.render=Hx,jl.__file="src/Multiselect.vue";var uS="",cS="";const Fx=o.createElementVNode("img",{alt:"",class:"list__item_thumb",src:gx},null,-1),Jx={class:"list__item_text"},Xx=o.createElementVNode("div",{id:"list"},null,-1),Kx={__name:"InputList",props:{list:{type:Array,required:!0}},setup(t){const e=o.ref(null);return(n,i)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(o.unref(jl),{modelValue:e.value,"onUpdate:modelValue":i[0]||(i[0]=a=>e.value=a),mode:"tags",options:t.list,placeholder:"Start typing a name",searchable:!0},{tag:o.withCtx(({option:a,handleTagRemove:r,disabled:s})=>[(o.openBlock(),o.createBlock(o.Teleport,{to:"#list"},[o.createElementVNode("div",{class:o.normalizeClass(["list__item",{"is-disabled":s}])},[Fx,o.createElementVNode("p",Jx,o.toDisplayString(a.value),1),o.createVNode(ye,{class:"list__item_icon","icon-name":"delete",size:24,onClick:l=>r(a,l)},null,8,["onClick"]),o.renderSlot(n.$slots,"default")],2)]))]),_:3},8,["modelValue","options"]),Xx],64))}},qx=o.defineComponent({components:{DhIcon:ye},props:{hasCloseButton:{type:Boolean,default:!0},hasSideBar:{type:Boolean,default:!0},hasSideBarButtonBottom:{type:Boolean,default:!0},hasHeader:{type:Boolean,default:!0},hasFooter:{type:Boolean,default:!0},hasFooterButtonRight:{type:Boolean,default:!0},sideBarPosition:{type:String,default:"left"},hasCloseConfirmation:{type:Boolean,default:!1},bodyClass:{type:String,default:""}},emits:["close"],methods:{closed(){this.$emit("close",this.hasCloseConfirmation)}}}),eO={key:1,id:"modal-sidebar",class:"modal-sidebar"},tO={key:0,id:"modalTitle",class:"modal-header"},nO={class:"modal-footer"};function iO(t,e,n,i,a,r){const s=o.resolveComponent("dh-icon");return o.openBlock(),o.createBlock(o.Transition,{name:"modal-fade"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"modal-backdrop",onClick:e[2]||(e[2]=(...l)=>t.closed&&t.closed(...l))},[o.createElementVNode("div",{"aria-describedby":"modalDescription","aria-labelledby":"modalTitle",class:o.normalizeClass(`modal ${t.hasSideBar?t.sideBarPosition:""}`),role:"dialog",onClick:e[1]||(e[1]=o.withModifiers(()=>{},["stop"]))},[t.hasCloseButton?(o.openBlock(),o.createElementBlock("button",{key:0,"aria-label":"Close modal",class:"btn-close",type:"button",onClick:e[0]||(e[0]=(...l)=>t.closed&&t.closed(...l))},[o.createVNode(s,{class:"icon","icon-name":"close",size:24})])):o.createCommentVNode("",!0),t.hasSideBar?(o.openBlock(),o.createElementBlock("aside",eO,[o.renderSlot(t.$slots,"sidebar"),t.hasSideBarButtonBottom?o.renderSlot(t.$slots,"sidebar-button-bottom",{key:0}):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.createElementVNode("section",{class:o.normalizeClass(`right-section ${t.hasSideBar?"":"full"}`)},[t.hasHeader?(o.openBlock(),o.createElementBlock("header",tO,[o.renderSlot(t.$slots,"header")])):o.createCommentVNode("",!0),o.createElementVNode("section",{id:"modalDescription",class:o.normalizeClass(["modal-body",t.bodyClass])},[o.renderSlot(t.$slots,"body")],2),o.createElementVNode("footer",nO,[t.hasFooter?o.renderSlot(t.$slots,"footer",{key:0}):o.createCommentVNode("",!0),t.hasFooterButtonRight?o.renderSlot(t.$slots,"footer-button-right",{key:1}):o.createCommentVNode("",!0)])],2)],2)])]),_:3})}var aO=Ze(qx,[["render",iO]]),rO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTIgMy41YTguNSA4LjUgMCAxIDAgMCAxNyA4LjUgOC41IDAgMCAwIDAtMTd6TTIuNSAxMmE5LjUgOS41IDAgMSAxIDE5IDAgOS41IDkuNSAwIDAgMS0xOSAweiIgZmlsbD0iI0MzMkYyNyIvPgogICAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMiA3LjVhLjUuNSAwIDAgMSAuNS41djRhLjUuNSAwIDAgMS0xIDBWOGEuNS41IDAgMCAxIC41LS41ek0xMS4yNSAxNmEuNzUuNzUgMCAwIDEgLjc1LS43NWguMDFhLjc1Ljc1IDAgMCAxIDAgMS41SDEyYS43NS43NSAwIDAgMS0uNzUtLjc1eiIgZmlsbD0iI0MzMkYyNyIvPgo8L3N2Zz4K",oO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0xNy40NTIgMTkuMTg5SDYuNTU4QTIuNTYgMi41NiAwIDAgMSA0IDE2LjYzMVYxNmMwLTEgLjQxNS0xLjk1OSAxLjEzOC0yLjY0NS40MzMtLjQxLjY3OC0uOTc3LjY3OC0xLjU3MlY5LjE4NEE2LjE5MSA2LjE5MSAwIDAgMSAxMiAzYTYuMTkxIDYuMTkxIDAgMCAxIDYuMTg0IDYuMTg0djIuNmMwIC41OTQuMjQ1IDEuMTY1LjY3OCAxLjU3QTMuNjM2IDMuNjM2IDAgMCAxIDIwIDE2di42MzFhMi41NDcgMi41NDcgMCAwIDEtMi41NDkgMi41NTh6bS01LjQ0Ny0xNC43MmE0LjcxOCA0LjcxOCAwIDAgMC00LjcxIDQuNzF2Mi42YzAgMS0uNDE0IDEuOTU4LTEuMTM4IDIuNjQ1LS40MzMuNDEtLjY3Ny45NzctLjY3NyAxLjU3MXYuNjMyYzAgLjU5OS40ODQgMS4wNzggMS4wODMgMS4wODJoMTAuODk0Yy41OTQgMCAxLjA3OC0uNDgzIDEuMDgzLTEuMDgydi0uNjMyYzAtLjU5NC0uMjQ0LTEuMTY2LS42NzgtMS41NzFhMy42MzYgMy42MzYgMCAwIDEtMS4xMzgtMi42NDZWOS4xNzVhNC43MjUgNC43MjUgMCAwIDAtNC43MTktNC43MDV6TTEzLjkwNCAyMS40NjZoLTMuNzk4YS43NC43NCAwIDAgMS0uNzM3LS43MzguNzQuNzQgMCAwIDEgLjczNy0uNzM3aDMuNzk4YS43MzcuNzM3IDAgMSAxIDAgMS40NzV6IiBmaWxsPSIjQkZCRkJGIi8+Cjwvc3ZnPgo=",sO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTkuNDI3IDYuMjUzYTEgMSAwIDAgMSAwIDEuNDE0bC05LjI0IDkuMjRhMSAxIDAgMCAxLTEuNDE0IDBsLTQuMi00LjJhMSAxIDAgMSAxIDEuNDE0LTEuNDE0bDMuNDkzIDMuNDkzIDguNTMzLTguNTMzYTEgMSAwIDAgMSAxLjQxNCAweiIgZmlsbD0iIzNDQTA2NCIvPgo8L3N2Zz4K",lO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTAuODkzIDMuNzlhMi4yNTYgMi4yNTYgMCAwIDEgMy4wMzYuNzk2bC4wMDIuMDAzIDcuNDQyIDEyLjQyNGEyLjI1NyAyLjI1NyAwIDAgMS0xLjkzIDMuMzg0SDQuNTU3YTIuMjU3IDIuMjU3IDAgMCAxLTEuOTI5LTMuMzg0bC4wMDQtLjAwN0wxMC4wNyA0LjU4OWwuMDAyLS4wMDNjLjIwMS0uMzMxLjQ4NC0uNjA2LjgyMi0uNzk2ek0xMiA0LjVhMS4yNTYgMS4yNTYgMCAwIDAtMS4wNzMuNjA0aC0uMDAxTDMuNDkgMTcuNTE3YTEuMjU2IDEuMjU2IDAgMCAwIDEuMDc0IDEuODgxaDE0Ljg3YTEuMjU2IDEuMjU2IDAgMCAwIDEuMDc0LTEuODgxTDEzLjA3NCA1LjEwNXYtLjAwMUExLjI1NyAxLjI1NyAwIDAgMCAxMiA0LjV6IiBmaWxsPSIjRjI5OTRBIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEyIDguODZhLjUuNSAwIDAgMSAuNS41djMuNTEyYS41LjUgMCAxIDEtMSAwVjkuMzU5YS41LjUgMCAwIDEgLjUtLjV6TTExLjI1IDE2LjM4NWEuNzUuNzUgMCAwIDEgLjc1LS43NWguMDA5YS43NS43NSAwIDEgMSAwIDEuNUgxMmEuNzUuNzUgMCAwIDEtLjc1LS43NXoiIGZpbGw9IiNGMjk5NEEiLz4KPC9zdmc+Cg==";const MO=o.defineComponent({props:{notificationType:{type:String,required:!0,default:"toast"},status:{type:String,required:!0,default:"info"},title:{type:String,required:!1,default:""},message:{type:String,required:!1,default:""},dismissible:{type:Boolean,required:!1,default:!0},notificationButton:{type:String,default:"Action"},buttonAction:{type:String,default:"void"},buttonDismiss:{type:String,default:"Dismiss"}},data(){return{show:!0}},mounted(){this.dismissible&&["toast","bottom-message"].includes(this.notificationType)&&setTimeout(()=>{this.close()},3e3)},methods:{getIconUrl(){return new URL({"../assets/icon-danger.svg":rO,"../assets/icon-info.svg":oO,"../assets/icon-success.svg":sO,"../assets/icon-warning.svg":lO}[`../assets/icon-${this.status}.svg`],self.location).href},close(){this.show=!1},limitTitle(t,e){return["toast","actionable"].includes(e)&&t.length>=60?`${t.substring(0,60)}..`:["bottom-message"].includes(e)&&t.length>=40?`${t.substring(0,40)}..`:["modal"].includes(e)&&t.length>=80?`${t.substring(0,80)}..`:t}}}),uO=[o.createElementVNode("img",{alt:"icon",class:"close-icon",src:Ru},null,-1)],cO=["src"],gO={class:"additional-text"},NO={key:0,class:"descriptions"},dO={class:"btn btn-normal btn-primary"};function yO(t,e,n,i,a,r){return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(`dh-notification-container ${t.notificationType}`)},[t.show?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["bottom-message"].includes(t.notificationType)?`notification-up status status-${t.notificationType}`:`notification-enter status status-${t.notificationType}`)},[["modal","bottom-message"].includes(t.notificationType)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:0,class:"close-notification",onClick:e[0]||(e[0]=o.withModifiers((...s)=>t.close&&t.close(...s),["prevent"]))},uO)),o.createElementVNode("div",{class:o.normalizeClass(`content content- ${t.notificationType}`)},[o.createElementVNode("div",{class:o.normalizeClass(`ellipse ellipse-${t.status} ellipse-${t.notificationType}`)},[o.createElementVNode("img",{class:o.normalizeClass(`icons icons-${t.status} icons-${t.status}-${t.notificationType}`),src:t.getIconUrl()},null,10,cO)],2),o.createElementVNode("div",gO,[o.createElementVNode("div",{class:o.normalizeClass(`title title-${t.notificationType}`)},o.toDisplayString(t.limitTitle(t.title,t.notificationType)),3),["bottom-message"].includes(t.notificationType)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",NO,o.toDisplayString(t.message.length>=280?`${t.message.substring(0,280)}..`:t.message),1))]),["toast","bottom-message"].includes(t.notificationType)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(`buttons ${t.notificationType}`)},[o.createElementVNode("button",dO,o.toDisplayString(t.notificationButton),1),o.createElementVNode("button",{class:"btn btn-normal btn-secondary dismiss",onClick:e[1]||(e[1]=o.withModifiers((...s)=>t.close&&t.close(...s),["prevent"]))},o.toDisplayString(t.buttonDismiss),1)],2))],2)],2)):o.createCommentVNode("",!0)],2)}var jO=Ze(MO,[["render",yO]]),NS="";const IO={class:"password__panel"},DO=["placeholder","type"],fO={class:"icon is-right"},hO={key:0,class:"password__tooltip"};var mO=Ze(o.defineComponent({__name:"PasswordField",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:""},tipChars:{type:String,default:"12 Characters"},tipNumbers:{type:String,default:"Numbers"},tipSymbols:{type:String,default:"Symbols"},passwordTooltipDisabled:{type:Boolean,default:!1}},emits:["submit","update:modelValue"],setup(t,{emit:e}){const n=t,i=o.ref(""),a=o.ref(!1),r=o.ref(!1),s=o.ref(!1),l=o.ref(!1),M=o.ref(!1),u=o.ref(!1);function c(){e("submit",i.value),e("update:modelValue",i.value)}function g(){a.value=!0,u.value=!0}function d(){a.value=!1,u.value=!1}function y(){M.value=!M.value}return o.onMounted(()=>()=>i.value=n.modelValue||""),o.watch(n,()=>(i.value=n.modelValue||"",r.value=i.value.length>11,s.value=/\d/.test(i.value),l.value=/[!@#$%^&*)(+=._-]/.test(i.value))),(j,D)=>(o.openBlock(),o.createElementBlock("div",IO,[o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":D[0]||(D[0]=f=>i.value=f),class:"form__input password__panel_input","data-e2e":"password-input",placeholder:n.placeholder,type:M.value?"text":"password",onFocus:g,onFocusout:d,onKeyup:c},null,40,DO),[[o.vModelDynamic,i.value]]),o.createElementVNode("button",{class:"password__panel_button",type:"button",onClick:y},[o.createElementVNode("span",fO,[o.createVNode(ye,{active:u.value,"icon-name":M.value?"invisible":"visible",size:20},null,8,["active","icon-name"])])]),a.value&&!n.passwordTooltipDisabled?(o.openBlock(),o.createElementBlock("div",hO,[o.createElementVNode("p",{class:o.normalizeClass(["password__tooltip_text",r.value?"password__tooltip_text--valid":""])},[o.createVNode(ye,{class:o.normalizeClass(r.value?"password__tooltip_icon--active":"password__tooltip_icon"),"icon-name":r.value?"accept":"close",size:16},null,8,["class","icon-name"]),o.createElementVNode("span",null,o.toDisplayString(n.tipChars),1)],2),o.createElementVNode("p",{class:o.normalizeClass(["password__tooltip_text",s.value?"password__tooltip_text--valid":""])},[o.createVNode(ye,{class:o.normalizeClass(s.value?"password__tooltip_icon--active":"password__tooltip_icon"),"icon-name":s.value?"accept":"close",size:16},null,8,["class","icon-name"]),o.createElementVNode("span",null,o.toDisplayString(n.tipNumbers),1)],2),o.createElementVNode("p",{class:o.normalizeClass(["password__tooltip_text",l.value?"password__tooltip_text--valid":""])},[o.createVNode(ye,{class:o.normalizeClass(l.value?"password__tooltip_icon--active":"password__tooltip_icon"),"icon-name":l.value?"accept":"close",size:16},null,8,["class","icon-name"]),o.createElementVNode("span",null,o.toDisplayString(n.tipSymbols),1)],2)])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-3ae35090"]]),yS="";const AO={class:"radio"},zO=["for"],pO=["id","type","value"],TO={class:"radio__label_txt"};var Hg=Ze({__name:"RadioBox",props:{type:{type:String,default:"radio"},value:{type:String,required:!0},label:{type:String,required:!0}},emits:["clickBox"],setup(t,{emit:e}){return(n,i)=>(o.openBlock(),o.createElementBlock("div",AO,[o.createElementVNode("label",{class:"radio__label",for:t.value},[o.createElementVNode("input",{id:t.value,class:"radio__input",name:"radiobox",type:t.type,value:t.value,onClick:i[0]||(i[0]=a=>e("clickBox"))},null,8,pO),o.createElementVNode("span",TO,o.toDisplayString(t.label),1)],8,zO)]))}},[["__scopeId","data-v-29696bd5"]]),IS="";const LO={__name:"RadioBoxGroup",props:{orientation:{type:String,default:"horizontal"},type:{type:String,default:"radio"},list:{type:Array,required:!0}},setup(t){const e=o.ref(null);function n(){const i=document.querySelectorAll("input");for(let a=0;a<i.length;a++)i[a].checked?i[a].parentNode.parentNode.classList.add("radio--checked"):i[a].parentNode.parentNode.classList.remove("radio--checked")}return(i,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["radio__grp",t.orientation==="vertical"?"radio__vertical":"radio__horizontal"])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.list,r=>(o.openBlock(),o.createBlock(Hg,{key:r.key,ref_for:!0,ref_key:"boxes",ref:e,label:r.label,type:t.type,value:r.value,onClickBox:n},null,8,["label","type","value"]))),128))],2))}};var DS="";const xO={class:"search-panel"},OO=["placeholder"];var SO=Ze(o.defineComponent({__name:"SearchInput",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:""}},emits:["submit","clean","update:modelValue"],setup(t,{emit:e}){const n=t,i=o.ref("");function a(){e("submit",i.value),e("update:modelValue",i.value)}function r(){i.value="",e("clean"),e("update:modelValue",i.value)}return o.onMounted(()=>()=>i.value=n.modelValue||""),o.watch(n,()=>i.value=n.modelValue||""),(s,l)=>(o.openBlock(),o.createElementBlock("div",xO,[o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=M=>i.value=M),class:"form-input search-panel-input","data-e2e":"search-input",placeholder:n.placeholder,onKeyup:a},null,40,OO),[[o.vModelText,i.value]]),i.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:0,class:"search-panel-button","data-e2e":"search-submit",onClick:a},[o.createVNode(ye,{active:!0,"icon-name":"search",size:24})])),i.value?(o.openBlock(),o.createElementBlock("button",{key:1,class:"search-panel-button close","data-e2e":"search-close",onClick:r},[o.createVNode(ye,{class:"icon","icon-name":"close",size:24})])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-562faa14"]]),hS="";const EO=t=>(o.pushScopeId("data-v-0213b522"),t=t(),o.popScopeId(),t),bO={class:"stepper"},CO=EO(()=>o.createElementVNode("hr",{class:"solid"},null,-1));var wO=Ze(o.defineComponent({__name:"Stepper",props:{maxSteps:{type:Number,default:0},currentStep:{type:Number,default:0}},setup(t){const e=t;function n(){return Array.from(Array(e.maxSteps||0).keys())}return(i,a)=>(o.openBlock(),o.createElementBlock("div",bO,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n(),(r,s)=>(o.openBlock(),o.createElementBlock("div",{key:s,class:"step"},[o.createElementVNode("span",{class:o.normalizeClass(["step-number",{active:r===t.currentStep}])},o.toDisplayString(r+1),3),CO]))),128))]))}}),[["__scopeId","data-v-0213b522"]]);const kO=o.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 t=this.$refs.main,e=this.$refs[this.target];["right","left"].includes(this.placement)&&(e.style.top=-(((e==null?void 0:e.offsetHeight)-(t==null?void 0:t.offsetHeight))/2)+"px")}}}),_O=["placement","target","tooltipText","trigger"],vO=["id"],QO={class:"text"};function YO(t,e,n,i,a,r){return o.openBlock(),o.createElementBlock("div",{id:"main-contain",ref:"main",class:"dh-tooltip-container tooltip",placement:t.placement,target:t.target,tooltipText:t.tooltipText,trigger:t.trigger,onClick:e[0]||(e[0]=s=>t.trigger=="click"?t.showTooltip():null),onMouseover:e[1]||(e[1]=s=>t.tooltip())},[o.renderSlot(t.$slots,"default"),o.createElementVNode("div",{id:t.target,ref:t.target,class:o.normalizeClass(`tooltiptext ${t.show}`)},[o.createElementVNode("span",QO,o.toDisplayString(t.tooltipText),1)],10,vO)],40,_O)}var UO=Ze(kO,[["render",YO]]),AS="";const PO={class:"code"},RO=["autocomplete"],BO=["autocomplete"],ZO=["autocomplete"],VO=["autocomplete"],GO=["autocomplete"],WO=["autocomplete"];var $O=Ze(o.defineComponent({__name:"VerificationCode",props:{code:{type:String,required:!1,default:""},focusOnFirstInput:{type:Boolean,default:!0},focusOnFirstInputDelay:{type:Number,default:100},autoComplete:{type:String,default:"off"}},emits:["submit"],setup(t,{emit:e}){const n=t,i=o.ref(null),a=o.ref(null),r=o.ref(null),s=o.ref(null),l=o.ref(null),M=o.ref(null);async function u(f){var N,I,A,p,m;switch(f){case 1:break;case 2:(N=i.value)==null||N.focus();break;case 3:(I=a.value)==null||I.focus();break;case 4:(A=r.value)==null||A.focus();break;case 5:(p=s.value)==null||p.focus();break;case 6:(m=l.value)==null||m.focus();break}}async function c(f){var N,I,A,p,m;switch(f){case 1:(N=a.value)==null||N.focus();break;case 2:(I=r.value)==null||I.focus();break;case 3:(A=s.value)==null||A.focus();break;case 4:(p=l.value)==null||p.focus();break;case 5:(m=M.value)==null||m.focus();break}}async function g(f,N){const I=f.key;let A=!0;[{_index:1,nextInput:a},{_index:2,nextInput:r},{_index:3,nextInput:s},{_index:4,nextInput:l},{_index:5,nextInput:M}].forEach(({_index:p,nextInput:m})=>{N===p&&(m.value&&I.match(/^[0-9]+$/)&&m.value.focus({}),A=!1),f.preventDefault()}),I.match(/^[0-9]+$/)&&(f.target.value=I),A&&j()}async function d(f){var I;const N=((I=f.clipboardData)==null?void 0:I.getData("text/plain"))||"";y(N),j()}function y(f){const N=f.replace(/\D/g,"");if(N.length!==6)return;const[I,A,p,m,z,w]=N.split("");i.value&&(i.value.value=I),a.value&&(a.value.value=A),r.value&&(r.value.value=p),s.value&&(s.value.value=m),l.value&&(l.value.value=z),M.value&&(M.value.value=w)}async function j(){var N,I,A,p,m,z;const f=`${(N=i.value)==null?void 0:N.value}${(I=a.value)==null?void 0:I.value}${(A=r.value)==null?void 0:A.value}${(p=s.value)==null?void 0:p.value}${(m=l.value)==null?void 0:m.value}${(z=M.value)==null?void 0:z.value}`;e("submit",f)}function D(){setTimeout(()=>{var f;n.focusOnFirstInput&&((f=i.value)==null||f.focus())},n.focusOnFirstInputDelay)}return o.onMounted(()=>{n.code&&(y(n.code),j()),D()}),(f,N)=>(o.openBlock(),o.createElementBlock("div",PO,[o.createElementVNode("input",{ref_key:"txtInput1",ref:i,autocomplete:t.autoComplete,autofocus:"",class:"form-input input-1","data-e2e":"input-1",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:N[0]||(N[0]=I=>g(I,1)),onKeyup:[N[1]||(N[1]=o.withKeys(I=>u(1),["delete"])),N[2]||(N[2]=o.withKeys(I=>u(1),["left"])),N[3]||(N[3]=o.withKeys(I=>c(1),["right"]))],onPaste:d},null,40,RO),o.createElementVNode("input",{ref_key:"txtInput2",ref:a,autocomplete:t.autoComplete,class:"form-input","data-e2e":"input-2",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:N[4]||(N[4]=I=>g(I,2)),onKeyup:[N[5]||(N[5]=o.withKeys(I=>u(2),["delete"])),N[6]||(N[6]=o.withKeys(I=>u(2),["left"])),N[7]||(N[7]=o.withKeys(I=>c(2),["right"]))],onPaste:d},null,40,BO),o.createElementVNode("input",{ref_key:"txtInput3",ref:r,autocomplete:t.autoComplete,class:"form-input","data-e2e":"input-3",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:N[8]||(N[8]=I=>g(I,3)),onKeyup:[N[9]||(N[9]=o.withKeys(I=>u(3),["delete"])),N[10]||(N[10]=o.withKeys(I=>u(3),["left"])),N[11]||(N[11]=o.withKeys(I=>c(3),["right"]))],onPaste:d},null,40,ZO),o.createElementVNode("input",{ref_key:"txtInput4",ref:s,autocomplete:t.autoComplete,class:"form-input","data-e2e":"input-4",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:N[12]||(N[12]=I=>g(I,4)),onKeyup:[N[13]||(N[13]=o.withKeys(I=>u(4),["delete"])),N[14]||(N[14]=o.withKeys(I=>u(4),["left"])),N[15]||(N[15]=o.withKeys(I=>c(4),["right"]))],onPaste:d},null,40,VO),o.createElementVNode("input",{ref_key:"txtInput5",ref:l,autocomplete:t.autoComplete,class:"form-input","data-e2e":"input-5",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:N[16]||(N[16]=I=>g(I,5)),onKeyup:[N[17]||(N[17]=o.withKeys(I=>u(5),["delete"])),N[18]||(N[18]=o.withKeys(I=>u(5),["left"])),N[19]||(N[19]=o.withKeys(I=>c(5),["right"]))],onPaste:d},null,40,GO),o.createElementVNode("input",{ref_key:"txtInput6",ref:M,autocomplete:t.autoComplete,class:"form-input","data-e2e":"input-6",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:N[20]||(N[20]=I=>g(I,6)),onKeyup:[N[21]||(N[21]=o.withKeys(I=>u(6),["delete"])),N[22]||(N[22]=o.withKeys(I=>u(6),["left"])),N[23]||(N[23]=o.withKeys(I=>c(6),["right"]))],onPaste:d},null,40,WO)]))}}),[["__scopeId","data-v-2ace876a"]]);De.DhAdvancedDatePicker=xL,De.DhAdvancedFilter=Gg,De.DhDatePicker=EL,De.DhDropdownMenu=_L,De.DhError=QL,De.DhExpansionPanel=BL,De.DhFileUpload=ox,De.DhIcon=ye,De.DhInputDropdown=cx,De.DhInputList=Kx,De.DhModal=aO,De.DhNotification=jO,De.DhNumberRange=Wg,De.DhPasswordField=mO,De.DhRadioBox=Hg,De.DhRadioBoxGroup=LO,De.DhSearchInput=SO,De.DhStepper=wO,De.DhSwitch=Bu,De.DhTooltip=UO,De.DhVerificationCode=$O,Object.defineProperties(De,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
19
+ `):t}function qp(t,e){const{element:n,datasetIndex:i,index:a}=e,r=t.getDatasetMeta(i).controller,{label:s,value:l}=r.getLabelAndValue(a);return{chart:t,label:s,parsed:r.getParsed(a),raw:t.data.datasets[i].data[a],formattedValue:l,dataset:r.getDataset(),dataIndex:a,datasetIndex:i,element:n}}function Sg(t,e){const n=t.chart.ctx,{body:i,footer:a,title:r}=t,{boxWidth:s,boxHeight:l}=e,M=et(e.bodyFont),u=et(e.titleFont),c=et(e.footerFont),g=r.length,d=a.length,y=i.length,j=ot(e.padding);let D=j.height,f=0,N=i.reduce((p,m)=>p+m.before.length+m.lines.length+m.after.length,0);if(N+=t.beforeBody.length+t.afterBody.length,g&&(D+=g*u.lineHeight+(g-1)*e.titleSpacing+e.titleMarginBottom),N){const p=e.displayColors?Math.max(l,M.lineHeight):M.lineHeight;D+=y*p+(N-y)*M.lineHeight+(N-1)*e.bodySpacing}d&&(D+=e.footerMarginTop+d*c.lineHeight+(d-1)*e.footerSpacing);let I=0;const A=function(p){f=Math.max(f,n.measureText(p).width+I)};return n.save(),n.font=u.string,je(t.title,A),n.font=M.string,je(t.beforeBody.concat(t.afterBody),A),I=e.displayColors?s+2+e.boxPadding:0,je(i,p=>{je(p.before,A),je(p.lines,A),je(p.after,A)}),I=0,n.font=c.string,je(t.footer,A),n.restore(),f+=j.width,{width:f,height:D}}function eT(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}function tT(t,e,n,i){const{x:a,width:r}=i,s=n.caretSize+n.caretPadding;if(t==="left"&&a+r+s>e.width||t==="right"&&a-r-s<0)return!0}function nT(t,e,n,i){const{x:a,width:r}=n,{width:s,chartArea:{left:l,right:M}}=t;let u="center";return i==="center"?u=a<=(l+M)/2?"left":"right":a<=r/2?u="left":a>=s-r/2&&(u="right"),tT(u,t,e,n)&&(u="center"),u}function Eg(t,e,n){const i=n.yAlign||e.yAlign||eT(t,n);return{xAlign:n.xAlign||e.xAlign||nT(t,e,n,i),yAlign:i}}function iT(t,e){let{x:n,width:i}=t;return e==="right"?n-=i:e==="center"&&(n-=i/2),n}function aT(t,e,n){let{y:i,height:a}=t;return e==="top"?i+=n:e==="bottom"?i-=a+n:i-=a/2,i}function bg(t,e,n,i){const{caretSize:a,caretPadding:r,cornerRadius:s}=t,{xAlign:l,yAlign:M}=n,u=a+r,{topLeft:c,topRight:g,bottomLeft:d,bottomRight:y}=hn(s);let j=iT(e,l);const D=aT(e,M,u);return M==="center"?l==="left"?j+=u:l==="right"&&(j-=u):l==="left"?j-=Math.max(c,d)+a:l==="right"&&(j+=Math.max(g,y)+a),{x:Ve(j,0,i.width-e.width),y:Ve(D,0,i.height-e.height)}}function yr(t,e,n){const i=ot(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-i.right:t.x+i.left}function Cg(t){return At([],wt(t))}function rT(t,e,n){return Gt(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function wg(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class Nl extends Ct{constructor(e){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=e.chart||e._chart,this._chart=this.chart,this.options=e.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(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,i=this.options.setContext(this.getContext()),a=i.enabled&&n.options.animation&&i.animations,r=new Uc(this.chart,a);return a._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=rT(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:i}=n,a=i.beforeTitle.apply(this,[e]),r=i.title.apply(this,[e]),s=i.afterTitle.apply(this,[e]);let l=[];return l=At(l,wt(a)),l=At(l,wt(r)),l=At(l,wt(s)),l}getBeforeBody(e,n){return Cg(n.callbacks.beforeBody.apply(this,[e]))}getBody(e,n){const{callbacks:i}=n,a=[];return je(e,r=>{const s={before:[],lines:[],after:[]},l=wg(i,r);At(s.before,wt(l.beforeLabel.call(this,r))),At(s.lines,l.label.call(this,r)),At(s.after,wt(l.afterLabel.call(this,r))),a.push(s)}),a}getAfterBody(e,n){return Cg(n.callbacks.afterBody.apply(this,[e]))}getFooter(e,n){const{callbacks:i}=n,a=i.beforeFooter.apply(this,[e]),r=i.footer.apply(this,[e]),s=i.afterFooter.apply(this,[e]);let l=[];return l=At(l,wt(a)),l=At(l,wt(r)),l=At(l,wt(s)),l}_createItems(e){const n=this._active,i=this.chart.data,a=[],r=[],s=[];let l=[],M,u;for(M=0,u=n.length;M<u;++M)l.push(qp(this.chart,n[M]));return e.filter&&(l=l.filter((c,g,d)=>e.filter(c,g,d,i))),e.itemSort&&(l=l.sort((c,g)=>e.itemSort(c,g,i))),je(l,c=>{const g=wg(e.callbacks,c);a.push(g.labelColor.call(this,c)),r.push(g.labelPointStyle.call(this,c)),s.push(g.labelTextColor.call(this,c))}),this.labelColors=a,this.labelPointStyles=r,this.labelTextColors=s,this.dataPoints=l,l}update(e,n){const i=this.options.setContext(this.getContext()),a=this._active;let r,s=[];if(!a.length)this.opacity!==0&&(r={opacity:0});else{const l=ii[i.position].call(this,a,this._eventPosition);s=this._createItems(i),this.title=this.getTitle(s,i),this.beforeBody=this.getBeforeBody(s,i),this.body=this.getBody(s,i),this.afterBody=this.getAfterBody(s,i),this.footer=this.getFooter(s,i);const M=this._size=Sg(this,i),u=Object.assign({},l,M),c=Eg(this.chart,i,u),g=bg(i,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,r={opacity:1,x:g.x,y:g.y,width:M.width,height:M.height,caretX:l.x,caretY:l.y}}this._tooltipItems=s,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,i,a){const r=this.getCaretPosition(e,i,a);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(e,n,i){const{xAlign:a,yAlign:r}=this,{caretSize:s,cornerRadius:l}=i,{topLeft:M,topRight:u,bottomLeft:c,bottomRight:g}=hn(l),{x:d,y}=e,{width:j,height:D}=n;let f,N,I,A,p,m;return r==="center"?(p=y+D/2,a==="left"?(f=d,N=f-s,A=p+s,m=p-s):(f=d+j,N=f+s,A=p-s,m=p+s),I=f):(a==="left"?N=d+Math.max(M,c)+s:a==="right"?N=d+j-Math.max(u,g)-s:N=this.caretX,r==="top"?(A=y,p=A-s,f=N-s,I=N+s):(A=y+D,p=A+s,f=N+s,I=N-s),m=A),{x1:f,x2:N,x3:I,y1:A,y2:p,y3:m}}drawTitle(e,n,i){const a=this.title,r=a.length;let s,l,M;if(r){const u=Ws(i.rtl,this.x,this.width);for(e.x=yr(this,i.titleAlign,i),n.textAlign=u.textAlign(i.titleAlign),n.textBaseline="middle",s=et(i.titleFont),l=i.titleSpacing,n.fillStyle=i.titleColor,n.font=s.string,M=0;M<r;++M)n.fillText(a[M],u.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+l,M+1===r&&(e.y+=i.titleMarginBottom-l)}}_drawColorBox(e,n,i,a,r){const s=this.labelColors[i],l=this.labelPointStyles[i],{boxHeight:M,boxWidth:u,boxPadding:c}=r,g=et(r.bodyFont),d=yr(this,"left",r),y=a.x(d),j=M<g.lineHeight?(g.lineHeight-M)/2:0,D=n.y+j;if(r.usePointStyle){const f={radius:Math.min(u,M)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},N=a.leftForLtr(y,u)+u/2,I=D+M/2;e.strokeStyle=r.multiKeyBackground,e.fillStyle=r.multiKeyBackground,Us(e,f,N,I),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,Us(e,f,N,I)}else{e.lineWidth=le(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,e.strokeStyle=s.borderColor,e.setLineDash(s.borderDash||[]),e.lineDashOffset=s.borderDashOffset||0;const f=a.leftForLtr(y,u-c),N=a.leftForLtr(a.xPlus(y,1),u-c-2),I=hn(s.borderRadius);Object.values(I).some(A=>A!==0)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,Ka(e,{x:f,y:D,w:u,h:M,radius:I}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),Ka(e,{x:N,y:D+1,w:u-2,h:M-2,radius:I}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(f,D,u,M),e.strokeRect(f,D,u,M),e.fillStyle=s.backgroundColor,e.fillRect(N,D+1,u-2,M-2))}e.fillStyle=this.labelTextColors[i]}drawBody(e,n,i){const{body:a}=this,{bodySpacing:r,bodyAlign:s,displayColors:l,boxHeight:M,boxWidth:u,boxPadding:c}=i,g=et(i.bodyFont);let d=g.lineHeight,y=0;const j=Ws(i.rtl,this.x,this.width),D=function(_){n.fillText(_,j.x(e.x+y),e.y+d/2),e.y+=d+r},f=j.textAlign(s);let N,I,A,p,m,z,w;for(n.textAlign=s,n.textBaseline="middle",n.font=g.string,e.x=yr(this,f,i),n.fillStyle=i.bodyColor,je(this.beforeBody,D),y=l&&f!=="right"?s==="center"?u/2+c:u+2+c:0,p=0,z=a.length;p<z;++p){for(N=a[p],I=this.labelTextColors[p],n.fillStyle=I,je(N.before,D),A=N.lines,l&&A.length&&(this._drawColorBox(n,e,p,j,i),d=Math.max(g.lineHeight,M)),m=0,w=A.length;m<w;++m)D(A[m]),d=g.lineHeight;je(N.after,D)}y=0,d=g.lineHeight,je(this.afterBody,D),e.y-=r}drawFooter(e,n,i){const a=this.footer,r=a.length;let s,l;if(r){const M=Ws(i.rtl,this.x,this.width);for(e.x=yr(this,i.footerAlign,i),e.y+=i.footerMarginTop,n.textAlign=M.textAlign(i.footerAlign),n.textBaseline="middle",s=et(i.footerFont),n.fillStyle=i.footerColor,n.font=s.string,l=0;l<r;++l)n.fillText(a[l],M.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+i.footerSpacing}}drawBackground(e,n,i,a){const{xAlign:r,yAlign:s}=this,{x:l,y:M}=e,{width:u,height:c}=i,{topLeft:g,topRight:d,bottomLeft:y,bottomRight:j}=hn(a.cornerRadius);n.fillStyle=a.backgroundColor,n.strokeStyle=a.borderColor,n.lineWidth=a.borderWidth,n.beginPath(),n.moveTo(l+g,M),s==="top"&&this.drawCaret(e,n,i,a),n.lineTo(l+u-d,M),n.quadraticCurveTo(l+u,M,l+u,M+d),s==="center"&&r==="right"&&this.drawCaret(e,n,i,a),n.lineTo(l+u,M+c-j),n.quadraticCurveTo(l+u,M+c,l+u-j,M+c),s==="bottom"&&this.drawCaret(e,n,i,a),n.lineTo(l+y,M+c),n.quadraticCurveTo(l,M+c,l,M+c-y),s==="center"&&r==="left"&&this.drawCaret(e,n,i,a),n.lineTo(l,M+g),n.quadraticCurveTo(l,M,l+g,M),n.closePath(),n.fill(),a.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,i=this.$animations,a=i&&i.x,r=i&&i.y;if(a||r){const s=ii[e.position].call(this,this._active,this._eventPosition);if(!s)return;const l=this._size=Sg(this,e),M=Object.assign({},s,this._size),u=Eg(n,e,M),c=bg(e,M,u,n);(a._to!==c.x||r._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=l.width,this.height=l.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const a={width:this.width,height:this.height},r={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const s=ot(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(e.save(),e.globalAlpha=i,this.drawBackground(r,e,a,n),Rz(e,n.textDirection),r.y+=s.top,this.drawTitle(r,e,n),this.drawBody(r,e,n),this.drawFooter(r,e,n),Bz(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const i=this._active,a=e.map(({datasetIndex:l,index:M})=>{const u=this.chart.getDatasetMeta(l);if(!u)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:u.data[M],index:M}}),r=!Ra(i,a),s=this._positionChanged(a,n);(r||s)&&(this._active=a,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const a=this.options,r=this._active||[],s=this._getActiveElements(e,r,n,i),l=this._positionChanged(s,e),M=n||!Ra(s,r)||l;return M&&(this._active=s,(a.enabled||a.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),M}_getActiveElements(e,n,i,a){const r=this.options;if(e.type==="mouseout")return[];if(!a)return n;const s=this.chart.getElementsAtEventForMode(e,r.mode,r,i);return r.reverse&&s.reverse(),s}_positionChanged(e,n){const{caretX:i,caretY:a,options:r}=this,s=ii[r.position].call(this,e,n);return s!==!1&&(i!==s.x||a!==s.y)}}Nl.positioners=ii;var oT={id:"tooltip",_element:Nl,positioners:ii,afterInit(t,e,n){n&&(t.tooltip=new Nl({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",n)===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.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:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.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:St,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:St,beforeBody:St,beforeLabel:St,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return Ne(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:St,afterBody:St,beforeFooter:St,footer:St,afterFooter:St}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const sT=(t,e,n,i)=>(typeof e=="string"?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function lT(t,e,n,i){const a=t.indexOf(e);if(a===-1)return sT(t,e,n,i);const r=t.lastIndexOf(e);return a!==r?n:a}const MT=(t,e)=>t===null?null:Ve(Math.round(t),0,e);class jr extends ln{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const i=this.getLabels();for(const{index:a,label:r}of n)i[a]===r&&i.splice(a,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(Ne(e))return null;const i=this.getLabels();return n=isFinite(n)&&i[n]===e?n:lT(i,e,Me(n,e),this._addedLabels),MT(n,i.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:a}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(i=0),n||(a=this.getLabels().length-1)),this.min=i,this.max=a}buildTicks(){const e=this.min,n=this.max,i=this.options.offset,a=[];let r=this.getLabels();r=e===0&&n===r.length-1?r:r.slice(e,n+1),this._valueRange=Math.max(r.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let s=e;s<=n;s++)a.push({value:s});return a}getLabelForValue(e){const n=this.getLabels();return e>=0&&e<n.length?n[e]:e}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}jr.id="category",jr.defaults={ticks:{callback:jr.prototype.getLabelForValue}};function uT(t,e){const n=[],{bounds:a,step:r,min:s,max:l,precision:M,count:u,maxTicks:c,maxDigits:g,includeBounds:d}=t,y=r||1,j=c-1,{min:D,max:f}=e,N=!Ne(s),I=!Ne(l),A=!Ne(u),p=(f-D)/(g+1);let m=Hu((f-D)/j/y)*y,z,w,_,Y;if(m<1e-14&&!N&&!I)return[{value:D},{value:f}];Y=Math.ceil(f/m)-Math.floor(D/m),Y>j&&(m=Hu(Y*m/j/y)*y),Ne(M)||(z=Math.pow(10,M),m=Math.ceil(m*z)/z),a==="ticks"?(w=Math.floor(D/m)*m,_=Math.ceil(f/m)*m):(w=D,_=f),N&&I&&r&&pA((l-s)/r,m/1e3)?(Y=Math.round(Math.min((l-s)/m,c)),m=(l-s)/Y,w=s,_=l):A?(w=N?s:w,_=I?l:_,Y=u-1,m=(_-w)/Y):(Y=(_-w)/m,Un(Y,Math.round(Y),m/1e3)?Y=Math.round(Y):Y=Math.ceil(Y));const R=Math.max(Ju(m),Ju(w));z=Math.pow(10,Ne(M)?R:M),w=Math.round(w*z)/z,_=Math.round(_*z)/z;let k=0;for(N&&(d&&w!==s?(n.push({value:s}),w<s&&k++,Un(Math.round((w+k*m)*z)/z,s,kg(s,p,t))&&k++):w<s&&k++);k<Y;++k)n.push({value:Math.round((w+k*m)*z)/z});return I&&d&&_!==l?n.length&&Un(n[n.length-1].value,l,kg(l,p,t))?n[n.length-1].value=l:n.push({value:l}):(!I||_===l)&&n.push({value:_}),n}function kg(t,e,{horizontal:n,minRotation:i}){const a=ct(i),r=(n?Math.sin(a):Math.cos(a))||.001,s=.75*e*(""+t).length;return Math.min(e/r,s)}class Ir extends ln{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return Ne(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:a,max:r}=this;const s=M=>a=n?a:M,l=M=>r=i?r:M;if(e){const M=ht(a),u=ht(r);M<0&&u<0?l(0):M>0&&u>0&&s(0)}if(a===r){let M=1;(r>=Number.MAX_SAFE_INTEGER||a<=Number.MIN_SAFE_INTEGER)&&(M=Math.abs(r*.05)),l(r+M),e||s(a-M)}this.min=a,this.max=r}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=e,a;return i?(a=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,a>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${a} ticks. Limiting to 1000.`),a=1e3)):(a=this.computeTickLimit(),n=n||11),n&&(a=Math.min(n,a)),a}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let i=this.getTickLimit();i=Math.max(2,i);const a={maxTicks:i,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},r=this._range||this,s=uT(a,r);return e.bounds==="ticks"&&Fu(s,this,"value"),e.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const e=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&e.length){const a=(i-n)/Math.max(e.length-1,1)/2;n-=a,i+=a}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(e){return Wn(e,this.chart.options.locale,this.options.ticks.format)}}class dl extends Ir{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Re(e)?e:0,this.max=Re(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,i=ct(this.options.ticks.minRotation),a=(e?Math.sin(i):Math.cos(i))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,r.lineHeight/a))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}dl.id="linear",dl.defaults={ticks:{callback:ar.formatters.numeric}};function _g(t){return t/Math.pow(10,Math.floor(at(t)))===1}function cT(t,e){const n=Math.floor(at(e.max)),i=Math.ceil(e.max/Math.pow(10,n)),a=[];let r=nt(t.min,Math.pow(10,Math.floor(at(e.min)))),s=Math.floor(at(r)),l=Math.floor(r/Math.pow(10,s)),M=s<0?Math.pow(10,Math.abs(s)):1;do a.push({value:r,major:_g(r)}),++l,l===10&&(l=1,++s,M=s>=0?1:M),r=Math.round(l*Math.pow(10,s)*M)/M;while(s<n||s===n&&l<i);const u=nt(t.max,r);return a.push({value:u,major:_g(r)}),a}class vg extends ln{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const i=Ir.prototype.parse.apply(this,[e,n]);if(i===0){this._zero=!0;return}return Re(i)&&i>0?i:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Re(e)?Math.max(0,e):null,this.max=Re(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let i=this.min,a=this.max;const r=M=>i=e?i:M,s=M=>a=n?a:M,l=(M,u)=>Math.pow(10,Math.floor(at(M))+u);i===a&&(i<=0?(r(1),s(10)):(r(l(i,-1)),s(l(a,1)))),i<=0&&r(l(a,-1)),a<=0&&s(l(i,1)),this._zero&&this.min!==this._suggestedMin&&i===l(this.min,0)&&r(l(i,-1)),this.min=i,this.max=a}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},i=cT(n,this);return e.bounds==="ticks"&&Fu(i,this,"value"),e.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(e){return e===void 0?"0":Wn(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=at(e),this._valueRange=at(this.max)-at(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(at(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}vg.id="logarithmic",vg.defaults={ticks:{callback:ar.formatters.logarithmic,major:{enabled:!0}}};function yl(t){const e=t.ticks;if(e.display&&t.display){const n=ot(e.backdropPadding);return Me(e.font&&e.font.size,oe.font.size)+n.height}return 0}function gT(t,e,n){return n=Te(n)?n:[n],{w:nz(t,e.string,n),h:n.length*e.lineHeight}}function Qg(t,e,n,i,a){return t===i||t===a?{start:e-n/2,end:e+n/2}:t<i||t>a?{start:e-n,end:e}:{start:e,end:e+n}}function NT(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),i=[],a=[],r=t._pointLabels.length,s=t.options.pointLabels,l=s.centerPointLabels?Ee/r:0;for(let M=0;M<r;M++){const u=s.setContext(t.getPointLabelContext(M));a[M]=u.padding;const c=t.getPointPosition(M,t.drawingArea+a[M],l),g=et(u.font),d=gT(t.ctx,g,t._pointLabels[M]);i[M]=d;const y=gt(t.getIndexAngle(M)+l),j=Math.round(Os(y)),D=Qg(j,c.x,d.w,0,180),f=Qg(j,c.y,d.h,90,270);dT(n,e,y,D,f)}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=yT(t,i,a)}function dT(t,e,n,i,a){const r=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let l=0,M=0;i.start<e.l?(l=(e.l-i.start)/r,t.l=Math.min(t.l,e.l-l)):i.end>e.r&&(l=(i.end-e.r)/r,t.r=Math.max(t.r,e.r+l)),a.start<e.t?(M=(e.t-a.start)/s,t.t=Math.min(t.t,e.t-M)):a.end>e.b&&(M=(a.end-e.b)/s,t.b=Math.max(t.b,e.b+M))}function yT(t,e,n){const i=[],a=t._pointLabels.length,r=t.options,s=yl(r)/2,l=t.drawingArea,M=r.pointLabels.centerPointLabels?Ee/a:0;for(let u=0;u<a;u++){const c=t.getPointPosition(u,l+s+n[u],M),g=Math.round(Os(gt(c.angle+be))),d=e[u],y=DT(c.y,d.h,g),j=jT(g),D=IT(c.x,d.w,j);i.push({x:c.x,y,textAlign:j,left:D,top:y,right:D+d.w,bottom:y+d.h})}return i}function jT(t){return t===0||t===180?"center":t<180?"left":"right"}function IT(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function DT(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function fT(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let a=e-1;a>=0;a--){const r=i.setContext(t.getPointLabelContext(a)),s=et(r.font),{x:l,y:M,textAlign:u,left:c,top:g,right:d,bottom:y}=t._pointLabelItems[a],{backdropColor:j}=r;if(!Ne(j)){const D=hn(r.borderRadius),f=ot(r.backdropPadding);n.fillStyle=j;const N=c-f.left,I=g-f.top,A=d-c+f.width,p=y-g+f.height;Object.values(D).some(m=>m!==0)?(n.beginPath(),Ka(n,{x:N,y:I,w:A,h:p,radius:D}),n.fill()):n.fillRect(N,I,A,p)}Xa(n,t._pointLabels[a],l,M+s.lineHeight/2,s,{color:r.color,textAlign:u,textBaseline:"middle"})}}function Yg(t,e,n,i){const{ctx:a}=t;if(n)a.arc(t.xCenter,t.yCenter,e,0,fe);else{let r=t.getPointPosition(0,e);a.moveTo(r.x,r.y);for(let s=1;s<i;s++)r=t.getPointPosition(s,e),a.lineTo(r.x,r.y)}}function hT(t,e,n,i){const a=t.ctx,r=e.circular,{color:s,lineWidth:l}=e;!r&&!i||!s||!l||n<0||(a.save(),a.strokeStyle=s,a.lineWidth=l,a.setLineDash(e.borderDash),a.lineDashOffset=e.borderDashOffset,a.beginPath(),Yg(t,n,r,i),a.closePath(),a.stroke(),a.restore())}function mT(t,e,n){return Gt(t,{label:n,index:e,type:"pointLabel"})}class Dr extends Ir{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=ot(yl(this.options)/2),n=this.width=this.maxWidth-e.width,i=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+n/2+e.left),this.yCenter=Math.floor(this.top+i/2+e.top),this.drawingArea=Math.floor(Math.min(n,i)/2)}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!1);this.min=Re(e)&&!isNaN(e)?e:0,this.max=Re(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/yl(this.options))}generateTickLabels(e){Ir.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,i)=>{const a=Se(this.options.pointLabels.callback,[n,i],this);return a||a===0?a:""}).filter((n,i)=>this.chart.getDataVisibility(i))}fit(){const e=this.options;e.display&&e.pointLabels.display?NT(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,i,a){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((i-a)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,i,a))}getIndexAngle(e){const n=fe/(this._pointLabels.length||1),i=this.options.startAngle||0;return gt(e*n+ct(i))}getDistanceFromCenterForValue(e){if(Ne(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if(Ne(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e<n.length){const i=n[e];return mT(this.getContext(),e,i)}}getPointPosition(e,n,i=0){const a=this.getIndexAngle(e)-be+i;return{x:Math.cos(a)*n+this.xCenter,y:Math.sin(a)*n+this.yCenter,angle:a}}getPointPositionForValue(e,n){return this.getPointPosition(e,this.getDistanceFromCenterForValue(n))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:n,top:i,right:a,bottom:r}=this._pointLabelItems[e];return{left:n,top:i,right:a,bottom:r}}drawBackground(){const{backgroundColor:e,grid:{circular:n}}=this.options;if(e){const i=this.ctx;i.save(),i.beginPath(),Yg(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),i.closePath(),i.fillStyle=e,i.fill(),i.restore()}}drawGrid(){const e=this.ctx,n=this.options,{angleLines:i,grid:a}=n,r=this._pointLabels.length;let s,l,M;if(n.pointLabels.display&&fT(this,r),a.display&&this.ticks.forEach((u,c)=>{if(c!==0){l=this.getDistanceFromCenterForValue(u.value);const g=a.setContext(this.getContext(c-1));hT(this,g,l,r)}}),i.display){for(e.save(),s=r-1;s>=0;s--){const u=i.setContext(this.getPointLabelContext(s)),{color:c,lineWidth:g}=u;!g||!c||(e.lineWidth=g,e.strokeStyle=c,e.setLineDash(u.borderDash),e.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),M=this.getPointPosition(s,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(M.x,M.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,i=n.ticks;if(!i.display)return;const a=this.getIndexAngle(0);let r,s;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(a),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((l,M)=>{if(M===0&&!n.reverse)return;const u=i.setContext(this.getContext(M)),c=et(u.font);if(r=this.getDistanceFromCenterForValue(this.ticks[M].value),u.showLabelBackdrop){e.font=c.string,s=e.measureText(l.label).width,e.fillStyle=u.backdropColor;const g=ot(u.backdropPadding);e.fillRect(-s/2-g.left,-r-c.size/2-g.top,s+g.width,c.size+g.height)}Xa(e,l.label,0,-r,c,{color:u.color})}),e.restore()}drawTitle(){}}Dr.id="radialLinear",Dr.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ar.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}},Dr.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Dr.descriptors={angleLines:{_fallback:"grid"}};const fr={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}},Ke=Object.keys(fr);function AT(t,e){return t-e}function Ug(t,e){if(Ne(e))return null;const n=t._adapter,{parser:i,round:a,isoWeekday:r}=t._parseOpts;let s=e;return typeof i=="function"&&(s=i(s)),Re(s)||(s=typeof i=="string"?n.parse(s,i):n.parse(s)),s===null?null:(a&&(s=a==="week"&&(Dn(r)||r===!0)?n.startOf(s,"isoWeek",r):n.startOf(s,a)),+s)}function Pg(t,e,n,i){const a=Ke.length;for(let r=Ke.indexOf(t);r<a-1;++r){const s=fr[Ke[r]],l=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-e)/(l*s.size))<=i)return Ke[r]}return Ke[a-1]}function zT(t,e,n,i,a){for(let r=Ke.length-1;r>=Ke.indexOf(n);r--){const s=Ke[r];if(fr[s].common&&t._adapter.diff(a,i,s)>=e-1)return s}return Ke[n?Ke.indexOf(n):0]}function pT(t){for(let e=Ke.indexOf(t)+1,n=Ke.length;e<n;++e)if(fr[Ke[e]].common)return Ke[e]}function Rg(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:i,hi:a}=Es(n,e),r=n[i]>=e?n[i]:n[a];t[r]=!0}}function TT(t,e,n,i){const a=t._adapter,r=+a.startOf(e[0].value,i),s=e[e.length-1].value;let l,M;for(l=r;l<=s;l=+a.add(l,1,i))M=n[l],M>=0&&(e[M].major=!0);return e}function Bg(t,e,n){const i=[],a={},r=e.length;let s,l;for(s=0;s<r;++s)l=e[s],a[l]=s,i.push({value:l,major:!1});return r===0||!n?i:TT(t,i,a,n)}class hr extends ln{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n){const i=e.time||(e.time={}),a=this._adapter=new Z0._date(e.adapters.date);a.init(n),Qn(i.displayFormats,a.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:Ug(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,i=e.time.unit||"day";let{min:a,max:r,minDefined:s,maxDefined:l}=this.getUserBounds();function M(u){!s&&!isNaN(u.min)&&(a=Math.min(a,u.min)),!l&&!isNaN(u.max)&&(r=Math.max(r,u.max))}(!s||!l)&&(M(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&M(this.getMinMax(!1))),a=Re(a)&&!isNaN(a)?a:+n.startOf(Date.now(),i),r=Re(r)&&!isNaN(r)?r:+n.endOf(Date.now(),i)+1,this.min=Math.min(a,r-1),this.max=Math.max(a+1,r)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],i=e[e.length-1]),{min:n,max:i}}buildTicks(){const e=this.options,n=e.time,i=e.ticks,a=i.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&a.length&&(this.min=this._userMin||a[0],this.max=this._userMax||a[a.length-1]);const r=this.min,s=this.max,l=OA(a,r,s);return this._unit=n.unit||(i.autoSkip?Pg(n.minUnit,this.min,this.max,this._getLabelCapacity(r)):zT(this,l.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:pT(this._unit),this.initOffsets(a),e.reverse&&l.reverse(),Bg(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e){let n=0,i=0,a,r;this.options.offset&&e.length&&(a=this.getDecimalForValue(e[0]),e.length===1?n=1-a:n=(this.getDecimalForValue(e[1])-a)/2,r=this.getDecimalForValue(e[e.length-1]),e.length===1?i=r:i=(r-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;n=Ve(n,0,s),i=Ve(i,0,s),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const e=this._adapter,n=this.min,i=this.max,a=this.options,r=a.time,s=r.unit||Pg(r.minUnit,n,i,this._getLabelCapacity(n)),l=Me(r.stepSize,1),M=s==="week"?r.isoWeekday:!1,u=Dn(M)||M===!0,c={};let g=n,d,y;if(u&&(g=+e.startOf(g,"isoWeek",M)),g=+e.startOf(g,u?"day":s),e.diff(i,n,s)>1e5*l)throw new Error(n+" and "+i+" are too far apart with stepSize of "+l+" "+s);const j=a.ticks.source==="data"&&this.getDataTimestamps();for(d=g,y=0;d<i;d=+e.add(d,l,s),y++)Rg(c,d,j);return(d===i||a.bounds==="ticks"||y===1)&&Rg(c,d,j),Object.keys(c).sort((D,f)=>D-f).map(D=>+D)}getLabelForValue(e){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(e,i.tooltipFormat):n.format(e,i.displayFormats.datetime)}_tickFormatFunction(e,n,i,a){const r=this.options,s=r.time.displayFormats,l=this._unit,M=this._majorUnit,u=l&&s[l],c=M&&s[M],g=i[n],d=M&&c&&g&&g.major,y=this._adapter.format(e,a||(d?c:u)),j=r.ticks.callback;return j?Se(j,[y,n,i],this):y}generateTickLabels(e){let n,i,a;for(n=0,i=e.length;n<i;++n)a=e[n],a.label=this._tickFormatFunction(a.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,i=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+i)*n.factor)}getValueForPixel(e){const n=this._offsets,i=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+i*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,i=this.ctx.measureText(e).width,a=ct(this.isHorizontal()?n.maxRotation:n.minRotation),r=Math.cos(a),s=Math.sin(a),l=this._resolveTickFontOptions(0).size;return{w:i*r+l*s,h:i*s+l*r}}_getLabelCapacity(e){const n=this.options.time,i=n.displayFormats,a=i[n.unit]||i.millisecond,r=this._tickFormatFunction(e,0,Bg(this,[e],this._majorUnit),a),s=this._getLabelSize(r),l=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return l>0?l:1}getDataTimestamps(){let e=this._cache.data||[],n,i;if(e.length)return e;const a=this.getMatchingVisibleMetas();if(this._normalized&&a.length)return this._cache.data=a[0].controller.getAllParsedValues(this);for(n=0,i=a.length;n<i;++n)e=e.concat(a[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,i;if(e.length)return e;const a=this.getLabels();for(n=0,i=a.length;n<i;++n)e.push(Ug(this,a[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return ec(e.sort(AT))}}hr.id="time",hr.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};function mr(t,e,n){let i=0,a=t.length-1,r,s,l,M;n?(e>=t[i].pos&&e<=t[a].pos&&({lo:i,hi:a}=tn(t,"pos",e)),{pos:r,time:l}=t[i],{pos:s,time:M}=t[a]):(e>=t[i].time&&e<=t[a].time&&({lo:i,hi:a}=tn(t,"time",e)),{time:r,pos:l}=t[i],{time:s,pos:M}=t[a]);const u=s-r;return u?l+(M-l)*(e-r)/u:l}class Zg extends hr{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=mr(n,this.min),this._tableRange=mr(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:i}=this,a=[],r=[];let s,l,M,u,c;for(s=0,l=e.length;s<l;++s)u=e[s],u>=n&&u<=i&&a.push(u);if(a.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(s=0,l=a.length;s<l;++s)c=a[s+1],M=a[s-1],u=a[s],Math.round((c+M)/2)!==u&&r.push({time:u,pos:s/(l-1)});return r}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?e=this.normalize(n.concat(i)):e=n.length?n:i,e=this._cache.all=e,e}getDecimalForValue(e){return(mr(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,i=this.getDecimalForPixel(e)/n.factor-n.end;return mr(this._table,i*this._tableRange+this._minPos,!0)}}Zg.id="timeseries",Zg.defaults=hr.defaults;var pn;(function(t){t.ChartRendered="chart:rendered",t.ChartUpdated="chart:updated",t.ChartDestroyed="chart:destroyed",t.LabelsUpdated="labels:updated"})(pn||(pn={}));function Ar(t,e,n,i){t(e,n),i!==void 0&&i.emit(pn.ChartRendered)}function LT(t,e){t.update(),e!==void 0&&e.emit(pn.ChartUpdated)}function zr(t,e){t.destroy(),e!==void 0&&e.emit(pn.ChartDestroyed)}function xT(t,e){const n={labels:typeof t.labels=="undefined"?[]:[...t.labels],datasets:[]};return Vg(n,{...t},e),n}function Vg(t,e,n){const i=[];t.datasets=e.datasets.map(a=>{const r=t.datasets.find(s=>s[n]===a[n]);return!r||!a.data||i.includes(r)?{...a}:(i.push(r),Object.assign(r,a),r)})}function OT(t,e,n){t.data.labels=e,n!==void 0&&n.emit(pn.LabelsUpdated)}function ST(t,e){t.options={...e}}function ET(t,e){const n=t.datasets.map(a=>a.label),i=e.datasets.map(a=>a.label);return e.datasets.length===t.datasets.length&&n.every((a,r)=>a===i[r])}const bT="Please remove the <template></template> tags from your chart component. See https://vue-chartjs.org/guide/#vue-single-file-components",CT="Update ERROR: chart instance not found",wT=((t,e,n)=>o.defineComponent({props:{chartData:{type:Object,required:!0},chartOptions:{type:Object,default:()=>{}},datasetIdKey:{type:String,default:"label"},chartId:{type:String,default:t},width:{type:Number,default:400},height:{type:Number,default:400},cssClasses:{type:String,default:""},styles:{type:Object,default:()=>{}},plugins:{type:Array,default:()=>[]}},setup(i,a){ni.register(n);const r=o.shallowRef(null),s=o.ref(null);function l(g,d){if(r.value!==null&&zr(o.toRaw(r.value),a),s.value===null)throw new Error(bT);{const y=xT(g,i.datasetIdKey),j=s.value.getContext("2d");j!==null&&(r.value=new ni(j,{type:e,data:o.isProxy(g)?new Proxy(y,{}):y,options:d,plugins:i.plugins}))}}function M(g,d){const y=o.isProxy(g)?o.toRaw(g):{...g},j=o.isProxy(d)?o.toRaw(d):{...d};if(Object.keys(j).length>0){const D=o.toRaw(r.value);ET(y,j)&&D!==null?(Vg(D==null?void 0:D.data,y,i.datasetIdKey),y.labels!==void 0&&OT(D,y.labels,a),c()):(D!==null&&zr(D,a),Ar(l,i.chartData,i.chartOptions,a))}else r.value!==null&&zr(o.toRaw(r.value),a),Ar(l,i.chartData,i.chartOptions,a)}function u(g){const d=o.toRaw(r.value);d!==null?(ST(d,g),c()):Ar(l,i.chartData,i.chartOptions,a)}function c(){const g=o.toRaw(r.value);g!==null?LT(g,a):console.error(CT)}return o.watch(()=>i.chartData,(g,d)=>M(g,d),{deep:!0}),o.watch(()=>i.chartOptions,g=>u(g),{deep:!0}),o.onMounted(()=>{"datasets"in i.chartData&&i.chartData.datasets.length>0&&Ar(l,i.chartData,i.chartOptions,a)}),o.onBeforeUnmount(()=>{r.value!==null&&zr(o.toRaw(r.value),a)}),a.expose({chart:r,updateChart:c}),()=>o.h("div",{style:i.styles,class:i.cssClasses},[o.h("canvas",{id:i.chartId,width:i.width,height:i.height,ref:s})])}}))("bar-chart","bar",ir);var KO="";const kT={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 t=this.labels||[],e=this.min===void 0?0:this.min,n=t.length?t.length-1:100,i=this.max===void 0?n:this.max,a=this.minValue===void 0?25:this.minValue;t.length&&this.minValue===void 0&&(a=1);let r=this.maxValue||75;if(t.length&&this.maxValue===void 0&&(r=t.length-2),i<=e)throw new Error("Invalid props min or max");if(a>r)throw new Error("Invalid props minValue or maxValue");let s=this.rangeMargin===void 0?this.step:this.rangeMargin,l=s%this.step;return l&&(s=s+this.step-l),{valueMin:a<e?e:a,valueMax:r>i?i:r,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:s}},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(t){let e=parseFloat(t.target.value);e<=this.valueMax-this.rangeMarginValue&&e>=this.minimum?this.valueMin=e:t.target.value=this.valueMin},onInputMaxChange(t){let e=parseFloat(t.target.value);e>=this.valueMin+this.rangeMarginValue&&e<=this.maximum?this.valueMax=e:t.target.value=this.valueMax},onLeftThumbMousedown(t){if(t.preventDefault(),this.startX=t.clientX,t.type==="touchstart")if(t.touches.length===1)this.startX=t.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMin,this.barBox=t.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onLeftThumbMousemove),document.addEventListener("mouseup",this.onLeftThumbMouseup),document.addEventListener("touchmove",this.onLeftThumbMousemove),document.addEventListener("touchend",this.onLeftThumbMouseup)},onLeftThumbMousemove(t){this.mouseMoveCounter++;let e=t.clientX;t.type==="touchmove"&&(e=t.touches[0].clientX);let i=(e-this.startX)/this.barBox.width,a=this.barValue+(this.maximum-this.minimum)*i;a-=a%this.step,a<this.minimum?a=this.minimum:a>this.valueMax-this.rangeMarginValue&&(a=this.valueMax-this.rangeMarginValue),this.valueMin=a},onLeftThumbMouseup(){document.removeEventListener("mousemove",this.onLeftThumbMousemove),document.removeEventListener("mouseup",this.onLeftThumbMouseup),document.removeEventListener("touchmove",this.onLeftThumbMousemove),document.removeEventListener("touchend",this.onLeftThumbMouseup)},onRightThumbMousedown(t){if(t.preventDefault(),this.startX=t.clientX,t.type==="touchstart")if(t.touches.length===1)this.startX=t.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMax,this.barBox=t.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onRightThumbMousemove),document.addEventListener("mouseup",this.onRightThumbMouseup),document.addEventListener("touchmove",this.onRightThumbMousemove),document.addEventListener("touchend",this.onRightThumbMouseup)},onRightThumbMousemove(t){this.mouseMoveCounter++;let e=t.clientX;t.type==="touchmove"&&(e=t.touches[0].clientX);let i=(e-this.startX)/this.barBox.width,a=this.barValue+(this.maximum-this.minimum)*i;a-=a%this.step,a<this.valueMin+this.rangeMarginValue?a=this.valueMin+this.rangeMarginValue:a>this.maximum&&(a=this.maximum),this.valueMax=a},onRightThumbMouseup(){document.removeEventListener("mousemove",this.onRightThumbMousemove),document.removeEventListener("mouseup",this.onRightThumbMouseup),document.removeEventListener("touchmove",this.onRightThumbMousemove),document.removeEventListener("touchend",this.onRightThumbMouseup)},onMouseWheel(t){if(this.preventWheel===!0||!t.shiftKey&&!t.ctrlKey)return;let e=this.step;t.deltaY<0&&(e=-e),t.shiftKey&&t.ctrlKey?this.valueMin+e>=this.minimum&&this.valueMax+e<=this.maximum&&(this.valueMin=this.valueMin+e,this.valueMax=this.valueMax+e):t.ctrlKey?(e=this.valueMax+e,e<this.valueMin+this.rangeMarginValue?e=this.valueMin+this.rangeMarginValue:e>this.maximum&&(e=this.maximum),this.valueMax=e):t.shiftKey&&(e=this.valueMin+e,e<this.minimum?e=this.minimum:e>this.valueMax-this.rangeMarginValue&&(e=this.valueMax-this.rangeMarginValue),this.valueMin=e)},triggerInput(){let t=0;this.step.toString().includes(".")&&(t=2);let e={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(t)),maxValue:parseFloat(this.valueMax.toFixed(t))};this.$emit("input",e)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let t=this.labels||[],e=t.length?t.length-1:100;return this.max===void 0?e:this.max},stepCount(){let t=this.labels||[];return t.length?t.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 t=0;return this.step.toString().includes(".")&&(t=2),(this.valueMin||0).toFixed(t)},barMaxVal(){let t=0;return this.step.toString().includes(".")&&(t=2),(this.valueMax||100).toFixed(t)},scaleLabels(){let t=this.labels||[];return t.length===0&&(t=[],t.push(this.minimum),t.push(this.maximum)),t}},watch:{valueMin(){this.triggerInput()},valueMax(){this.triggerInput()},minValue(t){this.valueMin=t<this.minimum?this.minimum:t},maxValue(t){this.valueMax=t>this.maximum?this.maximum:t}},mounted(){}},_T={class:"bar"},vT=["min","max","step","value"],QT={class:"caption"},YT={class:"min-caption"},UT={class:"bar-inner"},PT=["min","max","step","value"],RT={class:"caption"},BT={class:"max-caption"},ZT={key:0,class:"ruler"},VT={key:1,class:"sub-ruler"},GT={key:2,class:"labels"};function WT(t,e,n,i,a,r){return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([n.baseClassName,a.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:e[10]||(e[10]=o.withModifiers((...s)=>r.onMouseWheel&&r.onMouseWheel(...s),["prevent","stop"]))},[o.createElementVNode("div",_T,[o.createElementVNode("div",{class:"bar-left",style:o.normalizeStyle({width:r.barMin+"%"}),onClick:e[0]||(e[0]=(...s)=>r.onBarLeftClick&&r.onBarLeftClick(...s))},null,4),o.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:r.minimum,max:r.maximum,step:n.step,value:a.valueMin,onInput:e[1]||(e[1]=o.withModifiers((...s)=>r.onInputMinChange&&r.onInputMinChange(...s),["stop","prevent"]))},null,40,vT),o.createElementVNode("div",{class:"thumb thumb-left",onMousedown:e[2]||(e[2]=(...s)=>r.onLeftThumbMousedown&&r.onLeftThumbMousedown(...s)),onTouchstart:e[3]||(e[3]=(...s)=>r.onLeftThumbMousedown&&r.onLeftThumbMousedown(...s))},[o.createElementVNode("div",QT,[o.createElementVNode("span",YT,o.toDisplayString(n.minCaption||r.barMinVal),1)])],32),o.createElementVNode("div",UT,[o.createElementVNode("div",{class:"bar-inner-left",onClick:e[4]||(e[4]=(...s)=>r.onInnerBarLeftClick&&r.onInnerBarLeftClick(...s))}),o.createElementVNode("div",{class:"bar-inner-right",onClick:e[5]||(e[5]=(...s)=>r.onInnerBarRightClick&&r.onInnerBarRightClick(...s))})]),o.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:r.minimum,max:r.maximum,step:n.step,value:a.valueMax,onInput:e[6]||(e[6]=o.withModifiers((...s)=>r.onInputMaxChange&&r.onInputMaxChange(...s),["stop","prevent"]))},null,40,PT),o.createElementVNode("div",{class:"thumb thumb-right",onMousedown:e[7]||(e[7]=(...s)=>r.onRightThumbMousedown&&r.onRightThumbMousedown(...s)),onTouchstart:e[8]||(e[8]=(...s)=>r.onRightThumbMousedown&&r.onRightThumbMousedown(...s))},[o.createElementVNode("div",RT,[o.createElementVNode("span",BT,o.toDisplayString(n.maxCaption||r.barMaxVal),1)])],32),o.createElementVNode("div",{class:"bar-right",style:o.normalizeStyle({width:r.barMax+"%"}),onClick:e[9]||(e[9]=(...s)=>r.onBarRightClick&&r.onBarRightClick(...s))},null,4)]),n.ruler?(o.openBlock(),o.createElementBlock("div",ZT,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.stepCount,s=>(o.openBlock(),o.createElementBlock("div",{key:s,class:"ruler-rule"}))),128))])):o.createCommentVNode("",!0),r.subStepCount?(o.openBlock(),o.createElementBlock("div",VT,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.subStepCount,s=>(o.openBlock(),o.createElementBlock("div",{key:s,class:"ruler-sub-rule"}))),128))])):o.createCommentVNode("",!0),n.label?(o.openBlock(),o.createElementBlock("div",GT,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.scaleLabels,s=>(o.openBlock(),o.createElementBlock("div",{class:"label",key:s},o.toDisplayString(s),1))),128))])):o.createCommentVNode("",!0)],34)}var $T=Ze(kT,[["render",WT]]);const HT=o.defineComponent({components:{DhIcon:ye},props:{mainText:{type:String,default:"Advanced"},filterMissingText:{type:String,default:"Filter Missing"},matchText:{type:String,default:"Match"},excludeText:{type:String,default:"Exclude"}},data(){return{activeFilter:!1,isFilterMissing:!1,isMatch:!1,isExclude:!1}},emits:["match","exclude","filter_missing"],mounted(){this.isMatch=!0},methods:{toggleFilter(){this.activeFilter=!this.activeFilter},matchFilter(){this.isMatch=!0,this.isExclude=!1,this.$emit("match",this.isMatch)},excludeFilter(){this.isMatch=!1,this.isExclude=!0,this.$emit("exclude",this.isExclude)},missingFilter(){this.isFilterMissing=!this.isFilterMissing,this.$emit("filter_missing",this.isFilterMissing),this.isFilterMissing&&this.isMatch?this.matchFilter():this.isFilterMissing&&this.isExclude&&this.excludeFilter()}}}),FT={class:"dh-advanced-filter-container"},JT={class:"advance_section"},XT={key:0},KT={class:"list-none"},qT=["checked"],eL=["checked"],tL=["checked"];function nL(t,e,n,i,a,r){const s=o.resolveComponent("dh-icon");return o.openBlock(),o.createElementBlock("div",FT,[o.createElementVNode("div",JT,[o.createElementVNode("span",{class:"toggle-icon",onClick:e[0]||(e[0]=l=>t.toggleFilter())},[o.createTextVNode(o.toDisplayString(t.mainText)+" ",1),o.createVNode(s,{"icon-name":t.activeFilter?"arrow-up":"arrow-down",size:20},null,8,["icon-name"])]),t.activeFilter?(o.openBlock(),o.createElementBlock("div",XT,[o.renderSlot(t.$slots,"default"),o.createElementVNode("ul",KT,[o.createElementVNode("li",null,[o.createElementVNode("label",null,[o.createElementVNode("input",{checked:t.isFilterMissing,name:"number_filter",type:"checkbox",onChange:e[1]||(e[1]=l=>t.missingFilter())},null,40,qT),o.createTextVNode(" "+o.toDisplayString(t.filterMissingText),1)])]),o.createElementVNode("li",null,[o.createElementVNode("label",null,[o.createElementVNode("input",{checked:t.isMatch,name:"number_filter",type:"radio",onChange:e[2]||(e[2]=l=>t.matchFilter())},null,40,eL),o.createTextVNode(" "+o.toDisplayString(t.matchText),1)]),o.createElementVNode("label",null,[o.createElementVNode("input",{checked:t.isExclude,name:"number_filter",type:"radio",onChange:e[3]||(e[3]=l=>t.excludeFilter())},null,40,tL),o.createTextVNode(" "+o.toDisplayString(t.excludeText),1)])])])])):o.createCommentVNode("",!0)])])}var Gg=Ze(HT,[["render",nL]]),qO="";ni.register(oT,dr,jr,dl);const iL=o.defineComponent({components:{Bar:wT,MultiRangeSlider:$T,DhAdvancedFilter:Gg},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},includeForm:{type:Boolean,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,labels:[]}},mounted(){this.isMatch=!0,this.setChartData(this.numberRange),this.highlightChart(),this.labels=[this.BarMinValue,this.max]},methods:{matchFilter(){if(!this.isDisable){this.isMatch=!0,this.isExclude=!1;var t=this.chartData.datasets[0].data;this.chartLines=this.chartData.datasets[0],this.chartData.datasets[0].backgroundColor=[];for(let e=0;e<=t.length;e++)t[e]>=this.min&&t[e]<=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 t=this.chartData.datasets[0].data;this.chartLines=this.chartData.datasets[0],this.chartData.datasets[0].backgroundColor=[];for(let e=0;e<t.length;e++)t[e]>=this.min&&t[e]<=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 t=this.chartData.datasets[0].data;if(this.chartLines=this.chartData.datasets[0],this.chartData.datasets[0].backgroundColor=[],this.validated)for(let e=1;e<=t.length;e++)this.chartData.datasets[0].backgroundColor.push("#e0e0e0");else this.isMatch&&this.matchFilter(),this.isExclude&&this.excludeFilter()},changeMin(t){let e=t.target.value;this.min=e||"1",this.BarMinValue=e?this.getFirstIndex(parseInt(e)):1,this.isMatch&&!this.isDisable&&this.matchFilter(),this.isExclude&&!this.isDisable&&this.excludeFilter()},changeMax(t){let e=t.target.value;this.BarMaxValue=e&&e>this.maxNumber(this.numberRange)?this.numberRange.length:this.getLastIndex(parseInt(e)),this.max=e&&e>this.maxNumber(this.numberRange)?this.maxNumber(this.numberRange):e,this.isMatch&&!this.isDisable&&this.matchFilter(),this.isExclude&&!this.isDisable&&this.excludeFilter()},setChartData(t){t=this.sortData(t),this.removeChartData();let e=this.chartData.labels;for(let n=0;n<t.length;n++)e.push(t[n].key),this.chart_dta.push(t[n].count);this.chartData.datasets[0].data=this.chart_dta},highlightChart(){var t=this.chartData.datasets[0].data;this.chartLines=this.chartData.datasets[0],this.chartData.datasets[0].backgroundColor=[];for(let e=0;e<=t.length;e++)t[e]>=this.min&&t[e]<=this.max?this.chartData.datasets[0].backgroundColor.push("#5ea9e5"):this.chartData.datasets[0].backgroundColor.push("#e0e0e0")},updateBarChart(t){const{minValue:e,maxValue:n}=t;this.BarMinValue=e,this.BarMaxValue=n;var i=this.chartData.datasets[0].data;this.min=i[this.BarMinValue]?i[this.BarMinValue]:"1",this.max=i[this.BarMaxValue]?i[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=[]},sortData(t){return t.slice().sort(function(e,n){return e.count-n.count})},maxNumber(t){if(t.length!=0)return t.reduce((e,n)=>e=e>n.count?e:n.count,0)},getLastIndex(t){let e=this.chartData.datasets[0].data,n=0;for(let i=t;i>=0;i--)if(e.lastIndexOf(i)!==-1){n=e.lastIndexOf(i);break}else continue;return n},getFirstIndex(t){let e=this.chartData.datasets[0].data,n=0;for(let i=t;i<=this.max;i++)if(e.lastIndexOf(i)!==-1){n=e.lastIndexOf(i);break}else continue;return n}}}),aL={class:"dh-range-container"},rL={class:"bar-chart"},oL={key:0,class:"input-group-section"},sL={class:"input-group sb-input"},lL=["disabled","max","value"],ML={class:"input-group sb-input"},uL=["disabled","max","min","value"];function cL(t,e,n,i,a,r){const s=o.resolveComponent("Bar"),l=o.resolveComponent("MultiRangeSlider"),M=o.resolveComponent("dh-advanced-filter");return o.openBlock(),o.createElementBlock("div",aL,[o.createElementVNode("div",rL,[o.createVNode(s,{"chart-data":t.chartData,"chart-id":t.chartId,"chart-options":t.chartOptions,"dataset-id-key":t.datasetIdKey,height:t.height,width:t.width},null,8,["chart-data","chart-id","chart-options","dataset-id-key","height","width"]),o.createVNode(l,{"base-class-name":`multi-range-slider range-slider ${t.isDisable}`,label:!0,labels:t.labels,max:t.rangeMax,"max-caption":`${t.max}`,"max-value":t.BarMaxValue,min:1,"min-caption":`${t.min}`,"min-value":t.BarMinValue,"range-margin":0,ruler:!1,step:t.steps,onInput:t.updateBarChart},null,8,["base-class-name","labels","max","max-caption","max-value","min-caption","min-value","step","onInput"])]),t.includeForm?(o.openBlock(),o.createElementBlock("div",oL,[o.createElementVNode("div",sL,[o.createElementVNode("label",{class:o.normalizeClass(`dh-body-2 input-to ${t.validated?"disable":""}`)}," From ",2),o.createElementVNode("input",{class:"form-input text",disabled:!!t.validated,max:`${t.max}`,min:"1",placeholder:"From",type:"number",value:`${t.min}`,onInput:e[0]||(e[0]=u=>t.changeMin(u))},null,40,lL)]),o.createElementVNode("div",ML,[o.createElementVNode("label",{class:o.normalizeClass(`dh-body-2 input-to ${t.validated?"disable":""}`)}," To ",2),o.createElementVNode("input",{class:"form-input text",disabled:!!t.validated,max:`${t.maxNumber(t.numberRange)}`,min:`${t.min}`,placeholder:"To",type:"number",value:`${t.max}`,onInput:e[1]||(e[1]=u=>t.changeMax(u))},null,40,uL)])])):o.createCommentVNode("",!0),o.renderSlot(t.$slots,"input"),o.createVNode(M,{onExclude:t.excludeFilter,onFilter_missing:t.missingFilter,onMatch:t.matchFilter},{default:o.withCtx(()=>[o.renderSlot(t.$slots,"filter")]),_:3},8,["onExclude","onFilter_missing","onMatch"])])}var Wg=Ze(iL,[["render",cL]]),eS="",tS="";const gL={id:"dp-container"},NL=o.createElementVNode("div",{class:"dp__calendar_range"},[o.createElementVNode("p",null,"From"),o.createElementVNode("p",null,"To")],-1),dL={class:"dp__multi"},yL=["value"],jL=["value"],IL=o.createTextVNode(" Back "),DL=["onClick"],fL=["onClick"],hL=["onClick"],mL=["onClick"],AL=["onClick"],zL=["onClick"],pL=["onClick"],TL=["onClick"],LL=o.createElementVNode("div",{id:"tags",class:"dp__calendar_tags"},null,-1),xL={__name:"AdvancedDatePicker",props:{numberRange:{type:Array,required:!0}},emits:["update"],setup(t,{emit:e}){const n=o.ref(["",""]),i=o.ref(null),a=o.ref(null),r=o.ref(null),s=o.ref(!1),l=o.ref([{label:"Today",range:[new Date,new Date],slot:"today"},{label:"Previous week",range:[ou(ru(new Date)),ru(new Date)],slot:"previousWeek"},{label:"This week",range:[ou(new Date),_D(new Date)],slot:"week"},{label:"Next week",range:[QD(new Date),vD(new Date().setDate(new Date().getDate()+7))],slot:"nextWeek"},{label:"This month",range:[ci(new Date),ui(new Date)],slot:"currentMonth"},{label:"Previous month",range:[ci(tt(new Date,1)),ui(tt(new Date,1))],slot:"previousMonth"},{label:"Last 3 months",range:[ci(tt(new Date,3)),ui(tt(new Date,1))],slot:"threeMonths"},{label:"Last 6 months",range:[ci(tt(new Date,6)),ui(tt(new Date,1))],slot:"sixMonths"},{label:"Last year",range:[aN(new Date),iN(new Date)],slot:"yearly"}]),M=d=>{n.value=d,console.log(n.value),e("update",n.value)};function u(d){a.value=d.target.value,n.value=[d.target.value,i.value]}function c(d){i.value=d.target.value,n.value=[a.value,d.target.value]}o.onMounted(()=>{r.value.openMenu()});function g(){r.value.openMenu()}return(d,y)=>(o.openBlock(),o.createElementBlock("div",gL,[NL,o.createVNode(o.unref(Pa),{ref_key:"datePicker",ref:r,modelValue:n.value,"onUpdate:modelValue":[y[2]||(y[2]=j=>n.value=j),M],"auto-apply":"","day-names":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],"enable-time-picker":!1,"multi-calendars":"","multi-calendars-solo":"","multi-static":!1,offset:12,position:"left","preset-ranges":l.value,range:"","select-text":"Apply","text-input":"",uid:"advanced",onClosed:g},{"dp-input":o.withCtx(()=>[o.createElementVNode("div",dL,[o.createElementVNode("input",{class:"dp__input dp__multi_input",placeholder:"MM/DD/YYYY",type:"text",value:a.value?a.value:n.value[0],onInput:y[0]||(y[0]=j=>u(j))},null,40,yL),o.createElementVNode("input",{class:"dp__input dp__multi_input",placeholder:"MM/DD/YYYY",type:"text",value:i.value?i.value:n.value[1],onInput:y[1]||(y[1]=j=>c(j))},null,40,jL)])]),"arrow-left":o.withCtx(()=>[o.createVNode(ye,{"icon-name":"previous",size:20})]),"arrow-right":o.withCtx(()=>[o.createVNode(ye,{"icon-name":"next",size:20})]),"calendar-icon":o.withCtx(()=>[IL]),"clear-icon":o.withCtx(()=>[]),"action-preview":o.withCtx(()=>[]),"action-select":o.withCtx(()=>[]),previousWeek:o.withCtx(({label:j,range:D,presetDateRange:f})=>[(o.openBlock(),o.createBlock(o.Teleport,{to:"#tags"},[o.createElementVNode("span",{onClick:N=>f(D)},o.toDisplayString(j),9,DL)]))]),week:o.withCtx(({label:j,range:D,presetDateRange:f})=>[(o.openBlock(),o.createBlock(o.Teleport,{to:"#tags"},[o.createElementVNode("span",{onClick:N=>f(D)},o.toDisplayString(j),9,fL)]))]),nextWeek:o.withCtx(({label:j,range:D,presetDateRange:f})=>[(o.openBlock(),o.createBlock(o.Teleport,{to:"#tags"},[o.createElementVNode("span",{onClick:N=>f(D)},o.toDisplayString(j),9,hL)]))]),currentMonth:o.withCtx(({label:j,range:D,presetDateRange:f})=>[(o.openBlock(),o.createBlock(o.Teleport,{to:"#tags"},[o.createElementVNode("span",{onClick:N=>f(D)},o.toDisplayString(j),9,mL)]))]),previousMonth:o.withCtx(({label:j,range:D,presetDateRange:f})=>[(o.openBlock(),o.createBlock(o.Teleport,{to:"#tags"},[o.createElementVNode("span",{onClick:N=>f(D)},o.toDisplayString(j),9,AL)]))]),threeMonths:o.withCtx(({label:j,range:D,presetDateRange:f})=>[(o.openBlock(),o.createBlock(o.Teleport,{to:"#tags"},[o.createElementVNode("span",{onClick:N=>f(D)},o.toDisplayString(j),9,zL)]))]),sixMonths:o.withCtx(({label:j,range:D,presetDateRange:f})=>[(o.openBlock(),o.createBlock(o.Teleport,{to:"#tags"},[o.createElementVNode("span",{onClick:N=>f(D)},o.toDisplayString(j),9,pL)]))]),yearly:o.withCtx(({label:j,range:D,presetDateRange:f})=>[(o.openBlock(),o.createBlock(o.Teleport,{to:"#tags"},[o.createElementVNode("span",{onClick:N=>f(D)},o.toDisplayString(j),9,TL)]))]),_:1},8,["modelValue","preset-ranges"]),o.createVNode(Wg,{class:"dp__calendar_range_number","number-range":t.numberRange,steps:1},{input:o.withCtx(()=>[LL]),filter:o.withCtx(()=>[o.createVNode(Bu,{data:s.value,label:"Include time",onChange:y[3]||(y[3]=j=>s.value=j)},null,8,["data"])]),_:1},8,["number-range"])]))}};var nS="";const OL=o.createTextVNode(" Back "),SL=o.createElementVNode("div",null,"today",-1),EL={__name:"DatePicker",props:{inline:{type:Boolean,default:!0}},emits:["update"],setup(t,{emit:e}){const n=o.ref(),i=o.ref(null),a=s=>{n.value=s,e("update",n.value)},r=o.ref([{date:xt(new Date,0),type:"dot",tooltip:[{text:"Dot with tooltip",color:"blue"}]}]);return(s,l)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(Pa),{ref_key:"datePicker",ref:i,modelValue:n.value,"onUpdate:modelValue":[l[0]||(l[0]=M=>n.value=M),a],"day-names":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],"enable-time-picker":!1,inline:t.inline,markers:r.value,"month-name-format":"short",offset:12,placeholder:"MM/DD/YYYY","select-text":"Apply","text-input":"",uid:"base"},{"arrow-left":o.withCtx(()=>[o.createVNode(ye,{"icon-name":"previous",size:20})]),"arrow-right":o.withCtx(()=>[o.createVNode(ye,{"icon-name":"next",size:20})]),"calendar-icon":o.withCtx(()=>[OL]),"clear-icon":o.withCtx(()=>[]),"action-preview":o.withCtx(()=>[]),"marker-tooltip":o.withCtx(()=>[SL]),_:1},8,["modelValue","inline","markers"])]))}};var iS="";const bL=["src"],CL={key:3,class:"menu-item-text-wrapper"};var $g=Ze(o.defineComponent({__name:"DropdownMenuItem",props:{item:{type:Object,required:!0},textEllipsisStyle:{type:String,required:!1,default:"none",validator:t=>["none","ellipsis","fit-content"].includes(t)},iconSize:{type:Number,required:!1,default:24}},setup(t){const e=t;return(n,i)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[t.item.iconUrl?(o.openBlock(),o.createElementBlock("img",{key:0,alt:"icon image",class:"icon icon-url",src:t.item.iconUrl},null,8,bL)):o.createCommentVNode("",!0),t.item.iconUrl?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(ye,o.mergeProps({key:1,class:"icon"},{...t.item,size:e.iconSize}),null,16)),t.item.subText?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("span",{key:2,class:o.normalizeClass(["dh-body-2",t.textEllipsisStyle])},o.toDisplayString(t.item.text),3)),t.item.subText?(o.openBlock(),o.createElementBlock("div",CL,[o.createElementVNode("span",{class:o.normalizeClass(["dh-body-1",t.textEllipsisStyle])},o.toDisplayString(t.item.text),3),o.createElementVNode("span",{class:o.normalizeClass(["dh-body-4-medium",t.textEllipsisStyle])},o.toDisplayString(t.item.subText),3)])):o.createCommentVNode("",!0),t.item.isSelected?(o.openBlock(),o.createBlock(ye,{key:4,class:"icon-blue icon-accept","icon-name":"accept",size:16})):o.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-35071082"]]),rS="";const wL=["data-e2e","onClick"],kL=["onClick"];var _L=Ze(o.defineComponent({__name:"DropdownMenu",props:{items:{type:Object,required:!0},textEllipsisStyle:{type:String,required:!1,default:"none",validator:t=>["none","ellipsis","fit-content"].includes(t)},iconSize:{type:Number,required:!1,default:24},closeOnClickOutside:{type:Boolean,required:!1,default:!0},zIndex:{type:Number,required:!1,default:100},closeOnItemSelected:{type:Boolean,required:!1,default:!0}},emits:["itemSelected","close"],setup(t,{emit:e}){const n=t;o.onMounted(()=>{document.addEventListener("click",r=>{i(r)})});function i(r){const s=r.target,l=document.querySelector("[data-id='dropdown-menu']");l&&!l.contains(r.target)&&!s.classList.contains("dropdown-toggle")&&n.closeOnClickOutside&&e("close")}function a(r){e("itemSelected",r),n.closeOnItemSelected&&e("close")}return(r,s)=>{const l=o.resolveComponent("router-link");return o.openBlock(),o.createElementBlock("div",{class:"dropdown-menu","data-id":"dropdown-menu",style:o.normalizeStyle({"z-index":n.zIndex})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.items,M=>(o.openBlock(),o.createElementBlock("div",{key:M.iconName,class:"menu-item","data-e2e":M.dataE2eTag,onClick:u=>a(M)},[M.url?(o.openBlock(),o.createBlock(l,{key:0,class:"center-vertical",to:{path:M.url},onClick:u=>a(M)},{default:o.withCtx(()=>[o.createVNode($g,{"icon-size":t.iconSize,item:M,"text-ellipsis-style":t.textEllipsisStyle},null,8,["icon-size","item","text-ellipsis-style"])]),_:2},1032,["to","onClick"])):(o.openBlock(),o.createElementBlock("div",{key:1,class:"center-vertical",onClick:u=>a(M)},[o.createVNode($g,{"icon-size":t.iconSize,item:M,"text-ellipsis-style":t.textEllipsisStyle},null,8,["icon-size","item","text-ellipsis-style"])],8,kL))],8,wL))),128))],4)}}}),[["__scopeId","data-v-f922f7ec"]]),sS="";const vL={key:0,class:"invalid-feedback"},QL=o.defineComponent({__name:"Error",props:{errors:{type:Object,required:!1,default:void 0}},setup(t){const e=t;return(n,i)=>{var a;return o.unref(e).errors&&((a=o.unref(e).errors)==null?void 0:a.length)>0?(o.openBlock(),o.createElementBlock("div",vL,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.errors,r=>(o.openBlock(),o.createElementBlock("span",{key:r},o.toDisplayString(r),1))),128))])):o.createCommentVNode("",!0)}}}),YL=o.defineComponent({components:{DhIcon:ye},props:{title:{type:String,default:"Advanced"},isAdvancedSettingsOpen:{type:Boolean,default:!1}},data(){return{isAdvancedSettingsCurrentlyOpen:!1}},watch:{isAdvancedSettingsOpen:function(t){this.isAdvancedSettingsCurrentlyOpen=t}},mounted(){this.isAdvancedSettingsCurrentlyOpen=this.isAdvancedSettingsOpen}}),UL={class:"dh-body-1-medium"},PL=o.createTextVNode(" Content ");function RL(t,e,n,i,a,r){const s=o.resolveComponent("dh-icon");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",{class:o.normalizeClass(["advanced-panel-header clickable",{opened:t.isAdvancedSettingsCurrentlyOpen,closed:!t.isAdvancedSettingsCurrentlyOpen}]),"data-e2e":"expansion-panel-button",onClick:e[0]||(e[0]=l=>t.isAdvancedSettingsCurrentlyOpen=!t.isAdvancedSettingsCurrentlyOpen)},[o.createElementVNode("h4",UL,o.toDisplayString(t.title),1),o.createVNode(s,{class:"icon","icon-name":t.isAdvancedSettingsCurrentlyOpen?"arrow-up":"arrow-down",size:24},null,8,["icon-name"])],2),t.isAdvancedSettingsCurrentlyOpen?o.renderSlot(t.$slots,"content",{key:0},()=>[PL]):o.createCommentVNode("",!0)],64)}var BL=Ze(YL,[["render",RL]]),lS="";const ZL=o.createElementVNode("label",{for:"upload_pdf"},[o.createTextVNode(" Drag and drop file or "),o.createElementVNode("span",{id:"upload"},"browse")],-1),VL={key:1,class:"file__upload_items"},GL={class:"file__upload_list_item"},WL={class:"file__upload_list_item_label"},$L=["title"],HL={key:0,class:"label__antivirus"},FL={key:1,class:"label__antivirus label__antivirus--failed"},JL={key:2,class:"label__antivirus label__antivirus--detected"},XL=o.createElementVNode("br",null,null,-1),KL={key:3},qL={key:4},ex={key:0},tx=["value"],nx=["href"],ix={key:2,class:"file__upload_placeholder"},ax={key:3,class:"file__upload_action"},rx=o.createElementVNode("button",{class:"file__upload_action_cancel"},"Cancel",-1),ox={__name:"FileUpload",props:{uploadProgress:{type:Array,required:!0},modelValue:{type:FileList,required:!1,default:void 0},inline:{type:Boolean,required:!1,default:!1},errorOccurred:{type:Array,required:!0},errorMessage:{type:String,required:!1,default:"an error occurred while uploading"},fileSaved:{type:Boolean,default:!1},virusCheck:{type:Array,required:!0},virusCheckText:{type:String,required:!1,default:"Antivirus check ..."},virusCheckFailedText:{type:String,required:!1,default:"Antivirus check failed"},virusDetectedText:{type:String,required:!1,default:"Virus detected"},deleteConfirmationText:{type:String,required:!1,default:"Are you sure you want to delete it permanently? this action will be irreversible"},zIndex:{type:Number,required:!1,default:99}},emits:["update:modelValue","save:modelValue","reload"],setup(t,{emit:e}){const n=t,i=o.ref(null),a=o.ref(!1),r=o.ref([]),s=o.ref([".pdf",".csv",".doc",".jpeg",".mp4",".png",".txt",".xls"]);function l(A,p=2){if(!+A)return"0 Bytes";const m=1024,z=p<0?0:p,w=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],_=Math.floor(Math.log(A)/Math.log(m));return`${parseFloat((A/Math.pow(m,_)).toFixed(z))} ${w[_]}`}function M(A){return s.value.includes(c(A))?c(A).slice(1):"unknown"}function u(A){const p=A.lastIndexOf(".");let m=A.slice(0,p);return m.length<=15?m:m.slice(0,15)+"... "}function c(A){return A.replace(/.*(?=\.)/g,"")}function g(A){A.stopPropagation(),r.value=i.value.files,r.value&&(a.value=!0),e("update:modelValue",r.value)}function d(A){A.stopPropagation(),A.dataTransfer.dropEffect="copy"}function y(A){A.stopPropagation(),a.value=!0,r.value=A.dataTransfer.files,e("update:modelValue",r.value)}function j(A){window.confirm(n.deleteConfirmationText)&&D(A)}function D(A){const p=new DataTransfer;for(let m=0;m<r.value.length;m++){const z=r.value[m];A!==m&&p.items.add(z)}r.value=p.files,r.value.length==0&&(a.value=!1)}function f(){e("save:modelValue",r.value)}function N(A){return URL.createObjectURL(A)}function I(A){A.preventDefault(),e("reload")}return(A,p)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["file__upload",t.inline?"":"file__upload_box"])},[t.fileSaved?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"file__upload_btn",onDragover:p[1]||(p[1]=o.withModifiers(m=>d(m),["prevent"])),onDrop:p[2]||(p[2]=o.withModifiers(m=>y(m),["prevent"]))},[o.createVNode(ye,{class:"file__upload_btn_icon","icon-name":"upload",size:24}),ZL,o.createElementVNode("input",{id:"upload_pdf",ref_key:"upload",ref:i,multiple:"",name:"file",type:"file",onInput:p[0]||(p[0]=m=>g(m))},null,544)],32)),a.value?(o.openBlock(),o.createElementBlock("div",VL,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,(m,z)=>(o.openBlock(),o.createElementBlock("div",{key:z,class:o.normalizeClass(["file__upload_list",t.inline?"":"file__upload_list_box"])},[o.createVNode(ye,{class:o.normalizeClass(t.errorOccurred[z]?"file__upload_list_icon":""),"icon-name":"file-"+M(m.name),size:40},null,8,["class","icon-name"]),n.uploadProgress[z]==100&&t.fileSaved&&!t.errorOccurred[z]&&t.virusCheck[z]=="loading"?(o.openBlock(),o.createBlock(ye,{key:0,class:"file__upload_list_icon_sub file__upload_list_icon_sub--loading","icon-name":"states",size:20,style:o.normalizeStyle({"z-index":n.zIndex})},null,8,["style"])):o.createCommentVNode("",!0),n.uploadProgress[z]==100&&t.fileSaved&&t.virusCheck[z]=="failed"?(o.openBlock(),o.createBlock(ye,{key:1,class:"file__upload_list_icon_sub","icon-name":"warning-filled",size:20,style:o.normalizeStyle({"z-index":n.zIndex})},null,8,["style"])):o.createCommentVNode("",!0),n.uploadProgress[z]==100&&t.fileSaved&&t.virusCheck[z]=="detected"?(o.openBlock(),o.createBlock(ye,{key:2,class:"file__upload_list_icon_sub","icon-name":"danger",size:20,style:o.normalizeStyle({"z-index":n.zIndex})},null,8,["style"])):o.createCommentVNode("",!0),t.fileSaved&&t.errorOccurred[z]?(o.openBlock(),o.createBlock(ye,{key:3,class:"file__upload_list_icon_sub","icon-name":"error",size:20,style:o.normalizeStyle({"z-index":n.zIndex})},null,8,["style"])):o.createCommentVNode("",!0),o.createElementVNode("div",GL,[o.createElementVNode("div",WL,[o.createElementVNode("div",null,[o.createElementVNode("span",{title:m.name},o.toDisplayString(u(m.name))+o.toDisplayString(c(m.name)),9,$L),n.uploadProgress[z]==100&&t.fileSaved&&!t.errorOccurred[z]&&t.virusCheck[z]=="loading"?(o.openBlock(),o.createElementBlock("span",HL,[o.createTextVNode(o.toDisplayString(t.virusCheckText)+" ",1),o.createVNode(ye,{class:"file__upload_list_icon_sub--loading","icon-name":"processing",size:18})])):o.createCommentVNode("",!0),n.uploadProgress[z]==100&&t.fileSaved&&t.virusCheck[z]=="failed"?(o.openBlock(),o.createElementBlock("span",FL,o.toDisplayString(t.virusCheckFailedText),1)):o.createCommentVNode("",!0),n.uploadProgress[z]==100&&t.fileSaved&&t.virusCheck[z]=="detected"?(o.openBlock(),o.createElementBlock("span",JL,o.toDisplayString(t.virusDetectedText),1)):o.createCommentVNode("",!0),XL,t.fileSaved&&!t.errorOccurred[z]||!t.errorOccurred[z]&&t.virusCheck[z]?(o.openBlock(),o.createElementBlock("span",KL,o.toDisplayString(l(m.size)),1)):o.createCommentVNode("",!0),t.fileSaved&&t.errorOccurred[z]?(o.openBlock(),o.createElementBlock("span",qL,o.toDisplayString(t.errorMessage),1)):o.createCommentVNode("",!0)]),t.fileSaved?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("span",ex,o.toDisplayString(n.uploadProgress[z])+"%",1))]),t.fileSaved?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("progress",{key:0,id:"file",max:"100",value:n.uploadProgress[z]},o.toDisplayString(n.uploadProgress[z])+"% ",9,tx))]),t.fileSaved&&!t.virusCheck[z]&&!t.errorOccurred[z]?(o.openBlock(),o.createElementBlock("a",{key:4,class:"file__upload_list_download",download:"",href:N(m)},[o.createVNode(ye,{class:"file__upload_list_download_icon","icon-name":"download",size:24})],8,nx)):o.createCommentVNode("",!0),t.fileSaved&&t.errorOccurred[z]?(o.openBlock(),o.createElementBlock("a",{key:5,class:"file__upload_list_retry",onClick:p[3]||(p[3]=w=>I(w))},[o.createVNode(ye,{class:"file__upload_list_retry_icon","icon-name":"retry",size:24})])):o.createCommentVNode("",!0),n.uploadProgress[z]!==100?(o.openBlock(),o.createBlock(ye,{key:6,class:"file__upload_list_delete","icon-name":"close",size:24,onClick:w=>D(z)},null,8,["onClick"])):(o.openBlock(),o.createBlock(ye,{key:7,class:"file__upload_list_delete","icon-name":"delete",size:24,onClick:w=>j(z)},null,8,["onClick"]))],2))),128))])):o.createCommentVNode("",!0),!a.value&&!t.inline?(o.openBlock(),o.createElementBlock("div",ix," No file selected ")):o.createCommentVNode("",!0),!t.inline&&!t.fileSaved?(o.openBlock(),o.createElementBlock("div",ax,[rx,o.createElementVNode("button",{class:o.normalizeClass(["file__upload_action_done",a.value&&!t.fileSaved?"file__upload_action_done--active":""]),onClick:f}," Done ",2)])):o.createCommentVNode("",!0)],2))}};var MS="";const sx={class:"input__dropdown"},lx={class:"input__dropdown_second"},Mx=["tabindex"],ux=["onClick"],cx={__name:"InputDropdown",props:{list:{type:Array,required:!0},icon:{type:String,required:!0},default:{type:String,required:!1,default:null},tabindex:{type:Number,required:!1,default:0}},emits:["update"],setup(t,{emit:e}){const n=t,i=o.ref(n.default?n.default:n.list.length>0?n.list[0]:null),a=o.ref(!1),r=o.ref(null);o.onMounted(()=>{e("update","",i.value)});function s(){e("update",r.value.value,i.value)}return(l,M)=>(o.openBlock(),o.createElementBlock("div",sx,[o.createElementVNode("input",{ref_key:"name",ref:r,class:"input__dropdown_text",type:"text",onInput:s},null,544),o.createElementVNode("div",lx,[o.createVNode(ye,{"icon-name":t.icon,size:18},null,8,["icon-name"]),o.createElementVNode("div",{class:"custom__select",tabindex:t.tabindex,onBlur:M[1]||(M[1]=u=>a.value=!1)},[o.createElementVNode("div",{class:o.normalizeClass(["custom__select_selected",{"custom__select--open":a.value}]),onClick:M[0]||(M[0]=u=>a.value=!a.value)},o.toDisplayString(i.value),3),o.createElementVNode("div",{class:o.normalizeClass(["custom__select_items",{"custom__select--hide":!a.value}])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.list,(u,c)=>(o.openBlock(),o.createElementBlock("div",{key:c,onClick:g=>{i.value=u,a.value=!1,s()}},o.toDisplayString(u),9,ux))),128))],2)],40,Mx)])]))}};var gx="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAR2SURBVHgBlVVdaFtlGH6+LydJ89OYtHVbf+YyhoPK5uK2G3/oIlTYhRctKApebAiCXowtDLzxIi3sUqnBiiBerF6osGl7J0idqWyD4WSZF3PzZ4tt7Y/NmnRN0yYn5/t8z9e0Ne35Wnwg5Jzzvt/7vO/7vT8MO6BnYDEuPP4TXMi4kIgyxqOrElEAZEZKZLhVHhpJBDPb2WE6wcsDZtwwXEkJGd9G7T9WRJqZ+f6RxONprUp9BDIs3CLJJM7tSLAJkg5xIT6EVSTCSEFLdPKT5ai36hqWzBVj8v+R1IFVM8y0ekcSvuwWop6BfFgaoR8kY0RSf04qRUriSh6l/AzcDY3wRtpgmWUSUhSewFYuITMFwV9MJ5iKzFgTCHfITtcWEhvW/H38NfYpViZ+UZ7Jmn920B3dZxDuPLnljOQsFmYiSY8J+53Xook734nE4v1r+P2rBMoTt1VUqzRC/ThFU85P2m7CCYKxc3bVrhNZRjDpdPHmoxnMXBmErFbgDIncza+RuzGE1QTXQ1k0fElF9OpAJcaZK+5kZuHuKCqlAraDbWzmxmWUJm5pXEH89Y8W49w0cNrBGYWlqTvbFvjTna1oigQoLQKP/ryq0eIooSFOxcCP6AxJaWkkDAEfw/uJ52GaJt658D1yhSmdGdJmJ+iOZEyrQaFeOPss9u3xKXUVHlXN8UO78U2qFx0tbuxv9eOzZDepCr0ZGlsGdUFYR3L04C50H4ugt2s/HkwXsVgqoyXUgLbdQeITtgFFEPK58VR7iFKk81dEuU7m5yWkXmtEo98Ao0jeS12FWeVo3+WnZhT48edJvNl3RTkU8nN8fKoJAWNJE5HdsJJl6SG6WVZhbsyZfuxVlSLwwbtd2NMcUM/2wReOP4Enoy2rVuhbQTRhpep25pGiwBmvZJ2EVcuD8/fewGwloIy1NftUdUlqUkn7glPKWpsblO7flTDO330FFjyORKSd4bBcY9CCYboUXFe3S9UmYmuvNeTJGRrEziTM1q/eJieLaWhAnuDbiQO12cZgLa0Ay1UI+7eyUfqjMwehWymMHHNXqxc57Y003W5aR3YrfwCXsp3KkCvgAfd7wX3073PRLAOGxztxbWqfrudtpC/R9uWrrGa/1KjS6MSXfxzFFxNdsJhXxUmOQbj8+Py35zB07xilh2kyAoom328/K6KRM740mUxtHoz2fRTmBKYfMMxXaP+wCMzcAsyHCyQLomRElayQs+y1tAVUAKnLtdW+3ke8avSRILNGZpPMjlsozlMBUI6u36Ebaz8M+OjiPUHwvc9g9KeyWkqLD13ITdpkG9OBPmcQNPrW3uti7hlYjkq3Z5iSH8vPEslCfSV1Ha7g1EucSt/Exe8krv/qrzMQeMxCUyu3d1WGutt5lW+QyXDZLPf9M26cldAODkfY99zSUU4FvL6+kdoK1xKt4dDbc3G3EUmSQhw7EDLqFSFZmvZtf2bQvm8HHeyA2FvFGPd6TlN0R0iZJj0Lq2NSZiWsLGNsjKOYvjlIbbIN/gUK8Nn86IrnuAAAAABJRU5ErkJggg==";function zt(t){return[null,void 0].indexOf(t)!==-1}function Nx(t,e,n){const{object:i,valueProp:a,mode:r}=o.toRefs(t),s=o.getCurrentInstance().proxy,l=n.iv,M=g=>{l.value=c(g);const d=u(g);e.emit("change",d,s),e.emit("input",d),e.emit("update:modelValue",d)},u=g=>i.value||zt(g)?g:Array.isArray(g)?g.map(d=>d[a.value]):g[a.value],c=g=>zt(g)?r.value==="single"?{}:[]:g;return{update:M}}function dx(t,e){const{value:n,modelValue:i,mode:a,valueProp:r}=o.toRefs(t),s=o.ref(a.value!=="single"?[]:{}),l=i&&i.value!==void 0?i:n,M=o.computed(()=>a.value==="single"?s.value[r.value]:s.value.map(c=>c[r.value])),u=o.computed(()=>a.value!=="single"?s.value.map(c=>c[r.value]).join(","):s.value[r.value]);return{iv:s,internalValue:s,ev:l,externalValue:l,textValue:u,plainValue:M}}function yx(t,e,n){const{regex:i}=o.toRefs(t),a=o.getCurrentInstance().proxy,r=n.isOpen,s=n.open,l=o.ref(null),M=o.ref(null),u=()=>{l.value=""},c=y=>{l.value=y.target.value},g=y=>{if(i&&i.value){let j=i.value;typeof j=="string"&&(j=new RegExp(j)),y.key.match(j)||y.preventDefault()}},d=y=>{if(i&&i.value){let D=(y.clipboardData||window.clipboardData).getData("Text"),f=i.value;typeof f=="string"&&(f=new RegExp(f)),D.split("").every(N=>!!N.match(f))||y.preventDefault()}e.emit("paste",y,a)};return o.watch(l,y=>{!r.value&&y&&s(),e.emit("search-change",y,a)}),{search:l,input:M,clearSearch:u,handleSearchInput:c,handleKeypress:g,handlePaste:d}}function jx(t,e,n){const{groupSelect:i,mode:a,groups:r,disabledProp:s}=o.toRefs(t),l=o.ref(null),M=c=>{c===void 0||c!==null&&c[s.value]||r.value&&c&&c.group&&(a.value==="single"||!i.value)||(l.value=c)};return{pointer:l,setPointer:M,clearPointer:()=>{M(null)}}}function pr(t,e=!0){return e?String(t).toLowerCase().trim():String(t).normalize("NFD").replace(/\p{Diacritic}/gu,"").toLowerCase().trim()}function Ix(t){return Object.prototype.toString.call(t)==="[object Object]"}function Dx(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every(function(i,a){return i===n[a]})}function fx(t,e,n){const{options:i,mode:a,trackBy:r,limit:s,hideSelected:l,createTag:M,createOption:u,label:c,appendNewTag:g,appendNewOption:d,multipleLabel:y,object:j,loading:D,delay:f,resolveOnLoad:N,minChars:I,filterResults:A,clearOnSearch:p,clearOnSelect:m,valueProp:z,canDeselect:w,max:_,strict:Y,closeOnSelect:R,groups:k,reverse:h,infinite:E,groupOptions:C,groupHideEmpty:T,groupSelect:v,onCreate:V,disabledProp:B,searchStart:F}=o.toRefs(t),$=o.getCurrentInstance().proxy,O=n.iv,P=n.ev,U=n.search,Ie=n.clearSearch,Z=n.update,q=n.pointer,Ae=n.clearPointer,ge=n.focus,re=n.deactivate,ue=n.close,Fe=o.ref([]),Ye=o.ref([]),ve=o.ref(!1),Ge=o.ref(null),b=o.ref(E.value&&s.value===-1?10:s.value),se=o.computed(()=>M.value||u.value||!1),he=o.computed(()=>g.value!==void 0?g.value:d.value!==void 0?d.value:!0),qe=o.computed(()=>{if(k.value){let x=Ye.value||[],W=[];return x.forEach(ae=>{dt(ae[C.value]).forEach(ke=>{W.push(Object.assign({},ke,ae[B.value]?{[B.value]:!0}:{}))})}),W}else{let x=dt(Ye.value||[]);return Fe.value.length&&(x=x.concat(Fe.value)),x}}),pt=o.computed(()=>k.value?ie((Ye.value||[]).map((x,W)=>{const ae=dt(x[C.value]);return{...x,index:W,group:!0,[C.value]:_t(ae,!1).map(ke=>Object.assign({},ke,x[B.value]?{[B.value]:!0}:{})),__VISIBLE__:_t(ae).map(ke=>Object.assign({},ke,x[B.value]?{[B.value]:!0}:{}))}})):[]),Tn=o.computed(()=>{let x=qe.value;return h.value&&(x=x.reverse()),Qe.value.length&&(x=Qe.value.concat(x)),_t(x)}),Tt=o.computed(()=>{let x=Tn.value;return b.value>0&&(x=x.slice(0,b.value)),x}),L=o.computed(()=>{switch(a.value){case"single":return!zt(O.value[z.value]);case"multiple":case"tags":return!zt(O.value)&&O.value.length>0}}),Q=o.computed(()=>y!==void 0&&y.value!==void 0?y.value(O.value,$):O.value&&O.value.length>1?`${O.value.length} options selected`:"1 option selected"),G=o.computed(()=>!qe.value.length&&!ve.value&&!Qe.value.length),ne=o.computed(()=>qe.value.length>0&&Tt.value.length==0&&(U.value&&k.value||!k.value)),Qe=o.computed(()=>se.value===!1||!U.value?[]:ee(U.value)!==-1?[]:[{[z.value]:U.value,[c.value]:U.value,[_e.value]:U.value,__CREATE__:!0}]),_e=o.computed(()=>r.value||c.value),st=o.computed(()=>{switch(a.value){case"single":return null;case"multiple":case"tags":return[]}}),Ln=o.computed(()=>D.value||ve.value),Je=x=>{switch(typeof x!="object"&&(x=S(x)),a.value){case"single":Z(x);break;case"multiple":case"tags":Z(O.value.concat(x));break}e.emit("select",Tr(x),x,$)},Ht=x=>{switch(typeof x!="object"&&(x=S(x)),a.value){case"single":xr();break;case"tags":case"multiple":Z(Array.isArray(x)?O.value.filter(W=>x.map(ae=>ae[z.value]).indexOf(W[z.value])===-1):O.value.filter(W=>W[z.value]!=x[z.value]));break}e.emit("deselect",Tr(x),x,$)},Tr=x=>j.value?x:x[z.value],Lr=x=>{Ht(x)},Il=(x,W)=>{if(W.button!==0){W.preventDefault();return}Lr(x)},xr=()=>{e.emit("clear",$),Z(st.value)},Lt=x=>{if(x.group!==void 0)return a.value==="single"?!1:hl(x[C.value])&&x[C.value].length;switch(a.value){case"single":return!zt(O.value)&&O.value[z.value]==x[z.value];case"tags":case"multiple":return!zt(O.value)&&O.value.map(W=>W[z.value]).indexOf(x[z.value])!==-1}},kt=x=>x[B.value]===!0,ai=()=>_===void 0||_.value===-1||!L.value&&_.value>0?!1:O.value.length>=_.value,Dl=x=>{if(!kt(x)){if(V&&V.value&&!Lt(x)&&x.__CREATE__&&(x={...x},delete x.__CREATE__,x=V.value(x,$),x instanceof Promise)){ve.value=!0,x.then(W=>{ve.value=!1,Or(W)});return}Or(x)}},Or=x=>{switch(x.__CREATE__&&(x={...x},delete x.__CREATE__),a.value){case"single":if(x&&Lt(x)){w.value&&Ht(x);return}x&&un(x),m.value&&Ie(),R.value&&(Ae(),ue()),x&&Je(x);break;case"multiple":if(x&&Lt(x)){Ht(x);return}if(ai())return;x&&(un(x),Je(x)),m.value&&Ie(),l.value&&Ae(),R.value&&ue();break;case"tags":if(x&&Lt(x)){Ht(x);return}if(ai())return;x&&un(x),m.value&&Ie(),x&&Je(x),l.value&&Ae(),R.value&&ue();break}R.value||ge()},fl=x=>{if(!(kt(x)||a.value==="single"||!v.value)){switch(a.value){case"multiple":case"tags":xn(x[C.value])?Ht(x[C.value]):Je(x[C.value].filter(W=>O.value.map(ae=>ae[z.value]).indexOf(W[z.value])===-1).filter(W=>!W[B.value]).filter((W,ae)=>O.value.length+1+ae<=_.value||_.value===-1));break}R.value&&re()}},un=x=>{S(x[z.value])===void 0&&se.value&&(e.emit("tag",x[z.value],$),e.emit("option",x[z.value],$),he.value&&te(x),Ie())},Sr=()=>{a.value!=="single"&&Je(Tt.value)},xn=x=>x.find(W=>!Lt(W)&&!W[B.value])===void 0,hl=x=>x.find(W=>!Lt(W))===void 0,S=x=>qe.value[qe.value.map(W=>String(W[z.value])).indexOf(String(x))],ee=(x,W=!0)=>qe.value.map(ae=>parseInt(ae[_e.value])==ae[_e.value]?parseInt(ae[_e.value]):ae[_e.value]).indexOf(parseInt(x)==x?parseInt(x):x),J=x=>["tags","multiple"].indexOf(a.value)!==-1&&l.value&&Lt(x),te=x=>{Fe.value.push(x)},ie=x=>T.value?x.filter(W=>U.value?W.__VISIBLE__.length:W[C.value].length):x.filter(W=>U.value?W.__VISIBLE__.length:!0),_t=(x,W=!0)=>{let ae=x;return U.value&&A.value&&(ae=ae.filter(ke=>F.value?pr(ke[_e.value],Y.value).startsWith(pr(U.value,Y.value)):pr(ke[_e.value],Y.value).indexOf(pr(U.value,Y.value))!==-1)),l.value&&W&&(ae=ae.filter(ke=>!J(ke))),ae},dt=x=>{let W=x;return Ix(W)&&(W=Object.keys(W).map(ae=>{let ke=W[ae];return{[z.value]:ae,[_e.value]:ke,[c.value]:ke}})),W=W.map(ae=>typeof ae=="object"?ae:{[z.value]:ae,[_e.value]:ae,[c.value]:ae}),W},cn=()=>{zt(P.value)||(O.value=br(P.value))},gn=x=>(ve.value=!0,new Promise((W,ae)=>{i.value(U.value,$).then(ke=>{Ye.value=ke||[],typeof x=="function"&&x(ke),ve.value=!1}).catch(ke=>{console.error(ke),Ye.value=[],ve.value=!1}).finally(()=>{W()})})),On=()=>{if(!!L.value)if(a.value==="single"){let x=S(O.value[z.value]);if(x!==void 0){let W=x[c.value];O.value[c.value]=W,j.value&&(P.value[c.value]=W)}}else O.value.forEach((x,W)=>{let ae=S(O.value[W][z.value]);if(ae!==void 0){let ke=ae[c.value];O.value[W][c.value]=ke,j.value&&(P.value[W][c.value]=ke)}})},Er=x=>{gn(x)},br=x=>zt(x)?a.value==="single"?{}:[]:j.value?x:a.value==="single"?S(x)||{}:x.filter(W=>!!S(W)).map(W=>S(W)),Fg=()=>{Ge.value=o.watch(U,x=>{x.length<I.value||!x&&I.value!==0||(ve.value=!0,p.value&&(Ye.value=[]),setTimeout(()=>{x==U.value&&i.value(U.value,$).then(W=>{(x==U.value||!U.value)&&(Ye.value=W,q.value=Tt.value.filter(ae=>ae[B.value]!==!0)[0]||null,ve.value=!1)}).catch(W=>{console.error(W)})},f.value))},{flush:"sync"})};if(a.value!=="single"&&!zt(P.value)&&!Array.isArray(P.value))throw new Error(`v-model must be an array when using "${a.value}" mode`);return i&&typeof i.value=="function"?N.value?gn(cn):j.value==!0&&cn():(Ye.value=i.value,cn()),f.value>-1&&Fg(),o.watch(f,(x,W)=>{Ge.value&&Ge.value(),x>=0&&Fg()}),o.watch(P,x=>{if(zt(x)){O.value=br(x);return}switch(a.value){case"single":(j.value?x[z.value]!=O.value[z.value]:x!=O.value[z.value])&&(O.value=br(x));break;case"multiple":case"tags":Dx(j.value?x.map(W=>W[z.value]):x,O.value.map(W=>W[z.value]))||(O.value=br(x));break}},{deep:!0}),o.watch(i,(x,W)=>{typeof t.options=="function"?N.value&&(!W||x&&x.toString()!==W.toString())&&gn():(Ye.value=t.options,Object.keys(O.value).length||cn(),On())}),o.watch(c,On),{pfo:Tn,fo:Tt,filteredOptions:Tt,hasSelected:L,multipleLabelText:Q,eo:qe,extendedOptions:qe,fg:pt,filteredGroups:pt,noOptions:G,noResults:ne,resolving:ve,busy:Ln,offset:b,select:Je,deselect:Ht,remove:Lr,selectAll:Sr,clear:xr,isSelected:Lt,isDisabled:kt,isMax:ai,getOption:S,handleOptionClick:Dl,handleGroupClick:fl,handleTagRemove:Il,refreshOptions:Er,resolveOptions:gn,refreshLabels:On}}function hx(t,e,n){const{valueProp:i,showOptions:a,searchable:r,groupLabel:s,groups:l,mode:M,groupSelect:u,disabledProp:c}=o.toRefs(t),g=n.fo,d=n.fg,y=n.handleOptionClick,j=n.handleGroupClick,D=n.search,f=n.pointer,N=n.setPointer,I=n.clearPointer,A=n.multiselect,p=n.isOpen,m=o.computed(()=>g.value.filter(Z=>!Z[c.value])),z=o.computed(()=>d.value.filter(Z=>!Z[c.value])),w=o.computed(()=>M.value!=="single"&&u.value),_=o.computed(()=>f.value&&f.value.group),Y=o.computed(()=>U(f.value)),R=o.computed(()=>{const Z=_.value?f.value:U(f.value),q=z.value.map(ge=>ge[s.value]).indexOf(Z[s.value]);let Ae=z.value[q-1];return Ae===void 0&&(Ae=h.value),Ae}),k=o.computed(()=>{let Z=z.value.map(q=>q.label).indexOf(_.value?f.value[s.value]:U(f.value)[s.value])+1;return z.value.length<=Z&&(Z=0),z.value[Z]}),h=o.computed(()=>[...z.value].slice(-1)[0]),E=o.computed(()=>f.value.__VISIBLE__.filter(Z=>!Z[c.value])[0]),C=o.computed(()=>{const Z=Y.value.__VISIBLE__.filter(q=>!q[c.value]);return Z[Z.map(q=>q[i.value]).indexOf(f.value[i.value])-1]}),T=o.computed(()=>{const Z=U(f.value).__VISIBLE__.filter(q=>!q[c.value]);return Z[Z.map(q=>q[i.value]).indexOf(f.value[i.value])+1]}),v=o.computed(()=>[...R.value.__VISIBLE__.filter(Z=>!Z[c.value])].slice(-1)[0]),V=o.computed(()=>[...h.value.__VISIBLE__.filter(Z=>!Z[c.value])].slice(-1)[0]),B=Z=>!!f.value&&(!Z.group&&f.value[i.value]==Z[i.value]||Z.group!==void 0&&f.value[s.value]==Z[s.value])?!0:void 0,F=()=>{N(m.value[0]||null)},$=()=>{!f.value||f.value[c.value]===!0||(_.value?j(f.value):y(f.value))},O=()=>{if(f.value===null)N((l.value&&w.value?z.value[0]:m.value[0])||null);else if(l.value&&w.value){let Z=_.value?E.value:T.value;Z===void 0&&(Z=k.value),N(Z||null)}else{let Z=m.value.map(q=>q[i.value]).indexOf(f.value[i.value])+1;m.value.length<=Z&&(Z=0),N(m.value[Z]||null)}o.nextTick(()=>{Ie()})},P=()=>{if(f.value===null){let Z=m.value[m.value.length-1];l.value&&w.value&&(Z=V.value,Z===void 0&&(Z=h.value)),N(Z||null)}else if(l.value&&w.value){let Z=_.value?v.value:C.value;Z===void 0&&(Z=_.value?R.value:Y.value),N(Z||null)}else{let Z=m.value.map(q=>q[i.value]).indexOf(f.value[i.value])-1;Z<0&&(Z=m.value.length-1),N(m.value[Z]||null)}o.nextTick(()=>{Ie()})},U=Z=>z.value.find(q=>q.__VISIBLE__.map(Ae=>Ae[i.value]).indexOf(Z[i.value])!==-1),Ie=()=>{let Z=A.value.querySelector("[data-pointed]");if(!Z)return;let q=Z.parentElement.parentElement;l.value&&(q=_.value?Z.parentElement.parentElement.parentElement:Z.parentElement.parentElement.parentElement.parentElement),Z.offsetTop+Z.offsetHeight>q.clientHeight+q.scrollTop&&(q.scrollTop=Z.offsetTop+Z.offsetHeight-q.clientHeight),Z.offsetTop<q.scrollTop&&(q.scrollTop=Z.offsetTop)};return o.watch(D,Z=>{r.value&&(Z.length&&a.value?F():I())}),o.watch(p,Z=>{if(Z){let q=A.value.querySelectorAll("[data-selected]")[0];if(!q)return;let Ae=q.parentElement.parentElement;o.nextTick(()=>{Ae.scrollTop>0||(Ae.scrollTop=q.offsetTop)})}}),{pointer:f,canPointGroups:w,isPointed:B,setPointerFirst:F,selectPointer:$,forwardPointer:O,backwardPointer:P}}function mx(t,e,n){const{disabled:i}=o.toRefs(t),a=o.getCurrentInstance().proxy,r=o.ref(!1);return{isOpen:r,open:()=>{r.value||i.value||(r.value=!0,e.emit("open",a))},close:()=>{!r.value||(r.value=!1,e.emit("close",a))}}}function Ax(t,e,n){const{searchable:i,disabled:a}=o.toRefs(t),r=n.input,s=n.open,l=n.close,M=n.clearSearch,u=n.isOpen,c=o.ref(null),g=o.ref(null),d=o.ref(null),y=o.ref(!1),j=o.ref(!1),D=o.computed(()=>i.value||a.value?-1:0),f=()=>{i.value&&r.value.blur(),g.value.blur()},N=()=>{i.value&&!a.value&&r.value.focus()},I=(_=!0)=>{a.value||(y.value=!0,_&&s())},A=()=>{y.value=!1,setTimeout(()=>{y.value||(l(),M())},1)};return{multiselect:c,wrapper:g,tags:d,tabindex:D,isActive:y,mouseClicked:j,blur:f,focus:N,activate:I,deactivate:A,handleFocusIn:_=>{_.target.closest("[data-tags]")||_.target.closest("[data-clear]")||I(j.value)},handleFocusOut:()=>{A()},handleCaretClick:()=>{A(),f()},handleMousedown:_=>{j.value=!0,u.value&&(_.target.isEqualNode(g.value)||_.target.isEqualNode(d.value))?setTimeout(()=>{A()},0):document.activeElement.isEqualNode(g.value)&&!u.value&&(console.log(_.target.closest("[data-tags]")),I()),setTimeout(()=>{j.value=!1},0)}}}function zx(t,e,n){const{mode:i,addTagOn:a,openDirection:r,searchable:s,showOptions:l,valueProp:M,groups:u,addOptionOn:c,createTag:g,createOption:d,reverse:y}=o.toRefs(t),j=o.getCurrentInstance().proxy,D=n.iv,f=n.update,N=n.search,I=n.setPointer,A=n.selectPointer,p=n.backwardPointer,m=n.forwardPointer,z=n.multiselect,w=n.wrapper,_=n.tags,Y=n.isOpen,R=n.open,k=n.blur,h=n.fo,E=o.computed(()=>g.value||d.value||!1),C=o.computed(()=>a.value!==void 0?a.value:c.value!==void 0?c.value:["enter"]),T=()=>{i.value==="tags"&&!l.value&&E.value&&s.value&&!u.value&&I(h.value[h.value.map(B=>B[M.value]).indexOf(N.value)])};return{handleKeydown:B=>{e.emit("keydown",B,j);let F,$;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(B.key)!==-1&&i.value==="tags"&&(F=[...z.value.querySelectorAll("[data-tags] > *")].filter(O=>O!==_.value),$=F.findIndex(O=>O===document.activeElement)),B.key){case"Backspace":if(i.value==="single"||s.value&&[null,""].indexOf(N.value)===-1||D.value.length===0)return;f([...D.value].slice(0,-1));break;case"Enter":if(B.preventDefault(),B.keyCode===229)return;if($!==-1&&$!==void 0){f([...D.value].filter((O,P)=>P!==$)),$===F.length-1&&(F.length-1?F[F.length-2].focus():s.value?_.value.querySelector("input").focus():w.value.focus());return}if(C.value.indexOf("enter")===-1&&E.value)return;T(),A();break;case" ":if(!E.value&&!s.value){B.preventDefault(),T(),A();return}if(!E.value)return!1;if(C.value.indexOf("space")===-1&&E.value)return;B.preventDefault(),T(),A();break;case"Tab":case";":case",":if(C.value.indexOf(B.key.toLowerCase())===-1||!E.value)return;T(),A(),B.preventDefault();break;case"Escape":k();break;case"ArrowUp":if(B.preventDefault(),!l.value)return;Y.value||R(),p();break;case"ArrowDown":if(B.preventDefault(),!l.value)return;Y.value||R(),m();break;case"ArrowLeft":if(s.value&&_.value&&_.value.querySelector("input").selectionStart||B.shiftKey||i.value!=="tags"||!D.value||!D.value.length)return;B.preventDefault(),$===-1?F[F.length-1].focus():$>0&&F[$-1].focus();break;case"ArrowRight":if($===-1||B.shiftKey||i.value!=="tags"||!D.value||!D.value.length)return;B.preventDefault(),F.length>$+1?F[$+1].focus():s.value?_.value.querySelector("input").focus():s.value||w.value.focus();break}},handleKeyup:B=>{e.emit("keyup",B,j)},preparePointer:T}}function px(t,e,n){const{classes:i,disabled:a,openDirection:r,showOptions:s}=o.toRefs(t),l=n.isOpen,M=n.isPointed,u=n.isSelected,c=n.isDisabled,g=n.isActive,d=n.canPointGroups,y=n.resolving,j=n.fo,D=o.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...i.value})),f=o.computed(()=>!!(l.value&&s.value&&(!y.value||y.value&&j.value.length)));return{classList:o.computed(()=>{const I=D.value;return{container:[I.container].concat(a.value?I.containerDisabled:[]).concat(f.value&&r.value==="top"?I.containerOpenTop:[]).concat(f.value&&r.value!=="top"?I.containerOpen:[]).concat(g.value?I.containerActive:[]),wrapper:I.wrapper,spacer:I.spacer,singleLabel:I.singleLabel,singleLabelText:I.singleLabelText,multipleLabel:I.multipleLabel,search:I.search,tags:I.tags,tag:[I.tag].concat(a.value?I.tagDisabled:[]),tagRemove:I.tagRemove,tagRemoveIcon:I.tagRemoveIcon,tagsSearchWrapper:I.tagsSearchWrapper,tagsSearch:I.tagsSearch,tagsSearchCopy:I.tagsSearchCopy,placeholder:I.placeholder,caret:[I.caret].concat(l.value?I.caretOpen:[]),clear:I.clear,clearIcon:I.clearIcon,spinner:I.spinner,inifinite:I.inifinite,inifiniteSpinner:I.inifiniteSpinner,dropdown:[I.dropdown].concat(r.value==="top"?I.dropdownTop:[]).concat(!l.value||!s.value||!f.value?I.dropdownHidden:[]),options:[I.options].concat(r.value==="top"?I.optionsTop:[]),group:I.group,groupLabel:A=>{let p=[I.groupLabel];return M(A)?p.push(u(A)?I.groupLabelSelectedPointed:I.groupLabelPointed):u(A)&&d.value?p.push(c(A)?I.groupLabelSelectedDisabled:I.groupLabelSelected):c(A)&&p.push(I.groupLabelDisabled),d.value&&p.push(I.groupLabelPointable),p},groupOptions:I.groupOptions,option:(A,p)=>{let m=[I.option];return M(A)?m.push(u(A)?I.optionSelectedPointed:I.optionPointed):u(A)?m.push(c(A)?I.optionSelectedDisabled:I.optionSelected):(c(A)||p&&c(p))&&m.push(I.optionDisabled),m},noOptions:I.noOptions,noResults:I.noResults,assist:I.assist,fakeInput:I.fakeInput}}),showDropdown:f}}function Tx(t,e,n){const{limit:i,infinite:a}=o.toRefs(t),r=n.isOpen,s=n.offset,l=n.search,M=n.pfo,u=n.eo,c=o.ref(null),g=o.ref(null),d=o.computed(()=>s.value<M.value.length),y=D=>{const{isIntersecting:f,target:N}=D[0];if(f){const I=N.offsetParent,A=I.scrollTop;s.value+=i.value==-1?10:i.value,o.nextTick(()=>{I.scrollTop=A})}},j=()=>{r.value&&s.value<M.value.length?c.value.observe(g.value):!r.value&&c.value&&c.value.disconnect()};return o.watch(r,()=>{!a.value||j()}),o.watch(l,()=>{!a.value||(s.value=i.value,j())},{flush:"post"}),o.watch(u,()=>{!a.value||j()},{immediate:!1,flush:"post"}),o.onMounted(()=>{window&&window.IntersectionObserver&&(c.value=new IntersectionObserver(y))}),{hasMore:d,infiniteLoader:g}}function Lx(t,e,n){const{placeholder:i,id:a,valueProp:r,label:s,mode:l,groupLabel:M,aria:u,searchable:c}=o.toRefs(t),g=n.pointer,d=n.iv,y=n.hasSelected,j=n.multipleLabelText,D=o.ref(null),f=o.computed(()=>{let h=[];return a&&a.value&&h.push(a.value),h.push("assist"),h.join("-")}),N=o.computed(()=>{let h=[];return a&&a.value&&h.push(a.value),h.push("multiselect-options"),h.join("-")}),I=o.computed(()=>{let h=[];if(a&&a.value&&h.push(a.value),g.value)return h.push(g.value.group?"multiselect-group":"multiselect-option"),h.push(g.value.group?g.value.index:g.value[r.value]),h.join("-")}),A=o.computed(()=>i.value),p=o.computed(()=>l.value!=="single"),m=o.computed(()=>{let h="";return l.value==="single"&&y.value&&(h+=d.value[s.value]),l.value==="multiple"&&y.value&&(h+=j.value),l.value==="tags"&&y.value&&(h+=d.value.map(E=>E[s.value]).join(", ")),h}),z=o.computed(()=>{let h={...u.value};return c.value&&(h["aria-labelledby"]=h["aria-labelledby"]?`${f.value} ${h["aria-labelledby"]}`:f.value,m.value&&h["aria-label"]&&(h["aria-label"]=`${m.value}, ${h["aria-label"]}`)),h}),w=h=>{let E=[];return a&&a.value&&E.push(a.value),E.push("multiselect-option"),E.push(h[r.value]),E.join("-")},_=h=>{let E=[];return a&&a.value&&E.push(a.value),E.push("multiselect-group"),E.push(h.index),E.join("-")},Y=h=>{let E=[];return E.push(h[s.value]),E.join(" ")},R=h=>{let E=[];return E.push(h[M.value]),E.join(" ")},k=h=>`${h} \u274E`;return o.onMounted(()=>{if(a&&a.value&&document&&document.querySelector){let h=document.querySelector(`[for="${a.value}"]`);D.value=h?h.innerText:null}}),{arias:z,ariaLabel:m,ariaAssist:f,ariaControls:N,ariaPlaceholder:A,ariaMultiselectable:p,ariaActiveDescendant:I,ariaOptionId:w,ariaOptionLabel:Y,ariaGroupId:_,ariaGroupLabel:R,ariaTagLabel:k}}function xx(t,e,n,i={}){return n.forEach(a=>{a&&(i={...i,...a(t,e,i)})}),i}var jl={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:String,required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:String,required:!1,default:"The list is empty"},noResultsText:{type:String,required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})}},setup(t,e){return xx(t,e,[dx,jx,mx,yx,Nx,Ax,fx,Tx,hx,zx,px,Lx])}};const Ox=["id","dir"],Sx=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],Ex=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],bx=["onKeyup","aria-label"],Cx=["onClick"],wx=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],kx=["innerHTML"],_x=["id"],vx=["id","aria-label","aria-selected"],Qx=["data-pointed","onMouseenter","onClick"],Yx=["innerHTML"],Ux=["aria-label"],Px=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],Rx=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],Bx=["innerHTML"],Zx=["innerHTML"],Vx=["value"],Gx=["name","value"],Wx=["name","value"],$x=["id"];function Hx(t,e,n,i,a,r){return o.openBlock(),o.createElementBlock("div",{ref:"multiselect",class:o.normalizeClass(t.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:e[10]||(e[10]=(...s)=>t.handleFocusIn&&t.handleFocusIn(...s)),onFocusout:e[11]||(e[11]=(...s)=>t.handleFocusOut&&t.handleFocusOut(...s)),onKeyup:e[12]||(e[12]=(...s)=>t.handleKeyup&&t.handleKeyup(...s)),onKeydown:e[13]||(e[13]=(...s)=>t.handleKeydown&&t.handleKeydown(...s))},[o.createElementVNode("div",o.mergeProps({class:t.classList.wrapper,onMousedown:e[9]||(e[9]=(...s)=>t.handleMousedown&&t.handleMousedown(...s)),ref:"wrapper",tabindex:t.tabindex,"aria-controls":n.searchable?void 0:t.ariaControls,"aria-placeholder":n.searchable?void 0:t.ariaPlaceholder,"aria-expanded":n.searchable?void 0:t.isOpen,"aria-activedescendant":n.searchable?void 0:t.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:t.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:t.arias),[o.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(o.openBlock(),o.createElementBlock("input",o.mergeProps({key:0,type:n.inputType,modelValue:t.search,value:t.search,class:t.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:e[0]||(e[0]=(...s)=>t.handleSearchInput&&t.handleSearchInput(...s)),onKeypress:e[1]||(e[1]=(...s)=>t.handleKeypress&&t.handleKeypress(...s)),onPaste:e[2]||(e[2]=o.withModifiers((...s)=>t.handlePaste&&t.handlePaste(...s),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...n.attrs,...t.arias}),null,16,Ex)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(t.classList.tags),"data-tags":""},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.iv,(s,l,M)=>o.renderSlot(t.$slots,"tag",{option:s,handleTagRemove:t.handleTagRemove,disabled:n.disabled},()=>[(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(t.classList.tag),tabindex:"-1",onKeyup:o.withKeys(u=>t.handleTagRemove(s,u),["enter"]),key:M,"aria-label":t.ariaTagLabel(s[n.label])},[o.createTextVNode(o.toDisplayString(s[n.label])+" ",1),n.disabled?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(t.classList.tagRemove),onClick:u=>t.handleTagRemove(s,u)},[o.createElementVNode("span",{class:o.normalizeClass(t.classList.tagRemoveIcon)},null,2)],10,Cx))],42,bx))])),256)),o.createElementVNode("div",{class:o.normalizeClass(t.classList.tagsSearchWrapper),ref:"tags"},[o.createCommentVNode(" Used for measuring search width "),o.createElementVNode("span",{class:o.normalizeClass(t.classList.tagsSearchCopy)},o.toDisplayString(t.search),3),o.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(o.openBlock(),o.createElementBlock("input",o.mergeProps({key:0,type:n.inputType,modelValue:t.search,value:t.search,class:t.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:e[3]||(e[3]=(...s)=>t.handleSearchInput&&t.handleSearchInput(...s)),onKeypress:e[4]||(e[4]=(...s)=>t.handleKeypress&&t.handleKeypress(...s)),onPaste:e[5]||(e[5]=o.withModifiers((...s)=>t.handlePaste&&t.handlePaste(...s),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...n.attrs,...t.arias}),null,16,wx)):o.createCommentVNode("v-if",!0)],2)],2)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Single label "),n.mode=="single"&&t.hasSelected&&!t.search&&t.iv?o.renderSlot(t.$slots,"singlelabel",{key:2,value:t.iv},()=>[o.createElementVNode("div",{class:o.normalizeClass(t.classList.singleLabel)},[o.createElementVNode("span",{class:o.normalizeClass(t.classList.singleLabelText)},o.toDisplayString(t.iv[n.label]),3)],2)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Multiple label "),n.mode=="multiple"&&t.hasSelected&&!t.search?o.renderSlot(t.$slots,"multiplelabel",{key:3,values:t.iv},()=>[o.createElementVNode("div",{class:o.normalizeClass(t.classList.multipleLabel),innerHTML:t.multipleLabelText},null,10,kx)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Placeholder "),n.placeholder&&!t.hasSelected&&!t.search?o.renderSlot(t.$slots,"placeholder",{key:4},()=>[o.createElementVNode("div",{class:o.normalizeClass(t.classList.placeholder),"aria-hidden":"true"},o.toDisplayString(n.placeholder),3)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Spinner "),n.loading||t.resolving?o.renderSlot(t.$slots,"spinner",{key:5},()=>[o.createElementVNode("span",{class:o.normalizeClass(t.classList.spinner),"aria-hidden":"true"},null,2)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Clear "),t.hasSelected&&!n.disabled&&n.canClear&&!t.busy?o.renderSlot(t.$slots,"clear",{key:6,clear:t.clear},()=>[o.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"\u274E",class:o.normalizeClass(t.classList.clear),onClick:e[6]||(e[6]=(...s)=>t.clear&&t.clear(...s)),onKeyup:e[7]||(e[7]=o.withKeys((...s)=>t.clear&&t.clear(...s),["enter"]))},[o.createElementVNode("span",{class:o.normalizeClass(t.classList.clearIcon)},null,2)],34)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Caret "),n.caret&&n.showOptions?o.renderSlot(t.$slots,"caret",{key:7},()=>[o.createElementVNode("span",{class:o.normalizeClass(t.classList.caret),onClick:e[8]||(e[8]=(...s)=>t.handleCaretClick&&t.handleCaretClick(...s)),"aria-hidden":"true"},null,2)]):o.createCommentVNode("v-if",!0)],16,Sx),o.createCommentVNode(" Options "),o.createElementVNode("div",{class:o.normalizeClass(t.classList.dropdown),tabindex:"-1"},[o.renderSlot(t.$slots,"beforelist",{options:t.fo}),o.createElementVNode("ul",{class:o.normalizeClass(t.classList.options),id:t.ariaControls,role:"listbox"},[n.groups?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(t.fg,(s,l,M)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(t.classList.group),key:M,id:t.ariaGroupId(s),"aria-label":t.ariaGroupLabel(s),"aria-selected":t.isSelected(s),role:"option"},[o.createElementVNode("div",{class:o.normalizeClass(t.classList.groupLabel(s)),"data-pointed":t.isPointed(s),onMouseenter:u=>t.setPointer(s,l),onClick:u=>t.handleGroupClick(s)},[o.renderSlot(t.$slots,"grouplabel",{group:s,isSelected:t.isSelected,isPointed:t.isPointed},()=>[o.createElementVNode("span",{innerHTML:s[n.groupLabel]},null,8,Yx)])],42,Qx),o.createElementVNode("ul",{class:o.normalizeClass(t.classList.groupOptions),"aria-label":t.ariaGroupLabel(s),role:"group"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.__VISIBLE__,(u,c,g)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(t.classList.option(u,s)),"data-pointed":t.isPointed(u),"data-selected":t.isSelected(u)||void 0,key:g,onMouseenter:d=>t.setPointer(u),onClick:d=>t.handleOptionClick(u),id:t.ariaOptionId(u),"aria-selected":t.isSelected(u),"aria-label":t.ariaOptionLabel(u),role:"option"},[o.renderSlot(t.$slots,"option",{option:u,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[o.createElementVNode("span",null,o.toDisplayString(u[n.label]),1)])],42,Px))),128))],10,Ux)],10,vx))),128)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(t.fo,(s,l,M)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(t.classList.option(s)),"data-pointed":t.isPointed(s),"data-selected":t.isSelected(s)||void 0,key:M,onMouseenter:u=>t.setPointer(s),onClick:u=>t.handleOptionClick(s),id:t.ariaOptionId(s),"aria-selected":t.isSelected(s),"aria-label":t.ariaOptionLabel(s),role:"option"},[o.renderSlot(t.$slots,"option",{option:s,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[o.createElementVNode("span",null,o.toDisplayString(s[n.label]),1)])],42,Rx))),128))],10,_x),t.noOptions?o.renderSlot(t.$slots,"nooptions",{key:0},()=>[o.createElementVNode("div",{class:o.normalizeClass(t.classList.noOptions),innerHTML:n.noOptionsText},null,10,Bx)]):o.createCommentVNode("v-if",!0),t.noResults?o.renderSlot(t.$slots,"noresults",{key:1},()=>[o.createElementVNode("div",{class:o.normalizeClass(t.classList.noResults),innerHTML:n.noResultsText},null,10,Zx)]):o.createCommentVNode("v-if",!0),n.infinite&&t.hasMore?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(t.classList.inifinite),ref:"infiniteLoader"},[o.renderSlot(t.$slots,"infinite",{},()=>[o.createElementVNode("span",{class:o.normalizeClass(t.classList.inifiniteSpinner)},null,2)])],2)):o.createCommentVNode("v-if",!0),o.renderSlot(t.$slots,"afterlist",{options:t.fo})],2),o.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(o.openBlock(),o.createElementBlock("input",{key:0,class:o.normalizeClass(t.classList.fakeInput),tabindex:"-1",value:t.textValue,required:""},null,10,Vx)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Native input support "),n.nativeSupport?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.mode=="single"?(o.openBlock(),o.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:t.plainValue!==void 0?t.plainValue:""},null,8,Gx)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(t.plainValue,(s,l)=>(o.openBlock(),o.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:s,key:l},null,8,Wx))),128))],64)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Screen reader assistive text "),n.searchable&&t.hasSelected?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(t.classList.assist),id:t.ariaAssist,"aria-hidden":"true"},o.toDisplayString(t.ariaLabel),11,$x)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Create height for empty input "),o.createElementVNode("div",{class:o.normalizeClass(t.classList.spacer)},null,2)],42,Ox)}jl.render=Hx,jl.__file="src/Multiselect.vue";var uS="",cS="";const Fx=o.createElementVNode("img",{alt:"",class:"list__item_thumb",src:gx},null,-1),Jx={class:"list__item_text"},Xx=o.createElementVNode("div",{id:"list"},null,-1),Kx={__name:"InputList",props:{list:{type:Array,required:!0}},setup(t){const e=o.ref(null);return(n,i)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(o.unref(jl),{modelValue:e.value,"onUpdate:modelValue":i[0]||(i[0]=a=>e.value=a),mode:"tags",options:t.list,placeholder:"Start typing a name",searchable:!0},{tag:o.withCtx(({option:a,handleTagRemove:r,disabled:s})=>[(o.openBlock(),o.createBlock(o.Teleport,{to:"#list"},[o.createElementVNode("div",{class:o.normalizeClass(["list__item",{"is-disabled":s}])},[Fx,o.createElementVNode("p",Jx,o.toDisplayString(a.value),1),o.createVNode(ye,{class:"list__item_icon","icon-name":"delete",size:24,onClick:l=>r(a,l)},null,8,["onClick"]),o.renderSlot(n.$slots,"default")],2)]))]),_:3},8,["modelValue","options"]),Xx],64))}},qx=o.defineComponent({components:{DhIcon:ye},props:{hasCloseButton:{type:Boolean,default:!0},hasSideBar:{type:Boolean,default:!0},hasSideBarButtonBottom:{type:Boolean,default:!0},hasHeader:{type:Boolean,default:!0},hasFooter:{type:Boolean,default:!0},hasFooterButtonRight:{type:Boolean,default:!0},sideBarPosition:{type:String,default:"left"},hasCloseConfirmation:{type:Boolean,default:!1},bodyClass:{type:String,default:""}},emits:["close"],methods:{closed(){this.$emit("close",this.hasCloseConfirmation)}}}),eO={key:1,id:"modal-sidebar",class:"modal-sidebar"},tO={key:0,id:"modalTitle",class:"modal-header"},nO={class:"modal-footer"};function iO(t,e,n,i,a,r){const s=o.resolveComponent("dh-icon");return o.openBlock(),o.createBlock(o.Transition,{name:"modal-fade"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"modal-backdrop",onClick:e[2]||(e[2]=(...l)=>t.closed&&t.closed(...l))},[o.createElementVNode("div",{"aria-describedby":"modalDescription","aria-labelledby":"modalTitle",class:o.normalizeClass(`modal ${t.hasSideBar?t.sideBarPosition:""}`),role:"dialog",onClick:e[1]||(e[1]=o.withModifiers(()=>{},["stop"]))},[t.hasCloseButton?(o.openBlock(),o.createElementBlock("button",{key:0,"aria-label":"Close modal",class:"btn-close",type:"button",onClick:e[0]||(e[0]=(...l)=>t.closed&&t.closed(...l))},[o.createVNode(s,{class:"icon","icon-name":"close",size:24})])):o.createCommentVNode("",!0),t.hasSideBar?(o.openBlock(),o.createElementBlock("aside",eO,[o.renderSlot(t.$slots,"sidebar"),t.hasSideBarButtonBottom?o.renderSlot(t.$slots,"sidebar-button-bottom",{key:0}):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.createElementVNode("section",{class:o.normalizeClass(`right-section ${t.hasSideBar?"":"full"}`)},[t.hasHeader?(o.openBlock(),o.createElementBlock("header",tO,[o.renderSlot(t.$slots,"header")])):o.createCommentVNode("",!0),o.createElementVNode("section",{id:"modalDescription",class:o.normalizeClass(["modal-body",t.bodyClass])},[o.renderSlot(t.$slots,"body")],2),o.createElementVNode("footer",nO,[t.hasFooter?o.renderSlot(t.$slots,"footer",{key:0}):o.createCommentVNode("",!0),t.hasFooterButtonRight?o.renderSlot(t.$slots,"footer-button-right",{key:1}):o.createCommentVNode("",!0)])],2)],2)])]),_:3})}var aO=Ze(qx,[["render",iO]]),rO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTIgMy41YTguNSA4LjUgMCAxIDAgMCAxNyA4LjUgOC41IDAgMCAwIDAtMTd6TTIuNSAxMmE5LjUgOS41IDAgMSAxIDE5IDAgOS41IDkuNSAwIDAgMS0xOSAweiIgZmlsbD0iI0MzMkYyNyIvPgogICAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMiA3LjVhLjUuNSAwIDAgMSAuNS41djRhLjUuNSAwIDAgMS0xIDBWOGEuNS41IDAgMCAxIC41LS41ek0xMS4yNSAxNmEuNzUuNzUgMCAwIDEgLjc1LS43NWguMDFhLjc1Ljc1IDAgMCAxIDAgMS41SDEyYS43NS43NSAwIDAgMS0uNzUtLjc1eiIgZmlsbD0iI0MzMkYyNyIvPgo8L3N2Zz4K",oO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0xNy40NTIgMTkuMTg5SDYuNTU4QTIuNTYgMi41NiAwIDAgMSA0IDE2LjYzMVYxNmMwLTEgLjQxNS0xLjk1OSAxLjEzOC0yLjY0NS40MzMtLjQxLjY3OC0uOTc3LjY3OC0xLjU3MlY5LjE4NEE2LjE5MSA2LjE5MSAwIDAgMSAxMiAzYTYuMTkxIDYuMTkxIDAgMCAxIDYuMTg0IDYuMTg0djIuNmMwIC41OTQuMjQ1IDEuMTY1LjY3OCAxLjU3QTMuNjM2IDMuNjM2IDAgMCAxIDIwIDE2di42MzFhMi41NDcgMi41NDcgMCAwIDEtMi41NDkgMi41NTh6bS01LjQ0Ny0xNC43MmE0LjcxOCA0LjcxOCAwIDAgMC00LjcxIDQuNzF2Mi42YzAgMS0uNDE0IDEuOTU4LTEuMTM4IDIuNjQ1LS40MzMuNDEtLjY3Ny45NzctLjY3NyAxLjU3MXYuNjMyYzAgLjU5OS40ODQgMS4wNzggMS4wODMgMS4wODJoMTAuODk0Yy41OTQgMCAxLjA3OC0uNDgzIDEuMDgzLTEuMDgydi0uNjMyYzAtLjU5NC0uMjQ0LTEuMTY2LS42NzgtMS41NzFhMy42MzYgMy42MzYgMCAwIDEtMS4xMzgtMi42NDZWOS4xNzVhNC43MjUgNC43MjUgMCAwIDAtNC43MTktNC43MDV6TTEzLjkwNCAyMS40NjZoLTMuNzk4YS43NC43NCAwIDAgMS0uNzM3LS43MzguNzQuNzQgMCAwIDEgLjczNy0uNzM3aDMuNzk4YS43MzcuNzM3IDAgMSAxIDAgMS40NzV6IiBmaWxsPSIjQkZCRkJGIi8+Cjwvc3ZnPgo=",sO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTkuNDI3IDYuMjUzYTEgMSAwIDAgMSAwIDEuNDE0bC05LjI0IDkuMjRhMSAxIDAgMCAxLTEuNDE0IDBsLTQuMi00LjJhMSAxIDAgMSAxIDEuNDE0LTEuNDE0bDMuNDkzIDMuNDkzIDguNTMzLTguNTMzYTEgMSAwIDAgMSAxLjQxNCAweiIgZmlsbD0iIzNDQTA2NCIvPgo8L3N2Zz4K",lO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTAuODkzIDMuNzlhMi4yNTYgMi4yNTYgMCAwIDEgMy4wMzYuNzk2bC4wMDIuMDAzIDcuNDQyIDEyLjQyNGEyLjI1NyAyLjI1NyAwIDAgMS0xLjkzIDMuMzg0SDQuNTU3YTIuMjU3IDIuMjU3IDAgMCAxLTEuOTI5LTMuMzg0bC4wMDQtLjAwN0wxMC4wNyA0LjU4OWwuMDAyLS4wMDNjLjIwMS0uMzMxLjQ4NC0uNjA2LjgyMi0uNzk2ek0xMiA0LjVhMS4yNTYgMS4yNTYgMCAwIDAtMS4wNzMuNjA0aC0uMDAxTDMuNDkgMTcuNTE3YTEuMjU2IDEuMjU2IDAgMCAwIDEuMDc0IDEuODgxaDE0Ljg3YTEuMjU2IDEuMjU2IDAgMCAwIDEuMDc0LTEuODgxTDEzLjA3NCA1LjEwNXYtLjAwMUExLjI1NyAxLjI1NyAwIDAgMCAxMiA0LjV6IiBmaWxsPSIjRjI5OTRBIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEyIDguODZhLjUuNSAwIDAgMSAuNS41djMuNTEyYS41LjUgMCAxIDEtMSAwVjkuMzU5YS41LjUgMCAwIDEgLjUtLjV6TTExLjI1IDE2LjM4NWEuNzUuNzUgMCAwIDEgLjc1LS43NWguMDA5YS43NS43NSAwIDEgMSAwIDEuNUgxMmEuNzUuNzUgMCAwIDEtLjc1LS43NXoiIGZpbGw9IiNGMjk5NEEiLz4KPC9zdmc+Cg==";const MO=o.defineComponent({props:{notificationType:{type:String,required:!0,default:"toast"},status:{type:String,required:!0,default:"info"},title:{type:String,required:!1,default:""},message:{type:String,required:!1,default:""},dismissible:{type:Boolean,required:!1,default:!0},notificationButton:{type:String,default:"Action"},buttonAction:{type:String,default:"void"},buttonDismiss:{type:String,default:"Dismiss"}},data(){return{show:!0}},mounted(){this.dismissible&&["toast","bottom-message"].includes(this.notificationType)&&setTimeout(()=>{this.close()},3e3)},methods:{getIconUrl(){return new URL({"../assets/icon-danger.svg":rO,"../assets/icon-info.svg":oO,"../assets/icon-success.svg":sO,"../assets/icon-warning.svg":lO}[`../assets/icon-${this.status}.svg`],self.location).href},close(){this.show=!1},limitTitle(t,e){return["toast","actionable"].includes(e)&&t.length>=60?`${t.substring(0,60)}..`:["bottom-message"].includes(e)&&t.length>=40?`${t.substring(0,40)}..`:["modal"].includes(e)&&t.length>=80?`${t.substring(0,80)}..`:t}}}),uO=[o.createElementVNode("img",{alt:"icon",class:"close-icon",src:Ru},null,-1)],cO=["src"],gO={class:"additional-text"},NO={key:0,class:"descriptions"},dO={class:"btn btn-normal btn-primary"};function yO(t,e,n,i,a,r){return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(`dh-notification-container ${t.notificationType}`)},[t.show?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["bottom-message"].includes(t.notificationType)?`notification-up status status-${t.notificationType}`:`notification-enter status status-${t.notificationType}`)},[["modal","bottom-message"].includes(t.notificationType)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:0,class:"close-notification",onClick:e[0]||(e[0]=o.withModifiers((...s)=>t.close&&t.close(...s),["prevent"]))},uO)),o.createElementVNode("div",{class:o.normalizeClass(`content content- ${t.notificationType}`)},[o.createElementVNode("div",{class:o.normalizeClass(`ellipse ellipse-${t.status} ellipse-${t.notificationType}`)},[o.createElementVNode("img",{class:o.normalizeClass(`icons icons-${t.status} icons-${t.status}-${t.notificationType}`),src:t.getIconUrl()},null,10,cO)],2),o.createElementVNode("div",gO,[o.createElementVNode("div",{class:o.normalizeClass(`title title-${t.notificationType}`)},o.toDisplayString(t.limitTitle(t.title,t.notificationType)),3),["bottom-message"].includes(t.notificationType)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",NO,o.toDisplayString(t.message.length>=280?`${t.message.substring(0,280)}..`:t.message),1))]),["toast","bottom-message"].includes(t.notificationType)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(`buttons ${t.notificationType}`)},[o.createElementVNode("button",dO,o.toDisplayString(t.notificationButton),1),o.createElementVNode("button",{class:"btn btn-normal btn-secondary dismiss",onClick:e[1]||(e[1]=o.withModifiers((...s)=>t.close&&t.close(...s),["prevent"]))},o.toDisplayString(t.buttonDismiss),1)],2))],2)],2)):o.createCommentVNode("",!0)],2)}var jO=Ze(MO,[["render",yO]]),NS="";const IO={class:"password__panel"},DO=["placeholder","type"],fO={class:"icon is-right"},hO={key:0,class:"password__tooltip"};var mO=Ze(o.defineComponent({__name:"PasswordField",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:""},tipChars:{type:String,default:"12 Characters"},tipNumbers:{type:String,default:"Numbers"},tipSymbols:{type:String,default:"Symbols"},passwordTooltipDisabled:{type:Boolean,default:!1}},emits:["submit","update:modelValue"],setup(t,{emit:e}){const n=t,i=o.ref(""),a=o.ref(!1),r=o.ref(!1),s=o.ref(!1),l=o.ref(!1),M=o.ref(!1),u=o.ref(!1);function c(){e("submit",i.value),e("update:modelValue",i.value)}function g(){a.value=!0,u.value=!0}function d(){a.value=!1,u.value=!1}function y(){M.value=!M.value}return o.onMounted(()=>()=>i.value=n.modelValue||""),o.watch(n,()=>(i.value=n.modelValue||"",r.value=i.value.length>11,s.value=/\d/.test(i.value),l.value=/[!@#$%^&*)(+=._-]/.test(i.value))),(j,D)=>(o.openBlock(),o.createElementBlock("div",IO,[o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":D[0]||(D[0]=f=>i.value=f),class:"form__input password__panel_input","data-e2e":"password-input",placeholder:n.placeholder,type:M.value?"text":"password",onFocus:g,onFocusout:d,onKeyup:c},null,40,DO),[[o.vModelDynamic,i.value]]),o.createElementVNode("button",{class:"password__panel_button",type:"button",onClick:y},[o.createElementVNode("span",fO,[o.createVNode(ye,{active:u.value,"icon-name":M.value?"invisible":"visible",size:20},null,8,["active","icon-name"])])]),a.value&&!n.passwordTooltipDisabled?(o.openBlock(),o.createElementBlock("div",hO,[o.createElementVNode("p",{class:o.normalizeClass(["password__tooltip_text",r.value?"password__tooltip_text--valid":""])},[o.createVNode(ye,{class:o.normalizeClass(r.value?"password__tooltip_icon--active":"password__tooltip_icon"),"icon-name":r.value?"accept":"close",size:16},null,8,["class","icon-name"]),o.createElementVNode("span",null,o.toDisplayString(n.tipChars),1)],2),o.createElementVNode("p",{class:o.normalizeClass(["password__tooltip_text",s.value?"password__tooltip_text--valid":""])},[o.createVNode(ye,{class:o.normalizeClass(s.value?"password__tooltip_icon--active":"password__tooltip_icon"),"icon-name":s.value?"accept":"close",size:16},null,8,["class","icon-name"]),o.createElementVNode("span",null,o.toDisplayString(n.tipNumbers),1)],2),o.createElementVNode("p",{class:o.normalizeClass(["password__tooltip_text",l.value?"password__tooltip_text--valid":""])},[o.createVNode(ye,{class:o.normalizeClass(l.value?"password__tooltip_icon--active":"password__tooltip_icon"),"icon-name":l.value?"accept":"close",size:16},null,8,["class","icon-name"]),o.createElementVNode("span",null,o.toDisplayString(n.tipSymbols),1)],2)])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-3ae35090"]]),yS="";const AO={class:"radio"},zO=["for"],pO=["id","type","value"],TO={class:"radio__label_txt"};var Hg=Ze({__name:"RadioBox",props:{type:{type:String,default:"radio"},value:{type:String,required:!0},label:{type:String,required:!0}},emits:["clickBox"],setup(t,{emit:e}){return(n,i)=>(o.openBlock(),o.createElementBlock("div",AO,[o.createElementVNode("label",{class:"radio__label",for:t.value},[o.createElementVNode("input",{id:t.value,class:"radio__input",name:"radiobox",type:t.type,value:t.value,onClick:i[0]||(i[0]=a=>e("clickBox"))},null,8,pO),o.createElementVNode("span",TO,o.toDisplayString(t.label),1)],8,zO)]))}},[["__scopeId","data-v-29696bd5"]]),IS="";const LO={__name:"RadioBoxGroup",props:{orientation:{type:String,default:"horizontal"},type:{type:String,default:"radio"},list:{type:Array,required:!0}},setup(t){const e=o.ref(null);function n(){const i=document.querySelectorAll("input");for(let a=0;a<i.length;a++)i[a].checked?i[a].parentNode.parentNode.classList.add("radio--checked"):i[a].parentNode.parentNode.classList.remove("radio--checked")}return(i,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["radio__grp",t.orientation==="vertical"?"radio__vertical":"radio__horizontal"])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.list,r=>(o.openBlock(),o.createBlock(Hg,{key:r.key,ref_for:!0,ref_key:"boxes",ref:e,label:r.label,type:t.type,value:r.value,onClickBox:n},null,8,["label","type","value"]))),128))],2))}};var DS="";const xO={class:"search-panel"},OO=["placeholder"];var SO=Ze(o.defineComponent({__name:"SearchInput",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:""}},emits:["submit","clean","update:modelValue"],setup(t,{emit:e}){const n=t,i=o.ref("");function a(){e("submit",i.value),e("update:modelValue",i.value)}function r(){i.value="",e("clean"),e("update:modelValue",i.value)}return o.onMounted(()=>()=>i.value=n.modelValue||""),o.watch(n,()=>i.value=n.modelValue||""),(s,l)=>(o.openBlock(),o.createElementBlock("div",xO,[o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=M=>i.value=M),class:"form-input search-panel-input","data-e2e":"search-input",placeholder:n.placeholder,onKeyup:a},null,40,OO),[[o.vModelText,i.value]]),i.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:0,class:"search-panel-button","data-e2e":"search-submit",onClick:a},[o.createVNode(ye,{active:!0,"icon-name":"search",size:24})])),i.value?(o.openBlock(),o.createElementBlock("button",{key:1,class:"search-panel-button close","data-e2e":"search-close",onClick:r},[o.createVNode(ye,{class:"icon","icon-name":"close",size:24})])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-562faa14"]]),hS="";const EO=t=>(o.pushScopeId("data-v-0213b522"),t=t(),o.popScopeId(),t),bO={class:"stepper"},CO=EO(()=>o.createElementVNode("hr",{class:"solid"},null,-1));var wO=Ze(o.defineComponent({__name:"Stepper",props:{maxSteps:{type:Number,default:0},currentStep:{type:Number,default:0}},setup(t){const e=t;function n(){return Array.from(Array(e.maxSteps||0).keys())}return(i,a)=>(o.openBlock(),o.createElementBlock("div",bO,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n(),(r,s)=>(o.openBlock(),o.createElementBlock("div",{key:s,class:"step"},[o.createElementVNode("span",{class:o.normalizeClass(["step-number",{active:r===t.currentStep}])},o.toDisplayString(r+1),3),CO]))),128))]))}}),[["__scopeId","data-v-0213b522"]]);const kO=o.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 t=this.$refs.main,e=this.$refs[this.target];["right","left"].includes(this.placement)&&(e.style.top=-(((e==null?void 0:e.offsetHeight)-(t==null?void 0:t.offsetHeight))/2)+"px")}}}),_O=["placement","target","tooltipText","trigger"],vO=["id"],QO={class:"text"};function YO(t,e,n,i,a,r){return o.openBlock(),o.createElementBlock("div",{id:"main-contain",ref:"main",class:"dh-tooltip-container tooltip",placement:t.placement,target:t.target,tooltipText:t.tooltipText,trigger:t.trigger,onClick:e[0]||(e[0]=s=>t.trigger=="click"?t.showTooltip():null),onMouseover:e[1]||(e[1]=s=>t.tooltip())},[o.renderSlot(t.$slots,"default"),o.createElementVNode("div",{id:t.target,ref:t.target,class:o.normalizeClass(`tooltiptext ${t.show}`)},[o.createElementVNode("span",QO,o.toDisplayString(t.tooltipText),1)],10,vO)],40,_O)}var UO=Ze(kO,[["render",YO]]),AS="";const PO={class:"code"},RO=["autocomplete"],BO=["autocomplete"],ZO=["autocomplete"],VO=["autocomplete"],GO=["autocomplete"],WO=["autocomplete"];var $O=Ze(o.defineComponent({__name:"VerificationCode",props:{code:{type:String,required:!1,default:""},focusOnFirstInput:{type:Boolean,default:!0},focusOnFirstInputDelay:{type:Number,default:100},autoComplete:{type:String,default:"off"}},emits:["submit"],setup(t,{emit:e}){const n=t,i=o.ref(null),a=o.ref(null),r=o.ref(null),s=o.ref(null),l=o.ref(null),M=o.ref(null);async function u(f){var N,I,A,p,m;switch(f){case 1:break;case 2:(N=i.value)==null||N.focus();break;case 3:(I=a.value)==null||I.focus();break;case 4:(A=r.value)==null||A.focus();break;case 5:(p=s.value)==null||p.focus();break;case 6:(m=l.value)==null||m.focus();break}}async function c(f){var N,I,A,p,m;switch(f){case 1:(N=a.value)==null||N.focus();break;case 2:(I=r.value)==null||I.focus();break;case 3:(A=s.value)==null||A.focus();break;case 4:(p=l.value)==null||p.focus();break;case 5:(m=M.value)==null||m.focus();break}}async function g(f,N){const I=f.key;let A=!0;[{_index:1,nextInput:a},{_index:2,nextInput:r},{_index:3,nextInput:s},{_index:4,nextInput:l},{_index:5,nextInput:M}].forEach(({_index:p,nextInput:m})=>{N===p&&(m.value&&I.match(/^[0-9]+$/)&&m.value.focus({}),A=!1),f.preventDefault()}),I.match(/^[0-9]+$/)&&(f.target.value=I),A&&j()}async function d(f){var I;const N=((I=f.clipboardData)==null?void 0:I.getData("text/plain"))||"";y(N),j()}function y(f){const N=f.replace(/\D/g,"");if(N.length!==6)return;const[I,A,p,m,z,w]=N.split("");i.value&&(i.value.value=I),a.value&&(a.value.value=A),r.value&&(r.value.value=p),s.value&&(s.value.value=m),l.value&&(l.value.value=z),M.value&&(M.value.value=w)}async function j(){var N,I,A,p,m,z;const f=`${(N=i.value)==null?void 0:N.value}${(I=a.value)==null?void 0:I.value}${(A=r.value)==null?void 0:A.value}${(p=s.value)==null?void 0:p.value}${(m=l.value)==null?void 0:m.value}${(z=M.value)==null?void 0:z.value}`;e("submit",f)}function D(){setTimeout(()=>{var f;n.focusOnFirstInput&&((f=i.value)==null||f.focus())},n.focusOnFirstInputDelay)}return o.onMounted(()=>{n.code&&(y(n.code),j()),D()}),(f,N)=>(o.openBlock(),o.createElementBlock("div",PO,[o.createElementVNode("input",{ref_key:"txtInput1",ref:i,autocomplete:t.autoComplete,autofocus:"",class:"form-input input-1","data-e2e":"input-1",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:N[0]||(N[0]=I=>g(I,1)),onKeyup:[N[1]||(N[1]=o.withKeys(I=>u(1),["delete"])),N[2]||(N[2]=o.withKeys(I=>u(1),["left"])),N[3]||(N[3]=o.withKeys(I=>c(1),["right"]))],onPaste:d},null,40,RO),o.createElementVNode("input",{ref_key:"txtInput2",ref:a,autocomplete:t.autoComplete,class:"form-input","data-e2e":"input-2",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:N[4]||(N[4]=I=>g(I,2)),onKeyup:[N[5]||(N[5]=o.withKeys(I=>u(2),["delete"])),N[6]||(N[6]=o.withKeys(I=>u(2),["left"])),N[7]||(N[7]=o.withKeys(I=>c(2),["right"]))],onPaste:d},null,40,BO),o.createElementVNode("input",{ref_key:"txtInput3",ref:r,autocomplete:t.autoComplete,class:"form-input","data-e2e":"input-3",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:N[8]||(N[8]=I=>g(I,3)),onKeyup:[N[9]||(N[9]=o.withKeys(I=>u(3),["delete"])),N[10]||(N[10]=o.withKeys(I=>u(3),["left"])),N[11]||(N[11]=o.withKeys(I=>c(3),["right"]))],onPaste:d},null,40,ZO),o.createElementVNode("input",{ref_key:"txtInput4",ref:s,autocomplete:t.autoComplete,class:"form-input","data-e2e":"input-4",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:N[12]||(N[12]=I=>g(I,4)),onKeyup:[N[13]||(N[13]=o.withKeys(I=>u(4),["delete"])),N[14]||(N[14]=o.withKeys(I=>u(4),["left"])),N[15]||(N[15]=o.withKeys(I=>c(4),["right"]))],onPaste:d},null,40,VO),o.createElementVNode("input",{ref_key:"txtInput5",ref:l,autocomplete:t.autoComplete,class:"form-input","data-e2e":"input-5",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:N[16]||(N[16]=I=>g(I,5)),onKeyup:[N[17]||(N[17]=o.withKeys(I=>u(5),["delete"])),N[18]||(N[18]=o.withKeys(I=>u(5),["left"])),N[19]||(N[19]=o.withKeys(I=>c(5),["right"]))],onPaste:d},null,40,GO),o.createElementVNode("input",{ref_key:"txtInput6",ref:M,autocomplete:t.autoComplete,class:"form-input","data-e2e":"input-6",inputmode:"numeric",maxlength:"1",placeholder:"_",type:"text",onKeypress:N[20]||(N[20]=I=>g(I,6)),onKeyup:[N[21]||(N[21]=o.withKeys(I=>u(6),["delete"])),N[22]||(N[22]=o.withKeys(I=>u(6),["left"])),N[23]||(N[23]=o.withKeys(I=>c(6),["right"]))],onPaste:d},null,40,WO)]))}}),[["__scopeId","data-v-2ace876a"]]);De.DhAdvancedDatePicker=xL,De.DhAdvancedFilter=Gg,De.DhDatePicker=EL,De.DhDropdownMenu=_L,De.DhError=QL,De.DhExpansionPanel=BL,De.DhFileUpload=ox,De.DhIcon=ye,De.DhInputDropdown=cx,De.DhInputList=Kx,De.DhModal=aO,De.DhNotification=jO,De.DhNumberRange=Wg,De.DhPasswordField=mO,De.DhRadioBox=Hg,De.DhRadioBoxGroup=LO,De.DhSearchInput=SO,De.DhStepper=wO,De.DhSwitch=Bu,De.DhTooltip=UO,De.DhVerificationCode=$O,Object.defineProperties(De,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -9,18 +9,21 @@ declare const _default: import("vue").DefineComponent<{}, {
9
9
  new (): FileList;
10
10
  prototype: FileList;
11
11
  };
12
- required: true;
12
+ required: false;
13
+ default: undefined;
13
14
  };
14
15
  inline: {
15
16
  type: BooleanConstructor;
17
+ required: false;
16
18
  default: boolean;
17
19
  };
18
- errorOccured: {
20
+ errorOccurred: {
19
21
  type: ArrayConstructor;
20
22
  required: true;
21
23
  };
22
24
  errorMessage: {
23
25
  type: StringConstructor;
26
+ required: false;
24
27
  default: string;
25
28
  };
26
29
  fileSaved: {
@@ -33,22 +36,27 @@ declare const _default: import("vue").DefineComponent<{}, {
33
36
  };
34
37
  virusCheckText: {
35
38
  type: StringConstructor;
39
+ required: false;
36
40
  default: string;
37
41
  };
38
42
  virusCheckFailedText: {
39
43
  type: StringConstructor;
44
+ required: false;
40
45
  default: string;
41
46
  };
42
47
  virusDetectedText: {
43
48
  type: StringConstructor;
49
+ required: false;
44
50
  default: string;
45
51
  };
46
52
  deleteConfirmationText: {
47
53
  type: StringConstructor;
54
+ required: false;
48
55
  default: string;
49
56
  };
50
57
  zIndex: {
51
58
  type: NumberConstructor;
59
+ required: false;
52
60
  default: number;
53
61
  };
54
62
  }>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deskhero/dh_ui",
3
- "version": "1.36.2",
3
+ "version": "1.36.3",
4
4
  "files": [
5
5
  "dist"
6
6
  ],