@sysvale/cuida 3.55.1 → 3.56.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.
@@ -19005,6 +19005,18 @@ const E1 = /* @__PURE__ */ me(oN, [["render", fN], ["__scopeId", "data-v-0758b09
19005
19005
  hex: "#9AA8B6",
19006
19006
  lighterHex: "#ABB8C4",
19007
19007
  lightestHex: "#D6DCE3"
19008
+ },
19009
+ {
19010
+ name: "dark",
19011
+ hex: "#3B4754",
19012
+ lighterHex: "#647382",
19013
+ lightestHex: "#99A6B2"
19014
+ },
19015
+ {
19016
+ name: "white",
19017
+ hex: "#FFFFFF",
19018
+ lighterHex: "#FAFCFE",
19019
+ lightestHex: "#F4F8FB"
19008
19020
  }
19009
19021
  ], cr = L1.map((t) => t.name), ll = (t) => {
19010
19022
  const e = L1.filter((n) => n.name === t)[0];
@@ -40,7 +40,7 @@
40
40
  * https://www.chartjs.org
41
41
  * (c) 2023 chartjs-adapter-luxon Contributors
42
42
  * Released under the MIT license
43
- */const xO={datetime:ue.DATETIME_MED_WITH_SECONDS,millisecond:"h:mm:ss.SSS a",second:ue.TIME_WITH_SECONDS,minute:ue.TIME_SIMPLE,hour:{hour:"numeric"},day:{day:"numeric",month:"short"},week:"DD",month:{month:"short",year:"numeric"},quarter:"'Q'q - yyyy",year:{year:"numeric"}};wg._date.override({_id:"luxon",_create:function(t){return ue.fromMillis(t,this.options)},init(t){this.options.locale||(this.options.locale=t.locale)},formats:function(){return xO},parse:function(t,e){const n=this.options,i=typeof t;return t===null||i==="undefined"?null:(i==="number"?t=this._create(t):i==="string"?typeof e=="string"?t=ue.fromFormat(t,e,n):t=ue.fromISO(t,n):t instanceof Date?t=ue.fromJSDate(t,n):i==="object"&&!(t instanceof ue)&&(t=ue.fromObject(t,n)),t.isValid?t.valueOf():null)},format:function(t,e){const n=this._create(t);return typeof e=="string"?n.toFormat(e):n.toLocaleString(e)},add:function(t,e,n){const i={};return i[n]=e,this._create(t).plus(i).valueOf()},diff:function(t,e,n){return this._create(t).diff(this._create(e)).as(n).valueOf()},startOf:function(t,e,n){if(e==="isoWeek"){n=Math.trunc(Math.min(Math.max(0,n),6));const i=this._create(t);return i.minus({days:(i.weekday-n+7)%7}).startOf("day").valueOf()}return e?this._create(t).startOf(e).valueOf():t},endOf:function(t,e){return this._create(t).endOf(e).valueOf()}});const Lue="";mi.register(...kh);const SO={components:{Line:vS},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)},theme:{type:String,required:!1,default:"",validator:t=>["green","teal","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},scales:{type:Object,default:()=>({})},animation:{type:Object,default:()=>({})},plugins:{type:Object,default:()=>({})}},data(){return{sassColorVariables:Wn,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}},...this.scales},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"}},...this.plugins},fill:this.fill,animation:{...this.animation}}}},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}},mounted(){this.chartOptions={...this.chartOptions,...this.scales}},methods:{paleteBuilder:ts,palete(){this.theme.length?this.palletColors=this.paleteBuilder(this.sassColorVariables.chartThemes):(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 a={label:this.showLabelName?s.name:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(a)})}),this.palete();const n=this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},generateBackgroundColor(){let t=this.variant.toLowerCase();this.theme.length&&(t=this.theme.toLowerCase());const e=this.palletColors.find(n=>n.variantName.toLowerCase()===t);return e?this.fill?e.colorShades.map(i=>i+"80"):e.colorShades:[]},setColors(t,e){const n={};t.forEach((i,s)=>{const a=i.name;n[a]||(n[a]=e.slice()),i.data.length>0&&(i.backgroundColor=n[a][s%n[a].length],i.borderColor=n[a][s%n[a].length]),i.borderRadius=6})},checkDashed(){this.chartOptions.borderDash=[this.borderDash[0],this.borderDash[1]]}}},MO={class:"responsive-container"};function OO(t,e,n,i,s,a){const o=r.resolveComponent("Line");return r.openBlock(),r.createElementBlock("span",null,[r.createElementVNode("div",MO,[r.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const DO=ne(SO,[["render",OO],["__scopeId","data-v-88deb5d1"]]),Fue="",EO={components:{Pie:bS},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:Wn,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:ts,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 a={label:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(a)})}),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})}}},VO={class:"responsive-container"};function BO(t,e,n,i,s,a){const o=r.resolveComponent("Pie");return r.openBlock(),r.createElementBlock("span",null,[r.createElementVNode("div",VO,[r.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const TO=ne(EO,[["render",BO],["__scopeId","data-v-df415374"]]),Rue="",IO={components:{PolarArea:wS},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:Wn,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:ts,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 a={label:this.showLabelName?s.name:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(a)})}),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})}}},AO={class:"responsive-container"};function $O(t,e,n,i,s,a){const o=r.resolveComponent("PolarArea");return r.openBlock(),r.createElementBlock("span",null,[r.createElementVNode("div",AO,[r.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const NO=ne(IO,[["render",$O],["__scopeId","data-v-386a0dc0"]]),Hue="";mi.register(...kh);const zO={components:{Bar:N2},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)},theme:{type:String,required:!1,default:"",validator:t=>["green","teal","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:Wn,localChartData:{},localLabels:[],palletColors:[],deleteFirstTwoColors:!1,chartOptions:{scales:{x:{stacked:!0,grid:{color:"transparent"}},y:{stacked:!0,grid:{color:"#DFE5EC"}}},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",padding:50}}}},plugins:[{id:"custom_legend_margin",beforeInit:function(t){const e=t.legend.fit;t.legend.fit=function(){e.call(this),this.height+=12}}}]}},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:ts,palete(){this.theme.length?this.palletColors=this.paleteBuilder(this.sassColorVariables.chartThemes):(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 a={label:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(a)})}),this.palete();const n=this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},getPalete(t=this.variant){const e=t.toLowerCase(),n=this.palletColors.find(i=>i.variantName.toLowerCase().includes(e));if(n)return n.colorShades},generateBackgroundColor(){let t=this.variant.toLowerCase();this.theme.length&&(t=this.theme.toLowerCase());const e=this.palletColors.find(n=>n.variantName.toLowerCase()===t);return e?this.fill?e.colorShades.map(i=>i+"80"):e.colorShades:[]},setMultiColors(t){const e={};let n=0;this.chartOptions.plugins.legend.display=!0,t.forEach((i,s)=>{const a=i.name;let o=1;s%5===0&&(n=0),o+=n,n++,e[a]=this.getPalete(i.variant)[o],i.backgroundColor=e[a],i.borderRadius=6})},setColors(t,e){const n={};this.chartOptions.plugins.legend.display=!0,t.forEach(i=>{const s=i.name;let a;t.length===1&&(a=2,n[s]=e[a],this.chartOptions.plugins.legend.display=!1),n[s]||(a=Object.keys(n).length%e.length,n[s]=e[a]),i.backgroundColor=n[s],i.borderRadius=6})}}},PO={class:"responsive-container"};function LO(t,e,n,i,s,a){const o=r.resolveComponent("Bar");return r.openBlock(),r.createElementBlock("span",null,[r.createElementVNode("div",PO,[r.createVNode(o,{is:"bar",data:s.localChartData,options:s.chartOptions,plugins:s.plugins},null,8,["data","options","plugins"])])])}const FO=ne(zO,[["render",LO],["__scopeId","data-v-a0e865bb"]]),Wue="",jh={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}}},f4=()=>{r.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}))},p4=jh.setup;jh.setup=p4?(t,e)=>(f4(),p4(t,e)):f4;const RO=jh,HO={class:"spacer"};function WO(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",HO,[r.renderSlot(t.$slots,"default",{},void 0,!0)])}const Ld=ne(RO,[["render",WO],["__scopeId","data-v-5aebf225"]]);function Uh(t,e=24){let n=t/8,i=n%4;return`${n>e?e:n-i+4}px`}const Yue="",qh={components:{CdsSpacer:Ld,CdsClickable:hs},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:Uh,handleClick(){this.clickable&&this.$emit("boxClick",!0)}}},m4=()=>{r.useCssVars(t=>({"4b1a623b":t.widthResolver,"5e38bcd5":t.borderRadiusResolver}))},g4=qh.setup;qh.setup=g4?(t,e)=>(m4(),g4(t,e)):m4;const YO=qh;function jO(t,e,n,i,s,a){const o=r.resolveComponent("cds-spacer"),c=r.resolveComponent("cds-clickable");return r.openBlock(),r.createElementBlock("div",{ref:"cds-box",class:r.normalizeClass(n.elevated?"box--elevated":`box--${n.variant}`)},[r.createVNode(c,{class:"box__container",clickable:n.clickable,onClick:a.handleClick},{default:r.withCtx(()=>[r.createVNode(o,{"padding-top":n.padding,"padding-right":n.padding,"padding-bottom":n.padding,"padding-left":n.padding},{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["padding-top","padding-right","padding-bottom","padding-left"])]),_:3},8,["clickable","onClick"])],2)}const Ll=ne(YO,[["render",jO],["__scopeId","data-v-0c52825f"]]),jue="",UO={directives:{"on-click-outside":fs.directive},components:{"cds-icon":Re},props:{modelValue:{type:Boolean,default:!1,required:!0},title:{type:String,default:"Onde encontrar o meu CNS"},noCloseOnBackdrop:{type:Boolean,default:!1}},emits:["update:model-value","close"],data(){return{internalModelValue:this.modelValue,toggleAnimationClass:!0}},watch:{modelValue(t,e){t!==e&&(t?this.internalModelValue=t:this.closeHandle(),this.mustDisableExternalScrolls(t))}},methods:{closeHandle(){this.toggleAnimationClass=!1,setTimeout(()=>{this.internalModelValue=!1,this.toggleAnimationClass=!0,this.$emit("update:model-value",!1),this.$emit("close",!0)},300)},mustDisableExternalScrolls(t){document.body.style.overflow=t?"hidden":"auto"}}},qO=t=>(r.pushScopeId("data-v-46ef76f4"),t=t(),r.popScopeId(),t),GO={key:0},KO=qO(()=>r.createElementVNode("div",{class:"bottom-sheet__header-border"},[r.createElementVNode("div",{class:"bottom-sheet__header-border-line"})],-1)),ZO={class:"bottom-sheet__header"},XO={class:"bottom-sheet__title"},JO={class:"bottom-sheet__content"};function QO(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon"),c=r.resolveDirective("on-click-outside");return s.internalModelValue?(r.openBlock(),r.createElementBlock("div",GO,[r.createElementVNode("div",{class:r.normalizeClass(s.toggleAnimationClass?"backdrop__show":"backdrop__hide")},[r.withDirectives((r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(s.toggleAnimationClass?"bottom-sheet__show":"bottom-sheet__hide")},[KO,r.createElementVNode("div",ZO,[r.createElementVNode("div",XO,r.toDisplayString(n.title),1),r.createElementVNode("div",{class:"bottom-sheet__close-icon",onClick:e[0]||(e[0]=(...d)=>a.closeHandle&&a.closeHandle(...d))},[r.createVNode(o,{name:"x-outline",height:"20",width:"20",color:"#29333D"})])]),r.createElementVNode("div",JO,[r.renderSlot(t.$slots,"default",{},void 0,!0)])],2)),[[c,n.noCloseOnBackdrop?()=>{}:a.closeHandle]])],2)])):r.createCommentVNode("",!0)}const eD=ne(UO,[["render",QO],["__scopeId","data-v-46ef76f4"]]);var Gh={exports:{}};(function(t,e){var n=9007199254740991,i="[object Arguments]",s="[object Function]",a="[object GeneratorFunction]",o="[object Map]",c="[object Object]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",m="[object DataView]",g=/[\\^$.*+?()[\]{}|]/g,_=/^\[object .+?Constructor\]$/,b=typeof cn=="object"&&cn&&cn.Object===Object&&cn,w=typeof self=="object"&&self&&self.Object===Object&&self,C=b||w||Function("return this")(),S=e&&!e.nodeType&&e,E=S&&!0&&t&&!t.nodeType&&t,A=E&&E.exports===S;function x(te,Ie){return te==null?void 0:te[Ie]}function T(te){var Ie=!1;if(te!=null&&typeof te.toString!="function")try{Ie=!!(te+"")}catch{}return Ie}function N(te,Ie){return function(Ye){return te(Ie(Ye))}}var L=Function.prototype,F=Object.prototype,q=C["__core-js_shared__"],ee=function(){var te=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return te?"Symbol(src)_1."+te:""}(),ie=L.toString,K=F.hasOwnProperty,se=F.toString,me=RegExp("^"+ie.call(K).replace(g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),J=A?C.Buffer:void 0,he=F.propertyIsEnumerable,fe=J?J.isBuffer:void 0,ye=N(Object.keys,Object),we=tt(C,"DataView"),R=tt(C,"Map"),pe=tt(C,"Promise"),oe=tt(C,"Set"),Ee=tt(C,"WeakMap"),Me=!he.call({valueOf:1},"valueOf"),ge=ft(we),Ne=ft(R),lt=ft(pe),Le=ft(oe),ht=ft(Ee);function It(te){return se.call(te)}function kt(te){if(!Dt(te)||rt(te))return!1;var Ie=Ot(te)||T(te)?me:_;return Ie.test(ft(te))}function tt(te,Ie){var Ye=x(te,Ie);return kt(Ye)?Ye:void 0}var st=It;(we&&st(new we(new ArrayBuffer(1)))!=m||R&&st(new R)!=o||pe&&st(pe.resolve())!=d||oe&&st(new oe)!=h||Ee&&st(new Ee)!=f)&&(st=function(te){var Ie=se.call(te),Ye=Ie==c?te.constructor:void 0,pn=Ye?ft(Ye):void 0;if(pn)switch(pn){case ge:return m;case Ne:return o;case lt:return d;case Le:return h;case ht:return f}return Ie});function rt(te){return!!ee&&ee in te}function Yt(te){var Ie=te&&te.constructor,Ye=typeof Ie=="function"&&Ie.prototype||F;return te===Ye}function ft(te){if(te!=null){try{return ie.call(te)}catch{}try{return te+""}catch{}}return""}function Ct(te){return bt(te)&&K.call(te,"callee")&&(!he.call(te,"callee")||se.call(te)==i)}var tn=Array.isArray;function nn(te){return te!=null&&At(te.length)&&!Ot(te)}function bt(te){return un(te)&&nn(te)}var nt=fe||$t;function Nt(te){if(nn(te)&&(tn(te)||typeof te=="string"||typeof te.splice=="function"||nt(te)||Ct(te)))return!te.length;var Ie=st(te);if(Ie==o||Ie==h)return!te.size;if(Me||Yt(te))return!ye(te).length;for(var Ye in te)if(K.call(te,Ye))return!1;return!0}function Ot(te){var Ie=Dt(te)?se.call(te):"";return Ie==s||Ie==a}function At(te){return typeof te=="number"&&te>-1&&te%1==0&&te<=n}function Dt(te){var Ie=typeof te;return!!te&&(Ie=="object"||Ie=="function")}function un(te){return!!te&&typeof te=="object"}function $t(){return!1}t.exports=Nt})(Gh,Gh.exports);const en=Gh.exports,Uue="",tD={components:{CdsIcon:Re,CdsSpacer:Ld,CdsClickable:hs},props:{items:{type:Array,default:()=>[],required:!0}},methods:{resolveRoute({route:t,path:e}){const n=en(t)?e:t;return n instanceof String?{path:n}:n},routerPushTo(t){return this.resolveRoute(t)?this.resolveRoute(t).path:null}}},nD={class:"breadcrumb"};function iD(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon"),c=r.resolveComponent("cds-spacer"),d=r.resolveComponent("router-link"),h=r.resolveComponent("cds-clickable");return r.openBlock(),r.createElementBlock("nav",null,[r.createElementVNode("ul",nD,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.items,(f,m)=>(r.openBlock(),r.createElementBlock("li",{key:`${m}-${f.name}-item`,role:"presentation"},[m===0?(r.openBlock(),r.createBlock(h,{key:0,clickable:""},{default:r.withCtx(()=>[r.createVNode(d,{to:a.routerPushTo(f),class:"breadcrumb__link"},{default:r.withCtx(()=>[n.items.length<=2?(r.openBlock(),r.createBlock(o,{key:0,height:"16",width:"16",name:"arrow-left-outline"})):(r.openBlock(),r.createBlock(o,{key:1,height:"15",width:"15",name:"home-outline"})),r.createVNode(c,{"margin-left":"2"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(f.label),1)]),_:2},1024)]),_:2},1032,["to"])]),_:2},1024)):(r.openBlock(),r.createBlock(c,{key:1,class:"breadcrumb__item","margin-right":"1","margin-left":"1"},{default:r.withCtx(()=>[r.createVNode(o,{height:"16",width:"16",name:"caret-right-outline",class:"breadcrumb__separator"}),r.createVNode(d,{to:a.routerPushTo(f),class:"breadcrumb__link"},{default:r.withCtx(()=>[r.createVNode(h,{clickable:m!==n.items.length-1},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(f.label),1)]),_:2},1032,["clickable"])]),_:2},1032,["to"])]),_:2},1024))]))),128))])])}const sD=ne(tD,[["render",iD],["__scopeId","data-v-3477c806"]]),que="",Kh={props:{src:{type:String,required:!0},fallbackSrc:{type:String,required:!1,default:"https://sysfront.nyc3.cdn.digitaloceanspaces.com/cuida/images/imagePlaceholder.png"},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},round:{type:Boolean,default:!1}},data(){return{innerSrc:this.src}},computed:{heightResolver(){return this.round?`${this.width}px`: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.round?"50%":this.roundedCorners?Uh(this.width):"0px"},grayScaleResolver(){return this.blackAndWhite?"grayscale(100%)":this.dimmed?"grayscale(35%)":"grayscale(0%)"}},methods:{rounder:Uh,imageSrcResolver(){this.innerSrc=this.fallbackSrc}}},_4=()=>{r.useCssVars(t=>({"5ba223ed":t.radiusResolver,"162d6710":t.grayScaleResolver,"6c3ce382":t.heightResolver,"0b2f1f14":t.opacity,"26a26417":t.widthResolver}))},y4=Kh.setup;Kh.setup=y4?(t,e)=>(_4(),y4(t,e)):_4;const rD=Kh,aD=["src","alt"];function oD(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("img",r.mergeProps(t.$attrs,{src:s.innerSrc,alt:n.alt,class:"cds__image",onError:e[0]||(e[0]=(...o)=>a.imageSrcResolver&&a.imageSrcResolver(...o))}),null,16,aD)}const Fd=ne(rD,[["render",oD],["__scopeId","data-v-44f14fbd"]]),Rd=(t,e)=>Object.keys(t).some(n=>n===e),Gue="",Zh={components:{CdsBox:Ll,CdsImage:Fd},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:Rd,handleClick(){this.clickable&&this.$emit("cardClick",!0)}}},v4=()=>{r.useCssVars(t=>({"8d304056":t.bodyWidthResolver,"4730bd46":t.imageWidthResolver}))},b4=Zh.setup;Zh.setup=b4?(t,e)=>(v4(),b4(t,e)):v4;const lD=Zh,cD={class:"card__extra-container"},dD={class:"card__extra"},uD={key:0},hD={key:1,class:"card__image"},fD={key:2,class:"card__icon"},pD={class:"card__spacer"},mD={key:0,class:"card__header"},gD={key:1},_D={class:"card__header"},yD={key:2,class:"card__body"},vD={key:3},bD={class:"card__body"},wD={key:4,class:"card__footer"};function kD(t,e,n,i,s,a){const o=r.resolveComponent("cds-image"),c=r.resolveComponent("cds-box");return r.openBlock(),r.createBlock(c,{padding:"0",clickable:n.clickable,onBoxClick:a.handleClick},{default:r.withCtx(()=>[r.createElementVNode("div",cD,[r.createElementVNode("div",dD,[r.renderSlot(t.$slots,"extra",{},void 0,!0)])]),r.createElementVNode("div",{class:r.normalizeClass({"card--horizontal":this.horizontal})},[a.hasSlot(t.$slots,"image")?(r.openBlock(),r.createElementBlock("div",uD,[r.renderSlot(t.$slots,"image",{},void 0,!0)])):n.imageSrc?(r.openBlock(),r.createElementBlock("div",hD,[r.createVNode(o,{src:n.imageSrc,width:n.imageWidth,height:n.imageHeight,alt:n.imageAlt},null,8,["src","width","height","alt"])])):a.hasSlot(t.$slots,"icon")?(r.openBlock(),r.createElementBlock("div",fD,[r.renderSlot(t.$slots,"icon",{},void 0,!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",pD,[a.hasSlot(t.$slots,"header")?(r.openBlock(),r.createElementBlock("div",mD,[r.renderSlot(t.$slots,"header",{},void 0,!0)])):(r.openBlock(),r.createElementBlock("div",gD,[r.createElementVNode("p",_D,r.toDisplayString(n.title),1)])),a.hasSlot(t.$slots,"body")?(r.openBlock(),r.createElementBlock("div",yD,[r.renderSlot(t.$slots,"body",{},void 0,!0)])):(r.openBlock(),r.createElementBlock("div",vD,[r.createElementVNode("p",bD,r.toDisplayString(n.content),1)])),a.hasSlot(t.$slots,"footer")?(r.openBlock(),r.createElementBlock("div",wD,[r.renderSlot(t.$slots,"footer",{},void 0,!0)])):r.createCommentVNode("",!0)])],2)]),_:3},8,["clickable","onBoxClick"])}const CD=ne(lD,[["render",kD],["__scopeId","data-v-ef799654"]]),Kue="",xD={components:{CdsButton:js},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}}},SD={id:"callout-card"},MD={class:"image__container"},OD=["src","alt"],DD={class:"content__title"},ED={class:"content__text"};function VD(t,e,n,i,s,a){const o=r.resolveComponent("cds-button");return r.openBlock(),r.createElementBlock("span",SD,[r.createElementVNode("div",{class:r.normalizeClass(a.resolveClass("callout-card__container"))},[r.createElementVNode("div",MD,[r.createElementVNode("img",{class:r.normalizeClass(a.resolveClass("image__content")),src:n.image,alt:n.imageDescription},null,10,OD)]),r.createElementVNode("div",{class:r.normalizeClass(a.resolveClass("content__container"))},[r.createElementVNode("div",{class:r.normalizeClass(a.resolveClass("content"))},[r.createElementVNode("p",DD,r.toDisplayString(n.title),1),r.createElementVNode("span",ED,[r.renderSlot(t.$slots,"text",{},()=>[r.createTextVNode(r.toDisplayString(n.text),1)])])],2),r.createElementVNode("div",null,[r.renderSlot(t.$slots,"action",{},()=>[r.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 BD=ne(xD,[["render",VD]]),Zue="",TD={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}))}}}},ID={key:0,class:"carousel-controller__text"},AD={key:1,class:"carousel-controller__text"},$D={class:"carousel-controller__property"};function ND(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("div",{class:r.normalizeClass(["carousel-controller",{"carousel-controller--fluid":n.fluid}])},[r.createElementVNode("span",{class:r.normalizeClass({"carousel-controller__previous-button--disabled":a.disabledBack,"carousel-controller__previous-button":!a.disabledBack}),onClick:e[0]||(e[0]=(...o)=>a.handleClickBack&&a.handleClickBack(...o))},null,2),r.createElementVNode("div",null,[n.simple?(r.openBlock(),r.createElementBlock("span",AD,r.toDisplayString(s.currentNumberOfItemsMin)+" de "+r.toDisplayString(a.numberOfPages),1)):(r.openBlock(),r.createElementBlock("span",ID,r.toDisplayString(s.currentNumberOfItemsMin)+"-"+r.toDisplayString(s.currentNumberOfItemsMax)+" de "+r.toDisplayString(n.total),1)),r.createElementVNode("span",$D,r.toDisplayString(n.propertyName),1)]),r.createElementVNode("span",{class:r.normalizeClass({"carousel-controller__next-button--disabled":a.disabledForward,"carousel-controller__next-button":!a.disabledForward}),onClick:e[1]||(e[1]=(...o)=>a.handleClickForward&&a.handleClickForward(...o))},null,2)],2)])}const zD=ne(TD,[["render",ND],["__scopeId","data-v-fcb19a0a"]]);function Xh(t,e){return`${t}--${e}`}const Xue="",PD={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=Xh("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))}}},LD={class:"cds-checkbox__container"},FD={class:"cds-checkbox__input"},RD=["id","value","name","disabled"],HD=["for"],WD=["for"];function YD(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",LD,[r.createElementVNode("div",FD,[r.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,RD),r.createElementVNode("label",{for:t.$attrs.id||"cds-checkbox-option-input",class:r.normalizeClass(a.resolveCheckboxClass),onClick:e[0]||(e[0]=(...o)=>a.toggleValue&&a.toggleValue(...o))},null,10,HD)]),r.createElementVNode("label",{class:r.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)=>a.toggleValue&&a.toggleValue(...o))},r.toDisplayString(n.label),11,WD)])}const Hd=ne(PD,[["render",YD],["__scopeId","data-v-0758b096"]]),Wd=[{name:"turquoise",hex:"#3CACDD",lighterHex:"#C2EDFF",lightestHex:"#f5fbff"},{name:"teal",hex:"#3CACDD",lighterHex:"#C2EDFF",lightestHex:"#eefcfa"},{name:"green",hex:"#2AC092",lighterHex:"#ABEDD9",lightestHex:"#f3fcf8"},{name:"blue",hex:"#377EE1",lighterHex:"#B6D1F7",lightestHex:"#f6f9fe"},{name:"indigo",hex:"#6174D1",lighterHex:"#CED6FD",lightestHex:"#f5f6ff"},{name:"violet",hex:"#A169D3",lighterHex:"#E6D2F9",lightestHex:"#faf5ff"},{name:"pink",hex:"#DD5A9C",lighterHex:"#F9C8E2",lightestHex:"#fff5fb"},{name:"red",hex:"#F95367",lighterHex:"#FBD0D6",lightestHex:"#fef6f7"},{name:"orange",hex:"#FF8567",lighterHex:"#FFD6CC",lightestHex:"#fef7f6"},{name:"amber",hex:"#FFB952",lighterHex:"#FFE2B8",lightestHex:"#fefbf6"},{name:"gray",hex:"#9AA8B6",lighterHex:"#ABB8C4",lightestHex:"#D6DCE3"}],ks=Wd.map(t=>t.name),Ya=t=>{const e=Wd.filter(n=>n.name===t)[0];return e?e.hex:""},jD=t=>{const e=Wd.filter(n=>n.name===t)[0];return e?e.lightestHex:""},UD=t=>ks.includes(t),Jue="",qD={class:"checkbox__container"},GD={class:"checkbox__label"},KD={key:0,class:"checkbox__required"},ZD=["onClick"],XD={key:0,class:"checkbox__error-message"},JD=ne({__name:"CheckboxGroup",props:{modelValue:{type:Array,default:()=>[]},options:{type:Array,default:()=>[]},label:{type:String,default:"Label"},required:{type:Boolean,default:!1},variant:{type:String,default:"green",validator:UD},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},errorMessage:{type:String,default:"Valor inv\xE1lido"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,i=e,s=r.ref([]),a=r.ref(0),o=r.computed(()=>n.state==="invalid");r.watch(s,()=>a.value+=1),r.onMounted(()=>{s.value=n.modelValue});function c(h){if(n.disabled)return"checkbox__item--disabled";const f=o.value?"checkbox__item--error":Xh("checkbox__item",n.variant);return s.value.includes(h)?`checkbox__item--selected ${f}`:`checkbox__item ${o.value?f:""}`}function d(h){if(!n.disabled){if(s.value.includes(h)){s.value=s.value.filter(f=>f!==h),i("update:modelValue",s.value);return}s.value.push(h),i("update:modelValue",s.value)}}return(h,f)=>(r.openBlock(),r.createElementBlock("div",qD,[r.createElementVNode("label",GD,[r.createTextVNode(r.toDisplayString(t.label)+" ",1),t.required?(r.openBlock(),r.createElementBlock("span",KD," * ")):r.createCommentVNode("",!0)]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.options,m=>(r.openBlock(),r.createElementBlock("div",{key:m.value,class:r.normalizeClass(c(m.value)),onClick:g=>d(m.value)},[r.createVNode(Hd,{id:m.value,"model-value":s.value.includes(m.value),label:m.label,disabled:t.disabled,variant:t.variant},null,8,["id","model-value","label","disabled","variant"])],10,ZD))),128)),o.value&&!t.disabled?(r.openBlock(),r.createElementBlock("div",XD,r.toDisplayString(t.errorMessage),1)):r.createCommentVNode("",!0)]))}},[["__scopeId","data-v-777bada1"]]),e1e="",QD={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}}},eE={id:"collapsible-container"},tE={class:"collapsible-container__title"},nE={key:0,class:"collapsible-container__content"};function iE(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("span",eE,[r.createElementVNode("div",{class:"collapsible-container__item",onClick:e[0]||(e[0]=(...o)=>a.triggerExpanded&&a.triggerExpanded(...o))},[r.createElementVNode("span",{class:r.normalizeClass(s.internalValue?"collapsible-container__chevron--opened":"collapsible-container__chevron--closed")},null,2),r.renderSlot(t.$slots,"title",{},()=>[r.createElementVNode("span",tE,r.toDisplayString(n.title),1)])]),s.internalValue?(r.openBlock(),r.createElementBlock("div",nE,[r.renderSlot(t.$slots,"default")])):r.createCommentVNode("",!0)])}const sE=ne(QD,[["render",iE]]),Jh=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},rE=.2126,aE=.7152,oE=.0722,lE=2.4,cE={POOR:3,GOOD:4.5,VERYGOOD:7,SUPER:12},dE=(t,e,n="GOOD")=>{let i=Jh(t),s=Jh(e);var a=w4(...i),o=w4(...s),c=Math.max(a,o),d=Math.min(a,o);return(c+.05)/(d+.05)>=cE[n]};function w4(t,e,n){var i=[t,e,n].map(s=>(s/=255,s<=.03928?s/12.92:Math.pow((s+.055)/1.055,lE)));return i[0]*rE+i[1]*aE+i[2]*oE}const t1e="",Qh={components:{CdsPopover:Pc,CdsIcon:Re},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:Wn,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:ts,ContrastChecker:dE,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,"")]}}},k4=()=>{r.useCssVars(t=>({f73e5680:t.selectedColor}))},C4=Qh.setup;Qh.setup=C4?(t,e)=>(k4(),C4(t,e)):k4;const uE=Qh,hE=t=>(r.pushScopeId("data-v-a4ff5e3b"),t=t(),r.popScopeId(),t),fE={key:0},pE={class:"color-picker__label"},mE=["onClick"],gE={key:1},_E=[hE(()=>r.createElementVNode("div",{class:"color-picker__preview"},null,-1))],yE=["onClick"];function vE(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon"),c=r.resolveComponent("cds-popover");return n.inline?(r.openBlock(),r.createElementBlock("div",fE,[r.createElementVNode("div",pE,r.toDisplayString(n.label),1),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.swatch,(d,h)=>(r.openBlock(),r.createElementBlock("div",{key:h,class:"color-picker__container"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d,(f,m)=>(r.openBlock(),r.createElementBlock("div",{key:m},[r.createElementVNode("div",{class:r.normalizeClass(`color-picker__swatch--${f.replace("$","")}`),onClick:g=>a.SwatchSelection(f)},[a.isCurrentColorSelected(f)?(r.openBlock(),r.createBlock(o,{key:0,height:"22",width:"22",name:"check-outline",class:r.normalizeClass(["swatch__icon",a.iconColorResolver])},null,8,["class"])):r.createCommentVNode("",!0)],10,mE)]))),128))]))),128))])):(r.openBlock(),r.createElementBlock("div",gE,[r.createElementVNode("div",{id:"color-picker",class:"color-picker__trigger",onClick:e[0]||(e[0]=r.withModifiers(d=>s.showPopover=!s.showPopover,["stop"]))},_E),r.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:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.swatch,(d,h)=>(r.openBlock(),r.createElementBlock("div",{key:h,class:"popover__container"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d,(f,m)=>(r.openBlock(),r.createElementBlock("div",{key:m},[r.createElementVNode("div",{class:r.normalizeClass(`color-picker__swatch--${f.replace("$","")}`),onClick:g=>a.SwatchSelection(f)},[a.isCurrentColorSelected(f)?(r.openBlock(),r.createBlock(o,{key:0,height:"22",width:"22",name:"check-outline",class:r.normalizeClass(["swatch__icon",a.iconColorResolver])},null,8,["class"])):r.createCommentVNode("",!0)],10,yE)]))),128))]))),128))]),_:1},8,["modelValue","height"])]))}const bE=ne(uE,[["render",vE],["__scopeId","data-v-a4ff5e3b"]]),i1e="",wE={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}}},kE={class:"dashboard-card"},CE={class:"dashboard-card__header"},xE={key:0,class:"dashboard-card__title"},SE={key:1,class:"dashboard-card__title"},ME={key:0,class:"dashboard-card__description"},OE={key:1,class:"dashboard-card__description"},DE={key:0};function EE(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",kE,[r.createElementVNode("div",null,[r.createElementVNode("div",CE,[n.title.length>0?(r.openBlock(),r.createElementBlock("p",xE,r.toDisplayString(n.title),1)):(r.openBlock(),r.createElementBlock("p",SE,[r.renderSlot(t.$slots,"title-slot",{},void 0,!0)])),r.createElementVNode("div",null,[r.renderSlot(t.$slots,"status-slot",{},void 0,!0)])]),n.description.length>0?(r.openBlock(),r.createElementBlock("p",ME,r.toDisplayString(n.description),1)):(r.openBlock(),r.createElementBlock("p",OE,[r.renderSlot(t.$slots,"description-slot",{},void 0,!0)]))]),r.createElementVNode("div",{class:"dashboard-card__action",onClick:e[0]||(e[0]=o=>t.$emit("action-button-click"))},[r.renderSlot(t.$slots,"action-slot",{},()=>[n.showAction?(r.openBlock(),r.createElementBlock("div",DE,r.toDisplayString(n.action),1)):r.createCommentVNode("",!0)],!0)])])}const VE=ne(wE,[["render",EE],["__scopeId","data-v-cd0db219"]]);var BE=Object.defineProperty,TE=(t,e,n)=>e in t?BE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xe=(t,e,n)=>(TE(t,typeof e!="symbol"?e+"":e,n),n),Yd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function x4(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var IE=Object.prototype,AE=IE.hasOwnProperty;function $E(t,e){return t!=null&&AE.call(t,e)}var NE=$E,zE=Array.isArray,Li=zE,PE=typeof Yd=="object"&&Yd&&Yd.Object===Object&&Yd,S4=PE,LE=S4,FE=typeof self=="object"&&self&&self.Object===Object&&self,RE=LE||FE||Function("return this")(),ns=RE,HE=ns,WE=HE.Symbol,jd=WE,M4=jd,O4=Object.prototype,YE=O4.hasOwnProperty,jE=O4.toString,Fl=M4?M4.toStringTag:void 0;function UE(t){var e=YE.call(t,Fl),n=t[Fl];try{t[Fl]=void 0;var i=!0}catch{}var s=jE.call(t);return i&&(e?t[Fl]=n:delete t[Fl]),s}var qE=UE,GE=Object.prototype,KE=GE.toString;function ZE(t){return KE.call(t)}var XE=ZE,D4=jd,JE=qE,QE=XE,eV="[object Null]",tV="[object Undefined]",E4=D4?D4.toStringTag:void 0;function nV(t){return t==null?t===void 0?tV:eV:E4&&E4 in Object(t)?JE(t):QE(t)}var is=nV;function iV(t){return t!=null&&typeof t=="object"}var Fi=iV,sV=is,rV=Fi,aV="[object Symbol]";function oV(t){return typeof t=="symbol"||rV(t)&&sV(t)==aV}var e0=oV,lV=Li,cV=e0,dV=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,uV=/^\w*$/;function hV(t,e){if(lV(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||cV(t)?!0:uV.test(t)||!dV.test(t)||e!=null&&t in Object(e)}var t0=hV;function fV(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Cs=fV,pV=is,mV=Cs,gV="[object AsyncFunction]",_V="[object Function]",yV="[object GeneratorFunction]",vV="[object Proxy]";function bV(t){if(!mV(t))return!1;var e=pV(t);return e==_V||e==yV||e==gV||e==vV}var Ur=bV,wV=ns,kV=wV["__core-js_shared__"],CV=kV,n0=CV,V4=function(){var t=/[^.]+$/.exec(n0&&n0.keys&&n0.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function xV(t){return!!V4&&V4 in t}var SV=xV,MV=Function.prototype,OV=MV.toString;function DV(t){if(t!=null){try{return OV.call(t)}catch{}try{return t+""}catch{}}return""}var B4=DV,EV=Ur,VV=SV,BV=Cs,TV=B4,IV=/[\\^$.*+?()[\]{}|]/g,AV=/^\[object .+?Constructor\]$/,$V=Function.prototype,NV=Object.prototype,zV=$V.toString,PV=NV.hasOwnProperty,LV=RegExp("^"+zV.call(PV).replace(IV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function FV(t){if(!BV(t)||VV(t))return!1;var e=EV(t)?LV:AV;return e.test(TV(t))}var RV=FV;function HV(t,e){return t==null?void 0:t[e]}var WV=HV,YV=RV,jV=WV;function UV(t,e){var n=jV(t,e);return YV(n)?n:void 0}var qr=UV,qV=qr,GV=qV(Object,"create"),Ud=GV,T4=Ud;function KV(){this.__data__=T4?T4(null):{},this.size=0}var ZV=KV;function XV(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var JV=XV,QV=Ud,eB="__lodash_hash_undefined__",tB=Object.prototype,nB=tB.hasOwnProperty;function iB(t){var e=this.__data__;if(QV){var n=e[t];return n===eB?void 0:n}return nB.call(e,t)?e[t]:void 0}var sB=iB,rB=Ud,aB=Object.prototype,oB=aB.hasOwnProperty;function lB(t){var e=this.__data__;return rB?e[t]!==void 0:oB.call(e,t)}var cB=lB,dB=Ud,uB="__lodash_hash_undefined__";function hB(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=dB&&e===void 0?uB:e,this}var fB=hB,pB=ZV,mB=JV,gB=sB,_B=cB,yB=fB;function ja(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])}}ja.prototype.clear=pB,ja.prototype.delete=mB,ja.prototype.get=gB,ja.prototype.has=_B,ja.prototype.set=yB;var vB=ja;function bB(){this.__data__=[],this.size=0}var wB=bB;function kB(t,e){return t===e||t!==t&&e!==e}var Ua=kB,CB=Ua;function xB(t,e){for(var n=t.length;n--;)if(CB(t[n][0],e))return n;return-1}var qd=xB,SB=qd,MB=Array.prototype,OB=MB.splice;function DB(t){var e=this.__data__,n=SB(e,t);if(n<0)return!1;var i=e.length-1;return n==i?e.pop():OB.call(e,n,1),--this.size,!0}var EB=DB,VB=qd;function BB(t){var e=this.__data__,n=VB(e,t);return n<0?void 0:e[n][1]}var TB=BB,IB=qd;function AB(t){return IB(this.__data__,t)>-1}var $B=AB,NB=qd;function zB(t,e){var n=this.__data__,i=NB(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}var PB=zB,LB=wB,FB=EB,RB=TB,HB=$B,WB=PB;function qa(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])}}qa.prototype.clear=LB,qa.prototype.delete=FB,qa.prototype.get=RB,qa.prototype.has=HB,qa.prototype.set=WB;var Gd=qa,YB=qr,jB=ns,UB=YB(jB,"Map"),i0=UB,I4=vB,qB=Gd,GB=i0;function KB(){this.size=0,this.__data__={hash:new I4,map:new(GB||qB),string:new I4}}var ZB=KB;function XB(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var JB=XB,QB=JB;function eT(t,e){var n=t.__data__;return QB(e)?n[typeof e=="string"?"string":"hash"]:n.map}var Kd=eT,tT=Kd;function nT(t){var e=tT(this,t).delete(t);return this.size-=e?1:0,e}var iT=nT,sT=Kd;function rT(t){return sT(this,t).get(t)}var aT=rT,oT=Kd;function lT(t){return oT(this,t).has(t)}var cT=lT,dT=Kd;function uT(t,e){var n=dT(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}var hT=uT,fT=ZB,pT=iT,mT=aT,gT=cT,_T=hT;function Ga(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])}}Ga.prototype.clear=fT,Ga.prototype.delete=pT,Ga.prototype.get=mT,Ga.prototype.has=gT,Ga.prototype.set=_T;var s0=Ga,A4=s0,yT="Expected a function";function r0(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(yT);var n=function(){var i=arguments,s=e?e.apply(this,i):i[0],a=n.cache;if(a.has(s))return a.get(s);var o=t.apply(this,i);return n.cache=a.set(s,o)||a,o};return n.cache=new(r0.Cache||A4),n}r0.Cache=A4;var vT=r0,bT=vT,wT=500;function kT(t){var e=bT(t,function(i){return n.size===wT&&n.clear(),i}),n=e.cache;return e}var CT=kT,xT=CT,ST=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,MT=/\\(\\)?/g,OT=xT(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(ST,function(n,i,s,a){e.push(s?a.replace(MT,"$1"):i||n)}),e}),DT=OT;function ET(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 VT=ET,$4=jd,BT=VT,TT=Li,IT=e0,AT=1/0,N4=$4?$4.prototype:void 0,z4=N4?N4.toString:void 0;function P4(t){if(typeof t=="string")return t;if(TT(t))return BT(t,P4)+"";if(IT(t))return z4?z4.call(t):"";var e=t+"";return e=="0"&&1/t==-AT?"-0":e}var $T=P4,NT=$T;function zT(t){return t==null?"":NT(t)}var PT=zT,LT=Li,FT=t0,RT=DT,HT=PT;function WT(t,e){return LT(t)?t:FT(t,e)?[t]:RT(HT(t))}var L4=WT,YT=is,jT=Fi,UT="[object Arguments]";function qT(t){return jT(t)&&YT(t)==UT}var GT=qT,F4=GT,KT=Fi,R4=Object.prototype,ZT=R4.hasOwnProperty,XT=R4.propertyIsEnumerable,JT=F4(function(){return arguments}())?F4:function(t){return KT(t)&&ZT.call(t,"callee")&&!XT.call(t,"callee")},a0=JT,QT=9007199254740991,eI=/^(?:0|[1-9]\d*)$/;function tI(t,e){var n=typeof t;return e=e??QT,!!e&&(n=="number"||n!="symbol"&&eI.test(t))&&t>-1&&t%1==0&&t<e}var o0=tI,nI=9007199254740991;function iI(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=nI}var l0=iI,sI=e0,rI=1/0;function aI(t){if(typeof t=="string"||sI(t))return t;var e=t+"";return e=="0"&&1/t==-rI?"-0":e}var Zd=aI,oI=L4,lI=a0,cI=Li,dI=o0,uI=l0,hI=Zd;function fI(t,e,n){e=oI(e,t);for(var i=-1,s=e.length,a=!1;++i<s;){var o=hI(e[i]);if(!(a=t!=null&&n(t,o)))break;t=t[o]}return a||++i!=s?a:(s=t==null?0:t.length,!!s&&uI(s)&&dI(o,s)&&(cI(t)||lI(t)))}var H4=fI,pI=NE,mI=H4;function gI(t,e){return t!=null&&mI(t,e,pI)}var W4=gI,_I=is,yI=Fi,vI="[object Date]";function bI(t){return yI(t)&&_I(t)==vI}var wI=bI;function kI(t){return function(e){return t(e)}}var Y4=kI,Rl={},CI={get exports(){return Rl},set exports(t){Rl=t}};(function(t,e){var n=S4,i=e&&!e.nodeType&&e,s=i&&!0&&t&&!t.nodeType&&t,a=s&&s.exports===i,o=a&&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})(CI,Rl);var xI=wI,SI=Y4,j4=Rl,U4=j4&&j4.isDate,MI=U4?SI(U4):xI,OI=MI,DI=is,EI=Li,VI=Fi,BI="[object String]";function TI(t){return typeof t=="string"||!EI(t)&&VI(t)&&DI(t)==BI}var ss=TI;function II(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 q4=II,AI=Gd;function $I(){this.__data__=new AI,this.size=0}var NI=$I;function zI(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var PI=zI;function LI(t){return this.__data__.get(t)}var FI=LI;function RI(t){return this.__data__.has(t)}var HI=RI,WI=Gd,YI=i0,jI=s0,UI=200;function qI(t,e){var n=this.__data__;if(n instanceof WI){var i=n.__data__;if(!YI||i.length<UI-1)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new jI(i)}return n.set(t,e),this.size=n.size,this}var GI=qI,KI=Gd,ZI=NI,XI=PI,JI=FI,QI=HI,eA=GI;function Ka(t){var e=this.__data__=new KI(t);this.size=e.size}Ka.prototype.clear=ZI,Ka.prototype.delete=XI,Ka.prototype.get=JI,Ka.prototype.has=QI,Ka.prototype.set=eA;var c0=Ka,tA="__lodash_hash_undefined__";function nA(t){return this.__data__.set(t,tA),this}var iA=nA;function sA(t){return this.__data__.has(t)}var rA=sA,aA=s0,oA=iA,lA=rA;function Xd(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new aA;++e<n;)this.add(t[e])}Xd.prototype.add=Xd.prototype.push=oA,Xd.prototype.has=lA;var cA=Xd;function dA(t,e){return t.has(e)}var uA=dA,hA=cA,fA=q4,pA=uA,mA=1,gA=2;function _A(t,e,n,i,s,a){var o=n&mA,c=t.length,d=e.length;if(c!=d&&!(o&&d>c))return!1;var h=a.get(t),f=a.get(e);if(h&&f)return h==e&&f==t;var m=-1,g=!0,_=n&gA?new hA:void 0;for(a.set(t,e),a.set(e,t);++m<c;){var b=t[m],w=e[m];if(i)var C=o?i(w,b,m,e,t,a):i(b,w,m,t,e,a);if(C!==void 0){if(C)continue;g=!1;break}if(_){if(!fA(e,function(S,E){if(!pA(_,E)&&(b===S||s(b,S,n,i,a)))return _.push(E)})){g=!1;break}}else if(!(b===w||s(b,w,n,i,a))){g=!1;break}}return a.delete(t),a.delete(e),g}var G4=_A,yA=ns,vA=yA.Uint8Array,K4=vA;function bA(t){var e=-1,n=Array(t.size);return t.forEach(function(i,s){n[++e]=[s,i]}),n}var wA=bA;function kA(t){var e=-1,n=Array(t.size);return t.forEach(function(i){n[++e]=i}),n}var CA=kA,Z4=jd,X4=K4,xA=Ua,SA=G4,MA=wA,OA=CA,DA=1,EA=2,VA="[object Boolean]",BA="[object Date]",TA="[object Error]",IA="[object Map]",AA="[object Number]",$A="[object RegExp]",NA="[object Set]",zA="[object String]",PA="[object Symbol]",LA="[object ArrayBuffer]",FA="[object DataView]",J4=Z4?Z4.prototype:void 0,d0=J4?J4.valueOf:void 0;function RA(t,e,n,i,s,a,o){switch(n){case FA:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case LA:return!(t.byteLength!=e.byteLength||!a(new X4(t),new X4(e)));case VA:case BA:case AA:return xA(+t,+e);case TA:return t.name==e.name&&t.message==e.message;case $A:case zA:return t==e+"";case IA:var c=MA;case NA:var d=i&DA;if(c||(c=OA),t.size!=e.size&&!d)return!1;var h=o.get(t);if(h)return h==e;i|=EA,o.set(t,e);var f=SA(c(t),c(e),i,s,a,o);return o.delete(t),f;case PA:if(d0)return d0.call(t)==d0.call(e)}return!1}var HA=RA;function WA(t,e){for(var n=-1,i=e.length,s=t.length;++n<i;)t[s+n]=e[n];return t}var YA=WA,jA=YA,UA=Li;function qA(t,e,n){var i=e(t);return UA(t)?i:jA(i,n(t))}var GA=qA;function KA(t,e){for(var n=-1,i=t==null?0:t.length,s=0,a=[];++n<i;){var o=t[n];e(o,n,t)&&(a[s++]=o)}return a}var ZA=KA;function XA(){return[]}var JA=XA,QA=ZA,e$=JA,t$=Object.prototype,n$=t$.propertyIsEnumerable,Q4=Object.getOwnPropertySymbols,i$=Q4?function(t){return t==null?[]:(t=Object(t),QA(Q4(t),function(e){return n$.call(t,e)}))}:e$,s$=i$;function r$(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}var a$=r$,Za={},o$={get exports(){return Za},set exports(t){Za=t}};function l$(){return!1}var c$=l$;(function(t,e){var n=ns,i=c$,s=e&&!e.nodeType&&e,a=s&&!0&&t&&!t.nodeType&&t,o=a&&a.exports===s,c=o?n.Buffer:void 0,d=c?c.isBuffer:void 0,h=d||i;t.exports=h})(o$,Za);var d$=is,u$=l0,h$=Fi,f$="[object Arguments]",p$="[object Array]",m$="[object Boolean]",g$="[object Date]",_$="[object Error]",y$="[object Function]",v$="[object Map]",b$="[object Number]",w$="[object Object]",k$="[object RegExp]",C$="[object Set]",x$="[object String]",S$="[object WeakMap]",M$="[object ArrayBuffer]",O$="[object DataView]",D$="[object Float32Array]",E$="[object Float64Array]",V$="[object Int8Array]",B$="[object Int16Array]",T$="[object Int32Array]",I$="[object Uint8Array]",A$="[object Uint8ClampedArray]",$$="[object Uint16Array]",N$="[object Uint32Array]",Tt={};Tt[D$]=Tt[E$]=Tt[V$]=Tt[B$]=Tt[T$]=Tt[I$]=Tt[A$]=Tt[$$]=Tt[N$]=!0,Tt[f$]=Tt[p$]=Tt[M$]=Tt[m$]=Tt[O$]=Tt[g$]=Tt[_$]=Tt[y$]=Tt[v$]=Tt[b$]=Tt[w$]=Tt[k$]=Tt[C$]=Tt[x$]=Tt[S$]=!1;function z$(t){return h$(t)&&u$(t.length)&&!!Tt[d$(t)]}var P$=z$,L$=P$,F$=Y4,e_=Rl,t_=e_&&e_.isTypedArray,R$=t_?F$(t_):L$,u0=R$,H$=a$,W$=a0,Y$=Li,j$=Za,U$=o0,q$=u0,G$=Object.prototype,K$=G$.hasOwnProperty;function Z$(t,e){var n=Y$(t),i=!n&&W$(t),s=!n&&!i&&j$(t),a=!n&&!i&&!s&&q$(t),o=n||i||s||a,c=o?H$(t.length,String):[],d=c.length;for(var h in t)(e||K$.call(t,h))&&!(o&&(h=="length"||s&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||U$(h,d)))&&c.push(h);return c}var n_=Z$,X$=Object.prototype;function J$(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||X$;return t===n}var h0=J$;function Q$(t,e){return function(n){return t(e(n))}}var i_=Q$,eN=i_,tN=eN(Object.keys,Object),nN=tN,iN=h0,sN=nN,rN=Object.prototype,aN=rN.hasOwnProperty;function oN(t){if(!iN(t))return sN(t);var e=[];for(var n in Object(t))aN.call(t,n)&&n!="constructor"&&e.push(n);return e}var lN=oN,cN=Ur,dN=l0;function uN(t){return t!=null&&dN(t.length)&&!cN(t)}var Hl=uN,hN=n_,fN=lN,pN=Hl;function mN(t){return pN(t)?hN(t):fN(t)}var f0=mN,gN=GA,_N=s$,yN=f0;function vN(t){return gN(t,yN,_N)}var bN=vN,s_=bN,wN=1,kN=Object.prototype,CN=kN.hasOwnProperty;function xN(t,e,n,i,s,a){var o=n&wN,c=s_(t),d=c.length,h=s_(e),f=h.length;if(d!=f&&!o)return!1;for(var m=d;m--;){var g=c[m];if(!(o?g in e:CN.call(e,g)))return!1}var _=a.get(t),b=a.get(e);if(_&&b)return _==e&&b==t;var w=!0;a.set(t,e),a.set(e,t);for(var C=o;++m<d;){g=c[m];var S=t[g],E=e[g];if(i)var A=o?i(E,S,g,e,t,a):i(S,E,g,t,e,a);if(!(A===void 0?S===E||s(S,E,n,i,a):A)){w=!1;break}C||(C=g=="constructor")}if(w&&!C){var x=t.constructor,T=e.constructor;x!=T&&"constructor"in t&&"constructor"in e&&!(typeof x=="function"&&x instanceof x&&typeof T=="function"&&T instanceof T)&&(w=!1)}return a.delete(t),a.delete(e),w}var SN=xN,MN=qr,ON=ns,DN=MN(ON,"DataView"),EN=DN,VN=qr,BN=ns,TN=VN(BN,"Promise"),IN=TN,AN=qr,$N=ns,NN=AN($N,"Set"),zN=NN,PN=qr,LN=ns,FN=PN(LN,"WeakMap"),RN=FN,p0=EN,m0=i0,g0=IN,_0=zN,y0=RN,r_=is,Xa=B4,a_="[object Map]",HN="[object Object]",o_="[object Promise]",l_="[object Set]",c_="[object WeakMap]",d_="[object DataView]",WN=Xa(p0),YN=Xa(m0),jN=Xa(g0),UN=Xa(_0),qN=Xa(y0),Gr=r_;(p0&&Gr(new p0(new ArrayBuffer(1)))!=d_||m0&&Gr(new m0)!=a_||g0&&Gr(g0.resolve())!=o_||_0&&Gr(new _0)!=l_||y0&&Gr(new y0)!=c_)&&(Gr=function(t){var e=r_(t),n=e==HN?t.constructor:void 0,i=n?Xa(n):"";if(i)switch(i){case WN:return d_;case YN:return a_;case jN:return o_;case UN:return l_;case qN:return c_}return e});var GN=Gr,v0=c0,KN=G4,ZN=HA,XN=SN,u_=GN,h_=Li,f_=Za,JN=u0,QN=1,p_="[object Arguments]",m_="[object Array]",Jd="[object Object]",ez=Object.prototype,g_=ez.hasOwnProperty;function tz(t,e,n,i,s,a){var o=h_(t),c=h_(e),d=o?m_:u_(t),h=c?m_:u_(e);d=d==p_?Jd:d,h=h==p_?Jd:h;var f=d==Jd,m=h==Jd,g=d==h;if(g&&f_(t)){if(!f_(e))return!1;o=!0,f=!1}if(g&&!f)return a||(a=new v0),o||JN(t)?KN(t,e,n,i,s,a):ZN(t,e,d,n,i,s,a);if(!(n&QN)){var _=f&&g_.call(t,"__wrapped__"),b=m&&g_.call(e,"__wrapped__");if(_||b){var w=_?t.value():t,C=b?e.value():e;return a||(a=new v0),s(w,C,n,i,a)}}return g?(a||(a=new v0),XN(t,e,n,i,s,a)):!1}var nz=tz,iz=nz,__=Fi;function y_(t,e,n,i,s){return t===e?!0:t==null||e==null||!__(t)&&!__(e)?t!==t&&e!==e:iz(t,e,n,i,y_,s)}var v_=y_,sz=c0,rz=v_,az=1,oz=2;function lz(t,e,n,i){var s=n.length,a=s,o=!i;if(t==null)return!a;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<a;){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 sz;if(i)var g=i(h,f,d,t,e,m);if(!(g===void 0?rz(f,h,az|oz,i,m):g))return!1}}return!0}var cz=lz,dz=Cs;function uz(t){return t===t&&!dz(t)}var b_=uz,hz=b_,fz=f0;function pz(t){for(var e=fz(t),n=e.length;n--;){var i=e[n],s=t[i];e[n]=[i,s,hz(s)]}return e}var mz=pz;function gz(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}var w_=gz,_z=cz,yz=mz,vz=w_;function bz(t){var e=yz(t);return e.length==1&&e[0][2]?vz(e[0][0],e[0][1]):function(n){return n===t||_z(n,t,e)}}var wz=bz,kz=L4,Cz=Zd;function xz(t,e){e=kz(e,t);for(var n=0,i=e.length;t!=null&&n<i;)t=t[Cz(e[n++])];return n&&n==i?t:void 0}var k_=xz,Sz=k_;function Mz(t,e,n){var i=t==null?void 0:Sz(t,e);return i===void 0?n:i}var Kr=Mz;function Oz(t,e){return t!=null&&e in Object(t)}var Dz=Oz,Ez=Dz,Vz=H4;function Bz(t,e){return t!=null&&Vz(t,e,Ez)}var Tz=Bz,Iz=v_,Az=Kr,$z=Tz,Nz=t0,zz=b_,Pz=w_,Lz=Zd,Fz=1,Rz=2;function Hz(t,e){return Nz(t)&&zz(e)?Pz(Lz(t),e):function(n){var i=Az(n,t);return i===void 0&&i===e?$z(n,t):Iz(e,i,Fz|Rz)}}var Wz=Hz;function Yz(t){return t}var b0=Yz;function jz(t){return function(e){return e==null?void 0:e[t]}}var Uz=jz,qz=k_;function Gz(t){return function(e){return qz(e,t)}}var Kz=Gz,Zz=Uz,Xz=Kz,Jz=t0,Qz=Zd;function eP(t){return Jz(t)?Zz(Qz(t)):Xz(t)}var tP=eP,nP=wz,iP=Wz,sP=b0,rP=Li,aP=tP;function oP(t){return typeof t=="function"?t:t==null?sP:typeof t=="object"?rP(t)?iP(t[0],t[1]):nP(t):aP(t)}var C_=oP;function lP(t){return function(e,n,i){for(var s=-1,a=Object(e),o=i(e),c=o.length;c--;){var d=o[t?c:++s];if(n(a[d],d,a)===!1)break}return e}}var cP=lP,dP=cP,uP=dP(),x_=uP,hP=x_,fP=f0;function pP(t,e){return t&&hP(t,e,fP)}var S_=pP,mP=Hl;function gP(t,e){return function(n,i){if(n==null)return n;if(!mP(n))return t(n,i);for(var s=n.length,a=e?s:-1,o=Object(n);(e?a--:++a<s)&&i(o[a],a,o)!==!1;);return n}}var _P=gP,yP=S_,vP=_P,bP=vP(yP),wP=bP,kP=wP;function CP(t,e){var n;return kP(t,function(i,s,a){return n=e(i,s,a),!n}),!!n}var xP=CP,SP=Ua,MP=Hl,OP=o0,DP=Cs;function EP(t,e,n){if(!DP(n))return!1;var i=typeof e;return(i=="number"?MP(n)&&OP(e,n.length):i=="string"&&e in n)?SP(n[e],t):!1}var w0=EP,VP=q4,BP=C_,TP=xP,IP=Li,AP=w0;function $P(t,e,n){var i=IP(t)?VP:TP;return n&&AP(t,e,n)&&(e=void 0),i(t,BP(e))}var NP=$P,zP=is,PP=Fi,LP="[object Boolean]";function FP(t){return t===!0||t===!1||PP(t)&&zP(t)==LP}var RP=FP,HP=is,WP=Fi,YP="[object Number]";function jP(t){return typeof t=="number"||WP(t)&&HP(t)==YP}var Ri=jP,UP=qr,qP=function(){try{var t=UP(Object,"defineProperty");return t({},"",{}),t}catch{}}(),M_=qP,O_=M_;function GP(t,e,n){e=="__proto__"&&O_?O_(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Qd=GP,KP=Qd,ZP=Ua,XP=Object.prototype,JP=XP.hasOwnProperty;function QP(t,e,n){var i=t[e];(!(JP.call(t,e)&&ZP(i,n))||n===void 0&&!(e in t))&&KP(t,e,n)}var eL=QP,tL=Qd,nL=S_,iL=C_;function sL(t,e){var n={};return e=iL(e),nL(t,function(i,s,a){tL(n,s,e(i,s,a))}),n}var rL=sL;function aL(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 D_=aL,oL=D_,E_=Math.max;function lL(t,e,n){return e=E_(e===void 0?t.length-1:e,0),function(){for(var i=arguments,s=-1,a=E_(i.length-e,0),o=Array(a);++s<a;)o[s]=i[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=i[s];return c[e]=n(o),oL(t,this,c)}}var cL=lL;function dL(t){return function(){return t}}var uL=dL,hL=uL,V_=M_,fL=b0,pL=V_?function(t,e){return V_(t,"toString",{configurable:!0,enumerable:!1,value:hL(e),writable:!0})}:fL,mL=pL,gL=800,_L=16,yL=Date.now;function vL(t){var e=0,n=0;return function(){var i=yL(),s=_L-(i-n);if(n=i,s>0){if(++e>=gL)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var bL=vL,wL=mL,kL=bL,CL=kL(wL),xL=CL,SL=b0,ML=cL,OL=xL;function DL(t,e){return OL(ML(t,e,SL),t+"")}var k0=DL;function EL(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var VL=EL,BL=Cs,TL=h0,IL=VL,AL=Object.prototype,$L=AL.hasOwnProperty;function NL(t){if(!BL(t))return IL(t);var e=TL(t),n=[];for(var i in t)i=="constructor"&&(e||!$L.call(t,i))||n.push(i);return n}var zL=NL,PL=n_,LL=zL,FL=Hl;function RL(t){return FL(t)?PL(t,!0):LL(t)}var C0=RL,HL=k0,WL=Ua,YL=w0,jL=C0,B_=Object.prototype,UL=B_.hasOwnProperty,qL=HL(function(t,e){t=Object(t);var n=-1,i=e.length,s=i>2?e[2]:void 0;for(s&&YL(e[0],e[1],s)&&(i=1);++n<i;)for(var a=e[n],o=jL(a),c=-1,d=o.length;++c<d;){var h=o[c],f=t[h];(f===void 0||WL(f,B_[h])&&!UL.call(t,h))&&(t[h]=a[h])}return t}),T_=qL,GL=Qd,KL=Ua;function ZL(t,e,n){(n!==void 0&&!KL(t[e],n)||n===void 0&&!(e in t))&&GL(t,e,n)}var I_=ZL,eu={},XL={get exports(){return eu},set exports(t){eu=t}};(function(t,e){var n=ns,i=e&&!e.nodeType&&e,s=i&&!0&&t&&!t.nodeType&&t,a=s&&s.exports===i,o=a?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})(XL,eu);var A_=K4;function JL(t){var e=new t.constructor(t.byteLength);return new A_(e).set(new A_(t)),e}var QL=JL,eF=QL;function tF(t,e){var n=e?eF(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var nF=tF;function iF(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}var sF=iF,rF=Cs,$_=Object.create,aF=function(){function t(){}return function(e){if(!rF(e))return{};if($_)return $_(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),oF=aF,lF=i_,cF=lF(Object.getPrototypeOf,Object),N_=cF,dF=oF,uF=N_,hF=h0;function fF(t){return typeof t.constructor=="function"&&!hF(t)?dF(uF(t)):{}}var pF=fF,mF=Hl,gF=Fi;function _F(t){return gF(t)&&mF(t)}var yF=_F,vF=is,bF=N_,wF=Fi,kF="[object Object]",CF=Function.prototype,xF=Object.prototype,z_=CF.toString,SF=xF.hasOwnProperty,MF=z_.call(Object);function OF(t){if(!wF(t)||vF(t)!=kF)return!1;var e=bF(t);if(e===null)return!0;var n=SF.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&z_.call(n)==MF}var DF=OF;function EF(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var P_=EF,VF=eL,BF=Qd;function TF(t,e,n,i){var s=!n;n||(n={});for(var a=-1,o=e.length;++a<o;){var c=e[a],d=i?i(n[c],t[c],c,n,t):void 0;d===void 0&&(d=t[c]),s?BF(n,c,d):VF(n,c,d)}return n}var IF=TF,AF=IF,$F=C0;function NF(t){return AF(t,$F(t))}var zF=NF,L_=I_,PF=eu,LF=nF,FF=sF,RF=pF,F_=a0,R_=Li,HF=yF,WF=Za,YF=Ur,jF=Cs,UF=DF,qF=u0,H_=P_,GF=zF;function KF(t,e,n,i,s,a,o){var c=H_(t,n),d=H_(e,n),h=o.get(d);if(h){L_(t,n,h);return}var f=a?a(c,d,n+"",t,e,o):void 0,m=f===void 0;if(m){var g=R_(d),_=!g&&WF(d),b=!g&&!_&&qF(d);f=d,g||_||b?R_(c)?f=c:HF(c)?f=FF(c):_?(m=!1,f=PF(d,!0)):b?(m=!1,f=LF(d,!0)):f=[]:UF(d)||F_(d)?(f=c,F_(c)?f=GF(c):(!jF(c)||YF(c))&&(f=RF(d))):m=!1}m&&(o.set(d,f),s(f,d,i,a,o),o.delete(d)),L_(t,n,f)}var ZF=KF,XF=c0,JF=I_,QF=x_,eR=ZF,tR=Cs,nR=C0,iR=P_;function W_(t,e,n,i,s){t!==e&&QF(e,function(a,o){if(s||(s=new XF),tR(a))eR(t,e,o,n,W_,i,s);else{var c=i?i(iR(t,o),a,o+"",t,e,s):void 0;c===void 0&&(c=a),JF(t,o,c)}},nR)}var Y_=W_,sR=Y_,j_=Cs;function U_(t,e,n,i,s,a){return j_(t)&&j_(e)&&(a.set(e,t),sR(t,e,void 0,U_,a),a.delete(e)),t}var rR=U_,aR=k0,oR=w0;function lR(t){return aR(function(e,n){var i=-1,s=n.length,a=s>1?n[s-1]:void 0,o=s>2?n[2]:void 0;for(a=t.length>3&&typeof a=="function"?(s--,a):void 0,o&&oR(n[0],n[1],o)&&(a=s<3?void 0:a,s=1),e=Object(e);++i<s;){var c=n[i];c&&t(e,c,i,a)}return e})}var cR=lR,dR=Y_,uR=cR,hR=uR(function(t,e,n,i){dR(t,e,n,i)}),fR=hR,pR=D_,mR=k0,gR=rR,_R=fR,yR=mR(function(t){return t.push(void 0,gR),pR(_R,void 0,t)}),Wl=yR;function vR(t){return t&&t.length?t[0]:void 0}var q_=vR;function bR(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var Ja=bR;const wR=t=>Object.prototype.toString.call(t).slice(8,-1),Qa=t=>OI(t)&&!isNaN(t.getTime()),xs=t=>wR(t)==="Object",G_=W4,K_=(t,e)=>NP(e,n=>W4(t,n)),vt=(t,e,n="0")=>{for(t=t!=null?String(t):"",e=e||2;t.length<e;)t=`${n}${t}`;return t},vi=t=>Array.isArray(t),Ss=t=>vi(t)&&t.length>0,tu=t=>t==null?null:document&&ss(t)?document.querySelector(t):t.$el??t,rr=(t,e,n,i=void 0)=>{t.removeEventListener(e,n,i)},ar=(t,e,n,i=void 0)=>(t.addEventListener(e,n,i),()=>rr(t,e,n,i)),nu=(t,e)=>!!t&&!!e&&(t===e||t.contains(e)),iu=(t,e)=>{(t.key===" "||t.key==="Enter")&&(e(t),t.preventDefault())},Z_=(t,...e)=>{const n={};let i;for(i in t)e.includes(i)||(n[i]=t[i]);return n},X_=(t,e)=>{const n={};return e.forEach(i=>{i in t&&(n[i]=t[i])}),n};function kR(t,e,n){return Math.min(Math.max(t,e),n)}var su={},CR={get exports(){return su},set exports(t){su=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})(CR,su);const xR=x4(su);var ru={},SR={get exports(){return ru},set exports(t){ru=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})(SR,ru);const J_=x4(ru);function MR(t,e){var n=VR(e);return n.formatToParts?DR(n,t):ER(n,t)}var OR={year:0,month:1,day:2,hour:3,minute:4,second:5};function DR(t,e){try{for(var n=t.formatToParts(e),i=[],s=0;s<n.length;s++){var a=OR[n[s].type];a>=0&&(i[a]=parseInt(n[s].value,10))}return i}catch(o){if(o instanceof RangeError)return[NaN];throw o}}function ER(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 x0={};function VR(t){if(!x0[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";x0[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 x0[t]}function Q_(t,e,n,i,s,a,o){var c=new Date(0);return c.setUTCFullYear(t,e,n),c.setUTCHours(i,s,a,o),c}var e5=36e5,BR=6e4,S0={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function TR(t,e,n){var i,s;if(!t||(i=S0.timezoneZ.exec(t),i))return 0;var a;if(i=S0.timezoneHH.exec(t),i)return a=parseInt(i[1],10),t5(a)?-(a*e5):NaN;if(i=S0.timezoneHHMM.exec(t),i){a=parseInt(i[1],10);var o=parseInt(i[2],10);return t5(a,o)?(s=Math.abs(a)*e5+o*BR,a>0?-s:s):NaN}if($R(t)){e=new Date(e||Date.now());var c=n?e:IR(e),d=M0(c,t),h=n?d:AR(e,d,t);return-h}return NaN}function IR(t){return Q_(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function M0(t,e){var n=MR(t,e),i=Q_(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),s=t.getTime(),a=s%1e3;return s-=a>=0?a:1e3+a,i-s}function AR(t,e,n){var i=t.getTime(),s=i-e,a=M0(new Date(s),n);if(e===a)return e;s-=a-e;var o=M0(new Date(s),n);return a===o?a:Math.max(a,o)}function t5(t,e){return-23<=t&&t<=23&&(e==null||0<=e&&e<=59)}var n5={};function $R(t){if(n5[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),n5[t]=!0,!0}catch{return!1}}var NR=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const zR=NR;var O0=36e5,i5=6e4,PR=2,Bn={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:zR};function LR(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?PR:xR(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=FR(t),a=RR(s.date,i),o=a.year,c=a.restDateString,d=HR(c,o);if(isNaN(d))return new Date(NaN);if(d){var h=d.getTime(),f=0,m;if(s.time&&(f=WR(s.time),isNaN(f)))return new Date(NaN);if(s.timeZone||n.timeZone){if(m=TR(s.timeZone||n.timeZone,new Date(h+f)),isNaN(m))return new Date(NaN)}else m=J_(new Date(h+f)),m=J_(new Date(h+f+m));return new Date(h+f+m)}else return new Date(NaN)}function FR(t){var e={},n=Bn.dateTimePattern.exec(t),i;if(n?(e.date=n[1],i=n[3]):(n=Bn.datePattern.exec(t),n?(e.date=n[1],i=n[2]):(e.date=null,i=t)),i){var s=Bn.timeZone.exec(i);s?(e.time=i.replace(s[1],""),e.timeZone=s[1].trim()):e.time=i}return e}function RR(t,e){var n=Bn.YYY[e],i=Bn.YYYYY[e],s;if(s=Bn.YYYY.exec(t)||i.exec(t),s){var a=s[1];return{year:parseInt(a,10),restDateString:t.slice(a.length)}}if(s=Bn.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 HR(t,e){if(e===null)return null;var n,i,s,a;if(t.length===0)return i=new Date(0),i.setUTCFullYear(e),i;if(n=Bn.MM.exec(t),n)return i=new Date(0),s=parseInt(n[1],10)-1,a5(e,s)?(i.setUTCFullYear(e,s),i):new Date(NaN);if(n=Bn.DDD.exec(t),n){i=new Date(0);var o=parseInt(n[1],10);return UR(e,o)?(i.setUTCFullYear(e,0,o),i):new Date(NaN)}if(n=Bn.MMDD.exec(t),n){i=new Date(0),s=parseInt(n[1],10)-1;var c=parseInt(n[2],10);return a5(e,s,c)?(i.setUTCFullYear(e,s,c),i):new Date(NaN)}if(n=Bn.Www.exec(t),n)return a=parseInt(n[1],10)-1,o5(e,a)?s5(e,a):new Date(NaN);if(n=Bn.WwwD.exec(t),n){a=parseInt(n[1],10)-1;var d=parseInt(n[2],10)-1;return o5(e,a,d)?s5(e,a,d):new Date(NaN)}return null}function WR(t){var e,n,i;if(e=Bn.HH.exec(t),e)return n=parseFloat(e[1].replace(",",".")),D0(n)?n%24*O0:NaN;if(e=Bn.HHMM.exec(t),e)return n=parseInt(e[1],10),i=parseFloat(e[2].replace(",",".")),D0(n,i)?n%24*O0+i*i5:NaN;if(e=Bn.HHMMSS.exec(t),e){n=parseInt(e[1],10),i=parseInt(e[2],10);var s=parseFloat(e[3].replace(",","."));return D0(n,i,s)?n%24*O0+i*i5+s*1e3:NaN}return null}function s5(t,e,n){e=e||0,n=n||0;var i=new Date(0);i.setUTCFullYear(t,0,4);var s=i.getUTCDay()||7,a=e*7+n+1-s;return i.setUTCDate(i.getUTCDate()+a),i}var YR=[31,28,31,30,31,30,31,31,30,31,30,31],jR=[31,29,31,30,31,30,31,31,30,31,30,31];function r5(t){return t%400===0||t%4===0&&t%100!==0}function a5(t,e,n){if(e<0||e>11)return!1;if(n!=null){if(n<1)return!1;var i=r5(t);if(i&&n>jR[e]||!i&&n>YR[e])return!1}return!0}function UR(t,e){if(e<1)return!1;var n=r5(t);return!(n&&e>366||!n&&e>365)}function o5(t,e,n){return!(e<0||e>52||n!=null&&(n<0||n>6))}function D0(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 au(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?au=function(n){return typeof n}:au=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},au(t)}function Ms(t){kn(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||au(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 eo(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 qR={};function E0(){return qR}function Zr(t,e){var n,i,s,a,o,c,d,h;kn(1,arguments);var f=E0(),m=eo((n=(i=(s=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a: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=Ms(t),_=g.getDay(),b=(_<m?7:0)+_-m;return g.setDate(g.getDate()-b),g.setHours(0,0,0,0),g}function l5(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 GR=6048e5;function KR(t,e,n){kn(2,arguments);var i=Zr(t,n),s=Zr(e,n),a=i.getTime()-l5(i),o=s.getTime()-l5(s);return Math.round((a-o)/GR)}function ZR(t){kn(1,arguments);var e=Ms(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}function XR(t){kn(1,arguments);var e=Ms(t);return e.setDate(1),e.setHours(0,0,0,0),e}function JR(t,e){return kn(1,arguments),KR(ZR(t),XR(t),e)+1}function QR(t,e){var n,i,s,a,o,c,d,h;kn(1,arguments);var f=Ms(t),m=f.getFullYear(),g=E0(),_=eo((n=(i=(s=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a: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(!(_>=1&&_<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setFullYear(m+1,0,_),b.setHours(0,0,0,0);var w=Zr(b,e),C=new Date(0);C.setFullYear(m,0,_),C.setHours(0,0,0,0);var S=Zr(C,e);return f.getTime()>=w.getTime()?m+1:f.getTime()>=S.getTime()?m:m-1}function eH(t,e){var n,i,s,a,o,c,d,h;kn(1,arguments);var f=E0(),m=eo((n=(i=(s=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a: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=QR(t,e),_=new Date(0);_.setFullYear(g,0,m),_.setHours(0,0,0,0);var b=Zr(_,e);return b}var tH=6048e5;function nH(t,e){kn(1,arguments);var n=Ms(t),i=Zr(n,e).getTime()-eH(n,e).getTime();return Math.round(i/tH)+1}function ou(t){return kn(1,arguments),Zr(t,{weekStartsOn:1})}function iH(t){kn(1,arguments);var e=Ms(t),n=e.getFullYear(),i=new Date(0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);var s=ou(i),a=new Date(0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);var o=ou(a);return e.getTime()>=s.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function sH(t){kn(1,arguments);var e=iH(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var i=ou(n);return i}var rH=6048e5;function aH(t){kn(1,arguments);var e=Ms(t),n=ou(e).getTime()-sH(e).getTime();return Math.round(n/rH)+1}function Tn(t,e){kn(2,arguments);var n=Ms(t),i=eo(e);return isNaN(i)?new Date(NaN):(i&&n.setDate(n.getDate()+i),n)}function lu(t,e){kn(2,arguments);var n=Ms(t),i=eo(e);if(isNaN(i))return new Date(NaN);if(!i)return n;var s=n.getDate(),a=new Date(n.getTime());a.setMonth(n.getMonth()+i+1,0);var o=a.getDate();return s>=o?a:(n.setFullYear(a.getFullYear(),a.getMonth(),s),n)}function c5(t,e){kn(2,arguments);var n=eo(e);return lu(t,n*12)}const oH={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function lH({monthComps:t,prevMonthComps:e,nextMonthComps:n},i){const s=[],{firstDayOfWeek:a,firstWeekday:o,isoWeeknumbers:c,weeknumbers:d,numDays:h,numWeeks:f}=t,m=o+(o<a?Cn:0)-a;let g=!0,_=!1,b=!1,w=0;const C=new Intl.DateTimeFormat(i.id,{weekday:"long",year:"numeric",month:"short",day:"numeric"});let S=e.numDays-m+1,E=e.numDays-S+1,A=Math.floor((S-1)/Cn+1),x=1,T=e.numWeeks,N=1,L=e.month,F=e.year;const q=new Date,ee=q.getDate(),ie=q.getMonth()+1,K=q.getFullYear();for(let se=1;se<=NH;se++){for(let me=1,J=a;me<=Cn;me++,J+=J===Cn?1-Cn:1){g&&J===o&&(S=1,E=t.numDays,A=Math.floor((S-1)/Cn+1),x=Math.floor((h-S)/Cn+1),T=1,N=f,L=t.month,F=t.year,g=!1,_=!0);const he=i.getDateFromParams(F,L,S,0,0,0,0),fe=i.getDateFromParams(F,L,S,12,0,0,0),ye=i.getDateFromParams(F,L,S,23,59,59,999),we=he,R=`${vt(F,4)}-${vt(L,2)}-${vt(S,2)}`,pe=me,oe=Cn-me,Ee=d[se-1],Me=c[se-1],ge=S===ee&&L===ie&&F===K,Ne=_&&S===1,lt=_&&S===h,Le=se===1,ht=se===f,It=me===1,kt=me===Cn,tt=O5(F,L,S);s.push({locale:i,id:R,position:++w,label:S.toString(),ariaLabel:C.format(new Date(F,L-1,S)),day:S,dayFromEnd:E,weekday:J,weekdayPosition:pe,weekdayPositionFromEnd:oe,weekdayOrdinal:A,weekdayOrdinalFromEnd:x,week:T,weekFromEnd:N,weekPosition:se,weeknumber:Ee,isoWeeknumber:Me,month:L,year:F,date:we,startDate:he,endDate:ye,noonDate:fe,dayIndex:tt,isToday:ge,isFirstDay:Ne,isLastDay:lt,isDisabled:!_,isFocusable:!_,isFocused:!1,inMonth:_,inPrevMonth:g,inNextMonth:b,onTop:Le,onBottom:ht,onLeft:It,onRight:kt,classes:[`id-${R}`,`day-${S}`,`day-from-end-${E}`,`weekday-${J}`,`weekday-position-${pe}`,`weekday-ordinal-${A}`,`weekday-ordinal-from-end-${x}`,`week-${T}`,`week-from-end-${N}`,{"is-today":ge,"is-first-day":Ne,"is-last-day":lt,"in-month":_,"in-prev-month":g,"in-next-month":b,"on-top":Le,"on-bottom":ht,"on-left":It,"on-right":kt}]}),_&&lt?(_=!1,b=!0,S=1,E=h,A=1,x=Math.floor((h-S)/Cn+1),T=1,N=n.numWeeks,L=n.month,F=n.year):(S++,E--,A=Math.floor((S-1)/Cn+1),x=Math.floor((h-S)/Cn+1))}T++,N--}return s}function cH(t,e,n,i){const s=t.reduce((a,o,c)=>{const d=Math.floor(c/7);let h=a[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:[]},a[d]=h),h.days.push(o),a},Array(t.length/Cn));return s.forEach(a=>{const o=a.days[0],c=a.days[a.days.length-1];o.month===c.month?a.title=`${i.formatDate(o.date,"MMMM YYYY")}`:o.year===c.year?a.title=`${i.formatDate(o.date,"MMM")} - ${i.formatDate(c.date,"MMM YYYY")}`:a.title=`${i.formatDate(o.date,"MMM YYYY")} - ${i.formatDate(c.date,"MMM YYYY")}`}),s}function dH(t,e){return t.days.map(n=>({label:e.formatDate(n.date,e.masks.weekdays),weekday:n.weekday}))}function uH(t,e){return`${e}.${vt(t,2)}`}function d5(t,e,n){return X_(n.getDateParts(n.toDate(t)),oH[e])}function u5({day:t,week:e,month:n,year:i},s,a,o){if(a==="daily"&&t){const c=new Date(i,n-1,t),d=Tn(c,s);return{day:d.getDate(),month:d.getMonth()+1,year:d.getFullYear()}}else if(a==="weekly"&&e){const d=o.getMonthParts(n,i).firstDayOfMonth,h=Tn(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=lu(c,s);return{month:d.getMonth()+1,year:d.getFullYear()}}}function rs(t){return t!=null&&t.month!=null&&t.year!=null}function V0(t,e){return!rs(t)||!rs(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 cu(t,e){return!rs(t)||!rs(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 hH(t,e,n){return(t||!1)&&!V0(t,e)&&!cu(t,n)}function fH(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 pH(t,e,n,i){if(!rs(t)||!rs(e))return[];const s=[];for(;!cu(t,e);)s.push(t),t=u5(t,1,n,i);return s}function h5(t){const{day:e,week:n,month:i,year:s}=t;let a=`${s}-${vt(i,2)}`;return n&&(a=`${a}-w${n}`),e&&(a=`${a}-${vt(e,2)}`),a}function mH(t,e){const{month:n,year:i,showWeeknumbers:s,showIsoWeeknumbers:a}=t,o=new Date(i,n-1,15),c=e.getMonthParts(n,i),d=e.getPrevMonthParts(n,i),h=e.getNextMonthParts(n,i),f=lH({monthComps:c,prevMonthComps:d,nextMonthComps:h},e),m=cH(f,s,a,e),g=dH(m[0],e);return{id:h5(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 gH(t,e){const{day:n,week:i,view:s,trimWeeks:a}=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,a?o.monthComps.numWeeks:void 0),o.viewDays=o.days;break}}return o}class f5{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 to{constructor(e,n=new du){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:a,span:o,order:c,repeat:d}=e;Qa(s)&&(this.start=n.getDateParts(s)),Qa(a)?this.end=n.getDateParts(a):this.start!=null&&o&&(this.end=n.getDateParts(Tn(this.start.date,o-1))),this.order=c??0,d&&(this.repeat=new uu({from:(i=this.start)==null?void 0:i.date,...d},{locale:this.locale}))}static fromMany(e,n){return(vi(e)?e:[e]).filter(i=>i).map(i=>to.from(i,n))}static from(e,n){if(e instanceof to)return e;const i={start:null,end:null};return e!=null&&(vi(e)?(i.start=e[0]??null,i.end=e[1]??null):xs(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 to(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 _H{constructor(){xe(this,"records",{})}render(e,n,i){var s,a,o,c;let d=null;const h=i[0].dayIndex,f=i[i.length-1].dayIndex;return n.hasRepeat?i.forEach(m=>{var g,_;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:((_=n.end)==null?void 0:_.time)??hu},this.getRangeRecords(e).push(d)}}):n.intersectsDayRange(h,f)&&(d={startDay:((s=n.start)==null?void 0:s.dayIndex)??-1/0,startTime:((a=n.start)==null?void 0:a.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(a=>a.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:a,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:hu,_=new Date(e.endDate.getTime()+g),b=f===0&&g===hu,w=a.order||0;i.push({...c,data:a,onStart:d,onEnd:h,startTime:f,startDate:m,endTime:g,endDate:_,allDay:b,order:w})})}),i.sort((a,o)=>a.order-o.order),i}}const Os={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"}};Os.en=Os["en-US"],Os.es=Os["es-ES"],Os.no=Os.nb,Os.zh=Os["zh-CN"];const yH=Object.entries(Os).reduce((t,[e,{dow:n,L:i}])=>(t[e]={id:e,firstDayOfWeek:n,masks:{L:i}},t),{}),vH={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:yH,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},B0=r.reactive(vH),bH=r.computed(()=>rL(B0.locales,t=>(t.masks=Wl(t.masks,B0.masks),t))),or=t=>typeof window<"u"&&G_(window.__vcalendar__,t)?Kr(window.__vcalendar__,t):Kr(B0,t),wH=12,kH=5;function CH(t,e){const n=new Intl.DateTimeFormat().resolvedOptions().locale;let i;ss(t)?i=t:G_(t,"id")&&(i=t.id),i=(i||n).toLowerCase();const s=Object.keys(e),a=d=>s.find(h=>h.toLowerCase()===d);i=a(i)||a(i.substring(0,2))||n;const o={...e["en-IE"],...e[i],id:i,monthCacheSize:wH,pageCacheSize:kH};return xs(t)?Wl(t,o):o}class du{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:a,monthCacheSize:o,pageCacheSize:c}=CH(e,bH.value);this.monthCache=new f5(o,jH,UH),this.pageCache=new f5(c,h5,mH),this.id=i,this.daysInWeek=Cn,this.firstDayOfWeek=kR(s,1,Cn),this.masks=a,this.timezone=n||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=$0("long",this.id),this.dayNamesShort=$0("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(d=>d.substring(0,2)),this.dayNamesNarrow=$0("narrow",this.id),this.monthNames=B5("long",this.id),this.monthNamesShort=B5("short",this.id),this.relativeTimeNames=KH(this.id)}formatDate(e,n){return eW(e,n,this)}parseDate(e,n){return T5(e,n,this)}toDate(e,n={}){const i=new Date(NaN);let s=i;const{fillDate:a,mask:o,patch:c,rules:d}=n;if(Ri(e)?(n.type="number",s=new Date(+e)):ss(e)?(n.type="string",s=e?T5(e,o||"iso",this):i):Qa(e)?(n.type="date",s=new Date(e.getTime())):I0(e)&&(n.type="object",s=this.getDateFromParts(e)),s&&(c||d)){let h=this.getDateParts(s);if(c&&a!=null){const f=this.getDateParts(this.toDate(a));h=this.getDateParts(this.toDate({...f,...X_(h,$H[c])}))}d&&(h=QH(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 to.from(e,this)}ranges(e){return to.fromMany(e,this)}getDateParts(e){return YH(e,this)}getDateFromParts(e){return E5(e,this.timezone)}getDateFromParams(e,n,i,s,a,o,c){return this.getDateFromParts({year:e,month:n,day:i,hours:s,minutes:a,seconds:o,milliseconds:c})}getPage(e){const n=this.pageCache.getOrSet(e,this);return gH(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 GH().map(e=>this.formatDate(e,this.masks.hours))}getDayId(e){return this.formatDate(e,"YYYY-MM-DD")}}var no=(t=>(t.Any="any",t.All="all",t))(no||{}),p5=(t=>(t.Days="days",t.Weeks="weeks",t.Months="months",t.Years="years",t))(p5||{}),m5=(t=>(t.Days="days",t.Weekdays="weekdays",t.Weeks="weeks",t.Months="months",t.Years="years",t))(m5||{}),g5=(t=>(t.OrdinalWeekdays="ordinalWeekdays",t))(g5||{});class xH{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 A0(this.from.date,n)%this.interval===0;case"weeks":return HH(this.from.date,n)%this.interval===0;case"months":return WH(this.from.date,n)%this.interval===0;case"years":return D5(this.from.date,n)%this.interval===0;default:return!1}}}class io{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 SH(n);case"weekdays":return new MH(n);case"weeks":return new OH(n);case"months":return new DH(n);case"years":return new EH(n)}}normalizeComponents(e){if(this.validator(e))return[e];if(!vi(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 SH extends io{constructor(e){super("days",e,TH,({day:n,dayFromEnd:i})=>[n,-i])}}class MH extends io{constructor(e){super("weekdays",e,T0,({weekday:n})=>[n])}}class OH extends io{constructor(e){super("weeks",e,IH,({week:n,weekFromEnd:i})=>[n,-i])}}class DH extends io{constructor(e){super("months",e,AH,({month:n})=>[n])}}class EH extends io{constructor(e){super("years",e,Ri,({year:n})=>[n])}}class VH{constructor(e,n){xe(this,"components"),this.type=e,this.components=this.normalizeComponents(n)}normalizeArrayConfig(e){const n=[];return e.forEach((i,s)=>{if(Ri(i)){if(s===0)return;if(!_5(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(!T0(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 vi(i)&&n.push(...this.normalizeArrayConfig(i))}),n}normalizeComponents(e){const n=[];return e.forEach((i,s)=>{if(Ri(i)){if(s===0)return;if(!_5(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(!T0(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 vi(i)&&n.push(...this.normalizeArrayConfig(i))}),n}passes(e){const{weekday:n,weekdayOrdinal:i,weekdayOrdinalFromEnd:s}=e;return this.components.some(([a,o])=>(a===i||a===-s)&&n===o)}}class BH{constructor(e){xe(this,"type","function"),xe(this,"validated",!0),this.fn=e,Ur(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 uu{constructor(e,n={},i){xe(this,"validated",!0),xe(this,"config"),xe(this,"type",no.Any),xe(this,"from"),xe(this,"until"),xe(this,"rules",[]),xe(this,"locale",new du),this.parent=i,n.locale&&(this.locale=n.locale),this.config=e,Ur(e)?(this.type=no.All,this.rules=[new BH(e)]):vi(e)?(this.type=no.Any,this.rules=e.map(s=>new uu(s,n,this))):xs(e)?(this.type=no.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&&(ss(e.every)&&(e.every=[1,`${e.every}s`]),vi(e.every))){const[i=1,s=p5.Days]=e.every;n.push(new xH(s,i,this.from))}return Object.values(m5).forEach(i=>{i in e&&n.push(io.create(i,e[i]))}),Object.values(g5).forEach(i=>{i in e&&n.push(new VH(i,e[i]))}),e.on!=null&&(vi(e.on)||(e.on=[e.on]),n.push(new uu(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===no.Any?this.rules.some(n=>n.passes(e)):this.rules.every(n=>n.passes(e)):!0}}function TH(t){return Ri(t)?t>=1&&t<=31:!1}function T0(t){return Ri(t)?t>=1&&t<=7:!1}function IH(t){return Ri(t)?t>=-6&&t<=-1||t>=1&&t<=6:!1}function AH(t){return Ri(t)?t>=1&&t<=12:!1}function _5(t){return!(!Ri(t)||t<-5||t>5||t===0)}const $H={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},Cn=7,NH=6,y5=1e3,v5=y5*60,b5=v5*60,hu=b5*24,zH=[31,28,31,30,31,30,31,31,30,31,30,31],PH=["L","iso"],Yl={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},w5=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,LH=/\[([^]*?)\]/gm,k5={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)}`}},lr=/\d\d?/,FH=/\d{3}/,RH=/\d{4}/,jl=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,C5=()=>{},x5=t=>(e,n,i)=>{const s=i[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~s&&(e.month=s)},wt={D:[lr,(t,e)=>{t.day=e}],Do:[new RegExp(lr.source+jl.source),(t,e)=>{t.day=parseInt(e,10)}],d:[lr,C5],W:[jl,C5],M:[lr,(t,e)=>{t.month=e-1}],MMM:[jl,x5("monthNamesShort")],MMMM:[jl,x5("monthNames")],YY:[lr,(t,e)=>{const i=+new Date().getFullYear().toString().substr(0,2);t.year=+`${e>68?i-1:i}${e}`}],YYYY:[RH,(t,e)=>{t.year=e}],S:[/\d/,(t,e)=>{t.milliseconds=e*100}],SS:[/\d{2}/,(t,e)=>{t.milliseconds=e*10}],SSS:[FH,(t,e)=>{t.milliseconds=e}],h:[lr,(t,e)=>{t.hours=e}],m:[lr,(t,e)=>{t.minutes=e}],s:[lr,(t,e)=>{t.seconds=e}],a:[jl,(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}}]};wt.DD=wt.D,wt.dd=wt.d,wt.WWWW=wt.WWW=wt.WW=wt.W,wt.MM=wt.M,wt.mm=wt.m,wt.hh=wt.H=wt.HH=wt.h,wt.ss=wt.s,wt.A=wt.a,wt.ZZZZ=wt.ZZZ=wt.ZZ=wt.Z;function S5(t,e){return(Ss(t)&&t||[ss(t)&&t||"YYYY-MM-DD"]).map(n=>PH.reduce((i,s)=>i.replace(s,e.masks[s]||""),n))}function I0(t){return xs(t)&&"year"in t&&"month"in t&&"day"in t}function M5(t,e=1){const n=t.getDay()+1,i=n>=e?e-n:-(7-(e-n));return Tn(t,i)}function O5(t,e,n){const i=Date.UTC(t,e-1,n);return A0(new Date(0),new Date(i))}function A0(t,e){return Math.round((e.getTime()-t.getTime())/hu)}function HH(t,e){return Math.ceil(A0(M5(t),M5(e))/7)}function D5(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}function WH(t,e){return D5(t,e)*12+(e.getMonth()-t.getMonth())}function E5(t,e=""){const n=new Date,{year:i=n.getFullYear(),month:s=n.getMonth()+1,day:a=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(a,2)}T${vt(o,2)}:${vt(c,2)}:${vt(d,2)}.${vt(h,3)}`;return LR(f,{timeZone:e})}return new Date(i,s-1,a,o,c,d,h)}function YH(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(),a=n.getMinutes(),o=n.getHours(),c=i+s*y5+a*v5+o*b5,d=n.getMonth()+1,h=n.getFullYear(),f=e.getMonthParts(d,h),m=n.getDate(),g=f.numDays-m+1,_=n.getDay()+1,b=Math.floor((m-1)/7+1),w=Math.floor((f.numDays-m)/7+1),C=Math.ceil((m+Math.abs(f.firstWeekday-f.firstDayOfWeek))/7),S=f.numWeeks-C+1,E=f.weeknumbers[C],A=O5(h,d,m);return{milliseconds:i,seconds:s,minutes:a,hours:o,time:c,day:m,dayFromEnd:g,weekday:_,weekdayOrdinal:b,weekdayOrdinalFromEnd:w,week:C,weekFromEnd:S,weeknumber:E,month:d,year:h,date:n,dateTime:n.getTime(),dayIndex:A,timezoneOffset:0,isValid:!0}}function jH(t,e,n){return`${e}-${t}-${n}`}function UH(t,e,n){const i=e%4===0&&e%100!==0||e%400===0,s=new Date(e,t-1,1),a=s.getDay()+1,o=t===2&&i?29:zH[t-1],c=n-1,d=JR(s,{weekStartsOn:c}),h=[],f=[];for(let m=0;m<d;m++){const g=Tn(s,m*7);h.push(nH(g,{weekStartsOn:c})),f.push(aH(g))}return{firstDayOfWeek:n,firstDayOfMonth:s,inLeapYear:i,firstWeekday:a,numDays:o,numWeeks:d,month:t,year:e,weeknumbers:h,isoWeeknumbers:f}}function qH(){const t=[];for(let s=0;s<Cn;s++)t.push(E5({year:2020,month:1,day:5+s,hours:12}));return t}function $0(t,e=void 0){const n=new Intl.DateTimeFormat(e,{weekday:t});return qH().map(i=>n.format(i))}function GH(){const t=[];for(let e=0;e<=24;e++)t.push(new Date(2e3,0,1,e));return t}function KH(t=void 0){const e=["second","minute","hour","day","week","month","quarter","year"],n=new Intl.RelativeTimeFormat(t);return e.reduce((i,s)=>{const a=n.formatToParts(100,s);return i[s]=a[1].unit,i},{})}function V5(){const t=[];for(let e=0;e<12;e++)t.push(new Date(2e3,e,15));return t}function B5(t,e=void 0){const n=new Intl.DateTimeFormat(e,{month:t,timeZone:"UTC"});return V5().map(i=>n.format(i))}function ZH(t,e,n){return Ri(e)?e===t:vi(e)?e.includes(t):Ur(e)?e(t,n):!(e.min!=null&&e.min>t||e.max!=null&&e.max<t||e.interval!=null&&t%e.interval!==0)}function Ul(t,e,n){const i=[],[s,a,o]=e;for(let c=s;c<=a;c++)(n==null||ZH(c,n,t))&&i.push({value:c,label:vt(c,o)});return i}function XH(t,e){return{milliseconds:Ul(t,Yl.milliseconds,e.milliseconds),seconds:Ul(t,Yl.seconds,e.seconds),minutes:Ul(t,Yl.minutes,e.minutes),hours:Ul(t,Yl.hours,e.hours)}}function JH(t,e,n,i){const a=Ul(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(a)?n:a}function QH(t,e){const n={...t};return Object.entries(e).forEach(([i,s])=>{const a=Yl[i],o=t[i];n[i]=JH(t,a,o,s)}),n}function T5(t,e,n){return S5(e,n).map(s=>{if(typeof s!="string")throw new Error("Invalid mask");let a=t;if(a.length>1e3)return!1;let o=!0;const c={};if(s.replace(w5,f=>{if(wt[f]){const m=wt[f],g=a.search(m[0]);~g?a.replace(m[0],_=>(m[1](c,_,n),a=a.substr(g+_.length),_)):o=!1}return wt[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 eW(t,e,n){if(t==null)return"";let i=S5(e,n)[0];/Z$/.test(i)&&(n.timezone="utc");const s=[];i=i.replace(LH,(o,c)=>(s.push(c),"??"));const a=n.getDateParts(t);return i=i.replace(w5,o=>o in k5?k5[o](a,n):o.slice(1,o.length-1)),i.replace(/\?\?/g,()=>s.shift())}let tW=0;class I5{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=++tW),this.locale=i,n.normalizeGlyphs(this),this.ranges=i.ranges(s??[]),this.hasRanges=!!Ss(this.ranges),this.maxRepeatSpan=this.ranges.filter(a=>a.hasRepeat).map(a=>a.daySpan).reduce((a,o)=>Math.max(a,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 a=e;for(this.maxRepeatSpan>1&&(a=this.locale.getDateParts(Tn(a.date,-this.maxRepeatSpan)));a.dayIndex<=n.dayIndex;){for(const o of s)if(o.startsOnDay(a))return!0;a=this.locale.getDateParts(Tn(a.date,1))}return!1}}function N0(t){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:t}))}function ql(t){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:t}))}function A5(t){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:t}))}function $5(t){const{visibility:e}=t,n=e==="click",i=e==="hover",s=e==="hover-focus",a=e==="focus";t.autoHide=!n;let o=!1,c=!1;const d=b=>{n&&(A5({...t,target:t.target||b.currentTarget}),b.stopPropagation())},h=b=>{o||(o=!0,(i||s)&&N0({...t,target:t.target||b.currentTarget}))},f=()=>{o&&(o=!1,(i||s&&!c)&&ql(t))},m=b=>{c||(c=!0,(a||s)&&N0({...t,target:t.target||b.currentTarget}))},g=b=>{c&&!nu(b.currentTarget,b.relatedTarget)&&(c=!1,(a||s&&!o)&&ql(t))},_={};switch(t.visibility){case"click":_.click=d;break;case"hover":_.mousemove=h,_.mouseleave=f;break;case"focus":_.focusin=m,_.focusout=g;break;case"hover-focus":_.mousemove=h,_.mouseleave=f,_.focusin=m,_.focusout=g;break}return _}const N5=t=>{const e=tu(t);if(e==null)return;const n=e.popoverHandlers;!n||!n.length||(n.forEach(i=>i()),delete e.popoverHandlers)},z5=(t,e)=>{const n=tu(t);if(n==null)return;const i=[],s=$5(e);Object.entries(s).forEach(([a,o])=>{i.push(ar(n,a,o))}),n.popoverHandlers=i},P5={mounted(t,e){const{value:n}=e;!n||z5(t,n)},updated(t,e){const{oldValue:n,value:i}=e,s=n==null?void 0:n.visibility,a=i==null?void 0:i.visibility;s!==a&&(s&&(N5(t),a||ql(n)),a&&z5(t,i))},unmounted(t){N5(t)}},nW=(t,e,{maxSwipeTime:n,minHorizontalSwipeDistance:i,maxVerticalSwipeDistance:s})=>{if(!t||!t.addEventListener||!Ur(e))return null;let a=0,o=0,c=null,d=!1;function h(m){const g=m.changedTouches[0];a=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],_=g.screenX-a,b=g.screenY-o;if(new Date().getTime()-c<n&&Math.abs(_)>=i&&Math.abs(b)<=s){const C={toLeft:!1,toRight:!1};_<0?C.toLeft=!0:C.toRight=!0,e(C)}}return ar(t,"touchstart",h,{passive:!0}),ar(t,"touchend",f,{passive:!0}),()=>{rr(t,"touchstart",h),rr(t,"touchend",f)}},fu={},iW=(t,e=10)=>{fu[t]=Date.now()+e},sW=(t,e)=>{if(t in fu){const n=fu[t];if(Date.now()<n)return;delete fu[t]}e()};function L5(){return typeof window<"u"}function rW(t){return L5()&&t in window}function aW(t){const e=r.ref(!1),n=r.computed(()=>e.value?"dark":"light");let i,s;function a(_){e.value=_.matches}function o(){rW("matchMedia")&&(i=window.matchMedia("(prefers-color-scheme: dark)"),i.addEventListener("change",a),e.value=i.matches)}function c(){const{selector:_=":root",darkClass:b="dark"}=t.value,w=document.querySelector(_);e.value=w.classList.contains(b)}function d(_){const{selector:b=":root",darkClass:w="dark"}=_;if(L5()&&b&&w){const C=document.querySelector(b);C&&(s=new MutationObserver(c),s.observe(C,{attributes:!0,attributeFilter:["class"]}),e.value=C.classList.contains(w))}}function h(){m();const _=typeof t.value;_==="string"&&t.value.toLowerCase()==="system"?o():_==="object"?d(t.value):e.value=!!t.value}const f=r.watch(()=>t.value,()=>h(),{immediate:!0});function m(){i&&(i.removeEventListener("change",a),i=void 0),s&&(s.disconnect(),s=void 0)}function g(){m(),f()}return r.onUnmounted(()=>g()),{isDark:e,displayMode:n,cleanup:g}}const oW=["base","start","end","startEnd"],lW=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],cW={base:{},start:{},end:{}};function z0(t,e,n=cW){let i=t,s={};e===!0||ss(e)?(i=ss(e)?e:i,s={...n}):xs(e)&&(K_(e,oW)?s={...e}:s={base:{...e},start:{...e},end:{...e}});const a=Wl(s,{start:s.startEnd,end:s.startEnd},n);return Object.entries(a).forEach(([o,c])=>{let d=i;c===!0||ss(c)?(d=ss(c)?c:d,a[o]={color:d}):xs(c)&&(K_(c,lW)?a[o]={...c}:a[o]={}),Wl(a[o],{color:d})}),a}class dW{constructor(){xe(this,"type","highlight")}normalizeConfig(e,n){return z0(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:a,highlight:o}=e;if(!o)return;const{highlights:c}=s,{base:d,start:h,end:f}=o;n&&i?c.push({...h,key:a,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:`${a}-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:a,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:`${a}-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:a,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:`${a}-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 P0{constructor(e,n){xe(this,"type",""),xe(this,"collectionType",""),this.type=e,this.collectionType=n}normalizeConfig(e,n){return z0(e,n)}prepareRender(e){e[this.collectionType]=[]}render({data:e,onStart:n,onEnd:i},s){const{key:a}=e,o=e[this.type];if(!a||!o)return;const c=s[this.collectionType],{base:d,start:h,end:f}=o;n?c.push({...h,key:a,class:[`vc-${this.type} vc-${this.type}-start vc-${h.color} vc-attr`,h.class]}):i?c.push({...f,key:a,class:[`vc-${this.type} vc-${this.type}-end vc-${f.color} vc-attr`,f.class]}):c.push({...d,key:a,class:[`vc-${this.type} vc-${this.type}-base vc-${d.color} vc-attr`,d.class]})}}class uW extends P0{constructor(){super("content","content")}normalizeConfig(e,n){return z0("base",n)}}class hW extends P0{constructor(){super("dot","dots")}}class fW extends P0{constructor(){super("bar","bars")}}class pW{constructor(e){xe(this,"color"),xe(this,"renderers",[new uW,new dW,new hW,new fW]),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 F5=Symbol("__vc_base_context__"),R5={color:{type:String,default:()=>or("color")},isDark:{type:[Boolean,String,Object],default:()=>or("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function H5(t){const e=r.computed(()=>t.color??""),n=r.computed(()=>t.isDark??!1),{displayMode:i}=aW(n),s=r.computed(()=>new pW(e.value)),a=r.computed(()=>{if(t.locale instanceof du)return t.locale;const g=xs(t.locale)?t.locale:{id:t.locale,firstDayOfWeek:t.firstDayOfWeek,masks:t.masks};return new du(g,t.timezone)}),o=r.computed(()=>a.value.masks),c=r.computed(()=>t.minDate),d=r.computed(()=>t.maxDate),h=r.computed(()=>{const g=t.disabledDates?[...t.disabledDates]:[];return c.value!=null&&g.push({start:null,end:Tn(a.value.toDate(c.value),-1)}),d.value!=null&&g.push({start:Tn(a.value.toDate(d.value),1),end:null}),a.value.ranges(g)}),f=r.computed(()=>new I5({key:"disabled",dates:h.value,order:100},s.value,a.value)),m={color:e,isDark:n,displayMode:i,theme:s,locale:a,masks:o,minDate:c,maxDate:d,disabledDates:h,disabledAttribute:f};return r.provide(F5,m),m}function mW(t){return r.inject(F5,()=>H5(t),!0)}function W5(t){return`__vc_slot_${t}__`}function Y5(t,e={}){Object.keys(t).forEach(n=>{r.provide(W5(e[n]??n),t[n])})}function j5(t){return r.inject(W5(t),null)}const gW={...R5,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:()=>or("titlePosition")},navVisibility:{type:String,default:()=>or("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},_W=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],U5=Symbol("__vc_calendar_context__");function yW(t,{slots:e,emit:n}){const i=r.ref(null),s=r.ref(null),a=r.ref(new Date().getDate()),o=r.ref(!1),c=r.ref(Symbol()),d=r.ref(Symbol()),h=r.ref(t.view),f=r.ref([]),m=r.ref("");let g=null,_=null;Y5(e);const{theme:b,color:w,displayMode:C,locale:S,masks:E,minDate:A,maxDate:x,disabledAttribute:T,disabledDates:N}=mW(t),L=r.computed(()=>t.rows*t.columns),F=r.computed(()=>t.step||L.value),q=r.computed(()=>q_(f.value)??null),ee=r.computed(()=>Ja(f.value)??null),ie=r.computed(()=>t.minPage||(A.value?oe(A.value):null)),K=r.computed(()=>t.maxPage||(x.value?oe(x.value):null)),se=r.computed(()=>t.navVisibility),me=r.computed(()=>!!t.showWeeknumbers),J=r.computed(()=>!!t.showIsoWeeknumbers),he=r.computed(()=>h.value==="monthly"),fe=r.computed(()=>h.value==="weekly"),ye=r.computed(()=>h.value==="daily"),we=()=>{o.value=!0,n("transition-start")},R=()=>{o.value=!1,n("transition-end"),g&&(g.resolve(!0),g=null)},pe=(W,V,Y=h.value)=>u5(W,V,Y,S.value),oe=W=>d5(W,h.value,S.value),Ee=W=>{!T.value||!ht.value||(W.isDisabled=ht.value.cellExists(T.value.key,W.dayIndex))},Me=W=>{W.isFocusable=W.inMonth&&W.day===a.value},ge=(W,V)=>{for(const Y of W)for(const re of Y.days)if(V(re)===!1)return},Ne=r.computed(()=>f.value.reduce((W,V)=>(W.push(...V.viewDays),W),[])),lt=r.computed(()=>{const W=[];return(t.attributes||[]).forEach((V,Y)=>{!V||!V.dates||W.push(new I5({...V,order:V.order||0},b.value,S.value))}),T.value&&W.push(T.value),W}),Le=r.computed(()=>Ss(lt.value)),ht=r.computed(()=>{const W=new _H;return lt.value.forEach(V=>{V.ranges.forEach(Y=>{W.render(V,Y,Ne.value)})}),W}),It=r.computed(()=>Ne.value.reduce((W,V)=>(W[V.dayIndex]={day:V,cells:[]},W[V.dayIndex].cells.push(...ht.value.getCells(V)),W),{})),kt=(W,V)=>{const Y=t.showWeeknumbers||t.showIsoWeeknumbers;return Y==null?"":RP(Y)?Y?"left":"":Y.startsWith("right")?V>1?"right":Y:W>1?"left":Y},tt=()=>{var W,V;if(!Le.value)return null;const Y=lt.value.find(je=>je.pinPage)||lt.value[0];if(!Y||!Y.hasRanges)return null;const[re]=Y.ranges,Ce=((W=re.start)==null?void 0:W.date)||((V=re.end)==null?void 0:V.date);return Ce?oe(Ce):null},st=()=>{if(rs(q.value))return q.value;const W=tt();return rs(W)?W:oe(new Date)},rt=(W,V={})=>{const{view:Y=h.value,position:re=1,force:Ce}=V,je=re>0?1-re:-(L.value+re);let at=pe(W,je,Y),xt=pe(at,L.value-1,Y);return Ce||(V0(at,ie.value)?at=ie.value:cu(xt,K.value)&&(at=pe(K.value,1-L.value)),xt=pe(at,L.value-1)),{fromPage:at,toPage:xt}},Yt=(W,V,Y="")=>{if(Y==="none"||Y==="fade")return Y;if((W==null?void 0:W.view)!==(V==null?void 0:V.view))return"fade";const re=cu(V,W),Ce=V0(V,W);return!re&&!Ce?"fade":Y==="slide-v"?Ce?"slide-down":"slide-up":Ce?"slide-right":"slide-left"},ft=(W={})=>new Promise((V,Y)=>{const{position:re=1,force:Ce=!1,transition:je}=W,at=rs(W.page)?W.page:st(),{fromPage:xt}=rt(at,{position:re,force:Ce}),sn=[];for(let Gt=0;Gt<L.value;Gt++){const qn=pe(xt,Gt),pt=Gt+1,An=Math.ceil(pt/t.columns),Sn=t.rows-An+1,ii=pt%t.columns||t.columns,Hi=t.columns-ii+1,Ds=kt(ii,Hi);sn.push(S.value.getPage({...qn,view:h.value,titlePosition:t.titlePosition,trimWeeks:t.trimWeeks,position:pt,row:An,rowFromEnd:Sn,column:ii,columnFromEnd:Hi,showWeeknumbers:me.value,showIsoWeeknumbers:J.value,weeknumberPosition:Ds}))}m.value=Yt(f.value[0],sn[0],je),f.value=sn,m.value&&m.value!=="none"?g={resolve:V,reject:Y}:V(!0)}),Ct=W=>{const V=q.value??oe(new Date);return pe(V,W)},tn=(W,V={})=>{const Y=rs(W)?W:oe(W);return Object.assign(V,rt(Y,{...V,force:!0})),pH(V.fromPage,V.toPage,h.value,S.value).map(Ce=>hH(Ce,ie.value,K.value)).some(Ce=>Ce)},nn=(W,V={})=>tn(Ct(W),V),bt=r.computed(()=>nn(-F.value)),nt=r.computed(()=>nn(F.value)),Nt=async(W,V={})=>!V.force&&!tn(W,V)?!1:(V.fromPage&&!fH(V.fromPage,q.value)&&(ql({id:c.value,hideDelay:0}),V.view&&(iW("view",10),h.value=V.view),await ft({...V,page:V.fromPage,position:1,force:!0}),n("did-move",f.value)),!0),Ot=(W,V={})=>Nt(Ct(W),V),At=()=>Ot(-F.value),Dt=()=>Ot(F.value),un=W=>{const V=he.value?".in-month":"",Y=`.id-${S.value.getDayId(W)}${V}`,re=`${Y}.vc-focusable, ${Y} .vc-focusable`,Ce=i.value;if(Ce){const je=Ce.querySelector(re);if(je)return je.focus(),!0}return!1},$t=async(W,V={})=>un(W)?!0:(await Nt(W,V),un(W)),te=(W,V)=>{a.value=W.day,n("dayclick",W,V)},Ie=(W,V)=>{n("daymouseenter",W,V)},Ye=(W,V)=>{n("daymouseleave",W,V)},pn=(W,V)=>{a.value=W.day,s.value=W,W.isFocused=!0,n("dayfocusin",W,V)},In=(W,V)=>{s.value=null,W.isFocused=!1,n("dayfocusout",W,V)},Un=(W,V)=>{n("daykeydown",W,V);const Y=W.noonDate;let re=null;switch(V.key){case"ArrowLeft":{re=Tn(Y,-1);break}case"ArrowRight":{re=Tn(Y,1);break}case"ArrowUp":{re=Tn(Y,-7);break}case"ArrowDown":{re=Tn(Y,7);break}case"Home":{re=Tn(Y,-W.weekdayPosition+1);break}case"End":{re=Tn(Y,W.weekdayPositionFromEnd);break}case"PageUp":{V.altKey?re=c5(Y,-1):re=lu(Y,-1);break}case"PageDown":{V.altKey?re=c5(Y,1):re=lu(Y,1);break}}re&&(V.preventDefault(),$t(re).catch())},j=W=>{const V=s.value;V!=null&&Un(V,W)},le=(W,V)=>{n("weeknumberclick",W,V)};ft({page:t.initialPage,position:t.initialPagePosition}),r.onMounted(()=>{!t.disablePageSwipe&&i.value&&(_=nW(i.value,({toLeft:W=!1,toRight:V=!1})=>{W?Dt():V&&At()},or("touch")))}),r.onUnmounted(()=>{f.value=[],_&&_()}),r.watch(()=>S.value,()=>{ft()}),r.watch(()=>L.value,()=>ft()),r.watch(()=>t.view,()=>h.value=t.view),r.watch(()=>h.value,()=>{sW("view",()=>{ft()}),n("update:view",h.value)}),r.watch(()=>a.value,()=>{ge(f.value,W=>Me(W))}),r.watchEffect(()=>{n("update:pages",f.value),ge(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:w,displayMode:C,locale:S,masks:E,attributes:lt,disabledAttribute:T,disabledDates:N,attributeContext:ht,days:Ne,dayCells:It,count:L,step:F,firstPage:q,lastPage:ee,canMovePrev:bt,canMoveNext:nt,minPage:ie,maxPage:K,isMonthly:he,isWeekly:fe,isDaily:ye,navVisibility:se,showWeeknumbers:me,showIsoWeeknumbers:J,getDateAddress:oe,canMove:tn,canMoveBy:nn,move:Nt,moveBy:Ot,movePrev:At,moveNext:Dt,onTransitionBeforeEnter:we,onTransitionAfterEnter:R,tryFocusDate:un,focusDate:$t,onKeydown:j,onDayKeydown:Un,onDayClick:te,onDayMouseenter:Ie,onDayMouseleave:Ye,onDayFocusin:pn,onDayFocusout:In,onWeeknumberClick:le};return r.provide(U5,ve),ve}function Xr(){const t=r.inject(U5);if(t)return t;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const vW=r.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=r.ref();let s=null,a=null;const o=r.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:pe}){c(R||(pe==null?void 0:pe.placement))}const h=r.computed(()=>({placement:o.placement,strategy:o.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:d},...o.modifiers||[]],onFirstUpdate:d})),f=r.computed(()=>{const R=o.direction==="left"||o.direction==="right";let pe="";if(o.placement){const oe=o.placement.split("-");oe.length>1&&(pe=oe[1])}return["start","top","left"].includes(pe)?R?"top":"left":["end","bottom","right"].includes(pe)?R?"bottom":"right":R?"middle":"center"});function m(){a&&(a.destroy(),a=null)}function g(){r.nextTick(()=>{const R=tu(o.target);!R||!i.value||(a&&a.state.elements.reference!==R&&m(),a?a.update():a=Go(R,i.value,h.value))})}function _(R){Object.assign(o,Z_(R,"force"))}function b(R,pe){clearTimeout(n),R>0?n=setTimeout(pe,R):pe()}function w(R){return!R||!a?!1:tu(R)===a.state.elements.reference}async function C(R={}){o.force||(R.force&&(o.force=!0),b(R.showDelay??t.showDelay,()=>{o.isVisible&&(o.force=!1),_({...R,isVisible:!0}),g()}))}function S(R={}){!a||R.target&&!w(R.target)||o.force||(R.force&&(o.force=!0),b(R.hideDelay??t.hideDelay,()=>{o.isVisible||(o.force=!1),o.isVisible=!1}))}function E(R={}){R.target!=null&&(o.isVisible&&w(R.target)?S(R):C(R))}function A(R){if(!a)return;const pe=a.state.elements.reference;if(!i.value||!pe)return;const oe=R.target;nu(i.value,oe)||nu(pe,oe)||S({force:!0})}function x(R){(R.key==="Esc"||R.key==="Escape")&&S()}function T({detail:R}){!R.id||R.id!==t.id||C(R)}function N({detail:R}){!R.id||R.id!==t.id||S(R)}function L({detail:R}){!R.id||R.id!==t.id||E(R)}function F(){ar(document,"keydown",x),ar(document,"click",A),ar(document,"show-popover",T),ar(document,"hide-popover",N),ar(document,"toggle-popover",L)}function q(){rr(document,"keydown",x),rr(document,"click",A),rr(document,"show-popover",T),rr(document,"hide-popover",N),rr(document,"toggle-popover",L)}function ee(R){e("before-show",R)}function ie(R){o.force=!1,e("after-show",R)}function K(R){e("before-hide",R)}function se(R){o.force=!1,m(),e("after-hide",R)}function me(R){R.stopPropagation()}function J(){o.isHovered=!0,o.isInteractive&&["hover","hover-focus"].includes(o.visibility)&&C()}function he(){if(o.isHovered=!1,!a)return;const R=a.state.elements.reference;o.autoHide&&!o.isFocused&&(!R||R!==document.activeElement)&&["hover","hover-focus"].includes(o.visibility)&&S()}function fe(){o.isFocused=!0,o.isInteractive&&["focus","hover-focus"].includes(o.visibility)&&C()}function ye(R){["focus","hover-focus"].includes(o.visibility)&&(!R.relatedTarget||!nu(i.value,R.relatedTarget))&&(o.isFocused=!1,!o.isHovered&&o.autoHide&&S())}function we(){s!=null&&(s.disconnect(),s=null)}return r.watch(()=>i.value,R=>{we(),R&&(s=new ResizeObserver(()=>{a&&a.update()}),s.observe(R))}),r.watch(()=>o.placement,c,{immediate:!0}),r.onMounted(()=>{F()}),r.onUnmounted(()=>{m(),we(),q()}),{...r.toRefs(o),popoverRef:i,alignment:f,hide:S,setupPopper:g,beforeEnter:ee,afterEnter:ie,beforeLeave:K,afterLeave:se,onClick:me,onMouseOver:J,onMouseLeave:he,onFocusIn:fe,onFocusOut:ye}}}),cr=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n};function bW(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",{class:r.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))},[r.createVNode(r.Transition,{name:`vc-${t.transition}`,appear:"",onBeforeEnter:t.beforeEnter,onAfterEnter:t.afterEnter,onBeforeLeave:t.beforeLeave,onAfterLeave:t.afterLeave},{default:r.withCtx(()=>[t.isVisible?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,tabindex:"-1",class:`vc-popover-content direction-${t.direction}`},t.$attrs),[r.renderSlot(t.$slots,"default",{direction:t.direction,alignment:t.alignment,data:t.data,hide:t.hide},()=>[r.createTextVNode(r.toDisplayString(t.data),1)]),r.createElementVNode("span",{class:r.normalizeClass(["vc-popover-caret",`direction-${t.direction}`,`align-${t.alignment}`])},null,2)],16)):r.createCommentVNode("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}const L0=cr(vW,[["render",bW]]),wW={class:"vc-day-popover-row"},kW={key:0,class:"vc-day-popover-row-indicator"},CW={class:"vc-day-popover-row-label"},xW=r.defineComponent({__name:"PopoverRow",props:{attribute:null},setup(t){const e=t,n=r.computed(()=>{const{content:i,highlight:s,dot:a,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}`}:a?{class:`vc-dot vc-attr vc-${a.base.color}`}:o?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${o.base.color}`}:null});return(i,s)=>(r.openBlock(),r.createElementBlock("div",wW,[r.unref(n)?(r.openBlock(),r.createElementBlock("div",kW,[r.createElementVNode("span",{class:r.normalizeClass(r.unref(n).class)},null,2)])):r.createCommentVNode("",!0),r.createElementVNode("div",CW,[r.renderSlot(i.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(t.attribute.popover?t.attribute.popover.label:"No content provided"),1)])])]))}}),SW={inheritAttrs:!1},bi=r.defineComponent({...SW,__name:"CalendarSlot",props:{name:null},setup(t){const n=j5(t.name);return(i,s)=>r.unref(n)?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(n)),r.normalizeProps(r.mergeProps({key:0},i.$attrs)),null,16)):r.renderSlot(i.$slots,"default",{key:1})}}),MW={class:"vc-day-popover-container"},OW={key:0,class:"vc-day-popover-header"},DW=r.defineComponent({__name:"CalendarDayPopover",setup(t){const{dayPopoverId:e,displayMode:n,color:i,masks:s,locale:a}=Xr();function o(d,h){return a.value.formatDate(d,h)}function c(d){return a.value.formatDate(d.date,s.value.dayPopover)}return(d,h)=>(r.openBlock(),r.createBlock(L0,{id:r.unref(e),class:r.normalizeClass([`vc-${r.unref(i)}`,`vc-${r.unref(n)}`])},{default:r.withCtx(({data:{day:f,attributes:m},hide:g})=>[r.createVNode(bi,{name:"day-popover",day:f,"day-title":c(f),attributes:m,format:o,masks:r.unref(s),hide:g},{default:r.withCtx(()=>[r.createElementVNode("div",MW,[r.unref(s).dayPopover?(r.openBlock(),r.createElementBlock("div",OW,r.toDisplayString(c(f)),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m,_=>(r.openBlock(),r.createBlock(xW,{key:_.key,attribute:_},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),EW={},VW={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},BW=[r.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1)];function TW(t,e){return r.openBlock(),r.createElementBlock("svg",VW,BW)}const IW=cr(EW,[["render",TW]]),AW={},$W={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},NW=[r.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1)];function zW(t,e){return r.openBlock(),r.createElementBlock("svg",$W,NW)}const PW=cr(AW,[["render",zW]]),LW={},FW={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},RW=[r.createElementVNode("polyline",{points:"6 9 12 15 18 9"},null,-1)];function HW(t,e){return r.openBlock(),r.createElementBlock("svg",FW,RW)}const WW=cr(LW,[["render",HW]]),YW={},jW={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},UW=[r.createElementVNode("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)];function qW(t,e){return r.openBlock(),r.createElementBlock("svg",jW,UW)}const GW=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:WW,IconChevronLeft:PW,IconChevronRight:IW,IconClock:cr(YW,[["render",qW]])},Symbol.toStringTag,{value:"Module"})),so=r.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=r.computed(()=>e.width||e.size),i=r.computed(()=>e.height||e.size),s=r.computed(()=>GW[`Icon${e.name}`]);return(a,o)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(s)),{width:r.unref(n),height:r.unref(i),class:"vc-base-icon"},null,8,["width","height"]))}}),KW=["disabled"],ZW={key:1,class:"vc-title-wrapper"},XW={type:"button",class:"vc-title"},JW=["disabled"],q5=r.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:a,canMoveNext:o,moveNext:c}=Xr(),d=r.computed(()=>{switch(e.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),h=r.computed(()=>{const{page:w}=e;return{id:n.value,visibility:i.value,placement:d.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:w},isInteractive:!0}}),f=r.computed(()=>e.page.titlePosition.includes("left")),m=r.computed(()=>e.page.titlePosition.includes("right")),g=r.computed(()=>e.layout?e.layout:f.value?"tu-pn":m.value?"pn-tu":"p-tu-n;"),_=r.computed(()=>({prev:g.value.includes("p")&&!e.hideArrows,title:g.value.includes("t")&&!e.hideTitle,next:g.value.includes("n")&&!e.hideArrows})),b=r.computed(()=>({gridTemplateColumns:g.value.split("").map(C=>{switch(C){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}}).join(" ")}));return(w,C)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["vc-header",{"is-lg":t.isLg,"is-xl":t.isXl,"is-2xl":t.is2xl}]),style:r.normalizeStyle(r.unref(b))},[r.unref(_).prev?(r.openBlock(),r.createElementBlock("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!r.unref(s),onClick:C[0]||(C[0]=(...S)=>r.unref(a)&&r.unref(a)(...S)),onKeydown:C[1]||(C[1]=r.withKeys((...S)=>r.unref(a)&&r.unref(a)(...S),["space","enter"]))},[r.createVNode(bi,{name:"header-prev-button",disabled:!r.unref(s)},{default:r.withCtx(()=>[r.createVNode(so,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,KW)):r.createCommentVNode("",!0),r.unref(_).title?(r.openBlock(),r.createElementBlock("div",ZW,[r.createVNode(bi,{name:"header-title-wrapper"},{default:r.withCtx(()=>[r.withDirectives((r.openBlock(),r.createElementBlock("button",XW,[r.createVNode(bi,{name:"header-title",title:t.page.title},{default:r.withCtx(()=>[r.createElementVNode("span",null,r.toDisplayString(t.page.title),1)]),_:1},8,["title"])])),[[r.unref(P5),r.unref(h)]])]),_:1})])):r.createCommentVNode("",!0),r.unref(_).next?(r.openBlock(),r.createElementBlock("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!r.unref(o),onClick:C[2]||(C[2]=(...S)=>r.unref(c)&&r.unref(c)(...S)),onKeydown:C[3]||(C[3]=r.withKeys((...S)=>r.unref(c)&&r.unref(c)(...S),["space","enter"]))},[r.createVNode(bi,{name:"header-next-button",disabled:!r.unref(o)},{default:r.withCtx(()=>[r.createVNode(so,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,JW)):r.createCommentVNode("",!0)],6))}}),G5=Symbol("__vc_page_context__");function QW(t){const{locale:e,getDateAddress:n,canMove:i}=Xr();function s(c,d){const{month:h,year:f}=n(new Date);return V5().map((m,g)=>{const _=g+1;return{month:_,year:c,id:uH(_,c),label:e.value.formatDate(m,d),ariaLabel:e.value.formatDate(m,"MMMM"),isActive:_===t.value.month&&c===t.value.year,isCurrent:_===h&&c===f,isDisabled:!i({month:_,year:c},{position:t.value.position})}})}function a(c,d){const{year:h}=n(new Date),{position:f}=t.value,m=[];for(let g=c;g<=d;g+=1){const _=[...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:!_})}return m}const o={page:t,getMonthItems:s,getYearItems:a};return r.provide(G5,o),o}function K5(){const t=r.inject(G5);if(t)return t;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const eY={class:"vc-nav-header"},tY=["disabled"],nY=["disabled"],iY={class:"vc-nav-items"},sY=["data-id","aria-label","disabled","onClick","onKeydown"],rY=r.defineComponent({__name:"CalendarNav",setup(t){const{masks:e,move:n}=Xr(),{page:i,getMonthItems:s,getYearItems:a}=K5(),o=r.ref(!0),c=12,d=r.ref(i.value.year),h=r.ref(g(i.value.year)),f=r.ref(null);function m(){setTimeout(()=>{if(f.value==null)return;const oe=f.value.querySelector(".vc-nav-item:not(:disabled)");oe&&oe.focus()},10)}function g(oe){return Math.floor(oe/c)}function _(){o.value=!o.value}function b(oe){return oe*c}function w(oe){return c*(oe+1)-1}function C(){!fe.value||(o.value&&E(),x())}function S(){!ye.value||(o.value&&A(),T())}function E(){d.value--}function A(){d.value++}function x(){h.value--}function T(){h.value++}const N=r.computed(()=>s(d.value,e.value.navMonths).map(oe=>({...oe,click:()=>n({month:oe.month,year:oe.year},{position:i.value.position})}))),L=r.computed(()=>s(d.value-1,e.value.navMonths)),F=r.computed(()=>L.value.some(oe=>!oe.isDisabled)),q=r.computed(()=>s(d.value+1,e.value.navMonths)),ee=r.computed(()=>q.value.some(oe=>!oe.isDisabled)),ie=r.computed(()=>a(b(h.value),w(h.value)).map(oe=>({...oe,click:()=>{d.value=oe.year,o.value=!0,m()}}))),K=r.computed(()=>a(b(h.value-1),w(h.value-1))),se=r.computed(()=>K.value.some(oe=>!oe.isDisabled)),me=r.computed(()=>a(b(h.value+1),w(h.value+1))),J=r.computed(()=>me.value.some(oe=>!oe.isDisabled)),he=r.computed(()=>o.value?N.value:ie.value),fe=r.computed(()=>o.value?F.value:se.value),ye=r.computed(()=>o.value?ee.value:J.value),we=r.computed(()=>q_(ie.value.map(oe=>oe.year))),R=r.computed(()=>Ja(ie.value.map(oe=>oe.year))),pe=r.computed(()=>o.value?d.value:`${we.value} - ${R.value}`);return r.watchEffect(()=>{d.value=i.value.year,m()}),r.watch(()=>d.value,oe=>h.value=g(oe)),r.onMounted(()=>m()),(oe,Ee)=>(r.openBlock(),r.createElementBlock("div",{class:"vc-nav-container",ref_key:"navContainer",ref:f},[r.createElementVNode("div",eY,[r.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!r.unref(fe),onClick:C,onKeydown:Ee[0]||(Ee[0]=Me=>r.unref(iu)(Me,C))},[r.createVNode(bi,{name:"nav-prev-button",move:C,disabled:!r.unref(fe)},{default:r.withCtx(()=>[r.createVNode(so,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,tY),r.createElementVNode("button",{type:"button",class:"vc-nav-title vc-focus",onClick:_,onKeydown:Ee[1]||(Ee[1]=Me=>r.unref(iu)(Me,_))},r.toDisplayString(r.unref(pe)),33),r.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!r.unref(ye),onClick:S,onKeydown:Ee[2]||(Ee[2]=Me=>r.unref(iu)(Me,S))},[r.createVNode(bi,{name:"nav-next-button",move:S,disabled:!r.unref(ye)},{default:r.withCtx(()=>[r.createVNode(so,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,nY)]),r.createElementVNode("div",iY,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(he),Me=>(r.openBlock(),r.createElementBlock("button",{key:Me.label,type:"button","data-id":Me.id,"aria-label":Me.ariaLabel,class:r.normalizeClass(["vc-nav-item vc-focus",[Me.isActive?"is-active":Me.isCurrent?"is-current":""]]),disabled:Me.isDisabled,onClick:Me.click,onKeydown:ge=>r.unref(iu)(ge,Me.click)},r.toDisplayString(Me.label),43,sY))),128))])],512))}}),Z5=r.defineComponent({__name:"CalendarPageProvider",props:{page:null},setup(t){const e=t;return QW(r.toRef(e,"page")),(n,i)=>r.renderSlot(n.$slots,"default")}}),aY=r.defineComponent({__name:"CalendarNavPopover",setup(t){const{navPopoverId:e,color:n,displayMode:i}=Xr();return(s,a)=>(r.openBlock(),r.createBlock(L0,{id:r.unref(e),class:r.normalizeClass(["vc-nav-popover-container",`vc-${r.unref(n)}`,`vc-${r.unref(i)}`])},{default:r.withCtx(({data:o})=>[r.createVNode(Z5,{page:o.page},{default:r.withCtx(()=>[r.createVNode(bi,{name:"nav"},{default:r.withCtx(()=>[r.createVNode(rY)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),oY=r.defineComponent({directives:{popover:P5},components:{CalendarSlot:bi},props:{day:{type:Object,required:!0}},setup(t){const{locale:e,theme:n,attributeContext:i,dayPopoverId:s,onDayClick:a,onDayMouseenter:o,onDayMouseleave:c,onDayFocusin:d,onDayFocusout:h,onDayKeydown:f}=Xr(),m=r.computed(()=>t.day),g=r.computed(()=>i.value.getCells(m.value)),_=r.computed(()=>g.value.map(J=>J.data)),b=r.computed(()=>({...m.value,attributes:_.value,attributeCells:g.value}));function w({data:J},{popovers:he}){const{key:fe,customData:ye,popover:we}=J;if(!we)return;const R=T_({key:fe,customData:ye,attribute:J},{...we},{visibility:we.label?"hover":"click",placement:"bottom",isInteractive:!we.label});he.splice(0,0,R)}const C=r.computed(()=>{const J={...n.value.prepareRender({}),popovers:[]};return g.value.forEach(he=>{n.value.render(he,J),w(he,J)}),J}),S=r.computed(()=>C.value.highlights),E=r.computed(()=>!!Ss(S.value)),A=r.computed(()=>C.value.content),x=r.computed(()=>C.value.dots),T=r.computed(()=>!!Ss(x.value)),N=r.computed(()=>C.value.bars),L=r.computed(()=>!!Ss(N.value)),F=r.computed(()=>C.value.popovers),q=r.computed(()=>F.value.map(J=>J.attribute)),ee=j5("day-content"),ie=r.computed(()=>["vc-day",...m.value.classes,{"vc-day-box-center-center":!ee},{"is-not-in-month":!t.day.inMonth}]),K=r.computed(()=>{let J;m.value.isFocusable?J="0":J="-1";const he=["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":m.value.isDisabled},Kr(Ja(S.value),"contentClass"),Kr(Ja(A.value),"class")||""],fe={...Kr(Ja(S.value),"contentStyle"),...Kr(Ja(A.value),"style")};return{class:he,style:fe,tabindex:J,"aria-label":m.value.ariaLabel,"aria-disabled":!!m.value.isDisabled,role:"button"}}),se=r.computed(()=>({click(J){a(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)}})),me=r.computed(()=>Ss(F.value)?T_({id:s.value,data:{day:m,attributes:q.value}},...F.value):null);return{attributes:_,attributeCells:g,bars:N,dayClasses:ie,dayContentProps:K,dayContentEvents:se,dayPopover:me,glyphs:C,dots:x,hasDots:T,hasBars:L,highlights:S,hasHighlights:E,locale:e,popovers:F}}}),lY={key:0,class:"vc-highlights vc-day-layer"},cY={key:1,class:"vc-day-layer vc-day-box-center-bottom"},dY={class:"vc-dots"},uY={key:2,class:"vc-day-layer vc-day-box-center-bottom"},hY={class:"vc-bars"};function fY(t,e,n,i,s,a){const o=r.resolveComponent("CalendarSlot"),c=r.resolveDirective("popover");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(t.dayClasses)},[t.hasHighlights?(r.openBlock(),r.createElementBlock("div",lY,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.highlights,({key:d,wrapperClass:h,class:f,style:m})=>(r.openBlock(),r.createElementBlock("div",{key:d,class:r.normalizeClass(h)},[r.createElementVNode("div",{class:r.normalizeClass(f),style:r.normalizeStyle(m)},null,6)],2))),128))])):r.createCommentVNode("",!0),r.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:r.withCtx(()=>[r.withDirectives((r.openBlock(),r.createElementBlock("div",r.mergeProps(t.dayContentProps,r.toHandlers(t.dayContentEvents,!0)),[r.createTextVNode(r.toDisplayString(t.day.label),1)],16)),[[c,t.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),t.hasDots?(r.openBlock(),r.createElementBlock("div",cY,[r.createElementVNode("div",dY,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.dots,({key:d,class:h,style:f})=>(r.openBlock(),r.createElementBlock("span",{key:d,class:r.normalizeClass(h),style:r.normalizeStyle(f)},null,6))),128))])])):r.createCommentVNode("",!0),t.hasBars?(r.openBlock(),r.createElementBlock("div",uY,[r.createElementVNode("div",hY,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.bars,({key:d,class:h,style:f})=>(r.openBlock(),r.createElementBlock("span",{key:d,class:r.normalizeClass(h),style:r.normalizeStyle(f)},null,6))),128))])])):r.createCommentVNode("",!0)],2)}const pY=cr(oY,[["render",fY]]),mY={class:"vc-weekdays"},gY=["onClick"],_Y={inheritAttrs:!1},yY=r.defineComponent({..._Y,__name:"CalendarPage",setup(t){const{page:e}=K5(),{onWeeknumberClick:n}=Xr();return(i,s)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["vc-pane",`row-${r.unref(e).row}`,`row-from-end-${r.unref(e).rowFromEnd}`,`column-${r.unref(e).column}`,`column-from-end-${r.unref(e).columnFromEnd}`]),ref:"pane"},[r.createVNode(q5,{page:r.unref(e),"is-lg":"","hide-arrows":""},null,8,["page"]),r.createElementVNode("div",{class:r.normalizeClass(["vc-weeks",{[`vc-show-weeknumbers-${r.unref(e).weeknumberPosition}`]:r.unref(e).weeknumberPosition}])},[r.createElementVNode("div",mY,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(e).weekdays,({weekday:a,label:o},c)=>(r.openBlock(),r.createElementBlock("div",{key:c,class:r.normalizeClass(`vc-weekday vc-weekday-${a}`)},r.toDisplayString(o),3))),128))]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(e).viewWeeks,a=>(r.openBlock(),r.createElementBlock("div",{key:`weeknumber-${a.weeknumber}`,class:"vc-week"},[r.unref(e).weeknumberPosition?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["vc-weeknumber",`is-${r.unref(e).weeknumberPosition}`])},[r.createElementVNode("span",{class:r.normalizeClass(["vc-weeknumber-content"]),onClick:o=>r.unref(n)(a,o)},r.toDisplayString(a.weeknumberDisplay),9,gY)],2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.days,o=>(r.openBlock(),r.createBlock(pY,{key:o.id,day:o},null,8,["day"]))),128))]))),128))],2)],2))}}),vY=r.defineComponent({components:{CalendarHeader:q5,CalendarPage:yY,CalendarNavPopover:aY,CalendarDayPopover:DW,CalendarPageProvider:Z5,CalendarSlot:bi},props:gW,emit:_W,setup(t,{emit:e,slots:n}){return yW(t,{emit:e,slots:n})}}),bY={class:"vc-pane-header-wrapper"};function wY(t,e,n,i,s,a){const o=r.resolveComponent("CalendarHeader"),c=r.resolveComponent("CalendarPage"),d=r.resolveComponent("CalendarSlot"),h=r.resolveComponent("CalendarPageProvider"),f=r.resolveComponent("CalendarDayPopover"),m=r.resolveComponent("CalendarNavPopover");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",r.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]=r.withModifiers(()=>{},["prevent"])),ref:"containerRef"}),[r.createElementVNode("div",{class:r.normalizeClass(["vc-pane-container",{"in-transition":t.inTransition}])},[r.createElementVNode("div",bY,[t.firstPage?(r.openBlock(),r.createBlock(o,{key:0,page:t.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):r.createCommentVNode("",!0)]),r.createVNode(r.Transition,{name:`vc-${t.transitionName}`,onBeforeEnter:t.onTransitionBeforeEnter,onAfterEnter:t.onTransitionAfterEnter},{default:r.withCtx(()=>[(r.openBlock(),r.createElementBlock("div",{key:t.pages[0].id,class:"vc-pane-layout",style:r.normalizeStyle({gridTemplateColumns:`repeat(${t.columns}, 1fr)`})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.pages,g=>(r.openBlock(),r.createBlock(h,{key:g.id,page:g},{default:r.withCtx(()=>[r.createVNode(d,{name:"page",page:g},{default:r.withCtx(()=>[r.createVNode(c)]),_:2},1032,["page"])]),_:2},1032,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),r.createVNode(d,{name:"footer"})],2)],16),r.createVNode(f),r.createVNode(m)],64)}const kY=cr(vY,[["render",wY]]),X5=Symbol("__vc_date_picker_context__"),CY={...R5,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:()=>or("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>or("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]},xY=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function SY(t,{emit:e,slots:n}){Y5(n,{footer:"dp-footer"});const i=H5(t),{locale:s,masks:a,disabledAttribute:o}=i,c=r.ref(!1),d=r.ref(Symbol()),h=r.ref(null),f=r.ref(null),m=r.ref(["",""]),g=r.ref(null),_=r.ref(null);let b,w,C=!0;const S=r.computed(()=>t.isRange||t.modelModifiers.range===!0),E=r.computed(()=>S.value&&h.value!=null?h.value.start:null),A=r.computed(()=>S.value&&h.value!=null?h.value.end:null),x=r.computed(()=>t.mode.toLowerCase()==="date"),T=r.computed(()=>t.mode.toLowerCase()==="datetime"),N=r.computed(()=>t.mode.toLowerCase()==="time"),L=r.computed(()=>!!f.value),F=r.computed(()=>{let V="date";t.modelModifiers.number&&(V="number"),t.modelModifiers.string&&(V="string");const Y=a.value.modelValue||"iso";return Ee({type:V,mask:Y})}),q=r.computed(()=>nn(f.value??h.value)),ee=r.computed(()=>N.value?t.is24hr?a.value.inputTime24hr:a.value.inputTime:T.value?t.is24hr?a.value.inputDateTime24hr:a.value.inputDateTime:a.value.input),ie=r.computed(()=>/[Hh]/g.test(ee.value)),K=r.computed(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(ee.value)),se=r.computed(()=>{if(ie.value&&K.value)return"dateTime";if(K.value)return"date";if(ie.value)return"time"}),me=r.computed(()=>{var V;const Y=((V=g.value)==null?void 0:V.$el.previousElementSibling)??void 0;return Wl({},t.popover,or("datePicker.popover"),{target:Y})}),J=r.computed(()=>$5({...me.value,id:d.value})),he=r.computed(()=>S.value?{start:m.value[0],end:m.value[1]}:m.value[0]),fe=r.computed(()=>{const V=["start","end"].map(Y=>({input:ft(Y),change:Ct(Y),keyup:tn,...t.popover&&J.value}));return S.value?{start:V[0],end:V[1]}:V[0]}),ye=r.computed(()=>{if(!lt(h.value))return null;const V={key:"select-drag",...t.selectAttribute,dates:h.value,pinPage:!0},{dot:Y,bar:re,highlight:Ce,content:je}=V;return!Y&&!re&&!Ce&&!je&&(V.highlight=!0),V}),we=r.computed(()=>{if(!S.value||!lt(f.value))return null;const V={key:"select-drag",...t.dragAttribute,dates:f.value},{dot:Y,bar:re,highlight:Ce,content:je}=V;return!Y&&!re&&!Ce&&!je&&(V.highlight={startEnd:{fillMode:"outline"}}),V}),R=r.computed(()=>{const V=vi(t.attributes)?[...t.attributes]:[];return we.value?V.unshift(we.value):ye.value&&V.unshift(ye.value),V}),pe=r.computed(()=>Ee(t.rules==="auto"?oe():t.rules??{}));function oe(){const V={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},Y=x.value?0:t.timeAccuracy;return[0,1].map(re=>{switch(Y){case 0:return{hours:V.hr[re],minutes:V.min[re],seconds:V.sec[re],milliseconds:V.ms[re]};case 1:return{minutes:V.min[re],seconds:V.sec[re],milliseconds:V.ms[re]};case 3:return{milliseconds:V.ms[re]};case 4:return{};default:return{seconds:V.sec[re],milliseconds:V.ms[re]}}})}function Ee(V){return vi(V)?V.length===1?[V[0],V[0]]:V:[V,V]}function Me(V){return Ee(V).map((Y,re)=>({...Y,rules:pe.value[re]}))}function ge(V){return V==null?!1:Ri(V)?!isNaN(V):Qa(V)?!isNaN(V.getTime()):ss(V)?V!=="":I0(V)}function Ne(V){return xs(V)&&"start"in V&&"end"in V&&ge(V.start??null)&&ge(V.end??null)}function lt(V){return Ne(V)||ge(V)}function Le(V,Y){if(V==null&&Y==null)return!0;if(V==null||Y==null)return!1;const re=Qa(V),Ce=Qa(Y);return re&&Ce?V.getTime()===Y.getTime():re||Ce?!1:Le(V.start,Y.start)&&Le(V.end,Y.end)}function ht(V){return!lt(V)||!o.value?!1:o.value.intersectsRange(s.value.range(V))}function It(V,Y,re,Ce){if(!lt(V))return null;if(Ne(V)){const je=s.value.toDate(V.start,{...Y[0],fillDate:E.value??void 0,patch:re}),at=s.value.toDate(V.end,{...Y[1],fillDate:A.value??void 0,patch:re});return In({start:je,end:at},Ce)}return s.value.toDateOrNull(V,{...Y[0],fillDate:h.value,patch:re})}function kt(V,Y){return Ne(V)?{start:s.value.fromDate(V.start,Y[0]),end:s.value.fromDate(V.end,Y[1])}:S.value?null:s.value.fromDate(V,Y[0])}function tt(V,Y={}){return clearTimeout(b),new Promise(re=>{const{debounce:Ce=0,...je}=Y;Ce>0?b=window.setTimeout(()=>{re(st(V,je))},Ce):re(st(V,je))})}function st(V,{config:Y=F.value,patch:re="dateTime",clearIfEqual:Ce=!1,formatInput:je=!0,hidePopover:at=!1,dragging:xt=L.value,targetPriority:sn,moveToValue:Gt=!1}={}){const qn=Me(Y);let pt=It(V,qn,re,sn);if(ht(pt)){if(xt)return null;pt=h.value,at=!1}else pt==null&&t.isRequired?pt=h.value:pt!=null&&Le(h.value,pt)&&Ce&&(pt=null);const Sn=xt?f:h,ii=!Le(Sn.value,pt);Sn.value=pt,xt||(f.value=null);const Hi=kt(pt,F.value);return ii&&(C=!1,e(xt?"drag":"update:modelValue",Hi),r.nextTick(()=>C=!0)),at&&!xt&&Ye(),je&&rt(),Gt&&r.nextTick(()=>le(sn??"start")),Hi}function rt(){r.nextTick(()=>{const V=Me({type:"string",mask:ee.value}),Y=kt(f.value??h.value,V);S.value?m.value=[Y&&Y.start,Y&&Y.end]:m.value=[Y,""]})}function Yt(V,Y,re){m.value.splice(Y==="start"?0:1,1,V);const Ce=S.value?{start:m.value[0],end:m.value[1]||m.value[0]}:V,je={type:"string",mask:ee.value};tt(Ce,{...re,config:je,patch:se.value,targetPriority:Y,moveToValue:!0})}function ft(V){return Y=>{!t.updateOnInput||Yt(Y.currentTarget.value,V,{formatInput:!1,hidePopover:!1,debounce:t.inputDebounce})}}function Ct(V){return Y=>{Yt(Y.currentTarget.value,V,{formatInput:!0,hidePopover:!1})}}function tn(V){V.key==="Escape"&&tt(h.value,{formatInput:!0,hidePopover:!0})}function nn(V){return S.value?[V&&V.start?s.value.getDateParts(V.start):null,V&&V.end?s.value.getDateParts(V.end):null]:[V?s.value.getDateParts(V):null]}function bt(){f.value=null,rt()}function nt(V){e("popover-will-show",V)}function Nt(V){e("popover-did-show",V)}function Ot(V){bt(),e("popover-will-hide",V)}function At(V){e("popover-did-hide",V)}function Dt(V){const Y={patch:"date",formatInput:!0,hidePopover:!0};if(S.value){const re=!L.value;re?w={start:V.startDate,end:V.endDate}:w!=null&&(w.end=V.date),tt(w,{...Y,dragging:re})}else tt(V.date,{...Y,clearIfEqual:!t.isRequired})}function un(V,Y){Dt(V),e("dayclick",V,Y)}function $t(V,Y){switch(Y.key){case" ":case"Enter":{Dt(V),Y.preventDefault();break}case"Escape":Ye()}e("daykeydown",V,Y)}function te(V,Y){!L.value||w==null||(w.end=V.date,tt(In(w),{patch:"date",formatInput:!0}))}function Ie(V={}){N0({...me.value,...V,isInteractive:!0,id:d.value})}function Ye(V={}){ql({hideDelay:10,force:!0,...me.value,...V,id:d.value})}function pn(V){A5({...me.value,...V,isInteractive:!0,id:d.value})}function In(V,Y){const{start:re,end:Ce}=V;if(re>Ce)switch(Y){case"start":return{start:re,end:re};case"end":return{start:Ce,end:Ce};default:return{start:Ce,end:re}}return{start:re,end:Ce}}async function Un(V,Y={}){return _.value==null?!1:_.value.move(V,Y)}async function j(V,Y={}){return _.value==null?!1:_.value.moveBy(V,Y)}async function le(V,Y={}){const re=h.value;if(_.value==null||!lt(re))return!1;const Ce=V!=="end",je=Ce?1:-1,at=Ne(re)?Ce?re.start:re.end:re,xt=d5(at,"monthly",s.value);return _.value.move(xt,{position:je,...Y})}r.watch(()=>t.isRange,V=>{V&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),r.watch(()=>S.value,()=>{st(null,{formatInput:!0})}),r.watch(()=>ee.value,()=>rt()),r.watch(()=>t.modelValue,V=>{!C||st(V,{formatInput:!0,hidePopover:!1})}),r.watch(()=>pe.value,()=>{xs(t.rules)&&st(t.modelValue,{formatInput:!0,hidePopover:!1})}),r.watch(()=>t.timezone,()=>{st(h.value,{formatInput:!0})});const ve=Ee(F.value);h.value=It(t.modelValue??null,ve,"dateTime"),r.onMounted(()=>{st(t.modelValue,{formatInput:!0,hidePopover:!1})}),r.nextTick(()=>c.value=!0);const W={...i,showCalendar:c,datePickerPopoverId:d,popoverRef:g,popoverEvents:J,calendarRef:_,isRange:S,isTimeMode:N,isDateTimeMode:T,is24hr:r.toRef(t,"is24hr"),hideTimeHeader:r.toRef(t,"hideTimeHeader"),timeAccuracy:r.toRef(t,"timeAccuracy"),isDragging:L,inputValue:he,inputEvents:fe,dateParts:q,attributes:R,rules:pe,move:Un,moveBy:j,moveToValue:le,updateValue:tt,showPopover:Ie,hidePopover:Ye,togglePopover:pn,onDayClick:un,onDayKeydown:$t,onDayMouseEnter:te,onPopoverBeforeShow:nt,onPopoverAfterShow:Nt,onPopoverBeforeHide:Ot,onPopoverAfterHide:At};return r.provide(X5,W),W}function F0(){const t=r.inject(X5);if(t)return t;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const MY=[{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"}],OY=[{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 DY(t){const e=F0(),{locale:n,isRange:i,isTimeMode:s,dateParts:a,rules:o,is24hr:c,hideTimeHeader:d,timeAccuracy:h,updateValue:f}=e;function m(K){K=Object.assign(_.value,K);let se=null;if(i.value){const me=g.value?K:a.value[0],J=g.value?a.value[1]:K;se={start:me,end:J}}else se=K;f(se,{patch:"time",targetPriority:g.value?"start":"end",moveToValue:!0})}const g=r.computed(()=>t.position===0),_=r.computed(()=>a.value[t.position]||{isValid:!1}),b=r.computed(()=>I0(_.value)),w=r.computed(()=>!!_.value.isValid),C=r.computed(()=>!d.value&&w.value),S=r.computed(()=>{if(!b.value)return null;let K=n.value.toDate(_.value);return _.value.hours===24&&(K=new Date(K.getTime()-1)),K}),E=r.computed({get(){return _.value.hours},set(K){m({hours:K})}}),A=r.computed({get(){return _.value.minutes},set(K){m({minutes:K})}}),x=r.computed({get(){return _.value.seconds},set(K){m({seconds:K})}}),T=r.computed({get(){return _.value.milliseconds},set(K){m({milliseconds:K})}}),N=r.computed({get(){return _.value.hours<12},set(K){K=String(K).toLowerCase()=="true";let se=E.value;K&&se>=12?se-=12:!K&&se<12&&(se+=12),m({hours:se})}}),L=r.computed(()=>XH(_.value,o.value[t.position])),F=r.computed(()=>MY.filter(K=>L.value.hours.some(se=>se.value===K.value))),q=r.computed(()=>OY.filter(K=>L.value.hours.some(se=>se.value===K.value))),ee=r.computed(()=>c.value?L.value.hours:N.value?F.value:q.value),ie=r.computed(()=>{const K=[];return Ss(F.value)&&K.push({value:!0,label:"AM"}),Ss(q.value)&&K.push({value:!1,label:"PM"}),K});return{...e,showHeader:C,timeAccuracy:h,parts:_,isValid:w,date:S,hours:E,minutes:A,seconds:x,milliseconds:T,options:L,hourOptions:ee,isAM:N,isAMOptions:ie,is24hr:c}}const EY=["value"],VY=["value","disabled"],BY={key:1,class:"vc-base-sizer","aria-hidden":"true"},TY={inheritAttrs:!1},Gl=r.defineComponent({...TY,__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=r.computed(()=>{const i=e.options.find(s=>s.value===e.modelValue);return i==null?void 0:i.label});return(i,s)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["vc-base-select",{"vc-fit-content":t.fitContent,"vc-has-icon":t.showIcon}])},[r.createElementVNode("select",r.mergeProps(i.$attrs,{value:t.modelValue,class:["vc-focus",{"vc-align-right":t.alignRight,"vc-align-left":t.alignLeft}],onChange:s[0]||(s[0]=a=>i.$emit("update:modelValue",a.target.value))}),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.options,a=>(r.openBlock(),r.createElementBlock("option",{key:a.value,value:a.value,disabled:a.disabled},r.toDisplayString(a.label),9,VY))),128))],16,EY),t.showIcon?(r.openBlock(),r.createBlock(so,{key:0,name:"ChevronDown",size:"18"})):r.createCommentVNode("",!0),t.fitContent?(r.openBlock(),r.createElementBlock("div",BY,r.toDisplayString(r.unref(n)),1)):r.createCommentVNode("",!0)],2))}}),IY={key:0,class:"vc-time-header"},AY={class:"vc-time-weekday"},$Y={class:"vc-time-month"},NY={class:"vc-time-day"},zY={class:"vc-time-year"},PY={class:"vc-time-select-group"},LY=r.createElementVNode("span",{class:"vc-time-colon"},":",-1),FY=r.createElementVNode("span",{class:"vc-time-colon"},":",-1),RY=r.createElementVNode("span",{class:"vc-time-decimal"},".",-1),J5=r.defineComponent({__name:"TimePicker",props:{position:null},setup(t,{expose:e}){const i=DY(t);e(i);const{locale:s,isValid:a,date:o,hours:c,minutes:d,seconds:h,milliseconds:f,options:m,hourOptions:g,isTimeMode:_,isAM:b,isAMOptions:w,is24hr:C,showHeader:S,timeAccuracy:E}=i;return(A,x)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["vc-time-picker",[{"vc-invalid":!r.unref(a),"vc-attached":!r.unref(_)}]])},[r.createVNode(bi,{name:"time-header"},{default:r.withCtx(()=>[r.unref(S)&&r.unref(o)?(r.openBlock(),r.createElementBlock("div",IY,[r.createElementVNode("span",AY,r.toDisplayString(r.unref(s).formatDate(r.unref(o),"WWW")),1),r.createElementVNode("span",$Y,r.toDisplayString(r.unref(s).formatDate(r.unref(o),"MMM")),1),r.createElementVNode("span",NY,r.toDisplayString(r.unref(s).formatDate(r.unref(o),"D")),1),r.createElementVNode("span",zY,r.toDisplayString(r.unref(s).formatDate(r.unref(o),"YYYY")),1)])):r.createCommentVNode("",!0)]),_:1}),r.createElementVNode("div",PY,[r.createVNode(so,{name:"Clock",size:"17"}),r.createVNode(Gl,{modelValue:r.unref(c),"onUpdate:modelValue":x[0]||(x[0]=T=>r.isRef(c)?c.value=T:null),modelModifiers:{number:!0},options:r.unref(g),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),r.unref(E)>1?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[LY,r.createVNode(Gl,{modelValue:r.unref(d),"onUpdate:modelValue":x[1]||(x[1]=T=>r.isRef(d)?d.value=T:null),modelModifiers:{number:!0},options:r.unref(m).minutes,class:"vc-time-select-minutes","align-left":r.unref(E)===2},null,8,["modelValue","options","align-left"])],64)):r.createCommentVNode("",!0),r.unref(E)>2?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[FY,r.createVNode(Gl,{modelValue:r.unref(h),"onUpdate:modelValue":x[2]||(x[2]=T=>r.isRef(h)?h.value=T:null),modelModifiers:{number:!0},options:r.unref(m).seconds,class:"vc-time-select-seconds","align-left":r.unref(E)===3},null,8,["modelValue","options","align-left"])],64)):r.createCommentVNode("",!0),r.unref(E)>3?(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[RY,r.createVNode(Gl,{modelValue:r.unref(f),"onUpdate:modelValue":x[3]||(x[3]=T=>r.isRef(f)?f.value=T:null),modelModifiers:{number:!0},options:r.unref(m).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):r.createCommentVNode("",!0),r.unref(C)?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(Gl,{key:3,modelValue:r.unref(b),"onUpdate:modelValue":x[4]||(x[4]=T=>r.isRef(b)?b.value=T:null),options:r.unref(w)},null,8,["modelValue","options"]))])],2))}}),Q5=r.defineComponent({__name:"DatePickerBase",setup(t){const{attributes:e,calendarRef:n,color:i,displayMode:s,isDateTimeMode:a,isTimeMode:o,isRange:c,onDayClick:d,onDayMouseEnter:h,onDayKeydown:f}=F0(),m=c.value?[0,1]:[0];return(g,_)=>r.unref(o)?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(`vc-container vc-bordered vc-${r.unref(i)} vc-${r.unref(s)}`)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(m),b=>(r.openBlock(),r.createBlock(J5,{key:b,position:b},null,8,["position"]))),128))],2)):(r.openBlock(),r.createBlock(kY,{key:1,attributes:r.unref(e),ref_key:"calendarRef",ref:n,onDayclick:r.unref(d),onDaymouseenter:r.unref(h),onDaykeydown:r.unref(f)},{footer:r.withCtx(()=>[r.unref(a)?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(r.unref(m),b=>(r.openBlock(),r.createBlock(J5,{key:b,position:b},null,8,["position"]))),128)):r.createCommentVNode("",!0),r.createVNode(bi,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),HY={inheritAttrs:!1},WY=r.defineComponent({...HY,__name:"DatePickerPopover",setup(t){const{datePickerPopoverId:e,color:n,displayMode:i,popoverRef:s,onPopoverBeforeShow:a,onPopoverAfterShow:o,onPopoverBeforeHide:c,onPopoverAfterHide:d}=F0();return(h,f)=>(r.openBlock(),r.createBlock(L0,{id:r.unref(e),placement:"bottom-start",class:r.normalizeClass(`vc-date-picker-content vc-${r.unref(n)} vc-${r.unref(i)}`),ref_key:"popoverRef",ref:s,onBeforeShow:r.unref(a),onAfterShow:r.unref(o),onBeforeHide:r.unref(c),onAfterHide:r.unref(d)},{default:r.withCtx(()=>[r.createVNode(Q5,r.normalizeProps(r.guardReactiveProps(h.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),YY=r.defineComponent({inheritAttrs:!1,emits:xY,props:CY,components:{DatePickerBase:Q5,DatePickerPopover:WY},setup(t,e){const n=SY(t,e),i=r.reactive(Z_(n,"calendarRef","popoverRef"));return{...n,slotCtx:i}}});function jY(t,e,n,i,s,a){const o=r.resolveComponent("DatePickerPopover"),c=r.resolveComponent("DatePickerBase");return t.$slots.default?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.renderSlot(t.$slots,"default",r.normalizeProps(r.guardReactiveProps(t.slotCtx))),r.createVNode(o,r.normalizeProps(r.guardReactiveProps(t.$attrs)),null,16)],64)):(r.openBlock(),r.createBlock(c,r.normalizeProps(r.mergeProps({key:1},t.$attrs)),null,16))}const ey=cr(YY,[["render",jY]]),O1e="";var xn={exports:{}};/**
43
+ */const xO={datetime:ue.DATETIME_MED_WITH_SECONDS,millisecond:"h:mm:ss.SSS a",second:ue.TIME_WITH_SECONDS,minute:ue.TIME_SIMPLE,hour:{hour:"numeric"},day:{day:"numeric",month:"short"},week:"DD",month:{month:"short",year:"numeric"},quarter:"'Q'q - yyyy",year:{year:"numeric"}};wg._date.override({_id:"luxon",_create:function(t){return ue.fromMillis(t,this.options)},init(t){this.options.locale||(this.options.locale=t.locale)},formats:function(){return xO},parse:function(t,e){const n=this.options,i=typeof t;return t===null||i==="undefined"?null:(i==="number"?t=this._create(t):i==="string"?typeof e=="string"?t=ue.fromFormat(t,e,n):t=ue.fromISO(t,n):t instanceof Date?t=ue.fromJSDate(t,n):i==="object"&&!(t instanceof ue)&&(t=ue.fromObject(t,n)),t.isValid?t.valueOf():null)},format:function(t,e){const n=this._create(t);return typeof e=="string"?n.toFormat(e):n.toLocaleString(e)},add:function(t,e,n){const i={};return i[n]=e,this._create(t).plus(i).valueOf()},diff:function(t,e,n){return this._create(t).diff(this._create(e)).as(n).valueOf()},startOf:function(t,e,n){if(e==="isoWeek"){n=Math.trunc(Math.min(Math.max(0,n),6));const i=this._create(t);return i.minus({days:(i.weekday-n+7)%7}).startOf("day").valueOf()}return e?this._create(t).startOf(e).valueOf():t},endOf:function(t,e){return this._create(t).endOf(e).valueOf()}});const Lue="";mi.register(...kh);const SO={components:{Line:vS},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)},theme:{type:String,required:!1,default:"",validator:t=>["green","teal","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},scales:{type:Object,default:()=>({})},animation:{type:Object,default:()=>({})},plugins:{type:Object,default:()=>({})}},data(){return{sassColorVariables:Wn,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}},...this.scales},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"}},...this.plugins},fill:this.fill,animation:{...this.animation}}}},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}},mounted(){this.chartOptions={...this.chartOptions,...this.scales}},methods:{paleteBuilder:ts,palete(){this.theme.length?this.palletColors=this.paleteBuilder(this.sassColorVariables.chartThemes):(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 a={label:this.showLabelName?s.name:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(a)})}),this.palete();const n=this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},generateBackgroundColor(){let t=this.variant.toLowerCase();this.theme.length&&(t=this.theme.toLowerCase());const e=this.palletColors.find(n=>n.variantName.toLowerCase()===t);return e?this.fill?e.colorShades.map(i=>i+"80"):e.colorShades:[]},setColors(t,e){const n={};t.forEach((i,s)=>{const a=i.name;n[a]||(n[a]=e.slice()),i.data.length>0&&(i.backgroundColor=n[a][s%n[a].length],i.borderColor=n[a][s%n[a].length]),i.borderRadius=6})},checkDashed(){this.chartOptions.borderDash=[this.borderDash[0],this.borderDash[1]]}}},MO={class:"responsive-container"};function OO(t,e,n,i,s,a){const o=r.resolveComponent("Line");return r.openBlock(),r.createElementBlock("span",null,[r.createElementVNode("div",MO,[r.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const DO=ne(SO,[["render",OO],["__scopeId","data-v-88deb5d1"]]),Fue="",EO={components:{Pie:bS},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:Wn,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:ts,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 a={label:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(a)})}),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})}}},VO={class:"responsive-container"};function BO(t,e,n,i,s,a){const o=r.resolveComponent("Pie");return r.openBlock(),r.createElementBlock("span",null,[r.createElementVNode("div",VO,[r.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const TO=ne(EO,[["render",BO],["__scopeId","data-v-df415374"]]),Rue="",IO={components:{PolarArea:wS},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:Wn,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:ts,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 a={label:this.showLabelName?s.name:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(a)})}),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})}}},AO={class:"responsive-container"};function $O(t,e,n,i,s,a){const o=r.resolveComponent("PolarArea");return r.openBlock(),r.createElementBlock("span",null,[r.createElementVNode("div",AO,[r.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const NO=ne(IO,[["render",$O],["__scopeId","data-v-386a0dc0"]]),Hue="";mi.register(...kh);const zO={components:{Bar:N2},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)},theme:{type:String,required:!1,default:"",validator:t=>["green","teal","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:Wn,localChartData:{},localLabels:[],palletColors:[],deleteFirstTwoColors:!1,chartOptions:{scales:{x:{stacked:!0,grid:{color:"transparent"}},y:{stacked:!0,grid:{color:"#DFE5EC"}}},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",padding:50}}}},plugins:[{id:"custom_legend_margin",beforeInit:function(t){const e=t.legend.fit;t.legend.fit=function(){e.call(this),this.height+=12}}}]}},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:ts,palete(){this.theme.length?this.palletColors=this.paleteBuilder(this.sassColorVariables.chartThemes):(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 a={label:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(a)})}),this.palete();const n=this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},getPalete(t=this.variant){const e=t.toLowerCase(),n=this.palletColors.find(i=>i.variantName.toLowerCase().includes(e));if(n)return n.colorShades},generateBackgroundColor(){let t=this.variant.toLowerCase();this.theme.length&&(t=this.theme.toLowerCase());const e=this.palletColors.find(n=>n.variantName.toLowerCase()===t);return e?this.fill?e.colorShades.map(i=>i+"80"):e.colorShades:[]},setMultiColors(t){const e={};let n=0;this.chartOptions.plugins.legend.display=!0,t.forEach((i,s)=>{const a=i.name;let o=1;s%5===0&&(n=0),o+=n,n++,e[a]=this.getPalete(i.variant)[o],i.backgroundColor=e[a],i.borderRadius=6})},setColors(t,e){const n={};this.chartOptions.plugins.legend.display=!0,t.forEach(i=>{const s=i.name;let a;t.length===1&&(a=2,n[s]=e[a],this.chartOptions.plugins.legend.display=!1),n[s]||(a=Object.keys(n).length%e.length,n[s]=e[a]),i.backgroundColor=n[s],i.borderRadius=6})}}},PO={class:"responsive-container"};function LO(t,e,n,i,s,a){const o=r.resolveComponent("Bar");return r.openBlock(),r.createElementBlock("span",null,[r.createElementVNode("div",PO,[r.createVNode(o,{is:"bar",data:s.localChartData,options:s.chartOptions,plugins:s.plugins},null,8,["data","options","plugins"])])])}const FO=ne(zO,[["render",LO],["__scopeId","data-v-a0e865bb"]]),Wue="",jh={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}}},f4=()=>{r.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}))},p4=jh.setup;jh.setup=p4?(t,e)=>(f4(),p4(t,e)):f4;const RO=jh,HO={class:"spacer"};function WO(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",HO,[r.renderSlot(t.$slots,"default",{},void 0,!0)])}const Ld=ne(RO,[["render",WO],["__scopeId","data-v-5aebf225"]]);function Uh(t,e=24){let n=t/8,i=n%4;return`${n>e?e:n-i+4}px`}const Yue="",qh={components:{CdsSpacer:Ld,CdsClickable:hs},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:Uh,handleClick(){this.clickable&&this.$emit("boxClick",!0)}}},m4=()=>{r.useCssVars(t=>({"4b1a623b":t.widthResolver,"5e38bcd5":t.borderRadiusResolver}))},g4=qh.setup;qh.setup=g4?(t,e)=>(m4(),g4(t,e)):m4;const YO=qh;function jO(t,e,n,i,s,a){const o=r.resolveComponent("cds-spacer"),c=r.resolveComponent("cds-clickable");return r.openBlock(),r.createElementBlock("div",{ref:"cds-box",class:r.normalizeClass(n.elevated?"box--elevated":`box--${n.variant}`)},[r.createVNode(c,{class:"box__container",clickable:n.clickable,onClick:a.handleClick},{default:r.withCtx(()=>[r.createVNode(o,{"padding-top":n.padding,"padding-right":n.padding,"padding-bottom":n.padding,"padding-left":n.padding},{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["padding-top","padding-right","padding-bottom","padding-left"])]),_:3},8,["clickable","onClick"])],2)}const Ll=ne(YO,[["render",jO],["__scopeId","data-v-0c52825f"]]),jue="",UO={directives:{"on-click-outside":fs.directive},components:{"cds-icon":Re},props:{modelValue:{type:Boolean,default:!1,required:!0},title:{type:String,default:"Onde encontrar o meu CNS"},noCloseOnBackdrop:{type:Boolean,default:!1}},emits:["update:model-value","close"],data(){return{internalModelValue:this.modelValue,toggleAnimationClass:!0}},watch:{modelValue(t,e){t!==e&&(t?this.internalModelValue=t:this.closeHandle(),this.mustDisableExternalScrolls(t))}},methods:{closeHandle(){this.toggleAnimationClass=!1,setTimeout(()=>{this.internalModelValue=!1,this.toggleAnimationClass=!0,this.$emit("update:model-value",!1),this.$emit("close",!0)},300)},mustDisableExternalScrolls(t){document.body.style.overflow=t?"hidden":"auto"}}},qO=t=>(r.pushScopeId("data-v-46ef76f4"),t=t(),r.popScopeId(),t),GO={key:0},KO=qO(()=>r.createElementVNode("div",{class:"bottom-sheet__header-border"},[r.createElementVNode("div",{class:"bottom-sheet__header-border-line"})],-1)),ZO={class:"bottom-sheet__header"},XO={class:"bottom-sheet__title"},JO={class:"bottom-sheet__content"};function QO(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon"),c=r.resolveDirective("on-click-outside");return s.internalModelValue?(r.openBlock(),r.createElementBlock("div",GO,[r.createElementVNode("div",{class:r.normalizeClass(s.toggleAnimationClass?"backdrop__show":"backdrop__hide")},[r.withDirectives((r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(s.toggleAnimationClass?"bottom-sheet__show":"bottom-sheet__hide")},[KO,r.createElementVNode("div",ZO,[r.createElementVNode("div",XO,r.toDisplayString(n.title),1),r.createElementVNode("div",{class:"bottom-sheet__close-icon",onClick:e[0]||(e[0]=(...d)=>a.closeHandle&&a.closeHandle(...d))},[r.createVNode(o,{name:"x-outline",height:"20",width:"20",color:"#29333D"})])]),r.createElementVNode("div",JO,[r.renderSlot(t.$slots,"default",{},void 0,!0)])],2)),[[c,n.noCloseOnBackdrop?()=>{}:a.closeHandle]])],2)])):r.createCommentVNode("",!0)}const eD=ne(UO,[["render",QO],["__scopeId","data-v-46ef76f4"]]);var Gh={exports:{}};(function(t,e){var n=9007199254740991,i="[object Arguments]",s="[object Function]",a="[object GeneratorFunction]",o="[object Map]",c="[object Object]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",m="[object DataView]",g=/[\\^$.*+?()[\]{}|]/g,_=/^\[object .+?Constructor\]$/,b=typeof cn=="object"&&cn&&cn.Object===Object&&cn,w=typeof self=="object"&&self&&self.Object===Object&&self,C=b||w||Function("return this")(),S=e&&!e.nodeType&&e,E=S&&!0&&t&&!t.nodeType&&t,A=E&&E.exports===S;function x(te,Ie){return te==null?void 0:te[Ie]}function T(te){var Ie=!1;if(te!=null&&typeof te.toString!="function")try{Ie=!!(te+"")}catch{}return Ie}function N(te,Ie){return function(Ye){return te(Ie(Ye))}}var L=Function.prototype,F=Object.prototype,q=C["__core-js_shared__"],ee=function(){var te=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return te?"Symbol(src)_1."+te:""}(),ie=L.toString,K=F.hasOwnProperty,se=F.toString,me=RegExp("^"+ie.call(K).replace(g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),J=A?C.Buffer:void 0,he=F.propertyIsEnumerable,fe=J?J.isBuffer:void 0,ye=N(Object.keys,Object),we=tt(C,"DataView"),R=tt(C,"Map"),pe=tt(C,"Promise"),oe=tt(C,"Set"),Ee=tt(C,"WeakMap"),Me=!he.call({valueOf:1},"valueOf"),ge=ft(we),Ne=ft(R),lt=ft(pe),Le=ft(oe),ht=ft(Ee);function It(te){return se.call(te)}function kt(te){if(!Dt(te)||rt(te))return!1;var Ie=Ot(te)||T(te)?me:_;return Ie.test(ft(te))}function tt(te,Ie){var Ye=x(te,Ie);return kt(Ye)?Ye:void 0}var st=It;(we&&st(new we(new ArrayBuffer(1)))!=m||R&&st(new R)!=o||pe&&st(pe.resolve())!=d||oe&&st(new oe)!=h||Ee&&st(new Ee)!=f)&&(st=function(te){var Ie=se.call(te),Ye=Ie==c?te.constructor:void 0,pn=Ye?ft(Ye):void 0;if(pn)switch(pn){case ge:return m;case Ne:return o;case lt:return d;case Le:return h;case ht:return f}return Ie});function rt(te){return!!ee&&ee in te}function Yt(te){var Ie=te&&te.constructor,Ye=typeof Ie=="function"&&Ie.prototype||F;return te===Ye}function ft(te){if(te!=null){try{return ie.call(te)}catch{}try{return te+""}catch{}}return""}function Ct(te){return bt(te)&&K.call(te,"callee")&&(!he.call(te,"callee")||se.call(te)==i)}var tn=Array.isArray;function nn(te){return te!=null&&At(te.length)&&!Ot(te)}function bt(te){return un(te)&&nn(te)}var nt=fe||$t;function Nt(te){if(nn(te)&&(tn(te)||typeof te=="string"||typeof te.splice=="function"||nt(te)||Ct(te)))return!te.length;var Ie=st(te);if(Ie==o||Ie==h)return!te.size;if(Me||Yt(te))return!ye(te).length;for(var Ye in te)if(K.call(te,Ye))return!1;return!0}function Ot(te){var Ie=Dt(te)?se.call(te):"";return Ie==s||Ie==a}function At(te){return typeof te=="number"&&te>-1&&te%1==0&&te<=n}function Dt(te){var Ie=typeof te;return!!te&&(Ie=="object"||Ie=="function")}function un(te){return!!te&&typeof te=="object"}function $t(){return!1}t.exports=Nt})(Gh,Gh.exports);const en=Gh.exports,Uue="",tD={components:{CdsIcon:Re,CdsSpacer:Ld,CdsClickable:hs},props:{items:{type:Array,default:()=>[],required:!0}},methods:{resolveRoute({route:t,path:e}){const n=en(t)?e:t;return n instanceof String?{path:n}:n},routerPushTo(t){return this.resolveRoute(t)?this.resolveRoute(t).path:null}}},nD={class:"breadcrumb"};function iD(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon"),c=r.resolveComponent("cds-spacer"),d=r.resolveComponent("router-link"),h=r.resolveComponent("cds-clickable");return r.openBlock(),r.createElementBlock("nav",null,[r.createElementVNode("ul",nD,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.items,(f,m)=>(r.openBlock(),r.createElementBlock("li",{key:`${m}-${f.name}-item`,role:"presentation"},[m===0?(r.openBlock(),r.createBlock(h,{key:0,clickable:""},{default:r.withCtx(()=>[r.createVNode(d,{to:a.routerPushTo(f),class:"breadcrumb__link"},{default:r.withCtx(()=>[n.items.length<=2?(r.openBlock(),r.createBlock(o,{key:0,height:"16",width:"16",name:"arrow-left-outline"})):(r.openBlock(),r.createBlock(o,{key:1,height:"15",width:"15",name:"home-outline"})),r.createVNode(c,{"margin-left":"2"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(f.label),1)]),_:2},1024)]),_:2},1032,["to"])]),_:2},1024)):(r.openBlock(),r.createBlock(c,{key:1,class:"breadcrumb__item","margin-right":"1","margin-left":"1"},{default:r.withCtx(()=>[r.createVNode(o,{height:"16",width:"16",name:"caret-right-outline",class:"breadcrumb__separator"}),r.createVNode(d,{to:a.routerPushTo(f),class:"breadcrumb__link"},{default:r.withCtx(()=>[r.createVNode(h,{clickable:m!==n.items.length-1},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(f.label),1)]),_:2},1032,["clickable"])]),_:2},1032,["to"])]),_:2},1024))]))),128))])])}const sD=ne(tD,[["render",iD],["__scopeId","data-v-3477c806"]]),que="",Kh={props:{src:{type:String,required:!0},fallbackSrc:{type:String,required:!1,default:"https://sysfront.nyc3.cdn.digitaloceanspaces.com/cuida/images/imagePlaceholder.png"},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},round:{type:Boolean,default:!1}},data(){return{innerSrc:this.src}},computed:{heightResolver(){return this.round?`${this.width}px`: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.round?"50%":this.roundedCorners?Uh(this.width):"0px"},grayScaleResolver(){return this.blackAndWhite?"grayscale(100%)":this.dimmed?"grayscale(35%)":"grayscale(0%)"}},methods:{rounder:Uh,imageSrcResolver(){this.innerSrc=this.fallbackSrc}}},_4=()=>{r.useCssVars(t=>({"5ba223ed":t.radiusResolver,"162d6710":t.grayScaleResolver,"6c3ce382":t.heightResolver,"0b2f1f14":t.opacity,"26a26417":t.widthResolver}))},y4=Kh.setup;Kh.setup=y4?(t,e)=>(_4(),y4(t,e)):_4;const rD=Kh,aD=["src","alt"];function oD(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("img",r.mergeProps(t.$attrs,{src:s.innerSrc,alt:n.alt,class:"cds__image",onError:e[0]||(e[0]=(...o)=>a.imageSrcResolver&&a.imageSrcResolver(...o))}),null,16,aD)}const Fd=ne(rD,[["render",oD],["__scopeId","data-v-44f14fbd"]]),Rd=(t,e)=>Object.keys(t).some(n=>n===e),Gue="",Zh={components:{CdsBox:Ll,CdsImage:Fd},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:Rd,handleClick(){this.clickable&&this.$emit("cardClick",!0)}}},v4=()=>{r.useCssVars(t=>({"8d304056":t.bodyWidthResolver,"4730bd46":t.imageWidthResolver}))},b4=Zh.setup;Zh.setup=b4?(t,e)=>(v4(),b4(t,e)):v4;const lD=Zh,cD={class:"card__extra-container"},dD={class:"card__extra"},uD={key:0},hD={key:1,class:"card__image"},fD={key:2,class:"card__icon"},pD={class:"card__spacer"},mD={key:0,class:"card__header"},gD={key:1},_D={class:"card__header"},yD={key:2,class:"card__body"},vD={key:3},bD={class:"card__body"},wD={key:4,class:"card__footer"};function kD(t,e,n,i,s,a){const o=r.resolveComponent("cds-image"),c=r.resolveComponent("cds-box");return r.openBlock(),r.createBlock(c,{padding:"0",clickable:n.clickable,onBoxClick:a.handleClick},{default:r.withCtx(()=>[r.createElementVNode("div",cD,[r.createElementVNode("div",dD,[r.renderSlot(t.$slots,"extra",{},void 0,!0)])]),r.createElementVNode("div",{class:r.normalizeClass({"card--horizontal":this.horizontal})},[a.hasSlot(t.$slots,"image")?(r.openBlock(),r.createElementBlock("div",uD,[r.renderSlot(t.$slots,"image",{},void 0,!0)])):n.imageSrc?(r.openBlock(),r.createElementBlock("div",hD,[r.createVNode(o,{src:n.imageSrc,width:n.imageWidth,height:n.imageHeight,alt:n.imageAlt},null,8,["src","width","height","alt"])])):a.hasSlot(t.$slots,"icon")?(r.openBlock(),r.createElementBlock("div",fD,[r.renderSlot(t.$slots,"icon",{},void 0,!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",pD,[a.hasSlot(t.$slots,"header")?(r.openBlock(),r.createElementBlock("div",mD,[r.renderSlot(t.$slots,"header",{},void 0,!0)])):(r.openBlock(),r.createElementBlock("div",gD,[r.createElementVNode("p",_D,r.toDisplayString(n.title),1)])),a.hasSlot(t.$slots,"body")?(r.openBlock(),r.createElementBlock("div",yD,[r.renderSlot(t.$slots,"body",{},void 0,!0)])):(r.openBlock(),r.createElementBlock("div",vD,[r.createElementVNode("p",bD,r.toDisplayString(n.content),1)])),a.hasSlot(t.$slots,"footer")?(r.openBlock(),r.createElementBlock("div",wD,[r.renderSlot(t.$slots,"footer",{},void 0,!0)])):r.createCommentVNode("",!0)])],2)]),_:3},8,["clickable","onBoxClick"])}const CD=ne(lD,[["render",kD],["__scopeId","data-v-ef799654"]]),Kue="",xD={components:{CdsButton:js},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}}},SD={id:"callout-card"},MD={class:"image__container"},OD=["src","alt"],DD={class:"content__title"},ED={class:"content__text"};function VD(t,e,n,i,s,a){const o=r.resolveComponent("cds-button");return r.openBlock(),r.createElementBlock("span",SD,[r.createElementVNode("div",{class:r.normalizeClass(a.resolveClass("callout-card__container"))},[r.createElementVNode("div",MD,[r.createElementVNode("img",{class:r.normalizeClass(a.resolveClass("image__content")),src:n.image,alt:n.imageDescription},null,10,OD)]),r.createElementVNode("div",{class:r.normalizeClass(a.resolveClass("content__container"))},[r.createElementVNode("div",{class:r.normalizeClass(a.resolveClass("content"))},[r.createElementVNode("p",DD,r.toDisplayString(n.title),1),r.createElementVNode("span",ED,[r.renderSlot(t.$slots,"text",{},()=>[r.createTextVNode(r.toDisplayString(n.text),1)])])],2),r.createElementVNode("div",null,[r.renderSlot(t.$slots,"action",{},()=>[r.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 BD=ne(xD,[["render",VD]]),Zue="",TD={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}))}}}},ID={key:0,class:"carousel-controller__text"},AD={key:1,class:"carousel-controller__text"},$D={class:"carousel-controller__property"};function ND(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("div",{class:r.normalizeClass(["carousel-controller",{"carousel-controller--fluid":n.fluid}])},[r.createElementVNode("span",{class:r.normalizeClass({"carousel-controller__previous-button--disabled":a.disabledBack,"carousel-controller__previous-button":!a.disabledBack}),onClick:e[0]||(e[0]=(...o)=>a.handleClickBack&&a.handleClickBack(...o))},null,2),r.createElementVNode("div",null,[n.simple?(r.openBlock(),r.createElementBlock("span",AD,r.toDisplayString(s.currentNumberOfItemsMin)+" de "+r.toDisplayString(a.numberOfPages),1)):(r.openBlock(),r.createElementBlock("span",ID,r.toDisplayString(s.currentNumberOfItemsMin)+"-"+r.toDisplayString(s.currentNumberOfItemsMax)+" de "+r.toDisplayString(n.total),1)),r.createElementVNode("span",$D,r.toDisplayString(n.propertyName),1)]),r.createElementVNode("span",{class:r.normalizeClass({"carousel-controller__next-button--disabled":a.disabledForward,"carousel-controller__next-button":!a.disabledForward}),onClick:e[1]||(e[1]=(...o)=>a.handleClickForward&&a.handleClickForward(...o))},null,2)],2)])}const zD=ne(TD,[["render",ND],["__scopeId","data-v-fcb19a0a"]]);function Xh(t,e){return`${t}--${e}`}const Xue="",PD={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=Xh("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))}}},LD={class:"cds-checkbox__container"},FD={class:"cds-checkbox__input"},RD=["id","value","name","disabled"],HD=["for"],WD=["for"];function YD(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",LD,[r.createElementVNode("div",FD,[r.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,RD),r.createElementVNode("label",{for:t.$attrs.id||"cds-checkbox-option-input",class:r.normalizeClass(a.resolveCheckboxClass),onClick:e[0]||(e[0]=(...o)=>a.toggleValue&&a.toggleValue(...o))},null,10,HD)]),r.createElementVNode("label",{class:r.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)=>a.toggleValue&&a.toggleValue(...o))},r.toDisplayString(n.label),11,WD)])}const Hd=ne(PD,[["render",YD],["__scopeId","data-v-0758b096"]]),Wd=[{name:"turquoise",hex:"#3CACDD",lighterHex:"#C2EDFF",lightestHex:"#f5fbff"},{name:"teal",hex:"#3CACDD",lighterHex:"#C2EDFF",lightestHex:"#eefcfa"},{name:"green",hex:"#2AC092",lighterHex:"#ABEDD9",lightestHex:"#f3fcf8"},{name:"blue",hex:"#377EE1",lighterHex:"#B6D1F7",lightestHex:"#f6f9fe"},{name:"indigo",hex:"#6174D1",lighterHex:"#CED6FD",lightestHex:"#f5f6ff"},{name:"violet",hex:"#A169D3",lighterHex:"#E6D2F9",lightestHex:"#faf5ff"},{name:"pink",hex:"#DD5A9C",lighterHex:"#F9C8E2",lightestHex:"#fff5fb"},{name:"red",hex:"#F95367",lighterHex:"#FBD0D6",lightestHex:"#fef6f7"},{name:"orange",hex:"#FF8567",lighterHex:"#FFD6CC",lightestHex:"#fef7f6"},{name:"amber",hex:"#FFB952",lighterHex:"#FFE2B8",lightestHex:"#fefbf6"},{name:"gray",hex:"#9AA8B6",lighterHex:"#ABB8C4",lightestHex:"#D6DCE3"},{name:"dark",hex:"#3B4754",lighterHex:"#647382",lightestHex:"#99A6B2"},{name:"white",hex:"#FFFFFF",lighterHex:"#FAFCFE",lightestHex:"#F4F8FB"}],ks=Wd.map(t=>t.name),Ya=t=>{const e=Wd.filter(n=>n.name===t)[0];return e?e.hex:""},jD=t=>{const e=Wd.filter(n=>n.name===t)[0];return e?e.lightestHex:""},UD=t=>ks.includes(t),Jue="",qD={class:"checkbox__container"},GD={class:"checkbox__label"},KD={key:0,class:"checkbox__required"},ZD=["onClick"],XD={key:0,class:"checkbox__error-message"},JD=ne({__name:"CheckboxGroup",props:{modelValue:{type:Array,default:()=>[]},options:{type:Array,default:()=>[]},label:{type:String,default:"Label"},required:{type:Boolean,default:!1},variant:{type:String,default:"green",validator:UD},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},errorMessage:{type:String,default:"Valor inv\xE1lido"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,i=e,s=r.ref([]),a=r.ref(0),o=r.computed(()=>n.state==="invalid");r.watch(s,()=>a.value+=1),r.onMounted(()=>{s.value=n.modelValue});function c(h){if(n.disabled)return"checkbox__item--disabled";const f=o.value?"checkbox__item--error":Xh("checkbox__item",n.variant);return s.value.includes(h)?`checkbox__item--selected ${f}`:`checkbox__item ${o.value?f:""}`}function d(h){if(!n.disabled){if(s.value.includes(h)){s.value=s.value.filter(f=>f!==h),i("update:modelValue",s.value);return}s.value.push(h),i("update:modelValue",s.value)}}return(h,f)=>(r.openBlock(),r.createElementBlock("div",qD,[r.createElementVNode("label",GD,[r.createTextVNode(r.toDisplayString(t.label)+" ",1),t.required?(r.openBlock(),r.createElementBlock("span",KD," * ")):r.createCommentVNode("",!0)]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.options,m=>(r.openBlock(),r.createElementBlock("div",{key:m.value,class:r.normalizeClass(c(m.value)),onClick:g=>d(m.value)},[r.createVNode(Hd,{id:m.value,"model-value":s.value.includes(m.value),label:m.label,disabled:t.disabled,variant:t.variant},null,8,["id","model-value","label","disabled","variant"])],10,ZD))),128)),o.value&&!t.disabled?(r.openBlock(),r.createElementBlock("div",XD,r.toDisplayString(t.errorMessage),1)):r.createCommentVNode("",!0)]))}},[["__scopeId","data-v-777bada1"]]),e1e="",QD={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}}},eE={id:"collapsible-container"},tE={class:"collapsible-container__title"},nE={key:0,class:"collapsible-container__content"};function iE(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("span",eE,[r.createElementVNode("div",{class:"collapsible-container__item",onClick:e[0]||(e[0]=(...o)=>a.triggerExpanded&&a.triggerExpanded(...o))},[r.createElementVNode("span",{class:r.normalizeClass(s.internalValue?"collapsible-container__chevron--opened":"collapsible-container__chevron--closed")},null,2),r.renderSlot(t.$slots,"title",{},()=>[r.createElementVNode("span",tE,r.toDisplayString(n.title),1)])]),s.internalValue?(r.openBlock(),r.createElementBlock("div",nE,[r.renderSlot(t.$slots,"default")])):r.createCommentVNode("",!0)])}const sE=ne(QD,[["render",iE]]),Jh=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},rE=.2126,aE=.7152,oE=.0722,lE=2.4,cE={POOR:3,GOOD:4.5,VERYGOOD:7,SUPER:12},dE=(t,e,n="GOOD")=>{let i=Jh(t),s=Jh(e);var a=w4(...i),o=w4(...s),c=Math.max(a,o),d=Math.min(a,o);return(c+.05)/(d+.05)>=cE[n]};function w4(t,e,n){var i=[t,e,n].map(s=>(s/=255,s<=.03928?s/12.92:Math.pow((s+.055)/1.055,lE)));return i[0]*rE+i[1]*aE+i[2]*oE}const t1e="",Qh={components:{CdsPopover:Pc,CdsIcon:Re},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:Wn,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:ts,ContrastChecker:dE,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,"")]}}},k4=()=>{r.useCssVars(t=>({f73e5680:t.selectedColor}))},C4=Qh.setup;Qh.setup=C4?(t,e)=>(k4(),C4(t,e)):k4;const uE=Qh,hE=t=>(r.pushScopeId("data-v-a4ff5e3b"),t=t(),r.popScopeId(),t),fE={key:0},pE={class:"color-picker__label"},mE=["onClick"],gE={key:1},_E=[hE(()=>r.createElementVNode("div",{class:"color-picker__preview"},null,-1))],yE=["onClick"];function vE(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon"),c=r.resolveComponent("cds-popover");return n.inline?(r.openBlock(),r.createElementBlock("div",fE,[r.createElementVNode("div",pE,r.toDisplayString(n.label),1),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.swatch,(d,h)=>(r.openBlock(),r.createElementBlock("div",{key:h,class:"color-picker__container"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d,(f,m)=>(r.openBlock(),r.createElementBlock("div",{key:m},[r.createElementVNode("div",{class:r.normalizeClass(`color-picker__swatch--${f.replace("$","")}`),onClick:g=>a.SwatchSelection(f)},[a.isCurrentColorSelected(f)?(r.openBlock(),r.createBlock(o,{key:0,height:"22",width:"22",name:"check-outline",class:r.normalizeClass(["swatch__icon",a.iconColorResolver])},null,8,["class"])):r.createCommentVNode("",!0)],10,mE)]))),128))]))),128))])):(r.openBlock(),r.createElementBlock("div",gE,[r.createElementVNode("div",{id:"color-picker",class:"color-picker__trigger",onClick:e[0]||(e[0]=r.withModifiers(d=>s.showPopover=!s.showPopover,["stop"]))},_E),r.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:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.swatch,(d,h)=>(r.openBlock(),r.createElementBlock("div",{key:h,class:"popover__container"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d,(f,m)=>(r.openBlock(),r.createElementBlock("div",{key:m},[r.createElementVNode("div",{class:r.normalizeClass(`color-picker__swatch--${f.replace("$","")}`),onClick:g=>a.SwatchSelection(f)},[a.isCurrentColorSelected(f)?(r.openBlock(),r.createBlock(o,{key:0,height:"22",width:"22",name:"check-outline",class:r.normalizeClass(["swatch__icon",a.iconColorResolver])},null,8,["class"])):r.createCommentVNode("",!0)],10,yE)]))),128))]))),128))]),_:1},8,["modelValue","height"])]))}const bE=ne(uE,[["render",vE],["__scopeId","data-v-a4ff5e3b"]]),i1e="",wE={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}}},kE={class:"dashboard-card"},CE={class:"dashboard-card__header"},xE={key:0,class:"dashboard-card__title"},SE={key:1,class:"dashboard-card__title"},ME={key:0,class:"dashboard-card__description"},OE={key:1,class:"dashboard-card__description"},DE={key:0};function EE(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",kE,[r.createElementVNode("div",null,[r.createElementVNode("div",CE,[n.title.length>0?(r.openBlock(),r.createElementBlock("p",xE,r.toDisplayString(n.title),1)):(r.openBlock(),r.createElementBlock("p",SE,[r.renderSlot(t.$slots,"title-slot",{},void 0,!0)])),r.createElementVNode("div",null,[r.renderSlot(t.$slots,"status-slot",{},void 0,!0)])]),n.description.length>0?(r.openBlock(),r.createElementBlock("p",ME,r.toDisplayString(n.description),1)):(r.openBlock(),r.createElementBlock("p",OE,[r.renderSlot(t.$slots,"description-slot",{},void 0,!0)]))]),r.createElementVNode("div",{class:"dashboard-card__action",onClick:e[0]||(e[0]=o=>t.$emit("action-button-click"))},[r.renderSlot(t.$slots,"action-slot",{},()=>[n.showAction?(r.openBlock(),r.createElementBlock("div",DE,r.toDisplayString(n.action),1)):r.createCommentVNode("",!0)],!0)])])}const VE=ne(wE,[["render",EE],["__scopeId","data-v-cd0db219"]]);var BE=Object.defineProperty,TE=(t,e,n)=>e in t?BE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xe=(t,e,n)=>(TE(t,typeof e!="symbol"?e+"":e,n),n),Yd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function x4(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var IE=Object.prototype,AE=IE.hasOwnProperty;function $E(t,e){return t!=null&&AE.call(t,e)}var NE=$E,zE=Array.isArray,Li=zE,PE=typeof Yd=="object"&&Yd&&Yd.Object===Object&&Yd,S4=PE,LE=S4,FE=typeof self=="object"&&self&&self.Object===Object&&self,RE=LE||FE||Function("return this")(),ns=RE,HE=ns,WE=HE.Symbol,jd=WE,M4=jd,O4=Object.prototype,YE=O4.hasOwnProperty,jE=O4.toString,Fl=M4?M4.toStringTag:void 0;function UE(t){var e=YE.call(t,Fl),n=t[Fl];try{t[Fl]=void 0;var i=!0}catch{}var s=jE.call(t);return i&&(e?t[Fl]=n:delete t[Fl]),s}var qE=UE,GE=Object.prototype,KE=GE.toString;function ZE(t){return KE.call(t)}var XE=ZE,D4=jd,JE=qE,QE=XE,eV="[object Null]",tV="[object Undefined]",E4=D4?D4.toStringTag:void 0;function nV(t){return t==null?t===void 0?tV:eV:E4&&E4 in Object(t)?JE(t):QE(t)}var is=nV;function iV(t){return t!=null&&typeof t=="object"}var Fi=iV,sV=is,rV=Fi,aV="[object Symbol]";function oV(t){return typeof t=="symbol"||rV(t)&&sV(t)==aV}var e0=oV,lV=Li,cV=e0,dV=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,uV=/^\w*$/;function hV(t,e){if(lV(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||cV(t)?!0:uV.test(t)||!dV.test(t)||e!=null&&t in Object(e)}var t0=hV;function fV(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Cs=fV,pV=is,mV=Cs,gV="[object AsyncFunction]",_V="[object Function]",yV="[object GeneratorFunction]",vV="[object Proxy]";function bV(t){if(!mV(t))return!1;var e=pV(t);return e==_V||e==yV||e==gV||e==vV}var Ur=bV,wV=ns,kV=wV["__core-js_shared__"],CV=kV,n0=CV,V4=function(){var t=/[^.]+$/.exec(n0&&n0.keys&&n0.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function xV(t){return!!V4&&V4 in t}var SV=xV,MV=Function.prototype,OV=MV.toString;function DV(t){if(t!=null){try{return OV.call(t)}catch{}try{return t+""}catch{}}return""}var B4=DV,EV=Ur,VV=SV,BV=Cs,TV=B4,IV=/[\\^$.*+?()[\]{}|]/g,AV=/^\[object .+?Constructor\]$/,$V=Function.prototype,NV=Object.prototype,zV=$V.toString,PV=NV.hasOwnProperty,LV=RegExp("^"+zV.call(PV).replace(IV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function FV(t){if(!BV(t)||VV(t))return!1;var e=EV(t)?LV:AV;return e.test(TV(t))}var RV=FV;function HV(t,e){return t==null?void 0:t[e]}var WV=HV,YV=RV,jV=WV;function UV(t,e){var n=jV(t,e);return YV(n)?n:void 0}var qr=UV,qV=qr,GV=qV(Object,"create"),Ud=GV,T4=Ud;function KV(){this.__data__=T4?T4(null):{},this.size=0}var ZV=KV;function XV(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var JV=XV,QV=Ud,eB="__lodash_hash_undefined__",tB=Object.prototype,nB=tB.hasOwnProperty;function iB(t){var e=this.__data__;if(QV){var n=e[t];return n===eB?void 0:n}return nB.call(e,t)?e[t]:void 0}var sB=iB,rB=Ud,aB=Object.prototype,oB=aB.hasOwnProperty;function lB(t){var e=this.__data__;return rB?e[t]!==void 0:oB.call(e,t)}var cB=lB,dB=Ud,uB="__lodash_hash_undefined__";function hB(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=dB&&e===void 0?uB:e,this}var fB=hB,pB=ZV,mB=JV,gB=sB,_B=cB,yB=fB;function ja(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])}}ja.prototype.clear=pB,ja.prototype.delete=mB,ja.prototype.get=gB,ja.prototype.has=_B,ja.prototype.set=yB;var vB=ja;function bB(){this.__data__=[],this.size=0}var wB=bB;function kB(t,e){return t===e||t!==t&&e!==e}var Ua=kB,CB=Ua;function xB(t,e){for(var n=t.length;n--;)if(CB(t[n][0],e))return n;return-1}var qd=xB,SB=qd,MB=Array.prototype,OB=MB.splice;function DB(t){var e=this.__data__,n=SB(e,t);if(n<0)return!1;var i=e.length-1;return n==i?e.pop():OB.call(e,n,1),--this.size,!0}var EB=DB,VB=qd;function BB(t){var e=this.__data__,n=VB(e,t);return n<0?void 0:e[n][1]}var TB=BB,IB=qd;function AB(t){return IB(this.__data__,t)>-1}var $B=AB,NB=qd;function zB(t,e){var n=this.__data__,i=NB(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}var PB=zB,LB=wB,FB=EB,RB=TB,HB=$B,WB=PB;function qa(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])}}qa.prototype.clear=LB,qa.prototype.delete=FB,qa.prototype.get=RB,qa.prototype.has=HB,qa.prototype.set=WB;var Gd=qa,YB=qr,jB=ns,UB=YB(jB,"Map"),i0=UB,I4=vB,qB=Gd,GB=i0;function KB(){this.size=0,this.__data__={hash:new I4,map:new(GB||qB),string:new I4}}var ZB=KB;function XB(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var JB=XB,QB=JB;function eT(t,e){var n=t.__data__;return QB(e)?n[typeof e=="string"?"string":"hash"]:n.map}var Kd=eT,tT=Kd;function nT(t){var e=tT(this,t).delete(t);return this.size-=e?1:0,e}var iT=nT,sT=Kd;function rT(t){return sT(this,t).get(t)}var aT=rT,oT=Kd;function lT(t){return oT(this,t).has(t)}var cT=lT,dT=Kd;function uT(t,e){var n=dT(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}var hT=uT,fT=ZB,pT=iT,mT=aT,gT=cT,_T=hT;function Ga(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])}}Ga.prototype.clear=fT,Ga.prototype.delete=pT,Ga.prototype.get=mT,Ga.prototype.has=gT,Ga.prototype.set=_T;var s0=Ga,A4=s0,yT="Expected a function";function r0(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(yT);var n=function(){var i=arguments,s=e?e.apply(this,i):i[0],a=n.cache;if(a.has(s))return a.get(s);var o=t.apply(this,i);return n.cache=a.set(s,o)||a,o};return n.cache=new(r0.Cache||A4),n}r0.Cache=A4;var vT=r0,bT=vT,wT=500;function kT(t){var e=bT(t,function(i){return n.size===wT&&n.clear(),i}),n=e.cache;return e}var CT=kT,xT=CT,ST=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,MT=/\\(\\)?/g,OT=xT(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(ST,function(n,i,s,a){e.push(s?a.replace(MT,"$1"):i||n)}),e}),DT=OT;function ET(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 VT=ET,$4=jd,BT=VT,TT=Li,IT=e0,AT=1/0,N4=$4?$4.prototype:void 0,z4=N4?N4.toString:void 0;function P4(t){if(typeof t=="string")return t;if(TT(t))return BT(t,P4)+"";if(IT(t))return z4?z4.call(t):"";var e=t+"";return e=="0"&&1/t==-AT?"-0":e}var $T=P4,NT=$T;function zT(t){return t==null?"":NT(t)}var PT=zT,LT=Li,FT=t0,RT=DT,HT=PT;function WT(t,e){return LT(t)?t:FT(t,e)?[t]:RT(HT(t))}var L4=WT,YT=is,jT=Fi,UT="[object Arguments]";function qT(t){return jT(t)&&YT(t)==UT}var GT=qT,F4=GT,KT=Fi,R4=Object.prototype,ZT=R4.hasOwnProperty,XT=R4.propertyIsEnumerable,JT=F4(function(){return arguments}())?F4:function(t){return KT(t)&&ZT.call(t,"callee")&&!XT.call(t,"callee")},a0=JT,QT=9007199254740991,eI=/^(?:0|[1-9]\d*)$/;function tI(t,e){var n=typeof t;return e=e??QT,!!e&&(n=="number"||n!="symbol"&&eI.test(t))&&t>-1&&t%1==0&&t<e}var o0=tI,nI=9007199254740991;function iI(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=nI}var l0=iI,sI=e0,rI=1/0;function aI(t){if(typeof t=="string"||sI(t))return t;var e=t+"";return e=="0"&&1/t==-rI?"-0":e}var Zd=aI,oI=L4,lI=a0,cI=Li,dI=o0,uI=l0,hI=Zd;function fI(t,e,n){e=oI(e,t);for(var i=-1,s=e.length,a=!1;++i<s;){var o=hI(e[i]);if(!(a=t!=null&&n(t,o)))break;t=t[o]}return a||++i!=s?a:(s=t==null?0:t.length,!!s&&uI(s)&&dI(o,s)&&(cI(t)||lI(t)))}var H4=fI,pI=NE,mI=H4;function gI(t,e){return t!=null&&mI(t,e,pI)}var W4=gI,_I=is,yI=Fi,vI="[object Date]";function bI(t){return yI(t)&&_I(t)==vI}var wI=bI;function kI(t){return function(e){return t(e)}}var Y4=kI,Rl={},CI={get exports(){return Rl},set exports(t){Rl=t}};(function(t,e){var n=S4,i=e&&!e.nodeType&&e,s=i&&!0&&t&&!t.nodeType&&t,a=s&&s.exports===i,o=a&&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})(CI,Rl);var xI=wI,SI=Y4,j4=Rl,U4=j4&&j4.isDate,MI=U4?SI(U4):xI,OI=MI,DI=is,EI=Li,VI=Fi,BI="[object String]";function TI(t){return typeof t=="string"||!EI(t)&&VI(t)&&DI(t)==BI}var ss=TI;function II(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 q4=II,AI=Gd;function $I(){this.__data__=new AI,this.size=0}var NI=$I;function zI(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var PI=zI;function LI(t){return this.__data__.get(t)}var FI=LI;function RI(t){return this.__data__.has(t)}var HI=RI,WI=Gd,YI=i0,jI=s0,UI=200;function qI(t,e){var n=this.__data__;if(n instanceof WI){var i=n.__data__;if(!YI||i.length<UI-1)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new jI(i)}return n.set(t,e),this.size=n.size,this}var GI=qI,KI=Gd,ZI=NI,XI=PI,JI=FI,QI=HI,eA=GI;function Ka(t){var e=this.__data__=new KI(t);this.size=e.size}Ka.prototype.clear=ZI,Ka.prototype.delete=XI,Ka.prototype.get=JI,Ka.prototype.has=QI,Ka.prototype.set=eA;var c0=Ka,tA="__lodash_hash_undefined__";function nA(t){return this.__data__.set(t,tA),this}var iA=nA;function sA(t){return this.__data__.has(t)}var rA=sA,aA=s0,oA=iA,lA=rA;function Xd(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new aA;++e<n;)this.add(t[e])}Xd.prototype.add=Xd.prototype.push=oA,Xd.prototype.has=lA;var cA=Xd;function dA(t,e){return t.has(e)}var uA=dA,hA=cA,fA=q4,pA=uA,mA=1,gA=2;function _A(t,e,n,i,s,a){var o=n&mA,c=t.length,d=e.length;if(c!=d&&!(o&&d>c))return!1;var h=a.get(t),f=a.get(e);if(h&&f)return h==e&&f==t;var m=-1,g=!0,_=n&gA?new hA:void 0;for(a.set(t,e),a.set(e,t);++m<c;){var b=t[m],w=e[m];if(i)var C=o?i(w,b,m,e,t,a):i(b,w,m,t,e,a);if(C!==void 0){if(C)continue;g=!1;break}if(_){if(!fA(e,function(S,E){if(!pA(_,E)&&(b===S||s(b,S,n,i,a)))return _.push(E)})){g=!1;break}}else if(!(b===w||s(b,w,n,i,a))){g=!1;break}}return a.delete(t),a.delete(e),g}var G4=_A,yA=ns,vA=yA.Uint8Array,K4=vA;function bA(t){var e=-1,n=Array(t.size);return t.forEach(function(i,s){n[++e]=[s,i]}),n}var wA=bA;function kA(t){var e=-1,n=Array(t.size);return t.forEach(function(i){n[++e]=i}),n}var CA=kA,Z4=jd,X4=K4,xA=Ua,SA=G4,MA=wA,OA=CA,DA=1,EA=2,VA="[object Boolean]",BA="[object Date]",TA="[object Error]",IA="[object Map]",AA="[object Number]",$A="[object RegExp]",NA="[object Set]",zA="[object String]",PA="[object Symbol]",LA="[object ArrayBuffer]",FA="[object DataView]",J4=Z4?Z4.prototype:void 0,d0=J4?J4.valueOf:void 0;function RA(t,e,n,i,s,a,o){switch(n){case FA:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case LA:return!(t.byteLength!=e.byteLength||!a(new X4(t),new X4(e)));case VA:case BA:case AA:return xA(+t,+e);case TA:return t.name==e.name&&t.message==e.message;case $A:case zA:return t==e+"";case IA:var c=MA;case NA:var d=i&DA;if(c||(c=OA),t.size!=e.size&&!d)return!1;var h=o.get(t);if(h)return h==e;i|=EA,o.set(t,e);var f=SA(c(t),c(e),i,s,a,o);return o.delete(t),f;case PA:if(d0)return d0.call(t)==d0.call(e)}return!1}var HA=RA;function WA(t,e){for(var n=-1,i=e.length,s=t.length;++n<i;)t[s+n]=e[n];return t}var YA=WA,jA=YA,UA=Li;function qA(t,e,n){var i=e(t);return UA(t)?i:jA(i,n(t))}var GA=qA;function KA(t,e){for(var n=-1,i=t==null?0:t.length,s=0,a=[];++n<i;){var o=t[n];e(o,n,t)&&(a[s++]=o)}return a}var ZA=KA;function XA(){return[]}var JA=XA,QA=ZA,e$=JA,t$=Object.prototype,n$=t$.propertyIsEnumerable,Q4=Object.getOwnPropertySymbols,i$=Q4?function(t){return t==null?[]:(t=Object(t),QA(Q4(t),function(e){return n$.call(t,e)}))}:e$,s$=i$;function r$(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}var a$=r$,Za={},o$={get exports(){return Za},set exports(t){Za=t}};function l$(){return!1}var c$=l$;(function(t,e){var n=ns,i=c$,s=e&&!e.nodeType&&e,a=s&&!0&&t&&!t.nodeType&&t,o=a&&a.exports===s,c=o?n.Buffer:void 0,d=c?c.isBuffer:void 0,h=d||i;t.exports=h})(o$,Za);var d$=is,u$=l0,h$=Fi,f$="[object Arguments]",p$="[object Array]",m$="[object Boolean]",g$="[object Date]",_$="[object Error]",y$="[object Function]",v$="[object Map]",b$="[object Number]",w$="[object Object]",k$="[object RegExp]",C$="[object Set]",x$="[object String]",S$="[object WeakMap]",M$="[object ArrayBuffer]",O$="[object DataView]",D$="[object Float32Array]",E$="[object Float64Array]",V$="[object Int8Array]",B$="[object Int16Array]",T$="[object Int32Array]",I$="[object Uint8Array]",A$="[object Uint8ClampedArray]",$$="[object Uint16Array]",N$="[object Uint32Array]",Tt={};Tt[D$]=Tt[E$]=Tt[V$]=Tt[B$]=Tt[T$]=Tt[I$]=Tt[A$]=Tt[$$]=Tt[N$]=!0,Tt[f$]=Tt[p$]=Tt[M$]=Tt[m$]=Tt[O$]=Tt[g$]=Tt[_$]=Tt[y$]=Tt[v$]=Tt[b$]=Tt[w$]=Tt[k$]=Tt[C$]=Tt[x$]=Tt[S$]=!1;function z$(t){return h$(t)&&u$(t.length)&&!!Tt[d$(t)]}var P$=z$,L$=P$,F$=Y4,e_=Rl,t_=e_&&e_.isTypedArray,R$=t_?F$(t_):L$,u0=R$,H$=a$,W$=a0,Y$=Li,j$=Za,U$=o0,q$=u0,G$=Object.prototype,K$=G$.hasOwnProperty;function Z$(t,e){var n=Y$(t),i=!n&&W$(t),s=!n&&!i&&j$(t),a=!n&&!i&&!s&&q$(t),o=n||i||s||a,c=o?H$(t.length,String):[],d=c.length;for(var h in t)(e||K$.call(t,h))&&!(o&&(h=="length"||s&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||U$(h,d)))&&c.push(h);return c}var n_=Z$,X$=Object.prototype;function J$(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||X$;return t===n}var h0=J$;function Q$(t,e){return function(n){return t(e(n))}}var i_=Q$,eN=i_,tN=eN(Object.keys,Object),nN=tN,iN=h0,sN=nN,rN=Object.prototype,aN=rN.hasOwnProperty;function oN(t){if(!iN(t))return sN(t);var e=[];for(var n in Object(t))aN.call(t,n)&&n!="constructor"&&e.push(n);return e}var lN=oN,cN=Ur,dN=l0;function uN(t){return t!=null&&dN(t.length)&&!cN(t)}var Hl=uN,hN=n_,fN=lN,pN=Hl;function mN(t){return pN(t)?hN(t):fN(t)}var f0=mN,gN=GA,_N=s$,yN=f0;function vN(t){return gN(t,yN,_N)}var bN=vN,s_=bN,wN=1,kN=Object.prototype,CN=kN.hasOwnProperty;function xN(t,e,n,i,s,a){var o=n&wN,c=s_(t),d=c.length,h=s_(e),f=h.length;if(d!=f&&!o)return!1;for(var m=d;m--;){var g=c[m];if(!(o?g in e:CN.call(e,g)))return!1}var _=a.get(t),b=a.get(e);if(_&&b)return _==e&&b==t;var w=!0;a.set(t,e),a.set(e,t);for(var C=o;++m<d;){g=c[m];var S=t[g],E=e[g];if(i)var A=o?i(E,S,g,e,t,a):i(S,E,g,t,e,a);if(!(A===void 0?S===E||s(S,E,n,i,a):A)){w=!1;break}C||(C=g=="constructor")}if(w&&!C){var x=t.constructor,T=e.constructor;x!=T&&"constructor"in t&&"constructor"in e&&!(typeof x=="function"&&x instanceof x&&typeof T=="function"&&T instanceof T)&&(w=!1)}return a.delete(t),a.delete(e),w}var SN=xN,MN=qr,ON=ns,DN=MN(ON,"DataView"),EN=DN,VN=qr,BN=ns,TN=VN(BN,"Promise"),IN=TN,AN=qr,$N=ns,NN=AN($N,"Set"),zN=NN,PN=qr,LN=ns,FN=PN(LN,"WeakMap"),RN=FN,p0=EN,m0=i0,g0=IN,_0=zN,y0=RN,r_=is,Xa=B4,a_="[object Map]",HN="[object Object]",o_="[object Promise]",l_="[object Set]",c_="[object WeakMap]",d_="[object DataView]",WN=Xa(p0),YN=Xa(m0),jN=Xa(g0),UN=Xa(_0),qN=Xa(y0),Gr=r_;(p0&&Gr(new p0(new ArrayBuffer(1)))!=d_||m0&&Gr(new m0)!=a_||g0&&Gr(g0.resolve())!=o_||_0&&Gr(new _0)!=l_||y0&&Gr(new y0)!=c_)&&(Gr=function(t){var e=r_(t),n=e==HN?t.constructor:void 0,i=n?Xa(n):"";if(i)switch(i){case WN:return d_;case YN:return a_;case jN:return o_;case UN:return l_;case qN:return c_}return e});var GN=Gr,v0=c0,KN=G4,ZN=HA,XN=SN,u_=GN,h_=Li,f_=Za,JN=u0,QN=1,p_="[object Arguments]",m_="[object Array]",Jd="[object Object]",ez=Object.prototype,g_=ez.hasOwnProperty;function tz(t,e,n,i,s,a){var o=h_(t),c=h_(e),d=o?m_:u_(t),h=c?m_:u_(e);d=d==p_?Jd:d,h=h==p_?Jd:h;var f=d==Jd,m=h==Jd,g=d==h;if(g&&f_(t)){if(!f_(e))return!1;o=!0,f=!1}if(g&&!f)return a||(a=new v0),o||JN(t)?KN(t,e,n,i,s,a):ZN(t,e,d,n,i,s,a);if(!(n&QN)){var _=f&&g_.call(t,"__wrapped__"),b=m&&g_.call(e,"__wrapped__");if(_||b){var w=_?t.value():t,C=b?e.value():e;return a||(a=new v0),s(w,C,n,i,a)}}return g?(a||(a=new v0),XN(t,e,n,i,s,a)):!1}var nz=tz,iz=nz,__=Fi;function y_(t,e,n,i,s){return t===e?!0:t==null||e==null||!__(t)&&!__(e)?t!==t&&e!==e:iz(t,e,n,i,y_,s)}var v_=y_,sz=c0,rz=v_,az=1,oz=2;function lz(t,e,n,i){var s=n.length,a=s,o=!i;if(t==null)return!a;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<a;){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 sz;if(i)var g=i(h,f,d,t,e,m);if(!(g===void 0?rz(f,h,az|oz,i,m):g))return!1}}return!0}var cz=lz,dz=Cs;function uz(t){return t===t&&!dz(t)}var b_=uz,hz=b_,fz=f0;function pz(t){for(var e=fz(t),n=e.length;n--;){var i=e[n],s=t[i];e[n]=[i,s,hz(s)]}return e}var mz=pz;function gz(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}var w_=gz,_z=cz,yz=mz,vz=w_;function bz(t){var e=yz(t);return e.length==1&&e[0][2]?vz(e[0][0],e[0][1]):function(n){return n===t||_z(n,t,e)}}var wz=bz,kz=L4,Cz=Zd;function xz(t,e){e=kz(e,t);for(var n=0,i=e.length;t!=null&&n<i;)t=t[Cz(e[n++])];return n&&n==i?t:void 0}var k_=xz,Sz=k_;function Mz(t,e,n){var i=t==null?void 0:Sz(t,e);return i===void 0?n:i}var Kr=Mz;function Oz(t,e){return t!=null&&e in Object(t)}var Dz=Oz,Ez=Dz,Vz=H4;function Bz(t,e){return t!=null&&Vz(t,e,Ez)}var Tz=Bz,Iz=v_,Az=Kr,$z=Tz,Nz=t0,zz=b_,Pz=w_,Lz=Zd,Fz=1,Rz=2;function Hz(t,e){return Nz(t)&&zz(e)?Pz(Lz(t),e):function(n){var i=Az(n,t);return i===void 0&&i===e?$z(n,t):Iz(e,i,Fz|Rz)}}var Wz=Hz;function Yz(t){return t}var b0=Yz;function jz(t){return function(e){return e==null?void 0:e[t]}}var Uz=jz,qz=k_;function Gz(t){return function(e){return qz(e,t)}}var Kz=Gz,Zz=Uz,Xz=Kz,Jz=t0,Qz=Zd;function eP(t){return Jz(t)?Zz(Qz(t)):Xz(t)}var tP=eP,nP=wz,iP=Wz,sP=b0,rP=Li,aP=tP;function oP(t){return typeof t=="function"?t:t==null?sP:typeof t=="object"?rP(t)?iP(t[0],t[1]):nP(t):aP(t)}var C_=oP;function lP(t){return function(e,n,i){for(var s=-1,a=Object(e),o=i(e),c=o.length;c--;){var d=o[t?c:++s];if(n(a[d],d,a)===!1)break}return e}}var cP=lP,dP=cP,uP=dP(),x_=uP,hP=x_,fP=f0;function pP(t,e){return t&&hP(t,e,fP)}var S_=pP,mP=Hl;function gP(t,e){return function(n,i){if(n==null)return n;if(!mP(n))return t(n,i);for(var s=n.length,a=e?s:-1,o=Object(n);(e?a--:++a<s)&&i(o[a],a,o)!==!1;);return n}}var _P=gP,yP=S_,vP=_P,bP=vP(yP),wP=bP,kP=wP;function CP(t,e){var n;return kP(t,function(i,s,a){return n=e(i,s,a),!n}),!!n}var xP=CP,SP=Ua,MP=Hl,OP=o0,DP=Cs;function EP(t,e,n){if(!DP(n))return!1;var i=typeof e;return(i=="number"?MP(n)&&OP(e,n.length):i=="string"&&e in n)?SP(n[e],t):!1}var w0=EP,VP=q4,BP=C_,TP=xP,IP=Li,AP=w0;function $P(t,e,n){var i=IP(t)?VP:TP;return n&&AP(t,e,n)&&(e=void 0),i(t,BP(e))}var NP=$P,zP=is,PP=Fi,LP="[object Boolean]";function FP(t){return t===!0||t===!1||PP(t)&&zP(t)==LP}var RP=FP,HP=is,WP=Fi,YP="[object Number]";function jP(t){return typeof t=="number"||WP(t)&&HP(t)==YP}var Ri=jP,UP=qr,qP=function(){try{var t=UP(Object,"defineProperty");return t({},"",{}),t}catch{}}(),M_=qP,O_=M_;function GP(t,e,n){e=="__proto__"&&O_?O_(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Qd=GP,KP=Qd,ZP=Ua,XP=Object.prototype,JP=XP.hasOwnProperty;function QP(t,e,n){var i=t[e];(!(JP.call(t,e)&&ZP(i,n))||n===void 0&&!(e in t))&&KP(t,e,n)}var eL=QP,tL=Qd,nL=S_,iL=C_;function sL(t,e){var n={};return e=iL(e),nL(t,function(i,s,a){tL(n,s,e(i,s,a))}),n}var rL=sL;function aL(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 D_=aL,oL=D_,E_=Math.max;function lL(t,e,n){return e=E_(e===void 0?t.length-1:e,0),function(){for(var i=arguments,s=-1,a=E_(i.length-e,0),o=Array(a);++s<a;)o[s]=i[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=i[s];return c[e]=n(o),oL(t,this,c)}}var cL=lL;function dL(t){return function(){return t}}var uL=dL,hL=uL,V_=M_,fL=b0,pL=V_?function(t,e){return V_(t,"toString",{configurable:!0,enumerable:!1,value:hL(e),writable:!0})}:fL,mL=pL,gL=800,_L=16,yL=Date.now;function vL(t){var e=0,n=0;return function(){var i=yL(),s=_L-(i-n);if(n=i,s>0){if(++e>=gL)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var bL=vL,wL=mL,kL=bL,CL=kL(wL),xL=CL,SL=b0,ML=cL,OL=xL;function DL(t,e){return OL(ML(t,e,SL),t+"")}var k0=DL;function EL(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var VL=EL,BL=Cs,TL=h0,IL=VL,AL=Object.prototype,$L=AL.hasOwnProperty;function NL(t){if(!BL(t))return IL(t);var e=TL(t),n=[];for(var i in t)i=="constructor"&&(e||!$L.call(t,i))||n.push(i);return n}var zL=NL,PL=n_,LL=zL,FL=Hl;function RL(t){return FL(t)?PL(t,!0):LL(t)}var C0=RL,HL=k0,WL=Ua,YL=w0,jL=C0,B_=Object.prototype,UL=B_.hasOwnProperty,qL=HL(function(t,e){t=Object(t);var n=-1,i=e.length,s=i>2?e[2]:void 0;for(s&&YL(e[0],e[1],s)&&(i=1);++n<i;)for(var a=e[n],o=jL(a),c=-1,d=o.length;++c<d;){var h=o[c],f=t[h];(f===void 0||WL(f,B_[h])&&!UL.call(t,h))&&(t[h]=a[h])}return t}),T_=qL,GL=Qd,KL=Ua;function ZL(t,e,n){(n!==void 0&&!KL(t[e],n)||n===void 0&&!(e in t))&&GL(t,e,n)}var I_=ZL,eu={},XL={get exports(){return eu},set exports(t){eu=t}};(function(t,e){var n=ns,i=e&&!e.nodeType&&e,s=i&&!0&&t&&!t.nodeType&&t,a=s&&s.exports===i,o=a?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})(XL,eu);var A_=K4;function JL(t){var e=new t.constructor(t.byteLength);return new A_(e).set(new A_(t)),e}var QL=JL,eF=QL;function tF(t,e){var n=e?eF(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var nF=tF;function iF(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}var sF=iF,rF=Cs,$_=Object.create,aF=function(){function t(){}return function(e){if(!rF(e))return{};if($_)return $_(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),oF=aF,lF=i_,cF=lF(Object.getPrototypeOf,Object),N_=cF,dF=oF,uF=N_,hF=h0;function fF(t){return typeof t.constructor=="function"&&!hF(t)?dF(uF(t)):{}}var pF=fF,mF=Hl,gF=Fi;function _F(t){return gF(t)&&mF(t)}var yF=_F,vF=is,bF=N_,wF=Fi,kF="[object Object]",CF=Function.prototype,xF=Object.prototype,z_=CF.toString,SF=xF.hasOwnProperty,MF=z_.call(Object);function OF(t){if(!wF(t)||vF(t)!=kF)return!1;var e=bF(t);if(e===null)return!0;var n=SF.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&z_.call(n)==MF}var DF=OF;function EF(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var P_=EF,VF=eL,BF=Qd;function TF(t,e,n,i){var s=!n;n||(n={});for(var a=-1,o=e.length;++a<o;){var c=e[a],d=i?i(n[c],t[c],c,n,t):void 0;d===void 0&&(d=t[c]),s?BF(n,c,d):VF(n,c,d)}return n}var IF=TF,AF=IF,$F=C0;function NF(t){return AF(t,$F(t))}var zF=NF,L_=I_,PF=eu,LF=nF,FF=sF,RF=pF,F_=a0,R_=Li,HF=yF,WF=Za,YF=Ur,jF=Cs,UF=DF,qF=u0,H_=P_,GF=zF;function KF(t,e,n,i,s,a,o){var c=H_(t,n),d=H_(e,n),h=o.get(d);if(h){L_(t,n,h);return}var f=a?a(c,d,n+"",t,e,o):void 0,m=f===void 0;if(m){var g=R_(d),_=!g&&WF(d),b=!g&&!_&&qF(d);f=d,g||_||b?R_(c)?f=c:HF(c)?f=FF(c):_?(m=!1,f=PF(d,!0)):b?(m=!1,f=LF(d,!0)):f=[]:UF(d)||F_(d)?(f=c,F_(c)?f=GF(c):(!jF(c)||YF(c))&&(f=RF(d))):m=!1}m&&(o.set(d,f),s(f,d,i,a,o),o.delete(d)),L_(t,n,f)}var ZF=KF,XF=c0,JF=I_,QF=x_,eR=ZF,tR=Cs,nR=C0,iR=P_;function W_(t,e,n,i,s){t!==e&&QF(e,function(a,o){if(s||(s=new XF),tR(a))eR(t,e,o,n,W_,i,s);else{var c=i?i(iR(t,o),a,o+"",t,e,s):void 0;c===void 0&&(c=a),JF(t,o,c)}},nR)}var Y_=W_,sR=Y_,j_=Cs;function U_(t,e,n,i,s,a){return j_(t)&&j_(e)&&(a.set(e,t),sR(t,e,void 0,U_,a),a.delete(e)),t}var rR=U_,aR=k0,oR=w0;function lR(t){return aR(function(e,n){var i=-1,s=n.length,a=s>1?n[s-1]:void 0,o=s>2?n[2]:void 0;for(a=t.length>3&&typeof a=="function"?(s--,a):void 0,o&&oR(n[0],n[1],o)&&(a=s<3?void 0:a,s=1),e=Object(e);++i<s;){var c=n[i];c&&t(e,c,i,a)}return e})}var cR=lR,dR=Y_,uR=cR,hR=uR(function(t,e,n,i){dR(t,e,n,i)}),fR=hR,pR=D_,mR=k0,gR=rR,_R=fR,yR=mR(function(t){return t.push(void 0,gR),pR(_R,void 0,t)}),Wl=yR;function vR(t){return t&&t.length?t[0]:void 0}var q_=vR;function bR(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var Ja=bR;const wR=t=>Object.prototype.toString.call(t).slice(8,-1),Qa=t=>OI(t)&&!isNaN(t.getTime()),xs=t=>wR(t)==="Object",G_=W4,K_=(t,e)=>NP(e,n=>W4(t,n)),vt=(t,e,n="0")=>{for(t=t!=null?String(t):"",e=e||2;t.length<e;)t=`${n}${t}`;return t},vi=t=>Array.isArray(t),Ss=t=>vi(t)&&t.length>0,tu=t=>t==null?null:document&&ss(t)?document.querySelector(t):t.$el??t,rr=(t,e,n,i=void 0)=>{t.removeEventListener(e,n,i)},ar=(t,e,n,i=void 0)=>(t.addEventListener(e,n,i),()=>rr(t,e,n,i)),nu=(t,e)=>!!t&&!!e&&(t===e||t.contains(e)),iu=(t,e)=>{(t.key===" "||t.key==="Enter")&&(e(t),t.preventDefault())},Z_=(t,...e)=>{const n={};let i;for(i in t)e.includes(i)||(n[i]=t[i]);return n},X_=(t,e)=>{const n={};return e.forEach(i=>{i in t&&(n[i]=t[i])}),n};function kR(t,e,n){return Math.min(Math.max(t,e),n)}var su={},CR={get exports(){return su},set exports(t){su=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})(CR,su);const xR=x4(su);var ru={},SR={get exports(){return ru},set exports(t){ru=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})(SR,ru);const J_=x4(ru);function MR(t,e){var n=VR(e);return n.formatToParts?DR(n,t):ER(n,t)}var OR={year:0,month:1,day:2,hour:3,minute:4,second:5};function DR(t,e){try{for(var n=t.formatToParts(e),i=[],s=0;s<n.length;s++){var a=OR[n[s].type];a>=0&&(i[a]=parseInt(n[s].value,10))}return i}catch(o){if(o instanceof RangeError)return[NaN];throw o}}function ER(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 x0={};function VR(t){if(!x0[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";x0[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 x0[t]}function Q_(t,e,n,i,s,a,o){var c=new Date(0);return c.setUTCFullYear(t,e,n),c.setUTCHours(i,s,a,o),c}var e5=36e5,BR=6e4,S0={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function TR(t,e,n){var i,s;if(!t||(i=S0.timezoneZ.exec(t),i))return 0;var a;if(i=S0.timezoneHH.exec(t),i)return a=parseInt(i[1],10),t5(a)?-(a*e5):NaN;if(i=S0.timezoneHHMM.exec(t),i){a=parseInt(i[1],10);var o=parseInt(i[2],10);return t5(a,o)?(s=Math.abs(a)*e5+o*BR,a>0?-s:s):NaN}if($R(t)){e=new Date(e||Date.now());var c=n?e:IR(e),d=M0(c,t),h=n?d:AR(e,d,t);return-h}return NaN}function IR(t){return Q_(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function M0(t,e){var n=MR(t,e),i=Q_(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),s=t.getTime(),a=s%1e3;return s-=a>=0?a:1e3+a,i-s}function AR(t,e,n){var i=t.getTime(),s=i-e,a=M0(new Date(s),n);if(e===a)return e;s-=a-e;var o=M0(new Date(s),n);return a===o?a:Math.max(a,o)}function t5(t,e){return-23<=t&&t<=23&&(e==null||0<=e&&e<=59)}var n5={};function $R(t){if(n5[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),n5[t]=!0,!0}catch{return!1}}var NR=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const zR=NR;var O0=36e5,i5=6e4,PR=2,Bn={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:zR};function LR(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?PR:xR(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=FR(t),a=RR(s.date,i),o=a.year,c=a.restDateString,d=HR(c,o);if(isNaN(d))return new Date(NaN);if(d){var h=d.getTime(),f=0,m;if(s.time&&(f=WR(s.time),isNaN(f)))return new Date(NaN);if(s.timeZone||n.timeZone){if(m=TR(s.timeZone||n.timeZone,new Date(h+f)),isNaN(m))return new Date(NaN)}else m=J_(new Date(h+f)),m=J_(new Date(h+f+m));return new Date(h+f+m)}else return new Date(NaN)}function FR(t){var e={},n=Bn.dateTimePattern.exec(t),i;if(n?(e.date=n[1],i=n[3]):(n=Bn.datePattern.exec(t),n?(e.date=n[1],i=n[2]):(e.date=null,i=t)),i){var s=Bn.timeZone.exec(i);s?(e.time=i.replace(s[1],""),e.timeZone=s[1].trim()):e.time=i}return e}function RR(t,e){var n=Bn.YYY[e],i=Bn.YYYYY[e],s;if(s=Bn.YYYY.exec(t)||i.exec(t),s){var a=s[1];return{year:parseInt(a,10),restDateString:t.slice(a.length)}}if(s=Bn.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 HR(t,e){if(e===null)return null;var n,i,s,a;if(t.length===0)return i=new Date(0),i.setUTCFullYear(e),i;if(n=Bn.MM.exec(t),n)return i=new Date(0),s=parseInt(n[1],10)-1,a5(e,s)?(i.setUTCFullYear(e,s),i):new Date(NaN);if(n=Bn.DDD.exec(t),n){i=new Date(0);var o=parseInt(n[1],10);return UR(e,o)?(i.setUTCFullYear(e,0,o),i):new Date(NaN)}if(n=Bn.MMDD.exec(t),n){i=new Date(0),s=parseInt(n[1],10)-1;var c=parseInt(n[2],10);return a5(e,s,c)?(i.setUTCFullYear(e,s,c),i):new Date(NaN)}if(n=Bn.Www.exec(t),n)return a=parseInt(n[1],10)-1,o5(e,a)?s5(e,a):new Date(NaN);if(n=Bn.WwwD.exec(t),n){a=parseInt(n[1],10)-1;var d=parseInt(n[2],10)-1;return o5(e,a,d)?s5(e,a,d):new Date(NaN)}return null}function WR(t){var e,n,i;if(e=Bn.HH.exec(t),e)return n=parseFloat(e[1].replace(",",".")),D0(n)?n%24*O0:NaN;if(e=Bn.HHMM.exec(t),e)return n=parseInt(e[1],10),i=parseFloat(e[2].replace(",",".")),D0(n,i)?n%24*O0+i*i5:NaN;if(e=Bn.HHMMSS.exec(t),e){n=parseInt(e[1],10),i=parseInt(e[2],10);var s=parseFloat(e[3].replace(",","."));return D0(n,i,s)?n%24*O0+i*i5+s*1e3:NaN}return null}function s5(t,e,n){e=e||0,n=n||0;var i=new Date(0);i.setUTCFullYear(t,0,4);var s=i.getUTCDay()||7,a=e*7+n+1-s;return i.setUTCDate(i.getUTCDate()+a),i}var YR=[31,28,31,30,31,30,31,31,30,31,30,31],jR=[31,29,31,30,31,30,31,31,30,31,30,31];function r5(t){return t%400===0||t%4===0&&t%100!==0}function a5(t,e,n){if(e<0||e>11)return!1;if(n!=null){if(n<1)return!1;var i=r5(t);if(i&&n>jR[e]||!i&&n>YR[e])return!1}return!0}function UR(t,e){if(e<1)return!1;var n=r5(t);return!(n&&e>366||!n&&e>365)}function o5(t,e,n){return!(e<0||e>52||n!=null&&(n<0||n>6))}function D0(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 au(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?au=function(n){return typeof n}:au=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},au(t)}function Ms(t){kn(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||au(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 eo(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 qR={};function E0(){return qR}function Zr(t,e){var n,i,s,a,o,c,d,h;kn(1,arguments);var f=E0(),m=eo((n=(i=(s=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a: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=Ms(t),_=g.getDay(),b=(_<m?7:0)+_-m;return g.setDate(g.getDate()-b),g.setHours(0,0,0,0),g}function l5(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 GR=6048e5;function KR(t,e,n){kn(2,arguments);var i=Zr(t,n),s=Zr(e,n),a=i.getTime()-l5(i),o=s.getTime()-l5(s);return Math.round((a-o)/GR)}function ZR(t){kn(1,arguments);var e=Ms(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}function XR(t){kn(1,arguments);var e=Ms(t);return e.setDate(1),e.setHours(0,0,0,0),e}function JR(t,e){return kn(1,arguments),KR(ZR(t),XR(t),e)+1}function QR(t,e){var n,i,s,a,o,c,d,h;kn(1,arguments);var f=Ms(t),m=f.getFullYear(),g=E0(),_=eo((n=(i=(s=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a: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(!(_>=1&&_<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setFullYear(m+1,0,_),b.setHours(0,0,0,0);var w=Zr(b,e),C=new Date(0);C.setFullYear(m,0,_),C.setHours(0,0,0,0);var S=Zr(C,e);return f.getTime()>=w.getTime()?m+1:f.getTime()>=S.getTime()?m:m-1}function eH(t,e){var n,i,s,a,o,c,d,h;kn(1,arguments);var f=E0(),m=eo((n=(i=(s=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a: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=QR(t,e),_=new Date(0);_.setFullYear(g,0,m),_.setHours(0,0,0,0);var b=Zr(_,e);return b}var tH=6048e5;function nH(t,e){kn(1,arguments);var n=Ms(t),i=Zr(n,e).getTime()-eH(n,e).getTime();return Math.round(i/tH)+1}function ou(t){return kn(1,arguments),Zr(t,{weekStartsOn:1})}function iH(t){kn(1,arguments);var e=Ms(t),n=e.getFullYear(),i=new Date(0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);var s=ou(i),a=new Date(0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);var o=ou(a);return e.getTime()>=s.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function sH(t){kn(1,arguments);var e=iH(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var i=ou(n);return i}var rH=6048e5;function aH(t){kn(1,arguments);var e=Ms(t),n=ou(e).getTime()-sH(e).getTime();return Math.round(n/rH)+1}function Tn(t,e){kn(2,arguments);var n=Ms(t),i=eo(e);return isNaN(i)?new Date(NaN):(i&&n.setDate(n.getDate()+i),n)}function lu(t,e){kn(2,arguments);var n=Ms(t),i=eo(e);if(isNaN(i))return new Date(NaN);if(!i)return n;var s=n.getDate(),a=new Date(n.getTime());a.setMonth(n.getMonth()+i+1,0);var o=a.getDate();return s>=o?a:(n.setFullYear(a.getFullYear(),a.getMonth(),s),n)}function c5(t,e){kn(2,arguments);var n=eo(e);return lu(t,n*12)}const oH={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function lH({monthComps:t,prevMonthComps:e,nextMonthComps:n},i){const s=[],{firstDayOfWeek:a,firstWeekday:o,isoWeeknumbers:c,weeknumbers:d,numDays:h,numWeeks:f}=t,m=o+(o<a?Cn:0)-a;let g=!0,_=!1,b=!1,w=0;const C=new Intl.DateTimeFormat(i.id,{weekday:"long",year:"numeric",month:"short",day:"numeric"});let S=e.numDays-m+1,E=e.numDays-S+1,A=Math.floor((S-1)/Cn+1),x=1,T=e.numWeeks,N=1,L=e.month,F=e.year;const q=new Date,ee=q.getDate(),ie=q.getMonth()+1,K=q.getFullYear();for(let se=1;se<=NH;se++){for(let me=1,J=a;me<=Cn;me++,J+=J===Cn?1-Cn:1){g&&J===o&&(S=1,E=t.numDays,A=Math.floor((S-1)/Cn+1),x=Math.floor((h-S)/Cn+1),T=1,N=f,L=t.month,F=t.year,g=!1,_=!0);const he=i.getDateFromParams(F,L,S,0,0,0,0),fe=i.getDateFromParams(F,L,S,12,0,0,0),ye=i.getDateFromParams(F,L,S,23,59,59,999),we=he,R=`${vt(F,4)}-${vt(L,2)}-${vt(S,2)}`,pe=me,oe=Cn-me,Ee=d[se-1],Me=c[se-1],ge=S===ee&&L===ie&&F===K,Ne=_&&S===1,lt=_&&S===h,Le=se===1,ht=se===f,It=me===1,kt=me===Cn,tt=O5(F,L,S);s.push({locale:i,id:R,position:++w,label:S.toString(),ariaLabel:C.format(new Date(F,L-1,S)),day:S,dayFromEnd:E,weekday:J,weekdayPosition:pe,weekdayPositionFromEnd:oe,weekdayOrdinal:A,weekdayOrdinalFromEnd:x,week:T,weekFromEnd:N,weekPosition:se,weeknumber:Ee,isoWeeknumber:Me,month:L,year:F,date:we,startDate:he,endDate:ye,noonDate:fe,dayIndex:tt,isToday:ge,isFirstDay:Ne,isLastDay:lt,isDisabled:!_,isFocusable:!_,isFocused:!1,inMonth:_,inPrevMonth:g,inNextMonth:b,onTop:Le,onBottom:ht,onLeft:It,onRight:kt,classes:[`id-${R}`,`day-${S}`,`day-from-end-${E}`,`weekday-${J}`,`weekday-position-${pe}`,`weekday-ordinal-${A}`,`weekday-ordinal-from-end-${x}`,`week-${T}`,`week-from-end-${N}`,{"is-today":ge,"is-first-day":Ne,"is-last-day":lt,"in-month":_,"in-prev-month":g,"in-next-month":b,"on-top":Le,"on-bottom":ht,"on-left":It,"on-right":kt}]}),_&&lt?(_=!1,b=!0,S=1,E=h,A=1,x=Math.floor((h-S)/Cn+1),T=1,N=n.numWeeks,L=n.month,F=n.year):(S++,E--,A=Math.floor((S-1)/Cn+1),x=Math.floor((h-S)/Cn+1))}T++,N--}return s}function cH(t,e,n,i){const s=t.reduce((a,o,c)=>{const d=Math.floor(c/7);let h=a[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:[]},a[d]=h),h.days.push(o),a},Array(t.length/Cn));return s.forEach(a=>{const o=a.days[0],c=a.days[a.days.length-1];o.month===c.month?a.title=`${i.formatDate(o.date,"MMMM YYYY")}`:o.year===c.year?a.title=`${i.formatDate(o.date,"MMM")} - ${i.formatDate(c.date,"MMM YYYY")}`:a.title=`${i.formatDate(o.date,"MMM YYYY")} - ${i.formatDate(c.date,"MMM YYYY")}`}),s}function dH(t,e){return t.days.map(n=>({label:e.formatDate(n.date,e.masks.weekdays),weekday:n.weekday}))}function uH(t,e){return`${e}.${vt(t,2)}`}function d5(t,e,n){return X_(n.getDateParts(n.toDate(t)),oH[e])}function u5({day:t,week:e,month:n,year:i},s,a,o){if(a==="daily"&&t){const c=new Date(i,n-1,t),d=Tn(c,s);return{day:d.getDate(),month:d.getMonth()+1,year:d.getFullYear()}}else if(a==="weekly"&&e){const d=o.getMonthParts(n,i).firstDayOfMonth,h=Tn(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=lu(c,s);return{month:d.getMonth()+1,year:d.getFullYear()}}}function rs(t){return t!=null&&t.month!=null&&t.year!=null}function V0(t,e){return!rs(t)||!rs(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 cu(t,e){return!rs(t)||!rs(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 hH(t,e,n){return(t||!1)&&!V0(t,e)&&!cu(t,n)}function fH(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 pH(t,e,n,i){if(!rs(t)||!rs(e))return[];const s=[];for(;!cu(t,e);)s.push(t),t=u5(t,1,n,i);return s}function h5(t){const{day:e,week:n,month:i,year:s}=t;let a=`${s}-${vt(i,2)}`;return n&&(a=`${a}-w${n}`),e&&(a=`${a}-${vt(e,2)}`),a}function mH(t,e){const{month:n,year:i,showWeeknumbers:s,showIsoWeeknumbers:a}=t,o=new Date(i,n-1,15),c=e.getMonthParts(n,i),d=e.getPrevMonthParts(n,i),h=e.getNextMonthParts(n,i),f=lH({monthComps:c,prevMonthComps:d,nextMonthComps:h},e),m=cH(f,s,a,e),g=dH(m[0],e);return{id:h5(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 gH(t,e){const{day:n,week:i,view:s,trimWeeks:a}=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,a?o.monthComps.numWeeks:void 0),o.viewDays=o.days;break}}return o}class f5{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 to{constructor(e,n=new du){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:a,span:o,order:c,repeat:d}=e;Qa(s)&&(this.start=n.getDateParts(s)),Qa(a)?this.end=n.getDateParts(a):this.start!=null&&o&&(this.end=n.getDateParts(Tn(this.start.date,o-1))),this.order=c??0,d&&(this.repeat=new uu({from:(i=this.start)==null?void 0:i.date,...d},{locale:this.locale}))}static fromMany(e,n){return(vi(e)?e:[e]).filter(i=>i).map(i=>to.from(i,n))}static from(e,n){if(e instanceof to)return e;const i={start:null,end:null};return e!=null&&(vi(e)?(i.start=e[0]??null,i.end=e[1]??null):xs(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 to(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 _H{constructor(){xe(this,"records",{})}render(e,n,i){var s,a,o,c;let d=null;const h=i[0].dayIndex,f=i[i.length-1].dayIndex;return n.hasRepeat?i.forEach(m=>{var g,_;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:((_=n.end)==null?void 0:_.time)??hu},this.getRangeRecords(e).push(d)}}):n.intersectsDayRange(h,f)&&(d={startDay:((s=n.start)==null?void 0:s.dayIndex)??-1/0,startTime:((a=n.start)==null?void 0:a.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(a=>a.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:a,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:hu,_=new Date(e.endDate.getTime()+g),b=f===0&&g===hu,w=a.order||0;i.push({...c,data:a,onStart:d,onEnd:h,startTime:f,startDate:m,endTime:g,endDate:_,allDay:b,order:w})})}),i.sort((a,o)=>a.order-o.order),i}}const Os={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"}};Os.en=Os["en-US"],Os.es=Os["es-ES"],Os.no=Os.nb,Os.zh=Os["zh-CN"];const yH=Object.entries(Os).reduce((t,[e,{dow:n,L:i}])=>(t[e]={id:e,firstDayOfWeek:n,masks:{L:i}},t),{}),vH={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:yH,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},B0=r.reactive(vH),bH=r.computed(()=>rL(B0.locales,t=>(t.masks=Wl(t.masks,B0.masks),t))),or=t=>typeof window<"u"&&G_(window.__vcalendar__,t)?Kr(window.__vcalendar__,t):Kr(B0,t),wH=12,kH=5;function CH(t,e){const n=new Intl.DateTimeFormat().resolvedOptions().locale;let i;ss(t)?i=t:G_(t,"id")&&(i=t.id),i=(i||n).toLowerCase();const s=Object.keys(e),a=d=>s.find(h=>h.toLowerCase()===d);i=a(i)||a(i.substring(0,2))||n;const o={...e["en-IE"],...e[i],id:i,monthCacheSize:wH,pageCacheSize:kH};return xs(t)?Wl(t,o):o}class du{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:a,monthCacheSize:o,pageCacheSize:c}=CH(e,bH.value);this.monthCache=new f5(o,jH,UH),this.pageCache=new f5(c,h5,mH),this.id=i,this.daysInWeek=Cn,this.firstDayOfWeek=kR(s,1,Cn),this.masks=a,this.timezone=n||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=$0("long",this.id),this.dayNamesShort=$0("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(d=>d.substring(0,2)),this.dayNamesNarrow=$0("narrow",this.id),this.monthNames=B5("long",this.id),this.monthNamesShort=B5("short",this.id),this.relativeTimeNames=KH(this.id)}formatDate(e,n){return eW(e,n,this)}parseDate(e,n){return T5(e,n,this)}toDate(e,n={}){const i=new Date(NaN);let s=i;const{fillDate:a,mask:o,patch:c,rules:d}=n;if(Ri(e)?(n.type="number",s=new Date(+e)):ss(e)?(n.type="string",s=e?T5(e,o||"iso",this):i):Qa(e)?(n.type="date",s=new Date(e.getTime())):I0(e)&&(n.type="object",s=this.getDateFromParts(e)),s&&(c||d)){let h=this.getDateParts(s);if(c&&a!=null){const f=this.getDateParts(this.toDate(a));h=this.getDateParts(this.toDate({...f,...X_(h,$H[c])}))}d&&(h=QH(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 to.from(e,this)}ranges(e){return to.fromMany(e,this)}getDateParts(e){return YH(e,this)}getDateFromParts(e){return E5(e,this.timezone)}getDateFromParams(e,n,i,s,a,o,c){return this.getDateFromParts({year:e,month:n,day:i,hours:s,minutes:a,seconds:o,milliseconds:c})}getPage(e){const n=this.pageCache.getOrSet(e,this);return gH(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 GH().map(e=>this.formatDate(e,this.masks.hours))}getDayId(e){return this.formatDate(e,"YYYY-MM-DD")}}var no=(t=>(t.Any="any",t.All="all",t))(no||{}),p5=(t=>(t.Days="days",t.Weeks="weeks",t.Months="months",t.Years="years",t))(p5||{}),m5=(t=>(t.Days="days",t.Weekdays="weekdays",t.Weeks="weeks",t.Months="months",t.Years="years",t))(m5||{}),g5=(t=>(t.OrdinalWeekdays="ordinalWeekdays",t))(g5||{});class xH{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 A0(this.from.date,n)%this.interval===0;case"weeks":return HH(this.from.date,n)%this.interval===0;case"months":return WH(this.from.date,n)%this.interval===0;case"years":return D5(this.from.date,n)%this.interval===0;default:return!1}}}class io{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 SH(n);case"weekdays":return new MH(n);case"weeks":return new OH(n);case"months":return new DH(n);case"years":return new EH(n)}}normalizeComponents(e){if(this.validator(e))return[e];if(!vi(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 SH extends io{constructor(e){super("days",e,TH,({day:n,dayFromEnd:i})=>[n,-i])}}class MH extends io{constructor(e){super("weekdays",e,T0,({weekday:n})=>[n])}}class OH extends io{constructor(e){super("weeks",e,IH,({week:n,weekFromEnd:i})=>[n,-i])}}class DH extends io{constructor(e){super("months",e,AH,({month:n})=>[n])}}class EH extends io{constructor(e){super("years",e,Ri,({year:n})=>[n])}}class VH{constructor(e,n){xe(this,"components"),this.type=e,this.components=this.normalizeComponents(n)}normalizeArrayConfig(e){const n=[];return e.forEach((i,s)=>{if(Ri(i)){if(s===0)return;if(!_5(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(!T0(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 vi(i)&&n.push(...this.normalizeArrayConfig(i))}),n}normalizeComponents(e){const n=[];return e.forEach((i,s)=>{if(Ri(i)){if(s===0)return;if(!_5(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(!T0(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 vi(i)&&n.push(...this.normalizeArrayConfig(i))}),n}passes(e){const{weekday:n,weekdayOrdinal:i,weekdayOrdinalFromEnd:s}=e;return this.components.some(([a,o])=>(a===i||a===-s)&&n===o)}}class BH{constructor(e){xe(this,"type","function"),xe(this,"validated",!0),this.fn=e,Ur(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 uu{constructor(e,n={},i){xe(this,"validated",!0),xe(this,"config"),xe(this,"type",no.Any),xe(this,"from"),xe(this,"until"),xe(this,"rules",[]),xe(this,"locale",new du),this.parent=i,n.locale&&(this.locale=n.locale),this.config=e,Ur(e)?(this.type=no.All,this.rules=[new BH(e)]):vi(e)?(this.type=no.Any,this.rules=e.map(s=>new uu(s,n,this))):xs(e)?(this.type=no.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&&(ss(e.every)&&(e.every=[1,`${e.every}s`]),vi(e.every))){const[i=1,s=p5.Days]=e.every;n.push(new xH(s,i,this.from))}return Object.values(m5).forEach(i=>{i in e&&n.push(io.create(i,e[i]))}),Object.values(g5).forEach(i=>{i in e&&n.push(new VH(i,e[i]))}),e.on!=null&&(vi(e.on)||(e.on=[e.on]),n.push(new uu(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===no.Any?this.rules.some(n=>n.passes(e)):this.rules.every(n=>n.passes(e)):!0}}function TH(t){return Ri(t)?t>=1&&t<=31:!1}function T0(t){return Ri(t)?t>=1&&t<=7:!1}function IH(t){return Ri(t)?t>=-6&&t<=-1||t>=1&&t<=6:!1}function AH(t){return Ri(t)?t>=1&&t<=12:!1}function _5(t){return!(!Ri(t)||t<-5||t>5||t===0)}const $H={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},Cn=7,NH=6,y5=1e3,v5=y5*60,b5=v5*60,hu=b5*24,zH=[31,28,31,30,31,30,31,31,30,31,30,31],PH=["L","iso"],Yl={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},w5=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,LH=/\[([^]*?)\]/gm,k5={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)}`}},lr=/\d\d?/,FH=/\d{3}/,RH=/\d{4}/,jl=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,C5=()=>{},x5=t=>(e,n,i)=>{const s=i[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~s&&(e.month=s)},wt={D:[lr,(t,e)=>{t.day=e}],Do:[new RegExp(lr.source+jl.source),(t,e)=>{t.day=parseInt(e,10)}],d:[lr,C5],W:[jl,C5],M:[lr,(t,e)=>{t.month=e-1}],MMM:[jl,x5("monthNamesShort")],MMMM:[jl,x5("monthNames")],YY:[lr,(t,e)=>{const i=+new Date().getFullYear().toString().substr(0,2);t.year=+`${e>68?i-1:i}${e}`}],YYYY:[RH,(t,e)=>{t.year=e}],S:[/\d/,(t,e)=>{t.milliseconds=e*100}],SS:[/\d{2}/,(t,e)=>{t.milliseconds=e*10}],SSS:[FH,(t,e)=>{t.milliseconds=e}],h:[lr,(t,e)=>{t.hours=e}],m:[lr,(t,e)=>{t.minutes=e}],s:[lr,(t,e)=>{t.seconds=e}],a:[jl,(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}}]};wt.DD=wt.D,wt.dd=wt.d,wt.WWWW=wt.WWW=wt.WW=wt.W,wt.MM=wt.M,wt.mm=wt.m,wt.hh=wt.H=wt.HH=wt.h,wt.ss=wt.s,wt.A=wt.a,wt.ZZZZ=wt.ZZZ=wt.ZZ=wt.Z;function S5(t,e){return(Ss(t)&&t||[ss(t)&&t||"YYYY-MM-DD"]).map(n=>PH.reduce((i,s)=>i.replace(s,e.masks[s]||""),n))}function I0(t){return xs(t)&&"year"in t&&"month"in t&&"day"in t}function M5(t,e=1){const n=t.getDay()+1,i=n>=e?e-n:-(7-(e-n));return Tn(t,i)}function O5(t,e,n){const i=Date.UTC(t,e-1,n);return A0(new Date(0),new Date(i))}function A0(t,e){return Math.round((e.getTime()-t.getTime())/hu)}function HH(t,e){return Math.ceil(A0(M5(t),M5(e))/7)}function D5(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}function WH(t,e){return D5(t,e)*12+(e.getMonth()-t.getMonth())}function E5(t,e=""){const n=new Date,{year:i=n.getFullYear(),month:s=n.getMonth()+1,day:a=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(a,2)}T${vt(o,2)}:${vt(c,2)}:${vt(d,2)}.${vt(h,3)}`;return LR(f,{timeZone:e})}return new Date(i,s-1,a,o,c,d,h)}function YH(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(),a=n.getMinutes(),o=n.getHours(),c=i+s*y5+a*v5+o*b5,d=n.getMonth()+1,h=n.getFullYear(),f=e.getMonthParts(d,h),m=n.getDate(),g=f.numDays-m+1,_=n.getDay()+1,b=Math.floor((m-1)/7+1),w=Math.floor((f.numDays-m)/7+1),C=Math.ceil((m+Math.abs(f.firstWeekday-f.firstDayOfWeek))/7),S=f.numWeeks-C+1,E=f.weeknumbers[C],A=O5(h,d,m);return{milliseconds:i,seconds:s,minutes:a,hours:o,time:c,day:m,dayFromEnd:g,weekday:_,weekdayOrdinal:b,weekdayOrdinalFromEnd:w,week:C,weekFromEnd:S,weeknumber:E,month:d,year:h,date:n,dateTime:n.getTime(),dayIndex:A,timezoneOffset:0,isValid:!0}}function jH(t,e,n){return`${e}-${t}-${n}`}function UH(t,e,n){const i=e%4===0&&e%100!==0||e%400===0,s=new Date(e,t-1,1),a=s.getDay()+1,o=t===2&&i?29:zH[t-1],c=n-1,d=JR(s,{weekStartsOn:c}),h=[],f=[];for(let m=0;m<d;m++){const g=Tn(s,m*7);h.push(nH(g,{weekStartsOn:c})),f.push(aH(g))}return{firstDayOfWeek:n,firstDayOfMonth:s,inLeapYear:i,firstWeekday:a,numDays:o,numWeeks:d,month:t,year:e,weeknumbers:h,isoWeeknumbers:f}}function qH(){const t=[];for(let s=0;s<Cn;s++)t.push(E5({year:2020,month:1,day:5+s,hours:12}));return t}function $0(t,e=void 0){const n=new Intl.DateTimeFormat(e,{weekday:t});return qH().map(i=>n.format(i))}function GH(){const t=[];for(let e=0;e<=24;e++)t.push(new Date(2e3,0,1,e));return t}function KH(t=void 0){const e=["second","minute","hour","day","week","month","quarter","year"],n=new Intl.RelativeTimeFormat(t);return e.reduce((i,s)=>{const a=n.formatToParts(100,s);return i[s]=a[1].unit,i},{})}function V5(){const t=[];for(let e=0;e<12;e++)t.push(new Date(2e3,e,15));return t}function B5(t,e=void 0){const n=new Intl.DateTimeFormat(e,{month:t,timeZone:"UTC"});return V5().map(i=>n.format(i))}function ZH(t,e,n){return Ri(e)?e===t:vi(e)?e.includes(t):Ur(e)?e(t,n):!(e.min!=null&&e.min>t||e.max!=null&&e.max<t||e.interval!=null&&t%e.interval!==0)}function Ul(t,e,n){const i=[],[s,a,o]=e;for(let c=s;c<=a;c++)(n==null||ZH(c,n,t))&&i.push({value:c,label:vt(c,o)});return i}function XH(t,e){return{milliseconds:Ul(t,Yl.milliseconds,e.milliseconds),seconds:Ul(t,Yl.seconds,e.seconds),minutes:Ul(t,Yl.minutes,e.minutes),hours:Ul(t,Yl.hours,e.hours)}}function JH(t,e,n,i){const a=Ul(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(a)?n:a}function QH(t,e){const n={...t};return Object.entries(e).forEach(([i,s])=>{const a=Yl[i],o=t[i];n[i]=JH(t,a,o,s)}),n}function T5(t,e,n){return S5(e,n).map(s=>{if(typeof s!="string")throw new Error("Invalid mask");let a=t;if(a.length>1e3)return!1;let o=!0;const c={};if(s.replace(w5,f=>{if(wt[f]){const m=wt[f],g=a.search(m[0]);~g?a.replace(m[0],_=>(m[1](c,_,n),a=a.substr(g+_.length),_)):o=!1}return wt[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 eW(t,e,n){if(t==null)return"";let i=S5(e,n)[0];/Z$/.test(i)&&(n.timezone="utc");const s=[];i=i.replace(LH,(o,c)=>(s.push(c),"??"));const a=n.getDateParts(t);return i=i.replace(w5,o=>o in k5?k5[o](a,n):o.slice(1,o.length-1)),i.replace(/\?\?/g,()=>s.shift())}let tW=0;class I5{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=++tW),this.locale=i,n.normalizeGlyphs(this),this.ranges=i.ranges(s??[]),this.hasRanges=!!Ss(this.ranges),this.maxRepeatSpan=this.ranges.filter(a=>a.hasRepeat).map(a=>a.daySpan).reduce((a,o)=>Math.max(a,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 a=e;for(this.maxRepeatSpan>1&&(a=this.locale.getDateParts(Tn(a.date,-this.maxRepeatSpan)));a.dayIndex<=n.dayIndex;){for(const o of s)if(o.startsOnDay(a))return!0;a=this.locale.getDateParts(Tn(a.date,1))}return!1}}function N0(t){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:t}))}function ql(t){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:t}))}function A5(t){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:t}))}function $5(t){const{visibility:e}=t,n=e==="click",i=e==="hover",s=e==="hover-focus",a=e==="focus";t.autoHide=!n;let o=!1,c=!1;const d=b=>{n&&(A5({...t,target:t.target||b.currentTarget}),b.stopPropagation())},h=b=>{o||(o=!0,(i||s)&&N0({...t,target:t.target||b.currentTarget}))},f=()=>{o&&(o=!1,(i||s&&!c)&&ql(t))},m=b=>{c||(c=!0,(a||s)&&N0({...t,target:t.target||b.currentTarget}))},g=b=>{c&&!nu(b.currentTarget,b.relatedTarget)&&(c=!1,(a||s&&!o)&&ql(t))},_={};switch(t.visibility){case"click":_.click=d;break;case"hover":_.mousemove=h,_.mouseleave=f;break;case"focus":_.focusin=m,_.focusout=g;break;case"hover-focus":_.mousemove=h,_.mouseleave=f,_.focusin=m,_.focusout=g;break}return _}const N5=t=>{const e=tu(t);if(e==null)return;const n=e.popoverHandlers;!n||!n.length||(n.forEach(i=>i()),delete e.popoverHandlers)},z5=(t,e)=>{const n=tu(t);if(n==null)return;const i=[],s=$5(e);Object.entries(s).forEach(([a,o])=>{i.push(ar(n,a,o))}),n.popoverHandlers=i},P5={mounted(t,e){const{value:n}=e;!n||z5(t,n)},updated(t,e){const{oldValue:n,value:i}=e,s=n==null?void 0:n.visibility,a=i==null?void 0:i.visibility;s!==a&&(s&&(N5(t),a||ql(n)),a&&z5(t,i))},unmounted(t){N5(t)}},nW=(t,e,{maxSwipeTime:n,minHorizontalSwipeDistance:i,maxVerticalSwipeDistance:s})=>{if(!t||!t.addEventListener||!Ur(e))return null;let a=0,o=0,c=null,d=!1;function h(m){const g=m.changedTouches[0];a=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],_=g.screenX-a,b=g.screenY-o;if(new Date().getTime()-c<n&&Math.abs(_)>=i&&Math.abs(b)<=s){const C={toLeft:!1,toRight:!1};_<0?C.toLeft=!0:C.toRight=!0,e(C)}}return ar(t,"touchstart",h,{passive:!0}),ar(t,"touchend",f,{passive:!0}),()=>{rr(t,"touchstart",h),rr(t,"touchend",f)}},fu={},iW=(t,e=10)=>{fu[t]=Date.now()+e},sW=(t,e)=>{if(t in fu){const n=fu[t];if(Date.now()<n)return;delete fu[t]}e()};function L5(){return typeof window<"u"}function rW(t){return L5()&&t in window}function aW(t){const e=r.ref(!1),n=r.computed(()=>e.value?"dark":"light");let i,s;function a(_){e.value=_.matches}function o(){rW("matchMedia")&&(i=window.matchMedia("(prefers-color-scheme: dark)"),i.addEventListener("change",a),e.value=i.matches)}function c(){const{selector:_=":root",darkClass:b="dark"}=t.value,w=document.querySelector(_);e.value=w.classList.contains(b)}function d(_){const{selector:b=":root",darkClass:w="dark"}=_;if(L5()&&b&&w){const C=document.querySelector(b);C&&(s=new MutationObserver(c),s.observe(C,{attributes:!0,attributeFilter:["class"]}),e.value=C.classList.contains(w))}}function h(){m();const _=typeof t.value;_==="string"&&t.value.toLowerCase()==="system"?o():_==="object"?d(t.value):e.value=!!t.value}const f=r.watch(()=>t.value,()=>h(),{immediate:!0});function m(){i&&(i.removeEventListener("change",a),i=void 0),s&&(s.disconnect(),s=void 0)}function g(){m(),f()}return r.onUnmounted(()=>g()),{isDark:e,displayMode:n,cleanup:g}}const oW=["base","start","end","startEnd"],lW=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],cW={base:{},start:{},end:{}};function z0(t,e,n=cW){let i=t,s={};e===!0||ss(e)?(i=ss(e)?e:i,s={...n}):xs(e)&&(K_(e,oW)?s={...e}:s={base:{...e},start:{...e},end:{...e}});const a=Wl(s,{start:s.startEnd,end:s.startEnd},n);return Object.entries(a).forEach(([o,c])=>{let d=i;c===!0||ss(c)?(d=ss(c)?c:d,a[o]={color:d}):xs(c)&&(K_(c,lW)?a[o]={...c}:a[o]={}),Wl(a[o],{color:d})}),a}class dW{constructor(){xe(this,"type","highlight")}normalizeConfig(e,n){return z0(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:a,highlight:o}=e;if(!o)return;const{highlights:c}=s,{base:d,start:h,end:f}=o;n&&i?c.push({...h,key:a,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:`${a}-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:a,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:`${a}-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:a,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:`${a}-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 P0{constructor(e,n){xe(this,"type",""),xe(this,"collectionType",""),this.type=e,this.collectionType=n}normalizeConfig(e,n){return z0(e,n)}prepareRender(e){e[this.collectionType]=[]}render({data:e,onStart:n,onEnd:i},s){const{key:a}=e,o=e[this.type];if(!a||!o)return;const c=s[this.collectionType],{base:d,start:h,end:f}=o;n?c.push({...h,key:a,class:[`vc-${this.type} vc-${this.type}-start vc-${h.color} vc-attr`,h.class]}):i?c.push({...f,key:a,class:[`vc-${this.type} vc-${this.type}-end vc-${f.color} vc-attr`,f.class]}):c.push({...d,key:a,class:[`vc-${this.type} vc-${this.type}-base vc-${d.color} vc-attr`,d.class]})}}class uW extends P0{constructor(){super("content","content")}normalizeConfig(e,n){return z0("base",n)}}class hW extends P0{constructor(){super("dot","dots")}}class fW extends P0{constructor(){super("bar","bars")}}class pW{constructor(e){xe(this,"color"),xe(this,"renderers",[new uW,new dW,new hW,new fW]),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 F5=Symbol("__vc_base_context__"),R5={color:{type:String,default:()=>or("color")},isDark:{type:[Boolean,String,Object],default:()=>or("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function H5(t){const e=r.computed(()=>t.color??""),n=r.computed(()=>t.isDark??!1),{displayMode:i}=aW(n),s=r.computed(()=>new pW(e.value)),a=r.computed(()=>{if(t.locale instanceof du)return t.locale;const g=xs(t.locale)?t.locale:{id:t.locale,firstDayOfWeek:t.firstDayOfWeek,masks:t.masks};return new du(g,t.timezone)}),o=r.computed(()=>a.value.masks),c=r.computed(()=>t.minDate),d=r.computed(()=>t.maxDate),h=r.computed(()=>{const g=t.disabledDates?[...t.disabledDates]:[];return c.value!=null&&g.push({start:null,end:Tn(a.value.toDate(c.value),-1)}),d.value!=null&&g.push({start:Tn(a.value.toDate(d.value),1),end:null}),a.value.ranges(g)}),f=r.computed(()=>new I5({key:"disabled",dates:h.value,order:100},s.value,a.value)),m={color:e,isDark:n,displayMode:i,theme:s,locale:a,masks:o,minDate:c,maxDate:d,disabledDates:h,disabledAttribute:f};return r.provide(F5,m),m}function mW(t){return r.inject(F5,()=>H5(t),!0)}function W5(t){return`__vc_slot_${t}__`}function Y5(t,e={}){Object.keys(t).forEach(n=>{r.provide(W5(e[n]??n),t[n])})}function j5(t){return r.inject(W5(t),null)}const gW={...R5,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:()=>or("titlePosition")},navVisibility:{type:String,default:()=>or("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},_W=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],U5=Symbol("__vc_calendar_context__");function yW(t,{slots:e,emit:n}){const i=r.ref(null),s=r.ref(null),a=r.ref(new Date().getDate()),o=r.ref(!1),c=r.ref(Symbol()),d=r.ref(Symbol()),h=r.ref(t.view),f=r.ref([]),m=r.ref("");let g=null,_=null;Y5(e);const{theme:b,color:w,displayMode:C,locale:S,masks:E,minDate:A,maxDate:x,disabledAttribute:T,disabledDates:N}=mW(t),L=r.computed(()=>t.rows*t.columns),F=r.computed(()=>t.step||L.value),q=r.computed(()=>q_(f.value)??null),ee=r.computed(()=>Ja(f.value)??null),ie=r.computed(()=>t.minPage||(A.value?oe(A.value):null)),K=r.computed(()=>t.maxPage||(x.value?oe(x.value):null)),se=r.computed(()=>t.navVisibility),me=r.computed(()=>!!t.showWeeknumbers),J=r.computed(()=>!!t.showIsoWeeknumbers),he=r.computed(()=>h.value==="monthly"),fe=r.computed(()=>h.value==="weekly"),ye=r.computed(()=>h.value==="daily"),we=()=>{o.value=!0,n("transition-start")},R=()=>{o.value=!1,n("transition-end"),g&&(g.resolve(!0),g=null)},pe=(W,V,Y=h.value)=>u5(W,V,Y,S.value),oe=W=>d5(W,h.value,S.value),Ee=W=>{!T.value||!ht.value||(W.isDisabled=ht.value.cellExists(T.value.key,W.dayIndex))},Me=W=>{W.isFocusable=W.inMonth&&W.day===a.value},ge=(W,V)=>{for(const Y of W)for(const re of Y.days)if(V(re)===!1)return},Ne=r.computed(()=>f.value.reduce((W,V)=>(W.push(...V.viewDays),W),[])),lt=r.computed(()=>{const W=[];return(t.attributes||[]).forEach((V,Y)=>{!V||!V.dates||W.push(new I5({...V,order:V.order||0},b.value,S.value))}),T.value&&W.push(T.value),W}),Le=r.computed(()=>Ss(lt.value)),ht=r.computed(()=>{const W=new _H;return lt.value.forEach(V=>{V.ranges.forEach(Y=>{W.render(V,Y,Ne.value)})}),W}),It=r.computed(()=>Ne.value.reduce((W,V)=>(W[V.dayIndex]={day:V,cells:[]},W[V.dayIndex].cells.push(...ht.value.getCells(V)),W),{})),kt=(W,V)=>{const Y=t.showWeeknumbers||t.showIsoWeeknumbers;return Y==null?"":RP(Y)?Y?"left":"":Y.startsWith("right")?V>1?"right":Y:W>1?"left":Y},tt=()=>{var W,V;if(!Le.value)return null;const Y=lt.value.find(je=>je.pinPage)||lt.value[0];if(!Y||!Y.hasRanges)return null;const[re]=Y.ranges,Ce=((W=re.start)==null?void 0:W.date)||((V=re.end)==null?void 0:V.date);return Ce?oe(Ce):null},st=()=>{if(rs(q.value))return q.value;const W=tt();return rs(W)?W:oe(new Date)},rt=(W,V={})=>{const{view:Y=h.value,position:re=1,force:Ce}=V,je=re>0?1-re:-(L.value+re);let at=pe(W,je,Y),xt=pe(at,L.value-1,Y);return Ce||(V0(at,ie.value)?at=ie.value:cu(xt,K.value)&&(at=pe(K.value,1-L.value)),xt=pe(at,L.value-1)),{fromPage:at,toPage:xt}},Yt=(W,V,Y="")=>{if(Y==="none"||Y==="fade")return Y;if((W==null?void 0:W.view)!==(V==null?void 0:V.view))return"fade";const re=cu(V,W),Ce=V0(V,W);return!re&&!Ce?"fade":Y==="slide-v"?Ce?"slide-down":"slide-up":Ce?"slide-right":"slide-left"},ft=(W={})=>new Promise((V,Y)=>{const{position:re=1,force:Ce=!1,transition:je}=W,at=rs(W.page)?W.page:st(),{fromPage:xt}=rt(at,{position:re,force:Ce}),sn=[];for(let Gt=0;Gt<L.value;Gt++){const qn=pe(xt,Gt),pt=Gt+1,An=Math.ceil(pt/t.columns),Sn=t.rows-An+1,ii=pt%t.columns||t.columns,Hi=t.columns-ii+1,Ds=kt(ii,Hi);sn.push(S.value.getPage({...qn,view:h.value,titlePosition:t.titlePosition,trimWeeks:t.trimWeeks,position:pt,row:An,rowFromEnd:Sn,column:ii,columnFromEnd:Hi,showWeeknumbers:me.value,showIsoWeeknumbers:J.value,weeknumberPosition:Ds}))}m.value=Yt(f.value[0],sn[0],je),f.value=sn,m.value&&m.value!=="none"?g={resolve:V,reject:Y}:V(!0)}),Ct=W=>{const V=q.value??oe(new Date);return pe(V,W)},tn=(W,V={})=>{const Y=rs(W)?W:oe(W);return Object.assign(V,rt(Y,{...V,force:!0})),pH(V.fromPage,V.toPage,h.value,S.value).map(Ce=>hH(Ce,ie.value,K.value)).some(Ce=>Ce)},nn=(W,V={})=>tn(Ct(W),V),bt=r.computed(()=>nn(-F.value)),nt=r.computed(()=>nn(F.value)),Nt=async(W,V={})=>!V.force&&!tn(W,V)?!1:(V.fromPage&&!fH(V.fromPage,q.value)&&(ql({id:c.value,hideDelay:0}),V.view&&(iW("view",10),h.value=V.view),await ft({...V,page:V.fromPage,position:1,force:!0}),n("did-move",f.value)),!0),Ot=(W,V={})=>Nt(Ct(W),V),At=()=>Ot(-F.value),Dt=()=>Ot(F.value),un=W=>{const V=he.value?".in-month":"",Y=`.id-${S.value.getDayId(W)}${V}`,re=`${Y}.vc-focusable, ${Y} .vc-focusable`,Ce=i.value;if(Ce){const je=Ce.querySelector(re);if(je)return je.focus(),!0}return!1},$t=async(W,V={})=>un(W)?!0:(await Nt(W,V),un(W)),te=(W,V)=>{a.value=W.day,n("dayclick",W,V)},Ie=(W,V)=>{n("daymouseenter",W,V)},Ye=(W,V)=>{n("daymouseleave",W,V)},pn=(W,V)=>{a.value=W.day,s.value=W,W.isFocused=!0,n("dayfocusin",W,V)},In=(W,V)=>{s.value=null,W.isFocused=!1,n("dayfocusout",W,V)},Un=(W,V)=>{n("daykeydown",W,V);const Y=W.noonDate;let re=null;switch(V.key){case"ArrowLeft":{re=Tn(Y,-1);break}case"ArrowRight":{re=Tn(Y,1);break}case"ArrowUp":{re=Tn(Y,-7);break}case"ArrowDown":{re=Tn(Y,7);break}case"Home":{re=Tn(Y,-W.weekdayPosition+1);break}case"End":{re=Tn(Y,W.weekdayPositionFromEnd);break}case"PageUp":{V.altKey?re=c5(Y,-1):re=lu(Y,-1);break}case"PageDown":{V.altKey?re=c5(Y,1):re=lu(Y,1);break}}re&&(V.preventDefault(),$t(re).catch())},j=W=>{const V=s.value;V!=null&&Un(V,W)},le=(W,V)=>{n("weeknumberclick",W,V)};ft({page:t.initialPage,position:t.initialPagePosition}),r.onMounted(()=>{!t.disablePageSwipe&&i.value&&(_=nW(i.value,({toLeft:W=!1,toRight:V=!1})=>{W?Dt():V&&At()},or("touch")))}),r.onUnmounted(()=>{f.value=[],_&&_()}),r.watch(()=>S.value,()=>{ft()}),r.watch(()=>L.value,()=>ft()),r.watch(()=>t.view,()=>h.value=t.view),r.watch(()=>h.value,()=>{sW("view",()=>{ft()}),n("update:view",h.value)}),r.watch(()=>a.value,()=>{ge(f.value,W=>Me(W))}),r.watchEffect(()=>{n("update:pages",f.value),ge(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:w,displayMode:C,locale:S,masks:E,attributes:lt,disabledAttribute:T,disabledDates:N,attributeContext:ht,days:Ne,dayCells:It,count:L,step:F,firstPage:q,lastPage:ee,canMovePrev:bt,canMoveNext:nt,minPage:ie,maxPage:K,isMonthly:he,isWeekly:fe,isDaily:ye,navVisibility:se,showWeeknumbers:me,showIsoWeeknumbers:J,getDateAddress:oe,canMove:tn,canMoveBy:nn,move:Nt,moveBy:Ot,movePrev:At,moveNext:Dt,onTransitionBeforeEnter:we,onTransitionAfterEnter:R,tryFocusDate:un,focusDate:$t,onKeydown:j,onDayKeydown:Un,onDayClick:te,onDayMouseenter:Ie,onDayMouseleave:Ye,onDayFocusin:pn,onDayFocusout:In,onWeeknumberClick:le};return r.provide(U5,ve),ve}function Xr(){const t=r.inject(U5);if(t)return t;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const vW=r.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=r.ref();let s=null,a=null;const o=r.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:pe}){c(R||(pe==null?void 0:pe.placement))}const h=r.computed(()=>({placement:o.placement,strategy:o.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:d},...o.modifiers||[]],onFirstUpdate:d})),f=r.computed(()=>{const R=o.direction==="left"||o.direction==="right";let pe="";if(o.placement){const oe=o.placement.split("-");oe.length>1&&(pe=oe[1])}return["start","top","left"].includes(pe)?R?"top":"left":["end","bottom","right"].includes(pe)?R?"bottom":"right":R?"middle":"center"});function m(){a&&(a.destroy(),a=null)}function g(){r.nextTick(()=>{const R=tu(o.target);!R||!i.value||(a&&a.state.elements.reference!==R&&m(),a?a.update():a=Go(R,i.value,h.value))})}function _(R){Object.assign(o,Z_(R,"force"))}function b(R,pe){clearTimeout(n),R>0?n=setTimeout(pe,R):pe()}function w(R){return!R||!a?!1:tu(R)===a.state.elements.reference}async function C(R={}){o.force||(R.force&&(o.force=!0),b(R.showDelay??t.showDelay,()=>{o.isVisible&&(o.force=!1),_({...R,isVisible:!0}),g()}))}function S(R={}){!a||R.target&&!w(R.target)||o.force||(R.force&&(o.force=!0),b(R.hideDelay??t.hideDelay,()=>{o.isVisible||(o.force=!1),o.isVisible=!1}))}function E(R={}){R.target!=null&&(o.isVisible&&w(R.target)?S(R):C(R))}function A(R){if(!a)return;const pe=a.state.elements.reference;if(!i.value||!pe)return;const oe=R.target;nu(i.value,oe)||nu(pe,oe)||S({force:!0})}function x(R){(R.key==="Esc"||R.key==="Escape")&&S()}function T({detail:R}){!R.id||R.id!==t.id||C(R)}function N({detail:R}){!R.id||R.id!==t.id||S(R)}function L({detail:R}){!R.id||R.id!==t.id||E(R)}function F(){ar(document,"keydown",x),ar(document,"click",A),ar(document,"show-popover",T),ar(document,"hide-popover",N),ar(document,"toggle-popover",L)}function q(){rr(document,"keydown",x),rr(document,"click",A),rr(document,"show-popover",T),rr(document,"hide-popover",N),rr(document,"toggle-popover",L)}function ee(R){e("before-show",R)}function ie(R){o.force=!1,e("after-show",R)}function K(R){e("before-hide",R)}function se(R){o.force=!1,m(),e("after-hide",R)}function me(R){R.stopPropagation()}function J(){o.isHovered=!0,o.isInteractive&&["hover","hover-focus"].includes(o.visibility)&&C()}function he(){if(o.isHovered=!1,!a)return;const R=a.state.elements.reference;o.autoHide&&!o.isFocused&&(!R||R!==document.activeElement)&&["hover","hover-focus"].includes(o.visibility)&&S()}function fe(){o.isFocused=!0,o.isInteractive&&["focus","hover-focus"].includes(o.visibility)&&C()}function ye(R){["focus","hover-focus"].includes(o.visibility)&&(!R.relatedTarget||!nu(i.value,R.relatedTarget))&&(o.isFocused=!1,!o.isHovered&&o.autoHide&&S())}function we(){s!=null&&(s.disconnect(),s=null)}return r.watch(()=>i.value,R=>{we(),R&&(s=new ResizeObserver(()=>{a&&a.update()}),s.observe(R))}),r.watch(()=>o.placement,c,{immediate:!0}),r.onMounted(()=>{F()}),r.onUnmounted(()=>{m(),we(),q()}),{...r.toRefs(o),popoverRef:i,alignment:f,hide:S,setupPopper:g,beforeEnter:ee,afterEnter:ie,beforeLeave:K,afterLeave:se,onClick:me,onMouseOver:J,onMouseLeave:he,onFocusIn:fe,onFocusOut:ye}}}),cr=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n};function bW(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",{class:r.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))},[r.createVNode(r.Transition,{name:`vc-${t.transition}`,appear:"",onBeforeEnter:t.beforeEnter,onAfterEnter:t.afterEnter,onBeforeLeave:t.beforeLeave,onAfterLeave:t.afterLeave},{default:r.withCtx(()=>[t.isVisible?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,tabindex:"-1",class:`vc-popover-content direction-${t.direction}`},t.$attrs),[r.renderSlot(t.$slots,"default",{direction:t.direction,alignment:t.alignment,data:t.data,hide:t.hide},()=>[r.createTextVNode(r.toDisplayString(t.data),1)]),r.createElementVNode("span",{class:r.normalizeClass(["vc-popover-caret",`direction-${t.direction}`,`align-${t.alignment}`])},null,2)],16)):r.createCommentVNode("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}const L0=cr(vW,[["render",bW]]),wW={class:"vc-day-popover-row"},kW={key:0,class:"vc-day-popover-row-indicator"},CW={class:"vc-day-popover-row-label"},xW=r.defineComponent({__name:"PopoverRow",props:{attribute:null},setup(t){const e=t,n=r.computed(()=>{const{content:i,highlight:s,dot:a,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}`}:a?{class:`vc-dot vc-attr vc-${a.base.color}`}:o?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${o.base.color}`}:null});return(i,s)=>(r.openBlock(),r.createElementBlock("div",wW,[r.unref(n)?(r.openBlock(),r.createElementBlock("div",kW,[r.createElementVNode("span",{class:r.normalizeClass(r.unref(n).class)},null,2)])):r.createCommentVNode("",!0),r.createElementVNode("div",CW,[r.renderSlot(i.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(t.attribute.popover?t.attribute.popover.label:"No content provided"),1)])])]))}}),SW={inheritAttrs:!1},bi=r.defineComponent({...SW,__name:"CalendarSlot",props:{name:null},setup(t){const n=j5(t.name);return(i,s)=>r.unref(n)?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(n)),r.normalizeProps(r.mergeProps({key:0},i.$attrs)),null,16)):r.renderSlot(i.$slots,"default",{key:1})}}),MW={class:"vc-day-popover-container"},OW={key:0,class:"vc-day-popover-header"},DW=r.defineComponent({__name:"CalendarDayPopover",setup(t){const{dayPopoverId:e,displayMode:n,color:i,masks:s,locale:a}=Xr();function o(d,h){return a.value.formatDate(d,h)}function c(d){return a.value.formatDate(d.date,s.value.dayPopover)}return(d,h)=>(r.openBlock(),r.createBlock(L0,{id:r.unref(e),class:r.normalizeClass([`vc-${r.unref(i)}`,`vc-${r.unref(n)}`])},{default:r.withCtx(({data:{day:f,attributes:m},hide:g})=>[r.createVNode(bi,{name:"day-popover",day:f,"day-title":c(f),attributes:m,format:o,masks:r.unref(s),hide:g},{default:r.withCtx(()=>[r.createElementVNode("div",MW,[r.unref(s).dayPopover?(r.openBlock(),r.createElementBlock("div",OW,r.toDisplayString(c(f)),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m,_=>(r.openBlock(),r.createBlock(xW,{key:_.key,attribute:_},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),EW={},VW={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},BW=[r.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1)];function TW(t,e){return r.openBlock(),r.createElementBlock("svg",VW,BW)}const IW=cr(EW,[["render",TW]]),AW={},$W={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},NW=[r.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1)];function zW(t,e){return r.openBlock(),r.createElementBlock("svg",$W,NW)}const PW=cr(AW,[["render",zW]]),LW={},FW={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},RW=[r.createElementVNode("polyline",{points:"6 9 12 15 18 9"},null,-1)];function HW(t,e){return r.openBlock(),r.createElementBlock("svg",FW,RW)}const WW=cr(LW,[["render",HW]]),YW={},jW={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},UW=[r.createElementVNode("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)];function qW(t,e){return r.openBlock(),r.createElementBlock("svg",jW,UW)}const GW=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:WW,IconChevronLeft:PW,IconChevronRight:IW,IconClock:cr(YW,[["render",qW]])},Symbol.toStringTag,{value:"Module"})),so=r.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=r.computed(()=>e.width||e.size),i=r.computed(()=>e.height||e.size),s=r.computed(()=>GW[`Icon${e.name}`]);return(a,o)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(s)),{width:r.unref(n),height:r.unref(i),class:"vc-base-icon"},null,8,["width","height"]))}}),KW=["disabled"],ZW={key:1,class:"vc-title-wrapper"},XW={type:"button",class:"vc-title"},JW=["disabled"],q5=r.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:a,canMoveNext:o,moveNext:c}=Xr(),d=r.computed(()=>{switch(e.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),h=r.computed(()=>{const{page:w}=e;return{id:n.value,visibility:i.value,placement:d.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:w},isInteractive:!0}}),f=r.computed(()=>e.page.titlePosition.includes("left")),m=r.computed(()=>e.page.titlePosition.includes("right")),g=r.computed(()=>e.layout?e.layout:f.value?"tu-pn":m.value?"pn-tu":"p-tu-n;"),_=r.computed(()=>({prev:g.value.includes("p")&&!e.hideArrows,title:g.value.includes("t")&&!e.hideTitle,next:g.value.includes("n")&&!e.hideArrows})),b=r.computed(()=>({gridTemplateColumns:g.value.split("").map(C=>{switch(C){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}}).join(" ")}));return(w,C)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["vc-header",{"is-lg":t.isLg,"is-xl":t.isXl,"is-2xl":t.is2xl}]),style:r.normalizeStyle(r.unref(b))},[r.unref(_).prev?(r.openBlock(),r.createElementBlock("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!r.unref(s),onClick:C[0]||(C[0]=(...S)=>r.unref(a)&&r.unref(a)(...S)),onKeydown:C[1]||(C[1]=r.withKeys((...S)=>r.unref(a)&&r.unref(a)(...S),["space","enter"]))},[r.createVNode(bi,{name:"header-prev-button",disabled:!r.unref(s)},{default:r.withCtx(()=>[r.createVNode(so,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,KW)):r.createCommentVNode("",!0),r.unref(_).title?(r.openBlock(),r.createElementBlock("div",ZW,[r.createVNode(bi,{name:"header-title-wrapper"},{default:r.withCtx(()=>[r.withDirectives((r.openBlock(),r.createElementBlock("button",XW,[r.createVNode(bi,{name:"header-title",title:t.page.title},{default:r.withCtx(()=>[r.createElementVNode("span",null,r.toDisplayString(t.page.title),1)]),_:1},8,["title"])])),[[r.unref(P5),r.unref(h)]])]),_:1})])):r.createCommentVNode("",!0),r.unref(_).next?(r.openBlock(),r.createElementBlock("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!r.unref(o),onClick:C[2]||(C[2]=(...S)=>r.unref(c)&&r.unref(c)(...S)),onKeydown:C[3]||(C[3]=r.withKeys((...S)=>r.unref(c)&&r.unref(c)(...S),["space","enter"]))},[r.createVNode(bi,{name:"header-next-button",disabled:!r.unref(o)},{default:r.withCtx(()=>[r.createVNode(so,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,JW)):r.createCommentVNode("",!0)],6))}}),G5=Symbol("__vc_page_context__");function QW(t){const{locale:e,getDateAddress:n,canMove:i}=Xr();function s(c,d){const{month:h,year:f}=n(new Date);return V5().map((m,g)=>{const _=g+1;return{month:_,year:c,id:uH(_,c),label:e.value.formatDate(m,d),ariaLabel:e.value.formatDate(m,"MMMM"),isActive:_===t.value.month&&c===t.value.year,isCurrent:_===h&&c===f,isDisabled:!i({month:_,year:c},{position:t.value.position})}})}function a(c,d){const{year:h}=n(new Date),{position:f}=t.value,m=[];for(let g=c;g<=d;g+=1){const _=[...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:!_})}return m}const o={page:t,getMonthItems:s,getYearItems:a};return r.provide(G5,o),o}function K5(){const t=r.inject(G5);if(t)return t;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const eY={class:"vc-nav-header"},tY=["disabled"],nY=["disabled"],iY={class:"vc-nav-items"},sY=["data-id","aria-label","disabled","onClick","onKeydown"],rY=r.defineComponent({__name:"CalendarNav",setup(t){const{masks:e,move:n}=Xr(),{page:i,getMonthItems:s,getYearItems:a}=K5(),o=r.ref(!0),c=12,d=r.ref(i.value.year),h=r.ref(g(i.value.year)),f=r.ref(null);function m(){setTimeout(()=>{if(f.value==null)return;const oe=f.value.querySelector(".vc-nav-item:not(:disabled)");oe&&oe.focus()},10)}function g(oe){return Math.floor(oe/c)}function _(){o.value=!o.value}function b(oe){return oe*c}function w(oe){return c*(oe+1)-1}function C(){!fe.value||(o.value&&E(),x())}function S(){!ye.value||(o.value&&A(),T())}function E(){d.value--}function A(){d.value++}function x(){h.value--}function T(){h.value++}const N=r.computed(()=>s(d.value,e.value.navMonths).map(oe=>({...oe,click:()=>n({month:oe.month,year:oe.year},{position:i.value.position})}))),L=r.computed(()=>s(d.value-1,e.value.navMonths)),F=r.computed(()=>L.value.some(oe=>!oe.isDisabled)),q=r.computed(()=>s(d.value+1,e.value.navMonths)),ee=r.computed(()=>q.value.some(oe=>!oe.isDisabled)),ie=r.computed(()=>a(b(h.value),w(h.value)).map(oe=>({...oe,click:()=>{d.value=oe.year,o.value=!0,m()}}))),K=r.computed(()=>a(b(h.value-1),w(h.value-1))),se=r.computed(()=>K.value.some(oe=>!oe.isDisabled)),me=r.computed(()=>a(b(h.value+1),w(h.value+1))),J=r.computed(()=>me.value.some(oe=>!oe.isDisabled)),he=r.computed(()=>o.value?N.value:ie.value),fe=r.computed(()=>o.value?F.value:se.value),ye=r.computed(()=>o.value?ee.value:J.value),we=r.computed(()=>q_(ie.value.map(oe=>oe.year))),R=r.computed(()=>Ja(ie.value.map(oe=>oe.year))),pe=r.computed(()=>o.value?d.value:`${we.value} - ${R.value}`);return r.watchEffect(()=>{d.value=i.value.year,m()}),r.watch(()=>d.value,oe=>h.value=g(oe)),r.onMounted(()=>m()),(oe,Ee)=>(r.openBlock(),r.createElementBlock("div",{class:"vc-nav-container",ref_key:"navContainer",ref:f},[r.createElementVNode("div",eY,[r.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!r.unref(fe),onClick:C,onKeydown:Ee[0]||(Ee[0]=Me=>r.unref(iu)(Me,C))},[r.createVNode(bi,{name:"nav-prev-button",move:C,disabled:!r.unref(fe)},{default:r.withCtx(()=>[r.createVNode(so,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,tY),r.createElementVNode("button",{type:"button",class:"vc-nav-title vc-focus",onClick:_,onKeydown:Ee[1]||(Ee[1]=Me=>r.unref(iu)(Me,_))},r.toDisplayString(r.unref(pe)),33),r.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!r.unref(ye),onClick:S,onKeydown:Ee[2]||(Ee[2]=Me=>r.unref(iu)(Me,S))},[r.createVNode(bi,{name:"nav-next-button",move:S,disabled:!r.unref(ye)},{default:r.withCtx(()=>[r.createVNode(so,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,nY)]),r.createElementVNode("div",iY,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(he),Me=>(r.openBlock(),r.createElementBlock("button",{key:Me.label,type:"button","data-id":Me.id,"aria-label":Me.ariaLabel,class:r.normalizeClass(["vc-nav-item vc-focus",[Me.isActive?"is-active":Me.isCurrent?"is-current":""]]),disabled:Me.isDisabled,onClick:Me.click,onKeydown:ge=>r.unref(iu)(ge,Me.click)},r.toDisplayString(Me.label),43,sY))),128))])],512))}}),Z5=r.defineComponent({__name:"CalendarPageProvider",props:{page:null},setup(t){const e=t;return QW(r.toRef(e,"page")),(n,i)=>r.renderSlot(n.$slots,"default")}}),aY=r.defineComponent({__name:"CalendarNavPopover",setup(t){const{navPopoverId:e,color:n,displayMode:i}=Xr();return(s,a)=>(r.openBlock(),r.createBlock(L0,{id:r.unref(e),class:r.normalizeClass(["vc-nav-popover-container",`vc-${r.unref(n)}`,`vc-${r.unref(i)}`])},{default:r.withCtx(({data:o})=>[r.createVNode(Z5,{page:o.page},{default:r.withCtx(()=>[r.createVNode(bi,{name:"nav"},{default:r.withCtx(()=>[r.createVNode(rY)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),oY=r.defineComponent({directives:{popover:P5},components:{CalendarSlot:bi},props:{day:{type:Object,required:!0}},setup(t){const{locale:e,theme:n,attributeContext:i,dayPopoverId:s,onDayClick:a,onDayMouseenter:o,onDayMouseleave:c,onDayFocusin:d,onDayFocusout:h,onDayKeydown:f}=Xr(),m=r.computed(()=>t.day),g=r.computed(()=>i.value.getCells(m.value)),_=r.computed(()=>g.value.map(J=>J.data)),b=r.computed(()=>({...m.value,attributes:_.value,attributeCells:g.value}));function w({data:J},{popovers:he}){const{key:fe,customData:ye,popover:we}=J;if(!we)return;const R=T_({key:fe,customData:ye,attribute:J},{...we},{visibility:we.label?"hover":"click",placement:"bottom",isInteractive:!we.label});he.splice(0,0,R)}const C=r.computed(()=>{const J={...n.value.prepareRender({}),popovers:[]};return g.value.forEach(he=>{n.value.render(he,J),w(he,J)}),J}),S=r.computed(()=>C.value.highlights),E=r.computed(()=>!!Ss(S.value)),A=r.computed(()=>C.value.content),x=r.computed(()=>C.value.dots),T=r.computed(()=>!!Ss(x.value)),N=r.computed(()=>C.value.bars),L=r.computed(()=>!!Ss(N.value)),F=r.computed(()=>C.value.popovers),q=r.computed(()=>F.value.map(J=>J.attribute)),ee=j5("day-content"),ie=r.computed(()=>["vc-day",...m.value.classes,{"vc-day-box-center-center":!ee},{"is-not-in-month":!t.day.inMonth}]),K=r.computed(()=>{let J;m.value.isFocusable?J="0":J="-1";const he=["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":m.value.isDisabled},Kr(Ja(S.value),"contentClass"),Kr(Ja(A.value),"class")||""],fe={...Kr(Ja(S.value),"contentStyle"),...Kr(Ja(A.value),"style")};return{class:he,style:fe,tabindex:J,"aria-label":m.value.ariaLabel,"aria-disabled":!!m.value.isDisabled,role:"button"}}),se=r.computed(()=>({click(J){a(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)}})),me=r.computed(()=>Ss(F.value)?T_({id:s.value,data:{day:m,attributes:q.value}},...F.value):null);return{attributes:_,attributeCells:g,bars:N,dayClasses:ie,dayContentProps:K,dayContentEvents:se,dayPopover:me,glyphs:C,dots:x,hasDots:T,hasBars:L,highlights:S,hasHighlights:E,locale:e,popovers:F}}}),lY={key:0,class:"vc-highlights vc-day-layer"},cY={key:1,class:"vc-day-layer vc-day-box-center-bottom"},dY={class:"vc-dots"},uY={key:2,class:"vc-day-layer vc-day-box-center-bottom"},hY={class:"vc-bars"};function fY(t,e,n,i,s,a){const o=r.resolveComponent("CalendarSlot"),c=r.resolveDirective("popover");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(t.dayClasses)},[t.hasHighlights?(r.openBlock(),r.createElementBlock("div",lY,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.highlights,({key:d,wrapperClass:h,class:f,style:m})=>(r.openBlock(),r.createElementBlock("div",{key:d,class:r.normalizeClass(h)},[r.createElementVNode("div",{class:r.normalizeClass(f),style:r.normalizeStyle(m)},null,6)],2))),128))])):r.createCommentVNode("",!0),r.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:r.withCtx(()=>[r.withDirectives((r.openBlock(),r.createElementBlock("div",r.mergeProps(t.dayContentProps,r.toHandlers(t.dayContentEvents,!0)),[r.createTextVNode(r.toDisplayString(t.day.label),1)],16)),[[c,t.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),t.hasDots?(r.openBlock(),r.createElementBlock("div",cY,[r.createElementVNode("div",dY,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.dots,({key:d,class:h,style:f})=>(r.openBlock(),r.createElementBlock("span",{key:d,class:r.normalizeClass(h),style:r.normalizeStyle(f)},null,6))),128))])])):r.createCommentVNode("",!0),t.hasBars?(r.openBlock(),r.createElementBlock("div",uY,[r.createElementVNode("div",hY,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.bars,({key:d,class:h,style:f})=>(r.openBlock(),r.createElementBlock("span",{key:d,class:r.normalizeClass(h),style:r.normalizeStyle(f)},null,6))),128))])])):r.createCommentVNode("",!0)],2)}const pY=cr(oY,[["render",fY]]),mY={class:"vc-weekdays"},gY=["onClick"],_Y={inheritAttrs:!1},yY=r.defineComponent({..._Y,__name:"CalendarPage",setup(t){const{page:e}=K5(),{onWeeknumberClick:n}=Xr();return(i,s)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["vc-pane",`row-${r.unref(e).row}`,`row-from-end-${r.unref(e).rowFromEnd}`,`column-${r.unref(e).column}`,`column-from-end-${r.unref(e).columnFromEnd}`]),ref:"pane"},[r.createVNode(q5,{page:r.unref(e),"is-lg":"","hide-arrows":""},null,8,["page"]),r.createElementVNode("div",{class:r.normalizeClass(["vc-weeks",{[`vc-show-weeknumbers-${r.unref(e).weeknumberPosition}`]:r.unref(e).weeknumberPosition}])},[r.createElementVNode("div",mY,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(e).weekdays,({weekday:a,label:o},c)=>(r.openBlock(),r.createElementBlock("div",{key:c,class:r.normalizeClass(`vc-weekday vc-weekday-${a}`)},r.toDisplayString(o),3))),128))]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(e).viewWeeks,a=>(r.openBlock(),r.createElementBlock("div",{key:`weeknumber-${a.weeknumber}`,class:"vc-week"},[r.unref(e).weeknumberPosition?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["vc-weeknumber",`is-${r.unref(e).weeknumberPosition}`])},[r.createElementVNode("span",{class:r.normalizeClass(["vc-weeknumber-content"]),onClick:o=>r.unref(n)(a,o)},r.toDisplayString(a.weeknumberDisplay),9,gY)],2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.days,o=>(r.openBlock(),r.createBlock(pY,{key:o.id,day:o},null,8,["day"]))),128))]))),128))],2)],2))}}),vY=r.defineComponent({components:{CalendarHeader:q5,CalendarPage:yY,CalendarNavPopover:aY,CalendarDayPopover:DW,CalendarPageProvider:Z5,CalendarSlot:bi},props:gW,emit:_W,setup(t,{emit:e,slots:n}){return yW(t,{emit:e,slots:n})}}),bY={class:"vc-pane-header-wrapper"};function wY(t,e,n,i,s,a){const o=r.resolveComponent("CalendarHeader"),c=r.resolveComponent("CalendarPage"),d=r.resolveComponent("CalendarSlot"),h=r.resolveComponent("CalendarPageProvider"),f=r.resolveComponent("CalendarDayPopover"),m=r.resolveComponent("CalendarNavPopover");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",r.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]=r.withModifiers(()=>{},["prevent"])),ref:"containerRef"}),[r.createElementVNode("div",{class:r.normalizeClass(["vc-pane-container",{"in-transition":t.inTransition}])},[r.createElementVNode("div",bY,[t.firstPage?(r.openBlock(),r.createBlock(o,{key:0,page:t.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):r.createCommentVNode("",!0)]),r.createVNode(r.Transition,{name:`vc-${t.transitionName}`,onBeforeEnter:t.onTransitionBeforeEnter,onAfterEnter:t.onTransitionAfterEnter},{default:r.withCtx(()=>[(r.openBlock(),r.createElementBlock("div",{key:t.pages[0].id,class:"vc-pane-layout",style:r.normalizeStyle({gridTemplateColumns:`repeat(${t.columns}, 1fr)`})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.pages,g=>(r.openBlock(),r.createBlock(h,{key:g.id,page:g},{default:r.withCtx(()=>[r.createVNode(d,{name:"page",page:g},{default:r.withCtx(()=>[r.createVNode(c)]),_:2},1032,["page"])]),_:2},1032,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),r.createVNode(d,{name:"footer"})],2)],16),r.createVNode(f),r.createVNode(m)],64)}const kY=cr(vY,[["render",wY]]),X5=Symbol("__vc_date_picker_context__"),CY={...R5,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:()=>or("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>or("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]},xY=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function SY(t,{emit:e,slots:n}){Y5(n,{footer:"dp-footer"});const i=H5(t),{locale:s,masks:a,disabledAttribute:o}=i,c=r.ref(!1),d=r.ref(Symbol()),h=r.ref(null),f=r.ref(null),m=r.ref(["",""]),g=r.ref(null),_=r.ref(null);let b,w,C=!0;const S=r.computed(()=>t.isRange||t.modelModifiers.range===!0),E=r.computed(()=>S.value&&h.value!=null?h.value.start:null),A=r.computed(()=>S.value&&h.value!=null?h.value.end:null),x=r.computed(()=>t.mode.toLowerCase()==="date"),T=r.computed(()=>t.mode.toLowerCase()==="datetime"),N=r.computed(()=>t.mode.toLowerCase()==="time"),L=r.computed(()=>!!f.value),F=r.computed(()=>{let V="date";t.modelModifiers.number&&(V="number"),t.modelModifiers.string&&(V="string");const Y=a.value.modelValue||"iso";return Ee({type:V,mask:Y})}),q=r.computed(()=>nn(f.value??h.value)),ee=r.computed(()=>N.value?t.is24hr?a.value.inputTime24hr:a.value.inputTime:T.value?t.is24hr?a.value.inputDateTime24hr:a.value.inputDateTime:a.value.input),ie=r.computed(()=>/[Hh]/g.test(ee.value)),K=r.computed(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(ee.value)),se=r.computed(()=>{if(ie.value&&K.value)return"dateTime";if(K.value)return"date";if(ie.value)return"time"}),me=r.computed(()=>{var V;const Y=((V=g.value)==null?void 0:V.$el.previousElementSibling)??void 0;return Wl({},t.popover,or("datePicker.popover"),{target:Y})}),J=r.computed(()=>$5({...me.value,id:d.value})),he=r.computed(()=>S.value?{start:m.value[0],end:m.value[1]}:m.value[0]),fe=r.computed(()=>{const V=["start","end"].map(Y=>({input:ft(Y),change:Ct(Y),keyup:tn,...t.popover&&J.value}));return S.value?{start:V[0],end:V[1]}:V[0]}),ye=r.computed(()=>{if(!lt(h.value))return null;const V={key:"select-drag",...t.selectAttribute,dates:h.value,pinPage:!0},{dot:Y,bar:re,highlight:Ce,content:je}=V;return!Y&&!re&&!Ce&&!je&&(V.highlight=!0),V}),we=r.computed(()=>{if(!S.value||!lt(f.value))return null;const V={key:"select-drag",...t.dragAttribute,dates:f.value},{dot:Y,bar:re,highlight:Ce,content:je}=V;return!Y&&!re&&!Ce&&!je&&(V.highlight={startEnd:{fillMode:"outline"}}),V}),R=r.computed(()=>{const V=vi(t.attributes)?[...t.attributes]:[];return we.value?V.unshift(we.value):ye.value&&V.unshift(ye.value),V}),pe=r.computed(()=>Ee(t.rules==="auto"?oe():t.rules??{}));function oe(){const V={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},Y=x.value?0:t.timeAccuracy;return[0,1].map(re=>{switch(Y){case 0:return{hours:V.hr[re],minutes:V.min[re],seconds:V.sec[re],milliseconds:V.ms[re]};case 1:return{minutes:V.min[re],seconds:V.sec[re],milliseconds:V.ms[re]};case 3:return{milliseconds:V.ms[re]};case 4:return{};default:return{seconds:V.sec[re],milliseconds:V.ms[re]}}})}function Ee(V){return vi(V)?V.length===1?[V[0],V[0]]:V:[V,V]}function Me(V){return Ee(V).map((Y,re)=>({...Y,rules:pe.value[re]}))}function ge(V){return V==null?!1:Ri(V)?!isNaN(V):Qa(V)?!isNaN(V.getTime()):ss(V)?V!=="":I0(V)}function Ne(V){return xs(V)&&"start"in V&&"end"in V&&ge(V.start??null)&&ge(V.end??null)}function lt(V){return Ne(V)||ge(V)}function Le(V,Y){if(V==null&&Y==null)return!0;if(V==null||Y==null)return!1;const re=Qa(V),Ce=Qa(Y);return re&&Ce?V.getTime()===Y.getTime():re||Ce?!1:Le(V.start,Y.start)&&Le(V.end,Y.end)}function ht(V){return!lt(V)||!o.value?!1:o.value.intersectsRange(s.value.range(V))}function It(V,Y,re,Ce){if(!lt(V))return null;if(Ne(V)){const je=s.value.toDate(V.start,{...Y[0],fillDate:E.value??void 0,patch:re}),at=s.value.toDate(V.end,{...Y[1],fillDate:A.value??void 0,patch:re});return In({start:je,end:at},Ce)}return s.value.toDateOrNull(V,{...Y[0],fillDate:h.value,patch:re})}function kt(V,Y){return Ne(V)?{start:s.value.fromDate(V.start,Y[0]),end:s.value.fromDate(V.end,Y[1])}:S.value?null:s.value.fromDate(V,Y[0])}function tt(V,Y={}){return clearTimeout(b),new Promise(re=>{const{debounce:Ce=0,...je}=Y;Ce>0?b=window.setTimeout(()=>{re(st(V,je))},Ce):re(st(V,je))})}function st(V,{config:Y=F.value,patch:re="dateTime",clearIfEqual:Ce=!1,formatInput:je=!0,hidePopover:at=!1,dragging:xt=L.value,targetPriority:sn,moveToValue:Gt=!1}={}){const qn=Me(Y);let pt=It(V,qn,re,sn);if(ht(pt)){if(xt)return null;pt=h.value,at=!1}else pt==null&&t.isRequired?pt=h.value:pt!=null&&Le(h.value,pt)&&Ce&&(pt=null);const Sn=xt?f:h,ii=!Le(Sn.value,pt);Sn.value=pt,xt||(f.value=null);const Hi=kt(pt,F.value);return ii&&(C=!1,e(xt?"drag":"update:modelValue",Hi),r.nextTick(()=>C=!0)),at&&!xt&&Ye(),je&&rt(),Gt&&r.nextTick(()=>le(sn??"start")),Hi}function rt(){r.nextTick(()=>{const V=Me({type:"string",mask:ee.value}),Y=kt(f.value??h.value,V);S.value?m.value=[Y&&Y.start,Y&&Y.end]:m.value=[Y,""]})}function Yt(V,Y,re){m.value.splice(Y==="start"?0:1,1,V);const Ce=S.value?{start:m.value[0],end:m.value[1]||m.value[0]}:V,je={type:"string",mask:ee.value};tt(Ce,{...re,config:je,patch:se.value,targetPriority:Y,moveToValue:!0})}function ft(V){return Y=>{!t.updateOnInput||Yt(Y.currentTarget.value,V,{formatInput:!1,hidePopover:!1,debounce:t.inputDebounce})}}function Ct(V){return Y=>{Yt(Y.currentTarget.value,V,{formatInput:!0,hidePopover:!1})}}function tn(V){V.key==="Escape"&&tt(h.value,{formatInput:!0,hidePopover:!0})}function nn(V){return S.value?[V&&V.start?s.value.getDateParts(V.start):null,V&&V.end?s.value.getDateParts(V.end):null]:[V?s.value.getDateParts(V):null]}function bt(){f.value=null,rt()}function nt(V){e("popover-will-show",V)}function Nt(V){e("popover-did-show",V)}function Ot(V){bt(),e("popover-will-hide",V)}function At(V){e("popover-did-hide",V)}function Dt(V){const Y={patch:"date",formatInput:!0,hidePopover:!0};if(S.value){const re=!L.value;re?w={start:V.startDate,end:V.endDate}:w!=null&&(w.end=V.date),tt(w,{...Y,dragging:re})}else tt(V.date,{...Y,clearIfEqual:!t.isRequired})}function un(V,Y){Dt(V),e("dayclick",V,Y)}function $t(V,Y){switch(Y.key){case" ":case"Enter":{Dt(V),Y.preventDefault();break}case"Escape":Ye()}e("daykeydown",V,Y)}function te(V,Y){!L.value||w==null||(w.end=V.date,tt(In(w),{patch:"date",formatInput:!0}))}function Ie(V={}){N0({...me.value,...V,isInteractive:!0,id:d.value})}function Ye(V={}){ql({hideDelay:10,force:!0,...me.value,...V,id:d.value})}function pn(V){A5({...me.value,...V,isInteractive:!0,id:d.value})}function In(V,Y){const{start:re,end:Ce}=V;if(re>Ce)switch(Y){case"start":return{start:re,end:re};case"end":return{start:Ce,end:Ce};default:return{start:Ce,end:re}}return{start:re,end:Ce}}async function Un(V,Y={}){return _.value==null?!1:_.value.move(V,Y)}async function j(V,Y={}){return _.value==null?!1:_.value.moveBy(V,Y)}async function le(V,Y={}){const re=h.value;if(_.value==null||!lt(re))return!1;const Ce=V!=="end",je=Ce?1:-1,at=Ne(re)?Ce?re.start:re.end:re,xt=d5(at,"monthly",s.value);return _.value.move(xt,{position:je,...Y})}r.watch(()=>t.isRange,V=>{V&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),r.watch(()=>S.value,()=>{st(null,{formatInput:!0})}),r.watch(()=>ee.value,()=>rt()),r.watch(()=>t.modelValue,V=>{!C||st(V,{formatInput:!0,hidePopover:!1})}),r.watch(()=>pe.value,()=>{xs(t.rules)&&st(t.modelValue,{formatInput:!0,hidePopover:!1})}),r.watch(()=>t.timezone,()=>{st(h.value,{formatInput:!0})});const ve=Ee(F.value);h.value=It(t.modelValue??null,ve,"dateTime"),r.onMounted(()=>{st(t.modelValue,{formatInput:!0,hidePopover:!1})}),r.nextTick(()=>c.value=!0);const W={...i,showCalendar:c,datePickerPopoverId:d,popoverRef:g,popoverEvents:J,calendarRef:_,isRange:S,isTimeMode:N,isDateTimeMode:T,is24hr:r.toRef(t,"is24hr"),hideTimeHeader:r.toRef(t,"hideTimeHeader"),timeAccuracy:r.toRef(t,"timeAccuracy"),isDragging:L,inputValue:he,inputEvents:fe,dateParts:q,attributes:R,rules:pe,move:Un,moveBy:j,moveToValue:le,updateValue:tt,showPopover:Ie,hidePopover:Ye,togglePopover:pn,onDayClick:un,onDayKeydown:$t,onDayMouseEnter:te,onPopoverBeforeShow:nt,onPopoverAfterShow:Nt,onPopoverBeforeHide:Ot,onPopoverAfterHide:At};return r.provide(X5,W),W}function F0(){const t=r.inject(X5);if(t)return t;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const MY=[{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"}],OY=[{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 DY(t){const e=F0(),{locale:n,isRange:i,isTimeMode:s,dateParts:a,rules:o,is24hr:c,hideTimeHeader:d,timeAccuracy:h,updateValue:f}=e;function m(K){K=Object.assign(_.value,K);let se=null;if(i.value){const me=g.value?K:a.value[0],J=g.value?a.value[1]:K;se={start:me,end:J}}else se=K;f(se,{patch:"time",targetPriority:g.value?"start":"end",moveToValue:!0})}const g=r.computed(()=>t.position===0),_=r.computed(()=>a.value[t.position]||{isValid:!1}),b=r.computed(()=>I0(_.value)),w=r.computed(()=>!!_.value.isValid),C=r.computed(()=>!d.value&&w.value),S=r.computed(()=>{if(!b.value)return null;let K=n.value.toDate(_.value);return _.value.hours===24&&(K=new Date(K.getTime()-1)),K}),E=r.computed({get(){return _.value.hours},set(K){m({hours:K})}}),A=r.computed({get(){return _.value.minutes},set(K){m({minutes:K})}}),x=r.computed({get(){return _.value.seconds},set(K){m({seconds:K})}}),T=r.computed({get(){return _.value.milliseconds},set(K){m({milliseconds:K})}}),N=r.computed({get(){return _.value.hours<12},set(K){K=String(K).toLowerCase()=="true";let se=E.value;K&&se>=12?se-=12:!K&&se<12&&(se+=12),m({hours:se})}}),L=r.computed(()=>XH(_.value,o.value[t.position])),F=r.computed(()=>MY.filter(K=>L.value.hours.some(se=>se.value===K.value))),q=r.computed(()=>OY.filter(K=>L.value.hours.some(se=>se.value===K.value))),ee=r.computed(()=>c.value?L.value.hours:N.value?F.value:q.value),ie=r.computed(()=>{const K=[];return Ss(F.value)&&K.push({value:!0,label:"AM"}),Ss(q.value)&&K.push({value:!1,label:"PM"}),K});return{...e,showHeader:C,timeAccuracy:h,parts:_,isValid:w,date:S,hours:E,minutes:A,seconds:x,milliseconds:T,options:L,hourOptions:ee,isAM:N,isAMOptions:ie,is24hr:c}}const EY=["value"],VY=["value","disabled"],BY={key:1,class:"vc-base-sizer","aria-hidden":"true"},TY={inheritAttrs:!1},Gl=r.defineComponent({...TY,__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=r.computed(()=>{const i=e.options.find(s=>s.value===e.modelValue);return i==null?void 0:i.label});return(i,s)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["vc-base-select",{"vc-fit-content":t.fitContent,"vc-has-icon":t.showIcon}])},[r.createElementVNode("select",r.mergeProps(i.$attrs,{value:t.modelValue,class:["vc-focus",{"vc-align-right":t.alignRight,"vc-align-left":t.alignLeft}],onChange:s[0]||(s[0]=a=>i.$emit("update:modelValue",a.target.value))}),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.options,a=>(r.openBlock(),r.createElementBlock("option",{key:a.value,value:a.value,disabled:a.disabled},r.toDisplayString(a.label),9,VY))),128))],16,EY),t.showIcon?(r.openBlock(),r.createBlock(so,{key:0,name:"ChevronDown",size:"18"})):r.createCommentVNode("",!0),t.fitContent?(r.openBlock(),r.createElementBlock("div",BY,r.toDisplayString(r.unref(n)),1)):r.createCommentVNode("",!0)],2))}}),IY={key:0,class:"vc-time-header"},AY={class:"vc-time-weekday"},$Y={class:"vc-time-month"},NY={class:"vc-time-day"},zY={class:"vc-time-year"},PY={class:"vc-time-select-group"},LY=r.createElementVNode("span",{class:"vc-time-colon"},":",-1),FY=r.createElementVNode("span",{class:"vc-time-colon"},":",-1),RY=r.createElementVNode("span",{class:"vc-time-decimal"},".",-1),J5=r.defineComponent({__name:"TimePicker",props:{position:null},setup(t,{expose:e}){const i=DY(t);e(i);const{locale:s,isValid:a,date:o,hours:c,minutes:d,seconds:h,milliseconds:f,options:m,hourOptions:g,isTimeMode:_,isAM:b,isAMOptions:w,is24hr:C,showHeader:S,timeAccuracy:E}=i;return(A,x)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["vc-time-picker",[{"vc-invalid":!r.unref(a),"vc-attached":!r.unref(_)}]])},[r.createVNode(bi,{name:"time-header"},{default:r.withCtx(()=>[r.unref(S)&&r.unref(o)?(r.openBlock(),r.createElementBlock("div",IY,[r.createElementVNode("span",AY,r.toDisplayString(r.unref(s).formatDate(r.unref(o),"WWW")),1),r.createElementVNode("span",$Y,r.toDisplayString(r.unref(s).formatDate(r.unref(o),"MMM")),1),r.createElementVNode("span",NY,r.toDisplayString(r.unref(s).formatDate(r.unref(o),"D")),1),r.createElementVNode("span",zY,r.toDisplayString(r.unref(s).formatDate(r.unref(o),"YYYY")),1)])):r.createCommentVNode("",!0)]),_:1}),r.createElementVNode("div",PY,[r.createVNode(so,{name:"Clock",size:"17"}),r.createVNode(Gl,{modelValue:r.unref(c),"onUpdate:modelValue":x[0]||(x[0]=T=>r.isRef(c)?c.value=T:null),modelModifiers:{number:!0},options:r.unref(g),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),r.unref(E)>1?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[LY,r.createVNode(Gl,{modelValue:r.unref(d),"onUpdate:modelValue":x[1]||(x[1]=T=>r.isRef(d)?d.value=T:null),modelModifiers:{number:!0},options:r.unref(m).minutes,class:"vc-time-select-minutes","align-left":r.unref(E)===2},null,8,["modelValue","options","align-left"])],64)):r.createCommentVNode("",!0),r.unref(E)>2?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[FY,r.createVNode(Gl,{modelValue:r.unref(h),"onUpdate:modelValue":x[2]||(x[2]=T=>r.isRef(h)?h.value=T:null),modelModifiers:{number:!0},options:r.unref(m).seconds,class:"vc-time-select-seconds","align-left":r.unref(E)===3},null,8,["modelValue","options","align-left"])],64)):r.createCommentVNode("",!0),r.unref(E)>3?(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[RY,r.createVNode(Gl,{modelValue:r.unref(f),"onUpdate:modelValue":x[3]||(x[3]=T=>r.isRef(f)?f.value=T:null),modelModifiers:{number:!0},options:r.unref(m).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):r.createCommentVNode("",!0),r.unref(C)?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(Gl,{key:3,modelValue:r.unref(b),"onUpdate:modelValue":x[4]||(x[4]=T=>r.isRef(b)?b.value=T:null),options:r.unref(w)},null,8,["modelValue","options"]))])],2))}}),Q5=r.defineComponent({__name:"DatePickerBase",setup(t){const{attributes:e,calendarRef:n,color:i,displayMode:s,isDateTimeMode:a,isTimeMode:o,isRange:c,onDayClick:d,onDayMouseEnter:h,onDayKeydown:f}=F0(),m=c.value?[0,1]:[0];return(g,_)=>r.unref(o)?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(`vc-container vc-bordered vc-${r.unref(i)} vc-${r.unref(s)}`)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(m),b=>(r.openBlock(),r.createBlock(J5,{key:b,position:b},null,8,["position"]))),128))],2)):(r.openBlock(),r.createBlock(kY,{key:1,attributes:r.unref(e),ref_key:"calendarRef",ref:n,onDayclick:r.unref(d),onDaymouseenter:r.unref(h),onDaykeydown:r.unref(f)},{footer:r.withCtx(()=>[r.unref(a)?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(r.unref(m),b=>(r.openBlock(),r.createBlock(J5,{key:b,position:b},null,8,["position"]))),128)):r.createCommentVNode("",!0),r.createVNode(bi,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),HY={inheritAttrs:!1},WY=r.defineComponent({...HY,__name:"DatePickerPopover",setup(t){const{datePickerPopoverId:e,color:n,displayMode:i,popoverRef:s,onPopoverBeforeShow:a,onPopoverAfterShow:o,onPopoverBeforeHide:c,onPopoverAfterHide:d}=F0();return(h,f)=>(r.openBlock(),r.createBlock(L0,{id:r.unref(e),placement:"bottom-start",class:r.normalizeClass(`vc-date-picker-content vc-${r.unref(n)} vc-${r.unref(i)}`),ref_key:"popoverRef",ref:s,onBeforeShow:r.unref(a),onAfterShow:r.unref(o),onBeforeHide:r.unref(c),onAfterHide:r.unref(d)},{default:r.withCtx(()=>[r.createVNode(Q5,r.normalizeProps(r.guardReactiveProps(h.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),YY=r.defineComponent({inheritAttrs:!1,emits:xY,props:CY,components:{DatePickerBase:Q5,DatePickerPopover:WY},setup(t,e){const n=SY(t,e),i=r.reactive(Z_(n,"calendarRef","popoverRef"));return{...n,slotCtx:i}}});function jY(t,e,n,i,s,a){const o=r.resolveComponent("DatePickerPopover"),c=r.resolveComponent("DatePickerBase");return t.$slots.default?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.renderSlot(t.$slots,"default",r.normalizeProps(r.guardReactiveProps(t.slotCtx))),r.createVNode(o,r.normalizeProps(r.guardReactiveProps(t.$attrs)),null,16)],64)):(r.openBlock(),r.createBlock(c,r.normalizeProps(r.mergeProps({key:1},t.$attrs)),null,16))}const ey=cr(YY,[["render",jY]]),O1e="";var xn={exports:{}};/**
44
44
  * @license
45
45
  * Lodash <https://lodash.com/>
46
46
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sysvale/cuida",
3
- "version": "3.55.1",
3
+ "version": "3.56.0",
4
4
  "description": "A design system built by Sysvale, using storybook and Vue components",
5
5
  "repository": {
6
6
  "type": "git",