@sysvale/cuida 3.1.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@sysvale/cuida.es.js +16 -6
- package/dist/@sysvale/cuida.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
* Released under the MIT License
|
|
36
36
|
*/class d9{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=gm.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 d9;const Um="transparent",u9={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const i=km(t||Um),s=i.valid&&km(e||Um);return s&&s.valid?s.mix(i,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class h9{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||u9[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 qm{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=p9(e,i);if(!s)return[];const r=this._createAnimations(s,i);return i.$shared&&f9(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 h9(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 f9(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 p9(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 Gm(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 m9(t,e,n){if(n===!1)return!1;const i=Gm(t,n),s=Gm(e,n);return{top:s.end,right:i.end,bottom:s.start,left:i.start}}function g9(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 Km(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 Zm(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 _9(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 Xm(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function v9(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function y9(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 b9(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function Jm(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 Qm(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=v9(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]=b9(s,f,x),g[c]=k,g._top=Jm(g,o,!0,i.type),g._bottom=Jm(g,o,!1,i.type);const T=g._visualValues||(g._visualValues={});T[c]=k}}function Y1(t,e){const n=t.scales;return Object.keys(n).filter(i=>n[i].axis===e).shift()}function w9(t,e){return js(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function k9(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 j1=t=>t==="reset"||t==="none",e2=(t,e)=>e?t:Object.assign({},t),x9=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Km(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=Xm(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,Y1(e,"x")),o=n.yAxisID=$e(i.yAxisID,Y1(e,"y")),c=n.rAxisID=$e(i.rAxisID,Y1(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&&pm(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=_9(n);else if(i!==n){if(i){pm(i,this);const s=this._cachedMeta;rl(s),s._parsed=[]}n&&Object.isExtensible(n)&&lw(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=Xm(n.vScale,n),n.stack!==i.stack&&(s=!0,rl(n),n.stack=i.stack),this._resyncElements(e),(s||r!==n._stacked)&&Qm(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&&Qm(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:Km(s,!0),values:n._stacks[e.axis]._visualValues};return Zm(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=Zm(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=x9(n,i,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:f,max:m}=y9(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=g9($e(this.options.clip,m9(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=k9(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=w9(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 e2(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(e2(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 qm(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||j1(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){j1(s)?Object.assign(e,i):this._resolveAnimations(n,s).update(e,i)}updateSharedOptions(e,n,i){e&&!j1(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 C9(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=mm(i.sort((s,r)=>s-r))}return t._cache.$bar}function S9(t){const e=t.iScale,n=C9(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 M9(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 O9(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 D9(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 t2(t,e,n,i){return Dt(t)?D9(t,e,n,i):e[n.axis]=n.parse(t,i),e}function n2(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(t2(g,m,r,h));return d}function U1(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function E9(t,e,n){return t!==0?Zi(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}function T9(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 I9(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}=T9(t);s==="middle"&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?s=h:(n._bottom||0)===i?s=f:(r[i2(f,o,c,d)]=!0,s=h)),r[i2(s,o,c,d)]=!0,t.borderSkipped=r}function i2(t,e,n,i){return i?(t=B9(t,e,n),t=s2(t,n,e)):t=s2(t,e,n),t}function B9(t,e,n){return t===e?n:t===n?e:t}function s2(t,e,n){return t==="start"?e:t==="end"?n:t}function A9(t,{inflateAmount:e},n){t.inflateAmount=e==="auto"?n===1?.33:0:e}class al extends Ii{parsePrimitiveData(e,n,i,s){return n2(e,n,i,s)}parseArrayData(e,n,i,s){return n2(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(t2(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=U1(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||U1(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;I9(T,N,O,o),A9(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||S9(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=U1(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=E9(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"?O9(e,n,s,h):M9(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 V9(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(G8(this.options.cutout,c),1),h=this._getRingWeight(this.index),{circumference:f,rotation:m}=this._getRotationExtents(),{ratioX:g,ratioY:v,offsetX:b,offsetY:x}=V9(m,f,d),k=(i.width-o)/g,O=(i.height-o)/v,T=Math.max(Math.min(k,O)/2,0),N=sm(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}=vm(n,s,o);this._drawStart=c,this._drawCount=d,ym(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 Vm.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 Vm.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}=vm(n,i,s);if(this._drawStart=r,this._drawCount=o,ym(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 $9=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 q1{constructor(e){re(this,"options");this.options=e||{}}static override(e){Object.assign(q1.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 N9={_date:q1};function z9(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?aw: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}=z9(r[c],e,o,s);for(let v=m;v<=g;++v){const b=f[v];b.skip||i(b,h,v)}}}function P9(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 G1(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 L9(t,e,n,i){let s=[];function r(o,c,d){const{startAngle:h,endAngle:f}=o.getProps(["startAngle","endAngle"],i),{angle:m}=hm(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 F9(t,e,n,i,s,r){let o=[];const c=P9(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 K1(t,e,n,i,s,r){return!r&&!t.isPointInArea(e)?[]:n==="r"&&!i?L9(t,e,n,s):F9(t,e,n,i,s,r)}function r2(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 R9={evaluateInteractionItems:ll,modes:{index(t,e,n,i){const s=Dr(e,t),r=n.axis||"x",o=n.includeInvisible||!1,c=n.intersect?G1(t,s,r,i,o):K1(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?G1(t,s,r,i,o):K1(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 G1(t,s,r,i,o)},nearest(t,e,n,i){const s=Dr(e,t),r=n.axis||"xy",o=n.includeInvisible||!1;return K1(t,s,r,n.intersect,i,o)},x(t,e,n,i){const s=Dr(e,t);return r2(t,s,"x",n.intersect,i)},y(t,e,n,i){const s=Dr(e,t);return r2(t,s,"y",n.intersect,i)}}};const a2=["left","top","right","bottom"];function cl(t,e){return t.filter(n=>n.pos===e)}function o2(t,e){return t.filter(n=>a2.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 H9(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 W9(t){const e={};for(const n of t){const{stack:i,pos:s,stackWeight:r}=n;if(!i||!a2.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 Y9(t,e){const n=W9(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 j9(t){const e=H9(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=o2(e,"x"),d=o2(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 l2(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function c2(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 U9(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&&c2(o,r.getPadding());const c=Math.max(0,e.outerWidth-l2(o,t,"left","right")),d=Math.max(0,e.outerHeight-l2(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 q9(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 G9(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,G9(c.horizontal,e));const{same:m,other:g}=U9(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 d2(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=j9(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);c2(g,yn(i));const v=Object.assign({maxPadding:g,w:r,h:o,x:s.left,y:s.top},s),b=Y9(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),q9(v),d2(c.leftAndTop,v,m,b),v.x+=v.w,v.y+=v.h,d2(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 u2{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 K9 extends u2{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Jc="$chartjs",Z9={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},h2=t=>t===null||t==="";function X9(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",h2(s)){const r=zm(t,"width");r!==void 0&&(t.width=r)}if(h2(i))if(t.style.height==="")t.height=t.width/(e||2);else{const r=zm(t,"height");r!==void 0&&(t.height=r)}return t}const f2=Qw?{passive:!0}:!1;function J9(t,e,n){t&&t.addEventListener(e,n,f2)}function Q9(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,f2)}function ek(t,e){const n=Z9[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 tk(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 nk(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 p2=0;function m2(){const t=window.devicePixelRatio;t!==p2&&(p2=t,hl.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function ik(t,e){hl.size||window.addEventListener("resize",m2),hl.set(t,e)}function sk(t){hl.delete(t),hl.size||window.removeEventListener("resize",m2)}function rk(t,e,n){const i=t.canvas,s=i&&W1(i);if(!s)return;const r=_m((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),ik(t,r),o}function Z1(t,e,n){n&&n.disconnect(),e==="resize"&&sk(t)}function ak(t,e,n){const i=t.canvas,s=_m(r=>{t.ctx!==null&&n(ek(r,t))},t);return J9(i,e,s),s}class ok extends u2{acquireContext(e,n){const i=e&&e.getContext&&e.getContext("2d");return i&&i.canvas===e?(X9(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:tk,detach:nk,resize:rk}[n]||ak;s[n]=o(e,n,i)}removeEventListener(e,n){const i=e.$proxies||(e.$proxies={}),s=i[n];if(!s)return;({attach:Z1,detach:Z1,resize:Z1}[n]||Q9)(e,n,s),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,i,s){return Jw(e,n,i,s)}isAttached(e){const n=W1(e);return!!(n&&n.isConnected)}}function lk(t){return!H1()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?K9:ok}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 ck(t,e){const n=t.options.ticks,i=dk(t),s=Math.min(n.maxTicksLimit||i,i),r=n.major.enabled?hk(e):[],o=r.length,c=r[0],d=r[o-1],h=[];if(o>s)return fk(e,h,r,o/s),h;const f=uk(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 dk(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 uk(t,e,n){const i=pk(t),s=e.length/n;if(!i)return Math.max(s,1);const r=nw(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 hk(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}function fk(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 pk(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 mk=t=>t==="left"?"right":t==="right"?"left":t,g2=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,_2=(t,e)=>Math.min(e||t,t);function v2(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 gk(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 _k(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 y2(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 vk(t,e){return js(t,{scale:e,type:"scale"})}function yk(t,e,n){return js(t,{tick:n,index:e,type:"tick"})}function bk(t,e,n){let i=B1(t);return(n&&e!=="right"||!n&&e==="right")&&(i=mk(i)),i}function wk(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=g2(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=g2(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=Tw(this,r,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const d=c<this.ticks.length;this._convertTicksToLabels(d?v2(this.ticks,c):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=ck(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=_2(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-y2(e.title,this.chart.options.font),h=Math.sqrt(m*m+g*g),o=E1(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=y2(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=v2(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/_2(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)}_k(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 rw(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=yk(this.getContext(),e,i))}return this.$context||(this.$context=vk(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=gk(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}=wk(this,d,n,c);Sr(e,i.text,0,0,r,{color:i.color,maxWidth:m,rotation:g,textAlign:bk(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;Ck(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,kk(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 kk(t,e,n){const i=Ko(Object.create(null),[n?Wt.get(n):{},Wt.get(e),t.defaults]);Wt.set(e,i),t.defaultRoutes&&xk(e,t.defaultRoutes),t.descriptors&&Wt.describe(e,t.descriptors)}function xk(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 Ck(t){return"id"in t&&"defaults"in t}class Sk{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=D1(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 Sk;class Mk{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=Ok(i);return s===!1&&!n?[]:Ek(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 Ok(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 Dk(t,e){return!e&&t===!1?null:t===!0?{}:t}function Ek(t,{plugins:e,localIds:n},i,s){const r=[],o=t.getContext();for(const c of e){const d=c.id,h=Dk(i[d],s);h!==null&&r.push({plugin:c,options:Tk(t.config,{plugin:c,local:n[d]},h,o)})}return r}function Tk(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 X1(t,e){const n=Wt.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function Ik(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function Bk(t,e){return t===e?"_index_":"_value_"}function b2(t){if(t==="x"||t==="y"||t==="r")return t}function Ak(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function J1(t,...e){if(b2(t))return t;for(const n of e){const i=n.axis||Ak(n.position)||t.length>1&&b2(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function w2(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function Vk(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 w2(t,"x",n[0])||w2(t,"y",n[0])}return{}}function $k(t,e){const n=xr[t.type]||{scales:{}},i=e.scales||{},s=X1(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=J1(o,c,Vk(o,t),Wt.scales[c.type]),h=Bk(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||X1(c,e),f=(xr[c]||{}).scales||{};Object.keys(f).forEach(m=>{const g=Ik(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 k2(t){const e=t.options||(t.options={});e.plugins=$e(e.plugins,{}),e.scales=$k(t,e)}function x2(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function Nk(t){return t=t||{},t.data=x2(t.data),k2(t),t}const C2=new Map,S2=new Set;function nd(t,e){let n=C2.get(t);return n||(n=e(),C2.set(t,n),S2.add(n)),n}const pl=(t,e,n)=>{const i=Hs(e,n);i!==void 0&&t.add(i)};class zk{constructor(e){this._config=Nk(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=x2(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(),k2(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,$1,m))});const h=Array.from(d);return h.length===0&&h.push(Object.create(null)),S2.has(n)&&o.set(n,h),h}chartOptionScopes(){const{options:e,type:n}=this;return[e,xr[n]||{},Wt.datasets[n]||{},{type:n},Wt,$1]}resolveNamedOptions(e,n,i,s=[""]){const r={$shared:!0},{resolver:o,subPrefixes:c}=M2(this._resolverCache,e,s);let d=o;if(Lk(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}=M2(this._resolverCache,e,i);return Ue(n)?xa(r,n,void 0,s):r}}function M2(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:L1(e,n),subPrefixes:n.filter(c=>!c.toLowerCase().includes("hover"))},i.set(s,r)),r}const Pk=t=>Ue(t)&&Object.getOwnPropertyNames(t).some(e=>Ws(t[e]));function Lk(t,e){const{isScriptable:n,isIndexable:i}=Dm(t);for(const s of e){const r=n(s),o=i(s),c=(o||r)&&t[s];if(r&&(Ws(c)||Pk(c))||o&&Dt(c))return!0}return!1}var Fk="4.4.2";const Rk=["top","bottom","left","right","chartArea"];function O2(t,e){return t==="top"||t==="bottom"||Rk.indexOf(t)===-1&&e==="x"}function D2(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function E2(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),St(n&&n.onComplete,[t],e)}function Hk(t){const e=t.chart,n=e.options.animation;St(n&&n.onProgress,[t],e)}function T2(t){return H1()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const id={},I2=t=>{const e=T2(t);return Object.values(id).filter(n=>n.canvas===e).pop()};function Wk(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 Yk(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 jk(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),B2()}static unregister(...e){Xi.remove(...e),B2()}constructor(e,n){const i=this.config=new zk(n),s=T2(e),r=I2(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||lk(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=q8(),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 Mk,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=cw(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",E2),ps.listen(this,"progress",Hk),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():Nm(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Sm(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,Nm(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=J1(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=J1(d,c),f=$e(c.type,o.dtype);(c.position===void 0||O2(c.position,h)!==O2(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(D2("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||X1(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(D2("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);(!om(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;Wk(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(!om(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(),E2({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=jk(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=R9.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(),Sm(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=Q8(e),h=Yk(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",Fk),re(fi,"getChart",I2);function B2(){return dt(fi.instances,t=>t._plugins.invalidate())}function Uk(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 qk(t){return P1(t,["outerStart","outerEnd","innerStart","innerEnd"])}function Gk(t,e,n,i){const s=qk(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:$}=Gk(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 Kk(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 Zk(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&&Uk(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}=hm(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,Kk(n,this,f,o,c),Zk(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 A2(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 Xk(t,e,n){t.lineTo(n.x,n.y)}function Jk(t){return t.stepped?ww:t.tension||t.cubicInterpolationMode==="monotone"?kw:Xk}function V2(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 Qk(t,e,n,i){const{points:s,options:r}=e,{count:o,start:c,loop:d,ilen:h}=V2(s,n,i),f=Jk(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 ex(t,e,n,i){const s=e.points,{count:r,start:o,ilen:c}=V2(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 Q1(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?ex:Qk}function tx(t){return t.stepped?e9:t.tension||t.cubicInterpolationMode==="monotone"?t9:Er}function nx(t,e,n,i){let s=e._path;s||(s=e._path=new Path2D,e.path(s,n,i)&&s.closePath()),A2(t,e.options),t.stroke(s)}function ix(t,e,n,i){const{segments:s,options:r}=e,o=Q1(e);for(const c of s)A2(t,r,c.style),t.beginPath(),o(t,e,c,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}const sx=typeof Path2D=="function";function rx(t,e,n,i){sx&&!e.options.segment?nx(t,e,n,i):ix(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;Uw(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=o9(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=Wm(this,{property:n,start:s,end:s});if(!o.length)return;const c=[],d=tx(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 Q1(this)(e,this,n,i)}path(e,n,i){const s=this.segments,r=Q1(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(),rx(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 $2(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 $2(this,n,"x",i)}inYRange(n,i){return $2(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,z1(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 N2(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 ax(t,e,n){const i=t.options.borderWidth,s=t.borderSkipped,r=Om(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 ox(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 lx(t){const e=N2(t),n=e.right-e.left,i=e.bottom-e.top,s=ax(t,n/2,i/2),r=ox(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 e0(t,e,n,i){const s=e===null,r=n===null,c=t&&!(s&&r)&&N2(t,i);return c&&(s||us(e,c.left,c.right))&&(r||us(n,c.top,c.bottom))}function cx(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function dx(t,e){t.rect(e.x,e.y,e.w,e.h)}function t0(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}=lx(this),c=cx(o.radius)?il:dx;e.save(),(o.w!==r.w||o.h!==r.h)&&(e.beginPath(),c(e,t0(o,n,r)),e.clip(),c(e,t0(r,-n,o)),e.fillStyle=i,e.fill("evenodd")),e.beginPath(),c(e,t0(r,n)),e.fillStyle=s,e.fill(),e.restore()}inRange(e,n,i){return e0(this,e,n,i)}inXRange(e,n){return e0(this,e,null,n)}inYRange(e,n){return e0(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 ux=Object.freeze({__proto__:null,ArcElement:ml,BarElement:od,LineElement:Us,PointElement:ad});const n0=["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)"],z2=n0.map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function P2(t){return n0[t%n0.length]}function L2(t){return z2[t%z2.length]}function hx(t,e){return t.borderColor=P2(e),t.backgroundColor=L2(e),++e}function fx(t,e){return t.backgroundColor=t.data.map(()=>P2(e++)),e}function px(t,e){return t.backgroundColor=t.data.map(()=>L2(e++)),e}function mx(t){let e=0;return(n,i)=>{const s=t.getDatasetMeta(i).controller;s instanceof Tr?e=fx(n,e):s instanceof Ma?e=px(n,e):s&&(e=hx(n,e))}}function F2(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}function gx(t){return t&&(t.borderColor||t.backgroundColor)}var _x={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&&(F2(i)||gx(s)||r&&F2(r)))return;const o=mx(t);i.forEach(o)}};function vx(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 yx(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 R2(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 H2(t){t.data.datasets.forEach(e=>{R2(e)})}function bx(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 wx={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled){H2(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}=bx(d,h);const v=n.threshold||4*i;if(g<=v){R2(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=vx(h,m,g,i,n);break;case"min-max":b=yx(h,m,g,i);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}s._decimated=b})},destroy(t){H2(t)}};function kx(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=s0(d,h,s);const f=i0(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=Wm(e,f);for(const g of m){const v=i0(n,r[g.start],r[g.end],g.loop),b=Hm(c,s,v);for(const x of b)o.push({source:x,target:g,start:{[n]:W2(f,v,"start",Math.max)},end:{[n]:W2(f,v,"end",Math.min)}})}}return o}function i0(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 xx(t,e){const{x:n=null,y:i=null}=t||{},s=e.points,r=[];return e.segments.forEach(({start:o,end:c})=>{c=s0(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 s0(t,e,n){for(;e>t;e--){const i=n[e];if(!isNaN(i.x)&&!isNaN(i.y))break}return e}function W2(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function Y2(t,e){let n=[],i=!1;return Dt(t)?(i=!0,n=t):n=xx(t,e),n.length?new Us({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function j2(t){return t&&t.fill!==!1}function Cx(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 Sx(t,e,n){const i=Ex(t);if(Ue(i))return isNaN(i.value)?!1:i;let s=parseFloat(i);return Ht(s)&&Math.floor(s)===s?Mx(i[0],e,s,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function Mx(t,e,n,i){return(t==="-"||t==="+")&&(n=e+n),n===e||n<0||n>=i?!1:n}function Ox(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 Dx(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 Ex(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 Tx(t){const{scale:e,index:n,line:i}=t,s=[],r=i.segments,o=i.points,c=Ix(e,n);c.push(Y2({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++)Bx(s,o[f],c)}return new Us({points:s,options:{}})}function Ix(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 Bx(t,e,n){const i=[];for(let s=0;s<n.length;s++){const r=n[s],{first:o,last:c,point:d}=Ax(r,e,"x");if(!(!d||o&&c)){if(o)i.unshift(d);else if(t.push(d),!c)break}}t.push(...i)}function Ax(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 U2{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 Vx(t){const{chart:e,fill:n,line:i}=t;if(Ht(n))return $x(e,n);if(n==="stack")return Tx(t);if(n==="shape")return!0;const s=Nx(t);return s instanceof U2?s:Y2(s,i)}function $x(t,e){const n=t.getDatasetMeta(e);return n&&t.isDatasetVisible(e)?n.dataset:null}function Nx(t){return(t.scale||{}).getPointPositionForValue?Px(t):zx(t)}function zx(t){const{scale:e={},fill:n}=t,i=Ox(n,e);if(Ht(i)){const s=e.isHorizontal();return{x:s?i:null,y:s?null:i}}return null}function Px(t){const{scale:e,fill:n}=t,i=e.options,s=e.getLabels().length,r=i.reverse?e.max:e.min,o=Dx(n,e,r),c=[];if(i.grid.circular){const d=e.getPointPositionForValue(0,r);return new U2({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 r0(t,e,n){const i=Vx(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),Lx(t,{line:s,target:i,above:f,below:m,area:n,scale:r,axis:o}),Hc(t))}function Lx(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&&(q2(t,i,o.top),G2(t,{line:n,target:i,color:s,scale:c,property:d}),t.restore(),t.save(),q2(t,i,o.bottom)),G2(t,{line:n,target:i,color:r,scale:c,property:d}),t.restore()}function q2(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[s0(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 G2(t,e){const{line:n,target:i,property:s,color:r,scale:o}=e,c=kx(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,Fx(t,o,v&&i0(s,f,m)),t.beginPath();const b=!!n.pathSegment(t,d);let x;if(v){b?t.closePath():K2(t,i,m,s);const k=!!i.pathSegment(t,h,{move:b,reverse:!0});x=b&&k,x||K2(t,i,f,s)}t.closePath(),t.fill(x?"evenodd":"nonzero"),t.restore()}}function Fx(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 K2(t,e,n,i){const s=e.interpolate(n,i);s&&t.lineTo(s.x,s.y)}var Rx={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:Sx(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=Cx(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&&r0(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;j2(r)&&r0(t.ctx,r,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;!j2(i)||n.drawTime!=="beforeDatasetDraw"||r0(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Z2=(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)}},Hx=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class X2 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}=Z2(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}=Wx(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}=Z2(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;Mm(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},Pm(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=dw(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+=J2($,pe)+f}else v.y+=B}),Lm(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(B1(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(!Ux(e.type,n))return;const i=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const s=this._hoveredItem,r=Hx(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 Wx(t,e,n,i,s){const r=Yx(i,t,e,n),o=jx(s,i,e.lineHeight);return{itemWidth:r,itemHeight:o}}function Yx(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 jx(t,e,n){let i=t;return typeof e.text!="string"&&(i=J2(e,n)),i}function J2(t,e){const n=t.text?t.text.length:0;return e*n}function Ux(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var qx={id:"legend",_element:X2,start(t,e,n){const i=t.legend=new X2({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 a0 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:B1(n.align),textBaseline:"middle",translation:[o,c]})}}function Gx(t,e){const n=new a0({ctx:t.ctx,options:e,chart:t});bn.configure(t,n,e),bn.addBox(t,n),t.titleBlock=n}var Kx={id:"title",_element:a0,start(t,e,n){Gx(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 Zx={id:"subtitle",start(t,e,n){const i=new a0({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=T1(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 Xx(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 Q2(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 Jx(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}function Qx(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 eC(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"),Qx(h,t,e,n)&&(h="center"),h}function eg(t,e,n){const i=n.yAlign||e.yAlign||Jx(t,n);return{xAlign:n.xAlign||e.xAlign||eC(t,e,n,i),yAlign:i}}function tC(t,e){let{x:n,width:i}=t;return e==="right"?n-=i:e==="center"&&(n-=i/2),n}function nC(t,e,n){let{y:i,height:s}=t;return e==="top"?i+=n:e==="bottom"?i-=s+n:i-=s/2,i}function tg(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=tC(e,c);const x=nC(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 ng(t){return Ji([],ms(t))}function iC(t,e,n){return js(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function ig(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const sg={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"?sg[e].call(n,i):s}class o0 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 qm(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=iC(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 ng(Fn(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:i}=n,s=[];return dt(e,r=>{const o={before:[],lines:[],after:[]},c=ig(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 ng(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(Xx(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=ig(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=Q2(this,i),h=Object.assign({},c,d),f=eg(this.chart,i,h),m=tg(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,z1(e,x,k,O),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,z1(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=Q2(this,e),d=Object.assign({},o,this._size),h=eg(n,e,d),f=tg(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),Pm(e,n.textDirection),r.y+=o.top,this.drawTitle(r,e,n),this.drawBody(r,e,n),this.drawFooter(r,e,n),Lm(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(o0,"positioners",gl);var sC={id:"tooltip",_element:o0,positioners:gl,afterInit(t,e,n){n&&(t.tooltip=new o0({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:sg},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"]},rC=Object.freeze({__proto__:null,Colors:_x,Decimation:wx,Filler:Rx,Legend:qx,SubTitle:Zx,Title:Kx,Tooltip:sC});const aC=(t,e,n,i)=>(typeof e=="string"?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function oC(t,e,n,i){const s=t.indexOf(e);if(s===-1)return aC(t,e,n,i);const r=t.lastIndexOf(e);return s!==r?n:s}const lC=(t,e)=>t===null?null:dn(Math.round(t),0,e);function rg(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class l0 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:oC(i,e,$e(n,e),this._addedLabels),lC(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 rg.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(l0,"id","category"),re(l0,"defaults",{ticks:{callback:rg}});function cC(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=cm((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=cm(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&&iw((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(um(B),um(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,ag(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,ag(c,C,t))?n[n.length-1].value=c:n.push({value:c}):(!T||F===c)&&n.push({value:F}),n}function ag(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=cC(s,r);return e.bounds==="ticks"&&dm(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 c0 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(c0,"id","linear"),re(c0,"defaults",{ticks:{callback:Lc.formatters.numeric}});const _l=t=>Math.floor(Ys(t)),Ar=(t,e)=>Math.pow(10,_l(t)+e);function og(t){return t/Math.pow(10,_l(t))===1}function lg(t,e,n){const i=Math.pow(10,n),s=Math.floor(t/i);return Math.ceil(e/i)-s}function dC(t,e){const n=e-t;let i=_l(n);for(;lg(t,e,i)>10;)i++;for(;lg(t,e,i)<10;)i--;return Math.min(i,_l(t))}function uC(t,{min:e,max:n}){e=Jn(t.min,e);const i=[],s=_l(e);let r=dC(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:og(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:og(v),significand:m}),i}class d0 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=uC(n,this);return e.bounds==="ticks"&&dm(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(d0,"id","logarithmic"),re(d0,"defaults",{ticks:{callback:Lc.formatters.logarithmic,major:{enabled:!0}}});function u0(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 hC(t,e,n){return n=Dt(n)?n:[n],{w:bw(t,e.string,n),h:n.length*e.lineHeight}}function cg(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 fC(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=hC(t.ctx,m,t._pointLabels[d]);i[d]=g;const v=Qn(t.getIndexAngle(d)+c),b=Math.round(E1(v)),x=cg(b,f.x,g.w,0,180),k=cg(b,f.y,g.h,90,270);pC(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=_C(t,i,s)}function pC(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 mC(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(E1(Qn(d.angle+Ut))),f=bC(d.y,c.h,h),m=vC(h),g=yC(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 gC(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 _C(t,e,n){const i=[],s=t._pointLabels.length,r=t.options,{centerPointLabels:o,display:c}=r.pointLabels,d={extra:u0(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=mC(t,f,d);i.push(m),c==="auto"&&(m.visible=gC(m,h),m.visible&&(h=m))}return i}function vC(t){return t===0||t===180?"center":t<180?"left":"right"}function yC(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function bC(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function wC(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 kC(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));wC(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 dg(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 xC(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(),dg(t,n,o,i),r.closePath(),r.stroke(),r.restore())}function CC(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(u0(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/u0(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?fC(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 CC(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(),dg(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&&kC(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);xC(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 ug(t,e){return t-e}function hg(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 fg(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 SC(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 MC(t){for(let e=Rn.indexOf(t)+1,n=Rn.length;e<n;++e)if(ud[Rn[e]].common)return Rn[e]}function pg(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:i,hi:s}=I1(n,e),r=n[i]>=e?n[i]:n[s];t[r]=!0}}function OC(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 mg(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:OC(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 N9._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:hg(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=ow(s,r,o);return this._unit=n.unit||(i.autoSkip?fg(n.minUnit,this.min,this.max,this._getLabelCapacity(r)):SC(this,c.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:MC(this._unit),this.initOffsets(s),e.reverse&&c.reverse(),mg(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||fg(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++)pg(f,g,b);return(g===i||s.bounds==="ticks"||v===1)&&pg(f,g,b),Object.keys(f).sort(ug).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,mg(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(hg(this,s[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return mm(e.sort(ug))}}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 h0 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(h0,"id","timeseries"),re(h0,"defaults",yl.defaults);var DC=Object.freeze({__proto__:null,CategoryScale:l0,LinearScale:c0,LogarithmicScale:d0,RadialLinearScale:vl,TimeScale:yl,TimeSeriesScale:h0});const f0=[$9,ux,rC,DC],gg={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},EC={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...gg,...{ariaLabel:{type:String},ariaDescribedby:{type:String}}},TC=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 IC(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return a.isProxy(e)?new Proxy(t,{}):t}function BC(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function _g(t,e){t.labels=e}function vg(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 AC(t,e){const n={labels:[],datasets:[]};return _g(n,t.labels),vg(n,t.datasets,e),n}const VC=a.defineComponent({props:EC,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=AC(f,v),x=IC(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&&(BC(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&&(_g(x.config.data,O),k=!0),N&&N!==C&&(vg(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:gg,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(VC,TC({ref:o},{type:t,...n}))}})}const yg=fd("bar",al),$C=fd("line",ol),NC=fd("pie",Gc),zC=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},Dle="";fi.register(...f0);const PC={components:{Bar:yg},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})}}},LC={class:"responsive-container"};function FC(t,e,n,i,s,r){const o=a.resolveComponent("Bar");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",LC,[a.createVNode(o,{is:"bar",data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const RC=oe(PC,[["render",FC],["__scopeId","data-v-1e55dea1"]]),Ele="";fi.register(...f0);const HC={components:{Line:$C},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]]}}},WC={class:"responsive-container"};function YC(t,e,n,i,s,r){const o=a.resolveComponent("Line");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",WC,[a.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const jC=oe(HC,[["render",YC],["__scopeId","data-v-3a3639cb"]]),Tle="",UC={components:{Pie:NC},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})}}},qC={class:"responsive-container"};function GC(t,e,n,i,s,r){const o=a.resolveComponent("Pie");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",qC,[a.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const KC=oe(UC,[["render",GC],["__scopeId","data-v-df415374"]]),Ile="",ZC={components:{PolarArea:zC},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})}}},XC={class:"responsive-container"};function JC(t,e,n,i,s,r){const o=a.resolveComponent("PolarArea");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",XC,[a.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const QC=oe(ZC,[["render",JC],["__scopeId","data-v-386a0dc0"]]),Ble="";fi.register(...f0);const eS={components:{Bar:yg},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})}}},tS={class:"responsive-container"};function nS(t,e,n,i,s,r){const o=a.resolveComponent("Bar");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",tS,[a.createVNode(o,{is:"bar",data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const iS=oe(eS,[["render",nS],["__scopeId","data-v-ed4bef4e"]]),Ale="",p0={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}}},bg=()=>{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}))},wg=p0.setup;p0.setup=wg?(t,e)=>(bg(),wg(t,e)):bg;const sS=p0,rS={class:"spacer"};function aS(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",rS,[a.renderSlot(t.$slots,"default",{},void 0,!0)])}const pd=oe(sS,[["render",aS],["__scopeId","data-v-5aebf225"]]);function m0(t,e=24){let n=t/8,i=n%4;return`${n>e?e:n-i+4}px`}const Vle="",g0={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:m0,handleClick(){this.clickable&&this.$emit("boxClick",!0)}}},kg=()=>{a.useCssVars(t=>({"8bf1f4e6":t.widthResolver,"337f1943":t.borderRadiusResolver}))},xg=g0.setup;g0.setup=xg?(t,e)=>(kg(),xg(t,e)):kg;const oS=g0;function lS(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(oS,[["render",lS],["__scopeId","data-v-34f9c778"]]);var _0={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})(_0,_0.exports);const Xt=_0.exports,$le="",cS={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}}},dS={class:"breadcrumb"};function uS(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",dS,[(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 hS=oe(cS,[["render",uS],["__scopeId","data-v-c2046c1c"]]),Nle="",v0={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?m0(this.width):"0px"},grayScaleResolver(){return this.blackAndWhite?"grayscale(100%)":this.dimmed?"grayscale(35%)":"grayscale(0%)"}},methods:{rounder:m0,imageSrcResolver(){this.innerSrc=this.fallbackSrc}}},Cg=()=>{a.useCssVars(t=>({"21136de6":t.radiusResolver,e10ed842:t.grayScaleResolver,"31ae2d7b":t.heightResolver,"1e7f7c9d":t.opacity,"775376fe":t.widthResolver}))},Sg=v0.setup;v0.setup=Sg?(t,e)=>(Cg(),Sg(t,e)):Cg;const fS=v0,pS=["src","alt"];function mS(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,pS)}const Mg=oe(fS,[["render",mS],["__scopeId","data-v-79754f28"]]),y0=(t,e)=>Object.keys(t).some(n=>n===e),zle="",b0={components:{CdsBox:bl,CdsImage:Mg},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:y0,handleClick(){this.clickable&&this.$emit("cardClick",!0)}}},Og=()=>{a.useCssVars(t=>({"8d304056":t.bodyWidthResolver,"4730bd46":t.imageWidthResolver}))},Dg=b0.setup;b0.setup=Dg?(t,e)=>(Og(),Dg(t,e)):Og;const gS=b0,_S={class:"card__extra-container"},vS={class:"card__extra"},yS={key:0},bS={key:1,class:"card__image"},wS={key:2,class:"card__icon"},kS={class:"card__spacer"},xS={key:0,class:"card__header"},CS={key:1},SS={class:"card__header"},MS={key:2,class:"card__body"},OS={key:3},DS={class:"card__body"},ES={key:4,class:"card__footer"};function TS(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",_S,[a.createElementVNode("div",vS,[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",yS,[a.renderSlot(t.$slots,"image",{},void 0,!0)])):n.imageSrc?(a.openBlock(),a.createElementBlock("div",bS,[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",wS,[a.renderSlot(t.$slots,"icon",{},void 0,!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",kS,[r.hasSlot(t.$slots,"header")?(a.openBlock(),a.createElementBlock("div",xS,[a.renderSlot(t.$slots,"header",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("div",CS,[a.createElementVNode("p",SS,a.toDisplayString(n.title),1)])),r.hasSlot(t.$slots,"body")?(a.openBlock(),a.createElementBlock("div",MS,[a.renderSlot(t.$slots,"body",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("div",OS,[a.createElementVNode("p",DS,a.toDisplayString(n.content),1)])),r.hasSlot(t.$slots,"footer")?(a.openBlock(),a.createElementBlock("div",ES,[a.renderSlot(t.$slots,"footer",{},void 0,!0)])):a.createCommentVNode("",!0)])],2)]),_:3},8,["clickable","onBoxClick"])}const IS=oe(gS,[["render",TS],["__scopeId","data-v-ef799654"]]),Ple="",BS={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}}},AS={id:"callout-card"},VS={class:"image__container"},$S=["src","alt"],NS={class:"content__title"},zS={class:"content__text"};function PS(t,e,n,i,s,r){const o=a.resolveComponent("cds-button");return a.openBlock(),a.createElementBlock("span",AS,[a.createElementVNode("div",{class:a.normalizeClass(r.resolveClass("callout-card__container"))},[a.createElementVNode("div",VS,[a.createElementVNode("img",{class:a.normalizeClass(r.resolveClass("image__content")),src:n.image,alt:n.imageDescription},null,10,$S)]),a.createElementVNode("div",{class:a.normalizeClass(r.resolveClass("content__container"))},[a.createElementVNode("div",{class:a.normalizeClass(r.resolveClass("content"))},[a.createElementVNode("p",NS,a.toDisplayString(n.title),1),a.createElementVNode("span",zS,[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 LS=oe(BS,[["render",PS]]),Lle="",FS={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}))}}}},RS={key:0,class:"carousel-controller__text"},HS={key:1,class:"carousel-controller__text"},WS={class:"carousel-controller__property"};function YS(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",HS,a.toDisplayString(s.currentNumberOfItemsMin)+" de "+a.toDisplayString(r.numberOfPages),1)):(a.openBlock(),a.createElementBlock("span",RS,a.toDisplayString(s.currentNumberOfItemsMin)+"-"+a.toDisplayString(s.currentNumberOfItemsMax)+" de "+a.toDisplayString(n.total),1)),a.createElementVNode("span",WS,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 jS=oe(FS,[["render",YS],["__scopeId","data-v-fcb19a0a"]]);function Eg(t,e){return`${t}--${e}`}const Fle="",US={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=Eg("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))}}},qS={class:"cds-checkbox__container"},GS={class:"cds-checkbox__input"},KS=["id","value","name","disabled"],ZS=["for"],XS=["for"];function JS(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",qS,[a.createElementVNode("div",GS,[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,KS),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,ZS)]),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,XS)])}const w0=oe(US,[["render",JS],["__scopeId","data-v-0758b096"]]),Rle="",QS={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}}},eM={id:"collapsible-container"},tM={class:"collapsible-container__title"},nM={key:0,class:"collapsible-container__content"};function iM(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",eM,[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",tM,a.toDisplayString(n.title),1)])]),s.internalValue?(a.openBlock(),a.createElementBlock("div",nM,[a.renderSlot(t.$slots,"default")])):a.createCommentVNode("",!0)])}const sM=oe(QS,[["render",iM]]),k0=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},rM=.2126,aM=.7152,oM=.0722,lM=2.4,cM={POOR:3,GOOD:4.5,VERYGOOD:7,SUPER:12},dM=(t,e,n="GOOD")=>{let i=k0(t),s=k0(e);var r=Tg(...i),o=Tg(...s),c=Math.max(r,o),d=Math.min(r,o);return(c+.05)/(d+.05)>=cM[n]};function Tg(t,e,n){var i=[t,e,n].map(s=>(s/=255,s<=.03928?s/12.92:Math.pow((s+.055)/1.055,lM)));return i[0]*rM+i[1]*aM+i[2]*oM}const Hle="",x0={components:{CdsPopover:b1,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:dM,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,"")]}}},Ig=()=>{a.useCssVars(t=>({f73e5680:t.selectedColor}))},Bg=x0.setup;x0.setup=Bg?(t,e)=>(Ig(),Bg(t,e)):Ig;const uM=x0,hM=t=>(a.pushScopeId("data-v-a4ff5e3b"),t=t(),a.popScopeId(),t),fM={key:0},pM={class:"color-picker__label"},mM=["onClick"],gM={key:1},_M=[hM(()=>a.createElementVNode("div",{class:"color-picker__preview"},null,-1))],vM=["onClick"];function yM(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",fM,[a.createElementVNode("div",pM,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,mM)]))),128))]))),128))])):(a.openBlock(),a.createElementBlock("div",gM,[a.createElementVNode("div",{id:"color-picker",class:"color-picker__trigger",onClick:e[0]||(e[0]=a.withModifiers(d=>s.showPopover=!s.showPopover,["stop"]))},_M),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,vM)]))),128))]))),128))]),_:1},8,["modelValue","height"])]))}const bM=oe(uM,[["render",yM],["__scopeId","data-v-a4ff5e3b"]]),Yle="",wM={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}}},kM={class:"dashboard-card"},xM={class:"dashboard-card__header"},CM={key:0,class:"dashboard-card__title"},SM={key:1,class:"dashboard-card__title"},MM={key:0,class:"dashboard-card__description"},OM={key:1,class:"dashboard-card__description"},DM={key:0};function EM(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",kM,[a.createElementVNode("div",null,[a.createElementVNode("div",xM,[n.title.length>0?(a.openBlock(),a.createElementBlock("p",CM,a.toDisplayString(n.title),1)):(a.openBlock(),a.createElementBlock("p",SM,[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",MM,a.toDisplayString(n.description),1)):(a.openBlock(),a.createElementBlock("p",OM,[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",DM,a.toDisplayString(n.action),1)):a.createCommentVNode("",!0)],!0)])])}const TM=oe(wM,[["render",EM],["__scopeId","data-v-cd0db219"]]);class Vr extends Error{}class IM extends Vr{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class BM extends Vr{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class AM extends Vr{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Ta extends Vr{}class Ag 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},Vg={year:ce,month:Ai,day:ce},VM={year:ce,month:Ai,day:ce,weekday:Ai},$g={year:ce,month:ei,day:ce},Ng={year:ce,month:ei,day:ce,weekday:ei},zg={hour:ce,minute:ce},Pg={hour:ce,minute:ce,second:ce},Lg={hour:ce,minute:ce,second:ce,timeZoneName:Ai},Fg={hour:ce,minute:ce,second:ce,timeZoneName:ei},Rg={hour:ce,minute:ce,hourCycle:"h23"},Hg={hour:ce,minute:ce,second:ce,hourCycle:"h23"},Wg={hour:ce,minute:ce,second:ce,hourCycle:"h23",timeZoneName:Ai},Yg={hour:ce,minute:ce,second:ce,hourCycle:"h23",timeZoneName:ei},jg={year:ce,month:ce,day:ce,hour:ce,minute:ce},Ug={year:ce,month:ce,day:ce,hour:ce,minute:ce,second:ce},qg={year:ce,month:Ai,day:ce,hour:ce,minute:ce},Gg={year:ce,month:Ai,day:ce,hour:ce,minute:ce,second:ce},$M={year:ce,month:Ai,day:ce,weekday:Ai,hour:ce,minute:ce},Kg={year:ce,month:ei,day:ce,hour:ce,minute:ce,timeZoneName:Ai},Zg={year:ce,month:ei,day:ce,hour:ce,minute:ce,second:ce,timeZoneName:Ai},Xg={year:ce,month:ei,day:ce,weekday:ei,hour:ce,minute:ce,timeZoneName:ei},Jg={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 C0=null;class gd extends wl{static get instance(){return C0===null&&(C0=new gd),C0}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:i}){return k3(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 NM(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 zM={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function PM(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 LM(t,e){const n=t.formatToParts(e),i=[];for(let s=0;s<n.length;s++){const{type:r,value:o}=n[s],c=zM[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 k3(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=NM(this.name);let[s,r,o,c,d,h,f]=i.formatToParts?LM(i,n):PM(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 Qg={};function FM(t,e={}){const n=JSON.stringify([t,e]);let i=Qg[n];return i||(i=new Intl.ListFormat(t,e),Qg[n]=i),i}let S0={};function M0(t,e={}){const n=JSON.stringify([t,e]);let i=S0[n];return i||(i=new Intl.DateTimeFormat(t,e),S0[n]=i),i}let O0={};function RM(t,e={}){const n=JSON.stringify([t,e]);let i=O0[n];return i||(i=new Intl.NumberFormat(t,e),O0[n]=i),i}let D0={};function HM(t,e={}){const{base:n,...i}=e,s=JSON.stringify([t,i]);let r=D0[s];return r||(r=new Intl.RelativeTimeFormat(t,e),D0[s]=r),r}let kl=null;function WM(){return kl||(kl=new Intl.DateTimeFormat().resolvedOptions().locale,kl)}let e3={};function YM(t){let e=e3[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,e3[t]=e}return e}function jM(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=M0(t).resolvedOptions(),s=t}catch{const d=t.substring(0,n);i=M0(d).resolvedOptions(),s=d}const{numberingSystem:r,calendar:o}=i;return[s,r,o]}}function UM(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function qM(t){const e=[];for(let n=1;n<=12;n++){const i=Ce.utc(2009,n,1);e.push(t(i))}return e}function GM(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 KM(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 ZM{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=RM(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):$0(e,3);return Jt(n,this.padTo)}}}class XM{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=M0(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 JM{constructor(e,n,i){this.opts={style:"long",...i},!n&&v3()&&(this.rtf=HM(e,i))}format(e,n){return this.rtf?this.rtf.format(e,n):vO(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const QM={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":WM()),d=n||qt.defaultNumberingSystem,h=i||qt.defaultOutputCalendar,f=A0(s)||qt.defaultWeekSettings;return new _t(c,d,h,f,o)}static resetCache(){kl=null,S0={},O0={},D0={}}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]=jM(e);this.locale=o,this.numberingSystem=n||c||null,this.outputCalendar=i||d||null,this.weekSettings=s,this.intl=UM(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=KM(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,A0(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,S3,()=>{const i=n?{month:e,day:"numeric"}:{month:e},s=n?"format":"standalone";return this.monthsCache[s][e]||(this.monthsCache[s][e]=qM(r=>this.extract(r,i,"month"))),this.monthsCache[s][e]})}weekdays(e,n=!1){return yd(this,e,D3,()=>{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]=GM(r=>this.extract(r,i,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return yd(this,void 0,()=>E3,()=>{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,T3,()=>{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 ZM(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new XM(e,this.intl,n)}relFormatter(e={}){return new JM(this.intl,this.isEnglish(),e)}listFormatter(e={}){return FM(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:y3()?YM(this.locale):QM}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 E0=null;class En extends wl{static get utcInstance(){return E0===null&&(E0=new En(0)),E0}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 eO 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(iO(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 eO(t)}let t3=()=>Date.now(),n3="system",i3=null,s3=null,r3=null,a3=60,o3,l3=null;class qt{static get now(){return t3}static set now(e){t3=e}static set defaultZone(e){n3=e}static get defaultZone(){return Zs(n3,gd.instance)}static get defaultLocale(){return i3}static set defaultLocale(e){i3=e}static get defaultNumberingSystem(){return s3}static set defaultNumberingSystem(e){s3=e}static get defaultOutputCalendar(){return r3}static set defaultOutputCalendar(e){r3=e}static get defaultWeekSettings(){return l3}static set defaultWeekSettings(e){l3=A0(e)}static get twoDigitCutoffYear(){return a3}static set twoDigitCutoffYear(e){a3=e%100}static get throwOnInvalid(){return o3}static set throwOnInvalid(e){o3=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 c3=[0,31,59,90,120,151,181,212,243,273,304,334],d3=[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 T0(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 u3(t,e,n){return n+(xl(t)?d3:c3)[e-1]}function h3(t,e){const n=xl(t)?d3:c3,i=n.findIndex(r=>r<e),s=e-n[i];return{month:i+1,day:s}}function I0(t,e){return(t-e+7)%7+1}function bd(t,e=4,n=1){const{year:i,month:s,day:r}=t,o=u3(i,s,r),c=I0(T0(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 f3(t,e=4,n=1){const{weekYear:i,weekNumber:s,weekday:r}=t,o=I0(T0(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}=h3(h,d);return{year:h,month:f,day:m,...Md(t)}}function B0(t){const{year:e,month:n,day:i}=t,s=u3(e,n,i);return{year:e,ordinal:s,...Md(t)}}function p3(t){const{year:e,ordinal:n}=t,{month:i,day:s}=h3(e,n);return{year:e,month:i,day:s,...Md(t)}}function m3(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 tO(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 nO(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 g3(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 _3(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 iO(t){return typeof t=="string"}function sO(t){return Object.prototype.toString.call(t)==="[object Date]"}function v3(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function y3(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function rO(t){return Array.isArray(t)?t:[t]}function b3(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 aO(t,e){return e.reduce((n,i)=>(n[i]=t[i],n),{})}function Ia(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function A0(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 oO(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 V0(t){if(!(Ie(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function $0(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=oO(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 w3(t,e,n){return-I0(T0(t,1,e),n)+e-1}function Cl(t,e=4,n=1){const i=w3(t,e,n),s=w3(t+1,e,n);return(Ba(t)-i+s)/7}function N0(t){return t>99?t:t>qt.twoDigitCutoffYear?1900+t:2e3+t}function k3(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 x3(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)]=x3(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 aO(t,["hour","minute","second","millisecond"])}const lO=["January","February","March","April","May","June","July","August","September","October","November","December"],C3=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],cO=["J","F","M","A","M","J","J","A","S","O","N","D"];function S3(t){switch(t){case"narrow":return[...cO];case"short":return[...C3];case"long":return[...lO];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 M3=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],O3=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],dO=["M","T","W","T","F","S","S"];function D3(t){switch(t){case"narrow":return[...dO];case"short":return[...O3];case"long":return[...M3];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const E3=["AM","PM"],uO=["Before Christ","Anno Domini"],hO=["BC","AD"],fO=["B","A"];function T3(t){switch(t){case"narrow":return[...fO];case"short":return[...hO];case"long":return[...uO];default:return null}}function pO(t){return E3[t.hour<12?0:1]}function mO(t,e){return D3(e)[t.weekday-1]}function gO(t,e){return S3(e)[t.month-1]}function _O(t,e){return T3(e)[t.year<0?0:1]}function vO(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 I3(t,e){let n="";for(const i of t)i.literal?n+=i.val:n+=e(i.val);return n}const yO={D:md,DD:Vg,DDD:$g,DDDD:Ng,t:zg,tt:Pg,ttt:Lg,tttt:Fg,T:Rg,TT:Hg,TTT:Wg,TTTT:Yg,f:jg,ff:qg,fff:Kg,ffff:Xg,F:Ug,FF:Gg,FFF:Zg,FFFF:Jg};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 yO[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?pO(e):r({hour:"numeric",hourCycle:"h12"},"dayperiod"),d=(v,b)=>i?gO(e,v):r(b?{month:v}:{month:v,day:"numeric"},"month"),h=(v,b)=>i?mO(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?_O(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 I3(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 I3(r,s(c))}}const B3=/[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 A3(...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 V3=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,bO=`(?:${V3.source}?(?:\\[(${B3.source})\\])?)?`,z0=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,$3=RegExp(`${z0.source}${bO}`),P0=RegExp(`(?:T${$3.source})?`),wO=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,kO=/(\d{4})-?W(\d\d)(?:-?(\d))?/,xO=/(\d{4})-?(\d{3})/,CO=A3("weekYear","weekNumber","weekDay"),SO=A3("year","ordinal"),MO=/(\d{4})-(\d\d)-(\d\d)/,N3=RegExp(`${z0.source} ?(?:${V3.source}|(${B3.source}))?`),OO=RegExp(`(?: ${N3.source})?`);function Na(t,e,n){const i=t[e];return Ie(i)?n:Xs(i)}function DO(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:V0(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 EO=RegExp(`^T?${z0.source}$`),TO=/^-?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 IO(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(V0(h),m)}]}const BO={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 L0(t,e,n,i,s,r,o){const c={year:e.length===2?N0(Xs(e)):Xs(e),month:C3.indexOf(n)+1,day:Xs(i),hour:Xs(s),minute:Xs(r)};return o&&(c.second=Xs(o)),t&&(c.weekday=t.length>3?M3.indexOf(t)+1:O3.indexOf(t)+1),c}const AO=/^(?:(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 VO(t){const[,e,n,i,s,r,o,c,d,h,f,m]=t,g=L0(e,s,i,n,r,o,c);let v;return d?v=BO[d]:h?v=0:v=Cd(f,m),[g,new En(v)]}function $O(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const NO=/^(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$/,zO=/^(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$/,PO=/^(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 z3(t){const[,e,n,i,s,r,o,c]=t;return[L0(e,s,i,n,r,o,c),En.utcInstance]}function LO(t){const[,e,n,i,s,r,o,c]=t;return[L0(e,c,n,i,s,r,o),En.utcInstance]}const FO=Aa(wO,P0),RO=Aa(kO,P0),HO=Aa(xO,P0),WO=Aa($3),P3=Va(DO,za,Ml,Ol),YO=Va(CO,za,Ml,Ol),jO=Va(SO,za,Ml,Ol),UO=Va(za,Ml,Ol);function qO(t){return $a(t,[FO,P3],[RO,YO],[HO,jO],[WO,UO])}function GO(t){return $a($O(t),[AO,VO])}function KO(t){return $a(t,[NO,z3],[zO,z3],[PO,LO])}function ZO(t){return $a(t,[TO,IO])}const XO=Va(za);function JO(t){return $a(t,[EO,XO])}const QO=Aa(MO,OO),eD=Aa(N3),tD=Va(za,Ml,Ol);function nD(t){return $a(t,[QO,P3],[eD,tD])}const L3="Invalid Duration",F3={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}},iD={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},...F3},gi=146097/400,Pa=146097/4800,sD={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},...F3},zr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],rD=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 R3(t,e){let n=e.milliseconds??0;for(const i of rD.slice(1))e[i]&&(n+=e[i]*t[i].milliseconds);return n}function H3(t,e){const n=R3(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 aD(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?sD:iD;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]=ZO(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]=JO(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 AM(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 Ag(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):L3}toHuman(e={}){if(!this.isValid)return L3;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+=$0(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?R3(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]=x3(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 H3(this.matrix,e),Js(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=aD(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 H3(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 oD(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 BM(i);return new Lt({invalid:i})}static fromDateTimes(e,n){const i=El(e),s=El(n),r=oD(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:v3(),localeWeek:y3()}}}function W3(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 lD(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=W3(d,h);return(f-f%7)/7}],["days",W3]],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 cD(t,e,n,i){let[s,r,o,c]=lD(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 F0={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"},Y3={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]},dD=F0.hanidec.replace(/[\[|\]]/g,"").split("");function uD(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(F0.hanidec)!==-1)e+=dD.indexOf(t[n]);else for(const s in Y3){const[r,o]=Y3[s];i>=r&&i<=o&&(e+=i-r)}}return parseInt(e,10)}else return e}function $i({numberingSystem:t},e=""){return new RegExp(`${F0[t||"latn"]}${e}`)}const hD="missing Intl.DateTimeFormat.formatToParts support";function nt(t,e=n=>n){return{regex:t,deser:([n])=>e(uD(n))}}const j3=`[ ${String.fromCharCode(160)}]`,U3=new RegExp(j3,"g");function fD(t){return t.replace(/\./g,"\\.?").replace(U3,j3)}function q3(t){return t.replace(/\./g,"").replace(U3," ").toLowerCase()}function Ni(t,e){return t===null?null:{regex:RegExp(t.map(fD).join("|")),deser:([n])=>t.findIndex(i=>q3(n)===q3(i))+e}}function G3(t,e){return{regex:t,deser:([,n,i])=>Cd(n,i),groups:e}}function Dd(t){return{regex:t,deser:([e])=>e}}function pD(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function mD(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(pD(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,N0);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,N0);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 G3(new RegExp(`([+-]${c.source})(?::(${i.source}))?`),2);case"ZZZ":return G3(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:hD};return x.token=t,x}const gD={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 _D(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=gD[o];if(typeof c=="object"&&(c=c[r]),c)return{literal:!1,val:c}}function vD(t){return[`^${t.map(n=>n.regex).reduce((n,i)=>`${n}(${i.source})`,"")}$`,t]}function yD(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 bD(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=V0(t.u)),[Object.keys(t).reduce((r,o)=>{const c=e(o);return c&&(r[c]=t[o]),r},{}),n,i]}let R0=null;function wD(){return R0||(R0=Ce.fromMillis(1555555555555)),R0}function kD(t,e){if(t.literal)return t;const n=wn.macroTokenToFormatOpts(t.val),i=X3(n,e);return i==null||i.includes(void 0)?t:i}function K3(t,e){return Array.prototype.concat(...t.map(n=>kD(n,e)))}function Z3(t,e,n){const i=K3(wn.parseFormat(n),t),s=i.map(o=>mD(o,t)),r=s.find(o=>o.invalidReason);if(r)return{input:e,tokens:i,invalidReason:r.invalidReason};{const[o,c]=vD(s),d=RegExp(o,"i"),[h,f]=yD(e,d,c),[m,g,v]=f?bD(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 xD(t,e,n){const{result:i,zone:s,specificOffset:r,invalidReason:o}=Z3(t,e,n);return[i,s,r,o]}function X3(t,e){if(!t)return null;const i=wn.create(e,t).dtFormatter(wD()),s=i.formatToParts(),r=i.resolvedOptions();return s.map(o=>_D(o,t,r))}const H0="Invalid DateTime",J3=864e13;function Ed(t){return new Vi("unsupported zone",`the zone "${t.name}" is not supported`)}function W0(t){return t.weekData===null&&(t.weekData=bd(t.c)),t.weekData}function Y0(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 Q3(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 Q3(xd(t),e,n)}function e4(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]=Q3(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 j0(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 t4(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 n4={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},CD={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},SD={ordinal:1,hour:0,minute:0,second:0,millisecond:0},i4=["year","month","day","hour","minute","second","millisecond"],MD=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],OD=["year","ordinal","hour","minute","second","millisecond"];function DD(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 Ag(t);return e}function s4(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return DD(t)}}function r4(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 i4)Ie(t[h])&&(t[h]=n4[h]);const c=g3(t)||_3(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 a4(t,e,n){const i=Ie(n.round)?!0:n.round,s=(o,c)=>(o=$0(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 o4(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]=o4(arguments),[i,s,r,o,c,d,h]=n;return r4({year:i,month:s,day:r,hour:o,minute:c,second:d,millisecond:h},e)}static utc(){const[e,n]=o4(arguments),[i,s,r,o,c,d,h]=n;return e.zone=En.utcInstance,r4({year:i,month:s,day:r,hour:o,minute:c,second:d,millisecond:h},e)}static fromJSDate(e,n={}){const i=sO(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<-J3||e>J3?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,s4),{minDaysInFirstWeek:o,startOfWeek:c}=m3(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=MD,O=CD,T=bd(T,o,c)):f?(k=OD,O=SD,T=B0(T)):(k=i4,O=n4);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?tO(r,o,c):f?nO(r):g3(r),B=C||_3(r);if(B)return Ce.invalid(B);const $=x?f3(r,o,c):f?p3(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]=qO(e);return Dl(i,s,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[i,s]=GO(e);return Dl(i,s,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[i,s]=KO(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]=xD(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]=nD(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 IM(i);return new Ce({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const i=X3(e,_t.fromObject(n));return i?i.map(s=>s?s.val:null).join(""):null}static expandFormat(e,n={}){return K3(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?W0(this).weekYear:NaN}get weekNumber(){return this.isValid?W0(this).weekNumber:NaN}get weekday(){return this.isValid?W0(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Y0(this).weekday:NaN}get localWeekNumber(){return this.isValid?Y0(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Y0(this).weekYear:NaN}get ordinal(){return this.isValid?B0(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,s4),{minDaysInFirstWeek:i,startOfWeek:s}=m3(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=f3({...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=p3({...B0(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,e4(this,n))}minus(e){if(!this.isValid)return this;const n=Je.fromDurationLike(e).negate();return Pr(this,e4(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):H0}toLocaleString(e=md,n={}){return this.isValid?wn.create(this.loc.clone(n),e).formatDateTime(this):H0}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=j0(this,o);return c+="T",c+=t4(this,o,n,i,s,r),c}toISODate({format:e="extended"}={}){return this.isValid?j0(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":"")+t4(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?j0(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():H0}[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=rO(n).map(Je.normalizeUnit),o=e.valueOf()>this.valueOf(),c=o?this:e,d=o?e:this,h=cD(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),a4(n,this.plus(i),{...e,numeric:"always",units:s,unit:r})}toRelativeCalendar(e={}){return this.isValid?a4(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 b3(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(Ce.isDateTime))throw new Hn("max requires all arguments be DateTimes");return b3(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 Z3(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 Vg}static get DATE_MED_WITH_WEEKDAY(){return VM}static get DATE_FULL(){return $g}static get DATE_HUGE(){return Ng}static get TIME_SIMPLE(){return zg}static get TIME_WITH_SECONDS(){return Pg}static get TIME_WITH_SHORT_OFFSET(){return Lg}static get TIME_WITH_LONG_OFFSET(){return Fg}static get TIME_24_SIMPLE(){return Rg}static get TIME_24_WITH_SECONDS(){return Hg}static get TIME_24_WITH_SHORT_OFFSET(){return Wg}static get TIME_24_WITH_LONG_OFFSET(){return Yg}static get DATETIME_SHORT(){return jg}static get DATETIME_SHORT_WITH_SECONDS(){return Ug}static get DATETIME_MED(){return qg}static get DATETIME_MED_WITH_SECONDS(){return Gg}static get DATETIME_MED_WITH_WEEKDAY(){return $M}static get DATETIME_FULL(){return Kg}static get DATETIME_FULL_WITH_SECONDS(){return Zg}static get DATETIME_HUGE(){return Xg}static get DATETIME_HUGE_WITH_SECONDS(){return Jg}}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 ED=Object.defineProperty,TD=(t,e,n)=>e in t?ED(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xe=(t,e,n)=>(TD(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 l4(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ID=Object.prototype,BD=ID.hasOwnProperty;function AD(t,e){return t!=null&&BD.call(t,e)}var VD=AD,$D=Array.isArray,zi=$D,ND=typeof Ad=="object"&&Ad&&Ad.Object===Object&&Ad,c4=ND,zD=c4,PD=typeof self=="object"&&self&&self.Object===Object&&self,LD=zD||PD||Function("return this")(),Qi=LD,FD=Qi,RD=FD.Symbol,Vd=RD,d4=Vd,u4=Object.prototype,HD=u4.hasOwnProperty,WD=u4.toString,Tl=d4?d4.toStringTag:void 0;function YD(t){var e=HD.call(t,Tl),n=t[Tl];try{t[Tl]=void 0;var i=!0}catch{}var s=WD.call(t);return i&&(e?t[Tl]=n:delete t[Tl]),s}var jD=YD,UD=Object.prototype,qD=UD.toString;function GD(t){return qD.call(t)}var KD=GD,h4=Vd,ZD=jD,XD=KD,JD="[object Null]",QD="[object Undefined]",f4=h4?h4.toStringTag:void 0;function eE(t){return t==null?t===void 0?QD:JD:f4&&f4 in Object(t)?ZD(t):XD(t)}var es=eE;function tE(t){return t!=null&&typeof t=="object"}var Pi=tE,nE=es,iE=Pi,sE="[object Symbol]";function rE(t){return typeof t=="symbol"||iE(t)&&nE(t)==sE}var U0=rE,aE=zi,oE=U0,lE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cE=/^\w*$/;function dE(t,e){if(aE(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||oE(t)?!0:cE.test(t)||!lE.test(t)||e!=null&&t in Object(e)}var q0=dE;function uE(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var _s=uE,hE=es,fE=_s,pE="[object AsyncFunction]",mE="[object Function]",gE="[object GeneratorFunction]",_E="[object Proxy]";function vE(t){if(!fE(t))return!1;var e=hE(t);return e==mE||e==gE||e==pE||e==_E}var Lr=vE,yE=Qi,bE=yE["__core-js_shared__"],wE=bE,G0=wE,p4=function(){var t=/[^.]+$/.exec(G0&&G0.keys&&G0.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function kE(t){return!!p4&&p4 in t}var xE=kE,CE=Function.prototype,SE=CE.toString;function ME(t){if(t!=null){try{return SE.call(t)}catch{}try{return t+""}catch{}}return""}var m4=ME,OE=Lr,DE=xE,EE=_s,TE=m4,IE=/[\\^$.*+?()[\]{}|]/g,BE=/^\[object .+?Constructor\]$/,AE=Function.prototype,VE=Object.prototype,$E=AE.toString,NE=VE.hasOwnProperty,zE=RegExp("^"+$E.call(NE).replace(IE,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function PE(t){if(!EE(t)||DE(t))return!1;var e=OE(t)?zE:BE;return e.test(TE(t))}var LE=PE;function FE(t,e){return t==null?void 0:t[e]}var RE=FE,HE=LE,WE=RE;function YE(t,e){var n=WE(t,e);return HE(n)?n:void 0}var Fr=YE,jE=Fr,UE=jE(Object,"create"),$d=UE,g4=$d;function qE(){this.__data__=g4?g4(null):{},this.size=0}var GE=qE;function KE(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var ZE=KE,XE=$d,JE="__lodash_hash_undefined__",QE=Object.prototype,eT=QE.hasOwnProperty;function tT(t){var e=this.__data__;if(XE){var n=e[t];return n===JE?void 0:n}return eT.call(e,t)?e[t]:void 0}var nT=tT,iT=$d,sT=Object.prototype,rT=sT.hasOwnProperty;function aT(t){var e=this.__data__;return iT?e[t]!==void 0:rT.call(e,t)}var oT=aT,lT=$d,cT="__lodash_hash_undefined__";function dT(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=lT&&e===void 0?cT:e,this}var uT=dT,hT=GE,fT=ZE,pT=nT,mT=oT,gT=uT;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=hT,Fa.prototype.delete=fT,Fa.prototype.get=pT,Fa.prototype.has=mT,Fa.prototype.set=gT;var _T=Fa;function vT(){this.__data__=[],this.size=0}var yT=vT;function bT(t,e){return t===e||t!==t&&e!==e}var Ra=bT,wT=Ra;function kT(t,e){for(var n=t.length;n--;)if(wT(t[n][0],e))return n;return-1}var Nd=kT,xT=Nd,CT=Array.prototype,ST=CT.splice;function MT(t){var e=this.__data__,n=xT(e,t);if(n<0)return!1;var i=e.length-1;return n==i?e.pop():ST.call(e,n,1),--this.size,!0}var OT=MT,DT=Nd;function ET(t){var e=this.__data__,n=DT(e,t);return n<0?void 0:e[n][1]}var TT=ET,IT=Nd;function BT(t){return IT(this.__data__,t)>-1}var AT=BT,VT=Nd;function $T(t,e){var n=this.__data__,i=VT(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}var NT=$T,zT=yT,PT=OT,LT=TT,FT=AT,RT=NT;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=zT,Ha.prototype.delete=PT,Ha.prototype.get=LT,Ha.prototype.has=FT,Ha.prototype.set=RT;var zd=Ha,HT=Fr,WT=Qi,YT=HT(WT,"Map"),K0=YT,_4=_T,jT=zd,UT=K0;function qT(){this.size=0,this.__data__={hash:new _4,map:new(UT||jT),string:new _4}}var GT=qT;function KT(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var ZT=KT,XT=ZT;function JT(t,e){var n=t.__data__;return XT(e)?n[typeof e=="string"?"string":"hash"]:n.map}var Pd=JT,QT=Pd;function eI(t){var e=QT(this,t).delete(t);return this.size-=e?1:0,e}var tI=eI,nI=Pd;function iI(t){return nI(this,t).get(t)}var sI=iI,rI=Pd;function aI(t){return rI(this,t).has(t)}var oI=aI,lI=Pd;function cI(t,e){var n=lI(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}var dI=cI,uI=GT,hI=tI,fI=sI,pI=oI,mI=dI;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=uI,Wa.prototype.delete=hI,Wa.prototype.get=fI,Wa.prototype.has=pI,Wa.prototype.set=mI;var Z0=Wa,v4=Z0,gI="Expected a function";function X0(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(gI);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(X0.Cache||v4),n}X0.Cache=v4;var _I=X0,vI=_I,yI=500;function bI(t){var e=vI(t,function(i){return n.size===yI&&n.clear(),i}),n=e.cache;return e}var wI=bI,kI=wI,xI=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,CI=/\\(\\)?/g,SI=kI(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(xI,function(n,i,s,r){e.push(s?r.replace(CI,"$1"):i||n)}),e}),MI=SI;function OI(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 DI=OI,y4=Vd,EI=DI,TI=zi,II=U0,BI=1/0,b4=y4?y4.prototype:void 0,w4=b4?b4.toString:void 0;function k4(t){if(typeof t=="string")return t;if(TI(t))return EI(t,k4)+"";if(II(t))return w4?w4.call(t):"";var e=t+"";return e=="0"&&1/t==-BI?"-0":e}var AI=k4,VI=AI;function $I(t){return t==null?"":VI(t)}var NI=$I,zI=zi,PI=q0,LI=MI,FI=NI;function RI(t,e){return zI(t)?t:PI(t,e)?[t]:LI(FI(t))}var x4=RI,HI=es,WI=Pi,YI="[object Arguments]";function jI(t){return WI(t)&&HI(t)==YI}var UI=jI,C4=UI,qI=Pi,S4=Object.prototype,GI=S4.hasOwnProperty,KI=S4.propertyIsEnumerable,ZI=C4(function(){return arguments}())?C4:function(t){return qI(t)&&GI.call(t,"callee")&&!KI.call(t,"callee")},J0=ZI,XI=9007199254740991,JI=/^(?:0|[1-9]\d*)$/;function QI(t,e){var n=typeof t;return e=e??XI,!!e&&(n=="number"||n!="symbol"&&JI.test(t))&&t>-1&&t%1==0&&t<e}var Q0=QI,eB=9007199254740991;function tB(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=eB}var eh=tB,nB=U0,iB=1/0;function sB(t){if(typeof t=="string"||nB(t))return t;var e=t+"";return e=="0"&&1/t==-iB?"-0":e}var Ld=sB,rB=x4,aB=J0,oB=zi,lB=Q0,cB=eh,dB=Ld;function uB(t,e,n){e=rB(e,t);for(var i=-1,s=e.length,r=!1;++i<s;){var o=dB(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&&cB(s)&&lB(o,s)&&(oB(t)||aB(t)))}var M4=uB,hB=VD,fB=M4;function pB(t,e){return t!=null&&fB(t,e,hB)}var O4=pB,mB=es,gB=Pi,_B="[object Date]";function vB(t){return gB(t)&&mB(t)==_B}var yB=vB;function bB(t){return function(e){return t(e)}}var D4=bB,Il={},wB={get exports(){return Il},set exports(t){Il=t}};(function(t,e){var n=c4,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})(wB,Il);var kB=yB,xB=D4,E4=Il,T4=E4&&E4.isDate,CB=T4?xB(T4):kB,SB=CB,MB=es,OB=zi,DB=Pi,EB="[object String]";function TB(t){return typeof t=="string"||!OB(t)&&DB(t)&&MB(t)==EB}var ts=TB;function IB(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 I4=IB,BB=zd;function AB(){this.__data__=new BB,this.size=0}var VB=AB;function $B(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var NB=$B;function zB(t){return this.__data__.get(t)}var PB=zB;function LB(t){return this.__data__.has(t)}var FB=LB,RB=zd,HB=K0,WB=Z0,YB=200;function jB(t,e){var n=this.__data__;if(n instanceof RB){var i=n.__data__;if(!HB||i.length<YB-1)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new WB(i)}return n.set(t,e),this.size=n.size,this}var UB=jB,qB=zd,GB=VB,KB=NB,ZB=PB,XB=FB,JB=UB;function Ya(t){var e=this.__data__=new qB(t);this.size=e.size}Ya.prototype.clear=GB,Ya.prototype.delete=KB,Ya.prototype.get=ZB,Ya.prototype.has=XB,Ya.prototype.set=JB;var th=Ya,QB="__lodash_hash_undefined__";function eA(t){return this.__data__.set(t,QB),this}var tA=eA;function nA(t){return this.__data__.has(t)}var iA=nA,sA=Z0,rA=tA,aA=iA;function Fd(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new sA;++e<n;)this.add(t[e])}Fd.prototype.add=Fd.prototype.push=rA,Fd.prototype.has=aA;var oA=Fd;function lA(t,e){return t.has(e)}var cA=lA,dA=oA,uA=I4,hA=cA,fA=1,pA=2;function mA(t,e,n,i,s,r){var o=n&fA,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&pA?new dA: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(!uA(e,function(O,T){if(!hA(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 B4=mA,gA=Qi,_A=gA.Uint8Array,A4=_A;function vA(t){var e=-1,n=Array(t.size);return t.forEach(function(i,s){n[++e]=[s,i]}),n}var yA=vA;function bA(t){var e=-1,n=Array(t.size);return t.forEach(function(i){n[++e]=i}),n}var wA=bA,V4=Vd,$4=A4,kA=Ra,xA=B4,CA=yA,SA=wA,MA=1,OA=2,DA="[object Boolean]",EA="[object Date]",TA="[object Error]",IA="[object Map]",BA="[object Number]",AA="[object RegExp]",VA="[object Set]",$A="[object String]",NA="[object Symbol]",zA="[object ArrayBuffer]",PA="[object DataView]",N4=V4?V4.prototype:void 0,nh=N4?N4.valueOf:void 0;function LA(t,e,n,i,s,r,o){switch(n){case PA:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case zA:return!(t.byteLength!=e.byteLength||!r(new $4(t),new $4(e)));case DA:case EA:case BA:return kA(+t,+e);case TA:return t.name==e.name&&t.message==e.message;case AA:case $A:return t==e+"";case IA:var c=CA;case VA:var d=i&MA;if(c||(c=SA),t.size!=e.size&&!d)return!1;var h=o.get(t);if(h)return h==e;i|=OA,o.set(t,e);var f=xA(c(t),c(e),i,s,r,o);return o.delete(t),f;case NA:if(nh)return nh.call(t)==nh.call(e)}return!1}var FA=LA;function RA(t,e){for(var n=-1,i=e.length,s=t.length;++n<i;)t[s+n]=e[n];return t}var HA=RA,WA=HA,YA=zi;function jA(t,e,n){var i=e(t);return YA(t)?i:WA(i,n(t))}var UA=jA;function qA(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 GA=qA;function KA(){return[]}var ZA=KA,XA=GA,JA=ZA,QA=Object.prototype,eV=QA.propertyIsEnumerable,z4=Object.getOwnPropertySymbols,tV=z4?function(t){return t==null?[]:(t=Object(t),XA(z4(t),function(e){return eV.call(t,e)}))}:JA,nV=tV;function iV(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}var sV=iV,ja={},rV={get exports(){return ja},set exports(t){ja=t}};function aV(){return!1}var oV=aV;(function(t,e){var n=Qi,i=oV,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})(rV,ja);var lV=es,cV=eh,dV=Pi,uV="[object Arguments]",hV="[object Array]",fV="[object Boolean]",pV="[object Date]",mV="[object Error]",gV="[object Function]",_V="[object Map]",vV="[object Number]",yV="[object Object]",bV="[object RegExp]",wV="[object Set]",kV="[object String]",xV="[object WeakMap]",CV="[object ArrayBuffer]",SV="[object DataView]",MV="[object Float32Array]",OV="[object Float64Array]",DV="[object Int8Array]",EV="[object Int16Array]",TV="[object Int32Array]",IV="[object Uint8Array]",BV="[object Uint8ClampedArray]",AV="[object Uint16Array]",VV="[object Uint32Array]",It={};It[MV]=It[OV]=It[DV]=It[EV]=It[TV]=It[IV]=It[BV]=It[AV]=It[VV]=!0,It[uV]=It[hV]=It[CV]=It[fV]=It[SV]=It[pV]=It[mV]=It[gV]=It[_V]=It[vV]=It[yV]=It[bV]=It[wV]=It[kV]=It[xV]=!1;function $V(t){return dV(t)&&cV(t.length)&&!!It[lV(t)]}var NV=$V,zV=NV,PV=D4,P4=Il,L4=P4&&P4.isTypedArray,LV=L4?PV(L4):zV,ih=LV,FV=sV,RV=J0,HV=zi,WV=ja,YV=Q0,jV=ih,UV=Object.prototype,qV=UV.hasOwnProperty;function GV(t,e){var n=HV(t),i=!n&&RV(t),s=!n&&!i&&WV(t),r=!n&&!i&&!s&&jV(t),o=n||i||s||r,c=o?FV(t.length,String):[],d=c.length;for(var h in t)(e||qV.call(t,h))&&!(o&&(h=="length"||s&&(h=="offset"||h=="parent")||r&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||YV(h,d)))&&c.push(h);return c}var F4=GV,KV=Object.prototype;function ZV(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||KV;return t===n}var sh=ZV;function XV(t,e){return function(n){return t(e(n))}}var R4=XV,JV=R4,QV=JV(Object.keys,Object),e$=QV,t$=sh,n$=e$,i$=Object.prototype,s$=i$.hasOwnProperty;function r$(t){if(!t$(t))return n$(t);var e=[];for(var n in Object(t))s$.call(t,n)&&n!="constructor"&&e.push(n);return e}var a$=r$,o$=Lr,l$=eh;function c$(t){return t!=null&&l$(t.length)&&!o$(t)}var Bl=c$,d$=F4,u$=a$,h$=Bl;function f$(t){return h$(t)?d$(t):u$(t)}var rh=f$,p$=UA,m$=nV,g$=rh;function _$(t){return p$(t,g$,m$)}var v$=_$,H4=v$,y$=1,b$=Object.prototype,w$=b$.hasOwnProperty;function k$(t,e,n,i,s,r){var o=n&y$,c=H4(t),d=c.length,h=H4(e),f=h.length;if(d!=f&&!o)return!1;for(var m=d;m--;){var g=c[m];if(!(o?g in e:w$.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 x$=k$,C$=Fr,S$=Qi,M$=C$(S$,"DataView"),O$=M$,D$=Fr,E$=Qi,T$=D$(E$,"Promise"),I$=T$,B$=Fr,A$=Qi,V$=B$(A$,"Set"),$$=V$,N$=Fr,z$=Qi,P$=N$(z$,"WeakMap"),L$=P$,ah=O$,oh=K0,lh=I$,ch=$$,dh=L$,W4=es,Ua=m4,Y4="[object Map]",F$="[object Object]",j4="[object Promise]",U4="[object Set]",q4="[object WeakMap]",G4="[object DataView]",R$=Ua(ah),H$=Ua(oh),W$=Ua(lh),Y$=Ua(ch),j$=Ua(dh),Rr=W4;(ah&&Rr(new ah(new ArrayBuffer(1)))!=G4||oh&&Rr(new oh)!=Y4||lh&&Rr(lh.resolve())!=j4||ch&&Rr(new ch)!=U4||dh&&Rr(new dh)!=q4)&&(Rr=function(t){var e=W4(t),n=e==F$?t.constructor:void 0,i=n?Ua(n):"";if(i)switch(i){case R$:return G4;case H$:return Y4;case W$:return j4;case Y$:return U4;case j$:return q4}return e});var U$=Rr,uh=th,q$=B4,G$=FA,K$=x$,K4=U$,Z4=zi,X4=ja,Z$=ih,X$=1,J4="[object Arguments]",Q4="[object Array]",Rd="[object Object]",J$=Object.prototype,e5=J$.hasOwnProperty;function Q$(t,e,n,i,s,r){var o=Z4(t),c=Z4(e),d=o?Q4:K4(t),h=c?Q4:K4(e);d=d==J4?Rd:d,h=h==J4?Rd:h;var f=d==Rd,m=h==Rd,g=d==h;if(g&&X4(t)){if(!X4(e))return!1;o=!0,f=!1}if(g&&!f)return r||(r=new uh),o||Z$(t)?q$(t,e,n,i,s,r):G$(t,e,d,n,i,s,r);if(!(n&X$)){var v=f&&e5.call(t,"__wrapped__"),b=m&&e5.call(e,"__wrapped__");if(v||b){var x=v?t.value():t,k=b?e.value():e;return r||(r=new uh),s(x,k,n,i,r)}}return g?(r||(r=new uh),K$(t,e,n,i,s,r)):!1}var eN=Q$,tN=eN,t5=Pi;function n5(t,e,n,i,s){return t===e?!0:t==null||e==null||!t5(t)&&!t5(e)?t!==t&&e!==e:tN(t,e,n,i,n5,s)}var i5=n5,nN=th,iN=i5,sN=1,rN=2;function aN(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 nN;if(i)var g=i(h,f,d,t,e,m);if(!(g===void 0?iN(f,h,sN|rN,i,m):g))return!1}}return!0}var oN=aN,lN=_s;function cN(t){return t===t&&!lN(t)}var s5=cN,dN=s5,uN=rh;function hN(t){for(var e=uN(t),n=e.length;n--;){var i=e[n],s=t[i];e[n]=[i,s,dN(s)]}return e}var fN=hN;function pN(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}var r5=pN,mN=oN,gN=fN,_N=r5;function vN(t){var e=gN(t);return e.length==1&&e[0][2]?_N(e[0][0],e[0][1]):function(n){return n===t||mN(n,t,e)}}var yN=vN,bN=x4,wN=Ld;function kN(t,e){e=bN(e,t);for(var n=0,i=e.length;t!=null&&n<i;)t=t[wN(e[n++])];return n&&n==i?t:void 0}var a5=kN,xN=a5;function CN(t,e,n){var i=t==null?void 0:xN(t,e);return i===void 0?n:i}var Hr=CN;function SN(t,e){return t!=null&&e in Object(t)}var MN=SN,ON=MN,DN=M4;function EN(t,e){return t!=null&&DN(t,e,ON)}var TN=EN,IN=i5,BN=Hr,AN=TN,VN=q0,$N=s5,NN=r5,zN=Ld,PN=1,LN=2;function FN(t,e){return VN(t)&&$N(e)?NN(zN(t),e):function(n){var i=BN(n,t);return i===void 0&&i===e?AN(n,t):IN(e,i,PN|LN)}}var RN=FN;function HN(t){return t}var hh=HN;function WN(t){return function(e){return e==null?void 0:e[t]}}var YN=WN,jN=a5;function UN(t){return function(e){return jN(e,t)}}var qN=UN,GN=YN,KN=qN,ZN=q0,XN=Ld;function JN(t){return ZN(t)?GN(XN(t)):KN(t)}var QN=JN,ez=yN,tz=RN,nz=hh,iz=zi,sz=QN;function rz(t){return typeof t=="function"?t:t==null?nz:typeof t=="object"?iz(t)?tz(t[0],t[1]):ez(t):sz(t)}var o5=rz;function az(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 oz=az,lz=oz,cz=lz(),l5=cz,dz=l5,uz=rh;function hz(t,e){return t&&dz(t,e,uz)}var c5=hz,fz=Bl;function pz(t,e){return function(n,i){if(n==null)return n;if(!fz(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 mz=pz,gz=c5,_z=mz,vz=_z(gz),yz=vz,bz=yz;function wz(t,e){var n;return bz(t,function(i,s,r){return n=e(i,s,r),!n}),!!n}var kz=wz,xz=Ra,Cz=Bl,Sz=Q0,Mz=_s;function Oz(t,e,n){if(!Mz(n))return!1;var i=typeof e;return(i=="number"?Cz(n)&&Sz(e,n.length):i=="string"&&e in n)?xz(n[e],t):!1}var fh=Oz,Dz=I4,Ez=o5,Tz=kz,Iz=zi,Bz=fh;function Az(t,e,n){var i=Iz(t)?Dz:Tz;return n&&Bz(t,e,n)&&(e=void 0),i(t,Ez(e))}var Vz=Az,$z=es,Nz=Pi,zz="[object Boolean]";function Pz(t){return t===!0||t===!1||Nz(t)&&$z(t)==zz}var Lz=Pz,Fz=es,Rz=Pi,Hz="[object Number]";function Wz(t){return typeof t=="number"||Rz(t)&&Fz(t)==Hz}var Li=Wz,Yz=Fr,jz=function(){try{var t=Yz(Object,"defineProperty");return t({},"",{}),t}catch{}}(),d5=jz,u5=d5;function Uz(t,e,n){e=="__proto__"&&u5?u5(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Hd=Uz,qz=Hd,Gz=Ra,Kz=Object.prototype,Zz=Kz.hasOwnProperty;function Xz(t,e,n){var i=t[e];(!(Zz.call(t,e)&&Gz(i,n))||n===void 0&&!(e in t))&&qz(t,e,n)}var Jz=Xz,Qz=Hd,eP=c5,tP=o5;function nP(t,e){var n={};return e=tP(e),eP(t,function(i,s,r){Qz(n,s,e(i,s,r))}),n}var iP=nP;function sP(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 h5=sP,rP=h5,f5=Math.max;function aP(t,e,n){return e=f5(e===void 0?t.length-1:e,0),function(){for(var i=arguments,s=-1,r=f5(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),rP(t,this,c)}}var oP=aP;function lP(t){return function(){return t}}var cP=lP,dP=cP,p5=d5,uP=hh,hP=p5?function(t,e){return p5(t,"toString",{configurable:!0,enumerable:!1,value:dP(e),writable:!0})}:uP,fP=hP,pP=800,mP=16,gP=Date.now;function _P(t){var e=0,n=0;return function(){var i=gP(),s=mP-(i-n);if(n=i,s>0){if(++e>=pP)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var vP=_P,yP=fP,bP=vP,wP=bP(yP),kP=wP,xP=hh,CP=oP,SP=kP;function MP(t,e){return SP(CP(t,e,xP),t+"")}var ph=MP;function OP(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var DP=OP,EP=_s,TP=sh,IP=DP,BP=Object.prototype,AP=BP.hasOwnProperty;function VP(t){if(!EP(t))return IP(t);var e=TP(t),n=[];for(var i in t)i=="constructor"&&(e||!AP.call(t,i))||n.push(i);return n}var $P=VP,NP=F4,zP=$P,PP=Bl;function LP(t){return PP(t)?NP(t,!0):zP(t)}var mh=LP,FP=ph,RP=Ra,HP=fh,WP=mh,m5=Object.prototype,YP=m5.hasOwnProperty,jP=FP(function(t,e){t=Object(t);var n=-1,i=e.length,s=i>2?e[2]:void 0;for(s&&HP(e[0],e[1],s)&&(i=1);++n<i;)for(var r=e[n],o=WP(r),c=-1,d=o.length;++c<d;){var h=o[c],f=t[h];(f===void 0||RP(f,m5[h])&&!YP.call(t,h))&&(t[h]=r[h])}return t}),g5=jP,UP=Hd,qP=Ra;function GP(t,e,n){(n!==void 0&&!qP(t[e],n)||n===void 0&&!(e in t))&&UP(t,e,n)}var _5=GP,Wd={},KP={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})(KP,Wd);var v5=A4;function ZP(t){var e=new t.constructor(t.byteLength);return new v5(e).set(new v5(t)),e}var XP=ZP,JP=XP;function QP(t,e){var n=e?JP(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var eL=QP;function tL(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}var nL=tL,iL=_s,y5=Object.create,sL=function(){function t(){}return function(e){if(!iL(e))return{};if(y5)return y5(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),rL=sL,aL=R4,oL=aL(Object.getPrototypeOf,Object),b5=oL,lL=rL,cL=b5,dL=sh;function uL(t){return typeof t.constructor=="function"&&!dL(t)?lL(cL(t)):{}}var hL=uL,fL=Bl,pL=Pi;function mL(t){return pL(t)&&fL(t)}var gL=mL,_L=es,vL=b5,yL=Pi,bL="[object Object]",wL=Function.prototype,kL=Object.prototype,w5=wL.toString,xL=kL.hasOwnProperty,CL=w5.call(Object);function SL(t){if(!yL(t)||_L(t)!=bL)return!1;var e=vL(t);if(e===null)return!0;var n=xL.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&w5.call(n)==CL}var ML=SL;function OL(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var k5=OL,DL=Jz,EL=Hd;function TL(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?EL(n,c,d):DL(n,c,d)}return n}var IL=TL,BL=IL,AL=mh;function VL(t){return BL(t,AL(t))}var $L=VL,x5=_5,NL=Wd,zL=eL,PL=nL,LL=hL,C5=J0,S5=zi,FL=gL,RL=ja,HL=Lr,WL=_s,YL=ML,jL=ih,M5=k5,UL=$L;function qL(t,e,n,i,s,r,o){var c=M5(t,n),d=M5(e,n),h=o.get(d);if(h){x5(t,n,h);return}var f=r?r(c,d,n+"",t,e,o):void 0,m=f===void 0;if(m){var g=S5(d),v=!g&&RL(d),b=!g&&!v&&jL(d);f=d,g||v||b?S5(c)?f=c:FL(c)?f=PL(c):v?(m=!1,f=NL(d,!0)):b?(m=!1,f=zL(d,!0)):f=[]:YL(d)||C5(d)?(f=c,C5(c)?f=UL(c):(!WL(c)||HL(c))&&(f=LL(d))):m=!1}m&&(o.set(d,f),s(f,d,i,r,o),o.delete(d)),x5(t,n,f)}var GL=qL,KL=th,ZL=_5,XL=l5,JL=GL,QL=_s,eF=mh,tF=k5;function O5(t,e,n,i,s){t!==e&&XL(e,function(r,o){if(s||(s=new KL),QL(r))JL(t,e,o,n,O5,i,s);else{var c=i?i(tF(t,o),r,o+"",t,e,s):void 0;c===void 0&&(c=r),ZL(t,o,c)}},eF)}var D5=O5,nF=D5,E5=_s;function T5(t,e,n,i,s,r){return E5(t)&&E5(e)&&(r.set(e,t),nF(t,e,void 0,T5,r),r.delete(e)),t}var iF=T5,sF=ph,rF=fh;function aF(t){return sF(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&&rF(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 oF=aF,lF=D5,cF=oF,dF=cF(function(t,e,n,i){lF(t,e,n,i)}),uF=dF,hF=h5,fF=ph,pF=iF,mF=uF,gF=fF(function(t){return t.push(void 0,pF),hF(mF,void 0,t)}),Al=gF;function _F(t){return t&&t.length?t[0]:void 0}var I5=_F;function vF(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var qa=vF;const yF=t=>Object.prototype.toString.call(t).slice(8,-1),Ga=t=>SB(t)&&!isNaN(t.getTime()),vs=t=>yF(t)==="Object",B5=O4,A5=(t,e)=>Vz(e,n=>O4(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())},V5=(t,...e)=>{const n={};let i;for(i in t)e.includes(i)||(n[i]=t[i]);return n},$5=(t,e)=>{const n={};return e.forEach(i=>{i in t&&(n[i]=t[i])}),n};function bF(t,e,n){return Math.min(Math.max(t,e),n)}var qd={},wF={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})(wF,qd);const kF=l4(qd);var Gd={},xF={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})(xF,Gd);const N5=l4(Gd);function CF(t,e){var n=DF(e);return n.formatToParts?MF(n,t):OF(n,t)}var SF={year:0,month:1,day:2,hour:3,minute:4,second:5};function MF(t,e){try{for(var n=t.formatToParts(e),i=[],s=0;s<n.length;s++){var r=SF[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 OF(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 gh={};function DF(t){if(!gh[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";gh[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 gh[t]}function z5(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 P5=36e5,EF=6e4,_h={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function TF(t,e,n){var i,s;if(!t||(i=_h.timezoneZ.exec(t),i))return 0;var r;if(i=_h.timezoneHH.exec(t),i)return r=parseInt(i[1],10),L5(r)?-(r*P5):NaN;if(i=_h.timezoneHHMM.exec(t),i){r=parseInt(i[1],10);var o=parseInt(i[2],10);return L5(r,o)?(s=Math.abs(r)*P5+o*EF,r>0?-s:s):NaN}if(AF(t)){e=new Date(e||Date.now());var c=n?e:IF(e),d=vh(c,t),h=n?d:BF(e,d,t);return-h}return NaN}function IF(t){return z5(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function vh(t,e){var n=CF(t,e),i=z5(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 BF(t,e,n){var i=t.getTime(),s=i-e,r=vh(new Date(s),n);if(e===r)return e;s-=r-e;var o=vh(new Date(s),n);return r===o?r:Math.max(r,o)}function L5(t,e){return-23<=t&&t<=23&&(e==null||0<=e&&e<=59)}var F5={};function AF(t){if(F5[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),F5[t]=!0,!0}catch{return!1}}var VF=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const $F=VF;var yh=36e5,R5=6e4,NF=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:$F};function zF(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?NF:kF(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=PF(t),r=LF(s.date,i),o=r.year,c=r.restDateString,d=FF(c,o);if(isNaN(d))return new Date(NaN);if(d){var h=d.getTime(),f=0,m;if(s.time&&(f=RF(s.time),isNaN(f)))return new Date(NaN);if(s.timeZone||n.timeZone){if(m=TF(s.timeZone||n.timeZone,new Date(h+f)),isNaN(m))return new Date(NaN)}else m=N5(new Date(h+f)),m=N5(new Date(h+f+m));return new Date(h+f+m)}else return new Date(NaN)}function PF(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 LF(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 FF(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,Y5(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 YF(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 Y5(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,j5(e,r)?H5(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 j5(e,r,d)?H5(e,r,d):new Date(NaN)}return null}function RF(t){var e,n,i;if(e=Tn.HH.exec(t),e)return n=parseFloat(e[1].replace(",",".")),bh(n)?n%24*yh:NaN;if(e=Tn.HHMM.exec(t),e)return n=parseInt(e[1],10),i=parseFloat(e[2].replace(",",".")),bh(n,i)?n%24*yh+i*R5: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 bh(n,i,s)?n%24*yh+i*R5+s*1e3:NaN}return null}function H5(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 HF=[31,28,31,30,31,30,31,31,30,31,30,31],WF=[31,29,31,30,31,30,31,31,30,31,30,31];function W5(t){return t%400===0||t%4===0&&t%100!==0}function Y5(t,e,n){if(e<0||e>11)return!1;if(n!=null){if(n<1)return!1;var i=W5(t);if(i&&n>WF[e]||!i&&n>HF[e])return!1}return!0}function YF(t,e){if(e<1)return!1;var n=W5(t);return!(n&&e>366||!n&&e>365)}function j5(t,e,n){return!(e<0||e>52||n!=null&&(n<0||n>6))}function bh(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 jF={};function wh(){return jF}function Wr(t,e){var n,i,s,r,o,c,d,h;kn(1,arguments);var f=wh(),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 U5(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 UF=6048e5;function qF(t,e,n){kn(2,arguments);var i=Wr(t,n),s=Wr(e,n),r=i.getTime()-U5(i),o=s.getTime()-U5(s);return Math.round((r-o)/UF)}function GF(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 KF(t){kn(1,arguments);var e=bs(t);return e.setDate(1),e.setHours(0,0,0,0),e}function ZF(t,e){return kn(1,arguments),qF(GF(t),KF(t),e)+1}function XF(t,e){var n,i,s,r,o,c,d,h;kn(1,arguments);var f=bs(t),m=f.getFullYear(),g=wh(),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 JF(t,e){var n,i,s,r,o,c,d,h;kn(1,arguments);var f=wh(),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=XF(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 QF=6048e5;function eR(t,e){kn(1,arguments);var n=bs(t),i=Wr(n,e).getTime()-JF(n,e).getTime();return Math.round(i/QF)+1}function Zd(t){return kn(1,arguments),Wr(t,{weekStartsOn:1})}function tR(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 nR(t){kn(1,arguments);var e=tR(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var i=Zd(n);return i}var iR=6048e5;function sR(t){kn(1,arguments);var e=bs(t),n=Zd(e).getTime()-nR(e).getTime();return Math.round(n/iR)+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 q5(t,e){kn(2,arguments);var n=Ka(e);return Xd(t,n*12)}const rR={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function aR({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<=VR;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=u_(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 oR(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 lR(t,e){return t.days.map(n=>({label:e.formatDate(n.date,e.masks.weekdays),weekday:n.weekday}))}function cR(t,e){return`${e}.${vt(t,2)}`}function G5(t,e,n){return $5(n.getDateParts(n.toDate(t)),rR[e])}function K5({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 kh(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 dR(t,e,n){return(t||!1)&&!kh(t,e)&&!Jd(t,n)}function uR(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 hR(t,e,n,i){if(!ns(t)||!ns(e))return[];const s=[];for(;!Jd(t,e);)s.push(t),t=K5(t,1,n,i);return s}function Z5(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 fR(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=aR({monthComps:c,prevMonthComps:d,nextMonthComps:h},e),m=oR(f,s,r,e),g=lR(m[0],e);return{id:Z5(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 pR(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 X5{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 mR{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 gR=Object.entries(ws).reduce((t,[e,{dow:n,L:i}])=>(t[e]={id:e,firstDayOfWeek:n,masks:{L:i}},t),{}),_R={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:gR,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},xh=a.reactive(_R),vR=a.computed(()=>iP(xh.locales,t=>(t.masks=Al(t.masks,xh.masks),t))),tr=t=>typeof window<"u"&&B5(window.__vcalendar__,t)?Hr(window.__vcalendar__,t):Hr(xh,t),yR=12,bR=5;function wR(t,e){const n=new Intl.DateTimeFormat().resolvedOptions().locale;let i;ts(t)?i=t:B5(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:yR,pageCacheSize:bR};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}=wR(e,vR.value);this.monthCache=new X5(o,WR,YR),this.pageCache=new X5(c,Z5,fR),this.id=i,this.daysInWeek=xn,this.firstDayOfWeek=bF(s,1,xn),this.masks=r,this.timezone=n||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=Oh("long",this.id),this.dayNamesShort=Oh("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(d=>d.substring(0,2)),this.dayNamesNarrow=Oh("narrow",this.id),this.monthNames=m_("long",this.id),this.monthNamesShort=m_("short",this.id),this.relativeTimeNames=qR(this.id)}formatDate(e,n){return JR(e,n,this)}parseDate(e,n){return g_(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?g_(e,o||"iso",this):i):Ga(e)?(n.type="date",s=new Date(e.getTime())):Sh(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,...$5(h,AR[c])}))}d&&(h=XR(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 HR(e,this)}getDateFromParts(e){return f_(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 pR(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 UR().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||{}),J5=(t=>(t.Days="days",t.Weeks="weeks",t.Months="months",t.Years="years",t))(J5||{}),Q5=(t=>(t.Days="days",t.Weekdays="weekdays",t.Weeks="weeks",t.Months="months",t.Years="years",t))(Q5||{}),e_=(t=>(t.OrdinalWeekdays="ordinalWeekdays",t))(e_||{});class kR{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 Mh(this.from.date,n)%this.interval===0;case"weeks":return FR(this.from.date,n)%this.interval===0;case"months":return RR(this.from.date,n)%this.interval===0;case"years":return h_(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 xR(n);case"weekdays":return new CR(n);case"weeks":return new SR(n);case"months":return new MR(n);case"years":return new OR(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 xR extends Ja{constructor(e){super("days",e,TR,({day:n,dayFromEnd:i})=>[n,-i])}}class CR extends Ja{constructor(e){super("weekdays",e,Ch,({weekday:n})=>[n])}}class SR extends Ja{constructor(e){super("weeks",e,IR,({week:n,weekFromEnd:i})=>[n,-i])}}class MR extends Ja{constructor(e){super("months",e,BR,({month:n})=>[n])}}class OR extends Ja{constructor(e){super("years",e,Li,({year:n})=>[n])}}class DR{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(!t_(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(!Ch(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(!t_(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(!Ch(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 ER{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 ER(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=J5.Days]=e.every;n.push(new kR(s,i,this.from))}return Object.values(Q5).forEach(i=>{i in e&&n.push(Ja.create(i,e[i]))}),Object.values(e_).forEach(i=>{i in e&&n.push(new DR(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 TR(t){return Li(t)?t>=1&&t<=31:!1}function Ch(t){return Li(t)?t>=1&&t<=7:!1}function IR(t){return Li(t)?t>=-6&&t<=-1||t>=1&&t<=6:!1}function BR(t){return Li(t)?t>=1&&t<=12:!1}function t_(t){return!(!Li(t)||t<-5||t>5||t===0)}const AR={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},xn=7,VR=6,n_=1e3,i_=n_*60,s_=i_*60,tu=s_*24,$R=[31,28,31,30,31,30,31,31,30,31,30,31],NR=["L","iso"],Vl={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},r_=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,zR=/\[([^]*?)\]/gm,a_={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?/,PR=/\d{3}/,LR=/\d{4}/,$l=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,o_=()=>{},l_=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,o_],W:[$l,o_],M:[nr,(t,e)=>{t.month=e-1}],MMM:[$l,l_("monthNamesShort")],MMMM:[$l,l_("monthNames")],YY:[nr,(t,e)=>{const i=+new Date().getFullYear().toString().substr(0,2);t.year=+`${e>68?i-1:i}${e}`}],YYYY:[LR,(t,e)=>{t.year=e}],S:[/\d/,(t,e)=>{t.milliseconds=e*100}],SS:[/\d{2}/,(t,e)=>{t.milliseconds=e*10}],SSS:[PR,(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 c_(t,e){return(ys(t)&&t||[ts(t)&&t||"YYYY-MM-DD"]).map(n=>NR.reduce((i,s)=>i.replace(s,e.masks[s]||""),n))}function Sh(t){return vs(t)&&"year"in t&&"month"in t&&"day"in t}function d_(t,e=1){const n=t.getDay()+1,i=n>=e?e-n:-(7-(e-n));return In(t,i)}function u_(t,e,n){const i=Date.UTC(t,e-1,n);return Mh(new Date(0),new Date(i))}function Mh(t,e){return Math.round((e.getTime()-t.getTime())/tu)}function FR(t,e){return Math.ceil(Mh(d_(t),d_(e))/7)}function h_(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}function RR(t,e){return h_(t,e)*12+(e.getMonth()-t.getMonth())}function f_(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 zF(f,{timeZone:e})}return new Date(i,s-1,r,o,c,d,h)}function HR(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*n_+r*i_+o*s_,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=u_(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 WR(t,e,n){return`${e}-${t}-${n}`}function YR(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:$R[t-1],c=n-1,d=ZF(s,{weekStartsOn:c}),h=[],f=[];for(let m=0;m<d;m++){const g=In(s,m*7);h.push(eR(g,{weekStartsOn:c})),f.push(sR(g))}return{firstDayOfWeek:n,firstDayOfMonth:s,inLeapYear:i,firstWeekday:r,numDays:o,numWeeks:d,month:t,year:e,weeknumbers:h,isoWeeknumbers:f}}function jR(){const t=[];for(let s=0;s<xn;s++)t.push(f_({year:2020,month:1,day:5+s,hours:12}));return t}function Oh(t,e=void 0){const n=new Intl.DateTimeFormat(e,{weekday:t});return jR().map(i=>n.format(i))}function UR(){const t=[];for(let e=0;e<=24;e++)t.push(new Date(2e3,0,1,e));return t}function qR(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 p_(){const t=[];for(let e=0;e<12;e++)t.push(new Date(2e3,e,15));return t}function m_(t,e=void 0){const n=new Intl.DateTimeFormat(e,{month:t,timeZone:"UTC"});return p_().map(i=>n.format(i))}function GR(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||GR(c,n,t))&&i.push({value:c,label:vt(c,o)});return i}function KR(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 ZR(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 XR(t,e){const n={...t};return Object.entries(e).forEach(([i,s])=>{const r=Vl[i],o=t[i];n[i]=ZR(t,r,o,s)}),n}function g_(t,e,n){return c_(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(r_,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 JR(t,e,n){if(t==null)return"";let i=c_(e,n)[0];/Z$/.test(i)&&(n.timezone="utc");const s=[];i=i.replace(zR,(o,c)=>(s.push(c),"??"));const r=n.getDateParts(t);return i=i.replace(r_,o=>o in a_?a_[o](r,n):o.slice(1,o.length-1)),i.replace(/\?\?/g,()=>s.shift())}let QR=0;class __{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=++QR),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 Dh(t){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:t}))}function zl(t){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:t}))}function v_(t){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:t}))}function y_(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&&(v_({...t,target:t.target||b.currentTarget}),b.stopPropagation())},h=b=>{o||(o=!0,(i||s)&&Dh({...t,target:t.target||b.currentTarget}))},f=()=>{o&&(o=!1,(i||s&&!c)&&zl(t))},m=b=>{c||(c=!0,(r||s)&&Dh({...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 b_=t=>{const e=Yd(t);if(e==null)return;const n=e.popoverHandlers;!n||!n.length||(n.forEach(i=>i()),delete e.popoverHandlers)},w_=(t,e)=>{const n=Yd(t);if(n==null)return;const i=[],s=y_(e);Object.entries(s).forEach(([r,o])=>{i.push(er(n,r,o))}),n.popoverHandlers=i},k_={mounted(t,e){const{value:n}=e;!n||w_(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&&(b_(t),r||zl(n)),r&&w_(t,i))},unmounted(t){b_(t)}},eH=(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={},tH=(t,e=10)=>{nu[t]=Date.now()+e},nH=(t,e)=>{if(t in nu){const n=nu[t];if(Date.now()<n)return;delete nu[t]}e()};function x_(){return typeof window<"u"}function iH(t){return x_()&&t in window}function sH(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(){iH("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(x_()&&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 rH=["base","start","end","startEnd"],aH=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],oH={base:{},start:{},end:{}};function Eh(t,e,n=oH){let i=t,s={};e===!0||ts(e)?(i=ts(e)?e:i,s={...n}):vs(e)&&(A5(e,rH)?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)&&(A5(c,aH)?r[o]={...c}:r[o]={}),Al(r[o],{color:d})}),r}class lH{constructor(){xe(this,"type","highlight")}normalizeConfig(e,n){return Eh(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 Th{constructor(e,n){xe(this,"type",""),xe(this,"collectionType",""),this.type=e,this.collectionType=n}normalizeConfig(e,n){return Eh(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 cH extends Th{constructor(){super("content","content")}normalizeConfig(e,n){return Eh("base",n)}}class dH extends Th{constructor(){super("dot","dots")}}class uH extends Th{constructor(){super("bar","bars")}}class hH{constructor(e){xe(this,"color"),xe(this,"renderers",[new cH,new lH,new dH,new uH]),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 C_=Symbol("__vc_base_context__"),S_={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 M_(t){const e=a.computed(()=>t.color??""),n=a.computed(()=>t.isDark??!1),{displayMode:i}=sH(n),s=a.computed(()=>new hH(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 __({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(C_,m),m}function fH(t){return a.inject(C_,()=>M_(t),!0)}function O_(t){return`__vc_slot_${t}__`}function D_(t,e={}){Object.keys(t).forEach(n=>{a.provide(O_(e[n]??n),t[n])})}function E_(t){return a.inject(O_(t),null)}const pH={...S_,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},mH=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],T_=Symbol("__vc_calendar_context__");function gH(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;D_(e);const{theme:b,color:x,displayMode:k,locale:O,masks:T,minDate:N,maxDate:C,disabledAttribute:B,disabledDates:$}=fH(t),L=a.computed(()=>t.rows*t.columns),F=a.computed(()=>t.step||L.value),q=a.computed(()=>I5(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)=>K5(W,E,Y,O.value),ae=W=>G5(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 __({...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 mR;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?"":Lz(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||(kh(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=kh(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})),hR(E.fromPage,E.toPage,h.value,O.value).map(ke=>dR(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&&!uR(E.fromPage,q.value)&&(zl({id:c.value,hideDelay:0}),E.view&&(tH("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=q5(Y,-1):se=Xd(Y,-1);break}case"PageDown":{E.altKey?se=q5(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=eH(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,()=>{nH("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(T_,ve),ve}function Yr(){const t=a.inject(T_);if(t)return t;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const _H=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,V5(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 vH(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 Ih=ir(_H,[["render",vH]]),yH={class:"vc-day-popover-row"},bH={key:0,class:"vc-day-popover-row-indicator"},wH={class:"vc-day-popover-row-label"},kH=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",yH,[a.unref(n)?(a.openBlock(),a.createElementBlock("div",bH,[a.createElementVNode("span",{class:a.normalizeClass(a.unref(n).class)},null,2)])):a.createCommentVNode("",!0),a.createElementVNode("div",wH,[a.renderSlot(i.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(t.attribute.popover?t.attribute.popover.label:"No content provided"),1)])])]))}}),xH={inheritAttrs:!1},vi=a.defineComponent({...xH,__name:"CalendarSlot",props:{name:null},setup(t){const n=E_(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})}}),CH={class:"vc-day-popover-container"},SH={key:0,class:"vc-day-popover-header"},MH=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(Ih,{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",CH,[a.unref(s).dayPopover?(a.openBlock(),a.createElementBlock("div",SH,a.toDisplayString(c(f)),1)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m,v=>(a.openBlock(),a.createBlock(kH,{key:v.key,attribute:v},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),OH={},DH={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},EH=[a.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1)];function TH(t,e){return a.openBlock(),a.createElementBlock("svg",DH,EH)}const IH=ir(OH,[["render",TH]]),BH={},AH={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},VH=[a.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1)];function $H(t,e){return a.openBlock(),a.createElementBlock("svg",AH,VH)}const NH=ir(BH,[["render",$H]]),zH={},PH={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},LH=[a.createElementVNode("polyline",{points:"6 9 12 15 18 9"},null,-1)];function FH(t,e){return a.openBlock(),a.createElementBlock("svg",PH,LH)}const RH=ir(zH,[["render",FH]]),HH={},WH={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},YH=[a.createElementVNode("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)];function jH(t,e){return a.openBlock(),a.createElementBlock("svg",WH,YH)}const UH=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:RH,IconChevronLeft:NH,IconChevronRight:IH,IconClock:ir(HH,[["render",jH]])},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(()=>UH[`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"]))}}),qH=["disabled"],GH={key:1,class:"vc-title-wrapper"},KH={type:"button",class:"vc-title"},ZH=["disabled"],I_=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,qH)):a.createCommentVNode("",!0),a.unref(v).title?(a.openBlock(),a.createElementBlock("div",GH,[a.createVNode(vi,{name:"header-title-wrapper"},{default:a.withCtx(()=>[a.withDirectives((a.openBlock(),a.createElementBlock("button",KH,[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(k_),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,ZH)):a.createCommentVNode("",!0)],6))}}),B_=Symbol("__vc_page_context__");function XH(t){const{locale:e,getDateAddress:n,canMove:i}=Yr();function s(c,d){const{month:h,year:f}=n(new Date);return p_().map((m,g)=>{const v=g+1;return{month:v,year:c,id:cR(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(B_,o),o}function A_(){const t=a.inject(B_);if(t)return t;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const JH={class:"vc-nav-header"},QH=["disabled"],eW=["disabled"],tW={class:"vc-nav-items"},nW=["data-id","aria-label","disabled","onClick","onKeydown"],iW=a.defineComponent({__name:"CalendarNav",setup(t){const{masks:e,move:n}=Yr(),{page:i,getMonthItems:s,getYearItems:r}=A_(),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(()=>I5(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",JH,[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,QH),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,eW)]),a.createElementVNode("div",tW,[(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,nW))),128))])],512))}}),V_=a.defineComponent({__name:"CalendarPageProvider",props:{page:null},setup(t){const e=t;return XH(a.toRef(e,"page")),(n,i)=>a.renderSlot(n.$slots,"default")}}),sW=a.defineComponent({__name:"CalendarNavPopover",setup(t){const{navPopoverId:e,color:n,displayMode:i}=Yr();return(s,r)=>(a.openBlock(),a.createBlock(Ih,{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(V_,{page:o.page},{default:a.withCtx(()=>[a.createVNode(vi,{name:"nav"},{default:a.withCtx(()=>[a.createVNode(iW)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),rW=a.defineComponent({directives:{popover:k_},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=g5({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=E_("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)?g5({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}}}),aW={key:0,class:"vc-highlights vc-day-layer"},oW={key:1,class:"vc-day-layer vc-day-box-center-bottom"},lW={class:"vc-dots"},cW={key:2,class:"vc-day-layer vc-day-box-center-bottom"},dW={class:"vc-bars"};function uW(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",aW,[(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",oW,[a.createElementVNode("div",lW,[(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",cW,[a.createElementVNode("div",dW,[(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 hW=ir(rW,[["render",uW]]),fW={class:"vc-weekdays"},pW=["onClick"],mW={inheritAttrs:!1},gW=a.defineComponent({...mW,__name:"CalendarPage",setup(t){const{page:e}=A_(),{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(I_,{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",fW,[(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,pW)],2)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.days,o=>(a.openBlock(),a.createBlock(hW,{key:o.id,day:o},null,8,["day"]))),128))]))),128))],2)],2))}}),_W=a.defineComponent({components:{CalendarHeader:I_,CalendarPage:gW,CalendarNavPopover:sW,CalendarDayPopover:MH,CalendarPageProvider:V_,CalendarSlot:vi},props:pH,emit:mH,setup(t,{emit:e,slots:n}){return gH(t,{emit:e,slots:n})}}),vW={class:"vc-pane-header-wrapper"};function yW(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",vW,[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 bW=ir(_W,[["render",yW]]),$_=Symbol("__vc_date_picker_context__"),wW={...S_,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]},kW=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function xW(t,{emit:e,slots:n}){D_(n,{footer:"dp-footer"});const i=M_(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(()=>y_({...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!=="":Sh(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={}){Dh({...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){v_({...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=G5(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($_,W),W}function Bh(){const t=a.inject($_);if(t)return t;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const CW=[{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"}],SW=[{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 MW(t){const e=Bh(),{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(()=>Sh(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(()=>KR(v.value,o.value[t.position])),F=a.computed(()=>CW.filter(K=>L.value.hours.some(ie=>ie.value===K.value))),q=a.computed(()=>SW.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 OW=["value"],DW=["value","disabled"],EW={key:1,class:"vc-base-sizer","aria-hidden":"true"},TW={inheritAttrs:!1},Pl=a.defineComponent({...TW,__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,DW))),128))],16,OW),t.showIcon?(a.openBlock(),a.createBlock(Qa,{key:0,name:"ChevronDown",size:"18"})):a.createCommentVNode("",!0),t.fitContent?(a.openBlock(),a.createElementBlock("div",EW,a.toDisplayString(a.unref(n)),1)):a.createCommentVNode("",!0)],2))}}),IW={key:0,class:"vc-time-header"},BW={class:"vc-time-weekday"},AW={class:"vc-time-month"},VW={class:"vc-time-day"},$W={class:"vc-time-year"},NW={class:"vc-time-select-group"},zW=a.createElementVNode("span",{class:"vc-time-colon"},":",-1),PW=a.createElementVNode("span",{class:"vc-time-colon"},":",-1),LW=a.createElementVNode("span",{class:"vc-time-decimal"},".",-1),N_=a.defineComponent({__name:"TimePicker",props:{position:null},setup(t,{expose:e}){const i=MW(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",IW,[a.createElementVNode("span",BW,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"WWW")),1),a.createElementVNode("span",AW,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"MMM")),1),a.createElementVNode("span",VW,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"D")),1),a.createElementVNode("span",$W,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"YYYY")),1)])):a.createCommentVNode("",!0)]),_:1}),a.createElementVNode("div",NW,[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},[zW,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},[PW,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},[LW,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))}}),z_=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}=Bh(),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(N_,{key:b,position:b},null,8,["position"]))),128))],2)):(a.openBlock(),a.createBlock(bW,{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(N_,{key:b,position:b},null,8,["position"]))),128)):a.createCommentVNode("",!0),a.createVNode(vi,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),FW={inheritAttrs:!1},RW=a.defineComponent({...FW,__name:"DatePickerPopover",setup(t){const{datePickerPopoverId:e,color:n,displayMode:i,popoverRef:s,onPopoverBeforeShow:r,onPopoverAfterShow:o,onPopoverBeforeHide:c,onPopoverAfterHide:d}=Bh();return(h,f)=>(a.openBlock(),a.createBlock(Ih,{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(z_,a.normalizeProps(a.guardReactiveProps(h.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),HW=a.defineComponent({inheritAttrs:!1,emits:kW,props:wW,components:{DatePickerBase:z_,DatePickerPopover:RW},setup(t,e){const n=xW(t,e),i=a.reactive(V5(n,"calendarRef","popoverRef"));return{...n,slotCtx:i}}});function WW(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 YW=ir(HW,[["render",WW]]),mce="",gce="",iu=t=>/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(t),jW={components:{VDatePicker:YW,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()}}},UW={class:"date-input__container"},qW={key:0},GW={key:1,class:"date-input__label"},KW={class:"label__content",for:"cds-text-input"},ZW={key:0,class:"label__required-indicator"},XW=["value","disabled","placeholder","onClick"],JW={key:0,class:"date-input__error-message"};function QW(t,e,n,i,s,r){const o=a.resolveComponent("cds-chevron"),c=a.resolveComponent("v-date-picker");return a.openBlock(),a.createElementBlock("div",UW,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",qW,[a.renderSlot(t.$slots,"label")])):(a.openBlock(),a.createElementBlock("label",GW,[a.createElementVNode("div",KW,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",ZW," * ")):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,XW)]),_:1},8,["modelValue","available-dates","onUpdate:modelValue"]),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",JW,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const eY=oe(jW,[["render",QW]]),_ce="",tY={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}}},nY=["id"],iY={class:"filter-pill__label"},sY={class:"filter-pill__content"};function rY(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",iY,a.toDisplayString(n.label)+": ",1),a.createElementVNode("span",sY,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,nY),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 aY=oe(tY,[["render",rY],["__scopeId","data-v-f6d65f66"]]),vce="",oY=["teal","green","blue","indigo","violet","pink","red","orange","amber"],lY={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=>oY.includes(t)}}},cY={class:"empty-state"},dY=["src","alt"],uY={class:"empty-state__title"},hY={class:"empty-state__text"};function fY(t,e,n,i,s,r){const o=a.resolveComponent("cds-button");return a.openBlock(),a.createElementBlock("div",cY,[a.renderSlot(t.$slots,"graphic-element",{},()=>[a.createElementVNode("img",{class:"empty-state__image",src:n.image,alt:n.imageDescription},null,8,dY)],!0),a.createElementVNode("div",uY,a.toDisplayString(n.title),1),a.createElementVNode("div",hY,[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 pY=oe(lY,[["render",fY],["__scopeId","data-v-a4be2019"]]),yce="",Ah={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)}}},P_=()=>{a.useCssVars(t=>({"637a4784":t.textAlignmentResolver}))},L_=Ah.setup;Ah.setup=L_?(t,e)=>(P_(),L_(t,e)):P_;const mY=Ah,gY=["accept"],_Y={key:0,class:"file-input__container"},vY={key:0},yY={key:1},bY={key:1,class:"file-input__container"},wY={key:1},kY={key:0,class:"file-input__alert-container"};function xY(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,gY),[[a.vShow,!1]]),s.file?(a.openBlock(),a.createElementBlock("div",bY,[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",wY," 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",_Y,[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",yY," Solte aqui o seu arquivo ")):(a.openBlock(),a.createElementBlock("div",vY,[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",kY,a.toDisplayString(r.computedAllowedMessage),1)):a.createCommentVNode("",!0)],64)}const CY=oe(mY,[["render",xY],["__scopeId","data-v-dee88fdd"]]),bce="",SY={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)}}},MY={id:"cds-link-button"};function OY(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",MY,[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 F_=oe(SY,[["render",OY],["__scopeId","data-v-17beab84"]]),wce="",DY={props:{variant:{type:String,default:"green"},targetId:{type:String,default:""},position:{type:String,default:"top-end"}}},EY={id:"cds-pulsar"};function TY(t,e,n,i,s,r){const o=a.resolveDirective("cds-floatify");return a.withDirectives((a.openBlock(),a.createElementBlock("div",EY,[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 R_=oe(DY,[["render",TY],["__scopeId","data-v-6f878a26"]]),kce="",IY={components:{CdsPulsar:R_,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}}},BY=["id"],AY=["id"],VY={key:0},$Y={key:1},NY={key:0,class:"floating-assistant__content"},zY={class:"floating-assistant__footer"},PY=["href"],LY={key:1,class:"floating-assistant__subtitle"},FY={key:2};function RY(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",VY,[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",$Y,[a.createElementVNode("span",{class:a.normalizeClass(`floating-assistant__title--${n.variant}`)},a.toDisplayString(n.title),3),s.isExpanded?(a.openBlock(),a.createElementBlock("div",NY,[a.renderSlot(t.$slots,"default",{},void 0,!0),a.createElementVNode("span",zY,[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,PY),a.createTextVNode(". ")])])):(a.openBlock(),a.createElementBlock("span",LY," Clique para mais informa\xE7\xF5es "))])),s.isExpanded?(a.openBlock(),a.createElementBlock("div",FY,[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,AY)),[[h,s.pulsarId,s.position]])],10,BY)}const HY=oe(IY,[["render",RY],["__scopeId","data-v-24ad8b5d"]]),xce="",Vh={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})}%`}}},H_=()=>{a.useCssVars(t=>({ba3cfafc:t.chartProgressValue}))},W_=Vh.setup;Vh.setup=W_?(t,e)=>(H_(),W_(t,e)):H_;const WY=Vh,YY={class:"responsive-container"},jY=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),UY={x:"50%",y:"50%","dominant-baseline":"middle","text-anchor":"middle",class:"value"},qY={x:"50%",y:"62%","dominant-baseline":"middle","text-anchor":"middle",class:"subtitle"};function GY(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",YY,[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"},[jY,a.createElementVNode("text",UY,a.toDisplayString(r.formatedValue),1),a.createElementVNode("text",qY,a.toDisplayString(n.subtitle),1)],2))],4)])])}const KY=oe(WY,[["render",GY],["__scopeId","data-v-f4b6afdc"]]),Cce="",ZY={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 XY(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 JY=oe(ZY,[["render",XY],["__scopeId","data-v-91b540f7"]]),Sce="",QY={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>`}}},ej=["data-tippy-placement","data-tippy-content"];function tj(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,ej)),[[o,n.text]])}const $h=oe(QY,[["render",tj]]),Mce="",Y_=["sm","md","lg"],nj={components:{CdsIcon:$t,CdsTooltip:$h},props:{size:{type:String,default:"md",validator:t=>Y_.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:Y_,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))}}},ij={id:"cds-icon-button"};function sj(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-tooltip");return a.openBlock(),a.createElementBlock("span",ij,[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 rj=oe(nj,[["render",sj],["__scopeId","data-v-97670025"]]);var Nh={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})(Nh,Nh.exports);const Ll=Nh.exports,j_=[{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=j_.map(t=>t.name),Fl=t=>{const e=j_.filter(n=>n.name===t)[0];return e?e.hex:""},Oce="",aj={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}`:""}}},oj={id:"inner-tabs"},lj={class:"inner-tabs__header-container"},cj={class:"inner-tabs__header"},dj=["onClick"],uj={class:"inner-tabs__content"};function hj(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",oj,[a.createElementVNode("div",lj,[a.createElementVNode("ul",cj,[(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,dj),a.createElementVNode("div",{class:a.normalizeClass(r.indicatorClass(o)),style:a.normalizeStyle(r.activeBorderStyle)},null,6)]))),128))])]),a.createElementVNode("div",uj,[(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 fj=oe(aj,[["render",hj]]),Dce="",pj={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}}},mj=["href","target"];function gj(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,mj)],2)}const su=oe(pj,[["render",gj]]),Ece="",_j={},vj=[(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 yj(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",null,vj)}const bj=oe(_j,[["render",yj],["__scopeId","data-v-59f3ef96"]]),Bce="",wj=["teal","green","blue","indigo","violet","pink","red","orange","amber"],kj={directives:{"on-click-outside":Ic.directive},components:{CdsIcon:$t,CdsButton:ba,CdsScrollable:_1},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=>wj.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)}}},xj={key:0,class:"cds-modal__backdrop"},Cj={key:0},Sj={class:"cds-modal__header"},Mj={key:1,class:"cds-modal__body"},Oj={key:1,class:"cds-modal__footer"};function Dj(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",xj,[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",Cj,[a.renderSlot(t.$slots,"header",{},()=>[a.createElementVNode("div",Sj,[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",Mj,[a.renderSlot(t.$slots,"default",{},void 0,!0)]))]),n.noFooter?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("footer",Oj,[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 Ej=oe(kj,[["render",Dj],["__scopeId","data-v-4a842748"]]);function zh(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function Tj(t){return(...e)=>!t(...e)}function Ij(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function U_(t,e,n,i){return e?t.filter(s=>Ij(i(s,n),e)).sort((s,r)=>i(s,n).length-i(r,n).length):t}function Bj(t){return t.filter(e=>!e.$isLabel)}function Ph(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 Aj(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=U_(o[n],t,e,s);return c.length?{[i]:o[i],[n]:c}:[]})}const q_=(...t)=>e=>t.reduce((n,i)=>i(n),e);var Vj={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 zh(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):U_(n,e,this.label,this.customLabel):n=this.groupValues?Ph(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(Tj(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 q_(Aj(e,n,this.groupValues,this.groupLabel,this.customLabel),Ph(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return q_(Ph(this.groupValues,this.groupLabel),Bj)(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(zh(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;const e=this.customLabel(t,this.label);return zh(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))}}},$j={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}}},G_={name:"vue-multiselect",mixins:[Vj,$j],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 Nj={ref:"tags",class:"multiselect__tags"},zj={class:"multiselect__tags-wrap"},Pj={class:"multiselect__spinner"},Lj={key:0},Fj={class:"multiselect__option"},Rj={class:"multiselect__option"},Hj=a.createTextVNode("No elements found. Consider changing the search query."),Wj={class:"multiselect__option"},Yj=a.createTextVNode("List is empty.");function jj(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",Nj,[a.renderSlot(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:r.visibleValues,isOpen:t.isOpen},()=>[a.withDirectives(a.createVNode("div",zj,[(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",Pj,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",Lj,[a.createVNode("span",Fj,[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",Rj,[a.renderSlot(t.$slots,"noResult",{search:t.search},()=>[Hj])])],512),[[a.vShow,n.showNoResults&&t.filteredOptions.length===0&&t.search&&!n.loading]]),a.withDirectives(a.createVNode("li",null,[a.createVNode("span",Wj,[a.renderSlot(t.$slots,"noOptions",{},()=>[Yj])])],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"])}G_.render=jj;const Ace="",Vce="",eo=0,to=1,ru=t=>t===void 0?{}:JSON.parse(JSON.stringify(t)),Lh={components:{Multiselect:G_,CdsDivider:Tc,CdsCheckbox:w0,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:v1()}},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)}}},K_=()=>{a.useCssVars(t=>({"7b3aebae":t.inputBackgroundColor}))},Z_=Lh.setup;Lh.setup=Z_?(t,e)=>(K_(),Z_(t,e)):K_;const Uj=Lh,qj=["data-cds-multiselect-identifier"],Gj={key:0},Kj={key:1,class:"clustered-multiselect__label"},Zj=["for"],Xj={key:0,class:"label__required-indicator"},Jj={key:1,class:"cds-multiselect__grouped-divider"},Qj={key:0,class:"cds-multiselect__group-label"},eU={key:1,class:"cds-multiselect__option"},tU={class:"option__checkbox"},nU=["id","onUpdate:modelValue","name"],iU=["id","for","onClick"],sU={key:0,class:"multiselect__single"},rU={key:1},aU={key:0,class:"clustered-multiselect__error-message"};function oU(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",Gj,[a.renderSlot(t.$slots,"label")])):(a.openBlock(),a.createElementBlock("label",Kj,[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",Xj," * ")):a.createCommentVNode("",!0)],8,Zj)]))]),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",Jj,[a.createVNode(d,{dimmed:""})]))],512),[[a.vShow,!s.queryString&&n.options.length]])]),option:a.withCtx(({option:f})=>[f.$isLabel?(a.openBlock(),a.createElementBlock("div",Qj,[a.createVNode(d,{text:f.$groupLabel,inline:"",dimmed:""},null,8,["text"])])):(a.openBlock(),a.createElementBlock("div",eU,[a.createElementVNode("div",tU,[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,nU),[[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,iU)]),a.createTextVNode(" "+a.toDisplayString(f[n.optionsField]),1)]))]),selection:a.withCtx(({values:f,isOpen:m})=>[f.length&&!m?(a.openBlock(),a.createElementBlock("span",sU,a.toDisplayString(r.selectedFancyMessage(f.length)),1)):(a.openBlock(),a.createElementBlock("span",rU))]),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",aU,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)],8,qj)}const lU=oe(Uj,[["render",oU]]),$ce="",cU={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}`:""}}},dU={id:"nav-bar"};function uU(t,e,n,i,s,r){const o=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",dU,[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 hU=oe(cU,[["render",uU]]);var fU=Object.defineProperty,pU=(t,e,n)=>e in t?fU(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,X_=(t,e,n)=>(pU(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},J_=["+","-"],Q_=["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 ev(t){return t=t?t.toString():"",t.replace(/\D+/g,"")||"0"}function mU(t,e){return t.replace(/(\d)(?=(?:\d{3})+\b)/gm,`$1${e}`)}function gU(t,e,n){return e?t+n+e:t}function _U(t,e){return J_.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 vU(t){for(const e of Q_)if(!_U(t[e],e))return!1;return!0}function tv(t){for(const e of Q_){t[e]=t[e].replace(/\d+/g,"");for(const n of J_)t[e]=t[e].replaceAll(n,"")}return t}function nv(t){const e=t.length,n=t.indexOf(".");return e-(n+1)}function iv(t){return t.replace(/^(-?)0+(?!\.)(.+)/,"$1$2")}function sv(t){return/^-?[\d]+$/g.test(t)}function rv(t){return/^-?[\d]+(\.[\d]+)$/g.test(t)}function av(t,e,n){return e>t.length-1?t:t.substring(0,e)+n+t.substring(e+1)}function ov(t,e){const n=e-nv(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 av(i,r,c);i=av(i,r,"0")}}return`1${i}`}return i}function lv(t,e){const n=()=>{t.setSelectionRange(e,e)};t===document.activeElement&&(n(),setTimeout(n,1))}function cv(t){return new Event(t,{bubbles:!0,cancelable:!1})}function Qe({debug:t=!1},...e){t&&console.log(...e)}class lu{constructor(e){X_(this,"number",0n),X_(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?ov(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=iv(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=iv(e),sv(e))this.number=BigInt(e);else if(rv(e))this.decimal=nv(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 yU(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&&sv(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!=="."&&rv(s)&&(s=ov(s,0),Qe(e,"utils format() - !opt.precision && isValidFloat()",s));const r=ev(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=mU(d,e.thousands);const m=e.prefix+gU(d,h,e.decimal)+e.suffix;return Qe(e,"utils format() - output",m),m}function dv(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=ev(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 Fh=(t,e,n)=>{if(Qe(e,"directive setValue() - caller",n),!vU(e)){Qe(e,"directive setValue() - validateRestrictedOptions() return false. Stopping here...",t.value);return}let i=t.value.length-(t.selectionEnd||0);t.value=yU(t.value,e,n),i=Math.max(i,e.suffix.length),i=t.value.length-i,i=Math.max(i,e.prefix.length),lv(t,i),t.dispatchEvent(cv("change"))},uv=(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&&dv(n.value,e,"directive onkeydown allowBlank")===0&&(Qe(e,'directive onkeydown() - set el.value = ""',n.value),n.value="",n.dispatchEvent(cv("change"))),Qe(e,"directive onkeydown() - e.key",t.key),t.key==="+"){Qe(e,"directive onkeydown() - unformat el.value",n.value);let r=dv(n.value,e,"directive onkeydown +");typeof r=="string"&&(r=parseFloat(r)),r<0&&(n.value=String(r*-1))}},hv=(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)),Fh(n,e,"directive oninput")},fv=(t,e)=>{const n=t.currentTarget;Qe(e,"directive onFocus()",n.value),e.focusOnRight&&lv(n,n.value.length-e.suffix.length)},bU={mounted(t,e){if(!e.value)return;const n=tv({...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=>{uv(i,n)},t.oninput=i=>{hv(i,n)},t.onfocus=i=>{fv(i,n)},Qe(n,"directive mounted() - el.value",t.value),Fh(t,n,"directive mounted")},updated(t,e){if(!e.value)return;const n=tv({...au,...e.value});t.onkeydown=i=>{uv(i,n)},t.oninput=i=>{hv(i,n)},t.onfocus=i=>{fv(i,n)},Qe(n,"directive updated() - el.value",t.value),Qe(n,"directive updated() - opt",n),Fh(t,n,"directive updated")},beforeUnmount(t){t.onkeydown=null,t.oninput=null,t.onfocus=null}},wU={"#":{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 Rh(t){this.masked=this.unmasked=t||""}function pv(){return new CustomEvent("input",{bubbles:!0,cancelable:!0,detail:{facade:!0}})}function Hh(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 mv(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),kU(t,r,o),c!==n.value&&n.dispatchEvent(pv())}function kU(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=vv(f,c);if(s&&typeof c.formatter=="function"){const g=c.formatter(m,s);if(typeof g=="string")m=vv(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(pv())}}let Wh=wU,gv=!1;try{"a".localeCompare("b","i")}catch(t){gv=t.name==="RangeError"}function xU(t){t&&(Wh=t)}function CU(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=Yh(t,i({mask:d})),f=c.unmasked.length;return h.unmasked.length>f?h:c};if(!n.length)return new Rh;const r=n.shift();let o=Yh(t,i({mask:r}));for(;n.length;){const c=n.shift();o=s(o,c)}return o}function Yh(t,e){var n,i;let{mask:s="",tokens:r,prefill:o=!1,short:c=!1}=e;r=r?Object.assign({},Wh,r):Wh;let d=new Rh,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(_v.bind(null,k));T&&(d.unmasked+=T,d.masked+=g+T,m+=O.pipe.length*2-1,g=""),f++}else _v(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 _v(t,e){return gv?(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 vv(t,e){return t=(t||"").toString(),e=Hh(e),e.mask?Array.isArray(e.mask)?CU(t,Object.assign({},e,{masks:e.mask})):Yh(t,e):new Rh(t)}const no=qr,Rl={beforeMount:(t,{value:e,modifiers:n},i)=>{t=cu(t);const s=Hh(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&&mv(r,t)},s=r=>{r.target===t&&(r.type==="compositionend"?(t[no].isComposing=!1,mv(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=Hh(e,i),du(t,s,{force:!0})):du(t,s)},unmounted:t=>{cu(t)[no].cleanup()}},SU=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n},MU={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)}}},OU=["value"];function DU(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,OU)),[[o,r.config]])}const yv=SU(MU,[["render",DU]]),EU={install(t,e={}){e.tokens&&xU(e.tokens),t.component(yv.name,yv),t.directive(e.name||"facade",Rl)}};typeof window<"u"&&window.Vue&&window.Vue.use(EU);const Nce="",TU={directives:{money:bU,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)}}},IU={key:0},BU={class:"label__content",for:"cds-text-input"},AU={key:0,class:"label__required-indicator"},VU=["placeholder","disabled"],$U=["placeholder","disabled"],NU={class:"text-input__icon-container"},zU={key:0,class:"text-input__error-message"};function PU(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",IU,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",{key:1,class:a.normalizeClass(r.labelDynamicClass)},[a.createElementVNode("div",BU,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",AU," * ")):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,VU)),[[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,$U)),[[a.vModelText,s.internalValue]]),a.createElementVNode("div",NU,[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",zU,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const LU=oe(TU,[["render",PU],["__scopeId","data-v-3acacd68"]]),zce="",FU={},RU={class:"page-container__container"};function HU(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",RU,[a.renderSlot(t.$slots,"default",{},void 0,!0)])}const WU=oe(FU,[["render",HU],["__scopeId","data-v-2f5908a0"]]),Pce="",YU={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])}}},jU={class:"page-header__title"},UU={key:0,class:"d-flex"},qU={class:"page-header__subtitle"},GU={key:1,class:"page-header__subtitle"},KU={class:"page-header__aside-slot"};function ZU(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",jU,a.toDisplayString(n.title),1),s.splitedSubtitle.length>0?(a.openBlock(),a.createElementBlock("div",UU,[a.createElementVNode("span",qU,[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",GU,a.toDisplayString(n.subtitle),1))]),a.createElementVNode("div",KU,[a.renderSlot(t.$slots,"aside")])],2)}const XU=oe(YU,[["render",ZU]]);class Wn{constructor(e,n,i,s=null){this.index=e,this.value=n,this.selected=i,this.text=s||n}}const Lce="",JU={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?Eg("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}}}},QU=["onClick"],eq={key:3};function tq(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",eq,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,QU))),128))],2)}const nq=oe(JU,[["render",tq],["__scopeId","data-v-69f01ddb"]]),Fce="",iq={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"}}},sq=t=>(a.pushScopeId("data-v-e1c5a182"),t=t(),a.popScopeId(),t),rq={class:"panel-card__header"},aq={class:"panel-card__title"},oq=sq(()=>a.createElementVNode("br",null,null,-1)),lq={class:"panel-card__subtitle"};function cq(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",rq,[a.createElementVNode("div",null,[a.createElementVNode("span",aq,a.toDisplayString(n.title),1),oq,a.createElementVNode("span",lq,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 dq=oe(iq,[["render",cq],["__scopeId","data-v-e1c5a182"]]),Rce="",uq={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()}}},hq={class:"pin-input__container"},fq=["id","onUpdate:modelValue","type","onKeydown","onKeypress","onInput","onFocus"];function pq(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",hq,[(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,fq)),[[a.vModelDynamic,s.innerValue[o-1]]])),128))])}const mq=oe(uq,[["render",pq],["__scopeId","data-v-d11b9fb6"]]),Hce="",jh={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"}}},bv=()=>{a.useCssVars(t=>({bf5feb56:t.textDirection}))},wv=jh.setup;jh.setup=wv?(t,e)=>(bv(),wv(t,e)):bv;const gq=jh,_q={class:"progress-bar"},vq={class:"progress-bar__content"};function yq(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",_q,[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",vq,[a.createElementVNode("div",{class:a.normalizeClass(`progress-bar__indicator--${n.variant}`),style:a.normalizeStyle(r.progressIndicatorStyle)},null,6)])])}const bq=oe(gq,[["render",yq],["__scopeId","data-v-d3a3d8d6"]]),Wce="",wq={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}},kq=["stroke","stroke-width"],xq=["stroke-dasharray","stroke-width"];function Cq(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 Xx(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 Q2(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 Jx(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}function Qx(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 eC(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"),Qx(h,t,e,n)&&(h="center"),h}function eg(t,e,n){const i=n.yAlign||e.yAlign||Jx(t,n);return{xAlign:n.xAlign||e.xAlign||eC(t,e,n,i),yAlign:i}}function tC(t,e){let{x:n,width:i}=t;return e==="right"?n-=i:e==="center"&&(n-=i/2),n}function nC(t,e,n){let{y:i,height:s}=t;return e==="top"?i+=n:e==="bottom"?i-=s+n:i-=s/2,i}function tg(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=tC(e,c);const x=nC(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 ng(t){return Ji([],ms(t))}function iC(t,e,n){return js(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function ig(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const sg={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"?sg[e].call(n,i):s}class o0 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 qm(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=iC(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 ng(Fn(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:i}=n,s=[];return dt(e,r=>{const o={before:[],lines:[],after:[]},c=ig(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 ng(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(Xx(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=ig(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=Q2(this,i),h=Object.assign({},c,d),f=eg(this.chart,i,h),m=tg(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,z1(e,x,k,O),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,z1(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=Q2(this,e),d=Object.assign({},o,this._size),h=eg(n,e,d),f=tg(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),Pm(e,n.textDirection),r.y+=o.top,this.drawTitle(r,e,n),this.drawBody(r,e,n),this.drawFooter(r,e,n),Lm(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(o0,"positioners",gl);var sC={id:"tooltip",_element:o0,positioners:gl,afterInit(t,e,n){n&&(t.tooltip=new o0({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:sg},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"]},rC=Object.freeze({__proto__:null,Colors:_x,Decimation:wx,Filler:Rx,Legend:qx,SubTitle:Zx,Title:Kx,Tooltip:sC});const aC=(t,e,n,i)=>(typeof e=="string"?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function oC(t,e,n,i){const s=t.indexOf(e);if(s===-1)return aC(t,e,n,i);const r=t.lastIndexOf(e);return s!==r?n:s}const lC=(t,e)=>t===null?null:dn(Math.round(t),0,e);function rg(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class l0 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:oC(i,e,$e(n,e),this._addedLabels),lC(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 rg.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(l0,"id","category"),re(l0,"defaults",{ticks:{callback:rg}});function cC(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=cm((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=cm(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&&iw((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(um(B),um(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,ag(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,ag(c,C,t))?n[n.length-1].value=c:n.push({value:c}):(!T||F===c)&&n.push({value:F}),n}function ag(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=cC(s,r);return e.bounds==="ticks"&&dm(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 c0 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(c0,"id","linear"),re(c0,"defaults",{ticks:{callback:Lc.formatters.numeric}});const _l=t=>Math.floor(Ys(t)),Ar=(t,e)=>Math.pow(10,_l(t)+e);function og(t){return t/Math.pow(10,_l(t))===1}function lg(t,e,n){const i=Math.pow(10,n),s=Math.floor(t/i);return Math.ceil(e/i)-s}function dC(t,e){const n=e-t;let i=_l(n);for(;lg(t,e,i)>10;)i++;for(;lg(t,e,i)<10;)i--;return Math.min(i,_l(t))}function uC(t,{min:e,max:n}){e=Jn(t.min,e);const i=[],s=_l(e);let r=dC(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:og(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:og(v),significand:m}),i}class d0 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=uC(n,this);return e.bounds==="ticks"&&dm(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(d0,"id","logarithmic"),re(d0,"defaults",{ticks:{callback:Lc.formatters.logarithmic,major:{enabled:!0}}});function u0(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 hC(t,e,n){return n=Dt(n)?n:[n],{w:bw(t,e.string,n),h:n.length*e.lineHeight}}function cg(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 fC(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=hC(t.ctx,m,t._pointLabels[d]);i[d]=g;const v=Qn(t.getIndexAngle(d)+c),b=Math.round(E1(v)),x=cg(b,f.x,g.w,0,180),k=cg(b,f.y,g.h,90,270);pC(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=_C(t,i,s)}function pC(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 mC(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(E1(Qn(d.angle+Ut))),f=bC(d.y,c.h,h),m=vC(h),g=yC(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 gC(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 _C(t,e,n){const i=[],s=t._pointLabels.length,r=t.options,{centerPointLabels:o,display:c}=r.pointLabels,d={extra:u0(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=mC(t,f,d);i.push(m),c==="auto"&&(m.visible=gC(m,h),m.visible&&(h=m))}return i}function vC(t){return t===0||t===180?"center":t<180?"left":"right"}function yC(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function bC(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function wC(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 kC(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));wC(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 dg(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 xC(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(),dg(t,n,o,i),r.closePath(),r.stroke(),r.restore())}function CC(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(u0(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/u0(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?fC(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 CC(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(),dg(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&&kC(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);xC(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 ug(t,e){return t-e}function hg(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 fg(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 SC(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 MC(t){for(let e=Rn.indexOf(t)+1,n=Rn.length;e<n;++e)if(ud[Rn[e]].common)return Rn[e]}function pg(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:i,hi:s}=I1(n,e),r=n[i]>=e?n[i]:n[s];t[r]=!0}}function OC(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 mg(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:OC(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 N9._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:hg(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=ow(s,r,o);return this._unit=n.unit||(i.autoSkip?fg(n.minUnit,this.min,this.max,this._getLabelCapacity(r)):SC(this,c.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:MC(this._unit),this.initOffsets(s),e.reverse&&c.reverse(),mg(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||fg(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++)pg(f,g,b);return(g===i||s.bounds==="ticks"||v===1)&&pg(f,g,b),Object.keys(f).sort(ug).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,mg(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(hg(this,s[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return mm(e.sort(ug))}}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 h0 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(h0,"id","timeseries"),re(h0,"defaults",yl.defaults);var DC=Object.freeze({__proto__:null,CategoryScale:l0,LinearScale:c0,LogarithmicScale:d0,RadialLinearScale:vl,TimeScale:yl,TimeSeriesScale:h0});const f0=[$9,ux,rC,DC],gg={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},EC={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...gg,...{ariaLabel:{type:String},ariaDescribedby:{type:String}}},TC=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 IC(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return a.isProxy(e)?new Proxy(t,{}):t}function BC(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function _g(t,e){t.labels=e}function vg(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 AC(t,e){const n={labels:[],datasets:[]};return _g(n,t.labels),vg(n,t.datasets,e),n}const VC=a.defineComponent({props:EC,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=AC(f,v),x=IC(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&&(BC(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&&(_g(x.config.data,O),k=!0),N&&N!==C&&(vg(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:gg,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(VC,TC({ref:o},{type:t,...n}))}})}const yg=fd("bar",al),$C=fd("line",ol),NC=fd("pie",Gc),zC=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},Dle="";fi.register(...f0);const PC={components:{Bar:yg},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})}}},LC={class:"responsive-container"};function FC(t,e,n,i,s,r){const o=a.resolveComponent("Bar");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",LC,[a.createVNode(o,{is:"bar",data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const RC=oe(PC,[["render",FC],["__scopeId","data-v-1e55dea1"]]),Ele="";fi.register(...f0);const HC={components:{Line:$C},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]]}}},WC={class:"responsive-container"};function YC(t,e,n,i,s,r){const o=a.resolveComponent("Line");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",WC,[a.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const jC=oe(HC,[["render",YC],["__scopeId","data-v-3a3639cb"]]),Tle="",UC={components:{Pie:NC},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})}}},qC={class:"responsive-container"};function GC(t,e,n,i,s,r){const o=a.resolveComponent("Pie");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",qC,[a.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const KC=oe(UC,[["render",GC],["__scopeId","data-v-df415374"]]),Ile="",ZC={components:{PolarArea:zC},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})}}},XC={class:"responsive-container"};function JC(t,e,n,i,s,r){const o=a.resolveComponent("PolarArea");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",XC,[a.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const QC=oe(ZC,[["render",JC],["__scopeId","data-v-386a0dc0"]]),Ble="";fi.register(...f0);const eS={components:{Bar:yg},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})}}},tS={class:"responsive-container"};function nS(t,e,n,i,s,r){const o=a.resolveComponent("Bar");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",tS,[a.createVNode(o,{is:"bar",data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const iS=oe(eS,[["render",nS],["__scopeId","data-v-ed4bef4e"]]),Ale="",p0={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}}},bg=()=>{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}))},wg=p0.setup;p0.setup=wg?(t,e)=>(bg(),wg(t,e)):bg;const sS=p0,rS={class:"spacer"};function aS(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",rS,[a.renderSlot(t.$slots,"default",{},void 0,!0)])}const pd=oe(sS,[["render",aS],["__scopeId","data-v-5aebf225"]]);function m0(t,e=24){let n=t/8,i=n%4;return`${n>e?e:n-i+4}px`}const Vle="",g0={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:m0,handleClick(){this.clickable&&this.$emit("boxClick",!0)}}},kg=()=>{a.useCssVars(t=>({"8bf1f4e6":t.widthResolver,"337f1943":t.borderRadiusResolver}))},xg=g0.setup;g0.setup=xg?(t,e)=>(kg(),xg(t,e)):kg;const oS=g0;function lS(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(oS,[["render",lS],["__scopeId","data-v-34f9c778"]]);var _0={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})(_0,_0.exports);const Xt=_0.exports,$le="",cS={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}}},dS={class:"breadcrumb"};function uS(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",dS,[(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 hS=oe(cS,[["render",uS],["__scopeId","data-v-c2046c1c"]]),Nle="",v0={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?m0(this.width):"0px"},grayScaleResolver(){return this.blackAndWhite?"grayscale(100%)":this.dimmed?"grayscale(35%)":"grayscale(0%)"}},methods:{rounder:m0,imageSrcResolver(){this.innerSrc=this.fallbackSrc}}},Cg=()=>{a.useCssVars(t=>({"21136de6":t.radiusResolver,e10ed842:t.grayScaleResolver,"31ae2d7b":t.heightResolver,"1e7f7c9d":t.opacity,"775376fe":t.widthResolver}))},Sg=v0.setup;v0.setup=Sg?(t,e)=>(Cg(),Sg(t,e)):Cg;const fS=v0,pS=["src","alt"];function mS(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,pS)}const Mg=oe(fS,[["render",mS],["__scopeId","data-v-79754f28"]]),y0=(t,e)=>Object.keys(t).some(n=>n===e),zle="",b0={components:{CdsBox:bl,CdsImage:Mg},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:y0,handleClick(){this.clickable&&this.$emit("cardClick",!0)}}},Og=()=>{a.useCssVars(t=>({"8d304056":t.bodyWidthResolver,"4730bd46":t.imageWidthResolver}))},Dg=b0.setup;b0.setup=Dg?(t,e)=>(Og(),Dg(t,e)):Og;const gS=b0,_S={class:"card__extra-container"},vS={class:"card__extra"},yS={key:0},bS={key:1,class:"card__image"},wS={key:2,class:"card__icon"},kS={class:"card__spacer"},xS={key:0,class:"card__header"},CS={key:1},SS={class:"card__header"},MS={key:2,class:"card__body"},OS={key:3},DS={class:"card__body"},ES={key:4,class:"card__footer"};function TS(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",_S,[a.createElementVNode("div",vS,[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",yS,[a.renderSlot(t.$slots,"image",{},void 0,!0)])):n.imageSrc?(a.openBlock(),a.createElementBlock("div",bS,[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",wS,[a.renderSlot(t.$slots,"icon",{},void 0,!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",kS,[r.hasSlot(t.$slots,"header")?(a.openBlock(),a.createElementBlock("div",xS,[a.renderSlot(t.$slots,"header",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("div",CS,[a.createElementVNode("p",SS,a.toDisplayString(n.title),1)])),r.hasSlot(t.$slots,"body")?(a.openBlock(),a.createElementBlock("div",MS,[a.renderSlot(t.$slots,"body",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("div",OS,[a.createElementVNode("p",DS,a.toDisplayString(n.content),1)])),r.hasSlot(t.$slots,"footer")?(a.openBlock(),a.createElementBlock("div",ES,[a.renderSlot(t.$slots,"footer",{},void 0,!0)])):a.createCommentVNode("",!0)])],2)]),_:3},8,["clickable","onBoxClick"])}const IS=oe(gS,[["render",TS],["__scopeId","data-v-ef799654"]]),Ple="",BS={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}}},AS={id:"callout-card"},VS={class:"image__container"},$S=["src","alt"],NS={class:"content__title"},zS={class:"content__text"};function PS(t,e,n,i,s,r){const o=a.resolveComponent("cds-button");return a.openBlock(),a.createElementBlock("span",AS,[a.createElementVNode("div",{class:a.normalizeClass(r.resolveClass("callout-card__container"))},[a.createElementVNode("div",VS,[a.createElementVNode("img",{class:a.normalizeClass(r.resolveClass("image__content")),src:n.image,alt:n.imageDescription},null,10,$S)]),a.createElementVNode("div",{class:a.normalizeClass(r.resolveClass("content__container"))},[a.createElementVNode("div",{class:a.normalizeClass(r.resolveClass("content"))},[a.createElementVNode("p",NS,a.toDisplayString(n.title),1),a.createElementVNode("span",zS,[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 LS=oe(BS,[["render",PS]]),Lle="",FS={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}))}}}},RS={key:0,class:"carousel-controller__text"},HS={key:1,class:"carousel-controller__text"},WS={class:"carousel-controller__property"};function YS(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",HS,a.toDisplayString(s.currentNumberOfItemsMin)+" de "+a.toDisplayString(r.numberOfPages),1)):(a.openBlock(),a.createElementBlock("span",RS,a.toDisplayString(s.currentNumberOfItemsMin)+"-"+a.toDisplayString(s.currentNumberOfItemsMax)+" de "+a.toDisplayString(n.total),1)),a.createElementVNode("span",WS,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 jS=oe(FS,[["render",YS],["__scopeId","data-v-fcb19a0a"]]);function Eg(t,e){return`${t}--${e}`}const Fle="",US={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=Eg("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))}}},qS={class:"cds-checkbox__container"},GS={class:"cds-checkbox__input"},KS=["id","value","name","disabled"],ZS=["for"],XS=["for"];function JS(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",qS,[a.createElementVNode("div",GS,[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,KS),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,ZS)]),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,XS)])}const w0=oe(US,[["render",JS],["__scopeId","data-v-0758b096"]]),Rle="",QS={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}}},eM={id:"collapsible-container"},tM={class:"collapsible-container__title"},nM={key:0,class:"collapsible-container__content"};function iM(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",eM,[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",tM,a.toDisplayString(n.title),1)])]),s.internalValue?(a.openBlock(),a.createElementBlock("div",nM,[a.renderSlot(t.$slots,"default")])):a.createCommentVNode("",!0)])}const sM=oe(QS,[["render",iM]]),k0=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},rM=.2126,aM=.7152,oM=.0722,lM=2.4,cM={POOR:3,GOOD:4.5,VERYGOOD:7,SUPER:12},dM=(t,e,n="GOOD")=>{let i=k0(t),s=k0(e);var r=Tg(...i),o=Tg(...s),c=Math.max(r,o),d=Math.min(r,o);return(c+.05)/(d+.05)>=cM[n]};function Tg(t,e,n){var i=[t,e,n].map(s=>(s/=255,s<=.03928?s/12.92:Math.pow((s+.055)/1.055,lM)));return i[0]*rM+i[1]*aM+i[2]*oM}const Hle="",x0={components:{CdsPopover:b1,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:dM,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,"")]}}},Ig=()=>{a.useCssVars(t=>({f73e5680:t.selectedColor}))},Bg=x0.setup;x0.setup=Bg?(t,e)=>(Ig(),Bg(t,e)):Ig;const uM=x0,hM=t=>(a.pushScopeId("data-v-a4ff5e3b"),t=t(),a.popScopeId(),t),fM={key:0},pM={class:"color-picker__label"},mM=["onClick"],gM={key:1},_M=[hM(()=>a.createElementVNode("div",{class:"color-picker__preview"},null,-1))],vM=["onClick"];function yM(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",fM,[a.createElementVNode("div",pM,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,mM)]))),128))]))),128))])):(a.openBlock(),a.createElementBlock("div",gM,[a.createElementVNode("div",{id:"color-picker",class:"color-picker__trigger",onClick:e[0]||(e[0]=a.withModifiers(d=>s.showPopover=!s.showPopover,["stop"]))},_M),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,vM)]))),128))]))),128))]),_:1},8,["modelValue","height"])]))}const bM=oe(uM,[["render",yM],["__scopeId","data-v-a4ff5e3b"]]),Yle="",wM={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}}},kM={class:"dashboard-card"},xM={class:"dashboard-card__header"},CM={key:0,class:"dashboard-card__title"},SM={key:1,class:"dashboard-card__title"},MM={key:0,class:"dashboard-card__description"},OM={key:1,class:"dashboard-card__description"},DM={key:0};function EM(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",kM,[a.createElementVNode("div",null,[a.createElementVNode("div",xM,[n.title.length>0?(a.openBlock(),a.createElementBlock("p",CM,a.toDisplayString(n.title),1)):(a.openBlock(),a.createElementBlock("p",SM,[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",MM,a.toDisplayString(n.description),1)):(a.openBlock(),a.createElementBlock("p",OM,[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",DM,a.toDisplayString(n.action),1)):a.createCommentVNode("",!0)],!0)])])}const TM=oe(wM,[["render",EM],["__scopeId","data-v-cd0db219"]]);class Vr extends Error{}class IM extends Vr{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class BM extends Vr{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class AM extends Vr{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Ta extends Vr{}class Ag 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},Vg={year:ce,month:Ai,day:ce},VM={year:ce,month:Ai,day:ce,weekday:Ai},$g={year:ce,month:ei,day:ce},Ng={year:ce,month:ei,day:ce,weekday:ei},zg={hour:ce,minute:ce},Pg={hour:ce,minute:ce,second:ce},Lg={hour:ce,minute:ce,second:ce,timeZoneName:Ai},Fg={hour:ce,minute:ce,second:ce,timeZoneName:ei},Rg={hour:ce,minute:ce,hourCycle:"h23"},Hg={hour:ce,minute:ce,second:ce,hourCycle:"h23"},Wg={hour:ce,minute:ce,second:ce,hourCycle:"h23",timeZoneName:Ai},Yg={hour:ce,minute:ce,second:ce,hourCycle:"h23",timeZoneName:ei},jg={year:ce,month:ce,day:ce,hour:ce,minute:ce},Ug={year:ce,month:ce,day:ce,hour:ce,minute:ce,second:ce},qg={year:ce,month:Ai,day:ce,hour:ce,minute:ce},Gg={year:ce,month:Ai,day:ce,hour:ce,minute:ce,second:ce},$M={year:ce,month:Ai,day:ce,weekday:Ai,hour:ce,minute:ce},Kg={year:ce,month:ei,day:ce,hour:ce,minute:ce,timeZoneName:Ai},Zg={year:ce,month:ei,day:ce,hour:ce,minute:ce,second:ce,timeZoneName:Ai},Xg={year:ce,month:ei,day:ce,weekday:ei,hour:ce,minute:ce,timeZoneName:ei},Jg={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 C0=null;class gd extends wl{static get instance(){return C0===null&&(C0=new gd),C0}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:i}){return k3(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 NM(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 zM={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function PM(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 LM(t,e){const n=t.formatToParts(e),i=[];for(let s=0;s<n.length;s++){const{type:r,value:o}=n[s],c=zM[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 k3(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=NM(this.name);let[s,r,o,c,d,h,f]=i.formatToParts?LM(i,n):PM(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 Qg={};function FM(t,e={}){const n=JSON.stringify([t,e]);let i=Qg[n];return i||(i=new Intl.ListFormat(t,e),Qg[n]=i),i}let S0={};function M0(t,e={}){const n=JSON.stringify([t,e]);let i=S0[n];return i||(i=new Intl.DateTimeFormat(t,e),S0[n]=i),i}let O0={};function RM(t,e={}){const n=JSON.stringify([t,e]);let i=O0[n];return i||(i=new Intl.NumberFormat(t,e),O0[n]=i),i}let D0={};function HM(t,e={}){const{base:n,...i}=e,s=JSON.stringify([t,i]);let r=D0[s];return r||(r=new Intl.RelativeTimeFormat(t,e),D0[s]=r),r}let kl=null;function WM(){return kl||(kl=new Intl.DateTimeFormat().resolvedOptions().locale,kl)}let e3={};function YM(t){let e=e3[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,e3[t]=e}return e}function jM(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=M0(t).resolvedOptions(),s=t}catch{const d=t.substring(0,n);i=M0(d).resolvedOptions(),s=d}const{numberingSystem:r,calendar:o}=i;return[s,r,o]}}function UM(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function qM(t){const e=[];for(let n=1;n<=12;n++){const i=Ce.utc(2009,n,1);e.push(t(i))}return e}function GM(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 KM(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 ZM{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=RM(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):$0(e,3);return Jt(n,this.padTo)}}}class XM{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=M0(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 JM{constructor(e,n,i){this.opts={style:"long",...i},!n&&v3()&&(this.rtf=HM(e,i))}format(e,n){return this.rtf?this.rtf.format(e,n):vO(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const QM={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":WM()),d=n||qt.defaultNumberingSystem,h=i||qt.defaultOutputCalendar,f=A0(s)||qt.defaultWeekSettings;return new _t(c,d,h,f,o)}static resetCache(){kl=null,S0={},O0={},D0={}}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]=jM(e);this.locale=o,this.numberingSystem=n||c||null,this.outputCalendar=i||d||null,this.weekSettings=s,this.intl=UM(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=KM(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,A0(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,S3,()=>{const i=n?{month:e,day:"numeric"}:{month:e},s=n?"format":"standalone";return this.monthsCache[s][e]||(this.monthsCache[s][e]=qM(r=>this.extract(r,i,"month"))),this.monthsCache[s][e]})}weekdays(e,n=!1){return yd(this,e,D3,()=>{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]=GM(r=>this.extract(r,i,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return yd(this,void 0,()=>E3,()=>{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,T3,()=>{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 ZM(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new XM(e,this.intl,n)}relFormatter(e={}){return new JM(this.intl,this.isEnglish(),e)}listFormatter(e={}){return FM(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:y3()?YM(this.locale):QM}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 E0=null;class En extends wl{static get utcInstance(){return E0===null&&(E0=new En(0)),E0}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 eO 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(iO(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 eO(t)}let t3=()=>Date.now(),n3="system",i3=null,s3=null,r3=null,a3=60,o3,l3=null;class qt{static get now(){return t3}static set now(e){t3=e}static set defaultZone(e){n3=e}static get defaultZone(){return Zs(n3,gd.instance)}static get defaultLocale(){return i3}static set defaultLocale(e){i3=e}static get defaultNumberingSystem(){return s3}static set defaultNumberingSystem(e){s3=e}static get defaultOutputCalendar(){return r3}static set defaultOutputCalendar(e){r3=e}static get defaultWeekSettings(){return l3}static set defaultWeekSettings(e){l3=A0(e)}static get twoDigitCutoffYear(){return a3}static set twoDigitCutoffYear(e){a3=e%100}static get throwOnInvalid(){return o3}static set throwOnInvalid(e){o3=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 c3=[0,31,59,90,120,151,181,212,243,273,304,334],d3=[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 T0(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 u3(t,e,n){return n+(xl(t)?d3:c3)[e-1]}function h3(t,e){const n=xl(t)?d3:c3,i=n.findIndex(r=>r<e),s=e-n[i];return{month:i+1,day:s}}function I0(t,e){return(t-e+7)%7+1}function bd(t,e=4,n=1){const{year:i,month:s,day:r}=t,o=u3(i,s,r),c=I0(T0(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 f3(t,e=4,n=1){const{weekYear:i,weekNumber:s,weekday:r}=t,o=I0(T0(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}=h3(h,d);return{year:h,month:f,day:m,...Md(t)}}function B0(t){const{year:e,month:n,day:i}=t,s=u3(e,n,i);return{year:e,ordinal:s,...Md(t)}}function p3(t){const{year:e,ordinal:n}=t,{month:i,day:s}=h3(e,n);return{year:e,month:i,day:s,...Md(t)}}function m3(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 tO(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 nO(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 g3(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 _3(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 iO(t){return typeof t=="string"}function sO(t){return Object.prototype.toString.call(t)==="[object Date]"}function v3(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function y3(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function rO(t){return Array.isArray(t)?t:[t]}function b3(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 aO(t,e){return e.reduce((n,i)=>(n[i]=t[i],n),{})}function Ia(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function A0(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 oO(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 V0(t){if(!(Ie(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function $0(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=oO(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 w3(t,e,n){return-I0(T0(t,1,e),n)+e-1}function Cl(t,e=4,n=1){const i=w3(t,e,n),s=w3(t+1,e,n);return(Ba(t)-i+s)/7}function N0(t){return t>99?t:t>qt.twoDigitCutoffYear?1900+t:2e3+t}function k3(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 x3(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)]=x3(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 aO(t,["hour","minute","second","millisecond"])}const lO=["January","February","March","April","May","June","July","August","September","October","November","December"],C3=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],cO=["J","F","M","A","M","J","J","A","S","O","N","D"];function S3(t){switch(t){case"narrow":return[...cO];case"short":return[...C3];case"long":return[...lO];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 M3=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],O3=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],dO=["M","T","W","T","F","S","S"];function D3(t){switch(t){case"narrow":return[...dO];case"short":return[...O3];case"long":return[...M3];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const E3=["AM","PM"],uO=["Before Christ","Anno Domini"],hO=["BC","AD"],fO=["B","A"];function T3(t){switch(t){case"narrow":return[...fO];case"short":return[...hO];case"long":return[...uO];default:return null}}function pO(t){return E3[t.hour<12?0:1]}function mO(t,e){return D3(e)[t.weekday-1]}function gO(t,e){return S3(e)[t.month-1]}function _O(t,e){return T3(e)[t.year<0?0:1]}function vO(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 I3(t,e){let n="";for(const i of t)i.literal?n+=i.val:n+=e(i.val);return n}const yO={D:md,DD:Vg,DDD:$g,DDDD:Ng,t:zg,tt:Pg,ttt:Lg,tttt:Fg,T:Rg,TT:Hg,TTT:Wg,TTTT:Yg,f:jg,ff:qg,fff:Kg,ffff:Xg,F:Ug,FF:Gg,FFF:Zg,FFFF:Jg};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 yO[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?pO(e):r({hour:"numeric",hourCycle:"h12"},"dayperiod"),d=(v,b)=>i?gO(e,v):r(b?{month:v}:{month:v,day:"numeric"},"month"),h=(v,b)=>i?mO(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?_O(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 I3(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 I3(r,s(c))}}const B3=/[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 A3(...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 V3=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,bO=`(?:${V3.source}?(?:\\[(${B3.source})\\])?)?`,z0=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,$3=RegExp(`${z0.source}${bO}`),P0=RegExp(`(?:T${$3.source})?`),wO=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,kO=/(\d{4})-?W(\d\d)(?:-?(\d))?/,xO=/(\d{4})-?(\d{3})/,CO=A3("weekYear","weekNumber","weekDay"),SO=A3("year","ordinal"),MO=/(\d{4})-(\d\d)-(\d\d)/,N3=RegExp(`${z0.source} ?(?:${V3.source}|(${B3.source}))?`),OO=RegExp(`(?: ${N3.source})?`);function Na(t,e,n){const i=t[e];return Ie(i)?n:Xs(i)}function DO(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:V0(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 EO=RegExp(`^T?${z0.source}$`),TO=/^-?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 IO(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(V0(h),m)}]}const BO={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 L0(t,e,n,i,s,r,o){const c={year:e.length===2?N0(Xs(e)):Xs(e),month:C3.indexOf(n)+1,day:Xs(i),hour:Xs(s),minute:Xs(r)};return o&&(c.second=Xs(o)),t&&(c.weekday=t.length>3?M3.indexOf(t)+1:O3.indexOf(t)+1),c}const AO=/^(?:(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 VO(t){const[,e,n,i,s,r,o,c,d,h,f,m]=t,g=L0(e,s,i,n,r,o,c);let v;return d?v=BO[d]:h?v=0:v=Cd(f,m),[g,new En(v)]}function $O(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const NO=/^(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$/,zO=/^(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$/,PO=/^(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 z3(t){const[,e,n,i,s,r,o,c]=t;return[L0(e,s,i,n,r,o,c),En.utcInstance]}function LO(t){const[,e,n,i,s,r,o,c]=t;return[L0(e,c,n,i,s,r,o),En.utcInstance]}const FO=Aa(wO,P0),RO=Aa(kO,P0),HO=Aa(xO,P0),WO=Aa($3),P3=Va(DO,za,Ml,Ol),YO=Va(CO,za,Ml,Ol),jO=Va(SO,za,Ml,Ol),UO=Va(za,Ml,Ol);function qO(t){return $a(t,[FO,P3],[RO,YO],[HO,jO],[WO,UO])}function GO(t){return $a($O(t),[AO,VO])}function KO(t){return $a(t,[NO,z3],[zO,z3],[PO,LO])}function ZO(t){return $a(t,[TO,IO])}const XO=Va(za);function JO(t){return $a(t,[EO,XO])}const QO=Aa(MO,OO),eD=Aa(N3),tD=Va(za,Ml,Ol);function nD(t){return $a(t,[QO,P3],[eD,tD])}const L3="Invalid Duration",F3={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}},iD={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},...F3},gi=146097/400,Pa=146097/4800,sD={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},...F3},zr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],rD=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 R3(t,e){let n=e.milliseconds??0;for(const i of rD.slice(1))e[i]&&(n+=e[i]*t[i].milliseconds);return n}function H3(t,e){const n=R3(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 aD(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?sD:iD;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]=ZO(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]=JO(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 AM(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 Ag(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):L3}toHuman(e={}){if(!this.isValid)return L3;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+=$0(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?R3(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]=x3(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 H3(this.matrix,e),Js(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=aD(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 H3(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 oD(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 BM(i);return new Lt({invalid:i})}static fromDateTimes(e,n){const i=El(e),s=El(n),r=oD(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:v3(),localeWeek:y3()}}}function W3(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 lD(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=W3(d,h);return(f-f%7)/7}],["days",W3]],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 cD(t,e,n,i){let[s,r,o,c]=lD(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 F0={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"},Y3={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]},dD=F0.hanidec.replace(/[\[|\]]/g,"").split("");function uD(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(F0.hanidec)!==-1)e+=dD.indexOf(t[n]);else for(const s in Y3){const[r,o]=Y3[s];i>=r&&i<=o&&(e+=i-r)}}return parseInt(e,10)}else return e}function $i({numberingSystem:t},e=""){return new RegExp(`${F0[t||"latn"]}${e}`)}const hD="missing Intl.DateTimeFormat.formatToParts support";function nt(t,e=n=>n){return{regex:t,deser:([n])=>e(uD(n))}}const j3=`[ ${String.fromCharCode(160)}]`,U3=new RegExp(j3,"g");function fD(t){return t.replace(/\./g,"\\.?").replace(U3,j3)}function q3(t){return t.replace(/\./g,"").replace(U3," ").toLowerCase()}function Ni(t,e){return t===null?null:{regex:RegExp(t.map(fD).join("|")),deser:([n])=>t.findIndex(i=>q3(n)===q3(i))+e}}function G3(t,e){return{regex:t,deser:([,n,i])=>Cd(n,i),groups:e}}function Dd(t){return{regex:t,deser:([e])=>e}}function pD(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function mD(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(pD(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,N0);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,N0);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 G3(new RegExp(`([+-]${c.source})(?::(${i.source}))?`),2);case"ZZZ":return G3(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:hD};return x.token=t,x}const gD={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 _D(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=gD[o];if(typeof c=="object"&&(c=c[r]),c)return{literal:!1,val:c}}function vD(t){return[`^${t.map(n=>n.regex).reduce((n,i)=>`${n}(${i.source})`,"")}$`,t]}function yD(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 bD(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=V0(t.u)),[Object.keys(t).reduce((r,o)=>{const c=e(o);return c&&(r[c]=t[o]),r},{}),n,i]}let R0=null;function wD(){return R0||(R0=Ce.fromMillis(1555555555555)),R0}function kD(t,e){if(t.literal)return t;const n=wn.macroTokenToFormatOpts(t.val),i=X3(n,e);return i==null||i.includes(void 0)?t:i}function K3(t,e){return Array.prototype.concat(...t.map(n=>kD(n,e)))}function Z3(t,e,n){const i=K3(wn.parseFormat(n),t),s=i.map(o=>mD(o,t)),r=s.find(o=>o.invalidReason);if(r)return{input:e,tokens:i,invalidReason:r.invalidReason};{const[o,c]=vD(s),d=RegExp(o,"i"),[h,f]=yD(e,d,c),[m,g,v]=f?bD(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 xD(t,e,n){const{result:i,zone:s,specificOffset:r,invalidReason:o}=Z3(t,e,n);return[i,s,r,o]}function X3(t,e){if(!t)return null;const i=wn.create(e,t).dtFormatter(wD()),s=i.formatToParts(),r=i.resolvedOptions();return s.map(o=>_D(o,t,r))}const H0="Invalid DateTime",J3=864e13;function Ed(t){return new Vi("unsupported zone",`the zone "${t.name}" is not supported`)}function W0(t){return t.weekData===null&&(t.weekData=bd(t.c)),t.weekData}function Y0(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 Q3(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 Q3(xd(t),e,n)}function e4(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]=Q3(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 j0(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 t4(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 n4={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},CD={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},SD={ordinal:1,hour:0,minute:0,second:0,millisecond:0},i4=["year","month","day","hour","minute","second","millisecond"],MD=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],OD=["year","ordinal","hour","minute","second","millisecond"];function DD(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 Ag(t);return e}function s4(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return DD(t)}}function r4(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 i4)Ie(t[h])&&(t[h]=n4[h]);const c=g3(t)||_3(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 a4(t,e,n){const i=Ie(n.round)?!0:n.round,s=(o,c)=>(o=$0(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 o4(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]=o4(arguments),[i,s,r,o,c,d,h]=n;return r4({year:i,month:s,day:r,hour:o,minute:c,second:d,millisecond:h},e)}static utc(){const[e,n]=o4(arguments),[i,s,r,o,c,d,h]=n;return e.zone=En.utcInstance,r4({year:i,month:s,day:r,hour:o,minute:c,second:d,millisecond:h},e)}static fromJSDate(e,n={}){const i=sO(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<-J3||e>J3?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,s4),{minDaysInFirstWeek:o,startOfWeek:c}=m3(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=MD,O=CD,T=bd(T,o,c)):f?(k=OD,O=SD,T=B0(T)):(k=i4,O=n4);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?tO(r,o,c):f?nO(r):g3(r),B=C||_3(r);if(B)return Ce.invalid(B);const $=x?f3(r,o,c):f?p3(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]=qO(e);return Dl(i,s,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[i,s]=GO(e);return Dl(i,s,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[i,s]=KO(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]=xD(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]=nD(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 IM(i);return new Ce({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const i=X3(e,_t.fromObject(n));return i?i.map(s=>s?s.val:null).join(""):null}static expandFormat(e,n={}){return K3(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?W0(this).weekYear:NaN}get weekNumber(){return this.isValid?W0(this).weekNumber:NaN}get weekday(){return this.isValid?W0(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Y0(this).weekday:NaN}get localWeekNumber(){return this.isValid?Y0(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Y0(this).weekYear:NaN}get ordinal(){return this.isValid?B0(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,s4),{minDaysInFirstWeek:i,startOfWeek:s}=m3(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=f3({...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=p3({...B0(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,e4(this,n))}minus(e){if(!this.isValid)return this;const n=Je.fromDurationLike(e).negate();return Pr(this,e4(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):H0}toLocaleString(e=md,n={}){return this.isValid?wn.create(this.loc.clone(n),e).formatDateTime(this):H0}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=j0(this,o);return c+="T",c+=t4(this,o,n,i,s,r),c}toISODate({format:e="extended"}={}){return this.isValid?j0(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":"")+t4(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?j0(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():H0}[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=rO(n).map(Je.normalizeUnit),o=e.valueOf()>this.valueOf(),c=o?this:e,d=o?e:this,h=cD(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),a4(n,this.plus(i),{...e,numeric:"always",units:s,unit:r})}toRelativeCalendar(e={}){return this.isValid?a4(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 b3(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(Ce.isDateTime))throw new Hn("max requires all arguments be DateTimes");return b3(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 Z3(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 Vg}static get DATE_MED_WITH_WEEKDAY(){return VM}static get DATE_FULL(){return $g}static get DATE_HUGE(){return Ng}static get TIME_SIMPLE(){return zg}static get TIME_WITH_SECONDS(){return Pg}static get TIME_WITH_SHORT_OFFSET(){return Lg}static get TIME_WITH_LONG_OFFSET(){return Fg}static get TIME_24_SIMPLE(){return Rg}static get TIME_24_WITH_SECONDS(){return Hg}static get TIME_24_WITH_SHORT_OFFSET(){return Wg}static get TIME_24_WITH_LONG_OFFSET(){return Yg}static get DATETIME_SHORT(){return jg}static get DATETIME_SHORT_WITH_SECONDS(){return Ug}static get DATETIME_MED(){return qg}static get DATETIME_MED_WITH_SECONDS(){return Gg}static get DATETIME_MED_WITH_WEEKDAY(){return $M}static get DATETIME_FULL(){return Kg}static get DATETIME_FULL_WITH_SECONDS(){return Zg}static get DATETIME_HUGE(){return Xg}static get DATETIME_HUGE_WITH_SECONDS(){return Jg}}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 ED=Object.defineProperty,TD=(t,e,n)=>e in t?ED(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xe=(t,e,n)=>(TD(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 l4(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ID=Object.prototype,BD=ID.hasOwnProperty;function AD(t,e){return t!=null&&BD.call(t,e)}var VD=AD,$D=Array.isArray,zi=$D,ND=typeof Ad=="object"&&Ad&&Ad.Object===Object&&Ad,c4=ND,zD=c4,PD=typeof self=="object"&&self&&self.Object===Object&&self,LD=zD||PD||Function("return this")(),Qi=LD,FD=Qi,RD=FD.Symbol,Vd=RD,d4=Vd,u4=Object.prototype,HD=u4.hasOwnProperty,WD=u4.toString,Tl=d4?d4.toStringTag:void 0;function YD(t){var e=HD.call(t,Tl),n=t[Tl];try{t[Tl]=void 0;var i=!0}catch{}var s=WD.call(t);return i&&(e?t[Tl]=n:delete t[Tl]),s}var jD=YD,UD=Object.prototype,qD=UD.toString;function GD(t){return qD.call(t)}var KD=GD,h4=Vd,ZD=jD,XD=KD,JD="[object Null]",QD="[object Undefined]",f4=h4?h4.toStringTag:void 0;function eE(t){return t==null?t===void 0?QD:JD:f4&&f4 in Object(t)?ZD(t):XD(t)}var es=eE;function tE(t){return t!=null&&typeof t=="object"}var Pi=tE,nE=es,iE=Pi,sE="[object Symbol]";function rE(t){return typeof t=="symbol"||iE(t)&&nE(t)==sE}var U0=rE,aE=zi,oE=U0,lE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cE=/^\w*$/;function dE(t,e){if(aE(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||oE(t)?!0:cE.test(t)||!lE.test(t)||e!=null&&t in Object(e)}var q0=dE;function uE(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var _s=uE,hE=es,fE=_s,pE="[object AsyncFunction]",mE="[object Function]",gE="[object GeneratorFunction]",_E="[object Proxy]";function vE(t){if(!fE(t))return!1;var e=hE(t);return e==mE||e==gE||e==pE||e==_E}var Lr=vE,yE=Qi,bE=yE["__core-js_shared__"],wE=bE,G0=wE,p4=function(){var t=/[^.]+$/.exec(G0&&G0.keys&&G0.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function kE(t){return!!p4&&p4 in t}var xE=kE,CE=Function.prototype,SE=CE.toString;function ME(t){if(t!=null){try{return SE.call(t)}catch{}try{return t+""}catch{}}return""}var m4=ME,OE=Lr,DE=xE,EE=_s,TE=m4,IE=/[\\^$.*+?()[\]{}|]/g,BE=/^\[object .+?Constructor\]$/,AE=Function.prototype,VE=Object.prototype,$E=AE.toString,NE=VE.hasOwnProperty,zE=RegExp("^"+$E.call(NE).replace(IE,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function PE(t){if(!EE(t)||DE(t))return!1;var e=OE(t)?zE:BE;return e.test(TE(t))}var LE=PE;function FE(t,e){return t==null?void 0:t[e]}var RE=FE,HE=LE,WE=RE;function YE(t,e){var n=WE(t,e);return HE(n)?n:void 0}var Fr=YE,jE=Fr,UE=jE(Object,"create"),$d=UE,g4=$d;function qE(){this.__data__=g4?g4(null):{},this.size=0}var GE=qE;function KE(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var ZE=KE,XE=$d,JE="__lodash_hash_undefined__",QE=Object.prototype,eT=QE.hasOwnProperty;function tT(t){var e=this.__data__;if(XE){var n=e[t];return n===JE?void 0:n}return eT.call(e,t)?e[t]:void 0}var nT=tT,iT=$d,sT=Object.prototype,rT=sT.hasOwnProperty;function aT(t){var e=this.__data__;return iT?e[t]!==void 0:rT.call(e,t)}var oT=aT,lT=$d,cT="__lodash_hash_undefined__";function dT(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=lT&&e===void 0?cT:e,this}var uT=dT,hT=GE,fT=ZE,pT=nT,mT=oT,gT=uT;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=hT,Fa.prototype.delete=fT,Fa.prototype.get=pT,Fa.prototype.has=mT,Fa.prototype.set=gT;var _T=Fa;function vT(){this.__data__=[],this.size=0}var yT=vT;function bT(t,e){return t===e||t!==t&&e!==e}var Ra=bT,wT=Ra;function kT(t,e){for(var n=t.length;n--;)if(wT(t[n][0],e))return n;return-1}var Nd=kT,xT=Nd,CT=Array.prototype,ST=CT.splice;function MT(t){var e=this.__data__,n=xT(e,t);if(n<0)return!1;var i=e.length-1;return n==i?e.pop():ST.call(e,n,1),--this.size,!0}var OT=MT,DT=Nd;function ET(t){var e=this.__data__,n=DT(e,t);return n<0?void 0:e[n][1]}var TT=ET,IT=Nd;function BT(t){return IT(this.__data__,t)>-1}var AT=BT,VT=Nd;function $T(t,e){var n=this.__data__,i=VT(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}var NT=$T,zT=yT,PT=OT,LT=TT,FT=AT,RT=NT;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=zT,Ha.prototype.delete=PT,Ha.prototype.get=LT,Ha.prototype.has=FT,Ha.prototype.set=RT;var zd=Ha,HT=Fr,WT=Qi,YT=HT(WT,"Map"),K0=YT,_4=_T,jT=zd,UT=K0;function qT(){this.size=0,this.__data__={hash:new _4,map:new(UT||jT),string:new _4}}var GT=qT;function KT(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var ZT=KT,XT=ZT;function JT(t,e){var n=t.__data__;return XT(e)?n[typeof e=="string"?"string":"hash"]:n.map}var Pd=JT,QT=Pd;function eI(t){var e=QT(this,t).delete(t);return this.size-=e?1:0,e}var tI=eI,nI=Pd;function iI(t){return nI(this,t).get(t)}var sI=iI,rI=Pd;function aI(t){return rI(this,t).has(t)}var oI=aI,lI=Pd;function cI(t,e){var n=lI(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}var dI=cI,uI=GT,hI=tI,fI=sI,pI=oI,mI=dI;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=uI,Wa.prototype.delete=hI,Wa.prototype.get=fI,Wa.prototype.has=pI,Wa.prototype.set=mI;var Z0=Wa,v4=Z0,gI="Expected a function";function X0(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(gI);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(X0.Cache||v4),n}X0.Cache=v4;var _I=X0,vI=_I,yI=500;function bI(t){var e=vI(t,function(i){return n.size===yI&&n.clear(),i}),n=e.cache;return e}var wI=bI,kI=wI,xI=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,CI=/\\(\\)?/g,SI=kI(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(xI,function(n,i,s,r){e.push(s?r.replace(CI,"$1"):i||n)}),e}),MI=SI;function OI(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 DI=OI,y4=Vd,EI=DI,TI=zi,II=U0,BI=1/0,b4=y4?y4.prototype:void 0,w4=b4?b4.toString:void 0;function k4(t){if(typeof t=="string")return t;if(TI(t))return EI(t,k4)+"";if(II(t))return w4?w4.call(t):"";var e=t+"";return e=="0"&&1/t==-BI?"-0":e}var AI=k4,VI=AI;function $I(t){return t==null?"":VI(t)}var NI=$I,zI=zi,PI=q0,LI=MI,FI=NI;function RI(t,e){return zI(t)?t:PI(t,e)?[t]:LI(FI(t))}var x4=RI,HI=es,WI=Pi,YI="[object Arguments]";function jI(t){return WI(t)&&HI(t)==YI}var UI=jI,C4=UI,qI=Pi,S4=Object.prototype,GI=S4.hasOwnProperty,KI=S4.propertyIsEnumerable,ZI=C4(function(){return arguments}())?C4:function(t){return qI(t)&&GI.call(t,"callee")&&!KI.call(t,"callee")},J0=ZI,XI=9007199254740991,JI=/^(?:0|[1-9]\d*)$/;function QI(t,e){var n=typeof t;return e=e??XI,!!e&&(n=="number"||n!="symbol"&&JI.test(t))&&t>-1&&t%1==0&&t<e}var Q0=QI,eB=9007199254740991;function tB(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=eB}var eh=tB,nB=U0,iB=1/0;function sB(t){if(typeof t=="string"||nB(t))return t;var e=t+"";return e=="0"&&1/t==-iB?"-0":e}var Ld=sB,rB=x4,aB=J0,oB=zi,lB=Q0,cB=eh,dB=Ld;function uB(t,e,n){e=rB(e,t);for(var i=-1,s=e.length,r=!1;++i<s;){var o=dB(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&&cB(s)&&lB(o,s)&&(oB(t)||aB(t)))}var M4=uB,hB=VD,fB=M4;function pB(t,e){return t!=null&&fB(t,e,hB)}var O4=pB,mB=es,gB=Pi,_B="[object Date]";function vB(t){return gB(t)&&mB(t)==_B}var yB=vB;function bB(t){return function(e){return t(e)}}var D4=bB,Il={},wB={get exports(){return Il},set exports(t){Il=t}};(function(t,e){var n=c4,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})(wB,Il);var kB=yB,xB=D4,E4=Il,T4=E4&&E4.isDate,CB=T4?xB(T4):kB,SB=CB,MB=es,OB=zi,DB=Pi,EB="[object String]";function TB(t){return typeof t=="string"||!OB(t)&&DB(t)&&MB(t)==EB}var ts=TB;function IB(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 I4=IB,BB=zd;function AB(){this.__data__=new BB,this.size=0}var VB=AB;function $B(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var NB=$B;function zB(t){return this.__data__.get(t)}var PB=zB;function LB(t){return this.__data__.has(t)}var FB=LB,RB=zd,HB=K0,WB=Z0,YB=200;function jB(t,e){var n=this.__data__;if(n instanceof RB){var i=n.__data__;if(!HB||i.length<YB-1)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new WB(i)}return n.set(t,e),this.size=n.size,this}var UB=jB,qB=zd,GB=VB,KB=NB,ZB=PB,XB=FB,JB=UB;function Ya(t){var e=this.__data__=new qB(t);this.size=e.size}Ya.prototype.clear=GB,Ya.prototype.delete=KB,Ya.prototype.get=ZB,Ya.prototype.has=XB,Ya.prototype.set=JB;var th=Ya,QB="__lodash_hash_undefined__";function eA(t){return this.__data__.set(t,QB),this}var tA=eA;function nA(t){return this.__data__.has(t)}var iA=nA,sA=Z0,rA=tA,aA=iA;function Fd(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new sA;++e<n;)this.add(t[e])}Fd.prototype.add=Fd.prototype.push=rA,Fd.prototype.has=aA;var oA=Fd;function lA(t,e){return t.has(e)}var cA=lA,dA=oA,uA=I4,hA=cA,fA=1,pA=2;function mA(t,e,n,i,s,r){var o=n&fA,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&pA?new dA: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(!uA(e,function(O,T){if(!hA(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 B4=mA,gA=Qi,_A=gA.Uint8Array,A4=_A;function vA(t){var e=-1,n=Array(t.size);return t.forEach(function(i,s){n[++e]=[s,i]}),n}var yA=vA;function bA(t){var e=-1,n=Array(t.size);return t.forEach(function(i){n[++e]=i}),n}var wA=bA,V4=Vd,$4=A4,kA=Ra,xA=B4,CA=yA,SA=wA,MA=1,OA=2,DA="[object Boolean]",EA="[object Date]",TA="[object Error]",IA="[object Map]",BA="[object Number]",AA="[object RegExp]",VA="[object Set]",$A="[object String]",NA="[object Symbol]",zA="[object ArrayBuffer]",PA="[object DataView]",N4=V4?V4.prototype:void 0,nh=N4?N4.valueOf:void 0;function LA(t,e,n,i,s,r,o){switch(n){case PA:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case zA:return!(t.byteLength!=e.byteLength||!r(new $4(t),new $4(e)));case DA:case EA:case BA:return kA(+t,+e);case TA:return t.name==e.name&&t.message==e.message;case AA:case $A:return t==e+"";case IA:var c=CA;case VA:var d=i&MA;if(c||(c=SA),t.size!=e.size&&!d)return!1;var h=o.get(t);if(h)return h==e;i|=OA,o.set(t,e);var f=xA(c(t),c(e),i,s,r,o);return o.delete(t),f;case NA:if(nh)return nh.call(t)==nh.call(e)}return!1}var FA=LA;function RA(t,e){for(var n=-1,i=e.length,s=t.length;++n<i;)t[s+n]=e[n];return t}var HA=RA,WA=HA,YA=zi;function jA(t,e,n){var i=e(t);return YA(t)?i:WA(i,n(t))}var UA=jA;function qA(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 GA=qA;function KA(){return[]}var ZA=KA,XA=GA,JA=ZA,QA=Object.prototype,eV=QA.propertyIsEnumerable,z4=Object.getOwnPropertySymbols,tV=z4?function(t){return t==null?[]:(t=Object(t),XA(z4(t),function(e){return eV.call(t,e)}))}:JA,nV=tV;function iV(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}var sV=iV,ja={},rV={get exports(){return ja},set exports(t){ja=t}};function aV(){return!1}var oV=aV;(function(t,e){var n=Qi,i=oV,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})(rV,ja);var lV=es,cV=eh,dV=Pi,uV="[object Arguments]",hV="[object Array]",fV="[object Boolean]",pV="[object Date]",mV="[object Error]",gV="[object Function]",_V="[object Map]",vV="[object Number]",yV="[object Object]",bV="[object RegExp]",wV="[object Set]",kV="[object String]",xV="[object WeakMap]",CV="[object ArrayBuffer]",SV="[object DataView]",MV="[object Float32Array]",OV="[object Float64Array]",DV="[object Int8Array]",EV="[object Int16Array]",TV="[object Int32Array]",IV="[object Uint8Array]",BV="[object Uint8ClampedArray]",AV="[object Uint16Array]",VV="[object Uint32Array]",It={};It[MV]=It[OV]=It[DV]=It[EV]=It[TV]=It[IV]=It[BV]=It[AV]=It[VV]=!0,It[uV]=It[hV]=It[CV]=It[fV]=It[SV]=It[pV]=It[mV]=It[gV]=It[_V]=It[vV]=It[yV]=It[bV]=It[wV]=It[kV]=It[xV]=!1;function $V(t){return dV(t)&&cV(t.length)&&!!It[lV(t)]}var NV=$V,zV=NV,PV=D4,P4=Il,L4=P4&&P4.isTypedArray,LV=L4?PV(L4):zV,ih=LV,FV=sV,RV=J0,HV=zi,WV=ja,YV=Q0,jV=ih,UV=Object.prototype,qV=UV.hasOwnProperty;function GV(t,e){var n=HV(t),i=!n&&RV(t),s=!n&&!i&&WV(t),r=!n&&!i&&!s&&jV(t),o=n||i||s||r,c=o?FV(t.length,String):[],d=c.length;for(var h in t)(e||qV.call(t,h))&&!(o&&(h=="length"||s&&(h=="offset"||h=="parent")||r&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||YV(h,d)))&&c.push(h);return c}var F4=GV,KV=Object.prototype;function ZV(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||KV;return t===n}var sh=ZV;function XV(t,e){return function(n){return t(e(n))}}var R4=XV,JV=R4,QV=JV(Object.keys,Object),e$=QV,t$=sh,n$=e$,i$=Object.prototype,s$=i$.hasOwnProperty;function r$(t){if(!t$(t))return n$(t);var e=[];for(var n in Object(t))s$.call(t,n)&&n!="constructor"&&e.push(n);return e}var a$=r$,o$=Lr,l$=eh;function c$(t){return t!=null&&l$(t.length)&&!o$(t)}var Bl=c$,d$=F4,u$=a$,h$=Bl;function f$(t){return h$(t)?d$(t):u$(t)}var rh=f$,p$=UA,m$=nV,g$=rh;function _$(t){return p$(t,g$,m$)}var v$=_$,H4=v$,y$=1,b$=Object.prototype,w$=b$.hasOwnProperty;function k$(t,e,n,i,s,r){var o=n&y$,c=H4(t),d=c.length,h=H4(e),f=h.length;if(d!=f&&!o)return!1;for(var m=d;m--;){var g=c[m];if(!(o?g in e:w$.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 x$=k$,C$=Fr,S$=Qi,M$=C$(S$,"DataView"),O$=M$,D$=Fr,E$=Qi,T$=D$(E$,"Promise"),I$=T$,B$=Fr,A$=Qi,V$=B$(A$,"Set"),$$=V$,N$=Fr,z$=Qi,P$=N$(z$,"WeakMap"),L$=P$,ah=O$,oh=K0,lh=I$,ch=$$,dh=L$,W4=es,Ua=m4,Y4="[object Map]",F$="[object Object]",j4="[object Promise]",U4="[object Set]",q4="[object WeakMap]",G4="[object DataView]",R$=Ua(ah),H$=Ua(oh),W$=Ua(lh),Y$=Ua(ch),j$=Ua(dh),Rr=W4;(ah&&Rr(new ah(new ArrayBuffer(1)))!=G4||oh&&Rr(new oh)!=Y4||lh&&Rr(lh.resolve())!=j4||ch&&Rr(new ch)!=U4||dh&&Rr(new dh)!=q4)&&(Rr=function(t){var e=W4(t),n=e==F$?t.constructor:void 0,i=n?Ua(n):"";if(i)switch(i){case R$:return G4;case H$:return Y4;case W$:return j4;case Y$:return U4;case j$:return q4}return e});var U$=Rr,uh=th,q$=B4,G$=FA,K$=x$,K4=U$,Z4=zi,X4=ja,Z$=ih,X$=1,J4="[object Arguments]",Q4="[object Array]",Rd="[object Object]",J$=Object.prototype,e5=J$.hasOwnProperty;function Q$(t,e,n,i,s,r){var o=Z4(t),c=Z4(e),d=o?Q4:K4(t),h=c?Q4:K4(e);d=d==J4?Rd:d,h=h==J4?Rd:h;var f=d==Rd,m=h==Rd,g=d==h;if(g&&X4(t)){if(!X4(e))return!1;o=!0,f=!1}if(g&&!f)return r||(r=new uh),o||Z$(t)?q$(t,e,n,i,s,r):G$(t,e,d,n,i,s,r);if(!(n&X$)){var v=f&&e5.call(t,"__wrapped__"),b=m&&e5.call(e,"__wrapped__");if(v||b){var x=v?t.value():t,k=b?e.value():e;return r||(r=new uh),s(x,k,n,i,r)}}return g?(r||(r=new uh),K$(t,e,n,i,s,r)):!1}var eN=Q$,tN=eN,t5=Pi;function n5(t,e,n,i,s){return t===e?!0:t==null||e==null||!t5(t)&&!t5(e)?t!==t&&e!==e:tN(t,e,n,i,n5,s)}var i5=n5,nN=th,iN=i5,sN=1,rN=2;function aN(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 nN;if(i)var g=i(h,f,d,t,e,m);if(!(g===void 0?iN(f,h,sN|rN,i,m):g))return!1}}return!0}var oN=aN,lN=_s;function cN(t){return t===t&&!lN(t)}var s5=cN,dN=s5,uN=rh;function hN(t){for(var e=uN(t),n=e.length;n--;){var i=e[n],s=t[i];e[n]=[i,s,dN(s)]}return e}var fN=hN;function pN(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}var r5=pN,mN=oN,gN=fN,_N=r5;function vN(t){var e=gN(t);return e.length==1&&e[0][2]?_N(e[0][0],e[0][1]):function(n){return n===t||mN(n,t,e)}}var yN=vN,bN=x4,wN=Ld;function kN(t,e){e=bN(e,t);for(var n=0,i=e.length;t!=null&&n<i;)t=t[wN(e[n++])];return n&&n==i?t:void 0}var a5=kN,xN=a5;function CN(t,e,n){var i=t==null?void 0:xN(t,e);return i===void 0?n:i}var Hr=CN;function SN(t,e){return t!=null&&e in Object(t)}var MN=SN,ON=MN,DN=M4;function EN(t,e){return t!=null&&DN(t,e,ON)}var TN=EN,IN=i5,BN=Hr,AN=TN,VN=q0,$N=s5,NN=r5,zN=Ld,PN=1,LN=2;function FN(t,e){return VN(t)&&$N(e)?NN(zN(t),e):function(n){var i=BN(n,t);return i===void 0&&i===e?AN(n,t):IN(e,i,PN|LN)}}var RN=FN;function HN(t){return t}var hh=HN;function WN(t){return function(e){return e==null?void 0:e[t]}}var YN=WN,jN=a5;function UN(t){return function(e){return jN(e,t)}}var qN=UN,GN=YN,KN=qN,ZN=q0,XN=Ld;function JN(t){return ZN(t)?GN(XN(t)):KN(t)}var QN=JN,ez=yN,tz=RN,nz=hh,iz=zi,sz=QN;function rz(t){return typeof t=="function"?t:t==null?nz:typeof t=="object"?iz(t)?tz(t[0],t[1]):ez(t):sz(t)}var o5=rz;function az(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 oz=az,lz=oz,cz=lz(),l5=cz,dz=l5,uz=rh;function hz(t,e){return t&&dz(t,e,uz)}var c5=hz,fz=Bl;function pz(t,e){return function(n,i){if(n==null)return n;if(!fz(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 mz=pz,gz=c5,_z=mz,vz=_z(gz),yz=vz,bz=yz;function wz(t,e){var n;return bz(t,function(i,s,r){return n=e(i,s,r),!n}),!!n}var kz=wz,xz=Ra,Cz=Bl,Sz=Q0,Mz=_s;function Oz(t,e,n){if(!Mz(n))return!1;var i=typeof e;return(i=="number"?Cz(n)&&Sz(e,n.length):i=="string"&&e in n)?xz(n[e],t):!1}var fh=Oz,Dz=I4,Ez=o5,Tz=kz,Iz=zi,Bz=fh;function Az(t,e,n){var i=Iz(t)?Dz:Tz;return n&&Bz(t,e,n)&&(e=void 0),i(t,Ez(e))}var Vz=Az,$z=es,Nz=Pi,zz="[object Boolean]";function Pz(t){return t===!0||t===!1||Nz(t)&&$z(t)==zz}var Lz=Pz,Fz=es,Rz=Pi,Hz="[object Number]";function Wz(t){return typeof t=="number"||Rz(t)&&Fz(t)==Hz}var Li=Wz,Yz=Fr,jz=function(){try{var t=Yz(Object,"defineProperty");return t({},"",{}),t}catch{}}(),d5=jz,u5=d5;function Uz(t,e,n){e=="__proto__"&&u5?u5(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Hd=Uz,qz=Hd,Gz=Ra,Kz=Object.prototype,Zz=Kz.hasOwnProperty;function Xz(t,e,n){var i=t[e];(!(Zz.call(t,e)&&Gz(i,n))||n===void 0&&!(e in t))&&qz(t,e,n)}var Jz=Xz,Qz=Hd,eP=c5,tP=o5;function nP(t,e){var n={};return e=tP(e),eP(t,function(i,s,r){Qz(n,s,e(i,s,r))}),n}var iP=nP;function sP(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 h5=sP,rP=h5,f5=Math.max;function aP(t,e,n){return e=f5(e===void 0?t.length-1:e,0),function(){for(var i=arguments,s=-1,r=f5(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),rP(t,this,c)}}var oP=aP;function lP(t){return function(){return t}}var cP=lP,dP=cP,p5=d5,uP=hh,hP=p5?function(t,e){return p5(t,"toString",{configurable:!0,enumerable:!1,value:dP(e),writable:!0})}:uP,fP=hP,pP=800,mP=16,gP=Date.now;function _P(t){var e=0,n=0;return function(){var i=gP(),s=mP-(i-n);if(n=i,s>0){if(++e>=pP)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var vP=_P,yP=fP,bP=vP,wP=bP(yP),kP=wP,xP=hh,CP=oP,SP=kP;function MP(t,e){return SP(CP(t,e,xP),t+"")}var ph=MP;function OP(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var DP=OP,EP=_s,TP=sh,IP=DP,BP=Object.prototype,AP=BP.hasOwnProperty;function VP(t){if(!EP(t))return IP(t);var e=TP(t),n=[];for(var i in t)i=="constructor"&&(e||!AP.call(t,i))||n.push(i);return n}var $P=VP,NP=F4,zP=$P,PP=Bl;function LP(t){return PP(t)?NP(t,!0):zP(t)}var mh=LP,FP=ph,RP=Ra,HP=fh,WP=mh,m5=Object.prototype,YP=m5.hasOwnProperty,jP=FP(function(t,e){t=Object(t);var n=-1,i=e.length,s=i>2?e[2]:void 0;for(s&&HP(e[0],e[1],s)&&(i=1);++n<i;)for(var r=e[n],o=WP(r),c=-1,d=o.length;++c<d;){var h=o[c],f=t[h];(f===void 0||RP(f,m5[h])&&!YP.call(t,h))&&(t[h]=r[h])}return t}),g5=jP,UP=Hd,qP=Ra;function GP(t,e,n){(n!==void 0&&!qP(t[e],n)||n===void 0&&!(e in t))&&UP(t,e,n)}var _5=GP,Wd={},KP={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})(KP,Wd);var v5=A4;function ZP(t){var e=new t.constructor(t.byteLength);return new v5(e).set(new v5(t)),e}var XP=ZP,JP=XP;function QP(t,e){var n=e?JP(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var eL=QP;function tL(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}var nL=tL,iL=_s,y5=Object.create,sL=function(){function t(){}return function(e){if(!iL(e))return{};if(y5)return y5(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),rL=sL,aL=R4,oL=aL(Object.getPrototypeOf,Object),b5=oL,lL=rL,cL=b5,dL=sh;function uL(t){return typeof t.constructor=="function"&&!dL(t)?lL(cL(t)):{}}var hL=uL,fL=Bl,pL=Pi;function mL(t){return pL(t)&&fL(t)}var gL=mL,_L=es,vL=b5,yL=Pi,bL="[object Object]",wL=Function.prototype,kL=Object.prototype,w5=wL.toString,xL=kL.hasOwnProperty,CL=w5.call(Object);function SL(t){if(!yL(t)||_L(t)!=bL)return!1;var e=vL(t);if(e===null)return!0;var n=xL.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&w5.call(n)==CL}var ML=SL;function OL(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var k5=OL,DL=Jz,EL=Hd;function TL(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?EL(n,c,d):DL(n,c,d)}return n}var IL=TL,BL=IL,AL=mh;function VL(t){return BL(t,AL(t))}var $L=VL,x5=_5,NL=Wd,zL=eL,PL=nL,LL=hL,C5=J0,S5=zi,FL=gL,RL=ja,HL=Lr,WL=_s,YL=ML,jL=ih,M5=k5,UL=$L;function qL(t,e,n,i,s,r,o){var c=M5(t,n),d=M5(e,n),h=o.get(d);if(h){x5(t,n,h);return}var f=r?r(c,d,n+"",t,e,o):void 0,m=f===void 0;if(m){var g=S5(d),v=!g&&RL(d),b=!g&&!v&&jL(d);f=d,g||v||b?S5(c)?f=c:FL(c)?f=PL(c):v?(m=!1,f=NL(d,!0)):b?(m=!1,f=zL(d,!0)):f=[]:YL(d)||C5(d)?(f=c,C5(c)?f=UL(c):(!WL(c)||HL(c))&&(f=LL(d))):m=!1}m&&(o.set(d,f),s(f,d,i,r,o),o.delete(d)),x5(t,n,f)}var GL=qL,KL=th,ZL=_5,XL=l5,JL=GL,QL=_s,eF=mh,tF=k5;function O5(t,e,n,i,s){t!==e&&XL(e,function(r,o){if(s||(s=new KL),QL(r))JL(t,e,o,n,O5,i,s);else{var c=i?i(tF(t,o),r,o+"",t,e,s):void 0;c===void 0&&(c=r),ZL(t,o,c)}},eF)}var D5=O5,nF=D5,E5=_s;function T5(t,e,n,i,s,r){return E5(t)&&E5(e)&&(r.set(e,t),nF(t,e,void 0,T5,r),r.delete(e)),t}var iF=T5,sF=ph,rF=fh;function aF(t){return sF(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&&rF(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 oF=aF,lF=D5,cF=oF,dF=cF(function(t,e,n,i){lF(t,e,n,i)}),uF=dF,hF=h5,fF=ph,pF=iF,mF=uF,gF=fF(function(t){return t.push(void 0,pF),hF(mF,void 0,t)}),Al=gF;function _F(t){return t&&t.length?t[0]:void 0}var I5=_F;function vF(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var qa=vF;const yF=t=>Object.prototype.toString.call(t).slice(8,-1),Ga=t=>SB(t)&&!isNaN(t.getTime()),vs=t=>yF(t)==="Object",B5=O4,A5=(t,e)=>Vz(e,n=>O4(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())},V5=(t,...e)=>{const n={};let i;for(i in t)e.includes(i)||(n[i]=t[i]);return n},$5=(t,e)=>{const n={};return e.forEach(i=>{i in t&&(n[i]=t[i])}),n};function bF(t,e,n){return Math.min(Math.max(t,e),n)}var qd={},wF={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})(wF,qd);const kF=l4(qd);var Gd={},xF={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})(xF,Gd);const N5=l4(Gd);function CF(t,e){var n=DF(e);return n.formatToParts?MF(n,t):OF(n,t)}var SF={year:0,month:1,day:2,hour:3,minute:4,second:5};function MF(t,e){try{for(var n=t.formatToParts(e),i=[],s=0;s<n.length;s++){var r=SF[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 OF(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 gh={};function DF(t){if(!gh[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";gh[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 gh[t]}function z5(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 P5=36e5,EF=6e4,_h={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function TF(t,e,n){var i,s;if(!t||(i=_h.timezoneZ.exec(t),i))return 0;var r;if(i=_h.timezoneHH.exec(t),i)return r=parseInt(i[1],10),L5(r)?-(r*P5):NaN;if(i=_h.timezoneHHMM.exec(t),i){r=parseInt(i[1],10);var o=parseInt(i[2],10);return L5(r,o)?(s=Math.abs(r)*P5+o*EF,r>0?-s:s):NaN}if(AF(t)){e=new Date(e||Date.now());var c=n?e:IF(e),d=vh(c,t),h=n?d:BF(e,d,t);return-h}return NaN}function IF(t){return z5(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function vh(t,e){var n=CF(t,e),i=z5(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 BF(t,e,n){var i=t.getTime(),s=i-e,r=vh(new Date(s),n);if(e===r)return e;s-=r-e;var o=vh(new Date(s),n);return r===o?r:Math.max(r,o)}function L5(t,e){return-23<=t&&t<=23&&(e==null||0<=e&&e<=59)}var F5={};function AF(t){if(F5[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),F5[t]=!0,!0}catch{return!1}}var VF=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const $F=VF;var yh=36e5,R5=6e4,NF=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:$F};function zF(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?NF:kF(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=PF(t),r=LF(s.date,i),o=r.year,c=r.restDateString,d=FF(c,o);if(isNaN(d))return new Date(NaN);if(d){var h=d.getTime(),f=0,m;if(s.time&&(f=RF(s.time),isNaN(f)))return new Date(NaN);if(s.timeZone||n.timeZone){if(m=TF(s.timeZone||n.timeZone,new Date(h+f)),isNaN(m))return new Date(NaN)}else m=N5(new Date(h+f)),m=N5(new Date(h+f+m));return new Date(h+f+m)}else return new Date(NaN)}function PF(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 LF(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 FF(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,Y5(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 YF(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 Y5(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,j5(e,r)?H5(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 j5(e,r,d)?H5(e,r,d):new Date(NaN)}return null}function RF(t){var e,n,i;if(e=Tn.HH.exec(t),e)return n=parseFloat(e[1].replace(",",".")),bh(n)?n%24*yh:NaN;if(e=Tn.HHMM.exec(t),e)return n=parseInt(e[1],10),i=parseFloat(e[2].replace(",",".")),bh(n,i)?n%24*yh+i*R5: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 bh(n,i,s)?n%24*yh+i*R5+s*1e3:NaN}return null}function H5(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 HF=[31,28,31,30,31,30,31,31,30,31,30,31],WF=[31,29,31,30,31,30,31,31,30,31,30,31];function W5(t){return t%400===0||t%4===0&&t%100!==0}function Y5(t,e,n){if(e<0||e>11)return!1;if(n!=null){if(n<1)return!1;var i=W5(t);if(i&&n>WF[e]||!i&&n>HF[e])return!1}return!0}function YF(t,e){if(e<1)return!1;var n=W5(t);return!(n&&e>366||!n&&e>365)}function j5(t,e,n){return!(e<0||e>52||n!=null&&(n<0||n>6))}function bh(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 jF={};function wh(){return jF}function Wr(t,e){var n,i,s,r,o,c,d,h;kn(1,arguments);var f=wh(),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 U5(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 UF=6048e5;function qF(t,e,n){kn(2,arguments);var i=Wr(t,n),s=Wr(e,n),r=i.getTime()-U5(i),o=s.getTime()-U5(s);return Math.round((r-o)/UF)}function GF(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 KF(t){kn(1,arguments);var e=bs(t);return e.setDate(1),e.setHours(0,0,0,0),e}function ZF(t,e){return kn(1,arguments),qF(GF(t),KF(t),e)+1}function XF(t,e){var n,i,s,r,o,c,d,h;kn(1,arguments);var f=bs(t),m=f.getFullYear(),g=wh(),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 JF(t,e){var n,i,s,r,o,c,d,h;kn(1,arguments);var f=wh(),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=XF(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 QF=6048e5;function eR(t,e){kn(1,arguments);var n=bs(t),i=Wr(n,e).getTime()-JF(n,e).getTime();return Math.round(i/QF)+1}function Zd(t){return kn(1,arguments),Wr(t,{weekStartsOn:1})}function tR(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 nR(t){kn(1,arguments);var e=tR(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var i=Zd(n);return i}var iR=6048e5;function sR(t){kn(1,arguments);var e=bs(t),n=Zd(e).getTime()-nR(e).getTime();return Math.round(n/iR)+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 q5(t,e){kn(2,arguments);var n=Ka(e);return Xd(t,n*12)}const rR={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function aR({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<=VR;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=u_(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 oR(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 lR(t,e){return t.days.map(n=>({label:e.formatDate(n.date,e.masks.weekdays),weekday:n.weekday}))}function cR(t,e){return`${e}.${vt(t,2)}`}function G5(t,e,n){return $5(n.getDateParts(n.toDate(t)),rR[e])}function K5({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 kh(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 dR(t,e,n){return(t||!1)&&!kh(t,e)&&!Jd(t,n)}function uR(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 hR(t,e,n,i){if(!ns(t)||!ns(e))return[];const s=[];for(;!Jd(t,e);)s.push(t),t=K5(t,1,n,i);return s}function Z5(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 fR(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=aR({monthComps:c,prevMonthComps:d,nextMonthComps:h},e),m=oR(f,s,r,e),g=lR(m[0],e);return{id:Z5(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 pR(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 X5{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 mR{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 gR=Object.entries(ws).reduce((t,[e,{dow:n,L:i}])=>(t[e]={id:e,firstDayOfWeek:n,masks:{L:i}},t),{}),_R={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:gR,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},xh=a.reactive(_R),vR=a.computed(()=>iP(xh.locales,t=>(t.masks=Al(t.masks,xh.masks),t))),tr=t=>typeof window<"u"&&B5(window.__vcalendar__,t)?Hr(window.__vcalendar__,t):Hr(xh,t),yR=12,bR=5;function wR(t,e){const n=new Intl.DateTimeFormat().resolvedOptions().locale;let i;ts(t)?i=t:B5(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:yR,pageCacheSize:bR};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}=wR(e,vR.value);this.monthCache=new X5(o,WR,YR),this.pageCache=new X5(c,Z5,fR),this.id=i,this.daysInWeek=xn,this.firstDayOfWeek=bF(s,1,xn),this.masks=r,this.timezone=n||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=Oh("long",this.id),this.dayNamesShort=Oh("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(d=>d.substring(0,2)),this.dayNamesNarrow=Oh("narrow",this.id),this.monthNames=m_("long",this.id),this.monthNamesShort=m_("short",this.id),this.relativeTimeNames=qR(this.id)}formatDate(e,n){return JR(e,n,this)}parseDate(e,n){return g_(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?g_(e,o||"iso",this):i):Ga(e)?(n.type="date",s=new Date(e.getTime())):Sh(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,...$5(h,AR[c])}))}d&&(h=XR(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 HR(e,this)}getDateFromParts(e){return f_(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 pR(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 UR().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||{}),J5=(t=>(t.Days="days",t.Weeks="weeks",t.Months="months",t.Years="years",t))(J5||{}),Q5=(t=>(t.Days="days",t.Weekdays="weekdays",t.Weeks="weeks",t.Months="months",t.Years="years",t))(Q5||{}),e_=(t=>(t.OrdinalWeekdays="ordinalWeekdays",t))(e_||{});class kR{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 Mh(this.from.date,n)%this.interval===0;case"weeks":return FR(this.from.date,n)%this.interval===0;case"months":return RR(this.from.date,n)%this.interval===0;case"years":return h_(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 xR(n);case"weekdays":return new CR(n);case"weeks":return new SR(n);case"months":return new MR(n);case"years":return new OR(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 xR extends Ja{constructor(e){super("days",e,TR,({day:n,dayFromEnd:i})=>[n,-i])}}class CR extends Ja{constructor(e){super("weekdays",e,Ch,({weekday:n})=>[n])}}class SR extends Ja{constructor(e){super("weeks",e,IR,({week:n,weekFromEnd:i})=>[n,-i])}}class MR extends Ja{constructor(e){super("months",e,BR,({month:n})=>[n])}}class OR extends Ja{constructor(e){super("years",e,Li,({year:n})=>[n])}}class DR{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(!t_(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(!Ch(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(!t_(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(!Ch(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 ER{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 ER(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=J5.Days]=e.every;n.push(new kR(s,i,this.from))}return Object.values(Q5).forEach(i=>{i in e&&n.push(Ja.create(i,e[i]))}),Object.values(e_).forEach(i=>{i in e&&n.push(new DR(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 TR(t){return Li(t)?t>=1&&t<=31:!1}function Ch(t){return Li(t)?t>=1&&t<=7:!1}function IR(t){return Li(t)?t>=-6&&t<=-1||t>=1&&t<=6:!1}function BR(t){return Li(t)?t>=1&&t<=12:!1}function t_(t){return!(!Li(t)||t<-5||t>5||t===0)}const AR={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},xn=7,VR=6,n_=1e3,i_=n_*60,s_=i_*60,tu=s_*24,$R=[31,28,31,30,31,30,31,31,30,31,30,31],NR=["L","iso"],Vl={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},r_=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,zR=/\[([^]*?)\]/gm,a_={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?/,PR=/\d{3}/,LR=/\d{4}/,$l=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,o_=()=>{},l_=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,o_],W:[$l,o_],M:[nr,(t,e)=>{t.month=e-1}],MMM:[$l,l_("monthNamesShort")],MMMM:[$l,l_("monthNames")],YY:[nr,(t,e)=>{const i=+new Date().getFullYear().toString().substr(0,2);t.year=+`${e>68?i-1:i}${e}`}],YYYY:[LR,(t,e)=>{t.year=e}],S:[/\d/,(t,e)=>{t.milliseconds=e*100}],SS:[/\d{2}/,(t,e)=>{t.milliseconds=e*10}],SSS:[PR,(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 c_(t,e){return(ys(t)&&t||[ts(t)&&t||"YYYY-MM-DD"]).map(n=>NR.reduce((i,s)=>i.replace(s,e.masks[s]||""),n))}function Sh(t){return vs(t)&&"year"in t&&"month"in t&&"day"in t}function d_(t,e=1){const n=t.getDay()+1,i=n>=e?e-n:-(7-(e-n));return In(t,i)}function u_(t,e,n){const i=Date.UTC(t,e-1,n);return Mh(new Date(0),new Date(i))}function Mh(t,e){return Math.round((e.getTime()-t.getTime())/tu)}function FR(t,e){return Math.ceil(Mh(d_(t),d_(e))/7)}function h_(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}function RR(t,e){return h_(t,e)*12+(e.getMonth()-t.getMonth())}function f_(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 zF(f,{timeZone:e})}return new Date(i,s-1,r,o,c,d,h)}function HR(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*n_+r*i_+o*s_,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=u_(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 WR(t,e,n){return`${e}-${t}-${n}`}function YR(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:$R[t-1],c=n-1,d=ZF(s,{weekStartsOn:c}),h=[],f=[];for(let m=0;m<d;m++){const g=In(s,m*7);h.push(eR(g,{weekStartsOn:c})),f.push(sR(g))}return{firstDayOfWeek:n,firstDayOfMonth:s,inLeapYear:i,firstWeekday:r,numDays:o,numWeeks:d,month:t,year:e,weeknumbers:h,isoWeeknumbers:f}}function jR(){const t=[];for(let s=0;s<xn;s++)t.push(f_({year:2020,month:1,day:5+s,hours:12}));return t}function Oh(t,e=void 0){const n=new Intl.DateTimeFormat(e,{weekday:t});return jR().map(i=>n.format(i))}function UR(){const t=[];for(let e=0;e<=24;e++)t.push(new Date(2e3,0,1,e));return t}function qR(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 p_(){const t=[];for(let e=0;e<12;e++)t.push(new Date(2e3,e,15));return t}function m_(t,e=void 0){const n=new Intl.DateTimeFormat(e,{month:t,timeZone:"UTC"});return p_().map(i=>n.format(i))}function GR(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||GR(c,n,t))&&i.push({value:c,label:vt(c,o)});return i}function KR(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 ZR(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 XR(t,e){const n={...t};return Object.entries(e).forEach(([i,s])=>{const r=Vl[i],o=t[i];n[i]=ZR(t,r,o,s)}),n}function g_(t,e,n){return c_(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(r_,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 JR(t,e,n){if(t==null)return"";let i=c_(e,n)[0];/Z$/.test(i)&&(n.timezone="utc");const s=[];i=i.replace(zR,(o,c)=>(s.push(c),"??"));const r=n.getDateParts(t);return i=i.replace(r_,o=>o in a_?a_[o](r,n):o.slice(1,o.length-1)),i.replace(/\?\?/g,()=>s.shift())}let QR=0;class __{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=++QR),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 Dh(t){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:t}))}function zl(t){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:t}))}function v_(t){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:t}))}function y_(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&&(v_({...t,target:t.target||b.currentTarget}),b.stopPropagation())},h=b=>{o||(o=!0,(i||s)&&Dh({...t,target:t.target||b.currentTarget}))},f=()=>{o&&(o=!1,(i||s&&!c)&&zl(t))},m=b=>{c||(c=!0,(r||s)&&Dh({...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 b_=t=>{const e=Yd(t);if(e==null)return;const n=e.popoverHandlers;!n||!n.length||(n.forEach(i=>i()),delete e.popoverHandlers)},w_=(t,e)=>{const n=Yd(t);if(n==null)return;const i=[],s=y_(e);Object.entries(s).forEach(([r,o])=>{i.push(er(n,r,o))}),n.popoverHandlers=i},k_={mounted(t,e){const{value:n}=e;!n||w_(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&&(b_(t),r||zl(n)),r&&w_(t,i))},unmounted(t){b_(t)}},eH=(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={},tH=(t,e=10)=>{nu[t]=Date.now()+e},nH=(t,e)=>{if(t in nu){const n=nu[t];if(Date.now()<n)return;delete nu[t]}e()};function x_(){return typeof window<"u"}function iH(t){return x_()&&t in window}function sH(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(){iH("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(x_()&&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 rH=["base","start","end","startEnd"],aH=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],oH={base:{},start:{},end:{}};function Eh(t,e,n=oH){let i=t,s={};e===!0||ts(e)?(i=ts(e)?e:i,s={...n}):vs(e)&&(A5(e,rH)?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)&&(A5(c,aH)?r[o]={...c}:r[o]={}),Al(r[o],{color:d})}),r}class lH{constructor(){xe(this,"type","highlight")}normalizeConfig(e,n){return Eh(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 Th{constructor(e,n){xe(this,"type",""),xe(this,"collectionType",""),this.type=e,this.collectionType=n}normalizeConfig(e,n){return Eh(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 cH extends Th{constructor(){super("content","content")}normalizeConfig(e,n){return Eh("base",n)}}class dH extends Th{constructor(){super("dot","dots")}}class uH extends Th{constructor(){super("bar","bars")}}class hH{constructor(e){xe(this,"color"),xe(this,"renderers",[new cH,new lH,new dH,new uH]),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 C_=Symbol("__vc_base_context__"),S_={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 M_(t){const e=a.computed(()=>t.color??""),n=a.computed(()=>t.isDark??!1),{displayMode:i}=sH(n),s=a.computed(()=>new hH(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 __({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(C_,m),m}function fH(t){return a.inject(C_,()=>M_(t),!0)}function O_(t){return`__vc_slot_${t}__`}function D_(t,e={}){Object.keys(t).forEach(n=>{a.provide(O_(e[n]??n),t[n])})}function E_(t){return a.inject(O_(t),null)}const pH={...S_,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},mH=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],T_=Symbol("__vc_calendar_context__");function gH(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;D_(e);const{theme:b,color:x,displayMode:k,locale:O,masks:T,minDate:N,maxDate:C,disabledAttribute:B,disabledDates:$}=fH(t),L=a.computed(()=>t.rows*t.columns),F=a.computed(()=>t.step||L.value),q=a.computed(()=>I5(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)=>K5(W,E,Y,O.value),ae=W=>G5(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 __({...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 mR;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?"":Lz(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||(kh(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=kh(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})),hR(E.fromPage,E.toPage,h.value,O.value).map(ke=>dR(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&&!uR(E.fromPage,q.value)&&(zl({id:c.value,hideDelay:0}),E.view&&(tH("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=q5(Y,-1):se=Xd(Y,-1);break}case"PageDown":{E.altKey?se=q5(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=eH(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,()=>{nH("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(T_,ve),ve}function Yr(){const t=a.inject(T_);if(t)return t;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const _H=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,V5(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 vH(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 Ih=ir(_H,[["render",vH]]),yH={class:"vc-day-popover-row"},bH={key:0,class:"vc-day-popover-row-indicator"},wH={class:"vc-day-popover-row-label"},kH=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",yH,[a.unref(n)?(a.openBlock(),a.createElementBlock("div",bH,[a.createElementVNode("span",{class:a.normalizeClass(a.unref(n).class)},null,2)])):a.createCommentVNode("",!0),a.createElementVNode("div",wH,[a.renderSlot(i.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(t.attribute.popover?t.attribute.popover.label:"No content provided"),1)])])]))}}),xH={inheritAttrs:!1},vi=a.defineComponent({...xH,__name:"CalendarSlot",props:{name:null},setup(t){const n=E_(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})}}),CH={class:"vc-day-popover-container"},SH={key:0,class:"vc-day-popover-header"},MH=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(Ih,{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",CH,[a.unref(s).dayPopover?(a.openBlock(),a.createElementBlock("div",SH,a.toDisplayString(c(f)),1)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m,v=>(a.openBlock(),a.createBlock(kH,{key:v.key,attribute:v},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),OH={},DH={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},EH=[a.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1)];function TH(t,e){return a.openBlock(),a.createElementBlock("svg",DH,EH)}const IH=ir(OH,[["render",TH]]),BH={},AH={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},VH=[a.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1)];function $H(t,e){return a.openBlock(),a.createElementBlock("svg",AH,VH)}const NH=ir(BH,[["render",$H]]),zH={},PH={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},LH=[a.createElementVNode("polyline",{points:"6 9 12 15 18 9"},null,-1)];function FH(t,e){return a.openBlock(),a.createElementBlock("svg",PH,LH)}const RH=ir(zH,[["render",FH]]),HH={},WH={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},YH=[a.createElementVNode("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)];function jH(t,e){return a.openBlock(),a.createElementBlock("svg",WH,YH)}const UH=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:RH,IconChevronLeft:NH,IconChevronRight:IH,IconClock:ir(HH,[["render",jH]])},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(()=>UH[`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"]))}}),qH=["disabled"],GH={key:1,class:"vc-title-wrapper"},KH={type:"button",class:"vc-title"},ZH=["disabled"],I_=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,qH)):a.createCommentVNode("",!0),a.unref(v).title?(a.openBlock(),a.createElementBlock("div",GH,[a.createVNode(vi,{name:"header-title-wrapper"},{default:a.withCtx(()=>[a.withDirectives((a.openBlock(),a.createElementBlock("button",KH,[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(k_),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,ZH)):a.createCommentVNode("",!0)],6))}}),B_=Symbol("__vc_page_context__");function XH(t){const{locale:e,getDateAddress:n,canMove:i}=Yr();function s(c,d){const{month:h,year:f}=n(new Date);return p_().map((m,g)=>{const v=g+1;return{month:v,year:c,id:cR(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(B_,o),o}function A_(){const t=a.inject(B_);if(t)return t;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const JH={class:"vc-nav-header"},QH=["disabled"],eW=["disabled"],tW={class:"vc-nav-items"},nW=["data-id","aria-label","disabled","onClick","onKeydown"],iW=a.defineComponent({__name:"CalendarNav",setup(t){const{masks:e,move:n}=Yr(),{page:i,getMonthItems:s,getYearItems:r}=A_(),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(()=>I5(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",JH,[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,QH),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,eW)]),a.createElementVNode("div",tW,[(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,nW))),128))])],512))}}),V_=a.defineComponent({__name:"CalendarPageProvider",props:{page:null},setup(t){const e=t;return XH(a.toRef(e,"page")),(n,i)=>a.renderSlot(n.$slots,"default")}}),sW=a.defineComponent({__name:"CalendarNavPopover",setup(t){const{navPopoverId:e,color:n,displayMode:i}=Yr();return(s,r)=>(a.openBlock(),a.createBlock(Ih,{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(V_,{page:o.page},{default:a.withCtx(()=>[a.createVNode(vi,{name:"nav"},{default:a.withCtx(()=>[a.createVNode(iW)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),rW=a.defineComponent({directives:{popover:k_},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=g5({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=E_("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)?g5({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}}}),aW={key:0,class:"vc-highlights vc-day-layer"},oW={key:1,class:"vc-day-layer vc-day-box-center-bottom"},lW={class:"vc-dots"},cW={key:2,class:"vc-day-layer vc-day-box-center-bottom"},dW={class:"vc-bars"};function uW(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",aW,[(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",oW,[a.createElementVNode("div",lW,[(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",cW,[a.createElementVNode("div",dW,[(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 hW=ir(rW,[["render",uW]]),fW={class:"vc-weekdays"},pW=["onClick"],mW={inheritAttrs:!1},gW=a.defineComponent({...mW,__name:"CalendarPage",setup(t){const{page:e}=A_(),{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(I_,{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",fW,[(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,pW)],2)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.days,o=>(a.openBlock(),a.createBlock(hW,{key:o.id,day:o},null,8,["day"]))),128))]))),128))],2)],2))}}),_W=a.defineComponent({components:{CalendarHeader:I_,CalendarPage:gW,CalendarNavPopover:sW,CalendarDayPopover:MH,CalendarPageProvider:V_,CalendarSlot:vi},props:pH,emit:mH,setup(t,{emit:e,slots:n}){return gH(t,{emit:e,slots:n})}}),vW={class:"vc-pane-header-wrapper"};function yW(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",vW,[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 bW=ir(_W,[["render",yW]]),$_=Symbol("__vc_date_picker_context__"),wW={...S_,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]},kW=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function xW(t,{emit:e,slots:n}){D_(n,{footer:"dp-footer"});const i=M_(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(()=>y_({...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!=="":Sh(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={}){Dh({...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){v_({...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=G5(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($_,W),W}function Bh(){const t=a.inject($_);if(t)return t;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const CW=[{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"}],SW=[{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 MW(t){const e=Bh(),{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(()=>Sh(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(()=>KR(v.value,o.value[t.position])),F=a.computed(()=>CW.filter(K=>L.value.hours.some(ie=>ie.value===K.value))),q=a.computed(()=>SW.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 OW=["value"],DW=["value","disabled"],EW={key:1,class:"vc-base-sizer","aria-hidden":"true"},TW={inheritAttrs:!1},Pl=a.defineComponent({...TW,__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,DW))),128))],16,OW),t.showIcon?(a.openBlock(),a.createBlock(Qa,{key:0,name:"ChevronDown",size:"18"})):a.createCommentVNode("",!0),t.fitContent?(a.openBlock(),a.createElementBlock("div",EW,a.toDisplayString(a.unref(n)),1)):a.createCommentVNode("",!0)],2))}}),IW={key:0,class:"vc-time-header"},BW={class:"vc-time-weekday"},AW={class:"vc-time-month"},VW={class:"vc-time-day"},$W={class:"vc-time-year"},NW={class:"vc-time-select-group"},zW=a.createElementVNode("span",{class:"vc-time-colon"},":",-1),PW=a.createElementVNode("span",{class:"vc-time-colon"},":",-1),LW=a.createElementVNode("span",{class:"vc-time-decimal"},".",-1),N_=a.defineComponent({__name:"TimePicker",props:{position:null},setup(t,{expose:e}){const i=MW(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",IW,[a.createElementVNode("span",BW,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"WWW")),1),a.createElementVNode("span",AW,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"MMM")),1),a.createElementVNode("span",VW,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"D")),1),a.createElementVNode("span",$W,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"YYYY")),1)])):a.createCommentVNode("",!0)]),_:1}),a.createElementVNode("div",NW,[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},[zW,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},[PW,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},[LW,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))}}),z_=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}=Bh(),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(N_,{key:b,position:b},null,8,["position"]))),128))],2)):(a.openBlock(),a.createBlock(bW,{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(N_,{key:b,position:b},null,8,["position"]))),128)):a.createCommentVNode("",!0),a.createVNode(vi,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),FW={inheritAttrs:!1},RW=a.defineComponent({...FW,__name:"DatePickerPopover",setup(t){const{datePickerPopoverId:e,color:n,displayMode:i,popoverRef:s,onPopoverBeforeShow:r,onPopoverAfterShow:o,onPopoverBeforeHide:c,onPopoverAfterHide:d}=Bh();return(h,f)=>(a.openBlock(),a.createBlock(Ih,{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(z_,a.normalizeProps(a.guardReactiveProps(h.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),HW=a.defineComponent({inheritAttrs:!1,emits:kW,props:wW,components:{DatePickerBase:z_,DatePickerPopover:RW},setup(t,e){const n=xW(t,e),i=a.reactive(V5(n,"calendarRef","popoverRef"));return{...n,slotCtx:i}}});function WW(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 YW=ir(HW,[["render",WW]]),mce="",gce="",iu=t=>/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(t),jW={components:{VDatePicker:YW,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()}}},UW={class:"date-input__container"},qW={key:0},GW={key:1,class:"date-input__label"},KW={class:"label__content",for:"cds-text-input"},ZW={key:0,class:"label__required-indicator"},XW=["value","disabled","placeholder","onClick"],JW={key:0,class:"date-input__error-message"};function QW(t,e,n,i,s,r){const o=a.resolveComponent("cds-chevron"),c=a.resolveComponent("v-date-picker");return a.openBlock(),a.createElementBlock("div",UW,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",qW,[a.renderSlot(t.$slots,"label")])):(a.openBlock(),a.createElementBlock("label",GW,[a.createElementVNode("div",KW,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",ZW," * ")):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,XW)]),_:1},8,["modelValue","available-dates","onUpdate:modelValue"]),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",JW,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const eY=oe(jW,[["render",QW]]),_ce="",tY={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}}},nY=["id"],iY={class:"filter-pill__label"},sY={class:"filter-pill__content"};function rY(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",iY,a.toDisplayString(n.label)+": ",1),a.createElementVNode("span",sY,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,nY),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 aY=oe(tY,[["render",rY],["__scopeId","data-v-f6d65f66"]]),vce="",oY=["teal","green","blue","indigo","violet","pink","red","orange","amber"],lY={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=>oY.includes(t)}}},cY={class:"empty-state"},dY=["src","alt"],uY={class:"empty-state__title"},hY={class:"empty-state__text"};function fY(t,e,n,i,s,r){const o=a.resolveComponent("cds-button");return a.openBlock(),a.createElementBlock("div",cY,[a.renderSlot(t.$slots,"graphic-element",{},()=>[a.createElementVNode("img",{class:"empty-state__image",src:n.image,alt:n.imageDescription},null,8,dY)],!0),a.createElementVNode("div",uY,a.toDisplayString(n.title),1),a.createElementVNode("div",hY,[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 pY=oe(lY,[["render",fY],["__scopeId","data-v-a4be2019"]]),yce="",Ah={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)}}},P_=()=>{a.useCssVars(t=>({"637a4784":t.textAlignmentResolver}))},L_=Ah.setup;Ah.setup=L_?(t,e)=>(P_(),L_(t,e)):P_;const mY=Ah,gY=["accept"],_Y={key:0,class:"file-input__container"},vY={key:0},yY={key:1},bY={key:1,class:"file-input__container"},wY={key:1},kY={key:0,class:"file-input__alert-container"};function xY(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,gY),[[a.vShow,!1]]),s.file?(a.openBlock(),a.createElementBlock("div",bY,[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",wY," 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",_Y,[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",yY," Solte aqui o seu arquivo ")):(a.openBlock(),a.createElementBlock("div",vY,[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",kY,a.toDisplayString(r.computedAllowedMessage),1)):a.createCommentVNode("",!0)],64)}const CY=oe(mY,[["render",xY],["__scopeId","data-v-dee88fdd"]]),bce="",SY={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)}}},MY={id:"cds-link-button"};function OY(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",MY,[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 F_=oe(SY,[["render",OY],["__scopeId","data-v-17beab84"]]),wce="",DY={props:{variant:{type:String,default:"green"},targetId:{type:String,default:""},position:{type:String,default:"top-end"}}},EY={id:"cds-pulsar"};function TY(t,e,n,i,s,r){const o=a.resolveDirective("cds-floatify");return a.withDirectives((a.openBlock(),a.createElementBlock("div",EY,[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 R_=oe(DY,[["render",TY],["__scopeId","data-v-6f878a26"]]),kce="",IY={components:{CdsPulsar:R_,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}}},BY=["id"],AY=["id"],VY={key:0},$Y={key:1},NY={key:0,class:"floating-assistant__content"},zY={class:"floating-assistant__footer"},PY=["href"],LY={key:1,class:"floating-assistant__subtitle"},FY={key:2};function RY(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",VY,[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",$Y,[a.createElementVNode("span",{class:a.normalizeClass(`floating-assistant__title--${n.variant}`)},a.toDisplayString(n.title),3),s.isExpanded?(a.openBlock(),a.createElementBlock("div",NY,[a.renderSlot(t.$slots,"default",{},void 0,!0),a.createElementVNode("span",zY,[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,PY),a.createTextVNode(". ")])])):(a.openBlock(),a.createElementBlock("span",LY," Clique para mais informa\xE7\xF5es "))])),s.isExpanded?(a.openBlock(),a.createElementBlock("div",FY,[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,AY)),[[h,s.pulsarId,s.position]])],10,BY)}const HY=oe(IY,[["render",RY],["__scopeId","data-v-24ad8b5d"]]),xce="",Vh={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})}%`}}},H_=()=>{a.useCssVars(t=>({ba3cfafc:t.chartProgressValue}))},W_=Vh.setup;Vh.setup=W_?(t,e)=>(H_(),W_(t,e)):H_;const WY=Vh,YY={class:"responsive-container"},jY=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),UY={x:"50%",y:"50%","dominant-baseline":"middle","text-anchor":"middle",class:"value"},qY={x:"50%",y:"62%","dominant-baseline":"middle","text-anchor":"middle",class:"subtitle"};function GY(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",YY,[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"},[jY,a.createElementVNode("text",UY,a.toDisplayString(r.formatedValue),1),a.createElementVNode("text",qY,a.toDisplayString(n.subtitle),1)],2))],4)])])}const KY=oe(WY,[["render",GY],["__scopeId","data-v-f4b6afdc"]]),Cce="",ZY={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 XY(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 JY=oe(ZY,[["render",XY],["__scopeId","data-v-91b540f7"]]),Sce="",QY={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>`}}},ej=["data-tippy-placement","data-tippy-content"];function tj(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,ej)),[[o,n.text]])}const $h=oe(QY,[["render",tj]]),Mce="",Y_=["sm","md","lg"],nj={components:{CdsIcon:$t,CdsTooltip:$h},props:{size:{type:String,default:"md",validator:t=>Y_.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"},variant:{type:String,default:"white"}},data(){return{predefinedSizes:Y_,innerTooltipText:this.tooltipText,internalIcon:this.icon,inputControlPanel:0}},computed:{predefinedSize(){return`cds-icon-button--${this.size}`},computedModifiers(){const t=this.disabled?"cds-icon-button--disabled":"",e=`cds-icon-button__container--${this.variant}`;return`${t} ${this.predefinedSize} ${e}`}},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))}}},ij={id:"cds-icon-button"};function sj(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-tooltip");return a.openBlock(),a.createElementBlock("span",ij,[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 rj=oe(nj,[["render",sj],["__scopeId","data-v-1e718423"]]);var Nh={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})(Nh,Nh.exports);const Ll=Nh.exports,j_=[{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=j_.map(t=>t.name),Fl=t=>{const e=j_.filter(n=>n.name===t)[0];return e?e.hex:""},Oce="",aj={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}`:""}}},oj={id:"inner-tabs"},lj={class:"inner-tabs__header-container"},cj={class:"inner-tabs__header"},dj=["onClick"],uj={class:"inner-tabs__content"};function hj(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",oj,[a.createElementVNode("div",lj,[a.createElementVNode("ul",cj,[(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,dj),a.createElementVNode("div",{class:a.normalizeClass(r.indicatorClass(o)),style:a.normalizeStyle(r.activeBorderStyle)},null,6)]))),128))])]),a.createElementVNode("div",uj,[(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 fj=oe(aj,[["render",hj]]),Dce="",pj={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}}},mj=["href","target"];function gj(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,mj)],2)}const su=oe(pj,[["render",gj]]),Ece="",_j={},vj=[(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 yj(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",null,vj)}const bj=oe(_j,[["render",yj],["__scopeId","data-v-59f3ef96"]]),Bce="",wj=["teal","green","blue","indigo","violet","pink","red","orange","amber"],kj={directives:{"on-click-outside":Ic.directive},components:{CdsIcon:$t,CdsButton:ba,CdsScrollable:_1},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=>wj.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)}}},xj={key:0,class:"cds-modal__backdrop"},Cj={key:0},Sj={class:"cds-modal__header"},Mj={key:1,class:"cds-modal__body"},Oj={key:1,class:"cds-modal__footer"};function Dj(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",xj,[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",Cj,[a.renderSlot(t.$slots,"header",{},()=>[a.createElementVNode("div",Sj,[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",Mj,[a.renderSlot(t.$slots,"default",{},void 0,!0)]))]),n.noFooter?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("footer",Oj,[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 Ej=oe(kj,[["render",Dj],["__scopeId","data-v-4a842748"]]);function zh(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function Tj(t){return(...e)=>!t(...e)}function Ij(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function U_(t,e,n,i){return e?t.filter(s=>Ij(i(s,n),e)).sort((s,r)=>i(s,n).length-i(r,n).length):t}function Bj(t){return t.filter(e=>!e.$isLabel)}function Ph(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 Aj(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=U_(o[n],t,e,s);return c.length?{[i]:o[i],[n]:c}:[]})}const q_=(...t)=>e=>t.reduce((n,i)=>i(n),e);var Vj={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 zh(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):U_(n,e,this.label,this.customLabel):n=this.groupValues?Ph(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(Tj(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 q_(Aj(e,n,this.groupValues,this.groupLabel,this.customLabel),Ph(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return q_(Ph(this.groupValues,this.groupLabel),Bj)(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(zh(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;const e=this.customLabel(t,this.label);return zh(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))}}},$j={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}}},G_={name:"vue-multiselect",mixins:[Vj,$j],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 Nj={ref:"tags",class:"multiselect__tags"},zj={class:"multiselect__tags-wrap"},Pj={class:"multiselect__spinner"},Lj={key:0},Fj={class:"multiselect__option"},Rj={class:"multiselect__option"},Hj=a.createTextVNode("No elements found. Consider changing the search query."),Wj={class:"multiselect__option"},Yj=a.createTextVNode("List is empty.");function jj(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",Nj,[a.renderSlot(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:r.visibleValues,isOpen:t.isOpen},()=>[a.withDirectives(a.createVNode("div",zj,[(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",Pj,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",Lj,[a.createVNode("span",Fj,[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",Rj,[a.renderSlot(t.$slots,"noResult",{search:t.search},()=>[Hj])])],512),[[a.vShow,n.showNoResults&&t.filteredOptions.length===0&&t.search&&!n.loading]]),a.withDirectives(a.createVNode("li",null,[a.createVNode("span",Wj,[a.renderSlot(t.$slots,"noOptions",{},()=>[Yj])])],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"])}G_.render=jj;const Ace="",Vce="",eo=0,to=1,ru=t=>t===void 0?{}:JSON.parse(JSON.stringify(t)),Lh={components:{Multiselect:G_,CdsDivider:Tc,CdsCheckbox:w0,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:v1()}},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)}}},K_=()=>{a.useCssVars(t=>({"7b3aebae":t.inputBackgroundColor}))},Z_=Lh.setup;Lh.setup=Z_?(t,e)=>(K_(),Z_(t,e)):K_;const Uj=Lh,qj=["data-cds-multiselect-identifier"],Gj={key:0},Kj={key:1,class:"clustered-multiselect__label"},Zj=["for"],Xj={key:0,class:"label__required-indicator"},Jj={key:1,class:"cds-multiselect__grouped-divider"},Qj={key:0,class:"cds-multiselect__group-label"},eU={key:1,class:"cds-multiselect__option"},tU={class:"option__checkbox"},nU=["id","onUpdate:modelValue","name"],iU=["id","for","onClick"],sU={key:0,class:"multiselect__single"},rU={key:1},aU={key:0,class:"clustered-multiselect__error-message"};function oU(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",Gj,[a.renderSlot(t.$slots,"label")])):(a.openBlock(),a.createElementBlock("label",Kj,[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",Xj," * ")):a.createCommentVNode("",!0)],8,Zj)]))]),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",Jj,[a.createVNode(d,{dimmed:""})]))],512),[[a.vShow,!s.queryString&&n.options.length]])]),option:a.withCtx(({option:f})=>[f.$isLabel?(a.openBlock(),a.createElementBlock("div",Qj,[a.createVNode(d,{text:f.$groupLabel,inline:"",dimmed:""},null,8,["text"])])):(a.openBlock(),a.createElementBlock("div",eU,[a.createElementVNode("div",tU,[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,nU),[[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,iU)]),a.createTextVNode(" "+a.toDisplayString(f[n.optionsField]),1)]))]),selection:a.withCtx(({values:f,isOpen:m})=>[f.length&&!m?(a.openBlock(),a.createElementBlock("span",sU,a.toDisplayString(r.selectedFancyMessage(f.length)),1)):(a.openBlock(),a.createElementBlock("span",rU))]),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",aU,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)],8,qj)}const lU=oe(Uj,[["render",oU]]),$ce="",cU={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}`:""}}},dU={id:"nav-bar"};function uU(t,e,n,i,s,r){const o=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",dU,[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 hU=oe(cU,[["render",uU]]);var fU=Object.defineProperty,pU=(t,e,n)=>e in t?fU(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,X_=(t,e,n)=>(pU(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},J_=["+","-"],Q_=["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 ev(t){return t=t?t.toString():"",t.replace(/\D+/g,"")||"0"}function mU(t,e){return t.replace(/(\d)(?=(?:\d{3})+\b)/gm,`$1${e}`)}function gU(t,e,n){return e?t+n+e:t}function _U(t,e){return J_.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 vU(t){for(const e of Q_)if(!_U(t[e],e))return!1;return!0}function tv(t){for(const e of Q_){t[e]=t[e].replace(/\d+/g,"");for(const n of J_)t[e]=t[e].replaceAll(n,"")}return t}function nv(t){const e=t.length,n=t.indexOf(".");return e-(n+1)}function iv(t){return t.replace(/^(-?)0+(?!\.)(.+)/,"$1$2")}function sv(t){return/^-?[\d]+$/g.test(t)}function rv(t){return/^-?[\d]+(\.[\d]+)$/g.test(t)}function av(t,e,n){return e>t.length-1?t:t.substring(0,e)+n+t.substring(e+1)}function ov(t,e){const n=e-nv(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 av(i,r,c);i=av(i,r,"0")}}return`1${i}`}return i}function lv(t,e){const n=()=>{t.setSelectionRange(e,e)};t===document.activeElement&&(n(),setTimeout(n,1))}function cv(t){return new Event(t,{bubbles:!0,cancelable:!1})}function Qe({debug:t=!1},...e){t&&console.log(...e)}class lu{constructor(e){X_(this,"number",0n),X_(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?ov(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=iv(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=iv(e),sv(e))this.number=BigInt(e);else if(rv(e))this.decimal=nv(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 yU(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&&sv(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!=="."&&rv(s)&&(s=ov(s,0),Qe(e,"utils format() - !opt.precision && isValidFloat()",s));const r=ev(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=mU(d,e.thousands);const m=e.prefix+gU(d,h,e.decimal)+e.suffix;return Qe(e,"utils format() - output",m),m}function dv(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=ev(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 Fh=(t,e,n)=>{if(Qe(e,"directive setValue() - caller",n),!vU(e)){Qe(e,"directive setValue() - validateRestrictedOptions() return false. Stopping here...",t.value);return}let i=t.value.length-(t.selectionEnd||0);t.value=yU(t.value,e,n),i=Math.max(i,e.suffix.length),i=t.value.length-i,i=Math.max(i,e.prefix.length),lv(t,i),t.dispatchEvent(cv("change"))},uv=(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&&dv(n.value,e,"directive onkeydown allowBlank")===0&&(Qe(e,'directive onkeydown() - set el.value = ""',n.value),n.value="",n.dispatchEvent(cv("change"))),Qe(e,"directive onkeydown() - e.key",t.key),t.key==="+"){Qe(e,"directive onkeydown() - unformat el.value",n.value);let r=dv(n.value,e,"directive onkeydown +");typeof r=="string"&&(r=parseFloat(r)),r<0&&(n.value=String(r*-1))}},hv=(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)),Fh(n,e,"directive oninput")},fv=(t,e)=>{const n=t.currentTarget;Qe(e,"directive onFocus()",n.value),e.focusOnRight&&lv(n,n.value.length-e.suffix.length)},bU={mounted(t,e){if(!e.value)return;const n=tv({...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=>{uv(i,n)},t.oninput=i=>{hv(i,n)},t.onfocus=i=>{fv(i,n)},Qe(n,"directive mounted() - el.value",t.value),Fh(t,n,"directive mounted")},updated(t,e){if(!e.value)return;const n=tv({...au,...e.value});t.onkeydown=i=>{uv(i,n)},t.oninput=i=>{hv(i,n)},t.onfocus=i=>{fv(i,n)},Qe(n,"directive updated() - el.value",t.value),Qe(n,"directive updated() - opt",n),Fh(t,n,"directive updated")},beforeUnmount(t){t.onkeydown=null,t.oninput=null,t.onfocus=null}},wU={"#":{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 Rh(t){this.masked=this.unmasked=t||""}function pv(){return new CustomEvent("input",{bubbles:!0,cancelable:!0,detail:{facade:!0}})}function Hh(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 mv(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),kU(t,r,o),c!==n.value&&n.dispatchEvent(pv())}function kU(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=vv(f,c);if(s&&typeof c.formatter=="function"){const g=c.formatter(m,s);if(typeof g=="string")m=vv(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(pv())}}let Wh=wU,gv=!1;try{"a".localeCompare("b","i")}catch(t){gv=t.name==="RangeError"}function xU(t){t&&(Wh=t)}function CU(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=Yh(t,i({mask:d})),f=c.unmasked.length;return h.unmasked.length>f?h:c};if(!n.length)return new Rh;const r=n.shift();let o=Yh(t,i({mask:r}));for(;n.length;){const c=n.shift();o=s(o,c)}return o}function Yh(t,e){var n,i;let{mask:s="",tokens:r,prefill:o=!1,short:c=!1}=e;r=r?Object.assign({},Wh,r):Wh;let d=new Rh,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(_v.bind(null,k));T&&(d.unmasked+=T,d.masked+=g+T,m+=O.pipe.length*2-1,g=""),f++}else _v(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 _v(t,e){return gv?(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 vv(t,e){return t=(t||"").toString(),e=Hh(e),e.mask?Array.isArray(e.mask)?CU(t,Object.assign({},e,{masks:e.mask})):Yh(t,e):new Rh(t)}const no=qr,Rl={beforeMount:(t,{value:e,modifiers:n},i)=>{t=cu(t);const s=Hh(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&&mv(r,t)},s=r=>{r.target===t&&(r.type==="compositionend"?(t[no].isComposing=!1,mv(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=Hh(e,i),du(t,s,{force:!0})):du(t,s)},unmounted:t=>{cu(t)[no].cleanup()}},SU=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n},MU={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)}}},OU=["value"];function DU(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,OU)),[[o,r.config]])}const yv=SU(MU,[["render",DU]]),EU={install(t,e={}){e.tokens&&xU(e.tokens),t.component(yv.name,yv),t.directive(e.name||"facade",Rl)}};typeof window<"u"&&window.Vue&&window.Vue.use(EU);const Nce="",TU={directives:{money:bU,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)}}},IU={key:0},BU={class:"label__content",for:"cds-text-input"},AU={key:0,class:"label__required-indicator"},VU=["placeholder","disabled"],$U=["placeholder","disabled"],NU={class:"text-input__icon-container"},zU={key:0,class:"text-input__error-message"};function PU(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",IU,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",{key:1,class:a.normalizeClass(r.labelDynamicClass)},[a.createElementVNode("div",BU,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",AU," * ")):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,VU)),[[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,$U)),[[a.vModelText,s.internalValue]]),a.createElementVNode("div",NU,[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",zU,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const LU=oe(TU,[["render",PU],["__scopeId","data-v-3acacd68"]]),zce="",FU={},RU={class:"page-container__container"};function HU(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",RU,[a.renderSlot(t.$slots,"default",{},void 0,!0)])}const WU=oe(FU,[["render",HU],["__scopeId","data-v-2f5908a0"]]),Pce="",YU={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])}}},jU={class:"page-header__title"},UU={key:0,class:"d-flex"},qU={class:"page-header__subtitle"},GU={key:1,class:"page-header__subtitle"},KU={class:"page-header__aside-slot"};function ZU(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",jU,a.toDisplayString(n.title),1),s.splitedSubtitle.length>0?(a.openBlock(),a.createElementBlock("div",UU,[a.createElementVNode("span",qU,[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",GU,a.toDisplayString(n.subtitle),1))]),a.createElementVNode("div",KU,[a.renderSlot(t.$slots,"aside")])],2)}const XU=oe(YU,[["render",ZU]]);class Wn{constructor(e,n,i,s=null){this.index=e,this.value=n,this.selected=i,this.text=s||n}}const Lce="",JU={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?Eg("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}}}},QU=["onClick"],eq={key:3};function tq(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",eq,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,QU))),128))],2)}const nq=oe(JU,[["render",tq],["__scopeId","data-v-69f01ddb"]]),Fce="",iq={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"}}},sq=t=>(a.pushScopeId("data-v-e1c5a182"),t=t(),a.popScopeId(),t),rq={class:"panel-card__header"},aq={class:"panel-card__title"},oq=sq(()=>a.createElementVNode("br",null,null,-1)),lq={class:"panel-card__subtitle"};function cq(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",rq,[a.createElementVNode("div",null,[a.createElementVNode("span",aq,a.toDisplayString(n.title),1),oq,a.createElementVNode("span",lq,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 dq=oe(iq,[["render",cq],["__scopeId","data-v-e1c5a182"]]),Rce="",uq={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()}}},hq={class:"pin-input__container"},fq=["id","onUpdate:modelValue","type","onKeydown","onKeypress","onInput","onFocus"];function pq(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",hq,[(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,fq)),[[a.vModelDynamic,s.innerValue[o-1]]])),128))])}const mq=oe(uq,[["render",pq],["__scopeId","data-v-d11b9fb6"]]),Hce="",jh={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"}}},bv=()=>{a.useCssVars(t=>({bf5feb56:t.textDirection}))},wv=jh.setup;jh.setup=wv?(t,e)=>(bv(),wv(t,e)):bv;const gq=jh,_q={class:"progress-bar"},vq={class:"progress-bar__content"};function yq(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",_q,[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",vq,[a.createElementVNode("div",{class:a.normalizeClass(`progress-bar__indicator--${n.variant}`),style:a.normalizeStyle(r.progressIndicatorStyle)},null,6)])])}const bq=oe(gq,[["render",yq],["__scopeId","data-v-d3a3d8d6"]]),Wce="",wq={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}},kq=["stroke","stroke-width"],xq=["stroke-dasharray","stroke-width"];function Cq(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,kq),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
|
|
42
|
-
a 15.9155 15.9155 0 0 1 0 -31.831`},null,14,xq),n.noLabel?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("text",{key:0,x:"18",y:"21.7",class:a.normalizeClass(r.labelClass)},a.toDisplayString(r.label),3))],2)}const Sq=oe(wq,[["render",Cq]]),Yce="",Uh={props:{modelValue:{default:null,required:!0},value:{default:null,required:!0},variant:{type:String,default:"green"},label:{type:String,default:"radio content"},disabled:{type:Boolean,default:!1}},data(){return{uniqueId:Math.random()}},computed:{isChecked(){return this.modelValue===this.value},cursorType(){return this.disabled?"default":"pointer"}}},kv=()=>{a.useCssVars(t=>({"3208a1c7":t.cursorType}))},xv=Uh.setup;Uh.setup=xv?(t,e)=>(kv(),xv(t,e)):kv;const Mq=Uh,Oq={class:"cds-radio__container"},Dq=["id","value","disabled","name","checked"],Eq=["for"],Tq=["disabled"];function Iq(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",Oq,[a.createElementVNode("input",{id:`${s.uniqueId}-${n.value}`,type:"radio",class:a.normalizeClass(["cds-radio",`cds-radio--${n.variant}`]),value:n.value,disabled:n.disabled,name:t.$attrs.name,checked:r.isChecked,onChange:e[0]||(e[0]=o=>t.$emit("update:modelValue",o.target.value))},null,42,Dq),a.createElementVNode("label",{class:"cds-radio__label",for:`${s.uniqueId}-${n.value}`},[a.renderSlot(t.$slots,"default",{},()=>[a.createElementVNode("span",{class:"cds-radio__label-text",disabled:n.disabled},a.toDisplayString(n.label),9,Tq)])],8,Eq)])}const Bq=oe(Mq,[["render",Iq]]),jce="",Aq={props:{modelValue:{default:null,required:!0},options:{type:Array,default:()=>[],required:!0},disabled:{type:Boolean,default:!1,required:!1},inline:{type:Boolean,default:!1,description:"When true, the radio buttons will be displayed in a row.",required:!1}},data(){return{selected:this.modelValue}},watch:{selected(t){this.$emit("update:modelValue",t)},modelValue:{handler(t){this.selected=t},immediate:!0}}},Vq={id:"radioButton"},$q=["disabled","for"],Nq=["id","value","disabled"],zq=["for"];function Pq(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",Vq,[a.createElementVNode("div",{class:a.normalizeClass({"button-group":n.inline})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.options,(o,c)=>(a.openBlock(),a.createElementBlock("div",{key:o.value,class:a.normalizeClass({"radio-button__container--vertical":n.inline&&c>0})},[a.createElementVNode("label",{class:"radio-button",disabled:o.disabled||n.disabled,for:o.value},[a.withDirectives(a.createElementVNode("input",{id:o.value,"onUpdate:modelValue":e[0]||(e[0]=d=>s.selected=d),type:"radio",value:o.value,disabled:o.disabled||n.disabled},null,8,Nq),[[a.vModelRadio,s.selected]]),a.createElementVNode("label",{class:"radio-button__content",for:o.value},a.toDisplayString(o.text),9,zq)],8,$q)],2))),128))],2)])}const Lq=oe(Aq,[["render",Pq]]),Uce="",Fq={components:{CdsIcon:$t,CdsLinkButton:F_},props:{modelValue:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:"Busque..."},fluid:{type:Boolean,default:!1,required:!1}},data(){return{internalValue:"",isBeingFocused:!1}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},stepperInputDynamicClass(){return(this.fluid?"search-input--fluid":"search-input").concat(" ",this.disabled?"search-input--disabled":"")},inputClass(){return this.fluid?"search-input__field--fluid":"search-input__field"}},methods:{handleInput(t){this.$emit("update:modelValue",t.target.value)}}},Rq=["value","placeholder","disabled"];function Hq(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",{class:a.normalizeClass(r.stepperInputDynamicClass)},[a.createVNode(o,{name:"search-outline",class:"search-input__search-icon"}),a.createElementVNode("input",{id:"cds-search-input",value:n.modelValue,placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),onFocus:e[0]||(e[0]=c=>s.isBeingFocused=!0),onBlur:e[1]||(e[1]=c=>s.isBeingFocused=!1),onInput:e[2]||(e[2]=(...c)=>r.handleInput&&r.handleInput(...c))},null,42,Rq),n.modelValue?(a.openBlock(),a.createBlock(o,{key:0,name:"x-outline",width:"18",height:"18",class:"search-input__close-icon",onClick:e[3]||(e[3]=c=>s.internalValue="")})):a.createCommentVNode("",!0)],2)])}const Wq=oe(Fq,[["render",Hq],["__scopeId","data-v-06cf65a5"]]),qce="",Yq={components:{CdsIcon:$t,CdsTooltip:$h},props:{segments:{type:Array,default:()=>[]},withIcon:{type:Boolean,default:!1},segmentsTooltipText:{type:Array,default:()=>[]}},data(){return{activeSegment:""}},mounted(){this.activeSegment=this.segments[0]},methods:{handleClick(t,e){this.activeSegment=t,this.$emit("click",this.activeSegment,e)}}},jq={class:"segment-control"},Uq=["onClick"],qq={key:1};function Gq(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-tooltip");return a.openBlock(),a.createElementBlock("div",jq,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.segments,(d,h)=>(a.openBlock(),a.createElementBlock("button",{key:h,class:a.normalizeClass(["segment-control__button",{"segment-control__button--active":d===s.activeSegment,"segment-control__button--inactive":d!==s.activeSegment}]),onClick:f=>r.handleClick(d,h)},[n.withIcon?(a.openBlock(),a.createBlock(c,{key:0,text:n.segmentsTooltipText[h]},{default:a.withCtx(()=>[a.createVNode(o,{height:"20",width:"20",name:d},null,8,["name"])]),_:2},1032,["text"])):(a.openBlock(),a.createElementBlock("span",qq,a.toDisplayString(d),1))],10,Uq))),128))])}const Kq=oe(Yq,[["render",Gq]]);function Cv(t=""){const e="\xC0\xC1\xC2\xC3\xC4\xC5\xE0\xE1\xE2\xE3\xE4\xE5\xD2\xD3\xD4\xD5\xD5\xD6\xD8\xF2\xF3\xF4\xF5\xF6\xF8\xC8\xC9\xCA\xCB\xE8\xE9\xEA\xEB\xF0\xC7\xE7\xD0\xCC\xCD\xCE\xCF\xEC\xED\xEE\xEF\xD9\xDA\xDB\xDC\xF9\xFA\xFB\xFC\xD1\xF1\u0160\u0161\u0178\xFF\xFD\u017D\u017E",n="AAAAAAaaaaaaOOOOOOOooooooEEEEeeeeeCcDIIIIiiiiUUUUuuuuNnSsYyyZz",i=t.length;let s=t.split(""),r;for(let o=0;o<i;o+=1)r=e.indexOf(t[o]),r!==-1&&(s[o]=n[r]);return s=s.join(""),s=s.split(".").join(""),s=s.split("-").join(""),s=s.split("/").join(""),s}const Gce="",Zq={components:{CdsIcon:$t},props:{label:{type:String,default:"Label",required:!0},placeholder:{type:String,default:"Selecione...",required:!1},options:{type:Array,default:()=>[],required:!0},modelValue:{type:[Array,Object],required:!0},state:{type:String,default:"default"},required:{type:Boolean,default:!1,required:!1},errorMessage:{type:String,default:"Valor inv\xE1lido"},searchable:{type:Boolean,default:!1,required:!1},width:{type:String,default:"default",required:!1},fluid:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},optionsField:{type:String,default:"value",required:!1}},data(){return{currentPos:0,active:!1,id:null,allowSearch:!1,localOptions:[],pristineOptions:[],localValue:"",selectElement:"",direction:"down",uniqueKey:v1()}},computed:{errorState(){return this.state==="invalid"},inputClass(){let t="";return this.active&&this.direction==="down"?t="select__input--opened-down":this.active&&this.direction==="up"?t="select__input--opened-up":t="select__input--closed",this.disabled?t+=" select__input--disabled":this.state==="valid"?t+=" select__input--valid":this.state==="invalid"&&(t+=" select__input--invalid"),t+=` select__input--${t8.find(e=>e===this.width)}`,t+=this.fluid?" select__input--fluid":" select__input--fit",t+=this.searchable?" select__input--searchable":"",t}},watch:{modelValue:{handler(t,e){t!==e&&(this.localValue=t)},immediate:!0},options:{handler(t,e){t!==e&&(this.localOptions=t,this.pristineOptions=t)},immediate:!0},searchable:{handler(t,e){t!==e&&(this.allowSearch=t)},immediate:!0},localValue:{handler(t){this.localOptions.filter(n=>JSON.stringify(n)===JSON.stringify(t)).length!==0&&this.$emit("update:modelValue",t)},deep:!0}},mounted(){this.id=`cds-select-${this.uniqueKey}`,this.selectElement=this.$refs["cds-select"]},methods:{filterOptions(){const t=Cv(this.localValue[this.optionsField]),e=new RegExp(t,"i");this.localOptions=this.options.filter(n=>Cv(n[this.optionsField]).search(e)>=0)},activeSelection(){this.disabled||this.$nextTick().then(()=>{const t=this.localOptions[this.currentPos];this.$refs[`${t[this.optionsField]}-${this.currentPos}`][0].classList.add("highlight")})},activateSelectionOnEnter(){this.disabled||(this.active=!this.active,typeof this.localOptions[this.currentPos]>"u"?this.localOptions=this.pristineOptions:this.localValue=m1(this.localOptions[this.currentPos]),this.$refs["select-input"].blur())},activateSelectionOnClick(){let t=this.selectElement.getBoundingClientRect();t.top+t.height+286<window.innerHeight?this.direction="down":this.direction="up",!this.disabled&&(this.active=!this.active)},hide(){this.localOptions=this.pristineOptions,this.active=!1},selectItem(){this.localValue=m1(this.localOptions[this.currentPos])},getLiInDOM(t){const e=this.localOptions[t];return this.$refs[`${e[this.optionsField]}-${t}`][0]},handleOptionVisibility(t,e,n){const i=t.getBoundingClientRect(),s=this.$refs["select-options"],r=s.getBoundingClientRect();n==="up"&&i.top<=r.top&&(s.scrollTop+=e),n==="down"&&i.top>=r.bottom&&(s.scrollTop+=e)},highlightOnArrowDown(){if(this.currentPos===this.localOptions.length-1)return;this.currentPos+=1;const t=this.getLiInDOM(this.currentPos),e=this.getLiInDOM(this.currentPos-1);t.classList.add("highlight"),e.classList.remove("highlight"),this.handleOptionVisibility(t,37,"down")},highlightOnArrowUp(){if(this.currentPos===0)return;const t=this.getLiInDOM(this.currentPos),e=this.getLiInDOM(this.currentPos-1);t.classList.remove("highlight"),e.classList.add("highlight"),this.handleOptionVisibility(t,-37,"up"),this.currentPos-=1},highlightOnMouseOver(t){this.currentPos=t,this.getLiInDOM(this.currentPos).classList.add("highlight")},unhighlightOnMouseOut(){this.getLiInDOM(this.currentPos).classList.remove("highlight")}}},Xq=t=>(a.pushScopeId("data-v-c80f4297"),t=t(),a.popScopeId(),t),Jq={ref:"cds-select",class:"select"},Qq={class:"select__label"},eG={class:"label__content",for:"cds-select"},tG={key:0,class:"label__required-indicator"},nG=["id","onkeypress","placeholder","disabled","readonly"],iG={key:0,class:"option__container"},sG=["onMouseover"],rG={key:1,class:"option__container"},aG=[Xq(()=>a.createElementVNode("li",{class:"option__text--muted"}," Nenhuma op\xE7\xE3o encontrada ",-1))],oG={key:0,class:"select__error-message"};function lG(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveDirective("cdstip");return a.openBlock(),a.createElementBlock("div",Jq,[a.createElementVNode("label",Qq,[a.createElementVNode("div",eG,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",tG," * ")):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"])),[[c,n.tooltip]]):a.createCommentVNode("",!0)])]),a.createElementVNode("div",{class:a.normalizeClass(["select__container",n.fluid?"select__container--fluid":"select__container--fit"])},[a.withDirectives(a.createElementVNode("input",{id:t.$attrs.id||s.id,ref:"select-input","onUpdate:modelValue":e[0]||(e[0]=d=>s.localValue[n.optionsField]=d),type:"text",autocomplete:"off",onkeypress:`return ${s.allowSearch};`,class:a.normalizeClass(r.inputClass),placeholder:n.placeholder,disabled:n.disabled,readonly:!n.searchable,onKeydown:[e[1]||(e[1]=a.withKeys(a.withModifiers((...d)=>r.activateSelectionOnEnter&&r.activateSelectionOnEnter(...d),["prevent"]),["enter"])),e[2]||(e[2]=a.withKeys(a.withModifiers((...d)=>r.highlightOnArrowDown&&r.highlightOnArrowDown(...d),["prevent"]),["arrow-down"])),e[3]||(e[3]=a.withKeys(a.withModifiers((...d)=>r.highlightOnArrowUp&&r.highlightOnArrowUp(...d),["prevent"]),["arrow-up"]))],onClick:e[4]||(e[4]=(...d)=>r.activateSelectionOnClick&&r.activateSelectionOnClick(...d)),onInput:e[5]||(e[5]=(...d)=>r.filterOptions&&r.filterOptions(...d)),onFocus:e[6]||(e[6]=(...d)=>r.activeSelection&&r.activeSelection(...d)),onBlur:e[7]||(e[7]=(...d)=>r.hide&&r.hide(...d))},null,42,nG),[[a.vModelText,s.localValue[n.optionsField]]]),a.withDirectives(a.createElementVNode("div",{ref:"select-options",class:a.normalizeClass(["select__options",{"select__options--thin":n.width==="thin","select__options--default":n.width==="default","select__options--wide":n.width==="wide","select__options--fluid":n.fluid,"select__options--down":s.direction==="down","select__options--up":s.direction==="up"}])},[s.localOptions.length>0?(a.openBlock(),a.createElementBlock("ul",iG,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.localOptions,(d,h)=>(a.openBlock(),a.createElementBlock("li",{key:h,ref_for:!0,ref:`${d[n.optionsField]}-${h}`,class:"option__text",onMousedown:e[8]||(e[8]=(...f)=>r.selectItem&&r.selectItem(...f)),onMouseover:f=>r.highlightOnMouseOver(h),onMouseout:e[9]||(e[9]=f=>r.unhighlightOnMouseOut())},a.toDisplayString(d[n.optionsField]),41,sG))),128))])):(a.openBlock(),a.createElementBlock("ul",rG,aG))],2),[[a.vShow,s.active]]),a.createElementVNode("span",{class:a.normalizeClass(s.active?"select__chevron--opened":"select__chevron--closed")},null,2)],2),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",oG,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)],512)}const cG=oe(Zq,[["render",lG],["__scopeId","data-v-c80f4297"]]),Zce="",dG={components:{CdsIcon:$t,CdsAvatar:w1},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},showLogout:{type:Boolean,default:!0},userName:{type:String,default:""},userRole:{type:String,default:""},userPicture:{type:String,default:null}},data(){return{internalActiveItem:{},colorOptions:jr}},watch:{items:{handler(t){const e=t.filter(n=>n.name===this.activeItem.name);[this.internalActiveItem]=e.length?e:t},immediate:!0},activeItem:{handler(t){this.internalActiveItem=t},immediate:!0}},mounted(){this.internalActiveItem=this.activeItem},methods:{colorHexCode:Fl,handleClick(t,e){this.internalActiveItem=e,this.$emit("sidebar-click",this.internalActiveItem)},isActive(t){let e=!1,n=!1;return!!t.items&&t.items.length>0&&(e=t.items.some(i=>Ll(i,this.internalActiveItem))),n=Ll(this.internalActiveItem,t),e||n},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}}},uG={class:"side-bar"},hG={class:"side-bar__logo"},fG=["onClick"],pG={key:0,class:"side-bar__subitem-container"},mG={class:"side-bar__subitems"},gG=["onClick"],_G=["href"],vG={class:"side-bar__footer"},yG={class:"side-bar__avatar"},bG=a.createElementVNode("span",null,"Sair",-1);function wG(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("router-link"),d=a.resolveComponent("cds-avatar");return a.openBlock(),a.createElementBlock("div",uG,[a.createElementVNode("div",null,[a.createElementVNode("div",hG,[a.renderSlot(t.$slots,"logo")]),a.createElementVNode("ul",{class:a.normalizeClass({"side-bar__container":n.items.length>=1})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.items,(h,f)=>(a.openBlock(),a.createElementBlock("li",{key:`${f}-${h.name}-item`,role:"presentation"},[a.createElementVNode("div",{class:a.normalizeClass(["side-bar__item-container",r.isActive(h)?"side-bar__item-container--active":"side-bar__item-container--inactive"])},[!!h.items||h.type==="link"?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["side-bar__item",r.isActive(h)?"side-bar__item--active":"side-bar__item--inactive"]),onClick:m=>r.handleClick(m,h)},[a.createElementVNode("div",null,[a.createVNode(o,{name:h.icon,width:"20",height:"20"},null,8,["name"]),a.createElementVNode("span",null,a.toDisplayString(h.label),1)]),!!h.items&&h.items.length>0?(a.openBlock(),a.createBlock(o,{key:0,name:"caret-down-outline",class:a.normalizeClass({item__caret:r.isActive(h)}),width:"16",height:"16"},null,8,["class"])):a.createCommentVNode("",!0)],10,fG)):(a.openBlock(),a.createBlock(c,{key:1,to:r.routerPushTo(h),class:a.normalizeClass(["side-bar__item",r.isActive(h)?"side-bar__item--active":"side-bar__item--inactive"]),onClick:m=>r.handleClick(m,h)},{default:a.withCtx(()=>[a.createElementVNode("div",null,[a.createVNode(o,{name:h.icon,width:"20",height:"20"},null,8,["name"]),a.createElementVNode("span",null,a.toDisplayString(h.label),1)]),!!h.items&&h.items.length>0?(a.openBlock(),a.createBlock(o,{key:0,name:"caret-down-outline",class:a.normalizeClass({item__caret:r.isActive(h)}),width:"16",height:"16"},null,8,["class"])):a.createCommentVNode("",!0)]),_:2},1032,["to","class","onClick"]))],2),a.createVNode(a.Transition,null,{default:a.withCtx(()=>[!!h.items&&h.items.length>0&&r.isActive(h)?(a.openBlock(),a.createElementBlock("div",pG,[a.createElementVNode("div",mG,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.items,(m,g)=>(a.openBlock(),a.createElementBlock("div",{key:`${g}-${m.name}-item`,class:a.normalizeClass(["side-bar__subitem",r.isActive(m)?"side-bar__subitem--active":"side-bar__subitem--inactive"]),onClick:v=>r.handleClick(v,m)},[!!m.type&&m.type==="external"?(a.openBlock(),a.createElementBlock("a",{key:0,class:"side-bar__subitem-link",target:"_blank",rel:"noopener noreferrer",href:m.route.path},[a.createTextVNode(a.toDisplayString(m.label)+" ",1),a.createVNode(o,{height:"16",width:"16",name:"open-in-new-tab-outline"})],8,_G)):(a.openBlock(),a.createBlock(c,{key:1,class:"side-bar__subitem-link",to:r.routerPushTo(m)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(m.label),1)]),_:2},1032,["to"]))],10,gG))),128))])])):a.createCommentVNode("",!0)]),_:2},1024)]))),128))],2)]),a.createElementVNode("div",vG,[a.createElementVNode("div",yG,[a.createVNode(d,{src:n.userPicture,name:n.userName,variant:"white",size:"lg"},null,8,["src","name"]),a.createElementVNode("div",null,[a.createElementVNode("p",null,a.toDisplayString(n.userName),1),a.createElementVNode("p",null,a.toDisplayString(n.userRole),1)])]),a.createElementVNode("ul",null,[n.showLogout?(a.openBlock(),a.createElementBlock("li",{key:0,class:"side-bar__logout-button",onClick:e[0]||(e[0]=h=>t.$emit("logout",!0))},[a.createVNode(o,{name:"logout-outline",width:"20",height:"20"}),bG])):a.createCommentVNode("",!0)])])])}const kG=oe(dG,[["render",wG]]),Xce="",qh={components:{CdsIcon:$t,CdsBox:bl,CdsClickable:Ls},props:{title:{type:String,default:null},modelValue:{type:Boolean,default:!1,required:!0},withOverlay:{type:Boolean,default:!1},size:{type:String,default:"md"},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOnEsc:{type:Boolean,default:!1}},data(){return{sassColorVariables:Gs}},computed:{overlayColor(){const t=this.withOverlay?this.sassColorVariables.n900:"transparent";return`rgba(${this.hexToRgb(t)}, 0.4)`},sideSheetWidth(){let t="328px";switch(this.size){case"xl":t="840px";break;case"lg":t="700px";break;case"md":t="500px";break;default:t="340px";break}return t}},watch:{modelValue(t){if(!t){this.dettachKeyupEvent();return}this.attachKeyupEvent()}},created(){this.attachKeyupEvent()},beforeUnmount(){this.dettachKeyupEvent()},methods:{hexToRgb:k0,shouldCloseOnBackdrop(){this.noCloseOnBackdrop||this.$emit("update:modelValue",!this.modelValue)},shouldCloseOnEsc(){this.noCloseOnEsc||this.$emit("update:modelValue",!this.modelValue)},keyupListener(t){t.keyCode===e8.ESC&&this.shouldCloseOnEsc()},attachKeyupEvent(){window.addEventListener("keyup",this.keyupListener)},dettachKeyupEvent(){window.removeEventListener("keyup",this.keyupListener)}}},Sv=()=>{a.useCssVars(t=>({11828368:t.overlayColor,"9d05acda":t.sideSheetWidth}))},Mv=qh.setup;qh.setup=Mv?(t,e)=>(Sv(),Mv(t,e)):Sv;const xG=qh,CG={class:"side-sheet__header"};function SG(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-clickable"),d=a.resolveComponent("cds-box");return n.modelValue?(a.openBlock(),a.createElementBlock("div",{key:0,class:"side-sheet__overlay",tabindex:"0",onClick:e[3]||(e[3]=(...h)=>r.shouldCloseOnBackdrop&&r.shouldCloseOnBackdrop(...h))},[a.createVNode(d,{padding:"5",class:"side-sheet__container",elevated:"",fluid:"",onClick:e[2]||(e[2]=a.withModifiers(()=>{},["stop"]))},{default:a.withCtx(()=>[a.createElementVNode("header",null,[a.renderSlot(t.$slots,"header",{},()=>[a.createElementVNode("div",CG,[a.createElementVNode("h3",null,a.toDisplayString(n.title),1),a.createElementVNode("div",{class:"side-sheet__close-icon",onClick:e[1]||(e[1]=(...h)=>t.closeHandle&&t.closeHandle(...h))},[a.createVNode(c,{clickable:""},{default:a.withCtx(()=>[a.createVNode(o,{height:"20",width:"20",name:"x-outline",onClick:e[0]||(e[0]=a.withModifiers(h=>t.$emit("update:modelValue",!n.modelValue),["stop"]))})]),_:1})])])],!0)]),a.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3})])):a.createCommentVNode("",!0)}const MG=oe(xG,[["render",SG],["__scopeId","data-v-54ccf7a0"]]),Jce="",Gh={props:{width:{type:String,default:"20"},height:{type:String,default:"16"},fluid:{type:Boolean,default:!1},shape:{type:String,default:"square",validate:t=>["circle","square"].includes(t)}},computed:{computedStyle(){return this.shape==="circle"?{"--width":`${this.width}px`,"--height":`${this.width}px`}:this.fluid?{"--width":"100%","--height":this.height!=="16"?`${this.height}px`:"100%"}:{"--width":`${this.width}px`,"--height":`${this.height}px`}},resolveShape(){return this.shape==="circle"?"50%":"6px"}}},Ov=()=>{a.useCssVars(t=>({"02fe74e9":t.resolveShape}))},Dv=Gh.setup;Gh.setup=Dv?(t,e)=>(Ov(),Dv(t,e)):Ov;const OG=Gh;function DG(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",{class:"skeleton__container",style:a.normalizeStyle(r.computedStyle)},null,4)}const EG=oe(OG,[["render",DG],["__scopeId","data-v-5298dc58"]]),Qce="",TG={props:{width:{type:String,required:!1},height:{type:String,required:!1,default:"16"}},computed:{computedStyle(){return{"--width":`${this.width}px`,"--height":`${this.height}px`}}}};function IG(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",{class:"skeleton__container",style:a.normalizeStyle(r.computedStyle)},null,4)}const BG=oe(TG,[["render",IG],["__scopeId","data-v-d39e7029"]]),ede="",AG={components:{CdsIcon:$t},props:{steps:{type:Array,default:()=>[],required:!0,description:`Um array com objetos com as propriedades 'label', 'inProcessing',
|
|
42
|
+
a 15.9155 15.9155 0 0 1 0 -31.831`},null,14,xq),n.noLabel?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("text",{key:0,x:"18",y:"21.7",class:a.normalizeClass(r.labelClass)},a.toDisplayString(r.label),3))],2)}const Sq=oe(wq,[["render",Cq]]),Yce="",Uh={props:{modelValue:{default:null,required:!0},value:{default:null,required:!0},variant:{type:String,default:"green"},label:{type:String,default:"radio content"},disabled:{type:Boolean,default:!1}},data(){return{uniqueId:Math.random()}},computed:{isChecked(){return this.modelValue===this.value},cursorType(){return this.disabled?"default":"pointer"}}},kv=()=>{a.useCssVars(t=>({"3208a1c7":t.cursorType}))},xv=Uh.setup;Uh.setup=xv?(t,e)=>(kv(),xv(t,e)):kv;const Mq=Uh,Oq={class:"cds-radio__container"},Dq=["id","value","disabled","name","checked"],Eq=["for"],Tq=["disabled"];function Iq(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",Oq,[a.createElementVNode("input",{id:`${s.uniqueId}-${n.value}`,type:"radio",class:a.normalizeClass(["cds-radio",`cds-radio--${n.variant}`]),value:n.value,disabled:n.disabled,name:t.$attrs.name,checked:r.isChecked,onChange:e[0]||(e[0]=o=>t.$emit("update:modelValue",o.target.value))},null,42,Dq),a.createElementVNode("label",{class:"cds-radio__label",for:`${s.uniqueId}-${n.value}`},[a.renderSlot(t.$slots,"default",{},()=>[a.createElementVNode("span",{class:"cds-radio__label-text",disabled:n.disabled},a.toDisplayString(n.label),9,Tq)])],8,Eq)])}const Bq=oe(Mq,[["render",Iq]]),jce="",Aq={props:{modelValue:{default:null,required:!0},options:{type:Array,default:()=>[],required:!0},disabled:{type:Boolean,default:!1,required:!1},inline:{type:Boolean,default:!1,description:"When true, the radio buttons will be displayed in a row.",required:!1}},data(){return{selected:this.modelValue}},watch:{selected(t){this.$emit("update:modelValue",t)},modelValue:{handler(t){this.selected=t},immediate:!0}}},Vq={id:"radioButton"},$q=["disabled","for"],Nq=["id","value","disabled"],zq=["for"];function Pq(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",Vq,[a.createElementVNode("div",{class:a.normalizeClass({"button-group":n.inline})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.options,(o,c)=>(a.openBlock(),a.createElementBlock("div",{key:o.value,class:a.normalizeClass({"radio-button__container--vertical":n.inline&&c>0})},[a.createElementVNode("label",{class:"radio-button",disabled:o.disabled||n.disabled,for:o.value},[a.withDirectives(a.createElementVNode("input",{id:o.value,"onUpdate:modelValue":e[0]||(e[0]=d=>s.selected=d),type:"radio",value:o.value,disabled:o.disabled||n.disabled},null,8,Nq),[[a.vModelRadio,s.selected]]),a.createElementVNode("label",{class:"radio-button__content",for:o.value},a.toDisplayString(o.text),9,zq)],8,$q)],2))),128))],2)])}const Lq=oe(Aq,[["render",Pq]]),Uce="",Fq={components:{CdsIcon:$t,CdsLinkButton:F_},props:{modelValue:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:"Busque..."},fluid:{type:Boolean,default:!1,required:!1}},data(){return{internalValue:"",isBeingFocused:!1}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},stepperInputDynamicClass(){return(this.fluid?"search-input--fluid":"search-input").concat(" ",this.disabled?"search-input--disabled":"")},inputClass(){return this.fluid?"search-input__field--fluid":"search-input__field"}},methods:{handleInput(t){this.$emit("update:modelValue",t.target.value)}}},Rq=["value","placeholder","disabled"];function Hq(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",{class:a.normalizeClass(r.stepperInputDynamicClass)},[a.createVNode(o,{name:"search-outline",class:"search-input__search-icon"}),a.createElementVNode("input",{id:"cds-search-input",value:n.modelValue,placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),onFocus:e[0]||(e[0]=c=>s.isBeingFocused=!0),onBlur:e[1]||(e[1]=c=>s.isBeingFocused=!1),onInput:e[2]||(e[2]=(...c)=>r.handleInput&&r.handleInput(...c))},null,42,Rq),n.modelValue?(a.openBlock(),a.createBlock(o,{key:0,name:"x-outline",width:"18",height:"18",class:"search-input__close-icon",onClick:e[3]||(e[3]=c=>s.internalValue="")})):a.createCommentVNode("",!0)],2)])}const Wq=oe(Fq,[["render",Hq],["__scopeId","data-v-06cf65a5"]]),qce="",Yq={components:{CdsIcon:$t,CdsTooltip:$h},props:{segments:{type:Array,default:()=>[]},withIcon:{type:Boolean,default:!1},segmentsTooltipText:{type:Array,default:()=>[]}},data(){return{activeSegment:""}},mounted(){this.activeSegment=this.segments[0]},methods:{handleClick(t,e){this.activeSegment=t,this.$emit("click",this.activeSegment,e)}}},jq={class:"segment-control"},Uq=["onClick"],qq={key:1};function Gq(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-tooltip");return a.openBlock(),a.createElementBlock("div",jq,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.segments,(d,h)=>(a.openBlock(),a.createElementBlock("button",{key:h,class:a.normalizeClass(["segment-control__button",{"segment-control__button--active":d===s.activeSegment,"segment-control__button--inactive":d!==s.activeSegment}]),onClick:f=>r.handleClick(d,h)},[n.withIcon?(a.openBlock(),a.createBlock(c,{key:0,text:n.segmentsTooltipText[h]},{default:a.withCtx(()=>[a.createVNode(o,{height:"20",width:"20",name:d},null,8,["name"])]),_:2},1032,["text"])):(a.openBlock(),a.createElementBlock("span",qq,a.toDisplayString(d),1))],10,Uq))),128))])}const Kq=oe(Yq,[["render",Gq]]);function Cv(t=""){const e="\xC0\xC1\xC2\xC3\xC4\xC5\xE0\xE1\xE2\xE3\xE4\xE5\xD2\xD3\xD4\xD5\xD5\xD6\xD8\xF2\xF3\xF4\xF5\xF6\xF8\xC8\xC9\xCA\xCB\xE8\xE9\xEA\xEB\xF0\xC7\xE7\xD0\xCC\xCD\xCE\xCF\xEC\xED\xEE\xEF\xD9\xDA\xDB\xDC\xF9\xFA\xFB\xFC\xD1\xF1\u0160\u0161\u0178\xFF\xFD\u017D\u017E",n="AAAAAAaaaaaaOOOOOOOooooooEEEEeeeeeCcDIIIIiiiiUUUUuuuuNnSsYyyZz",i=t.length;let s=t.split(""),r;for(let o=0;o<i;o+=1)r=e.indexOf(t[o]),r!==-1&&(s[o]=n[r]);return s=s.join(""),s=s.split(".").join(""),s=s.split("-").join(""),s=s.split("/").join(""),s}const Gce="",Zq={components:{CdsIcon:$t},props:{label:{type:String,default:"Label",required:!0},placeholder:{type:String,default:"Selecione...",required:!1},options:{type:Array,default:()=>[],required:!0},modelValue:{type:[Array,Object],required:!0},state:{type:String,default:"default"},required:{type:Boolean,default:!1,required:!1},errorMessage:{type:String,default:"Valor inv\xE1lido"},searchable:{type:Boolean,default:!1,required:!1},width:{type:String,default:"default",required:!1},fluid:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},optionsField:{type:String,default:"value",required:!1},returnValue:{type:Boolean,default:!1,required:!1}},data(){return{currentPos:0,active:!1,id:null,allowSearch:!1,localOptions:[],pristineOptions:[],localValue:"",selectElement:"",direction:"down",uniqueKey:v1()}},computed:{errorState(){return this.state==="invalid"},inputClass(){let t="";return this.active&&this.direction==="down"?t="select__input--opened-down":this.active&&this.direction==="up"?t="select__input--opened-up":t="select__input--closed",this.disabled?t+=" select__input--disabled":this.state==="valid"?t+=" select__input--valid":this.state==="invalid"&&(t+=" select__input--invalid"),t+=` select__input--${t8.find(e=>e===this.width)}`,t+=this.fluid?" select__input--fluid":" select__input--fit",t+=this.searchable?" select__input--searchable":"",t}},watch:{modelValue:{handler(t,e){t!==e&&(t instanceof Object?this.localValue=t:this.localValue={id:t,value:t})},immediate:!0},options:{handler(t,e){t!==e&&(this.localOptions=t,this.pristineOptions=t)},immediate:!0},searchable:{handler(t,e){t!==e&&(this.allowSearch=t)},immediate:!0},localValue:{handler(t){this.localOptions.filter(n=>JSON.stringify(n)===JSON.stringify(t)).length!==0&&(this.returnValue?this.$emit("update:modelValue",t[this.optionsField]):this.$emit("update:modelValue",t))},deep:!0}},mounted(){this.id=`cds-select-${this.uniqueKey}`,this.selectElement=this.$refs["cds-select"]},methods:{filterOptions(){const t=Cv(this.localValue[this.optionsField]),e=new RegExp(t,"i");this.localOptions=this.options.filter(n=>Cv(n[this.optionsField]).search(e)>=0)},activeSelection(){this.disabled||this.$nextTick().then(()=>{const t=this.localOptions[this.currentPos];this.$refs[`${t[this.optionsField]}-${this.currentPos}`][0].classList.add("highlight")})},activateSelectionOnEnter(){this.disabled||(this.active=!this.active,typeof this.localOptions[this.currentPos]>"u"?this.localOptions=this.pristineOptions:this.localValue=m1(this.localOptions[this.currentPos]),this.$refs["select-input"].blur())},activateSelectionOnClick(){let t=this.selectElement.getBoundingClientRect();t.top+t.height+286<window.innerHeight?this.direction="down":this.direction="up",!this.disabled&&(this.active=!this.active)},hide(){this.localOptions=this.pristineOptions,this.active=!1},selectItem(){this.localValue=m1(this.localOptions[this.currentPos])},getLiInDOM(t){const e=this.localOptions[t];return this.$refs[`${e[this.optionsField]}-${t}`][0]},handleOptionVisibility(t,e,n){const i=t.getBoundingClientRect(),s=this.$refs["select-options"],r=s.getBoundingClientRect();n==="up"&&i.top<=r.top&&(s.scrollTop+=e),n==="down"&&i.top>=r.bottom&&(s.scrollTop+=e)},highlightOnArrowDown(){if(this.currentPos===this.localOptions.length-1)return;this.currentPos+=1;const t=this.getLiInDOM(this.currentPos),e=this.getLiInDOM(this.currentPos-1);t.classList.add("highlight"),e.classList.remove("highlight"),this.handleOptionVisibility(t,37,"down")},highlightOnArrowUp(){if(this.currentPos===0)return;const t=this.getLiInDOM(this.currentPos),e=this.getLiInDOM(this.currentPos-1);t.classList.remove("highlight"),e.classList.add("highlight"),this.handleOptionVisibility(t,-37,"up"),this.currentPos-=1},highlightOnMouseOver(t){this.currentPos=t,this.getLiInDOM(this.currentPos).classList.add("highlight")},unhighlightOnMouseOut(){this.getLiInDOM(this.currentPos).classList.remove("highlight")}}},Xq=t=>(a.pushScopeId("data-v-8cdaaf89"),t=t(),a.popScopeId(),t),Jq={ref:"cds-select",class:"select"},Qq={class:"select__label"},eG={class:"label__content",for:"cds-select"},tG={key:0,class:"label__required-indicator"},nG=["id","onkeypress","placeholder","disabled","readonly"],iG={key:0,class:"option__container"},sG=["onMouseover"],rG={key:1,class:"option__container"},aG=[Xq(()=>a.createElementVNode("li",{class:"option__text--muted"}," Nenhuma op\xE7\xE3o encontrada ",-1))],oG={key:0,class:"select__error-message"};function lG(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveDirective("cdstip");return a.openBlock(),a.createElementBlock("div",Jq,[a.createElementVNode("label",Qq,[a.createElementVNode("div",eG,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",tG," * ")):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"])),[[c,n.tooltip]]):a.createCommentVNode("",!0)])]),a.createElementVNode("div",{class:a.normalizeClass(["select__container",n.fluid?"select__container--fluid":"select__container--fit"])},[a.withDirectives(a.createElementVNode("input",{id:t.$attrs.id||s.id,ref:"select-input","onUpdate:modelValue":e[0]||(e[0]=d=>s.localValue[n.optionsField]=d),type:"text",autocomplete:"off",onkeypress:`return ${s.allowSearch};`,class:a.normalizeClass(r.inputClass),placeholder:n.placeholder,disabled:n.disabled,readonly:!n.searchable,onKeydown:[e[1]||(e[1]=a.withKeys(a.withModifiers((...d)=>r.activateSelectionOnEnter&&r.activateSelectionOnEnter(...d),["prevent"]),["enter"])),e[2]||(e[2]=a.withKeys(a.withModifiers((...d)=>r.highlightOnArrowDown&&r.highlightOnArrowDown(...d),["prevent"]),["arrow-down"])),e[3]||(e[3]=a.withKeys(a.withModifiers((...d)=>r.highlightOnArrowUp&&r.highlightOnArrowUp(...d),["prevent"]),["arrow-up"]))],onClick:e[4]||(e[4]=(...d)=>r.activateSelectionOnClick&&r.activateSelectionOnClick(...d)),onInput:e[5]||(e[5]=(...d)=>r.filterOptions&&r.filterOptions(...d)),onFocus:e[6]||(e[6]=(...d)=>r.activeSelection&&r.activeSelection(...d)),onBlur:e[7]||(e[7]=(...d)=>r.hide&&r.hide(...d))},null,42,nG),[[a.vModelText,s.localValue[n.optionsField]]]),a.withDirectives(a.createElementVNode("div",{ref:"select-options",class:a.normalizeClass(["select__options",{"select__options--thin":n.width==="thin","select__options--default":n.width==="default","select__options--wide":n.width==="wide","select__options--fluid":n.fluid,"select__options--down":s.direction==="down","select__options--up":s.direction==="up"}])},[s.localOptions.length>0?(a.openBlock(),a.createElementBlock("ul",iG,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.localOptions,(d,h)=>(a.openBlock(),a.createElementBlock("li",{key:h,ref_for:!0,ref:`${d[n.optionsField]}-${h}`,class:"option__text",onMousedown:e[8]||(e[8]=(...f)=>r.selectItem&&r.selectItem(...f)),onMouseover:f=>r.highlightOnMouseOver(h),onMouseout:e[9]||(e[9]=f=>r.unhighlightOnMouseOut())},a.toDisplayString(d[n.optionsField]),41,sG))),128))])):(a.openBlock(),a.createElementBlock("ul",rG,aG))],2),[[a.vShow,s.active]]),a.createElementVNode("span",{class:a.normalizeClass(s.active?"select__chevron--opened":"select__chevron--closed")},null,2)],2),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",oG,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)],512)}const cG=oe(Zq,[["render",lG],["__scopeId","data-v-8cdaaf89"]]),Zce="",dG={components:{CdsIcon:$t,CdsAvatar:w1},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},showLogout:{type:Boolean,default:!0},userName:{type:String,default:""},userRole:{type:String,default:""},userPicture:{type:String,default:null}},data(){return{internalActiveItem:{},colorOptions:jr}},watch:{items:{handler(t){const e=t.filter(n=>n.name===this.activeItem.name);[this.internalActiveItem]=e.length?e:t},immediate:!0},activeItem:{handler(t){this.internalActiveItem=t},immediate:!0}},mounted(){this.internalActiveItem=this.activeItem},methods:{colorHexCode:Fl,handleClick(t,e){this.internalActiveItem=e,this.$emit("sidebar-click",this.internalActiveItem)},isActive(t){let e=!1,n=!1;return!!t.items&&t.items.length>0&&(e=t.items.some(i=>Ll(i,this.internalActiveItem))),n=Ll(this.internalActiveItem,t),e||n},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}}},uG={class:"side-bar"},hG={class:"side-bar__logo"},fG=["onClick"],pG={key:0,class:"side-bar__subitem-container"},mG={class:"side-bar__subitems"},gG=["onClick"],_G=["href"],vG={class:"side-bar__footer"},yG={class:"side-bar__avatar"},bG=a.createElementVNode("span",null,"Sair",-1);function wG(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("router-link"),d=a.resolveComponent("cds-avatar");return a.openBlock(),a.createElementBlock("div",uG,[a.createElementVNode("div",null,[a.createElementVNode("div",hG,[a.renderSlot(t.$slots,"logo")]),a.createElementVNode("ul",{class:a.normalizeClass({"side-bar__container":n.items.length>=1})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.items,(h,f)=>(a.openBlock(),a.createElementBlock("li",{key:`${f}-${h.name}-item`,role:"presentation"},[a.createElementVNode("div",{class:a.normalizeClass(["side-bar__item-container",r.isActive(h)?"side-bar__item-container--active":"side-bar__item-container--inactive"])},[!!h.items||h.type==="link"?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["side-bar__item",r.isActive(h)?"side-bar__item--active":"side-bar__item--inactive"]),onClick:m=>r.handleClick(m,h)},[a.createElementVNode("div",null,[a.createVNode(o,{name:h.icon,width:"20",height:"20"},null,8,["name"]),a.createElementVNode("span",null,a.toDisplayString(h.label),1)]),!!h.items&&h.items.length>0?(a.openBlock(),a.createBlock(o,{key:0,name:"caret-down-outline",class:a.normalizeClass({item__caret:r.isActive(h)}),width:"16",height:"16"},null,8,["class"])):a.createCommentVNode("",!0)],10,fG)):(a.openBlock(),a.createBlock(c,{key:1,to:r.routerPushTo(h),class:a.normalizeClass(["side-bar__item",r.isActive(h)?"side-bar__item--active":"side-bar__item--inactive"]),onClick:m=>r.handleClick(m,h)},{default:a.withCtx(()=>[a.createElementVNode("div",null,[a.createVNode(o,{name:h.icon,width:"20",height:"20"},null,8,["name"]),a.createElementVNode("span",null,a.toDisplayString(h.label),1)]),!!h.items&&h.items.length>0?(a.openBlock(),a.createBlock(o,{key:0,name:"caret-down-outline",class:a.normalizeClass({item__caret:r.isActive(h)}),width:"16",height:"16"},null,8,["class"])):a.createCommentVNode("",!0)]),_:2},1032,["to","class","onClick"]))],2),a.createVNode(a.Transition,null,{default:a.withCtx(()=>[!!h.items&&h.items.length>0&&r.isActive(h)?(a.openBlock(),a.createElementBlock("div",pG,[a.createElementVNode("div",mG,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.items,(m,g)=>(a.openBlock(),a.createElementBlock("div",{key:`${g}-${m.name}-item`,class:a.normalizeClass(["side-bar__subitem",r.isActive(m)?"side-bar__subitem--active":"side-bar__subitem--inactive"]),onClick:v=>r.handleClick(v,m)},[!!m.type&&m.type==="external"?(a.openBlock(),a.createElementBlock("a",{key:0,class:"side-bar__subitem-link",target:"_blank",rel:"noopener noreferrer",href:m.route.path},[a.createTextVNode(a.toDisplayString(m.label)+" ",1),a.createVNode(o,{height:"16",width:"16",name:"open-in-new-tab-outline"})],8,_G)):(a.openBlock(),a.createBlock(c,{key:1,class:"side-bar__subitem-link",to:r.routerPushTo(m)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(m.label),1)]),_:2},1032,["to"]))],10,gG))),128))])])):a.createCommentVNode("",!0)]),_:2},1024)]))),128))],2)]),a.createElementVNode("div",vG,[a.createElementVNode("div",yG,[a.createVNode(d,{src:n.userPicture,name:n.userName,variant:"white",size:"lg"},null,8,["src","name"]),a.createElementVNode("div",null,[a.createElementVNode("p",null,a.toDisplayString(n.userName),1),a.createElementVNode("p",null,a.toDisplayString(n.userRole),1)])]),a.createElementVNode("ul",null,[n.showLogout?(a.openBlock(),a.createElementBlock("li",{key:0,class:"side-bar__logout-button",onClick:e[0]||(e[0]=h=>t.$emit("logout",!0))},[a.createVNode(o,{name:"logout-outline",width:"20",height:"20"}),bG])):a.createCommentVNode("",!0)])])])}const kG=oe(dG,[["render",wG]]),Xce="",qh={components:{CdsIcon:$t,CdsBox:bl,CdsClickable:Ls},props:{title:{type:String,default:null},modelValue:{type:Boolean,default:!1,required:!0},withOverlay:{type:Boolean,default:!1},size:{type:String,default:"md"},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOnEsc:{type:Boolean,default:!1}},data(){return{sassColorVariables:Gs}},computed:{overlayColor(){const t=this.withOverlay?this.sassColorVariables.n900:"transparent";return`rgba(${this.hexToRgb(t)}, 0.4)`},sideSheetWidth(){let t="328px";switch(this.size){case"xl":t="840px";break;case"lg":t="700px";break;case"md":t="500px";break;default:t="340px";break}return t}},watch:{modelValue(t){if(!t){this.dettachKeyupEvent();return}this.attachKeyupEvent()}},created(){this.attachKeyupEvent()},beforeUnmount(){this.dettachKeyupEvent()},methods:{hexToRgb:k0,shouldCloseOnBackdrop(){this.noCloseOnBackdrop||this.$emit("update:modelValue",!this.modelValue)},shouldCloseOnEsc(){this.noCloseOnEsc||this.$emit("update:modelValue",!this.modelValue)},keyupListener(t){t.keyCode===e8.ESC&&this.shouldCloseOnEsc()},attachKeyupEvent(){window.addEventListener("keyup",this.keyupListener)},dettachKeyupEvent(){window.removeEventListener("keyup",this.keyupListener)}}},Sv=()=>{a.useCssVars(t=>({11828368:t.overlayColor,"9d05acda":t.sideSheetWidth}))},Mv=qh.setup;qh.setup=Mv?(t,e)=>(Sv(),Mv(t,e)):Sv;const xG=qh,CG={class:"side-sheet__header"};function SG(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-clickable"),d=a.resolveComponent("cds-box");return n.modelValue?(a.openBlock(),a.createElementBlock("div",{key:0,class:"side-sheet__overlay",tabindex:"0",onClick:e[3]||(e[3]=(...h)=>r.shouldCloseOnBackdrop&&r.shouldCloseOnBackdrop(...h))},[a.createVNode(d,{padding:"5",class:"side-sheet__container",elevated:"",fluid:"",onClick:e[2]||(e[2]=a.withModifiers(()=>{},["stop"]))},{default:a.withCtx(()=>[a.createElementVNode("header",null,[a.renderSlot(t.$slots,"header",{},()=>[a.createElementVNode("div",CG,[a.createElementVNode("h3",null,a.toDisplayString(n.title),1),a.createElementVNode("div",{class:"side-sheet__close-icon",onClick:e[1]||(e[1]=(...h)=>t.closeHandle&&t.closeHandle(...h))},[a.createVNode(c,{clickable:""},{default:a.withCtx(()=>[a.createVNode(o,{height:"20",width:"20",name:"x-outline",onClick:e[0]||(e[0]=a.withModifiers(h=>t.$emit("update:modelValue",!n.modelValue),["stop"]))})]),_:1})])])],!0)]),a.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3})])):a.createCommentVNode("",!0)}const MG=oe(xG,[["render",SG],["__scopeId","data-v-54ccf7a0"]]),Jce="",Gh={props:{width:{type:String,default:"20"},height:{type:String,default:"16"},fluid:{type:Boolean,default:!1},shape:{type:String,default:"square",validate:t=>["circle","square"].includes(t)}},computed:{computedStyle(){return this.shape==="circle"?{"--width":`${this.width}px`,"--height":`${this.width}px`}:this.fluid?{"--width":"100%","--height":this.height!=="16"?`${this.height}px`:"100%"}:{"--width":`${this.width}px`,"--height":`${this.height}px`}},resolveShape(){return this.shape==="circle"?"50%":"6px"}}},Ov=()=>{a.useCssVars(t=>({"02fe74e9":t.resolveShape}))},Dv=Gh.setup;Gh.setup=Dv?(t,e)=>(Ov(),Dv(t,e)):Ov;const OG=Gh;function DG(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",{class:"skeleton__container",style:a.normalizeStyle(r.computedStyle)},null,4)}const EG=oe(OG,[["render",DG],["__scopeId","data-v-5298dc58"]]),Qce="",TG={props:{width:{type:String,required:!1},height:{type:String,required:!1,default:"16"}},computed:{computedStyle(){return{"--width":`${this.width}px`,"--height":`${this.height}px`}}}};function IG(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",{class:"skeleton__container",style:a.normalizeStyle(r.computedStyle)},null,4)}const BG=oe(TG,[["render",IG],["__scopeId","data-v-d39e7029"]]),ede="",AG={components:{CdsIcon:$t},props:{steps:{type:Array,default:()=>[],required:!0,description:`Um array com objetos com as propriedades 'label', 'inProcessing',
|
|
43
43
|
'error' e 'completed'. A 'label' \xE9 o texto que descreve o passo,
|
|
44
44
|
e as demais props s\xE3o booleanas e representam o status do passo.`},vertical:{type:Boolean,default:!1,required:!1},value:{type:Number,default:1,required:!0},disableOnClick:{type:Boolean,default:!1}},data(){return{internalValue:this.value-1}},watch:{internalValue(t){this.$emit("input",t+1)},value:{handler(t){this.internalValue=t-1},immediate:!0}},methods:{circleStyle(t,e){const n=this.disableOnClick?"":"stepper__step--clickable";return t.inProcessing?`stepper__step--in-processing ${n}`:t.error?`stepper__step--error ${n}`:t.completed?`stepper__step--completed ${n}`:e===this.internalValue?`stepper__step--active ${n}`:` stepper__step--muted ${n}`},changeStep(t){this.disableOnClick||(this.internalValue=t)},dividerStyle(t){const e=this.vertical?"vertical-":"";if(t<0)return`stepper__${e}divider--default`;const n=t===this.steps.length-1,i=t===0,s=t-1,r=t+1;return!n&&this.steps[t].completed&&this.steps[r].completed?`stepper__${e}divider--completed`:!n&&t>0&&this.steps[t].completed&&this.steps[s].completed||!n&&i&&this.steps[t].completed?`stepper__${e}divider--in-progress`:`stepper__${e}divider--default`},stepSectionStyle(t){let e="";return e+=t!==this.steps.length-1?"stepper__step-section ":"",e+=this.vertical?"stepper__step-section--vertical":"",e},labelStyle(t){let e="";return e+=t===this.internalValue?"stepper__step-label--active":"stepper__step-label--muted",e+=this.vertical?"":" stepper__step-label--horizontal",e+=this.disableOnClick?"":" stepper__step--clickable",e}}},VG=t=>(a.pushScopeId("data-v-6046312d"),t=t(),a.popScopeId(),t),$G={class:"stepper__edge"},NG=["onClick"],zG=["id","onClick"],PG={key:2,class:"stepper__processing-icon"},LG=[VG(()=>a.createElementVNode("svg",{width:"19",height:"22",viewBox:"0 0 19 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a.createElementVNode("path",{d:"M18.78 16.6325C17.738 18.0472 16.3457 19.1664 14.7402 19.8799C13.1346 20.5935 11.3709 20.8769 9.62259 20.7023C7.87428 20.5276 6.20151 19.901 4.76877 18.884C3.33604 17.867 2.19266 16.4945 1.45107 14.9017C0.709475 13.3089 0.395207 11.5504 0.539162 9.79934C0.683116 8.04824 1.28034 6.36474 2.2721 4.9144C3.26387 3.46406 4.61603 2.2968 6.19562 1.52741C7.77522 0.758019 9.52787 0.412981 11.2812 0.526225L10.6287 10.6288L18.78 16.6325Z",fill:"#3A7EDF"})],-1))],FG={key:3,class:"stepper__icon-text"},RG={key:0,class:"stepper__edge-container"},HG={class:"stepper__edge"};function WG(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(n.vertical?"stepper--vertical":"stepper")},[a.createElementVNode("div",{class:a.normalizeClass(n.vertical?"stepper__edge-container--vertical":"stepper__edge-container")},[a.createElementVNode("div",$G,[a.createElementVNode("div",{class:a.normalizeClass(r.dividerStyle(-1))},null,2)])],2),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.steps,(c,d)=>(a.openBlock(),a.createElementBlock("div",{key:d,class:a.normalizeClass(r.stepSectionStyle(d))},[n.vertical?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["stepper__step-label--vertical",r.labelStyle(d)]),onClick:h=>r.changeStep(d)},[a.createElementVNode("small",null,a.toDisplayString(c.label),1)],10,NG)):a.createCommentVNode("",!0),a.createElementVNode("div",{id:`step-${d+1}`,class:a.normalizeClass(n.vertical?"stepper__icon-container--vertical":"stepper__icon-container"),onClick:h=>r.changeStep(d)},[a.createElementVNode("div",{class:a.normalizeClass(["stepper__icon-circle",r.circleStyle(c,d)])},[c.completed?(a.openBlock(),a.createBlock(o,{key:0,height:"32",width:"32",name:"check-outline"})):c.error?(a.openBlock(),a.createBlock(o,{key:1,height:"32",width:"32",name:"x-outline"})):c.inProcessing?(a.openBlock(),a.createElementBlock("div",PG,LG)):(a.openBlock(),a.createElementBlock("span",FG,a.toDisplayString(d+1),1))],2),a.createElementVNode("div",{class:a.normalizeClass(r.dividerStyle(d))},null,2)],10,zG),n.vertical?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["stepper__step-label",r.labelStyle(d)])},[a.createElementVNode("small",null,a.toDisplayString(c.label),1)],2))],2))),128)),n.vertical?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",RG,[a.createElementVNode("div",HG,[a.createElementVNode("div",{class:a.normalizeClass(r.dividerStyle(-1))},null,2)])]))],2)}const YG=oe(AG,[["render",WG],["__scopeId","data-v-6046312d"]]);var Ev={exports:{}};(function(t){t.exports=function(e){var n={};function i(s){if(n[s])return n[s].exports;var r=n[s]={i:s,l:!1,exports:{}};return e[s].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=n,i.d=function(s,r,o){i.o(s,r)||Object.defineProperty(s,r,{enumerable:!0,get:o})},i.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},i.t=function(s,r){if(r&1&&(s=i(s)),r&8||r&4&&typeof s=="object"&&s&&s.__esModule)return s;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:s}),r&2&&typeof s!="string")for(var c in s)i.d(o,c,function(d){return s[d]}.bind(null,c));return o},i.n=function(s){var r=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(r,"a",r),r},i.o=function(s,r){return Object.prototype.hasOwnProperty.call(s,r)},i.p="",i(i.s="fae3")}({"01f9":function(e,n,i){var s=i("2d00"),r=i("5ca1"),o=i("2aba"),c=i("32e9"),d=i("84f2"),h=i("41a0"),f=i("7f20"),m=i("38fd"),g=i("2b4c")("iterator"),v=!([].keys&&"next"in[].keys()),b="@@iterator",x="keys",k="values",O=function(){return this};e.exports=function(T,N,C,B,$,L,F){h(C,N,B);var q=function(fe){if(!v&&fe in ie)return ie[fe];switch(fe){case x:return function(){return new C(this,fe)};case k:return function(){return new C(this,fe)}}return function(){return new C(this,fe)}},ee=N+" Iterator",ne=$==k,K=!1,ie=T.prototype,pe=ie[g]||ie[b]||$&&ie[$],J=pe||q($),ue=$?ne?q("entries"):J:void 0,he=N=="Array"&&ie.entries||pe,_e,be,R;if(he&&(R=m(he.call(new T)),R!==Object.prototype&&R.next&&(f(R,ee,!0),!s&&typeof R[g]!="function"&&c(R,g,O))),ne&&pe&&pe.name!==k&&(K=!0,J=function(){return pe.call(this)}),(!s||F)&&(v||K||!ie[g])&&c(ie,g,J),d[N]=J,d[ee]=O,$)if(_e={values:ne?J:q(k),keys:L?J:q(x),entries:ue},F)for(be in _e)be in ie||o(ie,be,_e[be]);else r(r.P+r.F*(v||K),N,_e);return _e}},"0d58":function(e,n,i){var s=i("ce10"),r=i("e11e");e.exports=Object.keys||function(c){return s(c,r)}},1495:function(e,n,i){var s=i("86cc"),r=i("cb7c"),o=i("0d58");e.exports=i("9e1e")?Object.defineProperties:function(d,h){r(d);for(var f=o(h),m=f.length,g=0,v;m>g;)s.f(d,v=f[g++],h[v]);return d}},"230e":function(e,n,i){var s=i("d3f4"),r=i("7726").document,o=s(r)&&s(r.createElement);e.exports=function(c){return o?r.createElement(c):{}}},"2aba":function(e,n,i){var s=i("7726"),r=i("32e9"),o=i("69a8"),c=i("ca5a")("src"),d=i("fa5b"),h="toString",f=(""+d).split(h);i("8378").inspectSource=function(m){return d.call(m)},(e.exports=function(m,g,v,b){var x=typeof v=="function";x&&(o(v,"name")||r(v,"name",g)),m[g]!==v&&(x&&(o(v,c)||r(v,c,m[g]?""+m[g]:f.join(String(g)))),m===s?m[g]=v:b?m[g]?m[g]=v:r(m,g,v):(delete m[g],r(m,g,v)))})(Function.prototype,h,function(){return typeof this=="function"&&this[c]||d.call(this)})},"2aeb":function(e,n,i){var s=i("cb7c"),r=i("1495"),o=i("e11e"),c=i("613b")("IE_PROTO"),d=function(){},h="prototype",f=function(){var m=i("230e")("iframe"),g=o.length,v="<",b=">",x;for(m.style.display="none",i("fab2").appendChild(m),m.src="javascript:",x=m.contentWindow.document,x.open(),x.write(v+"script"+b+"document.F=Object"+v+"/script"+b),x.close(),f=x.F;g--;)delete f[h][o[g]];return f()};e.exports=Object.create||function(g,v){var b;return g!==null?(d[h]=s(g),b=new d,d[h]=null,b[c]=g):b=f(),v===void 0?b:r(b,v)}},"2b4c":function(e,n,i){var s=i("5537")("wks"),r=i("ca5a"),o=i("7726").Symbol,c=typeof o=="function",d=e.exports=function(h){return s[h]||(s[h]=c&&o[h]||(c?o:r)("Symbol."+h))};d.store=s},"2d00":function(e,n){e.exports=!1},"2d95":function(e,n){var i={}.toString;e.exports=function(s){return i.call(s).slice(8,-1)}},"32e9":function(e,n,i){var s=i("86cc"),r=i("4630");e.exports=i("9e1e")?function(o,c,d){return s.f(o,c,r(1,d))}:function(o,c,d){return o[c]=d,o}},"38fd":function(e,n,i){var s=i("69a8"),r=i("4bf8"),o=i("613b")("IE_PROTO"),c=Object.prototype;e.exports=Object.getPrototypeOf||function(d){return d=r(d),s(d,o)?d[o]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?c:null}},"41a0":function(e,n,i){var s=i("2aeb"),r=i("4630"),o=i("7f20"),c={};i("32e9")(c,i("2b4c")("iterator"),function(){return this}),e.exports=function(d,h,f){d.prototype=s(c,{next:r(1,f)}),o(d,h+" Iterator")}},4588:function(e,n){var i=Math.ceil,s=Math.floor;e.exports=function(r){return isNaN(r=+r)?0:(r>0?s:i)(r)}},4630:function(e,n){e.exports=function(i,s){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:s}}},"4bf8":function(e,n,i){var s=i("be13");e.exports=function(r){return Object(s(r))}},5537:function(e,n,i){var s=i("8378"),r=i("7726"),o="__core-js_shared__",c=r[o]||(r[o]={});(e.exports=function(d,h){return c[d]||(c[d]=h!==void 0?h:{})})("versions",[]).push({version:s.version,mode:i("2d00")?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,n,i){var s=i("7726"),r=i("8378"),o=i("32e9"),c=i("2aba"),d=i("9b43"),h="prototype",f=function(m,g,v){var b=m&f.F,x=m&f.G,k=m&f.S,O=m&f.P,T=m&f.B,N=x?s:k?s[g]||(s[g]={}):(s[g]||{})[h],C=x?r:r[g]||(r[g]={}),B=C[h]||(C[h]={}),$,L,F,q;x&&(v=g);for($ in v)L=!b&&N&&N[$]!==void 0,F=(L?N:v)[$],q=T&&L?d(F,s):O&&typeof F=="function"?d(Function.call,F):F,N&&c(N,$,F,m&f.U),C[$]!=F&&o(C,$,q),O&&B[$]!=F&&(B[$]=F)};s.core=r,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,e.exports=f},"613b":function(e,n,i){var s=i("5537")("keys"),r=i("ca5a");e.exports=function(o){return s[o]||(s[o]=r(o))}},"626a":function(e,n,i){var s=i("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(r){return s(r)=="String"?r.split(""):Object(r)}},6821:function(e,n,i){var s=i("626a"),r=i("be13");e.exports=function(o){return s(r(o))}},"69a8":function(e,n){var i={}.hasOwnProperty;e.exports=function(s,r){return i.call(s,r)}},"6a99":function(e,n,i){var s=i("d3f4");e.exports=function(r,o){if(!s(r))return r;var c,d;if(o&&typeof(c=r.toString)=="function"&&!s(d=c.call(r))||typeof(c=r.valueOf)=="function"&&!s(d=c.call(r))||!o&&typeof(c=r.toString)=="function"&&!s(d=c.call(r)))return d;throw TypeError("Can't convert object to primitive value")}},7726:function(e,n){var i=e.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=i)},"77f1":function(e,n,i){var s=i("4588"),r=Math.max,o=Math.min;e.exports=function(c,d){return c=s(c),c<0?r(c+d,0):o(c,d)}},"79e5":function(e,n){e.exports=function(i){try{return!!i()}catch{return!0}}},"7f20":function(e,n,i){var s=i("86cc").f,r=i("69a8"),o=i("2b4c")("toStringTag");e.exports=function(c,d,h){c&&!r(c=h?c:c.prototype,o)&&s(c,o,{configurable:!0,value:d})}},"7f7f":function(e,n,i){var s=i("86cc").f,r=Function.prototype,o=/^\s*function ([^ (]*)/,c="name";c in r||i("9e1e")&&s(r,c,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch{return""}}})},8378:function(e,n){var i=e.exports={version:"2.6.12"};typeof __e=="number"&&(__e=i)},"84f2":function(e,n){e.exports={}},"86cc":function(e,n,i){var s=i("cb7c"),r=i("c69a"),o=i("6a99"),c=Object.defineProperty;n.f=i("9e1e")?Object.defineProperty:function(h,f,m){if(s(h),f=o(f,!0),s(m),r)try{return c(h,f,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported!");return"value"in m&&(h[f]=m.value),h}},"9b43":function(e,n,i){var s=i("d8e8");e.exports=function(r,o,c){if(s(r),o===void 0)return r;switch(c){case 1:return function(d){return r.call(o,d)};case 2:return function(d,h){return r.call(o,d,h)};case 3:return function(d,h,f){return r.call(o,d,h,f)}}return function(){return r.apply(o,arguments)}}},"9c6c":function(e,n,i){var s=i("2b4c")("unscopables"),r=Array.prototype;r[s]==null&&i("32e9")(r,s,{}),e.exports=function(o){r[s][o]=!0}},"9def":function(e,n,i){var s=i("4588"),r=Math.min;e.exports=function(o){return o>0?r(s(o),9007199254740991):0}},"9e1e":function(e,n,i){e.exports=!i("79e5")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},ac6a:function(e,n,i){for(var s=i("cadf"),r=i("0d58"),o=i("2aba"),c=i("7726"),d=i("32e9"),h=i("84f2"),f=i("2b4c"),m=f("iterator"),g=f("toStringTag"),v=h.Array,b={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},x=r(b),k=0;k<x.length;k++){var O=x[k],T=b[O],N=c[O],C=N&&N.prototype,B;if(C&&(C[m]||d(C,m,v),C[g]||d(C,g,O),h[O]=v,T))for(B in s)C[B]||o(C,B,s[B],!0)}},be13:function(e,n){e.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},c366:function(e,n,i){var s=i("6821"),r=i("9def"),o=i("77f1");e.exports=function(c){return function(d,h,f){var m=s(d),g=r(m.length),v=o(f,g),b;if(c&&h!=h){for(;g>v;)if(b=m[v++],b!=b)return!0}else for(;g>v;v++)if((c||v in m)&&m[v]===h)return c||v||0;return!c&&-1}}},c69a:function(e,n,i){e.exports=!i("9e1e")&&!i("79e5")(function(){return Object.defineProperty(i("230e")("div"),"a",{get:function(){return 7}}).a!=7})},ca5a:function(e,n){var i=0,s=Math.random();e.exports=function(r){return"Symbol(".concat(r===void 0?"":r,")_",(++i+s).toString(36))}},cadf:function(e,n,i){var s=i("9c6c"),r=i("d53b"),o=i("84f2"),c=i("6821");e.exports=i("01f9")(Array,"Array",function(d,h){this._t=c(d),this._i=0,this._k=h},function(){var d=this._t,h=this._k,f=this._i++;return!d||f>=d.length?(this._t=void 0,r(1)):h=="keys"?r(0,f):h=="values"?r(0,d[f]):r(0,[f,d[f]])},"values"),o.Arguments=o.Array,s("keys"),s("values"),s("entries")},cb7c:function(e,n,i){var s=i("d3f4");e.exports=function(r){if(!s(r))throw TypeError(r+" is not an object!");return r}},ce10:function(e,n,i){var s=i("69a8"),r=i("6821"),o=i("c366")(!1),c=i("613b")("IE_PROTO");e.exports=function(d,h){var f=r(d),m=0,g=[],v;for(v in f)v!=c&&s(f,v)&&g.push(v);for(;h.length>m;)s(f,v=h[m++])&&(~o(g,v)||g.push(v));return g}},d3f4:function(e,n){e.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},d53b:function(e,n){e.exports=function(i,s){return{value:s,done:!!i}}},d8e8:function(e,n){e.exports=function(i){if(typeof i!="function")throw TypeError(i+" is not a function!");return i}},e11e:function(e,n){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f6fd:function(e,n){(function(i){var s="currentScript",r=i.getElementsByTagName("script");s in i||Object.defineProperty(i,s,{get:function(){try{throw new Error}catch(d){var o,c=(/.*at [^\(]*\((.*):.+:.+\)$/ig.exec(d.stack)||[!1])[1];for(o in r)if(r[o].src==c||r[o].readyState=="interactive")return r[o];return null}}})})(document)},fa5b:function(e,n,i){e.exports=i("5537")("native-function-to-string",Function.toString)},fab2:function(e,n,i){var s=i("7726").document;e.exports=s&&s.documentElement},fae3:function(e,n,i){if(i.r(n),i.d(n,"longClickDirective",function(){return o}),typeof window<"u"){i("f6fd");var s;(s=window.document.currentScript)&&(s=s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(i.p=s[1])}i("ac6a"),i("7f7f");var r=function(c){var d=c.delay,h=d===void 0?400:d,f=c.interval,m=f===void 0?50:f;return{beforeMount:function(v,b,x,k){if(typeof b.value!="function"){var O=x.context.name,T="[longclick:] provided expression '".concat(b.expression,"' is not a function, but has to be");O&&(T+="Found in component '".concat(O,"' ")),console.warn(T)}var N=null,C=null,B=function(q){b.value(q)},$=function(q){q.type==="click"&&q.button!==0||N===null&&(N=setTimeout(function(){m&&m>0&&(C=setInterval(function(){B(q)},m)),B(q)},h))},L=function(){N!==null&&(clearTimeout(N),N=null),C&&(clearInterval(C),C=null)};["mousedown","touchstart"].forEach(function(F){v.addEventListener(F,$,{passive:!0})}),["click","mouseout","touchend","touchcancel"].forEach(function(F){v.addEventListener(F,L,{passive:!0})})},created:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeUnmount:function(){},unmounted:function(){}}},o=r}})})(Ev);const nde="",jG=Ev.exports.longClickDirective({delay:400,interval:50}),UG={components:{CdsIcon:$t},directives:{longclick:jG},props:{modelValue:{type:[Number,String],default:0},max:{type:[Number,String],default:Number.MAX_SAFE_INTEGER},min:{type:[Number,String],default:Number.MIN_SAFE_INTEGER},label:{type:String,default:"Label"},required:{type:Boolean,default:!1},width:{type:String,default:"default",required:!1},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},errorMessage:{type:String,default:"Valor inv\xE1lido"}},data(){return{internalValue:this.modelValue,isBeingFocused:!1}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},errorState(){return this.state==="invalid"},stepperInputDynamicClass(){let t="";return this.isBeingFocused?this.disabled||(this.state==="default"?t+=" stepper-input--focused":this.state==="valid"?t+=" stepper-input--focused-valid":this.state==="invalid"&&(t+=" stepper-input--focused-invalid")):(t="stepper-input",this.disabled?t+=" stepper-input--disabled":this.state==="valid"?t+=" stepper-input--valid":this.state==="invalid"&&(t+=" stepper-input--invalid")),t}},watch:{modelValue(t){this.internalValue=t},internalValue(t){t||(this.internalValue=0),typeof t=="string"&&(this.internalValue=+this.internalValue),t<this.min?(this.internalValue=this.min,this.$emit("invalid-number",`'O campo n\xE3o pode ser menor que ${parseInt(this.min,10)}.'`)):t>this.max?(this.internalValue=this.max,this.$emit("invalid-number",`'O campo n\xE3o pode ser maior que ${parseInt(this.max,10)}.'`)):this.$emit("update:modelValue",parseInt(t,10))}},methods:{changeValue(t){this.internalValue=parseInt(this.internalValue)+t}}},qG={key:0},GG={key:1,class:"stepper-input__label"},KG={class:"label__content",for:"stepper-input"},ZG={key:0,class:"label__required-indicator"},XG=["disabled"],JG={class:"stepper-input__icon-container"},QG=["disabled"],eK=["disabled"],tK={key:0,class:"stepper-input__error-message"};function nK(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveDirective("longclick");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",qG,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",GG,[a.createElementVNode("div",KG,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",ZG," * ")):a.createCommentVNode("",!0)])]))]),a.createElementVNode("div",{class:a.normalizeClass(r.stepperInputDynamicClass)},[a.withDirectives(a.createElementVNode("input",{id:"stepper-input","onUpdate:modelValue":e[0]||(e[0]=d=>s.internalValue=d),disabled:n.disabled,class:a.normalizeClass(["stepper-input__field",{"stepper-input__field--thin":n.width==="thin","stepper-input__field--default":n.width==="default","stepper-input__field--wide":n.width=="wide"}]),type:"number",onFocus:e[1]||(e[1]=d=>s.isBeingFocused=!0),onBlur:e[2]||(e[2]=d=>s.isBeingFocused=!1)},null,42,XG),[[a.vModelText,s.internalValue]]),a.createElementVNode("div",JG,[a.withDirectives((a.openBlock(),a.createElementBlock("button",{disabled:n.disabled,class:"stepper-input__icon--plus",tabindex:"-1",onFocus:e[3]||(e[3]=d=>s.isBeingFocused=!0),onBlur:e[4]||(e[4]=d=>s.isBeingFocused=!1),onClick:e[5]||(e[5]=d=>r.changeValue(1))},[a.createVNode(o,{height:"16",width:"16",name:"plus-outline"})],40,QG)),[[c,()=>r.changeValue(1)]]),a.withDirectives((a.openBlock(),a.createElementBlock("button",{disabled:n.disabled,class:"stepper-input__icon--minus",tabindex:"-1",onFocus:e[6]||(e[6]=d=>s.isBeingFocused=!0),onBlur:e[7]||(e[7]=d=>s.isBeingFocused=!1),onClick:e[8]||(e[8]=d=>r.changeValue(-1))},[a.createVNode(o,{height:"16",width:"16",name:"minus-outline"})],40,eK)),[[c,()=>r.changeValue(-1)]])])],2),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",tK,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const iK=oe(UG,[["render",nK],["__scopeId","data-v-f77e7bd8"]]),ide="",sK={props:{modelValue:{type:Boolean,default:!1,required:!0},small:{type:Boolean,default:!1},variant:{type:String,default:"green"},large:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},focused:{type:Boolean,default:!1}},data(){return{isActive:this.modelValue,internalFocus:this.focused}},computed:{toggleSwitchSize(){return this.small===this.large?"switch--medium":this.small?"switch--small":"switch--large"}},watch:{modelValue(t,e){t!==e&&(this.isActive=t)}},methods:{handleClick(){this.$emit("update:modelValue",!this.isActive)}}},rK=["disabled"];function aK(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("label",{class:a.normalizeClass(["switch",r.toggleSwitchSize])},[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>s.isActive=o),type:"checkbox",disabled:n.disabled,onClick:e[1]||(e[1]=(...o)=>r.handleClick&&r.handleClick(...o))},null,8,rK),[[a.vModelCheckbox,s.isActive]]),a.createElementVNode("span",{tabindex:"0",class:a.normalizeClass(["switch__slider",[`switch__slider--${n.variant}`,{[`switch__slider--active-focused--${n.variant}`]:s.internalFocus&&s.isActive&&!n.disabled,"switch__slider--inactive-focused":s.internalFocus&&!s.isActive&&!n.disabled,"switch__slider--small":n.small&&n.small!==n.large,"switch__slider--large":n.large&&n.small!==n.large,"switch__slider--medium":n.small===n.large}]]),onFocusout:e[2]||(e[2]=o=>s.internalFocus=!1),onFocusin:e[3]||(e[3]=o=>s.internalFocus=!0)},null,34)],2)])}const oK=oe(sK,[["render",aK],["__scopeId","data-v-4ec199d7"]]);var Gr={exports:{}};/**
|
|
45
45
|
* @license
|