@sysvale/cuida 3.0.0-beta.129 → 3.0.0-beta.130

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.
@@ -35,7 +35,7 @@
35
35
  * Released under the MIT License
36
36
  */class o9{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,i,s){const r=n.listeners[s],o=n.duration;r.forEach(c=>c({chart:e,initial:n.initial,numSteps:o,currentStep:Math.min(i-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=fm.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const r=i.items;let o=r.length-1,c=!1,d;for(;o>=0;--o)d=r[o],d._active?(d._total>i.duration&&(i.duration=d._total),d.tick(e),c=!0):(r[o]=r[r.length-1],r.pop());c&&(s.draw(),this._notify(s,i,e,"progress")),r.length||(i.running=!1,this._notify(s,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,s)=>Math.max(i,s._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 s=i.length-1;for(;s>=0;--s)i[s].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var ps=new o9;const Wm="transparent",l9={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const i=ym(t||Wm),s=i.valid&&ym(e||Wm);return s&&s.valid?s.mix(i,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class c9{constructor(e,n,i,s){const r=n[i];s=sl([e.to,s,r,e.from]);const o=sl([e.from,r,s]);this._active=!0,this._fn=e.fn||l9[e.type||typeof o],this._easing=el[e.easing]||el.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=o,this._to=s,this._promises=void 0}active(){return this._active}update(e,n,i){if(this._active){this._notify(!1);const s=this._target[this._prop],r=i-this._start,o=this._duration-r;this._start=i,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=sl([e.to,n,s,e.from]),this._from=sl([e.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,i=this._duration,s=this._prop,r=this._from,o=this._loop,c=this._to;let d;if(this._active=r!==c&&(o||n<i),!this._active){this._target[s]=c,this._notify(!0);return}if(n<0){this._target[s]=r;return}d=n/i%2,d=o&&d>1?2-d:d,d=this._easing(Math.min(1,Math.max(0,d))),this._target[s]=this._fn(r,c,d)}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 s=0;s<i.length;s++)i[s][n]()}}class Ym{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!Ue(e))return;const n=Object.keys(Wt.animation),i=this._properties;Object.getOwnPropertyNames(e).forEach(s=>{const r=e[s];if(!Ue(r))return;const o={};for(const c of n)o[c]=r[c];(Dt(r.properties)&&r.properties||[s]).forEach(c=>{(c===s||!i.has(c))&&i.set(c,o)})})}_animateOptions(e,n){const i=n.options,s=u9(e,i);if(!s)return[];const r=this._createAnimations(s,i);return i.$shared&&d9(e.options.$animations,i).then(()=>{e.options=i},()=>{}),r}_createAnimations(e,n){const i=this._properties,s=[],r=e.$animations||(e.$animations={}),o=Object.keys(n),c=Date.now();let d;for(d=o.length-1;d>=0;--d){const h=o[d];if(h.charAt(0)==="$")continue;if(h==="options"){s.push(...this._animateOptions(e,n));continue}const f=n[h];let m=r[h];const g=i.get(h);if(m)if(g&&m.active()){m.update(g,f,c);continue}else m.cancel();if(!g||!g.duration){e[h]=f;continue}r[h]=m=new c9(g,e,h,f),s.push(m)}return s}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const i=this._createAnimations(e,n);if(i.length)return ps.add(this._chart,i),!0}}function d9(t,e){const n=[],i=Object.keys(e);for(let s=0;s<i.length;s++){const r=t[i[s]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}function u9(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 jm(t,e){const n=t&&t.options||{},i=n.reverse,s=n.min===void 0?e:0,r=n.max===void 0?e:0;return{start:i?r:s,end:i?s:r}}function h9(t,e,n){if(n===!1)return!1;const i=jm(t,n),s=jm(e,n);return{top:s.end,right:i.end,bottom:s.start,left:i.start}}function f9(t){let e,n,i,s;return Ue(t)?(e=t.top,n=t.right,i=t.bottom,s=t.left):e=n=i=s=t,{top:e,right:n,bottom:i,left:s,disabled:t===!1}}function Um(t,e){const n=[],i=t._getSortedDatasetMetas(e);let s,r;for(s=0,r=i.length;s<r;++s)n.push(i[s].index);return n}function qm(t,e,n,i={}){const s=t.keys,r=i.mode==="single";let o,c,d,h;if(e!==null){for(o=0,c=s.length;o<c;++o){if(d=+s[o],d===n){if(i.all)continue;break}h=t.values[d],Ht(h)&&(r||e===0||Zi(e)===Zi(h))&&(e+=h)}return e}}function p9(t){const e=Object.keys(t),n=new Array(e.length);let i,s,r;for(i=0,s=e.length;i<s;++i)r=e[i],n[i]={x:r,y:t[r]};return n}function Gm(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function m9(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function g9(t){const{min:e,max:n,minDefined:i,maxDefined:s}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}function _9(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function Km(t,e,n,i){for(const s of e.getMatchingVisibleMetas(i).reverse()){const r=t[s.index];if(n&&r>0||!n&&r<0)return s.index}return null}function Zm(t,e){const{chart:n,_cachedMeta:i}=t,s=n._stacks||(n._stacks={}),{iScale:r,vScale:o,index:c}=i,d=r.axis,h=o.axis,f=m9(r,o,i),m=e.length;let g;for(let v=0;v<m;++v){const b=e[v],{[d]:x,[h]:k}=b,O=b._stacks||(b._stacks={});g=O[h]=_9(s,f,x),g[c]=k,g._top=Km(g,o,!0,i.type),g._bottom=Km(g,o,!1,i.type);const T=g._visualValues||(g._visualValues={});T[c]=k}}function W1(t,e){const n=t.scales;return Object.keys(n).filter(i=>n[i].axis===e).shift()}function v9(t,e){return js(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function y9(t,e,n){return js(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function rl(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(!!i){e=e||t._parsed;for(const s of e){const r=s._stacks;if(!r||r[i]===void 0||r[i][n]===void 0)return;delete r[i][n],r[i]._visualValues!==void 0&&r[i]._visualValues[n]!==void 0&&delete r[i]._visualValues[n]}}}const Y1=t=>t==="reset"||t==="none",Xm=(t,e)=>e?t:Object.assign({},t),b9=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Um(n,!0),values:null};class Ii{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.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Gm(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&rl(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,i=this.getDataset(),s=(m,g,v,b)=>m==="x"?g:m==="r"?b:v,r=n.xAxisID=$e(i.xAxisID,W1(e,"x")),o=n.yAxisID=$e(i.yAxisID,W1(e,"y")),c=n.rAxisID=$e(i.rAxisID,W1(e,"r")),d=n.indexAxis,h=n.iAxisID=s(d,r,o,c),f=n.vAxisID=s(d,o,r,c);n.xScale=this.getScaleForId(r),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(c),n.iScale=this.getScaleForId(h),n.vScale=this.getScaleForId(f)}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&&um(this._data,this),e._stacked&&rl(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),i=this._data;if(Ue(n))this._data=p9(n);else if(i!==n){if(i){um(i,this);const s=this._cachedMeta;rl(s),s._parsed=[]}n&&Object.isExtensible(n)&&rw(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 s=!1;this._dataCheck();const r=n._stacked;n._stacked=Gm(n.vScale,n),n.stack!==i.stack&&(s=!0,rl(n),n.stack=i.stack),this._resyncElements(e),(s||r!==n._stacked)&&Zm(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:s}=this,{iScale:r,_stacked:o}=i,c=r.axis;let d=e===0&&n===s.length?!0:i._sorted,h=e>0&&i._parsed[e-1],f,m,g;if(this._parsing===!1)i._parsed=s,i._sorted=!0,g=s;else{Dt(s[e])?g=this.parseArrayData(i,s,e,n):Ue(s[e])?g=this.parseObjectData(i,s,e,n):g=this.parsePrimitiveData(i,s,e,n);const v=()=>m[c]===null||h&&m[c]<h[c];for(f=0;f<n;++f)i._parsed[f+e]=m=g[f],d&&(v()&&(d=!1),h=m);i._sorted=d}o&&Zm(this,g)}parsePrimitiveData(e,n,i,s){const{iScale:r,vScale:o}=e,c=r.axis,d=o.axis,h=r.getLabels(),f=r===o,m=new Array(s);let g,v,b;for(g=0,v=s;g<v;++g)b=g+i,m[g]={[c]:f||r.parse(h[b],b),[d]:o.parse(n[b],b)};return m}parseArrayData(e,n,i,s){const{xScale:r,yScale:o}=e,c=new Array(s);let d,h,f,m;for(d=0,h=s;d<h;++d)f=d+i,m=n[f],c[d]={x:r.parse(m[0],f),y:o.parse(m[1],f)};return c}parseObjectData(e,n,i,s){const{xScale:r,yScale:o}=e,{xAxisKey:c="x",yAxisKey:d="y"}=this._parsing,h=new Array(s);let f,m,g,v;for(f=0,m=s;f<m;++f)g=f+i,v=n[g],h[f]={x:r.parse(Hs(v,c),g),y:o.parse(Hs(v,d),g)};return h}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,i){const s=this.chart,r=this._cachedMeta,o=n[e.axis],c={keys:Um(s,!0),values:n._stacks[e.axis]._visualValues};return qm(c,o,r.index,{mode:i})}updateRangeFromParsed(e,n,i,s){const r=i[n.axis];let o=r===null?NaN:r;const c=s&&i._stacks[n.axis];s&&c&&(s.values=c,o=qm(s,r,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,n){const i=this._cachedMeta,s=i._parsed,r=i._sorted&&e===i.iScale,o=s.length,c=this._getOtherScale(e),d=b9(n,i,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:f,max:m}=g9(c);let g,v;function b(){v=s[g];const x=v[c.axis];return!Ht(v[e.axis])||f>x||m<x}for(g=0;g<o&&!(!b()&&(this.updateRangeFromParsed(h,e,v,d),r));++g);if(r){for(g=o-1;g>=0;--g)if(!b()){this.updateRangeFromParsed(h,e,v,d);break}}return h}getAllParsedValues(e){const n=this._cachedMeta._parsed,i=[];let s,r,o;for(s=0,r=n.length;s<r;++s)o=n[s][e.axis],Ht(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,i=n.iScale,s=n.vScale,r=this.getParsed(e);return{label:i?""+i.getLabelForValue(r[i.axis]):"",value:s?""+s.getLabelForValue(r[s.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=f9($e(this.options.clip,h9(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,i=this._cachedMeta,s=i.data||[],r=n.chartArea,o=[],c=this._drawStart||0,d=this._drawCount||s.length-c,h=this.options.drawActiveElementsOnTop;let f;for(i.dataset&&i.dataset.draw(e,r,c,d),f=c;f<c+d;++f){const m=s[f];m.hidden||(m.active&&h?o.push(m):m.draw(e,r))}for(f=0;f<o.length;++f)o[f].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 s=this.getDataset();let r;if(e>=0&&e<this._cachedMeta.data.length){const o=this._cachedMeta.data[e];r=o.$context||(o.$context=y9(this.getContext(),e,o)),r.parsed=this.getParsed(e),r.raw=s.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=v9(this.chart.getContext(),this.index)),r.dataset=s,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 s=n==="active",r=this._cachedDataOpts,o=e+"-"+n,c=r[o],d=this.enableOptionSharing&&Xo(i);if(c)return Xm(c,d);const h=this.chart.config,f=h.datasetElementScopeKeys(this._type,e),m=s?[`${e}Hover`,"hover",e,""]:[e,""],g=h.getOptionScopes(this.getDataset(),f),v=Object.keys(Wt.elements[e]),b=()=>this.getContext(i,s,n),x=h.resolveNamedOptions(g,v,b,m);return x.$shared&&(x.$shared=d,r[o]=Object.freeze(Xm(x,d))),x}_resolveAnimations(e,n,i){const s=this.chart,r=this._cachedDataOpts,o=`animation-${n}`,c=r[o];if(c)return c;let d;if(s.options.animation!==!1){const f=this.chart.config,m=f.datasetAnimationScopeKeys(this._type,n),g=f.getOptionScopes(this.getDataset(),m);d=f.createResolver(g,this.getContext(e,i,n))}const h=new Ym(s,d&&d.animations);return d&&d._cacheable&&(r[o]=Object.freeze(h)),h}getSharedOptions(e){if(!!e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||Y1(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const i=this.resolveDataElementOptions(e,n),s=this._sharedOptions,r=this.getSharedOptions(i),o=this.includeOptions(n,r)||r!==s;return this.updateSharedOptions(r,n,i),{sharedOptions:r,includeOptions:o}}updateElement(e,n,i,s){Y1(s)?Object.assign(e,i):this._resolveAnimations(n,s).update(e,i)}updateSharedOptions(e,n,i){e&&!Y1(n)&&this._resolveAnimations(void 0,n).update(e,i)}_setStyle(e,n,i,s){e.active=s;const r=this.getStyle(n,s);this._resolveAnimations(n,i,s).update(e,{options:!s&&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[c,d,h]of this._syncList)this[c](d,h);this._syncList=[];const s=i.length,r=n.length,o=Math.min(r,s);o&&this.parse(0,o),r>s?this._insertElements(s,r-s,e):r<s&&this._removeElements(r,s-r)}_insertElements(e,n,i=!0){const s=this._cachedMeta,r=s.data,o=e+n;let c;const d=h=>{for(h.length+=n,c=h.length-1;c>=o;c--)h[c]=h[c-n]};for(d(r),c=e;c<o;++c)r[c]=new this.dataElementType;this._parsing&&d(s._parsed),this.parse(e,n),i&&this.updateElements(r,e,n,"reset")}updateElements(e,n,i,s){}_removeElements(e,n){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(e,n);i._stacked&&rl(i,s)}i.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,i,s]=e;this[n](i,s)}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])}}re(Ii,"defaults",{}),re(Ii,"datasetElementType",null),re(Ii,"dataElementType",null);function w9(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let s=0,r=n.length;s<r;s++)i=i.concat(n[s].controller.getAllParsedValues(t));t._cache.$bar=hm(i.sort((s,r)=>s-r))}return t._cache.$bar}function k9(t){const e=t.iScale,n=w9(e,t.type);let i=e._length,s,r,o,c;const d=()=>{o===32767||o===-32768||(Xo(c)&&(i=Math.min(i,Math.abs(o-c)||i)),c=o)};for(s=0,r=n.length;s<r;++s)o=e.getPixelForValue(n[s]),d();for(c=void 0,s=0,r=e.ticks.length;s<r;++s)o=e.getPixelForTick(s),d();return i}function x9(t,e,n,i){const s=n.barThickness;let r,o;return Xe(s)?(r=e.min*n.categoryPercentage,o=n.barPercentage):(r=s*i,o=1),{chunk:r/i,ratio:o,start:e.pixels[t]-r/2}}function C9(t,e,n,i){const s=e.pixels,r=s[t];let o=t>0?s[t-1]:null,c=t<s.length-1?s[t+1]:null;const d=n.categoryPercentage;o===null&&(o=r-(c===null?e.end-e.start:c-r)),c===null&&(c=r+r-o);const h=r-(r-Math.min(o,c))/2*d;return{chunk:Math.abs(c-o)/2*d/i,ratio:n.barPercentage,start:h}}function S9(t,e,n,i){const s=n.parse(t[0],i),r=n.parse(t[1],i),o=Math.min(s,r),c=Math.max(s,r);let d=o,h=c;Math.abs(o)>Math.abs(c)&&(d=c,h=o),e[n.axis]=h,e._custom={barStart:d,barEnd:h,start:s,end:r,min:o,max:c}}function Jm(t,e,n,i){return Dt(t)?S9(t,e,n,i):e[n.axis]=n.parse(t,i),e}function Qm(t,e,n,i){const s=t.iScale,r=t.vScale,o=s.getLabels(),c=s===r,d=[];let h,f,m,g;for(h=n,f=n+i;h<f;++h)g=e[h],m={},m[s.axis]=c||s.parse(o[h],h),d.push(Jm(g,m,r,h));return d}function j1(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function M9(t,e,n){return t!==0?Zi(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}function O9(t){let e,n,i,s,r;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(s="end",r="start"):(s="start",r="end"),{start:n,end:i,reverse:e,top:s,bottom:r}}function D9(t,e,n,i){let s=e.borderSkipped;const r={};if(!s){t.borderSkipped=r;return}if(s===!0){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:c,reverse:d,top:h,bottom:f}=O9(t);s==="middle"&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?s=h:(n._bottom||0)===i?s=f:(r[e2(f,o,c,d)]=!0,s=h)),r[e2(s,o,c,d)]=!0,t.borderSkipped=r}function e2(t,e,n,i){return i?(t=E9(t,e,n),t=t2(t,n,e)):t=t2(t,e,n),t}function E9(t,e,n){return t===e?n:t===n?e:t}function t2(t,e,n){return t==="start"?e:t==="end"?n:t}function T9(t,{inflateAmount:e},n){t.inflateAmount=e==="auto"?n===1?.33:0:e}class al extends Ii{parsePrimitiveData(e,n,i,s){return Qm(e,n,i,s)}parseArrayData(e,n,i,s){return Qm(e,n,i,s)}parseObjectData(e,n,i,s){const{iScale:r,vScale:o}=e,{xAxisKey:c="x",yAxisKey:d="y"}=this._parsing,h=r.axis==="x"?c:d,f=o.axis==="x"?c:d,m=[];let g,v,b,x;for(g=i,v=i+s;g<v;++g)x=n[g],b={},b[r.axis]=r.parse(Hs(x,h),g),m.push(Jm(Hs(x,f),b,o,g));return m}updateRangeFromParsed(e,n,i,s){super.updateRangeFromParsed(e,n,i,s);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:s}=n,r=this.getParsed(e),o=r._custom,c=j1(o)?"["+o.start+", "+o.end+"]":""+s.getLabelForValue(r[s.axis]);return{label:""+i.getLabelForValue(r[i.axis]),value:c}}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,s){const r=s==="reset",{index:o,_cachedMeta:{vScale:c}}=this,d=c.getBasePixel(),h=c.isHorizontal(),f=this._getRuler(),{sharedOptions:m,includeOptions:g}=this._getSharedOptions(n,s);for(let v=n;v<n+i;v++){const b=this.getParsed(v),x=r||Xe(b[c.axis])?{base:d,head:d}:this._calculateBarValuePixels(v),k=this._calculateBarIndexPixels(v,f),O=(b._stacks||{})[c.axis],T={horizontal:h,base:x.base,enableBorderRadius:!O||j1(b._custom)||o===O._top||o===O._bottom,x:h?x.head:k.center,y:h?k.center:x.head,height:h?k.size:Math.abs(x.size),width:h?Math.abs(x.size):k.size};g&&(T.options=m||this.resolveDataElementOptions(v,e[v].active?"active":s));const N=T.options||e[v].options;D9(T,N,O,o),T9(T,N,f.ratio),this.updateElement(e[v],v,T,s)}}_getStacks(e,n){const{iScale:i}=this._cachedMeta,s=i.getMatchingVisibleMetas(this._type).filter(d=>d.controller.options.grouped),r=i.options.stacked,o=[],c=d=>{const h=d.controller.getParsed(n),f=h&&h[d.vScale.axis];if(Xe(f)||isNaN(f))return!0};for(const d of s)if(!(n!==void 0&&c(d))&&((r===!1||o.indexOf(d.stack)===-1||r===void 0&&d.stack===void 0)&&o.push(d.stack),d.index===e))break;return o.length||o.push(void 0),o}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,i){const s=this._getStacks(e,i),r=n!==void 0?s.indexOf(n):-1;return r===-1?s.length-1:r}_getRuler(){const e=this.options,n=this._cachedMeta,i=n.iScale,s=[];let r,o;for(r=0,o=n.data.length;r<o;++r)s.push(i.getPixelForValue(this.getParsed(r)[i.axis],r));const c=e.barThickness;return{min:c||k9(n),pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:e.grouped,ratio:c?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:n,_stacked:i,index:s},options:{base:r,minBarLength:o}}=this,c=r||0,d=this.getParsed(e),h=d._custom,f=j1(h);let m=d[n.axis],g=0,v=i?this.applyStack(n,d,i):m,b,x;v!==m&&(g=v-m,v=m),f&&(m=h.barStart,v=h.barEnd-h.barStart,m!==0&&Zi(m)!==Zi(h.barEnd)&&(g=0),g+=m);const k=!Xe(r)&&!f?r:g;let O=n.getPixelForValue(k);if(this.chart.getDataVisibility(e)?b=n.getPixelForValue(g+v):b=O,x=b-O,Math.abs(x)<o){x=M9(x,n,c)*o,m===c&&(O-=x/2);const T=n.getPixelForDecimal(0),N=n.getPixelForDecimal(1),C=Math.min(T,N),B=Math.max(T,N);O=Math.max(Math.min(O,B),C),b=O+x,i&&!f&&(d._stacks[n.axis]._visualValues[s]=n.getValueForPixel(b)-n.getValueForPixel(O))}if(O===n.getPixelForValue(c)){const T=Zi(x)*n.getLineWidthForValue(c)/2;O+=T,x-=T}return{size:x,base:O,head:b,center:b+x/2}}_calculateBarIndexPixels(e,n){const i=n.scale,s=this.options,r=s.skipNull,o=$e(s.maxBarThickness,1/0);let c,d;if(n.grouped){const h=r?this._getStackCount(e):n.stackCount,f=s.barThickness==="flex"?C9(e,n,s,h):x9(e,n,s,h),m=this._getStackIndex(this.index,this._cachedMeta.stack,r?e:void 0);c=f.start+f.chunk*m+f.chunk/2,d=Math.min(o,f.chunk*f.ratio)}else c=i.getPixelForValue(this.getParsed(e)[i.axis],e),d=Math.min(o,n.min*n.ratio);return{base:c-d/2,head:c+d/2,center:c,size:d}}draw(){const e=this._cachedMeta,n=e.vScale,i=e.data,s=i.length;let r=0;for(;r<s;++r)this.getParsed(r)[n.axis]!==null&&i[r].draw(this._ctx)}}re(al,"id","bar"),re(al,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),re(al,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class qc extends Ii{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,n,i,s){const r=super.parsePrimitiveData(e,n,i,s);for(let o=0;o<r.length;o++)r[o]._custom=this.resolveDataElementOptions(o+i).radius;return r}parseArrayData(e,n,i,s){const r=super.parseArrayData(e,n,i,s);for(let o=0;o<r.length;o++){const c=n[i+o];r[o]._custom=$e(c[2],this.resolveDataElementOptions(o+i).radius)}return r}parseObjectData(e,n,i,s){const r=super.parseObjectData(e,n,i,s);for(let o=0;o<r.length;o++){const c=n[i+o];r[o]._custom=$e(c&&c.r&&+c.r,this.resolveDataElementOptions(o+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,i=this.chart.data.labels||[],{xScale:s,yScale:r}=n,o=this.getParsed(e),c=s.getLabelForValue(o.x),d=r.getLabelForValue(o.y),h=o._custom;return{label:i[e]||"",value:"("+c+", "+d+(h?", "+h:"")+")"}}update(e){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,e)}updateElements(e,n,i,s){const r=s==="reset",{iScale:o,vScale:c}=this._cachedMeta,{sharedOptions:d,includeOptions:h}=this._getSharedOptions(n,s),f=o.axis,m=c.axis;for(let g=n;g<n+i;g++){const v=e[g],b=!r&&this.getParsed(g),x={},k=x[f]=r?o.getPixelForDecimal(.5):o.getPixelForValue(b[f]),O=x[m]=r?c.getBasePixel():c.getPixelForValue(b[m]);x.skip=isNaN(k)||isNaN(O),h&&(x.options=d||this.resolveDataElementOptions(g,v.active?"active":s),r&&(x.options.radius=0)),this.updateElement(v,g,x,s)}}resolveDataElementOptions(e,n){const i=this.getParsed(e);let s=super.resolveDataElementOptions(e,n);s.$shared&&(s=Object.assign({},s,{$shared:!1}));const r=s.radius;return n!=="active"&&(s.radius=0),s.radius+=$e(i&&i._custom,r),s}}re(qc,"id","bubble"),re(qc,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),re(qc,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function I9(t,e,n){let i=1,s=1,r=0,o=0;if(e<Tt){const c=t,d=c+e,h=Math.cos(c),f=Math.sin(c),m=Math.cos(d),g=Math.sin(d),v=(N,C,B)=>Qo(N,c,d,!0)?1:Math.max(C,C*n,B,B*n),b=(N,C,B)=>Qo(N,c,d,!0)?-1:Math.min(C,C*n,B,B*n),x=v(0,h,m),k=v(Ut,f,g),O=b(Et,h,m),T=b(Et+Ut,f,g);i=(x-O)/2,s=(k-T)/2,r=-(x+O)/2,o=-(k+T)/2}return{ratioX:i,ratioY:s,offsetX:r,offsetY:o}}class Tr extends Ii{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,s=this._cachedMeta;if(this._parsing===!1)s._parsed=i;else{let r=d=>+i[d];if(Ue(i[e])){const{key:d="value"}=this._parsing;r=h=>+Hs(i[h],d)}let o,c;for(o=e,c=e+n;o<c;++o)s._parsed[o]=r(o)}}_getRotation(){return Ti(this.options.rotation-90)}_getCircumference(){return Ti(this.options.circumference)}_getRotationExtents(){let e=Tt,n=-Tt;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const s=this.chart.getDatasetMeta(i).controller,r=s._getRotation(),o=s._getCircumference();e=Math.min(e,r),n=Math.max(n,r+o)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:i}=n,s=this._cachedMeta,r=s.data,o=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,c=Math.max((Math.min(i.width,i.height)-o)/2,0),d=Math.min(j8(this.options.cutout,c),1),h=this._getRingWeight(this.index),{circumference:f,rotation:m}=this._getRotationExtents(),{ratioX:g,ratioY:v,offsetX:b,offsetY:x}=I9(m,f,d),k=(i.width-o)/g,O=(i.height-o)/v,T=Math.max(Math.min(k,O)/2,0),N=tm(this.options.radius,T),C=Math.max(N*d,0),B=(N-C)/this._getVisibleDatasetWeightTotal();this.offsetX=b*N,this.offsetY=x*N,s.total=this.calculateTotal(),this.outerRadius=N-B*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-B*h,0),this.updateElements(r,0,r.length,e)}_circumference(e,n){const i=this.options,s=this._cachedMeta,r=this._getCircumference();return n&&i.animation.animateRotate||!this.chart.getDataVisibility(e)||s._parsed[e]===null||s.data[e].hidden?0:this.calculateCircumference(s._parsed[e]*r/Tt)}updateElements(e,n,i,s){const r=s==="reset",o=this.chart,c=o.chartArea,h=o.options.animation,f=(c.left+c.right)/2,m=(c.top+c.bottom)/2,g=r&&h.animateScale,v=g?0:this.innerRadius,b=g?0:this.outerRadius,{sharedOptions:x,includeOptions:k}=this._getSharedOptions(n,s);let O=this._getRotation(),T;for(T=0;T<n;++T)O+=this._circumference(T,r);for(T=n;T<n+i;++T){const N=this._circumference(T,r),C=e[T],B={x:f+this.offsetX,y:m+this.offsetY,startAngle:O,endAngle:O+N,circumference:N,outerRadius:b,innerRadius:v};k&&(B.options=x||this.resolveDataElementOptions(T,C.active?"active":s)),O+=N,this.updateElement(C,T,B,s)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let i=0,s;for(s=0;s<n.length;s++){const r=e._parsed[s];r!==null&&!isNaN(r)&&this.chart.getDataVisibility(s)&&!n[s].hidden&&(i+=Math.abs(r))}return i}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?Tt*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart,s=i.data.labels||[],r=tl(n._parsed[e],i.options.locale);return{label:s[e]||"",value:r}}getMaxBorderWidth(e){let n=0;const i=this.chart;let s,r,o,c,d;if(!e){for(s=0,r=i.data.datasets.length;s<r;++s)if(i.isDatasetVisible(s)){o=i.getDatasetMeta(s),e=o.data,c=o.controller;break}}if(!e)return 0;for(s=0,r=e.length;s<r;++s)d=c.resolveDataElementOptions(s),d.borderAlign!=="inner"&&(n=Math.max(n,d.borderWidth||0,d.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let i=0,s=e.length;i<s;++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($e(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}re(Tr,"id","doughnut"),re(Tr,"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"}),re(Tr,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),re(Tr,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:s}}=e.legend.options;return n.labels.map((r,o)=>{const d=e.getDatasetMeta(0).controller.getStyle(o);return{text:r,fillStyle:d.backgroundColor,strokeStyle:d.borderColor,fontColor:s,lineWidth:d.borderWidth,pointStyle:i,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}}});class ol extends Ii{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:i,data:s=[],_dataset:r}=n,o=this.chart._animationsDisabled;let{start:c,count:d}=mm(n,s,o);this._drawStart=c,this._drawCount=d,gm(n)&&(c=0,d=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!r._decimated,i.points=s;const h=this.resolveDatasetElementOptions(e);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:h},e),this.updateElements(s,c,d,e)}updateElements(e,n,i,s){const r=s==="reset",{iScale:o,vScale:c,_stacked:d,_dataset:h}=this._cachedMeta,{sharedOptions:f,includeOptions:m}=this._getSharedOptions(n,s),g=o.axis,v=c.axis,{spanGaps:b,segment:x}=this.options,k=ka(b)?b:Number.POSITIVE_INFINITY,O=this.chart._animationsDisabled||r||s==="none",T=n+i,N=e.length;let C=n>0&&this.getParsed(n-1);for(let B=0;B<N;++B){const $=e[B],L=O?$:{};if(B<n||B>=T){L.skip=!0;continue}const F=this.getParsed(B),q=Xe(F[v]),ee=L[g]=o.getPixelForValue(F[g],B),ne=L[v]=r||q?c.getBasePixel():c.getPixelForValue(d?this.applyStack(c,F,d):F[v],B);L.skip=isNaN(ee)||isNaN(ne)||q,L.stop=B>0&&Math.abs(F[g]-C[g])>k,x&&(L.parsed=F,L.raw=h.data[B]),m&&(L.options=f||this.resolveDataElementOptions(B,$.active?"active":s)),O||this.updateElement($,B,L,s),C=F}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,i=n.options&&n.options.borderWidth||0,s=e.data||[];if(!s.length)return i;const r=s[0].size(this.resolveDataElementOptions(0)),o=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,r,o)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}re(ol,"id","line"),re(ol,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),re(ol,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Ma extends Ii{constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart,s=i.data.labels||[],r=tl(n._parsed[e].r,i.options.locale);return{label:s[e]||"",value:r}}parseObjectData(e,n,i,s){return Im.bind(this)(e,n,i,s)}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,s)=>{const r=this.getParsed(s).r;!isNaN(r)&&this.chart.getDataVisibility(s)&&(r<n.min&&(n.min=r),r>n.max&&(n.max=r))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,i=e.options,s=Math.min(n.right-n.left,n.bottom-n.top),r=Math.max(s/2,0),o=Math.max(i.cutoutPercentage?r/100*i.cutoutPercentage:1,0),c=(r-o)/e.getVisibleDatasetCount();this.outerRadius=r-c*this.index,this.innerRadius=this.outerRadius-c}updateElements(e,n,i,s){const r=s==="reset",o=this.chart,d=o.options.animation,h=this._cachedMeta.rScale,f=h.xCenter,m=h.yCenter,g=h.getIndexAngle(0)-.5*Et;let v=g,b;const x=360/this.countVisibleElements();for(b=0;b<n;++b)v+=this._computeAngle(b,s,x);for(b=n;b<n+i;b++){const k=e[b];let O=v,T=v+this._computeAngle(b,s,x),N=o.getDataVisibility(b)?h.getDistanceFromCenterForValue(this.getParsed(b).r):0;v=T,r&&(d.animateScale&&(N=0),d.animateRotate&&(O=T=g));const C={x:f,y:m,innerRadius:0,outerRadius:N,startAngle:O,endAngle:T,options:this.resolveDataElementOptions(b,k.active?"active":s)};this.updateElement(k,b,C,s)}}countVisibleElements(){const e=this._cachedMeta;let n=0;return e.data.forEach((i,s)=>{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&n++}),n}_computeAngle(e,n,i){return this.chart.getDataVisibility(e)?Ti(this.resolveDataElementOptions(e,n).angle||i):0}}re(Ma,"id","polarArea"),re(Ma,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),re(Ma,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:s}}=e.legend.options;return n.labels.map((r,o)=>{const d=e.getDatasetMeta(0).controller.getStyle(o);return{text:r,fillStyle:d.backgroundColor,strokeStyle:d.borderColor,fontColor:s,lineWidth:d.borderWidth,pointStyle:i,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class Gc extends Tr{}re(Gc,"id","pie"),re(Gc,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Kc extends Ii{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,s){return Im.bind(this)(e,n,i,s)}update(e){const n=this._cachedMeta,i=n.dataset,s=n.data||[],r=n.iScale.getLabels();if(i.points=s,e!=="resize"){const o=this.resolveDatasetElementOptions(e);this.options.showLine||(o.borderWidth=0);const c={_loop:!0,_fullLoop:r.length===s.length,options:o};this.updateElement(i,void 0,c,e)}this.updateElements(s,0,s.length,e)}updateElements(e,n,i,s){const r=this._cachedMeta.rScale,o=s==="reset";for(let c=n;c<n+i;c++){const d=e[c],h=this.resolveDataElementOptions(c,d.active?"active":s),f=r.getPointPositionForValue(c,this.getParsed(c).r),m=o?r.xCenter:f.x,g=o?r.yCenter:f.y,v={x:m,y:g,angle:f.angle,skip:isNaN(m)||isNaN(g),options:h};this.updateElement(d,c,v,s)}}}re(Kc,"id","radar"),re(Kc,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),re(Kc,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class Zc extends Ii{getLabelAndValue(e){const n=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:r}=n,o=this.getParsed(e),c=s.getLabelForValue(o.x),d=r.getLabelForValue(o.y);return{label:i[e]||"",value:"("+c+", "+d+")"}}update(e){const n=this._cachedMeta,{data:i=[]}=n,s=this.chart._animationsDisabled;let{start:r,count:o}=mm(n,i,s);if(this._drawStart=r,this._drawCount=o,gm(n)&&(r=0,o=i.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:c,_dataset:d}=n;c._chart=this.chart,c._datasetIndex=this.index,c._decimated=!!d._decimated,c.points=i;const h=this.resolveDatasetElementOptions(e);h.segment=this.options.segment,this.updateElement(c,void 0,{animated:!s,options:h},e)}else this.datasetElementType&&(delete n.dataset,this.datasetElementType=!1);this.updateElements(i,r,o,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,n,i,s){const r=s==="reset",{iScale:o,vScale:c,_stacked:d,_dataset:h}=this._cachedMeta,f=this.resolveDataElementOptions(n,s),m=this.getSharedOptions(f),g=this.includeOptions(s,m),v=o.axis,b=c.axis,{spanGaps:x,segment:k}=this.options,O=ka(x)?x:Number.POSITIVE_INFINITY,T=this.chart._animationsDisabled||r||s==="none";let N=n>0&&this.getParsed(n-1);for(let C=n;C<n+i;++C){const B=e[C],$=this.getParsed(C),L=T?B:{},F=Xe($[b]),q=L[v]=o.getPixelForValue($[v],C),ee=L[b]=r||F?c.getBasePixel():c.getPixelForValue(d?this.applyStack(c,$,d):$[b],C);L.skip=isNaN(q)||isNaN(ee)||F,L.stop=C>0&&Math.abs($[v]-N[v])>O,k&&(L.parsed=$,L.raw=h.data[C]),g&&(L.options=m||this.resolveDataElementOptions(C,B.active?"active":s)),T||this.updateElement(B,C,L,s),N=$}this.updateSharedOptions(m,s,f)}getMaxOverflow(){const e=this._cachedMeta,n=e.data||[];if(!this.options.showLine){let c=0;for(let d=n.length-1;d>=0;--d)c=Math.max(c,n[d].size(this.resolveDataElementOptions(d))/2);return c>0&&c}const i=e.dataset,s=i.options&&i.options.borderWidth||0;if(!n.length)return s;const r=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(s,r,o)/2}}re(Zc,"id","scatter"),re(Zc,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),re(Zc,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var B9=Object.freeze({__proto__:null,BarController:al,BubbleController:qc,DoughnutController:Tr,LineController:ol,PieController:Gc,PolarAreaController:Ma,RadarController:Kc,ScatterController:Zc});function Ir(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class U1{constructor(e){re(this,"options");this.options=e||{}}static override(e){Object.assign(U1.prototype,e)}init(){}formats(){return Ir()}parse(){return Ir()}format(){return Ir()}add(){return Ir()}diff(){return Ir()}startOf(){return Ir()}endOf(){return Ir()}}var A9={_date:U1};function V9(t,e,n,i){const{controller:s,data:r,_sorted:o}=t,c=s._cachedMeta.iScale;if(c&&e===c.axis&&e!=="r"&&o&&r.length){const d=c._reversePixels?iw:hs;if(i){if(s._sharedOptions){const h=r[0],f=typeof h.getRange=="function"&&h.getRange(e);if(f){const m=d(r,e,n-f),g=d(r,e,n+f);return{lo:m.lo,hi:g.hi}}}}else return d(r,e,n)}return{lo:0,hi:r.length-1}}function ll(t,e,n,i,s){const r=t.getSortedVisibleDatasetMetas(),o=n[e];for(let c=0,d=r.length;c<d;++c){const{index:h,data:f}=r[c],{lo:m,hi:g}=V9(r[c],e,o,s);for(let v=m;v<=g;++v){const b=f[v];b.skip||i(b,h,v)}}}function $9(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(i,s){const r=e?Math.abs(i.x-s.x):0,o=n?Math.abs(i.y-s.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}function q1(t,e,n,i,s){const r=[];return!s&&!t.isPointInArea(e)||ll(t,n,e,function(c,d,h){!s&&!fs(c,t.chartArea,0)||c.inRange(e.x,e.y,i)&&r.push({element:c,datasetIndex:d,index:h})},!0),r}function N9(t,e,n,i){let s=[];function r(o,c,d){const{startAngle:h,endAngle:f}=o.getProps(["startAngle","endAngle"],i),{angle:m}=cm(o,{x:e.x,y:e.y});Qo(m,h,f)&&s.push({element:o,datasetIndex:c,index:d})}return ll(t,n,e,r),s}function z9(t,e,n,i,s,r){let o=[];const c=$9(n);let d=Number.POSITIVE_INFINITY;function h(f,m,g){const v=f.inRange(e.x,e.y,s);if(i&&!v)return;const b=f.getCenterPoint(s);if(!(!!r||t.isPointInArea(b))&&!v)return;const k=c(e,b);k<d?(o=[{element:f,datasetIndex:m,index:g}],d=k):k===d&&o.push({element:f,datasetIndex:m,index:g})}return ll(t,n,e,h),o}function G1(t,e,n,i,s,r){return!r&&!t.isPointInArea(e)?[]:n==="r"&&!i?N9(t,e,n,s):z9(t,e,n,i,s,r)}function n2(t,e,n,i,s){const r=[],o=n==="x"?"inXRange":"inYRange";let c=!1;return ll(t,n,e,(d,h,f)=>{d[o](e[n],s)&&(r.push({element:d,datasetIndex:h,index:f}),c=c||d.inRange(e.x,e.y,s))}),i&&!c?[]:r}var P9={evaluateInteractionItems:ll,modes:{index(t,e,n,i){const s=Dr(e,t),r=n.axis||"x",o=n.includeInvisible||!1,c=n.intersect?q1(t,s,r,i,o):G1(t,s,r,!1,i,o),d=[];return c.length?(t.getSortedVisibleDatasetMetas().forEach(h=>{const f=c[0].index,m=h.data[f];m&&!m.skip&&d.push({element:m,datasetIndex:h.index,index:f})}),d):[]},dataset(t,e,n,i){const s=Dr(e,t),r=n.axis||"xy",o=n.includeInvisible||!1;let c=n.intersect?q1(t,s,r,i,o):G1(t,s,r,!1,i,o);if(c.length>0){const d=c[0].datasetIndex,h=t.getDatasetMeta(d).data;c=[];for(let f=0;f<h.length;++f)c.push({element:h[f],datasetIndex:d,index:f})}return c},point(t,e,n,i){const s=Dr(e,t),r=n.axis||"xy",o=n.includeInvisible||!1;return q1(t,s,r,i,o)},nearest(t,e,n,i){const s=Dr(e,t),r=n.axis||"xy",o=n.includeInvisible||!1;return G1(t,s,r,n.intersect,i,o)},x(t,e,n,i){const s=Dr(e,t);return n2(t,s,"x",n.intersect,i)},y(t,e,n,i){const s=Dr(e,t);return n2(t,s,"y",n.intersect,i)}}};const i2=["left","top","right","bottom"];function cl(t,e){return t.filter(n=>n.pos===e)}function s2(t,e){return t.filter(n=>i2.indexOf(n.pos)===-1&&n.box.axis===e)}function dl(t,e){return t.sort((n,i)=>{const s=e?i:n,r=e?n:i;return s.weight===r.weight?s.index-r.index:s.weight-r.weight})}function L9(t){const e=[];let n,i,s,r,o,c;for(n=0,i=(t||[]).length;n<i;++n)s=t[n],{position:r,options:{stack:o,stackWeight:c=1}}=s,e.push({index:n,box:s,pos:r,horizontal:s.isHorizontal(),weight:s.weight,stack:o&&r+o,stackWeight:c});return e}function F9(t){const e={};for(const n of t){const{stack:i,pos:s,stackWeight:r}=n;if(!i||!i2.includes(s))continue;const o=e[i]||(e[i]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=r}return e}function R9(t,e){const n=F9(t),{vBoxMaxWidth:i,hBoxMaxHeight:s}=e;let r,o,c;for(r=0,o=t.length;r<o;++r){c=t[r];const{fullSize:d}=c.box,h=n[c.stack],f=h&&c.stackWeight/h.weight;c.horizontal?(c.width=f?f*i:d&&e.availableWidth,c.height=s):(c.width=i,c.height=f?f*s:d&&e.availableHeight)}return n}function H9(t){const e=L9(t),n=dl(e.filter(h=>h.box.fullSize),!0),i=dl(cl(e,"left"),!0),s=dl(cl(e,"right")),r=dl(cl(e,"top"),!0),o=dl(cl(e,"bottom")),c=s2(e,"x"),d=s2(e,"y");return{fullSize:n,leftAndTop:i.concat(r),rightAndBottom:s.concat(d).concat(o).concat(c),chartArea:cl(e,"chartArea"),vertical:i.concat(s).concat(d),horizontal:r.concat(o).concat(c)}}function r2(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function a2(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 W9(t,e,n,i){const{pos:s,box:r}=n,o=t.maxPadding;if(!Ue(s)){n.size&&(t[s]-=n.size);const m=i[n.stack]||{size:0,count:1};m.size=Math.max(m.size,n.horizontal?r.height:r.width),n.size=m.size/m.count,t[s]+=n.size}r.getPadding&&a2(o,r.getPadding());const c=Math.max(0,e.outerWidth-r2(o,t,"left","right")),d=Math.max(0,e.outerHeight-r2(o,t,"top","bottom")),h=c!==t.w,f=d!==t.h;return t.w=c,t.h=d,n.horizontal?{same:h,other:f}:{same:f,other:h}}function Y9(t){const e=t.maxPadding;function n(i){const s=Math.max(e[i]-t[i],0);return t[i]+=s,s}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function j9(t,e){const n=e.maxPadding;function i(s){const r={left:0,top:0,right:0,bottom:0};return s.forEach(o=>{r[o]=Math.max(e[o],n[o])}),r}return i(t?["left","right"]:["top","bottom"])}function ul(t,e,n,i){const s=[];let r,o,c,d,h,f;for(r=0,o=t.length,h=0;r<o;++r){c=t[r],d=c.box,d.update(c.width||e.w,c.height||e.h,j9(c.horizontal,e));const{same:m,other:g}=W9(e,n,c,i);h|=m&&s.length,f=f||g,d.fullSize||s.push(c)}return h&&ul(s,e,n,i)||f}function Xc(t,e,n,i,s){t.top=n,t.left=e,t.right=e+i,t.bottom=n+s,t.width=i,t.height=s}function o2(t,e,n,i){const s=n.padding;let{x:r,y:o}=e;for(const c of t){const d=c.box,h=i[c.stack]||{count:1,placed:0,weight:1},f=c.stackWeight/h.weight||1;if(c.horizontal){const m=e.w*f,g=h.size||d.height;Xo(h.start)&&(o=h.start),d.fullSize?Xc(d,s.left,o,n.outerWidth-s.right-s.left,g):Xc(d,e.left+h.placed,o,m,g),h.start=o,h.placed+=m,o=d.bottom}else{const m=e.h*f,g=h.size||d.width;Xo(h.start)&&(r=h.start),d.fullSize?Xc(d,r,s.top,g,n.outerHeight-s.bottom-s.top):Xc(d,r,e.top+h.placed,g,m),h.start=r,h.placed+=m,r=d.right}}e.x=r,e.y=o}var bn={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 s=yn(t.options.layout.padding),r=Math.max(e-s.width,0),o=Math.max(n-s.height,0),c=H9(t.boxes),d=c.vertical,h=c.horizontal;dt(t.boxes,x=>{typeof x.beforeLayout=="function"&&x.beforeLayout()});const f=d.reduce((x,k)=>k.box.options&&k.box.options.display===!1?x:x+1,0)||1,m=Object.freeze({outerWidth:e,outerHeight:n,padding:s,availableWidth:r,availableHeight:o,vBoxMaxWidth:r/2/f,hBoxMaxHeight:o/2}),g=Object.assign({},s);a2(g,yn(i));const v=Object.assign({maxPadding:g,w:r,h:o,x:s.left,y:s.top},s),b=R9(d.concat(h),m);ul(c.fullSize,v,m,b),ul(d,v,m,b),ul(h,v,m,b)&&ul(d,v,m,b),Y9(v),o2(c.leftAndTop,v,m,b),v.x+=v.w,v.y+=v.h,o2(c.rightAndBottom,v,m,b),t.chartArea={left:v.left,top:v.top,right:v.left+v.w,bottom:v.top+v.h,height:v.h,width:v.w},dt(c.chartArea,x=>{const k=x.box;Object.assign(k,t.chartArea),k.update(v.w,v.h,{left:0,top:0,right:0,bottom:0})})}};class l2{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,i){}removeEventListener(e,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,i,s){return n=Math.max(0,n||e.width),i=i||e.height,{width:n,height:Math.max(0,s?Math.floor(n/s):i)}}isAttached(e){return!0}updateConfig(e){}}class U9 extends l2{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Jc="$chartjs",q9={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},c2=t=>t===null||t==="";function G9(t,e){const n=t.style,i=t.getAttribute("height"),s=t.getAttribute("width");if(t[Jc]={initial:{height:i,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",c2(s)){const r=Vm(t,"width");r!==void 0&&(t.width=r)}if(c2(i))if(t.style.height==="")t.height=t.width/(e||2);else{const r=Vm(t,"height");r!==void 0&&(t.height=r)}return t}const d2=Zw?{passive:!0}:!1;function K9(t,e,n){t&&t.addEventListener(e,n,d2)}function Z9(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,d2)}function X9(t,e){const n=q9[t.type]||t.type,{x:i,y:s}=Dr(t,e);return{type:n,chart:e,native:t,x:i!==void 0?i:null,y:s!==void 0?s:null}}function Qc(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function J9(t,e,n){const i=t.canvas,s=new MutationObserver(r=>{let o=!1;for(const c of r)o=o||Qc(c.addedNodes,i),o=o&&!Qc(c.removedNodes,i);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function Q9(t,e,n){const i=t.canvas,s=new MutationObserver(r=>{let o=!1;for(const c of r)o=o||Qc(c.removedNodes,i),o=o&&!Qc(c.addedNodes,i);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const hl=new Map;let u2=0;function h2(){const t=window.devicePixelRatio;t!==u2&&(u2=t,hl.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function ek(t,e){hl.size||window.addEventListener("resize",h2),hl.set(t,e)}function tk(t){hl.delete(t),hl.size||window.removeEventListener("resize",h2)}function nk(t,e,n){const i=t.canvas,s=i&&H1(i);if(!s)return;const r=pm((c,d)=>{const h=s.clientWidth;n(c,d),h<s.clientWidth&&n()},window),o=new ResizeObserver(c=>{const d=c[0],h=d.contentRect.width,f=d.contentRect.height;h===0&&f===0||r(h,f)});return o.observe(s),ek(t,r),o}function K1(t,e,n){n&&n.disconnect(),e==="resize"&&tk(t)}function ik(t,e,n){const i=t.canvas,s=pm(r=>{t.ctx!==null&&n(X9(r,t))},t);return K9(i,e,s),s}class sk extends l2{acquireContext(e,n){const i=e&&e.getContext&&e.getContext("2d");return i&&i.canvas===e?(G9(e,n),i):null}releaseContext(e){const n=e.canvas;if(!n[Jc])return!1;const i=n[Jc].initial;["height","width"].forEach(r=>{const o=i[r];Xe(o)?n.removeAttribute(r):n.setAttribute(r,o)});const s=i.style||{};return Object.keys(s).forEach(r=>{n.style[r]=s[r]}),n.width=n.width,delete n[Jc],!0}addEventListener(e,n,i){this.removeEventListener(e,n);const s=e.$proxies||(e.$proxies={}),o={attach:J9,detach:Q9,resize:nk}[n]||ik;s[n]=o(e,n,i)}removeEventListener(e,n){const i=e.$proxies||(e.$proxies={}),s=i[n];if(!s)return;({attach:K1,detach:K1,resize:K1}[n]||Z9)(e,n,s),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,i,s){return Kw(e,n,i,s)}isAttached(e){const n=H1(e);return!!(n&&n.isConnected)}}function rk(t){return!R1()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?U9:sk}class Bi{constructor(){re(this,"x");re(this,"y");re(this,"active",!1);re(this,"options");re(this,"$animations")}tooltipPosition(e){const{x:n,y:i}=this.getProps(["x","y"],e);return{x:n,y:i}}hasValue(){return ka(this.x)&&ka(this.y)}getProps(e,n){const i=this.$animations;if(!n||!i)return this;const s={};return e.forEach(r=>{s[r]=i[r]&&i[r].active()?i[r]._to:this[r]}),s}}re(Bi,"defaults",{}),re(Bi,"defaultRoutes");function ak(t,e){const n=t.options.ticks,i=ok(t),s=Math.min(n.maxTicksLimit||i,i),r=n.major.enabled?ck(e):[],o=r.length,c=r[0],d=r[o-1],h=[];if(o>s)return dk(e,h,r,o/s),h;const f=lk(r,e,s);if(o>0){let m,g;const v=o>1?Math.round((d-c)/(o-1)):null;for(ed(e,h,f,Xe(v)?0:c-v,c),m=0,g=o-1;m<g;m++)ed(e,h,f,r[m],r[m+1]);return ed(e,h,f,d,Xe(v)?e.length:d+v),h}return ed(e,h,f),h}function ok(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),s=t._maxLength/n;return Math.floor(Math.min(i,s))}function lk(t,e,n){const i=uk(t),s=e.length/n;if(!i)return Math.max(s,1);const r=Q8(i);for(let o=0,c=r.length-1;o<c;o++){const d=r[o];if(d>s)return d}return Math.max(s,1)}function ck(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}function dk(t,e,n,i){let s=0,r=n[0],o;for(i=Math.ceil(i),o=0;o<t.length;o++)o===r&&(e.push(t[o]),s++,r=n[s*i])}function ed(t,e,n,i,s){const r=$e(i,0),o=Math.min($e(s,t.length),t.length);let c=0,d,h,f;for(n=Math.ceil(n),s&&(d=s-i,n=d/Math.floor(d/n)),f=r;f<0;)c++,f=Math.round(r+c*n);for(h=Math.max(r,0);h<o;h++)h===f&&(e.push(t[h]),c++,f=Math.round(r+c*n))}function uk(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 hk=t=>t==="left"?"right":t==="right"?"left":t,f2=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,p2=(t,e)=>Math.min(e||t,t);function m2(t,e){const n=[],i=t.length/e,s=t.length;let r=0;for(;r<s;r+=i)n.push(t[Math.floor(r)]);return n}function fk(t,e,n){const i=t.ticks.length,s=Math.min(e,i-1),r=t._startPixel,o=t._endPixel,c=1e-6;let d=t.getPixelForTick(s),h;if(!(n&&(i===1?h=Math.max(d-r,o-d):e===0?h=(t.getPixelForTick(1)-d)/2:h=(d-t.getPixelForTick(s-1))/2,d+=s<e?h:-h,d<r-c||d>o+c)))return d}function pk(t,e){dt(t,n=>{const i=n.gc,s=i.length/2;let r;if(s>e){for(r=0;r<s;++r)delete n.data[i[r]];i.splice(0,s)}})}function fl(t){return t.drawTicks?t.tickLength:0}function g2(t,e){if(!t.display)return 0;const n=en(t.font,e),i=yn(t.padding);return(Dt(t.text)?t.text.length:1)*n.lineHeight+i.height}function mk(t,e){return js(t,{scale:e,type:"scale"})}function gk(t,e,n){return js(t,{tick:n,index:e,type:"tick"})}function _k(t,e,n){let i=I1(t);return(n&&e!=="right"||!n&&e==="right")&&(i=hk(i)),i}function vk(t,e,n,i){const{top:s,left:r,bottom:o,right:c,chart:d}=t,{chartArea:h,scales:f}=d;let m=0,g,v,b;const x=o-s,k=c-r;if(t.isHorizontal()){if(v=vn(i,r,c),Ue(n)){const O=Object.keys(n)[0],T=n[O];b=f[O].getPixelForValue(T)+x-e}else n==="center"?b=(h.bottom+h.top)/2+x-e:b=f2(t,n,e);g=c-r}else{if(Ue(n)){const O=Object.keys(n)[0],T=n[O];v=f[O].getPixelForValue(T)-k+e}else n==="center"?v=(h.left+h.right)/2-k+e:v=f2(t,n,e);b=vn(i,o,s),m=n==="left"?-Ut:Ut}return{titleX:v,titleY:b,maxWidth:g,rotation:m}}class Br extends Bi{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:s}=this;return e=Jn(e,Number.POSITIVE_INFINITY),n=Jn(n,Number.NEGATIVE_INFINITY),i=Jn(i,Number.POSITIVE_INFINITY),s=Jn(s,Number.NEGATIVE_INFINITY),{min:Jn(e,i),max:Jn(n,s),minDefined:Ht(e),maxDefined:Ht(n)}}getMinMax(e){let{min:n,max:i,minDefined:s,maxDefined:r}=this.getUserBounds(),o;if(s&&r)return{min:n,max:i};const c=this.getMatchingVisibleMetas();for(let d=0,h=c.length;d<h;++d)o=c[d].controller.getMinMax(this,e),s||(n=Math.min(n,o.min)),r||(i=Math.max(i,o.max));return n=r&&n>i?i:n,i=s&&n>i?n:i,{min:Jn(n,Jn(i,n)),max:Jn(i,Jn(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||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){St(this.options.beforeUpdate,[this])}update(e,n,i){const{beginAtZero:s,grace:r,ticks:o}=this.options,c=o.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=Ow(this,r,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const d=c<this.ticks.length;this._convertTicksToLabels(d?m2(this.ticks,c):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=ak(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),d&&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(){St(this.options.afterUpdate,[this])}beforeSetDimensions(){St(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(){St(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),St(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){St(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let i,s,r;for(i=0,s=e.length;i<s;i++)r=e[i],r.label=St(n.callback,[r.value,i,e],this)}afterTickToLabelConversion(){St(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){St(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,i=p2(this.ticks.length,e.ticks.maxTicksLimit),s=n.minRotation||0,r=n.maxRotation;let o=s,c,d,h;if(!this._isVisible()||!n.display||s>=r||i<=1||!this.isHorizontal()){this.labelRotation=s;return}const f=this._getLabelSizes(),m=f.widest.width,g=f.highest.height,v=dn(this.chart.width-m,0,this.maxWidth);c=e.offset?this.maxWidth/i:v/(i-1),m+6>c&&(c=v/(i-(e.offset?.5:1)),d=this.maxHeight-fl(e.grid)-n.padding-g2(e.title,this.chart.options.font),h=Math.sqrt(m*m+g*g),o=D1(Math.min(Math.asin(dn((f.highest.height+6)/c,-1,1)),Math.asin(dn(d/h,-1,1))-Math.asin(dn(g/h,-1,1)))),o=Math.max(s,Math.min(r,o))),this.labelRotation=o}afterCalculateLabelRotation(){St(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){St(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:i,title:s,grid:r}}=this,o=this._isVisible(),c=this.isHorizontal();if(o){const d=g2(s,n.options.font);if(c?(e.width=this.maxWidth,e.height=fl(r)+d):(e.height=this.maxHeight,e.width=fl(r)+d),i.display&&this.ticks.length){const{first:h,last:f,widest:m,highest:g}=this._getLabelSizes(),v=i.padding*2,b=Ti(this.labelRotation),x=Math.cos(b),k=Math.sin(b);if(c){const O=i.mirror?0:k*m.width+x*g.height;e.height=Math.min(this.maxHeight,e.height+O+v)}else{const O=i.mirror?0:x*m.width+k*g.height;e.width=Math.min(this.maxWidth,e.width+O+v)}this._calculatePadding(h,f,k,x)}}this._handleMargins(),c?(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,s){const{ticks:{align:r,padding:o},position:c}=this.options,d=this.labelRotation!==0,h=c!=="top"&&this.axis==="x";if(this.isHorizontal()){const f=this.getPixelForTick(0)-this.left,m=this.right-this.getPixelForTick(this.ticks.length-1);let g=0,v=0;d?h?(g=s*e.width,v=i*n.height):(g=i*e.height,v=s*n.width):r==="start"?v=n.width:r==="end"?g=e.width:r!=="inner"&&(g=e.width/2,v=n.width/2),this.paddingLeft=Math.max((g-f+o)*this.width/(this.width-f),0),this.paddingRight=Math.max((v-m+o)*this.width/(this.width-m),0)}else{let f=n.height/2,m=e.height/2;r==="start"?(f=0,m=e.height):r==="end"&&(f=n.height,m=0),this.paddingTop=f+o,this.paddingBottom=m+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){St(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++)Xe(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=m2(i,n)),this._labelSizes=e=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,i){const{ctx:s,_longestTextCache:r}=this,o=[],c=[],d=Math.floor(n/p2(n,i));let h=0,f=0,m,g,v,b,x,k,O,T,N,C,B;for(m=0;m<n;m+=d){if(b=e[m].label,x=this._resolveTickFontOptions(m),s.font=k=x.string,O=r[k]=r[k]||{data:{},gc:[]},T=x.lineHeight,N=C=0,!Xe(b)&&!Dt(b))N=Fc(s,O.data,O.gc,N,b),C=T;else if(Dt(b))for(g=0,v=b.length;g<v;++g)B=b[g],!Xe(B)&&!Dt(B)&&(N=Fc(s,O.data,O.gc,N,B),C+=T);o.push(N),c.push(C),h=Math.max(N,h),f=Math.max(C,f)}pk(r,n);const $=o.indexOf(h),L=c.indexOf(f),F=q=>({width:o[q]||0,height:c[q]||0});return{first:F(0),last:F(n-1),widest:F($),highest:F(L),widths:o,heights:c}}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 nw(this._alignToPixels?Cr(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=gk(this.getContext(),e,i))}return this.$context||(this.$context=mk(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=Ti(this.labelRotation),i=Math.abs(Math.cos(n)),s=Math.abs(Math.sin(n)),r=this._getLabelSizes(),o=e.autoSkipPadding||0,c=r?r.widest.width+o:0,d=r?r.highest.height+o:0;return this.isHorizontal()?d*i>c*s?c/i:d/s:d*s<c*i?d/i:c/s}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,i=this.chart,s=this.options,{grid:r,position:o,border:c}=s,d=r.offset,h=this.isHorizontal(),m=this.ticks.length+(d?1:0),g=fl(r),v=[],b=c.setContext(this.getContext()),x=b.display?b.width:0,k=x/2,O=function(ue){return Cr(i,ue,x)};let T,N,C,B,$,L,F,q,ee,ne,K,ie;if(o==="top")T=O(this.bottom),L=this.bottom-g,q=T-k,ne=O(e.top)+k,ie=e.bottom;else if(o==="bottom")T=O(this.top),ne=e.top,ie=O(e.bottom)-k,L=T+k,q=this.top+g;else if(o==="left")T=O(this.right),$=this.right-g,F=T-k,ee=O(e.left)+k,K=e.right;else if(o==="right")T=O(this.left),ee=e.left,K=O(e.right)-k,$=T+k,F=this.left+g;else if(n==="x"){if(o==="center")T=O((e.top+e.bottom)/2+.5);else if(Ue(o)){const ue=Object.keys(o)[0],he=o[ue];T=O(this.chart.scales[ue].getPixelForValue(he))}ne=e.top,ie=e.bottom,L=T+k,q=L+g}else if(n==="y"){if(o==="center")T=O((e.left+e.right)/2);else if(Ue(o)){const ue=Object.keys(o)[0],he=o[ue];T=O(this.chart.scales[ue].getPixelForValue(he))}$=T-k,F=$-g,ee=e.left,K=e.right}const pe=$e(s.ticks.maxTicksLimit,m),J=Math.max(1,Math.ceil(m/pe));for(N=0;N<m;N+=J){const ue=this.getContext(N),he=r.setContext(ue),_e=c.setContext(ue),be=he.lineWidth,R=he.color,fe=_e.dash||[],ae=_e.dashOffset,Ee=he.tickWidth,Me=he.tickColor,me=he.tickBorderDash||[],Ne=he.tickBorderDashOffset;C=fk(this,N,d),C!==void 0&&(B=Cr(i,C,be),h?$=F=ee=K=B:L=q=ne=ie=B,v.push({tx1:$,ty1:L,tx2:F,ty2:q,x1:ee,y1:ne,x2:K,y2:ie,width:be,color:R,borderDash:fe,borderDashOffset:ae,tickWidth:Ee,tickColor:Me,tickBorderDash:me,tickBorderDashOffset:Ne}))}return this._ticksLength=m,this._borderValue=T,v}_computeLabelItems(e){const n=this.axis,i=this.options,{position:s,ticks:r}=i,o=this.isHorizontal(),c=this.ticks,{align:d,crossAlign:h,padding:f,mirror:m}=r,g=fl(i.grid),v=g+f,b=m?-f:v,x=-Ti(this.labelRotation),k=[];let O,T,N,C,B,$,L,F,q,ee,ne,K,ie="middle";if(s==="top")$=this.bottom-b,L=this._getXAxisLabelAlignment();else if(s==="bottom")$=this.top+b,L=this._getXAxisLabelAlignment();else if(s==="left"){const J=this._getYAxisLabelAlignment(g);L=J.textAlign,B=J.x}else if(s==="right"){const J=this._getYAxisLabelAlignment(g);L=J.textAlign,B=J.x}else if(n==="x"){if(s==="center")$=(e.top+e.bottom)/2+v;else if(Ue(s)){const J=Object.keys(s)[0],ue=s[J];$=this.chart.scales[J].getPixelForValue(ue)+v}L=this._getXAxisLabelAlignment()}else if(n==="y"){if(s==="center")B=(e.left+e.right)/2-v;else if(Ue(s)){const J=Object.keys(s)[0],ue=s[J];B=this.chart.scales[J].getPixelForValue(ue)}L=this._getYAxisLabelAlignment(g).textAlign}n==="y"&&(d==="start"?ie="top":d==="end"&&(ie="bottom"));const pe=this._getLabelSizes();for(O=0,T=c.length;O<T;++O){N=c[O],C=N.label;const J=r.setContext(this.getContext(O));F=this.getPixelForTick(O)+r.labelOffset,q=this._resolveTickFontOptions(O),ee=q.lineHeight,ne=Dt(C)?C.length:1;const ue=ne/2,he=J.color,_e=J.textStrokeColor,be=J.textStrokeWidth;let R=L;o?(B=F,L==="inner"&&(O===T-1?R=this.options.reverse?"left":"right":O===0?R=this.options.reverse?"right":"left":R="center"),s==="top"?h==="near"||x!==0?K=-ne*ee+ee/2:h==="center"?K=-pe.highest.height/2-ue*ee+ee:K=-pe.highest.height+ee/2:h==="near"||x!==0?K=ee/2:h==="center"?K=pe.highest.height/2-ue*ee:K=pe.highest.height-ne*ee,m&&(K*=-1),x!==0&&!J.showLabelBackdrop&&(B+=ee/2*Math.sin(x))):($=F,K=(1-ne)*ee/2);let fe;if(J.showLabelBackdrop){const ae=yn(J.backdropPadding),Ee=pe.heights[O],Me=pe.widths[O];let me=K-ae.top,Ne=0-ae.left;switch(ie){case"middle":me-=Ee/2;break;case"bottom":me-=Ee;break}switch(L){case"center":Ne-=Me/2;break;case"right":Ne-=Me;break;case"inner":O===T-1?Ne-=Me:O>0&&(Ne-=Me/2);break}fe={left:Ne,top:me,width:Me+ae.width,height:Ee+ae.height,color:J.backdropColor}}k.push({label:C,font:q,textOffset:K,options:{rotation:x,color:he,strokeColor:_e,strokeWidth:be,textAlign:R,textBaseline:ie,translation:[B,$],backdrop:fe}})}return k}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Ti(this.labelRotation))return e==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:i,mirror:s,padding:r}}=this.options,o=this._getLabelSizes(),c=e+r,d=o.widest.width;let h,f;return n==="left"?s?(f=this.right+r,i==="near"?h="left":i==="center"?(h="center",f+=d/2):(h="right",f+=d)):(f=this.right-c,i==="near"?h="right":i==="center"?(h="center",f-=d/2):(h="left",f=this.left)):n==="right"?s?(f=this.left+r,i==="near"?h="right":i==="center"?(h="center",f-=d/2):(h="left",f-=d)):(f=this.left+c,i==="near"?h="left":i==="center"?(h="center",f+=d/2):(h="right",f=this.right)):h="right",{textAlign:h,x:f}}_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:s,width:r,height:o}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(i,s,r,o),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(r=>r.value===e);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(e){const n=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,o;const c=(d,h,f)=>{!f.width||!f.color||(i.save(),i.lineWidth=f.width,i.strokeStyle=f.color,i.setLineDash(f.borderDash||[]),i.lineDashOffset=f.borderDashOffset,i.beginPath(),i.moveTo(d.x,d.y),i.lineTo(h.x,h.y),i.stroke(),i.restore())};if(n.display)for(r=0,o=s.length;r<o;++r){const d=s[r];n.drawOnChartArea&&c({x:d.x1,y:d.y1},{x:d.x2,y:d.y2},d),n.drawTicks&&c({x:d.tx1,y:d.ty1},{x:d.tx2,y:d.ty2},{color:d.tickColor,width:d.tickWidth,borderDash:d.tickBorderDash,borderDashOffset:d.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{border:i,grid:s}}=this,r=i.setContext(this.getContext()),o=i.display?r.width:0;if(!o)return;const c=s.setContext(this.getContext(0)).lineWidth,d=this._borderValue;let h,f,m,g;this.isHorizontal()?(h=Cr(e,this.left,o)-o/2,f=Cr(e,this.right,c)+c/2,m=g=d):(m=Cr(e,this.top,o)-o/2,g=Cr(e,this.bottom,c)+c/2,h=f=d),n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.beginPath(),n.moveTo(h,m),n.lineTo(f,g),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const i=this.ctx,s=this._computeLabelArea();s&&Rc(i,s);const r=this.getLabelItems(e);for(const o of r){const c=o.options,d=o.font,h=o.label,f=o.textOffset;Sr(i,h,0,f,d,c)}s&&Hc(i)}drawTitle(){const{ctx:e,options:{position:n,title:i,reverse:s}}=this;if(!i.display)return;const r=en(i.font),o=yn(i.padding),c=i.align;let d=r.lineHeight/2;n==="bottom"||n==="center"||Ue(n)?(d+=o.bottom,Dt(i.text)&&(d+=r.lineHeight*(i.text.length-1))):d+=o.top;const{titleX:h,titleY:f,maxWidth:m,rotation:g}=vk(this,d,n,c);Sr(e,i.text,0,0,r,{color:i.color,maxWidth:m,rotation:g,textAlign:_k(c,n,s),textBaseline:"middle",translation:[h,f]})}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=$e(e.grid&&e.grid.z,-1),s=$e(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==Br.prototype.draw?[{z:n,draw:r=>{this.draw(r)}}]:[{z:i,draw:r=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:r=>{this.drawLabels(r)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let r,o;for(r=0,o=n.length;r<o;++r){const c=n[r];c[i]===this.id&&(!e||c.type===e)&&s.push(c)}return s}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return en(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class td{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;wk(n)&&(i=this.register(n));const s=this.items,r=e.id,o=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+e);return r in s||(s[r]=e,yk(e,o,i),this.override&&Wt.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const n=this.items,i=e.id,s=this.scope;i in n&&delete n[i],s&&i in Wt[s]&&(delete Wt[s][i],this.override&&delete xr[i])}}function yk(t,e,n){const i=Ko(Object.create(null),[n?Wt.get(n):{},Wt.get(e),t.defaults]);Wt.set(e,i),t.defaultRoutes&&bk(e,t.defaultRoutes),t.descriptors&&Wt.describe(e,t.descriptors)}function bk(t,e){Object.keys(e).forEach(n=>{const i=n.split("."),s=i.pop(),r=[t].concat(i).join("."),o=e[n].split("."),c=o.pop(),d=o.join(".");Wt.route(r,s,d,c)})}function wk(t){return"id"in t&&"defaults"in t}class kk{constructor(){this.controllers=new td(Ii,"datasets",!0),this.elements=new td(Bi,"elements"),this.plugins=new td(Object,"plugins"),this.scales=new td(Br,"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(s=>{const r=i||this._getRegistryForType(s);i||r.isForType(s)||r===this.plugins&&s.id?this._exec(e,r,s):dt(s,o=>{const c=i||this._getRegistryForType(o);this._exec(e,c,o)})})}_exec(e,n,i){const s=O1(e);St(i["before"+s],[],i),n[e](i),St(i["after"+s],[],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 s=n.get(e);if(s===void 0)throw new Error('"'+e+'" is not a registered '+i+".");return s}}var Xi=new kk;class xk{constructor(){this._init=[]}notify(e,n,i,s){n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const r=s?this._descriptors(e).filter(s):this._descriptors(e),o=this._notify(r,e,n,i);return n==="afterDestroy"&&(this._notify(r,e,"stop"),this._notify(this._init,e,"uninstall")),o}_notify(e,n,i,s){s=s||{};for(const r of e){const o=r.plugin,c=o[i],d=[n,s,r.options];if(St(c,d,o)===!1&&s.cancelable)return!1}return!0}invalidate(){Xe(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,s=$e(i.options&&i.options.plugins,{}),r=Ck(i);return s===!1&&!n?[]:Mk(e,r,s,n)}_notifyStateChanges(e){const n=this._oldCache||[],i=this._cache,s=(r,o)=>r.filter(c=>!o.some(d=>c.plugin.id===d.plugin.id));this._notify(s(n,i),e,"stop"),this._notify(s(i,n),e,"start")}}function Ck(t){const e={},n=[],i=Object.keys(Xi.plugins.items);for(let r=0;r<i.length;r++)n.push(Xi.getPlugin(i[r]));const s=t.plugins||[];for(let r=0;r<s.length;r++){const o=s[r];n.indexOf(o)===-1&&(n.push(o),e[o.id]=!0)}return{plugins:n,localIds:e}}function Sk(t,e){return!e&&t===!1?null:t===!0?{}:t}function Mk(t,{plugins:e,localIds:n},i,s){const r=[],o=t.getContext();for(const c of e){const d=c.id,h=Sk(i[d],s);h!==null&&r.push({plugin:c,options:Ok(t.config,{plugin:c,local:n[d]},h,o)})}return r}function Ok(t,{plugin:e,local:n},i,s){const r=t.pluginScopeKeys(e),o=t.getOptionScopes(i,r);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Z1(t,e){const n=Wt.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function Dk(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function Ek(t,e){return t===e?"_index_":"_value_"}function _2(t){if(t==="x"||t==="y"||t==="r")return t}function Tk(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function X1(t,...e){if(_2(t))return t;for(const n of e){const i=n.axis||Tk(n.position)||t.length>1&&_2(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function v2(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function Ik(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(n.length)return v2(t,"x",n[0])||v2(t,"y",n[0])}return{}}function Bk(t,e){const n=xr[t.type]||{scales:{}},i=e.scales||{},s=Z1(t.type,e),r=Object.create(null);return Object.keys(i).forEach(o=>{const c=i[o];if(!Ue(c))return console.error(`Invalid scale configuration for scale: ${o}`);if(c._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const d=X1(o,c,Ik(o,t),Wt.scales[c.type]),h=Ek(d,s),f=n.scales||{};r[o]=Zo(Object.create(null),[{axis:d},c,f[d],f[h]])}),t.data.datasets.forEach(o=>{const c=o.type||t.type,d=o.indexAxis||Z1(c,e),f=(xr[c]||{}).scales||{};Object.keys(f).forEach(m=>{const g=Dk(m,d),v=o[g+"AxisID"]||g;r[v]=r[v]||Object.create(null),Zo(r[v],[{axis:g},i[v],f[m]])})}),Object.keys(r).forEach(o=>{const c=r[o];Zo(c,[Wt.scales[c.type],Wt.scale])}),r}function y2(t){const e=t.options||(t.options={});e.plugins=$e(e.plugins,{}),e.scales=Bk(t,e)}function b2(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function Ak(t){return t=t||{},t.data=b2(t.data),y2(t),t}const w2=new Map,k2=new Set;function nd(t,e){let n=w2.get(t);return n||(n=e(),w2.set(t,n),k2.add(n)),n}const pl=(t,e,n)=>{const i=Hs(e,n);i!==void 0&&t.add(i)};class Vk{constructor(e){this._config=Ak(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=b2(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(),y2(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return nd(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return nd(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return nd(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,i=this.type;return nd(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const i=this._scopeCache;let s=i.get(e);return(!s||n)&&(s=new Map,i.set(e,s)),s}getOptionScopes(e,n,i){const{options:s,type:r}=this,o=this._cachedScopes(e,i),c=o.get(n);if(c)return c;const d=new Set;n.forEach(f=>{e&&(d.add(e),f.forEach(m=>pl(d,e,m))),f.forEach(m=>pl(d,s,m)),f.forEach(m=>pl(d,xr[r]||{},m)),f.forEach(m=>pl(d,Wt,m)),f.forEach(m=>pl(d,V1,m))});const h=Array.from(d);return h.length===0&&h.push(Object.create(null)),k2.has(n)&&o.set(n,h),h}chartOptionScopes(){const{options:e,type:n}=this;return[e,xr[n]||{},Wt.datasets[n]||{},{type:n},Wt,V1]}resolveNamedOptions(e,n,i,s=[""]){const r={$shared:!0},{resolver:o,subPrefixes:c}=x2(this._resolverCache,e,s);let d=o;if(Nk(o,n)){r.$shared=!1,i=Ws(i)?i():i;const h=this.createResolver(e,i,c);d=xa(o,i,h)}for(const h of n)r[h]=d[h];return r}createResolver(e,n,i=[""],s){const{resolver:r}=x2(this._resolverCache,e,i);return Ue(n)?xa(r,n,void 0,s):r}}function x2(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const s=n.join();let r=i.get(s);return r||(r={resolver:P1(e,n),subPrefixes:n.filter(c=>!c.toLowerCase().includes("hover"))},i.set(s,r)),r}const $k=t=>Ue(t)&&Object.getOwnPropertyNames(t).some(e=>Ws(t[e]));function Nk(t,e){const{isScriptable:n,isIndexable:i}=Sm(t);for(const s of e){const r=n(s),o=i(s),c=(o||r)&&t[s];if(r&&(Ws(c)||$k(c))||o&&Dt(c))return!0}return!1}var zk="4.4.2";const Pk=["top","bottom","left","right","chartArea"];function C2(t,e){return t==="top"||t==="bottom"||Pk.indexOf(t)===-1&&e==="x"}function S2(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function M2(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),St(n&&n.onComplete,[t],e)}function Lk(t){const e=t.chart,n=e.options.animation;St(n&&n.onProgress,[t],e)}function O2(t){return R1()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const id={},D2=t=>{const e=O2(t);return Object.values(id).filter(n=>n.canvas===e).pop()};function Fk(t,e,n){const i=Object.keys(t);for(const s of i){const r=+s;if(r>=e){const o=t[s];delete t[s],(n>0||r>e)&&(t[r+n]=o)}}}function Rk(t,e,n,i){return!n||t.type==="mouseout"?null:i?e:t}function sd(t,e,n){return t.options.clip?t[n]:e[n]}function Hk(t,e){const{xScale:n,yScale:i}=t;return n&&i?{left:sd(n,e,"left"),right:sd(n,e,"right"),top:sd(i,e,"top"),bottom:sd(i,e,"bottom")}:e}class fi{static register(...e){Xi.add(...e),E2()}static unregister(...e){Xi.remove(...e),E2()}constructor(e,n){const i=this.config=new Vk(n),s=O2(e),r=D2(s);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 o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||rk(s)),this.platform.updateConfig(i);const c=this.platform.acquireContext(s,o.aspectRatio),d=c&&c.canvas,h=d&&d.height,f=d&&d.width;if(this.id=Y8(),this.ctx=c,this.canvas=d,this.width=f,this.height=h,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new xk,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=aw(m=>this.update(m),o.resizeDelay||0),this._dataChanges=[],id[this.id]=this,!c||!d){console.error("Failed to create chart: can't acquire context from the given item");return}ps.listen(this,"complete",M2),ps.listen(this,"progress",Lk),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:i,height:s,_aspectRatio:r}=this;return Xe(e)?n&&r?r:s?i/s: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}get registry(){return Xi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Am(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return km(this.canvas,this.ctx),this}stop(){return ps.stop(this),this}resize(e,n){ps.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const i=this.options,s=this.canvas,r=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,e,n,r),c=i.devicePixelRatio||this.platform.getDevicePixelRatio(),d=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Am(this,c,!0)&&(this.notifyPlugins("resize",{size:o}),St(i.onResize,[this,o],this),this.attached&&this._doResize(d)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};dt(n,(i,s)=>{i.id=s})}buildOrUpdateScales(){const e=this.options,n=e.scales,i=this.scales,s=Object.keys(i).reduce((o,c)=>(o[c]=!1,o),{});let r=[];n&&(r=r.concat(Object.keys(n).map(o=>{const c=n[o],d=X1(o,c),h=d==="r",f=d==="x";return{options:c,dposition:h?"chartArea":f?"bottom":"left",dtype:h?"radialLinear":f?"category":"linear"}}))),dt(r,o=>{const c=o.options,d=c.id,h=X1(d,c),f=$e(c.type,o.dtype);(c.position===void 0||C2(c.position,h)!==C2(o.dposition))&&(c.position=o.dposition),s[d]=!0;let m=null;if(d in i&&i[d].type===f)m=i[d];else{const g=Xi.getScale(f);m=new g({id:d,type:f,ctx:this.ctx,chart:this}),i[m.id]=m}m.init(c,e)}),dt(s,(o,c)=>{o||delete i[c]}),dt(i,o=>{bn.configure(this,o,o.options),bn.addBox(this,o)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,i=e.length;if(e.sort((s,r)=>s.index-r.index),i>n){for(let s=n;s<i;++s)this._destroyDatasetMeta(s);e.splice(n,i-n)}this._sortedMetasets=e.slice(0).sort(S2("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((i,s)=>{n.filter(r=>r===i._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=n.length;i<s;i++){const r=n[i];let o=this.getDatasetMeta(i);const c=r.type||this.config.type;if(o.type&&o.type!==c&&(this._destroyDatasetMeta(i),o=this.getDatasetMeta(i)),o.type=c,o.indexAxis=r.indexAxis||Z1(c,this.options),o.order=r.order||0,o.index=i,o.label=""+r.label,o.visible=this.isDatasetVisible(i),o.controller)o.controller.updateIndex(i),o.controller.linkScales();else{const d=Xi.getController(c),{datasetElementType:h,dataElementType:f}=Wt.datasets[c];Object.assign(d,{dataElementType:Xi.getElement(f),datasetElementType:h&&Xi.getElement(h)}),o.controller=new d(this,i),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){dt(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()),s=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 o=0;for(let h=0,f=this.data.datasets.length;h<f;h++){const{controller:m}=this.getDatasetMeta(h),g=!s&&r.indexOf(m)===-1;m.buildOrUpdateElements(g),o=Math.max(+m.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),s||dt(r,h=>{h.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(S2("z","_idx"));const{_active:c,_lastEvent:d}=this;d?this._eventHandler(d,!0):c.length&&this._updateHoverStyles(c,c,!0),this.render()}_updateScales(){dt(this.scales,e=>{bn.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(e.events);(!sm(n,i)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:r}of n){const o=i==="_removeElements"?-r:r;Fk(e,s,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=r=>new Set(e.filter(o=>o[0]===r).map((o,c)=>c+","+o.splice(1).join(","))),s=i(0);for(let r=1;r<n;r++)if(!sm(s,i(r)))return;return Array.from(s).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;bn.update(this,this.width,this.height,e);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],dt(this.boxes,s=>{i&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,r)=>{s._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,Ws(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const i=this.getDatasetMeta(e),s={meta:i,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(i.controller._update(n),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(ps.has(this)?this.attached&&!ps.running(this)&&ps.start(this):(this.draw(),M2({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:i,height:s}=this._resizeBeforeDraw;this._resize(i,s),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 s,r;for(s=0,r=n.length;s<r;++s){const o=n[s];(!e||o.visible)&&i.push(o)}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,s=!i.disabled,r=Hk(e,this.chartArea),o={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(s&&Rc(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(),s&&Hc(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(e){return fs(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,i,s){const r=P9.modes[n];return typeof r=="function"?r(this,e,i,s):[]}getDatasetMeta(e){const n=this.data.datasets[e],i=this._metasets;let s=i.filter(r=>r&&r._dataset===n).pop();return s||(s={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(s)),s}getContext(){return this.$context||(this.$context=js(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 s=i?"show":"hide",r=this.getDatasetMeta(e),o=r.controller._resolveAnimations(void 0,s);Xo(n)?(r.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(e,i),o.update(r,{visible:i}),this.update(c=>c.datasetIndex===e?s: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(),ps.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(),km(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete id[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,o)=>{n.addEventListener(this,r,o),e[r]=o},s=(r,o,c)=>{r.offsetX=o,r.offsetY=c,this._eventHandler(r)};dt(this.options.events,r=>i(r,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,i=(d,h)=>{n.addEventListener(this,d,h),e[d]=h},s=(d,h)=>{e[d]&&(n.removeEventListener(this,d,h),delete e[d])},r=(d,h)=>{this.canvas&&this.resize(d,h)};let o;const c=()=>{s("attach",c),this.attached=!0,this.resize(),i("resize",r),i("detach",o)};o=()=>{this.attached=!1,s("resize",r),this._stop(),this._resize(0,0),i("attach",c)},n.isAttached(this.canvas)?c():o()}unbindEvents(){dt(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},dt(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,i){const s=i?"set":"remove";let r,o,c,d;for(n==="dataset"&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+s+"DatasetHoverStyle"]()),c=0,d=e.length;c<d;++c){o=e[c];const h=o&&this.getDatasetMeta(o.datasetIndex).controller;h&&h[s+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],i=e.map(({datasetIndex:r,index:o})=>{const c=this.getDatasetMeta(r);if(!c)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:c.data[o],index:o}});!$c(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(e,n,i){return this._plugins.notify(this,e,n,i)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,i){const s=this.options.hover,r=(d,h)=>d.filter(f=>!h.some(m=>f.datasetIndex===m.datasetIndex&&f.index===m.index)),o=r(n,e),c=i?e:r(e,n);o.length&&this.updateHoverStyle(o,s.mode,!1),c.length&&s.mode&&this.updateHoverStyle(c,s.mode,!0)}_eventHandler(e,n){const i={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},s=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",i,s)===!1)return;const r=this._handleEvent(e,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(r||i.changed)&&this.render(),this}_handleEvent(e,n,i){const{_active:s=[],options:r}=this,o=n,c=this._getActiveElements(e,s,i,o),d=Z8(e),h=Rk(e,this._lastEvent,i,d);i&&(this._lastEvent=null,St(r.onHover,[e,c,this],this),d&&St(r.onClick,[e,c,this],this));const f=!$c(c,s);return(f||n)&&(this._active=c,this._updateHoverStyles(c,s,n)),this._lastEvent=h,f}_getActiveElements(e,n,i,s){if(e.type==="mouseout")return[];if(!i)return n;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,s)}}re(fi,"defaults",Wt),re(fi,"instances",id),re(fi,"overrides",xr),re(fi,"registry",Xi),re(fi,"version",zk),re(fi,"getChart",D2);function E2(){return dt(fi.instances,t=>t._plugins.invalidate())}function Wk(t,e,n){const{startAngle:i,pixelMargin:s,x:r,y:o,outerRadius:c,innerRadius:d}=e;let h=s/c;t.beginPath(),t.arc(r,o,c,i-h,n+h),d>s?(h=s/d,t.arc(r,o,d,n+h,i-h,!0)):t.arc(r,o,s,n+Ut,i-Ut),t.closePath(),t.clip()}function Yk(t){return z1(t,["outerStart","outerEnd","innerStart","innerEnd"])}function jk(t,e,n,i){const s=Yk(t.options.borderRadius),r=(n-e)/2,o=Math.min(r,i*e/2),c=d=>{const h=(n-Math.min(r,d))*i/2;return dn(d,0,Math.min(r,h))};return{outerStart:c(s.outerStart),outerEnd:c(s.outerEnd),innerStart:dn(s.innerStart,0,o),innerEnd:dn(s.innerEnd,0,o)}}function Oa(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function rd(t,e,n,i,s,r){const{x:o,y:c,startAngle:d,pixelMargin:h,innerRadius:f}=e,m=Math.max(e.outerRadius+i+n-h,0),g=f>0?f+i+n+h:0;let v=0;const b=s-d;if(i){const J=f>0?f-i:0,ue=m>0?m-i:0,he=(J+ue)/2,_e=he!==0?b*he/(he+i):b;v=(b-_e)/2}const x=Math.max(.001,b*m-n/Et)/m,k=(b-x)/2,O=d+k+v,T=s-k-v,{outerStart:N,outerEnd:C,innerStart:B,innerEnd:$}=jk(e,g,m,T-O),L=m-N,F=m-C,q=O+N/L,ee=T-C/F,ne=g+B,K=g+$,ie=O+B/ne,pe=T-$/K;if(t.beginPath(),r){const J=(q+ee)/2;if(t.arc(o,c,m,q,J),t.arc(o,c,m,J,ee),C>0){const be=Oa(F,ee,o,c);t.arc(be.x,be.y,C,ee,T+Ut)}const ue=Oa(K,T,o,c);if(t.lineTo(ue.x,ue.y),$>0){const be=Oa(K,pe,o,c);t.arc(be.x,be.y,$,T+Ut,pe+Math.PI)}const he=(T-$/g+(O+B/g))/2;if(t.arc(o,c,g,T-$/g,he,!0),t.arc(o,c,g,he,O+B/g,!0),B>0){const be=Oa(ne,ie,o,c);t.arc(be.x,be.y,B,ie+Math.PI,O-Ut)}const _e=Oa(L,O,o,c);if(t.lineTo(_e.x,_e.y),N>0){const be=Oa(L,q,o,c);t.arc(be.x,be.y,N,O-Ut,q)}}else{t.moveTo(o,c);const J=Math.cos(q)*m+o,ue=Math.sin(q)*m+c;t.lineTo(J,ue);const he=Math.cos(ee)*m+o,_e=Math.sin(ee)*m+c;t.lineTo(he,_e)}t.closePath()}function Uk(t,e,n,i,s){const{fullCircles:r,startAngle:o,circumference:c}=e;let d=e.endAngle;if(r){rd(t,e,n,i,d,s);for(let h=0;h<r;++h)t.fill();isNaN(c)||(d=o+(c%Tt||Tt))}return rd(t,e,n,i,d,s),t.fill(),d}function qk(t,e,n,i,s){const{fullCircles:r,startAngle:o,circumference:c,options:d}=e,{borderWidth:h,borderJoinStyle:f,borderDash:m,borderDashOffset:g}=d,v=d.borderAlign==="inner";if(!h)return;t.setLineDash(m||[]),t.lineDashOffset=g,v?(t.lineWidth=h*2,t.lineJoin=f||"round"):(t.lineWidth=h,t.lineJoin=f||"bevel");let b=e.endAngle;if(r){rd(t,e,n,i,b,s);for(let x=0;x<r;++x)t.stroke();isNaN(c)||(b=o+(c%Tt||Tt))}v&&Wk(t,e,b),r||(rd(t,e,n,i,b,s),t.stroke())}class ml extends Bi{constructor(n){super();re(this,"circumference");re(this,"endAngle");re(this,"fullCircles");re(this,"innerRadius");re(this,"outerRadius");re(this,"pixelMargin");re(this,"startAngle");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,n&&Object.assign(this,n)}inRange(n,i,s){const r=this.getProps(["x","y"],s),{angle:o,distance:c}=cm(r,{x:n,y:i}),{startAngle:d,endAngle:h,innerRadius:f,outerRadius:m,circumference:g}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),v=(this.options.spacing+this.options.borderWidth)/2,x=$e(g,h-d)>=Tt||Qo(o,d,h),k=us(c,f+v,m+v);return x&&k}getCenterPoint(n){const{x:i,y:s,startAngle:r,endAngle:o,innerRadius:c,outerRadius:d}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:h,spacing:f}=this.options,m=(r+o)/2,g=(c+d+f+h)/2;return{x:i+Math.cos(m)*g,y:s+Math.sin(m)*g}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:i,circumference:s}=this,r=(i.offset||0)/4,o=(i.spacing||0)/2,c=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=s>Tt?Math.floor(s/Tt):0,s===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const d=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(d)*r,Math.sin(d)*r);const h=1-Math.sin(Math.min(Et,s||0)),f=r*h;n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,Uk(n,this,f,o,c),qk(n,this,f,o,c),n.restore()}}re(ml,"id","arc"),re(ml,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),re(ml,"defaultRoutes",{backgroundColor:"backgroundColor"}),re(ml,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function T2(t,e,n=e){t.lineCap=$e(n.borderCapStyle,e.borderCapStyle),t.setLineDash($e(n.borderDash,e.borderDash)),t.lineDashOffset=$e(n.borderDashOffset,e.borderDashOffset),t.lineJoin=$e(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=$e(n.borderWidth,e.borderWidth),t.strokeStyle=$e(n.borderColor,e.borderColor)}function Gk(t,e,n){t.lineTo(n.x,n.y)}function Kk(t){return t.stepped?vw:t.tension||t.cubicInterpolationMode==="monotone"?yw:Gk}function I2(t,e,n={}){const i=t.length,{start:s=0,end:r=i-1}=n,{start:o,end:c}=e,d=Math.max(s,o),h=Math.min(r,c),f=s<o&&r<o||s>c&&r>c;return{count:i,start:d,loop:e.loop,ilen:h<d&&!f?i+h-d:h-d}}function Zk(t,e,n,i){const{points:s,options:r}=e,{count:o,start:c,loop:d,ilen:h}=I2(s,n,i),f=Kk(r);let{move:m=!0,reverse:g}=i||{},v,b,x;for(v=0;v<=h;++v)b=s[(c+(g?h-v:v))%o],!b.skip&&(m?(t.moveTo(b.x,b.y),m=!1):f(t,x,b,g,r.stepped),x=b);return d&&(b=s[(c+(g?h:0))%o],f(t,x,b,g,r.stepped)),!!d}function Xk(t,e,n,i){const s=e.points,{count:r,start:o,ilen:c}=I2(s,n,i),{move:d=!0,reverse:h}=i||{};let f=0,m=0,g,v,b,x,k,O;const T=C=>(o+(h?c-C:C))%r,N=()=>{x!==k&&(t.lineTo(f,k),t.lineTo(f,x),t.lineTo(f,O))};for(d&&(v=s[T(0)],t.moveTo(v.x,v.y)),g=0;g<=c;++g){if(v=s[T(g)],v.skip)continue;const C=v.x,B=v.y,$=C|0;$===b?(B<x?x=B:B>k&&(k=B),f=(m*f+C)/++m):(N(),t.lineTo(C,B),b=$,m=0,x=k=B),O=B}N()}function J1(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?Xk:Zk}function Jk(t){return t.stepped?Xw:t.tension||t.cubicInterpolationMode==="monotone"?Jw:Er}function Qk(t,e,n,i){let s=e._path;s||(s=e._path=new Path2D,e.path(s,n,i)&&s.closePath()),T2(t,e.options),t.stroke(s)}function ex(t,e,n,i){const{segments:s,options:r}=e,o=J1(e);for(const c of s)T2(t,r,c.style),t.beginPath(),o(t,e,c,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}const tx=typeof Path2D=="function";function nx(t,e,n,i){tx&&!e.options.segment?Qk(t,e,n,i):ex(t,e,n,i)}class Us extends Bi{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 s=i.spanGaps?this._loop:this._fullLoop;Ww(this._points,i,e,s,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=s9(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,s=e[n],r=this.points,o=Fm(this,{property:n,start:s,end:s});if(!o.length)return;const c=[],d=Jk(i);let h,f;for(h=0,f=o.length;h<f;++h){const{start:m,end:g}=o[h],v=r[m],b=r[g];if(v===b){c.push(v);continue}const x=Math.abs((s-v[n])/(b[n]-v[n])),k=d(v,b,x,i.stepped);k[n]=e[n],c.push(k)}return c.length===1?c[0]:c}pathSegment(e,n,i){return J1(this)(e,this,n,i)}path(e,n,i){const s=this.segments,r=J1(this);let o=this._loop;n=n||0,i=i||this.points.length-n;for(const c of s)o&=r(e,this,c,{start:n,end:n+i-1});return!!o}draw(e,n,i,s){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(e.save(),nx(e,this,i,s),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}re(Us,"id","line"),re(Us,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),re(Us,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),re(Us,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function B2(t,e,n,i){const s=t.options,{[n]:r}=t.getProps([n],i);return Math.abs(e-r)<s.radius+s.hitRadius}class ad extends Bi{constructor(n){super();re(this,"parsed");re(this,"skip");re(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,i,s){const r=this.options,{x:o,y:c}=this.getProps(["x","y"],s);return Math.pow(n-o,2)+Math.pow(i-c,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(n,i){return B2(this,n,"x",i)}inYRange(n,i){return B2(this,n,"y",i)}getCenterPoint(n){const{x:i,y:s}=this.getProps(["x","y"],n);return{x:i,y:s}}size(n){n=n||this.options||{};let i=n.radius||0;i=Math.max(i,i&&n.hoverRadius||0);const s=i&&n.borderWidth||0;return(i+s)*2}draw(n,i){const s=this.options;this.skip||s.radius<.1||!fs(this,i,this.size(s)/2)||(n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.fillStyle=s.backgroundColor,N1(n,s,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}re(ad,"id","point"),re(ad,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),re(ad,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function A2(t,e){const{x:n,y:i,base:s,width:r,height:o}=t.getProps(["x","y","base","width","height"],e);let c,d,h,f,m;return t.horizontal?(m=o/2,c=Math.min(n,s),d=Math.max(n,s),h=i-m,f=i+m):(m=r/2,c=n-m,d=n+m,h=Math.min(i,s),f=Math.max(i,s)),{left:c,top:h,right:d,bottom:f}}function qs(t,e,n,i){return t?0:dn(e,n,i)}function ix(t,e,n){const i=t.options.borderWidth,s=t.borderSkipped,r=Cm(i);return{t:qs(s.top,r.top,0,n),r:qs(s.right,r.right,0,e),b:qs(s.bottom,r.bottom,0,n),l:qs(s.left,r.left,0,e)}}function sx(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),s=t.options.borderRadius,r=Mr(s),o=Math.min(e,n),c=t.borderSkipped,d=i||Ue(s);return{topLeft:qs(!d||c.top||c.left,r.topLeft,0,o),topRight:qs(!d||c.top||c.right,r.topRight,0,o),bottomLeft:qs(!d||c.bottom||c.left,r.bottomLeft,0,o),bottomRight:qs(!d||c.bottom||c.right,r.bottomRight,0,o)}}function rx(t){const e=A2(t),n=e.right-e.left,i=e.bottom-e.top,s=ix(t,n/2,i/2),r=sx(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:r},inner:{x:e.left+s.l,y:e.top+s.t,w:n-s.l-s.r,h:i-s.t-s.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,r.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(s.b,s.r))}}}}function Q1(t,e,n,i){const s=e===null,r=n===null,c=t&&!(s&&r)&&A2(t,i);return c&&(s||us(e,c.left,c.right))&&(r||us(n,c.top,c.bottom))}function ax(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function ox(t,e){t.rect(e.x,e.y,e.w,e.h)}function e0(t,e,n={}){const i=t.x!==n.x?-e:0,s=t.y!==n.y?-e:0,r=(t.x+t.w!==n.x+n.w?e:0)-i,o=(t.y+t.h!==n.y+n.h?e:0)-s;return{x:t.x+i,y:t.y+s,w:t.w+r,h:t.h+o,radius:t.radius}}class od extends Bi{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:s}}=this,{inner:r,outer:o}=rx(this),c=ax(o.radius)?il:ox;e.save(),(o.w!==r.w||o.h!==r.h)&&(e.beginPath(),c(e,e0(o,n,r)),e.clip(),c(e,e0(r,-n,o)),e.fillStyle=i,e.fill("evenodd")),e.beginPath(),c(e,e0(r,n)),e.fillStyle=s,e.fill(),e.restore()}inRange(e,n,i){return Q1(this,e,n,i)}inXRange(e,n){return Q1(this,e,null,n)}inYRange(e,n){return Q1(this,null,e,n)}getCenterPoint(e){const{x:n,y:i,base:s,horizontal:r}=this.getProps(["x","y","base","horizontal"],e);return{x:r?(n+s)/2:n,y:r?i:(i+s)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}re(od,"id","bar"),re(od,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),re(od,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var lx=Object.freeze({__proto__:null,ArcElement:ml,BarElement:od,LineElement:Us,PointElement:ad});const t0=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],V2=t0.map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function $2(t){return t0[t%t0.length]}function N2(t){return V2[t%V2.length]}function cx(t,e){return t.borderColor=$2(e),t.backgroundColor=N2(e),++e}function dx(t,e){return t.backgroundColor=t.data.map(()=>$2(e++)),e}function ux(t,e){return t.backgroundColor=t.data.map(()=>N2(e++)),e}function hx(t){let e=0;return(n,i)=>{const s=t.getDatasetMeta(i).controller;s instanceof Tr?e=dx(n,e):s instanceof Ma?e=ux(n,e):s&&(e=cx(n,e))}}function z2(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}function fx(t){return t&&(t.borderColor||t.backgroundColor)}var px={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,n){if(!n.enabled)return;const{data:{datasets:i},options:s}=t.config,{elements:r}=s;if(!n.forceOverride&&(z2(i)||fx(s)||r&&z2(r)))return;const o=hx(t);i.forEach(o)}};function mx(t,e,n,i,s){const r=s.samples||i;if(r>=n)return t.slice(e,e+n);const o=[],c=(n-2)/(r-2);let d=0;const h=e+n-1;let f=e,m,g,v,b,x;for(o[d++]=t[f],m=0;m<r-2;m++){let k=0,O=0,T;const N=Math.floor((m+1)*c)+1+e,C=Math.min(Math.floor((m+2)*c)+1,n)+e,B=C-N;for(T=N;T<C;T++)k+=t[T].x,O+=t[T].y;k/=B,O/=B;const $=Math.floor(m*c)+1+e,L=Math.min(Math.floor((m+1)*c)+1,n)+e,{x:F,y:q}=t[f];for(v=b=-1,T=$;T<L;T++)b=.5*Math.abs((F-k)*(t[T].y-q)-(F-t[T].x)*(O-q)),b>v&&(v=b,g=t[T],x=T);o[d++]=g,f=x}return o[d++]=t[h],o}function gx(t,e,n,i){let s=0,r=0,o,c,d,h,f,m,g,v,b,x;const k=[],O=e+n-1,T=t[e].x,C=t[O].x-T;for(o=e;o<e+n;++o){c=t[o],d=(c.x-T)/C*i,h=c.y;const B=d|0;if(B===f)h<b?(b=h,m=o):h>x&&(x=h,g=o),s=(r*s+c.x)/++r;else{const $=o-1;if(!Xe(m)&&!Xe(g)){const L=Math.min(m,g),F=Math.max(m,g);L!==v&&L!==$&&k.push({...t[L],x:s}),F!==v&&F!==$&&k.push({...t[F],x:s})}o>0&&$!==v&&k.push(t[$]),k.push(c),f=B,r=0,b=x=h,m=g=v=o}}return k}function P2(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function L2(t){t.data.datasets.forEach(e=>{P2(e)})}function _x(t,e){const n=e.length;let i=0,s;const{iScale:r}=t,{min:o,max:c,minDefined:d,maxDefined:h}=r.getUserBounds();return d&&(i=dn(hs(e,r.axis,o).lo,0,n-1)),h?s=dn(hs(e,r.axis,c).hi+1,i,n)-i:s=n-i,{start:i,count:s}}var vx={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled){L2(t);return}const i=t.width;t.data.datasets.forEach((s,r)=>{const{_data:o,indexAxis:c}=s,d=t.getDatasetMeta(r),h=o||s.data;if(sl([c,t.options.indexAxis])==="y"||!d.controller.supportsDecimation)return;const f=t.scales[d.xAxisID];if(f.type!=="linear"&&f.type!=="time"||t.options.parsing)return;let{start:m,count:g}=_x(d,h);const v=n.threshold||4*i;if(g<=v){P2(s);return}Xe(o)&&(s._data=h,delete s.data,Object.defineProperty(s,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(x){this._data=x}}));let b;switch(n.algorithm){case"lttb":b=mx(h,m,g,i,n);break;case"min-max":b=gx(h,m,g,i);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}s._decimated=b})},destroy(t){L2(t)}};function yx(t,e,n){const i=t.segments,s=t.points,r=e.points,o=[];for(const c of i){let{start:d,end:h}=c;h=i0(d,h,s);const f=n0(n,s[d],s[h],c.loop);if(!e.segments){o.push({source:c,target:f,start:s[d],end:s[h]});continue}const m=Fm(e,f);for(const g of m){const v=n0(n,r[g.start],r[g.end],g.loop),b=Lm(c,s,v);for(const x of b)o.push({source:x,target:g,start:{[n]:F2(f,v,"start",Math.max)},end:{[n]:F2(f,v,"end",Math.min)}})}}return o}function n0(t,e,n,i){if(i)return;let s=e[t],r=n[t];return t==="angle"&&(s=Qn(s),r=Qn(r)),{property:t,start:s,end:r}}function bx(t,e){const{x:n=null,y:i=null}=t||{},s=e.points,r=[];return e.segments.forEach(({start:o,end:c})=>{c=i0(o,c,s);const d=s[o],h=s[c];i!==null?(r.push({x:d.x,y:i}),r.push({x:h.x,y:i})):n!==null&&(r.push({x:n,y:d.y}),r.push({x:n,y:h.y}))}),r}function i0(t,e,n){for(;e>t;e--){const i=n[e];if(!isNaN(i.x)&&!isNaN(i.y))break}return e}function F2(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function R2(t,e){let n=[],i=!1;return Dt(t)?(i=!0,n=t):n=bx(t,e),n.length?new Us({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function H2(t){return t&&t.fill!==!1}function wx(t,e,n){let s=t[e].fill;const r=[e];let o;if(!n)return s;for(;s!==!1&&r.indexOf(s)===-1;){if(!Ht(s))return s;if(o=t[s],!o)return!1;if(o.visible)return s;r.push(s),s=o.fill}return!1}function kx(t,e,n){const i=Mx(t);if(Ue(i))return isNaN(i.value)?!1:i;let s=parseFloat(i);return Ht(s)&&Math.floor(s)===s?xx(i[0],e,s,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function xx(t,e,n,i){return(t==="-"||t==="+")&&(n=e+n),n===e||n<0||n>=i?!1:n}function Cx(t,e){let n=null;return t==="start"?n=e.bottom:t==="end"?n=e.top:Ue(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}function Sx(t,e,n){let i;return t==="start"?i=n:t==="end"?i=e.options.reverse?e.min:e.max:Ue(t)?i=t.value:i=e.getBaseValue(),i}function Mx(t){const e=t.options,n=e.fill;let i=$e(n&&n.target,n);return i===void 0&&(i=!!e.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function Ox(t){const{scale:e,index:n,line:i}=t,s=[],r=i.segments,o=i.points,c=Dx(e,n);c.push(R2({x:null,y:e.bottom},i));for(let d=0;d<r.length;d++){const h=r[d];for(let f=h.start;f<=h.end;f++)Ex(s,o[f],c)}return new Us({points:s,options:{}})}function Dx(t,e){const n=[],i=t.getMatchingVisibleMetas("line");for(let s=0;s<i.length;s++){const r=i[s];if(r.index===e)break;r.hidden||n.unshift(r.dataset)}return n}function Ex(t,e,n){const i=[];for(let s=0;s<n.length;s++){const r=n[s],{first:o,last:c,point:d}=Tx(r,e,"x");if(!(!d||o&&c)){if(o)i.unshift(d);else if(t.push(d),!c)break}}t.push(...i)}function Tx(t,e,n){const i=t.interpolate(e,n);if(!i)return{};const s=i[n],r=t.segments,o=t.points;let c=!1,d=!1;for(let h=0;h<r.length;h++){const f=r[h],m=o[f.start][n],g=o[f.end][n];if(us(s,m,g)){c=s===m,d=s===g;break}}return{first:c,last:d,point:i}}class W2{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,n,i){const{x:s,y:r,radius:o}=this;return n=n||{start:0,end:Tt},e.arc(s,r,o,n.end,n.start,!0),!i.bounds}interpolate(e){const{x:n,y:i,radius:s}=this,r=e.angle;return{x:n+Math.cos(r)*s,y:i+Math.sin(r)*s,angle:r}}}function Ix(t){const{chart:e,fill:n,line:i}=t;if(Ht(n))return Bx(e,n);if(n==="stack")return Ox(t);if(n==="shape")return!0;const s=Ax(t);return s instanceof W2?s:R2(s,i)}function Bx(t,e){const n=t.getDatasetMeta(e);return n&&t.isDatasetVisible(e)?n.dataset:null}function Ax(t){return(t.scale||{}).getPointPositionForValue?$x(t):Vx(t)}function Vx(t){const{scale:e={},fill:n}=t,i=Cx(n,e);if(Ht(i)){const s=e.isHorizontal();return{x:s?i:null,y:s?null:i}}return null}function $x(t){const{scale:e,fill:n}=t,i=e.options,s=e.getLabels().length,r=i.reverse?e.max:e.min,o=Sx(n,e,r),c=[];if(i.grid.circular){const d=e.getPointPositionForValue(0,r);return new W2({x:d.x,y:d.y,radius:e.getDistanceFromCenterForValue(o)})}for(let d=0;d<s;++d)c.push(e.getPointPositionForValue(d,o));return c}function s0(t,e,n){const i=Ix(e),{line:s,scale:r,axis:o}=e,c=s.options,d=c.fill,h=c.backgroundColor,{above:f=h,below:m=h}=d||{};i&&s.points.length&&(Rc(t,n),Nx(t,{line:s,target:i,above:f,below:m,area:n,scale:r,axis:o}),Hc(t))}function Nx(t,e){const{line:n,target:i,above:s,below:r,area:o,scale:c}=e,d=n._loop?"angle":e.axis;t.save(),d==="x"&&r!==s&&(Y2(t,i,o.top),j2(t,{line:n,target:i,color:s,scale:c,property:d}),t.restore(),t.save(),Y2(t,i,o.bottom)),j2(t,{line:n,target:i,color:r,scale:c,property:d}),t.restore()}function Y2(t,e,n){const{segments:i,points:s}=e;let r=!0,o=!1;t.beginPath();for(const c of i){const{start:d,end:h}=c,f=s[d],m=s[i0(d,h,s)];r?(t.moveTo(f.x,f.y),r=!1):(t.lineTo(f.x,n),t.lineTo(f.x,f.y)),o=!!e.pathSegment(t,c,{move:o}),o?t.closePath():t.lineTo(m.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function j2(t,e){const{line:n,target:i,property:s,color:r,scale:o}=e,c=yx(n,i,s);for(const{source:d,target:h,start:f,end:m}of c){const{style:{backgroundColor:g=r}={}}=d,v=i!==!0;t.save(),t.fillStyle=g,zx(t,o,v&&n0(s,f,m)),t.beginPath();const b=!!n.pathSegment(t,d);let x;if(v){b?t.closePath():U2(t,i,m,s);const k=!!i.pathSegment(t,h,{move:b,reverse:!0});x=b&&k,x||U2(t,i,f,s)}t.closePath(),t.fill(x?"evenodd":"nonzero"),t.restore()}}function zx(t,e,n){const{top:i,bottom:s}=e.chart.chartArea,{property:r,start:o,end:c}=n||{};r==="x"&&(t.beginPath(),t.rect(o,i,c-o,s-i),t.clip())}function U2(t,e,n,i){const s=e.interpolate(n,i);s&&t.lineTo(s.x,s.y)}var Px={id:"filler",afterDatasetsUpdate(t,e,n){const i=(t.data.datasets||[]).length,s=[];let r,o,c,d;for(o=0;o<i;++o)r=t.getDatasetMeta(o),c=r.dataset,d=null,c&&c.options&&c instanceof Us&&(d={visible:t.isDatasetVisible(o),index:o,fill:kx(c,o,i),chart:t,axis:r.controller.options.indexAxis,scale:r.vScale,line:c}),r.$filler=d,s.push(d);for(o=0;o<i;++o)d=s[o],!(!d||d.fill===!1)&&(d.fill=wx(s,o,n.propagate))},beforeDraw(t,e,n){const i=n.drawTime==="beforeDraw",s=t.getSortedVisibleDatasetMetas(),r=t.chartArea;for(let o=s.length-1;o>=0;--o){const c=s[o].$filler;!c||(c.line.updateControlPoints(r,c.axis),i&&c.fill&&s0(t.ctx,c,r))}},beforeDatasetsDraw(t,e,n){if(n.drawTime!=="beforeDatasetsDraw")return;const i=t.getSortedVisibleDatasetMetas();for(let s=i.length-1;s>=0;--s){const r=i[s].$filler;H2(r)&&s0(t.ctx,r,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;!H2(i)||n.drawTime!=="beforeDatasetDraw"||s0(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const q2=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}},Lx=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class G2 extends Bi{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,i){this.maxWidth=e,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=St(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(i=>e.filter(i,this.chart.data))),e.sort&&(n=n.sort((i,s)=>e.sort(i,s,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const i=e.labels,s=en(i.font),r=s.size,o=this._computeTitleHeight(),{boxWidth:c,itemHeight:d}=q2(i,r);let h,f;n.font=s.string,this.isHorizontal()?(h=this.maxWidth,f=this._fitRows(o,r,c,d)+10):(f=this.maxHeight,h=this._fitCols(o,s,c,d)+10),this.width=Math.min(h,e.maxWidth||this.maxWidth),this.height=Math.min(f,e.maxHeight||this.maxHeight)}_fitRows(e,n,i,s){const{ctx:r,maxWidth:o,options:{labels:{padding:c}}}=this,d=this.legendHitBoxes=[],h=this.lineWidths=[0],f=s+c;let m=e;r.textAlign="left",r.textBaseline="middle";let g=-1,v=-f;return this.legendItems.forEach((b,x)=>{const k=i+n/2+r.measureText(b.text).width;(x===0||h[h.length-1]+k+2*c>o)&&(m+=f,h[h.length-(x>0?0:1)]=0,v+=f,g++),d[x]={left:0,top:v,row:g,width:k,height:s},h[h.length-1]+=k+c}),m}_fitCols(e,n,i,s){const{ctx:r,maxHeight:o,options:{labels:{padding:c}}}=this,d=this.legendHitBoxes=[],h=this.columnSizes=[],f=o-e;let m=c,g=0,v=0,b=0,x=0;return this.legendItems.forEach((k,O)=>{const{itemWidth:T,itemHeight:N}=Fx(i,n,r,k,s);O>0&&v+N+2*c>f&&(m+=g+c,h.push({width:g,height:v}),b+=g+c,x++,g=v=0),d[O]={left:b,top:v,col:x,width:T,height:N},g=Math.max(g,T),v+=N+c}),m+=g,h.push({width:g,height:v}),m}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:s},rtl:r}}=this,o=Sa(r,this.left,this.width);if(this.isHorizontal()){let c=0,d=vn(i,this.left+s,this.right-this.lineWidths[c]);for(const h of n)c!==h.row&&(c=h.row,d=vn(i,this.left+s,this.right-this.lineWidths[c])),h.top+=this.top+e+s,h.left=o.leftForLtr(o.x(d),h.width),d+=h.width+s}else{let c=0,d=vn(i,this.top+e+s,this.bottom-this.columnSizes[c].height);for(const h of n)h.col!==c&&(c=h.col,d=vn(i,this.top+e+s,this.bottom-this.columnSizes[c].height)),h.top=d,h.left+=this.left+s,h.left=o.leftForLtr(o.x(h.left),h.width),d+=h.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Rc(e,this),this._draw(),Hc(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:i,ctx:s}=this,{align:r,labels:o}=e,c=Wt.color,d=Sa(e.rtl,this.left,this.width),h=en(o.font),{padding:f}=o,m=h.size,g=m/2;let v;this.drawTitle(),s.textAlign=d.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=h.string;const{boxWidth:b,boxHeight:x,itemHeight:k}=q2(o,m),O=function($,L,F){if(isNaN(b)||b<=0||isNaN(x)||x<0)return;s.save();const q=$e(F.lineWidth,1);if(s.fillStyle=$e(F.fillStyle,c),s.lineCap=$e(F.lineCap,"butt"),s.lineDashOffset=$e(F.lineDashOffset,0),s.lineJoin=$e(F.lineJoin,"miter"),s.lineWidth=q,s.strokeStyle=$e(F.strokeStyle,c),s.setLineDash($e(F.lineDash,[])),o.usePointStyle){const ee={radius:x*Math.SQRT2/2,pointStyle:F.pointStyle,rotation:F.rotation,borderWidth:q},ne=d.xPlus($,b/2),K=L+g;xm(s,ee,ne,K,o.pointStyleWidth&&b)}else{const ee=L+Math.max((m-x)/2,0),ne=d.leftForLtr($,b),K=Mr(F.borderRadius);s.beginPath(),Object.values(K).some(ie=>ie!==0)?il(s,{x:ne,y:ee,w:b,h:x,radius:K}):s.rect(ne,ee,b,x),s.fill(),q!==0&&s.stroke()}s.restore()},T=function($,L,F){Sr(s,F.text,$,L+k/2,h,{strikethrough:F.hidden,textAlign:d.textAlign(F.textAlign)})},N=this.isHorizontal(),C=this._computeTitleHeight();N?v={x:vn(r,this.left+f,this.right-i[0]),y:this.top+f+C,line:0}:v={x:this.left+f,y:vn(r,this.top+C+f,this.bottom-n[0].height),line:0},$m(this.ctx,e.textDirection);const B=k+f;this.legendItems.forEach(($,L)=>{s.strokeStyle=$.fontColor,s.fillStyle=$.fontColor;const F=s.measureText($.text).width,q=d.textAlign($.textAlign||($.textAlign=o.textAlign)),ee=b+g+F;let ne=v.x,K=v.y;d.setWidth(this.width),N?L>0&&ne+ee+f>this.right&&(K=v.y+=B,v.line++,ne=v.x=vn(r,this.left+f,this.right-i[v.line])):L>0&&K+B>this.bottom&&(ne=v.x=ne+n[v.line].width+f,v.line++,K=v.y=vn(r,this.top+C+f,this.bottom-n[v.line].height));const ie=d.x(ne);if(O(ie,K,$),ne=ow(q,ne+b+g,N?ne+ee:this.right,e.rtl),T(d.x(ne),K,$),N)v.x+=ee+f;else if(typeof $.text!="string"){const pe=h.lineHeight;v.y+=K2($,pe)+f}else v.y+=B}),Nm(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,i=en(n.font),s=yn(n.padding);if(!n.display)return;const r=Sa(e.rtl,this.left,this.width),o=this.ctx,c=n.position,d=i.size/2,h=s.top+d;let f,m=this.left,g=this.width;if(this.isHorizontal())g=Math.max(...this.lineWidths),f=this.top+h,m=vn(e.align,m,this.right-g);else{const b=this.columnSizes.reduce((x,k)=>Math.max(x,k.height),0);f=h+vn(e.align,this.top,this.bottom-b-e.labels.padding-this._computeTitleHeight())}const v=vn(c,m,m+g);o.textAlign=r.textAlign(I1(c)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=i.string,Sr(o,n.text,v,f,i)}_computeTitleHeight(){const e=this.options.title,n=en(e.font),i=yn(e.padding);return e.display?n.lineHeight+i.height:0}_getLegendItemAt(e,n){let i,s,r;if(us(e,this.left,this.right)&&us(n,this.top,this.bottom)){for(r=this.legendHitBoxes,i=0;i<r.length;++i)if(s=r[i],us(e,s.left,s.left+s.width)&&us(n,s.top,s.top+s.height))return this.legendItems[i]}return null}handleEvent(e){const n=this.options;if(!Wx(e.type,n))return;const i=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const s=this._hoveredItem,r=Lx(s,i);s&&!r&&St(n.onLeave,[e,s,this],this),this._hoveredItem=i,i&&!r&&St(n.onHover,[e,i,this],this)}else i&&St(n.onClick,[e,i,this],this)}}function Fx(t,e,n,i,s){const r=Rx(i,t,e,n),o=Hx(s,i,e.lineHeight);return{itemWidth:r,itemHeight:o}}function Rx(t,e,n,i){let s=t.text;return s&&typeof s!="string"&&(s=s.reduce((r,o)=>r.length>o.length?r:o)),e+n.size/2+i.measureText(s).width}function Hx(t,e,n){let i=t;return typeof e.text!="string"&&(i=K2(e,n)),i}function K2(t,e){const n=t.text?t.text.length:0;return e*n}function Wx(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var Yx={id:"legend",_element:G2,start(t,e,n){const i=t.legend=new G2({ctx:t.ctx,options:n,chart:t});bn.configure(t,i,n),bn.addBox(t,i)},stop(t){bn.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;bn.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,s=n.chart;s.isDatasetVisible(i)?(s.hide(i),e.hidden=!0):(s.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:s,color:r,useBorderRadius:o,borderRadius:c}}=t.legend.options;return t._getSortedDatasetMetas().map(d=>{const h=d.controller.getStyle(n?0:void 0),f=yn(h.borderWidth);return{text:e[d.index].label,fillStyle:h.backgroundColor,fontColor:r,hidden:!d.visible,lineCap:h.borderCapStyle,lineDash:h.borderDash,lineDashOffset:h.borderDashOffset,lineJoin:h.borderJoinStyle,lineWidth:(f.width+f.height)/4,strokeStyle:h.borderColor,pointStyle:i||h.pointStyle,rotation:h.rotation,textAlign:s||h.textAlign,borderRadius:o&&(c||h.borderRadius),datasetIndex:d.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class r0 extends Bi{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,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.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const s=Dt(i.text)?i.text.length:1;this._padding=yn(i.padding);const r=s*en(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:i,bottom:s,right:r,options:o}=this,c=o.align;let d=0,h,f,m;return this.isHorizontal()?(f=vn(c,i,r),m=n+e,h=r-i):(o.position==="left"?(f=i+e,m=vn(c,s,n),d=Et*-.5):(f=r-e,m=vn(c,n,s),d=Et*.5),h=s-n),{titleX:f,titleY:m,maxWidth:h,rotation:d}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const i=en(n.font),r=i.lineHeight/2+this._padding.top,{titleX:o,titleY:c,maxWidth:d,rotation:h}=this._drawArgs(r);Sr(e,n.text,0,0,i,{color:n.color,maxWidth:d,rotation:h,textAlign:I1(n.align),textBaseline:"middle",translation:[o,c]})}}function jx(t,e){const n=new r0({ctx:t.ctx,options:e,chart:t});bn.configure(t,n,e),bn.addBox(t,n),t.titleBlock=n}var Ux={id:"title",_element:r0,start(t,e,n){jx(t,n)},stop(t){const e=t.titleBlock;bn.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;bn.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ld=new WeakMap;var qx={id:"subtitle",start(t,e,n){const i=new r0({ctx:t.ctx,options:n,chart:t});bn.configure(t,i,n),bn.addBox(t,i),ld.set(t,i)},stop(t){bn.removeBox(t,ld.get(t)),ld.delete(t)},beforeUpdate(t,e,n){const i=ld.get(t);bn.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const gl={average(t){if(!t.length)return!1;let e,n,i=new Set,s=0,r=0;for(e=0,n=t.length;e<n;++e){const c=t[e].element;if(c&&c.hasValue()){const d=c.tooltipPosition();i.add(d.x),s+=d.y,++r}}return{x:[...i].reduce((c,d)=>c+d)/i.size,y:s/r}},nearest(t,e){if(!t.length)return!1;let n=e.x,i=e.y,s=Number.POSITIVE_INFINITY,r,o,c;for(r=0,o=t.length;r<o;++r){const d=t[r].element;if(d&&d.hasValue()){const h=d.getCenterPoint(),f=E1(e,h);f<s&&(s=f,c=d)}}if(c){const d=c.tooltipPosition();n=d.x,i=d.y}return{x:n,y:i}}};function Ji(t,e){return e&&(Dt(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function ms(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
37
37
  `)>-1?t.split(`
38
- `):t}function Gx(t,e){const{element:n,datasetIndex:i,index:s}=e,r=t.getDatasetMeta(i).controller,{label:o,value:c}=r.getLabelAndValue(s);return{chart:t,label:o,parsed:r.getParsed(s),raw:t.data.datasets[i].data[s],formattedValue:c,dataset:r.getDataset(),dataIndex:s,datasetIndex:i,element:n}}function Z2(t,e){const n=t.chart.ctx,{body:i,footer:s,title:r}=t,{boxWidth:o,boxHeight:c}=e,d=en(e.bodyFont),h=en(e.titleFont),f=en(e.footerFont),m=r.length,g=s.length,v=i.length,b=yn(e.padding);let x=b.height,k=0,O=i.reduce((C,B)=>C+B.before.length+B.lines.length+B.after.length,0);if(O+=t.beforeBody.length+t.afterBody.length,m&&(x+=m*h.lineHeight+(m-1)*e.titleSpacing+e.titleMarginBottom),O){const C=e.displayColors?Math.max(c,d.lineHeight):d.lineHeight;x+=v*C+(O-v)*d.lineHeight+(O-1)*e.bodySpacing}g&&(x+=e.footerMarginTop+g*f.lineHeight+(g-1)*e.footerSpacing);let T=0;const N=function(C){k=Math.max(k,n.measureText(C).width+T)};return n.save(),n.font=h.string,dt(t.title,N),n.font=d.string,dt(t.beforeBody.concat(t.afterBody),N),T=e.displayColors?o+2+e.boxPadding:0,dt(i,C=>{dt(C.before,N),dt(C.lines,N),dt(C.after,N)}),T=0,n.font=f.string,dt(t.footer,N),n.restore(),k+=b.width,{width:k,height:x}}function Kx(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}function Zx(t,e,n,i){const{x:s,width:r}=i,o=n.caretSize+n.caretPadding;if(t==="left"&&s+r+o>e.width||t==="right"&&s-r-o<0)return!0}function Xx(t,e,n,i){const{x:s,width:r}=n,{width:o,chartArea:{left:c,right:d}}=t;let h="center";return i==="center"?h=s<=(c+d)/2?"left":"right":s<=r/2?h="left":s>=o-r/2&&(h="right"),Zx(h,t,e,n)&&(h="center"),h}function X2(t,e,n){const i=n.yAlign||e.yAlign||Kx(t,n);return{xAlign:n.xAlign||e.xAlign||Xx(t,e,n,i),yAlign:i}}function Jx(t,e){let{x:n,width:i}=t;return e==="right"?n-=i:e==="center"&&(n-=i/2),n}function Qx(t,e,n){let{y:i,height:s}=t;return e==="top"?i+=n:e==="bottom"?i-=s+n:i-=s/2,i}function J2(t,e,n,i){const{caretSize:s,caretPadding:r,cornerRadius:o}=t,{xAlign:c,yAlign:d}=n,h=s+r,{topLeft:f,topRight:m,bottomLeft:g,bottomRight:v}=Mr(o);let b=Jx(e,c);const x=Qx(e,d,h);return d==="center"?c==="left"?b+=h:c==="right"&&(b-=h):c==="left"?b-=Math.max(f,g)+s:c==="right"&&(b+=Math.max(m,v)+s),{x:dn(b,0,i.width-e.width),y:dn(x,0,i.height-e.height)}}function cd(t,e,n){const i=yn(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-i.right:t.x+i.left}function Q2(t){return Ji([],ms(t))}function eC(t,e,n){return js(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function eg(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const tg={beforeTitle:ds,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:ds,beforeBody:ds,beforeLabel:ds,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 Xe(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:ds,afterBody:ds,beforeFooter:ds,footer:ds,afterFooter:ds};function Fn(t,e,n,i){const s=t[e].call(n,i);return typeof s>"u"?tg[e].call(n,i):s}class a0 extends Bi{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,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()),s=i.enabled&&n.options.animation&&i.animations,r=new Ym(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=eC(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:i}=n,s=Fn(i,"beforeTitle",this,e),r=Fn(i,"title",this,e),o=Fn(i,"afterTitle",this,e);let c=[];return c=Ji(c,ms(s)),c=Ji(c,ms(r)),c=Ji(c,ms(o)),c}getBeforeBody(e,n){return Q2(Fn(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:i}=n,s=[];return dt(e,r=>{const o={before:[],lines:[],after:[]},c=eg(i,r);Ji(o.before,ms(Fn(c,"beforeLabel",this,r))),Ji(o.lines,Fn(c,"label",this,r)),Ji(o.after,ms(Fn(c,"afterLabel",this,r))),s.push(o)}),s}getAfterBody(e,n){return Q2(Fn(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:i}=n,s=Fn(i,"beforeFooter",this,e),r=Fn(i,"footer",this,e),o=Fn(i,"afterFooter",this,e);let c=[];return c=Ji(c,ms(s)),c=Ji(c,ms(r)),c=Ji(c,ms(o)),c}_createItems(e){const n=this._active,i=this.chart.data,s=[],r=[],o=[];let c=[],d,h;for(d=0,h=n.length;d<h;++d)c.push(Gx(this.chart,n[d]));return e.filter&&(c=c.filter((f,m,g)=>e.filter(f,m,g,i))),e.itemSort&&(c=c.sort((f,m)=>e.itemSort(f,m,i))),dt(c,f=>{const m=eg(e.callbacks,f);s.push(Fn(m,"labelColor",this,f)),r.push(Fn(m,"labelPointStyle",this,f)),o.push(Fn(m,"labelTextColor",this,f))}),this.labelColors=s,this.labelPointStyles=r,this.labelTextColors=o,this.dataPoints=c,c}update(e,n){const i=this.options.setContext(this.getContext()),s=this._active;let r,o=[];if(!s.length)this.opacity!==0&&(r={opacity:0});else{const c=gl[i.position].call(this,s,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const d=this._size=Z2(this,i),h=Object.assign({},c,d),f=X2(this.chart,i,h),m=J2(i,h,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,r={opacity:1,x:m.x,y:m.y,width:d.width,height:d.height,caretX:c.x,caretY:c.y}}this._tooltipItems=o,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,s){const r=this.getCaretPosition(e,i,s);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(e,n,i){const{xAlign:s,yAlign:r}=this,{caretSize:o,cornerRadius:c}=i,{topLeft:d,topRight:h,bottomLeft:f,bottomRight:m}=Mr(c),{x:g,y:v}=e,{width:b,height:x}=n;let k,O,T,N,C,B;return r==="center"?(C=v+x/2,s==="left"?(k=g,O=k-o,N=C+o,B=C-o):(k=g+b,O=k+o,N=C-o,B=C+o),T=k):(s==="left"?O=g+Math.max(d,f)+o:s==="right"?O=g+b-Math.max(h,m)-o:O=this.caretX,r==="top"?(N=v,C=N-o,k=O-o,T=O+o):(N=v+x,C=N+o,k=O+o,T=O-o),B=N),{x1:k,x2:O,x3:T,y1:N,y2:C,y3:B}}drawTitle(e,n,i){const s=this.title,r=s.length;let o,c,d;if(r){const h=Sa(i.rtl,this.x,this.width);for(e.x=cd(this,i.titleAlign,i),n.textAlign=h.textAlign(i.titleAlign),n.textBaseline="middle",o=en(i.titleFont),c=i.titleSpacing,n.fillStyle=i.titleColor,n.font=o.string,d=0;d<r;++d)n.fillText(s[d],h.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+c,d+1===r&&(e.y+=i.titleMarginBottom-c)}}_drawColorBox(e,n,i,s,r){const o=this.labelColors[i],c=this.labelPointStyles[i],{boxHeight:d,boxWidth:h}=r,f=en(r.bodyFont),m=cd(this,"left",r),g=s.x(m),v=d<f.lineHeight?(f.lineHeight-d)/2:0,b=n.y+v;if(r.usePointStyle){const x={radius:Math.min(h,d)/2,pointStyle:c.pointStyle,rotation:c.rotation,borderWidth:1},k=s.leftForLtr(g,h)+h/2,O=b+d/2;e.strokeStyle=r.multiKeyBackground,e.fillStyle=r.multiKeyBackground,N1(e,x,k,O),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,N1(e,x,k,O)}else{e.lineWidth=Ue(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;const x=s.leftForLtr(g,h),k=s.leftForLtr(s.xPlus(g,1),h-2),O=Mr(o.borderRadius);Object.values(O).some(T=>T!==0)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,il(e,{x,y:b,w:h,h:d,radius:O}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),il(e,{x:k,y:b+1,w:h-2,h:d-2,radius:O}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(x,b,h,d),e.strokeRect(x,b,h,d),e.fillStyle=o.backgroundColor,e.fillRect(k,b+1,h-2,d-2))}e.fillStyle=this.labelTextColors[i]}drawBody(e,n,i){const{body:s}=this,{bodySpacing:r,bodyAlign:o,displayColors:c,boxHeight:d,boxWidth:h,boxPadding:f}=i,m=en(i.bodyFont);let g=m.lineHeight,v=0;const b=Sa(i.rtl,this.x,this.width),x=function(F){n.fillText(F,b.x(e.x+v),e.y+g/2),e.y+=g+r},k=b.textAlign(o);let O,T,N,C,B,$,L;for(n.textAlign=o,n.textBaseline="middle",n.font=m.string,e.x=cd(this,k,i),n.fillStyle=i.bodyColor,dt(this.beforeBody,x),v=c&&k!=="right"?o==="center"?h/2+f:h+2+f:0,C=0,$=s.length;C<$;++C){for(O=s[C],T=this.labelTextColors[C],n.fillStyle=T,dt(O.before,x),N=O.lines,c&&N.length&&(this._drawColorBox(n,e,C,b,i),g=Math.max(m.lineHeight,d)),B=0,L=N.length;B<L;++B)x(N[B]),g=m.lineHeight;dt(O.after,x)}v=0,g=m.lineHeight,dt(this.afterBody,x),e.y-=r}drawFooter(e,n,i){const s=this.footer,r=s.length;let o,c;if(r){const d=Sa(i.rtl,this.x,this.width);for(e.x=cd(this,i.footerAlign,i),e.y+=i.footerMarginTop,n.textAlign=d.textAlign(i.footerAlign),n.textBaseline="middle",o=en(i.footerFont),n.fillStyle=i.footerColor,n.font=o.string,c=0;c<r;++c)n.fillText(s[c],d.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+i.footerSpacing}}drawBackground(e,n,i,s){const{xAlign:r,yAlign:o}=this,{x:c,y:d}=e,{width:h,height:f}=i,{topLeft:m,topRight:g,bottomLeft:v,bottomRight:b}=Mr(s.cornerRadius);n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.beginPath(),n.moveTo(c+m,d),o==="top"&&this.drawCaret(e,n,i,s),n.lineTo(c+h-g,d),n.quadraticCurveTo(c+h,d,c+h,d+g),o==="center"&&r==="right"&&this.drawCaret(e,n,i,s),n.lineTo(c+h,d+f-b),n.quadraticCurveTo(c+h,d+f,c+h-b,d+f),o==="bottom"&&this.drawCaret(e,n,i,s),n.lineTo(c+v,d+f),n.quadraticCurveTo(c,d+f,c,d+f-v),o==="center"&&r==="left"&&this.drawCaret(e,n,i,s),n.lineTo(c,d+m),n.quadraticCurveTo(c,d,c+m,d),n.closePath(),n.fill(),s.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,i=this.$animations,s=i&&i.x,r=i&&i.y;if(s||r){const o=gl[e.position].call(this,this._active,this._eventPosition);if(!o)return;const c=this._size=Z2(this,e),d=Object.assign({},o,this._size),h=X2(n,e,d),f=J2(e,d,h,n);(s._to!==f.x||r._to!==f.y)&&(this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=c.width,this.height=c.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},r={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=yn(n.padding),c=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&c&&(e.save(),e.globalAlpha=i,this.drawBackground(r,e,s,n),$m(e,n.textDirection),r.y+=o.top,this.drawTitle(r,e,n),this.drawBody(r,e,n),this.drawFooter(r,e,n),Nm(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const i=this._active,s=e.map(({datasetIndex:c,index:d})=>{const h=this.chart.getDatasetMeta(c);if(!h)throw new Error("Cannot find a dataset at index "+c);return{datasetIndex:c,element:h.data[d],index:d}}),r=!$c(i,s),o=this._positionChanged(s,n);(r||o)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,r=this._active||[],o=this._getActiveElements(e,r,n,i),c=this._positionChanged(o,e),d=n||!$c(o,r)||c;return d&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),d}_getActiveElements(e,n,i,s){const r=this.options;if(e.type==="mouseout")return[];if(!s)return n.filter(c=>this.chart.data.datasets[c.datasetIndex]&&this.chart.getDatasetMeta(c.datasetIndex).controller.getParsed(c.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,r.mode,r,i);return r.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:i,caretY:s,options:r}=this,o=gl[r.position].call(this,e,n);return o!==!1&&(i!==o.x||s!==o.y)}}re(a0,"positioners",gl);var tC={id:"tooltip",_element:a0,positioners:gl,afterInit(t,e,n){n&&(t.tooltip=new a0({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,cancelable:!0})===!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:tg},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"]},nC=Object.freeze({__proto__:null,Colors:px,Decimation:vx,Filler:Px,Legend:Yx,SubTitle:qx,Title:Ux,Tooltip:tC});const iC=(t,e,n,i)=>(typeof e=="string"?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function sC(t,e,n,i){const s=t.indexOf(e);if(s===-1)return iC(t,e,n,i);const r=t.lastIndexOf(e);return s!==r?n:s}const rC=(t,e)=>t===null?null:dn(Math.round(t),0,e);function ng(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class o0 extends Br{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:s,label:r}of n)i[s]===r&&i.splice(s,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(Xe(e))return null;const i=this.getLabels();return n=isFinite(n)&&i[n]===e?n:sC(i,e,$e(n,e),this._addedLabels),rC(n,i.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(i=0),n||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const e=this.min,n=this.max,i=this.options.offset,s=[];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 o=e;o<=n;o++)s.push({value:o});return s}getLabelForValue(e){return ng.call(this,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}}re(o0,"id","category"),re(o0,"defaults",{ticks:{callback:ng}});function aC(t,e){const n=[],{bounds:s,step:r,min:o,max:c,precision:d,count:h,maxTicks:f,maxDigits:m,includeBounds:g}=t,v=r||1,b=f-1,{min:x,max:k}=e,O=!Xe(o),T=!Xe(c),N=!Xe(h),C=(k-x)/(m+1);let B=am((k-x)/b/v)*v,$,L,F,q;if(B<1e-14&&!O&&!T)return[{value:x},{value:k}];q=Math.ceil(k/B)-Math.floor(x/B),q>b&&(B=am(q*B/b/v)*v),Xe(d)||($=Math.pow(10,d),B=Math.ceil(B*$)/$),s==="ticks"?(L=Math.floor(x/B)*B,F=Math.ceil(k/B)*B):(L=x,F=k),O&&T&&r&&ew((c-o)/r,B/1e3)?(q=Math.round(Math.min((c-o)/B,f)),B=(c-o)/q,L=o,F=c):N?(L=O?o:L,F=T?c:F,q=h-1,B=(F-L)/q):(q=(F-L)/B,Jo(q,Math.round(q),B/1e3)?q=Math.round(q):q=Math.ceil(q));const ee=Math.max(lm(B),lm(L));$=Math.pow(10,Xe(d)?ee:d),L=Math.round(L*$)/$,F=Math.round(F*$)/$;let ne=0;for(O&&(g&&L!==o?(n.push({value:o}),L<o&&ne++,Jo(Math.round((L+ne*B)*$)/$,o,ig(o,C,t))&&ne++):L<o&&ne++);ne<q;++ne){const K=Math.round((L+ne*B)*$)/$;if(T&&K>c)break;n.push({value:K})}return T&&g&&F!==c?n.length&&Jo(n[n.length-1].value,c,ig(c,C,t))?n[n.length-1].value=c:n.push({value:c}):(!T||F===c)&&n.push({value:F}),n}function ig(t,e,{horizontal:n,minRotation:i}){const s=Ti(i),r=(n?Math.sin(s):Math.cos(s))||.001,o=.75*e*(""+t).length;return Math.min(e/r,o)}class dd extends Br{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 Xe(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:s,max:r}=this;const o=d=>s=n?s:d,c=d=>r=i?r:d;if(e){const d=Zi(s),h=Zi(r);d<0&&h<0?c(0):d>0&&h>0&&o(0)}if(s===r){let d=r===0?1:Math.abs(r*.05);c(r+d),e||o(s-d)}this.min=s,this.max=r}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=e,s;return i?(s=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),n=n||11),n&&(s=Math.min(n,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s={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,o=aC(s,r);return e.bounds==="ticks"&&om(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&e.length){const s=(i-n)/Math.max(e.length-1,1)/2;n-=s,i+=s}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(e){return tl(e,this.chart.options.locale,this.options.ticks.format)}}class l0 extends dd{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Ht(e)?e:0,this.max=Ht(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,i=Ti(this.options.ticks.minRotation),s=(e?Math.sin(i):Math.cos(i))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,r.lineHeight/s))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}re(l0,"id","linear"),re(l0,"defaults",{ticks:{callback:Lc.formatters.numeric}});const _l=t=>Math.floor(Ys(t)),Ar=(t,e)=>Math.pow(10,_l(t)+e);function sg(t){return t/Math.pow(10,_l(t))===1}function rg(t,e,n){const i=Math.pow(10,n),s=Math.floor(t/i);return Math.ceil(e/i)-s}function oC(t,e){const n=e-t;let i=_l(n);for(;rg(t,e,i)>10;)i++;for(;rg(t,e,i)<10;)i--;return Math.min(i,_l(t))}function lC(t,{min:e,max:n}){e=Jn(t.min,e);const i=[],s=_l(e);let r=oC(e,n),o=r<0?Math.pow(10,Math.abs(r)):1;const c=Math.pow(10,r),d=s>r?Math.pow(10,s):0,h=Math.round((e-d)*o)/o,f=Math.floor((e-d)/c/10)*c*10;let m=Math.floor((h-f)/Math.pow(10,r)),g=Jn(t.min,Math.round((d+f+m*Math.pow(10,r))*o)/o);for(;g<n;)i.push({value:g,major:sg(g),significand:m}),m>=10?m=m<15?15:20:m++,m>=20&&(r++,m=2,o=r>=0?1:o),g=Math.round((d+f+m*Math.pow(10,r))*o)/o;const v=Jn(t.max,g);return i.push({value:v,major:sg(v),significand:m}),i}class c0 extends Br{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const i=dd.prototype.parse.apply(this,[e,n]);if(i===0){this._zero=!0;return}return Ht(i)&&i>0?i:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Ht(e)?Math.max(0,e):null,this.max=Ht(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Ht(this._userMin)&&(this.min=e===Ar(this.min,0)?Ar(this.min,-1):Ar(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let i=this.min,s=this.max;const r=c=>i=e?i:c,o=c=>s=n?s:c;i===s&&(i<=0?(r(1),o(10)):(r(Ar(i,-1)),o(Ar(s,1)))),i<=0&&r(Ar(s,-1)),s<=0&&o(Ar(i,1)),this.min=i,this.max=s}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},i=lC(n,this);return e.bounds==="ticks"&&om(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":tl(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=Ys(e),this._valueRange=Ys(this.max)-Ys(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Ys(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}re(c0,"id","logarithmic"),re(c0,"defaults",{ticks:{callback:Lc.formatters.logarithmic,major:{enabled:!0}}});function d0(t){const e=t.ticks;if(e.display&&t.display){const n=yn(e.backdropPadding);return $e(e.font&&e.font.size,Wt.font.size)+n.height}return 0}function cC(t,e,n){return n=Dt(n)?n:[n],{w:_w(t,e.string,n),h:n.length*e.lineHeight}}function ag(t,e,n,i,s){return t===i||t===s?{start:e-n/2,end:e+n/2}:t<i||t>s?{start:e-n,end:e}:{start:e,end:e+n}}function dC(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=[],s=[],r=t._pointLabels.length,o=t.options.pointLabels,c=o.centerPointLabels?Et/r:0;for(let d=0;d<r;d++){const h=o.setContext(t.getPointLabelContext(d));s[d]=h.padding;const f=t.getPointPosition(d,t.drawingArea+s[d],c),m=en(h.font),g=cC(t.ctx,m,t._pointLabels[d]);i[d]=g;const v=Qn(t.getIndexAngle(d)+c),b=Math.round(D1(v)),x=ag(b,f.x,g.w,0,180),k=ag(b,f.y,g.h,90,270);uC(n,e,v,x,k)}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=pC(t,i,s)}function uC(t,e,n,i,s){const r=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let c=0,d=0;i.start<e.l?(c=(e.l-i.start)/r,t.l=Math.min(t.l,e.l-c)):i.end>e.r&&(c=(i.end-e.r)/r,t.r=Math.max(t.r,e.r+c)),s.start<e.t?(d=(e.t-s.start)/o,t.t=Math.min(t.t,e.t-d)):s.end>e.b&&(d=(s.end-e.b)/o,t.b=Math.max(t.b,e.b+d))}function hC(t,e,n){const i=t.drawingArea,{extra:s,additionalAngle:r,padding:o,size:c}=n,d=t.getPointPosition(e,i+s+o,r),h=Math.round(D1(Qn(d.angle+Ut))),f=_C(d.y,c.h,h),m=mC(h),g=gC(d.x,c.w,m);return{visible:!0,x:d.x,y:f,textAlign:m,left:g,top:f,right:g+c.w,bottom:f+c.h}}function fC(t,e){if(!e)return!0;const{left:n,top:i,right:s,bottom:r}=t;return!(fs({x:n,y:i},e)||fs({x:n,y:r},e)||fs({x:s,y:i},e)||fs({x:s,y:r},e))}function pC(t,e,n){const i=[],s=t._pointLabels.length,r=t.options,{centerPointLabels:o,display:c}=r.pointLabels,d={extra:d0(r)/2,additionalAngle:o?Et/s:0};let h;for(let f=0;f<s;f++){d.padding=n[f],d.size=e[f];const m=hC(t,f,d);i.push(m),c==="auto"&&(m.visible=fC(m,h),m.visible&&(h=m))}return i}function mC(t){return t===0||t===180?"center":t<180?"left":"right"}function gC(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function _C(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function vC(t,e,n){const{left:i,top:s,right:r,bottom:o}=n,{backdropColor:c}=e;if(!Xe(c)){const d=Mr(e.borderRadius),h=yn(e.backdropPadding);t.fillStyle=c;const f=i-h.left,m=s-h.top,g=r-i+h.width,v=o-s+h.height;Object.values(d).some(b=>b!==0)?(t.beginPath(),il(t,{x:f,y:m,w:g,h:v,radius:d}),t.fill()):t.fillRect(f,m,g,v)}}function yC(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let s=e-1;s>=0;s--){const r=t._pointLabelItems[s];if(!r.visible)continue;const o=i.setContext(t.getPointLabelContext(s));vC(n,o,r);const c=en(o.font),{x:d,y:h,textAlign:f}=r;Sr(n,t._pointLabels[s],d,h+c.lineHeight/2,c,{color:o.color,textAlign:f,textBaseline:"middle"})}}function og(t,e,n,i){const{ctx:s}=t;if(n)s.arc(t.xCenter,t.yCenter,e,0,Tt);else{let r=t.getPointPosition(0,e);s.moveTo(r.x,r.y);for(let o=1;o<i;o++)r=t.getPointPosition(o,e),s.lineTo(r.x,r.y)}}function bC(t,e,n,i,s){const r=t.ctx,o=e.circular,{color:c,lineWidth:d}=e;!o&&!i||!c||!d||n<0||(r.save(),r.strokeStyle=c,r.lineWidth=d,r.setLineDash(s.dash),r.lineDashOffset=s.dashOffset,r.beginPath(),og(t,n,o,i),r.closePath(),r.stroke(),r.restore())}function wC(t,e,n){return js(t,{label:n,index:e,type:"pointLabel"})}class vl extends dd{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=yn(d0(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=Ht(e)&&!isNaN(e)?e:0,this.max=Ht(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/d0(this.options))}generateTickLabels(e){dd.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,i)=>{const s=St(this.options.pointLabels.callback,[n,i],this);return s||s===0?s:""}).filter((n,i)=>this.chart.getDataVisibility(i))}fit(){const e=this.options;e.display&&e.pointLabels.display?dC(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,i,s){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,i,s))}getIndexAngle(e){const n=Tt/(this._pointLabels.length||1),i=this.options.startAngle||0;return Qn(e*n+Ti(i))}getDistanceFromCenterForValue(e){if(Xe(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(Xe(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 wC(this.getContext(),e,i)}}getPointPosition(e,n,i=0){const s=this.getIndexAngle(e)-Ut+i;return{x:Math.cos(s)*n+this.xCenter,y:Math.sin(s)*n+this.yCenter,angle:s}}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:s,bottom:r}=this._pointLabelItems[e];return{left:n,top:i,right:s,bottom:r}}drawBackground(){const{backgroundColor:e,grid:{circular:n}}=this.options;if(e){const i=this.ctx;i.save(),i.beginPath(),og(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:s,border:r}=n,o=this._pointLabels.length;let c,d,h;if(n.pointLabels.display&&yC(this,o),s.display&&this.ticks.forEach((f,m)=>{if(m!==0||m===0&&this.min<0){d=this.getDistanceFromCenterForValue(f.value);const g=this.getContext(m),v=s.setContext(g),b=r.setContext(g);bC(this,v,d,o,b)}}),i.display){for(e.save(),c=o-1;c>=0;c--){const f=i.setContext(this.getPointLabelContext(c)),{color:m,lineWidth:g}=f;!g||!m||(e.lineWidth=g,e.strokeStyle=m,e.setLineDash(f.borderDash),e.lineDashOffset=f.borderDashOffset,d=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),h=this.getPointPosition(c,d),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(h.x,h.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,i=n.ticks;if(!i.display)return;const s=this.getIndexAngle(0);let r,o;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(s),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((c,d)=>{if(d===0&&this.min>=0&&!n.reverse)return;const h=i.setContext(this.getContext(d)),f=en(h.font);if(r=this.getDistanceFromCenterForValue(this.ticks[d].value),h.showLabelBackdrop){e.font=f.string,o=e.measureText(c.label).width,e.fillStyle=h.backdropColor;const m=yn(h.backdropPadding);e.fillRect(-o/2-m.left,-r-f.size/2-m.top,o+m.width,f.size+m.height)}Sr(e,c.label,0,-r,f,{color:h.color,strokeColor:h.textStrokeColor,strokeWidth:h.textStrokeWidth})}),e.restore()}drawTitle(){}}re(vl,"id","radialLinear"),re(vl,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Lc.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),re(vl,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),re(vl,"descriptors",{angleLines:{_fallback:"grid"}});const ud={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}},Rn=Object.keys(ud);function lg(t,e){return t-e}function cg(t,e){if(Xe(e))return null;const n=t._adapter,{parser:i,round:s,isoWeekday:r}=t._parseOpts;let o=e;return typeof i=="function"&&(o=i(o)),Ht(o)||(o=typeof i=="string"?n.parse(o,i):n.parse(o)),o===null?null:(s&&(o=s==="week"&&(ka(r)||r===!0)?n.startOf(o,"isoWeek",r):n.startOf(o,s)),+o)}function dg(t,e,n,i){const s=Rn.length;for(let r=Rn.indexOf(t);r<s-1;++r){const o=ud[Rn[r]],c=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-e)/(c*o.size))<=i)return Rn[r]}return Rn[s-1]}function kC(t,e,n,i,s){for(let r=Rn.length-1;r>=Rn.indexOf(n);r--){const o=Rn[r];if(ud[o].common&&t._adapter.diff(s,i,o)>=e-1)return o}return Rn[n?Rn.indexOf(n):0]}function xC(t){for(let e=Rn.indexOf(t)+1,n=Rn.length;e<n;++e)if(ud[Rn[e]].common)return Rn[e]}function ug(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:i,hi:s}=T1(n,e),r=n[i]>=e?n[i]:n[s];t[r]=!0}}function CC(t,e,n,i){const s=t._adapter,r=+s.startOf(e[0].value,i),o=e[e.length-1].value;let c,d;for(c=r;c<=o;c=+s.add(c,1,i))d=n[c],d>=0&&(e[d].major=!0);return e}function hg(t,e,n){const i=[],s={},r=e.length;let o,c;for(o=0;o<r;++o)c=e[o],s[c]=o,i.push({value:c,major:!1});return r===0||!n?i:CC(t,i,s,n)}class yl extends Br{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={}),s=this._adapter=new A9._date(e.adapters.date);s.init(n),Zo(i.displayFormats,s.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:cg(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:s,max:r,minDefined:o,maxDefined:c}=this.getUserBounds();function d(h){!o&&!isNaN(h.min)&&(s=Math.min(s,h.min)),!c&&!isNaN(h.max)&&(r=Math.max(r,h.max))}(!o||!c)&&(d(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&d(this.getMinMax(!1))),s=Ht(s)&&!isNaN(s)?s:+n.startOf(Date.now(),i),r=Ht(r)&&!isNaN(r)?r:+n.endOf(Date.now(),i)+1,this.min=Math.min(s,r-1),this.max=Math.max(s+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,s=i.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const r=this.min,o=this.max,c=sw(s,r,o);return this._unit=n.unit||(i.autoSkip?dg(n.minUnit,this.min,this.max,this._getLabelCapacity(r)):kC(this,c.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:xC(this._unit),this.initOffsets(s),e.reverse&&c.reverse(),hg(this,c,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,i=0,s,r;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),e.length===1?n=1-s:n=(this.getDecimalForValue(e[1])-s)/2,r=this.getDecimalForValue(e[e.length-1]),e.length===1?i=r:i=(r-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=dn(n,0,o),i=dn(i,0,o),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const e=this._adapter,n=this.min,i=this.max,s=this.options,r=s.time,o=r.unit||dg(r.minUnit,n,i,this._getLabelCapacity(n)),c=$e(s.ticks.stepSize,1),d=o==="week"?r.isoWeekday:!1,h=ka(d)||d===!0,f={};let m=n,g,v;if(h&&(m=+e.startOf(m,"isoWeek",d)),m=+e.startOf(m,h?"day":o),e.diff(i,n,o)>1e5*c)throw new Error(n+" and "+i+" are too far apart with stepSize of "+c+" "+o);const b=s.ticks.source==="data"&&this.getDataTimestamps();for(g=m,v=0;g<i;g=+e.add(g,c,o),v++)ug(f,g,b);return(g===i||s.bounds==="ticks"||v===1)&&ug(f,g,b),Object.keys(f).sort(lg).map(x=>+x)}getLabelForValue(e){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(e,i.tooltipFormat):n.format(e,i.displayFormats.datetime)}format(e,n){const s=this.options.time.displayFormats,r=this._unit,o=n||s[r];return this._adapter.format(e,o)}_tickFormatFunction(e,n,i,s){const r=this.options,o=r.ticks.callback;if(o)return St(o,[e,n,i],this);const c=r.time.displayFormats,d=this._unit,h=this._majorUnit,f=d&&c[d],m=h&&c[h],g=i[n],v=h&&m&&g&&g.major;return this._adapter.format(e,s||(v?m:f))}generateTickLabels(e){let n,i,s;for(n=0,i=e.length;n<i;++n)s=e[n],s.label=this._tickFormatFunction(s.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,s=Ti(this.isHorizontal()?n.maxRotation:n.minRotation),r=Math.cos(s),o=Math.sin(s),c=this._resolveTickFontOptions(0).size;return{w:i*r+c*o,h:i*o+c*r}}_getLabelCapacity(e){const n=this.options.time,i=n.displayFormats,s=i[n.unit]||i.millisecond,r=this._tickFormatFunction(e,0,hg(this,[e],this._majorUnit),s),o=this._getLabelSize(r),c=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return c>0?c:1}getDataTimestamps(){let e=this._cache.data||[],n,i;if(e.length)return e;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,i=s.length;n<i;++n)e=e.concat(s[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 s=this.getLabels();for(n=0,i=s.length;n<i;++n)e.push(cg(this,s[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return hm(e.sort(lg))}}re(yl,"id","time"),re(yl,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function hd(t,e,n){let i=0,s=t.length-1,r,o,c,d;n?(e>=t[i].pos&&e<=t[s].pos&&({lo:i,hi:s}=hs(t,"pos",e)),{pos:r,time:c}=t[i],{pos:o,time:d}=t[s]):(e>=t[i].time&&e<=t[s].time&&({lo:i,hi:s}=hs(t,"time",e)),{time:r,pos:c}=t[i],{time:o,pos:d}=t[s]);const h=o-r;return h?c+(d-c)*(e-r)/h:c}class u0 extends yl{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=hd(n,this.min),this._tableRange=hd(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:i}=this,s=[],r=[];let o,c,d,h,f;for(o=0,c=e.length;o<c;++o)h=e[o],h>=n&&h<=i&&s.push(h);if(s.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(o=0,c=s.length;o<c;++o)f=s[o+1],d=s[o-1],h=s[o],Math.round((f+d)/2)!==h&&r.push({time:h,pos:o/(c-1)});return r}_generate(){const e=this.min,n=this.max;let i=super.getDataTimestamps();return(!i.includes(e)||!i.length)&&i.splice(0,0,e),(!i.includes(n)||i.length===1)&&i.push(n),i.sort((s,r)=>s-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(hd(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,i=this.getDecimalForPixel(e)/n.factor-n.end;return hd(this._table,i*this._tableRange+this._minPos,!0)}}re(u0,"id","timeseries"),re(u0,"defaults",yl.defaults);var SC=Object.freeze({__proto__:null,CategoryScale:o0,LinearScale:l0,LogarithmicScale:c0,RadialLinearScale:vl,TimeScale:yl,TimeSeriesScale:u0});const h0=[B9,lx,nC,SC],fg={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},MC={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...fg,...{ariaLabel:{type:String},ariaDescribedby:{type:String}}},OC=a.version[0]==="2"?(t,e)=>Object.assign(t,{attrs:e}):(t,e)=>Object.assign(t,e);function Da(t){return a.isProxy(t)?a.toRaw(t):t}function DC(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return a.isProxy(e)?new Proxy(t,{}):t}function EC(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function pg(t,e){t.labels=e}function mg(t,e,n){const i=[];t.datasets=e.map(s=>{const r=t.datasets.find(o=>o[n]===s[n]);return!r||!s.data||i.includes(r)?{...s}:(i.push(r),Object.assign(r,s),r)})}function TC(t,e){const n={labels:[],datasets:[]};return pg(n,t.labels),mg(n,t.datasets,e),n}const IC=a.defineComponent({props:MC,setup(t,e){let{expose:n,slots:i}=e;const s=a.ref(null),r=a.shallowRef(null);n({chart:r});const o=()=>{if(!s.value)return;const{type:h,data:f,options:m,plugins:g,datasetIdKey:v}=t,b=TC(f,v),x=DC(b,f);r.value=new fi(s.value,{type:h,data:x,options:{...m},plugins:g})},c=()=>{const h=a.toRaw(r.value);h&&(t.destroyDelay>0?setTimeout(()=>{h.destroy(),r.value=null},t.destroyDelay):(h.destroy(),r.value=null))},d=h=>{h.update(t.updateMode)};return a.onMounted(o),a.onUnmounted(c),a.watch([()=>t.options,()=>t.data],(h,f)=>{let[m,g]=h,[v,b]=f;const x=a.toRaw(r.value);if(!x)return;let k=!1;if(m){const O=Da(m),T=Da(v);O&&O!==T&&(EC(x,O),k=!0)}if(g){const O=Da(g.labels),T=Da(b.labels),N=Da(g.datasets),C=Da(b.datasets);O!==T&&(pg(x.config.data,O),k=!0),N&&N!==C&&(mg(x.config.data,N,t.datasetIdKey),k=!0)}k&&a.nextTick(()=>{d(x)})},{deep:!0}),()=>a.h("canvas",{role:"img",ariaLabel:t.ariaLabel,ariaDescribedby:t.ariaDescribedby,ref:s},[a.h("p",{},[i.default?i.default():""])])}});function fd(t,e){return fi.register(e),a.defineComponent({props:fg,setup(n,i){let{expose:s}=i;const r=a.shallowRef(null),o=c=>{r.value=c==null?void 0:c.chart};return s({chart:r}),()=>a.h(IC,OC({ref:o},{type:t,...n}))}})}const gg=fd("bar",al),BC=fd("line",ol),AC=fd("pie",Gc),VC=fd("polarArea",Ma),Gs={gp50:"#f3fcf8",gp100:"#e2f8ef",gp200:"#abedd3",gp300:"#6ddfb1",gp400:"#2db981",gp500:"#239f6d",gp600:"#1c7d56",gp700:"#136746",ta50:"#eefcfa",ta100:"#dcf9f6",ta200:"#a2f1e5",ta300:"#51e6d0",ta400:"#20c5ad",ta500:"#18aa94",ta600:"#138675",ta700:"#0f6b5d",ts50:"#f5fbff",ts100:"#e6f6fe",ts200:"#C2EDFF",ts300:"#7BD0F4",ts400:"#42AAD7",ts500:"#1F86B2",ts600:"#18698B",ts700:"#155875",bn50:"#f6f9fe",bn100:"#e6effe",bn200:"#b4cdf8",bn300:"#729ee9",bn400:"#467bd8",bn500:"#2f64c1",bn600:"#2051a7",bn700:"#19438a",in50:"#f5f6ff",in100:"#ebefff",in200:"#CED6FD",in300:"#9bacf8",in400:"#6a7cd7",in500:"#4b5caf",in600:"#374486",in700:"#2f396f",vr50:"#faf5ff",vr100:"#f7f0ff",vr200:"#E6D2F9",vr300:"#CEABED",vr400:"#a772d5",vr500:"#8955B9",vr600:"#6B3A98",vr700:"#5c3082",pp50:"#fff5fb",pp100:"#ffebf7",pp200:"#F9C8E2",pp300:"#EF8FC0",pp400:"#DA629F",pp500:"#BE377C",pp600:"#A12663",pp700:"#88255a",rc50:"#fef6f7",rc100:"#ffebed",rc200:"#FABDC5",rc300:"#F98B98",rc400:"#F3596C",rc500:"#E03E52",rc600:"#C92C3F",rc700:"#b22435",og50:"#fef7f6",og100:"#ffefeb",og200:"#FFD6CC",og300:"#FDAF9B",og400:"#FF8567",og500:"#F06442",og600:"#D64B29",og700:"#bc4224",al50:"#fefbf6",al100:"#fdf3e2",al200:"#ffe5b8",al300:"#fdd286",al400:"#f6bd5a",al500:"#eda831",al600:"#d89013",al700:"#c08011",n0:"#FFFFFF",n10:"#FAFCFE",n20:"#F4F8FB",n30:"#E7EDF3",n40:"#DFE5EC",n50:"#D6DCE3",n100:"#C3CCD5",n200:"#ACB8C3",n300:"#99A6B2",n400:"#8794A1",n500:"#647382",n600:"#52616F",n700:"#3B4754",n800:"#28333E",n900:"#1D262F",palete:'["Light Neutrals", "Light", #FFFFFF, #FAFCFE, #F4F8FB, #E7EDF3, #DFE5EC, "$n-0", "$n-10", "$n-20", "$n-30", "$n-40"], ["Mid Neutrals", "Gray", #D6DCE3, #C3CCD5, #ACB8C3, #99A6B2, #8794A1, "$n-50", "$n-100", "$n-200", "$n-300", "$n-400"], ["Dark Neutrals", "Dark", #647382, #52616F, #3B4754, #28333E, #1D262F, "$n-500", "$n-600", "$n-700", "$n-800", "$n-900"], ["Piccolo Green", "Green", #f3fcf8, #e2f8ef, #abedd3, #6ddfb1, #2db981, #239f6d, #1c7d56, #136746, "$gp-50", "$gp-100", "$gp-200", "$gp-300", "$gp-400", "$gp-500", "$gp-600", "$gp-700"], ["Aquaman Teal", "Teal", #eefcfa, #dcf9f6, #a2f1e5, #51e6d0, #20c5ad, #18aa94, #138675, #0f6b5d, "$ta-50", "$ta-100", "$ta-200", "$ta-300", "$ta-400", "$ta-500", "$ta-600", "$ta-700"], ["Sulivan Turquoise", "Turquoise", #f5fbff, #e6f6fe, #C2EDFF, #7BD0F4, #42AAD7, #1F86B2, #18698B, #155875, "$ts-50", "$ts-100", "$ts-200", "$ts-300", "$ts-400", "$ts-500", "$ts-600", "$ts-700"], ["Nocturne Blue", "Blue", #f6f9fe, #e6effe, #b4cdf8, #729ee9, #467bd8, #2f64c1, #2051a7, #19438a, "$bn-50", "$bn-100", "$bn-200", "$bn-300", "$bn-400", "$bn-500", "$bn-600", "$bn-700"], ["Nightwing Indigo", "Indigo", #f5f6ff, #ebefff, #CED6FD, #9bacf8, #6a7cd7, #4b5caf, #374486, #2f396f, "$in-50", "$in-100", "$in-200", "$in-300", "$in-400", "$in-500", "$in-600", "$in-700"], ["Raven Violet", "Violet", #faf5ff, #f7f0ff, #E6D2F9, #CEABED, #a772d5, #8955B9, #6B3A98, #5c3082, "$vr-50", "$vr-100", "$vr-200", "$vr-300", "$vr-400", "$vr-500", "$vr-600", "$vr-700"], ["Peppa Pink", "Pink", #fff5fb, #ffebf7, #F9C8E2, #EF8FC0, #DA629F, #BE377C, #A12663, #88255a, "$pp-50", "$pp-100", "$pp-200", "$pp-300", "$pp-400", "$pp-500", "$pp-600", "$pp-700"], ["Carmen Red", "Red", #fef6f7, #ffebed, #FABDC5, #F98B98, #F3596C, #E03E52, #C92C3F, #b22435, "$rc-50", "$rc-100", "$rc-200", "$rc-300", "$rc-400", "$rc-500", "$rc-600", "$rc-700"], ["Goku Orange", "Orange", #fef7f6, #ffefeb, #FFD6CC, #FDAF9B, #FF8567, #F06442, #D64B29, #bc4224, "$og-50", "$og-100", "$og-200", "$og-300", "$og-400", "$og-500", "$og-600", "$og-700"], ["Lisa Amber", "Amber", #fefbf6, #fdf3e2, #ffe5b8, #fdd286, #f6bd5a, #eda831, #d89013, #c08011, "$al-50", "$al-100", "$al-200", "$al-300", "$al-400", "$al-500", "$al-600", "$al-700"]'},Ea=t=>{let e=[],n={};const i=/(\[[^[\]]*\])/g,s=t.match(i);for(let r=0;r<s.length;r++){s[r]=s[r].replace("[",""),s[r]=s[r].replace("]","");let o=s[r].split(",");n.colorName=o[0].trim().replace(/"/g,""),n.variantName=o[1].trim().replace(/"/g,""),n.color400=o[6],n.colorShades=[],n.colorTokens=[],n.colorData=[];let c=!1;for(let d=2,h=2;d<o.length;d++,h++)o[d].includes("#")?(n.colorShades.push(o[d].trim()),n.colorData[h-2]={},n.colorData[h-2].shade=o[d].trim()):o[d].includes("$")&&(n.colorTokens.push(o[d].trim().replace(/"/g,"")),n.colorData[h-2].token=o[d].trim().replace(/"/g,"")),!c&&o[d+1].includes("$")&&(h=1,c=!0);e.push(n),n={}}return e},Sle="";fi.register(...h0);const $C={components:{Bar:gg},props:{data:{type:Object,required:!0,default:()=>({datasets:[{label:"",data:[]}]})},variant:{type:String,required:!0,default:"green",validator:t=>["green","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"].includes(t)},labels:{type:Array,required:!0,default:()=>[]},barWidth:{type:Number,default:1}},data(){return{sassColorVariables:Gs,localChartData:{},localLabels:[],palletColors:[],deleteFirstTwoColors:!1,chartOptions:{responsive:!0,maintainAspectRatio:!1,categoryPercentage:null,plugins:{tooltip:{callbacks:{beforeTitle:function(t){return`${t[0].dataset.name}`}}},legend:{display:!0,labels:{usePointStyle:!0,pointStyle:"rectRounded"}}}}}},watch:{labels:{handler(t){this.localLabels=t},immediate:!0},variant:{handler(t){t==="gray"||t==="dark"?this.deleteFirstTwoColors=!0:this.deleteFirstTwoColors=!1},immediate:!0},data:{handler(t){this.mergeChartDataNoSelect(t)},immediate:!0},barWidth:{handler(t){t>=.1&&t<=1?this.chartOptions.categoryPercentage=t:this.chartOptions.categoryPercentage=1},immediate:!0}},methods:{paleteBuilder:Ea,palete(){this.palletColors=this.paleteBuilder(this.sassColorVariables.palete),this.removeFirstTwoElements()},removeFirstTwoElements(){for(let t=0;t<this.palletColors.length;t++){const e=this.palletColors[t];this.deleteFirstTwoColors===!1&&(e.colorShades.splice(0,2),e.colorTokens.splice(0,2),e.colorData.splice(0,2))}},addDataSetNames(){this.data.forEach(t=>{t.datasets.forEach(e=>{e.name=t.name})})},mergeChartDataNoSelect(t){const e={labels:this.localLabels,datasets:[]};this.addDataSetNames(),t.forEach(i=>{i.datasets.forEach(s=>{const r={label:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(r)})}),this.palete();const n=this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},generateBackgroundColor(){const t=this.variant.toLowerCase(),e=this.palletColors.find(n=>n.variantName.toLowerCase().includes(t));return e?e.colorShades:[]},setColors(t,e){const n={};this.chartOptions.plugins.legend.display=!0,t.forEach(i=>{const s=i.name;let r;t.length===1&&(r=2,n[s]=e[r],this.chartOptions.plugins.legend.display=!1),n[s]||(r=Object.keys(n).length%e.length,n[s]=e[r]),i.backgroundColor=n[s],i.borderRadius=6})}}},NC={class:"responsive-container"};function zC(t,e,n,i,s,r){const o=a.resolveComponent("Bar");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",NC,[a.createVNode(o,{is:"bar",data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const PC=oe($C,[["render",zC],["__scopeId","data-v-1e55dea1"]]),Mle="";fi.register(...h0);const LC={components:{Line:BC},props:{data:{type:Object,required:!0,default:()=>({datasets:[{label:"",data:[]}]})},xAxisRange:{type:Array,default:()=>[0,100]},yAxisRange:{type:Array,default:()=>[0,100]},variant:{type:String,required:!0,default:"green",validator:t=>["green","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"].includes(t)},labels:{type:Array,required:!0,default:()=>[]},showLabelName:{type:Boolean,required:!0,default:!0},fill:{type:Boolean,default:!1},isDashed:{type:Boolean,default:!1},borderDash:{type:Array,default:()=>[]},smoothing:{type:Number,default:.3}},data(){return{sassColorVariables:Gs,localChartData:{},localLabels:[],palletColors:[],deleteFirstTwoColors:!1,chartOptions:{interaction:{intersect:!1},scales:{x:{suggestedMin:this.xAxisRange[0],suggestedMax:this.xAxisRange[1],display:!0,title:{display:!0}},y:{suggestedMin:this.yAxisRange[0],suggestedMax:this.yAxisRange[1],display:!0,title:{display:!0}}},tension:this.smoothing,responsive:!0,maintainAspectRatio:!1,pieceLabel:{mode:"percentage",precision:1},plugins:{tooltip:{callbacks:{beforeTitle:function(t){return`${t[0].dataset.name}`}}},legend:{display:!0,labels:{usePointStyle:!0,pointStyle:"rectRounded"}}},fill:this.fill}}},watch:{labels:{handler(t){this.localLabels=t},immediate:!0},variant:{handler(t){t==="gray"||t==="dark"?this.deleteFirstTwoColors=!0:this.deleteFirstTwoColors=!1},immediate:!0},data:{handler(t){this.mergeChartDataNoSelect(t)},immediate:!0},isDashed:{handler(t){t===!0&&this.checkDashed()},immediate:!0}},methods:{paleteBuilder:Ea,palete(){this.palletColors=this.paleteBuilder(this.sassColorVariables.palete),this.removeFirstTwoElements()},removeFirstTwoElements(){for(let t=0;t<this.palletColors.length;t++){const e=this.palletColors[t];this.deleteFirstTwoColors===!1&&(e.colorShades.splice(0,2),e.colorTokens.splice(0,2),e.colorData.splice(0,2))}},addDataSetNames(){this.data.forEach(t=>{t.datasets.forEach(e=>{e.name=t.name})})},mergeChartDataNoSelect(t){const e={labels:this.localLabels,datasets:[]};this.addDataSetNames(),t.forEach(i=>{i.datasets.forEach(s=>{const r={label:this.showLabelName?s.name:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(r)})}),this.palete();const n=this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},generateBackgroundColor(){const t=this.variant.toLowerCase(),e=this.palletColors.find(n=>n.variantName.toLowerCase().includes(t));return e?this.fill?e.colorShades.map(i=>i+"80"):e.colorShades:[]},setColors(t,e){const n={};t.forEach((i,s)=>{const r=i.name;n[r]||(n[r]=e.slice()),i.data.length>0&&(i.backgroundColor=n[r][s%n[r].length],i.borderColor=n[r][s%n[r].length]),i.borderRadius=6})},checkDashed(){this.chartOptions.borderDash=[this.borderDash[0],this.borderDash[1]]}}},FC={class:"responsive-container"};function RC(t,e,n,i,s,r){const o=a.resolveComponent("Line");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",FC,[a.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const HC=oe(LC,[["render",RC],["__scopeId","data-v-3a3639cb"]]),Ole="",WC={components:{Pie:AC},props:{data:{type:Object,required:!0,default:()=>({datasets:[{label:"",data:[]}]})},variant:{type:String,required:!0,default:"green",validator:t=>["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"].includes(t)},labels:{type:Array,required:!0,default:()=>[]},colors:{type:Array,default:()=>[],validator:t=>{const e=["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"];return t.every(n=>e.includes(n))}}},data(){return{sassColorVariables:Gs,localChartData:{},localLabels:[],palletColors:[],deleteFirstTwoColors:!1,chartOptions:{responsive:!0,maintainAspectRatio:!1,pieceLabel:{mode:"percentage",precision:1},plugins:{tooltip:{callbacks:{beforeTitle:function(t){return`${t[0].dataset.name}`}}},legend:{display:!0,labels:{usePointStyle:!0,pointStyle:"rectRounded"}}}}}},computed:{isColorsSet(){return this.colors&&this.colors.length>0},computedBackgroundColors(){return this.colors.map(t=>{const e=this.palletColors.find(n=>n.variantName.toLowerCase().includes(t));if(e)return e.color400})}},watch:{labels:{handler(t){this.localLabels=t},immediate:!0},variant:{handler(t){t==="gray"||t==="dark"?this.deleteFirstTwoColors=!0:this.deleteFirstTwoColors=!1},immediate:!0},data:{handler(t){this.mergeChartDataNoSelect(t)},immediate:!0}},methods:{paleteBuilder:Ea,palete(){this.palletColors=this.paleteBuilder(this.sassColorVariables.palete),this.removeFirstTwoElements()},removeFirstTwoElements(){for(let t=0;t<this.palletColors.length;t++){const e=this.palletColors[t];this.deleteFirstTwoColors===!1&&(e.colorShades.splice(0,2),e.colorTokens.splice(0,2),e.colorData.splice(0,2))}},addDataSetNames(){this.data.forEach(t=>{t.datasets.forEach(e=>{e.name=t.name})})},mergeChartDataNoSelect(t){const e={labels:this.localLabels,datasets:[]};this.addDataSetNames(),t.forEach(i=>{i.datasets.forEach(s=>{const r={label:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(r)})}),this.palete();const n=this.isColorsSet?this.computedBackgroundColors:this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},generateBackgroundColor(){const t=this.variant.toLowerCase(),e=this.palletColors.find(n=>n.variantName.toLowerCase().includes(t));return e?e.colorShades:[]},setColors(t,e){const n={};t.forEach(i=>{const s=i.name;n[s]||(n[s]=e.slice()),i.backgroundColor=n[s].splice(0,i.data.length),i.borderRadius=6})}}},YC={class:"responsive-container"};function jC(t,e,n,i,s,r){const o=a.resolveComponent("Pie");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",YC,[a.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const UC=oe(WC,[["render",jC],["__scopeId","data-v-df415374"]]),Dle="",qC={components:{PolarArea:VC},props:{data:{type:Object,required:!0,default:()=>({datasets:[{label:"",data:[]}]})},variant:{type:String,required:!0,default:"green",validator:t=>["green","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"].includes(t)},labels:{type:Array,required:!0,default:()=>[]},isVisiblePointNames:{type:Boolean,default:!1}},data(){return{sassColorVariables:Gs,localChartData:{},localLabels:[],palletColors:[],deleteFirstTwoColors:!1,chartOptions:{responsive:!0,scales:{r:{pointLabels:{display:this.isVisiblePointNames,centerPointLabels:!0,font:{size:12}}}},maintainAspectRatio:!1,pieceLabel:{mode:"percentage",precision:1},plugins:{tooltip:{callbacks:{beforeTitle:function(t){return`${t[0].dataset.name}`}}},legend:{display:!0,labels:{usePointStyle:!0,pointStyle:"rectRounded"}}}}}},watch:{labels:{handler(t){this.localLabels=t},immediate:!0},variant:{handler(t){t==="gray"||t==="dark"?this.deleteFirstTwoColors=!0:this.deleteFirstTwoColors=!1},immediate:!0},data:{handler(t){this.mergeChartDataNoSelect(t)},immediate:!0}},methods:{paleteBuilder:Ea,palete(){this.palletColors=this.paleteBuilder(this.sassColorVariables.palete),this.removeFirstTwoElements()},removeFirstTwoElements(){for(let t=0;t<this.palletColors.length;t++){const e=this.palletColors[t];this.deleteFirstTwoColors===!1&&(e.colorShades.splice(0,2),e.colorTokens.splice(0,2),e.colorData.splice(0,2))}},addDataSetNames(){this.data.forEach(t=>{t.datasets.forEach(e=>{e.name=t.name})})},mergeChartDataNoSelect(t){const e={labels:this.localLabels,datasets:[]};this.addDataSetNames(),t.forEach(i=>{i.datasets.forEach(s=>{const r={label:this.showLabelName?s.name:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(r)})}),this.palete();const n=this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},generateBackgroundColor(){const t=this.variant.toLowerCase(),e=this.palletColors.find(n=>n.variantName.toLowerCase().includes(t));return e?e.colorShades:[]},setColors(t,e){const n={};t.forEach(i=>{const s=i.name;n[s]||(n[s]=e.slice()),i.backgroundColor=n[s].splice(0,i.data.length),i.borderRadius=6})}}},GC={class:"responsive-container"};function KC(t,e,n,i,s,r){const o=a.resolveComponent("PolarArea");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",GC,[a.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const ZC=oe(qC,[["render",KC],["__scopeId","data-v-386a0dc0"]]),Ele="";fi.register(...h0);const XC={components:{Bar:gg},props:{data:{type:Object,required:!0,default:()=>({datasets:[{label:"",data:[]}]})},variant:{type:String,required:!0,default:"green",validator:t=>["green","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"].includes(t)},labels:{type:Array,required:!0,default:()=>[]},barWidth:{type:Number,default:1}},data(){return{sassColorVariables:Gs,localChartData:{},localLabels:[],palletColors:[],deleteFirstTwoColors:!1,chartOptions:{scales:{x:{stacked:!0},y:{stacked:!0}},responsive:!0,maintainAspectRatio:!1,categoryPercentage:null,plugins:{tooltip:{callbacks:{beforeTitle:function(t){return`${t[0].dataset.name}`}}},legend:{display:!0,labels:{usePointStyle:!0,pointStyle:"rectRounded"}}}}}},watch:{labels:{handler(t){this.localLabels=t},immediate:!0},variant:{handler(t){t==="gray"||t==="dark"?this.deleteFirstTwoColors=!0:this.deleteFirstTwoColors=!1},immediate:!0},data:{handler(t){this.mergeChartDataNoSelect(t)},immediate:!0},barWidth:{handler(t){t>=.1&&t<=1?this.chartOptions.categoryPercentage=t:this.chartOptions.categoryPercentage=1},immediate:!0}},methods:{paleteBuilder:Ea,palete(){this.palletColors=this.paleteBuilder(this.sassColorVariables.palete),this.removeFirstTwoElements()},removeFirstTwoElements(){for(let t=0;t<this.palletColors.length;t++){const e=this.palletColors[t];this.deleteFirstTwoColors===!1&&(e.colorShades.splice(0,2),e.colorTokens.splice(0,2),e.colorData.splice(0,2))}},addDataSetNames(){this.data.forEach(t=>{t.datasets.forEach(e=>{e.name=t.name})})},mergeChartDataNoSelect(t){const e={labels:this.localLabels,datasets:[]};this.addDataSetNames(),t.forEach(i=>{i.datasets.forEach(s=>{const r={label:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(r)})}),this.palete();const n=this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},generateBackgroundColor(){const t=this.variant.toLowerCase(),e=this.palletColors.find(n=>n.variantName.toLowerCase().includes(t));return e?e.colorShades:[]},setColors(t,e){const n={};this.chartOptions.plugins.legend.display=!0,t.forEach(i=>{const s=i.name;let r;t.length===1&&(r=2,n[s]=e[r],this.chartOptions.plugins.legend.display=!1),n[s]||(r=Object.keys(n).length%e.length,n[s]=e[r]),i.backgroundColor=n[s],i.borderRadius=6})}}},JC={class:"responsive-container"};function QC(t,e,n,i,s,r){const o=a.resolveComponent("Bar");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",JC,[a.createVNode(o,{is:"bar",data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const eS=oe(XC,[["render",QC],["__scopeId","data-v-ed4bef4e"]]),Tle="",f0={props:{padding:{type:[Number,String],default:0,validator:t=>t>=0&&t<=12},paddingTop:{type:[Number,String],default:0,validator:t=>t>=0&&t<=12},paddingRight:{type:[Number,String],default:0,validator:t=>t>=0&&t<=12},paddingBottom:{type:[Number,String],default:0,validator:t=>t>=0&&t<=12},paddingLeft:{type:[Number,String],default:0,validator:t=>t>=0&&t<=12},margin:{type:[Number,String],default:0,validator:t=>t>=0&&t<=12},marginTop:{type:[Number,String],default:0,validator:t=>t>=0&&t<=12},marginRight:{type:[Number,String],default:0,validator:t=>t>=0&&t<=12},marginBottom:{type:[Number,String],default:0,validator:t=>t>=0&&t<=12},marginLeft:{type:[Number,String],default:0,validator:t=>t>=0&&t<=12}},computed:{paddingTopResolver(){let t=this.paddingTop>12?12:+this.paddingTop;return t=this.padding?this.basePropertyResolver(this.padding):t,`${t*4}px`},paddingRightResolver(){let t=this.paddingRight>12?12:+this.paddingRight;return t=this.padding?this.basePropertyResolver(this.padding):t,`${t*4}px`},paddingBottomResolver(){let t=this.paddingBottom>12?12:+this.paddingBottom;return t=this.padding?this.basePropertyResolver(this.padding):t,`${t*4}px`},paddingLeftResolver(){let t=this.paddingLeft>12?12:+this.paddingLeft;return t=this.padding?this.basePropertyResolver(this.padding):t,`${t*4}px`},marginTopResolver(){let t=this.marginTop>12?12:+this.marginTop;return t=this.margin?this.basePropertyResolver(this.margin):t,`${t*4}px`},marginRightResolver(){let t=this.marginRight>12?12:+this.marginRight;return t=this.margin?this.basePropertyResolver(this.margin):t,`${t*4}px`},marginBottomResolver(){let t=this.marginBottom>12?12:+this.marginBottom;return t=this.margin?this.basePropertyResolver(this.margin):t,`${t*4}px`},marginLeftResolver(){let t=this.marginLeft>12?12:+this.marginLeft;return t=this.margin?this.basePropertyResolver(this.margin):t,`${t*4}px`}},methods:{basePropertyResolver(t){return t>=0&&t<=12?t:t<0?0:12}}},_g=()=>{a.useCssVars(t=>({"6d4c0f4d":t.marginBottomResolver,d6616fae:t.marginLeftResolver,"0baf3274":t.marginRightResolver,"7c666dff":t.marginTopResolver,"561264d4":t.paddingBottomResolver,17295920:t.paddingLeftResolver,e3e47742:t.paddingRightResolver,"9def4450":t.paddingTopResolver}))},vg=f0.setup;f0.setup=vg?(t,e)=>(_g(),vg(t,e)):_g;const tS=f0,nS={class:"spacer"};function iS(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",nS,[a.renderSlot(t.$slots,"default",{},void 0,!0)])}const pd=oe(tS,[["render",iS],["__scopeId","data-v-5aebf225"]]);function p0(t,e=24){let n=t/8,i=n%4;return`${n>e?e:n-i+4}px`}const Ile="",m0={components:{CdsSpacer:pd,CdsClickable:Ls},props:{elevated:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},padding:{type:[Number,String],default:4,validator:t=>t<=12},clickable:{type:Boolean,default:!1},variant:{type:String,default:"gray"}},data(){return{width:0}},computed:{widthResolver(){return this.fluid?"100%":"fit-content"},borderRadiusResolver(){return this.rounder(this.width,12)}},mounted(){this.width=this.$refs["cds-box"].getBoundingClientRect().width},methods:{rounder:p0,handleClick(){this.clickable&&this.$emit("boxClick",!0)}}},yg=()=>{a.useCssVars(t=>({"8bf1f4e6":t.widthResolver,"337f1943":t.borderRadiusResolver}))},bg=m0.setup;m0.setup=bg?(t,e)=>(yg(),bg(t,e)):yg;const sS=m0;function rS(t,e,n,i,s,r){const o=a.resolveComponent("cds-spacer"),c=a.resolveComponent("cds-clickable");return a.openBlock(),a.createElementBlock("div",{ref:"cds-box",class:a.normalizeClass(n.elevated?"box--elevated":`box--${n.variant}`)},[a.createVNode(c,{class:"box__container",clickable:n.clickable,onClick:r.handleClick},{default:a.withCtx(()=>[a.createVNode(o,{"padding-top":n.padding,"padding-right":n.padding,"padding-bottom":n.padding,"padding-left":n.padding},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["padding-top","padding-right","padding-bottom","padding-left"])]),_:3},8,["clickable","onClick"])],2)}const bl=oe(sS,[["render",rS],["__scopeId","data-v-34f9c778"]]);var g0={exports:{}};(function(t,e){var n=9007199254740991,i="[object Arguments]",s="[object Function]",r="[object GeneratorFunction]",o="[object Map]",c="[object Object]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",m="[object DataView]",g=/[\\^$.*+?()[\]{}|]/g,v=/^\[object .+?Constructor\]$/,b=typeof cn=="object"&&cn&&cn.Object===Object&&cn,x=typeof self=="object"&&self&&self.Object===Object&&self,k=b||x||Function("return this")(),O=e&&!e.nodeType&&e,T=O&&!0&&t&&!t.nodeType&&t,N=T&&T.exports===O;function C(te,Ae){return te==null?void 0:te[Ae]}function B(te){var Ae=!1;if(te!=null&&typeof te.toString!="function")try{Ae=!!(te+"")}catch{}return Ae}function $(te,Ae){return function(We){return te(Ae(We))}}var L=Function.prototype,F=Object.prototype,q=k["__core-js_shared__"],ee=function(){var te=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return te?"Symbol(src)_1."+te:""}(),ne=L.toString,K=F.hasOwnProperty,ie=F.toString,pe=RegExp("^"+ne.call(K).replace(g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),J=N?k.Buffer:void 0,ue=F.propertyIsEnumerable,he=J?J.isBuffer:void 0,_e=$(Object.keys,Object),be=et(k,"DataView"),R=et(k,"Map"),fe=et(k,"Promise"),ae=et(k,"Set"),Ee=et(k,"WeakMap"),Me=!ue.call({valueOf:1},"valueOf"),me=ht(be),Ne=ht(R),ot=ht(fe),Le=ht(ae),ut=ht(Ee);function Bt(te){return ie.call(te)}function wt(te){if(!Ot(te)||st(te))return!1;var Ae=Mt(te)||B(te)?pe:v;return Ae.test(ht(te))}function et(te,Ae){var We=C(te,Ae);return wt(We)?We:void 0}var it=Bt;(be&&it(new be(new ArrayBuffer(1)))!=m||R&&it(new R)!=o||fe&&it(fe.resolve())!=d||ae&&it(new ae)!=h||Ee&&it(new Ee)!=f)&&(it=function(te){var Ae=ie.call(te),We=Ae==c?te.constructor:void 0,pn=We?ht(We):void 0;if(pn)switch(pn){case me:return m;case Ne:return o;case ot:return d;case Le:return h;case ut:return f}return Ae});function st(te){return!!ee&&ee in te}function Yt(te){var Ae=te&&te.constructor,We=typeof Ae=="function"&&Ae.prototype||F;return te===We}function ht(te){if(te!=null){try{return ne.call(te)}catch{}try{return te+""}catch{}}return""}function kt(te){return yt(te)&&K.call(te,"callee")&&(!ue.call(te,"callee")||ie.call(te)==i)}var tn=Array.isArray;function nn(te){return te!=null&&At(te.length)&&!Mt(te)}function yt(te){return un(te)&&nn(te)}var tt=he||Vt;function Nt(te){if(nn(te)&&(tn(te)||typeof te=="string"||typeof te.splice=="function"||tt(te)||kt(te)))return!te.length;var Ae=it(te);if(Ae==o||Ae==h)return!te.size;if(Me||Yt(te))return!_e(te).length;for(var We in te)if(K.call(te,We))return!1;return!0}function Mt(te){var Ae=Ot(te)?ie.call(te):"";return Ae==s||Ae==r}function At(te){return typeof te=="number"&&te>-1&&te%1==0&&te<=n}function Ot(te){var Ae=typeof te;return!!te&&(Ae=="object"||Ae=="function")}function un(te){return!!te&&typeof te=="object"}function Vt(){return!1}t.exports=Nt})(g0,g0.exports);const Xt=g0.exports,Ble="",aS={components:{CdsIcon:$t,CdsSpacer:pd,CdsClickable:Ls},props:{items:{type:Array,default:()=>[],required:!0}},methods:{resolveRoute({route:t,path:e}){const n=Xt(t)?e:t;return n instanceof String?{path:n}:n},routerPushTo(t){return this.resolveRoute(t)?this.resolveRoute(t).path:null}}},oS={class:"breadcrumb"};function lS(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-spacer"),d=a.resolveComponent("router-link"),h=a.resolveComponent("cds-clickable");return a.openBlock(),a.createElementBlock("nav",null,[a.createElementVNode("ul",oS,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.items,(f,m)=>(a.openBlock(),a.createElementBlock("li",{key:`${m}-${f.name}-item`,role:"presentation"},[m===0?(a.openBlock(),a.createBlock(h,{key:0,clickable:""},{default:a.withCtx(()=>[a.createVNode(d,{to:r.routerPushTo(f),class:"breadcrumb__link"},{default:a.withCtx(()=>[n.items.length<=2?(a.openBlock(),a.createBlock(o,{key:0,height:"16",width:"16",name:"arrow-left-outline"})):(a.openBlock(),a.createBlock(o,{key:1,height:"15",width:"15",name:"home-outline"})),a.createVNode(c,{"margin-left":"2"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(f.label),1)]),_:2},1024)]),_:2},1032,["to"])]),_:2},1024)):(a.openBlock(),a.createBlock(c,{key:1,class:"breadcrumb__item","margin-right":"1","margin-left":"1"},{default:a.withCtx(()=>[a.createVNode(o,{height:"16",width:"16",name:"caret-right-outline",class:"breadcrumb__separator"}),a.createVNode(d,{to:r.routerPushTo(f),class:"breadcrumb__link"},{default:a.withCtx(()=>[a.createVNode(h,{clickable:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(f.label),1)]),_:2},1024)]),_:2},1032,["to"])]),_:2},1024))]))),128))])])}const cS=oe(aS,[["render",lS],["__scopeId","data-v-c2046c1c"]]),Ale="",_0={props:{src:{type:String,required:!0},fallbackSrc:{type:String,required:!1},width:{type:[Number,String],default:null},height:{type:[Number,String],default:null},alt:{type:String,default:"Imagem"},opacity:{type:[Number,String],default:1},dimmed:{type:Boolean,default:!1},blackAndWhite:{type:Boolean,default:!1},roundedCorners:{type:Boolean,default:!1}},data(){return{innerSrc:this.src}},computed:{heightResolver(){return this.height?`${this.height}px`:"auto"},widthResolver(){return this.width?`${this.width}px`:"auto"},opacityResolver(){return this.width?`${this.width}px`:"auto"},radiusResolver(){return this.roundedCorners?p0(this.width):"0px"},grayScaleResolver(){return this.blackAndWhite?"grayscale(100%)":this.dimmed?"grayscale(35%)":"grayscale(0%)"}},methods:{rounder:p0,imageSrcResolver(){this.innerSrc=this.fallbackSrc}}},wg=()=>{a.useCssVars(t=>({"21136de6":t.radiusResolver,e10ed842:t.grayScaleResolver,"31ae2d7b":t.heightResolver,"1e7f7c9d":t.opacity,"775376fe":t.widthResolver}))},kg=_0.setup;_0.setup=kg?(t,e)=>(wg(),kg(t,e)):wg;const dS=_0,uS=["src","alt"];function hS(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("img",a.mergeProps(t.$attrs,{src:s.innerSrc,alt:n.alt,class:"cds__image",onError:e[0]||(e[0]=(...o)=>r.imageSrcResolver&&r.imageSrcResolver(...o))}),null,16,uS)}const xg=oe(dS,[["render",hS],["__scopeId","data-v-79754f28"]]),v0=(t,e)=>Object.keys(t).some(n=>n===e),Vle="",y0={components:{CdsBox:bl,CdsImage:xg},props:{title:{type:String,default:""},content:{type:String,default:""},imageSrc:{type:String,default:""},imageAlt:{type:String,default:"imagem do card"},imageWidth:{type:[String,Number],default:300},imageHeight:{type:[String,Number],default:180},bodyWidth:{type:[String,Number],default:300},horizontal:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1}},computed:{imageWidthResolver(){return this.horizontal?"fit-content":`${this.imageWidth}px`},bodyWidthResolver(){return`${this.bodyWidth}px`}},methods:{hasSlot:v0,handleClick(){this.clickable&&this.$emit("cardClick",!0)}}},Cg=()=>{a.useCssVars(t=>({"8d304056":t.bodyWidthResolver,"4730bd46":t.imageWidthResolver}))},Sg=y0.setup;y0.setup=Sg?(t,e)=>(Cg(),Sg(t,e)):Cg;const fS=y0,pS={class:"card__extra-container"},mS={class:"card__extra"},gS={key:0},_S={key:1,class:"card__image"},vS={key:2,class:"card__icon"},yS={class:"card__spacer"},bS={key:0,class:"card__header"},wS={key:1},kS={class:"card__header"},xS={key:2,class:"card__body"},CS={key:3},SS={class:"card__body"},MS={key:4,class:"card__footer"};function OS(t,e,n,i,s,r){const o=a.resolveComponent("cds-image"),c=a.resolveComponent("cds-box");return a.openBlock(),a.createBlock(c,{padding:"0",clickable:n.clickable,onBoxClick:r.handleClick},{default:a.withCtx(()=>[a.createElementVNode("div",pS,[a.createElementVNode("div",mS,[a.renderSlot(t.$slots,"extra",{},void 0,!0)])]),a.createElementVNode("div",{class:a.normalizeClass({"card--horizontal":this.horizontal})},[r.hasSlot(t.$slots,"image")?(a.openBlock(),a.createElementBlock("div",gS,[a.renderSlot(t.$slots,"image",{},void 0,!0)])):n.imageSrc?(a.openBlock(),a.createElementBlock("div",_S,[a.createVNode(o,{src:n.imageSrc,width:n.imageWidth,height:n.imageHeight,alt:n.imageAlt},null,8,["src","width","height","alt"])])):r.hasSlot(t.$slots,"icon")?(a.openBlock(),a.createElementBlock("div",vS,[a.renderSlot(t.$slots,"icon",{},void 0,!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",yS,[r.hasSlot(t.$slots,"header")?(a.openBlock(),a.createElementBlock("div",bS,[a.renderSlot(t.$slots,"header",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("div",wS,[a.createElementVNode("p",kS,a.toDisplayString(n.title),1)])),r.hasSlot(t.$slots,"body")?(a.openBlock(),a.createElementBlock("div",xS,[a.renderSlot(t.$slots,"body",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("div",CS,[a.createElementVNode("p",SS,a.toDisplayString(n.content),1)])),r.hasSlot(t.$slots,"footer")?(a.openBlock(),a.createElementBlock("div",MS,[a.renderSlot(t.$slots,"footer",{},void 0,!0)])):a.createCommentVNode("",!0)])],2)]),_:3},8,["clickable","onBoxClick"])}const DS=oe(fS,[["render",OS],["__scopeId","data-v-ef799654"]]),$le="",ES={components:{CdsButton:ba},props:{title:{type:String,default:"T\xEDtulo do AlertCard",required:!0},text:{type:String,default:"Subt\xEDtulo do AlertCard"},image:{type:String,default:"",required:!0},imageDescription:{type:String,default:"Imagem de CalloutCard"},actionButtonVariant:{type:String,default:"green"},actionButtonText:{type:String,default:"Ok"},actionButtonSecondary:{type:Boolean,default:!1},actionButtonDisabled:{type:Boolean,default:!1},compact:{type:Boolean,default:!1}},methods:{resolveClass(t){return this.compact?`${t}--compact`:t}}},TS={id:"callout-card"},IS={class:"image__container"},BS=["src","alt"],AS={class:"content__title"},VS={class:"content__text"};function $S(t,e,n,i,s,r){const o=a.resolveComponent("cds-button");return a.openBlock(),a.createElementBlock("span",TS,[a.createElementVNode("div",{class:a.normalizeClass(r.resolveClass("callout-card__container"))},[a.createElementVNode("div",IS,[a.createElementVNode("img",{class:a.normalizeClass(r.resolveClass("image__content")),src:n.image,alt:n.imageDescription},null,10,BS)]),a.createElementVNode("div",{class:a.normalizeClass(r.resolveClass("content__container"))},[a.createElementVNode("div",{class:a.normalizeClass(r.resolveClass("content"))},[a.createElementVNode("p",AS,a.toDisplayString(n.title),1),a.createElementVNode("span",VS,[a.renderSlot(t.$slots,"text",{},()=>[a.createTextVNode(a.toDisplayString(n.text),1)])])],2),a.createElementVNode("div",null,[a.renderSlot(t.$slots,"action",{},()=>[a.createVNode(o,{id:"content-button",variant:n.actionButtonVariant,text:n.actionButtonText,secondary:n.actionButtonSecondary,disabled:n.actionButtonDisabled,onClick:e[0]||(e[0]=c=>t.$emit("action-button-click",!0))},null,8,["variant","text","secondary","disabled"])])])],2)],2)])}const NS=oe(ES,[["render",$S]]),Nle="",zS={props:{propertyName:{type:String,default:"Dados",required:!1},perPage:{type:Number,required:!0},total:{type:Number,required:!0},simple:{type:Boolean,default:!1,required:!1},fluid:{type:Boolean,default:!1,required:!1}},data(){return{currentNumberOfItemsMin:1,currentNumberOfItemsMax:this.perPage}},computed:{numberOfPages(){return Math.ceil(this.total/this.perPage)},disabledForward(){return this.currentNumberOfItemsMax>=this.total||this.simple&&this.currentNumberOfItemsMin>=this.numberOfPages},disabledBack(){return this.currentNumberOfItemsMin===1}},methods:{handleClickBack(){if(!this.disabledBack){if(this.simple&&this.currentNumberOfItemsMin>1){this.currentNumberOfItemsMin-=1,this.$emit("click-back",{min:this.currentNumberOfItemsMin-1,max:this.currentNumberOfItemsMax+1});return}else if(this.simple&&this.currentNumberOfItemsMin===1)return;this.currentNumberOfItemsMin-this.perPage<=0?(this.currentNumberOfItemsMin=1,this.currentNumberOfItemsMax=this.perPage,this.$emit("click-back",{min:this.currentNumberOfItemsMin-1,max:this.currentNumberOfItemsMax+1})):(this.currentNumberOfItemsMax-=this.currentNumberOfItemsMax-this.currentNumberOfItemsMin+1,this.currentNumberOfItemsMin-=this.perPage,this.$emit("click-back",{min:this.currentNumberOfItemsMin-1,max:this.currentNumberOfItemsMax}))}},handleClickForward(){if(!this.disabledForward){if(this.simple&&this.currentNumberOfItemsMin<this.numberOfPages){this.currentNumberOfItemsMin+=1,this.$emit("click-forward",{min:this.currentNumberOfItemsMin-1,max:this.currentNumberOfItemsMax+1});return}else if(this.simple&&this.currentNumberOfItemsMin===this.numberOfPages)return;this.currentNumberOfItemsMax+this.perPage>this.total?(this.currentNumberOfItemsMin=this.currentNumberOfItemsMax+1,this.currentNumberOfItemsMax=this.total,this.$emit("click-forward",{min:this.currentNumberOfItemsMin-1,max:this.currentNumberOfItemsMax+1})):(this.currentNumberOfItemsMin=this.currentNumberOfItemsMax+1,this.currentNumberOfItemsMax+=this.perPage,this.$emit("click-forward",{min:this.currentNumberOfItemsMin-1,max:this.currentNumberOfItemsMax+1}))}}}},PS={key:0,class:"carousel-controller__text"},LS={key:1,class:"carousel-controller__text"},FS={class:"carousel-controller__property"};function RS(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",{class:a.normalizeClass(["carousel-controller",{"carousel-controller--fluid":n.fluid}])},[a.createElementVNode("span",{class:a.normalizeClass({"carousel-controller__previous-button--disabled":r.disabledBack,"carousel-controller__previous-button":!r.disabledBack}),onClick:e[0]||(e[0]=(...o)=>r.handleClickBack&&r.handleClickBack(...o))},null,2),a.createElementVNode("div",null,[n.simple?(a.openBlock(),a.createElementBlock("span",LS,a.toDisplayString(s.currentNumberOfItemsMin)+" de "+a.toDisplayString(r.numberOfPages),1)):(a.openBlock(),a.createElementBlock("span",PS,a.toDisplayString(s.currentNumberOfItemsMin)+"-"+a.toDisplayString(s.currentNumberOfItemsMax)+" de "+a.toDisplayString(n.total),1)),a.createElementVNode("span",FS,a.toDisplayString(n.propertyName),1)]),a.createElementVNode("span",{class:a.normalizeClass({"carousel-controller__next-button--disabled":r.disabledForward,"carousel-controller__next-button":!r.disabledForward}),onClick:e[1]||(e[1]=(...o)=>r.handleClickForward&&r.handleClickForward(...o))},null,2)],2)])}const HS=oe(zS,[["render",RS],["__scopeId","data-v-fcb19a0a"]]);function Mg(t,e){return`${t}--${e}`}const zle="",WS={props:{modelValue:{type:Boolean,default:!1,required:!0},label:{type:String,default:"checkbox content"},variant:{type:String,default:"green"},indeterminate:{type:Boolean,default:!1},prominent:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data(){return{isChecked:this.modelValue,isIndeterminate:this.indeterminate}},computed:{resolveCheckboxClass(){const t=this.disabled?"cds-checkbox__input--disabled":"",e=Mg("cds-checkbox__input",this.variant);let n=this.isChecked?"cds-checkbox__input--checked":"cds-checkbox__input--unchecked";return n=this.isIndeterminate?"cds-checkbox__input--indeterminate":n,`${e} ${n} ${t}`}},watch:{modelValue:{handler(t,e){t!==e&&(this.isChecked=this.modelValue)},immediate:!0},indeterminate:{handler(t,e){t!==e&&(this.isIndeterminate=this.indeterminate)},immediate:!0}},methods:{toggleValue(){this.disabled||(this.isChecked=this.isIndeterminate?!1:!this.isChecked,this.isIndeterminate=!1,this.$emit("update:modelValue",this.isChecked),this.$emit("update:indeterminate",!1))}}},YS={class:"cds-checkbox__container"},jS={class:"cds-checkbox__input"},US=["id","value","name","disabled"],qS=["for"],GS=["for"];function KS(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",YS,[a.createElementVNode("div",jS,[a.createElementVNode("input",{id:t.$attrs.id||"cds-checkbox-option-input",value:n.modelValue,type:"checkbox",name:t.$attrs.name||"cds-checkbox-option",disabled:n.disabled},null,8,US),a.createElementVNode("label",{for:t.$attrs.id||"cds-checkbox-option-input",class:a.normalizeClass(r.resolveCheckboxClass),onClick:e[0]||(e[0]=(...o)=>r.toggleValue&&r.toggleValue(...o))},null,10,qS)]),a.createElementVNode("label",{class:a.normalizeClass(["cds-checkbox__label",{"cds-checkbox__label--disabled":n.disabled,"cds-checkbox__label--prominent":n.prominent&&n.modelValue}]),for:t.$attrs.id||"cds-checkbox-option-input",onClick:e[1]||(e[1]=(...o)=>r.toggleValue&&r.toggleValue(...o))},a.toDisplayString(n.label),11,GS)])}const b0=oe(WS,[["render",KS],["__scopeId","data-v-0758b096"]]),Ple="",ZS={props:{modelValue:{type:Boolean,default:!1,required:!0},title:{type:String,default:"Visualizar mais"}},data(){return{internalValue:this.modelValue}},watch:{internalValue(t){this.$emit("update:modelValue",t)},modelValue(t){this.internalValue=t}},methods:{triggerExpanded(){this.internalValue=!this.internalValue}}},XS={id:"collapsible-container"},JS={class:"collapsible-container__title"},QS={key:0,class:"collapsible-container__content"};function eM(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",XS,[a.createElementVNode("div",{class:"collapsible-container__item",onClick:e[0]||(e[0]=(...o)=>r.triggerExpanded&&r.triggerExpanded(...o))},[a.createElementVNode("span",{class:a.normalizeClass(s.internalValue?"collapsible-container__chevron--opened":"collapsible-container__chevron--closed")},null,2),a.renderSlot(t.$slots,"title",{},()=>[a.createElementVNode("span",JS,a.toDisplayString(n.title),1)])]),s.internalValue?(a.openBlock(),a.createElementBlock("div",QS,[a.renderSlot(t.$slots,"default")])):a.createCommentVNode("",!0)])}const tM=oe(ZS,[["render",eM]]),w0=t=>{var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:null},nM=.2126,iM=.7152,sM=.0722,rM=2.4,aM={POOR:3,GOOD:4.5,VERYGOOD:7,SUPER:12},oM=(t,e,n="GOOD")=>{let i=w0(t),s=w0(e);var r=Og(...i),o=Og(...s),c=Math.max(r,o),d=Math.min(r,o);return(c+.05)/(d+.05)>=aM[n]};function Og(t,e,n){var i=[t,e,n].map(s=>(s/=255,s<=.03928?s/12.92:Math.pow((s+.055)/1.055,rM)));return i[0]*nM+i[1]*iM+i[2]*sM}const Lle="",k0={components:{CdsPopover:y1,CdsIcon:$t},props:{modelValue:{type:String,required:!0},label:{type:String,default:"Label"},inline:{type:Boolean,default:!1},popoverHeight:{type:Number,default:190},swatch:{type:Array,default:()=>[]}},data(){return{selectedColor:this.modelValue,sassColorVariables:Gs,showPopover:!1}},computed:{iconColorResolver(){return this.ContrastChecker(this.selectedColor,"#FFFFFF","POOR")?"swatch__icon--white":"swatch__icon--black"},palete(){return this.paleteBuilder(this.sassColorVariables.palete)}},watch:{modelValue:{handler(t,e){t!==e&&(this.selectedColor=t)},immediate:!0}},methods:{paleteBuilder:Ea,ContrastChecker:oM,SwatchSelection(t){let e="";this.selectedColor=this.sassColorVariables[t.replace(/-|\$/gi,"")],this.palete.forEach(n=>{n.colorTokens.find(i=>i===t)&&(e=n.variantName.toLowerCase())}),this.$emit("update:modelValue",this.selectedColor),this.$emit("variant-chosen",e)},isCurrentColorSelected(t){return this.selectedColor===this.sassColorVariables[t.replace(/-|\$/gi,"")]}}},Dg=()=>{a.useCssVars(t=>({f73e5680:t.selectedColor}))},Eg=k0.setup;k0.setup=Eg?(t,e)=>(Dg(),Eg(t,e)):Dg;const lM=k0,cM=t=>(a.pushScopeId("data-v-a4ff5e3b"),t=t(),a.popScopeId(),t),dM={key:0},uM={class:"color-picker__label"},hM=["onClick"],fM={key:1},pM=[cM(()=>a.createElementVNode("div",{class:"color-picker__preview"},null,-1))],mM=["onClick"];function gM(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-popover");return n.inline?(a.openBlock(),a.createElementBlock("div",dM,[a.createElementVNode("div",uM,a.toDisplayString(n.label),1),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.swatch,(d,h)=>(a.openBlock(),a.createElementBlock("div",{key:h,class:"color-picker__container"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d,(f,m)=>(a.openBlock(),a.createElementBlock("div",{key:m},[a.createElementVNode("div",{class:a.normalizeClass(`color-picker__swatch--${f.replace("$","")}`),onClick:g=>r.SwatchSelection(f)},[r.isCurrentColorSelected(f)?(a.openBlock(),a.createBlock(o,{key:0,height:"22",width:"22",name:"check-outline",class:a.normalizeClass(["swatch__icon",r.iconColorResolver])},null,8,["class"])):a.createCommentVNode("",!0)],10,hM)]))),128))]))),128))])):(a.openBlock(),a.createElementBlock("div",fM,[a.createElementVNode("div",{id:"color-picker",class:"color-picker__trigger",onClick:e[0]||(e[0]=a.withModifiers(d=>s.showPopover=!s.showPopover,["stop"]))},pM),a.createVNode(c,{modelValue:s.showPopover,"onUpdate:modelValue":e[1]||(e[1]=d=>s.showPopover=d),"right-aligned":!1,"target-id":"color-picker",height:n.popoverHeight,"fit-content-width":""},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.swatch,(d,h)=>(a.openBlock(),a.createElementBlock("div",{key:h,class:"popover__container"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d,(f,m)=>(a.openBlock(),a.createElementBlock("div",{key:m},[a.createElementVNode("div",{class:a.normalizeClass(`color-picker__swatch--${f.replace("$","")}`),onClick:g=>r.SwatchSelection(f)},[r.isCurrentColorSelected(f)?(a.openBlock(),a.createBlock(o,{key:0,height:"22",width:"22",name:"check-outline",class:a.normalizeClass(["swatch__icon",r.iconColorResolver])},null,8,["class"])):a.createCommentVNode("",!0)],10,mM)]))),128))]))),128))]),_:1},8,["modelValue","height"])]))}const _M=oe(lM,[["render",gM],["__scopeId","data-v-a4ff5e3b"]]),Rle="",vM={props:{title:{type:String,default:"",required:!1},description:{type:String,default:"",required:!1},showAction:{type:Boolean,default:!1,required:!1},action:{type:String,default:"Action",required:!1},fluid:{type:Boolean,default:!1}}},yM={class:"dashboard-card"},bM={class:"dashboard-card__header"},wM={key:0,class:"dashboard-card__title"},kM={key:1,class:"dashboard-card__title"},xM={key:0,class:"dashboard-card__description"},CM={key:1,class:"dashboard-card__description"},SM={key:0};function MM(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",yM,[a.createElementVNode("div",null,[a.createElementVNode("div",bM,[n.title.length>0?(a.openBlock(),a.createElementBlock("p",wM,a.toDisplayString(n.title),1)):(a.openBlock(),a.createElementBlock("p",kM,[a.renderSlot(t.$slots,"title-slot",{},void 0,!0)])),a.createElementVNode("div",null,[a.renderSlot(t.$slots,"status-slot",{},void 0,!0)])]),n.description.length>0?(a.openBlock(),a.createElementBlock("p",xM,a.toDisplayString(n.description),1)):(a.openBlock(),a.createElementBlock("p",CM,[a.renderSlot(t.$slots,"description-slot",{},void 0,!0)]))]),a.createElementVNode("div",{class:"dashboard-card__action",onClick:e[0]||(e[0]=o=>t.$emit("action-button-click"))},[a.renderSlot(t.$slots,"action-slot",{},()=>[n.showAction?(a.openBlock(),a.createElementBlock("div",SM,a.toDisplayString(n.action),1)):a.createCommentVNode("",!0)],!0)])])}const OM=oe(vM,[["render",MM],["__scopeId","data-v-cd0db219"]]);class Vr extends Error{}class DM extends Vr{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class EM extends Vr{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class TM extends Vr{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Ta extends Vr{}class Tg extends Vr{constructor(e){super(`Invalid unit ${e}`)}}class Hn extends Vr{}class Ks extends Vr{constructor(){super("Zone is an abstract class")}}const ce="numeric",Ai="short",ei="long",md={year:ce,month:ce,day:ce},Ig={year:ce,month:Ai,day:ce},IM={year:ce,month:Ai,day:ce,weekday:Ai},Bg={year:ce,month:ei,day:ce},Ag={year:ce,month:ei,day:ce,weekday:ei},Vg={hour:ce,minute:ce},$g={hour:ce,minute:ce,second:ce},Ng={hour:ce,minute:ce,second:ce,timeZoneName:Ai},zg={hour:ce,minute:ce,second:ce,timeZoneName:ei},Pg={hour:ce,minute:ce,hourCycle:"h23"},Lg={hour:ce,minute:ce,second:ce,hourCycle:"h23"},Fg={hour:ce,minute:ce,second:ce,hourCycle:"h23",timeZoneName:Ai},Rg={hour:ce,minute:ce,second:ce,hourCycle:"h23",timeZoneName:ei},Hg={year:ce,month:ce,day:ce,hour:ce,minute:ce},Wg={year:ce,month:ce,day:ce,hour:ce,minute:ce,second:ce},Yg={year:ce,month:Ai,day:ce,hour:ce,minute:ce},jg={year:ce,month:Ai,day:ce,hour:ce,minute:ce,second:ce},BM={year:ce,month:Ai,day:ce,weekday:Ai,hour:ce,minute:ce},Ug={year:ce,month:ei,day:ce,hour:ce,minute:ce,timeZoneName:Ai},qg={year:ce,month:ei,day:ce,hour:ce,minute:ce,second:ce,timeZoneName:Ai},Gg={year:ce,month:ei,day:ce,weekday:ei,hour:ce,minute:ce,timeZoneName:ei},Kg={year:ce,month:ei,day:ce,weekday:ei,hour:ce,minute:ce,second:ce,timeZoneName:ei};class wl{get type(){throw new Ks}get name(){throw new Ks}get ianaName(){return this.name}get isUniversal(){throw new Ks}offsetName(e,n){throw new Ks}formatOffset(e,n){throw new Ks}offset(e){throw new Ks}equals(e){throw new Ks}get isValid(){throw new Ks}}let x0=null;class gd extends wl{static get instance(){return x0===null&&(x0=new gd),x0}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:i}){return y3(e,n,i)}formatOffset(e,n){return Sl(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let _d={};function AM(t){return _d[t]||(_d[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),_d[t]}const VM={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function $M(t,e){const n=t.format(e).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,r,o,c,d,h,f]=i;return[o,s,r,c,d,h,f]}function NM(t,e){const n=t.formatToParts(e),i=[];for(let s=0;s<n.length;s++){const{type:r,value:o}=n[s],c=VM[r];r==="era"?i[c]=o:Ie(c)||(i[c]=parseInt(o,10))}return i}let vd={};class gs extends wl{static create(e){return vd[e]||(vd[e]=new gs(e)),vd[e]}static resetCache(){vd={},_d={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=gs.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:i}){return y3(e,n,i,this.name)}formatOffset(e,n){return Sl(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const i=AM(this.name);let[s,r,o,c,d,h,f]=i.formatToParts?NM(i,n):$M(i,n);c==="BC"&&(s=-Math.abs(s)+1);const g=xd({year:s,month:r,day:o,hour:d===24?0:d,minute:h,second:f,millisecond:0});let v=+n;const b=v%1e3;return v-=b>=0?b:1e3+b,(g-v)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Zg={};function zM(t,e={}){const n=JSON.stringify([t,e]);let i=Zg[n];return i||(i=new Intl.ListFormat(t,e),Zg[n]=i),i}let C0={};function S0(t,e={}){const n=JSON.stringify([t,e]);let i=C0[n];return i||(i=new Intl.DateTimeFormat(t,e),C0[n]=i),i}let M0={};function PM(t,e={}){const n=JSON.stringify([t,e]);let i=M0[n];return i||(i=new Intl.NumberFormat(t,e),M0[n]=i),i}let O0={};function LM(t,e={}){const{base:n,...i}=e,s=JSON.stringify([t,i]);let r=O0[s];return r||(r=new Intl.RelativeTimeFormat(t,e),O0[s]=r),r}let kl=null;function FM(){return kl||(kl=new Intl.DateTimeFormat().resolvedOptions().locale,kl)}let Xg={};function RM(t){let e=Xg[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,Xg[t]=e}return e}function HM(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let i,s;try{i=S0(t).resolvedOptions(),s=t}catch{const d=t.substring(0,n);i=S0(d).resolvedOptions(),s=d}const{numberingSystem:r,calendar:o}=i;return[s,r,o]}}function WM(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function YM(t){const e=[];for(let n=1;n<=12;n++){const i=Ce.utc(2009,n,1);e.push(t(i))}return e}function jM(t){const e=[];for(let n=1;n<=7;n++){const i=Ce.utc(2016,11,13+n);e.push(t(i))}return e}function yd(t,e,n,i){const s=t.listingMode();return s==="error"?null:s==="en"?n(e):i(e)}function UM(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class qM{constructor(e,n,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:s,floor:r,...o}=i;if(!n||Object.keys(o).length>0){const c={useGrouping:!1,...i};i.padTo>0&&(c.minimumIntegerDigits=i.padTo),this.inf=PM(e,c)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):V0(e,3);return Jt(n,this.padTo)}}}class GM{constructor(e,n,i){this.opts=i,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const o=-1*(e.offset/60),c=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&gs.create(c).valid?(s=c,this.dt=e):(s="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const r={...this.opts};r.timeZone=r.timeZone||s,this.dtf=S0(n,r)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const i=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:i}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class KM{constructor(e,n,i){this.opts={style:"long",...i},!n&&m3()&&(this.rtf=LM(e,i))}format(e,n){return this.rtf?this.rtf.format(e,n):mO(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const ZM={firstDay:1,minimalDays:4,weekend:[6,7]};class _t{static fromOpts(e){return _t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,i,s,r=!1){const o=e||qt.defaultLocale,c=o||(r?"en-US":FM()),d=n||qt.defaultNumberingSystem,h=i||qt.defaultOutputCalendar,f=B0(s)||qt.defaultWeekSettings;return new _t(c,d,h,f,o)}static resetCache(){kl=null,C0={},M0={},O0={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:i,weekSettings:s}={}){return _t.create(e,n,i,s)}constructor(e,n,i,s,r){const[o,c,d]=HM(e);this.locale=o,this.numberingSystem=n||c||null,this.outputCalendar=i||d||null,this.weekSettings=s,this.intl=WM(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=UM(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:_t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,B0(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return yd(this,e,k3,()=>{const i=n?{month:e,day:"numeric"}:{month:e},s=n?"format":"standalone";return this.monthsCache[s][e]||(this.monthsCache[s][e]=YM(r=>this.extract(r,i,"month"))),this.monthsCache[s][e]})}weekdays(e,n=!1){return yd(this,e,S3,()=>{const i=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=n?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=jM(r=>this.extract(r,i,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return yd(this,void 0,()=>M3,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ce.utc(2016,11,13,9),Ce.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return yd(this,e,O3,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[Ce.utc(-40,1,1),Ce.utc(2017,1,1)].map(i=>this.extract(i,n,"era"))),this.eraCache[e]})}extract(e,n,i){const s=this.dtFormatter(e,n),r=s.formatToParts(),o=r.find(c=>c.type.toLowerCase()===i);return o?o.value:null}numberFormatter(e={}){return new qM(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new GM(e,this.intl,n)}relFormatter(e={}){return new KM(this.intl,this.isEnglish(),e)}listFormatter(e={}){return zM(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:g3()?RM(this.locale):ZM}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let D0=null;class En extends wl{static get utcInstance(){return D0===null&&(D0=new En(0)),D0}static instance(e){return e===0?En.utcInstance:new En(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new En(Cd(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Sl(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Sl(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Sl(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class XM extends wl{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Zs(t,e){if(Ie(t)||t===null)return e;if(t instanceof wl)return t;if(eO(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?gd.instance:n==="utc"||n==="gmt"?En.utcInstance:En.parseSpecifier(n)||gs.create(t)}else return $r(t)?En.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new XM(t)}let Jg=()=>Date.now(),Qg="system",e3=null,t3=null,n3=null,i3=60,s3,r3=null;class qt{static get now(){return Jg}static set now(e){Jg=e}static set defaultZone(e){Qg=e}static get defaultZone(){return Zs(Qg,gd.instance)}static get defaultLocale(){return e3}static set defaultLocale(e){e3=e}static get defaultNumberingSystem(){return t3}static set defaultNumberingSystem(e){t3=e}static get defaultOutputCalendar(){return n3}static set defaultOutputCalendar(e){n3=e}static get defaultWeekSettings(){return r3}static set defaultWeekSettings(e){r3=B0(e)}static get twoDigitCutoffYear(){return i3}static set twoDigitCutoffYear(e){i3=e%100}static get throwOnInvalid(){return s3}static set throwOnInvalid(e){s3=e}static resetCaches(){_t.resetCache(),gs.resetCache()}}class Vi{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const a3=[0,31,59,90,120,151,181,212,243,273,304,334],o3=[0,31,60,91,121,152,182,213,244,274,305,335];function pi(t,e){return new Vi("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function E0(t,e,n){const i=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const s=i.getUTCDay();return s===0?7:s}function l3(t,e,n){return n+(xl(t)?o3:a3)[e-1]}function c3(t,e){const n=xl(t)?o3:a3,i=n.findIndex(r=>r<e),s=e-n[i];return{month:i+1,day:s}}function T0(t,e){return(t-e+7)%7+1}function bd(t,e=4,n=1){const{year:i,month:s,day:r}=t,o=l3(i,s,r),c=T0(E0(i,s,r),n);let d=Math.floor((o-c+14-e)/7),h;return d<1?(h=i-1,d=Cl(h,e,n)):d>Cl(i,e,n)?(h=i+1,d=1):h=i,{weekYear:h,weekNumber:d,weekday:c,...Md(t)}}function d3(t,e=4,n=1){const{weekYear:i,weekNumber:s,weekday:r}=t,o=T0(E0(i,1,e),n),c=Ba(i);let d=s*7+r-o-7+e,h;d<1?(h=i-1,d+=Ba(h)):d>c?(h=i+1,d-=Ba(i)):h=i;const{month:f,day:m}=c3(h,d);return{year:h,month:f,day:m,...Md(t)}}function I0(t){const{year:e,month:n,day:i}=t,s=l3(e,n,i);return{year:e,ordinal:s,...Md(t)}}function u3(t){const{year:e,ordinal:n}=t,{month:i,day:s}=c3(e,n);return{year:e,month:i,day:s,...Md(t)}}function h3(t,e){if(!Ie(t.localWeekday)||!Ie(t.localWeekNumber)||!Ie(t.localWeekYear)){if(!Ie(t.weekday)||!Ie(t.weekNumber)||!Ie(t.weekYear))throw new Ta("Cannot mix locale-based week fields with ISO-based week fields");return Ie(t.localWeekday)||(t.weekday=t.localWeekday),Ie(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Ie(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function JM(t,e=4,n=1){const i=wd(t.weekYear),s=mi(t.weekNumber,1,Cl(t.weekYear,e,n)),r=mi(t.weekday,1,7);return i?s?r?!1:pi("weekday",t.weekday):pi("week",t.weekNumber):pi("weekYear",t.weekYear)}function QM(t){const e=wd(t.year),n=mi(t.ordinal,1,Ba(t.year));return e?n?!1:pi("ordinal",t.ordinal):pi("year",t.year)}function f3(t){const e=wd(t.year),n=mi(t.month,1,12),i=mi(t.day,1,kd(t.year,t.month));return e?n?i?!1:pi("day",t.day):pi("month",t.month):pi("year",t.year)}function p3(t){const{hour:e,minute:n,second:i,millisecond:s}=t,r=mi(e,0,23)||e===24&&n===0&&i===0&&s===0,o=mi(n,0,59),c=mi(i,0,59),d=mi(s,0,999);return r?o?c?d?!1:pi("millisecond",s):pi("second",i):pi("minute",n):pi("hour",e)}function Ie(t){return typeof t>"u"}function $r(t){return typeof t=="number"}function wd(t){return typeof t=="number"&&t%1===0}function eO(t){return typeof t=="string"}function tO(t){return Object.prototype.toString.call(t)==="[object Date]"}function m3(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function g3(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function nO(t){return Array.isArray(t)?t:[t]}function _3(t,e,n){if(t.length!==0)return t.reduce((i,s)=>{const r=[e(s),s];return i&&n(i[0],r[0])===i[0]?i:r},null)[1]}function iO(t,e){return e.reduce((n,i)=>(n[i]=t[i],n),{})}function Ia(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function B0(t){if(t==null)return null;if(typeof t!="object")throw new Hn("Week settings must be an object");if(!mi(t.firstDay,1,7)||!mi(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!mi(e,1,7)))throw new Hn("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function mi(t,e,n){return wd(t)&&t>=e&&t<=n}function sO(t,e){return t-e*Math.floor(t/e)}function Jt(t,e=2){const n=t<0;let i;return n?i="-"+(""+-t).padStart(e,"0"):i=(""+t).padStart(e,"0"),i}function Xs(t){if(!(Ie(t)||t===null||t===""))return parseInt(t,10)}function Nr(t){if(!(Ie(t)||t===null||t===""))return parseFloat(t)}function A0(t){if(!(Ie(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function V0(t,e,n=!1){const i=10**e;return(n?Math.trunc:Math.round)(t*i)/i}function xl(t){return t%4===0&&(t%100!==0||t%400===0)}function Ba(t){return xl(t)?366:365}function kd(t,e){const n=sO(e-1,12)+1,i=t+(e-n)/12;return n===2?xl(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function xd(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function v3(t,e,n){return-T0(E0(t,1,e),n)+e-1}function Cl(t,e=4,n=1){const i=v3(t,e,n),s=v3(t+1,e,n);return(Ba(t)-i+s)/7}function $0(t){return t>99?t:t>qt.twoDigitCutoffYear?1900+t:2e3+t}function y3(t,e,n,i=null){const s=new Date(t),r={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(r.timeZone=i);const o={timeZoneName:e,...r},c=new Intl.DateTimeFormat(n,o).formatToParts(s).find(d=>d.type.toLowerCase()==="timezonename");return c?c.value:null}function Cd(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const i=parseInt(e,10)||0,s=n<0||Object.is(n,-0)?-i:i;return n*60+s}function b3(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Hn(`Invalid unit value ${t}`);return e}function Sd(t,e){const n={};for(const i in t)if(Ia(t,i)){const s=t[i];if(s==null)continue;n[e(i)]=b3(s)}return n}function Sl(t,e){const n=Math.trunc(Math.abs(t/60)),i=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${Jt(n,2)}:${Jt(i,2)}`;case"narrow":return`${s}${n}${i>0?`:${i}`:""}`;case"techie":return`${s}${Jt(n,2)}${Jt(i,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Md(t){return iO(t,["hour","minute","second","millisecond"])}const rO=["January","February","March","April","May","June","July","August","September","October","November","December"],w3=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],aO=["J","F","M","A","M","J","J","A","S","O","N","D"];function k3(t){switch(t){case"narrow":return[...aO];case"short":return[...w3];case"long":return[...rO];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const x3=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],C3=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],oO=["M","T","W","T","F","S","S"];function S3(t){switch(t){case"narrow":return[...oO];case"short":return[...C3];case"long":return[...x3];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const M3=["AM","PM"],lO=["Before Christ","Anno Domini"],cO=["BC","AD"],dO=["B","A"];function O3(t){switch(t){case"narrow":return[...dO];case"short":return[...cO];case"long":return[...lO];default:return null}}function uO(t){return M3[t.hour<12?0:1]}function hO(t,e){return S3(e)[t.weekday-1]}function fO(t,e){return k3(e)[t.month-1]}function pO(t,e){return O3(e)[t.year<0?0:1]}function mO(t,e,n="always",i=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&r){const m=t==="days";switch(e){case 1:return m?"tomorrow":`next ${s[t][0]}`;case-1:return m?"yesterday":`last ${s[t][0]}`;case 0:return m?"today":`this ${s[t][0]}`}}const o=Object.is(e,-0)||e<0,c=Math.abs(e),d=c===1,h=s[t],f=i?d?h[1]:h[2]||h[1]:d?s[t][0]:t;return o?`${c} ${f} ago`:`in ${c} ${f}`}function D3(t,e){let n="";for(const i of t)i.literal?n+=i.val:n+=e(i.val);return n}const gO={D:md,DD:Ig,DDD:Bg,DDDD:Ag,t:Vg,tt:$g,ttt:Ng,tttt:zg,T:Pg,TT:Lg,TTT:Fg,TTTT:Rg,f:Hg,ff:Yg,fff:Ug,ffff:Gg,F:Wg,FF:jg,FFF:qg,FFFF:Kg};class wn{static create(e,n={}){return new wn(e,n)}static parseFormat(e){let n=null,i="",s=!1;const r=[];for(let o=0;o<e.length;o++){const c=e.charAt(o);c==="'"?(i.length>0&&r.push({literal:s||/^\s+$/.test(i),val:i}),n=null,i="",s=!s):s||c===n?i+=c:(i.length>0&&r.push({literal:/^\s+$/.test(i),val:i}),i=c,n=c)}return i.length>0&&r.push({literal:s||/^\s+$/.test(i),val:i}),r}static macroTokenToFormatOpts(e){return gO[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return Jt(e,n);const i={...this.opts};return n>0&&(i.padTo=n),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,n){const i=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",r=(v,b)=>this.loc.extract(e,v,b),o=v=>e.isOffsetFixed&&e.offset===0&&v.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,v.format):"",c=()=>i?uO(e):r({hour:"numeric",hourCycle:"h12"},"dayperiod"),d=(v,b)=>i?fO(e,v):r(b?{month:v}:{month:v,day:"numeric"},"month"),h=(v,b)=>i?hO(e,v):r(b?{weekday:v}:{weekday:v,month:"long",day:"numeric"},"weekday"),f=v=>{const b=wn.macroTokenToFormatOpts(v);return b?this.formatWithSystemDefault(e,b):v},m=v=>i?pO(e,v):r({era:v},"era"),g=v=>{switch(v){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return c();case"d":return s?r({day:"numeric"},"day"):this.num(e.day);case"dd":return s?r({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return h("short",!0);case"cccc":return h("long",!0);case"ccccc":return h("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return h("short",!1);case"EEEE":return h("long",!1);case"EEEEE":return h("narrow",!1);case"L":return s?r({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?r({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return d("short",!0);case"LLLL":return d("long",!0);case"LLLLL":return d("narrow",!0);case"M":return s?r({month:"numeric"},"month"):this.num(e.month);case"MM":return s?r({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return d("short",!1);case"MMMM":return d("long",!1);case"MMMMM":return d("narrow",!1);case"y":return s?r({year:"numeric"},"year"):this.num(e.year);case"yy":return s?r({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?r({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?r({year:"numeric"},"year"):this.num(e.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return f(v)}};return D3(wn.parseFormat(n),g)}formatDurationFromString(e,n){const i=d=>{switch(d[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=d=>h=>{const f=i(h);return f?this.num(d.get(f),h.length):h},r=wn.parseFormat(n),o=r.reduce((d,{literal:h,val:f})=>h?d:d.concat(f),[]),c=e.shiftTo(...o.map(i).filter(d=>d));return D3(r,s(c))}}const E3=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Aa(...t){const e=t.reduce((n,i)=>n+i.source,"");return RegExp(`^${e}$`)}function Va(...t){return e=>t.reduce(([n,i,s],r)=>{const[o,c,d]=r(e,s);return[{...n,...o},c||i,d]},[{},null,1]).slice(0,2)}function $a(t,...e){if(t==null)return[null,null];for(const[n,i]of e){const s=n.exec(t);if(s)return i(s)}return[null,null]}function T3(...t){return(e,n)=>{const i={};let s;for(s=0;s<t.length;s++)i[t[s]]=Xs(e[n+s]);return[i,null,n+s]}}const I3=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,_O=`(?:${I3.source}?(?:\\[(${E3.source})\\])?)?`,N0=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,B3=RegExp(`${N0.source}${_O}`),z0=RegExp(`(?:T${B3.source})?`),vO=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,yO=/(\d{4})-?W(\d\d)(?:-?(\d))?/,bO=/(\d{4})-?(\d{3})/,wO=T3("weekYear","weekNumber","weekDay"),kO=T3("year","ordinal"),xO=/(\d{4})-(\d\d)-(\d\d)/,A3=RegExp(`${N0.source} ?(?:${I3.source}|(${E3.source}))?`),CO=RegExp(`(?: ${A3.source})?`);function Na(t,e,n){const i=t[e];return Ie(i)?n:Xs(i)}function SO(t,e){return[{year:Na(t,e),month:Na(t,e+1,1),day:Na(t,e+2,1)},null,e+3]}function za(t,e){return[{hours:Na(t,e,0),minutes:Na(t,e+1,0),seconds:Na(t,e+2,0),milliseconds:A0(t[e+3])},null,e+4]}function Ml(t,e){const n=!t[e]&&!t[e+1],i=Cd(t[e+1],t[e+2]),s=n?null:En.instance(i);return[{},s,e+3]}function Ol(t,e){const n=t[e]?gs.create(t[e]):null;return[{},n,e+1]}const MO=RegExp(`^T?${N0.source}$`),OO=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function DO(t){const[e,n,i,s,r,o,c,d,h]=t,f=e[0]==="-",m=d&&d[0]==="-",g=(v,b=!1)=>v!==void 0&&(b||v&&f)?-v:v;return[{years:g(Nr(n)),months:g(Nr(i)),weeks:g(Nr(s)),days:g(Nr(r)),hours:g(Nr(o)),minutes:g(Nr(c)),seconds:g(Nr(d),d==="-0"),milliseconds:g(A0(h),m)}]}const EO={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function P0(t,e,n,i,s,r,o){const c={year:e.length===2?$0(Xs(e)):Xs(e),month:w3.indexOf(n)+1,day:Xs(i),hour:Xs(s),minute:Xs(r)};return o&&(c.second=Xs(o)),t&&(c.weekday=t.length>3?x3.indexOf(t)+1:C3.indexOf(t)+1),c}const TO=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function IO(t){const[,e,n,i,s,r,o,c,d,h,f,m]=t,g=P0(e,s,i,n,r,o,c);let v;return d?v=EO[d]:h?v=0:v=Cd(f,m),[g,new En(v)]}function BO(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const AO=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,VO=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,$O=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function V3(t){const[,e,n,i,s,r,o,c]=t;return[P0(e,s,i,n,r,o,c),En.utcInstance]}function NO(t){const[,e,n,i,s,r,o,c]=t;return[P0(e,c,n,i,s,r,o),En.utcInstance]}const zO=Aa(vO,z0),PO=Aa(yO,z0),LO=Aa(bO,z0),FO=Aa(B3),$3=Va(SO,za,Ml,Ol),RO=Va(wO,za,Ml,Ol),HO=Va(kO,za,Ml,Ol),WO=Va(za,Ml,Ol);function YO(t){return $a(t,[zO,$3],[PO,RO],[LO,HO],[FO,WO])}function jO(t){return $a(BO(t),[TO,IO])}function UO(t){return $a(t,[AO,V3],[VO,V3],[$O,NO])}function qO(t){return $a(t,[OO,DO])}const GO=Va(za);function KO(t){return $a(t,[MO,GO])}const ZO=Aa(xO,CO),XO=Aa(A3),JO=Va(za,Ml,Ol);function QO(t){return $a(t,[ZO,$3],[XO,JO])}const N3="Invalid Duration",z3={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},eD={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...z3},gi=146097/400,Pa=146097/4800,tD={years:{quarters:4,months:12,weeks:gi/7,days:gi,hours:gi*24,minutes:gi*24*60,seconds:gi*24*60*60,milliseconds:gi*24*60*60*1e3},quarters:{months:3,weeks:gi/28,days:gi/4,hours:gi*24/4,minutes:gi*24*60/4,seconds:gi*24*60*60/4,milliseconds:gi*24*60*60*1e3/4},months:{weeks:Pa/7,days:Pa,hours:Pa*24,minutes:Pa*24*60,seconds:Pa*24*60*60,milliseconds:Pa*24*60*60*1e3},...z3},zr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],nD=zr.slice(0).reverse();function Js(t,e,n=!1){const i={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Je(i)}function P3(t,e){let n=e.milliseconds??0;for(const i of nD.slice(1))e[i]&&(n+=e[i]*t[i].milliseconds);return n}function L3(t,e){const n=P3(t,e)<0?-1:1;zr.reduceRight((i,s)=>{if(Ie(e[s]))return i;if(i){const r=e[i]*n,o=t[s][i],c=Math.floor(r/o);e[s]+=c*n,e[i]-=c*o*n}return s},null),zr.reduce((i,s)=>{if(Ie(e[s]))return i;if(i){const r=e[i]%1;e[i]-=r,e[s]+=r*t[i][s]}return s},null)}function iD(t){const e={};for(const[n,i]of Object.entries(t))i!==0&&(e[n]=i);return e}class Je{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let i=n?tD:eD;e.matrix&&(i=e.matrix),this.values=e.values,this.loc=e.loc||_t.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(e,n){return Je.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new Hn(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Je({values:Sd(e,Je.normalizeUnit),loc:_t.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if($r(e))return Je.fromMillis(e);if(Je.isDuration(e))return e;if(typeof e=="object")return Je.fromObject(e);throw new Hn(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[i]=qO(e);return i?Je.fromObject(i,n):Je.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[i]=KO(e);return i?Je.fromObject(i,n):Je.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new Hn("need to specify a reason the Duration is invalid");const i=e instanceof Vi?e:new Vi(e,n);if(qt.throwOnInvalid)throw new TM(i);return new Je({invalid:i})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new Tg(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const i={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?wn.create(this.loc,i).formatDurationFromString(this,e):N3}toHuman(e={}){if(!this.isValid)return N3;const n=zr.map(i=>{const s=this.values[i];return Ie(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(s)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=V0(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Ce.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?P3(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=Je.fromDurationLike(e),i={};for(const s of zr)(Ia(n.values,s)||Ia(this.values,s))&&(i[s]=n.get(s)+this.get(s));return Js(this,{values:i},!0)}minus(e){if(!this.isValid)return this;const n=Je.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const i of Object.keys(this.values))n[i]=b3(e(this.values[i],i));return Js(this,{values:n},!0)}get(e){return this[Je.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Sd(e,Je.normalizeUnit)};return Js(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:i,matrix:s}={}){const o={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:s,conversionAccuracy:i};return Js(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return L3(this.matrix,e),Js(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=iD(this.normalize().shiftToAll().toObject());return Js(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>Je.normalizeUnit(o));const n={},i={},s=this.toObject();let r;for(const o of zr)if(e.indexOf(o)>=0){r=o;let c=0;for(const h in i)c+=this.matrix[h][o]*i[h],i[h]=0;$r(s[o])&&(c+=s[o]);const d=Math.trunc(c);n[o]=d,i[o]=(c*1e3-d*1e3)/1e3}else $r(s[o])&&(i[o]=s[o]);for(const o in i)i[o]!==0&&(n[r]+=o===r?i[o]:i[o]/this.matrix[r][o]);return L3(this.matrix,n),Js(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return Js(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(i,s){return i===void 0||i===0?s===void 0||s===0:i===s}for(const i of zr)if(!n(this.values[i],e.values[i]))return!1;return!0}}const La="Invalid Interval";function sD(t,e){return!t||!t.isValid?Lt.invalid("missing or invalid start"):!e||!e.isValid?Lt.invalid("missing or invalid end"):e<t?Lt.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class Lt{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new Hn("need to specify a reason the Interval is invalid");const i=e instanceof Vi?e:new Vi(e,n);if(qt.throwOnInvalid)throw new EM(i);return new Lt({invalid:i})}static fromDateTimes(e,n){const i=El(e),s=El(n),r=sD(i,s);return r??new Lt({start:i,end:s})}static after(e,n){const i=Je.fromDurationLike(n),s=El(e);return Lt.fromDateTimes(s,s.plus(i))}static before(e,n){const i=Je.fromDurationLike(n),s=El(e);return Lt.fromDateTimes(s.minus(i),s)}static fromISO(e,n){const[i,s]=(e||"").split("/",2);if(i&&s){let r,o;try{r=Ce.fromISO(i,n),o=r.isValid}catch{o=!1}let c,d;try{c=Ce.fromISO(s,n),d=c.isValid}catch{d=!1}if(o&&d)return Lt.fromDateTimes(r,c);if(o){const h=Je.fromISO(s,n);if(h.isValid)return Lt.after(r,h)}else if(d){const h=Je.fromISO(i,n);if(h.isValid)return Lt.before(c,h)}}return Lt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const i=this.start.startOf(e,n);let s;return n!=null&&n.useLocaleWeeks?s=this.end.reconfigure({locale:i.locale}):s=this.end,s=s.startOf(e,n),Math.floor(s.diff(i,e).get(e))+(s.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?Lt.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(El).filter(o=>this.contains(o)).sort((o,c)=>o.toMillis()-c.toMillis()),i=[];let{s}=this,r=0;for(;s<this.e;){const o=n[r]||this.e,c=+o>+this.e?this.e:o;i.push(Lt.fromDateTimes(s,c)),s=c,r+=1}return i}splitBy(e){const n=Je.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:i}=this,s=1,r;const o=[];for(;i<this.e;){const c=this.start.plus(n.mapUnits(d=>d*s));r=+c>+this.e?this.e:c,o.push(Lt.fromDateTimes(i,r)),i=r,s+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,i=this.e<e.e?this.e:e.e;return n>=i?null:Lt.fromDateTimes(n,i)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,i=this.e>e.e?this.e:e.e;return Lt.fromDateTimes(n,i)}static merge(e){const[n,i]=e.sort((s,r)=>s.s-r.s).reduce(([s,r],o)=>r?r.overlaps(o)||r.abutsStart(o)?[s,r.union(o)]:[s.concat([r]),o]:[s,o],[[],null]);return i&&n.push(i),n}static xor(e){let n=null,i=0;const s=[],r=e.map(d=>[{time:d.s,type:"s"},{time:d.e,type:"e"}]),o=Array.prototype.concat(...r),c=o.sort((d,h)=>d.time-h.time);for(const d of c)i+=d.type==="s"?1:-1,i===1?n=d.time:(n&&+n!=+d.time&&s.push(Lt.fromDateTimes(n,d.time)),n=null);return Lt.merge(s)}difference(...e){return Lt.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:La}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=md,n={}){return this.isValid?wn.create(this.s.loc.clone(n),e).formatInterval(this):La}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:La}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:La}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:La}toFormat(e,{separator:n=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:La}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):Je.invalid(this.invalidReason)}mapEndpoints(e){return Lt.fromDateTimes(e(this.s),e(this.e))}}class Od{static hasDST(e=qt.defaultZone){const n=Ce.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return gs.isValidZone(e)}static normalizeZone(e){return Zs(e,qt.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||_t.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||_t.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||_t.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:i=null,locObj:s=null,outputCalendar:r="gregory"}={}){return(s||_t.create(n,i,r)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:i=null,locObj:s=null,outputCalendar:r="gregory"}={}){return(s||_t.create(n,i,r)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:i=null,locObj:s=null}={}){return(s||_t.create(n,i,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:i=null,locObj:s=null}={}){return(s||_t.create(n,i,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return _t.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return _t.create(n,null,"gregory").eras(e)}static features(){return{relative:m3(),localeWeek:g3()}}}function F3(t,e){const n=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=n(e)-n(t);return Math.floor(Je.fromMillis(i).as("days"))}function rD(t,e,n){const i=[["years",(d,h)=>h.year-d.year],["quarters",(d,h)=>h.quarter-d.quarter+(h.year-d.year)*4],["months",(d,h)=>h.month-d.month+(h.year-d.year)*12],["weeks",(d,h)=>{const f=F3(d,h);return(f-f%7)/7}],["days",F3]],s={},r=t;let o,c;for(const[d,h]of i)n.indexOf(d)>=0&&(o=d,s[d]=h(t,e),c=r.plus(s),c>e?(s[d]--,t=r.plus(s),t>e&&(c=t,s[d]--,t=r.plus(s))):t=c);return[t,s,c,o]}function aD(t,e,n,i){let[s,r,o,c]=rD(t,e,n);const d=e-s,h=n.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);h.length===0&&(o<e&&(o=s.plus({[c]:1})),o!==s&&(r[c]=(r[c]||0)+d/(o-s)));const f=Je.fromObject(r,i);return h.length>0?Je.fromMillis(d,i).shiftTo(...h).plus(f):f}const L0={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},R3={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},oD=L0.hanidec.replace(/[\[|\]]/g,"").split("");function lD(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);if(t[n].search(L0.hanidec)!==-1)e+=oD.indexOf(t[n]);else for(const s in R3){const[r,o]=R3[s];i>=r&&i<=o&&(e+=i-r)}}return parseInt(e,10)}else return e}function $i({numberingSystem:t},e=""){return new RegExp(`${L0[t||"latn"]}${e}`)}const cD="missing Intl.DateTimeFormat.formatToParts support";function nt(t,e=n=>n){return{regex:t,deser:([n])=>e(lD(n))}}const H3=`[ ${String.fromCharCode(160)}]`,W3=new RegExp(H3,"g");function dD(t){return t.replace(/\./g,"\\.?").replace(W3,H3)}function Y3(t){return t.replace(/\./g,"").replace(W3," ").toLowerCase()}function Ni(t,e){return t===null?null:{regex:RegExp(t.map(dD).join("|")),deser:([n])=>t.findIndex(i=>Y3(n)===Y3(i))+e}}function j3(t,e){return{regex:t,deser:([,n,i])=>Cd(n,i),groups:e}}function Dd(t){return{regex:t,deser:([e])=>e}}function uD(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function hD(t,e){const n=$i(e),i=$i(e,"{2}"),s=$i(e,"{3}"),r=$i(e,"{4}"),o=$i(e,"{6}"),c=$i(e,"{1,2}"),d=$i(e,"{1,3}"),h=$i(e,"{1,6}"),f=$i(e,"{1,9}"),m=$i(e,"{2,4}"),g=$i(e,"{4,6}"),v=k=>({regex:RegExp(uD(k.val)),deser:([O])=>O,literal:!0}),x=(k=>{if(t.literal)return v(k);switch(k.val){case"G":return Ni(e.eras("short"),0);case"GG":return Ni(e.eras("long"),0);case"y":return nt(h);case"yy":return nt(m,$0);case"yyyy":return nt(r);case"yyyyy":return nt(g);case"yyyyyy":return nt(o);case"M":return nt(c);case"MM":return nt(i);case"MMM":return Ni(e.months("short",!0),1);case"MMMM":return Ni(e.months("long",!0),1);case"L":return nt(c);case"LL":return nt(i);case"LLL":return Ni(e.months("short",!1),1);case"LLLL":return Ni(e.months("long",!1),1);case"d":return nt(c);case"dd":return nt(i);case"o":return nt(d);case"ooo":return nt(s);case"HH":return nt(i);case"H":return nt(c);case"hh":return nt(i);case"h":return nt(c);case"mm":return nt(i);case"m":return nt(c);case"q":return nt(c);case"qq":return nt(i);case"s":return nt(c);case"ss":return nt(i);case"S":return nt(d);case"SSS":return nt(s);case"u":return Dd(f);case"uu":return Dd(c);case"uuu":return nt(n);case"a":return Ni(e.meridiems(),0);case"kkkk":return nt(r);case"kk":return nt(m,$0);case"W":return nt(c);case"WW":return nt(i);case"E":case"c":return nt(n);case"EEE":return Ni(e.weekdays("short",!1),1);case"EEEE":return Ni(e.weekdays("long",!1),1);case"ccc":return Ni(e.weekdays("short",!0),1);case"cccc":return Ni(e.weekdays("long",!0),1);case"Z":case"ZZ":return j3(new RegExp(`([+-]${c.source})(?::(${i.source}))?`),2);case"ZZZ":return j3(new RegExp(`([+-]${c.source})(${i.source})?`),2);case"z":return Dd(/[a-z_+-/]{1,256}?/i);case" ":return Dd(/[^\S\n\r]/);default:return v(k)}})(t)||{invalidReason:cD};return x.token=t,x}const fD={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function pD(t,e,n){const{type:i,value:s}=t;if(i==="literal"){const d=/^\s+$/.test(s);return{literal:!d,val:d?" ":s}}const r=e[i];let o=i;i==="hour"&&(e.hour12!=null?o=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?o="hour12":o="hour24":o=n.hour12?"hour12":"hour24");let c=fD[o];if(typeof c=="object"&&(c=c[r]),c)return{literal:!1,val:c}}function mD(t){return[`^${t.map(n=>n.regex).reduce((n,i)=>`${n}(${i.source})`,"")}$`,t]}function gD(t,e,n){const i=t.match(e);if(i){const s={};let r=1;for(const o in n)if(Ia(n,o)){const c=n[o],d=c.groups?c.groups+1:1;!c.literal&&c.token&&(s[c.token.val[0]]=c.deser(i.slice(r,r+d))),r+=d}return[i,s]}else return[i,{}]}function _D(t){const e=r=>{switch(r){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,i;return Ie(t.z)||(n=gs.create(t.z)),Ie(t.Z)||(n||(n=new En(t.Z)),i=t.Z),Ie(t.q)||(t.M=(t.q-1)*3+1),Ie(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Ie(t.u)||(t.S=A0(t.u)),[Object.keys(t).reduce((r,o)=>{const c=e(o);return c&&(r[c]=t[o]),r},{}),n,i]}let F0=null;function vD(){return F0||(F0=Ce.fromMillis(1555555555555)),F0}function yD(t,e){if(t.literal)return t;const n=wn.macroTokenToFormatOpts(t.val),i=G3(n,e);return i==null||i.includes(void 0)?t:i}function U3(t,e){return Array.prototype.concat(...t.map(n=>yD(n,e)))}function q3(t,e,n){const i=U3(wn.parseFormat(n),t),s=i.map(o=>hD(o,t)),r=s.find(o=>o.invalidReason);if(r)return{input:e,tokens:i,invalidReason:r.invalidReason};{const[o,c]=mD(s),d=RegExp(o,"i"),[h,f]=gD(e,d,c),[m,g,v]=f?_D(f):[null,null,void 0];if(Ia(f,"a")&&Ia(f,"H"))throw new Ta("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:i,regex:d,rawMatches:h,matches:f,result:m,zone:g,specificOffset:v}}}function bD(t,e,n){const{result:i,zone:s,specificOffset:r,invalidReason:o}=q3(t,e,n);return[i,s,r,o]}function G3(t,e){if(!t)return null;const i=wn.create(e,t).dtFormatter(vD()),s=i.formatToParts(),r=i.resolvedOptions();return s.map(o=>pD(o,t,r))}const R0="Invalid DateTime",K3=864e13;function Ed(t){return new Vi("unsupported zone",`the zone "${t.name}" is not supported`)}function H0(t){return t.weekData===null&&(t.weekData=bd(t.c)),t.weekData}function W0(t){return t.localWeekData===null&&(t.localWeekData=bd(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Pr(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Ce({...n,...e,old:n})}function Z3(t,e,n){let i=t-e*60*1e3;const s=n.offset(i);if(e===s)return[i,e];i-=(s-e)*60*1e3;const r=n.offset(i);return s===r?[i,s]:[t-Math.min(s,r)*60*1e3,Math.max(s,r)]}function Td(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Id(t,e,n){return Z3(xd(t),e,n)}function X3(t,e){const n=t.o,i=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,r={...t.c,year:i,month:s,day:Math.min(t.c.day,kd(i,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=Je.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),c=xd(r);let[d,h]=Z3(c,n,t.zone);return o!==0&&(d+=o,h=t.zone.offset(d)),{ts:d,o:h}}function Dl(t,e,n,i,s,r){const{setZone:o,zone:c}=n;if(t&&Object.keys(t).length!==0||e){const d=e||c,h=Ce.fromObject(t,{...n,zone:d,specificOffset:r});return o?h:h.setZone(c)}else return Ce.invalid(new Vi("unparsable",`the input "${s}" can't be parsed as ${i}`))}function Bd(t,e,n=!0){return t.isValid?wn.create(_t.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Y0(t,e){const n=t.c.year>9999||t.c.year<0;let i="";return n&&t.c.year>=0&&(i+="+"),i+=Jt(t.c.year,n?6:4),e?(i+="-",i+=Jt(t.c.month),i+="-",i+=Jt(t.c.day)):(i+=Jt(t.c.month),i+=Jt(t.c.day)),i}function J3(t,e,n,i,s,r){let o=Jt(t.c.hour);return e?(o+=":",o+=Jt(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(o+=":")):o+=Jt(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(o+=Jt(t.c.second),(t.c.millisecond!==0||!i)&&(o+=".",o+=Jt(t.c.millisecond,3))),s&&(t.isOffsetFixed&&t.offset===0&&!r?o+="Z":t.o<0?(o+="-",o+=Jt(Math.trunc(-t.o/60)),o+=":",o+=Jt(Math.trunc(-t.o%60))):(o+="+",o+=Jt(Math.trunc(t.o/60)),o+=":",o+=Jt(Math.trunc(t.o%60)))),r&&(o+="["+t.zone.ianaName+"]"),o}const Q3={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},wD={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},kD={ordinal:1,hour:0,minute:0,second:0,millisecond:0},e4=["year","month","day","hour","minute","second","millisecond"],xD=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],CD=["year","ordinal","hour","minute","second","millisecond"];function SD(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Tg(t);return e}function t4(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return SD(t)}}function n4(t,e){const n=Zs(e.zone,qt.defaultZone),i=_t.fromObject(e),s=qt.now();let r,o;if(Ie(t.year))r=s;else{for(const h of e4)Ie(t[h])&&(t[h]=Q3[h]);const c=f3(t)||p3(t);if(c)return Ce.invalid(c);const d=n.offset(s);[r,o]=Id(t,d,n)}return new Ce({ts:r,zone:n,loc:i,o})}function i4(t,e,n){const i=Ie(n.round)?!0:n.round,s=(o,c)=>(o=V0(o,i||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(o,c)),r=o=>n.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(n.unit)return s(r(n.unit),n.unit);for(const o of n.units){const c=r(o);if(Math.abs(c)>=1)return s(c,o)}return s(t>e?-0:0,n.units[n.units.length-1])}function s4(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class Ce{constructor(e){const n=e.zone||qt.defaultZone;let i=e.invalid||(Number.isNaN(e.ts)?new Vi("invalid input"):null)||(n.isValid?null:Ed(n));this.ts=Ie(e.ts)?qt.now():e.ts;let s=null,r=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[s,r]=[e.old.c,e.old.o];else{const c=n.offset(this.ts);s=Td(this.ts,c),i=Number.isNaN(s.year)?new Vi("invalid input"):null,s=i?null:s,r=i?null:c}this._zone=n,this.loc=e.loc||_t.create(),this.invalid=i,this.weekData=null,this.localWeekData=null,this.c=s,this.o=r,this.isLuxonDateTime=!0}static now(){return new Ce({})}static local(){const[e,n]=s4(arguments),[i,s,r,o,c,d,h]=n;return n4({year:i,month:s,day:r,hour:o,minute:c,second:d,millisecond:h},e)}static utc(){const[e,n]=s4(arguments),[i,s,r,o,c,d,h]=n;return e.zone=En.utcInstance,n4({year:i,month:s,day:r,hour:o,minute:c,second:d,millisecond:h},e)}static fromJSDate(e,n={}){const i=tO(e)?e.valueOf():NaN;if(Number.isNaN(i))return Ce.invalid("invalid input");const s=Zs(n.zone,qt.defaultZone);return s.isValid?new Ce({ts:i,zone:s,loc:_t.fromObject(n)}):Ce.invalid(Ed(s))}static fromMillis(e,n={}){if($r(e))return e<-K3||e>K3?Ce.invalid("Timestamp out of range"):new Ce({ts:e,zone:Zs(n.zone,qt.defaultZone),loc:_t.fromObject(n)});throw new Hn(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if($r(e))return new Ce({ts:e*1e3,zone:Zs(n.zone,qt.defaultZone),loc:_t.fromObject(n)});throw new Hn("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const i=Zs(n.zone,qt.defaultZone);if(!i.isValid)return Ce.invalid(Ed(i));const s=_t.fromObject(n),r=Sd(e,t4),{minDaysInFirstWeek:o,startOfWeek:c}=h3(r,s),d=qt.now(),h=Ie(n.specificOffset)?i.offset(d):n.specificOffset,f=!Ie(r.ordinal),m=!Ie(r.year),g=!Ie(r.month)||!Ie(r.day),v=m||g,b=r.weekYear||r.weekNumber;if((v||f)&&b)throw new Ta("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(g&&f)throw new Ta("Can't mix ordinal dates with month/day");const x=b||r.weekday&&!v;let k,O,T=Td(d,h);x?(k=xD,O=wD,T=bd(T,o,c)):f?(k=CD,O=kD,T=I0(T)):(k=e4,O=Q3);let N=!1;for(const ee of k){const ne=r[ee];Ie(ne)?N?r[ee]=O[ee]:r[ee]=T[ee]:N=!0}const C=x?JM(r,o,c):f?QM(r):f3(r),B=C||p3(r);if(B)return Ce.invalid(B);const $=x?d3(r,o,c):f?u3(r):r,[L,F]=Id($,h,i),q=new Ce({ts:L,zone:i,o:F,loc:s});return r.weekday&&v&&e.weekday!==q.weekday?Ce.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${q.toISO()}`):q}static fromISO(e,n={}){const[i,s]=YO(e);return Dl(i,s,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[i,s]=jO(e);return Dl(i,s,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[i,s]=UO(e);return Dl(i,s,n,"HTTP",n)}static fromFormat(e,n,i={}){if(Ie(e)||Ie(n))throw new Hn("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:r=null}=i,o=_t.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0}),[c,d,h,f]=bD(o,e,n);return f?Ce.invalid(f):Dl(c,d,i,`format ${n}`,e,h)}static fromString(e,n,i={}){return Ce.fromFormat(e,n,i)}static fromSQL(e,n={}){const[i,s]=QO(e);return Dl(i,s,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new Hn("need to specify a reason the DateTime is invalid");const i=e instanceof Vi?e:new Vi(e,n);if(qt.throwOnInvalid)throw new DM(i);return new Ce({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const i=G3(e,_t.fromObject(n));return i?i.map(s=>s?s.val:null).join(""):null}static expandFormat(e,n={}){return U3(wn.parseFormat(e),_t.fromObject(n)).map(s=>s.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?H0(this).weekYear:NaN}get weekNumber(){return this.isValid?H0(this).weekNumber:NaN}get weekday(){return this.isValid?H0(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?W0(this).weekday:NaN}get localWeekNumber(){return this.isValid?W0(this).weekNumber:NaN}get localWeekYear(){return this.isValid?W0(this).weekYear:NaN}get ordinal(){return this.isValid?I0(this.c).ordinal:NaN}get monthShort(){return this.isValid?Od.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Od.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Od.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Od.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,i=xd(this.c),s=this.zone.offset(i-e),r=this.zone.offset(i+e),o=this.zone.offset(i-s*n),c=this.zone.offset(i-r*n);if(o===c)return[this];const d=i-o*n,h=i-c*n,f=Td(d,o),m=Td(h,c);return f.hour===m.hour&&f.minute===m.minute&&f.second===m.second&&f.millisecond===m.millisecond?[Pr(this,{ts:d}),Pr(this,{ts:h})]:[this]}get isInLeapYear(){return xl(this.year)}get daysInMonth(){return kd(this.year,this.month)}get daysInYear(){return this.isValid?Ba(this.year):NaN}get weeksInWeekYear(){return this.isValid?Cl(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Cl(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:i,calendar:s}=wn.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:i,outputCalendar:s}}toUTC(e=0,n={}){return this.setZone(En.instance(e),n)}toLocal(){return this.setZone(qt.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:i=!1}={}){if(e=Zs(e,qt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(n||i){const r=e.offset(this.ts),o=this.toObject();[s]=Id(o,r,e)}return Pr(this,{ts:s,zone:e})}else return Ce.invalid(Ed(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:i}={}){const s=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:i});return Pr(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Sd(e,t4),{minDaysInFirstWeek:i,startOfWeek:s}=h3(n,this.loc),r=!Ie(n.weekYear)||!Ie(n.weekNumber)||!Ie(n.weekday),o=!Ie(n.ordinal),c=!Ie(n.year),d=!Ie(n.month)||!Ie(n.day),h=c||d,f=n.weekYear||n.weekNumber;if((h||o)&&f)throw new Ta("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&o)throw new Ta("Can't mix ordinal dates with month/day");let m;r?m=d3({...bd(this.c,i,s),...n},i,s):Ie(n.ordinal)?(m={...this.toObject(),...n},Ie(n.day)&&(m.day=Math.min(kd(m.year,m.month),m.day))):m=u3({...I0(this.c),...n});const[g,v]=Id(m,this.o,this.zone);return Pr(this,{ts:g,o:v})}plus(e){if(!this.isValid)return this;const n=Je.fromDurationLike(e);return Pr(this,X3(this,n))}minus(e){if(!this.isValid)return this;const n=Je.fromDurationLike(e).negate();return Pr(this,X3(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const i={},s=Je.normalizeUnit(e);switch(s){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(s==="weeks")if(n){const r=this.loc.getStartOfWeek(),{weekday:o}=this;o<r&&(i.weekNumber=this.weekNumber-1),i.weekday=r}else i.weekday=1;if(s==="quarters"){const r=Math.ceil(this.month/3);i.month=(r-1)*3+1}return this.set(i)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?wn.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):R0}toLocaleString(e=md,n={}){return this.isValid?wn.create(this.loc.clone(n),e).formatDateTime(this):R0}toLocaleParts(e={}){return this.isValid?wn.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:i=!1,includeOffset:s=!0,extendedZone:r=!1}={}){if(!this.isValid)return null;const o=e==="extended";let c=Y0(this,o);return c+="T",c+=J3(this,o,n,i,s,r),c}toISODate({format:e="extended"}={}){return this.isValid?Y0(this,e==="extended"):null}toISOWeekDate(){return Bd(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:i=!0,includePrefix:s=!1,extendedZone:r=!1,format:o="extended"}={}){return this.isValid?(s?"T":"")+J3(this,o==="extended",n,e,i,r):null}toRFC2822(){return Bd(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Bd(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Y0(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:i=!0}={}){let s="HH:mm:ss.SSS";return(n||e)&&(i&&(s+=" "),n?s+="z":e&&(s+="ZZ")),Bd(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():R0}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",i={}){if(!this.isValid||!e.isValid)return Je.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...i},r=nO(n).map(Je.normalizeUnit),o=e.valueOf()>this.valueOf(),c=o?this:e,d=o?e:this,h=aD(c,d,r,s);return o?h.negate():h}diffNow(e="milliseconds",n={}){return this.diff(Ce.now(),e,n)}until(e){return this.isValid?Lt.fromDateTimes(this,e):this}hasSame(e,n,i){if(!this.isValid)return!1;const s=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(n,i)<=s&&s<=r.endOf(n,i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||Ce.fromObject({},{zone:this.zone}),i=e.padding?this<n?-e.padding:e.padding:0;let s=["years","months","days","hours","minutes","seconds"],r=e.unit;return Array.isArray(e.unit)&&(s=e.unit,r=void 0),i4(n,this.plus(i),{...e,numeric:"always",units:s,unit:r})}toRelativeCalendar(e={}){return this.isValid?i4(e.base||Ce.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Ce.isDateTime))throw new Hn("min requires all arguments be DateTimes");return _3(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(Ce.isDateTime))throw new Hn("max requires all arguments be DateTimes");return _3(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,i={}){const{locale:s=null,numberingSystem:r=null}=i,o=_t.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0});return q3(o,e,n)}static fromStringExplain(e,n,i={}){return Ce.fromFormatExplain(e,n,i)}static get DATE_SHORT(){return md}static get DATE_MED(){return Ig}static get DATE_MED_WITH_WEEKDAY(){return IM}static get DATE_FULL(){return Bg}static get DATE_HUGE(){return Ag}static get TIME_SIMPLE(){return Vg}static get TIME_WITH_SECONDS(){return $g}static get TIME_WITH_SHORT_OFFSET(){return Ng}static get TIME_WITH_LONG_OFFSET(){return zg}static get TIME_24_SIMPLE(){return Pg}static get TIME_24_WITH_SECONDS(){return Lg}static get TIME_24_WITH_SHORT_OFFSET(){return Fg}static get TIME_24_WITH_LONG_OFFSET(){return Rg}static get DATETIME_SHORT(){return Hg}static get DATETIME_SHORT_WITH_SECONDS(){return Wg}static get DATETIME_MED(){return Yg}static get DATETIME_MED_WITH_SECONDS(){return jg}static get DATETIME_MED_WITH_WEEKDAY(){return BM}static get DATETIME_FULL(){return Ug}static get DATETIME_FULL_WITH_SECONDS(){return qg}static get DATETIME_HUGE(){return Gg}static get DATETIME_HUGE_WITH_SECONDS(){return Kg}}function El(t){if(Ce.isDateTime(t))return t;if(t&&t.valueOf&&$r(t.valueOf()))return Ce.fromJSDate(t);if(t&&typeof t=="object")return Ce.fromObject(t);throw new Hn(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var MD=Object.defineProperty,OD=(t,e,n)=>e in t?MD(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xe=(t,e,n)=>(OD(t,typeof e!="symbol"?e+"":e,n),n),Ad=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function r4(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var DD=Object.prototype,ED=DD.hasOwnProperty;function TD(t,e){return t!=null&&ED.call(t,e)}var ID=TD,BD=Array.isArray,zi=BD,AD=typeof Ad=="object"&&Ad&&Ad.Object===Object&&Ad,a4=AD,VD=a4,$D=typeof self=="object"&&self&&self.Object===Object&&self,ND=VD||$D||Function("return this")(),Qi=ND,zD=Qi,PD=zD.Symbol,Vd=PD,o4=Vd,l4=Object.prototype,LD=l4.hasOwnProperty,FD=l4.toString,Tl=o4?o4.toStringTag:void 0;function RD(t){var e=LD.call(t,Tl),n=t[Tl];try{t[Tl]=void 0;var i=!0}catch{}var s=FD.call(t);return i&&(e?t[Tl]=n:delete t[Tl]),s}var HD=RD,WD=Object.prototype,YD=WD.toString;function jD(t){return YD.call(t)}var UD=jD,c4=Vd,qD=HD,GD=UD,KD="[object Null]",ZD="[object Undefined]",d4=c4?c4.toStringTag:void 0;function XD(t){return t==null?t===void 0?ZD:KD:d4&&d4 in Object(t)?qD(t):GD(t)}var es=XD;function JD(t){return t!=null&&typeof t=="object"}var Pi=JD,QD=es,eE=Pi,tE="[object Symbol]";function nE(t){return typeof t=="symbol"||eE(t)&&QD(t)==tE}var j0=nE,iE=zi,sE=j0,rE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aE=/^\w*$/;function oE(t,e){if(iE(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||sE(t)?!0:aE.test(t)||!rE.test(t)||e!=null&&t in Object(e)}var U0=oE;function lE(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var _s=lE,cE=es,dE=_s,uE="[object AsyncFunction]",hE="[object Function]",fE="[object GeneratorFunction]",pE="[object Proxy]";function mE(t){if(!dE(t))return!1;var e=cE(t);return e==hE||e==fE||e==uE||e==pE}var Lr=mE,gE=Qi,_E=gE["__core-js_shared__"],vE=_E,q0=vE,u4=function(){var t=/[^.]+$/.exec(q0&&q0.keys&&q0.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function yE(t){return!!u4&&u4 in t}var bE=yE,wE=Function.prototype,kE=wE.toString;function xE(t){if(t!=null){try{return kE.call(t)}catch{}try{return t+""}catch{}}return""}var h4=xE,CE=Lr,SE=bE,ME=_s,OE=h4,DE=/[\\^$.*+?()[\]{}|]/g,EE=/^\[object .+?Constructor\]$/,TE=Function.prototype,IE=Object.prototype,BE=TE.toString,AE=IE.hasOwnProperty,VE=RegExp("^"+BE.call(AE).replace(DE,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $E(t){if(!ME(t)||SE(t))return!1;var e=CE(t)?VE:EE;return e.test(OE(t))}var NE=$E;function zE(t,e){return t==null?void 0:t[e]}var PE=zE,LE=NE,FE=PE;function RE(t,e){var n=FE(t,e);return LE(n)?n:void 0}var Fr=RE,HE=Fr,WE=HE(Object,"create"),$d=WE,f4=$d;function YE(){this.__data__=f4?f4(null):{},this.size=0}var jE=YE;function UE(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var qE=UE,GE=$d,KE="__lodash_hash_undefined__",ZE=Object.prototype,XE=ZE.hasOwnProperty;function JE(t){var e=this.__data__;if(GE){var n=e[t];return n===KE?void 0:n}return XE.call(e,t)?e[t]:void 0}var QE=JE,eT=$d,tT=Object.prototype,nT=tT.hasOwnProperty;function iT(t){var e=this.__data__;return eT?e[t]!==void 0:nT.call(e,t)}var sT=iT,rT=$d,aT="__lodash_hash_undefined__";function oT(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=rT&&e===void 0?aT:e,this}var lT=oT,cT=jE,dT=qE,uT=QE,hT=sT,fT=lT;function Fa(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Fa.prototype.clear=cT,Fa.prototype.delete=dT,Fa.prototype.get=uT,Fa.prototype.has=hT,Fa.prototype.set=fT;var pT=Fa;function mT(){this.__data__=[],this.size=0}var gT=mT;function _T(t,e){return t===e||t!==t&&e!==e}var Ra=_T,vT=Ra;function yT(t,e){for(var n=t.length;n--;)if(vT(t[n][0],e))return n;return-1}var Nd=yT,bT=Nd,wT=Array.prototype,kT=wT.splice;function xT(t){var e=this.__data__,n=bT(e,t);if(n<0)return!1;var i=e.length-1;return n==i?e.pop():kT.call(e,n,1),--this.size,!0}var CT=xT,ST=Nd;function MT(t){var e=this.__data__,n=ST(e,t);return n<0?void 0:e[n][1]}var OT=MT,DT=Nd;function ET(t){return DT(this.__data__,t)>-1}var TT=ET,IT=Nd;function BT(t,e){var n=this.__data__,i=IT(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}var AT=BT,VT=gT,$T=CT,NT=OT,zT=TT,PT=AT;function Ha(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Ha.prototype.clear=VT,Ha.prototype.delete=$T,Ha.prototype.get=NT,Ha.prototype.has=zT,Ha.prototype.set=PT;var zd=Ha,LT=Fr,FT=Qi,RT=LT(FT,"Map"),G0=RT,p4=pT,HT=zd,WT=G0;function YT(){this.size=0,this.__data__={hash:new p4,map:new(WT||HT),string:new p4}}var jT=YT;function UT(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var qT=UT,GT=qT;function KT(t,e){var n=t.__data__;return GT(e)?n[typeof e=="string"?"string":"hash"]:n.map}var Pd=KT,ZT=Pd;function XT(t){var e=ZT(this,t).delete(t);return this.size-=e?1:0,e}var JT=XT,QT=Pd;function eI(t){return QT(this,t).get(t)}var tI=eI,nI=Pd;function iI(t){return nI(this,t).has(t)}var sI=iI,rI=Pd;function aI(t,e){var n=rI(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}var oI=aI,lI=jT,cI=JT,dI=tI,uI=sI,hI=oI;function Wa(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Wa.prototype.clear=lI,Wa.prototype.delete=cI,Wa.prototype.get=dI,Wa.prototype.has=uI,Wa.prototype.set=hI;var K0=Wa,m4=K0,fI="Expected a function";function Z0(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(fI);var n=function(){var i=arguments,s=e?e.apply(this,i):i[0],r=n.cache;if(r.has(s))return r.get(s);var o=t.apply(this,i);return n.cache=r.set(s,o)||r,o};return n.cache=new(Z0.Cache||m4),n}Z0.Cache=m4;var pI=Z0,mI=pI,gI=500;function _I(t){var e=mI(t,function(i){return n.size===gI&&n.clear(),i}),n=e.cache;return e}var vI=_I,yI=vI,bI=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wI=/\\(\\)?/g,kI=yI(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(bI,function(n,i,s,r){e.push(s?r.replace(wI,"$1"):i||n)}),e}),xI=kI;function CI(t,e){for(var n=-1,i=t==null?0:t.length,s=Array(i);++n<i;)s[n]=e(t[n],n,t);return s}var SI=CI,g4=Vd,MI=SI,OI=zi,DI=j0,EI=1/0,_4=g4?g4.prototype:void 0,v4=_4?_4.toString:void 0;function y4(t){if(typeof t=="string")return t;if(OI(t))return MI(t,y4)+"";if(DI(t))return v4?v4.call(t):"";var e=t+"";return e=="0"&&1/t==-EI?"-0":e}var TI=y4,II=TI;function BI(t){return t==null?"":II(t)}var AI=BI,VI=zi,$I=U0,NI=xI,zI=AI;function PI(t,e){return VI(t)?t:$I(t,e)?[t]:NI(zI(t))}var b4=PI,LI=es,FI=Pi,RI="[object Arguments]";function HI(t){return FI(t)&&LI(t)==RI}var WI=HI,w4=WI,YI=Pi,k4=Object.prototype,jI=k4.hasOwnProperty,UI=k4.propertyIsEnumerable,qI=w4(function(){return arguments}())?w4:function(t){return YI(t)&&jI.call(t,"callee")&&!UI.call(t,"callee")},X0=qI,GI=9007199254740991,KI=/^(?:0|[1-9]\d*)$/;function ZI(t,e){var n=typeof t;return e=e??GI,!!e&&(n=="number"||n!="symbol"&&KI.test(t))&&t>-1&&t%1==0&&t<e}var J0=ZI,XI=9007199254740991;function JI(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=XI}var Q0=JI,QI=j0,eB=1/0;function tB(t){if(typeof t=="string"||QI(t))return t;var e=t+"";return e=="0"&&1/t==-eB?"-0":e}var Ld=tB,nB=b4,iB=X0,sB=zi,rB=J0,aB=Q0,oB=Ld;function lB(t,e,n){e=nB(e,t);for(var i=-1,s=e.length,r=!1;++i<s;){var o=oB(e[i]);if(!(r=t!=null&&n(t,o)))break;t=t[o]}return r||++i!=s?r:(s=t==null?0:t.length,!!s&&aB(s)&&rB(o,s)&&(sB(t)||iB(t)))}var x4=lB,cB=ID,dB=x4;function uB(t,e){return t!=null&&dB(t,e,cB)}var C4=uB,hB=es,fB=Pi,pB="[object Date]";function mB(t){return fB(t)&&hB(t)==pB}var gB=mB;function _B(t){return function(e){return t(e)}}var S4=_B,Il={},vB={get exports(){return Il},set exports(t){Il=t}};(function(t,e){var n=a4,i=e&&!e.nodeType&&e,s=i&&!0&&t&&!t.nodeType&&t,r=s&&s.exports===i,o=r&&n.process,c=function(){try{var d=s&&s.require&&s.require("util").types;return d||o&&o.binding&&o.binding("util")}catch{}}();t.exports=c})(vB,Il);var yB=gB,bB=S4,M4=Il,O4=M4&&M4.isDate,wB=O4?bB(O4):yB,kB=wB,xB=es,CB=zi,SB=Pi,MB="[object String]";function OB(t){return typeof t=="string"||!CB(t)&&SB(t)&&xB(t)==MB}var ts=OB;function DB(t,e){for(var n=-1,i=t==null?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}var D4=DB,EB=zd;function TB(){this.__data__=new EB,this.size=0}var IB=TB;function BB(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var AB=BB;function VB(t){return this.__data__.get(t)}var $B=VB;function NB(t){return this.__data__.has(t)}var zB=NB,PB=zd,LB=G0,FB=K0,RB=200;function HB(t,e){var n=this.__data__;if(n instanceof PB){var i=n.__data__;if(!LB||i.length<RB-1)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new FB(i)}return n.set(t,e),this.size=n.size,this}var WB=HB,YB=zd,jB=IB,UB=AB,qB=$B,GB=zB,KB=WB;function Ya(t){var e=this.__data__=new YB(t);this.size=e.size}Ya.prototype.clear=jB,Ya.prototype.delete=UB,Ya.prototype.get=qB,Ya.prototype.has=GB,Ya.prototype.set=KB;var eh=Ya,ZB="__lodash_hash_undefined__";function XB(t){return this.__data__.set(t,ZB),this}var JB=XB;function QB(t){return this.__data__.has(t)}var eA=QB,tA=K0,nA=JB,iA=eA;function Fd(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new tA;++e<n;)this.add(t[e])}Fd.prototype.add=Fd.prototype.push=nA,Fd.prototype.has=iA;var sA=Fd;function rA(t,e){return t.has(e)}var aA=rA,oA=sA,lA=D4,cA=aA,dA=1,uA=2;function hA(t,e,n,i,s,r){var o=n&dA,c=t.length,d=e.length;if(c!=d&&!(o&&d>c))return!1;var h=r.get(t),f=r.get(e);if(h&&f)return h==e&&f==t;var m=-1,g=!0,v=n&uA?new oA:void 0;for(r.set(t,e),r.set(e,t);++m<c;){var b=t[m],x=e[m];if(i)var k=o?i(x,b,m,e,t,r):i(b,x,m,t,e,r);if(k!==void 0){if(k)continue;g=!1;break}if(v){if(!lA(e,function(O,T){if(!cA(v,T)&&(b===O||s(b,O,n,i,r)))return v.push(T)})){g=!1;break}}else if(!(b===x||s(b,x,n,i,r))){g=!1;break}}return r.delete(t),r.delete(e),g}var E4=hA,fA=Qi,pA=fA.Uint8Array,T4=pA;function mA(t){var e=-1,n=Array(t.size);return t.forEach(function(i,s){n[++e]=[s,i]}),n}var gA=mA;function _A(t){var e=-1,n=Array(t.size);return t.forEach(function(i){n[++e]=i}),n}var vA=_A,I4=Vd,B4=T4,yA=Ra,bA=E4,wA=gA,kA=vA,xA=1,CA=2,SA="[object Boolean]",MA="[object Date]",OA="[object Error]",DA="[object Map]",EA="[object Number]",TA="[object RegExp]",IA="[object Set]",BA="[object String]",AA="[object Symbol]",VA="[object ArrayBuffer]",$A="[object DataView]",A4=I4?I4.prototype:void 0,th=A4?A4.valueOf:void 0;function NA(t,e,n,i,s,r,o){switch(n){case $A:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case VA:return!(t.byteLength!=e.byteLength||!r(new B4(t),new B4(e)));case SA:case MA:case EA:return yA(+t,+e);case OA:return t.name==e.name&&t.message==e.message;case TA:case BA:return t==e+"";case DA:var c=wA;case IA:var d=i&xA;if(c||(c=kA),t.size!=e.size&&!d)return!1;var h=o.get(t);if(h)return h==e;i|=CA,o.set(t,e);var f=bA(c(t),c(e),i,s,r,o);return o.delete(t),f;case AA:if(th)return th.call(t)==th.call(e)}return!1}var zA=NA;function PA(t,e){for(var n=-1,i=e.length,s=t.length;++n<i;)t[s+n]=e[n];return t}var LA=PA,FA=LA,RA=zi;function HA(t,e,n){var i=e(t);return RA(t)?i:FA(i,n(t))}var WA=HA;function YA(t,e){for(var n=-1,i=t==null?0:t.length,s=0,r=[];++n<i;){var o=t[n];e(o,n,t)&&(r[s++]=o)}return r}var jA=YA;function UA(){return[]}var qA=UA,GA=jA,KA=qA,ZA=Object.prototype,XA=ZA.propertyIsEnumerable,V4=Object.getOwnPropertySymbols,JA=V4?function(t){return t==null?[]:(t=Object(t),GA(V4(t),function(e){return XA.call(t,e)}))}:KA,QA=JA;function eV(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}var tV=eV,ja={},nV={get exports(){return ja},set exports(t){ja=t}};function iV(){return!1}var sV=iV;(function(t,e){var n=Qi,i=sV,s=e&&!e.nodeType&&e,r=s&&!0&&t&&!t.nodeType&&t,o=r&&r.exports===s,c=o?n.Buffer:void 0,d=c?c.isBuffer:void 0,h=d||i;t.exports=h})(nV,ja);var rV=es,aV=Q0,oV=Pi,lV="[object Arguments]",cV="[object Array]",dV="[object Boolean]",uV="[object Date]",hV="[object Error]",fV="[object Function]",pV="[object Map]",mV="[object Number]",gV="[object Object]",_V="[object RegExp]",vV="[object Set]",yV="[object String]",bV="[object WeakMap]",wV="[object ArrayBuffer]",kV="[object DataView]",xV="[object Float32Array]",CV="[object Float64Array]",SV="[object Int8Array]",MV="[object Int16Array]",OV="[object Int32Array]",DV="[object Uint8Array]",EV="[object Uint8ClampedArray]",TV="[object Uint16Array]",IV="[object Uint32Array]",It={};It[xV]=It[CV]=It[SV]=It[MV]=It[OV]=It[DV]=It[EV]=It[TV]=It[IV]=!0,It[lV]=It[cV]=It[wV]=It[dV]=It[kV]=It[uV]=It[hV]=It[fV]=It[pV]=It[mV]=It[gV]=It[_V]=It[vV]=It[yV]=It[bV]=!1;function BV(t){return oV(t)&&aV(t.length)&&!!It[rV(t)]}var AV=BV,VV=AV,$V=S4,$4=Il,N4=$4&&$4.isTypedArray,NV=N4?$V(N4):VV,nh=NV,zV=tV,PV=X0,LV=zi,FV=ja,RV=J0,HV=nh,WV=Object.prototype,YV=WV.hasOwnProperty;function jV(t,e){var n=LV(t),i=!n&&PV(t),s=!n&&!i&&FV(t),r=!n&&!i&&!s&&HV(t),o=n||i||s||r,c=o?zV(t.length,String):[],d=c.length;for(var h in t)(e||YV.call(t,h))&&!(o&&(h=="length"||s&&(h=="offset"||h=="parent")||r&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||RV(h,d)))&&c.push(h);return c}var z4=jV,UV=Object.prototype;function qV(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||UV;return t===n}var ih=qV;function GV(t,e){return function(n){return t(e(n))}}var P4=GV,KV=P4,ZV=KV(Object.keys,Object),XV=ZV,JV=ih,QV=XV,e$=Object.prototype,t$=e$.hasOwnProperty;function n$(t){if(!JV(t))return QV(t);var e=[];for(var n in Object(t))t$.call(t,n)&&n!="constructor"&&e.push(n);return e}var i$=n$,s$=Lr,r$=Q0;function a$(t){return t!=null&&r$(t.length)&&!s$(t)}var Bl=a$,o$=z4,l$=i$,c$=Bl;function d$(t){return c$(t)?o$(t):l$(t)}var sh=d$,u$=WA,h$=QA,f$=sh;function p$(t){return u$(t,f$,h$)}var m$=p$,L4=m$,g$=1,_$=Object.prototype,v$=_$.hasOwnProperty;function y$(t,e,n,i,s,r){var o=n&g$,c=L4(t),d=c.length,h=L4(e),f=h.length;if(d!=f&&!o)return!1;for(var m=d;m--;){var g=c[m];if(!(o?g in e:v$.call(e,g)))return!1}var v=r.get(t),b=r.get(e);if(v&&b)return v==e&&b==t;var x=!0;r.set(t,e),r.set(e,t);for(var k=o;++m<d;){g=c[m];var O=t[g],T=e[g];if(i)var N=o?i(T,O,g,e,t,r):i(O,T,g,t,e,r);if(!(N===void 0?O===T||s(O,T,n,i,r):N)){x=!1;break}k||(k=g=="constructor")}if(x&&!k){var C=t.constructor,B=e.constructor;C!=B&&"constructor"in t&&"constructor"in e&&!(typeof C=="function"&&C instanceof C&&typeof B=="function"&&B instanceof B)&&(x=!1)}return r.delete(t),r.delete(e),x}var b$=y$,w$=Fr,k$=Qi,x$=w$(k$,"DataView"),C$=x$,S$=Fr,M$=Qi,O$=S$(M$,"Promise"),D$=O$,E$=Fr,T$=Qi,I$=E$(T$,"Set"),B$=I$,A$=Fr,V$=Qi,$$=A$(V$,"WeakMap"),N$=$$,rh=C$,ah=G0,oh=D$,lh=B$,ch=N$,F4=es,Ua=h4,R4="[object Map]",z$="[object Object]",H4="[object Promise]",W4="[object Set]",Y4="[object WeakMap]",j4="[object DataView]",P$=Ua(rh),L$=Ua(ah),F$=Ua(oh),R$=Ua(lh),H$=Ua(ch),Rr=F4;(rh&&Rr(new rh(new ArrayBuffer(1)))!=j4||ah&&Rr(new ah)!=R4||oh&&Rr(oh.resolve())!=H4||lh&&Rr(new lh)!=W4||ch&&Rr(new ch)!=Y4)&&(Rr=function(t){var e=F4(t),n=e==z$?t.constructor:void 0,i=n?Ua(n):"";if(i)switch(i){case P$:return j4;case L$:return R4;case F$:return H4;case R$:return W4;case H$:return Y4}return e});var W$=Rr,dh=eh,Y$=E4,j$=zA,U$=b$,U4=W$,q4=zi,G4=ja,q$=nh,G$=1,K4="[object Arguments]",Z4="[object Array]",Rd="[object Object]",K$=Object.prototype,X4=K$.hasOwnProperty;function Z$(t,e,n,i,s,r){var o=q4(t),c=q4(e),d=o?Z4:U4(t),h=c?Z4:U4(e);d=d==K4?Rd:d,h=h==K4?Rd:h;var f=d==Rd,m=h==Rd,g=d==h;if(g&&G4(t)){if(!G4(e))return!1;o=!0,f=!1}if(g&&!f)return r||(r=new dh),o||q$(t)?Y$(t,e,n,i,s,r):j$(t,e,d,n,i,s,r);if(!(n&G$)){var v=f&&X4.call(t,"__wrapped__"),b=m&&X4.call(e,"__wrapped__");if(v||b){var x=v?t.value():t,k=b?e.value():e;return r||(r=new dh),s(x,k,n,i,r)}}return g?(r||(r=new dh),U$(t,e,n,i,s,r)):!1}var X$=Z$,J$=X$,J4=Pi;function Q4(t,e,n,i,s){return t===e?!0:t==null||e==null||!J4(t)&&!J4(e)?t!==t&&e!==e:J$(t,e,n,i,Q4,s)}var e5=Q4,Q$=eh,eN=e5,tN=1,nN=2;function iN(t,e,n,i){var s=n.length,r=s,o=!i;if(t==null)return!r;for(t=Object(t);s--;){var c=n[s];if(o&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<r;){c=n[s];var d=c[0],h=t[d],f=c[1];if(o&&c[2]){if(h===void 0&&!(d in t))return!1}else{var m=new Q$;if(i)var g=i(h,f,d,t,e,m);if(!(g===void 0?eN(f,h,tN|nN,i,m):g))return!1}}return!0}var sN=iN,rN=_s;function aN(t){return t===t&&!rN(t)}var t5=aN,oN=t5,lN=sh;function cN(t){for(var e=lN(t),n=e.length;n--;){var i=e[n],s=t[i];e[n]=[i,s,oN(s)]}return e}var dN=cN;function uN(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}var n5=uN,hN=sN,fN=dN,pN=n5;function mN(t){var e=fN(t);return e.length==1&&e[0][2]?pN(e[0][0],e[0][1]):function(n){return n===t||hN(n,t,e)}}var gN=mN,_N=b4,vN=Ld;function yN(t,e){e=_N(e,t);for(var n=0,i=e.length;t!=null&&n<i;)t=t[vN(e[n++])];return n&&n==i?t:void 0}var i5=yN,bN=i5;function wN(t,e,n){var i=t==null?void 0:bN(t,e);return i===void 0?n:i}var Hr=wN;function kN(t,e){return t!=null&&e in Object(t)}var xN=kN,CN=xN,SN=x4;function MN(t,e){return t!=null&&SN(t,e,CN)}var ON=MN,DN=e5,EN=Hr,TN=ON,IN=U0,BN=t5,AN=n5,VN=Ld,$N=1,NN=2;function zN(t,e){return IN(t)&&BN(e)?AN(VN(t),e):function(n){var i=EN(n,t);return i===void 0&&i===e?TN(n,t):DN(e,i,$N|NN)}}var PN=zN;function LN(t){return t}var uh=LN;function FN(t){return function(e){return e==null?void 0:e[t]}}var RN=FN,HN=i5;function WN(t){return function(e){return HN(e,t)}}var YN=WN,jN=RN,UN=YN,qN=U0,GN=Ld;function KN(t){return qN(t)?jN(GN(t)):UN(t)}var ZN=KN,XN=gN,JN=PN,QN=uh,ez=zi,tz=ZN;function nz(t){return typeof t=="function"?t:t==null?QN:typeof t=="object"?ez(t)?JN(t[0],t[1]):XN(t):tz(t)}var s5=nz;function iz(t){return function(e,n,i){for(var s=-1,r=Object(e),o=i(e),c=o.length;c--;){var d=o[t?c:++s];if(n(r[d],d,r)===!1)break}return e}}var sz=iz,rz=sz,az=rz(),r5=az,oz=r5,lz=sh;function cz(t,e){return t&&oz(t,e,lz)}var a5=cz,dz=Bl;function uz(t,e){return function(n,i){if(n==null)return n;if(!dz(n))return t(n,i);for(var s=n.length,r=e?s:-1,o=Object(n);(e?r--:++r<s)&&i(o[r],r,o)!==!1;);return n}}var hz=uz,fz=a5,pz=hz,mz=pz(fz),gz=mz,_z=gz;function vz(t,e){var n;return _z(t,function(i,s,r){return n=e(i,s,r),!n}),!!n}var yz=vz,bz=Ra,wz=Bl,kz=J0,xz=_s;function Cz(t,e,n){if(!xz(n))return!1;var i=typeof e;return(i=="number"?wz(n)&&kz(e,n.length):i=="string"&&e in n)?bz(n[e],t):!1}var hh=Cz,Sz=D4,Mz=s5,Oz=yz,Dz=zi,Ez=hh;function Tz(t,e,n){var i=Dz(t)?Sz:Oz;return n&&Ez(t,e,n)&&(e=void 0),i(t,Mz(e))}var Iz=Tz,Bz=es,Az=Pi,Vz="[object Boolean]";function $z(t){return t===!0||t===!1||Az(t)&&Bz(t)==Vz}var Nz=$z,zz=es,Pz=Pi,Lz="[object Number]";function Fz(t){return typeof t=="number"||Pz(t)&&zz(t)==Lz}var Li=Fz,Rz=Fr,Hz=function(){try{var t=Rz(Object,"defineProperty");return t({},"",{}),t}catch{}}(),o5=Hz,l5=o5;function Wz(t,e,n){e=="__proto__"&&l5?l5(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Hd=Wz,Yz=Hd,jz=Ra,Uz=Object.prototype,qz=Uz.hasOwnProperty;function Gz(t,e,n){var i=t[e];(!(qz.call(t,e)&&jz(i,n))||n===void 0&&!(e in t))&&Yz(t,e,n)}var Kz=Gz,Zz=Hd,Xz=a5,Jz=s5;function Qz(t,e){var n={};return e=Jz(e),Xz(t,function(i,s,r){Zz(n,s,e(i,s,r))}),n}var eP=Qz;function tP(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var c5=tP,nP=c5,d5=Math.max;function iP(t,e,n){return e=d5(e===void 0?t.length-1:e,0),function(){for(var i=arguments,s=-1,r=d5(i.length-e,0),o=Array(r);++s<r;)o[s]=i[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=i[s];return c[e]=n(o),nP(t,this,c)}}var sP=iP;function rP(t){return function(){return t}}var aP=rP,oP=aP,u5=o5,lP=uh,cP=u5?function(t,e){return u5(t,"toString",{configurable:!0,enumerable:!1,value:oP(e),writable:!0})}:lP,dP=cP,uP=800,hP=16,fP=Date.now;function pP(t){var e=0,n=0;return function(){var i=fP(),s=hP-(i-n);if(n=i,s>0){if(++e>=uP)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var mP=pP,gP=dP,_P=mP,vP=_P(gP),yP=vP,bP=uh,wP=sP,kP=yP;function xP(t,e){return kP(wP(t,e,bP),t+"")}var fh=xP;function CP(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var SP=CP,MP=_s,OP=ih,DP=SP,EP=Object.prototype,TP=EP.hasOwnProperty;function IP(t){if(!MP(t))return DP(t);var e=OP(t),n=[];for(var i in t)i=="constructor"&&(e||!TP.call(t,i))||n.push(i);return n}var BP=IP,AP=z4,VP=BP,$P=Bl;function NP(t){return $P(t)?AP(t,!0):VP(t)}var ph=NP,zP=fh,PP=Ra,LP=hh,FP=ph,h5=Object.prototype,RP=h5.hasOwnProperty,HP=zP(function(t,e){t=Object(t);var n=-1,i=e.length,s=i>2?e[2]:void 0;for(s&&LP(e[0],e[1],s)&&(i=1);++n<i;)for(var r=e[n],o=FP(r),c=-1,d=o.length;++c<d;){var h=o[c],f=t[h];(f===void 0||PP(f,h5[h])&&!RP.call(t,h))&&(t[h]=r[h])}return t}),f5=HP,WP=Hd,YP=Ra;function jP(t,e,n){(n!==void 0&&!YP(t[e],n)||n===void 0&&!(e in t))&&WP(t,e,n)}var p5=jP,Wd={},UP={get exports(){return Wd},set exports(t){Wd=t}};(function(t,e){var n=Qi,i=e&&!e.nodeType&&e,s=i&&!0&&t&&!t.nodeType&&t,r=s&&s.exports===i,o=r?n.Buffer:void 0,c=o?o.allocUnsafe:void 0;function d(h,f){if(f)return h.slice();var m=h.length,g=c?c(m):new h.constructor(m);return h.copy(g),g}t.exports=d})(UP,Wd);var m5=T4;function qP(t){var e=new t.constructor(t.byteLength);return new m5(e).set(new m5(t)),e}var GP=qP,KP=GP;function ZP(t,e){var n=e?KP(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var XP=ZP;function JP(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}var QP=JP,eL=_s,g5=Object.create,tL=function(){function t(){}return function(e){if(!eL(e))return{};if(g5)return g5(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),nL=tL,iL=P4,sL=iL(Object.getPrototypeOf,Object),_5=sL,rL=nL,aL=_5,oL=ih;function lL(t){return typeof t.constructor=="function"&&!oL(t)?rL(aL(t)):{}}var cL=lL,dL=Bl,uL=Pi;function hL(t){return uL(t)&&dL(t)}var fL=hL,pL=es,mL=_5,gL=Pi,_L="[object Object]",vL=Function.prototype,yL=Object.prototype,v5=vL.toString,bL=yL.hasOwnProperty,wL=v5.call(Object);function kL(t){if(!gL(t)||pL(t)!=_L)return!1;var e=mL(t);if(e===null)return!0;var n=bL.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&v5.call(n)==wL}var xL=kL;function CL(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var y5=CL,SL=Kz,ML=Hd;function OL(t,e,n,i){var s=!n;n||(n={});for(var r=-1,o=e.length;++r<o;){var c=e[r],d=i?i(n[c],t[c],c,n,t):void 0;d===void 0&&(d=t[c]),s?ML(n,c,d):SL(n,c,d)}return n}var DL=OL,EL=DL,TL=ph;function IL(t){return EL(t,TL(t))}var BL=IL,b5=p5,AL=Wd,VL=XP,$L=QP,NL=cL,w5=X0,k5=zi,zL=fL,PL=ja,LL=Lr,FL=_s,RL=xL,HL=nh,x5=y5,WL=BL;function YL(t,e,n,i,s,r,o){var c=x5(t,n),d=x5(e,n),h=o.get(d);if(h){b5(t,n,h);return}var f=r?r(c,d,n+"",t,e,o):void 0,m=f===void 0;if(m){var g=k5(d),v=!g&&PL(d),b=!g&&!v&&HL(d);f=d,g||v||b?k5(c)?f=c:zL(c)?f=$L(c):v?(m=!1,f=AL(d,!0)):b?(m=!1,f=VL(d,!0)):f=[]:RL(d)||w5(d)?(f=c,w5(c)?f=WL(c):(!FL(c)||LL(c))&&(f=NL(d))):m=!1}m&&(o.set(d,f),s(f,d,i,r,o),o.delete(d)),b5(t,n,f)}var jL=YL,UL=eh,qL=p5,GL=r5,KL=jL,ZL=_s,XL=ph,JL=y5;function C5(t,e,n,i,s){t!==e&&GL(e,function(r,o){if(s||(s=new UL),ZL(r))KL(t,e,o,n,C5,i,s);else{var c=i?i(JL(t,o),r,o+"",t,e,s):void 0;c===void 0&&(c=r),qL(t,o,c)}},XL)}var S5=C5,QL=S5,M5=_s;function O5(t,e,n,i,s,r){return M5(t)&&M5(e)&&(r.set(e,t),QL(t,e,void 0,O5,r),r.delete(e)),t}var eF=O5,tF=fh,nF=hh;function iF(t){return tF(function(e,n){var i=-1,s=n.length,r=s>1?n[s-1]:void 0,o=s>2?n[2]:void 0;for(r=t.length>3&&typeof r=="function"?(s--,r):void 0,o&&nF(n[0],n[1],o)&&(r=s<3?void 0:r,s=1),e=Object(e);++i<s;){var c=n[i];c&&t(e,c,i,r)}return e})}var sF=iF,rF=S5,aF=sF,oF=aF(function(t,e,n,i){rF(t,e,n,i)}),lF=oF,cF=c5,dF=fh,uF=eF,hF=lF,fF=dF(function(t){return t.push(void 0,uF),cF(hF,void 0,t)}),Al=fF;function pF(t){return t&&t.length?t[0]:void 0}var D5=pF;function mF(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var qa=mF;const gF=t=>Object.prototype.toString.call(t).slice(8,-1),Ga=t=>kB(t)&&!isNaN(t.getTime()),vs=t=>gF(t)==="Object",E5=C4,T5=(t,e)=>Iz(e,n=>C4(t,n)),vt=(t,e,n="0")=>{for(t=t!=null?String(t):"",e=e||2;t.length<e;)t=`${n}${t}`;return t},_i=t=>Array.isArray(t),ys=t=>_i(t)&&t.length>0,Yd=t=>t==null?null:document&&ts(t)?document.querySelector(t):t.$el??t,Qs=(t,e,n,i=void 0)=>{t.removeEventListener(e,n,i)},er=(t,e,n,i=void 0)=>(t.addEventListener(e,n,i),()=>Qs(t,e,n,i)),jd=(t,e)=>!!t&&!!e&&(t===e||t.contains(e)),Ud=(t,e)=>{(t.key===" "||t.key==="Enter")&&(e(t),t.preventDefault())},I5=(t,...e)=>{const n={};let i;for(i in t)e.includes(i)||(n[i]=t[i]);return n},B5=(t,e)=>{const n={};return e.forEach(i=>{i in t&&(n[i]=t[i])}),n};function _F(t,e,n){return Math.min(Math.max(t,e),n)}var qd={},vF={get exports(){return qd},set exports(t){qd=t}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(i){if(i===null||i===!0||i===!1)return NaN;var s=Number(i);return isNaN(s)?s:s<0?Math.ceil(s):Math.floor(s)}t.exports=e.default})(vF,qd);const yF=r4(qd);var Gd={},bF={get exports(){return Gd},set exports(t){Gd=t}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(i){var s=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));return s.setUTCFullYear(i.getFullYear()),i.getTime()-s.getTime()}t.exports=e.default})(bF,Gd);const A5=r4(Gd);function wF(t,e){var n=SF(e);return n.formatToParts?xF(n,t):CF(n,t)}var kF={year:0,month:1,day:2,hour:3,minute:4,second:5};function xF(t,e){try{for(var n=t.formatToParts(e),i=[],s=0;s<n.length;s++){var r=kF[n[s].type];r>=0&&(i[r]=parseInt(n[s].value,10))}return i}catch(o){if(o instanceof RangeError)return[NaN];throw o}}function CF(t,e){var n=t.format(e).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[i[3],i[1],i[2],i[4],i[5],i[6]]}var mh={};function SF(t){if(!mh[t]){var e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=e==="06/25/2014, 00:00:00"||e==="\u200E06\u200E/\u200E25\u200E/\u200E2014\u200E \u200E00\u200E:\u200E00\u200E:\u200E00";mh[t]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return mh[t]}function V5(t,e,n,i,s,r,o){var c=new Date(0);return c.setUTCFullYear(t,e,n),c.setUTCHours(i,s,r,o),c}var $5=36e5,MF=6e4,gh={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function OF(t,e,n){var i,s;if(!t||(i=gh.timezoneZ.exec(t),i))return 0;var r;if(i=gh.timezoneHH.exec(t),i)return r=parseInt(i[1],10),N5(r)?-(r*$5):NaN;if(i=gh.timezoneHHMM.exec(t),i){r=parseInt(i[1],10);var o=parseInt(i[2],10);return N5(r,o)?(s=Math.abs(r)*$5+o*MF,r>0?-s:s):NaN}if(TF(t)){e=new Date(e||Date.now());var c=n?e:DF(e),d=_h(c,t),h=n?d:EF(e,d,t);return-h}return NaN}function DF(t){return V5(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function _h(t,e){var n=wF(t,e),i=V5(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),s=t.getTime(),r=s%1e3;return s-=r>=0?r:1e3+r,i-s}function EF(t,e,n){var i=t.getTime(),s=i-e,r=_h(new Date(s),n);if(e===r)return e;s-=r-e;var o=_h(new Date(s),n);return r===o?r:Math.max(r,o)}function N5(t,e){return-23<=t&&t<=23&&(e==null||0<=e&&e<=59)}var z5={};function TF(t){if(z5[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),z5[t]=!0,!0}catch{return!1}}var IF=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const BF=IF;var vh=36e5,P5=6e4,AF=2,Tn={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:BF};function VF(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(t===null)return new Date(NaN);var n=e||{},i=n.additionalDigits==null?AF:yF(n.additionalDigits);if(i!==2&&i!==1&&i!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]")return new Date(t.getTime());if(typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]")return new Date(t);if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var s=$F(t),r=NF(s.date,i),o=r.year,c=r.restDateString,d=zF(c,o);if(isNaN(d))return new Date(NaN);if(d){var h=d.getTime(),f=0,m;if(s.time&&(f=PF(s.time),isNaN(f)))return new Date(NaN);if(s.timeZone||n.timeZone){if(m=OF(s.timeZone||n.timeZone,new Date(h+f)),isNaN(m))return new Date(NaN)}else m=A5(new Date(h+f)),m=A5(new Date(h+f+m));return new Date(h+f+m)}else return new Date(NaN)}function $F(t){var e={},n=Tn.dateTimePattern.exec(t),i;if(n?(e.date=n[1],i=n[3]):(n=Tn.datePattern.exec(t),n?(e.date=n[1],i=n[2]):(e.date=null,i=t)),i){var s=Tn.timeZone.exec(i);s?(e.time=i.replace(s[1],""),e.timeZone=s[1].trim()):e.time=i}return e}function NF(t,e){var n=Tn.YYY[e],i=Tn.YYYYY[e],s;if(s=Tn.YYYY.exec(t)||i.exec(t),s){var r=s[1];return{year:parseInt(r,10),restDateString:t.slice(r.length)}}if(s=Tn.YY.exec(t)||n.exec(t),s){var o=s[1];return{year:parseInt(o,10)*100,restDateString:t.slice(o.length)}}return{year:null}}function zF(t,e){if(e===null)return null;var n,i,s,r;if(t.length===0)return i=new Date(0),i.setUTCFullYear(e),i;if(n=Tn.MM.exec(t),n)return i=new Date(0),s=parseInt(n[1],10)-1,R5(e,s)?(i.setUTCFullYear(e,s),i):new Date(NaN);if(n=Tn.DDD.exec(t),n){i=new Date(0);var o=parseInt(n[1],10);return RF(e,o)?(i.setUTCFullYear(e,0,o),i):new Date(NaN)}if(n=Tn.MMDD.exec(t),n){i=new Date(0),s=parseInt(n[1],10)-1;var c=parseInt(n[2],10);return R5(e,s,c)?(i.setUTCFullYear(e,s,c),i):new Date(NaN)}if(n=Tn.Www.exec(t),n)return r=parseInt(n[1],10)-1,H5(e,r)?L5(e,r):new Date(NaN);if(n=Tn.WwwD.exec(t),n){r=parseInt(n[1],10)-1;var d=parseInt(n[2],10)-1;return H5(e,r,d)?L5(e,r,d):new Date(NaN)}return null}function PF(t){var e,n,i;if(e=Tn.HH.exec(t),e)return n=parseFloat(e[1].replace(",",".")),yh(n)?n%24*vh:NaN;if(e=Tn.HHMM.exec(t),e)return n=parseInt(e[1],10),i=parseFloat(e[2].replace(",",".")),yh(n,i)?n%24*vh+i*P5:NaN;if(e=Tn.HHMMSS.exec(t),e){n=parseInt(e[1],10),i=parseInt(e[2],10);var s=parseFloat(e[3].replace(",","."));return yh(n,i,s)?n%24*vh+i*P5+s*1e3:NaN}return null}function L5(t,e,n){e=e||0,n=n||0;var i=new Date(0);i.setUTCFullYear(t,0,4);var s=i.getUTCDay()||7,r=e*7+n+1-s;return i.setUTCDate(i.getUTCDate()+r),i}var LF=[31,28,31,30,31,30,31,31,30,31,30,31],FF=[31,29,31,30,31,30,31,31,30,31,30,31];function F5(t){return t%400===0||t%4===0&&t%100!==0}function R5(t,e,n){if(e<0||e>11)return!1;if(n!=null){if(n<1)return!1;var i=F5(t);if(i&&n>FF[e]||!i&&n>LF[e])return!1}return!0}function RF(t,e){if(e<1)return!1;var n=F5(t);return!(n&&e>366||!n&&e>365)}function H5(t,e,n){return!(e<0||e>52||n!=null&&(n<0||n>6))}function yh(t,e,n){return!(t!=null&&(t<0||t>=25)||e!=null&&(e<0||e>=60)||n!=null&&(n<0||n>=60))}function kn(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Kd(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kd=function(n){return typeof n}:Kd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kd(t)}function bs(t){kn(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Kd(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ka(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}var HF={};function bh(){return HF}function Wr(t,e){var n,i,s,r,o,c,d,h;kn(1,arguments);var f=bh(),m=Ka((n=(i=(s=(r=e==null?void 0:e.weekStartsOn)!==null&&r!==void 0?r:e==null||(o=e.locale)===null||o===void 0||(c=o.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&s!==void 0?s:f.weekStartsOn)!==null&&i!==void 0?i:(d=f.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=bs(t),v=g.getDay(),b=(v<m?7:0)+v-m;return g.setDate(g.getDate()-b),g.setHours(0,0,0,0),g}function W5(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var WF=6048e5;function YF(t,e,n){kn(2,arguments);var i=Wr(t,n),s=Wr(e,n),r=i.getTime()-W5(i),o=s.getTime()-W5(s);return Math.round((r-o)/WF)}function jF(t){kn(1,arguments);var e=bs(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}function UF(t){kn(1,arguments);var e=bs(t);return e.setDate(1),e.setHours(0,0,0,0),e}function qF(t,e){return kn(1,arguments),YF(jF(t),UF(t),e)+1}function GF(t,e){var n,i,s,r,o,c,d,h;kn(1,arguments);var f=bs(t),m=f.getFullYear(),g=bh(),v=Ka((n=(i=(s=(r=e==null?void 0:e.firstWeekContainsDate)!==null&&r!==void 0?r:e==null||(o=e.locale)===null||o===void 0||(c=o.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:g.firstWeekContainsDate)!==null&&i!==void 0?i:(d=g.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setFullYear(m+1,0,v),b.setHours(0,0,0,0);var x=Wr(b,e),k=new Date(0);k.setFullYear(m,0,v),k.setHours(0,0,0,0);var O=Wr(k,e);return f.getTime()>=x.getTime()?m+1:f.getTime()>=O.getTime()?m:m-1}function KF(t,e){var n,i,s,r,o,c,d,h;kn(1,arguments);var f=bh(),m=Ka((n=(i=(s=(r=e==null?void 0:e.firstWeekContainsDate)!==null&&r!==void 0?r:e==null||(o=e.locale)===null||o===void 0||(c=o.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:f.firstWeekContainsDate)!==null&&i!==void 0?i:(d=f.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1),g=GF(t,e),v=new Date(0);v.setFullYear(g,0,m),v.setHours(0,0,0,0);var b=Wr(v,e);return b}var ZF=6048e5;function XF(t,e){kn(1,arguments);var n=bs(t),i=Wr(n,e).getTime()-KF(n,e).getTime();return Math.round(i/ZF)+1}function Zd(t){return kn(1,arguments),Wr(t,{weekStartsOn:1})}function JF(t){kn(1,arguments);var e=bs(t),n=e.getFullYear(),i=new Date(0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);var s=Zd(i),r=new Date(0);r.setFullYear(n,0,4),r.setHours(0,0,0,0);var o=Zd(r);return e.getTime()>=s.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function QF(t){kn(1,arguments);var e=JF(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var i=Zd(n);return i}var eR=6048e5;function tR(t){kn(1,arguments);var e=bs(t),n=Zd(e).getTime()-QF(e).getTime();return Math.round(n/eR)+1}function In(t,e){kn(2,arguments);var n=bs(t),i=Ka(e);return isNaN(i)?new Date(NaN):(i&&n.setDate(n.getDate()+i),n)}function Xd(t,e){kn(2,arguments);var n=bs(t),i=Ka(e);if(isNaN(i))return new Date(NaN);if(!i)return n;var s=n.getDate(),r=new Date(n.getTime());r.setMonth(n.getMonth()+i+1,0);var o=r.getDate();return s>=o?r:(n.setFullYear(r.getFullYear(),r.getMonth(),s),n)}function Y5(t,e){kn(2,arguments);var n=Ka(e);return Xd(t,n*12)}const nR={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function iR({monthComps:t,prevMonthComps:e,nextMonthComps:n},i){const s=[],{firstDayOfWeek:r,firstWeekday:o,isoWeeknumbers:c,weeknumbers:d,numDays:h,numWeeks:f}=t,m=o+(o<r?xn:0)-r;let g=!0,v=!1,b=!1,x=0;const k=new Intl.DateTimeFormat(i.id,{weekday:"long",year:"numeric",month:"short",day:"numeric"});let O=e.numDays-m+1,T=e.numDays-O+1,N=Math.floor((O-1)/xn+1),C=1,B=e.numWeeks,$=1,L=e.month,F=e.year;const q=new Date,ee=q.getDate(),ne=q.getMonth()+1,K=q.getFullYear();for(let ie=1;ie<=IR;ie++){for(let pe=1,J=r;pe<=xn;pe++,J+=J===xn?1-xn:1){g&&J===o&&(O=1,T=t.numDays,N=Math.floor((O-1)/xn+1),C=Math.floor((h-O)/xn+1),B=1,$=f,L=t.month,F=t.year,g=!1,v=!0);const ue=i.getDateFromParams(F,L,O,0,0,0,0),he=i.getDateFromParams(F,L,O,12,0,0,0),_e=i.getDateFromParams(F,L,O,23,59,59,999),be=ue,R=`${vt(F,4)}-${vt(L,2)}-${vt(O,2)}`,fe=pe,ae=xn-pe,Ee=d[ie-1],Me=c[ie-1],me=O===ee&&L===ne&&F===K,Ne=v&&O===1,ot=v&&O===h,Le=ie===1,ut=ie===f,Bt=pe===1,wt=pe===xn,et=l_(F,L,O);s.push({locale:i,id:R,position:++x,label:O.toString(),ariaLabel:k.format(new Date(F,L-1,O)),day:O,dayFromEnd:T,weekday:J,weekdayPosition:fe,weekdayPositionFromEnd:ae,weekdayOrdinal:N,weekdayOrdinalFromEnd:C,week:B,weekFromEnd:$,weekPosition:ie,weeknumber:Ee,isoWeeknumber:Me,month:L,year:F,date:be,startDate:ue,endDate:_e,noonDate:he,dayIndex:et,isToday:me,isFirstDay:Ne,isLastDay:ot,isDisabled:!v,isFocusable:!v,isFocused:!1,inMonth:v,inPrevMonth:g,inNextMonth:b,onTop:Le,onBottom:ut,onLeft:Bt,onRight:wt,classes:[`id-${R}`,`day-${O}`,`day-from-end-${T}`,`weekday-${J}`,`weekday-position-${fe}`,`weekday-ordinal-${N}`,`weekday-ordinal-from-end-${C}`,`week-${B}`,`week-from-end-${$}`,{"is-today":me,"is-first-day":Ne,"is-last-day":ot,"in-month":v,"in-prev-month":g,"in-next-month":b,"on-top":Le,"on-bottom":ut,"on-left":Bt,"on-right":wt}]}),v&&ot?(v=!1,b=!0,O=1,T=h,N=1,C=Math.floor((h-O)/xn+1),B=1,$=n.numWeeks,L=n.month,F=n.year):(O++,T--,N=Math.floor((O-1)/xn+1),C=Math.floor((h-O)/xn+1))}B++,$--}return s}function sR(t,e,n,i){const s=t.reduce((r,o,c)=>{const d=Math.floor(c/7);let h=r[d];return h||(h={id:`week-${d+1}`,title:"",week:o.week,weekPosition:o.weekPosition,weeknumber:o.weeknumber,isoWeeknumber:o.isoWeeknumber,weeknumberDisplay:e?o.weeknumber:n?o.isoWeeknumber:void 0,days:[]},r[d]=h),h.days.push(o),r},Array(t.length/xn));return s.forEach(r=>{const o=r.days[0],c=r.days[r.days.length-1];o.month===c.month?r.title=`${i.formatDate(o.date,"MMMM YYYY")}`:o.year===c.year?r.title=`${i.formatDate(o.date,"MMM")} - ${i.formatDate(c.date,"MMM YYYY")}`:r.title=`${i.formatDate(o.date,"MMM YYYY")} - ${i.formatDate(c.date,"MMM YYYY")}`}),s}function rR(t,e){return t.days.map(n=>({label:e.formatDate(n.date,e.masks.weekdays),weekday:n.weekday}))}function aR(t,e){return`${e}.${vt(t,2)}`}function j5(t,e,n){return B5(n.getDateParts(n.toDate(t)),nR[e])}function U5({day:t,week:e,month:n,year:i},s,r,o){if(r==="daily"&&t){const c=new Date(i,n-1,t),d=In(c,s);return{day:d.getDate(),month:d.getMonth()+1,year:d.getFullYear()}}else if(r==="weekly"&&e){const d=o.getMonthParts(n,i).firstDayOfMonth,h=In(d,(e-1+s)*7),f=o.getDateParts(h);return{week:f.week,month:f.month,year:f.year}}else{const c=new Date(i,n-1,1),d=Xd(c,s);return{month:d.getMonth()+1,year:d.getFullYear()}}}function ns(t){return t!=null&&t.month!=null&&t.year!=null}function wh(t,e){return!ns(t)||!ns(e)?!1:(t=t,e=e,t.year!==e.year?t.year<e.year:t.month&&e.month&&t.month!==e.month?t.month<e.month:t.week&&e.week&&t.week!==e.week?t.week<e.week:t.day&&e.day&&t.day!==e.day?t.day<e.day:!1)}function Jd(t,e){return!ns(t)||!ns(e)?!1:(t=t,e=e,t.year!==e.year?t.year>e.year:t.month&&e.month&&t.month!==e.month?t.month>e.month:t.week&&e.week&&t.week!==e.week?t.week>e.week:t.day&&e.day&&t.day!==e.day?t.day>e.day:!1)}function oR(t,e,n){return(t||!1)&&!wh(t,e)&&!Jd(t,n)}function lR(t,e){return!t&&e||t&&!e?!1:!t&&!e?!0:(t=t,e=e,t.year===e.year&&t.month===e.month&&t.week===e.week&&t.day===e.day)}function cR(t,e,n,i){if(!ns(t)||!ns(e))return[];const s=[];for(;!Jd(t,e);)s.push(t),t=U5(t,1,n,i);return s}function q5(t){const{day:e,week:n,month:i,year:s}=t;let r=`${s}-${vt(i,2)}`;return n&&(r=`${r}-w${n}`),e&&(r=`${r}-${vt(e,2)}`),r}function dR(t,e){const{month:n,year:i,showWeeknumbers:s,showIsoWeeknumbers:r}=t,o=new Date(i,n-1,15),c=e.getMonthParts(n,i),d=e.getPrevMonthParts(n,i),h=e.getNextMonthParts(n,i),f=iR({monthComps:c,prevMonthComps:d,nextMonthComps:h},e),m=sR(f,s,r,e),g=rR(m[0],e);return{id:q5(t),month:n,year:i,monthTitle:e.formatDate(o,e.masks.title),shortMonthLabel:e.formatDate(o,"MMM"),monthLabel:e.formatDate(o,"MMMM"),shortYearLabel:i.toString().substring(2),yearLabel:i.toString(),monthComps:c,prevMonthComps:d,nextMonthComps:h,days:f,weeks:m,weekdays:g}}function uR(t,e){const{day:n,week:i,view:s,trimWeeks:r}=t,o={...e,...t,title:"",viewDays:[],viewWeeks:[]};switch(s){case"daily":{let c=o.days.find(h=>h.inMonth);n?c=o.days.find(h=>h.day===n&&h.inMonth)||c:i&&(c=o.days.find(h=>h.week===i&&h.inMonth));const d=o.weeks[c.week-1];o.viewWeeks=[d],o.viewDays=[c],o.week=c.week,o.weekTitle=d.title,o.day=c.day,o.dayTitle=c.ariaLabel,o.title=o.dayTitle;break}case"weekly":{o.week=i||1;const c=o.weeks[o.week-1];o.viewWeeks=[c],o.viewDays=c.days,o.weekTitle=c.title,o.title=o.weekTitle;break}default:{o.title=o.monthTitle,o.viewWeeks=o.weeks.slice(0,r?o.monthComps.numWeeks:void 0),o.viewDays=o.days;break}}return o}class G5{constructor(e,n,i){xe(this,"keys",[]),xe(this,"store",{}),this.size=e,this.createKey=n,this.createItem=i}get(...e){const n=this.createKey(...e);return this.store[n]}getOrSet(...e){const n=this.createKey(...e);if(this.store[n])return this.store[n];const i=this.createItem(...e);if(this.keys.length>=this.size){const s=this.keys.shift();s!=null&&delete this.store[s]}return this.keys.push(n),this.store[n]=i,i}}class Za{constructor(e,n=new Qd){xe(this,"order"),xe(this,"locale"),xe(this,"start",null),xe(this,"end",null),xe(this,"repeat",null);var i;this.locale=n;const{start:s,end:r,span:o,order:c,repeat:d}=e;Ga(s)&&(this.start=n.getDateParts(s)),Ga(r)?this.end=n.getDateParts(r):this.start!=null&&o&&(this.end=n.getDateParts(In(this.start.date,o-1))),this.order=c??0,d&&(this.repeat=new eu({from:(i=this.start)==null?void 0:i.date,...d},{locale:this.locale}))}static fromMany(e,n){return(_i(e)?e:[e]).filter(i=>i).map(i=>Za.from(i,n))}static from(e,n){if(e instanceof Za)return e;const i={start:null,end:null};return e!=null&&(_i(e)?(i.start=e[0]??null,i.end=e[1]??null):vs(e)?Object.assign(i,e):(i.start=e,i.end=e)),i.start!=null&&(i.start=new Date(i.start)),i.end!=null&&(i.end=new Date(i.end)),new Za(i,n)}get opts(){const{order:e,locale:n}=this;return{order:e,locale:n}}get hasRepeat(){return!!this.repeat}get isSingleDay(){const{start:e,end:n}=this;return e&&n&&e.year===n.year&&e.month===n.month&&e.day===n.day}get isMultiDay(){return!this.isSingleDay}get daySpan(){return this.start==null||this.end==null?this.hasRepeat?1:1/0:this.end.dayIndex-this.start.dayIndex}startsOnDay(e){var n,i;return((n=this.start)==null?void 0:n.dayIndex)===e.dayIndex||!!((i=this.repeat)!=null&&i.passes(e))}intersectsDay(e){return this.intersectsDayRange(e,e)}intersectsRange(e){var n,i;return this.intersectsDayRange(((n=e.start)==null?void 0:n.dayIndex)??-1/0,((i=e.end)==null?void 0:i.dayIndex)??1/0)}intersectsDayRange(e,n){return!(this.start&&this.start.dayIndex>n||this.end&&this.end.dayIndex<e)}}class hR{constructor(){xe(this,"records",{})}render(e,n,i){var s,r,o,c;let d=null;const h=i[0].dayIndex,f=i[i.length-1].dayIndex;return n.hasRepeat?i.forEach(m=>{var g,v;if(n.startsOnDay(m)){const b=n.daySpan<1/0?n.daySpan:1;d={startDay:m.dayIndex,startTime:((g=n.start)==null?void 0:g.time)??0,endDay:m.dayIndex+b-1,endTime:((v=n.end)==null?void 0:v.time)??tu},this.getRangeRecords(e).push(d)}}):n.intersectsDayRange(h,f)&&(d={startDay:((s=n.start)==null?void 0:s.dayIndex)??-1/0,startTime:((r=n.start)==null?void 0:r.time)??-1/0,endDay:((o=n.end)==null?void 0:o.dayIndex)??1/0,endTime:((c=n.end)==null?void 0:c.time)??1/0},this.getRangeRecords(e).push(d)),d}getRangeRecords(e){let n=this.records[e.key];return n||(n={ranges:[],data:e},this.records[e.key]=n),n.ranges}getCell(e,n){return this.getCells(n).find(r=>r.data.key===e)}cellExists(e,n){const i=this.records[e];return i==null?!1:i.ranges.some(s=>s.startDay<=n&&s.endDay>=n)}getCells(e){const n=Object.values(this.records),i=[],{dayIndex:s}=e;return n.forEach(({data:r,ranges:o})=>{o.filter(c=>c.startDay<=s&&c.endDay>=s).forEach(c=>{const d=s===c.startDay,h=s===c.endDay,f=d?c.startTime:0,m=new Date(e.startDate.getTime()+f),g=h?c.endTime:tu,v=new Date(e.endDate.getTime()+g),b=f===0&&g===tu,x=r.order||0;i.push({...c,data:r,onStart:d,onEnd:h,startTime:f,startDate:m,endTime:g,endDate:v,allDay:b,order:x})})}),i.sort((r,o)=>r.order-o.order),i}}const ws={ar:{dow:7,L:"D/\u200FM/\u200FYYYY"},bg:{dow:2,L:"D.MM.YYYY"},ca:{dow:2,L:"DD/MM/YYYY"},"zh-CN":{dow:2,L:"YYYY/MM/DD"},"zh-TW":{dow:1,L:"YYYY/MM/DD"},hr:{dow:2,L:"DD.MM.YYYY"},cs:{dow:2,L:"DD.MM.YYYY"},da:{dow:2,L:"DD.MM.YYYY"},nl:{dow:2,L:"DD-MM-YYYY"},"en-US":{dow:1,L:"MM/DD/YYYY"},"en-AU":{dow:2,L:"DD/MM/YYYY"},"en-CA":{dow:1,L:"YYYY-MM-DD"},"en-GB":{dow:2,L:"DD/MM/YYYY"},"en-IE":{dow:2,L:"DD-MM-YYYY"},"en-NZ":{dow:2,L:"DD/MM/YYYY"},"en-ZA":{dow:1,L:"YYYY/MM/DD"},eo:{dow:2,L:"YYYY-MM-DD"},et:{dow:2,L:"DD.MM.YYYY"},fi:{dow:2,L:"DD.MM.YYYY"},fr:{dow:2,L:"DD/MM/YYYY"},"fr-CA":{dow:1,L:"YYYY-MM-DD"},"fr-CH":{dow:2,L:"DD.MM.YYYY"},de:{dow:2,L:"DD.MM.YYYY"},he:{dow:1,L:"DD.MM.YYYY"},id:{dow:2,L:"DD/MM/YYYY"},it:{dow:2,L:"DD/MM/YYYY"},ja:{dow:1,L:"YYYY\u5E74M\u6708D\u65E5"},ko:{dow:1,L:"YYYY.MM.DD"},lv:{dow:2,L:"DD.MM.YYYY"},lt:{dow:2,L:"DD.MM.YYYY"},mk:{dow:2,L:"D.MM.YYYY"},nb:{dow:2,L:"D. MMMM YYYY"},nn:{dow:2,L:"D. MMMM YYYY"},pl:{dow:2,L:"DD.MM.YYYY"},pt:{dow:2,L:"DD/MM/YYYY"},ro:{dow:2,L:"DD.MM.YYYY"},ru:{dow:2,L:"DD.MM.YYYY"},sk:{dow:2,L:"DD.MM.YYYY"},"es-ES":{dow:2,L:"DD/MM/YYYY"},"es-MX":{dow:2,L:"DD/MM/YYYY"},sv:{dow:2,L:"YYYY-MM-DD"},th:{dow:1,L:"DD/MM/YYYY"},tr:{dow:2,L:"DD.MM.YYYY"},uk:{dow:2,L:"DD.MM.YYYY"},vi:{dow:2,L:"DD/MM/YYYY"}};ws.en=ws["en-US"],ws.es=ws["es-ES"],ws.no=ws.nb,ws.zh=ws["zh-CN"];const fR=Object.entries(ws).reduce((t,[e,{dow:n,L:i}])=>(t[e]={id:e,firstDayOfWeek:n,masks:{L:i}},t),{}),pR={componentPrefix:"V",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:{maxSwipeTime:300,minHorizontalSwipeDistance:60,maxVerticalSwipeDistance:80},masks:{title:"MMMM YYYY",weekdays:"W",navMonths:"MMM",hours:"h A",input:["L","YYYY-MM-DD","YYYY/MM/DD"],inputDateTime:["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],inputDateTime24hr:["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],inputTime:["h:mm A"],inputTime24hr:["HH:mm"],dayPopover:"WWW, MMM D, YYYY",data:["L","YYYY-MM-DD","YYYY/MM/DD"],model:"iso",iso:"YYYY-MM-DDTHH:mm:ss.SSSZ"},locales:fR,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},kh=a.reactive(pR),mR=a.computed(()=>eP(kh.locales,t=>(t.masks=Al(t.masks,kh.masks),t))),tr=t=>typeof window<"u"&&E5(window.__vcalendar__,t)?Hr(window.__vcalendar__,t):Hr(kh,t),gR=12,_R=5;function vR(t,e){const n=new Intl.DateTimeFormat().resolvedOptions().locale;let i;ts(t)?i=t:E5(t,"id")&&(i=t.id),i=(i||n).toLowerCase();const s=Object.keys(e),r=d=>s.find(h=>h.toLowerCase()===d);i=r(i)||r(i.substring(0,2))||n;const o={...e["en-IE"],...e[i],id:i,monthCacheSize:gR,pageCacheSize:_R};return vs(t)?Al(t,o):o}class Qd{constructor(e=void 0,n){xe(this,"id"),xe(this,"daysInWeek"),xe(this,"firstDayOfWeek"),xe(this,"masks"),xe(this,"timezone"),xe(this,"hourLabels"),xe(this,"dayNames"),xe(this,"dayNamesShort"),xe(this,"dayNamesShorter"),xe(this,"dayNamesNarrow"),xe(this,"monthNames"),xe(this,"monthNamesShort"),xe(this,"relativeTimeNames"),xe(this,"amPm",["am","pm"]),xe(this,"monthCache"),xe(this,"pageCache");const{id:i,firstDayOfWeek:s,masks:r,monthCacheSize:o,pageCacheSize:c}=vR(e,mR.value);this.monthCache=new G5(o,FR,RR),this.pageCache=new G5(c,q5,dR),this.id=i,this.daysInWeek=xn,this.firstDayOfWeek=_F(s,1,xn),this.masks=r,this.timezone=n||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=Mh("long",this.id),this.dayNamesShort=Mh("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(d=>d.substring(0,2)),this.dayNamesNarrow=Mh("narrow",this.id),this.monthNames=h_("long",this.id),this.monthNamesShort=h_("short",this.id),this.relativeTimeNames=YR(this.id)}formatDate(e,n){return KR(e,n,this)}parseDate(e,n){return f_(e,n,this)}toDate(e,n={}){const i=new Date(NaN);let s=i;const{fillDate:r,mask:o,patch:c,rules:d}=n;if(Li(e)?(n.type="number",s=new Date(+e)):ts(e)?(n.type="string",s=e?f_(e,o||"iso",this):i):Ga(e)?(n.type="date",s=new Date(e.getTime())):Ch(e)&&(n.type="object",s=this.getDateFromParts(e)),s&&(c||d)){let h=this.getDateParts(s);if(c&&r!=null){const f=this.getDateParts(this.toDate(r));h=this.getDateParts(this.toDate({...f,...B5(h,TR[c])}))}d&&(h=GR(h,d)),s=this.getDateFromParts(h)}return s||i}toDateOrNull(e,n={}){const i=this.toDate(e,n);return isNaN(i.getTime())?null:i}fromDate(e,{type:n,mask:i}={}){switch(n){case"number":return e?e.getTime():NaN;case"string":return e?this.formatDate(e,i||"iso"):"";case"object":return e?this.getDateParts(e):null;default:return e?new Date(e):null}}range(e){return Za.from(e,this)}ranges(e){return Za.fromMany(e,this)}getDateParts(e){return LR(e,this)}getDateFromParts(e){return d_(e,this.timezone)}getDateFromParams(e,n,i,s,r,o,c){return this.getDateFromParts({year:e,month:n,day:i,hours:s,minutes:r,seconds:o,milliseconds:c})}getPage(e){const n=this.pageCache.getOrSet(e,this);return uR(e,n)}getMonthParts(e,n){const{firstDayOfWeek:i}=this;return this.monthCache.getOrSet(e,n,i)}getThisMonthParts(){const e=new Date;return this.getMonthParts(e.getMonth()+1,e.getFullYear())}getPrevMonthParts(e,n){return e===1?this.getMonthParts(12,n-1):this.getMonthParts(e-1,n)}getNextMonthParts(e,n){return e===12?this.getMonthParts(1,n+1):this.getMonthParts(e+1,n)}getHourLabels(){return WR().map(e=>this.formatDate(e,this.masks.hours))}getDayId(e){return this.formatDate(e,"YYYY-MM-DD")}}var Xa=(t=>(t.Any="any",t.All="all",t))(Xa||{}),K5=(t=>(t.Days="days",t.Weeks="weeks",t.Months="months",t.Years="years",t))(K5||{}),Z5=(t=>(t.Days="days",t.Weekdays="weekdays",t.Weeks="weeks",t.Months="months",t.Years="years",t))(Z5||{}),X5=(t=>(t.OrdinalWeekdays="ordinalWeekdays",t))(X5||{});class yR{constructor(e,n,i){xe(this,"validated",!0),this.type=e,this.interval=n,this.from=i,this.from||(console.error('A valid "from" date is required for date interval rule. This rule will be skipped.'),this.validated=!1)}passes(e){if(!this.validated)return!0;const{date:n}=e;switch(this.type){case"days":return Sh(this.from.date,n)%this.interval===0;case"weeks":return zR(this.from.date,n)%this.interval===0;case"months":return PR(this.from.date,n)%this.interval===0;case"years":return c_(this.from.date,n)%this.interval===0;default:return!1}}}class Ja{constructor(e,n,i,s){xe(this,"components",[]),this.type=e,this.validator=i,this.getter=s,this.components=this.normalizeComponents(n)}static create(e,n){switch(e){case"days":return new bR(n);case"weekdays":return new wR(n);case"weeks":return new kR(n);case"months":return new xR(n);case"years":return new CR(n)}}normalizeComponents(e){if(this.validator(e))return[e];if(!_i(e))return[];const n=[];return e.forEach(i=>{if(!this.validator(i)){console.error(`Component value ${i} in invalid for "${this.type}" rule. This rule will be skipped.`);return}n.push(i)}),n}passes(e){return this.getter(e).some(s=>this.components.includes(s))}}class bR extends Ja{constructor(e){super("days",e,OR,({day:n,dayFromEnd:i})=>[n,-i])}}class wR extends Ja{constructor(e){super("weekdays",e,xh,({weekday:n})=>[n])}}class kR extends Ja{constructor(e){super("weeks",e,DR,({week:n,weekFromEnd:i})=>[n,-i])}}class xR extends Ja{constructor(e){super("months",e,ER,({month:n})=>[n])}}class CR extends Ja{constructor(e){super("years",e,Li,({year:n})=>[n])}}class SR{constructor(e,n){xe(this,"components"),this.type=e,this.components=this.normalizeComponents(n)}normalizeArrayConfig(e){const n=[];return e.forEach((i,s)=>{if(Li(i)){if(s===0)return;if(!J5(e[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!xh(i)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([e[0],i])}else _i(i)&&n.push(...this.normalizeArrayConfig(i))}),n}normalizeComponents(e){const n=[];return e.forEach((i,s)=>{if(Li(i)){if(s===0)return;if(!J5(e[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!xh(i)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([e[0],i])}else _i(i)&&n.push(...this.normalizeArrayConfig(i))}),n}passes(e){const{weekday:n,weekdayOrdinal:i,weekdayOrdinalFromEnd:s}=e;return this.components.some(([r,o])=>(r===i||r===-s)&&n===o)}}class MR{constructor(e){xe(this,"type","function"),xe(this,"validated",!0),this.fn=e,Lr(e)||(console.error("The function rule requires a valid function. This rule will be skipped."),this.validated=!1)}passes(e){return this.validated?this.fn(e):!0}}class eu{constructor(e,n={},i){xe(this,"validated",!0),xe(this,"config"),xe(this,"type",Xa.Any),xe(this,"from"),xe(this,"until"),xe(this,"rules",[]),xe(this,"locale",new Qd),this.parent=i,n.locale&&(this.locale=n.locale),this.config=e,Lr(e)?(this.type=Xa.All,this.rules=[new MR(e)]):_i(e)?(this.type=Xa.Any,this.rules=e.map(s=>new eu(s,n,this))):vs(e)?(this.type=Xa.All,this.from=e.from?this.locale.getDateParts(e.from):i==null?void 0:i.from,this.until=e.until?this.locale.getDateParts(e.until):i==null?void 0:i.until,this.rules=this.getObjectRules(e)):(console.error("Rule group configuration must be an object or an array."),this.validated=!1)}getObjectRules(e){const n=[];if(e.every&&(ts(e.every)&&(e.every=[1,`${e.every}s`]),_i(e.every))){const[i=1,s=K5.Days]=e.every;n.push(new yR(s,i,this.from))}return Object.values(Z5).forEach(i=>{i in e&&n.push(Ja.create(i,e[i]))}),Object.values(X5).forEach(i=>{i in e&&n.push(new SR(i,e[i]))}),e.on!=null&&(_i(e.on)||(e.on=[e.on]),n.push(new eu(e.on,{locale:this.locale},this.parent))),n}passes(e){return this.validated?this.from&&e.dayIndex<=this.from.dayIndex||this.until&&e.dayIndex>=this.until.dayIndex?!1:this.type===Xa.Any?this.rules.some(n=>n.passes(e)):this.rules.every(n=>n.passes(e)):!0}}function OR(t){return Li(t)?t>=1&&t<=31:!1}function xh(t){return Li(t)?t>=1&&t<=7:!1}function DR(t){return Li(t)?t>=-6&&t<=-1||t>=1&&t<=6:!1}function ER(t){return Li(t)?t>=1&&t<=12:!1}function J5(t){return!(!Li(t)||t<-5||t>5||t===0)}const TR={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},xn=7,IR=6,Q5=1e3,e_=Q5*60,t_=e_*60,tu=t_*24,BR=[31,28,31,30,31,30,31,31,30,31,30,31],AR=["L","iso"],Vl={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},n_=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,VR=/\[([^]*?)\]/gm,i_={D(t){return t.day},DD(t){return vt(t.day,2)},d(t){return t.weekday-1},dd(t){return vt(t.weekday-1,2)},W(t,e){return e.dayNamesNarrow[t.weekday-1]},WW(t,e){return e.dayNamesShorter[t.weekday-1]},WWW(t,e){return e.dayNamesShort[t.weekday-1]},WWWW(t,e){return e.dayNames[t.weekday-1]},M(t){return t.month},MM(t){return vt(t.month,2)},MMM(t,e){return e.monthNamesShort[t.month-1]},MMMM(t,e){return e.monthNames[t.month-1]},YY(t){return String(t.year).substr(2)},YYYY(t){return vt(t.year,4)},h(t){return t.hours%12||12},hh(t){return vt(t.hours%12||12,2)},H(t){return t.hours},HH(t){return vt(t.hours,2)},m(t){return t.minutes},mm(t){return vt(t.minutes,2)},s(t){return t.seconds},ss(t){return vt(t.seconds,2)},S(t){return Math.round(t.milliseconds/100)},SS(t){return vt(Math.round(t.milliseconds/10),2)},SSS(t){return vt(t.milliseconds,3)},a(t,e){return t.hours<12?e.amPm[0]:e.amPm[1]},A(t,e){return t.hours<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},Z(){return"Z"},ZZ(t){const e=t.timezoneOffset;return`${e>0?"-":"+"}${vt(Math.floor(Math.abs(e)/60),2)}`},ZZZ(t){const e=t.timezoneOffset;return`${e>0?"-":"+"}${vt(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)}`},ZZZZ(t){const e=t.timezoneOffset;return`${e>0?"-":"+"}${vt(Math.floor(Math.abs(e)/60),2)}:${vt(Math.abs(e)%60,2)}`}},nr=/\d\d?/,$R=/\d{3}/,NR=/\d{4}/,$l=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,s_=()=>{},r_=t=>(e,n,i)=>{const s=i[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~s&&(e.month=s)},bt={D:[nr,(t,e)=>{t.day=e}],Do:[new RegExp(nr.source+$l.source),(t,e)=>{t.day=parseInt(e,10)}],d:[nr,s_],W:[$l,s_],M:[nr,(t,e)=>{t.month=e-1}],MMM:[$l,r_("monthNamesShort")],MMMM:[$l,r_("monthNames")],YY:[nr,(t,e)=>{const i=+new Date().getFullYear().toString().substr(0,2);t.year=+`${e>68?i-1:i}${e}`}],YYYY:[NR,(t,e)=>{t.year=e}],S:[/\d/,(t,e)=>{t.milliseconds=e*100}],SS:[/\d{2}/,(t,e)=>{t.milliseconds=e*10}],SSS:[$R,(t,e)=>{t.milliseconds=e}],h:[nr,(t,e)=>{t.hours=e}],m:[nr,(t,e)=>{t.minutes=e}],s:[nr,(t,e)=>{t.seconds=e}],a:[$l,(t,e,n)=>{const i=e.toLowerCase();i===n.amPm[0]?t.isPm=!1:i===n.amPm[1]&&(t.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(t,e)=>{e==="Z"&&(e="+00:00");const n=`${e}`.match(/([+-]|\d\d)/gi);if(n){const i=+n[1]*60+parseInt(n[2],10);t.timezoneOffset=n[0]==="+"?i:-i}}]};bt.DD=bt.D,bt.dd=bt.d,bt.WWWW=bt.WWW=bt.WW=bt.W,bt.MM=bt.M,bt.mm=bt.m,bt.hh=bt.H=bt.HH=bt.h,bt.ss=bt.s,bt.A=bt.a,bt.ZZZZ=bt.ZZZ=bt.ZZ=bt.Z;function a_(t,e){return(ys(t)&&t||[ts(t)&&t||"YYYY-MM-DD"]).map(n=>AR.reduce((i,s)=>i.replace(s,e.masks[s]||""),n))}function Ch(t){return vs(t)&&"year"in t&&"month"in t&&"day"in t}function o_(t,e=1){const n=t.getDay()+1,i=n>=e?e-n:-(7-(e-n));return In(t,i)}function l_(t,e,n){const i=Date.UTC(t,e-1,n);return Sh(new Date(0),new Date(i))}function Sh(t,e){return Math.round((e.getTime()-t.getTime())/tu)}function zR(t,e){return Math.ceil(Sh(o_(t),o_(e))/7)}function c_(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}function PR(t,e){return c_(t,e)*12+(e.getMonth()-t.getMonth())}function d_(t,e=""){const n=new Date,{year:i=n.getFullYear(),month:s=n.getMonth()+1,day:r=n.getDate(),hours:o=0,minutes:c=0,seconds:d=0,milliseconds:h=0}=t;if(e){const f=`${vt(i,4)}-${vt(s,2)}-${vt(r,2)}T${vt(o,2)}:${vt(c,2)}:${vt(d,2)}.${vt(h,3)}`;return VF(f,{timeZone:e})}return new Date(i,s-1,r,o,c,d,h)}function LR(t,e){let n=new Date(t.getTime());e.timezone&&(n=new Date(t.toLocaleString("en-US",{timeZone:e.timezone})),n.setMilliseconds(t.getMilliseconds()));const i=n.getMilliseconds(),s=n.getSeconds(),r=n.getMinutes(),o=n.getHours(),c=i+s*Q5+r*e_+o*t_,d=n.getMonth()+1,h=n.getFullYear(),f=e.getMonthParts(d,h),m=n.getDate(),g=f.numDays-m+1,v=n.getDay()+1,b=Math.floor((m-1)/7+1),x=Math.floor((f.numDays-m)/7+1),k=Math.ceil((m+Math.abs(f.firstWeekday-f.firstDayOfWeek))/7),O=f.numWeeks-k+1,T=f.weeknumbers[k],N=l_(h,d,m);return{milliseconds:i,seconds:s,minutes:r,hours:o,time:c,day:m,dayFromEnd:g,weekday:v,weekdayOrdinal:b,weekdayOrdinalFromEnd:x,week:k,weekFromEnd:O,weeknumber:T,month:d,year:h,date:n,dateTime:n.getTime(),dayIndex:N,timezoneOffset:0,isValid:!0}}function FR(t,e,n){return`${e}-${t}-${n}`}function RR(t,e,n){const i=e%4===0&&e%100!==0||e%400===0,s=new Date(e,t-1,1),r=s.getDay()+1,o=t===2&&i?29:BR[t-1],c=n-1,d=qF(s,{weekStartsOn:c}),h=[],f=[];for(let m=0;m<d;m++){const g=In(s,m*7);h.push(XF(g,{weekStartsOn:c})),f.push(tR(g))}return{firstDayOfWeek:n,firstDayOfMonth:s,inLeapYear:i,firstWeekday:r,numDays:o,numWeeks:d,month:t,year:e,weeknumbers:h,isoWeeknumbers:f}}function HR(){const t=[];for(let s=0;s<xn;s++)t.push(d_({year:2020,month:1,day:5+s,hours:12}));return t}function Mh(t,e=void 0){const n=new Intl.DateTimeFormat(e,{weekday:t});return HR().map(i=>n.format(i))}function WR(){const t=[];for(let e=0;e<=24;e++)t.push(new Date(2e3,0,1,e));return t}function YR(t=void 0){const e=["second","minute","hour","day","week","month","quarter","year"],n=new Intl.RelativeTimeFormat(t);return e.reduce((i,s)=>{const r=n.formatToParts(100,s);return i[s]=r[1].unit,i},{})}function u_(){const t=[];for(let e=0;e<12;e++)t.push(new Date(2e3,e,15));return t}function h_(t,e=void 0){const n=new Intl.DateTimeFormat(e,{month:t,timeZone:"UTC"});return u_().map(i=>n.format(i))}function jR(t,e,n){return Li(e)?e===t:_i(e)?e.includes(t):Lr(e)?e(t,n):!(e.min!=null&&e.min>t||e.max!=null&&e.max<t||e.interval!=null&&t%e.interval!==0)}function Nl(t,e,n){const i=[],[s,r,o]=e;for(let c=s;c<=r;c++)(n==null||jR(c,n,t))&&i.push({value:c,label:vt(c,o)});return i}function UR(t,e){return{milliseconds:Nl(t,Vl.milliseconds,e.milliseconds),seconds:Nl(t,Vl.seconds,e.seconds),minutes:Nl(t,Vl.minutes,e.minutes),hours:Nl(t,Vl.hours,e.hours)}}function qR(t,e,n,i){const r=Nl(t,e,i).reduce((o,c)=>{if(c.disabled)return o;if(isNaN(o))return c.value;const d=Math.abs(o-n);return Math.abs(c.value-n)<d?c.value:o},NaN);return isNaN(r)?n:r}function GR(t,e){const n={...t};return Object.entries(e).forEach(([i,s])=>{const r=Vl[i],o=t[i];n[i]=qR(t,r,o,s)}),n}function f_(t,e,n){return a_(e,n).map(s=>{if(typeof s!="string")throw new Error("Invalid mask");let r=t;if(r.length>1e3)return!1;let o=!0;const c={};if(s.replace(n_,f=>{if(bt[f]){const m=bt[f],g=r.search(m[0]);~g?r.replace(m[0],v=>(m[1](c,v,n),r=r.substr(g+v.length),v)):o=!1}return bt[f]?"":f.slice(1,f.length-1)}),!o)return!1;const d=new Date;c.hours!=null&&(c.isPm===!0&&+c.hours!=12?c.hours=+c.hours+12:c.isPm===!1&&+c.hours==12&&(c.hours=0));let h;return c.timezoneOffset!=null?(c.minutes=+(c.minutes||0)-+c.timezoneOffset,h=new Date(Date.UTC(c.year||d.getFullYear(),c.month||0,c.day||1,c.hours||0,c.minutes||0,c.seconds||0,c.milliseconds||0))):h=n.getDateFromParts({year:c.year||d.getFullYear(),month:(c.month||0)+1,day:c.day||1,hours:c.hours||0,minutes:c.minutes||0,seconds:c.seconds||0,milliseconds:c.milliseconds||0}),h}).find(s=>s)||new Date(t)}function KR(t,e,n){if(t==null)return"";let i=a_(e,n)[0];/Z$/.test(i)&&(n.timezone="utc");const s=[];i=i.replace(VR,(o,c)=>(s.push(c),"??"));const r=n.getDateParts(t);return i=i.replace(n_,o=>o in i_?i_[o](r,n):o.slice(1,o.length-1)),i.replace(/\?\?/g,()=>s.shift())}let ZR=0;class p_{constructor(e,n,i){xe(this,"key",""),xe(this,"hashcode",""),xe(this,"highlight",null),xe(this,"content",null),xe(this,"dot",null),xe(this,"bar",null),xe(this,"event",null),xe(this,"popover",null),xe(this,"customData",null),xe(this,"ranges"),xe(this,"hasRanges",!1),xe(this,"order",0),xe(this,"pinPage",!1),xe(this,"maxRepeatSpan",0),xe(this,"locale");const{dates:s}=Object.assign(this,{hashcode:"",order:0,pinPage:!1},e);this.key||(this.key=++ZR),this.locale=i,n.normalizeGlyphs(this),this.ranges=i.ranges(s??[]),this.hasRanges=!!ys(this.ranges),this.maxRepeatSpan=this.ranges.filter(r=>r.hasRepeat).map(r=>r.daySpan).reduce((r,o)=>Math.max(r,o),0)}intersectsRange({start:e,end:n}){if(e==null||n==null)return!1;const i=this.ranges.filter(o=>!o.hasRepeat);for(const o of i)if(o.intersectsDayRange(e.dayIndex,n.dayIndex))return!0;const s=this.ranges.filter(o=>o.hasRepeat);if(!s.length)return!1;let r=e;for(this.maxRepeatSpan>1&&(r=this.locale.getDateParts(In(r.date,-this.maxRepeatSpan)));r.dayIndex<=n.dayIndex;){for(const o of s)if(o.startsOnDay(r))return!0;r=this.locale.getDateParts(In(r.date,1))}return!1}}function Oh(t){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:t}))}function zl(t){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:t}))}function m_(t){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:t}))}function g_(t){const{visibility:e}=t,n=e==="click",i=e==="hover",s=e==="hover-focus",r=e==="focus";t.autoHide=!n;let o=!1,c=!1;const d=b=>{n&&(m_({...t,target:t.target||b.currentTarget}),b.stopPropagation())},h=b=>{o||(o=!0,(i||s)&&Oh({...t,target:t.target||b.currentTarget}))},f=()=>{o&&(o=!1,(i||s&&!c)&&zl(t))},m=b=>{c||(c=!0,(r||s)&&Oh({...t,target:t.target||b.currentTarget}))},g=b=>{c&&!jd(b.currentTarget,b.relatedTarget)&&(c=!1,(r||s&&!o)&&zl(t))},v={};switch(t.visibility){case"click":v.click=d;break;case"hover":v.mousemove=h,v.mouseleave=f;break;case"focus":v.focusin=m,v.focusout=g;break;case"hover-focus":v.mousemove=h,v.mouseleave=f,v.focusin=m,v.focusout=g;break}return v}const __=t=>{const e=Yd(t);if(e==null)return;const n=e.popoverHandlers;!n||!n.length||(n.forEach(i=>i()),delete e.popoverHandlers)},v_=(t,e)=>{const n=Yd(t);if(n==null)return;const i=[],s=g_(e);Object.entries(s).forEach(([r,o])=>{i.push(er(n,r,o))}),n.popoverHandlers=i},y_={mounted(t,e){const{value:n}=e;!n||v_(t,n)},updated(t,e){const{oldValue:n,value:i}=e,s=n==null?void 0:n.visibility,r=i==null?void 0:i.visibility;s!==r&&(s&&(__(t),r||zl(n)),r&&v_(t,i))},unmounted(t){__(t)}},XR=(t,e,{maxSwipeTime:n,minHorizontalSwipeDistance:i,maxVerticalSwipeDistance:s})=>{if(!t||!t.addEventListener||!Lr(e))return null;let r=0,o=0,c=null,d=!1;function h(m){const g=m.changedTouches[0];r=g.screenX,o=g.screenY,c=new Date().getTime(),d=!0}function f(m){if(!d||!c)return;d=!1;const g=m.changedTouches[0],v=g.screenX-r,b=g.screenY-o;if(new Date().getTime()-c<n&&Math.abs(v)>=i&&Math.abs(b)<=s){const k={toLeft:!1,toRight:!1};v<0?k.toLeft=!0:k.toRight=!0,e(k)}}return er(t,"touchstart",h,{passive:!0}),er(t,"touchend",f,{passive:!0}),()=>{Qs(t,"touchstart",h),Qs(t,"touchend",f)}},nu={},JR=(t,e=10)=>{nu[t]=Date.now()+e},QR=(t,e)=>{if(t in nu){const n=nu[t];if(Date.now()<n)return;delete nu[t]}e()};function b_(){return typeof window<"u"}function eH(t){return b_()&&t in window}function tH(t){const e=a.ref(!1),n=a.computed(()=>e.value?"dark":"light");let i,s;function r(v){e.value=v.matches}function o(){eH("matchMedia")&&(i=window.matchMedia("(prefers-color-scheme: dark)"),i.addEventListener("change",r),e.value=i.matches)}function c(){const{selector:v=":root",darkClass:b="dark"}=t.value,x=document.querySelector(v);e.value=x.classList.contains(b)}function d(v){const{selector:b=":root",darkClass:x="dark"}=v;if(b_()&&b&&x){const k=document.querySelector(b);k&&(s=new MutationObserver(c),s.observe(k,{attributes:!0,attributeFilter:["class"]}),e.value=k.classList.contains(x))}}function h(){m();const v=typeof t.value;v==="string"&&t.value.toLowerCase()==="system"?o():v==="object"?d(t.value):e.value=!!t.value}const f=a.watch(()=>t.value,()=>h(),{immediate:!0});function m(){i&&(i.removeEventListener("change",r),i=void 0),s&&(s.disconnect(),s=void 0)}function g(){m(),f()}return a.onUnmounted(()=>g()),{isDark:e,displayMode:n,cleanup:g}}const nH=["base","start","end","startEnd"],iH=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],sH={base:{},start:{},end:{}};function Dh(t,e,n=sH){let i=t,s={};e===!0||ts(e)?(i=ts(e)?e:i,s={...n}):vs(e)&&(T5(e,nH)?s={...e}:s={base:{...e},start:{...e},end:{...e}});const r=Al(s,{start:s.startEnd,end:s.startEnd},n);return Object.entries(r).forEach(([o,c])=>{let d=i;c===!0||ts(c)?(d=ts(c)?c:d,r[o]={color:d}):vs(c)&&(T5(c,iH)?r[o]={...c}:r[o]={}),Al(r[o],{color:d})}),r}class rH{constructor(){xe(this,"type","highlight")}normalizeConfig(e,n){return Dh(e,n,{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}})}prepareRender(e){e.highlights=[],e.content||(e.content=[])}render({data:e,onStart:n,onEnd:i},s){const{key:r,highlight:o}=e;if(!o)return;const{highlights:c}=s,{base:d,start:h,end:f}=o;n&&i?c.push({...h,key:r,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${h.color}`,class:[`vc-highlight vc-highlight-bg-${h.fillMode}`,h.class],contentClass:[`vc-attr vc-highlight-content-${h.fillMode} vc-${h.color}`,h.contentClass]}):n?(c.push({...d,key:`${r}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${d.fillMode}`,d.class]}),c.push({...h,key:r,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${h.color}`,class:[`vc-highlight vc-highlight-bg-${h.fillMode}`,h.class],contentClass:[`vc-attr vc-highlight-content-${h.fillMode} vc-${h.color}`,h.contentClass]})):i?(c.push({...d,key:`${r}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${d.fillMode}`,d.class]}),c.push({...f,key:r,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${f.color}`,class:[`vc-highlight vc-highlight-bg-${f.fillMode}`,f.class],contentClass:[`vc-attr vc-highlight-content-${f.fillMode} vc-${f.color}`,f.contentClass]})):c.push({...d,key:`${r}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${d.fillMode}`,d.class],contentClass:[`vc-attr vc-highlight-content-${d.fillMode} vc-${d.color}`,d.contentClass]})}}class Eh{constructor(e,n){xe(this,"type",""),xe(this,"collectionType",""),this.type=e,this.collectionType=n}normalizeConfig(e,n){return Dh(e,n)}prepareRender(e){e[this.collectionType]=[]}render({data:e,onStart:n,onEnd:i},s){const{key:r}=e,o=e[this.type];if(!r||!o)return;const c=s[this.collectionType],{base:d,start:h,end:f}=o;n?c.push({...h,key:r,class:[`vc-${this.type} vc-${this.type}-start vc-${h.color} vc-attr`,h.class]}):i?c.push({...f,key:r,class:[`vc-${this.type} vc-${this.type}-end vc-${f.color} vc-attr`,f.class]}):c.push({...d,key:r,class:[`vc-${this.type} vc-${this.type}-base vc-${d.color} vc-attr`,d.class]})}}class aH extends Eh{constructor(){super("content","content")}normalizeConfig(e,n){return Dh("base",n)}}class oH extends Eh{constructor(){super("dot","dots")}}class lH extends Eh{constructor(){super("bar","bars")}}class cH{constructor(e){xe(this,"color"),xe(this,"renderers",[new aH,new rH,new oH,new lH]),this.color=e}normalizeGlyphs(e){this.renderers.forEach(n=>{const i=n.type;e[i]!=null&&(e[i]=n.normalizeConfig(this.color,e[i]))})}prepareRender(e={}){return this.renderers.forEach(n=>{n.prepareRender(e)}),e}render(e,n){this.renderers.forEach(i=>{i.render(e,n)})}}const w_=Symbol("__vc_base_context__"),k_={color:{type:String,default:()=>tr("color")},isDark:{type:[Boolean,String,Object],default:()=>tr("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function x_(t){const e=a.computed(()=>t.color??""),n=a.computed(()=>t.isDark??!1),{displayMode:i}=tH(n),s=a.computed(()=>new cH(e.value)),r=a.computed(()=>{if(t.locale instanceof Qd)return t.locale;const g=vs(t.locale)?t.locale:{id:t.locale,firstDayOfWeek:t.firstDayOfWeek,masks:t.masks};return new Qd(g,t.timezone)}),o=a.computed(()=>r.value.masks),c=a.computed(()=>t.minDate),d=a.computed(()=>t.maxDate),h=a.computed(()=>{const g=t.disabledDates?[...t.disabledDates]:[];return c.value!=null&&g.push({start:null,end:In(r.value.toDate(c.value),-1)}),d.value!=null&&g.push({start:In(r.value.toDate(d.value),1),end:null}),r.value.ranges(g)}),f=a.computed(()=>new p_({key:"disabled",dates:h.value,order:100},s.value,r.value)),m={color:e,isDark:n,displayMode:i,theme:s,locale:r,masks:o,minDate:c,maxDate:d,disabledDates:h,disabledAttribute:f};return a.provide(w_,m),m}function dH(t){return a.inject(w_,()=>x_(t),!0)}function C_(t){return`__vc_slot_${t}__`}function S_(t,e={}){Object.keys(t).forEach(n=>{a.provide(C_(e[n]??n),t[n])})}function M_(t){return a.inject(C_(t),null)}const uH={...k_,view:{type:String,default:"monthly",validator(t){return["daily","weekly","monthly"].includes(t)}},rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:{type:String,default:()=>tr("titlePosition")},navVisibility:{type:String,default:()=>tr("navVisibility")},showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String],expanded:Boolean,borderless:Boolean,transparent:Boolean,initialPage:Object,initialPagePosition:{type:Number,default:1},minPage:Object,maxPage:Object,transition:String,attributes:Array,trimWeeks:Boolean,disablePageSwipe:Boolean},hH=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],O_=Symbol("__vc_calendar_context__");function fH(t,{slots:e,emit:n}){const i=a.ref(null),s=a.ref(null),r=a.ref(new Date().getDate()),o=a.ref(!1),c=a.ref(Symbol()),d=a.ref(Symbol()),h=a.ref(t.view),f=a.ref([]),m=a.ref("");let g=null,v=null;S_(e);const{theme:b,color:x,displayMode:k,locale:O,masks:T,minDate:N,maxDate:C,disabledAttribute:B,disabledDates:$}=dH(t),L=a.computed(()=>t.rows*t.columns),F=a.computed(()=>t.step||L.value),q=a.computed(()=>D5(f.value)??null),ee=a.computed(()=>qa(f.value)??null),ne=a.computed(()=>t.minPage||(N.value?ae(N.value):null)),K=a.computed(()=>t.maxPage||(C.value?ae(C.value):null)),ie=a.computed(()=>t.navVisibility),pe=a.computed(()=>!!t.showWeeknumbers),J=a.computed(()=>!!t.showIsoWeeknumbers),ue=a.computed(()=>h.value==="monthly"),he=a.computed(()=>h.value==="weekly"),_e=a.computed(()=>h.value==="daily"),be=()=>{o.value=!0,n("transition-start")},R=()=>{o.value=!1,n("transition-end"),g&&(g.resolve(!0),g=null)},fe=(W,E,Y=h.value)=>U5(W,E,Y,O.value),ae=W=>j5(W,h.value,O.value),Ee=W=>{!B.value||!ut.value||(W.isDisabled=ut.value.cellExists(B.value.key,W.dayIndex))},Me=W=>{W.isFocusable=W.inMonth&&W.day===r.value},me=(W,E)=>{for(const Y of W)for(const se of Y.days)if(E(se)===!1)return},Ne=a.computed(()=>f.value.reduce((W,E)=>(W.push(...E.viewDays),W),[])),ot=a.computed(()=>{const W=[];return(t.attributes||[]).forEach((E,Y)=>{!E||!E.dates||W.push(new p_({...E,order:E.order||0},b.value,O.value))}),B.value&&W.push(B.value),W}),Le=a.computed(()=>ys(ot.value)),ut=a.computed(()=>{const W=new hR;return ot.value.forEach(E=>{E.ranges.forEach(Y=>{W.render(E,Y,Ne.value)})}),W}),Bt=a.computed(()=>Ne.value.reduce((W,E)=>(W[E.dayIndex]={day:E,cells:[]},W[E.dayIndex].cells.push(...ut.value.getCells(E)),W),{})),wt=(W,E)=>{const Y=t.showWeeknumbers||t.showIsoWeeknumbers;return Y==null?"":Nz(Y)?Y?"left":"":Y.startsWith("right")?E>1?"right":Y:W>1?"left":Y},et=()=>{var W,E;if(!Le.value)return null;const Y=ot.value.find(Ye=>Ye.pinPage)||ot.value[0];if(!Y||!Y.hasRanges)return null;const[se]=Y.ranges,ke=((W=se.start)==null?void 0:W.date)||((E=se.end)==null?void 0:E.date);return ke?ae(ke):null},it=()=>{if(ns(q.value))return q.value;const W=et();return ns(W)?W:ae(new Date)},st=(W,E={})=>{const{view:Y=h.value,position:se=1,force:ke}=E,Ye=se>0?1-se:-(L.value+se);let rt=fe(W,Ye,Y),xt=fe(rt,L.value-1,Y);return ke||(wh(rt,ne.value)?rt=ne.value:Jd(xt,K.value)&&(rt=fe(K.value,1-L.value)),xt=fe(rt,L.value-1)),{fromPage:rt,toPage:xt}},Yt=(W,E,Y="")=>{if(Y==="none"||Y==="fade")return Y;if((W==null?void 0:W.view)!==(E==null?void 0:E.view))return"fade";const se=Jd(E,W),ke=wh(E,W);return!se&&!ke?"fade":Y==="slide-v"?ke?"slide-down":"slide-up":ke?"slide-right":"slide-left"},ht=(W={})=>new Promise((E,Y)=>{const{position:se=1,force:ke=!1,transition:Ye}=W,rt=ns(W.page)?W.page:it(),{fromPage:xt}=st(rt,{position:se,force:ke}),sn=[];for(let Gt=0;Gt<L.value;Gt++){const jn=fe(xt,Gt),ft=Gt+1,An=Math.ceil(ft/t.columns),Cn=t.rows-An+1,ti=ft%t.columns||t.columns,Fi=t.columns-ti+1,ks=wt(ti,Fi);sn.push(O.value.getPage({...jn,view:h.value,titlePosition:t.titlePosition,trimWeeks:t.trimWeeks,position:ft,row:An,rowFromEnd:Cn,column:ti,columnFromEnd:Fi,showWeeknumbers:pe.value,showIsoWeeknumbers:J.value,weeknumberPosition:ks}))}m.value=Yt(f.value[0],sn[0],Ye),f.value=sn,m.value&&m.value!=="none"?g={resolve:E,reject:Y}:E(!0)}),kt=W=>{const E=q.value??ae(new Date);return fe(E,W)},tn=(W,E={})=>{const Y=ns(W)?W:ae(W);return Object.assign(E,st(Y,{...E,force:!0})),cR(E.fromPage,E.toPage,h.value,O.value).map(ke=>oR(ke,ne.value,K.value)).some(ke=>ke)},nn=(W,E={})=>tn(kt(W),E),yt=a.computed(()=>nn(-F.value)),tt=a.computed(()=>nn(F.value)),Nt=async(W,E={})=>!E.force&&!tn(W,E)?!1:(E.fromPage&&!lR(E.fromPage,q.value)&&(zl({id:c.value,hideDelay:0}),E.view&&(JR("view",10),h.value=E.view),await ht({...E,page:E.fromPage,position:1,force:!0}),n("did-move",f.value)),!0),Mt=(W,E={})=>Nt(kt(W),E),At=()=>Mt(-F.value),Ot=()=>Mt(F.value),un=W=>{const E=ue.value?".in-month":"",Y=`.id-${O.value.getDayId(W)}${E}`,se=`${Y}.vc-focusable, ${Y} .vc-focusable`,ke=i.value;if(ke){const Ye=ke.querySelector(se);if(Ye)return Ye.focus(),!0}return!1},Vt=async(W,E={})=>un(W)?!0:(await Nt(W,E),un(W)),te=(W,E)=>{r.value=W.day,n("dayclick",W,E)},Ae=(W,E)=>{n("daymouseenter",W,E)},We=(W,E)=>{n("daymouseleave",W,E)},pn=(W,E)=>{r.value=W.day,s.value=W,W.isFocused=!0,n("dayfocusin",W,E)},Bn=(W,E)=>{s.value=null,W.isFocused=!1,n("dayfocusout",W,E)},Yn=(W,E)=>{n("daykeydown",W,E);const Y=W.noonDate;let se=null;switch(E.key){case"ArrowLeft":{se=In(Y,-1);break}case"ArrowRight":{se=In(Y,1);break}case"ArrowUp":{se=In(Y,-7);break}case"ArrowDown":{se=In(Y,7);break}case"Home":{se=In(Y,-W.weekdayPosition+1);break}case"End":{se=In(Y,W.weekdayPositionFromEnd);break}case"PageUp":{E.altKey?se=Y5(Y,-1):se=Xd(Y,-1);break}case"PageDown":{E.altKey?se=Y5(Y,1):se=Xd(Y,1);break}}se&&(E.preventDefault(),Vt(se).catch())},j=W=>{const E=s.value;E!=null&&Yn(E,W)},le=(W,E)=>{n("weeknumberclick",W,E)};ht({page:t.initialPage,position:t.initialPagePosition}),a.onMounted(()=>{!t.disablePageSwipe&&i.value&&(v=XR(i.value,({toLeft:W=!1,toRight:E=!1})=>{W?Ot():E&&At()},tr("touch")))}),a.onUnmounted(()=>{f.value=[],v&&v()}),a.watch(()=>O.value,()=>{ht()}),a.watch(()=>L.value,()=>ht()),a.watch(()=>t.view,()=>h.value=t.view),a.watch(()=>h.value,()=>{QR("view",()=>{ht()}),n("update:view",h.value)}),a.watch(()=>r.value,()=>{me(f.value,W=>Me(W))}),a.watchEffect(()=>{n("update:pages",f.value),me(f.value,W=>{Ee(W),Me(W)})});const ve={emit:n,containerRef:i,focusedDay:s,inTransition:o,navPopoverId:c,dayPopoverId:d,view:h,pages:f,transitionName:m,theme:b,color:x,displayMode:k,locale:O,masks:T,attributes:ot,disabledAttribute:B,disabledDates:$,attributeContext:ut,days:Ne,dayCells:Bt,count:L,step:F,firstPage:q,lastPage:ee,canMovePrev:yt,canMoveNext:tt,minPage:ne,maxPage:K,isMonthly:ue,isWeekly:he,isDaily:_e,navVisibility:ie,showWeeknumbers:pe,showIsoWeeknumbers:J,getDateAddress:ae,canMove:tn,canMoveBy:nn,move:Nt,moveBy:Mt,movePrev:At,moveNext:Ot,onTransitionBeforeEnter:be,onTransitionAfterEnter:R,tryFocusDate:un,focusDate:Vt,onKeydown:j,onDayKeydown:Yn,onDayClick:te,onDayMouseenter:Ae,onDayMouseleave:We,onDayFocusin:pn,onDayFocusout:Bn,onWeeknumberClick:le};return a.provide(O_,ve),ve}function Yr(){const t=a.inject(O_);if(t)return t;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const pH=a.defineComponent({inheritAttrs:!1,emits:["before-show","after-show","before-hide","after-hide"],props:{id:{type:[Number,String,Symbol],required:!0},showDelay:{type:Number,default:0},hideDelay:{type:Number,default:110},boundarySelector:{type:String}},setup(t,{emit:e}){let n;const i=a.ref();let s=null,r=null;const o=a.reactive({isVisible:!1,target:null,data:null,transition:"slide-fade",placement:"bottom",direction:"",positionFixed:!1,modifiers:[],isInteractive:!0,visibility:"click",isHovered:!1,isFocused:!1,autoHide:!1,force:!1});function c(R){R&&(o.direction=R.split("-")[0])}function d({placement:R,options:fe}){c(R||(fe==null?void 0:fe.placement))}const h=a.computed(()=>({placement:o.placement,strategy:o.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:d},...o.modifiers||[]],onFirstUpdate:d})),f=a.computed(()=>{const R=o.direction==="left"||o.direction==="right";let fe="";if(o.placement){const ae=o.placement.split("-");ae.length>1&&(fe=ae[1])}return["start","top","left"].includes(fe)?R?"top":"left":["end","bottom","right"].includes(fe)?R?"bottom":"right":R?"middle":"center"});function m(){r&&(r.destroy(),r=null)}function g(){a.nextTick(()=>{const R=Yd(o.target);!R||!i.value||(r&&r.state.elements.reference!==R&&m(),r?r.update():r=Oc(R,i.value,h.value))})}function v(R){Object.assign(o,I5(R,"force"))}function b(R,fe){clearTimeout(n),R>0?n=setTimeout(fe,R):fe()}function x(R){return!R||!r?!1:Yd(R)===r.state.elements.reference}async function k(R={}){o.force||(R.force&&(o.force=!0),b(R.showDelay??t.showDelay,()=>{o.isVisible&&(o.force=!1),v({...R,isVisible:!0}),g()}))}function O(R={}){!r||R.target&&!x(R.target)||o.force||(R.force&&(o.force=!0),b(R.hideDelay??t.hideDelay,()=>{o.isVisible||(o.force=!1),o.isVisible=!1}))}function T(R={}){R.target!=null&&(o.isVisible&&x(R.target)?O(R):k(R))}function N(R){if(!r)return;const fe=r.state.elements.reference;if(!i.value||!fe)return;const ae=R.target;jd(i.value,ae)||jd(fe,ae)||O({force:!0})}function C(R){(R.key==="Esc"||R.key==="Escape")&&O()}function B({detail:R}){!R.id||R.id!==t.id||k(R)}function $({detail:R}){!R.id||R.id!==t.id||O(R)}function L({detail:R}){!R.id||R.id!==t.id||T(R)}function F(){er(document,"keydown",C),er(document,"click",N),er(document,"show-popover",B),er(document,"hide-popover",$),er(document,"toggle-popover",L)}function q(){Qs(document,"keydown",C),Qs(document,"click",N),Qs(document,"show-popover",B),Qs(document,"hide-popover",$),Qs(document,"toggle-popover",L)}function ee(R){e("before-show",R)}function ne(R){o.force=!1,e("after-show",R)}function K(R){e("before-hide",R)}function ie(R){o.force=!1,m(),e("after-hide",R)}function pe(R){R.stopPropagation()}function J(){o.isHovered=!0,o.isInteractive&&["hover","hover-focus"].includes(o.visibility)&&k()}function ue(){if(o.isHovered=!1,!r)return;const R=r.state.elements.reference;o.autoHide&&!o.isFocused&&(!R||R!==document.activeElement)&&["hover","hover-focus"].includes(o.visibility)&&O()}function he(){o.isFocused=!0,o.isInteractive&&["focus","hover-focus"].includes(o.visibility)&&k()}function _e(R){["focus","hover-focus"].includes(o.visibility)&&(!R.relatedTarget||!jd(i.value,R.relatedTarget))&&(o.isFocused=!1,!o.isHovered&&o.autoHide&&O())}function be(){s!=null&&(s.disconnect(),s=null)}return a.watch(()=>i.value,R=>{be(),R&&(s=new ResizeObserver(()=>{r&&r.update()}),s.observe(R))}),a.watch(()=>o.placement,c,{immediate:!0}),a.onMounted(()=>{F()}),a.onUnmounted(()=>{m(),be(),q()}),{...a.toRefs(o),popoverRef:i,alignment:f,hide:O,setupPopper:g,beforeEnter:ee,afterEnter:ne,beforeLeave:K,afterLeave:ie,onClick:pe,onMouseOver:J,onMouseLeave:ue,onFocusIn:he,onFocusOut:_e}}}),ir=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n};function mH(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-popover-content-wrapper",{"is-interactive":t.isInteractive}]),ref:"popoverRef",onClick:e[0]||(e[0]=(...o)=>t.onClick&&t.onClick(...o)),onMouseover:e[1]||(e[1]=(...o)=>t.onMouseOver&&t.onMouseOver(...o)),onMouseleave:e[2]||(e[2]=(...o)=>t.onMouseLeave&&t.onMouseLeave(...o)),onFocusin:e[3]||(e[3]=(...o)=>t.onFocusIn&&t.onFocusIn(...o)),onFocusout:e[4]||(e[4]=(...o)=>t.onFocusOut&&t.onFocusOut(...o))},[a.createVNode(a.Transition,{name:`vc-${t.transition}`,appear:"",onBeforeEnter:t.beforeEnter,onAfterEnter:t.afterEnter,onBeforeLeave:t.beforeLeave,onAfterLeave:t.afterLeave},{default:a.withCtx(()=>[t.isVisible?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,tabindex:"-1",class:`vc-popover-content direction-${t.direction}`},t.$attrs),[a.renderSlot(t.$slots,"default",{direction:t.direction,alignment:t.alignment,data:t.data,hide:t.hide},()=>[a.createTextVNode(a.toDisplayString(t.data),1)]),a.createElementVNode("span",{class:a.normalizeClass(["vc-popover-caret",`direction-${t.direction}`,`align-${t.alignment}`])},null,2)],16)):a.createCommentVNode("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}const Th=ir(pH,[["render",mH]]),gH={class:"vc-day-popover-row"},_H={key:0,class:"vc-day-popover-row-indicator"},vH={class:"vc-day-popover-row-label"},yH=a.defineComponent({__name:"PopoverRow",props:{attribute:null},setup(t){const e=t,n=a.computed(()=>{const{content:i,highlight:s,dot:r,bar:o,popover:c}=e.attribute;return c&&c.hideIndicator?null:i?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${i.base.color}`}:s?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${s.base.color}`}:r?{class:`vc-dot vc-attr vc-${r.base.color}`}:o?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${o.base.color}`}:null});return(i,s)=>(a.openBlock(),a.createElementBlock("div",gH,[a.unref(n)?(a.openBlock(),a.createElementBlock("div",_H,[a.createElementVNode("span",{class:a.normalizeClass(a.unref(n).class)},null,2)])):a.createCommentVNode("",!0),a.createElementVNode("div",vH,[a.renderSlot(i.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(t.attribute.popover?t.attribute.popover.label:"No content provided"),1)])])]))}}),bH={inheritAttrs:!1},vi=a.defineComponent({...bH,__name:"CalendarSlot",props:{name:null},setup(t){const n=M_(t.name);return(i,s)=>a.unref(n)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),a.normalizeProps(a.mergeProps({key:0},i.$attrs)),null,16)):a.renderSlot(i.$slots,"default",{key:1})}}),wH={class:"vc-day-popover-container"},kH={key:0,class:"vc-day-popover-header"},xH=a.defineComponent({__name:"CalendarDayPopover",setup(t){const{dayPopoverId:e,displayMode:n,color:i,masks:s,locale:r}=Yr();function o(d,h){return r.value.formatDate(d,h)}function c(d){return r.value.formatDate(d.date,s.value.dayPopover)}return(d,h)=>(a.openBlock(),a.createBlock(Th,{id:a.unref(e),class:a.normalizeClass([`vc-${a.unref(i)}`,`vc-${a.unref(n)}`])},{default:a.withCtx(({data:{day:f,attributes:m},hide:g})=>[a.createVNode(vi,{name:"day-popover",day:f,"day-title":c(f),attributes:m,format:o,masks:a.unref(s),hide:g},{default:a.withCtx(()=>[a.createElementVNode("div",wH,[a.unref(s).dayPopover?(a.openBlock(),a.createElementBlock("div",kH,a.toDisplayString(c(f)),1)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m,v=>(a.openBlock(),a.createBlock(yH,{key:v.key,attribute:v},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),CH={},SH={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},MH=[a.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1)];function OH(t,e){return a.openBlock(),a.createElementBlock("svg",SH,MH)}const DH=ir(CH,[["render",OH]]),EH={},TH={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},IH=[a.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1)];function BH(t,e){return a.openBlock(),a.createElementBlock("svg",TH,IH)}const AH=ir(EH,[["render",BH]]),VH={},$H={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},NH=[a.createElementVNode("polyline",{points:"6 9 12 15 18 9"},null,-1)];function zH(t,e){return a.openBlock(),a.createElementBlock("svg",$H,NH)}const PH=ir(VH,[["render",zH]]),LH={},FH={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},RH=[a.createElementVNode("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)];function HH(t,e){return a.openBlock(),a.createElementBlock("svg",FH,RH)}const WH=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:PH,IconChevronLeft:AH,IconChevronRight:DH,IconClock:ir(LH,[["render",HH]])},Symbol.toStringTag,{value:"Module"})),Qa=a.defineComponent({__name:"BaseIcon",props:{name:{type:String,required:!0},width:{type:String},height:{type:String},size:{type:String,default:"26"},viewBox:{type:String}},setup(t){const e=t,n=a.computed(()=>e.width||e.size),i=a.computed(()=>e.height||e.size),s=a.computed(()=>WH[`Icon${e.name}`]);return(r,o)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(s)),{width:a.unref(n),height:a.unref(i),class:"vc-base-icon"},null,8,["width","height"]))}}),YH=["disabled"],jH={key:1,class:"vc-title-wrapper"},UH={type:"button",class:"vc-title"},qH=["disabled"],D_=a.defineComponent({__name:"CalendarHeader",props:{page:null,layout:null,isLg:{type:Boolean},isXl:{type:Boolean},is2xl:{type:Boolean},hideTitle:{type:Boolean},hideArrows:{type:Boolean}},setup(t){const e=t,{navPopoverId:n,navVisibility:i,canMovePrev:s,movePrev:r,canMoveNext:o,moveNext:c}=Yr(),d=a.computed(()=>{switch(e.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),h=a.computed(()=>{const{page:x}=e;return{id:n.value,visibility:i.value,placement:d.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:x},isInteractive:!0}}),f=a.computed(()=>e.page.titlePosition.includes("left")),m=a.computed(()=>e.page.titlePosition.includes("right")),g=a.computed(()=>e.layout?e.layout:f.value?"tu-pn":m.value?"pn-tu":"p-tu-n;"),v=a.computed(()=>({prev:g.value.includes("p")&&!e.hideArrows,title:g.value.includes("t")&&!e.hideTitle,next:g.value.includes("n")&&!e.hideArrows})),b=a.computed(()=>({gridTemplateColumns:g.value.split("").map(k=>{switch(k){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}}).join(" ")}));return(x,k)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-header",{"is-lg":t.isLg,"is-xl":t.isXl,"is-2xl":t.is2xl}]),style:a.normalizeStyle(a.unref(b))},[a.unref(v).prev?(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!a.unref(s),onClick:k[0]||(k[0]=(...O)=>a.unref(r)&&a.unref(r)(...O)),onKeydown:k[1]||(k[1]=a.withKeys((...O)=>a.unref(r)&&a.unref(r)(...O),["space","enter"]))},[a.createVNode(vi,{name:"header-prev-button",disabled:!a.unref(s)},{default:a.withCtx(()=>[a.createVNode(Qa,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,YH)):a.createCommentVNode("",!0),a.unref(v).title?(a.openBlock(),a.createElementBlock("div",jH,[a.createVNode(vi,{name:"header-title-wrapper"},{default:a.withCtx(()=>[a.withDirectives((a.openBlock(),a.createElementBlock("button",UH,[a.createVNode(vi,{name:"header-title",title:t.page.title},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(t.page.title),1)]),_:1},8,["title"])])),[[a.unref(y_),a.unref(h)]])]),_:1})])):a.createCommentVNode("",!0),a.unref(v).next?(a.openBlock(),a.createElementBlock("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!a.unref(o),onClick:k[2]||(k[2]=(...O)=>a.unref(c)&&a.unref(c)(...O)),onKeydown:k[3]||(k[3]=a.withKeys((...O)=>a.unref(c)&&a.unref(c)(...O),["space","enter"]))},[a.createVNode(vi,{name:"header-next-button",disabled:!a.unref(o)},{default:a.withCtx(()=>[a.createVNode(Qa,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,qH)):a.createCommentVNode("",!0)],6))}}),E_=Symbol("__vc_page_context__");function GH(t){const{locale:e,getDateAddress:n,canMove:i}=Yr();function s(c,d){const{month:h,year:f}=n(new Date);return u_().map((m,g)=>{const v=g+1;return{month:v,year:c,id:aR(v,c),label:e.value.formatDate(m,d),ariaLabel:e.value.formatDate(m,"MMMM"),isActive:v===t.value.month&&c===t.value.year,isCurrent:v===h&&c===f,isDisabled:!i({month:v,year:c},{position:t.value.position})}})}function r(c,d){const{year:h}=n(new Date),{position:f}=t.value,m=[];for(let g=c;g<=d;g+=1){const v=[...Array(12).keys()].some(b=>i({month:b+1,year:g},{position:f}));m.push({year:g,id:g.toString(),label:g.toString(),ariaLabel:g.toString(),isActive:g===t.value.year,isCurrent:g===h,isDisabled:!v})}return m}const o={page:t,getMonthItems:s,getYearItems:r};return a.provide(E_,o),o}function T_(){const t=a.inject(E_);if(t)return t;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const KH={class:"vc-nav-header"},ZH=["disabled"],XH=["disabled"],JH={class:"vc-nav-items"},QH=["data-id","aria-label","disabled","onClick","onKeydown"],eW=a.defineComponent({__name:"CalendarNav",setup(t){const{masks:e,move:n}=Yr(),{page:i,getMonthItems:s,getYearItems:r}=T_(),o=a.ref(!0),c=12,d=a.ref(i.value.year),h=a.ref(g(i.value.year)),f=a.ref(null);function m(){setTimeout(()=>{if(f.value==null)return;const ae=f.value.querySelector(".vc-nav-item:not(:disabled)");ae&&ae.focus()},10)}function g(ae){return Math.floor(ae/c)}function v(){o.value=!o.value}function b(ae){return ae*c}function x(ae){return c*(ae+1)-1}function k(){!he.value||(o.value&&T(),C())}function O(){!_e.value||(o.value&&N(),B())}function T(){d.value--}function N(){d.value++}function C(){h.value--}function B(){h.value++}const $=a.computed(()=>s(d.value,e.value.navMonths).map(ae=>({...ae,click:()=>n({month:ae.month,year:ae.year},{position:i.value.position})}))),L=a.computed(()=>s(d.value-1,e.value.navMonths)),F=a.computed(()=>L.value.some(ae=>!ae.isDisabled)),q=a.computed(()=>s(d.value+1,e.value.navMonths)),ee=a.computed(()=>q.value.some(ae=>!ae.isDisabled)),ne=a.computed(()=>r(b(h.value),x(h.value)).map(ae=>({...ae,click:()=>{d.value=ae.year,o.value=!0,m()}}))),K=a.computed(()=>r(b(h.value-1),x(h.value-1))),ie=a.computed(()=>K.value.some(ae=>!ae.isDisabled)),pe=a.computed(()=>r(b(h.value+1),x(h.value+1))),J=a.computed(()=>pe.value.some(ae=>!ae.isDisabled)),ue=a.computed(()=>o.value?$.value:ne.value),he=a.computed(()=>o.value?F.value:ie.value),_e=a.computed(()=>o.value?ee.value:J.value),be=a.computed(()=>D5(ne.value.map(ae=>ae.year))),R=a.computed(()=>qa(ne.value.map(ae=>ae.year))),fe=a.computed(()=>o.value?d.value:`${be.value} - ${R.value}`);return a.watchEffect(()=>{d.value=i.value.year,m()}),a.watch(()=>d.value,ae=>h.value=g(ae)),a.onMounted(()=>m()),(ae,Ee)=>(a.openBlock(),a.createElementBlock("div",{class:"vc-nav-container",ref_key:"navContainer",ref:f},[a.createElementVNode("div",KH,[a.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!a.unref(he),onClick:k,onKeydown:Ee[0]||(Ee[0]=Me=>a.unref(Ud)(Me,k))},[a.createVNode(vi,{name:"nav-prev-button",move:k,disabled:!a.unref(he)},{default:a.withCtx(()=>[a.createVNode(Qa,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,ZH),a.createElementVNode("button",{type:"button",class:"vc-nav-title vc-focus",onClick:v,onKeydown:Ee[1]||(Ee[1]=Me=>a.unref(Ud)(Me,v))},a.toDisplayString(a.unref(fe)),33),a.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!a.unref(_e),onClick:O,onKeydown:Ee[2]||(Ee[2]=Me=>a.unref(Ud)(Me,O))},[a.createVNode(vi,{name:"nav-next-button",move:O,disabled:!a.unref(_e)},{default:a.withCtx(()=>[a.createVNode(Qa,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,XH)]),a.createElementVNode("div",JH,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(ue),Me=>(a.openBlock(),a.createElementBlock("button",{key:Me.label,type:"button","data-id":Me.id,"aria-label":Me.ariaLabel,class:a.normalizeClass(["vc-nav-item vc-focus",[Me.isActive?"is-active":Me.isCurrent?"is-current":""]]),disabled:Me.isDisabled,onClick:Me.click,onKeydown:me=>a.unref(Ud)(me,Me.click)},a.toDisplayString(Me.label),43,QH))),128))])],512))}}),I_=a.defineComponent({__name:"CalendarPageProvider",props:{page:null},setup(t){const e=t;return GH(a.toRef(e,"page")),(n,i)=>a.renderSlot(n.$slots,"default")}}),tW=a.defineComponent({__name:"CalendarNavPopover",setup(t){const{navPopoverId:e,color:n,displayMode:i}=Yr();return(s,r)=>(a.openBlock(),a.createBlock(Th,{id:a.unref(e),class:a.normalizeClass(["vc-nav-popover-container",`vc-${a.unref(n)}`,`vc-${a.unref(i)}`])},{default:a.withCtx(({data:o})=>[a.createVNode(I_,{page:o.page},{default:a.withCtx(()=>[a.createVNode(vi,{name:"nav"},{default:a.withCtx(()=>[a.createVNode(eW)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),nW=a.defineComponent({directives:{popover:y_},components:{CalendarSlot:vi},props:{day:{type:Object,required:!0}},setup(t){const{locale:e,theme:n,attributeContext:i,dayPopoverId:s,onDayClick:r,onDayMouseenter:o,onDayMouseleave:c,onDayFocusin:d,onDayFocusout:h,onDayKeydown:f}=Yr(),m=a.computed(()=>t.day),g=a.computed(()=>i.value.getCells(m.value)),v=a.computed(()=>g.value.map(J=>J.data)),b=a.computed(()=>({...m.value,attributes:v.value,attributeCells:g.value}));function x({data:J},{popovers:ue}){const{key:he,customData:_e,popover:be}=J;if(!be)return;const R=f5({key:he,customData:_e,attribute:J},{...be},{visibility:be.label?"hover":"click",placement:"bottom",isInteractive:!be.label});ue.splice(0,0,R)}const k=a.computed(()=>{const J={...n.value.prepareRender({}),popovers:[]};return g.value.forEach(ue=>{n.value.render(ue,J),x(ue,J)}),J}),O=a.computed(()=>k.value.highlights),T=a.computed(()=>!!ys(O.value)),N=a.computed(()=>k.value.content),C=a.computed(()=>k.value.dots),B=a.computed(()=>!!ys(C.value)),$=a.computed(()=>k.value.bars),L=a.computed(()=>!!ys($.value)),F=a.computed(()=>k.value.popovers),q=a.computed(()=>F.value.map(J=>J.attribute)),ee=M_("day-content"),ne=a.computed(()=>["vc-day",...m.value.classes,{"vc-day-box-center-center":!ee},{"is-not-in-month":!t.day.inMonth}]),K=a.computed(()=>{let J;m.value.isFocusable?J="0":J="-1";const ue=["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":m.value.isDisabled},Hr(qa(O.value),"contentClass"),Hr(qa(N.value),"class")||""],he={...Hr(qa(O.value),"contentStyle"),...Hr(qa(N.value),"style")};return{class:ue,style:he,tabindex:J,"aria-label":m.value.ariaLabel,"aria-disabled":!!m.value.isDisabled,role:"button"}}),ie=a.computed(()=>({click(J){r(b.value,J)},mouseenter(J){o(b.value,J)},mouseleave(J){c(b.value,J)},focusin(J){d(b.value,J)},focusout(J){h(b.value,J)},keydown(J){f(b.value,J)}})),pe=a.computed(()=>ys(F.value)?f5({id:s.value,data:{day:m,attributes:q.value}},...F.value):null);return{attributes:v,attributeCells:g,bars:$,dayClasses:ne,dayContentProps:K,dayContentEvents:ie,dayPopover:pe,glyphs:k,dots:C,hasDots:B,hasBars:L,highlights:O,hasHighlights:T,locale:e,popovers:F}}}),iW={key:0,class:"vc-highlights vc-day-layer"},sW={key:1,class:"vc-day-layer vc-day-box-center-bottom"},rW={class:"vc-dots"},aW={key:2,class:"vc-day-layer vc-day-box-center-bottom"},oW={class:"vc-bars"};function lW(t,e,n,i,s,r){const o=a.resolveComponent("CalendarSlot"),c=a.resolveDirective("popover");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(t.dayClasses)},[t.hasHighlights?(a.openBlock(),a.createElementBlock("div",iW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.highlights,({key:d,wrapperClass:h,class:f,style:m})=>(a.openBlock(),a.createElementBlock("div",{key:d,class:a.normalizeClass(h)},[a.createElementVNode("div",{class:a.normalizeClass(f),style:a.normalizeStyle(m)},null,6)],2))),128))])):a.createCommentVNode("",!0),a.createVNode(o,{name:"day-content",day:t.day,attributes:t.attributes,"attribute-cells":t.attributeCells,dayProps:t.dayContentProps,dayEvents:t.dayContentEvents,locale:t.locale},{default:a.withCtx(()=>[a.withDirectives((a.openBlock(),a.createElementBlock("div",a.mergeProps(t.dayContentProps,a.toHandlers(t.dayContentEvents,!0)),[a.createTextVNode(a.toDisplayString(t.day.label),1)],16)),[[c,t.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),t.hasDots?(a.openBlock(),a.createElementBlock("div",sW,[a.createElementVNode("div",rW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.dots,({key:d,class:h,style:f})=>(a.openBlock(),a.createElementBlock("span",{key:d,class:a.normalizeClass(h),style:a.normalizeStyle(f)},null,6))),128))])])):a.createCommentVNode("",!0),t.hasBars?(a.openBlock(),a.createElementBlock("div",aW,[a.createElementVNode("div",oW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.bars,({key:d,class:h,style:f})=>(a.openBlock(),a.createElementBlock("span",{key:d,class:a.normalizeClass(h),style:a.normalizeStyle(f)},null,6))),128))])])):a.createCommentVNode("",!0)],2)}const cW=ir(nW,[["render",lW]]),dW={class:"vc-weekdays"},uW=["onClick"],hW={inheritAttrs:!1},fW=a.defineComponent({...hW,__name:"CalendarPage",setup(t){const{page:e}=T_(),{onWeeknumberClick:n}=Yr();return(i,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-pane",`row-${a.unref(e).row}`,`row-from-end-${a.unref(e).rowFromEnd}`,`column-${a.unref(e).column}`,`column-from-end-${a.unref(e).columnFromEnd}`]),ref:"pane"},[a.createVNode(D_,{page:a.unref(e),"is-lg":"","hide-arrows":""},null,8,["page"]),a.createElementVNode("div",{class:a.normalizeClass(["vc-weeks",{[`vc-show-weeknumbers-${a.unref(e).weeknumberPosition}`]:a.unref(e).weeknumberPosition}])},[a.createElementVNode("div",dW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(e).weekdays,({weekday:r,label:o},c)=>(a.openBlock(),a.createElementBlock("div",{key:c,class:a.normalizeClass(`vc-weekday vc-weekday-${r}`)},a.toDisplayString(o),3))),128))]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(e).viewWeeks,r=>(a.openBlock(),a.createElementBlock("div",{key:`weeknumber-${r.weeknumber}`,class:"vc-week"},[a.unref(e).weeknumberPosition?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["vc-weeknumber",`is-${a.unref(e).weeknumberPosition}`])},[a.createElementVNode("span",{class:a.normalizeClass(["vc-weeknumber-content"]),onClick:o=>a.unref(n)(r,o)},a.toDisplayString(r.weeknumberDisplay),9,uW)],2)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.days,o=>(a.openBlock(),a.createBlock(cW,{key:o.id,day:o},null,8,["day"]))),128))]))),128))],2)],2))}}),pW=a.defineComponent({components:{CalendarHeader:D_,CalendarPage:fW,CalendarNavPopover:tW,CalendarDayPopover:xH,CalendarPageProvider:I_,CalendarSlot:vi},props:uH,emit:hH,setup(t,{emit:e,slots:n}){return fH(t,{emit:e,slots:n})}}),mW={class:"vc-pane-header-wrapper"};function gW(t,e,n,i,s,r){const o=a.resolveComponent("CalendarHeader"),c=a.resolveComponent("CalendarPage"),d=a.resolveComponent("CalendarSlot"),h=a.resolveComponent("CalendarPageProvider"),f=a.resolveComponent("CalendarDayPopover"),m=a.resolveComponent("CalendarNavPopover");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",a.mergeProps({"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year"},t.$attrs,{class:["vc-container",`vc-${t.view}`,`vc-${t.color}`,`vc-${t.displayMode}`,{"vc-expanded":t.expanded,"vc-bordered":!t.borderless,"vc-transparent":t.transparent}],onMouseup:e[0]||(e[0]=a.withModifiers(()=>{},["prevent"])),ref:"containerRef"}),[a.createElementVNode("div",{class:a.normalizeClass(["vc-pane-container",{"in-transition":t.inTransition}])},[a.createElementVNode("div",mW,[t.firstPage?(a.openBlock(),a.createBlock(o,{key:0,page:t.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):a.createCommentVNode("",!0)]),a.createVNode(a.Transition,{name:`vc-${t.transitionName}`,onBeforeEnter:t.onTransitionBeforeEnter,onAfterEnter:t.onTransitionAfterEnter},{default:a.withCtx(()=>[(a.openBlock(),a.createElementBlock("div",{key:t.pages[0].id,class:"vc-pane-layout",style:a.normalizeStyle({gridTemplateColumns:`repeat(${t.columns}, 1fr)`})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.pages,g=>(a.openBlock(),a.createBlock(h,{key:g.id,page:g},{default:a.withCtx(()=>[a.createVNode(d,{name:"page",page:g},{default:a.withCtx(()=>[a.createVNode(c)]),_:2},1032,["page"])]),_:2},1032,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),a.createVNode(d,{name:"footer"})],2)],16),a.createVNode(f),a.createVNode(m)],64)}const _W=ir(pW,[["render",gW]]),B_=Symbol("__vc_date_picker_context__"),vW={...k_,mode:{type:String,default:"date"},modelValue:{type:[Number,String,Date,Object]},modelModifiers:{type:Object,default:()=>({})},rules:[String,Object],is24hr:Boolean,hideTimeHeader:Boolean,timeAccuracy:{type:Number,default:2},isRequired:Boolean,isRange:Boolean,updateOnInput:{type:Boolean,default:()=>tr("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>tr("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]},yW=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function bW(t,{emit:e,slots:n}){S_(n,{footer:"dp-footer"});const i=x_(t),{locale:s,masks:r,disabledAttribute:o}=i,c=a.ref(!1),d=a.ref(Symbol()),h=a.ref(null),f=a.ref(null),m=a.ref(["",""]),g=a.ref(null),v=a.ref(null);let b,x,k=!0;const O=a.computed(()=>t.isRange||t.modelModifiers.range===!0),T=a.computed(()=>O.value&&h.value!=null?h.value.start:null),N=a.computed(()=>O.value&&h.value!=null?h.value.end:null),C=a.computed(()=>t.mode.toLowerCase()==="date"),B=a.computed(()=>t.mode.toLowerCase()==="datetime"),$=a.computed(()=>t.mode.toLowerCase()==="time"),L=a.computed(()=>!!f.value),F=a.computed(()=>{let E="date";t.modelModifiers.number&&(E="number"),t.modelModifiers.string&&(E="string");const Y=r.value.modelValue||"iso";return Ee({type:E,mask:Y})}),q=a.computed(()=>nn(f.value??h.value)),ee=a.computed(()=>$.value?t.is24hr?r.value.inputTime24hr:r.value.inputTime:B.value?t.is24hr?r.value.inputDateTime24hr:r.value.inputDateTime:r.value.input),ne=a.computed(()=>/[Hh]/g.test(ee.value)),K=a.computed(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(ee.value)),ie=a.computed(()=>{if(ne.value&&K.value)return"dateTime";if(K.value)return"date";if(ne.value)return"time"}),pe=a.computed(()=>{var E;const Y=((E=g.value)==null?void 0:E.$el.previousElementSibling)??void 0;return Al({},t.popover,tr("datePicker.popover"),{target:Y})}),J=a.computed(()=>g_({...pe.value,id:d.value})),ue=a.computed(()=>O.value?{start:m.value[0],end:m.value[1]}:m.value[0]),he=a.computed(()=>{const E=["start","end"].map(Y=>({input:ht(Y),change:kt(Y),keyup:tn,...t.popover&&J.value}));return O.value?{start:E[0],end:E[1]}:E[0]}),_e=a.computed(()=>{if(!ot(h.value))return null;const E={key:"select-drag",...t.selectAttribute,dates:h.value,pinPage:!0},{dot:Y,bar:se,highlight:ke,content:Ye}=E;return!Y&&!se&&!ke&&!Ye&&(E.highlight=!0),E}),be=a.computed(()=>{if(!O.value||!ot(f.value))return null;const E={key:"select-drag",...t.dragAttribute,dates:f.value},{dot:Y,bar:se,highlight:ke,content:Ye}=E;return!Y&&!se&&!ke&&!Ye&&(E.highlight={startEnd:{fillMode:"outline"}}),E}),R=a.computed(()=>{const E=_i(t.attributes)?[...t.attributes]:[];return be.value?E.unshift(be.value):_e.value&&E.unshift(_e.value),E}),fe=a.computed(()=>Ee(t.rules==="auto"?ae():t.rules??{}));function ae(){const E={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},Y=C.value?0:t.timeAccuracy;return[0,1].map(se=>{switch(Y){case 0:return{hours:E.hr[se],minutes:E.min[se],seconds:E.sec[se],milliseconds:E.ms[se]};case 1:return{minutes:E.min[se],seconds:E.sec[se],milliseconds:E.ms[se]};case 3:return{milliseconds:E.ms[se]};case 4:return{};default:return{seconds:E.sec[se],milliseconds:E.ms[se]}}})}function Ee(E){return _i(E)?E.length===1?[E[0],E[0]]:E:[E,E]}function Me(E){return Ee(E).map((Y,se)=>({...Y,rules:fe.value[se]}))}function me(E){return E==null?!1:Li(E)?!isNaN(E):Ga(E)?!isNaN(E.getTime()):ts(E)?E!=="":Ch(E)}function Ne(E){return vs(E)&&"start"in E&&"end"in E&&me(E.start??null)&&me(E.end??null)}function ot(E){return Ne(E)||me(E)}function Le(E,Y){if(E==null&&Y==null)return!0;if(E==null||Y==null)return!1;const se=Ga(E),ke=Ga(Y);return se&&ke?E.getTime()===Y.getTime():se||ke?!1:Le(E.start,Y.start)&&Le(E.end,Y.end)}function ut(E){return!ot(E)||!o.value?!1:o.value.intersectsRange(s.value.range(E))}function Bt(E,Y,se,ke){if(!ot(E))return null;if(Ne(E)){const Ye=s.value.toDate(E.start,{...Y[0],fillDate:T.value??void 0,patch:se}),rt=s.value.toDate(E.end,{...Y[1],fillDate:N.value??void 0,patch:se});return Bn({start:Ye,end:rt},ke)}return s.value.toDateOrNull(E,{...Y[0],fillDate:h.value,patch:se})}function wt(E,Y){return Ne(E)?{start:s.value.fromDate(E.start,Y[0]),end:s.value.fromDate(E.end,Y[1])}:O.value?null:s.value.fromDate(E,Y[0])}function et(E,Y={}){return clearTimeout(b),new Promise(se=>{const{debounce:ke=0,...Ye}=Y;ke>0?b=window.setTimeout(()=>{se(it(E,Ye))},ke):se(it(E,Ye))})}function it(E,{config:Y=F.value,patch:se="dateTime",clearIfEqual:ke=!1,formatInput:Ye=!0,hidePopover:rt=!1,dragging:xt=L.value,targetPriority:sn,moveToValue:Gt=!1}={}){const jn=Me(Y);let ft=Bt(E,jn,se,sn);if(ut(ft)){if(xt)return null;ft=h.value,rt=!1}else ft==null&&t.isRequired?ft=h.value:ft!=null&&Le(h.value,ft)&&ke&&(ft=null);const Cn=xt?f:h,ti=!Le(Cn.value,ft);Cn.value=ft,xt||(f.value=null);const Fi=wt(ft,F.value);return ti&&(k=!1,e(xt?"drag":"update:modelValue",Fi),a.nextTick(()=>k=!0)),rt&&!xt&&We(),Ye&&st(),Gt&&a.nextTick(()=>le(sn??"start")),Fi}function st(){a.nextTick(()=>{const E=Me({type:"string",mask:ee.value}),Y=wt(f.value??h.value,E);O.value?m.value=[Y&&Y.start,Y&&Y.end]:m.value=[Y,""]})}function Yt(E,Y,se){m.value.splice(Y==="start"?0:1,1,E);const ke=O.value?{start:m.value[0],end:m.value[1]||m.value[0]}:E,Ye={type:"string",mask:ee.value};et(ke,{...se,config:Ye,patch:ie.value,targetPriority:Y,moveToValue:!0})}function ht(E){return Y=>{!t.updateOnInput||Yt(Y.currentTarget.value,E,{formatInput:!1,hidePopover:!1,debounce:t.inputDebounce})}}function kt(E){return Y=>{Yt(Y.currentTarget.value,E,{formatInput:!0,hidePopover:!1})}}function tn(E){E.key==="Escape"&&et(h.value,{formatInput:!0,hidePopover:!0})}function nn(E){return O.value?[E&&E.start?s.value.getDateParts(E.start):null,E&&E.end?s.value.getDateParts(E.end):null]:[E?s.value.getDateParts(E):null]}function yt(){f.value=null,st()}function tt(E){e("popover-will-show",E)}function Nt(E){e("popover-did-show",E)}function Mt(E){yt(),e("popover-will-hide",E)}function At(E){e("popover-did-hide",E)}function Ot(E){const Y={patch:"date",formatInput:!0,hidePopover:!0};if(O.value){const se=!L.value;se?x={start:E.startDate,end:E.endDate}:x!=null&&(x.end=E.date),et(x,{...Y,dragging:se})}else et(E.date,{...Y,clearIfEqual:!t.isRequired})}function un(E,Y){Ot(E),e("dayclick",E,Y)}function Vt(E,Y){switch(Y.key){case" ":case"Enter":{Ot(E),Y.preventDefault();break}case"Escape":We()}e("daykeydown",E,Y)}function te(E,Y){!L.value||x==null||(x.end=E.date,et(Bn(x),{patch:"date",formatInput:!0}))}function Ae(E={}){Oh({...pe.value,...E,isInteractive:!0,id:d.value})}function We(E={}){zl({hideDelay:10,force:!0,...pe.value,...E,id:d.value})}function pn(E){m_({...pe.value,...E,isInteractive:!0,id:d.value})}function Bn(E,Y){const{start:se,end:ke}=E;if(se>ke)switch(Y){case"start":return{start:se,end:se};case"end":return{start:ke,end:ke};default:return{start:ke,end:se}}return{start:se,end:ke}}async function Yn(E,Y={}){return v.value==null?!1:v.value.move(E,Y)}async function j(E,Y={}){return v.value==null?!1:v.value.moveBy(E,Y)}async function le(E,Y={}){const se=h.value;if(v.value==null||!ot(se))return!1;const ke=E!=="end",Ye=ke?1:-1,rt=Ne(se)?ke?se.start:se.end:se,xt=j5(rt,"monthly",s.value);return v.value.move(xt,{position:Ye,...Y})}a.watch(()=>t.isRange,E=>{E&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),a.watch(()=>O.value,()=>{it(null,{formatInput:!0})}),a.watch(()=>ee.value,()=>st()),a.watch(()=>t.modelValue,E=>{!k||it(E,{formatInput:!0,hidePopover:!1})}),a.watch(()=>fe.value,()=>{vs(t.rules)&&it(t.modelValue,{formatInput:!0,hidePopover:!1})}),a.watch(()=>t.timezone,()=>{it(h.value,{formatInput:!0})});const ve=Ee(F.value);h.value=Bt(t.modelValue??null,ve,"dateTime"),a.onMounted(()=>{it(t.modelValue,{formatInput:!0,hidePopover:!1})}),a.nextTick(()=>c.value=!0);const W={...i,showCalendar:c,datePickerPopoverId:d,popoverRef:g,popoverEvents:J,calendarRef:v,isRange:O,isTimeMode:$,isDateTimeMode:B,is24hr:a.toRef(t,"is24hr"),hideTimeHeader:a.toRef(t,"hideTimeHeader"),timeAccuracy:a.toRef(t,"timeAccuracy"),isDragging:L,inputValue:ue,inputEvents:he,dateParts:q,attributes:R,rules:fe,move:Yn,moveBy:j,moveToValue:le,updateValue:et,showPopover:Ae,hidePopover:We,togglePopover:pn,onDayClick:un,onDayKeydown:Vt,onDayMouseEnter:te,onPopoverBeforeShow:tt,onPopoverAfterShow:Nt,onPopoverBeforeHide:Mt,onPopoverAfterHide:At};return a.provide(B_,W),W}function Ih(){const t=a.inject(B_);if(t)return t;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const wW=[{value:0,label:"12"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"}],kW=[{value:12,label:"12"},{value:13,label:"1"},{value:14,label:"2"},{value:15,label:"3"},{value:16,label:"4"},{value:17,label:"5"},{value:18,label:"6"},{value:19,label:"7"},{value:20,label:"8"},{value:21,label:"9"},{value:22,label:"10"},{value:23,label:"11"}];function xW(t){const e=Ih(),{locale:n,isRange:i,isTimeMode:s,dateParts:r,rules:o,is24hr:c,hideTimeHeader:d,timeAccuracy:h,updateValue:f}=e;function m(K){K=Object.assign(v.value,K);let ie=null;if(i.value){const pe=g.value?K:r.value[0],J=g.value?r.value[1]:K;ie={start:pe,end:J}}else ie=K;f(ie,{patch:"time",targetPriority:g.value?"start":"end",moveToValue:!0})}const g=a.computed(()=>t.position===0),v=a.computed(()=>r.value[t.position]||{isValid:!1}),b=a.computed(()=>Ch(v.value)),x=a.computed(()=>!!v.value.isValid),k=a.computed(()=>!d.value&&x.value),O=a.computed(()=>{if(!b.value)return null;let K=n.value.toDate(v.value);return v.value.hours===24&&(K=new Date(K.getTime()-1)),K}),T=a.computed({get(){return v.value.hours},set(K){m({hours:K})}}),N=a.computed({get(){return v.value.minutes},set(K){m({minutes:K})}}),C=a.computed({get(){return v.value.seconds},set(K){m({seconds:K})}}),B=a.computed({get(){return v.value.milliseconds},set(K){m({milliseconds:K})}}),$=a.computed({get(){return v.value.hours<12},set(K){K=String(K).toLowerCase()=="true";let ie=T.value;K&&ie>=12?ie-=12:!K&&ie<12&&(ie+=12),m({hours:ie})}}),L=a.computed(()=>UR(v.value,o.value[t.position])),F=a.computed(()=>wW.filter(K=>L.value.hours.some(ie=>ie.value===K.value))),q=a.computed(()=>kW.filter(K=>L.value.hours.some(ie=>ie.value===K.value))),ee=a.computed(()=>c.value?L.value.hours:$.value?F.value:q.value),ne=a.computed(()=>{const K=[];return ys(F.value)&&K.push({value:!0,label:"AM"}),ys(q.value)&&K.push({value:!1,label:"PM"}),K});return{...e,showHeader:k,timeAccuracy:h,parts:v,isValid:x,date:O,hours:T,minutes:N,seconds:C,milliseconds:B,options:L,hourOptions:ee,isAM:$,isAMOptions:ne,is24hr:c}}const CW=["value"],SW=["value","disabled"],MW={key:1,class:"vc-base-sizer","aria-hidden":"true"},OW={inheritAttrs:!1},Pl=a.defineComponent({...OW,__name:"BaseSelect",props:{options:null,modelValue:null,alignRight:{type:Boolean},alignLeft:{type:Boolean},showIcon:{type:Boolean},fitContent:{type:Boolean}},emits:["update:modelValue"],setup(t){const e=t,n=a.computed(()=>{const i=e.options.find(s=>s.value===e.modelValue);return i==null?void 0:i.label});return(i,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-base-select",{"vc-fit-content":t.fitContent,"vc-has-icon":t.showIcon}])},[a.createElementVNode("select",a.mergeProps(i.$attrs,{value:t.modelValue,class:["vc-focus",{"vc-align-right":t.alignRight,"vc-align-left":t.alignLeft}],onChange:s[0]||(s[0]=r=>i.$emit("update:modelValue",r.target.value))}),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.options,r=>(a.openBlock(),a.createElementBlock("option",{key:r.value,value:r.value,disabled:r.disabled},a.toDisplayString(r.label),9,SW))),128))],16,CW),t.showIcon?(a.openBlock(),a.createBlock(Qa,{key:0,name:"ChevronDown",size:"18"})):a.createCommentVNode("",!0),t.fitContent?(a.openBlock(),a.createElementBlock("div",MW,a.toDisplayString(a.unref(n)),1)):a.createCommentVNode("",!0)],2))}}),DW={key:0,class:"vc-time-header"},EW={class:"vc-time-weekday"},TW={class:"vc-time-month"},IW={class:"vc-time-day"},BW={class:"vc-time-year"},AW={class:"vc-time-select-group"},VW=a.createElementVNode("span",{class:"vc-time-colon"},":",-1),$W=a.createElementVNode("span",{class:"vc-time-colon"},":",-1),NW=a.createElementVNode("span",{class:"vc-time-decimal"},".",-1),A_=a.defineComponent({__name:"TimePicker",props:{position:null},setup(t,{expose:e}){const i=xW(t);e(i);const{locale:s,isValid:r,date:o,hours:c,minutes:d,seconds:h,milliseconds:f,options:m,hourOptions:g,isTimeMode:v,isAM:b,isAMOptions:x,is24hr:k,showHeader:O,timeAccuracy:T}=i;return(N,C)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-time-picker",[{"vc-invalid":!a.unref(r),"vc-attached":!a.unref(v)}]])},[a.createVNode(vi,{name:"time-header"},{default:a.withCtx(()=>[a.unref(O)&&a.unref(o)?(a.openBlock(),a.createElementBlock("div",DW,[a.createElementVNode("span",EW,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"WWW")),1),a.createElementVNode("span",TW,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"MMM")),1),a.createElementVNode("span",IW,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"D")),1),a.createElementVNode("span",BW,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"YYYY")),1)])):a.createCommentVNode("",!0)]),_:1}),a.createElementVNode("div",AW,[a.createVNode(Qa,{name:"Clock",size:"17"}),a.createVNode(Pl,{modelValue:a.unref(c),"onUpdate:modelValue":C[0]||(C[0]=B=>a.isRef(c)?c.value=B:null),modelModifiers:{number:!0},options:a.unref(g),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),a.unref(T)>1?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[VW,a.createVNode(Pl,{modelValue:a.unref(d),"onUpdate:modelValue":C[1]||(C[1]=B=>a.isRef(d)?d.value=B:null),modelModifiers:{number:!0},options:a.unref(m).minutes,class:"vc-time-select-minutes","align-left":a.unref(T)===2},null,8,["modelValue","options","align-left"])],64)):a.createCommentVNode("",!0),a.unref(T)>2?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[$W,a.createVNode(Pl,{modelValue:a.unref(h),"onUpdate:modelValue":C[2]||(C[2]=B=>a.isRef(h)?h.value=B:null),modelModifiers:{number:!0},options:a.unref(m).seconds,class:"vc-time-select-seconds","align-left":a.unref(T)===3},null,8,["modelValue","options","align-left"])],64)):a.createCommentVNode("",!0),a.unref(T)>3?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[NW,a.createVNode(Pl,{modelValue:a.unref(f),"onUpdate:modelValue":C[3]||(C[3]=B=>a.isRef(f)?f.value=B:null),modelModifiers:{number:!0},options:a.unref(m).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):a.createCommentVNode("",!0),a.unref(k)?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(Pl,{key:3,modelValue:a.unref(b),"onUpdate:modelValue":C[4]||(C[4]=B=>a.isRef(b)?b.value=B:null),options:a.unref(x)},null,8,["modelValue","options"]))])],2))}}),V_=a.defineComponent({__name:"DatePickerBase",setup(t){const{attributes:e,calendarRef:n,color:i,displayMode:s,isDateTimeMode:r,isTimeMode:o,isRange:c,onDayClick:d,onDayMouseEnter:h,onDayKeydown:f}=Ih(),m=c.value?[0,1]:[0];return(g,v)=>a.unref(o)?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`vc-container vc-bordered vc-${a.unref(i)} vc-${a.unref(s)}`)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(m),b=>(a.openBlock(),a.createBlock(A_,{key:b,position:b},null,8,["position"]))),128))],2)):(a.openBlock(),a.createBlock(_W,{key:1,attributes:a.unref(e),ref_key:"calendarRef",ref:n,onDayclick:a.unref(d),onDaymouseenter:a.unref(h),onDaykeydown:a.unref(f)},{footer:a.withCtx(()=>[a.unref(r)?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(a.unref(m),b=>(a.openBlock(),a.createBlock(A_,{key:b,position:b},null,8,["position"]))),128)):a.createCommentVNode("",!0),a.createVNode(vi,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),zW={inheritAttrs:!1},PW=a.defineComponent({...zW,__name:"DatePickerPopover",setup(t){const{datePickerPopoverId:e,color:n,displayMode:i,popoverRef:s,onPopoverBeforeShow:r,onPopoverAfterShow:o,onPopoverBeforeHide:c,onPopoverAfterHide:d}=Ih();return(h,f)=>(a.openBlock(),a.createBlock(Th,{id:a.unref(e),placement:"bottom-start",class:a.normalizeClass(`vc-date-picker-content vc-${a.unref(n)} vc-${a.unref(i)}`),ref_key:"popoverRef",ref:s,onBeforeShow:a.unref(r),onAfterShow:a.unref(o),onBeforeHide:a.unref(c),onAfterHide:a.unref(d)},{default:a.withCtx(()=>[a.createVNode(V_,a.normalizeProps(a.guardReactiveProps(h.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),LW=a.defineComponent({inheritAttrs:!1,emits:yW,props:vW,components:{DatePickerBase:V_,DatePickerPopover:PW},setup(t,e){const n=bW(t,e),i=a.reactive(I5(n,"calendarRef","popoverRef"));return{...n,slotCtx:i}}});function FW(t,e,n,i,s,r){const o=a.resolveComponent("DatePickerPopover"),c=a.resolveComponent("DatePickerBase");return t.$slots.default?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.renderSlot(t.$slots,"default",a.normalizeProps(a.guardReactiveProps(t.slotCtx))),a.createVNode(o,a.normalizeProps(a.guardReactiveProps(t.$attrs)),null,16)],64)):(a.openBlock(),a.createBlock(c,a.normalizeProps(a.mergeProps({key:1},t.$attrs)),null,16))}const RW=ir(LW,[["render",FW]]),hce="",fce="",iu=t=>/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(t),HW={components:{VDatePicker:RW,CdsChevron:jo},props:{modelValue:{type:String,default:"",validator:t=>t===""||iu(t)},label:{type:String,default:"Date"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},required:{type:Boolean,default:!1},errorMessage:{type:String,default:"Valor inv\xE1lido"},fluid:{type:Boolean,default:!1},minDate:{type:String,default:"",validator:t=>t===""||iu(t)},maxDate:{type:String,default:"",validator:t=>t===""||iu(t)},placeholder:{type:String,default:"Selecione uma data"}},data(){return{internalDate:Ce.now(),isBeingFocused:!1}},computed:{errorState(){return this.state==="invalid"},hasSlots(){return!!Object.keys(this.$slots).length},inputClass(){let t="";return this.disabled?this.fluid?"date-input--disabled date-input--fluid":"date-input--disabled":(this.isBeingFocused?this.disabled||(this.state==="valid"?t+=" date-input--focused-valid":this.state==="invalid"&&(t+=" date-input--focused-invalid")):this.disabled||(this.state==="valid"?t+=" date-input--valid":this.state==="invalid"&&(t+=" date-input--invalid")),t+=this.fluid?" date-input--fluid":" date-input",t)},availableDates(){return{start:this.minDate?Ce.fromISO(this.minDate):null,end:this.maxDate?Ce.fromISO(this.maxDate):null}}},watch:{modelValue(t,e){t!==e&&this.resolveInternalDate()}},mounted(){this.resolveInternalDate()},methods:{handleUpdateInput(t){this.$emit("update:modelValue",t?Ce.fromJSDate(t).toFormat("yyyy-MM-dd"):"")},resolveInternalDate(){if(!this.modelValue){this.internalDate="";return}this.internalDate=iu(this.modelValue)?Ce.fromFormat(this.modelValue,"yyyy-MM-dd"):Ce.now()}}},WW={class:"date-input__container"},YW={key:0},jW={key:1,class:"date-input__label"},UW={class:"label__content",for:"cds-text-input"},qW={key:0,class:"label__required-indicator"},GW=["value","disabled","placeholder","onClick"],KW={key:0,class:"date-input__error-message"};function ZW(t,e,n,i,s,r){const o=a.resolveComponent("cds-chevron"),c=a.resolveComponent("v-date-picker");return a.openBlock(),a.createElementBlock("div",WW,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",YW,[a.renderSlot(t.$slots,"label")])):(a.openBlock(),a.createElementBlock("label",jW,[a.createElementVNode("div",UW,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",qW," * ")):a.createCommentVNode("",!0)])]))]),a.createVNode(c,{id:"cds-date-input",modelValue:s.internalDate,"onUpdate:modelValue":[e[2]||(e[2]=d=>s.internalDate=d),r.handleUpdateInput],locale:"pt-BR","available-dates":r.availableDates},{"header-left-button":a.withCtx(({page:d})=>[a.createVNode(o,{direction:"left",onClick:h=>d.movePrevMonth()},null,8,["onClick"])]),"header-right-button":a.withCtx(({page:d})=>[a.createVNode(o,{direction:"right",onClick:h=>d.moveNextMonth()},null,8,["onClick"])]),default:a.withCtx(({inputValue:d,togglePopover:h,inputEvents:f})=>[a.createElementVNode("input",a.mergeProps({value:d,class:r.inputClass,disabled:n.disabled,placeholder:n.placeholder,type:"text"},a.toHandlers(f,!0),{onClick:h,onFocus:e[0]||(e[0]=m=>s.isBeingFocused=!0),onBlur:e[1]||(e[1]=m=>s.isBeingFocused=!1)}),null,16,GW)]),_:1},8,["modelValue","available-dates","onUpdate:modelValue"]),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",KW,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const XW=oe(HW,[["render",ZW]]),pce="",JW={components:{CdsChevron:jo},directives:{"on-click-outside":Ic.directive},props:{content:{type:String,default:"Conte\xFAdo",required:!0},label:{type:String,default:"Label",required:!0},disabled:{type:Boolean,default:!1},dropdownWidth:{type:Number,default:0}},data(){return{id:null,isActive:!1}},computed:{dynamicStyle(){const t=document.getElementById(this.id);if(!t)return null;const e=parseFloat(window.getComputedStyle(t).width);return e>this.dropdownWidth?{"--width":`${e}px`}:{"--width":`${this.dropdownWidth}px`}}},mounted(){this.id=`filter-pill$-${this._uid}`},methods:{activeSelection(){this.disabled||(this.isActive=!this.isActive,this.$emit("click",!0))},hide(){this.isActive=!this.isActive}}},QW=["id"],eY={class:"filter-pill__label"},tY={class:"filter-pill__content"};function nY(t,e,n,i,s,r){const o=a.resolveComponent("cds-chevron"),c=a.resolveDirective("on-click-outside");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",{id:s.id,class:a.normalizeClass([{"filter-pill__container--disabled":n.disabled,"filter-pill__container--active":s.isActive&&!n.disabled},"filter-pill__container"]),onClick:e[0]||(e[0]=(...d)=>r.activeSelection&&r.activeSelection(...d))},[a.createElementVNode("span",eY,a.toDisplayString(n.label)+": ",1),a.createElementVNode("span",tY,a.toDisplayString(n.content),1),(a.openBlock(),a.createBlock(o,{key:s.isActive,animate:"",size:"sm",direction:s.isActive?"top":"bottom"},null,8,["direction"]))],10,QW),s.isActive?a.withDirectives((a.openBlock(),a.createElementBlock("div",{key:0,style:a.normalizeStyle(r.dynamicStyle),class:"filter-pill__dropdown"},[a.renderSlot(t.$slots,"default",{},void 0,!0)],4)),[[c,r.hide]]):a.createCommentVNode("",!0)])}const iY=oe(JW,[["render",nY],["__scopeId","data-v-f6d65f66"]]),mce="",sY=["teal","green","blue","indigo","violet","pink","red","orange","amber"],rY={components:{CdsButton:ba},props:{image:{type:String,default:""},imageDescription:{type:String,default:"Imagem de Empty State"},title:{type:String,default:"T\xEDtulo do empty state",required:!0},text:{type:String,default:"Para sair dessa situa\xE7\xE3o de empty state, realize a a\xE7\xE3o abaixo."},hideActionButton:{type:Boolean,default:!1},actionButtonText:{type:String,default:"Finalizar"},actionButtonVariant:{type:String,default:"green",validator:t=>sY.includes(t)}}},aY={class:"empty-state"},oY=["src","alt"],lY={class:"empty-state__title"},cY={class:"empty-state__text"};function dY(t,e,n,i,s,r){const o=a.resolveComponent("cds-button");return a.openBlock(),a.createElementBlock("div",aY,[a.renderSlot(t.$slots,"graphic-element",{},()=>[a.createElementVNode("img",{class:"empty-state__image",src:n.image,alt:n.imageDescription},null,8,oY)],!0),a.createElementVNode("div",lY,a.toDisplayString(n.title),1),a.createElementVNode("div",cY,[a.renderSlot(t.$slots,"text",{},()=>[a.createTextVNode(a.toDisplayString(n.text),1)],!0)]),n.hideActionButton?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(o,{key:0,class:"empty-state__button",text:n.actionButtonText,variant:n.actionButtonVariant,onClick:e[0]||(e[0]=c=>t.$emit("action-button-click",!0))},null,8,["text","variant"]))])}const uY=oe(rY,[["render",dY],["__scopeId","data-v-a4be2019"]]),gce="",Bh={components:{CdsIcon:$t},props:{modelValue:{default:null,required:!0},allowedExtensions:{type:String,default:null},size:{type:String,default:"md"},state:{type:String,default:"default"},errorMessage:{type:String,default:"Valor inv\xE1lido"},disabled:{type:Boolean,default:!1}},data(){return{file:!!this.modelValue&&!Xt(this.modelValue)?this.modelValue:null,isOnDragEnterState:!1,isValid:!0,internalState:this.state}},computed:{sizeClass(){return{inputTitle:`file-input__title--${this.size}`,holderPadding:"px-3",wrapperPadding:"px-1 py-1",contentPadding:"mt-3",svgScale:1}},acceptString(){if(this.allowedExtensions===null)return null;let t="";return this.allowedExtensions.split(",").forEach((n,i,s)=>{n&&n.trim().length>0&&(t+=`.${n.trim()}${i!==s.length-1?", ":""}`)}),t},computedAllowedMessage(){if(this.allowedExtensions){const e=this.allowedExtensions.split(",").length===1?"":"s";return`${`S\xE3o aceitos apenas arquivo${e} do${e} seguinte${e} tipo${e}:`} ${this.acceptString}.`}else if(this.state==="invalid")return this.errorMessage;return null},textAlignmentResolver(){return this.size==="sm"?"flex-start":"center"}},watch:{file(t){this.$emit("update:modelValue",t)},state:{handler(t){this.internalState=t},immediate:!0},isValid:{handler(t){t?this.internalState="invalid":this.internalState="valid"},immediate:!0}},methods:{dropHandler(t){if(this.isValid=null,this.isOnDragEnterState=!1,t.preventDefault(),!t.dataTransfer.items||t.dataTransfer.items[0].kind!=="file"||this.disabled)return;const e=t.dataTransfer.items[0].getAsFile();if(this.isAValidExtension(e.name)){this.file=e,this.isValid=!0;return}this.isValid=!1,this.file=null},linkClick(){this.disabled||this.$refs.fileInput.click()},isAValidExtension(t){if(this.allowedExtensions===null)return!0;const e=this.allowedExtensions.split(",");let n=t.split(".");return n=n[n.length-1].trim(),e.filter(i=>i===n).length>0},handleFormFileChange(t){this.isValid="invalid";const[e]=t.target.files||{};if(this.isAValidExtension(e.name)){this.file=e,this.isValid=!0;return}this.isValid=!1,this.$nextTick().then(()=>{this.file=null})},handleRemove(){this.disabled||(this.isValid="default",this.file=null)}}},$_=()=>{a.useCssVars(t=>({"637a4784":t.textAlignmentResolver}))},N_=Bh.setup;Bh.setup=N_?(t,e)=>($_(),N_(t,e)):$_;const hY=Bh,fY=["accept"],pY={key:0,class:"file-input__container"},mY={key:0},gY={key:1},_Y={key:1,class:"file-input__container"},vY={key:1},yY={key:0,class:"file-input__alert-container"};function bY(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",{class:a.normalizeClass(["file-input text-center",{"file-input--drag-state":s.isOnDragEnterState,"file-input--sm":n.size==="sm","file-input--md":n.size==="md","file-input--lg":n.size==="lg","file-input--valid":n.state==="valid","file-input--invalid":n.state==="invalid"||!s.isValid,"file-input--disabled":n.disabled===!0,[r.sizeClass.holderPadding]:n.size}]),onDragover:e[2]||(e[2]=a.withModifiers(c=>s.isOnDragEnterState=!0,["prevent","stop"])),onDragenter:e[3]||(e[3]=a.withModifiers(c=>s.isOnDragEnterState=!0,["prevent","stop"])),onDragleave:e[4]||(e[4]=a.withModifiers(c=>s.isOnDragEnterState=!1,["prevent","stop"])),onDragend:e[5]||(e[5]=a.withModifiers(c=>s.isOnDragEnterState=!1,["prevent","stop"])),onDrop:e[6]||(e[6]=(...c)=>r.dropHandler&&r.dropHandler(...c)),onClick:e[7]||(e[7]=(...c)=>r.linkClick&&r.linkClick(...c))},[a.withDirectives(a.createElementVNode("input",{ref:"fileInput",type:"file",accept:r.acceptString,onChange:e[0]||(e[0]=(...c)=>r.handleFormFileChange&&r.handleFormFileChange(...c))},null,40,fY),[[a.vShow,!1]]),s.file?(a.openBlock(),a.createElementBlock("div",_Y,[a.createVNode(o,{height:"24",width:"24",name:"document-text-outline",class:a.normalizeClass({"icon-document--sm":n.size==="sm","icon-document--md":n.size==="md","icon-document--lg":n.size==="lg","icon-document--disabled":n.disabled===!0})},null,8,["class"]),a.createElementVNode("div",{class:a.normalizeClass({[r.sizeClass.inputTitle]:n.size,[r.sizeClass.contentPadding]:n.size})},[s.isOnDragEnterState?(a.openBlock(),a.createElementBlock("div",vY," Solte aqui o seu arquivo ")):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["on-drag-content__container",{"on-drag-content__container--disabled":n.disabled===!0}])},[a.createElementVNode("div",null,a.toDisplayString(s.file.name),1),a.createElementVNode("div",{class:"x-icon__container",onClick:e[1]||(e[1]=a.withModifiers((...c)=>r.handleRemove&&r.handleRemove(...c),["stop"]))},[a.createVNode(o,{height:"18",width:"18",name:"x-outline",class:a.normalizeClass(["file-input__close-button",{"file-input__close-button--sm":n.size==="sm","file-input__close-button--md":n.size==="md","file-input__close-button--lg":n.size==="lg","file-input__close-button--disabled":n.disabled===!0}])},null,8,["class"])])],2))],2)])):(a.openBlock(),a.createElementBlock("div",pY,[a.createVNode(o,{name:"upload-cloud-outline",class:a.normalizeClass({"icon-upload--sm":n.size==="sm","icon-upload--md":n.size==="md","icon-upload--lg":n.size==="lg","icon-upload--disabled":n.disabled===!0,[r.sizeClass.holderPadding]:n.size})},null,8,["class"]),a.createElementVNode("div",{class:a.normalizeClass({[r.sizeClass.inputTitle]:n.size,[r.sizeClass.contentPadding]:n.size})},[s.isOnDragEnterState?(a.openBlock(),a.createElementBlock("div",gY," Solte aqui o seu arquivo ")):(a.openBlock(),a.createElementBlock("div",mY,[a.createTextVNode(" Arraste o arquivo aqui ou "),a.createElementVNode("a",{href:"javascript:void(0)",class:a.normalizeClass(["file-input__search-link",{"file-input__search-link--disabled":n.disabled===!0}])}," pesquise no seu dispositivo ",2)]))],2)]))],34)]),s.internalState==="invalid"?(a.openBlock(),a.createElementBlock("div",yY,a.toDisplayString(r.computedAllowedMessage),1)):a.createCommentVNode("",!0)],64)}const wY=oe(hY,[["render",bY],["__scopeId","data-v-dee88fdd"]]),_ce="",kY={props:{variant:{type:String,default:"green"},text:{type:String,default:"Lorem ipsum"},disabled:{type:Boolean,default:!1}},data(){return{predefinedColors:["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber"]}},computed:{predefinedColor(){return this.predefinedColors.indexOf(this.variant)>-1?`link-button--${this.variant}`:"link-button--green"},computedStyle(){const t=this.disabled?"--disabled":"--active";return`${this.predefinedColor}${t}`}},methods:{clickHandler(){this.disabled||this.$emit("click",!0)}}},xY={id:"cds-link-button"};function CY(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",xY,[a.createElementVNode("button",{class:a.normalizeClass(["link-button__container",r.computedStyle]),onClick:e[0]||(e[0]=o=>r.clickHandler())},[a.renderSlot(t.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(n.text),1)],!0)],2)])}const z_=oe(kY,[["render",CY],["__scopeId","data-v-17beab84"]]),vce="",SY={props:{variant:{type:String,default:"green"},targetId:{type:String,default:""},position:{type:String,default:"top-end"}}},MY={id:"cds-pulsar"};function OY(t,e,n,i,s,r){const o=a.resolveDirective("cds-floatify");return a.withDirectives((a.openBlock(),a.createElementBlock("div",MY,[a.createElementVNode("div",{class:a.normalizeClass(`pulsar__outer-circle--${n.variant}`)},[a.createElementVNode("div",{class:a.normalizeClass(`pulsar__inner-circle--${n.variant}`)},null,2)],2)])),[[o,n.targetId,n.position]])}const P_=oe(SY,[["render",OY],["__scopeId","data-v-6f878a26"]]),yce="",DY={components:{CdsPulsar:P_,CdsIcon:$t},directives:{"on-click-outside":Ic.directive},props:{modelValue:{type:Boolean,default:!0,required:!0},title:{type:String,default:"Nova funcionalidade!",validator:t=>t.length<=22},url:{type:String,default:"",required:!0},variant:{type:String,default:"green"},targetId:{type:String,default:""}},data(){return{isActive:this.modelValue,id:null,pulsarId:null,containerId:null,position:"right",isExpanded:!1,waitingConfirmation:!1,boxTop:0}},watch:{isActive(t){this.$emit("update:modelValue",t)},modelValue(t){console.log("v-model",t),this.isActive=t}},mounted(){this.id=`floating-assistant$-${this._uid}`,this.pulsarId=`floating-assistant-pulsar$-${this._uid}`,this.containerId=`floating-assistant-container$-${this._uid}`,window.addEventListener("scroll",this.startAnimation,!1)},methods:{startAnimation(){this.isScrolledIntoView()&&(document.getElementById(this.id).classList.add("animation"),window.removeEventListener("scroll",this.startAnimation))},isScrolledIntoView(){const t=window.scrollY,e=t+window.innerHeight,n=document.getElementById(this.id).getBoundingClientRect();this.boxTop||(this.boxTop=n.top);const i=this.boxTop;return i+18<=e&&i>=t},expand(){this.waitingConfirmation||(this.isExpanded=!0)},collapse(){this.isExpanded=!1},close(){this.collapse(),this.waitingConfirmation=!0},confirmationHandle(t){if(!t){this.isActive=!1;return}this.$emit("disable-tip",!0),this.isActive=!1}}},EY=["id"],TY=["id"],IY={key:0},BY={key:1},AY={key:0,class:"floating-assistant__content"},VY={class:"floating-assistant__footer"},$Y=["href"],NY={key:1,class:"floating-assistant__subtitle"},zY={key:2};function PY(t,e,n,i,s,r){const o=a.resolveComponent("cds-pulsar"),c=a.resolveComponent("cds-icon"),d=a.resolveDirective("on-click-outside"),h=a.resolveDirective("cds-floatify");return a.openBlock(),a.createElementBlock("div",{id:s.id,class:a.normalizeClass(["floating-assistant",{"floating-assistant--hidden":!s.isActive}])},[a.createVNode(o,{id:s.pulsarId,"target-id":n.targetId,variant:n.variant},null,8,["id","target-id","variant"]),a.withDirectives((a.openBlock(),a.createElementBlock("div",{id:s.containerId,class:"floating-assistant__container"},[a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["floating-assistant__dropdown",{"floating-assistant__dropdown--expanded":s.isExpanded,"floating-assistant__dropdown--confirmation":s.waitingConfirmation}]),onClick:e[3]||(e[3]=(...f)=>r.expand&&r.expand(...f))},[s.waitingConfirmation?(a.openBlock(),a.createElementBlock("div",IY,[a.createTextVNode(" Ocultar dica para sempre? "),a.createElementVNode("span",{class:a.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:e[0]||(e[0]=f=>r.confirmationHandle(!0))}," Sim ",2),a.createTextVNode(" / "),a.createElementVNode("span",{class:a.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:e[1]||(e[1]=f=>r.confirmationHandle(!1))}," N\xE3o ",2)])):(a.openBlock(),a.createElementBlock("div",BY,[a.createElementVNode("span",{class:a.normalizeClass(`floating-assistant__title--${n.variant}`)},a.toDisplayString(n.title),3),s.isExpanded?(a.openBlock(),a.createElementBlock("div",AY,[a.renderSlot(t.$slots,"default",{},void 0,!0),a.createElementVNode("span",VY,[a.createTextVNode(" Voc\xEA pode saber mais "),a.createElementVNode("a",{class:a.normalizeClass(`floating-assistant__link--${n.variant}`),href:n.url,target:"_blank"}," clicando aqui ",10,$Y),a.createTextVNode(". ")])])):(a.openBlock(),a.createElementBlock("span",NY," Clique para mais informa\xE7\xF5es "))])),s.isExpanded?(a.openBlock(),a.createElementBlock("div",zY,[a.createElementVNode("div",{onClick:e[2]||(e[2]=a.withModifiers((...f)=>r.close&&r.close(...f),["stop"]))},[a.createVNode(c,{class:"floating-assistant__close-button",name:"x-outline",height:"20",width:"20"})])])):a.createCommentVNode("",!0)],2)),[[d,r.collapse]])],8,TY)),[[h,s.pulsarId,s.position]])],10,EY)}const LY=oe(DY,[["render",PY],["__scopeId","data-v-24ad8b5d"]]),bce="",Ah={props:{value:{type:Number,default:0,validator:t=>t>=0&&t<=100},variant:{type:String,default:"green"},size:{type:Number,default:300},subtitle:{type:String,default:""}},computed:{progressStyle(){return{"--value":this.value,"--size":this.size}},chartProgressValue(){return 198*(1-this.value/100)},formatedValue(){return`${this.value.toLocaleString("pt-br",{minimumFractionDigits:1})}%`}}},L_=()=>{a.useCssVars(t=>({ba3cfafc:t.chartProgressValue}))},F_=Ah.setup;Ah.setup=F_?(t,e)=>(L_(),F_(t,e)):L_;const FY=Ah,RY={class:"responsive-container"},HY=a.createStaticVNode('<linearGradient id="gradient" x1="0" y1="0" x2="0" y2="100%" gradientTransform="rotate(-340)" data-v-f4b6afdc><stop class="stop" offset="1%" data-v-f4b6afdc></stop><stop class="stop-2" offset="99%" data-v-f4b6afdc></stop></linearGradient><g transform="scale(1.20) translate(-9.5 -12)" data-v-f4b6afdc><path class="indicator-bar" d="M30,90 A40,40 0 1,1 80,90" fill="none" data-v-f4b6afdc></path><path fill="none" class="indicator-progress" d="M30,90 A40,40 0 1,1 80,90" data-v-f4b6afdc></path></g>',2),WY={x:"50%",y:"50%","dominant-baseline":"middle","text-anchor":"middle",class:"value"},YY={x:"50%",y:"62%","dominant-baseline":"middle","text-anchor":"middle",class:"subtitle"};function jY(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",RY,[a.createElementVNode("div",{class:"gauge-chart",style:a.normalizeStyle(r.progressStyle)},[(a.openBlock(),a.createElementBlock("svg",{class:a.normalizeClass(`svg--${n.variant}`),viewBox:"0 0 110 100"},[HY,a.createElementVNode("text",WY,a.toDisplayString(r.formatedValue),1),a.createElementVNode("text",YY,a.toDisplayString(n.subtitle),1)],2))],4)])])}const UY=oe(FY,[["render",jY],["__scopeId","data-v-f4b6afdc"]]),wce="",qY={props:{variant:{type:String,default:"info"},animated:{type:Boolean,default:!1},duration:{type:Number,default:1},delay:{type:Number,default:0}},computed:{dynamicHighlightClass(){let t="";switch(this.animated&&(t="highlight__container--highlighted"),this.variant){case"info":return`${t} highlight__container--info`;case"success":return`${t} highlight__container--success`;case"danger":return`${t} highlight__container--danger`;default:return`${t} highlight__container--info`}},dynamicStyle(){return{"--duration":`${this.duration}s`,"--delay":`${this.delay}s`}}}};function GY(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",{class:a.normalizeClass(["highlight__container",r.dynamicHighlightClass]),style:a.normalizeStyle(r.dynamicStyle)},[a.renderSlot(t.$slots,"default",{},void 0,!0)],6)}const KY=oe(qY,[["render",GY],["__scopeId","data-v-91b540f7"]]),kce="",ZY={props:{position:{type:String,default:"top"},text:{type:String,default:null},slim:{type:Boolean,default:!1}},computed:{content(){return this.slim?`<span style="font-size: 11px; padding: 0px;">${this.text}</span>`:`<span style="font-size: 13px; padding: 0px 2px">${this.text}</span>`}}},XY=["data-tippy-placement","data-tippy-content"];function JY(t,e,n,i,s,r){const o=a.resolveDirective("cdstip");return a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:"tooltip","data-tippy-placement":n.position,"data-tippy-content":r.content,"data-tippy-allowHTML":!0},[a.renderSlot(t.$slots,"default")],8,XY)),[[o,n.text]])}const Vh=oe(ZY,[["render",JY]]),xce="",R_=["sm","md","lg"],QY={components:{CdsIcon:$t,CdsTooltip:Vh},props:{size:{type:String,default:"md",validator:t=>R_.includes(t)},icon:{type:String,default:"create-outline"},disabled:{type:Boolean,default:!1},tooltipText:{type:String,default:null},feedbackOnClick:{type:Boolean,default:!1},feedbackIcon:{type:String,default:"check-outline"}},data(){return{predefinedSizes:R_,innerTooltipText:this.tooltipText,internalIcon:this.icon,inputControlPanel:0}},computed:{predefinedSize(){return`cds-icon-button--${this.size}`},computedModifiers(){return`${this.disabled?"cds-icon-button--disabled":""} ${this.predefinedSize}`}},watch:{disabled:{handler(t,e){t!==e&&(t===!0?this.innerTooltipText=null:this.innerTooltipText=this.tooltipText)},immediate:!0}},methods:{clickHandler(t){this.disabled||(this.feedbackOnClick&&(this.inputControlPanel+=1,this.internalIcon=this.feedbackIcon,setTimeout(()=>{this.internalIcon=this.icon,this.inputControlPanel+=1},1e3),this.inputControlPanel+=1),this.$emit("cds-click",t))}}},ej={id:"cds-icon-button"};function tj(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-tooltip");return a.openBlock(),a.createElementBlock("span",ej,[a.createVNode(c,{text:s.innerTooltipText},{default:a.withCtx(()=>[a.createElementVNode("button",{class:a.normalizeClass(["cds-icon-button__container",r.computedModifiers]),onClick:e[0]||(e[0]=(...d)=>r.clickHandler&&r.clickHandler(...d))},[(a.openBlock(),a.createBlock(o,{key:s.inputControlPanel,name:s.internalIcon,class:"cds-icon-button__icon"},null,8,["name"]))],2)]),_:1},8,["text"])])}const nj=oe(QY,[["render",tj],["__scopeId","data-v-97670025"]]);var $h={exports:{}};(function(t,e){var n=200,i="__lodash_hash_undefined__",s=1,r=2,o=9007199254740991,c="[object Arguments]",d="[object Array]",h="[object AsyncFunction]",f="[object Boolean]",m="[object Date]",g="[object Error]",v="[object Function]",b="[object GeneratorFunction]",x="[object Map]",k="[object Number]",O="[object Null]",T="[object Object]",N="[object Promise]",C="[object Proxy]",B="[object RegExp]",$="[object Set]",L="[object String]",F="[object Symbol]",q="[object Undefined]",ee="[object WeakMap]",ne="[object ArrayBuffer]",K="[object DataView]",ie="[object Float32Array]",pe="[object Float64Array]",J="[object Int8Array]",ue="[object Int16Array]",he="[object Int32Array]",_e="[object Uint8Array]",be="[object Uint8ClampedArray]",R="[object Uint16Array]",fe="[object Uint32Array]",ae=/[\\^$.*+?()[\]{}|]/g,Ee=/^\[object .+?Constructor\]$/,Me=/^(?:0|[1-9]\d*)$/,me={};me[ie]=me[pe]=me[J]=me[ue]=me[he]=me[_e]=me[be]=me[R]=me[fe]=!0,me[c]=me[d]=me[ne]=me[f]=me[K]=me[m]=me[g]=me[v]=me[x]=me[k]=me[T]=me[B]=me[$]=me[L]=me[ee]=!1;var Ne=typeof cn=="object"&&cn&&cn.Object===Object&&cn,ot=typeof self=="object"&&self&&self.Object===Object&&self,Le=Ne||ot||Function("return this")(),ut=e&&!e.nodeType&&e,Bt=ut&&!0&&t&&!t.nodeType&&t,wt=Bt&&Bt.exports===ut,et=wt&&Ne.process,it=function(){try{return et&&et.binding&&et.binding("util")}catch{}}(),st=it&&it.isTypedArray;function Yt(y,M){for(var A=-1,U=y==null?0:y.length,Te=0,we=[];++A<U;){var Re=y[A];M(Re,A,y)&&(we[Te++]=Re)}return we}function ht(y,M){for(var A=-1,U=M.length,Te=y.length;++A<U;)y[Te+A]=M[A];return y}function kt(y,M){for(var A=-1,U=y==null?0:y.length;++A<U;)if(M(y[A],A,y))return!0;return!1}function tn(y,M){for(var A=-1,U=Array(y);++A<y;)U[A]=M(A);return U}function nn(y){return function(M){return y(M)}}function yt(y,M){return y.has(M)}function tt(y,M){return y==null?void 0:y[M]}function Nt(y){var M=-1,A=Array(y.size);return y.forEach(function(U,Te){A[++M]=[Te,U]}),A}function Mt(y,M){return function(A){return y(M(A))}}function At(y){var M=-1,A=Array(y.size);return y.forEach(function(U){A[++M]=U}),A}var Ot=Array.prototype,un=Function.prototype,Vt=Object.prototype,te=Le["__core-js_shared__"],Ae=un.toString,We=Vt.hasOwnProperty,pn=function(){var y=/[^.]+$/.exec(te&&te.keys&&te.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),Bn=Vt.toString,Yn=RegExp("^"+Ae.call(We).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=wt?Le.Buffer:void 0,le=Le.Symbol,ve=Le.Uint8Array,W=Vt.propertyIsEnumerable,E=Ot.splice,Y=le?le.toStringTag:void 0,se=Object.getOwnPropertySymbols,ke=j?j.isBuffer:void 0,Ye=Mt(Object.keys,Object),rt=Mn(Le,"DataView"),xt=Mn(Le,"Map"),sn=Mn(Le,"Promise"),Gt=Mn(Le,"Set"),jn=Mn(Le,"WeakMap"),ft=Mn(Object,"create"),An=mn(rt),Cn=mn(xt),ti=mn(sn),Fi=mn(Gt),ks=mn(jn),io=le?le.prototype:void 0,Kr=io?io.valueOf:void 0;function rn(y){var M=-1,A=y==null?0:y.length;for(this.clear();++M<A;){var U=y[M];this.set(U[0],U[1])}}function Hl(){this.__data__=ft?ft(null):{},this.size=0}function Wl(y){var M=this.has(y)&&delete this.__data__[y];return this.size-=M?1:0,M}function Yl(y){var M=this.__data__;if(ft){var A=M[y];return A===i?void 0:A}return We.call(M,y)?M[y]:void 0}function jl(y){var M=this.__data__;return ft?M[y]!==void 0:We.call(M,y)}function Ul(y,M){var A=this.__data__;return this.size+=this.has(y)?0:1,A[y]=ft&&M===void 0?i:M,this}rn.prototype.clear=Hl,rn.prototype.delete=Wl,rn.prototype.get=Yl,rn.prototype.has=jl,rn.prototype.set=Ul;function an(y){var M=-1,A=y==null?0:y.length;for(this.clear();++M<A;){var U=y[M];this.set(U[0],U[1])}}function ql(){this.__data__=[],this.size=0}function Gl(y){var M=this.__data__,A=Cs(M,y);if(A<0)return!1;var U=M.length-1;return A==U?M.pop():E.call(M,A,1),--this.size,!0}function Kl(y){var M=this.__data__,A=Cs(M,y);return A<0?void 0:M[A][1]}function Zl(y){return Cs(this.__data__,y)>-1}function Xl(y,M){var A=this.__data__,U=Cs(A,y);return U<0?(++this.size,A.push([y,M])):A[U][1]=M,this}an.prototype.clear=ql,an.prototype.delete=Gl,an.prototype.get=Kl,an.prototype.has=Zl,an.prototype.set=Xl;function Sn(y){var M=-1,A=y==null?0:y.length;for(this.clear();++M<A;){var U=y[M];this.set(U[0],U[1])}}function sr(){this.size=0,this.__data__={hash:new rn,map:new(xt||an),string:new rn}}function Jl(y){var M=Vn(this,y).delete(y);return this.size-=M?1:0,M}function rr(y){return Vn(this,y).get(y)}function Ql(y){return Vn(this,y).has(y)}function ec(y,M){var A=Vn(this,y),U=A.size;return A.set(y,M),this.size+=A.size==U?0:1,this}Sn.prototype.clear=sr,Sn.prototype.delete=Jl,Sn.prototype.get=rr,Sn.prototype.has=Ql,Sn.prototype.set=ec;function ar(y){var M=-1,A=y==null?0:y.length;for(this.__data__=new Sn;++M<A;)this.add(y[M])}function Zr(y){return this.__data__.set(y,i),this}function xs(y){return this.__data__.has(y)}ar.prototype.add=ar.prototype.push=Zr,ar.prototype.has=xs;function ni(y){var M=this.__data__=new an(y);this.size=M.size}function Xr(){this.__data__=new an,this.size=0}function tc(y){var M=this.__data__,A=M.delete(y);return this.size=M.size,A}function nc(y){return this.__data__.get(y)}function ic(y){return this.__data__.has(y)}function so(y,M){var A=this.__data__;if(A instanceof an){var U=A.__data__;if(!xt||U.length<n-1)return U.push([y,M]),this.size=++A.size,this;A=this.__data__=new Sn(U)}return A.set(y,M),this.size=A.size,this}ni.prototype.clear=Xr,ni.prototype.delete=tc,ni.prototype.get=nc,ni.prototype.has=ic,ni.prototype.set=so;function ro(y,M){var A=or(y),U=!A&&Qr(y),Te=!A&&!U&&lr(y),we=!A&&!U&&!Te&&yo(y),Re=A||U||Te||we,Ge=Re?tn(y.length,String):[],He=Ge.length;for(var Ze in y)(M||We.call(y,Ze))&&!(Re&&(Ze=="length"||Te&&(Ze=="offset"||Ze=="parent")||we&&(Ze=="buffer"||Ze=="byteLength"||Ze=="byteOffset")||ho(Ze,He)))&&Ge.push(Ze);return Ge}function Cs(y,M){for(var A=y.length;A--;)if(_o(y[A][0],M))return A;return-1}function Ss(y,M,A){var U=M(y);return or(y)?U:ht(U,A(y))}function Ms(y){return y==null?y===void 0?q:O:Y&&Y in Object(y)?yi(y):go(y)}function Jr(y){return wi(y)&&Ms(y)==c}function Os(y,M,A,U,Te){return y===M?!0:y==null||M==null||!wi(y)&&!wi(M)?y!==y&&M!==M:ao(y,M,A,U,Os,Te)}function ao(y,M,A,U,Te,we){var Re=or(y),Ge=or(M),He=Re?d:bi(y),Ze=Ge?d:bi(M);He=He==c?T:He,Ze=Ze==c?T:Ze;var zt=He==T,gn=Ze==T,Ft=He==Ze;if(Ft&&lr(y)){if(!lr(M))return!1;Re=!0,zt=!1}if(Ft&&!zt)return we||(we=new ni),Re||yo(y)?Ds(y,M,A,U,Te,we):rc(y,M,He,A,U,Te,we);if(!(A&s)){var mt=zt&&We.call(y,"__wrapped__"),Qt=gn&&We.call(M,"__wrapped__");if(mt||Qt){var Hi=mt?y.value():y,ki=Qt?M.value():M;return we||(we=new ni),Te(Hi,ki,A,U,we)}}return Ft?(we||(we=new ni),co(y,M,A,U,Te,we)):!1}function sc(y){if(!vo(y)||po(y))return!1;var M=cr(y)?Yn:Ee;return M.test(mn(y))}function oo(y){return wi(y)&&ta(y.length)&&!!me[Ms(y)]}function lo(y){if(!mo(y))return Ye(y);var M=[];for(var A in Object(y))We.call(y,A)&&A!="constructor"&&M.push(A);return M}function Ds(y,M,A,U,Te,we){var Re=A&s,Ge=y.length,He=M.length;if(Ge!=He&&!(Re&&He>Ge))return!1;var Ze=we.get(y);if(Ze&&we.get(M))return Ze==M;var zt=-1,gn=!0,Ft=A&r?new ar:void 0;for(we.set(y,M),we.set(M,y);++zt<Ge;){var mt=y[zt],Qt=M[zt];if(U)var Hi=Re?U(Qt,mt,zt,M,y,we):U(mt,Qt,zt,y,M,we);if(Hi!==void 0){if(Hi)continue;gn=!1;break}if(Ft){if(!kt(M,function(ki,is){if(!yt(Ft,is)&&(mt===ki||Te(mt,ki,A,U,we)))return Ft.push(is)})){gn=!1;break}}else if(!(mt===Qt||Te(mt,Qt,A,U,we))){gn=!1;break}}return we.delete(y),we.delete(M),gn}function rc(y,M,A,U,Te,we,Re){switch(A){case K:if(y.byteLength!=M.byteLength||y.byteOffset!=M.byteOffset)return!1;y=y.buffer,M=M.buffer;case ne:return!(y.byteLength!=M.byteLength||!we(new ve(y),new ve(M)));case f:case m:case k:return _o(+y,+M);case g:return y.name==M.name&&y.message==M.message;case B:case L:return y==M+"";case x:var Ge=Nt;case $:var He=U&s;if(Ge||(Ge=At),y.size!=M.size&&!He)return!1;var Ze=Re.get(y);if(Ze)return Ze==M;U|=r,Re.set(y,M);var zt=Ds(Ge(y),Ge(M),U,Te,we,Re);return Re.delete(y),zt;case F:if(Kr)return Kr.call(y)==Kr.call(M)}return!1}function co(y,M,A,U,Te,we){var Re=A&s,Ge=Ri(y),He=Ge.length,Ze=Ri(M),zt=Ze.length;if(He!=zt&&!Re)return!1;for(var gn=He;gn--;){var Ft=Ge[gn];if(!(Re?Ft in M:We.call(M,Ft)))return!1}var mt=we.get(y);if(mt&&we.get(M))return mt==M;var Qt=!0;we.set(y,M),we.set(M,y);for(var Hi=Re;++gn<He;){Ft=Ge[gn];var ki=y[Ft],is=M[Ft];if(U)var oc=Re?U(is,ki,Ft,M,y,we):U(ki,is,Ft,y,M,we);if(!(oc===void 0?ki===is||Te(ki,is,A,U,we):oc)){Qt=!1;break}Hi||(Hi=Ft=="constructor")}if(Qt&&!Hi){var ia=y.constructor,hn=M.constructor;ia!=hn&&"constructor"in y&&"constructor"in M&&!(typeof ia=="function"&&ia instanceof ia&&typeof hn=="function"&&hn instanceof hn)&&(Qt=!1)}return we.delete(y),we.delete(M),Qt}function Ri(y){return Ss(y,na,uo)}function Vn(y,M){var A=y.__data__;return fo(M)?A[typeof M=="string"?"string":"hash"]:A.map}function Mn(y,M){var A=tt(y,M);return sc(A)?A:void 0}function yi(y){var M=We.call(y,Y),A=y[Y];try{y[Y]=void 0;var U=!0}catch{}var Te=Bn.call(y);return U&&(M?y[Y]=A:delete y[Y]),Te}var uo=se?function(y){return y==null?[]:(y=Object(y),Yt(se(y),function(M){return W.call(y,M)}))}:pt,bi=Ms;(rt&&bi(new rt(new ArrayBuffer(1)))!=K||xt&&bi(new xt)!=x||sn&&bi(sn.resolve())!=N||Gt&&bi(new Gt)!=$||jn&&bi(new jn)!=ee)&&(bi=function(y){var M=Ms(y),A=M==T?y.constructor:void 0,U=A?mn(A):"";if(U)switch(U){case An:return K;case Cn:return x;case ti:return N;case Fi:return $;case ks:return ee}return M});function ho(y,M){return M=M??o,!!M&&(typeof y=="number"||Me.test(y))&&y>-1&&y%1==0&&y<M}function fo(y){var M=typeof y;return M=="string"||M=="number"||M=="symbol"||M=="boolean"?y!=="__proto__":y===null}function po(y){return!!pn&&pn in y}function mo(y){var M=y&&y.constructor,A=typeof M=="function"&&M.prototype||Vt;return y===A}function go(y){return Bn.call(y)}function mn(y){if(y!=null){try{return Ae.call(y)}catch{}try{return y+""}catch{}}return""}function _o(y,M){return y===M||y!==y&&M!==M}var Qr=Jr(function(){return arguments}())?Jr:function(y){return wi(y)&&We.call(y,"callee")&&!W.call(y,"callee")},or=Array.isArray;function ea(y){return y!=null&&ta(y.length)&&!cr(y)}var lr=ke||lt;function ac(y,M){return Os(y,M)}function cr(y){if(!vo(y))return!1;var M=Ms(y);return M==v||M==b||M==h||M==C}function ta(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=o}function vo(y){var M=typeof y;return y!=null&&(M=="object"||M=="function")}function wi(y){return y!=null&&typeof y=="object"}var yo=st?nn(st):oo;function na(y){return ea(y)?ro(y):lo(y)}function pt(){return[]}function lt(){return!1}t.exports=ac})($h,$h.exports);const Ll=$h.exports,H_=[{name:"turquoise",hex:"#3CACDD",lighterHex:"#C2EDFF"},{name:"teal",hex:"#3CACDD",lighterHex:"#C2EDFF"},{name:"green",hex:"#2AC092",lighterHex:"#ABEDD9"},{name:"blue",hex:"#377EE1",lighterHex:"#B6D1F7"},{name:"indigo",hex:"#6174D1",lighterHex:"#CED6FD"},{name:"violet",hex:"#A169D3",lighterHex:"#E6D2F9"},{name:"pink",hex:"#DD5A9C",lighterHex:"#F9C8E2"},{name:"red",hex:"#F95367",lighterHex:"#FBD0D6"},{name:"orange",hex:"#FF8567",lighterHex:"#FFD6CC"},{name:"amber",hex:"#FFB952",lighterHex:"#FFE2B8"},{name:"gray",hex:"#9AA8B6",lighterHex:"#ABB8C4"}],jr=H_.map(t=>t.name),Fl=t=>{const e=H_.filter(n=>n.name===t)[0];return e?e.hex:""},Cce="",ij={props:{tabs:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>Xt(n.title)||Xt(n.name)).length},activeTab:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:t=>jr.includes(t)}},data(){return{internalActiveTab:this.activeTab,colorOptions:jr}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{tabs:{handler(t){const e=t.filter(n=>n.name===this.activeTab.name);[this.internalActiveTab]=e.length?e:t},immediate:!0}},methods:{colorHexCode:Fl,getSlotName(t){return t.name},handleClick(t,e){this.$emit("change",{event:t,item:e}),this.internalActiveTab=e},isActive(t){return Ll(this.internalActiveTab,t)},indicatorClass(t){return this.isActive(t)?`tab__indicator--active--${this.variant}`:""}}},sj={id:"inner-tabs"},rj={class:"inner-tabs__header-container"},aj={class:"inner-tabs__header"},oj=["onClick"],lj={class:"inner-tabs__content"};function cj(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",sj,[a.createElementVNode("div",rj,[a.createElementVNode("ul",aj,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.tabs,(o,c)=>(a.openBlock(),a.createElementBlock("li",{key:`${c}-${o.name}-tab`,role:"presentation"},[a.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:a.normalizeClass(["inner-tabs__tab",r.isActive(o)?"inner-tabs__tab--active":"inner-tabs__tab--inactive"]),onClick:d=>r.handleClick(d,o)},a.toDisplayString(o.title),11,oj),a.createElementVNode("div",{class:a.normalizeClass(r.indicatorClass(o)),style:a.normalizeStyle(r.activeBorderStyle)},null,6)]))),128))])]),a.createElementVNode("div",lj,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.tabs,(o,c)=>(a.openBlock(),a.createElementBlock("div",{key:`${c}-${o.name}-tab`,role:"tabpanel",class:a.normalizeClass(["content__pane",r.isActive(o)?"content__pane--active":"content__pane--inactive"])},[a.renderSlot(t.$slots,r.getSlotName(o))],2))),128))])])}const dj=oe(ij,[["render",cj]]),Sce="",uj={props:{href:{type:String,required:!0},newTab:{type:Boolean,default:!1},text:{type:String,required:!0},size:{type:String,default:"md"},bold:{type:Boolean,default:!1}}},hj=["href","target"];function fj(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["link__container",{"link__container--sm":n.size==="sm","link__container--md":n.size==="md","link__container--lg":n.size==="lg","link__container--bold":n.bold}])},[a.createElementVNode("a",{href:n.href,target:n.newTab?"_blank":!1},[a.renderSlot(t.$slots,"default",{class:"link__text"},()=>[a.createTextVNode(a.toDisplayString(n.text),1)])],8,hj)],2)}const su=oe(uj,[["render",fj]]),Mce="",pj={},mj=[(t=>(a.pushScopeId("data-v-59f3ef96"),t=t(),a.popScopeId(),t))(()=>a.createElementVNode("div",{class:"loading-bar__container"},[a.createElementVNode("div",{class:"loading-bar"})],-1))];function gj(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",null,mj)}const _j=oe(pj,[["render",gj],["__scopeId","data-v-59f3ef96"]]),Ece="",vj=["teal","green","blue","indigo","violet","pink","red","orange","amber"],yj={directives:{"on-click-outside":Ic.directive},components:{CdsIcon:$t,CdsButton:ba,CdsScrollable:g1},props:{modelValue:{type:Boolean,default:!1,required:!0},title:{type:String,default:"T\xEDtulo"},size:{type:String,default:"md"},disableOkButton:{type:Boolean,default:!1},disableCancelButton:{type:Boolean,default:!1},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOkButton:{type:Boolean,default:!1},noCloseButton:{type:Boolean,default:!1},noCancelButton:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1},noHeader:{type:Boolean,default:!1},okButtonText:{type:String,default:"Confirmar"},cancelButtonText:{type:String,default:"Cancelar"},actionButtonVariant:{type:String,default:"green",validator:t=>vj.includes(t)},scrollable:{type:Boolean,default:!1}},data(){return{innerValue:!1,tmp:""}},computed:{maxBodyHeight(){return`${window.innerHeight*.9-32*2-68-64}px`}},watch:{modelValue(t){this.innerValue=t}},mounted(){this.innerValue=this.modelValue},methods:{closeHandle(){this.innerValue=!this.innerValue,this.$emit("close",!0),this.$emit("update:modelValue",!1)},okHandle(){this.noCloseOkButton||(this.innerValue=!this.innerValue,this.$emit("update:modelValue",!1)),this.$emit("ok",!0)}}},bj={key:0,class:"cds-modal__backdrop"},wj={key:0},kj={class:"cds-modal__header"},xj={key:1,class:"cds-modal__body"},Cj={key:1,class:"cds-modal__footer"};function Sj(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-scrollable"),d=a.resolveComponent("cds-button"),h=a.resolveDirective("on-click-outside");return s.innerValue?(a.openBlock(),a.createElementBlock("div",bj,[s.innerValue?a.withDirectives((a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["cds-modal",`cds-modal--${n.size}`]),style:a.normalizeStyle(t.dynamicStyle)},[n.noHeader?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("header",wj,[a.renderSlot(t.$slots,"header",{},()=>[a.createElementVNode("div",kj,[a.createElementVNode("h3",null,a.toDisplayString(n.title),1),n.noCloseButton?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"cds-modal__close-icon",onClick:e[0]||(e[0]=(...f)=>r.closeHandle&&r.closeHandle(...f))},[a.createVNode(o,{name:"x-outline",height:"20",width:"20",color:"#29333D"})]))])],!0)])),a.createElementVNode("section",null,[n.scrollable?(a.openBlock(),a.createBlock(c,{key:0,class:"cds-modal__body"},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3})):(a.openBlock(),a.createElementBlock("div",xj,[a.renderSlot(t.$slots,"default",{},void 0,!0)]))]),n.noFooter?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("footer",Cj,[a.renderSlot(t.$slots,"footer",{},()=>[n.noCancelButton?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(d,{key:0,text:n.cancelButtonText,secondary:"",disabled:n.disableCancelButton,onClick:e[1]||(e[1]=f=>n.disableCancelButton?!1:r.closeHandle())},null,8,["text","disabled"])),a.createVNode(d,{class:"footer__ok-button",text:n.okButtonText,variant:n.actionButtonVariant,disabled:n.disableOkButton,onClick:e[2]||(e[2]=f=>n.disableOkButton?!1:r.okHandle())},null,8,["text","variant","disabled"])],!0)]))],6)),[[h,n.noCloseOnBackdrop?()=>{}:r.closeHandle]]):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}const Mj=oe(yj,[["render",Sj],["__scopeId","data-v-4a842748"]]);function Nh(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function Oj(t){return(...e)=>!t(...e)}function Dj(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function W_(t,e,n,i){return e?t.filter(s=>Dj(i(s,n),e)).sort((s,r)=>i(s,n).length-i(r,n).length):t}function Ej(t){return t.filter(e=>!e.$isLabel)}function zh(t,e){return n=>n.reduce((i,s)=>s[t]&&s[t].length?(i.push({$groupLabel:s[e],$isLabel:!0}),i.concat(s[t])):i,[])}function Tj(t,e,n,i,s){return r=>r.map(o=>{if(!o[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const c=W_(o[n],t,e,s);return c.length?{[i]:o[i],[n]:c}:[]})}const Y_=(...t)=>e=>t.reduce((n,i)=>i(n),e);var Ij={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(t,e){return Nh(t)?"":e?t[e]:t}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const t=this.search||"",e=t.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,e,this.label):W_(n,e,this.label,this.customLabel):n=this.groupValues?zh(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(Oj(this.isSelected)):n,this.taggable&&e.length&&!this.isExistingOption(e)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:t}):n.unshift({isTag:!0,label:t})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(t=>t[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(e=>this.customLabel(e,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(t,e,n){return Y_(Tj(e,n,this.groupValues,this.groupLabel,this.customLabel),zh(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return Y_(zh(this.groupValues,this.groupLabel),Ej)(t)},updateSearch(t){this.search=t},isExistingOption(t){return this.options?this.optionKeys.indexOf(t)>-1:!1},isSelected(t){const e=this.trackBy?t[this.trackBy]:t;return this.valueKeys.indexOf(e)>-1},isOptionDisabled(t){return!!t.$isDisabled},getOptionLabel(t){if(Nh(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;const e=this.customLabel(t,this.label);return Nh(e)?"":e},select(t,e){if(t.$isLabel&&this.groupSelect){this.selectGroup(t);return}if(!(this.blockKeys.indexOf(e)!==-1||this.disabled||t.$isDisabled||t.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(e==="Tab"&&!this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(t)){e!=="Tab"&&this.removeElement(t);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([t])):this.$emit("update:modelValue",t),this.$emit("select",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(t){const e=this.options.find(n=>n[this.groupLabel]===t.$groupLabel);if(!!e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const n=this.trackBy?e[this.groupValues].map(s=>s[this.trackBy]):e[this.groupValues],i=this.internalValue.filter(s=>n.indexOf(this.trackBy?s[this.trackBy]:s)===-1);this.$emit("update:modelValue",i)}else{let n=e[this.groupValues].filter(i=>!(this.isOptionDisabled(i)||this.isSelected(i)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(t){return t[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(t){return t[this.groupValues].every(this.isOptionDisabled)},removeElement(t,e=!0){if(this.disabled||t.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof t=="object"?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.multiple){const i=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",i)}else this.$emit("update:modelValue",null);this.$emit("remove",t,this.id),this.closeOnSelect&&e&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){!this.isOpen||(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>t||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))}}},Bj={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(t,e){return{"multiselect__option--highlight":t===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight(t,e){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];const n=this.options.find(i=>i[this.groupLabel]===e.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":t===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:t}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){!this.closeOnSelect||(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(t){this.pointer=t,this.pointerDirty=!0}}},j_={name:"vue-multiselect",mixins:[Ij,Bj],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:t=>`and ${t} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};const Aj={ref:"tags",class:"multiselect__tags"},Vj={class:"multiselect__tags-wrap"},$j={class:"multiselect__spinner"},Nj={key:0},zj={class:"multiselect__option"},Pj={class:"multiselect__option"},Lj=a.createTextVNode("No elements found. Consider changing the search query."),Fj={class:"multiselect__option"},Rj=a.createTextVNode("List is empty.");function Hj(t,e,n,i,s,r){return a.openBlock(),a.createBlock("div",{tabindex:t.searchable?-1:n.tabindex,class:[{"multiselect--active":t.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":r.isAbove,"multiselect--has-options-group":r.hasOptionGroup},"multiselect"],onFocus:e[14]||(e[14]=o=>t.activate()),onBlur:e[15]||(e[15]=o=>t.searchable?!1:t.deactivate()),onKeydown:[e[16]||(e[16]=a.withKeys(a.withModifiers(o=>t.pointerForward(),["self","prevent"]),["down"])),e[17]||(e[17]=a.withKeys(a.withModifiers(o=>t.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:e[18]||(e[18]=a.withKeys(a.withModifiers(o=>t.addPointerElement(o),["stop","self"]),["enter","tab"])),onKeyup:e[19]||(e[19]=a.withKeys(o=>t.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+t.id},[a.renderSlot(t.$slots,"caret",{toggle:t.toggle},()=>[a.createVNode("div",{onMousedown:e[1]||(e[1]=a.withModifiers(o=>t.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),a.renderSlot(t.$slots,"clear",{search:t.search}),a.createVNode("div",Aj,[a.renderSlot(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:r.visibleValues,isOpen:t.isOpen},()=>[a.withDirectives(a.createVNode("div",Vj,[(a.openBlock(!0),a.createBlock(a.Fragment,null,a.renderList(r.visibleValues,(o,c)=>a.renderSlot(t.$slots,"tag",{option:o,search:t.search,remove:t.removeElement},()=>[(a.openBlock(),a.createBlock("span",{class:"multiselect__tag",key:c},[a.createVNode("span",{textContent:a.toDisplayString(t.getOptionLabel(o))},null,8,["textContent"]),a.createVNode("i",{tabindex:"1",onKeypress:a.withKeys(a.withModifiers(d=>t.removeElement(o),["prevent"]),["enter"]),onMousedown:a.withModifiers(d=>t.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[a.vShow,r.visibleValues.length>0]]),t.internalValue&&t.internalValue.length>n.limit?a.renderSlot(t.$slots,"limit",{key:0},()=>[a.createVNode("strong",{class:"multiselect__strong",textContent:a.toDisplayString(n.limitText(t.internalValue.length-n.limit))},null,8,["textContent"])]):a.createCommentVNode("v-if",!0)]),a.createVNode(a.Transition,{name:"multiselect__loading"},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"loading",{},()=>[a.withDirectives(a.createVNode("div",$j,null,512),[[a.vShow,n.loading]])])]),_:3}),t.searchable?(a.openBlock(),a.createBlock("input",{key:0,ref:"search",name:n.name,id:t.id,type:"text",autocomplete:"off",spellcheck:!1,placeholder:t.placeholder,style:r.inputStyle,value:t.search,disabled:n.disabled,tabindex:n.tabindex,onInput:e[2]||(e[2]=o=>t.updateSearch(o.target.value)),onFocus:e[3]||(e[3]=a.withModifiers(o=>t.activate(),["prevent"])),onBlur:e[4]||(e[4]=a.withModifiers(o=>t.deactivate(),["prevent"])),onKeyup:e[5]||(e[5]=a.withKeys(o=>t.deactivate(),["esc"])),onKeydown:[e[6]||(e[6]=a.withKeys(a.withModifiers(o=>t.pointerForward(),["prevent"]),["down"])),e[7]||(e[7]=a.withKeys(a.withModifiers(o=>t.pointerBackward(),["prevent"]),["up"])),e[9]||(e[9]=a.withKeys(a.withModifiers(o=>t.removeLastElement(),["stop"]),["delete"]))],onKeypress:e[8]||(e[8]=a.withKeys(a.withModifiers(o=>t.addPointerElement(o),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+t.id},null,44,["name","id","placeholder","value","disabled","tabindex","aria-controls"])):a.createCommentVNode("v-if",!0),r.isSingleLabelVisible?(a.openBlock(),a.createBlock("span",{key:1,class:"multiselect__single",onMousedown:e[10]||(e[10]=a.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[a.renderSlot(t.$slots,"singleLabel",{option:r.singleValue},()=>[a.createTextVNode(a.toDisplayString(t.currentOptionLabel),1)])],32)):a.createCommentVNode("v-if",!0),r.isPlaceholderVisible?(a.openBlock(),a.createBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:e[11]||(e[11]=a.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[a.renderSlot(t.$slots,"placeholder",{},()=>[a.createTextVNode(a.toDisplayString(t.placeholder),1)])],32)):a.createCommentVNode("v-if",!0)],512),a.createVNode(a.Transition,{name:"multiselect"},{default:a.withCtx(()=>[a.withDirectives(a.createVNode("div",{class:"multiselect__content-wrapper",onFocus:e[12]||(e[12]=(...o)=>t.activate&&t.activate(...o)),tabindex:"-1",onMousedown:e[13]||(e[13]=a.withModifiers(()=>{},["prevent"])),style:{maxHeight:t.optimizedHeight+"px"},ref:"list"},[a.createVNode("ul",{class:"multiselect__content",style:r.contentStyle,role:"listbox",id:"listbox-"+t.id},[a.renderSlot(t.$slots,"beforeList"),t.multiple&&t.max===t.internalValue.length?(a.openBlock(),a.createBlock("li",Nj,[a.createVNode("span",zj,[a.renderSlot(t.$slots,"maxElements",{},()=>[a.createTextVNode("Maximum of "+a.toDisplayString(t.max)+" options selected. First remove a selected option to select another.",1)])])])):a.createCommentVNode("v-if",!0),!t.max||t.internalValue.length<t.max?(a.openBlock(!0),a.createBlock(a.Fragment,{key:1},a.renderList(t.filteredOptions,(o,c)=>(a.openBlock(),a.createBlock("li",{class:"multiselect__element",key:c,id:t.id+"-"+c,role:o&&(o.$isLabel||o.$isDisabled)?null:"option"},[o&&(o.$isLabel||o.$isDisabled)?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createBlock("span",{key:0,class:[t.optionHighlight(c,o),"multiselect__option"],onClick:a.withModifiers(d=>t.select(o),["stop"]),onMouseenter:a.withModifiers(d=>t.pointerSet(c),["self"]),"data-select":o&&o.isTag?t.tagPlaceholder:r.selectLabelText,"data-selected":r.selectedLabelText,"data-deselect":r.deselectLabelText},[a.renderSlot(t.$slots,"option",{option:o,search:t.search,index:c},()=>[a.createVNode("span",null,a.toDisplayString(t.getOptionLabel(o)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),o&&(o.$isLabel||o.$isDisabled)?(a.openBlock(),a.createBlock("span",{key:1,"data-select":t.groupSelect&&r.selectGroupLabelText,"data-deselect":t.groupSelect&&r.deselectGroupLabelText,class:[t.groupHighlight(c,o),"multiselect__option"],onMouseenter:a.withModifiers(d=>t.groupSelect&&t.pointerSet(c),["self"]),onMousedown:a.withModifiers(d=>t.selectGroup(o),["prevent"])},[a.renderSlot(t.$slots,"option",{option:o,search:t.search,index:c},()=>[a.createVNode("span",null,a.toDisplayString(t.getOptionLabel(o)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):a.createCommentVNode("v-if",!0)],8,["id","role"]))),128)):a.createCommentVNode("v-if",!0),a.withDirectives(a.createVNode("li",null,[a.createVNode("span",Pj,[a.renderSlot(t.$slots,"noResult",{search:t.search},()=>[Lj])])],512),[[a.vShow,n.showNoResults&&t.filteredOptions.length===0&&t.search&&!n.loading]]),a.withDirectives(a.createVNode("li",null,[a.createVNode("span",Fj,[a.renderSlot(t.$slots,"noOptions",{},()=>[Rj])])],512),[[a.vShow,n.showNoOptions&&(t.options.length===0||r.hasOptionGroup===!0&&t.filteredOptions.length===0)&&!t.search&&!n.loading]]),a.renderSlot(t.$slots,"afterList")],12,["id"])],36),[[a.vShow,t.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}j_.render=Hj;const Tce="",Ice="",eo=0,to=1,ru=t=>t===void 0?{}:JSON.parse(JSON.stringify(t)),Ph={components:{Multiselect:j_,CdsDivider:Tc,CdsCheckbox:b0,CdsSpacer:pd},props:{modelValue:{type:Array,required:!0},label:{type:String,default:"text"},variant:{type:String,default:"green"},trackBy:{type:String,default:"value"},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},errorMessage:{type:String,default:"Valor inv\xE1lido"},state:{type:String,default:"default"},options:{type:Array,required:!0},optionsField:{type:String,default:"value",required:!1},hideSelectAll:{type:Boolean,default:!1}},data(){return{selectedValue:this.$attrs.modelValue||[],internalOptions:ru(this.options),groupValues:null,groupLabel:null,selectAllValue:!1,queryString:"",indeterminate:!1,sassColorVariables:Gs,uniqueKey:_1()}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},errorState(){return this.state==="invalid"},selectedFancyMessage(){return t=>t===1?this.selectedValue[0][this.optionsField]:`${t} op\xE7\xF5es selecionadas`},selectAllFancyMessage(){return this.hasSelectedValues?"Desfazer sele\xE7\xE3o":"Selecionar todos"},hasSelectedValues(){return this.selectedValue.length>0},isAllItemsSelected(){return this.selectedValue.length===this.options.length},computedPlaceholder(){return this.$attrs.placeholder?this.$attrs.placeholder:"Selecione uma ou mais op\xE7\xF5es"},isGroupMode(){return this.internalOptions[eo]&&this.internalOptions[eo].$status||this.internalOptions[to]&&this.internalOptions[to].$status},attrs(){const{label:t,trackBy:e,options:n,...i}=this.$attrs;return i},inputBackgroundColor(){return this.disabled?this.sassColorVariables.n20:this.sassColorVariables.n0}},watch:{selectedValue(t){const e=ru(t);e.forEach(n=>delete n.isSelected),this.indeterminate=t.length>0&&t.length<this.options.length,this.$emit("input",e),this.$emit("update:modelValue",e)},isAllItemsSelected(t){if(!t&&this.selectAllValue){this.selectAllValue=!1;return}t&&!this.selectAllValue&&(this.selectAllValue=!0)},indeterminate(t){const e=document.getElementById(`select-all-input-id-${this.uniqueKey}`);e.indeterminate=t}},mounted(){this.modelValue===null||this.modelValue.length===0||(this.selectedValue=this.modelValue,this.updateRenderOptions(),this.indeterminate=this.hasSelectedValues&&this.selectedValue.length<this.options.length)},methods:{unselectItem(t){this.handleSelectItem(t),this.$emit("remove",t)},selectItem(t){this.handleSelectItem(t),this.$emit("select",t)},handleSelectItem(t){this.isGroupMode?(this.internalOptions[eo].options.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)}),this.internalOptions[to].options.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)})):this.internalOptions.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)})},toggleSelectAll(){this.selectAllValue=!this.hasSelectedValues,this.selectAllValue?this.selectedValue=this.options:this.selectedValue=[],this.$nextTick().then(()=>{this.isGroupMode?(this.internalOptions[eo].options=this.internalOptions[eo].options.map(t=>({...t,isSelected:this.selectAllValue})),this.internalOptions[to].options=this.internalOptions[to].options.map(t=>({...t,isSelected:this.selectAllValue}))):this.internalOptions=this.internalOptions.map(t=>({...t,isSelected:this.selectAllValue}))})},addItemViaCustomCheckbox(t){t.isSelected=!t.isSelected,this.selectedValue=[...this.selectedValue,t]},handleClose(){this.updateRenderOptions(),this.setContentWrapperScrollToTop(),this.$emit("close")},updateRenderOptions(){if(!this.hasSelectedValues){this.internalOptions=ru(this.options.map(e=>({...e,isSelected:!1}))),this.groupValues=null,this.groupLabel=null;return}this.selectedValue.forEach(e=>{e.isSelected=!0});let t=ru(this.options);t=t.map(e=>(this.selectedValue.some(i=>i[this.optionsField]===e[this.optionsField])?e.isSelected=!0:e.isSelected=!1,e)),this.internalOptions=[{$status:"Selecionados",options:[]},{$status:"N\xE3o selecionados",options:[]}],this.internalOptions[eo].options=this.selectedValue,this.internalOptions[to].options=t.filter(e=>!e.isSelected),this.groupValues="options",this.groupLabel="$status"},handleSearchChange(t){this.queryString=t},setContentWrapperScrollToTop(){document.querySelector(`span[data-cds-multiselect-identifier='${this.uniqueKey}']`).getElementsByClassName("multiselect__content-wrapper")[0].scrollTo(0,0)}}},U_=()=>{a.useCssVars(t=>({"7b3aebae":t.inputBackgroundColor}))},q_=Ph.setup;Ph.setup=q_?(t,e)=>(U_(),q_(t,e)):U_;const Wj=Ph,Yj=["data-cds-multiselect-identifier"],jj={key:0},Uj={key:1,class:"clustered-multiselect__label"},qj=["for"],Gj={key:0,class:"label__required-indicator"},Kj={key:1,class:"cds-multiselect__grouped-divider"},Zj={key:0,class:"cds-multiselect__group-label"},Xj={key:1,class:"cds-multiselect__option"},Jj={class:"option__checkbox"},Qj=["id","onUpdate:modelValue","name"],eU=["id","for","onClick"],tU={key:0,class:"multiselect__single"},nU={key:1},iU={key:0,class:"clustered-multiselect__error-message"};function sU(t,e,n,i,s,r){const o=a.resolveComponent("cds-checkbox"),c=a.resolveComponent("cds-spacer"),d=a.resolveComponent("cds-divider"),h=a.resolveComponent("multiselect",!0);return a.openBlock(),a.createElementBlock("span",{class:"cds-multiselect","data-cds-multiselect-identifier":s.uniqueKey},[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",jj,[a.renderSlot(t.$slots,"label")])):(a.openBlock(),a.createElementBlock("label",Uj,[a.createElementVNode("div",{class:"label__content",for:`clustered-multiselect-${s.uniqueKey}`},[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",Gj," * ")):a.createCommentVNode("",!0)],8,qj)]))]),a.createVNode(h,a.mergeProps({id:`clustered-multiselect-${s.uniqueKey}`,ref:"cds-multiselect"},r.attrs,{modelValue:s.selectedValue,"onUpdate:modelValue":e[2]||(e[2]=f=>s.selectedValue=f),options:s.internalOptions,label:n.optionsField,"track-by":n.trackBy,multiple:"","group-values":s.groupValues,"group-label":s.groupLabel,"close-on-select":!1,"clear-on-select":!1,"select-label":"","deselect-label":"","selected-label":"",disabled:n.disabled,placeholder:r.computedPlaceholder,"block-keys":["Delete","Enter"],onClose:r.handleClose,onSelect:r.selectItem,onRemove:r.unselectItem,onSearchChange:r.handleSearchChange}),{beforeList:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",null,[n.hideSelectAll?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"cds-multiselect__option multiselect__option",onClick:e[1]||(e[1]=(...f)=>r.toggleSelectAll&&r.toggleSelectAll(...f))},[a.createVNode(c,{"margin-left":"2"},{default:a.withCtx(()=>[a.createVNode(o,{id:`select-all-input-id-${s.uniqueKey}`,modelValue:s.selectAllValue,"onUpdate:modelValue":e[0]||(e[0]=f=>s.selectAllValue=f),label:r.selectAllFancyMessage,indeterminate:s.indeterminate,variant:n.variant},null,8,["id","modelValue","label","indeterminate","variant"])]),_:1})])),r.isGroupMode?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",Kj,[a.createVNode(d,{dimmed:""})]))],512),[[a.vShow,!s.queryString&&n.options.length]])]),option:a.withCtx(({option:f})=>[f.$isLabel?(a.openBlock(),a.createElementBlock("div",Zj,[a.createVNode(d,{text:f.$groupLabel,inline:"",dimmed:""},null,8,["text"])])):(a.openBlock(),a.createElementBlock("div",Xj,[a.createElementVNode("div",Jj,[a.withDirectives(a.createElementVNode("input",{id:`input-${f[n.optionsField]}-${s.uniqueKey}`,"onUpdate:modelValue":m=>f.isSelected=m,type:"checkbox",name:`input-${f[n.optionsField]}-${s.uniqueKey}`,value:!0},null,8,Qj),[[a.vModelCheckbox,f.isSelected]]),a.createElementVNode("label",{id:`checkbox-${f[n.optionsField]}`,for:`input-${f[n.optionsField]}-${s.uniqueKey}`,class:a.normalizeClass(f.isSelected?`option__checkbox--${n.variant}`:""),onClick:m=>r.addItemViaCustomCheckbox(f)},null,10,eU)]),a.createTextVNode(" "+a.toDisplayString(f[n.optionsField]),1)]))]),selection:a.withCtx(({values:f,isOpen:m})=>[f.length&&!m?(a.openBlock(),a.createElementBlock("span",tU,a.toDisplayString(r.selectedFancyMessage(f.length)),1)):(a.openBlock(),a.createElementBlock("span",nU))]),noResult:a.withCtx(()=>[a.createTextVNode(' Nenhum resultado encontrado para: "'),a.createElementVNode("strong",null,a.toDisplayString(s.queryString),1),a.createTextVNode('" ')]),noOptions:a.withCtx(()=>[a.createTextVNode(" N\xE3o h\xE1 nenhuma op\xE7\xE3o para ser exibida. ")]),_:1},16,["id","modelValue","options","label","track-by","group-values","group-label","disabled","placeholder","onClose","onSelect","onRemove","onSearchChange"]),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",iU,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)],8,Yj)}const rU=oe(Wj,[["render",sU]]),Bce="",aU={props:{items:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>{const i=Xt(n.path)&&Xt(n.route),s=Xt(n.items)||n.items.filter(r=>Xt(r.path)&&Xt(r.route)).length;return Xt(n.label)||s&&i}).length},activeItem:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:t=>jr.includes(t)}},data(){return{internalActiveItem:this.activeItem,colorOptions:jr}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{items:{handler(t){const e=t.filter(n=>n.name===this.activeItem.name);[this.internalActiveItem]=e.length?e:t},immediate:!0}},methods:{colorHexCode:Fl,handleClick(t,e){this.internalActiveItem=e,this.$emit("navbar-click",this.internalActiveItem)},isActive(t){return Ll(this.internalActiveItem,t)},resolveRoute({route:t,path:e}){const n=Xt(t)?e:t;return n instanceof String?{path:n}:n},routerPushTo(t){return this.resolveRoute(t)?this.resolveRoute(t).path:null},indicatorClass(t){return this.isActive(t)?`item__indicator--active--${this.variant}`:""}}},oU={id:"nav-bar"};function lU(t,e,n,i,s,r){const o=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",oU,[a.createElementVNode("ul",{class:a.normalizeClass({"nav-bar__container":n.items.length>=1})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.items,(c,d)=>(a.openBlock(),a.createElementBlock("li",{key:`${d}-${c.name}-item`,role:"presentation",class:a.normalizeClass(["nav-bar__item-container",r.isActive(c)?"nav-bar__item-container--active":"nav-bar__item-container--inactive"])},[a.createVNode(o,{to:r.routerPushTo(c),class:a.normalizeClass(["nav-bar__item",r.isActive(c)?"nav-bar__item--active":"nav-bar__item--inactive"]),onClick:h=>r.handleClick(h,c)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(c.label),1)]),_:2},1032,["to","class","onClick"]),a.createElementVNode("div",{class:a.normalizeClass(r.indicatorClass(c)),style:a.normalizeStyle(r.activeBorderStyle)},null,6)],2))),128))],2)])}const cU=oe(aU,[["render",lU]]);var dU=Object.defineProperty,uU=(t,e,n)=>e in t?dU(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,G_=(t,e,n)=>(uU(t,typeof e!="symbol"?e+"":e,n),n);const au={debug:!1,masked:!1,prefix:"",suffix:"",thousands:",",decimal:".",precision:2,disableNegative:!1,disabled:!1,min:null,max:null,allowBlank:!1,minimumNumberOfCharacters:0,modelModifiers:{number:!1},shouldRound:!0,focusOnRight:!1},K_=["+","-"],Z_=["decimal","thousands","prefix","suffix"];function Ur(t){return Math.max(0,Math.min(t,1e3))}function ou(t,e){return t=t.padStart(e+1,"0"),e===0?t:`${t.slice(0,-e)}.${t.slice(-e)}`}function X_(t){return t=t?t.toString():"",t.replace(/\D+/g,"")||"0"}function hU(t,e){return t.replace(/(\d)(?=(?:\d{3})+\b)/gm,`$1${e}`)}function fU(t,e,n){return e?t+n+e:t}function pU(t,e){return K_.includes(t)?(console.warn(`v-money3 "${e}" property don't accept "${t}" as a value.`),!1):/\d/g.test(t)?(console.warn(`v-money3 "${e}" property don't accept "${t}" (any number) as a value.`),!1):!0}function mU(t){for(const e of Z_)if(!pU(t[e],e))return!1;return!0}function J_(t){for(const e of Z_){t[e]=t[e].replace(/\d+/g,"");for(const n of K_)t[e]=t[e].replaceAll(n,"")}return t}function Q_(t){const e=t.length,n=t.indexOf(".");return e-(n+1)}function ev(t){return t.replace(/^(-?)0+(?!\.)(.+)/,"$1$2")}function tv(t){return/^-?[\d]+$/g.test(t)}function nv(t){return/^-?[\d]+(\.[\d]+)$/g.test(t)}function iv(t,e,n){return e>t.length-1?t:t.substring(0,e)+n+t.substring(e+1)}function sv(t,e){const n=e-Q_(t);if(n>=0)return t;let i=t.slice(0,n);const s=t.slice(n);if(i.charAt(i.length-1)==="."&&(i=i.slice(0,-1)),parseInt(s.charAt(0),10)>=5){for(let r=i.length-1;r>=0;r-=1){const o=i.charAt(r);if(o!=="."&&o!=="-"){const c=parseInt(o,10)+1;if(c<10)return iv(i,r,c);i=iv(i,r,"0")}}return`1${i}`}return i}function rv(t,e){const n=()=>{t.setSelectionRange(e,e)};t===document.activeElement&&(n(),setTimeout(n,1))}function av(t){return new Event(t,{bubbles:!0,cancelable:!1})}function Qe({debug:t=!1},...e){t&&console.log(...e)}class lu{constructor(e){G_(this,"number",0n),G_(this,"decimal",0),this.setNumber(e)}getNumber(){return this.number}getDecimalPrecision(){return this.decimal}setNumber(e){this.decimal=0,typeof e=="bigint"?this.number=e:typeof e=="number"?this.setupString(e.toString()):this.setupString(e)}toFixed(e=0,n=!0){let i=this.toString();const s=e-this.getDecimalPrecision();return s>0?(i.includes(".")||(i+="."),i.padEnd(i.length+s,"0")):s<0?n?sv(i,e):i.slice(0,s):i}toString(){let e=this.number.toString();if(this.decimal){let n=!1;return e.charAt(0)==="-"&&(e=e.substring(1),n=!0),e=e.padStart(e.length+this.decimal,"0"),e=`${e.slice(0,-this.decimal)}.${e.slice(-this.decimal)}`,e=ev(e),(n?"-":"")+e}return e}lessThan(e){const[n,i]=this.adjustComparisonNumbers(e);return n<i}biggerThan(e){const[n,i]=this.adjustComparisonNumbers(e);return n>i}isEqual(e){const[n,i]=this.adjustComparisonNumbers(e);return n===i}setupString(e){if(e=ev(e),tv(e))this.number=BigInt(e);else if(nv(e))this.decimal=Q_(e),this.number=BigInt(e.replace(".",""));else throw new Error(`BigNumber has received and invalid format for the constructor: ${e}`)}adjustComparisonNumbers(e){let n;e.constructor.name!=="BigNumber"?n=new lu(e):n=e;const i=this.getDecimalPrecision()-n.getDecimalPrecision();let s=this.getNumber(),r=n.getNumber();return i>0?r=n.getNumber()*10n**BigInt(i):i<0&&(s=this.getNumber()*10n**BigInt(i*-1)),[s,r]}}function gU(t,e=au,n=""){if(Qe(e,"utils format() - caller",n),Qe(e,"utils format() - input1",t),t==null)t="";else if(typeof t=="number")e.shouldRound?t=t.toFixed(Ur(e.precision)):t=t.toFixed(Ur(e.precision)+1).slice(0,-1);else if(e.modelModifiers&&e.modelModifiers.number&&tv(t))t=Number(t).toFixed(Ur(e.precision));else if(!e.disableNegative&&t==="-")return t;Qe(e,"utils format() - input2",t);const i=e.disableNegative?"":t.indexOf("-")>=0?"-":"";let s=t.replace(e.prefix,"").replace(e.suffix,"");Qe(e,"utils format() - filtered",s),!e.precision&&e.thousands!=="."&&nv(s)&&(s=sv(s,0),Qe(e,"utils format() - !opt.precision && isValidFloat()",s));const r=X_(s);Qe(e,"utils format() - numbers",r),Qe(e,"utils format() - numbersToCurrency",i+ou(r,e.precision));const o=new lu(i+ou(r,e.precision));Qe(e,"utils format() - bigNumber1",o.toString()),e.max&&o.biggerThan(e.max)&&o.setNumber(e.max),e.min&&o.lessThan(e.min)&&o.setNumber(e.min);const c=o.toFixed(Ur(e.precision),e.shouldRound);if(Qe(e,"utils format() - bigNumber2",o.toFixed(Ur(e.precision))),/^0(\.0+)?$/g.test(c)&&e.allowBlank)return"";let[d,h]=c.split(".");const f=h!==void 0?h.length:0;d=d.padStart(e.minimumNumberOfCharacters-f,"0"),d=hU(d,e.thousands);const m=e.prefix+fU(d,h,e.decimal)+e.suffix;return Qe(e,"utils format() - output",m),m}function ov(t,e=au,n=""){if(Qe(e,"utils unformat() - caller",n),Qe(e,"utils unformat() - input",t),!e.disableNegative&&t==="-")return Qe(e,"utils unformat() - return netagive symbol",t),t;const i=e.disableNegative?"":t.indexOf("-")>=0?"-":"",s=t.replace(e.prefix,"").replace(e.suffix,"");Qe(e,"utils unformat() - filtered",s);const r=X_(s);Qe(e,"utils unformat() - numbers",r);const o=new lu(i+ou(r,e.precision));Qe(e,"utils unformat() - bigNumber1",r.toString()),e.max&&o.biggerThan(e.max)&&o.setNumber(e.max),e.min&&o.lessThan(e.min)&&o.setNumber(e.min);let c=o.toFixed(Ur(e.precision),e.shouldRound);return e.modelModifiers&&e.modelModifiers.number&&(c=parseFloat(c)),Qe(e,"utils unformat() - output",c),c}const Lh=(t,e,n)=>{if(Qe(e,"directive setValue() - caller",n),!mU(e)){Qe(e,"directive setValue() - validateRestrictedOptions() return false. Stopping here...",t.value);return}let i=t.value.length-(t.selectionEnd||0);t.value=gU(t.value,e,n),i=Math.max(i,e.suffix.length),i=t.value.length-i,i=Math.max(i,e.prefix.length),rv(t,i),t.dispatchEvent(av("change"))},lv=(t,e)=>{const n=t.currentTarget,i=t.code==="Backspace"||t.code==="Delete",s=n.value.length-(n.selectionEnd||0)===0;if(Qe(e,"directive onkeydown() - el.value",n.value),Qe(e,"directive onkeydown() - backspacePressed",i),Qe(e,"directive onkeydown() - isAtEndPosition",s),e.allowBlank&&i&&s&&ov(n.value,e,"directive onkeydown allowBlank")===0&&(Qe(e,'directive onkeydown() - set el.value = ""',n.value),n.value="",n.dispatchEvent(av("change"))),Qe(e,"directive onkeydown() - e.key",t.key),t.key==="+"){Qe(e,"directive onkeydown() - unformat el.value",n.value);let r=ov(n.value,e,"directive onkeydown +");typeof r=="string"&&(r=parseFloat(r)),r<0&&(n.value=String(r*-1))}},cv=(t,e)=>{const n=t.currentTarget;Qe(e,"directive oninput()",n.value),/^[1-9]$/.test(n.value)&&(n.value=ou(n.value,Ur(e.precision)),Qe(e,"directive oninput() - is 1-9",n.value)),Lh(n,e,"directive oninput")},dv=(t,e)=>{const n=t.currentTarget;Qe(e,"directive onFocus()",n.value),e.focusOnRight&&rv(n,n.value.length-e.suffix.length)},_U={mounted(t,e){if(!e.value)return;const n=J_({...au,...e.value});if(Qe(n,"directive mounted() - opt",n),t.tagName.toLocaleUpperCase()!=="INPUT"){const i=t.getElementsByTagName("input");i.length!==1||(t=i[0])}t.onkeydown=i=>{lv(i,n)},t.oninput=i=>{cv(i,n)},t.onfocus=i=>{dv(i,n)},Qe(n,"directive mounted() - el.value",t.value),Lh(t,n,"directive mounted")},updated(t,e){if(!e.value)return;const n=J_({...au,...e.value});t.onkeydown=i=>{lv(i,n)},t.oninput=i=>{cv(i,n)},t.onfocus=i=>{dv(i,n)},Qe(n,"directive updated() - el.value",t.value),Qe(n,"directive updated() - opt",n),Lh(t,n,"directive updated")},beforeUnmount(t){t.onkeydown=null,t.oninput=null,t.onfocus=null}},vU={"#":{pattern:/\d/},X:{pattern:/[0-9a-z]/i},S:{pattern:/[a-z]/i},A:{pattern:/[a-z]/i,transform:t=>t.toLocaleUpperCase()},a:{pattern:/[a-z]/i,transform:t=>t.toLocaleLowerCase()},"\\":{escape:!0},"?":{optional:!0},"*":{repeat:!0},"|":{pipe:!0}},qr="__input-facade__";function Fh(t){this.masked=this.unmasked=t||""}function uv(){return new CustomEvent("input",{bubbles:!0,cancelable:!0,detail:{facade:!0}})}function Rh(t,e){return(Array.isArray(t)||typeof t=="string")&&(t={mask:t}),Object.assign(t||{},e)}function cu(t){const e=t instanceof HTMLInputElement?t:t.querySelector("input");if(!e)throw new Error("facade directive requires an input element");return e}function hv(t,e){const{target:n,detail:i,inputType:s}=t;if(i!=null&&i.facade||(t.stopPropagation(),["insertCompositionText","insertFromComposition"].includes(s)&&e[qr].config.mask))return!1;const r=n.value,o=n.selectionEnd,{oldValue:c}=n[qr];du(n,null,{emit:!1},t),yU(t,r,o),c!==n.value&&n.dispatchEvent(uv())}function yU(t,e,n){const{target:i}=t,s=["text","tel","search",null].includes(i.getAttribute("type")),r=i[qr]&&i[qr].config;if(i!==document.activeElement||!s||!r.mask&&!r.masked)return;const o=t.inputType||"insertText",c=["insertText","insertFromPaste"].includes(o),d=c&&n==e.length;let h=c&&e[n-1];const f=i.value.toLocaleLowerCase();let m=n;if(d)m=f.length;else if(h){h=h.toLocaleLowerCase();let g=m;for(;g<=f.length&&f.charAt(g-1)!==h;)g++;m=g<=f.length?g:m-1}i.setSelectionRange(m,m),setTimeout(function(){i.setSelectionRange(m,m)},0)}function du(t,e,{emit:n=!0,force:i=!1}={},s){var r,o;let{config:c,oldValue:d,isComposing:h}=t[qr],f=((o=(r=e==null?void 0:e.data)==null?void 0:r.model)==null?void 0:o.value)||t.value;if(!(c.mask&&h)&&(d=d||"",f=f||"",i||d!==f)){["deleteByCut","deleteContent","deleteContentBackward","deleteContentForward"].includes(s==null?void 0:s.inputType)&&(c={...c,short:!0});let m=mv(f,c);if(s&&typeof c.formatter=="function"){const g=c.formatter(m,s);if(typeof g=="string")m=mv(g,c);else if(g===!1){t.value=d;return}}t[qr].oldValue=m.masked,t.unmaskedValue=m.unmasked,t.value!==m.masked&&(t.value=m.masked),n&&t.dispatchEvent(uv())}}let Hh=vU,fv=!1;try{"a".localeCompare("b","i")}catch(t){fv=t.name==="RangeError"}function bU(t){t&&(Hh=t)}function wU(t,e){const n=e.masks.slice().sort((c,d)=>c.length-d.length),i=c=>Object.assign({},e,c),s=(c,d)=>{const h=Wh(t,i({mask:d})),f=c.unmasked.length;return h.unmasked.length>f?h:c};if(!n.length)return new Fh;const r=n.shift();let o=Wh(t,i({mask:r}));for(;n.length;){const c=n.shift();o=s(o,c)}return o}function Wh(t,e){var n,i;let{mask:s="",tokens:r,prefill:o=!1,short:c=!1}=e;r=r?Object.assign({},Hh,r):Hh;let d=new Fh,h=!1,f=0,m=0,g="";function v(b){const x=s[m+1],k=r[x];return{escape:!!(b!=null&&b.escape),optional:!!(k!=null&&k.optional),repeat:!!(k!=null&&k.repeat),...(k==null?void 0:k.pipe)&&{pipe:s.substring(m).match(/^(.\|)+./g)[0].split("|")}}}for(;m<s.length;){const b=s[m],x=r[b];let k=t[f];const O=v(x);if(x&&!h&&!O.pipe){if(O.escape){h=!0,m++;continue}if(!k)break;if((n=x.pattern)!=null&&n.test(k))k=((i=x.transform)==null?void 0:i.call(x,k))||k,d.unmasked+=k,d.masked+=g+k,g="",O.repeat||(m+=O.optional?2:1);else if(O.optional||O.repeat){m+=2;continue}f++}else if(O.pipe){if(!k)break;const T=O.pipe.find(pv.bind(null,k));T&&(d.unmasked+=T,d.masked+=g+T,m+=O.pipe.length*2-1,g=""),f++}else pv(k,b)?(d.masked+=g+b,f++,g="",O.optional&&(d.unmasked+=b)):O.optional||(g+=b),h=!1,m+=O.optional?2:1}return(o&&!d.unmasked||!c&&d.unmasked)&&(d.masked+=g),d}function pv(t,e){return fv?(t==null?void 0:t.localeCompare(e,void 0,{sensitivity:"base"}))===0:(t==null?void 0:t.toLocaleLowerCase())===(e==null?void 0:e.toLocaleLowerCase())}function mv(t,e){return t=(t||"").toString(),e=Rh(e),e.mask?Array.isArray(e.mask)?wU(t,Object.assign({},e,{masks:e.mask})):Wh(t,e):new Fh(t)}const no=qr,Rl={beforeMount:(t,{value:e,modifiers:n},i)=>{t=cu(t);const s=Rh(e,n);t[no]={config:s},du(t,i,{force:s.prefill})},mounted:t=>{t=cu(t);const e=t[no],n=t.parentElement||t,i=r=>{r.target===t&&hv(r,t)},s=r=>{r.target===t&&(r.type==="compositionend"?(t[no].isComposing=!1,hv(r,t)):t[no].isComposing=!0)};n.addEventListener("input",i,!0),n.addEventListener("compositionstart",s,!0),n.addEventListener("compositionupdate",s,!0),n.addEventListener("compositionend",s,!0),e.cleanup=()=>{n.removeEventListener("input",i,!0),n.removeEventListener("compositionstart",s,!0),n.removeEventListener("compositionend",s,!0),n.removeEventListener("compositionupdate",s,!0)}},updated:(t,{value:e,oldValue:n,modifiers:i},s)=>{t=cu(t),e!==n?(t[no].config=Rh(e,i),du(t,s,{force:!0})):du(t,s)},unmounted:t=>{cu(t)[no].cleanup()}},kU=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n},xU={name:"InputFacade",directives:{facade:Rl},props:{formatter:{type:Function,default:null},mask:{type:[String,Array],default:null},masked:{type:Boolean,default:!1},prefill:{type:Boolean,default:!1},short:{type:Boolean,default:!1},tokens:{type:Object,default:()=>({})},modelValue:{type:[String,Number],default:""},modelModifiers:{type:Object,default:()=>({})}},emits:["update:model-value","change","keydown","keyup","paste"],data(){return{maskedValue:this.modelValue,unmaskedValue:null}},computed:{config(){return{mask:this.mask,masked:this.masked,tokens:this.tokens,formatter:this.formatter,prefill:this.prefill,short:this.short}},emittedValue(){return this.mask&&this.masked?this.maskedValue:this.unmaskedValue}},watch:{modelValue(t){t!==this.emittedValue&&(this.maskedValue=t)},mask:{deep:!0,handler(t){!t&&!this.masked&&(this.maskedValue=this.unmaskedValue)}},masked(){this.emitInput()}},methods:{onInput({target:t}){this.maskedValue=t.value,this.unmaskedValue=t.unmaskedValue,this.modelModifiers.lazy||this.emitInput()},onChange(){this.$emit("change",this.emittedValue),this.modelModifiers.lazy&&this.emitInput()},emitInput(){this.$emit("update:model-value",this.emittedValue)}}},CU=["value"];function SU(t,e,n,i,s,r){const o=a.resolveDirective("facade");return a.withDirectives((a.openBlock(),a.createElementBlock("input",{type:"text",value:s.maskedValue,onInput:e[0]||(e[0]=(...c)=>r.onInput&&r.onInput(...c)),onChange:e[1]||(e[1]=(...c)=>r.onChange&&r.onChange(...c)),onKeyup:e[2]||(e[2]=c=>t.$emit("keyup",c)),onKeydown:e[3]||(e[3]=c=>t.$emit("keydown",c)),onPaste:e[4]||(e[4]=c=>t.$emit("paste",c))},null,40,CU)),[[o,r.config]])}const gv=kU(xU,[["render",SU]]),MU={install(t,e={}){e.tokens&&bU(e.tokens),t.component(gv.name,gv),t.directive(e.name||"facade",Rl)}};typeof window<"u"&&window.Vue&&window.Vue.use(MU);const Ace="",OU={directives:{money:_U,cdstip:Yo,facade:Rl},components:{CdsLink:su,CdsIcon:$t,CdsSpinner:fa},props:{modelValue:{type:[Number,String],default:0},unmaskedValue:{type:[Number,String],default:0},label:{type:String,default:"Label"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a informa\xE7\xE3o"},errorMessage:{type:String,default:"Valor inv\xE1lido"},fluid:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},money:{type:Boolean,default:!1},linkText:{type:String,default:null},linkUrl:{type:String,default:"https://cuida.framer.wiki/"}},data(){return{internalValue:"",isBeingFocused:!1,moneyDirectiveConfig:{decimal:",",thousands:".",prefix:"R$ ",precision:2,masked:!1}}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},stepperInputDynamicClass(){let t=this.fluid?"text-input--fluid":"text-input";return this.isBeingFocused?this.disabled||(this.state==="default"?t+=" text-input--focused":this.state==="valid"?t+=" text-input--focused-valid":this.state==="invalid"?t+=" text-input--focused-invalid":this.state==="loading"&&(t+=" text-input--focused-loading")):this.disabled?t+=" text-input--disabled":this.state==="valid"?t+=" text-input--valid":this.state==="invalid"&&(t+=" text-input--invalid"),t},labelDynamicClass(){return this.fluid?"text-input__label--fluid":"text-input__label"},validState(){return this.state==="valid"},errorState(){return this.state==="invalid"},loadingState(){return this.state==="loading"},inputClass(){return this.fluid?"text-input__field--fluid":"text-input__field"}},watch:{modelValue:{handler(t,e){t!==e&&(this.internalValue=t)},immediate:!0},internalValue(t){let e=String(t);if(this.money){let n=e.replace("R$ ","");n=n.replaceAll(".",","),n=n.replace(/(.*),(\d{2})/g,"$1.$2"),n=n.replaceAll(",",""),this.$emit("update:unmaskedValue",+n),this.$emit("update:modelValue",e)}else e.length>15?this.internalValue=+e.slice(0,15):(this.$emit("update:modelValue",+e),this.$emit("update:unmaskedValue",+e))}}},DU={key:0},EU={class:"label__content",for:"cds-text-input"},TU={key:0,class:"label__required-indicator"},IU=["placeholder","disabled"],BU=["placeholder","disabled"],AU={class:"text-input__icon-container"},VU={key:0,class:"text-input__error-message"};function $U(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-link"),d=a.resolveComponent("cds-spinner"),h=a.resolveDirective("cdstip"),f=a.resolveDirective("money");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",DU,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",{key:1,class:a.normalizeClass(r.labelDynamicClass)},[a.createElementVNode("div",EU,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",TU," * ")):a.createCommentVNode("",!0),n.tooltip?a.withDirectives((a.openBlock(),a.createBlock(o,{key:1,name:n.tooltipIcon,height:"20",width:"20",class:"label__icon"},null,8,["name"])),[[h,n.tooltip]]):a.createCommentVNode("",!0)]),n.linkText?(a.openBlock(),a.createBlock(c,{key:0,class:"label__link",href:n.linkUrl,text:n.linkText,"new-tab":""},null,8,["href","text"])):a.createCommentVNode("",!0)],2))]),a.createElementVNode("div",{class:a.normalizeClass(r.stepperInputDynamicClass)},[n.money?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,id:"cds-text-input","onUpdate:modelValue":e[0]||(e[0]=m=>s.internalValue=m),placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),onFocus:e[1]||(e[1]=m=>s.isBeingFocused=!0),onBlur:e[2]||(e[2]=m=>s.isBeingFocused=!1)},null,42,IU)),[[a.vModelText,s.internalValue,void 0,{lazy:!0}],[f,s.moneyDirectiveConfig]]):a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:1,id:"cds-text-input","onUpdate:modelValue":e[3]||(e[3]=m=>s.internalValue=m),placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),type:"number",onFocus:e[4]||(e[4]=m=>s.isBeingFocused=!0),onBlur:e[5]||(e[5]=m=>s.isBeingFocused=!1)},null,42,BU)),[[a.vModelText,s.internalValue]]),a.createElementVNode("div",AU,[r.validState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:0,height:"20",width:"20",name:"check-outline",class:"text-input__icon--check-icon"})):a.createCommentVNode("",!0),r.errorState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:1,height:"20",width:"20",name:"alert-outline",class:"text-input__icon--alert-circle-icon"})):a.createCommentVNode("",!0),r.loadingState&&!n.disabled?(a.openBlock(),a.createBlock(d,{key:2,size:"sm",variant:"blue",class:"text-input__icon--spinner-icon"})):a.createCommentVNode("",!0)])],2),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",VU,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const NU=oe(OU,[["render",$U],["__scopeId","data-v-ec7b076f"]]),Vce="",zU={},PU={class:"page-container__container"};function LU(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",PU,[a.renderSlot(t.$slots,"default",{},void 0,!0)])}const FU=oe(zU,[["render",LU],["__scopeId","data-v-2f5908a0"]]),$ce="",RU={components:{CdsLink:su},props:{title:{type:String,required:!0},subtitle:{type:String,default:null},compact:{type:Boolean,default:!1}},data(){return{hasURL:!1,url:"",splitedSubtitle:[]}},computed:{fancyUrl(){return this.url.split(/http:\/\/|https:\/\//)[1]}},mounted(){this.computedSubtitle()},methods:{computedSubtitle(){const t=/\b(?:http:\/\/|https:\/\/)?[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,}(?:\/\S*)?/g,e=this.subtitle.match(t);e&&e.length>0&&(this.splitedSubtitle=this.subtitle.split(e[0]),this.url=e[0])}}},HU={class:"page-header__title"},WU={key:0,class:"d-flex"},YU={class:"page-header__subtitle"},jU={key:1,class:"page-header__subtitle"},UU={class:"page-header__aside-slot"};function qU(t,e,n,i,s,r){const o=a.resolveComponent("cds-link");return a.openBlock(),a.createElementBlock("header",{class:a.normalizeClass(n.compact?"page-header__container--compact":"page-header__container")},[a.createElementVNode("div",null,[a.createElementVNode("p",HU,a.toDisplayString(n.title),1),s.splitedSubtitle.length>0?(a.openBlock(),a.createElementBlock("div",WU,[a.createElementVNode("span",YU,[a.createTextVNode(a.toDisplayString(s.splitedSubtitle[0])+" ",1),a.createVNode(o,{href:s.url,bold:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(r.fancyUrl),1)]),_:1},8,["href"]),a.createTextVNode(" "+a.toDisplayString(s.splitedSubtitle[1]),1)])])):(a.openBlock(),a.createElementBlock("div",jU,a.toDisplayString(n.subtitle),1))]),a.createElementVNode("div",UU,[a.renderSlot(t.$slots,"aside")])],2)}const GU=oe(RU,[["render",qU]]);class Wn{constructor(e,n,i,s=null){this.index=e,this.value=n,this.selected=i,this.text=s||n}}const Nce="",KU={components:{CdsChevron:jo},props:{modelValue:{type:[Number,String],default:1},total:{type:Number,default:1,validator:t=>t>=1},perPage:{type:Number,default:1,validator:t=>t>=1},fluid:{type:Boolean,default:!1},variant:{type:String,default:"green"}},data(){return{selectedPage:new Wn(null,parseInt(this.modelValue,10),!0),pages:[]}},computed:{pageCount(){return this.total/this.perPage<1?1:Math.ceil(this.total/this.perPage)},computedContainerClass(){return this.fluid?"pagination__container--fluid":"pagination__container"}},watch:{modelValue(t,e){t===e||t===this.selectedPage.value||(this.selectedPage=new Wn(null,parseInt(t,10),!0),this.resolvePages())}},beforeMount(){this.resolvePages()},methods:{resolveButtonClass(t){switch(t.index){case 0:return this.selectedPage.value===1?"pagination__button--first pagination__button--disabled":"pagination__button--first";case 1:return this.selectedPage.value===1?"pagination__button pagination__button--disabled":"pagination__button";case 7:return this.selectedPage.value===this.pageCount?"pagination__button pagination__button--disabled":"pagination__button";case 8:return this.selectedPage.value===this.pageCount?"pagination__button--last pagination__button--disabled":"pagination__button--last";default:return t.selected?Mg("pagination__button--active",this.variant):"pagination__button"}},resolvePages(){this.pages=[new Wn(0,"first",!1,"<<"),new Wn(1,"back",!1,"<"),...this.mountPagesArray(),new Wn(7,"forward",!1,">"),new Wn(8,"last",!1,">>")]},mountPagesArray(){const t=this.pageCount<5?this.pageCount+2:7,e=[];if(this.selectedPage.value<=3||this.pageCount<=5){this.selectedPage.index=this.selectedPage.value;for(let n=2;n<t;n++)e[n-2]=new Wn(n,n-1,this.selectedPage.value===n-1);return e}if(this.selectedPage.value<=this.pageCount-2){for(let n=2;n<t;n++){const i=this.selectedPage.value-4+n;e[n-2]=new Wn(n+1,i,this.selectedPage.value===i)}return e}for(let n=2;n<t;n++){const i=this.pageCount-6+n;e[n-2]=new Wn(n,i,this.selectedPage.value===i)}return e},handlePageClick(t){switch(t.value){case this.selectedPage.value:return;case"first":if(this.selectedPage.index===1)return;this.selectedPage=new Wn(null,1,!0),this.$emit("update:modelValue",1),this.resolvePages();return;case"last":if(this.selectedPage.index===this.pageCount)return;this.selectedPage=new Wn(null,this.pageCount,!0),this.$emit("update:modelValue",this.pageCount),this.resolvePages();return;case"back":if(this.selectedPage.index===1)return;this.$emit("update:modelValue",this.selectedPage.value-1),this.selectedPage=new Wn(null,this.selectedPage.value-1,!0),this.resolvePages();return;case"forward":if(this.selectedPage.value===this.pageCount)return;this.$emit("update:modelValue",this.selectedPage.value+1),this.selectedPage=new Wn(null,this.selectedPage.value+1,!0),this.resolvePages();return;default:this.selectedPage=new Wn(null,t.value,!0),this.$emit("update:modelValue",t.value),this.resolvePages();break}}}},ZU=["onClick"],XU={key:3};function JU(t,e,n,i,s,r){const o=a.resolveComponent("cds-chevron");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(r.computedContainerClass)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.pages,(c,d)=>(a.openBlock(),a.createElementBlock("div",{key:d,class:a.normalizeClass(r.resolveButtonClass(c)),onClick:h=>r.handlePageClick(c)},[d===0?(a.openBlock(),a.createBlock(o,{key:0,direction:"left",class:"pagination__double-chevron--left"})):a.createCommentVNode("",!0),d===0?(a.openBlock(),a.createBlock(o,{key:1,direction:"left",class:"pagination__double-chevron--left"})):a.createCommentVNode("",!0),d===1?(a.openBlock(),a.createBlock(o,{key:2,direction:"left"})):a.createCommentVNode("",!0),d>=2&&d<=s.pages.length-3?(a.openBlock(),a.createElementBlock("span",XU,a.toDisplayString(c.text),1)):a.createCommentVNode("",!0),d===s.pages.length-2?(a.openBlock(),a.createBlock(o,{key:4,direction:"right"})):a.createCommentVNode("",!0),d===s.pages.length-1?(a.openBlock(),a.createBlock(o,{key:5,direction:"right",class:"pagination__double-chevron--right"})):a.createCommentVNode("",!0),d===s.pages.length-1?(a.openBlock(),a.createBlock(o,{key:6,direction:"right",class:"pagination__double-chevron--right"})):a.createCommentVNode("",!0)],10,ZU))),128))],2)}const QU=oe(KU,[["render",JU],["__scopeId","data-v-69f01ddb"]]),zce="",eq={components:{CdsBox:bl,CdsDivider:Tc},props:{title:{type:String,default:"T\xEDtulo",required:!0},subtitle:{type:String,default:"Subt\xEDtulo",required:!0},noContentPadding:{type:Boolean,default:!1}},computed:{contentClass(){return this.noContentPadding?"panel-card__content--no-pading":"panel-card__content"}}},tq=t=>(a.pushScopeId("data-v-e1c5a182"),t=t(),a.popScopeId(),t),nq={class:"panel-card__header"},iq={class:"panel-card__title"},sq=tq(()=>a.createElementVNode("br",null,null,-1)),rq={class:"panel-card__subtitle"};function aq(t,e,n,i,s,r){const o=a.resolveComponent("cds-divider"),c=a.resolveComponent("cds-box");return a.openBlock(),a.createBlock(c,{class:"panel-card",padding:"0",fluid:""},{default:a.withCtx(()=>[a.createElementVNode("div",nq,[a.createElementVNode("div",null,[a.createElementVNode("span",iq,a.toDisplayString(n.title),1),sq,a.createElementVNode("span",rq,a.toDisplayString(n.subtitle),1)]),a.createElementVNode("div",null,[a.renderSlot(t.$slots,"panel-actions",{},void 0,!0)])]),a.createVNode(o,{dimmed:""}),a.createElementVNode("div",{class:a.normalizeClass(r.contentClass)},[a.renderSlot(t.$slots,"default",{},void 0,!0)],2)]),_:3})}const oq=oe(eq,[["render",aq],["__scopeId","data-v-e1c5a182"]]),Pce="",lq={props:{modelValue:{type:String,default:""},length:{type:Number,default:4},state:{type:String,default:"default"},visible:{type:Boolean,default:!1}},data(){return{innerValue:this.modelValue.split("")}},computed:{computedClass(){switch(this.state){case"valid":return"pin-input--valid";case"invalid":return"pin-input--invalid";default:return"pin-input"}}},watch:{modelValue(t){this.innerValue=t.split("")}},methods:{handleInput(t,e){let n=this.innerValue.join("");e<this.length&&t.inputType!=="deleteContentBackward"&&this.$refs[`pin-input${e+1}`][0].focus(),n.length===this.length&&this.$emit("update:modelValue",n)},handleBack(t){if(t>1){this.innerValue[t-1]="";let e=this.$refs[`pin-input${t-1}`][0];setTimeout(()=>{e.focus()},150)}},fixCursorPosition(t){let e=this.$refs[`pin-input${t}`][0];setTimeout(()=>{e.setSelectionRange(1,1)},3)},changeInputContent(t,e){this.$refs[`pin-input${e}`][0].value=t.key,e<this.length&&this.$refs[`pin-input${e+1}`][0].focus()}}},cq={class:"pin-input__container"},dq=["id","onUpdate:modelValue","type","onKeydown","onKeypress","onInput","onFocus"];function uq(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",cq,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.length,(o,c)=>a.withDirectives((a.openBlock(),a.createElementBlock("input",{id:`pin-input${o}`,key:c,ref_for:!0,ref:`pin-input${o}`,"onUpdate:modelValue":d=>s.innerValue[o-1]=d,type:n.visible?"text":"password",maxlength:"1",class:a.normalizeClass(["pin-input",r.computedClass]),autocomplete:"off",onKeydown:a.withKeys(a.withModifiers(d=>r.handleBack(o),["stop"]),["delete"]),onKeypress:d=>r.changeInputContent(d,o),onInput:d=>r.handleInput(d,o),onFocus:d=>r.fixCursorPosition(o)},null,42,dq)),[[a.vModelDynamic,s.innerValue[o-1]]])),128))])}const hq=oe(lq,[["render",uq],["__scopeId","data-v-d11b9fb6"]]),Lce="",Yh={props:{variant:{type:String,default:"green"},value:{type:Number,default:0,required:!0},showText:{type:Boolean,default:!1,required:!1},textAside:{type:Boolean,default:!1}},computed:{formatedvalue(){return`${parseInt(this.value*100,10)}%`},progressIndicatorStyle(){return{"--width":this.formatedvalue,"--leftMargin":this.textAside?"3":"10","--bottomMargin":this.textAside?"10":"2"}},textDirection(){return this.textAside?"row-reverse":"column"}}},_v=()=>{a.useCssVars(t=>({bf5feb56:t.textDirection}))},vv=Yh.setup;Yh.setup=vv?(t,e)=>(_v(),vv(t,e)):_v;const fq=Yh,pq={class:"progress-bar"},mq={class:"progress-bar__content"};function gq(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",pq,[n.showText?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(n.textAside?"bar__text--aside":"bar__text")},a.toDisplayString(r.formatedvalue),3)):a.createCommentVNode("",!0),a.createElementVNode("div",mq,[a.createElementVNode("div",{class:a.normalizeClass(`progress-bar__indicator--${n.variant}`),style:a.normalizeStyle(r.progressIndicatorStyle)},null,6)])])}const _q=oe(fq,[["render",gq],["__scopeId","data-v-d3a3d8d6"]]),Fce="",vq={props:{variant:{type:String,default:"green"},size:{type:String,default:"md",required:!1},value:{type:Number,default:0,required:!0},maxValue:{type:Number,default:100,required:!1},slim:{type:Boolean,default:!1},thick:{type:Boolean,default:!1},noLabel:{type:Boolean,default:!1}},computed:{label(){return this.maxValue>=100?`${Math.round(100*this.value/this.maxValue)}%`:`${this.value}/${this.maxValue}`},normalizedDashArray(){return`${100*this.value/this.maxValue}, 100`},stroke(){return this.slim?1.5:this.thick?4.5:3.5},labelClass(){return`progress-circular__label${this.maxValue>=100?"--reduced":""}`},circleIndicatorStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},methods:{colorHexCode:Fl}},yq=["stroke","stroke-width"],bq=["stroke-dasharray","stroke-width"];function wq(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("svg",{class:a.normalizeClass(["progress-circular",`progress-circular--${n.size}`]),viewBox:"0 0 36 36"},[a.createElementVNode("path",{class:"progress-circular__ring-background",stroke:t.backgroundColor,"stroke-width":r.stroke,d:`M18 2.0845
38
+ `):t}function Gx(t,e){const{element:n,datasetIndex:i,index:s}=e,r=t.getDatasetMeta(i).controller,{label:o,value:c}=r.getLabelAndValue(s);return{chart:t,label:o,parsed:r.getParsed(s),raw:t.data.datasets[i].data[s],formattedValue:c,dataset:r.getDataset(),dataIndex:s,datasetIndex:i,element:n}}function Z2(t,e){const n=t.chart.ctx,{body:i,footer:s,title:r}=t,{boxWidth:o,boxHeight:c}=e,d=en(e.bodyFont),h=en(e.titleFont),f=en(e.footerFont),m=r.length,g=s.length,v=i.length,b=yn(e.padding);let x=b.height,k=0,O=i.reduce((C,B)=>C+B.before.length+B.lines.length+B.after.length,0);if(O+=t.beforeBody.length+t.afterBody.length,m&&(x+=m*h.lineHeight+(m-1)*e.titleSpacing+e.titleMarginBottom),O){const C=e.displayColors?Math.max(c,d.lineHeight):d.lineHeight;x+=v*C+(O-v)*d.lineHeight+(O-1)*e.bodySpacing}g&&(x+=e.footerMarginTop+g*f.lineHeight+(g-1)*e.footerSpacing);let T=0;const N=function(C){k=Math.max(k,n.measureText(C).width+T)};return n.save(),n.font=h.string,dt(t.title,N),n.font=d.string,dt(t.beforeBody.concat(t.afterBody),N),T=e.displayColors?o+2+e.boxPadding:0,dt(i,C=>{dt(C.before,N),dt(C.lines,N),dt(C.after,N)}),T=0,n.font=f.string,dt(t.footer,N),n.restore(),k+=b.width,{width:k,height:x}}function Kx(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}function Zx(t,e,n,i){const{x:s,width:r}=i,o=n.caretSize+n.caretPadding;if(t==="left"&&s+r+o>e.width||t==="right"&&s-r-o<0)return!0}function Xx(t,e,n,i){const{x:s,width:r}=n,{width:o,chartArea:{left:c,right:d}}=t;let h="center";return i==="center"?h=s<=(c+d)/2?"left":"right":s<=r/2?h="left":s>=o-r/2&&(h="right"),Zx(h,t,e,n)&&(h="center"),h}function X2(t,e,n){const i=n.yAlign||e.yAlign||Kx(t,n);return{xAlign:n.xAlign||e.xAlign||Xx(t,e,n,i),yAlign:i}}function Jx(t,e){let{x:n,width:i}=t;return e==="right"?n-=i:e==="center"&&(n-=i/2),n}function Qx(t,e,n){let{y:i,height:s}=t;return e==="top"?i+=n:e==="bottom"?i-=s+n:i-=s/2,i}function J2(t,e,n,i){const{caretSize:s,caretPadding:r,cornerRadius:o}=t,{xAlign:c,yAlign:d}=n,h=s+r,{topLeft:f,topRight:m,bottomLeft:g,bottomRight:v}=Mr(o);let b=Jx(e,c);const x=Qx(e,d,h);return d==="center"?c==="left"?b+=h:c==="right"&&(b-=h):c==="left"?b-=Math.max(f,g)+s:c==="right"&&(b+=Math.max(m,v)+s),{x:dn(b,0,i.width-e.width),y:dn(x,0,i.height-e.height)}}function cd(t,e,n){const i=yn(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-i.right:t.x+i.left}function Q2(t){return Ji([],ms(t))}function eC(t,e,n){return js(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function eg(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const tg={beforeTitle:ds,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:ds,beforeBody:ds,beforeLabel:ds,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 Xe(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:ds,afterBody:ds,beforeFooter:ds,footer:ds,afterFooter:ds};function Fn(t,e,n,i){const s=t[e].call(n,i);return typeof s>"u"?tg[e].call(n,i):s}class a0 extends Bi{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,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()),s=i.enabled&&n.options.animation&&i.animations,r=new Ym(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=eC(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:i}=n,s=Fn(i,"beforeTitle",this,e),r=Fn(i,"title",this,e),o=Fn(i,"afterTitle",this,e);let c=[];return c=Ji(c,ms(s)),c=Ji(c,ms(r)),c=Ji(c,ms(o)),c}getBeforeBody(e,n){return Q2(Fn(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:i}=n,s=[];return dt(e,r=>{const o={before:[],lines:[],after:[]},c=eg(i,r);Ji(o.before,ms(Fn(c,"beforeLabel",this,r))),Ji(o.lines,Fn(c,"label",this,r)),Ji(o.after,ms(Fn(c,"afterLabel",this,r))),s.push(o)}),s}getAfterBody(e,n){return Q2(Fn(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:i}=n,s=Fn(i,"beforeFooter",this,e),r=Fn(i,"footer",this,e),o=Fn(i,"afterFooter",this,e);let c=[];return c=Ji(c,ms(s)),c=Ji(c,ms(r)),c=Ji(c,ms(o)),c}_createItems(e){const n=this._active,i=this.chart.data,s=[],r=[],o=[];let c=[],d,h;for(d=0,h=n.length;d<h;++d)c.push(Gx(this.chart,n[d]));return e.filter&&(c=c.filter((f,m,g)=>e.filter(f,m,g,i))),e.itemSort&&(c=c.sort((f,m)=>e.itemSort(f,m,i))),dt(c,f=>{const m=eg(e.callbacks,f);s.push(Fn(m,"labelColor",this,f)),r.push(Fn(m,"labelPointStyle",this,f)),o.push(Fn(m,"labelTextColor",this,f))}),this.labelColors=s,this.labelPointStyles=r,this.labelTextColors=o,this.dataPoints=c,c}update(e,n){const i=this.options.setContext(this.getContext()),s=this._active;let r,o=[];if(!s.length)this.opacity!==0&&(r={opacity:0});else{const c=gl[i.position].call(this,s,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const d=this._size=Z2(this,i),h=Object.assign({},c,d),f=X2(this.chart,i,h),m=J2(i,h,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,r={opacity:1,x:m.x,y:m.y,width:d.width,height:d.height,caretX:c.x,caretY:c.y}}this._tooltipItems=o,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,s){const r=this.getCaretPosition(e,i,s);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(e,n,i){const{xAlign:s,yAlign:r}=this,{caretSize:o,cornerRadius:c}=i,{topLeft:d,topRight:h,bottomLeft:f,bottomRight:m}=Mr(c),{x:g,y:v}=e,{width:b,height:x}=n;let k,O,T,N,C,B;return r==="center"?(C=v+x/2,s==="left"?(k=g,O=k-o,N=C+o,B=C-o):(k=g+b,O=k+o,N=C-o,B=C+o),T=k):(s==="left"?O=g+Math.max(d,f)+o:s==="right"?O=g+b-Math.max(h,m)-o:O=this.caretX,r==="top"?(N=v,C=N-o,k=O-o,T=O+o):(N=v+x,C=N+o,k=O+o,T=O-o),B=N),{x1:k,x2:O,x3:T,y1:N,y2:C,y3:B}}drawTitle(e,n,i){const s=this.title,r=s.length;let o,c,d;if(r){const h=Sa(i.rtl,this.x,this.width);for(e.x=cd(this,i.titleAlign,i),n.textAlign=h.textAlign(i.titleAlign),n.textBaseline="middle",o=en(i.titleFont),c=i.titleSpacing,n.fillStyle=i.titleColor,n.font=o.string,d=0;d<r;++d)n.fillText(s[d],h.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+c,d+1===r&&(e.y+=i.titleMarginBottom-c)}}_drawColorBox(e,n,i,s,r){const o=this.labelColors[i],c=this.labelPointStyles[i],{boxHeight:d,boxWidth:h}=r,f=en(r.bodyFont),m=cd(this,"left",r),g=s.x(m),v=d<f.lineHeight?(f.lineHeight-d)/2:0,b=n.y+v;if(r.usePointStyle){const x={radius:Math.min(h,d)/2,pointStyle:c.pointStyle,rotation:c.rotation,borderWidth:1},k=s.leftForLtr(g,h)+h/2,O=b+d/2;e.strokeStyle=r.multiKeyBackground,e.fillStyle=r.multiKeyBackground,N1(e,x,k,O),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,N1(e,x,k,O)}else{e.lineWidth=Ue(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;const x=s.leftForLtr(g,h),k=s.leftForLtr(s.xPlus(g,1),h-2),O=Mr(o.borderRadius);Object.values(O).some(T=>T!==0)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,il(e,{x,y:b,w:h,h:d,radius:O}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),il(e,{x:k,y:b+1,w:h-2,h:d-2,radius:O}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(x,b,h,d),e.strokeRect(x,b,h,d),e.fillStyle=o.backgroundColor,e.fillRect(k,b+1,h-2,d-2))}e.fillStyle=this.labelTextColors[i]}drawBody(e,n,i){const{body:s}=this,{bodySpacing:r,bodyAlign:o,displayColors:c,boxHeight:d,boxWidth:h,boxPadding:f}=i,m=en(i.bodyFont);let g=m.lineHeight,v=0;const b=Sa(i.rtl,this.x,this.width),x=function(F){n.fillText(F,b.x(e.x+v),e.y+g/2),e.y+=g+r},k=b.textAlign(o);let O,T,N,C,B,$,L;for(n.textAlign=o,n.textBaseline="middle",n.font=m.string,e.x=cd(this,k,i),n.fillStyle=i.bodyColor,dt(this.beforeBody,x),v=c&&k!=="right"?o==="center"?h/2+f:h+2+f:0,C=0,$=s.length;C<$;++C){for(O=s[C],T=this.labelTextColors[C],n.fillStyle=T,dt(O.before,x),N=O.lines,c&&N.length&&(this._drawColorBox(n,e,C,b,i),g=Math.max(m.lineHeight,d)),B=0,L=N.length;B<L;++B)x(N[B]),g=m.lineHeight;dt(O.after,x)}v=0,g=m.lineHeight,dt(this.afterBody,x),e.y-=r}drawFooter(e,n,i){const s=this.footer,r=s.length;let o,c;if(r){const d=Sa(i.rtl,this.x,this.width);for(e.x=cd(this,i.footerAlign,i),e.y+=i.footerMarginTop,n.textAlign=d.textAlign(i.footerAlign),n.textBaseline="middle",o=en(i.footerFont),n.fillStyle=i.footerColor,n.font=o.string,c=0;c<r;++c)n.fillText(s[c],d.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+i.footerSpacing}}drawBackground(e,n,i,s){const{xAlign:r,yAlign:o}=this,{x:c,y:d}=e,{width:h,height:f}=i,{topLeft:m,topRight:g,bottomLeft:v,bottomRight:b}=Mr(s.cornerRadius);n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.beginPath(),n.moveTo(c+m,d),o==="top"&&this.drawCaret(e,n,i,s),n.lineTo(c+h-g,d),n.quadraticCurveTo(c+h,d,c+h,d+g),o==="center"&&r==="right"&&this.drawCaret(e,n,i,s),n.lineTo(c+h,d+f-b),n.quadraticCurveTo(c+h,d+f,c+h-b,d+f),o==="bottom"&&this.drawCaret(e,n,i,s),n.lineTo(c+v,d+f),n.quadraticCurveTo(c,d+f,c,d+f-v),o==="center"&&r==="left"&&this.drawCaret(e,n,i,s),n.lineTo(c,d+m),n.quadraticCurveTo(c,d,c+m,d),n.closePath(),n.fill(),s.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,i=this.$animations,s=i&&i.x,r=i&&i.y;if(s||r){const o=gl[e.position].call(this,this._active,this._eventPosition);if(!o)return;const c=this._size=Z2(this,e),d=Object.assign({},o,this._size),h=X2(n,e,d),f=J2(e,d,h,n);(s._to!==f.x||r._to!==f.y)&&(this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=c.width,this.height=c.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},r={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=yn(n.padding),c=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&c&&(e.save(),e.globalAlpha=i,this.drawBackground(r,e,s,n),$m(e,n.textDirection),r.y+=o.top,this.drawTitle(r,e,n),this.drawBody(r,e,n),this.drawFooter(r,e,n),Nm(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const i=this._active,s=e.map(({datasetIndex:c,index:d})=>{const h=this.chart.getDatasetMeta(c);if(!h)throw new Error("Cannot find a dataset at index "+c);return{datasetIndex:c,element:h.data[d],index:d}}),r=!$c(i,s),o=this._positionChanged(s,n);(r||o)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,r=this._active||[],o=this._getActiveElements(e,r,n,i),c=this._positionChanged(o,e),d=n||!$c(o,r)||c;return d&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),d}_getActiveElements(e,n,i,s){const r=this.options;if(e.type==="mouseout")return[];if(!s)return n.filter(c=>this.chart.data.datasets[c.datasetIndex]&&this.chart.getDatasetMeta(c.datasetIndex).controller.getParsed(c.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,r.mode,r,i);return r.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:i,caretY:s,options:r}=this,o=gl[r.position].call(this,e,n);return o!==!1&&(i!==o.x||s!==o.y)}}re(a0,"positioners",gl);var tC={id:"tooltip",_element:a0,positioners:gl,afterInit(t,e,n){n&&(t.tooltip=new a0({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,cancelable:!0})===!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:tg},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"]},nC=Object.freeze({__proto__:null,Colors:px,Decimation:vx,Filler:Px,Legend:Yx,SubTitle:qx,Title:Ux,Tooltip:tC});const iC=(t,e,n,i)=>(typeof e=="string"?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function sC(t,e,n,i){const s=t.indexOf(e);if(s===-1)return iC(t,e,n,i);const r=t.lastIndexOf(e);return s!==r?n:s}const rC=(t,e)=>t===null?null:dn(Math.round(t),0,e);function ng(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class o0 extends Br{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:s,label:r}of n)i[s]===r&&i.splice(s,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(Xe(e))return null;const i=this.getLabels();return n=isFinite(n)&&i[n]===e?n:sC(i,e,$e(n,e),this._addedLabels),rC(n,i.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(i=0),n||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const e=this.min,n=this.max,i=this.options.offset,s=[];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 o=e;o<=n;o++)s.push({value:o});return s}getLabelForValue(e){return ng.call(this,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}}re(o0,"id","category"),re(o0,"defaults",{ticks:{callback:ng}});function aC(t,e){const n=[],{bounds:s,step:r,min:o,max:c,precision:d,count:h,maxTicks:f,maxDigits:m,includeBounds:g}=t,v=r||1,b=f-1,{min:x,max:k}=e,O=!Xe(o),T=!Xe(c),N=!Xe(h),C=(k-x)/(m+1);let B=am((k-x)/b/v)*v,$,L,F,q;if(B<1e-14&&!O&&!T)return[{value:x},{value:k}];q=Math.ceil(k/B)-Math.floor(x/B),q>b&&(B=am(q*B/b/v)*v),Xe(d)||($=Math.pow(10,d),B=Math.ceil(B*$)/$),s==="ticks"?(L=Math.floor(x/B)*B,F=Math.ceil(k/B)*B):(L=x,F=k),O&&T&&r&&ew((c-o)/r,B/1e3)?(q=Math.round(Math.min((c-o)/B,f)),B=(c-o)/q,L=o,F=c):N?(L=O?o:L,F=T?c:F,q=h-1,B=(F-L)/q):(q=(F-L)/B,Jo(q,Math.round(q),B/1e3)?q=Math.round(q):q=Math.ceil(q));const ee=Math.max(lm(B),lm(L));$=Math.pow(10,Xe(d)?ee:d),L=Math.round(L*$)/$,F=Math.round(F*$)/$;let ne=0;for(O&&(g&&L!==o?(n.push({value:o}),L<o&&ne++,Jo(Math.round((L+ne*B)*$)/$,o,ig(o,C,t))&&ne++):L<o&&ne++);ne<q;++ne){const K=Math.round((L+ne*B)*$)/$;if(T&&K>c)break;n.push({value:K})}return T&&g&&F!==c?n.length&&Jo(n[n.length-1].value,c,ig(c,C,t))?n[n.length-1].value=c:n.push({value:c}):(!T||F===c)&&n.push({value:F}),n}function ig(t,e,{horizontal:n,minRotation:i}){const s=Ti(i),r=(n?Math.sin(s):Math.cos(s))||.001,o=.75*e*(""+t).length;return Math.min(e/r,o)}class dd extends Br{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 Xe(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:s,max:r}=this;const o=d=>s=n?s:d,c=d=>r=i?r:d;if(e){const d=Zi(s),h=Zi(r);d<0&&h<0?c(0):d>0&&h>0&&o(0)}if(s===r){let d=r===0?1:Math.abs(r*.05);c(r+d),e||o(s-d)}this.min=s,this.max=r}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=e,s;return i?(s=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),n=n||11),n&&(s=Math.min(n,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s={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,o=aC(s,r);return e.bounds==="ticks"&&om(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&e.length){const s=(i-n)/Math.max(e.length-1,1)/2;n-=s,i+=s}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(e){return tl(e,this.chart.options.locale,this.options.ticks.format)}}class l0 extends dd{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Ht(e)?e:0,this.max=Ht(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,i=Ti(this.options.ticks.minRotation),s=(e?Math.sin(i):Math.cos(i))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,r.lineHeight/s))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}re(l0,"id","linear"),re(l0,"defaults",{ticks:{callback:Lc.formatters.numeric}});const _l=t=>Math.floor(Ys(t)),Ar=(t,e)=>Math.pow(10,_l(t)+e);function sg(t){return t/Math.pow(10,_l(t))===1}function rg(t,e,n){const i=Math.pow(10,n),s=Math.floor(t/i);return Math.ceil(e/i)-s}function oC(t,e){const n=e-t;let i=_l(n);for(;rg(t,e,i)>10;)i++;for(;rg(t,e,i)<10;)i--;return Math.min(i,_l(t))}function lC(t,{min:e,max:n}){e=Jn(t.min,e);const i=[],s=_l(e);let r=oC(e,n),o=r<0?Math.pow(10,Math.abs(r)):1;const c=Math.pow(10,r),d=s>r?Math.pow(10,s):0,h=Math.round((e-d)*o)/o,f=Math.floor((e-d)/c/10)*c*10;let m=Math.floor((h-f)/Math.pow(10,r)),g=Jn(t.min,Math.round((d+f+m*Math.pow(10,r))*o)/o);for(;g<n;)i.push({value:g,major:sg(g),significand:m}),m>=10?m=m<15?15:20:m++,m>=20&&(r++,m=2,o=r>=0?1:o),g=Math.round((d+f+m*Math.pow(10,r))*o)/o;const v=Jn(t.max,g);return i.push({value:v,major:sg(v),significand:m}),i}class c0 extends Br{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const i=dd.prototype.parse.apply(this,[e,n]);if(i===0){this._zero=!0;return}return Ht(i)&&i>0?i:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Ht(e)?Math.max(0,e):null,this.max=Ht(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Ht(this._userMin)&&(this.min=e===Ar(this.min,0)?Ar(this.min,-1):Ar(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let i=this.min,s=this.max;const r=c=>i=e?i:c,o=c=>s=n?s:c;i===s&&(i<=0?(r(1),o(10)):(r(Ar(i,-1)),o(Ar(s,1)))),i<=0&&r(Ar(s,-1)),s<=0&&o(Ar(i,1)),this.min=i,this.max=s}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},i=lC(n,this);return e.bounds==="ticks"&&om(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":tl(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=Ys(e),this._valueRange=Ys(this.max)-Ys(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Ys(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}re(c0,"id","logarithmic"),re(c0,"defaults",{ticks:{callback:Lc.formatters.logarithmic,major:{enabled:!0}}});function d0(t){const e=t.ticks;if(e.display&&t.display){const n=yn(e.backdropPadding);return $e(e.font&&e.font.size,Wt.font.size)+n.height}return 0}function cC(t,e,n){return n=Dt(n)?n:[n],{w:_w(t,e.string,n),h:n.length*e.lineHeight}}function ag(t,e,n,i,s){return t===i||t===s?{start:e-n/2,end:e+n/2}:t<i||t>s?{start:e-n,end:e}:{start:e,end:e+n}}function dC(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=[],s=[],r=t._pointLabels.length,o=t.options.pointLabels,c=o.centerPointLabels?Et/r:0;for(let d=0;d<r;d++){const h=o.setContext(t.getPointLabelContext(d));s[d]=h.padding;const f=t.getPointPosition(d,t.drawingArea+s[d],c),m=en(h.font),g=cC(t.ctx,m,t._pointLabels[d]);i[d]=g;const v=Qn(t.getIndexAngle(d)+c),b=Math.round(D1(v)),x=ag(b,f.x,g.w,0,180),k=ag(b,f.y,g.h,90,270);uC(n,e,v,x,k)}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=pC(t,i,s)}function uC(t,e,n,i,s){const r=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let c=0,d=0;i.start<e.l?(c=(e.l-i.start)/r,t.l=Math.min(t.l,e.l-c)):i.end>e.r&&(c=(i.end-e.r)/r,t.r=Math.max(t.r,e.r+c)),s.start<e.t?(d=(e.t-s.start)/o,t.t=Math.min(t.t,e.t-d)):s.end>e.b&&(d=(s.end-e.b)/o,t.b=Math.max(t.b,e.b+d))}function hC(t,e,n){const i=t.drawingArea,{extra:s,additionalAngle:r,padding:o,size:c}=n,d=t.getPointPosition(e,i+s+o,r),h=Math.round(D1(Qn(d.angle+Ut))),f=_C(d.y,c.h,h),m=mC(h),g=gC(d.x,c.w,m);return{visible:!0,x:d.x,y:f,textAlign:m,left:g,top:f,right:g+c.w,bottom:f+c.h}}function fC(t,e){if(!e)return!0;const{left:n,top:i,right:s,bottom:r}=t;return!(fs({x:n,y:i},e)||fs({x:n,y:r},e)||fs({x:s,y:i},e)||fs({x:s,y:r},e))}function pC(t,e,n){const i=[],s=t._pointLabels.length,r=t.options,{centerPointLabels:o,display:c}=r.pointLabels,d={extra:d0(r)/2,additionalAngle:o?Et/s:0};let h;for(let f=0;f<s;f++){d.padding=n[f],d.size=e[f];const m=hC(t,f,d);i.push(m),c==="auto"&&(m.visible=fC(m,h),m.visible&&(h=m))}return i}function mC(t){return t===0||t===180?"center":t<180?"left":"right"}function gC(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function _C(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function vC(t,e,n){const{left:i,top:s,right:r,bottom:o}=n,{backdropColor:c}=e;if(!Xe(c)){const d=Mr(e.borderRadius),h=yn(e.backdropPadding);t.fillStyle=c;const f=i-h.left,m=s-h.top,g=r-i+h.width,v=o-s+h.height;Object.values(d).some(b=>b!==0)?(t.beginPath(),il(t,{x:f,y:m,w:g,h:v,radius:d}),t.fill()):t.fillRect(f,m,g,v)}}function yC(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let s=e-1;s>=0;s--){const r=t._pointLabelItems[s];if(!r.visible)continue;const o=i.setContext(t.getPointLabelContext(s));vC(n,o,r);const c=en(o.font),{x:d,y:h,textAlign:f}=r;Sr(n,t._pointLabels[s],d,h+c.lineHeight/2,c,{color:o.color,textAlign:f,textBaseline:"middle"})}}function og(t,e,n,i){const{ctx:s}=t;if(n)s.arc(t.xCenter,t.yCenter,e,0,Tt);else{let r=t.getPointPosition(0,e);s.moveTo(r.x,r.y);for(let o=1;o<i;o++)r=t.getPointPosition(o,e),s.lineTo(r.x,r.y)}}function bC(t,e,n,i,s){const r=t.ctx,o=e.circular,{color:c,lineWidth:d}=e;!o&&!i||!c||!d||n<0||(r.save(),r.strokeStyle=c,r.lineWidth=d,r.setLineDash(s.dash),r.lineDashOffset=s.dashOffset,r.beginPath(),og(t,n,o,i),r.closePath(),r.stroke(),r.restore())}function wC(t,e,n){return js(t,{label:n,index:e,type:"pointLabel"})}class vl extends dd{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=yn(d0(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=Ht(e)&&!isNaN(e)?e:0,this.max=Ht(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/d0(this.options))}generateTickLabels(e){dd.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,i)=>{const s=St(this.options.pointLabels.callback,[n,i],this);return s||s===0?s:""}).filter((n,i)=>this.chart.getDataVisibility(i))}fit(){const e=this.options;e.display&&e.pointLabels.display?dC(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,i,s){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,i,s))}getIndexAngle(e){const n=Tt/(this._pointLabels.length||1),i=this.options.startAngle||0;return Qn(e*n+Ti(i))}getDistanceFromCenterForValue(e){if(Xe(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(Xe(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 wC(this.getContext(),e,i)}}getPointPosition(e,n,i=0){const s=this.getIndexAngle(e)-Ut+i;return{x:Math.cos(s)*n+this.xCenter,y:Math.sin(s)*n+this.yCenter,angle:s}}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:s,bottom:r}=this._pointLabelItems[e];return{left:n,top:i,right:s,bottom:r}}drawBackground(){const{backgroundColor:e,grid:{circular:n}}=this.options;if(e){const i=this.ctx;i.save(),i.beginPath(),og(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:s,border:r}=n,o=this._pointLabels.length;let c,d,h;if(n.pointLabels.display&&yC(this,o),s.display&&this.ticks.forEach((f,m)=>{if(m!==0||m===0&&this.min<0){d=this.getDistanceFromCenterForValue(f.value);const g=this.getContext(m),v=s.setContext(g),b=r.setContext(g);bC(this,v,d,o,b)}}),i.display){for(e.save(),c=o-1;c>=0;c--){const f=i.setContext(this.getPointLabelContext(c)),{color:m,lineWidth:g}=f;!g||!m||(e.lineWidth=g,e.strokeStyle=m,e.setLineDash(f.borderDash),e.lineDashOffset=f.borderDashOffset,d=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),h=this.getPointPosition(c,d),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(h.x,h.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,i=n.ticks;if(!i.display)return;const s=this.getIndexAngle(0);let r,o;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(s),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((c,d)=>{if(d===0&&this.min>=0&&!n.reverse)return;const h=i.setContext(this.getContext(d)),f=en(h.font);if(r=this.getDistanceFromCenterForValue(this.ticks[d].value),h.showLabelBackdrop){e.font=f.string,o=e.measureText(c.label).width,e.fillStyle=h.backdropColor;const m=yn(h.backdropPadding);e.fillRect(-o/2-m.left,-r-f.size/2-m.top,o+m.width,f.size+m.height)}Sr(e,c.label,0,-r,f,{color:h.color,strokeColor:h.textStrokeColor,strokeWidth:h.textStrokeWidth})}),e.restore()}drawTitle(){}}re(vl,"id","radialLinear"),re(vl,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Lc.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),re(vl,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),re(vl,"descriptors",{angleLines:{_fallback:"grid"}});const ud={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}},Rn=Object.keys(ud);function lg(t,e){return t-e}function cg(t,e){if(Xe(e))return null;const n=t._adapter,{parser:i,round:s,isoWeekday:r}=t._parseOpts;let o=e;return typeof i=="function"&&(o=i(o)),Ht(o)||(o=typeof i=="string"?n.parse(o,i):n.parse(o)),o===null?null:(s&&(o=s==="week"&&(ka(r)||r===!0)?n.startOf(o,"isoWeek",r):n.startOf(o,s)),+o)}function dg(t,e,n,i){const s=Rn.length;for(let r=Rn.indexOf(t);r<s-1;++r){const o=ud[Rn[r]],c=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-e)/(c*o.size))<=i)return Rn[r]}return Rn[s-1]}function kC(t,e,n,i,s){for(let r=Rn.length-1;r>=Rn.indexOf(n);r--){const o=Rn[r];if(ud[o].common&&t._adapter.diff(s,i,o)>=e-1)return o}return Rn[n?Rn.indexOf(n):0]}function xC(t){for(let e=Rn.indexOf(t)+1,n=Rn.length;e<n;++e)if(ud[Rn[e]].common)return Rn[e]}function ug(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:i,hi:s}=T1(n,e),r=n[i]>=e?n[i]:n[s];t[r]=!0}}function CC(t,e,n,i){const s=t._adapter,r=+s.startOf(e[0].value,i),o=e[e.length-1].value;let c,d;for(c=r;c<=o;c=+s.add(c,1,i))d=n[c],d>=0&&(e[d].major=!0);return e}function hg(t,e,n){const i=[],s={},r=e.length;let o,c;for(o=0;o<r;++o)c=e[o],s[c]=o,i.push({value:c,major:!1});return r===0||!n?i:CC(t,i,s,n)}class yl extends Br{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={}),s=this._adapter=new A9._date(e.adapters.date);s.init(n),Zo(i.displayFormats,s.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:cg(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:s,max:r,minDefined:o,maxDefined:c}=this.getUserBounds();function d(h){!o&&!isNaN(h.min)&&(s=Math.min(s,h.min)),!c&&!isNaN(h.max)&&(r=Math.max(r,h.max))}(!o||!c)&&(d(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&d(this.getMinMax(!1))),s=Ht(s)&&!isNaN(s)?s:+n.startOf(Date.now(),i),r=Ht(r)&&!isNaN(r)?r:+n.endOf(Date.now(),i)+1,this.min=Math.min(s,r-1),this.max=Math.max(s+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,s=i.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const r=this.min,o=this.max,c=sw(s,r,o);return this._unit=n.unit||(i.autoSkip?dg(n.minUnit,this.min,this.max,this._getLabelCapacity(r)):kC(this,c.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:xC(this._unit),this.initOffsets(s),e.reverse&&c.reverse(),hg(this,c,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,i=0,s,r;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),e.length===1?n=1-s:n=(this.getDecimalForValue(e[1])-s)/2,r=this.getDecimalForValue(e[e.length-1]),e.length===1?i=r:i=(r-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=dn(n,0,o),i=dn(i,0,o),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const e=this._adapter,n=this.min,i=this.max,s=this.options,r=s.time,o=r.unit||dg(r.minUnit,n,i,this._getLabelCapacity(n)),c=$e(s.ticks.stepSize,1),d=o==="week"?r.isoWeekday:!1,h=ka(d)||d===!0,f={};let m=n,g,v;if(h&&(m=+e.startOf(m,"isoWeek",d)),m=+e.startOf(m,h?"day":o),e.diff(i,n,o)>1e5*c)throw new Error(n+" and "+i+" are too far apart with stepSize of "+c+" "+o);const b=s.ticks.source==="data"&&this.getDataTimestamps();for(g=m,v=0;g<i;g=+e.add(g,c,o),v++)ug(f,g,b);return(g===i||s.bounds==="ticks"||v===1)&&ug(f,g,b),Object.keys(f).sort(lg).map(x=>+x)}getLabelForValue(e){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(e,i.tooltipFormat):n.format(e,i.displayFormats.datetime)}format(e,n){const s=this.options.time.displayFormats,r=this._unit,o=n||s[r];return this._adapter.format(e,o)}_tickFormatFunction(e,n,i,s){const r=this.options,o=r.ticks.callback;if(o)return St(o,[e,n,i],this);const c=r.time.displayFormats,d=this._unit,h=this._majorUnit,f=d&&c[d],m=h&&c[h],g=i[n],v=h&&m&&g&&g.major;return this._adapter.format(e,s||(v?m:f))}generateTickLabels(e){let n,i,s;for(n=0,i=e.length;n<i;++n)s=e[n],s.label=this._tickFormatFunction(s.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,s=Ti(this.isHorizontal()?n.maxRotation:n.minRotation),r=Math.cos(s),o=Math.sin(s),c=this._resolveTickFontOptions(0).size;return{w:i*r+c*o,h:i*o+c*r}}_getLabelCapacity(e){const n=this.options.time,i=n.displayFormats,s=i[n.unit]||i.millisecond,r=this._tickFormatFunction(e,0,hg(this,[e],this._majorUnit),s),o=this._getLabelSize(r),c=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return c>0?c:1}getDataTimestamps(){let e=this._cache.data||[],n,i;if(e.length)return e;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,i=s.length;n<i;++n)e=e.concat(s[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 s=this.getLabels();for(n=0,i=s.length;n<i;++n)e.push(cg(this,s[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return hm(e.sort(lg))}}re(yl,"id","time"),re(yl,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function hd(t,e,n){let i=0,s=t.length-1,r,o,c,d;n?(e>=t[i].pos&&e<=t[s].pos&&({lo:i,hi:s}=hs(t,"pos",e)),{pos:r,time:c}=t[i],{pos:o,time:d}=t[s]):(e>=t[i].time&&e<=t[s].time&&({lo:i,hi:s}=hs(t,"time",e)),{time:r,pos:c}=t[i],{time:o,pos:d}=t[s]);const h=o-r;return h?c+(d-c)*(e-r)/h:c}class u0 extends yl{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=hd(n,this.min),this._tableRange=hd(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:i}=this,s=[],r=[];let o,c,d,h,f;for(o=0,c=e.length;o<c;++o)h=e[o],h>=n&&h<=i&&s.push(h);if(s.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(o=0,c=s.length;o<c;++o)f=s[o+1],d=s[o-1],h=s[o],Math.round((f+d)/2)!==h&&r.push({time:h,pos:o/(c-1)});return r}_generate(){const e=this.min,n=this.max;let i=super.getDataTimestamps();return(!i.includes(e)||!i.length)&&i.splice(0,0,e),(!i.includes(n)||i.length===1)&&i.push(n),i.sort((s,r)=>s-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(hd(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,i=this.getDecimalForPixel(e)/n.factor-n.end;return hd(this._table,i*this._tableRange+this._minPos,!0)}}re(u0,"id","timeseries"),re(u0,"defaults",yl.defaults);var SC=Object.freeze({__proto__:null,CategoryScale:o0,LinearScale:l0,LogarithmicScale:c0,RadialLinearScale:vl,TimeScale:yl,TimeSeriesScale:u0});const h0=[B9,lx,nC,SC],fg={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},MC={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...fg,...{ariaLabel:{type:String},ariaDescribedby:{type:String}}},OC=a.version[0]==="2"?(t,e)=>Object.assign(t,{attrs:e}):(t,e)=>Object.assign(t,e);function Da(t){return a.isProxy(t)?a.toRaw(t):t}function DC(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return a.isProxy(e)?new Proxy(t,{}):t}function EC(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function pg(t,e){t.labels=e}function mg(t,e,n){const i=[];t.datasets=e.map(s=>{const r=t.datasets.find(o=>o[n]===s[n]);return!r||!s.data||i.includes(r)?{...s}:(i.push(r),Object.assign(r,s),r)})}function TC(t,e){const n={labels:[],datasets:[]};return pg(n,t.labels),mg(n,t.datasets,e),n}const IC=a.defineComponent({props:MC,setup(t,e){let{expose:n,slots:i}=e;const s=a.ref(null),r=a.shallowRef(null);n({chart:r});const o=()=>{if(!s.value)return;const{type:h,data:f,options:m,plugins:g,datasetIdKey:v}=t,b=TC(f,v),x=DC(b,f);r.value=new fi(s.value,{type:h,data:x,options:{...m},plugins:g})},c=()=>{const h=a.toRaw(r.value);h&&(t.destroyDelay>0?setTimeout(()=>{h.destroy(),r.value=null},t.destroyDelay):(h.destroy(),r.value=null))},d=h=>{h.update(t.updateMode)};return a.onMounted(o),a.onUnmounted(c),a.watch([()=>t.options,()=>t.data],(h,f)=>{let[m,g]=h,[v,b]=f;const x=a.toRaw(r.value);if(!x)return;let k=!1;if(m){const O=Da(m),T=Da(v);O&&O!==T&&(EC(x,O),k=!0)}if(g){const O=Da(g.labels),T=Da(b.labels),N=Da(g.datasets),C=Da(b.datasets);O!==T&&(pg(x.config.data,O),k=!0),N&&N!==C&&(mg(x.config.data,N,t.datasetIdKey),k=!0)}k&&a.nextTick(()=>{d(x)})},{deep:!0}),()=>a.h("canvas",{role:"img",ariaLabel:t.ariaLabel,ariaDescribedby:t.ariaDescribedby,ref:s},[a.h("p",{},[i.default?i.default():""])])}});function fd(t,e){return fi.register(e),a.defineComponent({props:fg,setup(n,i){let{expose:s}=i;const r=a.shallowRef(null),o=c=>{r.value=c==null?void 0:c.chart};return s({chart:r}),()=>a.h(IC,OC({ref:o},{type:t,...n}))}})}const gg=fd("bar",al),BC=fd("line",ol),AC=fd("pie",Gc),VC=fd("polarArea",Ma),Gs={gp50:"#f3fcf8",gp100:"#e2f8ef",gp200:"#abedd3",gp300:"#6ddfb1",gp400:"#2db981",gp500:"#239f6d",gp600:"#1c7d56",gp700:"#136746",ta50:"#eefcfa",ta100:"#dcf9f6",ta200:"#a2f1e5",ta300:"#51e6d0",ta400:"#20c5ad",ta500:"#18aa94",ta600:"#138675",ta700:"#0f6b5d",ts50:"#f5fbff",ts100:"#e6f6fe",ts200:"#C2EDFF",ts300:"#7BD0F4",ts400:"#42AAD7",ts500:"#1F86B2",ts600:"#18698B",ts700:"#155875",bn50:"#f6f9fe",bn100:"#e6effe",bn200:"#b4cdf8",bn300:"#729ee9",bn400:"#467bd8",bn500:"#2f64c1",bn600:"#2051a7",bn700:"#19438a",in50:"#f5f6ff",in100:"#ebefff",in200:"#CED6FD",in300:"#9bacf8",in400:"#6a7cd7",in500:"#4b5caf",in600:"#374486",in700:"#2f396f",vr50:"#faf5ff",vr100:"#f7f0ff",vr200:"#E6D2F9",vr300:"#CEABED",vr400:"#a772d5",vr500:"#8955B9",vr600:"#6B3A98",vr700:"#5c3082",pp50:"#fff5fb",pp100:"#ffebf7",pp200:"#F9C8E2",pp300:"#EF8FC0",pp400:"#DA629F",pp500:"#BE377C",pp600:"#A12663",pp700:"#88255a",rc50:"#fef6f7",rc100:"#ffebed",rc200:"#FABDC5",rc300:"#F98B98",rc400:"#F3596C",rc500:"#E03E52",rc600:"#C92C3F",rc700:"#b22435",og50:"#fef7f6",og100:"#ffefeb",og200:"#FFD6CC",og300:"#FDAF9B",og400:"#FF8567",og500:"#F06442",og600:"#D64B29",og700:"#bc4224",al50:"#fefbf6",al100:"#fdf3e2",al200:"#ffe5b8",al300:"#fdd286",al400:"#f6bd5a",al500:"#eda831",al600:"#d89013",al700:"#c08011",n0:"#FFFFFF",n10:"#FAFCFE",n20:"#F4F8FB",n30:"#E7EDF3",n40:"#DFE5EC",n50:"#D6DCE3",n100:"#C3CCD5",n200:"#ACB8C3",n300:"#99A6B2",n400:"#8794A1",n500:"#647382",n600:"#52616F",n700:"#3B4754",n800:"#28333E",n900:"#1D262F",palete:'["Light Neutrals", "Light", #FFFFFF, #FAFCFE, #F4F8FB, #E7EDF3, #DFE5EC, "$n-0", "$n-10", "$n-20", "$n-30", "$n-40"], ["Mid Neutrals", "Gray", #D6DCE3, #C3CCD5, #ACB8C3, #99A6B2, #8794A1, "$n-50", "$n-100", "$n-200", "$n-300", "$n-400"], ["Dark Neutrals", "Dark", #647382, #52616F, #3B4754, #28333E, #1D262F, "$n-500", "$n-600", "$n-700", "$n-800", "$n-900"], ["Piccolo Green", "Green", #f3fcf8, #e2f8ef, #abedd3, #6ddfb1, #2db981, #239f6d, #1c7d56, #136746, "$gp-50", "$gp-100", "$gp-200", "$gp-300", "$gp-400", "$gp-500", "$gp-600", "$gp-700"], ["Aquaman Teal", "Teal", #eefcfa, #dcf9f6, #a2f1e5, #51e6d0, #20c5ad, #18aa94, #138675, #0f6b5d, "$ta-50", "$ta-100", "$ta-200", "$ta-300", "$ta-400", "$ta-500", "$ta-600", "$ta-700"], ["Sulivan Turquoise", "Turquoise", #f5fbff, #e6f6fe, #C2EDFF, #7BD0F4, #42AAD7, #1F86B2, #18698B, #155875, "$ts-50", "$ts-100", "$ts-200", "$ts-300", "$ts-400", "$ts-500", "$ts-600", "$ts-700"], ["Nocturne Blue", "Blue", #f6f9fe, #e6effe, #b4cdf8, #729ee9, #467bd8, #2f64c1, #2051a7, #19438a, "$bn-50", "$bn-100", "$bn-200", "$bn-300", "$bn-400", "$bn-500", "$bn-600", "$bn-700"], ["Nightwing Indigo", "Indigo", #f5f6ff, #ebefff, #CED6FD, #9bacf8, #6a7cd7, #4b5caf, #374486, #2f396f, "$in-50", "$in-100", "$in-200", "$in-300", "$in-400", "$in-500", "$in-600", "$in-700"], ["Raven Violet", "Violet", #faf5ff, #f7f0ff, #E6D2F9, #CEABED, #a772d5, #8955B9, #6B3A98, #5c3082, "$vr-50", "$vr-100", "$vr-200", "$vr-300", "$vr-400", "$vr-500", "$vr-600", "$vr-700"], ["Peppa Pink", "Pink", #fff5fb, #ffebf7, #F9C8E2, #EF8FC0, #DA629F, #BE377C, #A12663, #88255a, "$pp-50", "$pp-100", "$pp-200", "$pp-300", "$pp-400", "$pp-500", "$pp-600", "$pp-700"], ["Carmen Red", "Red", #fef6f7, #ffebed, #FABDC5, #F98B98, #F3596C, #E03E52, #C92C3F, #b22435, "$rc-50", "$rc-100", "$rc-200", "$rc-300", "$rc-400", "$rc-500", "$rc-600", "$rc-700"], ["Goku Orange", "Orange", #fef7f6, #ffefeb, #FFD6CC, #FDAF9B, #FF8567, #F06442, #D64B29, #bc4224, "$og-50", "$og-100", "$og-200", "$og-300", "$og-400", "$og-500", "$og-600", "$og-700"], ["Lisa Amber", "Amber", #fefbf6, #fdf3e2, #ffe5b8, #fdd286, #f6bd5a, #eda831, #d89013, #c08011, "$al-50", "$al-100", "$al-200", "$al-300", "$al-400", "$al-500", "$al-600", "$al-700"]'},Ea=t=>{let e=[],n={};const i=/(\[[^[\]]*\])/g,s=t.match(i);for(let r=0;r<s.length;r++){s[r]=s[r].replace("[",""),s[r]=s[r].replace("]","");let o=s[r].split(",");n.colorName=o[0].trim().replace(/"/g,""),n.variantName=o[1].trim().replace(/"/g,""),n.color400=o[6],n.colorShades=[],n.colorTokens=[],n.colorData=[];let c=!1;for(let d=2,h=2;d<o.length;d++,h++)o[d].includes("#")?(n.colorShades.push(o[d].trim()),n.colorData[h-2]={},n.colorData[h-2].shade=o[d].trim()):o[d].includes("$")&&(n.colorTokens.push(o[d].trim().replace(/"/g,"")),n.colorData[h-2].token=o[d].trim().replace(/"/g,"")),!c&&o[d+1].includes("$")&&(h=1,c=!0);e.push(n),n={}}return e},Sle="";fi.register(...h0);const $C={components:{Bar:gg},props:{data:{type:Object,required:!0,default:()=>({datasets:[{label:"",data:[]}]})},variant:{type:String,required:!0,default:"green",validator:t=>["green","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"].includes(t)},labels:{type:Array,required:!0,default:()=>[]},barWidth:{type:Number,default:1}},data(){return{sassColorVariables:Gs,localChartData:{},localLabels:[],palletColors:[],deleteFirstTwoColors:!1,chartOptions:{responsive:!0,maintainAspectRatio:!1,categoryPercentage:null,plugins:{tooltip:{callbacks:{beforeTitle:function(t){return`${t[0].dataset.name}`}}},legend:{display:!0,labels:{usePointStyle:!0,pointStyle:"rectRounded"}}}}}},watch:{labels:{handler(t){this.localLabels=t},immediate:!0},variant:{handler(t){t==="gray"||t==="dark"?this.deleteFirstTwoColors=!0:this.deleteFirstTwoColors=!1},immediate:!0},data:{handler(t){this.mergeChartDataNoSelect(t)},immediate:!0},barWidth:{handler(t){t>=.1&&t<=1?this.chartOptions.categoryPercentage=t:this.chartOptions.categoryPercentage=1},immediate:!0}},methods:{paleteBuilder:Ea,palete(){this.palletColors=this.paleteBuilder(this.sassColorVariables.palete),this.removeFirstTwoElements()},removeFirstTwoElements(){for(let t=0;t<this.palletColors.length;t++){const e=this.palletColors[t];this.deleteFirstTwoColors===!1&&(e.colorShades.splice(0,2),e.colorTokens.splice(0,2),e.colorData.splice(0,2))}},addDataSetNames(){this.data.forEach(t=>{t.datasets.forEach(e=>{e.name=t.name})})},mergeChartDataNoSelect(t){const e={labels:this.localLabels,datasets:[]};this.addDataSetNames(),t.forEach(i=>{i.datasets.forEach(s=>{const r={label:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(r)})}),this.palete();const n=this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},generateBackgroundColor(){const t=this.variant.toLowerCase(),e=this.palletColors.find(n=>n.variantName.toLowerCase().includes(t));return e?e.colorShades:[]},setColors(t,e){const n={};this.chartOptions.plugins.legend.display=!0,t.forEach(i=>{const s=i.name;let r;t.length===1&&(r=2,n[s]=e[r],this.chartOptions.plugins.legend.display=!1),n[s]||(r=Object.keys(n).length%e.length,n[s]=e[r]),i.backgroundColor=n[s],i.borderRadius=6})}}},NC={class:"responsive-container"};function zC(t,e,n,i,s,r){const o=a.resolveComponent("Bar");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",NC,[a.createVNode(o,{is:"bar",data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const PC=oe($C,[["render",zC],["__scopeId","data-v-1e55dea1"]]),Mle="";fi.register(...h0);const LC={components:{Line:BC},props:{data:{type:Object,required:!0,default:()=>({datasets:[{label:"",data:[]}]})},xAxisRange:{type:Array,default:()=>[0,100]},yAxisRange:{type:Array,default:()=>[0,100]},variant:{type:String,required:!0,default:"green",validator:t=>["green","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"].includes(t)},labels:{type:Array,required:!0,default:()=>[]},showLabelName:{type:Boolean,required:!0,default:!0},fill:{type:Boolean,default:!1},isDashed:{type:Boolean,default:!1},borderDash:{type:Array,default:()=>[]},smoothing:{type:Number,default:.3}},data(){return{sassColorVariables:Gs,localChartData:{},localLabels:[],palletColors:[],deleteFirstTwoColors:!1,chartOptions:{interaction:{intersect:!1},scales:{x:{suggestedMin:this.xAxisRange[0],suggestedMax:this.xAxisRange[1],display:!0,title:{display:!0}},y:{suggestedMin:this.yAxisRange[0],suggestedMax:this.yAxisRange[1],display:!0,title:{display:!0}}},tension:this.smoothing,responsive:!0,maintainAspectRatio:!1,pieceLabel:{mode:"percentage",precision:1},plugins:{tooltip:{callbacks:{beforeTitle:function(t){return`${t[0].dataset.name}`}}},legend:{display:!0,labels:{usePointStyle:!0,pointStyle:"rectRounded"}}},fill:this.fill}}},watch:{labels:{handler(t){this.localLabels=t},immediate:!0},variant:{handler(t){t==="gray"||t==="dark"?this.deleteFirstTwoColors=!0:this.deleteFirstTwoColors=!1},immediate:!0},data:{handler(t){this.mergeChartDataNoSelect(t)},immediate:!0},isDashed:{handler(t){t===!0&&this.checkDashed()},immediate:!0}},methods:{paleteBuilder:Ea,palete(){this.palletColors=this.paleteBuilder(this.sassColorVariables.palete),this.removeFirstTwoElements()},removeFirstTwoElements(){for(let t=0;t<this.palletColors.length;t++){const e=this.palletColors[t];this.deleteFirstTwoColors===!1&&(e.colorShades.splice(0,2),e.colorTokens.splice(0,2),e.colorData.splice(0,2))}},addDataSetNames(){this.data.forEach(t=>{t.datasets.forEach(e=>{e.name=t.name})})},mergeChartDataNoSelect(t){const e={labels:this.localLabels,datasets:[]};this.addDataSetNames(),t.forEach(i=>{i.datasets.forEach(s=>{const r={label:this.showLabelName?s.name:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(r)})}),this.palete();const n=this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},generateBackgroundColor(){const t=this.variant.toLowerCase(),e=this.palletColors.find(n=>n.variantName.toLowerCase().includes(t));return e?this.fill?e.colorShades.map(i=>i+"80"):e.colorShades:[]},setColors(t,e){const n={};t.forEach((i,s)=>{const r=i.name;n[r]||(n[r]=e.slice()),i.data.length>0&&(i.backgroundColor=n[r][s%n[r].length],i.borderColor=n[r][s%n[r].length]),i.borderRadius=6})},checkDashed(){this.chartOptions.borderDash=[this.borderDash[0],this.borderDash[1]]}}},FC={class:"responsive-container"};function RC(t,e,n,i,s,r){const o=a.resolveComponent("Line");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",FC,[a.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const HC=oe(LC,[["render",RC],["__scopeId","data-v-3a3639cb"]]),Ole="",WC={components:{Pie:AC},props:{data:{type:Object,required:!0,default:()=>({datasets:[{label:"",data:[]}]})},variant:{type:String,required:!0,default:"green",validator:t=>["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"].includes(t)},labels:{type:Array,required:!0,default:()=>[]},colors:{type:Array,default:()=>[],validator:t=>{const e=["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"];return t.every(n=>e.includes(n))}}},data(){return{sassColorVariables:Gs,localChartData:{},localLabels:[],palletColors:[],deleteFirstTwoColors:!1,chartOptions:{responsive:!0,maintainAspectRatio:!1,pieceLabel:{mode:"percentage",precision:1},plugins:{tooltip:{callbacks:{beforeTitle:function(t){return`${t[0].dataset.name}`}}},legend:{display:!0,labels:{usePointStyle:!0,pointStyle:"rectRounded"}}}}}},computed:{isColorsSet(){return this.colors&&this.colors.length>0},computedBackgroundColors(){return this.colors.map(t=>{const e=this.palletColors.find(n=>n.variantName.toLowerCase().includes(t));if(e)return e.color400})}},watch:{labels:{handler(t){this.localLabels=t},immediate:!0},variant:{handler(t){t==="gray"||t==="dark"?this.deleteFirstTwoColors=!0:this.deleteFirstTwoColors=!1},immediate:!0},data:{handler(t){this.mergeChartDataNoSelect(t)},immediate:!0}},methods:{paleteBuilder:Ea,palete(){this.palletColors=this.paleteBuilder(this.sassColorVariables.palete),this.removeFirstTwoElements()},removeFirstTwoElements(){for(let t=0;t<this.palletColors.length;t++){const e=this.palletColors[t];this.deleteFirstTwoColors===!1&&(e.colorShades.splice(0,2),e.colorTokens.splice(0,2),e.colorData.splice(0,2))}},addDataSetNames(){this.data.forEach(t=>{t.datasets.forEach(e=>{e.name=t.name})})},mergeChartDataNoSelect(t){const e={labels:this.localLabels,datasets:[]};this.addDataSetNames(),t.forEach(i=>{i.datasets.forEach(s=>{const r={label:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(r)})}),this.palete();const n=this.isColorsSet?this.computedBackgroundColors:this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},generateBackgroundColor(){const t=this.variant.toLowerCase(),e=this.palletColors.find(n=>n.variantName.toLowerCase().includes(t));return e?e.colorShades:[]},setColors(t,e){const n={};t.forEach(i=>{const s=i.name;n[s]||(n[s]=e.slice()),i.backgroundColor=n[s].splice(0,i.data.length),i.borderRadius=6})}}},YC={class:"responsive-container"};function jC(t,e,n,i,s,r){const o=a.resolveComponent("Pie");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",YC,[a.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const UC=oe(WC,[["render",jC],["__scopeId","data-v-df415374"]]),Dle="",qC={components:{PolarArea:VC},props:{data:{type:Object,required:!0,default:()=>({datasets:[{label:"",data:[]}]})},variant:{type:String,required:!0,default:"green",validator:t=>["green","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"].includes(t)},labels:{type:Array,required:!0,default:()=>[]},isVisiblePointNames:{type:Boolean,default:!1}},data(){return{sassColorVariables:Gs,localChartData:{},localLabels:[],palletColors:[],deleteFirstTwoColors:!1,chartOptions:{responsive:!0,scales:{r:{pointLabels:{display:this.isVisiblePointNames,centerPointLabels:!0,font:{size:12}}}},maintainAspectRatio:!1,pieceLabel:{mode:"percentage",precision:1},plugins:{tooltip:{callbacks:{beforeTitle:function(t){return`${t[0].dataset.name}`}}},legend:{display:!0,labels:{usePointStyle:!0,pointStyle:"rectRounded"}}}}}},watch:{labels:{handler(t){this.localLabels=t},immediate:!0},variant:{handler(t){t==="gray"||t==="dark"?this.deleteFirstTwoColors=!0:this.deleteFirstTwoColors=!1},immediate:!0},data:{handler(t){this.mergeChartDataNoSelect(t)},immediate:!0}},methods:{paleteBuilder:Ea,palete(){this.palletColors=this.paleteBuilder(this.sassColorVariables.palete),this.removeFirstTwoElements()},removeFirstTwoElements(){for(let t=0;t<this.palletColors.length;t++){const e=this.palletColors[t];this.deleteFirstTwoColors===!1&&(e.colorShades.splice(0,2),e.colorTokens.splice(0,2),e.colorData.splice(0,2))}},addDataSetNames(){this.data.forEach(t=>{t.datasets.forEach(e=>{e.name=t.name})})},mergeChartDataNoSelect(t){const e={labels:this.localLabels,datasets:[]};this.addDataSetNames(),t.forEach(i=>{i.datasets.forEach(s=>{const r={label:this.showLabelName?s.name:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(r)})}),this.palete();const n=this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},generateBackgroundColor(){const t=this.variant.toLowerCase(),e=this.palletColors.find(n=>n.variantName.toLowerCase().includes(t));return e?e.colorShades:[]},setColors(t,e){const n={};t.forEach(i=>{const s=i.name;n[s]||(n[s]=e.slice()),i.backgroundColor=n[s].splice(0,i.data.length),i.borderRadius=6})}}},GC={class:"responsive-container"};function KC(t,e,n,i,s,r){const o=a.resolveComponent("PolarArea");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",GC,[a.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const ZC=oe(qC,[["render",KC],["__scopeId","data-v-386a0dc0"]]),Ele="";fi.register(...h0);const XC={components:{Bar:gg},props:{data:{type:Object,required:!0,default:()=>({datasets:[{label:"",data:[]}]})},variant:{type:String,required:!0,default:"green",validator:t=>["green","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"].includes(t)},labels:{type:Array,required:!0,default:()=>[]},barWidth:{type:Number,default:1}},data(){return{sassColorVariables:Gs,localChartData:{},localLabels:[],palletColors:[],deleteFirstTwoColors:!1,chartOptions:{scales:{x:{stacked:!0},y:{stacked:!0}},responsive:!0,maintainAspectRatio:!1,categoryPercentage:null,plugins:{tooltip:{callbacks:{beforeTitle:function(t){return`${t[0].dataset.name}`}}},legend:{display:!0,labels:{usePointStyle:!0,pointStyle:"rectRounded"}}}}}},watch:{labels:{handler(t){this.localLabels=t},immediate:!0},variant:{handler(t){t==="gray"||t==="dark"?this.deleteFirstTwoColors=!0:this.deleteFirstTwoColors=!1},immediate:!0},data:{handler(t){this.mergeChartDataNoSelect(t)},immediate:!0},barWidth:{handler(t){t>=.1&&t<=1?this.chartOptions.categoryPercentage=t:this.chartOptions.categoryPercentage=1},immediate:!0}},methods:{paleteBuilder:Ea,palete(){this.palletColors=this.paleteBuilder(this.sassColorVariables.palete),this.removeFirstTwoElements()},removeFirstTwoElements(){for(let t=0;t<this.palletColors.length;t++){const e=this.palletColors[t];this.deleteFirstTwoColors===!1&&(e.colorShades.splice(0,2),e.colorTokens.splice(0,2),e.colorData.splice(0,2))}},addDataSetNames(){this.data.forEach(t=>{t.datasets.forEach(e=>{e.name=t.name})})},mergeChartDataNoSelect(t){const e={labels:this.localLabels,datasets:[]};this.addDataSetNames(),t.forEach(i=>{i.datasets.forEach(s=>{const r={label:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(r)})}),this.palete();const n=this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},generateBackgroundColor(){const t=this.variant.toLowerCase(),e=this.palletColors.find(n=>n.variantName.toLowerCase().includes(t));return e?e.colorShades:[]},setColors(t,e){const n={};this.chartOptions.plugins.legend.display=!0,t.forEach(i=>{const s=i.name;let r;t.length===1&&(r=2,n[s]=e[r],this.chartOptions.plugins.legend.display=!1),n[s]||(r=Object.keys(n).length%e.length,n[s]=e[r]),i.backgroundColor=n[s],i.borderRadius=6})}}},JC={class:"responsive-container"};function QC(t,e,n,i,s,r){const o=a.resolveComponent("Bar");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",JC,[a.createVNode(o,{is:"bar",data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const eS=oe(XC,[["render",QC],["__scopeId","data-v-ed4bef4e"]]),Tle="",f0={props:{padding:{type:[Number,String],default:0,validator:t=>t>=0&&t<=12},paddingTop:{type:[Number,String],default:0,validator:t=>t>=0&&t<=12},paddingRight:{type:[Number,String],default:0,validator:t=>t>=0&&t<=12},paddingBottom:{type:[Number,String],default:0,validator:t=>t>=0&&t<=12},paddingLeft:{type:[Number,String],default:0,validator:t=>t>=0&&t<=12},margin:{type:[Number,String],default:0,validator:t=>t>=0&&t<=12},marginTop:{type:[Number,String],default:0,validator:t=>t>=0&&t<=12},marginRight:{type:[Number,String],default:0,validator:t=>t>=0&&t<=12},marginBottom:{type:[Number,String],default:0,validator:t=>t>=0&&t<=12},marginLeft:{type:[Number,String],default:0,validator:t=>t>=0&&t<=12}},computed:{paddingTopResolver(){let t=this.paddingTop>12?12:+this.paddingTop;return t=this.padding?this.basePropertyResolver(this.padding):t,`${t*4}px`},paddingRightResolver(){let t=this.paddingRight>12?12:+this.paddingRight;return t=this.padding?this.basePropertyResolver(this.padding):t,`${t*4}px`},paddingBottomResolver(){let t=this.paddingBottom>12?12:+this.paddingBottom;return t=this.padding?this.basePropertyResolver(this.padding):t,`${t*4}px`},paddingLeftResolver(){let t=this.paddingLeft>12?12:+this.paddingLeft;return t=this.padding?this.basePropertyResolver(this.padding):t,`${t*4}px`},marginTopResolver(){let t=this.marginTop>12?12:+this.marginTop;return t=this.margin?this.basePropertyResolver(this.margin):t,`${t*4}px`},marginRightResolver(){let t=this.marginRight>12?12:+this.marginRight;return t=this.margin?this.basePropertyResolver(this.margin):t,`${t*4}px`},marginBottomResolver(){let t=this.marginBottom>12?12:+this.marginBottom;return t=this.margin?this.basePropertyResolver(this.margin):t,`${t*4}px`},marginLeftResolver(){let t=this.marginLeft>12?12:+this.marginLeft;return t=this.margin?this.basePropertyResolver(this.margin):t,`${t*4}px`}},methods:{basePropertyResolver(t){return t>=0&&t<=12?t:t<0?0:12}}},_g=()=>{a.useCssVars(t=>({"6d4c0f4d":t.marginBottomResolver,d6616fae:t.marginLeftResolver,"0baf3274":t.marginRightResolver,"7c666dff":t.marginTopResolver,"561264d4":t.paddingBottomResolver,17295920:t.paddingLeftResolver,e3e47742:t.paddingRightResolver,"9def4450":t.paddingTopResolver}))},vg=f0.setup;f0.setup=vg?(t,e)=>(_g(),vg(t,e)):_g;const tS=f0,nS={class:"spacer"};function iS(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",nS,[a.renderSlot(t.$slots,"default",{},void 0,!0)])}const pd=oe(tS,[["render",iS],["__scopeId","data-v-5aebf225"]]);function p0(t,e=24){let n=t/8,i=n%4;return`${n>e?e:n-i+4}px`}const Ile="",m0={components:{CdsSpacer:pd,CdsClickable:Ls},props:{elevated:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},padding:{type:[Number,String],default:4,validator:t=>t<=12},clickable:{type:Boolean,default:!1},variant:{type:String,default:"gray"}},data(){return{width:0}},computed:{widthResolver(){return this.fluid?"100%":"fit-content"},borderRadiusResolver(){return this.rounder(this.width,12)}},mounted(){this.width=this.$refs["cds-box"].getBoundingClientRect().width},methods:{rounder:p0,handleClick(){this.clickable&&this.$emit("boxClick",!0)}}},yg=()=>{a.useCssVars(t=>({"8bf1f4e6":t.widthResolver,"337f1943":t.borderRadiusResolver}))},bg=m0.setup;m0.setup=bg?(t,e)=>(yg(),bg(t,e)):yg;const sS=m0;function rS(t,e,n,i,s,r){const o=a.resolveComponent("cds-spacer"),c=a.resolveComponent("cds-clickable");return a.openBlock(),a.createElementBlock("div",{ref:"cds-box",class:a.normalizeClass(n.elevated?"box--elevated":`box--${n.variant}`)},[a.createVNode(c,{class:"box__container",clickable:n.clickable,onClick:r.handleClick},{default:a.withCtx(()=>[a.createVNode(o,{"padding-top":n.padding,"padding-right":n.padding,"padding-bottom":n.padding,"padding-left":n.padding},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["padding-top","padding-right","padding-bottom","padding-left"])]),_:3},8,["clickable","onClick"])],2)}const bl=oe(sS,[["render",rS],["__scopeId","data-v-34f9c778"]]);var g0={exports:{}};(function(t,e){var n=9007199254740991,i="[object Arguments]",s="[object Function]",r="[object GeneratorFunction]",o="[object Map]",c="[object Object]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",m="[object DataView]",g=/[\\^$.*+?()[\]{}|]/g,v=/^\[object .+?Constructor\]$/,b=typeof cn=="object"&&cn&&cn.Object===Object&&cn,x=typeof self=="object"&&self&&self.Object===Object&&self,k=b||x||Function("return this")(),O=e&&!e.nodeType&&e,T=O&&!0&&t&&!t.nodeType&&t,N=T&&T.exports===O;function C(te,Ae){return te==null?void 0:te[Ae]}function B(te){var Ae=!1;if(te!=null&&typeof te.toString!="function")try{Ae=!!(te+"")}catch{}return Ae}function $(te,Ae){return function(We){return te(Ae(We))}}var L=Function.prototype,F=Object.prototype,q=k["__core-js_shared__"],ee=function(){var te=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return te?"Symbol(src)_1."+te:""}(),ne=L.toString,K=F.hasOwnProperty,ie=F.toString,pe=RegExp("^"+ne.call(K).replace(g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),J=N?k.Buffer:void 0,ue=F.propertyIsEnumerable,he=J?J.isBuffer:void 0,_e=$(Object.keys,Object),be=et(k,"DataView"),R=et(k,"Map"),fe=et(k,"Promise"),ae=et(k,"Set"),Ee=et(k,"WeakMap"),Me=!ue.call({valueOf:1},"valueOf"),me=ht(be),Ne=ht(R),ot=ht(fe),Le=ht(ae),ut=ht(Ee);function Bt(te){return ie.call(te)}function wt(te){if(!Ot(te)||st(te))return!1;var Ae=Mt(te)||B(te)?pe:v;return Ae.test(ht(te))}function et(te,Ae){var We=C(te,Ae);return wt(We)?We:void 0}var it=Bt;(be&&it(new be(new ArrayBuffer(1)))!=m||R&&it(new R)!=o||fe&&it(fe.resolve())!=d||ae&&it(new ae)!=h||Ee&&it(new Ee)!=f)&&(it=function(te){var Ae=ie.call(te),We=Ae==c?te.constructor:void 0,pn=We?ht(We):void 0;if(pn)switch(pn){case me:return m;case Ne:return o;case ot:return d;case Le:return h;case ut:return f}return Ae});function st(te){return!!ee&&ee in te}function Yt(te){var Ae=te&&te.constructor,We=typeof Ae=="function"&&Ae.prototype||F;return te===We}function ht(te){if(te!=null){try{return ne.call(te)}catch{}try{return te+""}catch{}}return""}function kt(te){return yt(te)&&K.call(te,"callee")&&(!ue.call(te,"callee")||ie.call(te)==i)}var tn=Array.isArray;function nn(te){return te!=null&&At(te.length)&&!Mt(te)}function yt(te){return un(te)&&nn(te)}var tt=he||Vt;function Nt(te){if(nn(te)&&(tn(te)||typeof te=="string"||typeof te.splice=="function"||tt(te)||kt(te)))return!te.length;var Ae=it(te);if(Ae==o||Ae==h)return!te.size;if(Me||Yt(te))return!_e(te).length;for(var We in te)if(K.call(te,We))return!1;return!0}function Mt(te){var Ae=Ot(te)?ie.call(te):"";return Ae==s||Ae==r}function At(te){return typeof te=="number"&&te>-1&&te%1==0&&te<=n}function Ot(te){var Ae=typeof te;return!!te&&(Ae=="object"||Ae=="function")}function un(te){return!!te&&typeof te=="object"}function Vt(){return!1}t.exports=Nt})(g0,g0.exports);const Xt=g0.exports,Ble="",aS={components:{CdsIcon:$t,CdsSpacer:pd,CdsClickable:Ls},props:{items:{type:Array,default:()=>[],required:!0}},methods:{resolveRoute({route:t,path:e}){const n=Xt(t)?e:t;return n instanceof String?{path:n}:n},routerPushTo(t){return this.resolveRoute(t)?this.resolveRoute(t).path:null}}},oS={class:"breadcrumb"};function lS(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-spacer"),d=a.resolveComponent("router-link"),h=a.resolveComponent("cds-clickable");return a.openBlock(),a.createElementBlock("nav",null,[a.createElementVNode("ul",oS,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.items,(f,m)=>(a.openBlock(),a.createElementBlock("li",{key:`${m}-${f.name}-item`,role:"presentation"},[m===0?(a.openBlock(),a.createBlock(h,{key:0,clickable:""},{default:a.withCtx(()=>[a.createVNode(d,{to:r.routerPushTo(f),class:"breadcrumb__link"},{default:a.withCtx(()=>[n.items.length<=2?(a.openBlock(),a.createBlock(o,{key:0,height:"16",width:"16",name:"arrow-left-outline"})):(a.openBlock(),a.createBlock(o,{key:1,height:"15",width:"15",name:"home-outline"})),a.createVNode(c,{"margin-left":"2"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(f.label),1)]),_:2},1024)]),_:2},1032,["to"])]),_:2},1024)):(a.openBlock(),a.createBlock(c,{key:1,class:"breadcrumb__item","margin-right":"1","margin-left":"1"},{default:a.withCtx(()=>[a.createVNode(o,{height:"16",width:"16",name:"caret-right-outline",class:"breadcrumb__separator"}),a.createVNode(d,{to:r.routerPushTo(f),class:"breadcrumb__link"},{default:a.withCtx(()=>[a.createVNode(h,{clickable:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(f.label),1)]),_:2},1024)]),_:2},1032,["to"])]),_:2},1024))]))),128))])])}const cS=oe(aS,[["render",lS],["__scopeId","data-v-c2046c1c"]]),Ale="",_0={props:{src:{type:String,required:!0},fallbackSrc:{type:String,required:!1},width:{type:[Number,String],default:null},height:{type:[Number,String],default:null},alt:{type:String,default:"Imagem"},opacity:{type:[Number,String],default:1},dimmed:{type:Boolean,default:!1},blackAndWhite:{type:Boolean,default:!1},roundedCorners:{type:Boolean,default:!1}},data(){return{innerSrc:this.src}},computed:{heightResolver(){return this.height?`${this.height}px`:"auto"},widthResolver(){return this.width?`${this.width}px`:"auto"},opacityResolver(){return this.width?`${this.width}px`:"auto"},radiusResolver(){return this.roundedCorners?p0(this.width):"0px"},grayScaleResolver(){return this.blackAndWhite?"grayscale(100%)":this.dimmed?"grayscale(35%)":"grayscale(0%)"}},methods:{rounder:p0,imageSrcResolver(){this.innerSrc=this.fallbackSrc}}},wg=()=>{a.useCssVars(t=>({"21136de6":t.radiusResolver,e10ed842:t.grayScaleResolver,"31ae2d7b":t.heightResolver,"1e7f7c9d":t.opacity,"775376fe":t.widthResolver}))},kg=_0.setup;_0.setup=kg?(t,e)=>(wg(),kg(t,e)):wg;const dS=_0,uS=["src","alt"];function hS(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("img",a.mergeProps(t.$attrs,{src:s.innerSrc,alt:n.alt,class:"cds__image",onError:e[0]||(e[0]=(...o)=>r.imageSrcResolver&&r.imageSrcResolver(...o))}),null,16,uS)}const xg=oe(dS,[["render",hS],["__scopeId","data-v-79754f28"]]),v0=(t,e)=>Object.keys(t).some(n=>n===e),Vle="",y0={components:{CdsBox:bl,CdsImage:xg},props:{title:{type:String,default:""},content:{type:String,default:""},imageSrc:{type:String,default:""},imageAlt:{type:String,default:"imagem do card"},imageWidth:{type:[String,Number],default:300},imageHeight:{type:[String,Number],default:180},bodyWidth:{type:[String,Number],default:300},horizontal:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1}},computed:{imageWidthResolver(){return this.horizontal?"fit-content":`${this.imageWidth}px`},bodyWidthResolver(){return`${this.bodyWidth}px`}},methods:{hasSlot:v0,handleClick(){this.clickable&&this.$emit("cardClick",!0)}}},Cg=()=>{a.useCssVars(t=>({"8d304056":t.bodyWidthResolver,"4730bd46":t.imageWidthResolver}))},Sg=y0.setup;y0.setup=Sg?(t,e)=>(Cg(),Sg(t,e)):Cg;const fS=y0,pS={class:"card__extra-container"},mS={class:"card__extra"},gS={key:0},_S={key:1,class:"card__image"},vS={key:2,class:"card__icon"},yS={class:"card__spacer"},bS={key:0,class:"card__header"},wS={key:1},kS={class:"card__header"},xS={key:2,class:"card__body"},CS={key:3},SS={class:"card__body"},MS={key:4,class:"card__footer"};function OS(t,e,n,i,s,r){const o=a.resolveComponent("cds-image"),c=a.resolveComponent("cds-box");return a.openBlock(),a.createBlock(c,{padding:"0",clickable:n.clickable,onBoxClick:r.handleClick},{default:a.withCtx(()=>[a.createElementVNode("div",pS,[a.createElementVNode("div",mS,[a.renderSlot(t.$slots,"extra",{},void 0,!0)])]),a.createElementVNode("div",{class:a.normalizeClass({"card--horizontal":this.horizontal})},[r.hasSlot(t.$slots,"image")?(a.openBlock(),a.createElementBlock("div",gS,[a.renderSlot(t.$slots,"image",{},void 0,!0)])):n.imageSrc?(a.openBlock(),a.createElementBlock("div",_S,[a.createVNode(o,{src:n.imageSrc,width:n.imageWidth,height:n.imageHeight,alt:n.imageAlt},null,8,["src","width","height","alt"])])):r.hasSlot(t.$slots,"icon")?(a.openBlock(),a.createElementBlock("div",vS,[a.renderSlot(t.$slots,"icon",{},void 0,!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",yS,[r.hasSlot(t.$slots,"header")?(a.openBlock(),a.createElementBlock("div",bS,[a.renderSlot(t.$slots,"header",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("div",wS,[a.createElementVNode("p",kS,a.toDisplayString(n.title),1)])),r.hasSlot(t.$slots,"body")?(a.openBlock(),a.createElementBlock("div",xS,[a.renderSlot(t.$slots,"body",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("div",CS,[a.createElementVNode("p",SS,a.toDisplayString(n.content),1)])),r.hasSlot(t.$slots,"footer")?(a.openBlock(),a.createElementBlock("div",MS,[a.renderSlot(t.$slots,"footer",{},void 0,!0)])):a.createCommentVNode("",!0)])],2)]),_:3},8,["clickable","onBoxClick"])}const DS=oe(fS,[["render",OS],["__scopeId","data-v-ef799654"]]),$le="",ES={components:{CdsButton:ba},props:{title:{type:String,default:"T\xEDtulo do AlertCard",required:!0},text:{type:String,default:"Subt\xEDtulo do AlertCard"},image:{type:String,default:"",required:!0},imageDescription:{type:String,default:"Imagem de CalloutCard"},actionButtonVariant:{type:String,default:"green"},actionButtonText:{type:String,default:"Ok"},actionButtonSecondary:{type:Boolean,default:!1},actionButtonDisabled:{type:Boolean,default:!1},compact:{type:Boolean,default:!1}},methods:{resolveClass(t){return this.compact?`${t}--compact`:t}}},TS={id:"callout-card"},IS={class:"image__container"},BS=["src","alt"],AS={class:"content__title"},VS={class:"content__text"};function $S(t,e,n,i,s,r){const o=a.resolveComponent("cds-button");return a.openBlock(),a.createElementBlock("span",TS,[a.createElementVNode("div",{class:a.normalizeClass(r.resolveClass("callout-card__container"))},[a.createElementVNode("div",IS,[a.createElementVNode("img",{class:a.normalizeClass(r.resolveClass("image__content")),src:n.image,alt:n.imageDescription},null,10,BS)]),a.createElementVNode("div",{class:a.normalizeClass(r.resolveClass("content__container"))},[a.createElementVNode("div",{class:a.normalizeClass(r.resolveClass("content"))},[a.createElementVNode("p",AS,a.toDisplayString(n.title),1),a.createElementVNode("span",VS,[a.renderSlot(t.$slots,"text",{},()=>[a.createTextVNode(a.toDisplayString(n.text),1)])])],2),a.createElementVNode("div",null,[a.renderSlot(t.$slots,"action",{},()=>[a.createVNode(o,{id:"content-button",variant:n.actionButtonVariant,text:n.actionButtonText,secondary:n.actionButtonSecondary,disabled:n.actionButtonDisabled,onClick:e[0]||(e[0]=c=>t.$emit("action-button-click",!0))},null,8,["variant","text","secondary","disabled"])])])],2)],2)])}const NS=oe(ES,[["render",$S]]),Nle="",zS={props:{propertyName:{type:String,default:"Dados",required:!1},perPage:{type:Number,required:!0},total:{type:Number,required:!0},simple:{type:Boolean,default:!1,required:!1},fluid:{type:Boolean,default:!1,required:!1}},data(){return{currentNumberOfItemsMin:1,currentNumberOfItemsMax:this.perPage}},computed:{numberOfPages(){return Math.ceil(this.total/this.perPage)},disabledForward(){return this.currentNumberOfItemsMax>=this.total||this.simple&&this.currentNumberOfItemsMin>=this.numberOfPages},disabledBack(){return this.currentNumberOfItemsMin===1}},methods:{handleClickBack(){if(!this.disabledBack){if(this.simple&&this.currentNumberOfItemsMin>1){this.currentNumberOfItemsMin-=1,this.$emit("click-back",{min:this.currentNumberOfItemsMin-1,max:this.currentNumberOfItemsMax+1});return}else if(this.simple&&this.currentNumberOfItemsMin===1)return;this.currentNumberOfItemsMin-this.perPage<=0?(this.currentNumberOfItemsMin=1,this.currentNumberOfItemsMax=this.perPage,this.$emit("click-back",{min:this.currentNumberOfItemsMin-1,max:this.currentNumberOfItemsMax+1})):(this.currentNumberOfItemsMax-=this.currentNumberOfItemsMax-this.currentNumberOfItemsMin+1,this.currentNumberOfItemsMin-=this.perPage,this.$emit("click-back",{min:this.currentNumberOfItemsMin-1,max:this.currentNumberOfItemsMax}))}},handleClickForward(){if(!this.disabledForward){if(this.simple&&this.currentNumberOfItemsMin<this.numberOfPages){this.currentNumberOfItemsMin+=1,this.$emit("click-forward",{min:this.currentNumberOfItemsMin-1,max:this.currentNumberOfItemsMax+1});return}else if(this.simple&&this.currentNumberOfItemsMin===this.numberOfPages)return;this.currentNumberOfItemsMax+this.perPage>this.total?(this.currentNumberOfItemsMin=this.currentNumberOfItemsMax+1,this.currentNumberOfItemsMax=this.total,this.$emit("click-forward",{min:this.currentNumberOfItemsMin-1,max:this.currentNumberOfItemsMax+1})):(this.currentNumberOfItemsMin=this.currentNumberOfItemsMax+1,this.currentNumberOfItemsMax+=this.perPage,this.$emit("click-forward",{min:this.currentNumberOfItemsMin-1,max:this.currentNumberOfItemsMax+1}))}}}},PS={key:0,class:"carousel-controller__text"},LS={key:1,class:"carousel-controller__text"},FS={class:"carousel-controller__property"};function RS(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",{class:a.normalizeClass(["carousel-controller",{"carousel-controller--fluid":n.fluid}])},[a.createElementVNode("span",{class:a.normalizeClass({"carousel-controller__previous-button--disabled":r.disabledBack,"carousel-controller__previous-button":!r.disabledBack}),onClick:e[0]||(e[0]=(...o)=>r.handleClickBack&&r.handleClickBack(...o))},null,2),a.createElementVNode("div",null,[n.simple?(a.openBlock(),a.createElementBlock("span",LS,a.toDisplayString(s.currentNumberOfItemsMin)+" de "+a.toDisplayString(r.numberOfPages),1)):(a.openBlock(),a.createElementBlock("span",PS,a.toDisplayString(s.currentNumberOfItemsMin)+"-"+a.toDisplayString(s.currentNumberOfItemsMax)+" de "+a.toDisplayString(n.total),1)),a.createElementVNode("span",FS,a.toDisplayString(n.propertyName),1)]),a.createElementVNode("span",{class:a.normalizeClass({"carousel-controller__next-button--disabled":r.disabledForward,"carousel-controller__next-button":!r.disabledForward}),onClick:e[1]||(e[1]=(...o)=>r.handleClickForward&&r.handleClickForward(...o))},null,2)],2)])}const HS=oe(zS,[["render",RS],["__scopeId","data-v-fcb19a0a"]]);function Mg(t,e){return`${t}--${e}`}const zle="",WS={props:{modelValue:{type:Boolean,default:!1,required:!0},label:{type:String,default:"checkbox content"},variant:{type:String,default:"green"},indeterminate:{type:Boolean,default:!1},prominent:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data(){return{isChecked:this.modelValue,isIndeterminate:this.indeterminate}},computed:{resolveCheckboxClass(){const t=this.disabled?"cds-checkbox__input--disabled":"",e=Mg("cds-checkbox__input",this.variant);let n=this.isChecked?"cds-checkbox__input--checked":"cds-checkbox__input--unchecked";return n=this.isIndeterminate?"cds-checkbox__input--indeterminate":n,`${e} ${n} ${t}`}},watch:{modelValue:{handler(t,e){t!==e&&(this.isChecked=this.modelValue)},immediate:!0},indeterminate:{handler(t,e){t!==e&&(this.isIndeterminate=this.indeterminate)},immediate:!0}},methods:{toggleValue(){this.disabled||(this.isChecked=this.isIndeterminate?!1:!this.isChecked,this.isIndeterminate=!1,this.$emit("update:modelValue",this.isChecked),this.$emit("update:indeterminate",!1))}}},YS={class:"cds-checkbox__container"},jS={class:"cds-checkbox__input"},US=["id","value","name","disabled"],qS=["for"],GS=["for"];function KS(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",YS,[a.createElementVNode("div",jS,[a.createElementVNode("input",{id:t.$attrs.id||"cds-checkbox-option-input",value:n.modelValue,type:"checkbox",name:t.$attrs.name||"cds-checkbox-option",disabled:n.disabled},null,8,US),a.createElementVNode("label",{for:t.$attrs.id||"cds-checkbox-option-input",class:a.normalizeClass(r.resolveCheckboxClass),onClick:e[0]||(e[0]=(...o)=>r.toggleValue&&r.toggleValue(...o))},null,10,qS)]),a.createElementVNode("label",{class:a.normalizeClass(["cds-checkbox__label",{"cds-checkbox__label--disabled":n.disabled,"cds-checkbox__label--prominent":n.prominent&&n.modelValue}]),for:t.$attrs.id||"cds-checkbox-option-input",onClick:e[1]||(e[1]=(...o)=>r.toggleValue&&r.toggleValue(...o))},a.toDisplayString(n.label),11,GS)])}const b0=oe(WS,[["render",KS],["__scopeId","data-v-0758b096"]]),Ple="",ZS={props:{modelValue:{type:Boolean,default:!1,required:!0},title:{type:String,default:"Visualizar mais"}},data(){return{internalValue:this.modelValue}},watch:{internalValue(t){this.$emit("update:modelValue",t)},modelValue(t){this.internalValue=t}},methods:{triggerExpanded(){this.internalValue=!this.internalValue}}},XS={id:"collapsible-container"},JS={class:"collapsible-container__title"},QS={key:0,class:"collapsible-container__content"};function eM(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",XS,[a.createElementVNode("div",{class:"collapsible-container__item",onClick:e[0]||(e[0]=(...o)=>r.triggerExpanded&&r.triggerExpanded(...o))},[a.createElementVNode("span",{class:a.normalizeClass(s.internalValue?"collapsible-container__chevron--opened":"collapsible-container__chevron--closed")},null,2),a.renderSlot(t.$slots,"title",{},()=>[a.createElementVNode("span",JS,a.toDisplayString(n.title),1)])]),s.internalValue?(a.openBlock(),a.createElementBlock("div",QS,[a.renderSlot(t.$slots,"default")])):a.createCommentVNode("",!0)])}const tM=oe(ZS,[["render",eM]]),w0=t=>{var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:null},nM=.2126,iM=.7152,sM=.0722,rM=2.4,aM={POOR:3,GOOD:4.5,VERYGOOD:7,SUPER:12},oM=(t,e,n="GOOD")=>{let i=w0(t),s=w0(e);var r=Og(...i),o=Og(...s),c=Math.max(r,o),d=Math.min(r,o);return(c+.05)/(d+.05)>=aM[n]};function Og(t,e,n){var i=[t,e,n].map(s=>(s/=255,s<=.03928?s/12.92:Math.pow((s+.055)/1.055,rM)));return i[0]*nM+i[1]*iM+i[2]*sM}const Lle="",k0={components:{CdsPopover:y1,CdsIcon:$t},props:{modelValue:{type:String,required:!0},label:{type:String,default:"Label"},inline:{type:Boolean,default:!1},popoverHeight:{type:Number,default:190},swatch:{type:Array,default:()=>[]}},data(){return{selectedColor:this.modelValue,sassColorVariables:Gs,showPopover:!1}},computed:{iconColorResolver(){return this.ContrastChecker(this.selectedColor,"#FFFFFF","POOR")?"swatch__icon--white":"swatch__icon--black"},palete(){return this.paleteBuilder(this.sassColorVariables.palete)}},watch:{modelValue:{handler(t,e){t!==e&&(this.selectedColor=t)},immediate:!0}},methods:{paleteBuilder:Ea,ContrastChecker:oM,SwatchSelection(t){let e="";this.selectedColor=this.sassColorVariables[t.replace(/-|\$/gi,"")],this.palete.forEach(n=>{n.colorTokens.find(i=>i===t)&&(e=n.variantName.toLowerCase())}),this.$emit("update:modelValue",this.selectedColor),this.$emit("variant-chosen",e)},isCurrentColorSelected(t){return this.selectedColor===this.sassColorVariables[t.replace(/-|\$/gi,"")]}}},Dg=()=>{a.useCssVars(t=>({f73e5680:t.selectedColor}))},Eg=k0.setup;k0.setup=Eg?(t,e)=>(Dg(),Eg(t,e)):Dg;const lM=k0,cM=t=>(a.pushScopeId("data-v-a4ff5e3b"),t=t(),a.popScopeId(),t),dM={key:0},uM={class:"color-picker__label"},hM=["onClick"],fM={key:1},pM=[cM(()=>a.createElementVNode("div",{class:"color-picker__preview"},null,-1))],mM=["onClick"];function gM(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-popover");return n.inline?(a.openBlock(),a.createElementBlock("div",dM,[a.createElementVNode("div",uM,a.toDisplayString(n.label),1),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.swatch,(d,h)=>(a.openBlock(),a.createElementBlock("div",{key:h,class:"color-picker__container"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d,(f,m)=>(a.openBlock(),a.createElementBlock("div",{key:m},[a.createElementVNode("div",{class:a.normalizeClass(`color-picker__swatch--${f.replace("$","")}`),onClick:g=>r.SwatchSelection(f)},[r.isCurrentColorSelected(f)?(a.openBlock(),a.createBlock(o,{key:0,height:"22",width:"22",name:"check-outline",class:a.normalizeClass(["swatch__icon",r.iconColorResolver])},null,8,["class"])):a.createCommentVNode("",!0)],10,hM)]))),128))]))),128))])):(a.openBlock(),a.createElementBlock("div",fM,[a.createElementVNode("div",{id:"color-picker",class:"color-picker__trigger",onClick:e[0]||(e[0]=a.withModifiers(d=>s.showPopover=!s.showPopover,["stop"]))},pM),a.createVNode(c,{modelValue:s.showPopover,"onUpdate:modelValue":e[1]||(e[1]=d=>s.showPopover=d),"right-aligned":!1,"target-id":"color-picker",height:n.popoverHeight,"fit-content-width":""},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.swatch,(d,h)=>(a.openBlock(),a.createElementBlock("div",{key:h,class:"popover__container"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d,(f,m)=>(a.openBlock(),a.createElementBlock("div",{key:m},[a.createElementVNode("div",{class:a.normalizeClass(`color-picker__swatch--${f.replace("$","")}`),onClick:g=>r.SwatchSelection(f)},[r.isCurrentColorSelected(f)?(a.openBlock(),a.createBlock(o,{key:0,height:"22",width:"22",name:"check-outline",class:a.normalizeClass(["swatch__icon",r.iconColorResolver])},null,8,["class"])):a.createCommentVNode("",!0)],10,mM)]))),128))]))),128))]),_:1},8,["modelValue","height"])]))}const _M=oe(lM,[["render",gM],["__scopeId","data-v-a4ff5e3b"]]),Rle="",vM={props:{title:{type:String,default:"",required:!1},description:{type:String,default:"",required:!1},showAction:{type:Boolean,default:!1,required:!1},action:{type:String,default:"Action",required:!1},fluid:{type:Boolean,default:!1}}},yM={class:"dashboard-card"},bM={class:"dashboard-card__header"},wM={key:0,class:"dashboard-card__title"},kM={key:1,class:"dashboard-card__title"},xM={key:0,class:"dashboard-card__description"},CM={key:1,class:"dashboard-card__description"},SM={key:0};function MM(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",yM,[a.createElementVNode("div",null,[a.createElementVNode("div",bM,[n.title.length>0?(a.openBlock(),a.createElementBlock("p",wM,a.toDisplayString(n.title),1)):(a.openBlock(),a.createElementBlock("p",kM,[a.renderSlot(t.$slots,"title-slot",{},void 0,!0)])),a.createElementVNode("div",null,[a.renderSlot(t.$slots,"status-slot",{},void 0,!0)])]),n.description.length>0?(a.openBlock(),a.createElementBlock("p",xM,a.toDisplayString(n.description),1)):(a.openBlock(),a.createElementBlock("p",CM,[a.renderSlot(t.$slots,"description-slot",{},void 0,!0)]))]),a.createElementVNode("div",{class:"dashboard-card__action",onClick:e[0]||(e[0]=o=>t.$emit("action-button-click"))},[a.renderSlot(t.$slots,"action-slot",{},()=>[n.showAction?(a.openBlock(),a.createElementBlock("div",SM,a.toDisplayString(n.action),1)):a.createCommentVNode("",!0)],!0)])])}const OM=oe(vM,[["render",MM],["__scopeId","data-v-cd0db219"]]);class Vr extends Error{}class DM extends Vr{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class EM extends Vr{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class TM extends Vr{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Ta extends Vr{}class Tg extends Vr{constructor(e){super(`Invalid unit ${e}`)}}class Hn extends Vr{}class Ks extends Vr{constructor(){super("Zone is an abstract class")}}const ce="numeric",Ai="short",ei="long",md={year:ce,month:ce,day:ce},Ig={year:ce,month:Ai,day:ce},IM={year:ce,month:Ai,day:ce,weekday:Ai},Bg={year:ce,month:ei,day:ce},Ag={year:ce,month:ei,day:ce,weekday:ei},Vg={hour:ce,minute:ce},$g={hour:ce,minute:ce,second:ce},Ng={hour:ce,minute:ce,second:ce,timeZoneName:Ai},zg={hour:ce,minute:ce,second:ce,timeZoneName:ei},Pg={hour:ce,minute:ce,hourCycle:"h23"},Lg={hour:ce,minute:ce,second:ce,hourCycle:"h23"},Fg={hour:ce,minute:ce,second:ce,hourCycle:"h23",timeZoneName:Ai},Rg={hour:ce,minute:ce,second:ce,hourCycle:"h23",timeZoneName:ei},Hg={year:ce,month:ce,day:ce,hour:ce,minute:ce},Wg={year:ce,month:ce,day:ce,hour:ce,minute:ce,second:ce},Yg={year:ce,month:Ai,day:ce,hour:ce,minute:ce},jg={year:ce,month:Ai,day:ce,hour:ce,minute:ce,second:ce},BM={year:ce,month:Ai,day:ce,weekday:Ai,hour:ce,minute:ce},Ug={year:ce,month:ei,day:ce,hour:ce,minute:ce,timeZoneName:Ai},qg={year:ce,month:ei,day:ce,hour:ce,minute:ce,second:ce,timeZoneName:Ai},Gg={year:ce,month:ei,day:ce,weekday:ei,hour:ce,minute:ce,timeZoneName:ei},Kg={year:ce,month:ei,day:ce,weekday:ei,hour:ce,minute:ce,second:ce,timeZoneName:ei};class wl{get type(){throw new Ks}get name(){throw new Ks}get ianaName(){return this.name}get isUniversal(){throw new Ks}offsetName(e,n){throw new Ks}formatOffset(e,n){throw new Ks}offset(e){throw new Ks}equals(e){throw new Ks}get isValid(){throw new Ks}}let x0=null;class gd extends wl{static get instance(){return x0===null&&(x0=new gd),x0}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:i}){return y3(e,n,i)}formatOffset(e,n){return Sl(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let _d={};function AM(t){return _d[t]||(_d[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),_d[t]}const VM={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function $M(t,e){const n=t.format(e).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,r,o,c,d,h,f]=i;return[o,s,r,c,d,h,f]}function NM(t,e){const n=t.formatToParts(e),i=[];for(let s=0;s<n.length;s++){const{type:r,value:o}=n[s],c=VM[r];r==="era"?i[c]=o:Ie(c)||(i[c]=parseInt(o,10))}return i}let vd={};class gs extends wl{static create(e){return vd[e]||(vd[e]=new gs(e)),vd[e]}static resetCache(){vd={},_d={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=gs.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:i}){return y3(e,n,i,this.name)}formatOffset(e,n){return Sl(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const i=AM(this.name);let[s,r,o,c,d,h,f]=i.formatToParts?NM(i,n):$M(i,n);c==="BC"&&(s=-Math.abs(s)+1);const g=xd({year:s,month:r,day:o,hour:d===24?0:d,minute:h,second:f,millisecond:0});let v=+n;const b=v%1e3;return v-=b>=0?b:1e3+b,(g-v)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Zg={};function zM(t,e={}){const n=JSON.stringify([t,e]);let i=Zg[n];return i||(i=new Intl.ListFormat(t,e),Zg[n]=i),i}let C0={};function S0(t,e={}){const n=JSON.stringify([t,e]);let i=C0[n];return i||(i=new Intl.DateTimeFormat(t,e),C0[n]=i),i}let M0={};function PM(t,e={}){const n=JSON.stringify([t,e]);let i=M0[n];return i||(i=new Intl.NumberFormat(t,e),M0[n]=i),i}let O0={};function LM(t,e={}){const{base:n,...i}=e,s=JSON.stringify([t,i]);let r=O0[s];return r||(r=new Intl.RelativeTimeFormat(t,e),O0[s]=r),r}let kl=null;function FM(){return kl||(kl=new Intl.DateTimeFormat().resolvedOptions().locale,kl)}let Xg={};function RM(t){let e=Xg[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,Xg[t]=e}return e}function HM(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let i,s;try{i=S0(t).resolvedOptions(),s=t}catch{const d=t.substring(0,n);i=S0(d).resolvedOptions(),s=d}const{numberingSystem:r,calendar:o}=i;return[s,r,o]}}function WM(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function YM(t){const e=[];for(let n=1;n<=12;n++){const i=Ce.utc(2009,n,1);e.push(t(i))}return e}function jM(t){const e=[];for(let n=1;n<=7;n++){const i=Ce.utc(2016,11,13+n);e.push(t(i))}return e}function yd(t,e,n,i){const s=t.listingMode();return s==="error"?null:s==="en"?n(e):i(e)}function UM(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class qM{constructor(e,n,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:s,floor:r,...o}=i;if(!n||Object.keys(o).length>0){const c={useGrouping:!1,...i};i.padTo>0&&(c.minimumIntegerDigits=i.padTo),this.inf=PM(e,c)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):V0(e,3);return Jt(n,this.padTo)}}}class GM{constructor(e,n,i){this.opts=i,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const o=-1*(e.offset/60),c=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&gs.create(c).valid?(s=c,this.dt=e):(s="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const r={...this.opts};r.timeZone=r.timeZone||s,this.dtf=S0(n,r)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const i=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:i}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class KM{constructor(e,n,i){this.opts={style:"long",...i},!n&&m3()&&(this.rtf=LM(e,i))}format(e,n){return this.rtf?this.rtf.format(e,n):mO(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const ZM={firstDay:1,minimalDays:4,weekend:[6,7]};class _t{static fromOpts(e){return _t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,i,s,r=!1){const o=e||qt.defaultLocale,c=o||(r?"en-US":FM()),d=n||qt.defaultNumberingSystem,h=i||qt.defaultOutputCalendar,f=B0(s)||qt.defaultWeekSettings;return new _t(c,d,h,f,o)}static resetCache(){kl=null,C0={},M0={},O0={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:i,weekSettings:s}={}){return _t.create(e,n,i,s)}constructor(e,n,i,s,r){const[o,c,d]=HM(e);this.locale=o,this.numberingSystem=n||c||null,this.outputCalendar=i||d||null,this.weekSettings=s,this.intl=WM(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=UM(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:_t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,B0(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return yd(this,e,k3,()=>{const i=n?{month:e,day:"numeric"}:{month:e},s=n?"format":"standalone";return this.monthsCache[s][e]||(this.monthsCache[s][e]=YM(r=>this.extract(r,i,"month"))),this.monthsCache[s][e]})}weekdays(e,n=!1){return yd(this,e,S3,()=>{const i=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=n?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=jM(r=>this.extract(r,i,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return yd(this,void 0,()=>M3,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ce.utc(2016,11,13,9),Ce.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return yd(this,e,O3,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[Ce.utc(-40,1,1),Ce.utc(2017,1,1)].map(i=>this.extract(i,n,"era"))),this.eraCache[e]})}extract(e,n,i){const s=this.dtFormatter(e,n),r=s.formatToParts(),o=r.find(c=>c.type.toLowerCase()===i);return o?o.value:null}numberFormatter(e={}){return new qM(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new GM(e,this.intl,n)}relFormatter(e={}){return new KM(this.intl,this.isEnglish(),e)}listFormatter(e={}){return zM(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:g3()?RM(this.locale):ZM}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let D0=null;class En extends wl{static get utcInstance(){return D0===null&&(D0=new En(0)),D0}static instance(e){return e===0?En.utcInstance:new En(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new En(Cd(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Sl(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Sl(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Sl(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class XM extends wl{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Zs(t,e){if(Ie(t)||t===null)return e;if(t instanceof wl)return t;if(eO(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?gd.instance:n==="utc"||n==="gmt"?En.utcInstance:En.parseSpecifier(n)||gs.create(t)}else return $r(t)?En.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new XM(t)}let Jg=()=>Date.now(),Qg="system",e3=null,t3=null,n3=null,i3=60,s3,r3=null;class qt{static get now(){return Jg}static set now(e){Jg=e}static set defaultZone(e){Qg=e}static get defaultZone(){return Zs(Qg,gd.instance)}static get defaultLocale(){return e3}static set defaultLocale(e){e3=e}static get defaultNumberingSystem(){return t3}static set defaultNumberingSystem(e){t3=e}static get defaultOutputCalendar(){return n3}static set defaultOutputCalendar(e){n3=e}static get defaultWeekSettings(){return r3}static set defaultWeekSettings(e){r3=B0(e)}static get twoDigitCutoffYear(){return i3}static set twoDigitCutoffYear(e){i3=e%100}static get throwOnInvalid(){return s3}static set throwOnInvalid(e){s3=e}static resetCaches(){_t.resetCache(),gs.resetCache()}}class Vi{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const a3=[0,31,59,90,120,151,181,212,243,273,304,334],o3=[0,31,60,91,121,152,182,213,244,274,305,335];function pi(t,e){return new Vi("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function E0(t,e,n){const i=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const s=i.getUTCDay();return s===0?7:s}function l3(t,e,n){return n+(xl(t)?o3:a3)[e-1]}function c3(t,e){const n=xl(t)?o3:a3,i=n.findIndex(r=>r<e),s=e-n[i];return{month:i+1,day:s}}function T0(t,e){return(t-e+7)%7+1}function bd(t,e=4,n=1){const{year:i,month:s,day:r}=t,o=l3(i,s,r),c=T0(E0(i,s,r),n);let d=Math.floor((o-c+14-e)/7),h;return d<1?(h=i-1,d=Cl(h,e,n)):d>Cl(i,e,n)?(h=i+1,d=1):h=i,{weekYear:h,weekNumber:d,weekday:c,...Md(t)}}function d3(t,e=4,n=1){const{weekYear:i,weekNumber:s,weekday:r}=t,o=T0(E0(i,1,e),n),c=Ba(i);let d=s*7+r-o-7+e,h;d<1?(h=i-1,d+=Ba(h)):d>c?(h=i+1,d-=Ba(i)):h=i;const{month:f,day:m}=c3(h,d);return{year:h,month:f,day:m,...Md(t)}}function I0(t){const{year:e,month:n,day:i}=t,s=l3(e,n,i);return{year:e,ordinal:s,...Md(t)}}function u3(t){const{year:e,ordinal:n}=t,{month:i,day:s}=c3(e,n);return{year:e,month:i,day:s,...Md(t)}}function h3(t,e){if(!Ie(t.localWeekday)||!Ie(t.localWeekNumber)||!Ie(t.localWeekYear)){if(!Ie(t.weekday)||!Ie(t.weekNumber)||!Ie(t.weekYear))throw new Ta("Cannot mix locale-based week fields with ISO-based week fields");return Ie(t.localWeekday)||(t.weekday=t.localWeekday),Ie(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Ie(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function JM(t,e=4,n=1){const i=wd(t.weekYear),s=mi(t.weekNumber,1,Cl(t.weekYear,e,n)),r=mi(t.weekday,1,7);return i?s?r?!1:pi("weekday",t.weekday):pi("week",t.weekNumber):pi("weekYear",t.weekYear)}function QM(t){const e=wd(t.year),n=mi(t.ordinal,1,Ba(t.year));return e?n?!1:pi("ordinal",t.ordinal):pi("year",t.year)}function f3(t){const e=wd(t.year),n=mi(t.month,1,12),i=mi(t.day,1,kd(t.year,t.month));return e?n?i?!1:pi("day",t.day):pi("month",t.month):pi("year",t.year)}function p3(t){const{hour:e,minute:n,second:i,millisecond:s}=t,r=mi(e,0,23)||e===24&&n===0&&i===0&&s===0,o=mi(n,0,59),c=mi(i,0,59),d=mi(s,0,999);return r?o?c?d?!1:pi("millisecond",s):pi("second",i):pi("minute",n):pi("hour",e)}function Ie(t){return typeof t>"u"}function $r(t){return typeof t=="number"}function wd(t){return typeof t=="number"&&t%1===0}function eO(t){return typeof t=="string"}function tO(t){return Object.prototype.toString.call(t)==="[object Date]"}function m3(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function g3(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function nO(t){return Array.isArray(t)?t:[t]}function _3(t,e,n){if(t.length!==0)return t.reduce((i,s)=>{const r=[e(s),s];return i&&n(i[0],r[0])===i[0]?i:r},null)[1]}function iO(t,e){return e.reduce((n,i)=>(n[i]=t[i],n),{})}function Ia(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function B0(t){if(t==null)return null;if(typeof t!="object")throw new Hn("Week settings must be an object");if(!mi(t.firstDay,1,7)||!mi(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!mi(e,1,7)))throw new Hn("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function mi(t,e,n){return wd(t)&&t>=e&&t<=n}function sO(t,e){return t-e*Math.floor(t/e)}function Jt(t,e=2){const n=t<0;let i;return n?i="-"+(""+-t).padStart(e,"0"):i=(""+t).padStart(e,"0"),i}function Xs(t){if(!(Ie(t)||t===null||t===""))return parseInt(t,10)}function Nr(t){if(!(Ie(t)||t===null||t===""))return parseFloat(t)}function A0(t){if(!(Ie(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function V0(t,e,n=!1){const i=10**e;return(n?Math.trunc:Math.round)(t*i)/i}function xl(t){return t%4===0&&(t%100!==0||t%400===0)}function Ba(t){return xl(t)?366:365}function kd(t,e){const n=sO(e-1,12)+1,i=t+(e-n)/12;return n===2?xl(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function xd(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function v3(t,e,n){return-T0(E0(t,1,e),n)+e-1}function Cl(t,e=4,n=1){const i=v3(t,e,n),s=v3(t+1,e,n);return(Ba(t)-i+s)/7}function $0(t){return t>99?t:t>qt.twoDigitCutoffYear?1900+t:2e3+t}function y3(t,e,n,i=null){const s=new Date(t),r={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(r.timeZone=i);const o={timeZoneName:e,...r},c=new Intl.DateTimeFormat(n,o).formatToParts(s).find(d=>d.type.toLowerCase()==="timezonename");return c?c.value:null}function Cd(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const i=parseInt(e,10)||0,s=n<0||Object.is(n,-0)?-i:i;return n*60+s}function b3(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Hn(`Invalid unit value ${t}`);return e}function Sd(t,e){const n={};for(const i in t)if(Ia(t,i)){const s=t[i];if(s==null)continue;n[e(i)]=b3(s)}return n}function Sl(t,e){const n=Math.trunc(Math.abs(t/60)),i=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${Jt(n,2)}:${Jt(i,2)}`;case"narrow":return`${s}${n}${i>0?`:${i}`:""}`;case"techie":return`${s}${Jt(n,2)}${Jt(i,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Md(t){return iO(t,["hour","minute","second","millisecond"])}const rO=["January","February","March","April","May","June","July","August","September","October","November","December"],w3=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],aO=["J","F","M","A","M","J","J","A","S","O","N","D"];function k3(t){switch(t){case"narrow":return[...aO];case"short":return[...w3];case"long":return[...rO];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const x3=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],C3=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],oO=["M","T","W","T","F","S","S"];function S3(t){switch(t){case"narrow":return[...oO];case"short":return[...C3];case"long":return[...x3];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const M3=["AM","PM"],lO=["Before Christ","Anno Domini"],cO=["BC","AD"],dO=["B","A"];function O3(t){switch(t){case"narrow":return[...dO];case"short":return[...cO];case"long":return[...lO];default:return null}}function uO(t){return M3[t.hour<12?0:1]}function hO(t,e){return S3(e)[t.weekday-1]}function fO(t,e){return k3(e)[t.month-1]}function pO(t,e){return O3(e)[t.year<0?0:1]}function mO(t,e,n="always",i=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&r){const m=t==="days";switch(e){case 1:return m?"tomorrow":`next ${s[t][0]}`;case-1:return m?"yesterday":`last ${s[t][0]}`;case 0:return m?"today":`this ${s[t][0]}`}}const o=Object.is(e,-0)||e<0,c=Math.abs(e),d=c===1,h=s[t],f=i?d?h[1]:h[2]||h[1]:d?s[t][0]:t;return o?`${c} ${f} ago`:`in ${c} ${f}`}function D3(t,e){let n="";for(const i of t)i.literal?n+=i.val:n+=e(i.val);return n}const gO={D:md,DD:Ig,DDD:Bg,DDDD:Ag,t:Vg,tt:$g,ttt:Ng,tttt:zg,T:Pg,TT:Lg,TTT:Fg,TTTT:Rg,f:Hg,ff:Yg,fff:Ug,ffff:Gg,F:Wg,FF:jg,FFF:qg,FFFF:Kg};class wn{static create(e,n={}){return new wn(e,n)}static parseFormat(e){let n=null,i="",s=!1;const r=[];for(let o=0;o<e.length;o++){const c=e.charAt(o);c==="'"?(i.length>0&&r.push({literal:s||/^\s+$/.test(i),val:i}),n=null,i="",s=!s):s||c===n?i+=c:(i.length>0&&r.push({literal:/^\s+$/.test(i),val:i}),i=c,n=c)}return i.length>0&&r.push({literal:s||/^\s+$/.test(i),val:i}),r}static macroTokenToFormatOpts(e){return gO[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return Jt(e,n);const i={...this.opts};return n>0&&(i.padTo=n),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,n){const i=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",r=(v,b)=>this.loc.extract(e,v,b),o=v=>e.isOffsetFixed&&e.offset===0&&v.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,v.format):"",c=()=>i?uO(e):r({hour:"numeric",hourCycle:"h12"},"dayperiod"),d=(v,b)=>i?fO(e,v):r(b?{month:v}:{month:v,day:"numeric"},"month"),h=(v,b)=>i?hO(e,v):r(b?{weekday:v}:{weekday:v,month:"long",day:"numeric"},"weekday"),f=v=>{const b=wn.macroTokenToFormatOpts(v);return b?this.formatWithSystemDefault(e,b):v},m=v=>i?pO(e,v):r({era:v},"era"),g=v=>{switch(v){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return c();case"d":return s?r({day:"numeric"},"day"):this.num(e.day);case"dd":return s?r({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return h("short",!0);case"cccc":return h("long",!0);case"ccccc":return h("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return h("short",!1);case"EEEE":return h("long",!1);case"EEEEE":return h("narrow",!1);case"L":return s?r({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?r({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return d("short",!0);case"LLLL":return d("long",!0);case"LLLLL":return d("narrow",!0);case"M":return s?r({month:"numeric"},"month"):this.num(e.month);case"MM":return s?r({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return d("short",!1);case"MMMM":return d("long",!1);case"MMMMM":return d("narrow",!1);case"y":return s?r({year:"numeric"},"year"):this.num(e.year);case"yy":return s?r({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?r({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?r({year:"numeric"},"year"):this.num(e.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return f(v)}};return D3(wn.parseFormat(n),g)}formatDurationFromString(e,n){const i=d=>{switch(d[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=d=>h=>{const f=i(h);return f?this.num(d.get(f),h.length):h},r=wn.parseFormat(n),o=r.reduce((d,{literal:h,val:f})=>h?d:d.concat(f),[]),c=e.shiftTo(...o.map(i).filter(d=>d));return D3(r,s(c))}}const E3=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Aa(...t){const e=t.reduce((n,i)=>n+i.source,"");return RegExp(`^${e}$`)}function Va(...t){return e=>t.reduce(([n,i,s],r)=>{const[o,c,d]=r(e,s);return[{...n,...o},c||i,d]},[{},null,1]).slice(0,2)}function $a(t,...e){if(t==null)return[null,null];for(const[n,i]of e){const s=n.exec(t);if(s)return i(s)}return[null,null]}function T3(...t){return(e,n)=>{const i={};let s;for(s=0;s<t.length;s++)i[t[s]]=Xs(e[n+s]);return[i,null,n+s]}}const I3=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,_O=`(?:${I3.source}?(?:\\[(${E3.source})\\])?)?`,N0=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,B3=RegExp(`${N0.source}${_O}`),z0=RegExp(`(?:T${B3.source})?`),vO=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,yO=/(\d{4})-?W(\d\d)(?:-?(\d))?/,bO=/(\d{4})-?(\d{3})/,wO=T3("weekYear","weekNumber","weekDay"),kO=T3("year","ordinal"),xO=/(\d{4})-(\d\d)-(\d\d)/,A3=RegExp(`${N0.source} ?(?:${I3.source}|(${E3.source}))?`),CO=RegExp(`(?: ${A3.source})?`);function Na(t,e,n){const i=t[e];return Ie(i)?n:Xs(i)}function SO(t,e){return[{year:Na(t,e),month:Na(t,e+1,1),day:Na(t,e+2,1)},null,e+3]}function za(t,e){return[{hours:Na(t,e,0),minutes:Na(t,e+1,0),seconds:Na(t,e+2,0),milliseconds:A0(t[e+3])},null,e+4]}function Ml(t,e){const n=!t[e]&&!t[e+1],i=Cd(t[e+1],t[e+2]),s=n?null:En.instance(i);return[{},s,e+3]}function Ol(t,e){const n=t[e]?gs.create(t[e]):null;return[{},n,e+1]}const MO=RegExp(`^T?${N0.source}$`),OO=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function DO(t){const[e,n,i,s,r,o,c,d,h]=t,f=e[0]==="-",m=d&&d[0]==="-",g=(v,b=!1)=>v!==void 0&&(b||v&&f)?-v:v;return[{years:g(Nr(n)),months:g(Nr(i)),weeks:g(Nr(s)),days:g(Nr(r)),hours:g(Nr(o)),minutes:g(Nr(c)),seconds:g(Nr(d),d==="-0"),milliseconds:g(A0(h),m)}]}const EO={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function P0(t,e,n,i,s,r,o){const c={year:e.length===2?$0(Xs(e)):Xs(e),month:w3.indexOf(n)+1,day:Xs(i),hour:Xs(s),minute:Xs(r)};return o&&(c.second=Xs(o)),t&&(c.weekday=t.length>3?x3.indexOf(t)+1:C3.indexOf(t)+1),c}const TO=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function IO(t){const[,e,n,i,s,r,o,c,d,h,f,m]=t,g=P0(e,s,i,n,r,o,c);let v;return d?v=EO[d]:h?v=0:v=Cd(f,m),[g,new En(v)]}function BO(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const AO=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,VO=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,$O=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function V3(t){const[,e,n,i,s,r,o,c]=t;return[P0(e,s,i,n,r,o,c),En.utcInstance]}function NO(t){const[,e,n,i,s,r,o,c]=t;return[P0(e,c,n,i,s,r,o),En.utcInstance]}const zO=Aa(vO,z0),PO=Aa(yO,z0),LO=Aa(bO,z0),FO=Aa(B3),$3=Va(SO,za,Ml,Ol),RO=Va(wO,za,Ml,Ol),HO=Va(kO,za,Ml,Ol),WO=Va(za,Ml,Ol);function YO(t){return $a(t,[zO,$3],[PO,RO],[LO,HO],[FO,WO])}function jO(t){return $a(BO(t),[TO,IO])}function UO(t){return $a(t,[AO,V3],[VO,V3],[$O,NO])}function qO(t){return $a(t,[OO,DO])}const GO=Va(za);function KO(t){return $a(t,[MO,GO])}const ZO=Aa(xO,CO),XO=Aa(A3),JO=Va(za,Ml,Ol);function QO(t){return $a(t,[ZO,$3],[XO,JO])}const N3="Invalid Duration",z3={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},eD={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...z3},gi=146097/400,Pa=146097/4800,tD={years:{quarters:4,months:12,weeks:gi/7,days:gi,hours:gi*24,minutes:gi*24*60,seconds:gi*24*60*60,milliseconds:gi*24*60*60*1e3},quarters:{months:3,weeks:gi/28,days:gi/4,hours:gi*24/4,minutes:gi*24*60/4,seconds:gi*24*60*60/4,milliseconds:gi*24*60*60*1e3/4},months:{weeks:Pa/7,days:Pa,hours:Pa*24,minutes:Pa*24*60,seconds:Pa*24*60*60,milliseconds:Pa*24*60*60*1e3},...z3},zr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],nD=zr.slice(0).reverse();function Js(t,e,n=!1){const i={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Je(i)}function P3(t,e){let n=e.milliseconds??0;for(const i of nD.slice(1))e[i]&&(n+=e[i]*t[i].milliseconds);return n}function L3(t,e){const n=P3(t,e)<0?-1:1;zr.reduceRight((i,s)=>{if(Ie(e[s]))return i;if(i){const r=e[i]*n,o=t[s][i],c=Math.floor(r/o);e[s]+=c*n,e[i]-=c*o*n}return s},null),zr.reduce((i,s)=>{if(Ie(e[s]))return i;if(i){const r=e[i]%1;e[i]-=r,e[s]+=r*t[i][s]}return s},null)}function iD(t){const e={};for(const[n,i]of Object.entries(t))i!==0&&(e[n]=i);return e}class Je{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let i=n?tD:eD;e.matrix&&(i=e.matrix),this.values=e.values,this.loc=e.loc||_t.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(e,n){return Je.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new Hn(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Je({values:Sd(e,Je.normalizeUnit),loc:_t.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if($r(e))return Je.fromMillis(e);if(Je.isDuration(e))return e;if(typeof e=="object")return Je.fromObject(e);throw new Hn(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[i]=qO(e);return i?Je.fromObject(i,n):Je.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[i]=KO(e);return i?Je.fromObject(i,n):Je.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new Hn("need to specify a reason the Duration is invalid");const i=e instanceof Vi?e:new Vi(e,n);if(qt.throwOnInvalid)throw new TM(i);return new Je({invalid:i})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new Tg(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const i={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?wn.create(this.loc,i).formatDurationFromString(this,e):N3}toHuman(e={}){if(!this.isValid)return N3;const n=zr.map(i=>{const s=this.values[i];return Ie(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(s)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=V0(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Ce.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?P3(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=Je.fromDurationLike(e),i={};for(const s of zr)(Ia(n.values,s)||Ia(this.values,s))&&(i[s]=n.get(s)+this.get(s));return Js(this,{values:i},!0)}minus(e){if(!this.isValid)return this;const n=Je.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const i of Object.keys(this.values))n[i]=b3(e(this.values[i],i));return Js(this,{values:n},!0)}get(e){return this[Je.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Sd(e,Je.normalizeUnit)};return Js(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:i,matrix:s}={}){const o={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:s,conversionAccuracy:i};return Js(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return L3(this.matrix,e),Js(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=iD(this.normalize().shiftToAll().toObject());return Js(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>Je.normalizeUnit(o));const n={},i={},s=this.toObject();let r;for(const o of zr)if(e.indexOf(o)>=0){r=o;let c=0;for(const h in i)c+=this.matrix[h][o]*i[h],i[h]=0;$r(s[o])&&(c+=s[o]);const d=Math.trunc(c);n[o]=d,i[o]=(c*1e3-d*1e3)/1e3}else $r(s[o])&&(i[o]=s[o]);for(const o in i)i[o]!==0&&(n[r]+=o===r?i[o]:i[o]/this.matrix[r][o]);return L3(this.matrix,n),Js(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return Js(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(i,s){return i===void 0||i===0?s===void 0||s===0:i===s}for(const i of zr)if(!n(this.values[i],e.values[i]))return!1;return!0}}const La="Invalid Interval";function sD(t,e){return!t||!t.isValid?Lt.invalid("missing or invalid start"):!e||!e.isValid?Lt.invalid("missing or invalid end"):e<t?Lt.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class Lt{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new Hn("need to specify a reason the Interval is invalid");const i=e instanceof Vi?e:new Vi(e,n);if(qt.throwOnInvalid)throw new EM(i);return new Lt({invalid:i})}static fromDateTimes(e,n){const i=El(e),s=El(n),r=sD(i,s);return r??new Lt({start:i,end:s})}static after(e,n){const i=Je.fromDurationLike(n),s=El(e);return Lt.fromDateTimes(s,s.plus(i))}static before(e,n){const i=Je.fromDurationLike(n),s=El(e);return Lt.fromDateTimes(s.minus(i),s)}static fromISO(e,n){const[i,s]=(e||"").split("/",2);if(i&&s){let r,o;try{r=Ce.fromISO(i,n),o=r.isValid}catch{o=!1}let c,d;try{c=Ce.fromISO(s,n),d=c.isValid}catch{d=!1}if(o&&d)return Lt.fromDateTimes(r,c);if(o){const h=Je.fromISO(s,n);if(h.isValid)return Lt.after(r,h)}else if(d){const h=Je.fromISO(i,n);if(h.isValid)return Lt.before(c,h)}}return Lt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const i=this.start.startOf(e,n);let s;return n!=null&&n.useLocaleWeeks?s=this.end.reconfigure({locale:i.locale}):s=this.end,s=s.startOf(e,n),Math.floor(s.diff(i,e).get(e))+(s.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?Lt.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(El).filter(o=>this.contains(o)).sort((o,c)=>o.toMillis()-c.toMillis()),i=[];let{s}=this,r=0;for(;s<this.e;){const o=n[r]||this.e,c=+o>+this.e?this.e:o;i.push(Lt.fromDateTimes(s,c)),s=c,r+=1}return i}splitBy(e){const n=Je.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:i}=this,s=1,r;const o=[];for(;i<this.e;){const c=this.start.plus(n.mapUnits(d=>d*s));r=+c>+this.e?this.e:c,o.push(Lt.fromDateTimes(i,r)),i=r,s+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,i=this.e<e.e?this.e:e.e;return n>=i?null:Lt.fromDateTimes(n,i)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,i=this.e>e.e?this.e:e.e;return Lt.fromDateTimes(n,i)}static merge(e){const[n,i]=e.sort((s,r)=>s.s-r.s).reduce(([s,r],o)=>r?r.overlaps(o)||r.abutsStart(o)?[s,r.union(o)]:[s.concat([r]),o]:[s,o],[[],null]);return i&&n.push(i),n}static xor(e){let n=null,i=0;const s=[],r=e.map(d=>[{time:d.s,type:"s"},{time:d.e,type:"e"}]),o=Array.prototype.concat(...r),c=o.sort((d,h)=>d.time-h.time);for(const d of c)i+=d.type==="s"?1:-1,i===1?n=d.time:(n&&+n!=+d.time&&s.push(Lt.fromDateTimes(n,d.time)),n=null);return Lt.merge(s)}difference(...e){return Lt.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:La}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=md,n={}){return this.isValid?wn.create(this.s.loc.clone(n),e).formatInterval(this):La}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:La}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:La}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:La}toFormat(e,{separator:n=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:La}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):Je.invalid(this.invalidReason)}mapEndpoints(e){return Lt.fromDateTimes(e(this.s),e(this.e))}}class Od{static hasDST(e=qt.defaultZone){const n=Ce.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return gs.isValidZone(e)}static normalizeZone(e){return Zs(e,qt.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||_t.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||_t.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||_t.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:i=null,locObj:s=null,outputCalendar:r="gregory"}={}){return(s||_t.create(n,i,r)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:i=null,locObj:s=null,outputCalendar:r="gregory"}={}){return(s||_t.create(n,i,r)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:i=null,locObj:s=null}={}){return(s||_t.create(n,i,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:i=null,locObj:s=null}={}){return(s||_t.create(n,i,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return _t.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return _t.create(n,null,"gregory").eras(e)}static features(){return{relative:m3(),localeWeek:g3()}}}function F3(t,e){const n=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=n(e)-n(t);return Math.floor(Je.fromMillis(i).as("days"))}function rD(t,e,n){const i=[["years",(d,h)=>h.year-d.year],["quarters",(d,h)=>h.quarter-d.quarter+(h.year-d.year)*4],["months",(d,h)=>h.month-d.month+(h.year-d.year)*12],["weeks",(d,h)=>{const f=F3(d,h);return(f-f%7)/7}],["days",F3]],s={},r=t;let o,c;for(const[d,h]of i)n.indexOf(d)>=0&&(o=d,s[d]=h(t,e),c=r.plus(s),c>e?(s[d]--,t=r.plus(s),t>e&&(c=t,s[d]--,t=r.plus(s))):t=c);return[t,s,c,o]}function aD(t,e,n,i){let[s,r,o,c]=rD(t,e,n);const d=e-s,h=n.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);h.length===0&&(o<e&&(o=s.plus({[c]:1})),o!==s&&(r[c]=(r[c]||0)+d/(o-s)));const f=Je.fromObject(r,i);return h.length>0?Je.fromMillis(d,i).shiftTo(...h).plus(f):f}const L0={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},R3={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},oD=L0.hanidec.replace(/[\[|\]]/g,"").split("");function lD(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);if(t[n].search(L0.hanidec)!==-1)e+=oD.indexOf(t[n]);else for(const s in R3){const[r,o]=R3[s];i>=r&&i<=o&&(e+=i-r)}}return parseInt(e,10)}else return e}function $i({numberingSystem:t},e=""){return new RegExp(`${L0[t||"latn"]}${e}`)}const cD="missing Intl.DateTimeFormat.formatToParts support";function nt(t,e=n=>n){return{regex:t,deser:([n])=>e(lD(n))}}const H3=`[ ${String.fromCharCode(160)}]`,W3=new RegExp(H3,"g");function dD(t){return t.replace(/\./g,"\\.?").replace(W3,H3)}function Y3(t){return t.replace(/\./g,"").replace(W3," ").toLowerCase()}function Ni(t,e){return t===null?null:{regex:RegExp(t.map(dD).join("|")),deser:([n])=>t.findIndex(i=>Y3(n)===Y3(i))+e}}function j3(t,e){return{regex:t,deser:([,n,i])=>Cd(n,i),groups:e}}function Dd(t){return{regex:t,deser:([e])=>e}}function uD(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function hD(t,e){const n=$i(e),i=$i(e,"{2}"),s=$i(e,"{3}"),r=$i(e,"{4}"),o=$i(e,"{6}"),c=$i(e,"{1,2}"),d=$i(e,"{1,3}"),h=$i(e,"{1,6}"),f=$i(e,"{1,9}"),m=$i(e,"{2,4}"),g=$i(e,"{4,6}"),v=k=>({regex:RegExp(uD(k.val)),deser:([O])=>O,literal:!0}),x=(k=>{if(t.literal)return v(k);switch(k.val){case"G":return Ni(e.eras("short"),0);case"GG":return Ni(e.eras("long"),0);case"y":return nt(h);case"yy":return nt(m,$0);case"yyyy":return nt(r);case"yyyyy":return nt(g);case"yyyyyy":return nt(o);case"M":return nt(c);case"MM":return nt(i);case"MMM":return Ni(e.months("short",!0),1);case"MMMM":return Ni(e.months("long",!0),1);case"L":return nt(c);case"LL":return nt(i);case"LLL":return Ni(e.months("short",!1),1);case"LLLL":return Ni(e.months("long",!1),1);case"d":return nt(c);case"dd":return nt(i);case"o":return nt(d);case"ooo":return nt(s);case"HH":return nt(i);case"H":return nt(c);case"hh":return nt(i);case"h":return nt(c);case"mm":return nt(i);case"m":return nt(c);case"q":return nt(c);case"qq":return nt(i);case"s":return nt(c);case"ss":return nt(i);case"S":return nt(d);case"SSS":return nt(s);case"u":return Dd(f);case"uu":return Dd(c);case"uuu":return nt(n);case"a":return Ni(e.meridiems(),0);case"kkkk":return nt(r);case"kk":return nt(m,$0);case"W":return nt(c);case"WW":return nt(i);case"E":case"c":return nt(n);case"EEE":return Ni(e.weekdays("short",!1),1);case"EEEE":return Ni(e.weekdays("long",!1),1);case"ccc":return Ni(e.weekdays("short",!0),1);case"cccc":return Ni(e.weekdays("long",!0),1);case"Z":case"ZZ":return j3(new RegExp(`([+-]${c.source})(?::(${i.source}))?`),2);case"ZZZ":return j3(new RegExp(`([+-]${c.source})(${i.source})?`),2);case"z":return Dd(/[a-z_+-/]{1,256}?/i);case" ":return Dd(/[^\S\n\r]/);default:return v(k)}})(t)||{invalidReason:cD};return x.token=t,x}const fD={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function pD(t,e,n){const{type:i,value:s}=t;if(i==="literal"){const d=/^\s+$/.test(s);return{literal:!d,val:d?" ":s}}const r=e[i];let o=i;i==="hour"&&(e.hour12!=null?o=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?o="hour12":o="hour24":o=n.hour12?"hour12":"hour24");let c=fD[o];if(typeof c=="object"&&(c=c[r]),c)return{literal:!1,val:c}}function mD(t){return[`^${t.map(n=>n.regex).reduce((n,i)=>`${n}(${i.source})`,"")}$`,t]}function gD(t,e,n){const i=t.match(e);if(i){const s={};let r=1;for(const o in n)if(Ia(n,o)){const c=n[o],d=c.groups?c.groups+1:1;!c.literal&&c.token&&(s[c.token.val[0]]=c.deser(i.slice(r,r+d))),r+=d}return[i,s]}else return[i,{}]}function _D(t){const e=r=>{switch(r){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,i;return Ie(t.z)||(n=gs.create(t.z)),Ie(t.Z)||(n||(n=new En(t.Z)),i=t.Z),Ie(t.q)||(t.M=(t.q-1)*3+1),Ie(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Ie(t.u)||(t.S=A0(t.u)),[Object.keys(t).reduce((r,o)=>{const c=e(o);return c&&(r[c]=t[o]),r},{}),n,i]}let F0=null;function vD(){return F0||(F0=Ce.fromMillis(1555555555555)),F0}function yD(t,e){if(t.literal)return t;const n=wn.macroTokenToFormatOpts(t.val),i=G3(n,e);return i==null||i.includes(void 0)?t:i}function U3(t,e){return Array.prototype.concat(...t.map(n=>yD(n,e)))}function q3(t,e,n){const i=U3(wn.parseFormat(n),t),s=i.map(o=>hD(o,t)),r=s.find(o=>o.invalidReason);if(r)return{input:e,tokens:i,invalidReason:r.invalidReason};{const[o,c]=mD(s),d=RegExp(o,"i"),[h,f]=gD(e,d,c),[m,g,v]=f?_D(f):[null,null,void 0];if(Ia(f,"a")&&Ia(f,"H"))throw new Ta("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:i,regex:d,rawMatches:h,matches:f,result:m,zone:g,specificOffset:v}}}function bD(t,e,n){const{result:i,zone:s,specificOffset:r,invalidReason:o}=q3(t,e,n);return[i,s,r,o]}function G3(t,e){if(!t)return null;const i=wn.create(e,t).dtFormatter(vD()),s=i.formatToParts(),r=i.resolvedOptions();return s.map(o=>pD(o,t,r))}const R0="Invalid DateTime",K3=864e13;function Ed(t){return new Vi("unsupported zone",`the zone "${t.name}" is not supported`)}function H0(t){return t.weekData===null&&(t.weekData=bd(t.c)),t.weekData}function W0(t){return t.localWeekData===null&&(t.localWeekData=bd(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Pr(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Ce({...n,...e,old:n})}function Z3(t,e,n){let i=t-e*60*1e3;const s=n.offset(i);if(e===s)return[i,e];i-=(s-e)*60*1e3;const r=n.offset(i);return s===r?[i,s]:[t-Math.min(s,r)*60*1e3,Math.max(s,r)]}function Td(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Id(t,e,n){return Z3(xd(t),e,n)}function X3(t,e){const n=t.o,i=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,r={...t.c,year:i,month:s,day:Math.min(t.c.day,kd(i,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=Je.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),c=xd(r);let[d,h]=Z3(c,n,t.zone);return o!==0&&(d+=o,h=t.zone.offset(d)),{ts:d,o:h}}function Dl(t,e,n,i,s,r){const{setZone:o,zone:c}=n;if(t&&Object.keys(t).length!==0||e){const d=e||c,h=Ce.fromObject(t,{...n,zone:d,specificOffset:r});return o?h:h.setZone(c)}else return Ce.invalid(new Vi("unparsable",`the input "${s}" can't be parsed as ${i}`))}function Bd(t,e,n=!0){return t.isValid?wn.create(_t.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Y0(t,e){const n=t.c.year>9999||t.c.year<0;let i="";return n&&t.c.year>=0&&(i+="+"),i+=Jt(t.c.year,n?6:4),e?(i+="-",i+=Jt(t.c.month),i+="-",i+=Jt(t.c.day)):(i+=Jt(t.c.month),i+=Jt(t.c.day)),i}function J3(t,e,n,i,s,r){let o=Jt(t.c.hour);return e?(o+=":",o+=Jt(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(o+=":")):o+=Jt(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(o+=Jt(t.c.second),(t.c.millisecond!==0||!i)&&(o+=".",o+=Jt(t.c.millisecond,3))),s&&(t.isOffsetFixed&&t.offset===0&&!r?o+="Z":t.o<0?(o+="-",o+=Jt(Math.trunc(-t.o/60)),o+=":",o+=Jt(Math.trunc(-t.o%60))):(o+="+",o+=Jt(Math.trunc(t.o/60)),o+=":",o+=Jt(Math.trunc(t.o%60)))),r&&(o+="["+t.zone.ianaName+"]"),o}const Q3={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},wD={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},kD={ordinal:1,hour:0,minute:0,second:0,millisecond:0},e4=["year","month","day","hour","minute","second","millisecond"],xD=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],CD=["year","ordinal","hour","minute","second","millisecond"];function SD(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Tg(t);return e}function t4(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return SD(t)}}function n4(t,e){const n=Zs(e.zone,qt.defaultZone),i=_t.fromObject(e),s=qt.now();let r,o;if(Ie(t.year))r=s;else{for(const h of e4)Ie(t[h])&&(t[h]=Q3[h]);const c=f3(t)||p3(t);if(c)return Ce.invalid(c);const d=n.offset(s);[r,o]=Id(t,d,n)}return new Ce({ts:r,zone:n,loc:i,o})}function i4(t,e,n){const i=Ie(n.round)?!0:n.round,s=(o,c)=>(o=V0(o,i||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(o,c)),r=o=>n.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(n.unit)return s(r(n.unit),n.unit);for(const o of n.units){const c=r(o);if(Math.abs(c)>=1)return s(c,o)}return s(t>e?-0:0,n.units[n.units.length-1])}function s4(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class Ce{constructor(e){const n=e.zone||qt.defaultZone;let i=e.invalid||(Number.isNaN(e.ts)?new Vi("invalid input"):null)||(n.isValid?null:Ed(n));this.ts=Ie(e.ts)?qt.now():e.ts;let s=null,r=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[s,r]=[e.old.c,e.old.o];else{const c=n.offset(this.ts);s=Td(this.ts,c),i=Number.isNaN(s.year)?new Vi("invalid input"):null,s=i?null:s,r=i?null:c}this._zone=n,this.loc=e.loc||_t.create(),this.invalid=i,this.weekData=null,this.localWeekData=null,this.c=s,this.o=r,this.isLuxonDateTime=!0}static now(){return new Ce({})}static local(){const[e,n]=s4(arguments),[i,s,r,o,c,d,h]=n;return n4({year:i,month:s,day:r,hour:o,minute:c,second:d,millisecond:h},e)}static utc(){const[e,n]=s4(arguments),[i,s,r,o,c,d,h]=n;return e.zone=En.utcInstance,n4({year:i,month:s,day:r,hour:o,minute:c,second:d,millisecond:h},e)}static fromJSDate(e,n={}){const i=tO(e)?e.valueOf():NaN;if(Number.isNaN(i))return Ce.invalid("invalid input");const s=Zs(n.zone,qt.defaultZone);return s.isValid?new Ce({ts:i,zone:s,loc:_t.fromObject(n)}):Ce.invalid(Ed(s))}static fromMillis(e,n={}){if($r(e))return e<-K3||e>K3?Ce.invalid("Timestamp out of range"):new Ce({ts:e,zone:Zs(n.zone,qt.defaultZone),loc:_t.fromObject(n)});throw new Hn(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if($r(e))return new Ce({ts:e*1e3,zone:Zs(n.zone,qt.defaultZone),loc:_t.fromObject(n)});throw new Hn("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const i=Zs(n.zone,qt.defaultZone);if(!i.isValid)return Ce.invalid(Ed(i));const s=_t.fromObject(n),r=Sd(e,t4),{minDaysInFirstWeek:o,startOfWeek:c}=h3(r,s),d=qt.now(),h=Ie(n.specificOffset)?i.offset(d):n.specificOffset,f=!Ie(r.ordinal),m=!Ie(r.year),g=!Ie(r.month)||!Ie(r.day),v=m||g,b=r.weekYear||r.weekNumber;if((v||f)&&b)throw new Ta("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(g&&f)throw new Ta("Can't mix ordinal dates with month/day");const x=b||r.weekday&&!v;let k,O,T=Td(d,h);x?(k=xD,O=wD,T=bd(T,o,c)):f?(k=CD,O=kD,T=I0(T)):(k=e4,O=Q3);let N=!1;for(const ee of k){const ne=r[ee];Ie(ne)?N?r[ee]=O[ee]:r[ee]=T[ee]:N=!0}const C=x?JM(r,o,c):f?QM(r):f3(r),B=C||p3(r);if(B)return Ce.invalid(B);const $=x?d3(r,o,c):f?u3(r):r,[L,F]=Id($,h,i),q=new Ce({ts:L,zone:i,o:F,loc:s});return r.weekday&&v&&e.weekday!==q.weekday?Ce.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${q.toISO()}`):q}static fromISO(e,n={}){const[i,s]=YO(e);return Dl(i,s,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[i,s]=jO(e);return Dl(i,s,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[i,s]=UO(e);return Dl(i,s,n,"HTTP",n)}static fromFormat(e,n,i={}){if(Ie(e)||Ie(n))throw new Hn("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:r=null}=i,o=_t.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0}),[c,d,h,f]=bD(o,e,n);return f?Ce.invalid(f):Dl(c,d,i,`format ${n}`,e,h)}static fromString(e,n,i={}){return Ce.fromFormat(e,n,i)}static fromSQL(e,n={}){const[i,s]=QO(e);return Dl(i,s,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new Hn("need to specify a reason the DateTime is invalid");const i=e instanceof Vi?e:new Vi(e,n);if(qt.throwOnInvalid)throw new DM(i);return new Ce({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const i=G3(e,_t.fromObject(n));return i?i.map(s=>s?s.val:null).join(""):null}static expandFormat(e,n={}){return U3(wn.parseFormat(e),_t.fromObject(n)).map(s=>s.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?H0(this).weekYear:NaN}get weekNumber(){return this.isValid?H0(this).weekNumber:NaN}get weekday(){return this.isValid?H0(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?W0(this).weekday:NaN}get localWeekNumber(){return this.isValid?W0(this).weekNumber:NaN}get localWeekYear(){return this.isValid?W0(this).weekYear:NaN}get ordinal(){return this.isValid?I0(this.c).ordinal:NaN}get monthShort(){return this.isValid?Od.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Od.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Od.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Od.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,i=xd(this.c),s=this.zone.offset(i-e),r=this.zone.offset(i+e),o=this.zone.offset(i-s*n),c=this.zone.offset(i-r*n);if(o===c)return[this];const d=i-o*n,h=i-c*n,f=Td(d,o),m=Td(h,c);return f.hour===m.hour&&f.minute===m.minute&&f.second===m.second&&f.millisecond===m.millisecond?[Pr(this,{ts:d}),Pr(this,{ts:h})]:[this]}get isInLeapYear(){return xl(this.year)}get daysInMonth(){return kd(this.year,this.month)}get daysInYear(){return this.isValid?Ba(this.year):NaN}get weeksInWeekYear(){return this.isValid?Cl(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Cl(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:i,calendar:s}=wn.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:i,outputCalendar:s}}toUTC(e=0,n={}){return this.setZone(En.instance(e),n)}toLocal(){return this.setZone(qt.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:i=!1}={}){if(e=Zs(e,qt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(n||i){const r=e.offset(this.ts),o=this.toObject();[s]=Id(o,r,e)}return Pr(this,{ts:s,zone:e})}else return Ce.invalid(Ed(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:i}={}){const s=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:i});return Pr(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Sd(e,t4),{minDaysInFirstWeek:i,startOfWeek:s}=h3(n,this.loc),r=!Ie(n.weekYear)||!Ie(n.weekNumber)||!Ie(n.weekday),o=!Ie(n.ordinal),c=!Ie(n.year),d=!Ie(n.month)||!Ie(n.day),h=c||d,f=n.weekYear||n.weekNumber;if((h||o)&&f)throw new Ta("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&o)throw new Ta("Can't mix ordinal dates with month/day");let m;r?m=d3({...bd(this.c,i,s),...n},i,s):Ie(n.ordinal)?(m={...this.toObject(),...n},Ie(n.day)&&(m.day=Math.min(kd(m.year,m.month),m.day))):m=u3({...I0(this.c),...n});const[g,v]=Id(m,this.o,this.zone);return Pr(this,{ts:g,o:v})}plus(e){if(!this.isValid)return this;const n=Je.fromDurationLike(e);return Pr(this,X3(this,n))}minus(e){if(!this.isValid)return this;const n=Je.fromDurationLike(e).negate();return Pr(this,X3(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const i={},s=Je.normalizeUnit(e);switch(s){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(s==="weeks")if(n){const r=this.loc.getStartOfWeek(),{weekday:o}=this;o<r&&(i.weekNumber=this.weekNumber-1),i.weekday=r}else i.weekday=1;if(s==="quarters"){const r=Math.ceil(this.month/3);i.month=(r-1)*3+1}return this.set(i)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?wn.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):R0}toLocaleString(e=md,n={}){return this.isValid?wn.create(this.loc.clone(n),e).formatDateTime(this):R0}toLocaleParts(e={}){return this.isValid?wn.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:i=!1,includeOffset:s=!0,extendedZone:r=!1}={}){if(!this.isValid)return null;const o=e==="extended";let c=Y0(this,o);return c+="T",c+=J3(this,o,n,i,s,r),c}toISODate({format:e="extended"}={}){return this.isValid?Y0(this,e==="extended"):null}toISOWeekDate(){return Bd(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:i=!0,includePrefix:s=!1,extendedZone:r=!1,format:o="extended"}={}){return this.isValid?(s?"T":"")+J3(this,o==="extended",n,e,i,r):null}toRFC2822(){return Bd(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Bd(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Y0(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:i=!0}={}){let s="HH:mm:ss.SSS";return(n||e)&&(i&&(s+=" "),n?s+="z":e&&(s+="ZZ")),Bd(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():R0}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",i={}){if(!this.isValid||!e.isValid)return Je.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...i},r=nO(n).map(Je.normalizeUnit),o=e.valueOf()>this.valueOf(),c=o?this:e,d=o?e:this,h=aD(c,d,r,s);return o?h.negate():h}diffNow(e="milliseconds",n={}){return this.diff(Ce.now(),e,n)}until(e){return this.isValid?Lt.fromDateTimes(this,e):this}hasSame(e,n,i){if(!this.isValid)return!1;const s=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(n,i)<=s&&s<=r.endOf(n,i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||Ce.fromObject({},{zone:this.zone}),i=e.padding?this<n?-e.padding:e.padding:0;let s=["years","months","days","hours","minutes","seconds"],r=e.unit;return Array.isArray(e.unit)&&(s=e.unit,r=void 0),i4(n,this.plus(i),{...e,numeric:"always",units:s,unit:r})}toRelativeCalendar(e={}){return this.isValid?i4(e.base||Ce.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Ce.isDateTime))throw new Hn("min requires all arguments be DateTimes");return _3(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(Ce.isDateTime))throw new Hn("max requires all arguments be DateTimes");return _3(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,i={}){const{locale:s=null,numberingSystem:r=null}=i,o=_t.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0});return q3(o,e,n)}static fromStringExplain(e,n,i={}){return Ce.fromFormatExplain(e,n,i)}static get DATE_SHORT(){return md}static get DATE_MED(){return Ig}static get DATE_MED_WITH_WEEKDAY(){return IM}static get DATE_FULL(){return Bg}static get DATE_HUGE(){return Ag}static get TIME_SIMPLE(){return Vg}static get TIME_WITH_SECONDS(){return $g}static get TIME_WITH_SHORT_OFFSET(){return Ng}static get TIME_WITH_LONG_OFFSET(){return zg}static get TIME_24_SIMPLE(){return Pg}static get TIME_24_WITH_SECONDS(){return Lg}static get TIME_24_WITH_SHORT_OFFSET(){return Fg}static get TIME_24_WITH_LONG_OFFSET(){return Rg}static get DATETIME_SHORT(){return Hg}static get DATETIME_SHORT_WITH_SECONDS(){return Wg}static get DATETIME_MED(){return Yg}static get DATETIME_MED_WITH_SECONDS(){return jg}static get DATETIME_MED_WITH_WEEKDAY(){return BM}static get DATETIME_FULL(){return Ug}static get DATETIME_FULL_WITH_SECONDS(){return qg}static get DATETIME_HUGE(){return Gg}static get DATETIME_HUGE_WITH_SECONDS(){return Kg}}function El(t){if(Ce.isDateTime(t))return t;if(t&&t.valueOf&&$r(t.valueOf()))return Ce.fromJSDate(t);if(t&&typeof t=="object")return Ce.fromObject(t);throw new Hn(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var MD=Object.defineProperty,OD=(t,e,n)=>e in t?MD(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xe=(t,e,n)=>(OD(t,typeof e!="symbol"?e+"":e,n),n),Ad=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function r4(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var DD=Object.prototype,ED=DD.hasOwnProperty;function TD(t,e){return t!=null&&ED.call(t,e)}var ID=TD,BD=Array.isArray,zi=BD,AD=typeof Ad=="object"&&Ad&&Ad.Object===Object&&Ad,a4=AD,VD=a4,$D=typeof self=="object"&&self&&self.Object===Object&&self,ND=VD||$D||Function("return this")(),Qi=ND,zD=Qi,PD=zD.Symbol,Vd=PD,o4=Vd,l4=Object.prototype,LD=l4.hasOwnProperty,FD=l4.toString,Tl=o4?o4.toStringTag:void 0;function RD(t){var e=LD.call(t,Tl),n=t[Tl];try{t[Tl]=void 0;var i=!0}catch{}var s=FD.call(t);return i&&(e?t[Tl]=n:delete t[Tl]),s}var HD=RD,WD=Object.prototype,YD=WD.toString;function jD(t){return YD.call(t)}var UD=jD,c4=Vd,qD=HD,GD=UD,KD="[object Null]",ZD="[object Undefined]",d4=c4?c4.toStringTag:void 0;function XD(t){return t==null?t===void 0?ZD:KD:d4&&d4 in Object(t)?qD(t):GD(t)}var es=XD;function JD(t){return t!=null&&typeof t=="object"}var Pi=JD,QD=es,eE=Pi,tE="[object Symbol]";function nE(t){return typeof t=="symbol"||eE(t)&&QD(t)==tE}var j0=nE,iE=zi,sE=j0,rE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aE=/^\w*$/;function oE(t,e){if(iE(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||sE(t)?!0:aE.test(t)||!rE.test(t)||e!=null&&t in Object(e)}var U0=oE;function lE(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var _s=lE,cE=es,dE=_s,uE="[object AsyncFunction]",hE="[object Function]",fE="[object GeneratorFunction]",pE="[object Proxy]";function mE(t){if(!dE(t))return!1;var e=cE(t);return e==hE||e==fE||e==uE||e==pE}var Lr=mE,gE=Qi,_E=gE["__core-js_shared__"],vE=_E,q0=vE,u4=function(){var t=/[^.]+$/.exec(q0&&q0.keys&&q0.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function yE(t){return!!u4&&u4 in t}var bE=yE,wE=Function.prototype,kE=wE.toString;function xE(t){if(t!=null){try{return kE.call(t)}catch{}try{return t+""}catch{}}return""}var h4=xE,CE=Lr,SE=bE,ME=_s,OE=h4,DE=/[\\^$.*+?()[\]{}|]/g,EE=/^\[object .+?Constructor\]$/,TE=Function.prototype,IE=Object.prototype,BE=TE.toString,AE=IE.hasOwnProperty,VE=RegExp("^"+BE.call(AE).replace(DE,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $E(t){if(!ME(t)||SE(t))return!1;var e=CE(t)?VE:EE;return e.test(OE(t))}var NE=$E;function zE(t,e){return t==null?void 0:t[e]}var PE=zE,LE=NE,FE=PE;function RE(t,e){var n=FE(t,e);return LE(n)?n:void 0}var Fr=RE,HE=Fr,WE=HE(Object,"create"),$d=WE,f4=$d;function YE(){this.__data__=f4?f4(null):{},this.size=0}var jE=YE;function UE(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var qE=UE,GE=$d,KE="__lodash_hash_undefined__",ZE=Object.prototype,XE=ZE.hasOwnProperty;function JE(t){var e=this.__data__;if(GE){var n=e[t];return n===KE?void 0:n}return XE.call(e,t)?e[t]:void 0}var QE=JE,eT=$d,tT=Object.prototype,nT=tT.hasOwnProperty;function iT(t){var e=this.__data__;return eT?e[t]!==void 0:nT.call(e,t)}var sT=iT,rT=$d,aT="__lodash_hash_undefined__";function oT(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=rT&&e===void 0?aT:e,this}var lT=oT,cT=jE,dT=qE,uT=QE,hT=sT,fT=lT;function Fa(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Fa.prototype.clear=cT,Fa.prototype.delete=dT,Fa.prototype.get=uT,Fa.prototype.has=hT,Fa.prototype.set=fT;var pT=Fa;function mT(){this.__data__=[],this.size=0}var gT=mT;function _T(t,e){return t===e||t!==t&&e!==e}var Ra=_T,vT=Ra;function yT(t,e){for(var n=t.length;n--;)if(vT(t[n][0],e))return n;return-1}var Nd=yT,bT=Nd,wT=Array.prototype,kT=wT.splice;function xT(t){var e=this.__data__,n=bT(e,t);if(n<0)return!1;var i=e.length-1;return n==i?e.pop():kT.call(e,n,1),--this.size,!0}var CT=xT,ST=Nd;function MT(t){var e=this.__data__,n=ST(e,t);return n<0?void 0:e[n][1]}var OT=MT,DT=Nd;function ET(t){return DT(this.__data__,t)>-1}var TT=ET,IT=Nd;function BT(t,e){var n=this.__data__,i=IT(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}var AT=BT,VT=gT,$T=CT,NT=OT,zT=TT,PT=AT;function Ha(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Ha.prototype.clear=VT,Ha.prototype.delete=$T,Ha.prototype.get=NT,Ha.prototype.has=zT,Ha.prototype.set=PT;var zd=Ha,LT=Fr,FT=Qi,RT=LT(FT,"Map"),G0=RT,p4=pT,HT=zd,WT=G0;function YT(){this.size=0,this.__data__={hash:new p4,map:new(WT||HT),string:new p4}}var jT=YT;function UT(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var qT=UT,GT=qT;function KT(t,e){var n=t.__data__;return GT(e)?n[typeof e=="string"?"string":"hash"]:n.map}var Pd=KT,ZT=Pd;function XT(t){var e=ZT(this,t).delete(t);return this.size-=e?1:0,e}var JT=XT,QT=Pd;function eI(t){return QT(this,t).get(t)}var tI=eI,nI=Pd;function iI(t){return nI(this,t).has(t)}var sI=iI,rI=Pd;function aI(t,e){var n=rI(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}var oI=aI,lI=jT,cI=JT,dI=tI,uI=sI,hI=oI;function Wa(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Wa.prototype.clear=lI,Wa.prototype.delete=cI,Wa.prototype.get=dI,Wa.prototype.has=uI,Wa.prototype.set=hI;var K0=Wa,m4=K0,fI="Expected a function";function Z0(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(fI);var n=function(){var i=arguments,s=e?e.apply(this,i):i[0],r=n.cache;if(r.has(s))return r.get(s);var o=t.apply(this,i);return n.cache=r.set(s,o)||r,o};return n.cache=new(Z0.Cache||m4),n}Z0.Cache=m4;var pI=Z0,mI=pI,gI=500;function _I(t){var e=mI(t,function(i){return n.size===gI&&n.clear(),i}),n=e.cache;return e}var vI=_I,yI=vI,bI=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wI=/\\(\\)?/g,kI=yI(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(bI,function(n,i,s,r){e.push(s?r.replace(wI,"$1"):i||n)}),e}),xI=kI;function CI(t,e){for(var n=-1,i=t==null?0:t.length,s=Array(i);++n<i;)s[n]=e(t[n],n,t);return s}var SI=CI,g4=Vd,MI=SI,OI=zi,DI=j0,EI=1/0,_4=g4?g4.prototype:void 0,v4=_4?_4.toString:void 0;function y4(t){if(typeof t=="string")return t;if(OI(t))return MI(t,y4)+"";if(DI(t))return v4?v4.call(t):"";var e=t+"";return e=="0"&&1/t==-EI?"-0":e}var TI=y4,II=TI;function BI(t){return t==null?"":II(t)}var AI=BI,VI=zi,$I=U0,NI=xI,zI=AI;function PI(t,e){return VI(t)?t:$I(t,e)?[t]:NI(zI(t))}var b4=PI,LI=es,FI=Pi,RI="[object Arguments]";function HI(t){return FI(t)&&LI(t)==RI}var WI=HI,w4=WI,YI=Pi,k4=Object.prototype,jI=k4.hasOwnProperty,UI=k4.propertyIsEnumerable,qI=w4(function(){return arguments}())?w4:function(t){return YI(t)&&jI.call(t,"callee")&&!UI.call(t,"callee")},X0=qI,GI=9007199254740991,KI=/^(?:0|[1-9]\d*)$/;function ZI(t,e){var n=typeof t;return e=e??GI,!!e&&(n=="number"||n!="symbol"&&KI.test(t))&&t>-1&&t%1==0&&t<e}var J0=ZI,XI=9007199254740991;function JI(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=XI}var Q0=JI,QI=j0,eB=1/0;function tB(t){if(typeof t=="string"||QI(t))return t;var e=t+"";return e=="0"&&1/t==-eB?"-0":e}var Ld=tB,nB=b4,iB=X0,sB=zi,rB=J0,aB=Q0,oB=Ld;function lB(t,e,n){e=nB(e,t);for(var i=-1,s=e.length,r=!1;++i<s;){var o=oB(e[i]);if(!(r=t!=null&&n(t,o)))break;t=t[o]}return r||++i!=s?r:(s=t==null?0:t.length,!!s&&aB(s)&&rB(o,s)&&(sB(t)||iB(t)))}var x4=lB,cB=ID,dB=x4;function uB(t,e){return t!=null&&dB(t,e,cB)}var C4=uB,hB=es,fB=Pi,pB="[object Date]";function mB(t){return fB(t)&&hB(t)==pB}var gB=mB;function _B(t){return function(e){return t(e)}}var S4=_B,Il={},vB={get exports(){return Il},set exports(t){Il=t}};(function(t,e){var n=a4,i=e&&!e.nodeType&&e,s=i&&!0&&t&&!t.nodeType&&t,r=s&&s.exports===i,o=r&&n.process,c=function(){try{var d=s&&s.require&&s.require("util").types;return d||o&&o.binding&&o.binding("util")}catch{}}();t.exports=c})(vB,Il);var yB=gB,bB=S4,M4=Il,O4=M4&&M4.isDate,wB=O4?bB(O4):yB,kB=wB,xB=es,CB=zi,SB=Pi,MB="[object String]";function OB(t){return typeof t=="string"||!CB(t)&&SB(t)&&xB(t)==MB}var ts=OB;function DB(t,e){for(var n=-1,i=t==null?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}var D4=DB,EB=zd;function TB(){this.__data__=new EB,this.size=0}var IB=TB;function BB(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var AB=BB;function VB(t){return this.__data__.get(t)}var $B=VB;function NB(t){return this.__data__.has(t)}var zB=NB,PB=zd,LB=G0,FB=K0,RB=200;function HB(t,e){var n=this.__data__;if(n instanceof PB){var i=n.__data__;if(!LB||i.length<RB-1)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new FB(i)}return n.set(t,e),this.size=n.size,this}var WB=HB,YB=zd,jB=IB,UB=AB,qB=$B,GB=zB,KB=WB;function Ya(t){var e=this.__data__=new YB(t);this.size=e.size}Ya.prototype.clear=jB,Ya.prototype.delete=UB,Ya.prototype.get=qB,Ya.prototype.has=GB,Ya.prototype.set=KB;var eh=Ya,ZB="__lodash_hash_undefined__";function XB(t){return this.__data__.set(t,ZB),this}var JB=XB;function QB(t){return this.__data__.has(t)}var eA=QB,tA=K0,nA=JB,iA=eA;function Fd(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new tA;++e<n;)this.add(t[e])}Fd.prototype.add=Fd.prototype.push=nA,Fd.prototype.has=iA;var sA=Fd;function rA(t,e){return t.has(e)}var aA=rA,oA=sA,lA=D4,cA=aA,dA=1,uA=2;function hA(t,e,n,i,s,r){var o=n&dA,c=t.length,d=e.length;if(c!=d&&!(o&&d>c))return!1;var h=r.get(t),f=r.get(e);if(h&&f)return h==e&&f==t;var m=-1,g=!0,v=n&uA?new oA:void 0;for(r.set(t,e),r.set(e,t);++m<c;){var b=t[m],x=e[m];if(i)var k=o?i(x,b,m,e,t,r):i(b,x,m,t,e,r);if(k!==void 0){if(k)continue;g=!1;break}if(v){if(!lA(e,function(O,T){if(!cA(v,T)&&(b===O||s(b,O,n,i,r)))return v.push(T)})){g=!1;break}}else if(!(b===x||s(b,x,n,i,r))){g=!1;break}}return r.delete(t),r.delete(e),g}var E4=hA,fA=Qi,pA=fA.Uint8Array,T4=pA;function mA(t){var e=-1,n=Array(t.size);return t.forEach(function(i,s){n[++e]=[s,i]}),n}var gA=mA;function _A(t){var e=-1,n=Array(t.size);return t.forEach(function(i){n[++e]=i}),n}var vA=_A,I4=Vd,B4=T4,yA=Ra,bA=E4,wA=gA,kA=vA,xA=1,CA=2,SA="[object Boolean]",MA="[object Date]",OA="[object Error]",DA="[object Map]",EA="[object Number]",TA="[object RegExp]",IA="[object Set]",BA="[object String]",AA="[object Symbol]",VA="[object ArrayBuffer]",$A="[object DataView]",A4=I4?I4.prototype:void 0,th=A4?A4.valueOf:void 0;function NA(t,e,n,i,s,r,o){switch(n){case $A:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case VA:return!(t.byteLength!=e.byteLength||!r(new B4(t),new B4(e)));case SA:case MA:case EA:return yA(+t,+e);case OA:return t.name==e.name&&t.message==e.message;case TA:case BA:return t==e+"";case DA:var c=wA;case IA:var d=i&xA;if(c||(c=kA),t.size!=e.size&&!d)return!1;var h=o.get(t);if(h)return h==e;i|=CA,o.set(t,e);var f=bA(c(t),c(e),i,s,r,o);return o.delete(t),f;case AA:if(th)return th.call(t)==th.call(e)}return!1}var zA=NA;function PA(t,e){for(var n=-1,i=e.length,s=t.length;++n<i;)t[s+n]=e[n];return t}var LA=PA,FA=LA,RA=zi;function HA(t,e,n){var i=e(t);return RA(t)?i:FA(i,n(t))}var WA=HA;function YA(t,e){for(var n=-1,i=t==null?0:t.length,s=0,r=[];++n<i;){var o=t[n];e(o,n,t)&&(r[s++]=o)}return r}var jA=YA;function UA(){return[]}var qA=UA,GA=jA,KA=qA,ZA=Object.prototype,XA=ZA.propertyIsEnumerable,V4=Object.getOwnPropertySymbols,JA=V4?function(t){return t==null?[]:(t=Object(t),GA(V4(t),function(e){return XA.call(t,e)}))}:KA,QA=JA;function eV(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}var tV=eV,ja={},nV={get exports(){return ja},set exports(t){ja=t}};function iV(){return!1}var sV=iV;(function(t,e){var n=Qi,i=sV,s=e&&!e.nodeType&&e,r=s&&!0&&t&&!t.nodeType&&t,o=r&&r.exports===s,c=o?n.Buffer:void 0,d=c?c.isBuffer:void 0,h=d||i;t.exports=h})(nV,ja);var rV=es,aV=Q0,oV=Pi,lV="[object Arguments]",cV="[object Array]",dV="[object Boolean]",uV="[object Date]",hV="[object Error]",fV="[object Function]",pV="[object Map]",mV="[object Number]",gV="[object Object]",_V="[object RegExp]",vV="[object Set]",yV="[object String]",bV="[object WeakMap]",wV="[object ArrayBuffer]",kV="[object DataView]",xV="[object Float32Array]",CV="[object Float64Array]",SV="[object Int8Array]",MV="[object Int16Array]",OV="[object Int32Array]",DV="[object Uint8Array]",EV="[object Uint8ClampedArray]",TV="[object Uint16Array]",IV="[object Uint32Array]",It={};It[xV]=It[CV]=It[SV]=It[MV]=It[OV]=It[DV]=It[EV]=It[TV]=It[IV]=!0,It[lV]=It[cV]=It[wV]=It[dV]=It[kV]=It[uV]=It[hV]=It[fV]=It[pV]=It[mV]=It[gV]=It[_V]=It[vV]=It[yV]=It[bV]=!1;function BV(t){return oV(t)&&aV(t.length)&&!!It[rV(t)]}var AV=BV,VV=AV,$V=S4,$4=Il,N4=$4&&$4.isTypedArray,NV=N4?$V(N4):VV,nh=NV,zV=tV,PV=X0,LV=zi,FV=ja,RV=J0,HV=nh,WV=Object.prototype,YV=WV.hasOwnProperty;function jV(t,e){var n=LV(t),i=!n&&PV(t),s=!n&&!i&&FV(t),r=!n&&!i&&!s&&HV(t),o=n||i||s||r,c=o?zV(t.length,String):[],d=c.length;for(var h in t)(e||YV.call(t,h))&&!(o&&(h=="length"||s&&(h=="offset"||h=="parent")||r&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||RV(h,d)))&&c.push(h);return c}var z4=jV,UV=Object.prototype;function qV(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||UV;return t===n}var ih=qV;function GV(t,e){return function(n){return t(e(n))}}var P4=GV,KV=P4,ZV=KV(Object.keys,Object),XV=ZV,JV=ih,QV=XV,e$=Object.prototype,t$=e$.hasOwnProperty;function n$(t){if(!JV(t))return QV(t);var e=[];for(var n in Object(t))t$.call(t,n)&&n!="constructor"&&e.push(n);return e}var i$=n$,s$=Lr,r$=Q0;function a$(t){return t!=null&&r$(t.length)&&!s$(t)}var Bl=a$,o$=z4,l$=i$,c$=Bl;function d$(t){return c$(t)?o$(t):l$(t)}var sh=d$,u$=WA,h$=QA,f$=sh;function p$(t){return u$(t,f$,h$)}var m$=p$,L4=m$,g$=1,_$=Object.prototype,v$=_$.hasOwnProperty;function y$(t,e,n,i,s,r){var o=n&g$,c=L4(t),d=c.length,h=L4(e),f=h.length;if(d!=f&&!o)return!1;for(var m=d;m--;){var g=c[m];if(!(o?g in e:v$.call(e,g)))return!1}var v=r.get(t),b=r.get(e);if(v&&b)return v==e&&b==t;var x=!0;r.set(t,e),r.set(e,t);for(var k=o;++m<d;){g=c[m];var O=t[g],T=e[g];if(i)var N=o?i(T,O,g,e,t,r):i(O,T,g,t,e,r);if(!(N===void 0?O===T||s(O,T,n,i,r):N)){x=!1;break}k||(k=g=="constructor")}if(x&&!k){var C=t.constructor,B=e.constructor;C!=B&&"constructor"in t&&"constructor"in e&&!(typeof C=="function"&&C instanceof C&&typeof B=="function"&&B instanceof B)&&(x=!1)}return r.delete(t),r.delete(e),x}var b$=y$,w$=Fr,k$=Qi,x$=w$(k$,"DataView"),C$=x$,S$=Fr,M$=Qi,O$=S$(M$,"Promise"),D$=O$,E$=Fr,T$=Qi,I$=E$(T$,"Set"),B$=I$,A$=Fr,V$=Qi,$$=A$(V$,"WeakMap"),N$=$$,rh=C$,ah=G0,oh=D$,lh=B$,ch=N$,F4=es,Ua=h4,R4="[object Map]",z$="[object Object]",H4="[object Promise]",W4="[object Set]",Y4="[object WeakMap]",j4="[object DataView]",P$=Ua(rh),L$=Ua(ah),F$=Ua(oh),R$=Ua(lh),H$=Ua(ch),Rr=F4;(rh&&Rr(new rh(new ArrayBuffer(1)))!=j4||ah&&Rr(new ah)!=R4||oh&&Rr(oh.resolve())!=H4||lh&&Rr(new lh)!=W4||ch&&Rr(new ch)!=Y4)&&(Rr=function(t){var e=F4(t),n=e==z$?t.constructor:void 0,i=n?Ua(n):"";if(i)switch(i){case P$:return j4;case L$:return R4;case F$:return H4;case R$:return W4;case H$:return Y4}return e});var W$=Rr,dh=eh,Y$=E4,j$=zA,U$=b$,U4=W$,q4=zi,G4=ja,q$=nh,G$=1,K4="[object Arguments]",Z4="[object Array]",Rd="[object Object]",K$=Object.prototype,X4=K$.hasOwnProperty;function Z$(t,e,n,i,s,r){var o=q4(t),c=q4(e),d=o?Z4:U4(t),h=c?Z4:U4(e);d=d==K4?Rd:d,h=h==K4?Rd:h;var f=d==Rd,m=h==Rd,g=d==h;if(g&&G4(t)){if(!G4(e))return!1;o=!0,f=!1}if(g&&!f)return r||(r=new dh),o||q$(t)?Y$(t,e,n,i,s,r):j$(t,e,d,n,i,s,r);if(!(n&G$)){var v=f&&X4.call(t,"__wrapped__"),b=m&&X4.call(e,"__wrapped__");if(v||b){var x=v?t.value():t,k=b?e.value():e;return r||(r=new dh),s(x,k,n,i,r)}}return g?(r||(r=new dh),U$(t,e,n,i,s,r)):!1}var X$=Z$,J$=X$,J4=Pi;function Q4(t,e,n,i,s){return t===e?!0:t==null||e==null||!J4(t)&&!J4(e)?t!==t&&e!==e:J$(t,e,n,i,Q4,s)}var e5=Q4,Q$=eh,eN=e5,tN=1,nN=2;function iN(t,e,n,i){var s=n.length,r=s,o=!i;if(t==null)return!r;for(t=Object(t);s--;){var c=n[s];if(o&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<r;){c=n[s];var d=c[0],h=t[d],f=c[1];if(o&&c[2]){if(h===void 0&&!(d in t))return!1}else{var m=new Q$;if(i)var g=i(h,f,d,t,e,m);if(!(g===void 0?eN(f,h,tN|nN,i,m):g))return!1}}return!0}var sN=iN,rN=_s;function aN(t){return t===t&&!rN(t)}var t5=aN,oN=t5,lN=sh;function cN(t){for(var e=lN(t),n=e.length;n--;){var i=e[n],s=t[i];e[n]=[i,s,oN(s)]}return e}var dN=cN;function uN(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}var n5=uN,hN=sN,fN=dN,pN=n5;function mN(t){var e=fN(t);return e.length==1&&e[0][2]?pN(e[0][0],e[0][1]):function(n){return n===t||hN(n,t,e)}}var gN=mN,_N=b4,vN=Ld;function yN(t,e){e=_N(e,t);for(var n=0,i=e.length;t!=null&&n<i;)t=t[vN(e[n++])];return n&&n==i?t:void 0}var i5=yN,bN=i5;function wN(t,e,n){var i=t==null?void 0:bN(t,e);return i===void 0?n:i}var Hr=wN;function kN(t,e){return t!=null&&e in Object(t)}var xN=kN,CN=xN,SN=x4;function MN(t,e){return t!=null&&SN(t,e,CN)}var ON=MN,DN=e5,EN=Hr,TN=ON,IN=U0,BN=t5,AN=n5,VN=Ld,$N=1,NN=2;function zN(t,e){return IN(t)&&BN(e)?AN(VN(t),e):function(n){var i=EN(n,t);return i===void 0&&i===e?TN(n,t):DN(e,i,$N|NN)}}var PN=zN;function LN(t){return t}var uh=LN;function FN(t){return function(e){return e==null?void 0:e[t]}}var RN=FN,HN=i5;function WN(t){return function(e){return HN(e,t)}}var YN=WN,jN=RN,UN=YN,qN=U0,GN=Ld;function KN(t){return qN(t)?jN(GN(t)):UN(t)}var ZN=KN,XN=gN,JN=PN,QN=uh,ez=zi,tz=ZN;function nz(t){return typeof t=="function"?t:t==null?QN:typeof t=="object"?ez(t)?JN(t[0],t[1]):XN(t):tz(t)}var s5=nz;function iz(t){return function(e,n,i){for(var s=-1,r=Object(e),o=i(e),c=o.length;c--;){var d=o[t?c:++s];if(n(r[d],d,r)===!1)break}return e}}var sz=iz,rz=sz,az=rz(),r5=az,oz=r5,lz=sh;function cz(t,e){return t&&oz(t,e,lz)}var a5=cz,dz=Bl;function uz(t,e){return function(n,i){if(n==null)return n;if(!dz(n))return t(n,i);for(var s=n.length,r=e?s:-1,o=Object(n);(e?r--:++r<s)&&i(o[r],r,o)!==!1;);return n}}var hz=uz,fz=a5,pz=hz,mz=pz(fz),gz=mz,_z=gz;function vz(t,e){var n;return _z(t,function(i,s,r){return n=e(i,s,r),!n}),!!n}var yz=vz,bz=Ra,wz=Bl,kz=J0,xz=_s;function Cz(t,e,n){if(!xz(n))return!1;var i=typeof e;return(i=="number"?wz(n)&&kz(e,n.length):i=="string"&&e in n)?bz(n[e],t):!1}var hh=Cz,Sz=D4,Mz=s5,Oz=yz,Dz=zi,Ez=hh;function Tz(t,e,n){var i=Dz(t)?Sz:Oz;return n&&Ez(t,e,n)&&(e=void 0),i(t,Mz(e))}var Iz=Tz,Bz=es,Az=Pi,Vz="[object Boolean]";function $z(t){return t===!0||t===!1||Az(t)&&Bz(t)==Vz}var Nz=$z,zz=es,Pz=Pi,Lz="[object Number]";function Fz(t){return typeof t=="number"||Pz(t)&&zz(t)==Lz}var Li=Fz,Rz=Fr,Hz=function(){try{var t=Rz(Object,"defineProperty");return t({},"",{}),t}catch{}}(),o5=Hz,l5=o5;function Wz(t,e,n){e=="__proto__"&&l5?l5(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Hd=Wz,Yz=Hd,jz=Ra,Uz=Object.prototype,qz=Uz.hasOwnProperty;function Gz(t,e,n){var i=t[e];(!(qz.call(t,e)&&jz(i,n))||n===void 0&&!(e in t))&&Yz(t,e,n)}var Kz=Gz,Zz=Hd,Xz=a5,Jz=s5;function Qz(t,e){var n={};return e=Jz(e),Xz(t,function(i,s,r){Zz(n,s,e(i,s,r))}),n}var eP=Qz;function tP(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var c5=tP,nP=c5,d5=Math.max;function iP(t,e,n){return e=d5(e===void 0?t.length-1:e,0),function(){for(var i=arguments,s=-1,r=d5(i.length-e,0),o=Array(r);++s<r;)o[s]=i[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=i[s];return c[e]=n(o),nP(t,this,c)}}var sP=iP;function rP(t){return function(){return t}}var aP=rP,oP=aP,u5=o5,lP=uh,cP=u5?function(t,e){return u5(t,"toString",{configurable:!0,enumerable:!1,value:oP(e),writable:!0})}:lP,dP=cP,uP=800,hP=16,fP=Date.now;function pP(t){var e=0,n=0;return function(){var i=fP(),s=hP-(i-n);if(n=i,s>0){if(++e>=uP)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var mP=pP,gP=dP,_P=mP,vP=_P(gP),yP=vP,bP=uh,wP=sP,kP=yP;function xP(t,e){return kP(wP(t,e,bP),t+"")}var fh=xP;function CP(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var SP=CP,MP=_s,OP=ih,DP=SP,EP=Object.prototype,TP=EP.hasOwnProperty;function IP(t){if(!MP(t))return DP(t);var e=OP(t),n=[];for(var i in t)i=="constructor"&&(e||!TP.call(t,i))||n.push(i);return n}var BP=IP,AP=z4,VP=BP,$P=Bl;function NP(t){return $P(t)?AP(t,!0):VP(t)}var ph=NP,zP=fh,PP=Ra,LP=hh,FP=ph,h5=Object.prototype,RP=h5.hasOwnProperty,HP=zP(function(t,e){t=Object(t);var n=-1,i=e.length,s=i>2?e[2]:void 0;for(s&&LP(e[0],e[1],s)&&(i=1);++n<i;)for(var r=e[n],o=FP(r),c=-1,d=o.length;++c<d;){var h=o[c],f=t[h];(f===void 0||PP(f,h5[h])&&!RP.call(t,h))&&(t[h]=r[h])}return t}),f5=HP,WP=Hd,YP=Ra;function jP(t,e,n){(n!==void 0&&!YP(t[e],n)||n===void 0&&!(e in t))&&WP(t,e,n)}var p5=jP,Wd={},UP={get exports(){return Wd},set exports(t){Wd=t}};(function(t,e){var n=Qi,i=e&&!e.nodeType&&e,s=i&&!0&&t&&!t.nodeType&&t,r=s&&s.exports===i,o=r?n.Buffer:void 0,c=o?o.allocUnsafe:void 0;function d(h,f){if(f)return h.slice();var m=h.length,g=c?c(m):new h.constructor(m);return h.copy(g),g}t.exports=d})(UP,Wd);var m5=T4;function qP(t){var e=new t.constructor(t.byteLength);return new m5(e).set(new m5(t)),e}var GP=qP,KP=GP;function ZP(t,e){var n=e?KP(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var XP=ZP;function JP(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}var QP=JP,eL=_s,g5=Object.create,tL=function(){function t(){}return function(e){if(!eL(e))return{};if(g5)return g5(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),nL=tL,iL=P4,sL=iL(Object.getPrototypeOf,Object),_5=sL,rL=nL,aL=_5,oL=ih;function lL(t){return typeof t.constructor=="function"&&!oL(t)?rL(aL(t)):{}}var cL=lL,dL=Bl,uL=Pi;function hL(t){return uL(t)&&dL(t)}var fL=hL,pL=es,mL=_5,gL=Pi,_L="[object Object]",vL=Function.prototype,yL=Object.prototype,v5=vL.toString,bL=yL.hasOwnProperty,wL=v5.call(Object);function kL(t){if(!gL(t)||pL(t)!=_L)return!1;var e=mL(t);if(e===null)return!0;var n=bL.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&v5.call(n)==wL}var xL=kL;function CL(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var y5=CL,SL=Kz,ML=Hd;function OL(t,e,n,i){var s=!n;n||(n={});for(var r=-1,o=e.length;++r<o;){var c=e[r],d=i?i(n[c],t[c],c,n,t):void 0;d===void 0&&(d=t[c]),s?ML(n,c,d):SL(n,c,d)}return n}var DL=OL,EL=DL,TL=ph;function IL(t){return EL(t,TL(t))}var BL=IL,b5=p5,AL=Wd,VL=XP,$L=QP,NL=cL,w5=X0,k5=zi,zL=fL,PL=ja,LL=Lr,FL=_s,RL=xL,HL=nh,x5=y5,WL=BL;function YL(t,e,n,i,s,r,o){var c=x5(t,n),d=x5(e,n),h=o.get(d);if(h){b5(t,n,h);return}var f=r?r(c,d,n+"",t,e,o):void 0,m=f===void 0;if(m){var g=k5(d),v=!g&&PL(d),b=!g&&!v&&HL(d);f=d,g||v||b?k5(c)?f=c:zL(c)?f=$L(c):v?(m=!1,f=AL(d,!0)):b?(m=!1,f=VL(d,!0)):f=[]:RL(d)||w5(d)?(f=c,w5(c)?f=WL(c):(!FL(c)||LL(c))&&(f=NL(d))):m=!1}m&&(o.set(d,f),s(f,d,i,r,o),o.delete(d)),b5(t,n,f)}var jL=YL,UL=eh,qL=p5,GL=r5,KL=jL,ZL=_s,XL=ph,JL=y5;function C5(t,e,n,i,s){t!==e&&GL(e,function(r,o){if(s||(s=new UL),ZL(r))KL(t,e,o,n,C5,i,s);else{var c=i?i(JL(t,o),r,o+"",t,e,s):void 0;c===void 0&&(c=r),qL(t,o,c)}},XL)}var S5=C5,QL=S5,M5=_s;function O5(t,e,n,i,s,r){return M5(t)&&M5(e)&&(r.set(e,t),QL(t,e,void 0,O5,r),r.delete(e)),t}var eF=O5,tF=fh,nF=hh;function iF(t){return tF(function(e,n){var i=-1,s=n.length,r=s>1?n[s-1]:void 0,o=s>2?n[2]:void 0;for(r=t.length>3&&typeof r=="function"?(s--,r):void 0,o&&nF(n[0],n[1],o)&&(r=s<3?void 0:r,s=1),e=Object(e);++i<s;){var c=n[i];c&&t(e,c,i,r)}return e})}var sF=iF,rF=S5,aF=sF,oF=aF(function(t,e,n,i){rF(t,e,n,i)}),lF=oF,cF=c5,dF=fh,uF=eF,hF=lF,fF=dF(function(t){return t.push(void 0,uF),cF(hF,void 0,t)}),Al=fF;function pF(t){return t&&t.length?t[0]:void 0}var D5=pF;function mF(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var qa=mF;const gF=t=>Object.prototype.toString.call(t).slice(8,-1),Ga=t=>kB(t)&&!isNaN(t.getTime()),vs=t=>gF(t)==="Object",E5=C4,T5=(t,e)=>Iz(e,n=>C4(t,n)),vt=(t,e,n="0")=>{for(t=t!=null?String(t):"",e=e||2;t.length<e;)t=`${n}${t}`;return t},_i=t=>Array.isArray(t),ys=t=>_i(t)&&t.length>0,Yd=t=>t==null?null:document&&ts(t)?document.querySelector(t):t.$el??t,Qs=(t,e,n,i=void 0)=>{t.removeEventListener(e,n,i)},er=(t,e,n,i=void 0)=>(t.addEventListener(e,n,i),()=>Qs(t,e,n,i)),jd=(t,e)=>!!t&&!!e&&(t===e||t.contains(e)),Ud=(t,e)=>{(t.key===" "||t.key==="Enter")&&(e(t),t.preventDefault())},I5=(t,...e)=>{const n={};let i;for(i in t)e.includes(i)||(n[i]=t[i]);return n},B5=(t,e)=>{const n={};return e.forEach(i=>{i in t&&(n[i]=t[i])}),n};function _F(t,e,n){return Math.min(Math.max(t,e),n)}var qd={},vF={get exports(){return qd},set exports(t){qd=t}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(i){if(i===null||i===!0||i===!1)return NaN;var s=Number(i);return isNaN(s)?s:s<0?Math.ceil(s):Math.floor(s)}t.exports=e.default})(vF,qd);const yF=r4(qd);var Gd={},bF={get exports(){return Gd},set exports(t){Gd=t}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(i){var s=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));return s.setUTCFullYear(i.getFullYear()),i.getTime()-s.getTime()}t.exports=e.default})(bF,Gd);const A5=r4(Gd);function wF(t,e){var n=SF(e);return n.formatToParts?xF(n,t):CF(n,t)}var kF={year:0,month:1,day:2,hour:3,minute:4,second:5};function xF(t,e){try{for(var n=t.formatToParts(e),i=[],s=0;s<n.length;s++){var r=kF[n[s].type];r>=0&&(i[r]=parseInt(n[s].value,10))}return i}catch(o){if(o instanceof RangeError)return[NaN];throw o}}function CF(t,e){var n=t.format(e).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[i[3],i[1],i[2],i[4],i[5],i[6]]}var mh={};function SF(t){if(!mh[t]){var e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=e==="06/25/2014, 00:00:00"||e==="\u200E06\u200E/\u200E25\u200E/\u200E2014\u200E \u200E00\u200E:\u200E00\u200E:\u200E00";mh[t]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return mh[t]}function V5(t,e,n,i,s,r,o){var c=new Date(0);return c.setUTCFullYear(t,e,n),c.setUTCHours(i,s,r,o),c}var $5=36e5,MF=6e4,gh={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function OF(t,e,n){var i,s;if(!t||(i=gh.timezoneZ.exec(t),i))return 0;var r;if(i=gh.timezoneHH.exec(t),i)return r=parseInt(i[1],10),N5(r)?-(r*$5):NaN;if(i=gh.timezoneHHMM.exec(t),i){r=parseInt(i[1],10);var o=parseInt(i[2],10);return N5(r,o)?(s=Math.abs(r)*$5+o*MF,r>0?-s:s):NaN}if(TF(t)){e=new Date(e||Date.now());var c=n?e:DF(e),d=_h(c,t),h=n?d:EF(e,d,t);return-h}return NaN}function DF(t){return V5(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function _h(t,e){var n=wF(t,e),i=V5(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),s=t.getTime(),r=s%1e3;return s-=r>=0?r:1e3+r,i-s}function EF(t,e,n){var i=t.getTime(),s=i-e,r=_h(new Date(s),n);if(e===r)return e;s-=r-e;var o=_h(new Date(s),n);return r===o?r:Math.max(r,o)}function N5(t,e){return-23<=t&&t<=23&&(e==null||0<=e&&e<=59)}var z5={};function TF(t){if(z5[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),z5[t]=!0,!0}catch{return!1}}var IF=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const BF=IF;var vh=36e5,P5=6e4,AF=2,Tn={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:BF};function VF(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(t===null)return new Date(NaN);var n=e||{},i=n.additionalDigits==null?AF:yF(n.additionalDigits);if(i!==2&&i!==1&&i!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]")return new Date(t.getTime());if(typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]")return new Date(t);if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var s=$F(t),r=NF(s.date,i),o=r.year,c=r.restDateString,d=zF(c,o);if(isNaN(d))return new Date(NaN);if(d){var h=d.getTime(),f=0,m;if(s.time&&(f=PF(s.time),isNaN(f)))return new Date(NaN);if(s.timeZone||n.timeZone){if(m=OF(s.timeZone||n.timeZone,new Date(h+f)),isNaN(m))return new Date(NaN)}else m=A5(new Date(h+f)),m=A5(new Date(h+f+m));return new Date(h+f+m)}else return new Date(NaN)}function $F(t){var e={},n=Tn.dateTimePattern.exec(t),i;if(n?(e.date=n[1],i=n[3]):(n=Tn.datePattern.exec(t),n?(e.date=n[1],i=n[2]):(e.date=null,i=t)),i){var s=Tn.timeZone.exec(i);s?(e.time=i.replace(s[1],""),e.timeZone=s[1].trim()):e.time=i}return e}function NF(t,e){var n=Tn.YYY[e],i=Tn.YYYYY[e],s;if(s=Tn.YYYY.exec(t)||i.exec(t),s){var r=s[1];return{year:parseInt(r,10),restDateString:t.slice(r.length)}}if(s=Tn.YY.exec(t)||n.exec(t),s){var o=s[1];return{year:parseInt(o,10)*100,restDateString:t.slice(o.length)}}return{year:null}}function zF(t,e){if(e===null)return null;var n,i,s,r;if(t.length===0)return i=new Date(0),i.setUTCFullYear(e),i;if(n=Tn.MM.exec(t),n)return i=new Date(0),s=parseInt(n[1],10)-1,R5(e,s)?(i.setUTCFullYear(e,s),i):new Date(NaN);if(n=Tn.DDD.exec(t),n){i=new Date(0);var o=parseInt(n[1],10);return RF(e,o)?(i.setUTCFullYear(e,0,o),i):new Date(NaN)}if(n=Tn.MMDD.exec(t),n){i=new Date(0),s=parseInt(n[1],10)-1;var c=parseInt(n[2],10);return R5(e,s,c)?(i.setUTCFullYear(e,s,c),i):new Date(NaN)}if(n=Tn.Www.exec(t),n)return r=parseInt(n[1],10)-1,H5(e,r)?L5(e,r):new Date(NaN);if(n=Tn.WwwD.exec(t),n){r=parseInt(n[1],10)-1;var d=parseInt(n[2],10)-1;return H5(e,r,d)?L5(e,r,d):new Date(NaN)}return null}function PF(t){var e,n,i;if(e=Tn.HH.exec(t),e)return n=parseFloat(e[1].replace(",",".")),yh(n)?n%24*vh:NaN;if(e=Tn.HHMM.exec(t),e)return n=parseInt(e[1],10),i=parseFloat(e[2].replace(",",".")),yh(n,i)?n%24*vh+i*P5:NaN;if(e=Tn.HHMMSS.exec(t),e){n=parseInt(e[1],10),i=parseInt(e[2],10);var s=parseFloat(e[3].replace(",","."));return yh(n,i,s)?n%24*vh+i*P5+s*1e3:NaN}return null}function L5(t,e,n){e=e||0,n=n||0;var i=new Date(0);i.setUTCFullYear(t,0,4);var s=i.getUTCDay()||7,r=e*7+n+1-s;return i.setUTCDate(i.getUTCDate()+r),i}var LF=[31,28,31,30,31,30,31,31,30,31,30,31],FF=[31,29,31,30,31,30,31,31,30,31,30,31];function F5(t){return t%400===0||t%4===0&&t%100!==0}function R5(t,e,n){if(e<0||e>11)return!1;if(n!=null){if(n<1)return!1;var i=F5(t);if(i&&n>FF[e]||!i&&n>LF[e])return!1}return!0}function RF(t,e){if(e<1)return!1;var n=F5(t);return!(n&&e>366||!n&&e>365)}function H5(t,e,n){return!(e<0||e>52||n!=null&&(n<0||n>6))}function yh(t,e,n){return!(t!=null&&(t<0||t>=25)||e!=null&&(e<0||e>=60)||n!=null&&(n<0||n>=60))}function kn(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Kd(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kd=function(n){return typeof n}:Kd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kd(t)}function bs(t){kn(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Kd(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ka(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}var HF={};function bh(){return HF}function Wr(t,e){var n,i,s,r,o,c,d,h;kn(1,arguments);var f=bh(),m=Ka((n=(i=(s=(r=e==null?void 0:e.weekStartsOn)!==null&&r!==void 0?r:e==null||(o=e.locale)===null||o===void 0||(c=o.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&s!==void 0?s:f.weekStartsOn)!==null&&i!==void 0?i:(d=f.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=bs(t),v=g.getDay(),b=(v<m?7:0)+v-m;return g.setDate(g.getDate()-b),g.setHours(0,0,0,0),g}function W5(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var WF=6048e5;function YF(t,e,n){kn(2,arguments);var i=Wr(t,n),s=Wr(e,n),r=i.getTime()-W5(i),o=s.getTime()-W5(s);return Math.round((r-o)/WF)}function jF(t){kn(1,arguments);var e=bs(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}function UF(t){kn(1,arguments);var e=bs(t);return e.setDate(1),e.setHours(0,0,0,0),e}function qF(t,e){return kn(1,arguments),YF(jF(t),UF(t),e)+1}function GF(t,e){var n,i,s,r,o,c,d,h;kn(1,arguments);var f=bs(t),m=f.getFullYear(),g=bh(),v=Ka((n=(i=(s=(r=e==null?void 0:e.firstWeekContainsDate)!==null&&r!==void 0?r:e==null||(o=e.locale)===null||o===void 0||(c=o.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:g.firstWeekContainsDate)!==null&&i!==void 0?i:(d=g.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setFullYear(m+1,0,v),b.setHours(0,0,0,0);var x=Wr(b,e),k=new Date(0);k.setFullYear(m,0,v),k.setHours(0,0,0,0);var O=Wr(k,e);return f.getTime()>=x.getTime()?m+1:f.getTime()>=O.getTime()?m:m-1}function KF(t,e){var n,i,s,r,o,c,d,h;kn(1,arguments);var f=bh(),m=Ka((n=(i=(s=(r=e==null?void 0:e.firstWeekContainsDate)!==null&&r!==void 0?r:e==null||(o=e.locale)===null||o===void 0||(c=o.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:f.firstWeekContainsDate)!==null&&i!==void 0?i:(d=f.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1),g=GF(t,e),v=new Date(0);v.setFullYear(g,0,m),v.setHours(0,0,0,0);var b=Wr(v,e);return b}var ZF=6048e5;function XF(t,e){kn(1,arguments);var n=bs(t),i=Wr(n,e).getTime()-KF(n,e).getTime();return Math.round(i/ZF)+1}function Zd(t){return kn(1,arguments),Wr(t,{weekStartsOn:1})}function JF(t){kn(1,arguments);var e=bs(t),n=e.getFullYear(),i=new Date(0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);var s=Zd(i),r=new Date(0);r.setFullYear(n,0,4),r.setHours(0,0,0,0);var o=Zd(r);return e.getTime()>=s.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function QF(t){kn(1,arguments);var e=JF(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var i=Zd(n);return i}var eR=6048e5;function tR(t){kn(1,arguments);var e=bs(t),n=Zd(e).getTime()-QF(e).getTime();return Math.round(n/eR)+1}function In(t,e){kn(2,arguments);var n=bs(t),i=Ka(e);return isNaN(i)?new Date(NaN):(i&&n.setDate(n.getDate()+i),n)}function Xd(t,e){kn(2,arguments);var n=bs(t),i=Ka(e);if(isNaN(i))return new Date(NaN);if(!i)return n;var s=n.getDate(),r=new Date(n.getTime());r.setMonth(n.getMonth()+i+1,0);var o=r.getDate();return s>=o?r:(n.setFullYear(r.getFullYear(),r.getMonth(),s),n)}function Y5(t,e){kn(2,arguments);var n=Ka(e);return Xd(t,n*12)}const nR={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function iR({monthComps:t,prevMonthComps:e,nextMonthComps:n},i){const s=[],{firstDayOfWeek:r,firstWeekday:o,isoWeeknumbers:c,weeknumbers:d,numDays:h,numWeeks:f}=t,m=o+(o<r?xn:0)-r;let g=!0,v=!1,b=!1,x=0;const k=new Intl.DateTimeFormat(i.id,{weekday:"long",year:"numeric",month:"short",day:"numeric"});let O=e.numDays-m+1,T=e.numDays-O+1,N=Math.floor((O-1)/xn+1),C=1,B=e.numWeeks,$=1,L=e.month,F=e.year;const q=new Date,ee=q.getDate(),ne=q.getMonth()+1,K=q.getFullYear();for(let ie=1;ie<=IR;ie++){for(let pe=1,J=r;pe<=xn;pe++,J+=J===xn?1-xn:1){g&&J===o&&(O=1,T=t.numDays,N=Math.floor((O-1)/xn+1),C=Math.floor((h-O)/xn+1),B=1,$=f,L=t.month,F=t.year,g=!1,v=!0);const ue=i.getDateFromParams(F,L,O,0,0,0,0),he=i.getDateFromParams(F,L,O,12,0,0,0),_e=i.getDateFromParams(F,L,O,23,59,59,999),be=ue,R=`${vt(F,4)}-${vt(L,2)}-${vt(O,2)}`,fe=pe,ae=xn-pe,Ee=d[ie-1],Me=c[ie-1],me=O===ee&&L===ne&&F===K,Ne=v&&O===1,ot=v&&O===h,Le=ie===1,ut=ie===f,Bt=pe===1,wt=pe===xn,et=l_(F,L,O);s.push({locale:i,id:R,position:++x,label:O.toString(),ariaLabel:k.format(new Date(F,L-1,O)),day:O,dayFromEnd:T,weekday:J,weekdayPosition:fe,weekdayPositionFromEnd:ae,weekdayOrdinal:N,weekdayOrdinalFromEnd:C,week:B,weekFromEnd:$,weekPosition:ie,weeknumber:Ee,isoWeeknumber:Me,month:L,year:F,date:be,startDate:ue,endDate:_e,noonDate:he,dayIndex:et,isToday:me,isFirstDay:Ne,isLastDay:ot,isDisabled:!v,isFocusable:!v,isFocused:!1,inMonth:v,inPrevMonth:g,inNextMonth:b,onTop:Le,onBottom:ut,onLeft:Bt,onRight:wt,classes:[`id-${R}`,`day-${O}`,`day-from-end-${T}`,`weekday-${J}`,`weekday-position-${fe}`,`weekday-ordinal-${N}`,`weekday-ordinal-from-end-${C}`,`week-${B}`,`week-from-end-${$}`,{"is-today":me,"is-first-day":Ne,"is-last-day":ot,"in-month":v,"in-prev-month":g,"in-next-month":b,"on-top":Le,"on-bottom":ut,"on-left":Bt,"on-right":wt}]}),v&&ot?(v=!1,b=!0,O=1,T=h,N=1,C=Math.floor((h-O)/xn+1),B=1,$=n.numWeeks,L=n.month,F=n.year):(O++,T--,N=Math.floor((O-1)/xn+1),C=Math.floor((h-O)/xn+1))}B++,$--}return s}function sR(t,e,n,i){const s=t.reduce((r,o,c)=>{const d=Math.floor(c/7);let h=r[d];return h||(h={id:`week-${d+1}`,title:"",week:o.week,weekPosition:o.weekPosition,weeknumber:o.weeknumber,isoWeeknumber:o.isoWeeknumber,weeknumberDisplay:e?o.weeknumber:n?o.isoWeeknumber:void 0,days:[]},r[d]=h),h.days.push(o),r},Array(t.length/xn));return s.forEach(r=>{const o=r.days[0],c=r.days[r.days.length-1];o.month===c.month?r.title=`${i.formatDate(o.date,"MMMM YYYY")}`:o.year===c.year?r.title=`${i.formatDate(o.date,"MMM")} - ${i.formatDate(c.date,"MMM YYYY")}`:r.title=`${i.formatDate(o.date,"MMM YYYY")} - ${i.formatDate(c.date,"MMM YYYY")}`}),s}function rR(t,e){return t.days.map(n=>({label:e.formatDate(n.date,e.masks.weekdays),weekday:n.weekday}))}function aR(t,e){return`${e}.${vt(t,2)}`}function j5(t,e,n){return B5(n.getDateParts(n.toDate(t)),nR[e])}function U5({day:t,week:e,month:n,year:i},s,r,o){if(r==="daily"&&t){const c=new Date(i,n-1,t),d=In(c,s);return{day:d.getDate(),month:d.getMonth()+1,year:d.getFullYear()}}else if(r==="weekly"&&e){const d=o.getMonthParts(n,i).firstDayOfMonth,h=In(d,(e-1+s)*7),f=o.getDateParts(h);return{week:f.week,month:f.month,year:f.year}}else{const c=new Date(i,n-1,1),d=Xd(c,s);return{month:d.getMonth()+1,year:d.getFullYear()}}}function ns(t){return t!=null&&t.month!=null&&t.year!=null}function wh(t,e){return!ns(t)||!ns(e)?!1:(t=t,e=e,t.year!==e.year?t.year<e.year:t.month&&e.month&&t.month!==e.month?t.month<e.month:t.week&&e.week&&t.week!==e.week?t.week<e.week:t.day&&e.day&&t.day!==e.day?t.day<e.day:!1)}function Jd(t,e){return!ns(t)||!ns(e)?!1:(t=t,e=e,t.year!==e.year?t.year>e.year:t.month&&e.month&&t.month!==e.month?t.month>e.month:t.week&&e.week&&t.week!==e.week?t.week>e.week:t.day&&e.day&&t.day!==e.day?t.day>e.day:!1)}function oR(t,e,n){return(t||!1)&&!wh(t,e)&&!Jd(t,n)}function lR(t,e){return!t&&e||t&&!e?!1:!t&&!e?!0:(t=t,e=e,t.year===e.year&&t.month===e.month&&t.week===e.week&&t.day===e.day)}function cR(t,e,n,i){if(!ns(t)||!ns(e))return[];const s=[];for(;!Jd(t,e);)s.push(t),t=U5(t,1,n,i);return s}function q5(t){const{day:e,week:n,month:i,year:s}=t;let r=`${s}-${vt(i,2)}`;return n&&(r=`${r}-w${n}`),e&&(r=`${r}-${vt(e,2)}`),r}function dR(t,e){const{month:n,year:i,showWeeknumbers:s,showIsoWeeknumbers:r}=t,o=new Date(i,n-1,15),c=e.getMonthParts(n,i),d=e.getPrevMonthParts(n,i),h=e.getNextMonthParts(n,i),f=iR({monthComps:c,prevMonthComps:d,nextMonthComps:h},e),m=sR(f,s,r,e),g=rR(m[0],e);return{id:q5(t),month:n,year:i,monthTitle:e.formatDate(o,e.masks.title),shortMonthLabel:e.formatDate(o,"MMM"),monthLabel:e.formatDate(o,"MMMM"),shortYearLabel:i.toString().substring(2),yearLabel:i.toString(),monthComps:c,prevMonthComps:d,nextMonthComps:h,days:f,weeks:m,weekdays:g}}function uR(t,e){const{day:n,week:i,view:s,trimWeeks:r}=t,o={...e,...t,title:"",viewDays:[],viewWeeks:[]};switch(s){case"daily":{let c=o.days.find(h=>h.inMonth);n?c=o.days.find(h=>h.day===n&&h.inMonth)||c:i&&(c=o.days.find(h=>h.week===i&&h.inMonth));const d=o.weeks[c.week-1];o.viewWeeks=[d],o.viewDays=[c],o.week=c.week,o.weekTitle=d.title,o.day=c.day,o.dayTitle=c.ariaLabel,o.title=o.dayTitle;break}case"weekly":{o.week=i||1;const c=o.weeks[o.week-1];o.viewWeeks=[c],o.viewDays=c.days,o.weekTitle=c.title,o.title=o.weekTitle;break}default:{o.title=o.monthTitle,o.viewWeeks=o.weeks.slice(0,r?o.monthComps.numWeeks:void 0),o.viewDays=o.days;break}}return o}class G5{constructor(e,n,i){xe(this,"keys",[]),xe(this,"store",{}),this.size=e,this.createKey=n,this.createItem=i}get(...e){const n=this.createKey(...e);return this.store[n]}getOrSet(...e){const n=this.createKey(...e);if(this.store[n])return this.store[n];const i=this.createItem(...e);if(this.keys.length>=this.size){const s=this.keys.shift();s!=null&&delete this.store[s]}return this.keys.push(n),this.store[n]=i,i}}class Za{constructor(e,n=new Qd){xe(this,"order"),xe(this,"locale"),xe(this,"start",null),xe(this,"end",null),xe(this,"repeat",null);var i;this.locale=n;const{start:s,end:r,span:o,order:c,repeat:d}=e;Ga(s)&&(this.start=n.getDateParts(s)),Ga(r)?this.end=n.getDateParts(r):this.start!=null&&o&&(this.end=n.getDateParts(In(this.start.date,o-1))),this.order=c??0,d&&(this.repeat=new eu({from:(i=this.start)==null?void 0:i.date,...d},{locale:this.locale}))}static fromMany(e,n){return(_i(e)?e:[e]).filter(i=>i).map(i=>Za.from(i,n))}static from(e,n){if(e instanceof Za)return e;const i={start:null,end:null};return e!=null&&(_i(e)?(i.start=e[0]??null,i.end=e[1]??null):vs(e)?Object.assign(i,e):(i.start=e,i.end=e)),i.start!=null&&(i.start=new Date(i.start)),i.end!=null&&(i.end=new Date(i.end)),new Za(i,n)}get opts(){const{order:e,locale:n}=this;return{order:e,locale:n}}get hasRepeat(){return!!this.repeat}get isSingleDay(){const{start:e,end:n}=this;return e&&n&&e.year===n.year&&e.month===n.month&&e.day===n.day}get isMultiDay(){return!this.isSingleDay}get daySpan(){return this.start==null||this.end==null?this.hasRepeat?1:1/0:this.end.dayIndex-this.start.dayIndex}startsOnDay(e){var n,i;return((n=this.start)==null?void 0:n.dayIndex)===e.dayIndex||!!((i=this.repeat)!=null&&i.passes(e))}intersectsDay(e){return this.intersectsDayRange(e,e)}intersectsRange(e){var n,i;return this.intersectsDayRange(((n=e.start)==null?void 0:n.dayIndex)??-1/0,((i=e.end)==null?void 0:i.dayIndex)??1/0)}intersectsDayRange(e,n){return!(this.start&&this.start.dayIndex>n||this.end&&this.end.dayIndex<e)}}class hR{constructor(){xe(this,"records",{})}render(e,n,i){var s,r,o,c;let d=null;const h=i[0].dayIndex,f=i[i.length-1].dayIndex;return n.hasRepeat?i.forEach(m=>{var g,v;if(n.startsOnDay(m)){const b=n.daySpan<1/0?n.daySpan:1;d={startDay:m.dayIndex,startTime:((g=n.start)==null?void 0:g.time)??0,endDay:m.dayIndex+b-1,endTime:((v=n.end)==null?void 0:v.time)??tu},this.getRangeRecords(e).push(d)}}):n.intersectsDayRange(h,f)&&(d={startDay:((s=n.start)==null?void 0:s.dayIndex)??-1/0,startTime:((r=n.start)==null?void 0:r.time)??-1/0,endDay:((o=n.end)==null?void 0:o.dayIndex)??1/0,endTime:((c=n.end)==null?void 0:c.time)??1/0},this.getRangeRecords(e).push(d)),d}getRangeRecords(e){let n=this.records[e.key];return n||(n={ranges:[],data:e},this.records[e.key]=n),n.ranges}getCell(e,n){return this.getCells(n).find(r=>r.data.key===e)}cellExists(e,n){const i=this.records[e];return i==null?!1:i.ranges.some(s=>s.startDay<=n&&s.endDay>=n)}getCells(e){const n=Object.values(this.records),i=[],{dayIndex:s}=e;return n.forEach(({data:r,ranges:o})=>{o.filter(c=>c.startDay<=s&&c.endDay>=s).forEach(c=>{const d=s===c.startDay,h=s===c.endDay,f=d?c.startTime:0,m=new Date(e.startDate.getTime()+f),g=h?c.endTime:tu,v=new Date(e.endDate.getTime()+g),b=f===0&&g===tu,x=r.order||0;i.push({...c,data:r,onStart:d,onEnd:h,startTime:f,startDate:m,endTime:g,endDate:v,allDay:b,order:x})})}),i.sort((r,o)=>r.order-o.order),i}}const ws={ar:{dow:7,L:"D/\u200FM/\u200FYYYY"},bg:{dow:2,L:"D.MM.YYYY"},ca:{dow:2,L:"DD/MM/YYYY"},"zh-CN":{dow:2,L:"YYYY/MM/DD"},"zh-TW":{dow:1,L:"YYYY/MM/DD"},hr:{dow:2,L:"DD.MM.YYYY"},cs:{dow:2,L:"DD.MM.YYYY"},da:{dow:2,L:"DD.MM.YYYY"},nl:{dow:2,L:"DD-MM-YYYY"},"en-US":{dow:1,L:"MM/DD/YYYY"},"en-AU":{dow:2,L:"DD/MM/YYYY"},"en-CA":{dow:1,L:"YYYY-MM-DD"},"en-GB":{dow:2,L:"DD/MM/YYYY"},"en-IE":{dow:2,L:"DD-MM-YYYY"},"en-NZ":{dow:2,L:"DD/MM/YYYY"},"en-ZA":{dow:1,L:"YYYY/MM/DD"},eo:{dow:2,L:"YYYY-MM-DD"},et:{dow:2,L:"DD.MM.YYYY"},fi:{dow:2,L:"DD.MM.YYYY"},fr:{dow:2,L:"DD/MM/YYYY"},"fr-CA":{dow:1,L:"YYYY-MM-DD"},"fr-CH":{dow:2,L:"DD.MM.YYYY"},de:{dow:2,L:"DD.MM.YYYY"},he:{dow:1,L:"DD.MM.YYYY"},id:{dow:2,L:"DD/MM/YYYY"},it:{dow:2,L:"DD/MM/YYYY"},ja:{dow:1,L:"YYYY\u5E74M\u6708D\u65E5"},ko:{dow:1,L:"YYYY.MM.DD"},lv:{dow:2,L:"DD.MM.YYYY"},lt:{dow:2,L:"DD.MM.YYYY"},mk:{dow:2,L:"D.MM.YYYY"},nb:{dow:2,L:"D. MMMM YYYY"},nn:{dow:2,L:"D. MMMM YYYY"},pl:{dow:2,L:"DD.MM.YYYY"},pt:{dow:2,L:"DD/MM/YYYY"},ro:{dow:2,L:"DD.MM.YYYY"},ru:{dow:2,L:"DD.MM.YYYY"},sk:{dow:2,L:"DD.MM.YYYY"},"es-ES":{dow:2,L:"DD/MM/YYYY"},"es-MX":{dow:2,L:"DD/MM/YYYY"},sv:{dow:2,L:"YYYY-MM-DD"},th:{dow:1,L:"DD/MM/YYYY"},tr:{dow:2,L:"DD.MM.YYYY"},uk:{dow:2,L:"DD.MM.YYYY"},vi:{dow:2,L:"DD/MM/YYYY"}};ws.en=ws["en-US"],ws.es=ws["es-ES"],ws.no=ws.nb,ws.zh=ws["zh-CN"];const fR=Object.entries(ws).reduce((t,[e,{dow:n,L:i}])=>(t[e]={id:e,firstDayOfWeek:n,masks:{L:i}},t),{}),pR={componentPrefix:"V",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:{maxSwipeTime:300,minHorizontalSwipeDistance:60,maxVerticalSwipeDistance:80},masks:{title:"MMMM YYYY",weekdays:"W",navMonths:"MMM",hours:"h A",input:["L","YYYY-MM-DD","YYYY/MM/DD"],inputDateTime:["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],inputDateTime24hr:["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],inputTime:["h:mm A"],inputTime24hr:["HH:mm"],dayPopover:"WWW, MMM D, YYYY",data:["L","YYYY-MM-DD","YYYY/MM/DD"],model:"iso",iso:"YYYY-MM-DDTHH:mm:ss.SSSZ"},locales:fR,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},kh=a.reactive(pR),mR=a.computed(()=>eP(kh.locales,t=>(t.masks=Al(t.masks,kh.masks),t))),tr=t=>typeof window<"u"&&E5(window.__vcalendar__,t)?Hr(window.__vcalendar__,t):Hr(kh,t),gR=12,_R=5;function vR(t,e){const n=new Intl.DateTimeFormat().resolvedOptions().locale;let i;ts(t)?i=t:E5(t,"id")&&(i=t.id),i=(i||n).toLowerCase();const s=Object.keys(e),r=d=>s.find(h=>h.toLowerCase()===d);i=r(i)||r(i.substring(0,2))||n;const o={...e["en-IE"],...e[i],id:i,monthCacheSize:gR,pageCacheSize:_R};return vs(t)?Al(t,o):o}class Qd{constructor(e=void 0,n){xe(this,"id"),xe(this,"daysInWeek"),xe(this,"firstDayOfWeek"),xe(this,"masks"),xe(this,"timezone"),xe(this,"hourLabels"),xe(this,"dayNames"),xe(this,"dayNamesShort"),xe(this,"dayNamesShorter"),xe(this,"dayNamesNarrow"),xe(this,"monthNames"),xe(this,"monthNamesShort"),xe(this,"relativeTimeNames"),xe(this,"amPm",["am","pm"]),xe(this,"monthCache"),xe(this,"pageCache");const{id:i,firstDayOfWeek:s,masks:r,monthCacheSize:o,pageCacheSize:c}=vR(e,mR.value);this.monthCache=new G5(o,FR,RR),this.pageCache=new G5(c,q5,dR),this.id=i,this.daysInWeek=xn,this.firstDayOfWeek=_F(s,1,xn),this.masks=r,this.timezone=n||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=Mh("long",this.id),this.dayNamesShort=Mh("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(d=>d.substring(0,2)),this.dayNamesNarrow=Mh("narrow",this.id),this.monthNames=h_("long",this.id),this.monthNamesShort=h_("short",this.id),this.relativeTimeNames=YR(this.id)}formatDate(e,n){return KR(e,n,this)}parseDate(e,n){return f_(e,n,this)}toDate(e,n={}){const i=new Date(NaN);let s=i;const{fillDate:r,mask:o,patch:c,rules:d}=n;if(Li(e)?(n.type="number",s=new Date(+e)):ts(e)?(n.type="string",s=e?f_(e,o||"iso",this):i):Ga(e)?(n.type="date",s=new Date(e.getTime())):Ch(e)&&(n.type="object",s=this.getDateFromParts(e)),s&&(c||d)){let h=this.getDateParts(s);if(c&&r!=null){const f=this.getDateParts(this.toDate(r));h=this.getDateParts(this.toDate({...f,...B5(h,TR[c])}))}d&&(h=GR(h,d)),s=this.getDateFromParts(h)}return s||i}toDateOrNull(e,n={}){const i=this.toDate(e,n);return isNaN(i.getTime())?null:i}fromDate(e,{type:n,mask:i}={}){switch(n){case"number":return e?e.getTime():NaN;case"string":return e?this.formatDate(e,i||"iso"):"";case"object":return e?this.getDateParts(e):null;default:return e?new Date(e):null}}range(e){return Za.from(e,this)}ranges(e){return Za.fromMany(e,this)}getDateParts(e){return LR(e,this)}getDateFromParts(e){return d_(e,this.timezone)}getDateFromParams(e,n,i,s,r,o,c){return this.getDateFromParts({year:e,month:n,day:i,hours:s,minutes:r,seconds:o,milliseconds:c})}getPage(e){const n=this.pageCache.getOrSet(e,this);return uR(e,n)}getMonthParts(e,n){const{firstDayOfWeek:i}=this;return this.monthCache.getOrSet(e,n,i)}getThisMonthParts(){const e=new Date;return this.getMonthParts(e.getMonth()+1,e.getFullYear())}getPrevMonthParts(e,n){return e===1?this.getMonthParts(12,n-1):this.getMonthParts(e-1,n)}getNextMonthParts(e,n){return e===12?this.getMonthParts(1,n+1):this.getMonthParts(e+1,n)}getHourLabels(){return WR().map(e=>this.formatDate(e,this.masks.hours))}getDayId(e){return this.formatDate(e,"YYYY-MM-DD")}}var Xa=(t=>(t.Any="any",t.All="all",t))(Xa||{}),K5=(t=>(t.Days="days",t.Weeks="weeks",t.Months="months",t.Years="years",t))(K5||{}),Z5=(t=>(t.Days="days",t.Weekdays="weekdays",t.Weeks="weeks",t.Months="months",t.Years="years",t))(Z5||{}),X5=(t=>(t.OrdinalWeekdays="ordinalWeekdays",t))(X5||{});class yR{constructor(e,n,i){xe(this,"validated",!0),this.type=e,this.interval=n,this.from=i,this.from||(console.error('A valid "from" date is required for date interval rule. This rule will be skipped.'),this.validated=!1)}passes(e){if(!this.validated)return!0;const{date:n}=e;switch(this.type){case"days":return Sh(this.from.date,n)%this.interval===0;case"weeks":return zR(this.from.date,n)%this.interval===0;case"months":return PR(this.from.date,n)%this.interval===0;case"years":return c_(this.from.date,n)%this.interval===0;default:return!1}}}class Ja{constructor(e,n,i,s){xe(this,"components",[]),this.type=e,this.validator=i,this.getter=s,this.components=this.normalizeComponents(n)}static create(e,n){switch(e){case"days":return new bR(n);case"weekdays":return new wR(n);case"weeks":return new kR(n);case"months":return new xR(n);case"years":return new CR(n)}}normalizeComponents(e){if(this.validator(e))return[e];if(!_i(e))return[];const n=[];return e.forEach(i=>{if(!this.validator(i)){console.error(`Component value ${i} in invalid for "${this.type}" rule. This rule will be skipped.`);return}n.push(i)}),n}passes(e){return this.getter(e).some(s=>this.components.includes(s))}}class bR extends Ja{constructor(e){super("days",e,OR,({day:n,dayFromEnd:i})=>[n,-i])}}class wR extends Ja{constructor(e){super("weekdays",e,xh,({weekday:n})=>[n])}}class kR extends Ja{constructor(e){super("weeks",e,DR,({week:n,weekFromEnd:i})=>[n,-i])}}class xR extends Ja{constructor(e){super("months",e,ER,({month:n})=>[n])}}class CR extends Ja{constructor(e){super("years",e,Li,({year:n})=>[n])}}class SR{constructor(e,n){xe(this,"components"),this.type=e,this.components=this.normalizeComponents(n)}normalizeArrayConfig(e){const n=[];return e.forEach((i,s)=>{if(Li(i)){if(s===0)return;if(!J5(e[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!xh(i)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([e[0],i])}else _i(i)&&n.push(...this.normalizeArrayConfig(i))}),n}normalizeComponents(e){const n=[];return e.forEach((i,s)=>{if(Li(i)){if(s===0)return;if(!J5(e[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!xh(i)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([e[0],i])}else _i(i)&&n.push(...this.normalizeArrayConfig(i))}),n}passes(e){const{weekday:n,weekdayOrdinal:i,weekdayOrdinalFromEnd:s}=e;return this.components.some(([r,o])=>(r===i||r===-s)&&n===o)}}class MR{constructor(e){xe(this,"type","function"),xe(this,"validated",!0),this.fn=e,Lr(e)||(console.error("The function rule requires a valid function. This rule will be skipped."),this.validated=!1)}passes(e){return this.validated?this.fn(e):!0}}class eu{constructor(e,n={},i){xe(this,"validated",!0),xe(this,"config"),xe(this,"type",Xa.Any),xe(this,"from"),xe(this,"until"),xe(this,"rules",[]),xe(this,"locale",new Qd),this.parent=i,n.locale&&(this.locale=n.locale),this.config=e,Lr(e)?(this.type=Xa.All,this.rules=[new MR(e)]):_i(e)?(this.type=Xa.Any,this.rules=e.map(s=>new eu(s,n,this))):vs(e)?(this.type=Xa.All,this.from=e.from?this.locale.getDateParts(e.from):i==null?void 0:i.from,this.until=e.until?this.locale.getDateParts(e.until):i==null?void 0:i.until,this.rules=this.getObjectRules(e)):(console.error("Rule group configuration must be an object or an array."),this.validated=!1)}getObjectRules(e){const n=[];if(e.every&&(ts(e.every)&&(e.every=[1,`${e.every}s`]),_i(e.every))){const[i=1,s=K5.Days]=e.every;n.push(new yR(s,i,this.from))}return Object.values(Z5).forEach(i=>{i in e&&n.push(Ja.create(i,e[i]))}),Object.values(X5).forEach(i=>{i in e&&n.push(new SR(i,e[i]))}),e.on!=null&&(_i(e.on)||(e.on=[e.on]),n.push(new eu(e.on,{locale:this.locale},this.parent))),n}passes(e){return this.validated?this.from&&e.dayIndex<=this.from.dayIndex||this.until&&e.dayIndex>=this.until.dayIndex?!1:this.type===Xa.Any?this.rules.some(n=>n.passes(e)):this.rules.every(n=>n.passes(e)):!0}}function OR(t){return Li(t)?t>=1&&t<=31:!1}function xh(t){return Li(t)?t>=1&&t<=7:!1}function DR(t){return Li(t)?t>=-6&&t<=-1||t>=1&&t<=6:!1}function ER(t){return Li(t)?t>=1&&t<=12:!1}function J5(t){return!(!Li(t)||t<-5||t>5||t===0)}const TR={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},xn=7,IR=6,Q5=1e3,e_=Q5*60,t_=e_*60,tu=t_*24,BR=[31,28,31,30,31,30,31,31,30,31,30,31],AR=["L","iso"],Vl={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},n_=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,VR=/\[([^]*?)\]/gm,i_={D(t){return t.day},DD(t){return vt(t.day,2)},d(t){return t.weekday-1},dd(t){return vt(t.weekday-1,2)},W(t,e){return e.dayNamesNarrow[t.weekday-1]},WW(t,e){return e.dayNamesShorter[t.weekday-1]},WWW(t,e){return e.dayNamesShort[t.weekday-1]},WWWW(t,e){return e.dayNames[t.weekday-1]},M(t){return t.month},MM(t){return vt(t.month,2)},MMM(t,e){return e.monthNamesShort[t.month-1]},MMMM(t,e){return e.monthNames[t.month-1]},YY(t){return String(t.year).substr(2)},YYYY(t){return vt(t.year,4)},h(t){return t.hours%12||12},hh(t){return vt(t.hours%12||12,2)},H(t){return t.hours},HH(t){return vt(t.hours,2)},m(t){return t.minutes},mm(t){return vt(t.minutes,2)},s(t){return t.seconds},ss(t){return vt(t.seconds,2)},S(t){return Math.round(t.milliseconds/100)},SS(t){return vt(Math.round(t.milliseconds/10),2)},SSS(t){return vt(t.milliseconds,3)},a(t,e){return t.hours<12?e.amPm[0]:e.amPm[1]},A(t,e){return t.hours<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},Z(){return"Z"},ZZ(t){const e=t.timezoneOffset;return`${e>0?"-":"+"}${vt(Math.floor(Math.abs(e)/60),2)}`},ZZZ(t){const e=t.timezoneOffset;return`${e>0?"-":"+"}${vt(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)}`},ZZZZ(t){const e=t.timezoneOffset;return`${e>0?"-":"+"}${vt(Math.floor(Math.abs(e)/60),2)}:${vt(Math.abs(e)%60,2)}`}},nr=/\d\d?/,$R=/\d{3}/,NR=/\d{4}/,$l=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,s_=()=>{},r_=t=>(e,n,i)=>{const s=i[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~s&&(e.month=s)},bt={D:[nr,(t,e)=>{t.day=e}],Do:[new RegExp(nr.source+$l.source),(t,e)=>{t.day=parseInt(e,10)}],d:[nr,s_],W:[$l,s_],M:[nr,(t,e)=>{t.month=e-1}],MMM:[$l,r_("monthNamesShort")],MMMM:[$l,r_("monthNames")],YY:[nr,(t,e)=>{const i=+new Date().getFullYear().toString().substr(0,2);t.year=+`${e>68?i-1:i}${e}`}],YYYY:[NR,(t,e)=>{t.year=e}],S:[/\d/,(t,e)=>{t.milliseconds=e*100}],SS:[/\d{2}/,(t,e)=>{t.milliseconds=e*10}],SSS:[$R,(t,e)=>{t.milliseconds=e}],h:[nr,(t,e)=>{t.hours=e}],m:[nr,(t,e)=>{t.minutes=e}],s:[nr,(t,e)=>{t.seconds=e}],a:[$l,(t,e,n)=>{const i=e.toLowerCase();i===n.amPm[0]?t.isPm=!1:i===n.amPm[1]&&(t.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(t,e)=>{e==="Z"&&(e="+00:00");const n=`${e}`.match(/([+-]|\d\d)/gi);if(n){const i=+n[1]*60+parseInt(n[2],10);t.timezoneOffset=n[0]==="+"?i:-i}}]};bt.DD=bt.D,bt.dd=bt.d,bt.WWWW=bt.WWW=bt.WW=bt.W,bt.MM=bt.M,bt.mm=bt.m,bt.hh=bt.H=bt.HH=bt.h,bt.ss=bt.s,bt.A=bt.a,bt.ZZZZ=bt.ZZZ=bt.ZZ=bt.Z;function a_(t,e){return(ys(t)&&t||[ts(t)&&t||"YYYY-MM-DD"]).map(n=>AR.reduce((i,s)=>i.replace(s,e.masks[s]||""),n))}function Ch(t){return vs(t)&&"year"in t&&"month"in t&&"day"in t}function o_(t,e=1){const n=t.getDay()+1,i=n>=e?e-n:-(7-(e-n));return In(t,i)}function l_(t,e,n){const i=Date.UTC(t,e-1,n);return Sh(new Date(0),new Date(i))}function Sh(t,e){return Math.round((e.getTime()-t.getTime())/tu)}function zR(t,e){return Math.ceil(Sh(o_(t),o_(e))/7)}function c_(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}function PR(t,e){return c_(t,e)*12+(e.getMonth()-t.getMonth())}function d_(t,e=""){const n=new Date,{year:i=n.getFullYear(),month:s=n.getMonth()+1,day:r=n.getDate(),hours:o=0,minutes:c=0,seconds:d=0,milliseconds:h=0}=t;if(e){const f=`${vt(i,4)}-${vt(s,2)}-${vt(r,2)}T${vt(o,2)}:${vt(c,2)}:${vt(d,2)}.${vt(h,3)}`;return VF(f,{timeZone:e})}return new Date(i,s-1,r,o,c,d,h)}function LR(t,e){let n=new Date(t.getTime());e.timezone&&(n=new Date(t.toLocaleString("en-US",{timeZone:e.timezone})),n.setMilliseconds(t.getMilliseconds()));const i=n.getMilliseconds(),s=n.getSeconds(),r=n.getMinutes(),o=n.getHours(),c=i+s*Q5+r*e_+o*t_,d=n.getMonth()+1,h=n.getFullYear(),f=e.getMonthParts(d,h),m=n.getDate(),g=f.numDays-m+1,v=n.getDay()+1,b=Math.floor((m-1)/7+1),x=Math.floor((f.numDays-m)/7+1),k=Math.ceil((m+Math.abs(f.firstWeekday-f.firstDayOfWeek))/7),O=f.numWeeks-k+1,T=f.weeknumbers[k],N=l_(h,d,m);return{milliseconds:i,seconds:s,minutes:r,hours:o,time:c,day:m,dayFromEnd:g,weekday:v,weekdayOrdinal:b,weekdayOrdinalFromEnd:x,week:k,weekFromEnd:O,weeknumber:T,month:d,year:h,date:n,dateTime:n.getTime(),dayIndex:N,timezoneOffset:0,isValid:!0}}function FR(t,e,n){return`${e}-${t}-${n}`}function RR(t,e,n){const i=e%4===0&&e%100!==0||e%400===0,s=new Date(e,t-1,1),r=s.getDay()+1,o=t===2&&i?29:BR[t-1],c=n-1,d=qF(s,{weekStartsOn:c}),h=[],f=[];for(let m=0;m<d;m++){const g=In(s,m*7);h.push(XF(g,{weekStartsOn:c})),f.push(tR(g))}return{firstDayOfWeek:n,firstDayOfMonth:s,inLeapYear:i,firstWeekday:r,numDays:o,numWeeks:d,month:t,year:e,weeknumbers:h,isoWeeknumbers:f}}function HR(){const t=[];for(let s=0;s<xn;s++)t.push(d_({year:2020,month:1,day:5+s,hours:12}));return t}function Mh(t,e=void 0){const n=new Intl.DateTimeFormat(e,{weekday:t});return HR().map(i=>n.format(i))}function WR(){const t=[];for(let e=0;e<=24;e++)t.push(new Date(2e3,0,1,e));return t}function YR(t=void 0){const e=["second","minute","hour","day","week","month","quarter","year"],n=new Intl.RelativeTimeFormat(t);return e.reduce((i,s)=>{const r=n.formatToParts(100,s);return i[s]=r[1].unit,i},{})}function u_(){const t=[];for(let e=0;e<12;e++)t.push(new Date(2e3,e,15));return t}function h_(t,e=void 0){const n=new Intl.DateTimeFormat(e,{month:t,timeZone:"UTC"});return u_().map(i=>n.format(i))}function jR(t,e,n){return Li(e)?e===t:_i(e)?e.includes(t):Lr(e)?e(t,n):!(e.min!=null&&e.min>t||e.max!=null&&e.max<t||e.interval!=null&&t%e.interval!==0)}function Nl(t,e,n){const i=[],[s,r,o]=e;for(let c=s;c<=r;c++)(n==null||jR(c,n,t))&&i.push({value:c,label:vt(c,o)});return i}function UR(t,e){return{milliseconds:Nl(t,Vl.milliseconds,e.milliseconds),seconds:Nl(t,Vl.seconds,e.seconds),minutes:Nl(t,Vl.minutes,e.minutes),hours:Nl(t,Vl.hours,e.hours)}}function qR(t,e,n,i){const r=Nl(t,e,i).reduce((o,c)=>{if(c.disabled)return o;if(isNaN(o))return c.value;const d=Math.abs(o-n);return Math.abs(c.value-n)<d?c.value:o},NaN);return isNaN(r)?n:r}function GR(t,e){const n={...t};return Object.entries(e).forEach(([i,s])=>{const r=Vl[i],o=t[i];n[i]=qR(t,r,o,s)}),n}function f_(t,e,n){return a_(e,n).map(s=>{if(typeof s!="string")throw new Error("Invalid mask");let r=t;if(r.length>1e3)return!1;let o=!0;const c={};if(s.replace(n_,f=>{if(bt[f]){const m=bt[f],g=r.search(m[0]);~g?r.replace(m[0],v=>(m[1](c,v,n),r=r.substr(g+v.length),v)):o=!1}return bt[f]?"":f.slice(1,f.length-1)}),!o)return!1;const d=new Date;c.hours!=null&&(c.isPm===!0&&+c.hours!=12?c.hours=+c.hours+12:c.isPm===!1&&+c.hours==12&&(c.hours=0));let h;return c.timezoneOffset!=null?(c.minutes=+(c.minutes||0)-+c.timezoneOffset,h=new Date(Date.UTC(c.year||d.getFullYear(),c.month||0,c.day||1,c.hours||0,c.minutes||0,c.seconds||0,c.milliseconds||0))):h=n.getDateFromParts({year:c.year||d.getFullYear(),month:(c.month||0)+1,day:c.day||1,hours:c.hours||0,minutes:c.minutes||0,seconds:c.seconds||0,milliseconds:c.milliseconds||0}),h}).find(s=>s)||new Date(t)}function KR(t,e,n){if(t==null)return"";let i=a_(e,n)[0];/Z$/.test(i)&&(n.timezone="utc");const s=[];i=i.replace(VR,(o,c)=>(s.push(c),"??"));const r=n.getDateParts(t);return i=i.replace(n_,o=>o in i_?i_[o](r,n):o.slice(1,o.length-1)),i.replace(/\?\?/g,()=>s.shift())}let ZR=0;class p_{constructor(e,n,i){xe(this,"key",""),xe(this,"hashcode",""),xe(this,"highlight",null),xe(this,"content",null),xe(this,"dot",null),xe(this,"bar",null),xe(this,"event",null),xe(this,"popover",null),xe(this,"customData",null),xe(this,"ranges"),xe(this,"hasRanges",!1),xe(this,"order",0),xe(this,"pinPage",!1),xe(this,"maxRepeatSpan",0),xe(this,"locale");const{dates:s}=Object.assign(this,{hashcode:"",order:0,pinPage:!1},e);this.key||(this.key=++ZR),this.locale=i,n.normalizeGlyphs(this),this.ranges=i.ranges(s??[]),this.hasRanges=!!ys(this.ranges),this.maxRepeatSpan=this.ranges.filter(r=>r.hasRepeat).map(r=>r.daySpan).reduce((r,o)=>Math.max(r,o),0)}intersectsRange({start:e,end:n}){if(e==null||n==null)return!1;const i=this.ranges.filter(o=>!o.hasRepeat);for(const o of i)if(o.intersectsDayRange(e.dayIndex,n.dayIndex))return!0;const s=this.ranges.filter(o=>o.hasRepeat);if(!s.length)return!1;let r=e;for(this.maxRepeatSpan>1&&(r=this.locale.getDateParts(In(r.date,-this.maxRepeatSpan)));r.dayIndex<=n.dayIndex;){for(const o of s)if(o.startsOnDay(r))return!0;r=this.locale.getDateParts(In(r.date,1))}return!1}}function Oh(t){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:t}))}function zl(t){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:t}))}function m_(t){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:t}))}function g_(t){const{visibility:e}=t,n=e==="click",i=e==="hover",s=e==="hover-focus",r=e==="focus";t.autoHide=!n;let o=!1,c=!1;const d=b=>{n&&(m_({...t,target:t.target||b.currentTarget}),b.stopPropagation())},h=b=>{o||(o=!0,(i||s)&&Oh({...t,target:t.target||b.currentTarget}))},f=()=>{o&&(o=!1,(i||s&&!c)&&zl(t))},m=b=>{c||(c=!0,(r||s)&&Oh({...t,target:t.target||b.currentTarget}))},g=b=>{c&&!jd(b.currentTarget,b.relatedTarget)&&(c=!1,(r||s&&!o)&&zl(t))},v={};switch(t.visibility){case"click":v.click=d;break;case"hover":v.mousemove=h,v.mouseleave=f;break;case"focus":v.focusin=m,v.focusout=g;break;case"hover-focus":v.mousemove=h,v.mouseleave=f,v.focusin=m,v.focusout=g;break}return v}const __=t=>{const e=Yd(t);if(e==null)return;const n=e.popoverHandlers;!n||!n.length||(n.forEach(i=>i()),delete e.popoverHandlers)},v_=(t,e)=>{const n=Yd(t);if(n==null)return;const i=[],s=g_(e);Object.entries(s).forEach(([r,o])=>{i.push(er(n,r,o))}),n.popoverHandlers=i},y_={mounted(t,e){const{value:n}=e;!n||v_(t,n)},updated(t,e){const{oldValue:n,value:i}=e,s=n==null?void 0:n.visibility,r=i==null?void 0:i.visibility;s!==r&&(s&&(__(t),r||zl(n)),r&&v_(t,i))},unmounted(t){__(t)}},XR=(t,e,{maxSwipeTime:n,minHorizontalSwipeDistance:i,maxVerticalSwipeDistance:s})=>{if(!t||!t.addEventListener||!Lr(e))return null;let r=0,o=0,c=null,d=!1;function h(m){const g=m.changedTouches[0];r=g.screenX,o=g.screenY,c=new Date().getTime(),d=!0}function f(m){if(!d||!c)return;d=!1;const g=m.changedTouches[0],v=g.screenX-r,b=g.screenY-o;if(new Date().getTime()-c<n&&Math.abs(v)>=i&&Math.abs(b)<=s){const k={toLeft:!1,toRight:!1};v<0?k.toLeft=!0:k.toRight=!0,e(k)}}return er(t,"touchstart",h,{passive:!0}),er(t,"touchend",f,{passive:!0}),()=>{Qs(t,"touchstart",h),Qs(t,"touchend",f)}},nu={},JR=(t,e=10)=>{nu[t]=Date.now()+e},QR=(t,e)=>{if(t in nu){const n=nu[t];if(Date.now()<n)return;delete nu[t]}e()};function b_(){return typeof window<"u"}function eH(t){return b_()&&t in window}function tH(t){const e=a.ref(!1),n=a.computed(()=>e.value?"dark":"light");let i,s;function r(v){e.value=v.matches}function o(){eH("matchMedia")&&(i=window.matchMedia("(prefers-color-scheme: dark)"),i.addEventListener("change",r),e.value=i.matches)}function c(){const{selector:v=":root",darkClass:b="dark"}=t.value,x=document.querySelector(v);e.value=x.classList.contains(b)}function d(v){const{selector:b=":root",darkClass:x="dark"}=v;if(b_()&&b&&x){const k=document.querySelector(b);k&&(s=new MutationObserver(c),s.observe(k,{attributes:!0,attributeFilter:["class"]}),e.value=k.classList.contains(x))}}function h(){m();const v=typeof t.value;v==="string"&&t.value.toLowerCase()==="system"?o():v==="object"?d(t.value):e.value=!!t.value}const f=a.watch(()=>t.value,()=>h(),{immediate:!0});function m(){i&&(i.removeEventListener("change",r),i=void 0),s&&(s.disconnect(),s=void 0)}function g(){m(),f()}return a.onUnmounted(()=>g()),{isDark:e,displayMode:n,cleanup:g}}const nH=["base","start","end","startEnd"],iH=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],sH={base:{},start:{},end:{}};function Dh(t,e,n=sH){let i=t,s={};e===!0||ts(e)?(i=ts(e)?e:i,s={...n}):vs(e)&&(T5(e,nH)?s={...e}:s={base:{...e},start:{...e},end:{...e}});const r=Al(s,{start:s.startEnd,end:s.startEnd},n);return Object.entries(r).forEach(([o,c])=>{let d=i;c===!0||ts(c)?(d=ts(c)?c:d,r[o]={color:d}):vs(c)&&(T5(c,iH)?r[o]={...c}:r[o]={}),Al(r[o],{color:d})}),r}class rH{constructor(){xe(this,"type","highlight")}normalizeConfig(e,n){return Dh(e,n,{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}})}prepareRender(e){e.highlights=[],e.content||(e.content=[])}render({data:e,onStart:n,onEnd:i},s){const{key:r,highlight:o}=e;if(!o)return;const{highlights:c}=s,{base:d,start:h,end:f}=o;n&&i?c.push({...h,key:r,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${h.color}`,class:[`vc-highlight vc-highlight-bg-${h.fillMode}`,h.class],contentClass:[`vc-attr vc-highlight-content-${h.fillMode} vc-${h.color}`,h.contentClass]}):n?(c.push({...d,key:`${r}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${d.fillMode}`,d.class]}),c.push({...h,key:r,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${h.color}`,class:[`vc-highlight vc-highlight-bg-${h.fillMode}`,h.class],contentClass:[`vc-attr vc-highlight-content-${h.fillMode} vc-${h.color}`,h.contentClass]})):i?(c.push({...d,key:`${r}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${d.fillMode}`,d.class]}),c.push({...f,key:r,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${f.color}`,class:[`vc-highlight vc-highlight-bg-${f.fillMode}`,f.class],contentClass:[`vc-attr vc-highlight-content-${f.fillMode} vc-${f.color}`,f.contentClass]})):c.push({...d,key:`${r}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${d.fillMode}`,d.class],contentClass:[`vc-attr vc-highlight-content-${d.fillMode} vc-${d.color}`,d.contentClass]})}}class Eh{constructor(e,n){xe(this,"type",""),xe(this,"collectionType",""),this.type=e,this.collectionType=n}normalizeConfig(e,n){return Dh(e,n)}prepareRender(e){e[this.collectionType]=[]}render({data:e,onStart:n,onEnd:i},s){const{key:r}=e,o=e[this.type];if(!r||!o)return;const c=s[this.collectionType],{base:d,start:h,end:f}=o;n?c.push({...h,key:r,class:[`vc-${this.type} vc-${this.type}-start vc-${h.color} vc-attr`,h.class]}):i?c.push({...f,key:r,class:[`vc-${this.type} vc-${this.type}-end vc-${f.color} vc-attr`,f.class]}):c.push({...d,key:r,class:[`vc-${this.type} vc-${this.type}-base vc-${d.color} vc-attr`,d.class]})}}class aH extends Eh{constructor(){super("content","content")}normalizeConfig(e,n){return Dh("base",n)}}class oH extends Eh{constructor(){super("dot","dots")}}class lH extends Eh{constructor(){super("bar","bars")}}class cH{constructor(e){xe(this,"color"),xe(this,"renderers",[new aH,new rH,new oH,new lH]),this.color=e}normalizeGlyphs(e){this.renderers.forEach(n=>{const i=n.type;e[i]!=null&&(e[i]=n.normalizeConfig(this.color,e[i]))})}prepareRender(e={}){return this.renderers.forEach(n=>{n.prepareRender(e)}),e}render(e,n){this.renderers.forEach(i=>{i.render(e,n)})}}const w_=Symbol("__vc_base_context__"),k_={color:{type:String,default:()=>tr("color")},isDark:{type:[Boolean,String,Object],default:()=>tr("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function x_(t){const e=a.computed(()=>t.color??""),n=a.computed(()=>t.isDark??!1),{displayMode:i}=tH(n),s=a.computed(()=>new cH(e.value)),r=a.computed(()=>{if(t.locale instanceof Qd)return t.locale;const g=vs(t.locale)?t.locale:{id:t.locale,firstDayOfWeek:t.firstDayOfWeek,masks:t.masks};return new Qd(g,t.timezone)}),o=a.computed(()=>r.value.masks),c=a.computed(()=>t.minDate),d=a.computed(()=>t.maxDate),h=a.computed(()=>{const g=t.disabledDates?[...t.disabledDates]:[];return c.value!=null&&g.push({start:null,end:In(r.value.toDate(c.value),-1)}),d.value!=null&&g.push({start:In(r.value.toDate(d.value),1),end:null}),r.value.ranges(g)}),f=a.computed(()=>new p_({key:"disabled",dates:h.value,order:100},s.value,r.value)),m={color:e,isDark:n,displayMode:i,theme:s,locale:r,masks:o,minDate:c,maxDate:d,disabledDates:h,disabledAttribute:f};return a.provide(w_,m),m}function dH(t){return a.inject(w_,()=>x_(t),!0)}function C_(t){return`__vc_slot_${t}__`}function S_(t,e={}){Object.keys(t).forEach(n=>{a.provide(C_(e[n]??n),t[n])})}function M_(t){return a.inject(C_(t),null)}const uH={...k_,view:{type:String,default:"monthly",validator(t){return["daily","weekly","monthly"].includes(t)}},rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:{type:String,default:()=>tr("titlePosition")},navVisibility:{type:String,default:()=>tr("navVisibility")},showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String],expanded:Boolean,borderless:Boolean,transparent:Boolean,initialPage:Object,initialPagePosition:{type:Number,default:1},minPage:Object,maxPage:Object,transition:String,attributes:Array,trimWeeks:Boolean,disablePageSwipe:Boolean},hH=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],O_=Symbol("__vc_calendar_context__");function fH(t,{slots:e,emit:n}){const i=a.ref(null),s=a.ref(null),r=a.ref(new Date().getDate()),o=a.ref(!1),c=a.ref(Symbol()),d=a.ref(Symbol()),h=a.ref(t.view),f=a.ref([]),m=a.ref("");let g=null,v=null;S_(e);const{theme:b,color:x,displayMode:k,locale:O,masks:T,minDate:N,maxDate:C,disabledAttribute:B,disabledDates:$}=dH(t),L=a.computed(()=>t.rows*t.columns),F=a.computed(()=>t.step||L.value),q=a.computed(()=>D5(f.value)??null),ee=a.computed(()=>qa(f.value)??null),ne=a.computed(()=>t.minPage||(N.value?ae(N.value):null)),K=a.computed(()=>t.maxPage||(C.value?ae(C.value):null)),ie=a.computed(()=>t.navVisibility),pe=a.computed(()=>!!t.showWeeknumbers),J=a.computed(()=>!!t.showIsoWeeknumbers),ue=a.computed(()=>h.value==="monthly"),he=a.computed(()=>h.value==="weekly"),_e=a.computed(()=>h.value==="daily"),be=()=>{o.value=!0,n("transition-start")},R=()=>{o.value=!1,n("transition-end"),g&&(g.resolve(!0),g=null)},fe=(W,E,Y=h.value)=>U5(W,E,Y,O.value),ae=W=>j5(W,h.value,O.value),Ee=W=>{!B.value||!ut.value||(W.isDisabled=ut.value.cellExists(B.value.key,W.dayIndex))},Me=W=>{W.isFocusable=W.inMonth&&W.day===r.value},me=(W,E)=>{for(const Y of W)for(const se of Y.days)if(E(se)===!1)return},Ne=a.computed(()=>f.value.reduce((W,E)=>(W.push(...E.viewDays),W),[])),ot=a.computed(()=>{const W=[];return(t.attributes||[]).forEach((E,Y)=>{!E||!E.dates||W.push(new p_({...E,order:E.order||0},b.value,O.value))}),B.value&&W.push(B.value),W}),Le=a.computed(()=>ys(ot.value)),ut=a.computed(()=>{const W=new hR;return ot.value.forEach(E=>{E.ranges.forEach(Y=>{W.render(E,Y,Ne.value)})}),W}),Bt=a.computed(()=>Ne.value.reduce((W,E)=>(W[E.dayIndex]={day:E,cells:[]},W[E.dayIndex].cells.push(...ut.value.getCells(E)),W),{})),wt=(W,E)=>{const Y=t.showWeeknumbers||t.showIsoWeeknumbers;return Y==null?"":Nz(Y)?Y?"left":"":Y.startsWith("right")?E>1?"right":Y:W>1?"left":Y},et=()=>{var W,E;if(!Le.value)return null;const Y=ot.value.find(Ye=>Ye.pinPage)||ot.value[0];if(!Y||!Y.hasRanges)return null;const[se]=Y.ranges,ke=((W=se.start)==null?void 0:W.date)||((E=se.end)==null?void 0:E.date);return ke?ae(ke):null},it=()=>{if(ns(q.value))return q.value;const W=et();return ns(W)?W:ae(new Date)},st=(W,E={})=>{const{view:Y=h.value,position:se=1,force:ke}=E,Ye=se>0?1-se:-(L.value+se);let rt=fe(W,Ye,Y),xt=fe(rt,L.value-1,Y);return ke||(wh(rt,ne.value)?rt=ne.value:Jd(xt,K.value)&&(rt=fe(K.value,1-L.value)),xt=fe(rt,L.value-1)),{fromPage:rt,toPage:xt}},Yt=(W,E,Y="")=>{if(Y==="none"||Y==="fade")return Y;if((W==null?void 0:W.view)!==(E==null?void 0:E.view))return"fade";const se=Jd(E,W),ke=wh(E,W);return!se&&!ke?"fade":Y==="slide-v"?ke?"slide-down":"slide-up":ke?"slide-right":"slide-left"},ht=(W={})=>new Promise((E,Y)=>{const{position:se=1,force:ke=!1,transition:Ye}=W,rt=ns(W.page)?W.page:it(),{fromPage:xt}=st(rt,{position:se,force:ke}),sn=[];for(let Gt=0;Gt<L.value;Gt++){const jn=fe(xt,Gt),ft=Gt+1,An=Math.ceil(ft/t.columns),Cn=t.rows-An+1,ti=ft%t.columns||t.columns,Fi=t.columns-ti+1,ks=wt(ti,Fi);sn.push(O.value.getPage({...jn,view:h.value,titlePosition:t.titlePosition,trimWeeks:t.trimWeeks,position:ft,row:An,rowFromEnd:Cn,column:ti,columnFromEnd:Fi,showWeeknumbers:pe.value,showIsoWeeknumbers:J.value,weeknumberPosition:ks}))}m.value=Yt(f.value[0],sn[0],Ye),f.value=sn,m.value&&m.value!=="none"?g={resolve:E,reject:Y}:E(!0)}),kt=W=>{const E=q.value??ae(new Date);return fe(E,W)},tn=(W,E={})=>{const Y=ns(W)?W:ae(W);return Object.assign(E,st(Y,{...E,force:!0})),cR(E.fromPage,E.toPage,h.value,O.value).map(ke=>oR(ke,ne.value,K.value)).some(ke=>ke)},nn=(W,E={})=>tn(kt(W),E),yt=a.computed(()=>nn(-F.value)),tt=a.computed(()=>nn(F.value)),Nt=async(W,E={})=>!E.force&&!tn(W,E)?!1:(E.fromPage&&!lR(E.fromPage,q.value)&&(zl({id:c.value,hideDelay:0}),E.view&&(JR("view",10),h.value=E.view),await ht({...E,page:E.fromPage,position:1,force:!0}),n("did-move",f.value)),!0),Mt=(W,E={})=>Nt(kt(W),E),At=()=>Mt(-F.value),Ot=()=>Mt(F.value),un=W=>{const E=ue.value?".in-month":"",Y=`.id-${O.value.getDayId(W)}${E}`,se=`${Y}.vc-focusable, ${Y} .vc-focusable`,ke=i.value;if(ke){const Ye=ke.querySelector(se);if(Ye)return Ye.focus(),!0}return!1},Vt=async(W,E={})=>un(W)?!0:(await Nt(W,E),un(W)),te=(W,E)=>{r.value=W.day,n("dayclick",W,E)},Ae=(W,E)=>{n("daymouseenter",W,E)},We=(W,E)=>{n("daymouseleave",W,E)},pn=(W,E)=>{r.value=W.day,s.value=W,W.isFocused=!0,n("dayfocusin",W,E)},Bn=(W,E)=>{s.value=null,W.isFocused=!1,n("dayfocusout",W,E)},Yn=(W,E)=>{n("daykeydown",W,E);const Y=W.noonDate;let se=null;switch(E.key){case"ArrowLeft":{se=In(Y,-1);break}case"ArrowRight":{se=In(Y,1);break}case"ArrowUp":{se=In(Y,-7);break}case"ArrowDown":{se=In(Y,7);break}case"Home":{se=In(Y,-W.weekdayPosition+1);break}case"End":{se=In(Y,W.weekdayPositionFromEnd);break}case"PageUp":{E.altKey?se=Y5(Y,-1):se=Xd(Y,-1);break}case"PageDown":{E.altKey?se=Y5(Y,1):se=Xd(Y,1);break}}se&&(E.preventDefault(),Vt(se).catch())},j=W=>{const E=s.value;E!=null&&Yn(E,W)},le=(W,E)=>{n("weeknumberclick",W,E)};ht({page:t.initialPage,position:t.initialPagePosition}),a.onMounted(()=>{!t.disablePageSwipe&&i.value&&(v=XR(i.value,({toLeft:W=!1,toRight:E=!1})=>{W?Ot():E&&At()},tr("touch")))}),a.onUnmounted(()=>{f.value=[],v&&v()}),a.watch(()=>O.value,()=>{ht()}),a.watch(()=>L.value,()=>ht()),a.watch(()=>t.view,()=>h.value=t.view),a.watch(()=>h.value,()=>{QR("view",()=>{ht()}),n("update:view",h.value)}),a.watch(()=>r.value,()=>{me(f.value,W=>Me(W))}),a.watchEffect(()=>{n("update:pages",f.value),me(f.value,W=>{Ee(W),Me(W)})});const ve={emit:n,containerRef:i,focusedDay:s,inTransition:o,navPopoverId:c,dayPopoverId:d,view:h,pages:f,transitionName:m,theme:b,color:x,displayMode:k,locale:O,masks:T,attributes:ot,disabledAttribute:B,disabledDates:$,attributeContext:ut,days:Ne,dayCells:Bt,count:L,step:F,firstPage:q,lastPage:ee,canMovePrev:yt,canMoveNext:tt,minPage:ne,maxPage:K,isMonthly:ue,isWeekly:he,isDaily:_e,navVisibility:ie,showWeeknumbers:pe,showIsoWeeknumbers:J,getDateAddress:ae,canMove:tn,canMoveBy:nn,move:Nt,moveBy:Mt,movePrev:At,moveNext:Ot,onTransitionBeforeEnter:be,onTransitionAfterEnter:R,tryFocusDate:un,focusDate:Vt,onKeydown:j,onDayKeydown:Yn,onDayClick:te,onDayMouseenter:Ae,onDayMouseleave:We,onDayFocusin:pn,onDayFocusout:Bn,onWeeknumberClick:le};return a.provide(O_,ve),ve}function Yr(){const t=a.inject(O_);if(t)return t;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const pH=a.defineComponent({inheritAttrs:!1,emits:["before-show","after-show","before-hide","after-hide"],props:{id:{type:[Number,String,Symbol],required:!0},showDelay:{type:Number,default:0},hideDelay:{type:Number,default:110},boundarySelector:{type:String}},setup(t,{emit:e}){let n;const i=a.ref();let s=null,r=null;const o=a.reactive({isVisible:!1,target:null,data:null,transition:"slide-fade",placement:"bottom",direction:"",positionFixed:!1,modifiers:[],isInteractive:!0,visibility:"click",isHovered:!1,isFocused:!1,autoHide:!1,force:!1});function c(R){R&&(o.direction=R.split("-")[0])}function d({placement:R,options:fe}){c(R||(fe==null?void 0:fe.placement))}const h=a.computed(()=>({placement:o.placement,strategy:o.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:d},...o.modifiers||[]],onFirstUpdate:d})),f=a.computed(()=>{const R=o.direction==="left"||o.direction==="right";let fe="";if(o.placement){const ae=o.placement.split("-");ae.length>1&&(fe=ae[1])}return["start","top","left"].includes(fe)?R?"top":"left":["end","bottom","right"].includes(fe)?R?"bottom":"right":R?"middle":"center"});function m(){r&&(r.destroy(),r=null)}function g(){a.nextTick(()=>{const R=Yd(o.target);!R||!i.value||(r&&r.state.elements.reference!==R&&m(),r?r.update():r=Oc(R,i.value,h.value))})}function v(R){Object.assign(o,I5(R,"force"))}function b(R,fe){clearTimeout(n),R>0?n=setTimeout(fe,R):fe()}function x(R){return!R||!r?!1:Yd(R)===r.state.elements.reference}async function k(R={}){o.force||(R.force&&(o.force=!0),b(R.showDelay??t.showDelay,()=>{o.isVisible&&(o.force=!1),v({...R,isVisible:!0}),g()}))}function O(R={}){!r||R.target&&!x(R.target)||o.force||(R.force&&(o.force=!0),b(R.hideDelay??t.hideDelay,()=>{o.isVisible||(o.force=!1),o.isVisible=!1}))}function T(R={}){R.target!=null&&(o.isVisible&&x(R.target)?O(R):k(R))}function N(R){if(!r)return;const fe=r.state.elements.reference;if(!i.value||!fe)return;const ae=R.target;jd(i.value,ae)||jd(fe,ae)||O({force:!0})}function C(R){(R.key==="Esc"||R.key==="Escape")&&O()}function B({detail:R}){!R.id||R.id!==t.id||k(R)}function $({detail:R}){!R.id||R.id!==t.id||O(R)}function L({detail:R}){!R.id||R.id!==t.id||T(R)}function F(){er(document,"keydown",C),er(document,"click",N),er(document,"show-popover",B),er(document,"hide-popover",$),er(document,"toggle-popover",L)}function q(){Qs(document,"keydown",C),Qs(document,"click",N),Qs(document,"show-popover",B),Qs(document,"hide-popover",$),Qs(document,"toggle-popover",L)}function ee(R){e("before-show",R)}function ne(R){o.force=!1,e("after-show",R)}function K(R){e("before-hide",R)}function ie(R){o.force=!1,m(),e("after-hide",R)}function pe(R){R.stopPropagation()}function J(){o.isHovered=!0,o.isInteractive&&["hover","hover-focus"].includes(o.visibility)&&k()}function ue(){if(o.isHovered=!1,!r)return;const R=r.state.elements.reference;o.autoHide&&!o.isFocused&&(!R||R!==document.activeElement)&&["hover","hover-focus"].includes(o.visibility)&&O()}function he(){o.isFocused=!0,o.isInteractive&&["focus","hover-focus"].includes(o.visibility)&&k()}function _e(R){["focus","hover-focus"].includes(o.visibility)&&(!R.relatedTarget||!jd(i.value,R.relatedTarget))&&(o.isFocused=!1,!o.isHovered&&o.autoHide&&O())}function be(){s!=null&&(s.disconnect(),s=null)}return a.watch(()=>i.value,R=>{be(),R&&(s=new ResizeObserver(()=>{r&&r.update()}),s.observe(R))}),a.watch(()=>o.placement,c,{immediate:!0}),a.onMounted(()=>{F()}),a.onUnmounted(()=>{m(),be(),q()}),{...a.toRefs(o),popoverRef:i,alignment:f,hide:O,setupPopper:g,beforeEnter:ee,afterEnter:ne,beforeLeave:K,afterLeave:ie,onClick:pe,onMouseOver:J,onMouseLeave:ue,onFocusIn:he,onFocusOut:_e}}}),ir=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n};function mH(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-popover-content-wrapper",{"is-interactive":t.isInteractive}]),ref:"popoverRef",onClick:e[0]||(e[0]=(...o)=>t.onClick&&t.onClick(...o)),onMouseover:e[1]||(e[1]=(...o)=>t.onMouseOver&&t.onMouseOver(...o)),onMouseleave:e[2]||(e[2]=(...o)=>t.onMouseLeave&&t.onMouseLeave(...o)),onFocusin:e[3]||(e[3]=(...o)=>t.onFocusIn&&t.onFocusIn(...o)),onFocusout:e[4]||(e[4]=(...o)=>t.onFocusOut&&t.onFocusOut(...o))},[a.createVNode(a.Transition,{name:`vc-${t.transition}`,appear:"",onBeforeEnter:t.beforeEnter,onAfterEnter:t.afterEnter,onBeforeLeave:t.beforeLeave,onAfterLeave:t.afterLeave},{default:a.withCtx(()=>[t.isVisible?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,tabindex:"-1",class:`vc-popover-content direction-${t.direction}`},t.$attrs),[a.renderSlot(t.$slots,"default",{direction:t.direction,alignment:t.alignment,data:t.data,hide:t.hide},()=>[a.createTextVNode(a.toDisplayString(t.data),1)]),a.createElementVNode("span",{class:a.normalizeClass(["vc-popover-caret",`direction-${t.direction}`,`align-${t.alignment}`])},null,2)],16)):a.createCommentVNode("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}const Th=ir(pH,[["render",mH]]),gH={class:"vc-day-popover-row"},_H={key:0,class:"vc-day-popover-row-indicator"},vH={class:"vc-day-popover-row-label"},yH=a.defineComponent({__name:"PopoverRow",props:{attribute:null},setup(t){const e=t,n=a.computed(()=>{const{content:i,highlight:s,dot:r,bar:o,popover:c}=e.attribute;return c&&c.hideIndicator?null:i?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${i.base.color}`}:s?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${s.base.color}`}:r?{class:`vc-dot vc-attr vc-${r.base.color}`}:o?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${o.base.color}`}:null});return(i,s)=>(a.openBlock(),a.createElementBlock("div",gH,[a.unref(n)?(a.openBlock(),a.createElementBlock("div",_H,[a.createElementVNode("span",{class:a.normalizeClass(a.unref(n).class)},null,2)])):a.createCommentVNode("",!0),a.createElementVNode("div",vH,[a.renderSlot(i.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(t.attribute.popover?t.attribute.popover.label:"No content provided"),1)])])]))}}),bH={inheritAttrs:!1},vi=a.defineComponent({...bH,__name:"CalendarSlot",props:{name:null},setup(t){const n=M_(t.name);return(i,s)=>a.unref(n)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),a.normalizeProps(a.mergeProps({key:0},i.$attrs)),null,16)):a.renderSlot(i.$slots,"default",{key:1})}}),wH={class:"vc-day-popover-container"},kH={key:0,class:"vc-day-popover-header"},xH=a.defineComponent({__name:"CalendarDayPopover",setup(t){const{dayPopoverId:e,displayMode:n,color:i,masks:s,locale:r}=Yr();function o(d,h){return r.value.formatDate(d,h)}function c(d){return r.value.formatDate(d.date,s.value.dayPopover)}return(d,h)=>(a.openBlock(),a.createBlock(Th,{id:a.unref(e),class:a.normalizeClass([`vc-${a.unref(i)}`,`vc-${a.unref(n)}`])},{default:a.withCtx(({data:{day:f,attributes:m},hide:g})=>[a.createVNode(vi,{name:"day-popover",day:f,"day-title":c(f),attributes:m,format:o,masks:a.unref(s),hide:g},{default:a.withCtx(()=>[a.createElementVNode("div",wH,[a.unref(s).dayPopover?(a.openBlock(),a.createElementBlock("div",kH,a.toDisplayString(c(f)),1)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m,v=>(a.openBlock(),a.createBlock(yH,{key:v.key,attribute:v},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),CH={},SH={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},MH=[a.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1)];function OH(t,e){return a.openBlock(),a.createElementBlock("svg",SH,MH)}const DH=ir(CH,[["render",OH]]),EH={},TH={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},IH=[a.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1)];function BH(t,e){return a.openBlock(),a.createElementBlock("svg",TH,IH)}const AH=ir(EH,[["render",BH]]),VH={},$H={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},NH=[a.createElementVNode("polyline",{points:"6 9 12 15 18 9"},null,-1)];function zH(t,e){return a.openBlock(),a.createElementBlock("svg",$H,NH)}const PH=ir(VH,[["render",zH]]),LH={},FH={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},RH=[a.createElementVNode("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)];function HH(t,e){return a.openBlock(),a.createElementBlock("svg",FH,RH)}const WH=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:PH,IconChevronLeft:AH,IconChevronRight:DH,IconClock:ir(LH,[["render",HH]])},Symbol.toStringTag,{value:"Module"})),Qa=a.defineComponent({__name:"BaseIcon",props:{name:{type:String,required:!0},width:{type:String},height:{type:String},size:{type:String,default:"26"},viewBox:{type:String}},setup(t){const e=t,n=a.computed(()=>e.width||e.size),i=a.computed(()=>e.height||e.size),s=a.computed(()=>WH[`Icon${e.name}`]);return(r,o)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(s)),{width:a.unref(n),height:a.unref(i),class:"vc-base-icon"},null,8,["width","height"]))}}),YH=["disabled"],jH={key:1,class:"vc-title-wrapper"},UH={type:"button",class:"vc-title"},qH=["disabled"],D_=a.defineComponent({__name:"CalendarHeader",props:{page:null,layout:null,isLg:{type:Boolean},isXl:{type:Boolean},is2xl:{type:Boolean},hideTitle:{type:Boolean},hideArrows:{type:Boolean}},setup(t){const e=t,{navPopoverId:n,navVisibility:i,canMovePrev:s,movePrev:r,canMoveNext:o,moveNext:c}=Yr(),d=a.computed(()=>{switch(e.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),h=a.computed(()=>{const{page:x}=e;return{id:n.value,visibility:i.value,placement:d.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:x},isInteractive:!0}}),f=a.computed(()=>e.page.titlePosition.includes("left")),m=a.computed(()=>e.page.titlePosition.includes("right")),g=a.computed(()=>e.layout?e.layout:f.value?"tu-pn":m.value?"pn-tu":"p-tu-n;"),v=a.computed(()=>({prev:g.value.includes("p")&&!e.hideArrows,title:g.value.includes("t")&&!e.hideTitle,next:g.value.includes("n")&&!e.hideArrows})),b=a.computed(()=>({gridTemplateColumns:g.value.split("").map(k=>{switch(k){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}}).join(" ")}));return(x,k)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-header",{"is-lg":t.isLg,"is-xl":t.isXl,"is-2xl":t.is2xl}]),style:a.normalizeStyle(a.unref(b))},[a.unref(v).prev?(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!a.unref(s),onClick:k[0]||(k[0]=(...O)=>a.unref(r)&&a.unref(r)(...O)),onKeydown:k[1]||(k[1]=a.withKeys((...O)=>a.unref(r)&&a.unref(r)(...O),["space","enter"]))},[a.createVNode(vi,{name:"header-prev-button",disabled:!a.unref(s)},{default:a.withCtx(()=>[a.createVNode(Qa,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,YH)):a.createCommentVNode("",!0),a.unref(v).title?(a.openBlock(),a.createElementBlock("div",jH,[a.createVNode(vi,{name:"header-title-wrapper"},{default:a.withCtx(()=>[a.withDirectives((a.openBlock(),a.createElementBlock("button",UH,[a.createVNode(vi,{name:"header-title",title:t.page.title},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(t.page.title),1)]),_:1},8,["title"])])),[[a.unref(y_),a.unref(h)]])]),_:1})])):a.createCommentVNode("",!0),a.unref(v).next?(a.openBlock(),a.createElementBlock("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!a.unref(o),onClick:k[2]||(k[2]=(...O)=>a.unref(c)&&a.unref(c)(...O)),onKeydown:k[3]||(k[3]=a.withKeys((...O)=>a.unref(c)&&a.unref(c)(...O),["space","enter"]))},[a.createVNode(vi,{name:"header-next-button",disabled:!a.unref(o)},{default:a.withCtx(()=>[a.createVNode(Qa,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,qH)):a.createCommentVNode("",!0)],6))}}),E_=Symbol("__vc_page_context__");function GH(t){const{locale:e,getDateAddress:n,canMove:i}=Yr();function s(c,d){const{month:h,year:f}=n(new Date);return u_().map((m,g)=>{const v=g+1;return{month:v,year:c,id:aR(v,c),label:e.value.formatDate(m,d),ariaLabel:e.value.formatDate(m,"MMMM"),isActive:v===t.value.month&&c===t.value.year,isCurrent:v===h&&c===f,isDisabled:!i({month:v,year:c},{position:t.value.position})}})}function r(c,d){const{year:h}=n(new Date),{position:f}=t.value,m=[];for(let g=c;g<=d;g+=1){const v=[...Array(12).keys()].some(b=>i({month:b+1,year:g},{position:f}));m.push({year:g,id:g.toString(),label:g.toString(),ariaLabel:g.toString(),isActive:g===t.value.year,isCurrent:g===h,isDisabled:!v})}return m}const o={page:t,getMonthItems:s,getYearItems:r};return a.provide(E_,o),o}function T_(){const t=a.inject(E_);if(t)return t;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const KH={class:"vc-nav-header"},ZH=["disabled"],XH=["disabled"],JH={class:"vc-nav-items"},QH=["data-id","aria-label","disabled","onClick","onKeydown"],eW=a.defineComponent({__name:"CalendarNav",setup(t){const{masks:e,move:n}=Yr(),{page:i,getMonthItems:s,getYearItems:r}=T_(),o=a.ref(!0),c=12,d=a.ref(i.value.year),h=a.ref(g(i.value.year)),f=a.ref(null);function m(){setTimeout(()=>{if(f.value==null)return;const ae=f.value.querySelector(".vc-nav-item:not(:disabled)");ae&&ae.focus()},10)}function g(ae){return Math.floor(ae/c)}function v(){o.value=!o.value}function b(ae){return ae*c}function x(ae){return c*(ae+1)-1}function k(){!he.value||(o.value&&T(),C())}function O(){!_e.value||(o.value&&N(),B())}function T(){d.value--}function N(){d.value++}function C(){h.value--}function B(){h.value++}const $=a.computed(()=>s(d.value,e.value.navMonths).map(ae=>({...ae,click:()=>n({month:ae.month,year:ae.year},{position:i.value.position})}))),L=a.computed(()=>s(d.value-1,e.value.navMonths)),F=a.computed(()=>L.value.some(ae=>!ae.isDisabled)),q=a.computed(()=>s(d.value+1,e.value.navMonths)),ee=a.computed(()=>q.value.some(ae=>!ae.isDisabled)),ne=a.computed(()=>r(b(h.value),x(h.value)).map(ae=>({...ae,click:()=>{d.value=ae.year,o.value=!0,m()}}))),K=a.computed(()=>r(b(h.value-1),x(h.value-1))),ie=a.computed(()=>K.value.some(ae=>!ae.isDisabled)),pe=a.computed(()=>r(b(h.value+1),x(h.value+1))),J=a.computed(()=>pe.value.some(ae=>!ae.isDisabled)),ue=a.computed(()=>o.value?$.value:ne.value),he=a.computed(()=>o.value?F.value:ie.value),_e=a.computed(()=>o.value?ee.value:J.value),be=a.computed(()=>D5(ne.value.map(ae=>ae.year))),R=a.computed(()=>qa(ne.value.map(ae=>ae.year))),fe=a.computed(()=>o.value?d.value:`${be.value} - ${R.value}`);return a.watchEffect(()=>{d.value=i.value.year,m()}),a.watch(()=>d.value,ae=>h.value=g(ae)),a.onMounted(()=>m()),(ae,Ee)=>(a.openBlock(),a.createElementBlock("div",{class:"vc-nav-container",ref_key:"navContainer",ref:f},[a.createElementVNode("div",KH,[a.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!a.unref(he),onClick:k,onKeydown:Ee[0]||(Ee[0]=Me=>a.unref(Ud)(Me,k))},[a.createVNode(vi,{name:"nav-prev-button",move:k,disabled:!a.unref(he)},{default:a.withCtx(()=>[a.createVNode(Qa,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,ZH),a.createElementVNode("button",{type:"button",class:"vc-nav-title vc-focus",onClick:v,onKeydown:Ee[1]||(Ee[1]=Me=>a.unref(Ud)(Me,v))},a.toDisplayString(a.unref(fe)),33),a.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!a.unref(_e),onClick:O,onKeydown:Ee[2]||(Ee[2]=Me=>a.unref(Ud)(Me,O))},[a.createVNode(vi,{name:"nav-next-button",move:O,disabled:!a.unref(_e)},{default:a.withCtx(()=>[a.createVNode(Qa,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,XH)]),a.createElementVNode("div",JH,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(ue),Me=>(a.openBlock(),a.createElementBlock("button",{key:Me.label,type:"button","data-id":Me.id,"aria-label":Me.ariaLabel,class:a.normalizeClass(["vc-nav-item vc-focus",[Me.isActive?"is-active":Me.isCurrent?"is-current":""]]),disabled:Me.isDisabled,onClick:Me.click,onKeydown:me=>a.unref(Ud)(me,Me.click)},a.toDisplayString(Me.label),43,QH))),128))])],512))}}),I_=a.defineComponent({__name:"CalendarPageProvider",props:{page:null},setup(t){const e=t;return GH(a.toRef(e,"page")),(n,i)=>a.renderSlot(n.$slots,"default")}}),tW=a.defineComponent({__name:"CalendarNavPopover",setup(t){const{navPopoverId:e,color:n,displayMode:i}=Yr();return(s,r)=>(a.openBlock(),a.createBlock(Th,{id:a.unref(e),class:a.normalizeClass(["vc-nav-popover-container",`vc-${a.unref(n)}`,`vc-${a.unref(i)}`])},{default:a.withCtx(({data:o})=>[a.createVNode(I_,{page:o.page},{default:a.withCtx(()=>[a.createVNode(vi,{name:"nav"},{default:a.withCtx(()=>[a.createVNode(eW)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),nW=a.defineComponent({directives:{popover:y_},components:{CalendarSlot:vi},props:{day:{type:Object,required:!0}},setup(t){const{locale:e,theme:n,attributeContext:i,dayPopoverId:s,onDayClick:r,onDayMouseenter:o,onDayMouseleave:c,onDayFocusin:d,onDayFocusout:h,onDayKeydown:f}=Yr(),m=a.computed(()=>t.day),g=a.computed(()=>i.value.getCells(m.value)),v=a.computed(()=>g.value.map(J=>J.data)),b=a.computed(()=>({...m.value,attributes:v.value,attributeCells:g.value}));function x({data:J},{popovers:ue}){const{key:he,customData:_e,popover:be}=J;if(!be)return;const R=f5({key:he,customData:_e,attribute:J},{...be},{visibility:be.label?"hover":"click",placement:"bottom",isInteractive:!be.label});ue.splice(0,0,R)}const k=a.computed(()=>{const J={...n.value.prepareRender({}),popovers:[]};return g.value.forEach(ue=>{n.value.render(ue,J),x(ue,J)}),J}),O=a.computed(()=>k.value.highlights),T=a.computed(()=>!!ys(O.value)),N=a.computed(()=>k.value.content),C=a.computed(()=>k.value.dots),B=a.computed(()=>!!ys(C.value)),$=a.computed(()=>k.value.bars),L=a.computed(()=>!!ys($.value)),F=a.computed(()=>k.value.popovers),q=a.computed(()=>F.value.map(J=>J.attribute)),ee=M_("day-content"),ne=a.computed(()=>["vc-day",...m.value.classes,{"vc-day-box-center-center":!ee},{"is-not-in-month":!t.day.inMonth}]),K=a.computed(()=>{let J;m.value.isFocusable?J="0":J="-1";const ue=["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":m.value.isDisabled},Hr(qa(O.value),"contentClass"),Hr(qa(N.value),"class")||""],he={...Hr(qa(O.value),"contentStyle"),...Hr(qa(N.value),"style")};return{class:ue,style:he,tabindex:J,"aria-label":m.value.ariaLabel,"aria-disabled":!!m.value.isDisabled,role:"button"}}),ie=a.computed(()=>({click(J){r(b.value,J)},mouseenter(J){o(b.value,J)},mouseleave(J){c(b.value,J)},focusin(J){d(b.value,J)},focusout(J){h(b.value,J)},keydown(J){f(b.value,J)}})),pe=a.computed(()=>ys(F.value)?f5({id:s.value,data:{day:m,attributes:q.value}},...F.value):null);return{attributes:v,attributeCells:g,bars:$,dayClasses:ne,dayContentProps:K,dayContentEvents:ie,dayPopover:pe,glyphs:k,dots:C,hasDots:B,hasBars:L,highlights:O,hasHighlights:T,locale:e,popovers:F}}}),iW={key:0,class:"vc-highlights vc-day-layer"},sW={key:1,class:"vc-day-layer vc-day-box-center-bottom"},rW={class:"vc-dots"},aW={key:2,class:"vc-day-layer vc-day-box-center-bottom"},oW={class:"vc-bars"};function lW(t,e,n,i,s,r){const o=a.resolveComponent("CalendarSlot"),c=a.resolveDirective("popover");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(t.dayClasses)},[t.hasHighlights?(a.openBlock(),a.createElementBlock("div",iW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.highlights,({key:d,wrapperClass:h,class:f,style:m})=>(a.openBlock(),a.createElementBlock("div",{key:d,class:a.normalizeClass(h)},[a.createElementVNode("div",{class:a.normalizeClass(f),style:a.normalizeStyle(m)},null,6)],2))),128))])):a.createCommentVNode("",!0),a.createVNode(o,{name:"day-content",day:t.day,attributes:t.attributes,"attribute-cells":t.attributeCells,dayProps:t.dayContentProps,dayEvents:t.dayContentEvents,locale:t.locale},{default:a.withCtx(()=>[a.withDirectives((a.openBlock(),a.createElementBlock("div",a.mergeProps(t.dayContentProps,a.toHandlers(t.dayContentEvents,!0)),[a.createTextVNode(a.toDisplayString(t.day.label),1)],16)),[[c,t.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),t.hasDots?(a.openBlock(),a.createElementBlock("div",sW,[a.createElementVNode("div",rW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.dots,({key:d,class:h,style:f})=>(a.openBlock(),a.createElementBlock("span",{key:d,class:a.normalizeClass(h),style:a.normalizeStyle(f)},null,6))),128))])])):a.createCommentVNode("",!0),t.hasBars?(a.openBlock(),a.createElementBlock("div",aW,[a.createElementVNode("div",oW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.bars,({key:d,class:h,style:f})=>(a.openBlock(),a.createElementBlock("span",{key:d,class:a.normalizeClass(h),style:a.normalizeStyle(f)},null,6))),128))])])):a.createCommentVNode("",!0)],2)}const cW=ir(nW,[["render",lW]]),dW={class:"vc-weekdays"},uW=["onClick"],hW={inheritAttrs:!1},fW=a.defineComponent({...hW,__name:"CalendarPage",setup(t){const{page:e}=T_(),{onWeeknumberClick:n}=Yr();return(i,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-pane",`row-${a.unref(e).row}`,`row-from-end-${a.unref(e).rowFromEnd}`,`column-${a.unref(e).column}`,`column-from-end-${a.unref(e).columnFromEnd}`]),ref:"pane"},[a.createVNode(D_,{page:a.unref(e),"is-lg":"","hide-arrows":""},null,8,["page"]),a.createElementVNode("div",{class:a.normalizeClass(["vc-weeks",{[`vc-show-weeknumbers-${a.unref(e).weeknumberPosition}`]:a.unref(e).weeknumberPosition}])},[a.createElementVNode("div",dW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(e).weekdays,({weekday:r,label:o},c)=>(a.openBlock(),a.createElementBlock("div",{key:c,class:a.normalizeClass(`vc-weekday vc-weekday-${r}`)},a.toDisplayString(o),3))),128))]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(e).viewWeeks,r=>(a.openBlock(),a.createElementBlock("div",{key:`weeknumber-${r.weeknumber}`,class:"vc-week"},[a.unref(e).weeknumberPosition?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["vc-weeknumber",`is-${a.unref(e).weeknumberPosition}`])},[a.createElementVNode("span",{class:a.normalizeClass(["vc-weeknumber-content"]),onClick:o=>a.unref(n)(r,o)},a.toDisplayString(r.weeknumberDisplay),9,uW)],2)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.days,o=>(a.openBlock(),a.createBlock(cW,{key:o.id,day:o},null,8,["day"]))),128))]))),128))],2)],2))}}),pW=a.defineComponent({components:{CalendarHeader:D_,CalendarPage:fW,CalendarNavPopover:tW,CalendarDayPopover:xH,CalendarPageProvider:I_,CalendarSlot:vi},props:uH,emit:hH,setup(t,{emit:e,slots:n}){return fH(t,{emit:e,slots:n})}}),mW={class:"vc-pane-header-wrapper"};function gW(t,e,n,i,s,r){const o=a.resolveComponent("CalendarHeader"),c=a.resolveComponent("CalendarPage"),d=a.resolveComponent("CalendarSlot"),h=a.resolveComponent("CalendarPageProvider"),f=a.resolveComponent("CalendarDayPopover"),m=a.resolveComponent("CalendarNavPopover");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",a.mergeProps({"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year"},t.$attrs,{class:["vc-container",`vc-${t.view}`,`vc-${t.color}`,`vc-${t.displayMode}`,{"vc-expanded":t.expanded,"vc-bordered":!t.borderless,"vc-transparent":t.transparent}],onMouseup:e[0]||(e[0]=a.withModifiers(()=>{},["prevent"])),ref:"containerRef"}),[a.createElementVNode("div",{class:a.normalizeClass(["vc-pane-container",{"in-transition":t.inTransition}])},[a.createElementVNode("div",mW,[t.firstPage?(a.openBlock(),a.createBlock(o,{key:0,page:t.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):a.createCommentVNode("",!0)]),a.createVNode(a.Transition,{name:`vc-${t.transitionName}`,onBeforeEnter:t.onTransitionBeforeEnter,onAfterEnter:t.onTransitionAfterEnter},{default:a.withCtx(()=>[(a.openBlock(),a.createElementBlock("div",{key:t.pages[0].id,class:"vc-pane-layout",style:a.normalizeStyle({gridTemplateColumns:`repeat(${t.columns}, 1fr)`})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.pages,g=>(a.openBlock(),a.createBlock(h,{key:g.id,page:g},{default:a.withCtx(()=>[a.createVNode(d,{name:"page",page:g},{default:a.withCtx(()=>[a.createVNode(c)]),_:2},1032,["page"])]),_:2},1032,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),a.createVNode(d,{name:"footer"})],2)],16),a.createVNode(f),a.createVNode(m)],64)}const _W=ir(pW,[["render",gW]]),B_=Symbol("__vc_date_picker_context__"),vW={...k_,mode:{type:String,default:"date"},modelValue:{type:[Number,String,Date,Object]},modelModifiers:{type:Object,default:()=>({})},rules:[String,Object],is24hr:Boolean,hideTimeHeader:Boolean,timeAccuracy:{type:Number,default:2},isRequired:Boolean,isRange:Boolean,updateOnInput:{type:Boolean,default:()=>tr("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>tr("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]},yW=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function bW(t,{emit:e,slots:n}){S_(n,{footer:"dp-footer"});const i=x_(t),{locale:s,masks:r,disabledAttribute:o}=i,c=a.ref(!1),d=a.ref(Symbol()),h=a.ref(null),f=a.ref(null),m=a.ref(["",""]),g=a.ref(null),v=a.ref(null);let b,x,k=!0;const O=a.computed(()=>t.isRange||t.modelModifiers.range===!0),T=a.computed(()=>O.value&&h.value!=null?h.value.start:null),N=a.computed(()=>O.value&&h.value!=null?h.value.end:null),C=a.computed(()=>t.mode.toLowerCase()==="date"),B=a.computed(()=>t.mode.toLowerCase()==="datetime"),$=a.computed(()=>t.mode.toLowerCase()==="time"),L=a.computed(()=>!!f.value),F=a.computed(()=>{let E="date";t.modelModifiers.number&&(E="number"),t.modelModifiers.string&&(E="string");const Y=r.value.modelValue||"iso";return Ee({type:E,mask:Y})}),q=a.computed(()=>nn(f.value??h.value)),ee=a.computed(()=>$.value?t.is24hr?r.value.inputTime24hr:r.value.inputTime:B.value?t.is24hr?r.value.inputDateTime24hr:r.value.inputDateTime:r.value.input),ne=a.computed(()=>/[Hh]/g.test(ee.value)),K=a.computed(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(ee.value)),ie=a.computed(()=>{if(ne.value&&K.value)return"dateTime";if(K.value)return"date";if(ne.value)return"time"}),pe=a.computed(()=>{var E;const Y=((E=g.value)==null?void 0:E.$el.previousElementSibling)??void 0;return Al({},t.popover,tr("datePicker.popover"),{target:Y})}),J=a.computed(()=>g_({...pe.value,id:d.value})),ue=a.computed(()=>O.value?{start:m.value[0],end:m.value[1]}:m.value[0]),he=a.computed(()=>{const E=["start","end"].map(Y=>({input:ht(Y),change:kt(Y),keyup:tn,...t.popover&&J.value}));return O.value?{start:E[0],end:E[1]}:E[0]}),_e=a.computed(()=>{if(!ot(h.value))return null;const E={key:"select-drag",...t.selectAttribute,dates:h.value,pinPage:!0},{dot:Y,bar:se,highlight:ke,content:Ye}=E;return!Y&&!se&&!ke&&!Ye&&(E.highlight=!0),E}),be=a.computed(()=>{if(!O.value||!ot(f.value))return null;const E={key:"select-drag",...t.dragAttribute,dates:f.value},{dot:Y,bar:se,highlight:ke,content:Ye}=E;return!Y&&!se&&!ke&&!Ye&&(E.highlight={startEnd:{fillMode:"outline"}}),E}),R=a.computed(()=>{const E=_i(t.attributes)?[...t.attributes]:[];return be.value?E.unshift(be.value):_e.value&&E.unshift(_e.value),E}),fe=a.computed(()=>Ee(t.rules==="auto"?ae():t.rules??{}));function ae(){const E={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},Y=C.value?0:t.timeAccuracy;return[0,1].map(se=>{switch(Y){case 0:return{hours:E.hr[se],minutes:E.min[se],seconds:E.sec[se],milliseconds:E.ms[se]};case 1:return{minutes:E.min[se],seconds:E.sec[se],milliseconds:E.ms[se]};case 3:return{milliseconds:E.ms[se]};case 4:return{};default:return{seconds:E.sec[se],milliseconds:E.ms[se]}}})}function Ee(E){return _i(E)?E.length===1?[E[0],E[0]]:E:[E,E]}function Me(E){return Ee(E).map((Y,se)=>({...Y,rules:fe.value[se]}))}function me(E){return E==null?!1:Li(E)?!isNaN(E):Ga(E)?!isNaN(E.getTime()):ts(E)?E!=="":Ch(E)}function Ne(E){return vs(E)&&"start"in E&&"end"in E&&me(E.start??null)&&me(E.end??null)}function ot(E){return Ne(E)||me(E)}function Le(E,Y){if(E==null&&Y==null)return!0;if(E==null||Y==null)return!1;const se=Ga(E),ke=Ga(Y);return se&&ke?E.getTime()===Y.getTime():se||ke?!1:Le(E.start,Y.start)&&Le(E.end,Y.end)}function ut(E){return!ot(E)||!o.value?!1:o.value.intersectsRange(s.value.range(E))}function Bt(E,Y,se,ke){if(!ot(E))return null;if(Ne(E)){const Ye=s.value.toDate(E.start,{...Y[0],fillDate:T.value??void 0,patch:se}),rt=s.value.toDate(E.end,{...Y[1],fillDate:N.value??void 0,patch:se});return Bn({start:Ye,end:rt},ke)}return s.value.toDateOrNull(E,{...Y[0],fillDate:h.value,patch:se})}function wt(E,Y){return Ne(E)?{start:s.value.fromDate(E.start,Y[0]),end:s.value.fromDate(E.end,Y[1])}:O.value?null:s.value.fromDate(E,Y[0])}function et(E,Y={}){return clearTimeout(b),new Promise(se=>{const{debounce:ke=0,...Ye}=Y;ke>0?b=window.setTimeout(()=>{se(it(E,Ye))},ke):se(it(E,Ye))})}function it(E,{config:Y=F.value,patch:se="dateTime",clearIfEqual:ke=!1,formatInput:Ye=!0,hidePopover:rt=!1,dragging:xt=L.value,targetPriority:sn,moveToValue:Gt=!1}={}){const jn=Me(Y);let ft=Bt(E,jn,se,sn);if(ut(ft)){if(xt)return null;ft=h.value,rt=!1}else ft==null&&t.isRequired?ft=h.value:ft!=null&&Le(h.value,ft)&&ke&&(ft=null);const Cn=xt?f:h,ti=!Le(Cn.value,ft);Cn.value=ft,xt||(f.value=null);const Fi=wt(ft,F.value);return ti&&(k=!1,e(xt?"drag":"update:modelValue",Fi),a.nextTick(()=>k=!0)),rt&&!xt&&We(),Ye&&st(),Gt&&a.nextTick(()=>le(sn??"start")),Fi}function st(){a.nextTick(()=>{const E=Me({type:"string",mask:ee.value}),Y=wt(f.value??h.value,E);O.value?m.value=[Y&&Y.start,Y&&Y.end]:m.value=[Y,""]})}function Yt(E,Y,se){m.value.splice(Y==="start"?0:1,1,E);const ke=O.value?{start:m.value[0],end:m.value[1]||m.value[0]}:E,Ye={type:"string",mask:ee.value};et(ke,{...se,config:Ye,patch:ie.value,targetPriority:Y,moveToValue:!0})}function ht(E){return Y=>{!t.updateOnInput||Yt(Y.currentTarget.value,E,{formatInput:!1,hidePopover:!1,debounce:t.inputDebounce})}}function kt(E){return Y=>{Yt(Y.currentTarget.value,E,{formatInput:!0,hidePopover:!1})}}function tn(E){E.key==="Escape"&&et(h.value,{formatInput:!0,hidePopover:!0})}function nn(E){return O.value?[E&&E.start?s.value.getDateParts(E.start):null,E&&E.end?s.value.getDateParts(E.end):null]:[E?s.value.getDateParts(E):null]}function yt(){f.value=null,st()}function tt(E){e("popover-will-show",E)}function Nt(E){e("popover-did-show",E)}function Mt(E){yt(),e("popover-will-hide",E)}function At(E){e("popover-did-hide",E)}function Ot(E){const Y={patch:"date",formatInput:!0,hidePopover:!0};if(O.value){const se=!L.value;se?x={start:E.startDate,end:E.endDate}:x!=null&&(x.end=E.date),et(x,{...Y,dragging:se})}else et(E.date,{...Y,clearIfEqual:!t.isRequired})}function un(E,Y){Ot(E),e("dayclick",E,Y)}function Vt(E,Y){switch(Y.key){case" ":case"Enter":{Ot(E),Y.preventDefault();break}case"Escape":We()}e("daykeydown",E,Y)}function te(E,Y){!L.value||x==null||(x.end=E.date,et(Bn(x),{patch:"date",formatInput:!0}))}function Ae(E={}){Oh({...pe.value,...E,isInteractive:!0,id:d.value})}function We(E={}){zl({hideDelay:10,force:!0,...pe.value,...E,id:d.value})}function pn(E){m_({...pe.value,...E,isInteractive:!0,id:d.value})}function Bn(E,Y){const{start:se,end:ke}=E;if(se>ke)switch(Y){case"start":return{start:se,end:se};case"end":return{start:ke,end:ke};default:return{start:ke,end:se}}return{start:se,end:ke}}async function Yn(E,Y={}){return v.value==null?!1:v.value.move(E,Y)}async function j(E,Y={}){return v.value==null?!1:v.value.moveBy(E,Y)}async function le(E,Y={}){const se=h.value;if(v.value==null||!ot(se))return!1;const ke=E!=="end",Ye=ke?1:-1,rt=Ne(se)?ke?se.start:se.end:se,xt=j5(rt,"monthly",s.value);return v.value.move(xt,{position:Ye,...Y})}a.watch(()=>t.isRange,E=>{E&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),a.watch(()=>O.value,()=>{it(null,{formatInput:!0})}),a.watch(()=>ee.value,()=>st()),a.watch(()=>t.modelValue,E=>{!k||it(E,{formatInput:!0,hidePopover:!1})}),a.watch(()=>fe.value,()=>{vs(t.rules)&&it(t.modelValue,{formatInput:!0,hidePopover:!1})}),a.watch(()=>t.timezone,()=>{it(h.value,{formatInput:!0})});const ve=Ee(F.value);h.value=Bt(t.modelValue??null,ve,"dateTime"),a.onMounted(()=>{it(t.modelValue,{formatInput:!0,hidePopover:!1})}),a.nextTick(()=>c.value=!0);const W={...i,showCalendar:c,datePickerPopoverId:d,popoverRef:g,popoverEvents:J,calendarRef:v,isRange:O,isTimeMode:$,isDateTimeMode:B,is24hr:a.toRef(t,"is24hr"),hideTimeHeader:a.toRef(t,"hideTimeHeader"),timeAccuracy:a.toRef(t,"timeAccuracy"),isDragging:L,inputValue:ue,inputEvents:he,dateParts:q,attributes:R,rules:fe,move:Yn,moveBy:j,moveToValue:le,updateValue:et,showPopover:Ae,hidePopover:We,togglePopover:pn,onDayClick:un,onDayKeydown:Vt,onDayMouseEnter:te,onPopoverBeforeShow:tt,onPopoverAfterShow:Nt,onPopoverBeforeHide:Mt,onPopoverAfterHide:At};return a.provide(B_,W),W}function Ih(){const t=a.inject(B_);if(t)return t;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const wW=[{value:0,label:"12"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"}],kW=[{value:12,label:"12"},{value:13,label:"1"},{value:14,label:"2"},{value:15,label:"3"},{value:16,label:"4"},{value:17,label:"5"},{value:18,label:"6"},{value:19,label:"7"},{value:20,label:"8"},{value:21,label:"9"},{value:22,label:"10"},{value:23,label:"11"}];function xW(t){const e=Ih(),{locale:n,isRange:i,isTimeMode:s,dateParts:r,rules:o,is24hr:c,hideTimeHeader:d,timeAccuracy:h,updateValue:f}=e;function m(K){K=Object.assign(v.value,K);let ie=null;if(i.value){const pe=g.value?K:r.value[0],J=g.value?r.value[1]:K;ie={start:pe,end:J}}else ie=K;f(ie,{patch:"time",targetPriority:g.value?"start":"end",moveToValue:!0})}const g=a.computed(()=>t.position===0),v=a.computed(()=>r.value[t.position]||{isValid:!1}),b=a.computed(()=>Ch(v.value)),x=a.computed(()=>!!v.value.isValid),k=a.computed(()=>!d.value&&x.value),O=a.computed(()=>{if(!b.value)return null;let K=n.value.toDate(v.value);return v.value.hours===24&&(K=new Date(K.getTime()-1)),K}),T=a.computed({get(){return v.value.hours},set(K){m({hours:K})}}),N=a.computed({get(){return v.value.minutes},set(K){m({minutes:K})}}),C=a.computed({get(){return v.value.seconds},set(K){m({seconds:K})}}),B=a.computed({get(){return v.value.milliseconds},set(K){m({milliseconds:K})}}),$=a.computed({get(){return v.value.hours<12},set(K){K=String(K).toLowerCase()=="true";let ie=T.value;K&&ie>=12?ie-=12:!K&&ie<12&&(ie+=12),m({hours:ie})}}),L=a.computed(()=>UR(v.value,o.value[t.position])),F=a.computed(()=>wW.filter(K=>L.value.hours.some(ie=>ie.value===K.value))),q=a.computed(()=>kW.filter(K=>L.value.hours.some(ie=>ie.value===K.value))),ee=a.computed(()=>c.value?L.value.hours:$.value?F.value:q.value),ne=a.computed(()=>{const K=[];return ys(F.value)&&K.push({value:!0,label:"AM"}),ys(q.value)&&K.push({value:!1,label:"PM"}),K});return{...e,showHeader:k,timeAccuracy:h,parts:v,isValid:x,date:O,hours:T,minutes:N,seconds:C,milliseconds:B,options:L,hourOptions:ee,isAM:$,isAMOptions:ne,is24hr:c}}const CW=["value"],SW=["value","disabled"],MW={key:1,class:"vc-base-sizer","aria-hidden":"true"},OW={inheritAttrs:!1},Pl=a.defineComponent({...OW,__name:"BaseSelect",props:{options:null,modelValue:null,alignRight:{type:Boolean},alignLeft:{type:Boolean},showIcon:{type:Boolean},fitContent:{type:Boolean}},emits:["update:modelValue"],setup(t){const e=t,n=a.computed(()=>{const i=e.options.find(s=>s.value===e.modelValue);return i==null?void 0:i.label});return(i,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-base-select",{"vc-fit-content":t.fitContent,"vc-has-icon":t.showIcon}])},[a.createElementVNode("select",a.mergeProps(i.$attrs,{value:t.modelValue,class:["vc-focus",{"vc-align-right":t.alignRight,"vc-align-left":t.alignLeft}],onChange:s[0]||(s[0]=r=>i.$emit("update:modelValue",r.target.value))}),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.options,r=>(a.openBlock(),a.createElementBlock("option",{key:r.value,value:r.value,disabled:r.disabled},a.toDisplayString(r.label),9,SW))),128))],16,CW),t.showIcon?(a.openBlock(),a.createBlock(Qa,{key:0,name:"ChevronDown",size:"18"})):a.createCommentVNode("",!0),t.fitContent?(a.openBlock(),a.createElementBlock("div",MW,a.toDisplayString(a.unref(n)),1)):a.createCommentVNode("",!0)],2))}}),DW={key:0,class:"vc-time-header"},EW={class:"vc-time-weekday"},TW={class:"vc-time-month"},IW={class:"vc-time-day"},BW={class:"vc-time-year"},AW={class:"vc-time-select-group"},VW=a.createElementVNode("span",{class:"vc-time-colon"},":",-1),$W=a.createElementVNode("span",{class:"vc-time-colon"},":",-1),NW=a.createElementVNode("span",{class:"vc-time-decimal"},".",-1),A_=a.defineComponent({__name:"TimePicker",props:{position:null},setup(t,{expose:e}){const i=xW(t);e(i);const{locale:s,isValid:r,date:o,hours:c,minutes:d,seconds:h,milliseconds:f,options:m,hourOptions:g,isTimeMode:v,isAM:b,isAMOptions:x,is24hr:k,showHeader:O,timeAccuracy:T}=i;return(N,C)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-time-picker",[{"vc-invalid":!a.unref(r),"vc-attached":!a.unref(v)}]])},[a.createVNode(vi,{name:"time-header"},{default:a.withCtx(()=>[a.unref(O)&&a.unref(o)?(a.openBlock(),a.createElementBlock("div",DW,[a.createElementVNode("span",EW,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"WWW")),1),a.createElementVNode("span",TW,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"MMM")),1),a.createElementVNode("span",IW,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"D")),1),a.createElementVNode("span",BW,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"YYYY")),1)])):a.createCommentVNode("",!0)]),_:1}),a.createElementVNode("div",AW,[a.createVNode(Qa,{name:"Clock",size:"17"}),a.createVNode(Pl,{modelValue:a.unref(c),"onUpdate:modelValue":C[0]||(C[0]=B=>a.isRef(c)?c.value=B:null),modelModifiers:{number:!0},options:a.unref(g),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),a.unref(T)>1?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[VW,a.createVNode(Pl,{modelValue:a.unref(d),"onUpdate:modelValue":C[1]||(C[1]=B=>a.isRef(d)?d.value=B:null),modelModifiers:{number:!0},options:a.unref(m).minutes,class:"vc-time-select-minutes","align-left":a.unref(T)===2},null,8,["modelValue","options","align-left"])],64)):a.createCommentVNode("",!0),a.unref(T)>2?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[$W,a.createVNode(Pl,{modelValue:a.unref(h),"onUpdate:modelValue":C[2]||(C[2]=B=>a.isRef(h)?h.value=B:null),modelModifiers:{number:!0},options:a.unref(m).seconds,class:"vc-time-select-seconds","align-left":a.unref(T)===3},null,8,["modelValue","options","align-left"])],64)):a.createCommentVNode("",!0),a.unref(T)>3?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[NW,a.createVNode(Pl,{modelValue:a.unref(f),"onUpdate:modelValue":C[3]||(C[3]=B=>a.isRef(f)?f.value=B:null),modelModifiers:{number:!0},options:a.unref(m).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):a.createCommentVNode("",!0),a.unref(k)?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(Pl,{key:3,modelValue:a.unref(b),"onUpdate:modelValue":C[4]||(C[4]=B=>a.isRef(b)?b.value=B:null),options:a.unref(x)},null,8,["modelValue","options"]))])],2))}}),V_=a.defineComponent({__name:"DatePickerBase",setup(t){const{attributes:e,calendarRef:n,color:i,displayMode:s,isDateTimeMode:r,isTimeMode:o,isRange:c,onDayClick:d,onDayMouseEnter:h,onDayKeydown:f}=Ih(),m=c.value?[0,1]:[0];return(g,v)=>a.unref(o)?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`vc-container vc-bordered vc-${a.unref(i)} vc-${a.unref(s)}`)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(m),b=>(a.openBlock(),a.createBlock(A_,{key:b,position:b},null,8,["position"]))),128))],2)):(a.openBlock(),a.createBlock(_W,{key:1,attributes:a.unref(e),ref_key:"calendarRef",ref:n,onDayclick:a.unref(d),onDaymouseenter:a.unref(h),onDaykeydown:a.unref(f)},{footer:a.withCtx(()=>[a.unref(r)?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(a.unref(m),b=>(a.openBlock(),a.createBlock(A_,{key:b,position:b},null,8,["position"]))),128)):a.createCommentVNode("",!0),a.createVNode(vi,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),zW={inheritAttrs:!1},PW=a.defineComponent({...zW,__name:"DatePickerPopover",setup(t){const{datePickerPopoverId:e,color:n,displayMode:i,popoverRef:s,onPopoverBeforeShow:r,onPopoverAfterShow:o,onPopoverBeforeHide:c,onPopoverAfterHide:d}=Ih();return(h,f)=>(a.openBlock(),a.createBlock(Th,{id:a.unref(e),placement:"bottom-start",class:a.normalizeClass(`vc-date-picker-content vc-${a.unref(n)} vc-${a.unref(i)}`),ref_key:"popoverRef",ref:s,onBeforeShow:a.unref(r),onAfterShow:a.unref(o),onBeforeHide:a.unref(c),onAfterHide:a.unref(d)},{default:a.withCtx(()=>[a.createVNode(V_,a.normalizeProps(a.guardReactiveProps(h.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),LW=a.defineComponent({inheritAttrs:!1,emits:yW,props:vW,components:{DatePickerBase:V_,DatePickerPopover:PW},setup(t,e){const n=bW(t,e),i=a.reactive(I5(n,"calendarRef","popoverRef"));return{...n,slotCtx:i}}});function FW(t,e,n,i,s,r){const o=a.resolveComponent("DatePickerPopover"),c=a.resolveComponent("DatePickerBase");return t.$slots.default?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.renderSlot(t.$slots,"default",a.normalizeProps(a.guardReactiveProps(t.slotCtx))),a.createVNode(o,a.normalizeProps(a.guardReactiveProps(t.$attrs)),null,16)],64)):(a.openBlock(),a.createBlock(c,a.normalizeProps(a.mergeProps({key:1},t.$attrs)),null,16))}const RW=ir(LW,[["render",FW]]),hce="",fce="",iu=t=>/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(t),HW={components:{VDatePicker:RW,CdsChevron:jo},props:{modelValue:{type:String,default:"",validator:t=>t===""||iu(t)},label:{type:String,default:"Date"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},required:{type:Boolean,default:!1},errorMessage:{type:String,default:"Valor inv\xE1lido"},fluid:{type:Boolean,default:!1},minDate:{type:String,default:"",validator:t=>t===""||iu(t)},maxDate:{type:String,default:"",validator:t=>t===""||iu(t)},placeholder:{type:String,default:"Selecione uma data"}},data(){return{internalDate:Ce.now(),isBeingFocused:!1}},computed:{errorState(){return this.state==="invalid"},hasSlots(){return!!Object.keys(this.$slots).length},inputClass(){let t="";return this.disabled?this.fluid?"date-input--disabled date-input--fluid":"date-input--disabled":(this.isBeingFocused?this.disabled||(this.state==="valid"?t+=" date-input--focused-valid":this.state==="invalid"&&(t+=" date-input--focused-invalid")):this.disabled||(this.state==="valid"?t+=" date-input--valid":this.state==="invalid"&&(t+=" date-input--invalid")),t+=this.fluid?" date-input--fluid":" date-input",t)},availableDates(){return{start:this.minDate?Ce.fromISO(this.minDate):null,end:this.maxDate?Ce.fromISO(this.maxDate):null}}},watch:{modelValue(t,e){t!==e&&this.resolveInternalDate()}},mounted(){this.resolveInternalDate()},methods:{handleUpdateInput(t){this.$emit("update:modelValue",t?Ce.fromJSDate(t).toFormat("yyyy-MM-dd"):"")},resolveInternalDate(){if(!this.modelValue){this.internalDate="";return}this.internalDate=iu(this.modelValue)?Ce.fromFormat(this.modelValue,"yyyy-MM-dd"):Ce.now()}}},WW={class:"date-input__container"},YW={key:0},jW={key:1,class:"date-input__label"},UW={class:"label__content",for:"cds-text-input"},qW={key:0,class:"label__required-indicator"},GW=["value","disabled","placeholder","onClick"],KW={key:0,class:"date-input__error-message"};function ZW(t,e,n,i,s,r){const o=a.resolveComponent("cds-chevron"),c=a.resolveComponent("v-date-picker");return a.openBlock(),a.createElementBlock("div",WW,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",YW,[a.renderSlot(t.$slots,"label")])):(a.openBlock(),a.createElementBlock("label",jW,[a.createElementVNode("div",UW,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",qW," * ")):a.createCommentVNode("",!0)])]))]),a.createVNode(c,{id:"cds-date-input",modelValue:s.internalDate,"onUpdate:modelValue":[e[2]||(e[2]=d=>s.internalDate=d),r.handleUpdateInput],locale:"pt-BR","available-dates":r.availableDates},{"header-left-button":a.withCtx(({page:d})=>[a.createVNode(o,{direction:"left",onClick:h=>d.movePrevMonth()},null,8,["onClick"])]),"header-right-button":a.withCtx(({page:d})=>[a.createVNode(o,{direction:"right",onClick:h=>d.moveNextMonth()},null,8,["onClick"])]),default:a.withCtx(({inputValue:d,togglePopover:h,inputEvents:f})=>[a.createElementVNode("input",a.mergeProps({value:d,class:r.inputClass,disabled:n.disabled,placeholder:n.placeholder,type:"text"},a.toHandlers(f,!0),{onClick:h,onFocus:e[0]||(e[0]=m=>s.isBeingFocused=!0),onBlur:e[1]||(e[1]=m=>s.isBeingFocused=!1)}),null,16,GW)]),_:1},8,["modelValue","available-dates","onUpdate:modelValue"]),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",KW,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const XW=oe(HW,[["render",ZW]]),pce="",JW={components:{CdsChevron:jo},directives:{"on-click-outside":Ic.directive},props:{content:{type:String,default:"Conte\xFAdo",required:!0},label:{type:String,default:"Label",required:!0},disabled:{type:Boolean,default:!1},dropdownWidth:{type:Number,default:0}},data(){return{id:null,isActive:!1}},computed:{dynamicStyle(){const t=document.getElementById(this.id);if(!t)return null;const e=parseFloat(window.getComputedStyle(t).width);return e>this.dropdownWidth?{"--width":`${e}px`}:{"--width":`${this.dropdownWidth}px`}}},mounted(){this.id=`filter-pill$-${this._uid}`},methods:{activeSelection(){this.disabled||(this.isActive=!this.isActive,this.$emit("click",!0))},hide(){this.isActive=!this.isActive}}},QW=["id"],eY={class:"filter-pill__label"},tY={class:"filter-pill__content"};function nY(t,e,n,i,s,r){const o=a.resolveComponent("cds-chevron"),c=a.resolveDirective("on-click-outside");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",{id:s.id,class:a.normalizeClass([{"filter-pill__container--disabled":n.disabled,"filter-pill__container--active":s.isActive&&!n.disabled},"filter-pill__container"]),onClick:e[0]||(e[0]=(...d)=>r.activeSelection&&r.activeSelection(...d))},[a.createElementVNode("span",eY,a.toDisplayString(n.label)+": ",1),a.createElementVNode("span",tY,a.toDisplayString(n.content),1),(a.openBlock(),a.createBlock(o,{key:s.isActive,animate:"",size:"sm",direction:s.isActive?"top":"bottom"},null,8,["direction"]))],10,QW),s.isActive?a.withDirectives((a.openBlock(),a.createElementBlock("div",{key:0,style:a.normalizeStyle(r.dynamicStyle),class:"filter-pill__dropdown"},[a.renderSlot(t.$slots,"default",{},void 0,!0)],4)),[[c,r.hide]]):a.createCommentVNode("",!0)])}const iY=oe(JW,[["render",nY],["__scopeId","data-v-f6d65f66"]]),mce="",sY=["teal","green","blue","indigo","violet","pink","red","orange","amber"],rY={components:{CdsButton:ba},props:{image:{type:String,default:""},imageDescription:{type:String,default:"Imagem de Empty State"},title:{type:String,default:"T\xEDtulo do empty state",required:!0},text:{type:String,default:"Para sair dessa situa\xE7\xE3o de empty state, realize a a\xE7\xE3o abaixo."},hideActionButton:{type:Boolean,default:!1},actionButtonText:{type:String,default:"Finalizar"},actionButtonVariant:{type:String,default:"green",validator:t=>sY.includes(t)}}},aY={class:"empty-state"},oY=["src","alt"],lY={class:"empty-state__title"},cY={class:"empty-state__text"};function dY(t,e,n,i,s,r){const o=a.resolveComponent("cds-button");return a.openBlock(),a.createElementBlock("div",aY,[a.renderSlot(t.$slots,"graphic-element",{},()=>[a.createElementVNode("img",{class:"empty-state__image",src:n.image,alt:n.imageDescription},null,8,oY)],!0),a.createElementVNode("div",lY,a.toDisplayString(n.title),1),a.createElementVNode("div",cY,[a.renderSlot(t.$slots,"text",{},()=>[a.createTextVNode(a.toDisplayString(n.text),1)],!0)]),n.hideActionButton?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(o,{key:0,class:"empty-state__button",text:n.actionButtonText,variant:n.actionButtonVariant,onClick:e[0]||(e[0]=c=>t.$emit("action-button-click",!0))},null,8,["text","variant"]))])}const uY=oe(rY,[["render",dY],["__scopeId","data-v-a4be2019"]]),gce="",Bh={components:{CdsIcon:$t},props:{modelValue:{default:null,required:!0},allowedExtensions:{type:String,default:null},size:{type:String,default:"md"},state:{type:String,default:"default"},errorMessage:{type:String,default:"Valor inv\xE1lido"},disabled:{type:Boolean,default:!1}},data(){return{file:!!this.modelValue&&!Xt(this.modelValue)?this.modelValue:null,isOnDragEnterState:!1,isValid:!0,internalState:this.state}},computed:{sizeClass(){return{inputTitle:`file-input__title--${this.size}`,holderPadding:"px-3",wrapperPadding:"px-1 py-1",contentPadding:"mt-3",svgScale:1}},acceptString(){if(this.allowedExtensions===null)return null;let t="";return this.allowedExtensions.split(",").forEach((n,i,s)=>{n&&n.trim().length>0&&(t+=`.${n.trim()}${i!==s.length-1?", ":""}`)}),t},computedAllowedMessage(){if(this.allowedExtensions){const e=this.allowedExtensions.split(",").length===1?"":"s";return`${`S\xE3o aceitos apenas arquivo${e} do${e} seguinte${e} tipo${e}:`} ${this.acceptString}.`}else if(this.state==="invalid")return this.errorMessage;return null},textAlignmentResolver(){return this.size==="sm"?"flex-start":"center"}},watch:{file(t){this.$emit("update:modelValue",t)},state:{handler(t){this.internalState=t},immediate:!0},isValid:{handler(t){t?this.internalState="invalid":this.internalState="valid"},immediate:!0}},methods:{dropHandler(t){if(this.isValid=null,this.isOnDragEnterState=!1,t.preventDefault(),!t.dataTransfer.items||t.dataTransfer.items[0].kind!=="file"||this.disabled)return;const e=t.dataTransfer.items[0].getAsFile();if(this.isAValidExtension(e.name)){this.file=e,this.isValid=!0;return}this.isValid=!1,this.file=null},linkClick(){this.disabled||this.$refs.fileInput.click()},isAValidExtension(t){if(this.allowedExtensions===null)return!0;const e=this.allowedExtensions.split(",");let n=t.split(".");return n=n[n.length-1].trim(),e.filter(i=>i===n).length>0},handleFormFileChange(t){this.isValid="invalid";const[e]=t.target.files||{};if(this.isAValidExtension(e.name)){this.file=e,this.isValid=!0;return}this.isValid=!1,this.$nextTick().then(()=>{this.file=null})},handleRemove(){this.disabled||(this.isValid="default",this.file=null)}}},$_=()=>{a.useCssVars(t=>({"637a4784":t.textAlignmentResolver}))},N_=Bh.setup;Bh.setup=N_?(t,e)=>($_(),N_(t,e)):$_;const hY=Bh,fY=["accept"],pY={key:0,class:"file-input__container"},mY={key:0},gY={key:1},_Y={key:1,class:"file-input__container"},vY={key:1},yY={key:0,class:"file-input__alert-container"};function bY(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",{class:a.normalizeClass(["file-input text-center",{"file-input--drag-state":s.isOnDragEnterState,"file-input--sm":n.size==="sm","file-input--md":n.size==="md","file-input--lg":n.size==="lg","file-input--valid":n.state==="valid","file-input--invalid":n.state==="invalid"||!s.isValid,"file-input--disabled":n.disabled===!0,[r.sizeClass.holderPadding]:n.size}]),onDragover:e[2]||(e[2]=a.withModifiers(c=>s.isOnDragEnterState=!0,["prevent","stop"])),onDragenter:e[3]||(e[3]=a.withModifiers(c=>s.isOnDragEnterState=!0,["prevent","stop"])),onDragleave:e[4]||(e[4]=a.withModifiers(c=>s.isOnDragEnterState=!1,["prevent","stop"])),onDragend:e[5]||(e[5]=a.withModifiers(c=>s.isOnDragEnterState=!1,["prevent","stop"])),onDrop:e[6]||(e[6]=(...c)=>r.dropHandler&&r.dropHandler(...c)),onClick:e[7]||(e[7]=(...c)=>r.linkClick&&r.linkClick(...c))},[a.withDirectives(a.createElementVNode("input",{ref:"fileInput",type:"file",accept:r.acceptString,onChange:e[0]||(e[0]=(...c)=>r.handleFormFileChange&&r.handleFormFileChange(...c))},null,40,fY),[[a.vShow,!1]]),s.file?(a.openBlock(),a.createElementBlock("div",_Y,[a.createVNode(o,{height:"24",width:"24",name:"document-text-outline",class:a.normalizeClass({"icon-document--sm":n.size==="sm","icon-document--md":n.size==="md","icon-document--lg":n.size==="lg","icon-document--disabled":n.disabled===!0})},null,8,["class"]),a.createElementVNode("div",{class:a.normalizeClass({[r.sizeClass.inputTitle]:n.size,[r.sizeClass.contentPadding]:n.size})},[s.isOnDragEnterState?(a.openBlock(),a.createElementBlock("div",vY," Solte aqui o seu arquivo ")):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["on-drag-content__container",{"on-drag-content__container--disabled":n.disabled===!0}])},[a.createElementVNode("div",null,a.toDisplayString(s.file.name),1),a.createElementVNode("div",{class:"x-icon__container",onClick:e[1]||(e[1]=a.withModifiers((...c)=>r.handleRemove&&r.handleRemove(...c),["stop"]))},[a.createVNode(o,{height:"18",width:"18",name:"x-outline",class:a.normalizeClass(["file-input__close-button",{"file-input__close-button--sm":n.size==="sm","file-input__close-button--md":n.size==="md","file-input__close-button--lg":n.size==="lg","file-input__close-button--disabled":n.disabled===!0}])},null,8,["class"])])],2))],2)])):(a.openBlock(),a.createElementBlock("div",pY,[a.createVNode(o,{name:"upload-cloud-outline",class:a.normalizeClass({"icon-upload--sm":n.size==="sm","icon-upload--md":n.size==="md","icon-upload--lg":n.size==="lg","icon-upload--disabled":n.disabled===!0,[r.sizeClass.holderPadding]:n.size})},null,8,["class"]),a.createElementVNode("div",{class:a.normalizeClass({[r.sizeClass.inputTitle]:n.size,[r.sizeClass.contentPadding]:n.size})},[s.isOnDragEnterState?(a.openBlock(),a.createElementBlock("div",gY," Solte aqui o seu arquivo ")):(a.openBlock(),a.createElementBlock("div",mY,[a.createTextVNode(" Arraste o arquivo aqui ou "),a.createElementVNode("a",{href:"javascript:void(0)",class:a.normalizeClass(["file-input__search-link",{"file-input__search-link--disabled":n.disabled===!0}])}," pesquise no seu dispositivo ",2)]))],2)]))],34)]),s.internalState==="invalid"?(a.openBlock(),a.createElementBlock("div",yY,a.toDisplayString(r.computedAllowedMessage),1)):a.createCommentVNode("",!0)],64)}const wY=oe(hY,[["render",bY],["__scopeId","data-v-dee88fdd"]]),_ce="",kY={props:{variant:{type:String,default:"green"},text:{type:String,default:"Lorem ipsum"},disabled:{type:Boolean,default:!1}},data(){return{predefinedColors:["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber"]}},computed:{predefinedColor(){return this.predefinedColors.indexOf(this.variant)>-1?`link-button--${this.variant}`:"link-button--green"},computedStyle(){const t=this.disabled?"--disabled":"--active";return`${this.predefinedColor}${t}`}},methods:{clickHandler(){this.disabled||this.$emit("click",!0)}}},xY={id:"cds-link-button"};function CY(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",xY,[a.createElementVNode("button",{class:a.normalizeClass(["link-button__container",r.computedStyle]),onClick:e[0]||(e[0]=o=>r.clickHandler())},[a.renderSlot(t.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(n.text),1)],!0)],2)])}const z_=oe(kY,[["render",CY],["__scopeId","data-v-17beab84"]]),vce="",SY={props:{variant:{type:String,default:"green"},targetId:{type:String,default:""},position:{type:String,default:"top-end"}}},MY={id:"cds-pulsar"};function OY(t,e,n,i,s,r){const o=a.resolveDirective("cds-floatify");return a.withDirectives((a.openBlock(),a.createElementBlock("div",MY,[a.createElementVNode("div",{class:a.normalizeClass(`pulsar__outer-circle--${n.variant}`)},[a.createElementVNode("div",{class:a.normalizeClass(`pulsar__inner-circle--${n.variant}`)},null,2)],2)])),[[o,n.targetId,n.position]])}const P_=oe(SY,[["render",OY],["__scopeId","data-v-6f878a26"]]),yce="",DY={components:{CdsPulsar:P_,CdsIcon:$t},directives:{"on-click-outside":Ic.directive},props:{modelValue:{type:Boolean,default:!0,required:!0},title:{type:String,default:"Nova funcionalidade!",validator:t=>t.length<=22},url:{type:String,default:"",required:!0},variant:{type:String,default:"green"},targetId:{type:String,default:""}},data(){return{isActive:this.modelValue,id:null,pulsarId:null,containerId:null,position:"right",isExpanded:!1,waitingConfirmation:!1,boxTop:0}},watch:{isActive(t){this.$emit("update:modelValue",t)},modelValue(t){console.log("v-model",t),this.isActive=t}},mounted(){this.id=`floating-assistant$-${this._uid}`,this.pulsarId=`floating-assistant-pulsar$-${this._uid}`,this.containerId=`floating-assistant-container$-${this._uid}`,window.addEventListener("scroll",this.startAnimation,!1)},methods:{startAnimation(){this.isScrolledIntoView()&&(document.getElementById(this.id).classList.add("animation"),window.removeEventListener("scroll",this.startAnimation))},isScrolledIntoView(){const t=window.scrollY,e=t+window.innerHeight,n=document.getElementById(this.id).getBoundingClientRect();this.boxTop||(this.boxTop=n.top);const i=this.boxTop;return i+18<=e&&i>=t},expand(){this.waitingConfirmation||(this.isExpanded=!0)},collapse(){this.isExpanded=!1},close(){this.collapse(),this.waitingConfirmation=!0},confirmationHandle(t){if(!t){this.isActive=!1;return}this.$emit("disable-tip",!0),this.isActive=!1}}},EY=["id"],TY=["id"],IY={key:0},BY={key:1},AY={key:0,class:"floating-assistant__content"},VY={class:"floating-assistant__footer"},$Y=["href"],NY={key:1,class:"floating-assistant__subtitle"},zY={key:2};function PY(t,e,n,i,s,r){const o=a.resolveComponent("cds-pulsar"),c=a.resolveComponent("cds-icon"),d=a.resolveDirective("on-click-outside"),h=a.resolveDirective("cds-floatify");return a.openBlock(),a.createElementBlock("div",{id:s.id,class:a.normalizeClass(["floating-assistant",{"floating-assistant--hidden":!s.isActive}])},[a.createVNode(o,{id:s.pulsarId,"target-id":n.targetId,variant:n.variant},null,8,["id","target-id","variant"]),a.withDirectives((a.openBlock(),a.createElementBlock("div",{id:s.containerId,class:"floating-assistant__container"},[a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["floating-assistant__dropdown",{"floating-assistant__dropdown--expanded":s.isExpanded,"floating-assistant__dropdown--confirmation":s.waitingConfirmation}]),onClick:e[3]||(e[3]=(...f)=>r.expand&&r.expand(...f))},[s.waitingConfirmation?(a.openBlock(),a.createElementBlock("div",IY,[a.createTextVNode(" Ocultar dica para sempre? "),a.createElementVNode("span",{class:a.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:e[0]||(e[0]=f=>r.confirmationHandle(!0))}," Sim ",2),a.createTextVNode(" / "),a.createElementVNode("span",{class:a.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:e[1]||(e[1]=f=>r.confirmationHandle(!1))}," N\xE3o ",2)])):(a.openBlock(),a.createElementBlock("div",BY,[a.createElementVNode("span",{class:a.normalizeClass(`floating-assistant__title--${n.variant}`)},a.toDisplayString(n.title),3),s.isExpanded?(a.openBlock(),a.createElementBlock("div",AY,[a.renderSlot(t.$slots,"default",{},void 0,!0),a.createElementVNode("span",VY,[a.createTextVNode(" Voc\xEA pode saber mais "),a.createElementVNode("a",{class:a.normalizeClass(`floating-assistant__link--${n.variant}`),href:n.url,target:"_blank"}," clicando aqui ",10,$Y),a.createTextVNode(". ")])])):(a.openBlock(),a.createElementBlock("span",NY," Clique para mais informa\xE7\xF5es "))])),s.isExpanded?(a.openBlock(),a.createElementBlock("div",zY,[a.createElementVNode("div",{onClick:e[2]||(e[2]=a.withModifiers((...f)=>r.close&&r.close(...f),["stop"]))},[a.createVNode(c,{class:"floating-assistant__close-button",name:"x-outline",height:"20",width:"20"})])])):a.createCommentVNode("",!0)],2)),[[d,r.collapse]])],8,TY)),[[h,s.pulsarId,s.position]])],10,EY)}const LY=oe(DY,[["render",PY],["__scopeId","data-v-24ad8b5d"]]),bce="",Ah={props:{value:{type:Number,default:0,validator:t=>t>=0&&t<=100},variant:{type:String,default:"green"},size:{type:Number,default:300},subtitle:{type:String,default:""}},computed:{progressStyle(){return{"--value":this.value,"--size":this.size}},chartProgressValue(){return 198*(1-this.value/100)},formatedValue(){return`${this.value.toLocaleString("pt-br",{minimumFractionDigits:1})}%`}}},L_=()=>{a.useCssVars(t=>({ba3cfafc:t.chartProgressValue}))},F_=Ah.setup;Ah.setup=F_?(t,e)=>(L_(),F_(t,e)):L_;const FY=Ah,RY={class:"responsive-container"},HY=a.createStaticVNode('<linearGradient id="gradient" x1="0" y1="0" x2="0" y2="100%" gradientTransform="rotate(-340)" data-v-f4b6afdc><stop class="stop" offset="1%" data-v-f4b6afdc></stop><stop class="stop-2" offset="99%" data-v-f4b6afdc></stop></linearGradient><g transform="scale(1.20) translate(-9.5 -12)" data-v-f4b6afdc><path class="indicator-bar" d="M30,90 A40,40 0 1,1 80,90" fill="none" data-v-f4b6afdc></path><path fill="none" class="indicator-progress" d="M30,90 A40,40 0 1,1 80,90" data-v-f4b6afdc></path></g>',2),WY={x:"50%",y:"50%","dominant-baseline":"middle","text-anchor":"middle",class:"value"},YY={x:"50%",y:"62%","dominant-baseline":"middle","text-anchor":"middle",class:"subtitle"};function jY(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",RY,[a.createElementVNode("div",{class:"gauge-chart",style:a.normalizeStyle(r.progressStyle)},[(a.openBlock(),a.createElementBlock("svg",{class:a.normalizeClass(`svg--${n.variant}`),viewBox:"0 0 110 100"},[HY,a.createElementVNode("text",WY,a.toDisplayString(r.formatedValue),1),a.createElementVNode("text",YY,a.toDisplayString(n.subtitle),1)],2))],4)])])}const UY=oe(FY,[["render",jY],["__scopeId","data-v-f4b6afdc"]]),wce="",qY={props:{variant:{type:String,default:"info"},animated:{type:Boolean,default:!1},duration:{type:Number,default:1},delay:{type:Number,default:0}},computed:{dynamicHighlightClass(){let t="";switch(this.animated&&(t="highlight__container--highlighted"),this.variant){case"info":return`${t} highlight__container--info`;case"success":return`${t} highlight__container--success`;case"danger":return`${t} highlight__container--danger`;default:return`${t} highlight__container--info`}},dynamicStyle(){return{"--duration":`${this.duration}s`,"--delay":`${this.delay}s`}}}};function GY(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",{class:a.normalizeClass(["highlight__container",r.dynamicHighlightClass]),style:a.normalizeStyle(r.dynamicStyle)},[a.renderSlot(t.$slots,"default",{},void 0,!0)],6)}const KY=oe(qY,[["render",GY],["__scopeId","data-v-91b540f7"]]),kce="",ZY={props:{position:{type:String,default:"top"},text:{type:String,default:null},slim:{type:Boolean,default:!1}},computed:{content(){return this.slim?`<span style="font-size: 11px; padding: 0px;">${this.text}</span>`:`<span style="font-size: 13px; padding: 0px 2px">${this.text}</span>`}}},XY=["data-tippy-placement","data-tippy-content"];function JY(t,e,n,i,s,r){const o=a.resolveDirective("cdstip");return a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:"tooltip","data-tippy-placement":n.position,"data-tippy-content":r.content,"data-tippy-allowHTML":!0},[a.renderSlot(t.$slots,"default")],8,XY)),[[o,n.text]])}const Vh=oe(ZY,[["render",JY]]),xce="",R_=["sm","md","lg"],QY={components:{CdsIcon:$t,CdsTooltip:Vh},props:{size:{type:String,default:"md",validator:t=>R_.includes(t)},icon:{type:String,default:"create-outline"},disabled:{type:Boolean,default:!1},tooltipText:{type:String,default:null},feedbackOnClick:{type:Boolean,default:!1},feedbackIcon:{type:String,default:"check-outline"}},data(){return{predefinedSizes:R_,innerTooltipText:this.tooltipText,internalIcon:this.icon,inputControlPanel:0}},computed:{predefinedSize(){return`cds-icon-button--${this.size}`},computedModifiers(){return`${this.disabled?"cds-icon-button--disabled":""} ${this.predefinedSize}`}},watch:{disabled:{handler(t,e){t!==e&&(t===!0?this.innerTooltipText=null:this.innerTooltipText=this.tooltipText)},immediate:!0}},methods:{clickHandler(t){this.disabled||(this.feedbackOnClick&&(this.inputControlPanel+=1,this.internalIcon=this.feedbackIcon,setTimeout(()=>{this.internalIcon=this.icon,this.inputControlPanel+=1},1e3),this.inputControlPanel+=1),this.$emit("cds-click",t))}}},ej={id:"cds-icon-button"};function tj(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-tooltip");return a.openBlock(),a.createElementBlock("span",ej,[a.createVNode(c,{text:s.innerTooltipText},{default:a.withCtx(()=>[a.createElementVNode("button",{class:a.normalizeClass(["cds-icon-button__container",r.computedModifiers]),onClick:e[0]||(e[0]=(...d)=>r.clickHandler&&r.clickHandler(...d))},[(a.openBlock(),a.createBlock(o,{key:s.inputControlPanel,name:s.internalIcon,class:"cds-icon-button__icon"},null,8,["name"]))],2)]),_:1},8,["text"])])}const nj=oe(QY,[["render",tj],["__scopeId","data-v-97670025"]]);var $h={exports:{}};(function(t,e){var n=200,i="__lodash_hash_undefined__",s=1,r=2,o=9007199254740991,c="[object Arguments]",d="[object Array]",h="[object AsyncFunction]",f="[object Boolean]",m="[object Date]",g="[object Error]",v="[object Function]",b="[object GeneratorFunction]",x="[object Map]",k="[object Number]",O="[object Null]",T="[object Object]",N="[object Promise]",C="[object Proxy]",B="[object RegExp]",$="[object Set]",L="[object String]",F="[object Symbol]",q="[object Undefined]",ee="[object WeakMap]",ne="[object ArrayBuffer]",K="[object DataView]",ie="[object Float32Array]",pe="[object Float64Array]",J="[object Int8Array]",ue="[object Int16Array]",he="[object Int32Array]",_e="[object Uint8Array]",be="[object Uint8ClampedArray]",R="[object Uint16Array]",fe="[object Uint32Array]",ae=/[\\^$.*+?()[\]{}|]/g,Ee=/^\[object .+?Constructor\]$/,Me=/^(?:0|[1-9]\d*)$/,me={};me[ie]=me[pe]=me[J]=me[ue]=me[he]=me[_e]=me[be]=me[R]=me[fe]=!0,me[c]=me[d]=me[ne]=me[f]=me[K]=me[m]=me[g]=me[v]=me[x]=me[k]=me[T]=me[B]=me[$]=me[L]=me[ee]=!1;var Ne=typeof cn=="object"&&cn&&cn.Object===Object&&cn,ot=typeof self=="object"&&self&&self.Object===Object&&self,Le=Ne||ot||Function("return this")(),ut=e&&!e.nodeType&&e,Bt=ut&&!0&&t&&!t.nodeType&&t,wt=Bt&&Bt.exports===ut,et=wt&&Ne.process,it=function(){try{return et&&et.binding&&et.binding("util")}catch{}}(),st=it&&it.isTypedArray;function Yt(y,M){for(var A=-1,U=y==null?0:y.length,Te=0,we=[];++A<U;){var Re=y[A];M(Re,A,y)&&(we[Te++]=Re)}return we}function ht(y,M){for(var A=-1,U=M.length,Te=y.length;++A<U;)y[Te+A]=M[A];return y}function kt(y,M){for(var A=-1,U=y==null?0:y.length;++A<U;)if(M(y[A],A,y))return!0;return!1}function tn(y,M){for(var A=-1,U=Array(y);++A<y;)U[A]=M(A);return U}function nn(y){return function(M){return y(M)}}function yt(y,M){return y.has(M)}function tt(y,M){return y==null?void 0:y[M]}function Nt(y){var M=-1,A=Array(y.size);return y.forEach(function(U,Te){A[++M]=[Te,U]}),A}function Mt(y,M){return function(A){return y(M(A))}}function At(y){var M=-1,A=Array(y.size);return y.forEach(function(U){A[++M]=U}),A}var Ot=Array.prototype,un=Function.prototype,Vt=Object.prototype,te=Le["__core-js_shared__"],Ae=un.toString,We=Vt.hasOwnProperty,pn=function(){var y=/[^.]+$/.exec(te&&te.keys&&te.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),Bn=Vt.toString,Yn=RegExp("^"+Ae.call(We).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=wt?Le.Buffer:void 0,le=Le.Symbol,ve=Le.Uint8Array,W=Vt.propertyIsEnumerable,E=Ot.splice,Y=le?le.toStringTag:void 0,se=Object.getOwnPropertySymbols,ke=j?j.isBuffer:void 0,Ye=Mt(Object.keys,Object),rt=Mn(Le,"DataView"),xt=Mn(Le,"Map"),sn=Mn(Le,"Promise"),Gt=Mn(Le,"Set"),jn=Mn(Le,"WeakMap"),ft=Mn(Object,"create"),An=mn(rt),Cn=mn(xt),ti=mn(sn),Fi=mn(Gt),ks=mn(jn),io=le?le.prototype:void 0,Kr=io?io.valueOf:void 0;function rn(y){var M=-1,A=y==null?0:y.length;for(this.clear();++M<A;){var U=y[M];this.set(U[0],U[1])}}function Hl(){this.__data__=ft?ft(null):{},this.size=0}function Wl(y){var M=this.has(y)&&delete this.__data__[y];return this.size-=M?1:0,M}function Yl(y){var M=this.__data__;if(ft){var A=M[y];return A===i?void 0:A}return We.call(M,y)?M[y]:void 0}function jl(y){var M=this.__data__;return ft?M[y]!==void 0:We.call(M,y)}function Ul(y,M){var A=this.__data__;return this.size+=this.has(y)?0:1,A[y]=ft&&M===void 0?i:M,this}rn.prototype.clear=Hl,rn.prototype.delete=Wl,rn.prototype.get=Yl,rn.prototype.has=jl,rn.prototype.set=Ul;function an(y){var M=-1,A=y==null?0:y.length;for(this.clear();++M<A;){var U=y[M];this.set(U[0],U[1])}}function ql(){this.__data__=[],this.size=0}function Gl(y){var M=this.__data__,A=Cs(M,y);if(A<0)return!1;var U=M.length-1;return A==U?M.pop():E.call(M,A,1),--this.size,!0}function Kl(y){var M=this.__data__,A=Cs(M,y);return A<0?void 0:M[A][1]}function Zl(y){return Cs(this.__data__,y)>-1}function Xl(y,M){var A=this.__data__,U=Cs(A,y);return U<0?(++this.size,A.push([y,M])):A[U][1]=M,this}an.prototype.clear=ql,an.prototype.delete=Gl,an.prototype.get=Kl,an.prototype.has=Zl,an.prototype.set=Xl;function Sn(y){var M=-1,A=y==null?0:y.length;for(this.clear();++M<A;){var U=y[M];this.set(U[0],U[1])}}function sr(){this.size=0,this.__data__={hash:new rn,map:new(xt||an),string:new rn}}function Jl(y){var M=Vn(this,y).delete(y);return this.size-=M?1:0,M}function rr(y){return Vn(this,y).get(y)}function Ql(y){return Vn(this,y).has(y)}function ec(y,M){var A=Vn(this,y),U=A.size;return A.set(y,M),this.size+=A.size==U?0:1,this}Sn.prototype.clear=sr,Sn.prototype.delete=Jl,Sn.prototype.get=rr,Sn.prototype.has=Ql,Sn.prototype.set=ec;function ar(y){var M=-1,A=y==null?0:y.length;for(this.__data__=new Sn;++M<A;)this.add(y[M])}function Zr(y){return this.__data__.set(y,i),this}function xs(y){return this.__data__.has(y)}ar.prototype.add=ar.prototype.push=Zr,ar.prototype.has=xs;function ni(y){var M=this.__data__=new an(y);this.size=M.size}function Xr(){this.__data__=new an,this.size=0}function tc(y){var M=this.__data__,A=M.delete(y);return this.size=M.size,A}function nc(y){return this.__data__.get(y)}function ic(y){return this.__data__.has(y)}function so(y,M){var A=this.__data__;if(A instanceof an){var U=A.__data__;if(!xt||U.length<n-1)return U.push([y,M]),this.size=++A.size,this;A=this.__data__=new Sn(U)}return A.set(y,M),this.size=A.size,this}ni.prototype.clear=Xr,ni.prototype.delete=tc,ni.prototype.get=nc,ni.prototype.has=ic,ni.prototype.set=so;function ro(y,M){var A=or(y),U=!A&&Qr(y),Te=!A&&!U&&lr(y),we=!A&&!U&&!Te&&yo(y),Re=A||U||Te||we,Ge=Re?tn(y.length,String):[],He=Ge.length;for(var Ze in y)(M||We.call(y,Ze))&&!(Re&&(Ze=="length"||Te&&(Ze=="offset"||Ze=="parent")||we&&(Ze=="buffer"||Ze=="byteLength"||Ze=="byteOffset")||ho(Ze,He)))&&Ge.push(Ze);return Ge}function Cs(y,M){for(var A=y.length;A--;)if(_o(y[A][0],M))return A;return-1}function Ss(y,M,A){var U=M(y);return or(y)?U:ht(U,A(y))}function Ms(y){return y==null?y===void 0?q:O:Y&&Y in Object(y)?yi(y):go(y)}function Jr(y){return wi(y)&&Ms(y)==c}function Os(y,M,A,U,Te){return y===M?!0:y==null||M==null||!wi(y)&&!wi(M)?y!==y&&M!==M:ao(y,M,A,U,Os,Te)}function ao(y,M,A,U,Te,we){var Re=or(y),Ge=or(M),He=Re?d:bi(y),Ze=Ge?d:bi(M);He=He==c?T:He,Ze=Ze==c?T:Ze;var zt=He==T,gn=Ze==T,Ft=He==Ze;if(Ft&&lr(y)){if(!lr(M))return!1;Re=!0,zt=!1}if(Ft&&!zt)return we||(we=new ni),Re||yo(y)?Ds(y,M,A,U,Te,we):rc(y,M,He,A,U,Te,we);if(!(A&s)){var mt=zt&&We.call(y,"__wrapped__"),Qt=gn&&We.call(M,"__wrapped__");if(mt||Qt){var Hi=mt?y.value():y,ki=Qt?M.value():M;return we||(we=new ni),Te(Hi,ki,A,U,we)}}return Ft?(we||(we=new ni),co(y,M,A,U,Te,we)):!1}function sc(y){if(!vo(y)||po(y))return!1;var M=cr(y)?Yn:Ee;return M.test(mn(y))}function oo(y){return wi(y)&&ta(y.length)&&!!me[Ms(y)]}function lo(y){if(!mo(y))return Ye(y);var M=[];for(var A in Object(y))We.call(y,A)&&A!="constructor"&&M.push(A);return M}function Ds(y,M,A,U,Te,we){var Re=A&s,Ge=y.length,He=M.length;if(Ge!=He&&!(Re&&He>Ge))return!1;var Ze=we.get(y);if(Ze&&we.get(M))return Ze==M;var zt=-1,gn=!0,Ft=A&r?new ar:void 0;for(we.set(y,M),we.set(M,y);++zt<Ge;){var mt=y[zt],Qt=M[zt];if(U)var Hi=Re?U(Qt,mt,zt,M,y,we):U(mt,Qt,zt,y,M,we);if(Hi!==void 0){if(Hi)continue;gn=!1;break}if(Ft){if(!kt(M,function(ki,is){if(!yt(Ft,is)&&(mt===ki||Te(mt,ki,A,U,we)))return Ft.push(is)})){gn=!1;break}}else if(!(mt===Qt||Te(mt,Qt,A,U,we))){gn=!1;break}}return we.delete(y),we.delete(M),gn}function rc(y,M,A,U,Te,we,Re){switch(A){case K:if(y.byteLength!=M.byteLength||y.byteOffset!=M.byteOffset)return!1;y=y.buffer,M=M.buffer;case ne:return!(y.byteLength!=M.byteLength||!we(new ve(y),new ve(M)));case f:case m:case k:return _o(+y,+M);case g:return y.name==M.name&&y.message==M.message;case B:case L:return y==M+"";case x:var Ge=Nt;case $:var He=U&s;if(Ge||(Ge=At),y.size!=M.size&&!He)return!1;var Ze=Re.get(y);if(Ze)return Ze==M;U|=r,Re.set(y,M);var zt=Ds(Ge(y),Ge(M),U,Te,we,Re);return Re.delete(y),zt;case F:if(Kr)return Kr.call(y)==Kr.call(M)}return!1}function co(y,M,A,U,Te,we){var Re=A&s,Ge=Ri(y),He=Ge.length,Ze=Ri(M),zt=Ze.length;if(He!=zt&&!Re)return!1;for(var gn=He;gn--;){var Ft=Ge[gn];if(!(Re?Ft in M:We.call(M,Ft)))return!1}var mt=we.get(y);if(mt&&we.get(M))return mt==M;var Qt=!0;we.set(y,M),we.set(M,y);for(var Hi=Re;++gn<He;){Ft=Ge[gn];var ki=y[Ft],is=M[Ft];if(U)var oc=Re?U(is,ki,Ft,M,y,we):U(ki,is,Ft,y,M,we);if(!(oc===void 0?ki===is||Te(ki,is,A,U,we):oc)){Qt=!1;break}Hi||(Hi=Ft=="constructor")}if(Qt&&!Hi){var ia=y.constructor,hn=M.constructor;ia!=hn&&"constructor"in y&&"constructor"in M&&!(typeof ia=="function"&&ia instanceof ia&&typeof hn=="function"&&hn instanceof hn)&&(Qt=!1)}return we.delete(y),we.delete(M),Qt}function Ri(y){return Ss(y,na,uo)}function Vn(y,M){var A=y.__data__;return fo(M)?A[typeof M=="string"?"string":"hash"]:A.map}function Mn(y,M){var A=tt(y,M);return sc(A)?A:void 0}function yi(y){var M=We.call(y,Y),A=y[Y];try{y[Y]=void 0;var U=!0}catch{}var Te=Bn.call(y);return U&&(M?y[Y]=A:delete y[Y]),Te}var uo=se?function(y){return y==null?[]:(y=Object(y),Yt(se(y),function(M){return W.call(y,M)}))}:pt,bi=Ms;(rt&&bi(new rt(new ArrayBuffer(1)))!=K||xt&&bi(new xt)!=x||sn&&bi(sn.resolve())!=N||Gt&&bi(new Gt)!=$||jn&&bi(new jn)!=ee)&&(bi=function(y){var M=Ms(y),A=M==T?y.constructor:void 0,U=A?mn(A):"";if(U)switch(U){case An:return K;case Cn:return x;case ti:return N;case Fi:return $;case ks:return ee}return M});function ho(y,M){return M=M??o,!!M&&(typeof y=="number"||Me.test(y))&&y>-1&&y%1==0&&y<M}function fo(y){var M=typeof y;return M=="string"||M=="number"||M=="symbol"||M=="boolean"?y!=="__proto__":y===null}function po(y){return!!pn&&pn in y}function mo(y){var M=y&&y.constructor,A=typeof M=="function"&&M.prototype||Vt;return y===A}function go(y){return Bn.call(y)}function mn(y){if(y!=null){try{return Ae.call(y)}catch{}try{return y+""}catch{}}return""}function _o(y,M){return y===M||y!==y&&M!==M}var Qr=Jr(function(){return arguments}())?Jr:function(y){return wi(y)&&We.call(y,"callee")&&!W.call(y,"callee")},or=Array.isArray;function ea(y){return y!=null&&ta(y.length)&&!cr(y)}var lr=ke||lt;function ac(y,M){return Os(y,M)}function cr(y){if(!vo(y))return!1;var M=Ms(y);return M==v||M==b||M==h||M==C}function ta(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=o}function vo(y){var M=typeof y;return y!=null&&(M=="object"||M=="function")}function wi(y){return y!=null&&typeof y=="object"}var yo=st?nn(st):oo;function na(y){return ea(y)?ro(y):lo(y)}function pt(){return[]}function lt(){return!1}t.exports=ac})($h,$h.exports);const Ll=$h.exports,H_=[{name:"turquoise",hex:"#3CACDD",lighterHex:"#C2EDFF"},{name:"teal",hex:"#3CACDD",lighterHex:"#C2EDFF"},{name:"green",hex:"#2AC092",lighterHex:"#ABEDD9"},{name:"blue",hex:"#377EE1",lighterHex:"#B6D1F7"},{name:"indigo",hex:"#6174D1",lighterHex:"#CED6FD"},{name:"violet",hex:"#A169D3",lighterHex:"#E6D2F9"},{name:"pink",hex:"#DD5A9C",lighterHex:"#F9C8E2"},{name:"red",hex:"#F95367",lighterHex:"#FBD0D6"},{name:"orange",hex:"#FF8567",lighterHex:"#FFD6CC"},{name:"amber",hex:"#FFB952",lighterHex:"#FFE2B8"},{name:"gray",hex:"#9AA8B6",lighterHex:"#ABB8C4"}],jr=H_.map(t=>t.name),Fl=t=>{const e=H_.filter(n=>n.name===t)[0];return e?e.hex:""},Cce="",ij={props:{tabs:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>Xt(n.title)||Xt(n.name)).length},activeTab:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:t=>jr.includes(t)}},data(){return{internalActiveTab:this.activeTab,colorOptions:jr}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{tabs:{handler(t){const e=t.filter(n=>n.name===this.activeTab.name);[this.internalActiveTab]=e.length?e:t},immediate:!0}},methods:{colorHexCode:Fl,getSlotName(t){return t.name},handleClick(t,e){this.$emit("change",{event:t,item:e}),this.internalActiveTab=e},isActive(t){return Ll(this.internalActiveTab,t)},indicatorClass(t){return this.isActive(t)?`tab__indicator--active--${this.variant}`:""}}},sj={id:"inner-tabs"},rj={class:"inner-tabs__header-container"},aj={class:"inner-tabs__header"},oj=["onClick"],lj={class:"inner-tabs__content"};function cj(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",sj,[a.createElementVNode("div",rj,[a.createElementVNode("ul",aj,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.tabs,(o,c)=>(a.openBlock(),a.createElementBlock("li",{key:`${c}-${o.name}-tab`,role:"presentation"},[a.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:a.normalizeClass(["inner-tabs__tab",r.isActive(o)?"inner-tabs__tab--active":"inner-tabs__tab--inactive"]),onClick:d=>r.handleClick(d,o)},a.toDisplayString(o.title),11,oj),a.createElementVNode("div",{class:a.normalizeClass(r.indicatorClass(o)),style:a.normalizeStyle(r.activeBorderStyle)},null,6)]))),128))])]),a.createElementVNode("div",lj,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.tabs,(o,c)=>(a.openBlock(),a.createElementBlock("div",{key:`${c}-${o.name}-tab`,role:"tabpanel",class:a.normalizeClass(["content__pane",r.isActive(o)?"content__pane--active":"content__pane--inactive"])},[a.renderSlot(t.$slots,r.getSlotName(o))],2))),128))])])}const dj=oe(ij,[["render",cj]]),Sce="",uj={props:{href:{type:String,required:!0},newTab:{type:Boolean,default:!1},text:{type:String,required:!0},size:{type:String,default:"md"},bold:{type:Boolean,default:!1}}},hj=["href","target"];function fj(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["link__container",{"link__container--sm":n.size==="sm","link__container--md":n.size==="md","link__container--lg":n.size==="lg","link__container--bold":n.bold}])},[a.createElementVNode("a",{href:n.href,target:n.newTab?"_blank":!1},[a.renderSlot(t.$slots,"default",{class:"link__text"},()=>[a.createTextVNode(a.toDisplayString(n.text),1)])],8,hj)],2)}const su=oe(uj,[["render",fj]]),Mce="",pj={},mj=[(t=>(a.pushScopeId("data-v-59f3ef96"),t=t(),a.popScopeId(),t))(()=>a.createElementVNode("div",{class:"loading-bar__container"},[a.createElementVNode("div",{class:"loading-bar"})],-1))];function gj(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",null,mj)}const _j=oe(pj,[["render",gj],["__scopeId","data-v-59f3ef96"]]),Ece="",vj=["teal","green","blue","indigo","violet","pink","red","orange","amber"],yj={directives:{"on-click-outside":Ic.directive},components:{CdsIcon:$t,CdsButton:ba,CdsScrollable:g1},props:{modelValue:{type:Boolean,default:!1,required:!0},title:{type:String,default:"T\xEDtulo"},size:{type:String,default:"md"},disableOkButton:{type:Boolean,default:!1},disableCancelButton:{type:Boolean,default:!1},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOkButton:{type:Boolean,default:!1},noCloseButton:{type:Boolean,default:!1},noCancelButton:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1},noHeader:{type:Boolean,default:!1},okButtonText:{type:String,default:"Confirmar"},cancelButtonText:{type:String,default:"Cancelar"},actionButtonVariant:{type:String,default:"green",validator:t=>vj.includes(t)},scrollable:{type:Boolean,default:!1}},data(){return{innerValue:!1,tmp:""}},computed:{maxBodyHeight(){return`${window.innerHeight*.9-32*2-68-64}px`}},watch:{modelValue(t){this.innerValue=t}},mounted(){this.innerValue=this.modelValue},methods:{closeHandle(){this.innerValue=!this.innerValue,this.$emit("close",!0),this.$emit("update:modelValue",!1)},okHandle(){this.noCloseOkButton||(this.innerValue=!this.innerValue,this.$emit("update:modelValue",!1)),this.$emit("ok",!0)}}},bj={key:0,class:"cds-modal__backdrop"},wj={key:0},kj={class:"cds-modal__header"},xj={key:1,class:"cds-modal__body"},Cj={key:1,class:"cds-modal__footer"};function Sj(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-scrollable"),d=a.resolveComponent("cds-button"),h=a.resolveDirective("on-click-outside");return s.innerValue?(a.openBlock(),a.createElementBlock("div",bj,[s.innerValue?a.withDirectives((a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["cds-modal",`cds-modal--${n.size}`]),style:a.normalizeStyle(t.dynamicStyle)},[n.noHeader?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("header",wj,[a.renderSlot(t.$slots,"header",{},()=>[a.createElementVNode("div",kj,[a.createElementVNode("h3",null,a.toDisplayString(n.title),1),n.noCloseButton?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"cds-modal__close-icon",onClick:e[0]||(e[0]=(...f)=>r.closeHandle&&r.closeHandle(...f))},[a.createVNode(o,{name:"x-outline",height:"20",width:"20",color:"#29333D"})]))])],!0)])),a.createElementVNode("section",null,[n.scrollable?(a.openBlock(),a.createBlock(c,{key:0,class:"cds-modal__body"},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3})):(a.openBlock(),a.createElementBlock("div",xj,[a.renderSlot(t.$slots,"default",{},void 0,!0)]))]),n.noFooter?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("footer",Cj,[a.renderSlot(t.$slots,"footer",{},()=>[n.noCancelButton?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(d,{key:0,text:n.cancelButtonText,secondary:"",disabled:n.disableCancelButton,onClick:e[1]||(e[1]=f=>n.disableCancelButton?!1:r.closeHandle())},null,8,["text","disabled"])),a.createVNode(d,{class:"footer__ok-button",text:n.okButtonText,variant:n.actionButtonVariant,disabled:n.disableOkButton,onClick:e[2]||(e[2]=f=>n.disableOkButton?!1:r.okHandle())},null,8,["text","variant","disabled"])],!0)]))],6)),[[h,n.noCloseOnBackdrop?()=>{}:r.closeHandle]]):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}const Mj=oe(yj,[["render",Sj],["__scopeId","data-v-4a842748"]]);function Nh(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function Oj(t){return(...e)=>!t(...e)}function Dj(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function W_(t,e,n,i){return e?t.filter(s=>Dj(i(s,n),e)).sort((s,r)=>i(s,n).length-i(r,n).length):t}function Ej(t){return t.filter(e=>!e.$isLabel)}function zh(t,e){return n=>n.reduce((i,s)=>s[t]&&s[t].length?(i.push({$groupLabel:s[e],$isLabel:!0}),i.concat(s[t])):i,[])}function Tj(t,e,n,i,s){return r=>r.map(o=>{if(!o[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const c=W_(o[n],t,e,s);return c.length?{[i]:o[i],[n]:c}:[]})}const Y_=(...t)=>e=>t.reduce((n,i)=>i(n),e);var Ij={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(t,e){return Nh(t)?"":e?t[e]:t}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const t=this.search||"",e=t.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,e,this.label):W_(n,e,this.label,this.customLabel):n=this.groupValues?zh(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(Oj(this.isSelected)):n,this.taggable&&e.length&&!this.isExistingOption(e)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:t}):n.unshift({isTag:!0,label:t})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(t=>t[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(e=>this.customLabel(e,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(t,e,n){return Y_(Tj(e,n,this.groupValues,this.groupLabel,this.customLabel),zh(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return Y_(zh(this.groupValues,this.groupLabel),Ej)(t)},updateSearch(t){this.search=t},isExistingOption(t){return this.options?this.optionKeys.indexOf(t)>-1:!1},isSelected(t){const e=this.trackBy?t[this.trackBy]:t;return this.valueKeys.indexOf(e)>-1},isOptionDisabled(t){return!!t.$isDisabled},getOptionLabel(t){if(Nh(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;const e=this.customLabel(t,this.label);return Nh(e)?"":e},select(t,e){if(t.$isLabel&&this.groupSelect){this.selectGroup(t);return}if(!(this.blockKeys.indexOf(e)!==-1||this.disabled||t.$isDisabled||t.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(e==="Tab"&&!this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(t)){e!=="Tab"&&this.removeElement(t);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([t])):this.$emit("update:modelValue",t),this.$emit("select",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(t){const e=this.options.find(n=>n[this.groupLabel]===t.$groupLabel);if(!!e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const n=this.trackBy?e[this.groupValues].map(s=>s[this.trackBy]):e[this.groupValues],i=this.internalValue.filter(s=>n.indexOf(this.trackBy?s[this.trackBy]:s)===-1);this.$emit("update:modelValue",i)}else{let n=e[this.groupValues].filter(i=>!(this.isOptionDisabled(i)||this.isSelected(i)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(t){return t[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(t){return t[this.groupValues].every(this.isOptionDisabled)},removeElement(t,e=!0){if(this.disabled||t.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof t=="object"?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.multiple){const i=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",i)}else this.$emit("update:modelValue",null);this.$emit("remove",t,this.id),this.closeOnSelect&&e&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){!this.isOpen||(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>t||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))}}},Bj={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(t,e){return{"multiselect__option--highlight":t===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight(t,e){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];const n=this.options.find(i=>i[this.groupLabel]===e.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":t===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:t}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){!this.closeOnSelect||(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(t){this.pointer=t,this.pointerDirty=!0}}},j_={name:"vue-multiselect",mixins:[Ij,Bj],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:t=>`and ${t} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};const Aj={ref:"tags",class:"multiselect__tags"},Vj={class:"multiselect__tags-wrap"},$j={class:"multiselect__spinner"},Nj={key:0},zj={class:"multiselect__option"},Pj={class:"multiselect__option"},Lj=a.createTextVNode("No elements found. Consider changing the search query."),Fj={class:"multiselect__option"},Rj=a.createTextVNode("List is empty.");function Hj(t,e,n,i,s,r){return a.openBlock(),a.createBlock("div",{tabindex:t.searchable?-1:n.tabindex,class:[{"multiselect--active":t.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":r.isAbove,"multiselect--has-options-group":r.hasOptionGroup},"multiselect"],onFocus:e[14]||(e[14]=o=>t.activate()),onBlur:e[15]||(e[15]=o=>t.searchable?!1:t.deactivate()),onKeydown:[e[16]||(e[16]=a.withKeys(a.withModifiers(o=>t.pointerForward(),["self","prevent"]),["down"])),e[17]||(e[17]=a.withKeys(a.withModifiers(o=>t.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:e[18]||(e[18]=a.withKeys(a.withModifiers(o=>t.addPointerElement(o),["stop","self"]),["enter","tab"])),onKeyup:e[19]||(e[19]=a.withKeys(o=>t.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+t.id},[a.renderSlot(t.$slots,"caret",{toggle:t.toggle},()=>[a.createVNode("div",{onMousedown:e[1]||(e[1]=a.withModifiers(o=>t.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),a.renderSlot(t.$slots,"clear",{search:t.search}),a.createVNode("div",Aj,[a.renderSlot(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:r.visibleValues,isOpen:t.isOpen},()=>[a.withDirectives(a.createVNode("div",Vj,[(a.openBlock(!0),a.createBlock(a.Fragment,null,a.renderList(r.visibleValues,(o,c)=>a.renderSlot(t.$slots,"tag",{option:o,search:t.search,remove:t.removeElement},()=>[(a.openBlock(),a.createBlock("span",{class:"multiselect__tag",key:c},[a.createVNode("span",{textContent:a.toDisplayString(t.getOptionLabel(o))},null,8,["textContent"]),a.createVNode("i",{tabindex:"1",onKeypress:a.withKeys(a.withModifiers(d=>t.removeElement(o),["prevent"]),["enter"]),onMousedown:a.withModifiers(d=>t.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[a.vShow,r.visibleValues.length>0]]),t.internalValue&&t.internalValue.length>n.limit?a.renderSlot(t.$slots,"limit",{key:0},()=>[a.createVNode("strong",{class:"multiselect__strong",textContent:a.toDisplayString(n.limitText(t.internalValue.length-n.limit))},null,8,["textContent"])]):a.createCommentVNode("v-if",!0)]),a.createVNode(a.Transition,{name:"multiselect__loading"},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"loading",{},()=>[a.withDirectives(a.createVNode("div",$j,null,512),[[a.vShow,n.loading]])])]),_:3}),t.searchable?(a.openBlock(),a.createBlock("input",{key:0,ref:"search",name:n.name,id:t.id,type:"text",autocomplete:"off",spellcheck:!1,placeholder:t.placeholder,style:r.inputStyle,value:t.search,disabled:n.disabled,tabindex:n.tabindex,onInput:e[2]||(e[2]=o=>t.updateSearch(o.target.value)),onFocus:e[3]||(e[3]=a.withModifiers(o=>t.activate(),["prevent"])),onBlur:e[4]||(e[4]=a.withModifiers(o=>t.deactivate(),["prevent"])),onKeyup:e[5]||(e[5]=a.withKeys(o=>t.deactivate(),["esc"])),onKeydown:[e[6]||(e[6]=a.withKeys(a.withModifiers(o=>t.pointerForward(),["prevent"]),["down"])),e[7]||(e[7]=a.withKeys(a.withModifiers(o=>t.pointerBackward(),["prevent"]),["up"])),e[9]||(e[9]=a.withKeys(a.withModifiers(o=>t.removeLastElement(),["stop"]),["delete"]))],onKeypress:e[8]||(e[8]=a.withKeys(a.withModifiers(o=>t.addPointerElement(o),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+t.id},null,44,["name","id","placeholder","value","disabled","tabindex","aria-controls"])):a.createCommentVNode("v-if",!0),r.isSingleLabelVisible?(a.openBlock(),a.createBlock("span",{key:1,class:"multiselect__single",onMousedown:e[10]||(e[10]=a.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[a.renderSlot(t.$slots,"singleLabel",{option:r.singleValue},()=>[a.createTextVNode(a.toDisplayString(t.currentOptionLabel),1)])],32)):a.createCommentVNode("v-if",!0),r.isPlaceholderVisible?(a.openBlock(),a.createBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:e[11]||(e[11]=a.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[a.renderSlot(t.$slots,"placeholder",{},()=>[a.createTextVNode(a.toDisplayString(t.placeholder),1)])],32)):a.createCommentVNode("v-if",!0)],512),a.createVNode(a.Transition,{name:"multiselect"},{default:a.withCtx(()=>[a.withDirectives(a.createVNode("div",{class:"multiselect__content-wrapper",onFocus:e[12]||(e[12]=(...o)=>t.activate&&t.activate(...o)),tabindex:"-1",onMousedown:e[13]||(e[13]=a.withModifiers(()=>{},["prevent"])),style:{maxHeight:t.optimizedHeight+"px"},ref:"list"},[a.createVNode("ul",{class:"multiselect__content",style:r.contentStyle,role:"listbox",id:"listbox-"+t.id},[a.renderSlot(t.$slots,"beforeList"),t.multiple&&t.max===t.internalValue.length?(a.openBlock(),a.createBlock("li",Nj,[a.createVNode("span",zj,[a.renderSlot(t.$slots,"maxElements",{},()=>[a.createTextVNode("Maximum of "+a.toDisplayString(t.max)+" options selected. First remove a selected option to select another.",1)])])])):a.createCommentVNode("v-if",!0),!t.max||t.internalValue.length<t.max?(a.openBlock(!0),a.createBlock(a.Fragment,{key:1},a.renderList(t.filteredOptions,(o,c)=>(a.openBlock(),a.createBlock("li",{class:"multiselect__element",key:c,id:t.id+"-"+c,role:o&&(o.$isLabel||o.$isDisabled)?null:"option"},[o&&(o.$isLabel||o.$isDisabled)?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createBlock("span",{key:0,class:[t.optionHighlight(c,o),"multiselect__option"],onClick:a.withModifiers(d=>t.select(o),["stop"]),onMouseenter:a.withModifiers(d=>t.pointerSet(c),["self"]),"data-select":o&&o.isTag?t.tagPlaceholder:r.selectLabelText,"data-selected":r.selectedLabelText,"data-deselect":r.deselectLabelText},[a.renderSlot(t.$slots,"option",{option:o,search:t.search,index:c},()=>[a.createVNode("span",null,a.toDisplayString(t.getOptionLabel(o)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),o&&(o.$isLabel||o.$isDisabled)?(a.openBlock(),a.createBlock("span",{key:1,"data-select":t.groupSelect&&r.selectGroupLabelText,"data-deselect":t.groupSelect&&r.deselectGroupLabelText,class:[t.groupHighlight(c,o),"multiselect__option"],onMouseenter:a.withModifiers(d=>t.groupSelect&&t.pointerSet(c),["self"]),onMousedown:a.withModifiers(d=>t.selectGroup(o),["prevent"])},[a.renderSlot(t.$slots,"option",{option:o,search:t.search,index:c},()=>[a.createVNode("span",null,a.toDisplayString(t.getOptionLabel(o)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):a.createCommentVNode("v-if",!0)],8,["id","role"]))),128)):a.createCommentVNode("v-if",!0),a.withDirectives(a.createVNode("li",null,[a.createVNode("span",Pj,[a.renderSlot(t.$slots,"noResult",{search:t.search},()=>[Lj])])],512),[[a.vShow,n.showNoResults&&t.filteredOptions.length===0&&t.search&&!n.loading]]),a.withDirectives(a.createVNode("li",null,[a.createVNode("span",Fj,[a.renderSlot(t.$slots,"noOptions",{},()=>[Rj])])],512),[[a.vShow,n.showNoOptions&&(t.options.length===0||r.hasOptionGroup===!0&&t.filteredOptions.length===0)&&!t.search&&!n.loading]]),a.renderSlot(t.$slots,"afterList")],12,["id"])],36),[[a.vShow,t.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}j_.render=Hj;const Tce="",Ice="",eo=0,to=1,ru=t=>t===void 0?{}:JSON.parse(JSON.stringify(t)),Ph={components:{Multiselect:j_,CdsDivider:Tc,CdsCheckbox:b0,CdsSpacer:pd},props:{modelValue:{type:Array,required:!0},label:{type:String,default:"text"},variant:{type:String,default:"green"},trackBy:{type:String,default:"value"},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},errorMessage:{type:String,default:"Valor inv\xE1lido"},state:{type:String,default:"default"},options:{type:Array,required:!0},optionsField:{type:String,default:"value",required:!1},hideSelectAll:{type:Boolean,default:!1}},data(){return{selectedValue:this.$attrs.modelValue||[],internalOptions:ru(this.options),groupValues:null,groupLabel:null,selectAllValue:!1,queryString:"",indeterminate:!1,sassColorVariables:Gs,uniqueKey:_1()}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},errorState(){return this.state==="invalid"},selectedFancyMessage(){return t=>t===1?this.selectedValue[0][this.optionsField]:`${t} op\xE7\xF5es selecionadas`},selectAllFancyMessage(){return this.hasSelectedValues?"Desfazer sele\xE7\xE3o":"Selecionar todos"},hasSelectedValues(){return this.selectedValue.length>0},isAllItemsSelected(){return this.selectedValue.length===this.options.length},computedPlaceholder(){return this.$attrs.placeholder?this.$attrs.placeholder:"Selecione uma ou mais op\xE7\xF5es"},isGroupMode(){return this.internalOptions[eo]&&this.internalOptions[eo].$status||this.internalOptions[to]&&this.internalOptions[to].$status},attrs(){const{label:t,trackBy:e,options:n,...i}=this.$attrs;return i},inputBackgroundColor(){return this.disabled?this.sassColorVariables.n20:this.sassColorVariables.n0}},watch:{selectedValue(t){const e=ru(t);e.forEach(n=>delete n.isSelected),this.indeterminate=t.length>0&&t.length<this.options.length,this.$emit("input",e),this.$emit("update:modelValue",e)},isAllItemsSelected(t){if(!t&&this.selectAllValue){this.selectAllValue=!1;return}t&&!this.selectAllValue&&(this.selectAllValue=!0)},indeterminate(t){const e=document.getElementById(`select-all-input-id-${this.uniqueKey}`);e.indeterminate=t}},mounted(){this.modelValue===null||this.modelValue.length===0||(this.selectedValue=this.modelValue,this.updateRenderOptions(),this.indeterminate=this.hasSelectedValues&&this.selectedValue.length<this.options.length)},methods:{unselectItem(t){this.handleSelectItem(t),this.$emit("remove",t)},selectItem(t){this.handleSelectItem(t),this.$emit("select",t)},handleSelectItem(t){this.isGroupMode?(this.internalOptions[eo].options.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)}),this.internalOptions[to].options.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)})):this.internalOptions.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)})},toggleSelectAll(){this.selectAllValue=!this.hasSelectedValues,this.selectAllValue?this.selectedValue=this.options:this.selectedValue=[],this.$nextTick().then(()=>{this.isGroupMode?(this.internalOptions[eo].options=this.internalOptions[eo].options.map(t=>({...t,isSelected:this.selectAllValue})),this.internalOptions[to].options=this.internalOptions[to].options.map(t=>({...t,isSelected:this.selectAllValue}))):this.internalOptions=this.internalOptions.map(t=>({...t,isSelected:this.selectAllValue}))})},addItemViaCustomCheckbox(t){t.isSelected=!t.isSelected,this.selectedValue=[...this.selectedValue,t]},handleClose(){this.updateRenderOptions(),this.setContentWrapperScrollToTop(),this.$emit("close")},updateRenderOptions(){if(!this.hasSelectedValues){this.internalOptions=ru(this.options.map(e=>({...e,isSelected:!1}))),this.groupValues=null,this.groupLabel=null;return}this.selectedValue.forEach(e=>{e.isSelected=!0});let t=ru(this.options);t=t.map(e=>(this.selectedValue.some(i=>i[this.optionsField]===e[this.optionsField])?e.isSelected=!0:e.isSelected=!1,e)),this.internalOptions=[{$status:"Selecionados",options:[]},{$status:"N\xE3o selecionados",options:[]}],this.internalOptions[eo].options=this.selectedValue,this.internalOptions[to].options=t.filter(e=>!e.isSelected),this.groupValues="options",this.groupLabel="$status"},handleSearchChange(t){this.queryString=t},setContentWrapperScrollToTop(){document.querySelector(`span[data-cds-multiselect-identifier='${this.uniqueKey}']`).getElementsByClassName("multiselect__content-wrapper")[0].scrollTo(0,0)}}},U_=()=>{a.useCssVars(t=>({"7b3aebae":t.inputBackgroundColor}))},q_=Ph.setup;Ph.setup=q_?(t,e)=>(U_(),q_(t,e)):U_;const Wj=Ph,Yj=["data-cds-multiselect-identifier"],jj={key:0},Uj={key:1,class:"clustered-multiselect__label"},qj=["for"],Gj={key:0,class:"label__required-indicator"},Kj={key:1,class:"cds-multiselect__grouped-divider"},Zj={key:0,class:"cds-multiselect__group-label"},Xj={key:1,class:"cds-multiselect__option"},Jj={class:"option__checkbox"},Qj=["id","onUpdate:modelValue","name"],eU=["id","for","onClick"],tU={key:0,class:"multiselect__single"},nU={key:1},iU={key:0,class:"clustered-multiselect__error-message"};function sU(t,e,n,i,s,r){const o=a.resolveComponent("cds-checkbox"),c=a.resolveComponent("cds-spacer"),d=a.resolveComponent("cds-divider"),h=a.resolveComponent("multiselect",!0);return a.openBlock(),a.createElementBlock("span",{class:"cds-multiselect","data-cds-multiselect-identifier":s.uniqueKey},[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",jj,[a.renderSlot(t.$slots,"label")])):(a.openBlock(),a.createElementBlock("label",Uj,[a.createElementVNode("div",{class:"label__content",for:`clustered-multiselect-${s.uniqueKey}`},[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",Gj," * ")):a.createCommentVNode("",!0)],8,qj)]))]),a.createVNode(h,a.mergeProps({id:`clustered-multiselect-${s.uniqueKey}`,ref:"cds-multiselect"},r.attrs,{modelValue:s.selectedValue,"onUpdate:modelValue":e[2]||(e[2]=f=>s.selectedValue=f),options:s.internalOptions,label:n.optionsField,"track-by":n.trackBy,multiple:"","group-values":s.groupValues,"group-label":s.groupLabel,"close-on-select":!1,"clear-on-select":!1,"select-label":"","deselect-label":"","selected-label":"",disabled:n.disabled,placeholder:r.computedPlaceholder,"block-keys":["Delete","Enter"],onClose:r.handleClose,onSelect:r.selectItem,onRemove:r.unselectItem,onSearchChange:r.handleSearchChange}),{beforeList:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",null,[n.hideSelectAll?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"cds-multiselect__option multiselect__option",onClick:e[1]||(e[1]=(...f)=>r.toggleSelectAll&&r.toggleSelectAll(...f))},[a.createVNode(c,{"margin-left":"2"},{default:a.withCtx(()=>[a.createVNode(o,{id:`select-all-input-id-${s.uniqueKey}`,modelValue:s.selectAllValue,"onUpdate:modelValue":e[0]||(e[0]=f=>s.selectAllValue=f),label:r.selectAllFancyMessage,indeterminate:s.indeterminate,variant:n.variant},null,8,["id","modelValue","label","indeterminate","variant"])]),_:1})])),r.isGroupMode?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",Kj,[a.createVNode(d,{dimmed:""})]))],512),[[a.vShow,!s.queryString&&n.options.length]])]),option:a.withCtx(({option:f})=>[f.$isLabel?(a.openBlock(),a.createElementBlock("div",Zj,[a.createVNode(d,{text:f.$groupLabel,inline:"",dimmed:""},null,8,["text"])])):(a.openBlock(),a.createElementBlock("div",Xj,[a.createElementVNode("div",Jj,[a.withDirectives(a.createElementVNode("input",{id:`input-${f[n.optionsField]}-${s.uniqueKey}`,"onUpdate:modelValue":m=>f.isSelected=m,type:"checkbox",name:`input-${f[n.optionsField]}-${s.uniqueKey}`,value:!0},null,8,Qj),[[a.vModelCheckbox,f.isSelected]]),a.createElementVNode("label",{id:`checkbox-${f[n.optionsField]}`,for:`input-${f[n.optionsField]}-${s.uniqueKey}`,class:a.normalizeClass(f.isSelected?`option__checkbox--${n.variant}`:""),onClick:m=>r.addItemViaCustomCheckbox(f)},null,10,eU)]),a.createTextVNode(" "+a.toDisplayString(f[n.optionsField]),1)]))]),selection:a.withCtx(({values:f,isOpen:m})=>[f.length&&!m?(a.openBlock(),a.createElementBlock("span",tU,a.toDisplayString(r.selectedFancyMessage(f.length)),1)):(a.openBlock(),a.createElementBlock("span",nU))]),noResult:a.withCtx(()=>[a.createTextVNode(' Nenhum resultado encontrado para: "'),a.createElementVNode("strong",null,a.toDisplayString(s.queryString),1),a.createTextVNode('" ')]),noOptions:a.withCtx(()=>[a.createTextVNode(" N\xE3o h\xE1 nenhuma op\xE7\xE3o para ser exibida. ")]),_:1},16,["id","modelValue","options","label","track-by","group-values","group-label","disabled","placeholder","onClose","onSelect","onRemove","onSearchChange"]),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",iU,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)],8,Yj)}const rU=oe(Wj,[["render",sU]]),Bce="",aU={props:{items:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>{const i=Xt(n.path)&&Xt(n.route),s=Xt(n.items)||n.items.filter(r=>Xt(r.path)&&Xt(r.route)).length;return Xt(n.label)||s&&i}).length},activeItem:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:t=>jr.includes(t)}},data(){return{internalActiveItem:this.activeItem,colorOptions:jr}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{items:{handler(t){const e=t.filter(n=>n.name===this.activeItem.name);[this.internalActiveItem]=e.length?e:t},immediate:!0}},methods:{colorHexCode:Fl,handleClick(t,e){this.internalActiveItem=e,this.$emit("navbar-click",this.internalActiveItem)},isActive(t){return Ll(this.internalActiveItem,t)},resolveRoute({route:t,path:e}){const n=Xt(t)?e:t;return n instanceof String?{path:n}:n},routerPushTo(t){return this.resolveRoute(t)?this.resolveRoute(t).path:null},indicatorClass(t){return this.isActive(t)?`item__indicator--active--${this.variant}`:""}}},oU={id:"nav-bar"};function lU(t,e,n,i,s,r){const o=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",oU,[a.createElementVNode("ul",{class:a.normalizeClass({"nav-bar__container":n.items.length>=1})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.items,(c,d)=>(a.openBlock(),a.createElementBlock("li",{key:`${d}-${c.name}-item`,role:"presentation",class:a.normalizeClass(["nav-bar__item-container",r.isActive(c)?"nav-bar__item-container--active":"nav-bar__item-container--inactive"])},[a.createVNode(o,{to:r.routerPushTo(c),class:a.normalizeClass(["nav-bar__item",r.isActive(c)?"nav-bar__item--active":"nav-bar__item--inactive"]),onClick:h=>r.handleClick(h,c)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(c.label),1)]),_:2},1032,["to","class","onClick"]),a.createElementVNode("div",{class:a.normalizeClass(r.indicatorClass(c)),style:a.normalizeStyle(r.activeBorderStyle)},null,6)],2))),128))],2)])}const cU=oe(aU,[["render",lU]]);var dU=Object.defineProperty,uU=(t,e,n)=>e in t?dU(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,G_=(t,e,n)=>(uU(t,typeof e!="symbol"?e+"":e,n),n);const au={debug:!1,masked:!1,prefix:"",suffix:"",thousands:",",decimal:".",precision:2,disableNegative:!1,disabled:!1,min:null,max:null,allowBlank:!1,minimumNumberOfCharacters:0,modelModifiers:{number:!1},shouldRound:!0,focusOnRight:!1},K_=["+","-"],Z_=["decimal","thousands","prefix","suffix"];function Ur(t){return Math.max(0,Math.min(t,1e3))}function ou(t,e){return t=t.padStart(e+1,"0"),e===0?t:`${t.slice(0,-e)}.${t.slice(-e)}`}function X_(t){return t=t?t.toString():"",t.replace(/\D+/g,"")||"0"}function hU(t,e){return t.replace(/(\d)(?=(?:\d{3})+\b)/gm,`$1${e}`)}function fU(t,e,n){return e?t+n+e:t}function pU(t,e){return K_.includes(t)?(console.warn(`v-money3 "${e}" property don't accept "${t}" as a value.`),!1):/\d/g.test(t)?(console.warn(`v-money3 "${e}" property don't accept "${t}" (any number) as a value.`),!1):!0}function mU(t){for(const e of Z_)if(!pU(t[e],e))return!1;return!0}function J_(t){for(const e of Z_){t[e]=t[e].replace(/\d+/g,"");for(const n of K_)t[e]=t[e].replaceAll(n,"")}return t}function Q_(t){const e=t.length,n=t.indexOf(".");return e-(n+1)}function ev(t){return t.replace(/^(-?)0+(?!\.)(.+)/,"$1$2")}function tv(t){return/^-?[\d]+$/g.test(t)}function nv(t){return/^-?[\d]+(\.[\d]+)$/g.test(t)}function iv(t,e,n){return e>t.length-1?t:t.substring(0,e)+n+t.substring(e+1)}function sv(t,e){const n=e-Q_(t);if(n>=0)return t;let i=t.slice(0,n);const s=t.slice(n);if(i.charAt(i.length-1)==="."&&(i=i.slice(0,-1)),parseInt(s.charAt(0),10)>=5){for(let r=i.length-1;r>=0;r-=1){const o=i.charAt(r);if(o!=="."&&o!=="-"){const c=parseInt(o,10)+1;if(c<10)return iv(i,r,c);i=iv(i,r,"0")}}return`1${i}`}return i}function rv(t,e){const n=()=>{t.setSelectionRange(e,e)};t===document.activeElement&&(n(),setTimeout(n,1))}function av(t){return new Event(t,{bubbles:!0,cancelable:!1})}function Qe({debug:t=!1},...e){t&&console.log(...e)}class lu{constructor(e){G_(this,"number",0n),G_(this,"decimal",0),this.setNumber(e)}getNumber(){return this.number}getDecimalPrecision(){return this.decimal}setNumber(e){this.decimal=0,typeof e=="bigint"?this.number=e:typeof e=="number"?this.setupString(e.toString()):this.setupString(e)}toFixed(e=0,n=!0){let i=this.toString();const s=e-this.getDecimalPrecision();return s>0?(i.includes(".")||(i+="."),i.padEnd(i.length+s,"0")):s<0?n?sv(i,e):i.slice(0,s):i}toString(){let e=this.number.toString();if(this.decimal){let n=!1;return e.charAt(0)==="-"&&(e=e.substring(1),n=!0),e=e.padStart(e.length+this.decimal,"0"),e=`${e.slice(0,-this.decimal)}.${e.slice(-this.decimal)}`,e=ev(e),(n?"-":"")+e}return e}lessThan(e){const[n,i]=this.adjustComparisonNumbers(e);return n<i}biggerThan(e){const[n,i]=this.adjustComparisonNumbers(e);return n>i}isEqual(e){const[n,i]=this.adjustComparisonNumbers(e);return n===i}setupString(e){if(e=ev(e),tv(e))this.number=BigInt(e);else if(nv(e))this.decimal=Q_(e),this.number=BigInt(e.replace(".",""));else throw new Error(`BigNumber has received and invalid format for the constructor: ${e}`)}adjustComparisonNumbers(e){let n;e.constructor.name!=="BigNumber"?n=new lu(e):n=e;const i=this.getDecimalPrecision()-n.getDecimalPrecision();let s=this.getNumber(),r=n.getNumber();return i>0?r=n.getNumber()*10n**BigInt(i):i<0&&(s=this.getNumber()*10n**BigInt(i*-1)),[s,r]}}function gU(t,e=au,n=""){if(Qe(e,"utils format() - caller",n),Qe(e,"utils format() - input1",t),t==null)t="";else if(typeof t=="number")e.shouldRound?t=t.toFixed(Ur(e.precision)):t=t.toFixed(Ur(e.precision)+1).slice(0,-1);else if(e.modelModifiers&&e.modelModifiers.number&&tv(t))t=Number(t).toFixed(Ur(e.precision));else if(!e.disableNegative&&t==="-")return t;Qe(e,"utils format() - input2",t);const i=e.disableNegative?"":t.indexOf("-")>=0?"-":"";let s=t.replace(e.prefix,"").replace(e.suffix,"");Qe(e,"utils format() - filtered",s),!e.precision&&e.thousands!=="."&&nv(s)&&(s=sv(s,0),Qe(e,"utils format() - !opt.precision && isValidFloat()",s));const r=X_(s);Qe(e,"utils format() - numbers",r),Qe(e,"utils format() - numbersToCurrency",i+ou(r,e.precision));const o=new lu(i+ou(r,e.precision));Qe(e,"utils format() - bigNumber1",o.toString()),e.max&&o.biggerThan(e.max)&&o.setNumber(e.max),e.min&&o.lessThan(e.min)&&o.setNumber(e.min);const c=o.toFixed(Ur(e.precision),e.shouldRound);if(Qe(e,"utils format() - bigNumber2",o.toFixed(Ur(e.precision))),/^0(\.0+)?$/g.test(c)&&e.allowBlank)return"";let[d,h]=c.split(".");const f=h!==void 0?h.length:0;d=d.padStart(e.minimumNumberOfCharacters-f,"0"),d=hU(d,e.thousands);const m=e.prefix+fU(d,h,e.decimal)+e.suffix;return Qe(e,"utils format() - output",m),m}function ov(t,e=au,n=""){if(Qe(e,"utils unformat() - caller",n),Qe(e,"utils unformat() - input",t),!e.disableNegative&&t==="-")return Qe(e,"utils unformat() - return netagive symbol",t),t;const i=e.disableNegative?"":t.indexOf("-")>=0?"-":"",s=t.replace(e.prefix,"").replace(e.suffix,"");Qe(e,"utils unformat() - filtered",s);const r=X_(s);Qe(e,"utils unformat() - numbers",r);const o=new lu(i+ou(r,e.precision));Qe(e,"utils unformat() - bigNumber1",r.toString()),e.max&&o.biggerThan(e.max)&&o.setNumber(e.max),e.min&&o.lessThan(e.min)&&o.setNumber(e.min);let c=o.toFixed(Ur(e.precision),e.shouldRound);return e.modelModifiers&&e.modelModifiers.number&&(c=parseFloat(c)),Qe(e,"utils unformat() - output",c),c}const Lh=(t,e,n)=>{if(Qe(e,"directive setValue() - caller",n),!mU(e)){Qe(e,"directive setValue() - validateRestrictedOptions() return false. Stopping here...",t.value);return}let i=t.value.length-(t.selectionEnd||0);t.value=gU(t.value,e,n),i=Math.max(i,e.suffix.length),i=t.value.length-i,i=Math.max(i,e.prefix.length),rv(t,i),t.dispatchEvent(av("change"))},lv=(t,e)=>{const n=t.currentTarget,i=t.code==="Backspace"||t.code==="Delete",s=n.value.length-(n.selectionEnd||0)===0;if(Qe(e,"directive onkeydown() - el.value",n.value),Qe(e,"directive onkeydown() - backspacePressed",i),Qe(e,"directive onkeydown() - isAtEndPosition",s),e.allowBlank&&i&&s&&ov(n.value,e,"directive onkeydown allowBlank")===0&&(Qe(e,'directive onkeydown() - set el.value = ""',n.value),n.value="",n.dispatchEvent(av("change"))),Qe(e,"directive onkeydown() - e.key",t.key),t.key==="+"){Qe(e,"directive onkeydown() - unformat el.value",n.value);let r=ov(n.value,e,"directive onkeydown +");typeof r=="string"&&(r=parseFloat(r)),r<0&&(n.value=String(r*-1))}},cv=(t,e)=>{const n=t.currentTarget;Qe(e,"directive oninput()",n.value),/^[1-9]$/.test(n.value)&&(n.value=ou(n.value,Ur(e.precision)),Qe(e,"directive oninput() - is 1-9",n.value)),Lh(n,e,"directive oninput")},dv=(t,e)=>{const n=t.currentTarget;Qe(e,"directive onFocus()",n.value),e.focusOnRight&&rv(n,n.value.length-e.suffix.length)},_U={mounted(t,e){if(!e.value)return;const n=J_({...au,...e.value});if(Qe(n,"directive mounted() - opt",n),t.tagName.toLocaleUpperCase()!=="INPUT"){const i=t.getElementsByTagName("input");i.length!==1||(t=i[0])}t.onkeydown=i=>{lv(i,n)},t.oninput=i=>{cv(i,n)},t.onfocus=i=>{dv(i,n)},Qe(n,"directive mounted() - el.value",t.value),Lh(t,n,"directive mounted")},updated(t,e){if(!e.value)return;const n=J_({...au,...e.value});t.onkeydown=i=>{lv(i,n)},t.oninput=i=>{cv(i,n)},t.onfocus=i=>{dv(i,n)},Qe(n,"directive updated() - el.value",t.value),Qe(n,"directive updated() - opt",n),Lh(t,n,"directive updated")},beforeUnmount(t){t.onkeydown=null,t.oninput=null,t.onfocus=null}},vU={"#":{pattern:/\d/},X:{pattern:/[0-9a-z]/i},S:{pattern:/[a-z]/i},A:{pattern:/[a-z]/i,transform:t=>t.toLocaleUpperCase()},a:{pattern:/[a-z]/i,transform:t=>t.toLocaleLowerCase()},"\\":{escape:!0},"?":{optional:!0},"*":{repeat:!0},"|":{pipe:!0}},qr="__input-facade__";function Fh(t){this.masked=this.unmasked=t||""}function uv(){return new CustomEvent("input",{bubbles:!0,cancelable:!0,detail:{facade:!0}})}function Rh(t,e){return(Array.isArray(t)||typeof t=="string")&&(t={mask:t}),Object.assign(t||{},e)}function cu(t){const e=t instanceof HTMLInputElement?t:t.querySelector("input");if(!e)throw new Error("facade directive requires an input element");return e}function hv(t,e){const{target:n,detail:i,inputType:s}=t;if(i!=null&&i.facade||(t.stopPropagation(),["insertCompositionText","insertFromComposition"].includes(s)&&e[qr].config.mask))return!1;const r=n.value,o=n.selectionEnd,{oldValue:c}=n[qr];du(n,null,{emit:!1},t),yU(t,r,o),c!==n.value&&n.dispatchEvent(uv())}function yU(t,e,n){const{target:i}=t,s=["text","tel","search",null].includes(i.getAttribute("type")),r=i[qr]&&i[qr].config;if(i!==document.activeElement||!s||!r.mask&&!r.masked)return;const o=t.inputType||"insertText",c=["insertText","insertFromPaste"].includes(o),d=c&&n==e.length;let h=c&&e[n-1];const f=i.value.toLocaleLowerCase();let m=n;if(d)m=f.length;else if(h){h=h.toLocaleLowerCase();let g=m;for(;g<=f.length&&f.charAt(g-1)!==h;)g++;m=g<=f.length?g:m-1}i.setSelectionRange(m,m),setTimeout(function(){i.setSelectionRange(m,m)},0)}function du(t,e,{emit:n=!0,force:i=!1}={},s){var r,o;let{config:c,oldValue:d,isComposing:h}=t[qr],f=((o=(r=e==null?void 0:e.data)==null?void 0:r.model)==null?void 0:o.value)||t.value;if(!(c.mask&&h)&&(d=d||"",f=f||"",i||d!==f)){["deleteByCut","deleteContent","deleteContentBackward","deleteContentForward"].includes(s==null?void 0:s.inputType)&&(c={...c,short:!0});let m=mv(f,c);if(s&&typeof c.formatter=="function"){const g=c.formatter(m,s);if(typeof g=="string")m=mv(g,c);else if(g===!1){t.value=d;return}}t[qr].oldValue=m.masked,t.unmaskedValue=m.unmasked,t.value!==m.masked&&(t.value=m.masked),n&&t.dispatchEvent(uv())}}let Hh=vU,fv=!1;try{"a".localeCompare("b","i")}catch(t){fv=t.name==="RangeError"}function bU(t){t&&(Hh=t)}function wU(t,e){const n=e.masks.slice().sort((c,d)=>c.length-d.length),i=c=>Object.assign({},e,c),s=(c,d)=>{const h=Wh(t,i({mask:d})),f=c.unmasked.length;return h.unmasked.length>f?h:c};if(!n.length)return new Fh;const r=n.shift();let o=Wh(t,i({mask:r}));for(;n.length;){const c=n.shift();o=s(o,c)}return o}function Wh(t,e){var n,i;let{mask:s="",tokens:r,prefill:o=!1,short:c=!1}=e;r=r?Object.assign({},Hh,r):Hh;let d=new Fh,h=!1,f=0,m=0,g="";function v(b){const x=s[m+1],k=r[x];return{escape:!!(b!=null&&b.escape),optional:!!(k!=null&&k.optional),repeat:!!(k!=null&&k.repeat),...(k==null?void 0:k.pipe)&&{pipe:s.substring(m).match(/^(.\|)+./g)[0].split("|")}}}for(;m<s.length;){const b=s[m],x=r[b];let k=t[f];const O=v(x);if(x&&!h&&!O.pipe){if(O.escape){h=!0,m++;continue}if(!k)break;if((n=x.pattern)!=null&&n.test(k))k=((i=x.transform)==null?void 0:i.call(x,k))||k,d.unmasked+=k,d.masked+=g+k,g="",O.repeat||(m+=O.optional?2:1);else if(O.optional||O.repeat){m+=2;continue}f++}else if(O.pipe){if(!k)break;const T=O.pipe.find(pv.bind(null,k));T&&(d.unmasked+=T,d.masked+=g+T,m+=O.pipe.length*2-1,g=""),f++}else pv(k,b)?(d.masked+=g+b,f++,g="",O.optional&&(d.unmasked+=b)):O.optional||(g+=b),h=!1,m+=O.optional?2:1}return(o&&!d.unmasked||!c&&d.unmasked)&&(d.masked+=g),d}function pv(t,e){return fv?(t==null?void 0:t.localeCompare(e,void 0,{sensitivity:"base"}))===0:(t==null?void 0:t.toLocaleLowerCase())===(e==null?void 0:e.toLocaleLowerCase())}function mv(t,e){return t=(t||"").toString(),e=Rh(e),e.mask?Array.isArray(e.mask)?wU(t,Object.assign({},e,{masks:e.mask})):Wh(t,e):new Fh(t)}const no=qr,Rl={beforeMount:(t,{value:e,modifiers:n},i)=>{t=cu(t);const s=Rh(e,n);t[no]={config:s},du(t,i,{force:s.prefill})},mounted:t=>{t=cu(t);const e=t[no],n=t.parentElement||t,i=r=>{r.target===t&&hv(r,t)},s=r=>{r.target===t&&(r.type==="compositionend"?(t[no].isComposing=!1,hv(r,t)):t[no].isComposing=!0)};n.addEventListener("input",i,!0),n.addEventListener("compositionstart",s,!0),n.addEventListener("compositionupdate",s,!0),n.addEventListener("compositionend",s,!0),e.cleanup=()=>{n.removeEventListener("input",i,!0),n.removeEventListener("compositionstart",s,!0),n.removeEventListener("compositionend",s,!0),n.removeEventListener("compositionupdate",s,!0)}},updated:(t,{value:e,oldValue:n,modifiers:i},s)=>{t=cu(t),e!==n?(t[no].config=Rh(e,i),du(t,s,{force:!0})):du(t,s)},unmounted:t=>{cu(t)[no].cleanup()}},kU=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n},xU={name:"InputFacade",directives:{facade:Rl},props:{formatter:{type:Function,default:null},mask:{type:[String,Array],default:null},masked:{type:Boolean,default:!1},prefill:{type:Boolean,default:!1},short:{type:Boolean,default:!1},tokens:{type:Object,default:()=>({})},modelValue:{type:[String,Number],default:""},modelModifiers:{type:Object,default:()=>({})}},emits:["update:model-value","change","keydown","keyup","paste"],data(){return{maskedValue:this.modelValue,unmaskedValue:null}},computed:{config(){return{mask:this.mask,masked:this.masked,tokens:this.tokens,formatter:this.formatter,prefill:this.prefill,short:this.short}},emittedValue(){return this.mask&&this.masked?this.maskedValue:this.unmaskedValue}},watch:{modelValue(t){t!==this.emittedValue&&(this.maskedValue=t)},mask:{deep:!0,handler(t){!t&&!this.masked&&(this.maskedValue=this.unmaskedValue)}},masked(){this.emitInput()}},methods:{onInput({target:t}){this.maskedValue=t.value,this.unmaskedValue=t.unmaskedValue,this.modelModifiers.lazy||this.emitInput()},onChange(){this.$emit("change",this.emittedValue),this.modelModifiers.lazy&&this.emitInput()},emitInput(){this.$emit("update:model-value",this.emittedValue)}}},CU=["value"];function SU(t,e,n,i,s,r){const o=a.resolveDirective("facade");return a.withDirectives((a.openBlock(),a.createElementBlock("input",{type:"text",value:s.maskedValue,onInput:e[0]||(e[0]=(...c)=>r.onInput&&r.onInput(...c)),onChange:e[1]||(e[1]=(...c)=>r.onChange&&r.onChange(...c)),onKeyup:e[2]||(e[2]=c=>t.$emit("keyup",c)),onKeydown:e[3]||(e[3]=c=>t.$emit("keydown",c)),onPaste:e[4]||(e[4]=c=>t.$emit("paste",c))},null,40,CU)),[[o,r.config]])}const gv=kU(xU,[["render",SU]]),MU={install(t,e={}){e.tokens&&bU(e.tokens),t.component(gv.name,gv),t.directive(e.name||"facade",Rl)}};typeof window<"u"&&window.Vue&&window.Vue.use(MU);const Ace="",OU={directives:{money:_U,cdstip:Yo,facade:Rl},components:{CdsLink:su,CdsIcon:$t,CdsSpinner:fa},props:{modelValue:{type:[Number,String],default:0},unmaskedValue:{type:[Number,String],default:0},label:{type:String,default:"Label"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a informa\xE7\xE3o"},errorMessage:{type:String,default:"Valor inv\xE1lido"},fluid:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},money:{type:Boolean,default:!1},linkText:{type:String,default:null},linkUrl:{type:String,default:"https://cuida.framer.wiki/"}},data(){return{internalValue:"",isBeingFocused:!1,moneyDirectiveConfig:{decimal:",",thousands:".",prefix:"R$ ",precision:2,masked:!1}}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},stepperInputDynamicClass(){let t=this.fluid?"text-input--fluid":"text-input";return this.isBeingFocused?this.disabled||(this.state==="default"?t+=" text-input--focused":this.state==="valid"?t+=" text-input--focused-valid":this.state==="invalid"?t+=" text-input--focused-invalid":this.state==="loading"&&(t+=" text-input--focused-loading")):this.disabled?t+=" text-input--disabled":this.state==="valid"?t+=" text-input--valid":this.state==="invalid"&&(t+=" text-input--invalid"),t},labelDynamicClass(){return this.fluid?"text-input__label--fluid":"text-input__label"},validState(){return this.state==="valid"},errorState(){return this.state==="invalid"},loadingState(){return this.state==="loading"},inputClass(){return this.fluid?"text-input__field--fluid":"text-input__field"}},watch:{modelValue:{handler(t,e){t!==e&&(this.internalValue=t)},immediate:!0},internalValue(t){let e=String(t);if(this.money){let n=e.replace("R$ ","");n=n.replaceAll(".",","),n=n.replace(/(.*),(\d{2})/g,"$1.$2"),n=n.replaceAll(",",""),this.$emit("update:unmaskedValue",+n),this.$emit("update:modelValue",e)}else e.length>15?this.internalValue=+e.slice(0,15):(this.$emit("update:modelValue",+e),this.$emit("update:unmaskedValue",+e))}},methods:{handleBlur(){this.isBeingFocused=!1,this.$emit("blur",!0)},handleFocus(){this.isBeingFocused=!0,this.$emit("focus",!0)}}},DU={key:0},EU={class:"label__content",for:"cds-text-input"},TU={key:0,class:"label__required-indicator"},IU=["placeholder","disabled"],BU=["placeholder","disabled"],AU={class:"text-input__icon-container"},VU={key:0,class:"text-input__error-message"};function $U(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-link"),d=a.resolveComponent("cds-spinner"),h=a.resolveDirective("cdstip"),f=a.resolveDirective("money");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",DU,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",{key:1,class:a.normalizeClass(r.labelDynamicClass)},[a.createElementVNode("div",EU,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",TU," * ")):a.createCommentVNode("",!0),n.tooltip?a.withDirectives((a.openBlock(),a.createBlock(o,{key:1,name:n.tooltipIcon,height:"20",width:"20",class:"label__icon"},null,8,["name"])),[[h,n.tooltip]]):a.createCommentVNode("",!0)]),n.linkText?(a.openBlock(),a.createBlock(c,{key:0,class:"label__link",href:n.linkUrl,text:n.linkText,"new-tab":""},null,8,["href","text"])):a.createCommentVNode("",!0)],2))]),a.createElementVNode("div",{class:a.normalizeClass(r.stepperInputDynamicClass)},[n.money?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,id:"cds-text-input","onUpdate:modelValue":e[0]||(e[0]=m=>s.internalValue=m),placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),onFocus:e[1]||(e[1]=(...m)=>r.handleFocus&&r.handleFocus(...m)),onBlur:e[2]||(e[2]=(...m)=>r.handleBlur&&r.handleBlur(...m))},null,42,IU)),[[a.vModelText,s.internalValue,void 0,{lazy:!0}],[f,s.moneyDirectiveConfig]]):a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:1,id:"cds-text-input","onUpdate:modelValue":e[3]||(e[3]=m=>s.internalValue=m),placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),type:"number",onFocus:e[4]||(e[4]=(...m)=>r.handleFocus&&r.handleFocus(...m)),onBlur:e[5]||(e[5]=(...m)=>r.handleBlur&&r.handleBlur(...m))},null,42,BU)),[[a.vModelText,s.internalValue]]),a.createElementVNode("div",AU,[r.validState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:0,height:"20",width:"20",name:"check-outline",class:"text-input__icon--check-icon"})):a.createCommentVNode("",!0),r.errorState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:1,height:"20",width:"20",name:"alert-outline",class:"text-input__icon--alert-circle-icon"})):a.createCommentVNode("",!0),r.loadingState&&!n.disabled?(a.openBlock(),a.createBlock(d,{key:2,size:"sm",variant:"blue",class:"text-input__icon--spinner-icon"})):a.createCommentVNode("",!0)])],2),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",VU,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const NU=oe(OU,[["render",$U],["__scopeId","data-v-3acacd68"]]),Vce="",zU={},PU={class:"page-container__container"};function LU(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",PU,[a.renderSlot(t.$slots,"default",{},void 0,!0)])}const FU=oe(zU,[["render",LU],["__scopeId","data-v-2f5908a0"]]),$ce="",RU={components:{CdsLink:su},props:{title:{type:String,required:!0},subtitle:{type:String,default:null},compact:{type:Boolean,default:!1}},data(){return{hasURL:!1,url:"",splitedSubtitle:[]}},computed:{fancyUrl(){return this.url.split(/http:\/\/|https:\/\//)[1]}},mounted(){this.computedSubtitle()},methods:{computedSubtitle(){const t=/\b(?:http:\/\/|https:\/\/)?[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,}(?:\/\S*)?/g,e=this.subtitle.match(t);e&&e.length>0&&(this.splitedSubtitle=this.subtitle.split(e[0]),this.url=e[0])}}},HU={class:"page-header__title"},WU={key:0,class:"d-flex"},YU={class:"page-header__subtitle"},jU={key:1,class:"page-header__subtitle"},UU={class:"page-header__aside-slot"};function qU(t,e,n,i,s,r){const o=a.resolveComponent("cds-link");return a.openBlock(),a.createElementBlock("header",{class:a.normalizeClass(n.compact?"page-header__container--compact":"page-header__container")},[a.createElementVNode("div",null,[a.createElementVNode("p",HU,a.toDisplayString(n.title),1),s.splitedSubtitle.length>0?(a.openBlock(),a.createElementBlock("div",WU,[a.createElementVNode("span",YU,[a.createTextVNode(a.toDisplayString(s.splitedSubtitle[0])+" ",1),a.createVNode(o,{href:s.url,bold:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(r.fancyUrl),1)]),_:1},8,["href"]),a.createTextVNode(" "+a.toDisplayString(s.splitedSubtitle[1]),1)])])):(a.openBlock(),a.createElementBlock("div",jU,a.toDisplayString(n.subtitle),1))]),a.createElementVNode("div",UU,[a.renderSlot(t.$slots,"aside")])],2)}const GU=oe(RU,[["render",qU]]);class Wn{constructor(e,n,i,s=null){this.index=e,this.value=n,this.selected=i,this.text=s||n}}const Nce="",KU={components:{CdsChevron:jo},props:{modelValue:{type:[Number,String],default:1},total:{type:Number,default:1,validator:t=>t>=1},perPage:{type:Number,default:1,validator:t=>t>=1},fluid:{type:Boolean,default:!1},variant:{type:String,default:"green"}},data(){return{selectedPage:new Wn(null,parseInt(this.modelValue,10),!0),pages:[]}},computed:{pageCount(){return this.total/this.perPage<1?1:Math.ceil(this.total/this.perPage)},computedContainerClass(){return this.fluid?"pagination__container--fluid":"pagination__container"}},watch:{modelValue(t,e){t===e||t===this.selectedPage.value||(this.selectedPage=new Wn(null,parseInt(t,10),!0),this.resolvePages())}},beforeMount(){this.resolvePages()},methods:{resolveButtonClass(t){switch(t.index){case 0:return this.selectedPage.value===1?"pagination__button--first pagination__button--disabled":"pagination__button--first";case 1:return this.selectedPage.value===1?"pagination__button pagination__button--disabled":"pagination__button";case 7:return this.selectedPage.value===this.pageCount?"pagination__button pagination__button--disabled":"pagination__button";case 8:return this.selectedPage.value===this.pageCount?"pagination__button--last pagination__button--disabled":"pagination__button--last";default:return t.selected?Mg("pagination__button--active",this.variant):"pagination__button"}},resolvePages(){this.pages=[new Wn(0,"first",!1,"<<"),new Wn(1,"back",!1,"<"),...this.mountPagesArray(),new Wn(7,"forward",!1,">"),new Wn(8,"last",!1,">>")]},mountPagesArray(){const t=this.pageCount<5?this.pageCount+2:7,e=[];if(this.selectedPage.value<=3||this.pageCount<=5){this.selectedPage.index=this.selectedPage.value;for(let n=2;n<t;n++)e[n-2]=new Wn(n,n-1,this.selectedPage.value===n-1);return e}if(this.selectedPage.value<=this.pageCount-2){for(let n=2;n<t;n++){const i=this.selectedPage.value-4+n;e[n-2]=new Wn(n+1,i,this.selectedPage.value===i)}return e}for(let n=2;n<t;n++){const i=this.pageCount-6+n;e[n-2]=new Wn(n,i,this.selectedPage.value===i)}return e},handlePageClick(t){switch(t.value){case this.selectedPage.value:return;case"first":if(this.selectedPage.index===1)return;this.selectedPage=new Wn(null,1,!0),this.$emit("update:modelValue",1),this.resolvePages();return;case"last":if(this.selectedPage.index===this.pageCount)return;this.selectedPage=new Wn(null,this.pageCount,!0),this.$emit("update:modelValue",this.pageCount),this.resolvePages();return;case"back":if(this.selectedPage.index===1)return;this.$emit("update:modelValue",this.selectedPage.value-1),this.selectedPage=new Wn(null,this.selectedPage.value-1,!0),this.resolvePages();return;case"forward":if(this.selectedPage.value===this.pageCount)return;this.$emit("update:modelValue",this.selectedPage.value+1),this.selectedPage=new Wn(null,this.selectedPage.value+1,!0),this.resolvePages();return;default:this.selectedPage=new Wn(null,t.value,!0),this.$emit("update:modelValue",t.value),this.resolvePages();break}}}},ZU=["onClick"],XU={key:3};function JU(t,e,n,i,s,r){const o=a.resolveComponent("cds-chevron");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(r.computedContainerClass)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.pages,(c,d)=>(a.openBlock(),a.createElementBlock("div",{key:d,class:a.normalizeClass(r.resolveButtonClass(c)),onClick:h=>r.handlePageClick(c)},[d===0?(a.openBlock(),a.createBlock(o,{key:0,direction:"left",class:"pagination__double-chevron--left"})):a.createCommentVNode("",!0),d===0?(a.openBlock(),a.createBlock(o,{key:1,direction:"left",class:"pagination__double-chevron--left"})):a.createCommentVNode("",!0),d===1?(a.openBlock(),a.createBlock(o,{key:2,direction:"left"})):a.createCommentVNode("",!0),d>=2&&d<=s.pages.length-3?(a.openBlock(),a.createElementBlock("span",XU,a.toDisplayString(c.text),1)):a.createCommentVNode("",!0),d===s.pages.length-2?(a.openBlock(),a.createBlock(o,{key:4,direction:"right"})):a.createCommentVNode("",!0),d===s.pages.length-1?(a.openBlock(),a.createBlock(o,{key:5,direction:"right",class:"pagination__double-chevron--right"})):a.createCommentVNode("",!0),d===s.pages.length-1?(a.openBlock(),a.createBlock(o,{key:6,direction:"right",class:"pagination__double-chevron--right"})):a.createCommentVNode("",!0)],10,ZU))),128))],2)}const QU=oe(KU,[["render",JU],["__scopeId","data-v-69f01ddb"]]),zce="",eq={components:{CdsBox:bl,CdsDivider:Tc},props:{title:{type:String,default:"T\xEDtulo",required:!0},subtitle:{type:String,default:"Subt\xEDtulo",required:!0},noContentPadding:{type:Boolean,default:!1}},computed:{contentClass(){return this.noContentPadding?"panel-card__content--no-pading":"panel-card__content"}}},tq=t=>(a.pushScopeId("data-v-e1c5a182"),t=t(),a.popScopeId(),t),nq={class:"panel-card__header"},iq={class:"panel-card__title"},sq=tq(()=>a.createElementVNode("br",null,null,-1)),rq={class:"panel-card__subtitle"};function aq(t,e,n,i,s,r){const o=a.resolveComponent("cds-divider"),c=a.resolveComponent("cds-box");return a.openBlock(),a.createBlock(c,{class:"panel-card",padding:"0",fluid:""},{default:a.withCtx(()=>[a.createElementVNode("div",nq,[a.createElementVNode("div",null,[a.createElementVNode("span",iq,a.toDisplayString(n.title),1),sq,a.createElementVNode("span",rq,a.toDisplayString(n.subtitle),1)]),a.createElementVNode("div",null,[a.renderSlot(t.$slots,"panel-actions",{},void 0,!0)])]),a.createVNode(o,{dimmed:""}),a.createElementVNode("div",{class:a.normalizeClass(r.contentClass)},[a.renderSlot(t.$slots,"default",{},void 0,!0)],2)]),_:3})}const oq=oe(eq,[["render",aq],["__scopeId","data-v-e1c5a182"]]),Pce="",lq={props:{modelValue:{type:String,default:""},length:{type:Number,default:4},state:{type:String,default:"default"},visible:{type:Boolean,default:!1}},data(){return{innerValue:this.modelValue.split("")}},computed:{computedClass(){switch(this.state){case"valid":return"pin-input--valid";case"invalid":return"pin-input--invalid";default:return"pin-input"}}},watch:{modelValue(t){this.innerValue=t.split("")}},methods:{handleInput(t,e){let n=this.innerValue.join("");e<this.length&&t.inputType!=="deleteContentBackward"&&this.$refs[`pin-input${e+1}`][0].focus(),n.length===this.length&&this.$emit("update:modelValue",n)},handleBack(t){if(t>1){this.innerValue[t-1]="";let e=this.$refs[`pin-input${t-1}`][0];setTimeout(()=>{e.focus()},150)}},fixCursorPosition(t){let e=this.$refs[`pin-input${t}`][0];setTimeout(()=>{e.setSelectionRange(1,1)},3)},changeInputContent(t,e){this.$refs[`pin-input${e}`][0].value=t.key,e<this.length&&this.$refs[`pin-input${e+1}`][0].focus()}}},cq={class:"pin-input__container"},dq=["id","onUpdate:modelValue","type","onKeydown","onKeypress","onInput","onFocus"];function uq(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",cq,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.length,(o,c)=>a.withDirectives((a.openBlock(),a.createElementBlock("input",{id:`pin-input${o}`,key:c,ref_for:!0,ref:`pin-input${o}`,"onUpdate:modelValue":d=>s.innerValue[o-1]=d,type:n.visible?"text":"password",maxlength:"1",class:a.normalizeClass(["pin-input",r.computedClass]),autocomplete:"off",onKeydown:a.withKeys(a.withModifiers(d=>r.handleBack(o),["stop"]),["delete"]),onKeypress:d=>r.changeInputContent(d,o),onInput:d=>r.handleInput(d,o),onFocus:d=>r.fixCursorPosition(o)},null,42,dq)),[[a.vModelDynamic,s.innerValue[o-1]]])),128))])}const hq=oe(lq,[["render",uq],["__scopeId","data-v-d11b9fb6"]]),Lce="",Yh={props:{variant:{type:String,default:"green"},value:{type:Number,default:0,required:!0},showText:{type:Boolean,default:!1,required:!1},textAside:{type:Boolean,default:!1}},computed:{formatedvalue(){return`${parseInt(this.value*100,10)}%`},progressIndicatorStyle(){return{"--width":this.formatedvalue,"--leftMargin":this.textAside?"3":"10","--bottomMargin":this.textAside?"10":"2"}},textDirection(){return this.textAside?"row-reverse":"column"}}},_v=()=>{a.useCssVars(t=>({bf5feb56:t.textDirection}))},vv=Yh.setup;Yh.setup=vv?(t,e)=>(_v(),vv(t,e)):_v;const fq=Yh,pq={class:"progress-bar"},mq={class:"progress-bar__content"};function gq(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",pq,[n.showText?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(n.textAside?"bar__text--aside":"bar__text")},a.toDisplayString(r.formatedvalue),3)):a.createCommentVNode("",!0),a.createElementVNode("div",mq,[a.createElementVNode("div",{class:a.normalizeClass(`progress-bar__indicator--${n.variant}`),style:a.normalizeStyle(r.progressIndicatorStyle)},null,6)])])}const _q=oe(fq,[["render",gq],["__scopeId","data-v-d3a3d8d6"]]),Fce="",vq={props:{variant:{type:String,default:"green"},size:{type:String,default:"md",required:!1},value:{type:Number,default:0,required:!0},maxValue:{type:Number,default:100,required:!1},slim:{type:Boolean,default:!1},thick:{type:Boolean,default:!1},noLabel:{type:Boolean,default:!1}},computed:{label(){return this.maxValue>=100?`${Math.round(100*this.value/this.maxValue)}%`:`${this.value}/${this.maxValue}`},normalizedDashArray(){return`${100*this.value/this.maxValue}, 100`},stroke(){return this.slim?1.5:this.thick?4.5:3.5},labelClass(){return`progress-circular__label${this.maxValue>=100?"--reduced":""}`},circleIndicatorStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},methods:{colorHexCode:Fl}},yq=["stroke","stroke-width"],bq=["stroke-dasharray","stroke-width"];function wq(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("svg",{class:a.normalizeClass(["progress-circular",`progress-circular--${n.size}`]),viewBox:"0 0 36 36"},[a.createElementVNode("path",{class:"progress-circular__ring-background",stroke:t.backgroundColor,"stroke-width":r.stroke,d:`M18 2.0845
39
39
  a 15.9155 15.9155 0 0 1 0 31.831
40
40
  a 15.9155 15.9155 0 0 1 0 -31.831`},null,8,yq),a.createElementVNode("path",{class:a.normalizeClass(`progress-circular__ring-progress--${n.variant}`),"stroke-dasharray":r.normalizedDashArray,"stroke-width":r.stroke-1,style:a.normalizeStyle(r.circleIndicatorStyle),d:`M18 2.0845
41
41
  a 15.9155 15.9155 0 0 1 0 31.831
@@ -67,5 +67,5 @@ __p += '`),Ke&&(Q+=`' +
67
67
  function print() { __p += __j.call(arguments, '') }
68
68
  `:`;
69
69
  `)+Q+`return __p
70
- }`;var Pe=Ob(function(){return at(D,ye+"return "+Q).apply(n,I)});if(Pe.source=Q,Yf(Pe))throw Pe;return Pe}function One(l){return ct(l).toLowerCase()}function Dne(l){return ct(l).toUpperCase()}function Ene(l,u,p){if(l=ct(l),l&&(p||u===n))return Nv(l);if(!l||!(u=si(u)))return l;var _=Wi(l),w=Wi(u),D=zv(_,w),I=Pv(_,w)+1;return _r(_,D,I).join("")}function Tne(l,u,p){if(l=ct(l),l&&(p||u===n))return l.slice(0,Fv(l)+1);if(!l||!(u=si(u)))return l;var _=Wi(l),w=Pv(_,Wi(u))+1;return _r(_,0,w).join("")}function Ine(l,u,p){if(l=ct(l),l&&(p||u===n))return l.replace(ks,"");if(!l||!(u=si(u)))return l;var _=Wi(l),w=zv(_,Wi(u));return _r(_,w).join("")}function Bne(l,u){var p=ee,_=ne;if(Rt(u)){var w="separator"in u?u.separator:w;p="length"in u?ze(u.length):p,_="omission"in u?si(u.omission):_}l=ct(l);var D=l.length;if(wo(l)){var I=Wi(l);D=I.length}if(p>=D)return l;var V=p-ko(_);if(V<1)return _;var P=I?_r(I,0,V).join(""):l.slice(0,V);if(w===n)return P+_;if(I&&(V+=P.length-V),jf(w)){if(l.slice(V).search(w)){var Z,X=P;for(w.global||(w=of(w.source,ct(an.exec(w))+"g")),w.lastIndex=0;Z=w.exec(X);)var Q=Z.index;P=P.slice(0,Q===n?V:Q)}}else if(l.indexOf(si(w),V)!=V){var de=P.lastIndexOf(w);de>-1&&(P=P.slice(0,de))}return P+_}function Ane(l){return l=ct(l),l&&rt.test(l)?l.replace(ke,lX):l}var Vne=Eo(function(l,u,p){return l+(p?" ":"")+u.toUpperCase()}),Gf=Dy("toUpperCase");function Mb(l,u,p){return l=ct(l),u=p?n:u,u===n?iX(l)?uX(l):GZ(l):l.match(u)||[]}var Ob=Fe(function(l,u){try{return hn(l,n,u)}catch(p){return Yf(p)?p:new Be(p)}}),$ne=As(function(l,u){return xi(u,function(p){p=as(p),Is(l,p,Hf(l[p],l))}),l});function Nne(l){var u=l==null?0:l.length,p=Se();return l=u?Pt(l,function(_){if(typeof _[1]!="function")throw new Ci(o);return[p(_[0]),_[1]]}):[],Fe(function(_){for(var w=-1;++w<u;){var D=l[w];if(hn(D[0],this,_))return hn(D[1],this,_)}})}function zne(l){return lJ(Mi(l,m))}function Kf(l){return function(){return l}}function Pne(l,u){return l==null||l!==l?u:l}var Lne=Ty(),Fne=Ty(!0);function Kn(l){return l}function Zf(l){return ay(typeof l=="function"?l:Mi(l,m))}function Rne(l){return ly(Mi(l,m))}function Hne(l,u){return cy(l,Mi(u,m))}var Wne=Fe(function(l,u){return function(p){return gc(p,l,u)}}),Yne=Fe(function(l,u){return function(p){return gc(l,p,u)}});function Xf(l,u,p){var _=fn(u),w=Tu(u,_);p==null&&!(Rt(u)&&(w.length||!_.length))&&(p=u,u=l,l=this,w=Tu(u,fn(u)));var D=!(Rt(p)&&"chain"in p)||!!p.chain,I=$s(l);return xi(w,function(V){var P=u[V];l[V]=P,I&&(l.prototype[V]=function(){var Z=this.__chain__;if(D||Z){var X=l(this.__wrapped__),Q=X.__actions__=Un(this.__actions__);return Q.push({func:P,args:arguments,thisArg:l}),X.__chain__=Z,X}return P.apply(l,ur([this.value()],arguments))})}),l}function jne(){return He._===this&&(He._=_X),this}function Jf(){}function Une(l){return l=ze(l),Fe(function(u){return dy(u,l)})}var qne=Ef(Pt),Gne=Ef(Iv),Kne=Ef(Qh);function Db(l){return Nf(l)?ef(as(l)):SJ(l)}function Zne(l){return function(u){return l==null?n:la(l,u)}}var Xne=By(),Jne=By(!0);function Qf(){return[]}function ep(){return!1}function Qne(){return{}}function eie(){return""}function tie(){return!0}function nie(l,u){if(l=ze(l),l<1||l>_e)return[];var p=fe,_=On(l,fe);u=Se(u),l-=fe;for(var w=sf(_,u);++p<l;)u(p);return w}function iie(l){return Ve(l)?Pt(l,as):ri(l)?[l]:Un(Gy(ct(l)))}function sie(l){var u=++mX;return ct(l)+u}var rie=Nu(function(l,u){return l+u},0),aie=Tf("ceil"),oie=Nu(function(l,u){return l/u},1),lie=Tf("floor");function cie(l){return l&&l.length?Eu(l,Kn,mf):n}function die(l,u){return l&&l.length?Eu(l,Se(u,2),mf):n}function uie(l){return Vv(l,Kn)}function hie(l,u){return Vv(l,Se(u,2))}function fie(l){return l&&l.length?Eu(l,Kn,yf):n}function pie(l,u){return l&&l.length?Eu(l,Se(u,2),yf):n}var mie=Nu(function(l,u){return l*u},1),gie=Tf("round"),_ie=Nu(function(l,u){return l-u},0);function vie(l){return l&&l.length?nf(l,Kn):0}function yie(l,u){return l&&l.length?nf(l,Se(u,2)):0}return S.after=Ree,S.ary=rb,S.assign=Dte,S.assignIn=yb,S.assignInWith=Ku,S.assignWith=Ete,S.at=Tte,S.before=ab,S.bind=Hf,S.bindAll=$ne,S.bindKey=ob,S.castArray=Qee,S.chain=nb,S.chunk=lQ,S.compact=cQ,S.concat=dQ,S.cond=Nne,S.conforms=zne,S.constant=Kf,S.countBy=vee,S.create=Ite,S.curry=lb,S.curryRight=cb,S.debounce=db,S.defaults=Bte,S.defaultsDeep=Ate,S.defer=Hee,S.delay=Wee,S.difference=uQ,S.differenceBy=hQ,S.differenceWith=fQ,S.drop=pQ,S.dropRight=mQ,S.dropRightWhile=gQ,S.dropWhile=_Q,S.fill=vQ,S.filter=bee,S.flatMap=xee,S.flatMapDeep=Cee,S.flatMapDepth=See,S.flatten=Jy,S.flattenDeep=yQ,S.flattenDepth=bQ,S.flip=Yee,S.flow=Lne,S.flowRight=Fne,S.fromPairs=wQ,S.functions=Fte,S.functionsIn=Rte,S.groupBy=Mee,S.initial=xQ,S.intersection=CQ,S.intersectionBy=SQ,S.intersectionWith=MQ,S.invert=Wte,S.invertBy=Yte,S.invokeMap=Dee,S.iteratee=Zf,S.keyBy=Eee,S.keys=fn,S.keysIn=Gn,S.map=Wu,S.mapKeys=Ute,S.mapValues=qte,S.matches=Rne,S.matchesProperty=Hne,S.memoize=ju,S.merge=Gte,S.mergeWith=bb,S.method=Wne,S.methodOf=Yne,S.mixin=Xf,S.negate=Uu,S.nthArg=Une,S.omit=Kte,S.omitBy=Zte,S.once=jee,S.orderBy=Tee,S.over=qne,S.overArgs=Uee,S.overEvery=Gne,S.overSome=Kne,S.partial=Wf,S.partialRight=ub,S.partition=Iee,S.pick=Xte,S.pickBy=wb,S.property=Db,S.propertyOf=Zne,S.pull=TQ,S.pullAll=eb,S.pullAllBy=IQ,S.pullAllWith=BQ,S.pullAt=AQ,S.range=Xne,S.rangeRight=Jne,S.rearg=qee,S.reject=Vee,S.remove=VQ,S.rest=Gee,S.reverse=Ff,S.sampleSize=Nee,S.set=Qte,S.setWith=ene,S.shuffle=zee,S.slice=$Q,S.sortBy=Fee,S.sortedUniq=HQ,S.sortedUniqBy=WQ,S.split=xne,S.spread=Kee,S.tail=YQ,S.take=jQ,S.takeRight=UQ,S.takeRightWhile=qQ,S.takeWhile=GQ,S.tap=cee,S.throttle=Zee,S.thru=Hu,S.toArray=gb,S.toPairs=kb,S.toPairsIn=xb,S.toPath=iie,S.toPlainObject=vb,S.transform=tne,S.unary=Xee,S.union=KQ,S.unionBy=ZQ,S.unionWith=XQ,S.uniq=JQ,S.uniqBy=QQ,S.uniqWith=eee,S.unset=nne,S.unzip=Rf,S.unzipWith=tb,S.update=ine,S.updateWith=sne,S.values=Bo,S.valuesIn=rne,S.without=tee,S.words=Mb,S.wrap=Jee,S.xor=nee,S.xorBy=iee,S.xorWith=see,S.zip=ree,S.zipObject=aee,S.zipObjectDeep=oee,S.zipWith=lee,S.entries=kb,S.entriesIn=xb,S.extend=yb,S.extendWith=Ku,Xf(S,S),S.add=rie,S.attempt=Ob,S.camelCase=cne,S.capitalize=Cb,S.ceil=aie,S.clamp=ane,S.clone=ete,S.cloneDeep=nte,S.cloneDeepWith=ite,S.cloneWith=tte,S.conformsTo=ste,S.deburr=Sb,S.defaultTo=Pne,S.divide=oie,S.endsWith=dne,S.eq=ji,S.escape=une,S.escapeRegExp=hne,S.every=yee,S.find=wee,S.findIndex=Zy,S.findKey=Vte,S.findLast=kee,S.findLastIndex=Xy,S.findLastKey=$te,S.floor=lie,S.forEach=ib,S.forEachRight=sb,S.forIn=Nte,S.forInRight=zte,S.forOwn=Pte,S.forOwnRight=Lte,S.get=Uf,S.gt=rte,S.gte=ate,S.has=Hte,S.hasIn=qf,S.head=Qy,S.identity=Kn,S.includes=Oee,S.indexOf=kQ,S.inRange=one,S.invoke=jte,S.isArguments=ua,S.isArray=Ve,S.isArrayBuffer=ote,S.isArrayLike=qn,S.isArrayLikeObject=Kt,S.isBoolean=lte,S.isBuffer=vr,S.isDate=cte,S.isElement=dte,S.isEmpty=ute,S.isEqual=hte,S.isEqualWith=fte,S.isError=Yf,S.isFinite=pte,S.isFunction=$s,S.isInteger=hb,S.isLength=qu,S.isMap=fb,S.isMatch=mte,S.isMatchWith=gte,S.isNaN=_te,S.isNative=vte,S.isNil=bte,S.isNull=yte,S.isNumber=pb,S.isObject=Rt,S.isObjectLike=jt,S.isPlainObject=kc,S.isRegExp=jf,S.isSafeInteger=wte,S.isSet=mb,S.isString=Gu,S.isSymbol=ri,S.isTypedArray=Io,S.isUndefined=kte,S.isWeakMap=xte,S.isWeakSet=Cte,S.join=OQ,S.kebabCase=fne,S.last=Di,S.lastIndexOf=DQ,S.lowerCase=pne,S.lowerFirst=mne,S.lt=Ste,S.lte=Mte,S.max=cie,S.maxBy=die,S.mean=uie,S.meanBy=hie,S.min=fie,S.minBy=pie,S.stubArray=Qf,S.stubFalse=ep,S.stubObject=Qne,S.stubString=eie,S.stubTrue=tie,S.multiply=mie,S.nth=EQ,S.noConflict=jne,S.noop=Jf,S.now=Yu,S.pad=gne,S.padEnd=_ne,S.padStart=vne,S.parseInt=yne,S.random=lne,S.reduce=Bee,S.reduceRight=Aee,S.repeat=bne,S.replace=wne,S.result=Jte,S.round=gie,S.runInContext=z,S.sample=$ee,S.size=Pee,S.snakeCase=kne,S.some=Lee,S.sortedIndex=NQ,S.sortedIndexBy=zQ,S.sortedIndexOf=PQ,S.sortedLastIndex=LQ,S.sortedLastIndexBy=FQ,S.sortedLastIndexOf=RQ,S.startCase=Cne,S.startsWith=Sne,S.subtract=_ie,S.sum=vie,S.sumBy=yie,S.template=Mne,S.times=nie,S.toFinite=Ns,S.toInteger=ze,S.toLength=_b,S.toLower=One,S.toNumber=Ei,S.toSafeInteger=Ote,S.toString=ct,S.toUpper=Dne,S.trim=Ene,S.trimEnd=Tne,S.trimStart=Ine,S.truncate=Bne,S.unescape=Ane,S.uniqueId=sie,S.upperCase=Vne,S.upperFirst=Gf,S.each=ib,S.eachRight=sb,S.first=Qy,Xf(S,function(){var l={};return ss(S,function(u,p){gt.call(S.prototype,p)||(l[p]=u)}),l}(),{chain:!1}),S.VERSION=i,xi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){S[l].placeholder=S}),xi(["drop","take"],function(l,u){qe.prototype[l]=function(p){p=p===n?1:ln(ze(p),0);var _=this.__filtered__&&!u?new qe(this):this.clone();return _.__filtered__?_.__takeCount__=On(p,_.__takeCount__):_.__views__.push({size:On(p,fe),type:l+(_.__dir__<0?"Right":"")}),_},qe.prototype[l+"Right"]=function(p){return this.reverse()[l](p).reverse()}}),xi(["filter","map","takeWhile"],function(l,u){var p=u+1,_=p==pe||p==ue;qe.prototype[l]=function(w){var D=this.clone();return D.__iteratees__.push({iteratee:Se(w,3),type:p}),D.__filtered__=D.__filtered__||_,D}}),xi(["head","last"],function(l,u){var p="take"+(u?"Right":"");qe.prototype[l]=function(){return this[p](1).value()[0]}}),xi(["initial","tail"],function(l,u){var p="drop"+(u?"":"Right");qe.prototype[l]=function(){return this.__filtered__?new qe(this):this[p](1)}}),qe.prototype.compact=function(){return this.filter(Kn)},qe.prototype.find=function(l){return this.filter(l).head()},qe.prototype.findLast=function(l){return this.reverse().find(l)},qe.prototype.invokeMap=Fe(function(l,u){return typeof l=="function"?new qe(this):this.map(function(p){return gc(p,l,u)})}),qe.prototype.reject=function(l){return this.filter(Uu(Se(l)))},qe.prototype.slice=function(l,u){l=ze(l);var p=this;return p.__filtered__&&(l>0||u<0)?new qe(p):(l<0?p=p.takeRight(-l):l&&(p=p.drop(l)),u!==n&&(u=ze(u),p=u<0?p.dropRight(-u):p.take(u-l)),p)},qe.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},qe.prototype.toArray=function(){return this.take(fe)},ss(qe.prototype,function(l,u){var p=/^(?:filter|find|map|reject)|While$/.test(u),_=/^(?:head|last)$/.test(u),w=S[_?"take"+(u=="last"?"Right":""):u],D=_||/^find/.test(u);!w||(S.prototype[u]=function(){var I=this.__wrapped__,V=_?[1]:arguments,P=I instanceof qe,Z=V[0],X=P||Ve(I),Q=function(je){var Ke=w.apply(S,ur([je],V));return _&&de?Ke[0]:Ke};X&&p&&typeof Z=="function"&&Z.length!=1&&(P=X=!1);var de=this.__chain__,ye=!!this.__actions__.length,Oe=D&&!de,Pe=P&&!ye;if(!D&&X){I=Pe?I:new qe(this);var De=l.apply(I,V);return De.__actions__.push({func:Hu,args:[Q],thisArg:n}),new Si(De,de)}return Oe&&Pe?l.apply(this,V):(De=this.thru(Q),Oe?_?De.value()[0]:De.value():De)})}),xi(["pop","push","shift","sort","splice","unshift"],function(l){var u=pu[l],p=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);S.prototype[l]=function(){var w=arguments;if(_&&!this.__chain__){var D=this.value();return u.apply(Ve(D)?D:[],w)}return this[p](function(I){return u.apply(Ve(I)?I:[],w)})}}),ss(qe.prototype,function(l,u){var p=S[u];if(p){var _=p.name+"";gt.call(Mo,_)||(Mo[_]=[]),Mo[_].push({name:u,func:p})}}),Mo[$u(n,O).name]=[{name:"wrapper",func:n}],qe.prototype.clone=AX,qe.prototype.reverse=VX,qe.prototype.value=$X,S.prototype.at=dee,S.prototype.chain=uee,S.prototype.commit=hee,S.prototype.next=fee,S.prototype.plant=mee,S.prototype.reverse=gee,S.prototype.toJSON=S.prototype.valueOf=S.prototype.value=_ee,S.prototype.first=S.prototype.head,cc&&(S.prototype[cc]=pee),S},xo=hX();zt?((zt.exports=xo)._=xo,Ze._=xo):He._=xo}).call(cn)})(Gr,Gr.exports);const tde="",rK={components:{CdsCheckbox:b0,CdsIcon:$t,CdsClickable:Ls},props:{modelValue:{type:Array,default:()=>[]},items:{type:Array,required:!0,default:()=>[]},fields:{type:Array,default:()=>[]},hover:{type:Boolean,default:!1},allowSelection:{type:Boolean,default:!1},selectionVariant:{type:String,default:"green"},sortable:{type:Boolean,default:!1},sortBy:{type:String,default:null},sortDesc:{type:Boolean,default:!1}},data(){return{selectAll:!1,select:[],localSortDesc:this.sortDesc,localSortBy:this.sortBy,localItems:this.items}},computed:{computedFields(){return this.fields.length>0?this.fields.map(t=>typeof t=="object"?t:{key:t,label:Gr.exports.startCase(t)}):this.items.length>0?Object.keys(this.items[0]).map(t=>({key:t,label:Gr.exports.startCase(t)})):[]}},watch:{modelValue:{handler(t,e){if(t!==e){if(!t.length){this.resetSelect();return}t.forEach(n=>{const i=Gr.exports.findIndex(this.localItems,n);i>-1&&(this.select[i]=!0)})}},immediate:!0},items(t,e){Gr.exports.isEqual(t,e)||(this.localItems=t,this.resetSelect())},sortBy:{handler(t,e){t!==e&&this.handleSortBy(t)},immediate:!0},select:{handler(t){const e=this.localItems.filter((n,i)=>t[i]);this.$emit("update:modelValue",e)},deep:!0}},methods:{hasSlot:v0,resetSelect(){this.selectAll=!1;for(let t=0;t<this.localItems.length;t++)this.select[t]=!1},handleSelectAll(){for(let t=0;t<this.localItems.length;t++)this.select[t]=this.selectAll},handleSelectRow(t){if(this.selectAll&&!t){this.selectAll=!1;return}this.selectAll=this.select.reduce((e,n)=>e&&n)},handleSortBy(t){if(this.resetSelect(),this.localSortBy===t&&this.localSortDesc){this.localSortBy=null,this.localItems=this.items;return}const e=this.localSortDesc?"asc":"desc";this.localSortDesc=this.localSortBy===t?!this.localSortDesc:!1,this.localSortBy=t,this.localItems=Gr.exports.orderBy(this.items,[this.localSortBy],[e])},resolveHeaderItemClass(t){return t!==0&&t!==this.fields.length-1?"table__header-item":t===0?"table__header-item--first":"table__header-item--last"},resolveContentItemClass(t,e){return t!==this.items.length-1?"table__item":e!==0&&e!==this.fields.length-1?"table__item--common":e===0?"table__item--first":"table__item--last"},resolveItemClass(){return this.hover?"table__content--hoverable":""}}},aK={class:"table__container"},oK={class:"table__header"},lK={class:"table__header-item-content"};function cK(t,e,n,i,s,r){const o=a.resolveComponent("cds-checkbox"),c=a.resolveComponent("cds-icon"),d=a.resolveComponent("cds-clickable");return a.openBlock(),a.createElementBlock("table",aK,[a.createElementVNode("tr",oK,[n.allowSelection?(a.openBlock(),a.createElementBlock("th",{key:0,class:a.normalizeClass(["table__select-item",r.resolveHeaderItemClass(0)])},[a.createVNode(o,{id:"select-all-rows",modelValue:s.selectAll,"onUpdate:modelValue":[e[0]||(e[0]=h=>s.selectAll=h),r.handleSelectAll],class:"table__select-checkbox","no-text":"",variant:n.selectionVariant},null,8,["modelValue","variant","onUpdate:modelValue"])],2)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.computedFields,(h,f)=>(a.openBlock(),a.createElementBlock("th",{key:f,class:a.normalizeClass(r.resolveHeaderItemClass(f))},[a.createElementVNode("div",lK,[r.hasSlot(t.$slots,"header-item")?a.renderSlot(t.$slots,"header-item",{key:0,data:h},void 0,!0):(a.openBlock(),a.createBlock(d,{key:1,id:`sort-icon-${h.key}`,clickable:n.sortable,onClick:a.withModifiers(m=>r.handleSortBy(h.key),["stop"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(h.label)+" ",1),n.sortable&&h.key!==s.localSortBy?(a.openBlock(),a.createBlock(c,{key:0,class:"table__sort-icon",height:"13",width:"13",name:"swap-vertical-arrows-outline"})):n.sortable&&s.localSortDesc?(a.openBlock(),a.createBlock(c,{key:1,class:"table__sort-icon",height:"13",width:"13",name:"sort-descending-duotone"})):n.sortable?(a.openBlock(),a.createBlock(c,{key:2,class:"table__sort-icon",height:"13",width:"13",name:"sort-ascending-duotone"})):a.createCommentVNode("",!0)]),_:2},1032,["id","clickable","onClick"]))])],2))),128))]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.localItems,(h,f)=>(a.openBlock(),a.createElementBlock("tr",{key:f,class:a.normalizeClass(r.resolveItemClass())},[n.allowSelection?(a.openBlock(),a.createElementBlock("td",{key:0,class:a.normalizeClass(["table__select-item",r.resolveContentItemClass(f,0)])},[a.createVNode(o,{id:`select-row-${f}`,modelValue:s.select[f],"onUpdate:modelValue":[m=>s.select[f]=m,r.handleSelectRow],class:"table__select-checkbox","no-text":"",variant:n.selectionVariant},null,8,["id","modelValue","onUpdate:modelValue","variant"])],2)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.computedFields,(m,g)=>(a.openBlock(),a.createElementBlock("td",{key:g,class:a.normalizeClass(r.resolveContentItemClass(f,g))},[a.renderSlot(t.$slots,"table-item",{data:h,field:m.key,rowIndex:f,colIndex:g},()=>[a.createTextVNode(a.toDisplayString(h[m.key]),1)],!0)],2))),128))],2))),128))])}const dK=oe(rK,[["render",cK],["__scopeId","data-v-6fea63eb"]]),nde="",uK={components:{CdsIcon:$t},props:{tabs:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>Xt(n.title)||Xt(n.name)).length},activeTab:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:t=>jr.includes(t)},showAddAction:{type:Boolean,default:!1}},data(){return{internalActiveTab:this.activeTab,colorOptions:jr}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{tabs:{handler(t){const e=t.filter(n=>n.name===this.activeTab.name);[this.internalActiveTab]=e.length?e:t},immediate:!0}},methods:{colorHexCode:Fl,getSlotName(t){return t.name},handleRightClick(t,e){this.$emit("right-click",{event:t,item:e})},handleClick(t,e){this.$emit("tabs-change",{event:t,item:e}),this.internalActiveTab=e},handleAddAction(t){this.$emit("add-action",t)},isActive(t){return Ll(this.internalActiveTab,t)}}},hK={id:"tabs"},fK={class:"inner-tabs__header"},pK=["id"],mK=["onClick","onContextmenu"],gK={class:"inner-tabs__text"},_K={key:0,role:"presentation",class:"nav-item cds-tab__action"},vK={class:"inner-tabs__content"};function yK(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon");return a.openBlock(),a.createElementBlock("div",hK,[a.createElementVNode("ul",fK,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.tabs,(c,d)=>(a.openBlock(),a.createElementBlock("li",{id:`${d}-${c.name}-tab`,key:`${d}-${c.name}-tab`,role:"presentation",class:"inner-tabs__header-item"},[a.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:a.normalizeClass(["inner-tabs__tab",r.isActive(c)?"inner-tabs__tab--active":"inner-tabs__tab--inactive"]),style:a.normalizeStyle(r.activeBorderStyle),onClick:h=>r.handleClick(h,c),onContextmenu:a.withModifiers(h=>r.handleRightClick(h,c),["prevent","stop"])},[a.createElementVNode("span",gK,a.toDisplayString(c.title),1)],46,mK)],8,pK))),128)),n.showAddAction?(a.openBlock(),a.createElementBlock("li",_K,[a.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:"nav-link",onClick:e[0]||(e[0]=a.withModifiers((...c)=>r.handleAddAction&&r.handleAddAction(...c),["prevent"]))},[a.createVNode(o,{height:"32",width:"32",name:"plus-outline"})])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",vK,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.tabs,(c,d)=>(a.openBlock(),a.createElementBlock("div",{key:`${d}-${c.name}-tab`,role:"tabpanel",class:a.normalizeClass(["content__pane",r.isActive(c)?"content__pane--active":"content__pane--inactive"])},[a.renderSlot(t.$slots,r.getSlotName(c))],2))),128))])])}const bK=oe(uK,[["render",yK]]),ide="",wK={components:{CdsIcon:$t,CdsSpinner:fa},props:{modelValue:{type:String,default:"",required:!0},label:{type:String,default:"Label"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a descri\xE7\xE3o"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},errorMessage:{type:String,default:"Valor inv\xE1lido"},fluid:{type:Boolean,default:!1,required:!1}},data(){return{internalValue:this.modelValue}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},validState(){return this.state==="valid"},errorState(){return this.state==="invalid"},loadingState(){return this.state==="loading"},inputClass(){return this.disabled?"textarea__input--disabled":this.fluid?"textarea__input--fluid":"textarea__input"}},watch:{internalValue(t){this.$emit("update:modelValue",t)},modelValue(t){this.internalValue=this.modelValue}}},kK={key:0},xK={key:1,class:"textarea__label"},CK={class:"label__content",for:"cds-text-area"},SK={key:0,class:"label__required-indicator"},MK=["placeholder","disabled"],OK={class:"textarea__icon-container"},DK={key:0,class:"textarea__error-message"};function EK(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-spinner");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",kK,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",xK,[a.createElementVNode("div",CK,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",SK," * ")):a.createCommentVNode("",!0)])]))]),a.createElementVNode("div",null,[a.withDirectives(a.createElementVNode("textarea",{id:"textarea","onUpdate:modelValue":e[0]||(e[0]=d=>s.internalValue=d),class:a.normalizeClass(r.inputClass),placeholder:n.placeholder,disabled:n.disabled},null,10,MK),[[a.vModelText,s.internalValue]]),a.createElementVNode("div",OK,[r.validState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:0,name:"check-outline",height:"20",width:"20",color:"#239F78",class:"textarea__icon--check-icon"})):a.createCommentVNode("",!0),r.errorState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:1,name:"alert-outline",height:"20",width:"20",color:"#D22D41",class:"textarea__icon--alert-circle-icon"})):a.createCommentVNode("",!0),r.loadingState&&!n.disabled?(a.openBlock(),a.createBlock(c,{key:2,size:"sm",variant:"blue",class:"textarea__icon--spinner-icon"})):a.createCommentVNode("",!0)])]),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",DK,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const TK=oe(wK,[["render",EK],["__scopeId","data-v-f3b92320"]]),sde="",IK={directives:{cdstip:Yo,facade:Rl},components:{CdsLink:su,CdsIcon:$t,CdsSpinner:fa},props:{modelValue:{type:String,default:""},label:{type:String,default:"Label"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a informa\xE7\xE3o"},errorMessage:{type:String,default:"Valor inv\xE1lido"},fluid:{type:Boolean,default:!1,required:!1},mask:{type:[String,Array],default:null},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},linkText:{type:String,default:null},linkUrl:{type:String,default:"https://cuida.framer.wiki/"},lazy:{type:Boolean,default:!1}},data(){return{internalValue:"",isBeingFocused:!1,timeout:null}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},stepperInputDynamicClass(){let t=this.fluid?"text-input--fluid":"text-input";return this.isBeingFocused?this.disabled||(this.state==="default"?t+=" text-input--focused":this.state==="valid"?t+=" text-input--focused-valid":this.state==="invalid"?t+=" text-input--focused-invalid":this.state==="loading"&&(t+=" text-input--focused-loading")):this.disabled?t+=" text-input--disabled":this.state==="valid"?t+=" text-input--valid":this.state==="invalid"&&(t+=" text-input--invalid"),t},labelDynamicClass(){return this.fluid?"text-input__label--fluid":"text-input__label"},validState(){return this.state==="valid"},errorState(){return this.state==="invalid"},loadingState(){return this.state==="loading"},inputClass(){return this.fluid?"text-input__field--fluid":"text-input__field"},linkTextState(){return!!this.linkText}},watch:{modelValue:{handler(t,e){t!==e&&(this.internalValue=t)},immediate:!0},internalValue(t){this.lazy?this.emitLazy(t):this.$emit("update:modelValue",t)}},methods:{emitLazy(t){clearTimeout(this.timeout);const e=this;this.timeout=setTimeout(function(){e.$emit("update:modelValue",t)},1e3)}}},BK={key:0},AK={class:"label__content",for:"cds-text-input"},VK={key:0,class:"label__required-indicator"},$K=["placeholder","disabled"],NK=["placeholder","disabled"],zK={class:"text-input__icon-container"},PK={key:0,class:"text-input__error-message"};function LK(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-link"),d=a.resolveComponent("cds-spinner"),h=a.resolveDirective("cdstip"),f=a.resolveDirective("facade");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",BK,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",{key:1,class:a.normalizeClass(r.labelDynamicClass)},[a.createElementVNode("div",AK,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",VK," * ")):a.createCommentVNode("",!0),n.tooltip?a.withDirectives((a.openBlock(),a.createBlock(o,{key:1,name:n.tooltipIcon,height:"20",width:"20",class:"label__icon"},null,8,["name"])),[[h,n.tooltip]]):a.createCommentVNode("",!0)]),r.linkTextState?(a.openBlock(),a.createBlock(c,{key:0,class:"label__link",href:n.linkUrl,text:n.linkText,"new-tab":""},null,8,["href","text"])):a.createCommentVNode("",!0)],2))]),a.createElementVNode("div",{class:a.normalizeClass(r.stepperInputDynamicClass)},[n.mask?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,id:"cds-text-input","onUpdate:modelValue":e[0]||(e[0]=m=>s.internalValue=m),placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),type:"text",onFocus:e[1]||(e[1]=m=>s.isBeingFocused=!0),onBlur:e[2]||(e[2]=m=>s.isBeingFocused=!1)},null,42,$K)),[[a.vModelText,s.internalValue],[f,n.mask]]):a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:1,id:"cds-text-input","onUpdate:modelValue":e[3]||(e[3]=m=>s.internalValue=m),placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),type:"text",onFocus:e[4]||(e[4]=m=>s.isBeingFocused=!0),onBlur:e[5]||(e[5]=m=>s.isBeingFocused=!1)},null,42,NK)),[[a.vModelText,s.internalValue]]),a.createElementVNode("div",zK,[r.validState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:0,height:"20",width:"20",name:"check-outline",class:"text-input__icon--check-icon"})):a.createCommentVNode("",!0),r.errorState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:1,height:"20",width:"20",name:"alert-outline",class:"text-input__icon--alert-circle-icon"})):a.createCommentVNode("",!0),r.loadingState&&!n.disabled?(a.openBlock(),a.createBlock(d,{key:2,size:"sm",variant:"blue",class:"text-input__icon--spinner-icon"})):a.createCommentVNode("",!0)])],2),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",PK,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const FK=oe(IK,[["render",LK],["__scopeId","data-v-f2229756"]]),Gh=t=>/[0-2][0-9]:[0-5][0-9]/.test(t),RK=(t,e)=>Gh(t)&&Gh(e)?Ce.fromFormat(t,"HH:mm").diff(Ce.fromFormat(e,"HH:mm"))>0:!1,rde="",HK={directives:{facade:Rl},props:{modelValue:{type:[String,Array],default:"",validator:t=>t===""||t===[]?!0:typeof t=="string"?Gh(t):t.length===2&&RK(t[1],t[0])},id:{type:String,default:"time-input"},label:{type:String,required:!0},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},mode:{type:String,default:"single",validator:t=>["single","range"].includes(t)},state:{type:String,default:"default",validator:t=>["default","valid","invalid"].includes(t)},errorMessage:{type:String,default:"Hor\xE1rio inv\xE1lido"}},data(){return{startHour:"",startMinute:"",endHour:"",endMinute:""}},computed:{computedInputClass(){if(this.disabled)return"input__time--disabled";switch(this.state){case"valid":return"input__time--valid";case"invalid":return"input__time--invalid";default:return"input__time"}}},watch:{modelValue(t,e){t===e||t==null||this.buildTimeElements(t)}},mounted(){this.buildTimeElements(this.modelValue)},methods:{handleTimeInput(){if(this.startHour=this.startHour?this.resolveTimeElement(this.startHour,23):"",this.startMinute=this.startMinute?this.resolveTimeElement(this.startMinute,59):"",this.endHour=this.endHour?this.resolveTimeElement(this.endHour,23):"",this.endMinute=this.endMinute?this.resolveTimeElement(this.endMinute,59):"",!(this.startHour&&this.startMinute)||this.range&&!(this.endHour&&this.endMinute)){this.$emit("update:modelValue",null);return}if(this.mode==="range"){this.resolveRangeInterval();return}this.$emit("update:modelValue",`${this.startHour}:${this.startMinute}`)},resolveRangeInterval(){const t=Lt.fromDateTimes(Ce.fromFormat(`${this.startHour}:${this.startMinute}`,"HH:mm"),Ce.fromFormat(`${this.endHour}:${this.endMinute}`,"HH:mm"));if(t.invalid){this.$emit("update:modelValue",null);return}this.$emit("update:modelValue",[t.start.toFormat("HH:mm"),t.end.toFormat("HH:mm")])},formatTimeElement(t){return parseInt(t,10).toLocaleString(void 0,{minimumIntegerDigits:2,maximumFractionDigits:0})},resolveTimeElement(t,e){const n=this.formatTimeElement(t);return n>e?e:n<0?"00":n},buildTimeElements(t){if(this.mode==="single"){if(typeof t!="string")return;[this.startHour,this.startMinute]=t.split(":");return}if(typeof t=="string"){this.startHour="",this.startMinute="",this.endHour="",this.endMinute="";return}[this.startHour,this.startMinute]=t[0].split(":"),[this.endHour,this.endMinute]=t[1].split(":")}}},WK={class:"input__label"},YK=["for"],jK={key:0,class:"label__required-indicator"},UK=["id"],qK=["id","disabled"],GK=["id","disabled"],KK={key:0,class:"input__separator"},ZK={key:1},XK=["id","disabled"],JK=["id","disabled"],QK={key:0,class:"input__message"};function eZ(t,e,n,i,s,r){const o=a.resolveDirective("facade");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("label",WK,[a.createElementVNode("div",{class:"label__content",for:n.id},[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",jK," * ")):a.createCommentVNode("",!0)],8,YK)]),a.createElementVNode("div",{id:n.id,class:"input__container"},[a.createElementVNode("div",null,[a.withDirectives(a.createElementVNode("input",{id:`${n.id}-start-hour`,"onUpdate:modelValue":e[0]||(e[0]=c=>s.startHour=c),class:a.normalizeClass(r.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"23",step:"1",placeholder:"00",onKeyup:[e[1]||(e[1]=a.withKeys(c=>s.startHour++,["up"])),e[2]||(e[2]=a.withKeys(c=>s.startHour>0?s.startHour--:null,["down"]))],onInput:e[3]||(e[3]=(...c)=>r.handleTimeInput&&r.handleTimeInput(...c))},null,42,qK),[[a.vModelText,s.startHour],[o,"##"]]),a.createTextVNode(" : "),a.withDirectives(a.createElementVNode("input",{id:`${n.id}-start-minute`,"onUpdate:modelValue":e[4]||(e[4]=c=>s.startMinute=c),class:a.normalizeClass(r.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"59",step:"1",placeholder:"00",onKeyup:[e[5]||(e[5]=a.withKeys(c=>s.startMinute++,["up"])),e[6]||(e[6]=a.withKeys(c=>s.startMinute>0?s.startMinute--:null,["down"]))],onInput:e[7]||(e[7]=(...c)=>r.handleTimeInput&&r.handleTimeInput(...c))},null,42,GK),[[a.vModelText,s.startMinute],[o,"##"]])]),n.mode==="range"?(a.openBlock(),a.createElementBlock("div",KK," At\xE9 ")):a.createCommentVNode("",!0),n.mode==="range"?(a.openBlock(),a.createElementBlock("div",ZK,[a.withDirectives(a.createElementVNode("input",{id:`${n.id}-end-hour`,"onUpdate:modelValue":e[8]||(e[8]=c=>s.endHour=c),class:a.normalizeClass(r.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"23",step:"1",placeholder:"00",onKeyup:[e[9]||(e[9]=a.withKeys(c=>s.endHour++,["up"])),e[10]||(e[10]=a.withKeys(c=>s.endHour>0?s.endHour--:null,["down"]))],onInput:e[11]||(e[11]=(...c)=>r.handleTimeInput&&r.handleTimeInput(...c))},null,42,XK),[[a.vModelText,s.endHour],[o,"##"]]),a.createTextVNode(" : "),a.withDirectives(a.createElementVNode("input",{id:`${n.id}-end-minute`,"onUpdate:modelValue":e[12]||(e[12]=c=>s.endMinute=c),class:a.normalizeClass(r.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"59",step:"1",placeholder:"00",onKeyup:[e[13]||(e[13]=a.withKeys(c=>s.endMinute++,["up"])),e[14]||(e[14]=a.withKeys(c=>s.endMinute>0?s.endMinute--:null,["down"]))],onInput:e[15]||(e[15]=(...c)=>r.handleTimeInput&&r.handleTimeInput(...c))},null,42,JK),[[a.vModelText,s.endMinute],[o,"##"]])])):a.createCommentVNode("",!0)],8,UK),n.state==="invalid"&&!n.disabled?(a.openBlock(),a.createElementBlock("div",QK,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const tZ=oe(HK,[["render",eZ],["__scopeId","data-v-8cf870de"]]),ode="",Kh={props:{reverse:{type:Boolean,default:!1}},data(){return{oppositeSlotMaxWidth:"0"}},computed:{directionResolver(){return this.reverse?"column-reverse":"column"},oppositeSlotWidthResolver(){return`${this.oppositeSlotMaxWidth}px`}},mounted(){document.querySelectorAll(".cds-timeline-item__opposite").forEach(e=>{let n=e.getClientRects()[0].width;this.oppositeSlotMaxWidth<n&&(this.oppositeSlotMaxWidth=n)})}},Ov=()=>{a.useCssVars(t=>({"7ea49ddc":t.directionResolver,"1372a9d4":t.oppositeSlotWidthResolver}))},Dv=Kh.setup;Kh.setup=Dv?(t,e)=>(Ov(),Dv(t,e)):Ov;const nZ=Kh,iZ={class:"cds-timeline"};function sZ(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",iZ,[a.renderSlot(t.$slots,"default")])}const rZ=oe(nZ,[["render",sZ]]),lde="",aZ={components:{CdsSpinner:fa},props:{variant:{type:String,default:"green"},loading:{type:Boolean,default:!1},hollowed:{type:Boolean,default:!1}},methods:{hasSlot:v0}},oZ={class:"cds-timeline-item"},lZ={class:"cds-timeline-item__opposite"},cZ={class:"cds-timeline-item__timeline-container"},dZ={class:"cds-timeline-item__content-container"},uZ={key:0,class:"cds-timeline-item__title"},hZ={class:"cds-timeline-item__text"};function fZ(t,e,n,i,s,r){const o=a.resolveComponent("cds-spinner");return a.openBlock(),a.createElementBlock("div",oZ,[a.createElementVNode("div",lZ,[a.renderSlot(t.$slots,"opposite",{},void 0,!0)]),a.createElementVNode("div",cZ,[n.loading?(a.openBlock(),a.createBlock(o,{key:1,size:"sm",class:"spinner",variant:n.variant},null,8,["variant"])):(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(`cds-timeline-item__pin--${n.variant}${n.hollowed?"--hollowed":""}`)},null,2)),a.createElementVNode("div",{class:a.normalizeClass(n.loading||n.hollowed?"tail--dashed":"tail")},null,2)]),a.createElementVNode("div",dZ,[r.hasSlot(t.$slots,"title")?(a.openBlock(),a.createElementBlock("div",uZ,[a.renderSlot(t.$slots,"title",{},void 0,!0)])):a.createCommentVNode("",!0),a.createElementVNode("span",hZ,[a.renderSlot(t.$slots,"content",{},void 0,!0)])])])}const pZ=oe(aZ,[["render",fZ],["__scopeId","data-v-e1fab2ab"]]),cde="",Zh={props:{width:{type:[String,Number],default:"20"}},computed:{widthResolver(){return`${this.width}px`}}},Ev=()=>{a.useCssVars(t=>({13528900:t.widthResolver}))},Tv=Zh.setup;Zh.setup=Tv?(t,e)=>(Ev(),Tv(t,e)):Ev;const mZ=Zh,gZ={class:"truncate__container"};function _Z(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",gZ,[a.renderSlot(t.$slots,"default")])}const vZ=oe(mZ,[["render",_Z]]),dde="",yZ={directives:{cdstip:Yo},components:{CdsIcon:$t},props:{modelValue:{type:String,default:""},label:{type:String,default:"Label"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a informa\xE7\xE3o"},errorMessage:{type:String,default:"Valor inv\xE1lido"},fluid:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"}},data(){return{internalValue:"",isBeingFocused:!1,showPassword:!1}},computed:{customInputType(){return this.showPassword?"text":"password"},customTextPasswordInput(){return this.showPassword?"Ocultar":"Mostrar"},disableTextPasswordInput(){return this.internalValue.length<1||this.disabled},hasSlots(){return!!Object.keys(this.$slots).length},stepperInputDynamicClass(){let t=this.fluid?"password-input--fluid":"password-input";return this.isBeingFocused?this.disabled||(this.state==="default"?t+=" password-input--focused":this.state==="valid"?t+=" password-input--focused-valid":this.state==="invalid"&&(t+=" password-input--focused-invalid")):this.disabled?t+=" password-input--disabled":this.state==="valid"?t+=" password-input--valid":this.state==="invalid"&&(t+=" password-input--invalid"),t},labelDynamicClass(){return this.fluid?"password-input__label--fluid":"password-input__label"},inputClass(){return this.fluid?"password-input__field--fluid":"password-input__field"},errorState(){return this.state==="invalid"}},watch:{modelValue:{handler(t,e){t!==e&&(this.internalValue=t)},immediate:!0},internalValue(t){this.$emit("update:modelValue",t)}},methods:{handleShowPassword(){this.showPassword=!this.showPassword}}},bZ={key:0},wZ={class:"password-input__label__content",for:"cds-password-input"},kZ={key:0,class:"password-input__label__required-indicator"},xZ=["type","placeholder","disabled"],CZ={key:0,class:"password-input__password-toogle"},SZ={key:0,class:"password-input__error-message"};function MZ(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-clickable"),d=a.resolveDirective("cdstip");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",bZ,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",{key:1,class:a.normalizeClass(r.labelDynamicClass)},[a.createElementVNode("div",wZ,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",kZ," * ")):a.createCommentVNode("",!0),n.tooltip?a.withDirectives((a.openBlock(),a.createBlock(o,{key:1,name:n.tooltipIcon,height:"20",width:"20",class:"password-input__label__icon"},null,8,["name"])),[[d,n.tooltip]]):a.createCommentVNode("",!0)])],2))]),a.createElementVNode("div",{class:a.normalizeClass(r.stepperInputDynamicClass)},[a.withDirectives(a.createElementVNode("input",{id:"cds-password-input","onUpdate:modelValue":e[0]||(e[0]=h=>s.internalValue=h),type:r.customInputType,placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),onFocus:e[1]||(e[1]=h=>s.isBeingFocused=!0),onBlur:e[2]||(e[2]=h=>s.isBeingFocused=!1)},null,42,xZ),[[a.vModelDynamic,s.internalValue]]),r.disableTextPasswordInput?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",CZ,[a.createVNode(c,{id:"cds-clickable",clickable:"",onClick:r.handleShowPassword},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(r.customTextPasswordInput),1)]),_:1},8,["onClick"])]))],2),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",SZ,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const OZ=oe(yZ,[["render",MZ],["__scopeId","data-v-3ad89334"]]),ude="",DZ={components:{CdsBox:bl,CdsButton:ba},props:{steps:{type:Array,default:()=>[],required:!0,validator:t=>t.length>=2&&t.length<=3},activeStep:{type:Number,default:0,validator:t=>t>=0&&t<=2},clickable:{type:Boolean,default:!1},nextButtonText:{type:String,default:"Pr\xF3ximo"},cancelButtonText:{type:String,default:"Anterior"},nextButtonVariant:{type:String,default:"green"},disableNextButton:{type:Boolean,default:!1}},data(){return{currentStep:this.activeStep}},computed:{disabledBack(){return this.currentStep<=0},disabledNext(){return this.currentStep>=this.steps.length-1}},watch:{activeStep:{handler(t,e){t!==e&&(this.currentStep=t)},immediate:!0},currentStep(t,e){t!==e&&this.$emit("step-change",t)}},methods:{emptyStateText(t){return`Preencha todos os campos obrigat\xF3rios da etapa anterior para
70
+ }`;var Pe=Ob(function(){return at(D,ye+"return "+Q).apply(n,I)});if(Pe.source=Q,Yf(Pe))throw Pe;return Pe}function One(l){return ct(l).toLowerCase()}function Dne(l){return ct(l).toUpperCase()}function Ene(l,u,p){if(l=ct(l),l&&(p||u===n))return Nv(l);if(!l||!(u=si(u)))return l;var _=Wi(l),w=Wi(u),D=zv(_,w),I=Pv(_,w)+1;return _r(_,D,I).join("")}function Tne(l,u,p){if(l=ct(l),l&&(p||u===n))return l.slice(0,Fv(l)+1);if(!l||!(u=si(u)))return l;var _=Wi(l),w=Pv(_,Wi(u))+1;return _r(_,0,w).join("")}function Ine(l,u,p){if(l=ct(l),l&&(p||u===n))return l.replace(ks,"");if(!l||!(u=si(u)))return l;var _=Wi(l),w=zv(_,Wi(u));return _r(_,w).join("")}function Bne(l,u){var p=ee,_=ne;if(Rt(u)){var w="separator"in u?u.separator:w;p="length"in u?ze(u.length):p,_="omission"in u?si(u.omission):_}l=ct(l);var D=l.length;if(wo(l)){var I=Wi(l);D=I.length}if(p>=D)return l;var V=p-ko(_);if(V<1)return _;var P=I?_r(I,0,V).join(""):l.slice(0,V);if(w===n)return P+_;if(I&&(V+=P.length-V),jf(w)){if(l.slice(V).search(w)){var Z,X=P;for(w.global||(w=of(w.source,ct(an.exec(w))+"g")),w.lastIndex=0;Z=w.exec(X);)var Q=Z.index;P=P.slice(0,Q===n?V:Q)}}else if(l.indexOf(si(w),V)!=V){var de=P.lastIndexOf(w);de>-1&&(P=P.slice(0,de))}return P+_}function Ane(l){return l=ct(l),l&&rt.test(l)?l.replace(ke,lX):l}var Vne=Eo(function(l,u,p){return l+(p?" ":"")+u.toUpperCase()}),Gf=Dy("toUpperCase");function Mb(l,u,p){return l=ct(l),u=p?n:u,u===n?iX(l)?uX(l):GZ(l):l.match(u)||[]}var Ob=Fe(function(l,u){try{return hn(l,n,u)}catch(p){return Yf(p)?p:new Be(p)}}),$ne=As(function(l,u){return xi(u,function(p){p=as(p),Is(l,p,Hf(l[p],l))}),l});function Nne(l){var u=l==null?0:l.length,p=Se();return l=u?Pt(l,function(_){if(typeof _[1]!="function")throw new Ci(o);return[p(_[0]),_[1]]}):[],Fe(function(_){for(var w=-1;++w<u;){var D=l[w];if(hn(D[0],this,_))return hn(D[1],this,_)}})}function zne(l){return lJ(Mi(l,m))}function Kf(l){return function(){return l}}function Pne(l,u){return l==null||l!==l?u:l}var Lne=Ty(),Fne=Ty(!0);function Kn(l){return l}function Zf(l){return ay(typeof l=="function"?l:Mi(l,m))}function Rne(l){return ly(Mi(l,m))}function Hne(l,u){return cy(l,Mi(u,m))}var Wne=Fe(function(l,u){return function(p){return gc(p,l,u)}}),Yne=Fe(function(l,u){return function(p){return gc(l,p,u)}});function Xf(l,u,p){var _=fn(u),w=Tu(u,_);p==null&&!(Rt(u)&&(w.length||!_.length))&&(p=u,u=l,l=this,w=Tu(u,fn(u)));var D=!(Rt(p)&&"chain"in p)||!!p.chain,I=$s(l);return xi(w,function(V){var P=u[V];l[V]=P,I&&(l.prototype[V]=function(){var Z=this.__chain__;if(D||Z){var X=l(this.__wrapped__),Q=X.__actions__=Un(this.__actions__);return Q.push({func:P,args:arguments,thisArg:l}),X.__chain__=Z,X}return P.apply(l,ur([this.value()],arguments))})}),l}function jne(){return He._===this&&(He._=_X),this}function Jf(){}function Une(l){return l=ze(l),Fe(function(u){return dy(u,l)})}var qne=Ef(Pt),Gne=Ef(Iv),Kne=Ef(Qh);function Db(l){return Nf(l)?ef(as(l)):SJ(l)}function Zne(l){return function(u){return l==null?n:la(l,u)}}var Xne=By(),Jne=By(!0);function Qf(){return[]}function ep(){return!1}function Qne(){return{}}function eie(){return""}function tie(){return!0}function nie(l,u){if(l=ze(l),l<1||l>_e)return[];var p=fe,_=On(l,fe);u=Se(u),l-=fe;for(var w=sf(_,u);++p<l;)u(p);return w}function iie(l){return Ve(l)?Pt(l,as):ri(l)?[l]:Un(Gy(ct(l)))}function sie(l){var u=++mX;return ct(l)+u}var rie=Nu(function(l,u){return l+u},0),aie=Tf("ceil"),oie=Nu(function(l,u){return l/u},1),lie=Tf("floor");function cie(l){return l&&l.length?Eu(l,Kn,mf):n}function die(l,u){return l&&l.length?Eu(l,Se(u,2),mf):n}function uie(l){return Vv(l,Kn)}function hie(l,u){return Vv(l,Se(u,2))}function fie(l){return l&&l.length?Eu(l,Kn,yf):n}function pie(l,u){return l&&l.length?Eu(l,Se(u,2),yf):n}var mie=Nu(function(l,u){return l*u},1),gie=Tf("round"),_ie=Nu(function(l,u){return l-u},0);function vie(l){return l&&l.length?nf(l,Kn):0}function yie(l,u){return l&&l.length?nf(l,Se(u,2)):0}return S.after=Ree,S.ary=rb,S.assign=Dte,S.assignIn=yb,S.assignInWith=Ku,S.assignWith=Ete,S.at=Tte,S.before=ab,S.bind=Hf,S.bindAll=$ne,S.bindKey=ob,S.castArray=Qee,S.chain=nb,S.chunk=lQ,S.compact=cQ,S.concat=dQ,S.cond=Nne,S.conforms=zne,S.constant=Kf,S.countBy=vee,S.create=Ite,S.curry=lb,S.curryRight=cb,S.debounce=db,S.defaults=Bte,S.defaultsDeep=Ate,S.defer=Hee,S.delay=Wee,S.difference=uQ,S.differenceBy=hQ,S.differenceWith=fQ,S.drop=pQ,S.dropRight=mQ,S.dropRightWhile=gQ,S.dropWhile=_Q,S.fill=vQ,S.filter=bee,S.flatMap=xee,S.flatMapDeep=Cee,S.flatMapDepth=See,S.flatten=Jy,S.flattenDeep=yQ,S.flattenDepth=bQ,S.flip=Yee,S.flow=Lne,S.flowRight=Fne,S.fromPairs=wQ,S.functions=Fte,S.functionsIn=Rte,S.groupBy=Mee,S.initial=xQ,S.intersection=CQ,S.intersectionBy=SQ,S.intersectionWith=MQ,S.invert=Wte,S.invertBy=Yte,S.invokeMap=Dee,S.iteratee=Zf,S.keyBy=Eee,S.keys=fn,S.keysIn=Gn,S.map=Wu,S.mapKeys=Ute,S.mapValues=qte,S.matches=Rne,S.matchesProperty=Hne,S.memoize=ju,S.merge=Gte,S.mergeWith=bb,S.method=Wne,S.methodOf=Yne,S.mixin=Xf,S.negate=Uu,S.nthArg=Une,S.omit=Kte,S.omitBy=Zte,S.once=jee,S.orderBy=Tee,S.over=qne,S.overArgs=Uee,S.overEvery=Gne,S.overSome=Kne,S.partial=Wf,S.partialRight=ub,S.partition=Iee,S.pick=Xte,S.pickBy=wb,S.property=Db,S.propertyOf=Zne,S.pull=TQ,S.pullAll=eb,S.pullAllBy=IQ,S.pullAllWith=BQ,S.pullAt=AQ,S.range=Xne,S.rangeRight=Jne,S.rearg=qee,S.reject=Vee,S.remove=VQ,S.rest=Gee,S.reverse=Ff,S.sampleSize=Nee,S.set=Qte,S.setWith=ene,S.shuffle=zee,S.slice=$Q,S.sortBy=Fee,S.sortedUniq=HQ,S.sortedUniqBy=WQ,S.split=xne,S.spread=Kee,S.tail=YQ,S.take=jQ,S.takeRight=UQ,S.takeRightWhile=qQ,S.takeWhile=GQ,S.tap=cee,S.throttle=Zee,S.thru=Hu,S.toArray=gb,S.toPairs=kb,S.toPairsIn=xb,S.toPath=iie,S.toPlainObject=vb,S.transform=tne,S.unary=Xee,S.union=KQ,S.unionBy=ZQ,S.unionWith=XQ,S.uniq=JQ,S.uniqBy=QQ,S.uniqWith=eee,S.unset=nne,S.unzip=Rf,S.unzipWith=tb,S.update=ine,S.updateWith=sne,S.values=Bo,S.valuesIn=rne,S.without=tee,S.words=Mb,S.wrap=Jee,S.xor=nee,S.xorBy=iee,S.xorWith=see,S.zip=ree,S.zipObject=aee,S.zipObjectDeep=oee,S.zipWith=lee,S.entries=kb,S.entriesIn=xb,S.extend=yb,S.extendWith=Ku,Xf(S,S),S.add=rie,S.attempt=Ob,S.camelCase=cne,S.capitalize=Cb,S.ceil=aie,S.clamp=ane,S.clone=ete,S.cloneDeep=nte,S.cloneDeepWith=ite,S.cloneWith=tte,S.conformsTo=ste,S.deburr=Sb,S.defaultTo=Pne,S.divide=oie,S.endsWith=dne,S.eq=ji,S.escape=une,S.escapeRegExp=hne,S.every=yee,S.find=wee,S.findIndex=Zy,S.findKey=Vte,S.findLast=kee,S.findLastIndex=Xy,S.findLastKey=$te,S.floor=lie,S.forEach=ib,S.forEachRight=sb,S.forIn=Nte,S.forInRight=zte,S.forOwn=Pte,S.forOwnRight=Lte,S.get=Uf,S.gt=rte,S.gte=ate,S.has=Hte,S.hasIn=qf,S.head=Qy,S.identity=Kn,S.includes=Oee,S.indexOf=kQ,S.inRange=one,S.invoke=jte,S.isArguments=ua,S.isArray=Ve,S.isArrayBuffer=ote,S.isArrayLike=qn,S.isArrayLikeObject=Kt,S.isBoolean=lte,S.isBuffer=vr,S.isDate=cte,S.isElement=dte,S.isEmpty=ute,S.isEqual=hte,S.isEqualWith=fte,S.isError=Yf,S.isFinite=pte,S.isFunction=$s,S.isInteger=hb,S.isLength=qu,S.isMap=fb,S.isMatch=mte,S.isMatchWith=gte,S.isNaN=_te,S.isNative=vte,S.isNil=bte,S.isNull=yte,S.isNumber=pb,S.isObject=Rt,S.isObjectLike=jt,S.isPlainObject=kc,S.isRegExp=jf,S.isSafeInteger=wte,S.isSet=mb,S.isString=Gu,S.isSymbol=ri,S.isTypedArray=Io,S.isUndefined=kte,S.isWeakMap=xte,S.isWeakSet=Cte,S.join=OQ,S.kebabCase=fne,S.last=Di,S.lastIndexOf=DQ,S.lowerCase=pne,S.lowerFirst=mne,S.lt=Ste,S.lte=Mte,S.max=cie,S.maxBy=die,S.mean=uie,S.meanBy=hie,S.min=fie,S.minBy=pie,S.stubArray=Qf,S.stubFalse=ep,S.stubObject=Qne,S.stubString=eie,S.stubTrue=tie,S.multiply=mie,S.nth=EQ,S.noConflict=jne,S.noop=Jf,S.now=Yu,S.pad=gne,S.padEnd=_ne,S.padStart=vne,S.parseInt=yne,S.random=lne,S.reduce=Bee,S.reduceRight=Aee,S.repeat=bne,S.replace=wne,S.result=Jte,S.round=gie,S.runInContext=z,S.sample=$ee,S.size=Pee,S.snakeCase=kne,S.some=Lee,S.sortedIndex=NQ,S.sortedIndexBy=zQ,S.sortedIndexOf=PQ,S.sortedLastIndex=LQ,S.sortedLastIndexBy=FQ,S.sortedLastIndexOf=RQ,S.startCase=Cne,S.startsWith=Sne,S.subtract=_ie,S.sum=vie,S.sumBy=yie,S.template=Mne,S.times=nie,S.toFinite=Ns,S.toInteger=ze,S.toLength=_b,S.toLower=One,S.toNumber=Ei,S.toSafeInteger=Ote,S.toString=ct,S.toUpper=Dne,S.trim=Ene,S.trimEnd=Tne,S.trimStart=Ine,S.truncate=Bne,S.unescape=Ane,S.uniqueId=sie,S.upperCase=Vne,S.upperFirst=Gf,S.each=ib,S.eachRight=sb,S.first=Qy,Xf(S,function(){var l={};return ss(S,function(u,p){gt.call(S.prototype,p)||(l[p]=u)}),l}(),{chain:!1}),S.VERSION=i,xi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){S[l].placeholder=S}),xi(["drop","take"],function(l,u){qe.prototype[l]=function(p){p=p===n?1:ln(ze(p),0);var _=this.__filtered__&&!u?new qe(this):this.clone();return _.__filtered__?_.__takeCount__=On(p,_.__takeCount__):_.__views__.push({size:On(p,fe),type:l+(_.__dir__<0?"Right":"")}),_},qe.prototype[l+"Right"]=function(p){return this.reverse()[l](p).reverse()}}),xi(["filter","map","takeWhile"],function(l,u){var p=u+1,_=p==pe||p==ue;qe.prototype[l]=function(w){var D=this.clone();return D.__iteratees__.push({iteratee:Se(w,3),type:p}),D.__filtered__=D.__filtered__||_,D}}),xi(["head","last"],function(l,u){var p="take"+(u?"Right":"");qe.prototype[l]=function(){return this[p](1).value()[0]}}),xi(["initial","tail"],function(l,u){var p="drop"+(u?"":"Right");qe.prototype[l]=function(){return this.__filtered__?new qe(this):this[p](1)}}),qe.prototype.compact=function(){return this.filter(Kn)},qe.prototype.find=function(l){return this.filter(l).head()},qe.prototype.findLast=function(l){return this.reverse().find(l)},qe.prototype.invokeMap=Fe(function(l,u){return typeof l=="function"?new qe(this):this.map(function(p){return gc(p,l,u)})}),qe.prototype.reject=function(l){return this.filter(Uu(Se(l)))},qe.prototype.slice=function(l,u){l=ze(l);var p=this;return p.__filtered__&&(l>0||u<0)?new qe(p):(l<0?p=p.takeRight(-l):l&&(p=p.drop(l)),u!==n&&(u=ze(u),p=u<0?p.dropRight(-u):p.take(u-l)),p)},qe.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},qe.prototype.toArray=function(){return this.take(fe)},ss(qe.prototype,function(l,u){var p=/^(?:filter|find|map|reject)|While$/.test(u),_=/^(?:head|last)$/.test(u),w=S[_?"take"+(u=="last"?"Right":""):u],D=_||/^find/.test(u);!w||(S.prototype[u]=function(){var I=this.__wrapped__,V=_?[1]:arguments,P=I instanceof qe,Z=V[0],X=P||Ve(I),Q=function(je){var Ke=w.apply(S,ur([je],V));return _&&de?Ke[0]:Ke};X&&p&&typeof Z=="function"&&Z.length!=1&&(P=X=!1);var de=this.__chain__,ye=!!this.__actions__.length,Oe=D&&!de,Pe=P&&!ye;if(!D&&X){I=Pe?I:new qe(this);var De=l.apply(I,V);return De.__actions__.push({func:Hu,args:[Q],thisArg:n}),new Si(De,de)}return Oe&&Pe?l.apply(this,V):(De=this.thru(Q),Oe?_?De.value()[0]:De.value():De)})}),xi(["pop","push","shift","sort","splice","unshift"],function(l){var u=pu[l],p=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);S.prototype[l]=function(){var w=arguments;if(_&&!this.__chain__){var D=this.value();return u.apply(Ve(D)?D:[],w)}return this[p](function(I){return u.apply(Ve(I)?I:[],w)})}}),ss(qe.prototype,function(l,u){var p=S[u];if(p){var _=p.name+"";gt.call(Mo,_)||(Mo[_]=[]),Mo[_].push({name:u,func:p})}}),Mo[$u(n,O).name]=[{name:"wrapper",func:n}],qe.prototype.clone=AX,qe.prototype.reverse=VX,qe.prototype.value=$X,S.prototype.at=dee,S.prototype.chain=uee,S.prototype.commit=hee,S.prototype.next=fee,S.prototype.plant=mee,S.prototype.reverse=gee,S.prototype.toJSON=S.prototype.valueOf=S.prototype.value=_ee,S.prototype.first=S.prototype.head,cc&&(S.prototype[cc]=pee),S},xo=hX();zt?((zt.exports=xo)._=xo,Ze._=xo):He._=xo}).call(cn)})(Gr,Gr.exports);const tde="",rK={components:{CdsCheckbox:b0,CdsIcon:$t,CdsClickable:Ls},props:{modelValue:{type:Array,default:()=>[]},items:{type:Array,required:!0,default:()=>[]},fields:{type:Array,default:()=>[]},hover:{type:Boolean,default:!1},allowSelection:{type:Boolean,default:!1},selectionVariant:{type:String,default:"green"},sortable:{type:Boolean,default:!1},sortBy:{type:String,default:null},sortDesc:{type:Boolean,default:!1}},data(){return{selectAll:!1,select:[],localSortDesc:this.sortDesc,localSortBy:this.sortBy,localItems:this.items}},computed:{computedFields(){return this.fields.length>0?this.fields.map(t=>typeof t=="object"?t:{key:t,label:Gr.exports.startCase(t)}):this.items.length>0?Object.keys(this.items[0]).map(t=>({key:t,label:Gr.exports.startCase(t)})):[]}},watch:{modelValue:{handler(t,e){if(t!==e){if(!t.length){this.resetSelect();return}t.forEach(n=>{const i=Gr.exports.findIndex(this.localItems,n);i>-1&&(this.select[i]=!0)})}},immediate:!0},items(t,e){Gr.exports.isEqual(t,e)||(this.localItems=t,this.resetSelect())},sortBy:{handler(t,e){t!==e&&this.handleSortBy(t)},immediate:!0},select:{handler(t){const e=this.localItems.filter((n,i)=>t[i]);this.$emit("update:modelValue",e)},deep:!0}},methods:{hasSlot:v0,resetSelect(){this.selectAll=!1;for(let t=0;t<this.localItems.length;t++)this.select[t]=!1},handleSelectAll(){for(let t=0;t<this.localItems.length;t++)this.select[t]=this.selectAll},handleSelectRow(t){if(this.selectAll&&!t){this.selectAll=!1;return}this.selectAll=this.select.reduce((e,n)=>e&&n)},handleSortBy(t){if(this.resetSelect(),this.localSortBy===t&&this.localSortDesc){this.localSortBy=null,this.localItems=this.items;return}const e=this.localSortDesc?"asc":"desc";this.localSortDesc=this.localSortBy===t?!this.localSortDesc:!1,this.localSortBy=t,this.localItems=Gr.exports.orderBy(this.items,[this.localSortBy],[e])},resolveHeaderItemClass(t){return t!==0&&t!==this.fields.length-1?"table__header-item":t===0?"table__header-item--first":"table__header-item--last"},resolveContentItemClass(t,e){return t!==this.items.length-1?"table__item":e!==0&&e!==this.fields.length-1?"table__item--common":e===0?"table__item--first":"table__item--last"},resolveItemClass(){return this.hover?"table__content--hoverable":""}}},aK={class:"table__container"},oK={class:"table__header"},lK={class:"table__header-item-content"};function cK(t,e,n,i,s,r){const o=a.resolveComponent("cds-checkbox"),c=a.resolveComponent("cds-icon"),d=a.resolveComponent("cds-clickable");return a.openBlock(),a.createElementBlock("table",aK,[a.createElementVNode("tr",oK,[n.allowSelection?(a.openBlock(),a.createElementBlock("th",{key:0,class:a.normalizeClass(["table__select-item",r.resolveHeaderItemClass(0)])},[a.createVNode(o,{id:"select-all-rows",modelValue:s.selectAll,"onUpdate:modelValue":[e[0]||(e[0]=h=>s.selectAll=h),r.handleSelectAll],class:"table__select-checkbox","no-text":"",variant:n.selectionVariant},null,8,["modelValue","variant","onUpdate:modelValue"])],2)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.computedFields,(h,f)=>(a.openBlock(),a.createElementBlock("th",{key:f,class:a.normalizeClass(r.resolveHeaderItemClass(f))},[a.createElementVNode("div",lK,[r.hasSlot(t.$slots,"header-item")?a.renderSlot(t.$slots,"header-item",{key:0,data:h},void 0,!0):(a.openBlock(),a.createBlock(d,{key:1,id:`sort-icon-${h.key}`,clickable:n.sortable,onClick:a.withModifiers(m=>r.handleSortBy(h.key),["stop"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(h.label)+" ",1),n.sortable&&h.key!==s.localSortBy?(a.openBlock(),a.createBlock(c,{key:0,class:"table__sort-icon",height:"13",width:"13",name:"swap-vertical-arrows-outline"})):n.sortable&&s.localSortDesc?(a.openBlock(),a.createBlock(c,{key:1,class:"table__sort-icon",height:"13",width:"13",name:"sort-descending-duotone"})):n.sortable?(a.openBlock(),a.createBlock(c,{key:2,class:"table__sort-icon",height:"13",width:"13",name:"sort-ascending-duotone"})):a.createCommentVNode("",!0)]),_:2},1032,["id","clickable","onClick"]))])],2))),128))]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.localItems,(h,f)=>(a.openBlock(),a.createElementBlock("tr",{key:f,class:a.normalizeClass(r.resolveItemClass())},[n.allowSelection?(a.openBlock(),a.createElementBlock("td",{key:0,class:a.normalizeClass(["table__select-item",r.resolveContentItemClass(f,0)])},[a.createVNode(o,{id:`select-row-${f}`,modelValue:s.select[f],"onUpdate:modelValue":[m=>s.select[f]=m,r.handleSelectRow],class:"table__select-checkbox","no-text":"",variant:n.selectionVariant},null,8,["id","modelValue","onUpdate:modelValue","variant"])],2)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.computedFields,(m,g)=>(a.openBlock(),a.createElementBlock("td",{key:g,class:a.normalizeClass(r.resolveContentItemClass(f,g))},[a.renderSlot(t.$slots,"table-item",{data:h,field:m.key,rowIndex:f,colIndex:g},()=>[a.createTextVNode(a.toDisplayString(h[m.key]),1)],!0)],2))),128))],2))),128))])}const dK=oe(rK,[["render",cK],["__scopeId","data-v-6fea63eb"]]),nde="",uK={components:{CdsIcon:$t},props:{tabs:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>Xt(n.title)||Xt(n.name)).length},activeTab:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:t=>jr.includes(t)},showAddAction:{type:Boolean,default:!1}},data(){return{internalActiveTab:this.activeTab,colorOptions:jr}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{tabs:{handler(t){const e=t.filter(n=>n.name===this.activeTab.name);[this.internalActiveTab]=e.length?e:t},immediate:!0}},methods:{colorHexCode:Fl,getSlotName(t){return t.name},handleRightClick(t,e){this.$emit("right-click",{event:t,item:e})},handleClick(t,e){this.$emit("tabs-change",{event:t,item:e}),this.internalActiveTab=e},handleAddAction(t){this.$emit("add-action",t)},isActive(t){return Ll(this.internalActiveTab,t)}}},hK={id:"tabs"},fK={class:"inner-tabs__header"},pK=["id"],mK=["onClick","onContextmenu"],gK={class:"inner-tabs__text"},_K={key:0,role:"presentation",class:"nav-item cds-tab__action"},vK={class:"inner-tabs__content"};function yK(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon");return a.openBlock(),a.createElementBlock("div",hK,[a.createElementVNode("ul",fK,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.tabs,(c,d)=>(a.openBlock(),a.createElementBlock("li",{id:`${d}-${c.name}-tab`,key:`${d}-${c.name}-tab`,role:"presentation",class:"inner-tabs__header-item"},[a.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:a.normalizeClass(["inner-tabs__tab",r.isActive(c)?"inner-tabs__tab--active":"inner-tabs__tab--inactive"]),style:a.normalizeStyle(r.activeBorderStyle),onClick:h=>r.handleClick(h,c),onContextmenu:a.withModifiers(h=>r.handleRightClick(h,c),["prevent","stop"])},[a.createElementVNode("span",gK,a.toDisplayString(c.title),1)],46,mK)],8,pK))),128)),n.showAddAction?(a.openBlock(),a.createElementBlock("li",_K,[a.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:"nav-link",onClick:e[0]||(e[0]=a.withModifiers((...c)=>r.handleAddAction&&r.handleAddAction(...c),["prevent"]))},[a.createVNode(o,{height:"32",width:"32",name:"plus-outline"})])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",vK,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.tabs,(c,d)=>(a.openBlock(),a.createElementBlock("div",{key:`${d}-${c.name}-tab`,role:"tabpanel",class:a.normalizeClass(["content__pane",r.isActive(c)?"content__pane--active":"content__pane--inactive"])},[a.renderSlot(t.$slots,r.getSlotName(c))],2))),128))])])}const bK=oe(uK,[["render",yK]]),ide="",wK={components:{CdsIcon:$t,CdsSpinner:fa},props:{modelValue:{type:String,default:"",required:!0},label:{type:String,default:"Label"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a descri\xE7\xE3o"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},errorMessage:{type:String,default:"Valor inv\xE1lido"},fluid:{type:Boolean,default:!1,required:!1}},data(){return{internalValue:this.modelValue}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},validState(){return this.state==="valid"},errorState(){return this.state==="invalid"},loadingState(){return this.state==="loading"},inputClass(){return this.disabled?"textarea__input--disabled":this.fluid?"textarea__input--fluid":"textarea__input"}},watch:{internalValue(t){this.$emit("update:modelValue",t)},modelValue(t){this.internalValue=this.modelValue}}},kK={key:0},xK={key:1,class:"textarea__label"},CK={class:"label__content",for:"cds-text-area"},SK={key:0,class:"label__required-indicator"},MK=["placeholder","disabled"],OK={class:"textarea__icon-container"},DK={key:0,class:"textarea__error-message"};function EK(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-spinner");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",kK,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",xK,[a.createElementVNode("div",CK,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",SK," * ")):a.createCommentVNode("",!0)])]))]),a.createElementVNode("div",null,[a.withDirectives(a.createElementVNode("textarea",{id:"textarea","onUpdate:modelValue":e[0]||(e[0]=d=>s.internalValue=d),class:a.normalizeClass(r.inputClass),placeholder:n.placeholder,disabled:n.disabled},null,10,MK),[[a.vModelText,s.internalValue]]),a.createElementVNode("div",OK,[r.validState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:0,name:"check-outline",height:"20",width:"20",color:"#239F78",class:"textarea__icon--check-icon"})):a.createCommentVNode("",!0),r.errorState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:1,name:"alert-outline",height:"20",width:"20",color:"#D22D41",class:"textarea__icon--alert-circle-icon"})):a.createCommentVNode("",!0),r.loadingState&&!n.disabled?(a.openBlock(),a.createBlock(c,{key:2,size:"sm",variant:"blue",class:"textarea__icon--spinner-icon"})):a.createCommentVNode("",!0)])]),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",DK,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const TK=oe(wK,[["render",EK],["__scopeId","data-v-f3b92320"]]),sde="",IK={directives:{cdstip:Yo,facade:Rl},components:{CdsLink:su,CdsIcon:$t,CdsSpinner:fa},props:{modelValue:{type:String,default:""},label:{type:String,default:"Label"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a informa\xE7\xE3o"},errorMessage:{type:String,default:"Valor inv\xE1lido"},fluid:{type:Boolean,default:!1,required:!1},mask:{type:[String,Array],default:null},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},linkText:{type:String,default:null},linkUrl:{type:String,default:"https://cuida.framer.wiki/"},lazy:{type:Boolean,default:!1}},data(){return{internalValue:"",isBeingFocused:!1,timeout:null}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},stepperInputDynamicClass(){let t=this.fluid?"text-input--fluid":"text-input";return this.isBeingFocused?this.disabled||(this.state==="default"?t+=" text-input--focused":this.state==="valid"?t+=" text-input--focused-valid":this.state==="invalid"?t+=" text-input--focused-invalid":this.state==="loading"&&(t+=" text-input--focused-loading")):this.disabled?t+=" text-input--disabled":this.state==="valid"?t+=" text-input--valid":this.state==="invalid"&&(t+=" text-input--invalid"),t},labelDynamicClass(){return this.fluid?"text-input__label--fluid":"text-input__label"},validState(){return this.state==="valid"},errorState(){return this.state==="invalid"},loadingState(){return this.state==="loading"},inputClass(){return this.fluid?"text-input__field--fluid":"text-input__field"},linkTextState(){return!!this.linkText}},watch:{modelValue:{handler(t,e){t!==e&&(this.internalValue=t)},immediate:!0},internalValue(t){this.lazy?this.emitLazy(t):this.$emit("update:modelValue",t)}},methods:{emitLazy(t){clearTimeout(this.timeout);const e=this;this.timeout=setTimeout(function(){e.$emit("update:modelValue",t)},1e3)},handleBlur(){this.isBeingFocused=!1,this.$emit("blur",!0)},handleFocus(){this.isBeingFocused=!0,this.$emit("focus",!0)}}},BK={key:0},AK={class:"label__content",for:"cds-text-input"},VK={key:0,class:"label__required-indicator"},$K=["placeholder","disabled"],NK=["placeholder","disabled"],zK={class:"text-input__icon-container"},PK={key:0,class:"text-input__error-message"};function LK(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-link"),d=a.resolveComponent("cds-spinner"),h=a.resolveDirective("cdstip"),f=a.resolveDirective("facade");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",BK,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",{key:1,class:a.normalizeClass(r.labelDynamicClass)},[a.createElementVNode("div",AK,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",VK," * ")):a.createCommentVNode("",!0),n.tooltip?a.withDirectives((a.openBlock(),a.createBlock(o,{key:1,name:n.tooltipIcon,height:"20",width:"20",class:"label__icon"},null,8,["name"])),[[h,n.tooltip]]):a.createCommentVNode("",!0)]),r.linkTextState?(a.openBlock(),a.createBlock(c,{key:0,class:"label__link",href:n.linkUrl,text:n.linkText,"new-tab":""},null,8,["href","text"])):a.createCommentVNode("",!0)],2))]),a.createElementVNode("div",{class:a.normalizeClass(r.stepperInputDynamicClass)},[n.mask?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,id:"cds-text-input","onUpdate:modelValue":e[0]||(e[0]=m=>s.internalValue=m),placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),type:"text",onFocus:e[1]||(e[1]=(...m)=>r.handleFocus&&r.handleFocus(...m)),onBlur:e[2]||(e[2]=(...m)=>r.handleBlur&&r.handleBlur(...m))},null,42,$K)),[[a.vModelText,s.internalValue],[f,n.mask]]):a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:1,id:"cds-text-input","onUpdate:modelValue":e[3]||(e[3]=m=>s.internalValue=m),placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),type:"text",onFocus:e[4]||(e[4]=(...m)=>r.handleFocus&&r.handleFocus(...m)),onBlur:e[5]||(e[5]=(...m)=>r.handleBlur&&r.handleBlur(...m))},null,42,NK)),[[a.vModelText,s.internalValue]]),a.createElementVNode("div",zK,[r.validState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:0,height:"20",width:"20",name:"check-outline",class:"text-input__icon--check-icon"})):a.createCommentVNode("",!0),r.errorState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:1,height:"20",width:"20",name:"alert-outline",class:"text-input__icon--alert-circle-icon"})):a.createCommentVNode("",!0),r.loadingState&&!n.disabled?(a.openBlock(),a.createBlock(d,{key:2,size:"sm",variant:"blue",class:"text-input__icon--spinner-icon"})):a.createCommentVNode("",!0)])],2),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",PK,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const FK=oe(IK,[["render",LK],["__scopeId","data-v-699e13c4"]]),Gh=t=>/[0-2][0-9]:[0-5][0-9]/.test(t),RK=(t,e)=>Gh(t)&&Gh(e)?Ce.fromFormat(t,"HH:mm").diff(Ce.fromFormat(e,"HH:mm"))>0:!1,rde="",HK={directives:{facade:Rl},props:{modelValue:{type:[String,Array],default:"",validator:t=>t===""||t===[]?!0:typeof t=="string"?Gh(t):t.length===2&&RK(t[1],t[0])},id:{type:String,default:"time-input"},label:{type:String,required:!0},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},mode:{type:String,default:"single",validator:t=>["single","range"].includes(t)},state:{type:String,default:"default",validator:t=>["default","valid","invalid"].includes(t)},errorMessage:{type:String,default:"Hor\xE1rio inv\xE1lido"}},data(){return{startHour:"",startMinute:"",endHour:"",endMinute:""}},computed:{computedInputClass(){if(this.disabled)return"input__time--disabled";switch(this.state){case"valid":return"input__time--valid";case"invalid":return"input__time--invalid";default:return"input__time"}}},watch:{modelValue(t,e){t===e||t==null||this.buildTimeElements(t)}},mounted(){this.buildTimeElements(this.modelValue)},methods:{handleTimeInput(){if(this.startHour=this.startHour?this.resolveTimeElement(this.startHour,23):"",this.startMinute=this.startMinute?this.resolveTimeElement(this.startMinute,59):"",this.endHour=this.endHour?this.resolveTimeElement(this.endHour,23):"",this.endMinute=this.endMinute?this.resolveTimeElement(this.endMinute,59):"",!(this.startHour&&this.startMinute)||this.range&&!(this.endHour&&this.endMinute)){this.$emit("update:modelValue",null);return}if(this.mode==="range"){this.resolveRangeInterval();return}this.$emit("update:modelValue",`${this.startHour}:${this.startMinute}`)},resolveRangeInterval(){const t=Lt.fromDateTimes(Ce.fromFormat(`${this.startHour}:${this.startMinute}`,"HH:mm"),Ce.fromFormat(`${this.endHour}:${this.endMinute}`,"HH:mm"));if(t.invalid){this.$emit("update:modelValue",null);return}this.$emit("update:modelValue",[t.start.toFormat("HH:mm"),t.end.toFormat("HH:mm")])},formatTimeElement(t){return parseInt(t,10).toLocaleString(void 0,{minimumIntegerDigits:2,maximumFractionDigits:0})},resolveTimeElement(t,e){const n=this.formatTimeElement(t);return n>e?e:n<0?"00":n},buildTimeElements(t){if(this.mode==="single"){if(typeof t!="string")return;[this.startHour,this.startMinute]=t.split(":");return}if(typeof t=="string"){this.startHour="",this.startMinute="",this.endHour="",this.endMinute="";return}[this.startHour,this.startMinute]=t[0].split(":"),[this.endHour,this.endMinute]=t[1].split(":")}}},WK={class:"input__label"},YK=["for"],jK={key:0,class:"label__required-indicator"},UK=["id"],qK=["id","disabled"],GK=["id","disabled"],KK={key:0,class:"input__separator"},ZK={key:1},XK=["id","disabled"],JK=["id","disabled"],QK={key:0,class:"input__message"};function eZ(t,e,n,i,s,r){const o=a.resolveDirective("facade");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("label",WK,[a.createElementVNode("div",{class:"label__content",for:n.id},[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",jK," * ")):a.createCommentVNode("",!0)],8,YK)]),a.createElementVNode("div",{id:n.id,class:"input__container"},[a.createElementVNode("div",null,[a.withDirectives(a.createElementVNode("input",{id:`${n.id}-start-hour`,"onUpdate:modelValue":e[0]||(e[0]=c=>s.startHour=c),class:a.normalizeClass(r.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"23",step:"1",placeholder:"00",onKeyup:[e[1]||(e[1]=a.withKeys(c=>s.startHour++,["up"])),e[2]||(e[2]=a.withKeys(c=>s.startHour>0?s.startHour--:null,["down"]))],onInput:e[3]||(e[3]=(...c)=>r.handleTimeInput&&r.handleTimeInput(...c))},null,42,qK),[[a.vModelText,s.startHour],[o,"##"]]),a.createTextVNode(" : "),a.withDirectives(a.createElementVNode("input",{id:`${n.id}-start-minute`,"onUpdate:modelValue":e[4]||(e[4]=c=>s.startMinute=c),class:a.normalizeClass(r.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"59",step:"1",placeholder:"00",onKeyup:[e[5]||(e[5]=a.withKeys(c=>s.startMinute++,["up"])),e[6]||(e[6]=a.withKeys(c=>s.startMinute>0?s.startMinute--:null,["down"]))],onInput:e[7]||(e[7]=(...c)=>r.handleTimeInput&&r.handleTimeInput(...c))},null,42,GK),[[a.vModelText,s.startMinute],[o,"##"]])]),n.mode==="range"?(a.openBlock(),a.createElementBlock("div",KK," At\xE9 ")):a.createCommentVNode("",!0),n.mode==="range"?(a.openBlock(),a.createElementBlock("div",ZK,[a.withDirectives(a.createElementVNode("input",{id:`${n.id}-end-hour`,"onUpdate:modelValue":e[8]||(e[8]=c=>s.endHour=c),class:a.normalizeClass(r.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"23",step:"1",placeholder:"00",onKeyup:[e[9]||(e[9]=a.withKeys(c=>s.endHour++,["up"])),e[10]||(e[10]=a.withKeys(c=>s.endHour>0?s.endHour--:null,["down"]))],onInput:e[11]||(e[11]=(...c)=>r.handleTimeInput&&r.handleTimeInput(...c))},null,42,XK),[[a.vModelText,s.endHour],[o,"##"]]),a.createTextVNode(" : "),a.withDirectives(a.createElementVNode("input",{id:`${n.id}-end-minute`,"onUpdate:modelValue":e[12]||(e[12]=c=>s.endMinute=c),class:a.normalizeClass(r.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"59",step:"1",placeholder:"00",onKeyup:[e[13]||(e[13]=a.withKeys(c=>s.endMinute++,["up"])),e[14]||(e[14]=a.withKeys(c=>s.endMinute>0?s.endMinute--:null,["down"]))],onInput:e[15]||(e[15]=(...c)=>r.handleTimeInput&&r.handleTimeInput(...c))},null,42,JK),[[a.vModelText,s.endMinute],[o,"##"]])])):a.createCommentVNode("",!0)],8,UK),n.state==="invalid"&&!n.disabled?(a.openBlock(),a.createElementBlock("div",QK,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const tZ=oe(HK,[["render",eZ],["__scopeId","data-v-8cf870de"]]),ode="",Kh={props:{reverse:{type:Boolean,default:!1}},data(){return{oppositeSlotMaxWidth:"0"}},computed:{directionResolver(){return this.reverse?"column-reverse":"column"},oppositeSlotWidthResolver(){return`${this.oppositeSlotMaxWidth}px`}},mounted(){document.querySelectorAll(".cds-timeline-item__opposite").forEach(e=>{let n=e.getClientRects()[0].width;this.oppositeSlotMaxWidth<n&&(this.oppositeSlotMaxWidth=n)})}},Ov=()=>{a.useCssVars(t=>({"7ea49ddc":t.directionResolver,"1372a9d4":t.oppositeSlotWidthResolver}))},Dv=Kh.setup;Kh.setup=Dv?(t,e)=>(Ov(),Dv(t,e)):Ov;const nZ=Kh,iZ={class:"cds-timeline"};function sZ(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",iZ,[a.renderSlot(t.$slots,"default")])}const rZ=oe(nZ,[["render",sZ]]),lde="",aZ={components:{CdsSpinner:fa},props:{variant:{type:String,default:"green"},loading:{type:Boolean,default:!1},hollowed:{type:Boolean,default:!1}},methods:{hasSlot:v0}},oZ={class:"cds-timeline-item"},lZ={class:"cds-timeline-item__opposite"},cZ={class:"cds-timeline-item__timeline-container"},dZ={class:"cds-timeline-item__content-container"},uZ={key:0,class:"cds-timeline-item__title"},hZ={class:"cds-timeline-item__text"};function fZ(t,e,n,i,s,r){const o=a.resolveComponent("cds-spinner");return a.openBlock(),a.createElementBlock("div",oZ,[a.createElementVNode("div",lZ,[a.renderSlot(t.$slots,"opposite",{},void 0,!0)]),a.createElementVNode("div",cZ,[n.loading?(a.openBlock(),a.createBlock(o,{key:1,size:"sm",class:"spinner",variant:n.variant},null,8,["variant"])):(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(`cds-timeline-item__pin--${n.variant}${n.hollowed?"--hollowed":""}`)},null,2)),a.createElementVNode("div",{class:a.normalizeClass(n.loading||n.hollowed?"tail--dashed":"tail")},null,2)]),a.createElementVNode("div",dZ,[r.hasSlot(t.$slots,"title")?(a.openBlock(),a.createElementBlock("div",uZ,[a.renderSlot(t.$slots,"title",{},void 0,!0)])):a.createCommentVNode("",!0),a.createElementVNode("span",hZ,[a.renderSlot(t.$slots,"content",{},void 0,!0)])])])}const pZ=oe(aZ,[["render",fZ],["__scopeId","data-v-e1fab2ab"]]),cde="",Zh={props:{width:{type:[String,Number],default:"20"}},computed:{widthResolver(){return`${this.width}px`}}},Ev=()=>{a.useCssVars(t=>({13528900:t.widthResolver}))},Tv=Zh.setup;Zh.setup=Tv?(t,e)=>(Ev(),Tv(t,e)):Ev;const mZ=Zh,gZ={class:"truncate__container"};function _Z(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",gZ,[a.renderSlot(t.$slots,"default")])}const vZ=oe(mZ,[["render",_Z]]),dde="",yZ={directives:{cdstip:Yo},components:{CdsIcon:$t},props:{modelValue:{type:String,default:""},label:{type:String,default:"Label"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a informa\xE7\xE3o"},errorMessage:{type:String,default:"Valor inv\xE1lido"},fluid:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"}},data(){return{internalValue:"",isBeingFocused:!1,showPassword:!1}},computed:{customInputType(){return this.showPassword?"text":"password"},customTextPasswordInput(){return this.showPassword?"Ocultar":"Mostrar"},disableTextPasswordInput(){return this.internalValue.length<1||this.disabled},hasSlots(){return!!Object.keys(this.$slots).length},stepperInputDynamicClass(){let t=this.fluid?"password-input--fluid":"password-input";return this.isBeingFocused?this.disabled||(this.state==="default"?t+=" password-input--focused":this.state==="valid"?t+=" password-input--focused-valid":this.state==="invalid"&&(t+=" password-input--focused-invalid")):this.disabled?t+=" password-input--disabled":this.state==="valid"?t+=" password-input--valid":this.state==="invalid"&&(t+=" password-input--invalid"),t},labelDynamicClass(){return this.fluid?"password-input__label--fluid":"password-input__label"},inputClass(){return this.fluid?"password-input__field--fluid":"password-input__field"},errorState(){return this.state==="invalid"}},watch:{modelValue:{handler(t,e){t!==e&&(this.internalValue=t)},immediate:!0},internalValue(t){this.$emit("update:modelValue",t)}},methods:{handleShowPassword(){this.showPassword=!this.showPassword}}},bZ={key:0},wZ={class:"password-input__label__content",for:"cds-password-input"},kZ={key:0,class:"password-input__label__required-indicator"},xZ=["type","placeholder","disabled"],CZ={key:0,class:"password-input__password-toogle"},SZ={key:0,class:"password-input__error-message"};function MZ(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-clickable"),d=a.resolveDirective("cdstip");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",bZ,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",{key:1,class:a.normalizeClass(r.labelDynamicClass)},[a.createElementVNode("div",wZ,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",kZ," * ")):a.createCommentVNode("",!0),n.tooltip?a.withDirectives((a.openBlock(),a.createBlock(o,{key:1,name:n.tooltipIcon,height:"20",width:"20",class:"password-input__label__icon"},null,8,["name"])),[[d,n.tooltip]]):a.createCommentVNode("",!0)])],2))]),a.createElementVNode("div",{class:a.normalizeClass(r.stepperInputDynamicClass)},[a.withDirectives(a.createElementVNode("input",{id:"cds-password-input","onUpdate:modelValue":e[0]||(e[0]=h=>s.internalValue=h),type:r.customInputType,placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),onFocus:e[1]||(e[1]=h=>s.isBeingFocused=!0),onBlur:e[2]||(e[2]=h=>s.isBeingFocused=!1)},null,42,xZ),[[a.vModelDynamic,s.internalValue]]),r.disableTextPasswordInput?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",CZ,[a.createVNode(c,{id:"cds-clickable",clickable:"",onClick:r.handleShowPassword},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(r.customTextPasswordInput),1)]),_:1},8,["onClick"])]))],2),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",SZ,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const OZ=oe(yZ,[["render",MZ],["__scopeId","data-v-3ad89334"]]),ude="",DZ={components:{CdsBox:bl,CdsButton:ba},props:{steps:{type:Array,default:()=>[],required:!0,validator:t=>t.length>=2&&t.length<=3},activeStep:{type:Number,default:0,validator:t=>t>=0&&t<=2},clickable:{type:Boolean,default:!1},nextButtonText:{type:String,default:"Pr\xF3ximo"},cancelButtonText:{type:String,default:"Anterior"},nextButtonVariant:{type:String,default:"green"},disableNextButton:{type:Boolean,default:!1}},data(){return{currentStep:this.activeStep}},computed:{disabledBack(){return this.currentStep<=0},disabledNext(){return this.currentStep>=this.steps.length-1}},watch:{activeStep:{handler(t,e){t!==e&&(this.currentStep=t)},immediate:!0},currentStep(t,e){t!==e&&this.$emit("step-change",t)}},methods:{emptyStateText(t){return`Preencha todos os campos obrigat\xF3rios da etapa anterior para
71
71
  liberar a se\xE7\xE3o de ${t.toLowerCase()}`},handleStepBoxClick(t){this.currentStep=t},backActionClick(){this.currentStep>0?this.currentStep--:this.$emit("cancel-action",!0)},nextActionClick(){let t=this.currentStep;this.currentStep<this.steps.length-1&&t++,this.$emit("next-action",{nextStep:t})}}},EZ={class:"cds-wizard"},TZ={class:"cds-wizard__container"},IZ={key:0},BZ={class:"cds-wizard__title"},AZ={class:"cds-wizard__subtitle"},VZ={class:"cds-wizard__content"},$Z={key:1,class:"cds-wizard__empty-state"},NZ=["src","alt"],zZ={class:"cds-wizard__empty-state-title"},PZ={class:"cds-wizard__empty-state-subtitle"},LZ={class:"cds-wizard__buttons"};function FZ(t,e,n,i,s,r){const o=a.resolveComponent("cds-box"),c=a.resolveComponent("cds-button");return a.openBlock(),a.createElementBlock("div",EZ,[a.createElementVNode("div",TZ,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.steps,(d,h)=>(a.openBlock(),a.createBlock(o,{key:`wizard-step-${h}`,class:a.normalizeClass({"cds-wizard__empty-state-box":s.currentStep<h}),padding:5,elevated:s.currentStep===h,fluid:"",clickable:n.clickable,onBoxClick:f=>r.handleStepBoxClick(h),onClick:e[0]||(e[0]=a.withModifiers(()=>{},["prevent"]))},{default:a.withCtx(()=>[s.currentStep>=h?(a.openBlock(),a.createElementBlock("span",IZ,[a.renderSlot(t.$slots,`step-${h+1}-header`,{},()=>[a.createElementVNode("h3",BZ,a.toDisplayString(d.title),1),a.createElementVNode("h4",AZ,a.toDisplayString(d.subtitle),1)],!0),a.createElementVNode("div",VZ,[a.renderSlot(t.$slots,`step-${h+1}`,{},void 0,!0)])])):(a.openBlock(),a.createElementBlock("div",$Z,[d.image?(a.openBlock(),a.createElementBlock("img",{key:0,class:"cds-wizard__empty-state-image",src:d.image,alt:`Imagem de ${d.title}`},null,8,NZ)):a.createCommentVNode("",!0),a.createElementVNode("div",zZ,a.toDisplayString(d.title),1),a.createElementVNode("div",PZ,a.toDisplayString(r.emptyStateText(d.title)),1)]))]),_:2},1032,["class","elevated","clickable","onBoxClick"]))),128))]),a.createElementVNode("div",LZ,[a.createVNode(c,{text:n.cancelButtonText,secondary:"",onButtonClick:r.backActionClick,onClick:e[1]||(e[1]=a.withModifiers(()=>{},["prevent"]))},null,8,["text","onButtonClick"]),a.createVNode(c,{text:n.nextButtonText,variant:n.nextButtonVariant,disabled:n.disableNextButton,onButtonClick:r.nextActionClick,onClick:e[2]||(e[2]=a.withModifiers(()=>{},["prevent"]))},null,8,["text","variant","disabled","onButtonClick"])])])}const RZ=oe(DZ,[["render",FZ],["__scopeId","data-v-4436f0de"]]),HZ=(t,e)=>{let n="",i="",s=e.modifiers,r=e.arg;n=document.querySelector(`[id='${e.value}']`),i=document.querySelector(`[id='${t.id}']`),Oc(n,i,{placement:r,modifiers:[{name:"offset",options:{offset:[0,-4]}},{name:"flip",enabled:!!s.flip}]})};return{install:(t,e)=>{t.directive("cdstip",Yo),t.directive("cds-floatify",HZ),t.component("CdsActionBar",k7),t.component("CdsActionsList",D7),t.component("CdsAlert",$7),t.component("CdsAlertCard",F7),t.component("CdsAppBar",v8),t.component("CdsAvatar",b1),t.component("CdsBadge",w8),t.component("CdsBarChart",PC),t.component("CdsBox",bl),t.component("CdsBreadcrumb",cS),t.component("CdsButton",ba),t.component("CdsCard",DS),t.component("CdsCalloutCard",NS),t.component("CdsCarouselController",HS),t.component("CdsCheckbox",b0),t.component("CdsChevron",jo),t.component("CdsClickable",Ls),t.component("CdsCollapsibleContainer",tM),t.component("CdsColorPicker",_M),t.component("CdsDashboardCard",OM),t.component("CdsDateInput",XW),t.component("CdsDivider",Tc),t.component("CdsDropdown",iY),t.component("CdsEmptyState",uY),t.component("CdsFileInput",wY),t.component("CdsFlatButton",z_),t.component("CdsFloatingAssistant",LY),t.component("CdsGaugeChart",UY),t.component("CdsHighlight",KY),t.component("CdsIcon",$t),t.component("CdsIconButton",nj),t.component("CdsImage",xg),t.component("CdsInnerTabs",dj),t.component("CdsLineChart",HC),t.component("CdsLink",su),t.component("CdsLoadingBar",_j),t.component("CdsModal",Mj),t.component("CdsMultiselect",rU),t.component("CdsNavBar",cU),t.component("CdsNumberInput",NU),t.component("CdsPageContainer",FU),t.component("CdsPageHeader",GU),t.component("CdsPagination",QU),t.component("CdsPanelCard",oq),t.component("CdsPinInput",hq),t.component("CdsPopover",y1),t.component("CdsProgressBar",_q),t.component("CdsProgressCircular",kq),t.component("CdsPulsar",P_),t.component("CdsRadio",Eq),t.component("CdsRadioButtonGroup",Nq),t.component("CdsSpacer",pd),t.component("CdsScrollable",g1),t.component("CdsSearchInput",Fq),t.component("CdsSegmentedControl",Uq),t.component("CdsSelect",aG),t.component("CdsSideBar",yG),t.component("CdsSideSheet",xG),t.component("CdsSkeleton",MG),t.component("CdsSkeletonText",EG),t.component("CdsSpinner",fa),t.component("CdsStackedBarChart",eS),t.component("CdsStepper",RG),t.component("CdsStepperInput",eK),t.component("CdsSwitch",sK),t.component("CdsTable",dK),t.component("CdsTabs",bK),t.component("CdsTextArea",TK),t.component("CdsTextInput",FK),t.component("CdsTimeInput",tZ),t.component("CdsTooltip",Vh),t.component("CdsTimeline",rZ),t.component("CdsTimelineItem",pZ),t.component("CdsTruncate",vZ),t.component("CdsPasswordInput",OZ),t.component("CdsPieChart",UC),t.component("CdsPolarAreaChart",ZC),t.component("CdsWizard",RZ)}}});